WordPress.org

Plugin Directory

Changeset 609643


Ignore:
Timestamp:
10/08/12 15:47:42 (19 months ago)
Author:
cfinke
Message:

Only showing the menu pages for Clickthroughs and Post Views if those settings are enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-feed-statistics/trunk/feed-statistics.php

    r383885 r609643  
    55Plugin URI: http://www.chrisfinke.com/wordpress/plugins/feed-statistics/ 
    66Description: Compiles statistics about who is reading your blog via an RSS feed and what they're reading. 
    7 Version: 1.5 
     7Version: 1.6pre 
    88Author: Christopher Finke 
    99Author URI: http://www.chrisfinke.com/ 
     
    381381        add_submenu_page(basename(__FILE__), 'Top Feeds', 'Top Feeds', 8, 'feedstats-topfeeds', 'feed_statistics_topfeeds_page'); 
    382382        add_submenu_page(basename(__FILE__), 'Feed Readers', 'Feed Readers', 8, 'feedstats-feedreaders', 'feed_statistics_feedreaders_page'); 
    383         add_submenu_page(basename(__FILE__), 'Post Views', 'Post Views', 8, 'feedstats-postviews', 'feed_statistics_postviews_page'); 
    384         add_submenu_page(basename(__FILE__), 'Clickthroughs', 'Clickthroughs', 8, 'feedstats-clickthroughs', 'feed_statistics_clickthroughs_page'); 
     383         
     384        if (get_option("feed_statistics_track_postviews")) 
     385            add_submenu_page(basename(__FILE__), 'Post Views', 'Post Views', 8, 'feedstats-postviews', 'feed_statistics_postviews_page'); 
     386         
     387        if (get_option("feed_statistics_track_clickthroughs")) 
     388            add_submenu_page(basename(__FILE__), 'Clickthroughs', 'Clickthroughs', 8, 'feedstats-clickthroughs', 'feed_statistics_clickthroughs_page'); 
    385389    } 
    386390     
Note: See TracChangeset for help on using the changeset viewer.