'.st_makeEntries().'
'.$content.''.st_makeEntries().'
'; else if ($getTopOptions == 'top' && empty($getBotOptions)) return ''.st_makeEntries().'
'.$content; else if(empty($getTopOptions) && $getBotOptions == 'bot') return $content.''.st_makeEntries().'
'; } return $content; } // 2006-06-02 Renamed function from st_add_st_link() to st_add_feed_link() function st_add_feed_link($content) { if (is_feed()) { $content .= st_link(); } return $content; } function adding_st_filters(){ // 2006-06-02 Filters to Add Sharethis widget on content and/or link on RSS // 2006-06-02 Expected behavior is that the feed link will show up if an option is not 'no' if (get_option('st_add_to_content') != 'no' || get_option('st_add_to_page') != 'no') { add_filter('the_content', 'st_add_widget'); // META GRAPH Plugin conflicts with Buttons Excerpts $current_plugins = get_option('active_plugins'); if( (!( (in_array('wp-open-graph/wp-open-graph.php', $current_plugins)) || (in_array('wp-open-graph-meta/wp-open-graph-meta.php', $current_plugins)) ) ) && (!( (in_array('facebook/facebook.php', $current_plugins)) && (in_array('wordpress-seo/wp-seo.php', $current_plugins)) )) ) { // 2008-08-15 Excerpts don't play nice due to strip_tags(). add_filter('get_the_excerpt', 'st_remove_st_add_link',9); add_filter('the_excerpt', 'st_add_widget'); } } } function st_widget_fix_domain($widget) { return preg_replace( "/\", $widget); $widget = preg_replace("/widget\/\&wp\=/", "widget/?wp=", $widget); } else { $widget = preg_replace("/([\&\?])wp\=([^\&\"]*)/", "$1wp=".get_bloginfo('version'), $widget); } return $widget; } if (!function_exists('ak_can_update_options')) { function ak_can_update_options() { if (function_exists('current_user_can')) { if (current_user_can('manage_options')) { return true; } } else { global $user_level; get_currentuserinfo(); if ($user_level >= 8) { return true; } } return false; } } function st_request_handler() { if (!empty($_REQUEST['st_action'])) { switch ($_REQUEST['st_action']) { case 'st_update_settings': if (function_exists('wp_verify_nonce')) { if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'st_nonce' ) ) { // This nonce is not valid. die( 'Security check' ); } } if (ak_can_update_options()) { if($_POST['Edit'] == ""){ $publisher_id=$_POST['st_pkey']; if($_POST['st_callesi'] == "0"){ $cns_settings = $_POST['copynshareSettings']; }else{ $cns_settings = ""; } update_option('copynshareSettings', $cns_settings); if($_POST['st_user_name'] != "undefined"){ update_option('st_username', $_POST['st_user_name']); } //update st_version to figure out which widget to use. if(!empty($_POST['st_version'])) { update_option('st_version', $_POST['st_version']); if (($_POST['st_version']) == '5x') { $st_switchTo5x = "true"; } elseif (($_POST['st_version']) == '4x') { $st_switchTo5x = "false"; } } if(empty($publisher_id)) $publisher_id = trim(makePkey()); update_option('st_pubid', $publisher_id); update_option('st_widget', $_POST['st_widget']);//Fix for FB:13034 if(!empty($_POST['st_tags'])){ $tagsin=$_POST['st_tags']; $tagsin=preg_replace("/\\n|\\t/","", $tagsin); $tagsin=preg_replace("/\\\'/","'", $tagsin); $tagsin=preg_replace("/\"/","'", $tagsin); $tagsin=trim($tagsin); update_option('st_tags',$tagsin); }else{ update_option('st_tags',' '); // in case of buttons not selected } if(!empty($_POST['protocolType'])) { update_option('protocolType', trim($_POST['protocolType'])); } if(!empty($_POST['st_services'])){ update_option('st_services', trim($_POST['st_services'],",") ); } //Fix for FB:13034 if(!empty($_POST['hoverbar']['services'])) { update_option('st_hoverbar_services', $_POST['hoverbar']['services'] ); } //Fix for FB:13034 if(!empty($_POST['pulldownbar']['services'])) { update_option('st_pulldownbar_services', $_POST['pulldownbar']['services'] ); } if(!empty($_POST['pulldownbar']['logo'])) { update_option('st_pulldownlogo', $_POST['pulldownbar']['logo'] ); } if(!empty($_POST['st_current_type'])){ update_option('st_current_type', trim($_POST['st_current_type'],",") ); } if(!empty($_POST['st_pages_on_top'])){ update_option('st_pages_on_top', $_POST['st_pages_on_top'] ); } else { update_option('st_pages_on_top', '' ); } if(!empty($_POST['st_posts_on_top'])){ update_option('st_posts_on_top', $_POST['st_posts_on_top'] ); } else { update_option('st_posts_on_top', '' ); } if(!empty($_POST['st_pages_on_bot'])){ update_option('st_pages_on_bot', $_POST['st_pages_on_bot'] ); } else { update_option('st_pages_on_bot', '' ); } if(!empty($_POST['st_posts_on_bot'])){ update_option('st_posts_on_bot', $_POST['st_posts_on_bot'] ); } else { update_option('st_posts_on_bot', '' ); } if($_POST['st_post_excerpt'] == 'true'){ update_option('st_post_excerpt', $_POST['st_post_excerpt'] ); } else { update_option('st_post_excerpt', 'false' ); } $selPages = $_POST['st_page']; if((!empty($_POST['st_pages_on_top']) || !empty($_POST['st_pages_on_bot'])) && (!empty($selPages) && count($selPages) > 0)) { update_option('st_page', $selPages); } else { update_option('st_page', ''); } die("SUCCESS"); } } break; } die("FAILURE"); } } function st_options_form() { $plugin_location=plugins_url().'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); $publisher_id = get_option('st_pubid'); $services = get_option('st_services'); $tags = stripslashes(get_option('st_tags')); $tagsFromDb = stripslashes(get_option('st_tags')); $st_current_type=get_option('st_current_type'); $st_current_type_from_db = get_option('st_current_type'); $st_widget_version = get_option('st_version'); $st_prompt = get_option('st_prompt'); $st_username = get_option('st_username'); $st_pulldownlogo = get_option('st_pulldownlogo'); $st_hoverbarServices = get_option('st_hoverbar_services'); $st_pulldownbarServices = get_option('st_pulldownbar_services'); $cns_settings = get_option('copynshareSettings'); $stProtocol = get_option('protocolType'); $stPagesTop = get_option('st_pages_on_top'); $stPagesBot = get_option('st_pages_on_bot'); $stPostsTop = get_option('st_posts_on_top'); $stPostsBot = get_option('st_posts_on_bot'); $stPostExcerpt = get_option('st_post_excerpt'); $freshInstalation = empty($services)?1:0; $checkPagesTop = ''; $checkPagesBot = ''; if($stPagesTop == 'top' && $stPagesBot == 'bot') { $checkPagesTop = 'checked="checked"'; $checkPagesBot = 'checked="checked"'; } else if(empty($stPagesTop) && $stPagesBot == 'bot') { $checkPagesTop = ''; $checkPagesBot = 'checked="checked"'; } else if($stPagesTop == 'top' && empty($stPagesBot)) { $checkPagesTop = 'checked="checked"'; $checkPagesBot = ''; } $checkPostsTop = ''; $checkPostsBot = ''; if($stPostsTop == 'top' && $stPostsBot == 'bot') { $checkPostsTop = 'checked="checked"'; $checkPostsBot = 'checked="checked"'; } else if(empty($stPostsTop) && $stPostsBot == 'bot') { $checkPostsTop = ''; $checkPostsBot = 'checked="checked"'; } else if($stPostsTop == 'top' && empty($stPostsBot)) { $checkPostsTop = 'checked="checked"'; $checkPostsBot = ''; } $checkPostExcerpt = ''; if($stPostExcerpt == 'true') { $checkPostExcerpt = 'checked="checked"'; }else if($stPostExcerpt == 'false') { $checkPostExcerpt = ''; }else { // First installation - By default Checked $checkPostExcerpt = 'checked="checked"'; } $isSecure = ''; $isNonSecure = 'checked="checked"'; if(!empty($stProtocol)) { if('https' == $stProtocol) { $isNonSecure = ''; $isSecure = 'checked="checked"'; } else { $isNonSecure = 'checked="checked"'; $isSecure = ''; } } else { if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || $_SERVER['HTTPS'] == 'on') { $isNonSecure = ''; $isSecure = 'checked="checked"'; } else { $isNonSecure = 'checked="checked"'; $isSecure = ''; } } if(empty($st_username)){ $st_username = ""; } if(empty($st_pulldownlogo)){ $st_pulldownlogo = "//sd.sharethis.com/disc/images/Logo_Area.png"; } if(empty($pulldown_scrollpx)) $pulldown_scrollpx = ''; if(empty($st_current_type)){ $st_current_type="_large"; //$st_current_type_from_db="_large"; } if(empty($services)){ $services="facebook,twitter,linkedin,email,sharethis,fblike,plusone,pinterest"; } if(empty($st_prompt)){ //$services.=",instagram"; update_option('st_prompt', 'true'); } if(empty($tags)){ $tagsFromDb = ''; foreach(explode(',',$services) as $svc){ $tags.=""; $tagsFromDb.=""; } } if(empty($st_widget_version)){ $st_widget_version="5x"; } if(empty($st_hoverbarServices)) { $st_hoverbarServices = ''; } if(empty($st_pulldownbarServices)) { $st_pulldownbarServices = ''; } if(empty($cns_settings)) { $cns_settings = ''; } $widgetTag = stripslashes(get_option('st_widget')); if(empty($publisher_id)){ $toShow=""; // Re-generate new random publisher key $publisher_id=trim(makePkey()); } else{ $toShow = $widgetTag; } /* Pulls the scrollpx value for the pull down bar */ $a = preg_replace('~[\r\n]+~', '', $toShow); if (preg_match('/pulldownbar/',$a)) { $pattern = "/ '; if(isset($_SERVER['HTTPS'])) { if ($_SERVER['HTTPS'] == "on") { $include_scripts = ' '; } } print(' '.$include_scripts.'Professional Dog Walking and Pet Sitting in Huntersville NC
Professional Dog Walker and Pet Sitter