Changeset 6115
- Timestamp:
- 06/09/06 10:58:54 (2 years ago)
- Files:
-
- wp-stats/trunk/stats/stats-widget.php (modified) (7 diffs)
- wp-stats/trunk/stats/wp-stats.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-stats/trunk/stats/stats-widget.php
r6114 r6115 47 47 if(!empty($stats_total_options)) { 48 48 echo '<ul>'."\n"; 49 echo '<li><b>Total Stats</b /></li>'."\n";49 echo '<li><b>Total Stats</b></li>'."\n"; 50 50 echo '<li>'."\n"; 51 51 echo '<ul>'."\n"; … … 81 81 if($stats_most_options['comments'] == 1) { 82 82 echo '<ul>'."\n"; 83 echo '<li><b>'.$limit.' Most Commented</b/></li>'."\n"; 83 echo '<li><b>'.$limit.' Most Commented</b></li>'."\n"; 84 echo '<li>'."\n"; 84 85 echo '<ul>'."\n"; 85 86 get_mostcommented('', $limit, $chars); … … 91 92 if($stats_most_options['emails'] == 1) { 92 93 echo '<ul>'."\n"; 93 echo '<li><b>'.$limit.' Most Emailed</b/></li>'."\n"; 94 echo '<li><b>'.$limit.' Most Emailed</b></li>'."\n"; 95 echo '<li>'."\n"; 94 96 echo '<ul>'."\n"; 95 97 get_mostemailed('', $limit, $chars); … … 101 103 if($stats_most_options['ratings_highest'] == 1) { 102 104 echo '<ul>'."\n"; 103 echo '<li><b>'.$limit.' Highest Rated</b/></li>'."\n"; 105 echo '<li><b>'.$limit.' Highest Rated</b></li>'."\n"; 106 echo '<li>'."\n"; 104 107 echo '<ul>'."\n"; 105 108 get_highest_rated('', $limit, $chars); … … 111 114 if($stats_most_options['ratings_highest'] == 1) { 112 115 echo '<ul>'."\n"; 113 echo '<li><b>'.$limit.' Most Rated</b/></li>'."\n"; 116 echo '<li><b>'.$limit.' Most Rated</b></li>'."\n"; 117 echo '<li>'."\n"; 114 118 echo '<ul>'."\n"; 115 119 get_most_rated('', $limit, $chars); … … 121 125 if($stats_most_options['views'] == 1) { 122 126 echo '<ul>'."\n"; 123 echo '<li><b>'.$limit.' Most Viewed</b/></li>'."\n"; 127 echo '<li><b>'.$limit.' Most Viewed</b></li>'."\n"; 128 echo '<li>'."\n"; 124 129 echo '<ul>'."\n"; 125 130 get_most_viewed('', $limit, $chars); … … 131 136 echo '<ul>'."\n"; 132 137 echo '<li><a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php">My Blog Statistics</a></li>'."\n"; 133 echo '</li>'."\n";134 138 echo '</ul>'."\n"; 135 139 } wp-stats/trunk/stats/wp-stats.php
r6114 r6115 222 222 <?php 223 223 if($page > 1 && ((($page*$perpage)-($perpage-1)) < $totalcomments)) { 224 echo '< p><b>«</b> <a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.($page-1).'">Previous Page</a></p>';224 echo '<b>«</b> <a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.($page-1).'" title="« '.__('Previous Page').'">'.__('Previous Page').'</a>'."\n"; 225 225 } else { 226 echo ' <p> </p>';226 echo ' '."\n"; 227 227 } 228 228 ?> … … 231 231 <?php 232 232 if($page >= 1 && ((($page*$perpage)+1) < $totalcomments)) { 233 echo '< p><a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.($page+1).'">Next page</a> <b>»</b></p>';233 echo '<a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.($page+1).'" title="'.__('Next Page').' »">'.__('Next Page').'</a> <b>»</b>'."\n"; 234 234 } else { 235 echo ' <p> </p>';235 echo ' '."\n"; 236 236 } 237 237 ?> 238 238 </span> 239 239 </p> 240 <br style="clear: both" >240 <br style="clear: both" /> 241 241 <p align="center"> 242 Pages (<?php echo $totalpages; ?>) :242 Pages (<?php echo $totalpages; ?>) : 243 243 <?php 244 244 if ($page >= 4) { 245 echo '<a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'" >« First</a> ... ';245 echo '<a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'" title="'.__('Go to First Page').'">« '.__('First').'</a></b> ... '."\n"; 246 246 } 247 247 if($page > 1) { 248 echo ' <a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.($page-1).'" >«</a> ';248 echo ' <a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.($page-1).'" title="« '.__('Go to Page').' '.($page-1).'">«</a></b> '."\n"; 249 249 } 250 250 for($i = $page - 2 ; $i <= $page +2; $i++) { 251 251 if ($i >= 1 && $i <= $totalpages) { 252 252 if($i == $page) { 253 echo " [$i]";253 echo "<b>[$i]</b> "."\n"; 254 254 } else { 255 echo '<a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.$i.'" >'.$i.'</a> ';255 echo '<a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.$i.'" title="'.__('Page').' '.$i.'">'.$i.'</a> '."\n"; 256 256 } 257 257 } 258 258 } 259 259 if($page < $totalpages) { 260 echo ' < a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.($page+1).'">»</a> ';260 echo ' <b><a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.($page+1).'" title="'.__('Go to Page').' '.($page+1).' »">»</a></b> '."\n"; 261 261 } 262 262 if (($page+2) < $totalpages) { 263 echo ' ... < a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.$totalpages.'">Last »</a>';263 echo ' ... <b><a href="'.get_settings('siteurl').'/wp-content/plugins/stats/wp-stats.php?author='.$comment_author_link.'&page='.$totalpages.'" title="'.__('Go to Last Page').'">'.__('Last').' »</a></b>'."\n"; 264 264 } 265 265 ?> … … 268 268 } 269 269 ?> 270 <p><b>««</b> <a href="<?php get_settings('siteurl'); ?>/wp-content/plugins/stats/wp-stats.php">Back To Stats Page</a></p>270 <p><b>««</b> <a href="<?php echo get_settings('siteurl'); ?>/wp-content/plugins/stats/wp-stats.php">Back To Stats Page</a></p> 271 271 <?php 272 272 } // End If
