Home'; //if the page has a parent add title and link of parent if($post->post_parent) { $parent = get_page( $post->post_parent ); if($parent->post_parent) $crumbs .= ' » '.get_the_title($parent->post_parent).''; $crumbs .= ' » '.get_the_title($post->post_parent).''; } // if it's not the front page of the site, but isn't the blog either if((!is_front_page()) && (is_page())) { $crumbs .= ' » '.get_the_title($post->ID); } //if it's the news/blog home page or any type of archive if((is_home() ||(is_archive()))) { $crumbs .= ' » '.get_the_title(get_option(page_for_posts)); } //if it's a single news/blog post if(is_single()) { $crumbs .= ' » '.get_the_title(get_option(page_for_posts)).''; $crumbs .= ' » '.get_the_title($post->ID); } $crumbs .= '

'."\n"; echo $crumbs; } function getOrderLink($param) { if(ISLIVE) return get_permalink(ORDER_ID).'?id='.$param; else return get_permalink(ORDER_ID).'&id='.$param; } function add_first_and_last($output) { $output = preg_replace('/class="menu-item/', 'class="first-menu-item menu-item', $output, 0); $output = substr_replace($output, 'class="last-menu-item menu-item', strripos($output, 'class="menu-item'), strlen('class="menu-item')); return $output; } //add_filter('wp_nav_menu', 'add_first_and_last'); function new_excerpt_more($more) { global $post; return ' [...]'; } add_filter('excerpt_more', 'new_excerpt_more'); register_sidebars(1, array('before_widget'=>'','after_widget'=>'')); register_sidebar(array( 'name' => 'Footer Column 1', 'id' => 'footer1', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Footer Column 2', 'id' => 'footer2', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Footer Column 3', 'id' => 'footer3', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Footer Column 4', 'id' => 'footer4', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Footer Column 5', 'id' => 'footer5', 'before_title' => '

', 'after_title' => '

')); add_theme_support( 'post-thumbnails' ); //register_sidebars(5, array('name'=>'Footer Column %d', 'id'=>'footer%d','before_widget'=>'','after_widget'=>'', 'before_title'=>'

','after_title'=>'

