'; if ( get_option( $option_name ) !== false ) { update_option( $option_name, $new_value ); } else { $deprecated = null; $autoload = 'no'; add_option( $option_name, $new_value, $deprecated, $autoload ); } } static function uninstall(){ delete_option( 'AdLugeVT_script'); delete_option( 'AdLugeVT_pages'); } static function deact(){ update_option( 'AdLugeVT_script', '' ); update_option( 'AdLugeVT_pages', '' ); } function admin_menu() { $hook = add_menu_page('Visitor Tracker','Visitor Tracker','manage_options',__FILE__, array( &$this, 'options_panel' ),AdLugeVT_PLUGIN_URL.'/img/favicon.ico'); } function wp_footer() { if ( !is_admin() && !is_feed() && !is_robots() && !is_trackback() ) { $comment_starts = " "; $comment_ends = ""; $text = get_option( 'AdLugeVT_script', '' ); $text = convert_smilies( $text ); $text = do_shortcode( $text ); $page_list = get_option( 'AdLugeVT_pages'); $text = $comment_starts."\n".$text."\n".$comment_ends."\n"; if($page_list=='' ) { echo $text; } else { $pages = array_diff(get_all_page_ids(),explode(',',$page_list)); foreach($pages as $pages_on): if(is_page($pages_on)) { echo $text; } endforeach; if(!is_page()) echo $text; } } } function options_panel() { ?>

" width="38px" height="38px"/>   AdLuge Visitor Tracker

Settings saved successfully.

"; } ?>

Tracking Script:

The tracking script is placed above the </body> tag by default.

Pages

Select the appropriate page(s) to omit the tracking:-

'ASC', 'sort_column' => 'post_title', 'hierarchical' => 1, 'exclude' => '', 'include' => '', 'meta_key' => '', 'meta_value' => '', 'authors' => '', 'child_of' => 0, 'parent' => -1, 'exclude_tree' => '', 'number' => '', 'offset' => 0, 'post_type' => 'page', 'post_status' => 'publish'); $pages = '"; echo $pages; ?>
AdLuge - All Rights Reserved