Changeset 7637
- Timestamp:
- 01/27/07 07:08:30 (1 year ago)
- Files:
-
- wp-stats/trunk/stats/stats-options.php (modified) (3 diffs)
- wp-stats/trunk/stats/stats-widget.php (modified) (1 diff)
- wp-stats/trunk/stats/stats.php (modified) (6 diffs)
- wp-stats/trunk/stats/wp-stats.pot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-stats/trunk/stats/stats-options.php
r7427 r7637 21 21 $base_name = plugin_basename('stats/stats-options.php'); 22 22 $base_page = 'admin.php?page='.$base_name; 23 $stats_mostlimit = intval(get_ settings('stats_mostlimit'));24 $stats_display = get_ settings('stats_display');23 $stats_mostlimit = intval(get_option('stats_mostlimit')); 24 $stats_display = get_option('stats_display'); 25 25 26 26 ### If Form Is Submitted … … 67 67 <th align="left" width="30%"><?php _e('Stats URL', 'wp-stats'); ?></th> 68 68 <td align="left"> 69 <input type="text" name="stats_url" value="<?php echo get_ settings('stats_url'); ?>" size="50" /><br /><?php _e('URL To Stats Page.<br />Example: http://www.yoursite.com/blogs/stats/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-stats'); ?>69 <input type="text" name="stats_url" value="<?php echo get_option('stats_url'); ?>" size="50" /><br /><?php _e('URL To Stats Page.<br />Example: http://www.yoursite.com/blogs/stats/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-stats'); ?> 70 70 </td> 71 71 </tr> … … 109 109 } 110 110 ?> 111 <p><strong><?php printf(__('Top %s Post Stats', 'wp-stats'), get_ settings('stats_mostlimit')); ?></strong></p>111 <p><strong><?php printf(__('Top %s Post Stats', 'wp-stats'), get_option('stats_mostlimit')); ?></strong></p> 112 112 <input type="checkbox" name="stats_display[]" value="recent_posts"<?php checked(1, $stats_display['recent_posts']); ?> /> <?php echo $stats_mostlimit ?> <?php _e('Most Recent Posts', 'wp-stats'); ?><br /> 113 113 <input type="checkbox" name="stats_display[]" value="recent_commtents"<?php checked(1, $stats_display['recent_commtents']); ?> /> <?php echo $stats_mostlimit ?> <?php _e('Most Recent Comments', 'wp-stats'); ?><br /> wp-stats/trunk/stats/stats-widget.php
r7427 r7637 135 135 if(intval($options['show_link']) == 1) { 136 136 echo '<ul>'."\n"; 137 echo '<li><a href="'.stripslashes(get_ settings('stats_url')).'">'.__('My Blog Statistics', 'wp-stats').'</a></li>'."\n";137 echo '<li><a href="'.stripslashes(get_option('stats_url')).'">'.__('My Blog Statistics', 'wp-stats').'</a></li>'."\n"; 138 138 echo '</ul>'."\n"; 139 139 } wp-stats/trunk/stats/stats.php
r7621 r7637 230 230 $posts = $wpdb->get_results("SELECT COUNT($wpdb->posts.ID) AS 'posts_total', $wpdb->users.display_name, $wpdb->users.user_nicename FROM $wpdb->posts LEFT JOIN $wpdb->users ON $wpdb->users.ID = $wpdb->posts.post_author AND user_activation_key = '' AND $where AND post_status = 'publish' GROUP BY $wpdb->posts.post_author"); 231 231 if($posts) { 232 $using_permalink = get_ settings('permalink_structure');232 $using_permalink = get_option('permalink_structure'); 233 233 $permalink = $wp_rewrite->get_author_permastruct(); 234 234 foreach ($posts as $post) { … … 238 238 $posts_total = intval($post->posts_total); 239 239 if($using_permalink) { 240 $temp .= "<li><a href=\"".get_ settings('home').$author_link."\" title=\"".sprintf(__('View posts posted by %s', 'wp-stats'), $display_name)."\">$display_name</a> ($posts_total)</li>\n";240 $temp .= "<li><a href=\"".get_option('home').$author_link."\" title=\"".sprintf(__('View posts posted by %s', 'wp-stats'), $display_name)."\">$display_name</a> ($posts_total)</li>\n"; 241 241 } else { 242 $temp .= "<li><a href=\"".get_ settings('siteurl')."/?author_name=$post_author\" title=\"".sprintf(__('View posts posted by %s', 'wp-stats'), $display_name)."\">$display_name</a> ($posts_total)</li>\n";242 $temp .= "<li><a href=\"".get_option('siteurl')."/?author_name=$post_author\" title=\"".sprintf(__('View posts posted by %s', 'wp-stats'), $display_name)."\">$display_name</a> ($posts_total)</li>\n"; 243 243 } 244 244 } … … 350 350 ### Function: Stats Page 351 351 function stats_page_link($author, $page = 0) { 352 $stats_url = get_ settings('stats_url');352 $stats_url = get_option('stats_url'); 353 353 if($page > 1) { 354 354 $page = "&stats_page=$page"; … … 373 373 $temp_stats = ''; 374 374 $temp_post = $post; 375 $stats_mostlimit = intval(get_ settings('stats_mostlimit'));376 $stats_display = get_ settings('stats_display');375 $stats_mostlimit = intval(get_option('stats_mostlimit')); 376 $stats_display = get_option('stats_display'); 377 377 378 378 // Default wp-stats.php Page … … 547 547 } else { 548 548 // Stats URL 549 $stats_url = get_ settings('stats_url');549 $stats_url = get_option('stats_url'); 550 550 // Number Of Comments Per Page 551 551 $perpage = 10; … … 667 667 add_option('stats_mostlimit', '10', 'Stats Most Limit'); 668 668 add_option('stats_display', $stats_display, 'Stats To Display'); 669 add_option('stats_url', get_ settings('siteurl').'/stats/', 'Stats URL');669 add_option('stats_url', get_option('siteurl').'/stats/', 'Stats URL'); 670 670 } 671 671 ?> wp-stats/trunk/stats/wp-stats.pot
r7606 r7637 3 3 "Project-Id-Version: WP-Stats 2.10\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-01-2 615:08+0800\n"5 "PO-Revision-Date: 2007-01-27 15:08+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@homtail.com>\n"