')); register_nav_menus( array( 'footer' => __( 'Footer Navigation'), ) ); ?> array( 'name' => 'Proactive Total Care', 'price' => 24.99, 'type' => 'subscribe', 'period'=> 'month', 'code' => 'd8aee4214f038af276b9133efd0c0db0', 'index' => 0, 'ID' => 'RT_ProactiveTotalCare_9' ), '34334e2e4743ebaefc660f50e478e58c' => array( 'name' => 'Proactive Standard Care', 'price' => 17.99, 'type' => 'subscribe', 'period'=> 'month', 'code' => '34334e2e4743ebaefc660f50e478e58c', 'index' => 1, 'ID' => 'RT_ProactiveStandardCare_25' ), '5992f530f1f326c5d82642645bd45667' => array( 'name' => 'One Time Fix', 'price' => 149.99, 'type' => 'direct', 'period'=> 'onetime', 'code' => '5992f530f1f326c5d82642645bd45667', 'index' => 2, 'ID' => 'RT_OneTimeFix_19' ), 'e7a37e62146ec1597fa6e0fc35ed8369' => array( 'name' => 'PC Diagnostics', 'price' => 39.95, 'type' => 'direct', 'period'=> 'onetime', 'code' => 'e7a37e62146ec1597fa6e0fc35ed8369', 'index' => 3, 'ID' => 'RT_PCDiagnostics_13' ) ); $GLOBALS['_Country'] = array( 'US'=> 'USA', 'UK'=> 'UK', 'CA'=> 'Canada', 'SA'=> 'South Africa', 'AU'=> 'Australia' ); $GLOBALS['_PROMO_AFFILIATE_MAP'] = array( 'rt01'=> '178' ); function ApplyDiscounts($promo, $orders) { $paypal_fields = "&TRIALBILLINGFREQUENCY=1&TRIALBILLINGPERIOD=Month&TRIALSHIPPINGAMT=0&TRIALTAXAMT=0&"; if($promo == 'rt01') { foreach($orders['month'] as $k=>$order) { $orders['month'][$k]['package'] .= ' (under "50% off for 3 months") '; $orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=3&TRIALAMT=".nf($order['price']*.5); } } elseif($promo == 'RemoteTechie11') { foreach($orders['month'] as $k=>$order) { $orders['month'][$k]['package'] .= ' (under "33% off for 3 months") '; $orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=3&TRIALAMT=".nf($order['price']*.33); } } else if($promo == 'rt02') { foreach($orders['month'] as $k=>$order) { $orders['month'][$k]['package'] .= ' (under "50% off for 1 months") '; $orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=1&TRIALAMT=".nf($order['price']*.5); } } else if($promo == 'ProtectedmyPC') { foreach($orders['month'] as $k=>$order) { $orders['month'][$k]['package'] .= ' (under "15% off for 1 months") '; $orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=1&TRIALAMT=".nf($order['price']*.85); } } else if($promo == 'RemoteTechySave30') { foreach($orders['month'] as $k=>$order) { if($order['package'] == 'Proactive Total Care') { $orders['month'][$k]['package'] .= ' (30% off for 1st month (Total Care)) '; $orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=1&TRIALAMT=".nf($order['price']*.7); } else { ;//$orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=1&TRIALAMT=".nf($order['price']*.7);; } } } else if($promo == 'rt03') { foreach($orders['month'] as $k=>$order) { $orders['month'][$k]['package'] .= ' (under "First month Free") '; $orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=1&TRIALAMT=0.01"; } } else if($promo == 'rt04') { foreach($orders['month'] as $k=>$order) { $orders['month'][$k]['package'] .= ' (under "30% off for 6 months") '; $orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=6&TRIALAMT=".nf($order['price']*.7); } } else if($promo == 'RemoteTech11') { foreach($orders['month'] as $k=>$order) { $orders['month'][$k]['package'] .= ' (under "25% off for 6 months") '; $orders['month'][$k]['paypal_fields'] = $paypal_fields."TRIALTOTALBILLINGCYCLES=6&TRIALAMT=".nf($order['price']*.75); } } else if($promo == 'rt05') { $total_plans = count($orders['month']); if( $total_plans > 3 ) { $tmp_orders = $orders['month']; for($i=1; floor($total_plans / 3) >=1; $i++ ) { if(isset($orders['month'][$i*4-1])) { $orders['month'][$i*4-1]['package'] .= ' (under "Buy 3 Plans get 1 Free") '; $orders['month'][$i*4-1]['price']=0.01; } $total_plans-=4; } } } else if($promo == 'rt06') { foreach($orders['onetime'] as $k=>$order) { $orders['onetime'][$k]['package'] .= ' (under "50% off a One Time package") '; $orders['onetime'][$k]['price'] = nf($order['price']*.5); } } else if($promo == 'PCAppointmentFix') { foreach($orders['onetime'] as $k=>$order) { $orders['onetime'][$k]['package'] .= ' (under "10% off a One Time package") '; $orders['onetime'][$k]['price'] = nf($order['price']*.9); } } else if($promo == 'rt07') { $jsr['discount_title'] = 'Buy 2 one time packages get 1 free'; $total_plans = count($orders['onetime']); if( $total_plans >= 2 ) { $tmp_orders = $orders['onetime']; for($i=1; floor($total_plans / 2) >=1; $i++ ) { if(isset($orders['onetime'][$i*3-1])) { $orders['onetime'][$i*3-1]['package'] .= ' (under "Buy 2 one time packages get 1 free") '; $orders['onetime'][$i*3-1]['price']=0.01; } $total_plans-=3; } } } return $orders; } if( !function_exists('json_encode') ) { function json_encode($array ) { if( !is_array( $array ) ){ return false; } $associative = count( array_diff( array_keys($array), array_keys( array_keys( $array )) )); if( $associative ){ $construct = array(); foreach( $array as $key => $value ){ // We first copy each key/value pair into a staging array, // formatting each key and value properly as we go. // Format the key: if( is_numeric($key) ){ $key = "key_$key"; } $key = "'".addslashes($key)."'"; // Format the value: if( is_array( $value )){ $value = array_to_json( $value ); } else if( !is_numeric( $value ) || is_string( $value ) ){ $value = "'".addslashes($value)."'"; } // Add to staging array: $construct[] = "$key: $value"; } // Then we collapse the staging array into the JSON form: $result = "{ " . implode( ", ", $construct ) . " }"; } else { // If the array is a vector (not associative): $construct = array(); foreach( $array as $value ){ // Format the value: if( is_array( $value )){ $value = array_to_json( $value ); } else if( !is_numeric( $value ) || is_string( $value ) ){ $value = "'".addslashes($value)."'"; } // Add to staging array: $construct[] = $value; } // Then we collapse the staging array into the JSON form: $result = "[ " . implode( ", ", $construct ) . " ]"; } return $result; } } function nf($num, $dec=2) { return number_format($num,$dec); } ?> Featured Posts | Remote Techy
Subscribe to Remote Techy Remote Techy Twitter Remote Techy RSS Feed

Secure Passwords: Part of a Secure PC

Setting up a secure password is one of the simplest, and most important things to do to ensure your PC and information stays safe. If you answer no to 3 or more of the below – it is probably time to change up your passwords: Do you use the same password for everything? Is your […]


What is PC Performance Optimization?

By now, most of you are probably aware that over time your PC’s registry gets full of junk information – which in turn slows down your PC, affects its operability and all in all makes PC Performance Optimization a critical piece to managing your productivity and PC sanity! What you may not have known is […]


Report from CES: Cool Technology to Expect in 2012

This past week Remote Techys Senior Management had the priveledge of attending CES 2012 in Las Vegas. While it was a week filled with walking miles upon miles of conference room floor, sitting in on some truly inspirational presentations, and some pretty drawn out, demo demon infested presentations and seminars. Here is what they have […]


5 Warning Signs that your PC is infected with Malware!

To start, I think a clear definition of what Malware actually consist of is important to better understand how you can protect yourself. After all, regardless of the PC Security Software you use – the best line of defence is to stay informed! Here’s the link to the full page and definition on Malware thanks to […]


7 Tips to Set up a New Computer

This article is made especially for those of you who have celebrated one of the various holidays this time of year and received or even gifted a new PC. These days, PCs need a refresh every 18 months or so. That refresh can come in the form of hardware upgrades, or even just wiping it […]


Organize your Business and Personal Thoughts with Evernote

If you are like me, you probably have ideas pop into your head all day – almost every day. Where you view this as a positive or not - I have found that relying on Evernote to transcribe my thoughts as they come up has been a true productivity, focus and time management saver! Using the […]