WordPress.org

Plugin Directory

Changeset 610052


Ignore:
Timestamp:
10/09/12 14:22:33 (19 months ago)
Author:
cfinke
Message:

Added Settings link to the plugins page; fixed formatting of stats tables.

Location:
wordpress-feed-statistics/trunk
Files:
2 edited

Legend:

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

    r609880 r610052  
    44Plugin Name: Feed Statistics 
    55Plugin URI: http://www.chrisfinke.com/wordpress/plugins/feed-statistics/ 
    6 Description: Compiles statistics about who is reading your blog via an RSS feed and what they're reading. 
     6Description: Compiles statistics about who is reading your blog via a feed reader and what posts they're reading. 
    77Version: 2.0pre 
    88Author: Christopher Finke 
     
    556556                    <tr> 
    557557                        <th>&nbsp;</th> 
    558                         <th style="width: 45%;"><?php esc_html_e( 'Outgoing Link', 'feed-statistics' ); ?></th> 
     558                        <th style="width: 45%; text-align: left;"><?php esc_html_e( 'Outgoing Link', 'feed-statistics' ); ?></th> 
    559559                        <th><?php esc_html_e( 'Clicks', 'feed-statistics' ); ?></th> 
    560560                        <th style="width: 35%;">&nbsp;</th> 
     
    632632                    <tr> 
    633633                        <th>&nbsp;</th> 
    634                         <th style="width: 50%;"><?php esc_html_e( 'Feed URL', 'feed-statistics' ); ?></th> 
    635                         <th><?php esc_html_e( 'Subscribers', 'feed-statistics' ); ?></th> 
     634                        <th style="width: 50%; text-align: left;"><?php esc_html_e( 'Feed URL', 'feed-statistics' ); ?></th> 
     635                        <th style="text-align: left;"><?php esc_html_e( 'Subscribers', 'feed-statistics' ); ?></th> 
    636636                        <th style="width: 35%;">&nbsp;</th> 
    637637                    </tr> 
     
    720720                    <tr> 
    721721                        <th>&nbsp;</th> 
    722                         <th style="width: 50%;"><?php esc_html_e( 'Post Title', 'feed-statistics' ); ?></th> 
    723                         <th><?php esc_html_e( 'Views', 'feed-statistics' ); ?></th> 
     722                        <th style="width: 50%; text-align: left;"><?php esc_html_e( 'Post Title', 'feed-statistics' ); ?></th> 
     723                        <th style="text-align: left;"><?php esc_html_e( 'Views', 'feed-statistics' ); ?></th> 
    724724                        <th style="width: 35%;">&nbsp;</th> 
    725725                    </tr> 
     
    889889                    <tr> 
    890890                        <th>&nbsp;</th> 
    891                         <th><?php esc_html_e( 'Reader', 'feed-statistics' ); ?></th> 
    892                         <th><?php esc_html_e( 'Subscribers', 'feed-statistics' ); ?></th> 
     891                        <th style="text-align: left;"><?php esc_html_e( 'Reader', 'feed-statistics' ); ?></th> 
     892                        <th style="text-align: left;"><?php esc_html_e( 'Subscribers', 'feed-statistics' ); ?></th> 
    893893                        <th>&nbsp;</th> 
    894894                    </tr> 
     
    940940                            <th scope="row"><?php esc_html_e( 'Subscribers', 'feed-statistics' ); ?></th> 
    941941                            <td> 
    942                                 <?php printf( esc_html( __( 'Count users who have requested a feed within the last %1$s days as subscribers. You currently have %2$s subscribers.' ) ), '<input type="text" size="2" name="feed_statistics_expiration_days" value="' . intval( get_option("feed_statistics_expiration_days") ) . '" />', number_format_i18n( FEED_STATS::how_many_subscribers() ) ); ?> 
     942                                <?php printf( esc_html__( 'Count users who have requested a feed within the last %1$s days as subscribers. You currently have %2$s subscribers.' ), '<input type="text" size="2" name="feed_statistics_expiration_days" value="' . intval( get_option("feed_statistics_expiration_days") ) . '" />', number_format_i18n( FEED_STATS::how_many_subscribers() ) ); ?> 
    943943                            </td> 
    944944                        </tr> 
     
    946946                            <th scope="row"><?php esc_html_e( 'Clickthroughs', 'feed-statistics' ); ?></th> 
    947947                            <td> 
    948                                 <p> 
    949                                     <input type="checkbox" name="feed_statistics_track_clickthroughs" value="1" <?php checked( get_option( 'feed_statistics_track_clickthroughs' ) ); ?> /> 
    950                                     <?php esc_html_e( 'Track which links your subscribers click', 'feed-statistics' ); ?> 
    951                                     <br /> 
     948                                <input type="checkbox" name="feed_statistics_track_clickthroughs" value="1" <?php checked( get_option( 'feed_statistics_track_clickthroughs' ) ); ?> /> 
     949                                <?php esc_html_e( 'Track which links your subscribers click', 'feed-statistics' ); ?> 
     950                                <p class="description"> 
    952951                                    <?php esc_html_e( 'This requires Wordpress to route all links in your posts back through your site so that clicks can be recorded.  The user shouldn\'t notice a difference.', 'feed-statistics' ); ?> 
    953952                                </p> 
     
    957956                            <th scope="row"><?php esc_html_e( 'Post views', 'feed-statistics' ); ?></th> 
    958957                            <td> 
    959                                 <p> 
    960                                     <input type="checkbox" name="feed_statistics_track_postviews" value="1" <?php checked( get_option( 'feed_statistics_track_postviews' ) ); ?> /> 
    961                                     <?php esc_html_e( 'Track individual post views', 'feed-statistics' ); ?> 
    962                                     <br /> 
     958                                <input type="checkbox" name="feed_statistics_track_postviews" value="1" <?php checked( get_option( 'feed_statistics_track_postviews' ) ); ?> /> 
     959                                <?php esc_html_e( 'Track individual post views', 'feed-statistics' ); ?> 
     960                                <p class="description"> 
    963961                                    <?php esc_html_e( 'This is done via an invisible tracking image and will track views of posts by users that use feed readers that load images from your site.', 'feed-statistics' ); ?> 
    964962                                </p> 
     
    10531051} 
    10541052 
     1053function feed_statistics_action_links( $links, $file ) { 
     1054    if ( $file == plugin_basename( dirname(__FILE__) . '/feed-statistics.php' ) ) { 
     1055        $links[] = '<a href="admin.php?page=feed-statistics.php">' . esc_html__( 'Settings', 'feed-statistics' ) .' </a>'; 
     1056    } 
     1057 
     1058    return $links; 
     1059} 
     1060 
    10551061if(function_exists('add_action')){ 
    10561062    add_action('init', array('FEED_STATS','init')); 
     
    10621068} 
    10631069 
     1070if ( function_exists( 'add_filter' ) ) { 
     1071    add_filter( 'plugin_action_links', 'feed_statistics_action_links', 10, 2 ); 
     1072} 
     1073 
    10641074if(function_exists('get_option')){ 
    10651075    if (get_option("feed_statistics_track_clickthroughs")) { 
  • wordpress-feed-statistics/trunk/readme.txt

    r609666 r610052  
    77Stable tag: 1.5 
    88 
    9 Compiles statistics about who is reading your blog via an RSS feed and what they're reading. 
     9Compiles statistics about who is reading your blog via a feed reader and what posts they're reading. 
    1010 
    1111== Description == 
Note: See TracChangeset for help on using the changeset viewer.