/* Plugin Name: LeadsLeap PopupXpert ID 7701 Plugin URI: http://www.leadsleap.com/popupxpert/ Description: This plugin automatically adds the JS code generated at www.leadsleap.com/popupxpert into your wordpress blog. Version: 2.0 Author: LeadsLeap */ if( !function_exists("add_widget7701_to_endofpost")){ function add_widget7701_to_endofpost($content) { if (is_single() || is_page()) { $ih = ( is_home() == true ? 1 : 0 ); $if = ( is_front_page() == true ? 1 : 0 ); $is = ( is_single() == true ? 1 : 0 ); $ip = ( is_page() == true ? 1 : 0 ); $postid = get_the_ID(); $cats = get_the_category( $postid ); if($cats){ foreach($cats as $cat) { $catArr[] = $cat->cat_name; } $catList = implode(',',$catArr); } $code = ""; $code = str_replace("\'","'",$code); $content .= $code; } return $content; } } if( !function_exists("add_widget7701_to_footer")){ function add_widget7701_to_footer() { if (!is_single() && !is_page()) { $ih = ( is_home() == true ? 1 : 0 ); $if = ( is_front_page() == true ? 1 : 0 ); $ic = ( is_category() == true ? 1 : 0 ); $it = ( is_tag() == true ? 1 : 0 ); $ix = ( is_tax() == true ? 1 : 0 ); $ia = ( is_author() == true ? 1 : 0 ); $id = ( is_date() == true ? 1 : 0 ); $i4 = ( is_404() == true ? 1 : 0 ); ?> ; } } } add_filter( 'the_content', 'add_widget7701_to_endofpost' ); add_action( 'wp_footer', 'add_widget7701_to_footer' ); ?>
By Creating an Online Business