Top 10 – Popular posts plugin for WordPress - Version 1.5

Version Description

  • Added support for post thumbnails feature of WordPress 2.9
Download this release

Release Info

Developer Ajay
Plugin Icon 128x128 Top 10 – Popular posts plugin for WordPress
Version 1.5
Comparing to
See all releases

Code changes from version 1.4.1 to 1.5

admin.inc.php CHANGED
@@ -17,7 +17,7 @@ function tptn_options() {
17
  $tptn_settings[title] = ($_POST['title']);
18
  $tptn_settings[title_daily] = ($_POST['title_daily']);
19
  $tptn_settings[daily_range] = ($_POST['daily_range']);
20
- $tptn_settings[limit] = ($_POST['limit']);
21
  $tptn_settings[count_disp_form] = ($_POST['count_disp_form']);
22
  $tptn_settings[add_to_content] = (($_POST['add_to_content']) ? true : false);
23
  $tptn_settings[exclude_pages] = (($_POST['exclude_pages']) ? true : false);
@@ -27,6 +27,16 @@ function tptn_options() {
27
  $tptn_settings[disp_list_count] = (($_POST['disp_list_count']) ? true : false);
28
  $tptn_settings[d_use_js] = (($_POST['d_use_js']) ? true : false);
29
  $tptn_settings[show_credit] = (($_POST['show_credit']) ? true : false);
 
 
 
 
 
 
 
 
 
 
30
 
31
  update_option('ald_tptn_settings', $tptn_settings);
32
 
@@ -93,18 +103,6 @@ function tptn_options() {
93
  <input type="textbox" name="limit" id="limit" value="<?php echo stripslashes($tptn_settings[limit]); ?>">
94
  </label>
95
  </p>
96
- <p>
97
- <label>
98
- <?php _e('Title of popular posts: ',TPTN_LOCAL_NAME); ?>
99
- <input type="textbox" name="title" id="title" value="<?php echo stripslashes($tptn_settings[title]); ?>">
100
- </label>
101
- </p>
102
- <p>
103
- <label>
104
- <?php _e('Title of daily popular posts: ',TPTN_LOCAL_NAME); ?>
105
- <input type="textbox" name="title_daily" id="title_daily" value="<?php echo stripslashes($tptn_settings[title_daily]); ?>">
106
- </label>
107
- </p>
108
  <p>
109
  <label>
110
  <?php _e('Daily Popular should contain views of how many days? ',TPTN_LOCAL_NAME); ?>
@@ -159,6 +157,81 @@ function tptn_options() {
159
  <?php _e('A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!',TPTN_LOCAL_NAME); ?>
160
  </label>
161
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  <p>
163
  <input type="submit" name="tptn_save" id="tptn_save" value="Save Options" style="border:#0c0 1px solid" />
164
  <input name="tptn_default" type="submit" id="tptn_default" value="Default Options" style="border:#f00 1px solid" onclick="if (!confirm('<?php _e('Do you want to set options to Default?',TPTN_LOCAL_NAME); ?>')) return false;" />
17
  $tptn_settings[title] = ($_POST['title']);
18
  $tptn_settings[title_daily] = ($_POST['title_daily']);
19
  $tptn_settings[daily_range] = ($_POST['daily_range']);
20
+ $tptn_settings[limit] = intval($_POST['limit']);
21
  $tptn_settings[count_disp_form] = ($_POST['count_disp_form']);
22
  $tptn_settings[add_to_content] = (($_POST['add_to_content']) ? true : false);
23
  $tptn_settings[exclude_pages] = (($_POST['exclude_pages']) ? true : false);
27
  $tptn_settings[disp_list_count] = (($_POST['disp_list_count']) ? true : false);
28
  $tptn_settings[d_use_js] = (($_POST['d_use_js']) ? true : false);
29
  $tptn_settings[show_credit] = (($_POST['show_credit']) ? true : false);
30
+
31
+ $tptn_settings[post_thumb_op] = $_POST['post_thumb_op'];
32
+ $tptn_settings[before_list] = $_POST['before_list'];
33
+ $tptn_settings[after_list] = $_POST['after_list'];
34
+ $tptn_settings[before_list_item] = $_POST['before_list_item'];
35
+ $tptn_settings[after_list_item] = $_POST['after_list_item'];
36
+ $tptn_settings[thumb_meta] = $_POST['thumb_meta'];
37
+ $tptn_settings[thumb_default] = $_POST['thumb_default'];
38
+ $tptn_settings[thumb_height] = intval($_POST['thumb_height']);
39
+ $tptn_settings[thumb_width] = intval($_POST['thumb_width']);
40
 
41
  update_option('ald_tptn_settings', $tptn_settings);
42
 
103
  <input type="textbox" name="limit" id="limit" value="<?php echo stripslashes($tptn_settings[limit]); ?>">
104
  </label>
105
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
106
  <p>
107
  <label>
108
  <?php _e('Daily Popular should contain views of how many days? ',TPTN_LOCAL_NAME); ?>
157
  <?php _e('A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!',TPTN_LOCAL_NAME); ?>
158
  </label>
159
  </p>
160
+ <h4>
161
+ <?php _e('Output Options:',TPTN_LOCAL_NAME); ?>
162
+ </h4>
163
+ <p>
164
+ <label>
165
+ <?php _e('Title of popular posts: ',TPTN_LOCAL_NAME); ?>
166
+ <input type="textbox" name="title" id="title" value="<?php echo stripslashes($tptn_settings[title]); ?>">
167
+ </label>
168
+ </p>
169
+ <p>
170
+ <label>
171
+ <?php _e('Title of daily popular posts: ',TPTN_LOCAL_NAME); ?>
172
+ <input type="textbox" name="title_daily" id="title_daily" value="<?php echo stripslashes($tptn_settings[title_daily]); ?>">
173
+ </label>
174
+ </p>
175
+ <h4><?php _e('Customize the output:',TPTN_LOCAL_NAME); ?></h4>
176
+ <p>
177
+ <label>
178
+ <?php _e('HTML to display before the list of posts: ',TPTN_LOCAL_NAME); ?>
179
+ <input type="textbox" name="before_list" id="before_list" value="<?php echo attribute_escape(stripslashes($tptn_settings[before_list])); ?>">
180
+ </label>
181
+ </p>
182
+ <p>
183
+ <label>
184
+ <?php _e('HTML to display before each list item: ',TPTN_LOCAL_NAME); ?>
185
+ <input type="textbox" name="before_list_item" id="before_list_item" value="<?php echo attribute_escape(stripslashes($tptn_settings[before_list_item])); ?>">
186
+ </label>
187
+ </p>
188
+ <p>
189
+ <label>
190
+ <?php _e('HTML to display after each list item: ',TPTN_LOCAL_NAME); ?>
191
+ <input type="textbox" name="after_list_item" id="after_list_item" value="<?php echo attribute_escape(stripslashes($tptn_settings[after_list_item])); ?>">
192
+ </label>
193
+ </p>
194
+ <p>
195
+ <label>
196
+ <?php _e('HTML to display after the list of posts: ',TPTN_LOCAL_NAME); ?>
197
+ <input type="textbox" name="after_list" id="after_list" value="<?php echo attribute_escape(stripslashes($tptn_settings[after_list])); ?>">
198
+ </label>
199
+ </p>
200
+ <h4><?php _e('Post thumbnail options:',TPTN_LOCAL_NAME); ?></h4>
201
+ <p>
202
+ <label>
203
+ <input type="radio" name="post_thumb_op" value="inline" id="post_thumb_op_0" <?php if ($tptn_settings['post_thumb_op']=='inline') echo 'checked="checked"' ?> />
204
+ <?php _e('Display thumbnails inline with posts',TPTN_LOCAL_NAME); ?></label>
205
+ <br />
206
+ <label>
207
+ <input type="radio" name="post_thumb_op" value="thumbs_only" id="post_thumb_op_1" <?php if ($tptn_settings['post_thumb_op']=='thumbs_only') echo 'checked="checked"' ?> />
208
+ <?php _e('Display only thumbnails, no text',TPTN_LOCAL_NAME); ?></label>
209
+ <br />
210
+ <label>
211
+ <input type="radio" name="post_thumb_op" value="text_only" id="post_thumb_op_2" <?php if ($tptn_settings['post_thumb_op']=='text_only') echo 'checked="checked"' ?> />
212
+ <?php _e('Do not display thumbnails, only text.',TPTN_LOCAL_NAME); ?></label>
213
+ <br />
214
+ </p>
215
+ <p>
216
+ <label>
217
+ <?php _e('Post thumbnail meta field (the meta should point contain the image source): ',TPTN_LOCAL_NAME); ?>
218
+ <input type="textbox" name="thumb_meta" id="thumb_meta" value="<?php echo attribute_escape(stripslashes($tptn_settings[thumb_meta])); ?>">
219
+ </label>
220
+ </p>
221
+ <p><strong><?php _e('Thumbnail dimensions:',TPTN_LOCAL_NAME); ?></strong><br />
222
+ <label>
223
+ <?php _e('Max width: ',TPTN_LOCAL_NAME); ?>
224
+ <input type="textbox" name="thumb_width" id="thumb_width" value="<?php echo attribute_escape(stripslashes($tptn_settings[thumb_width])); ?>" style="width:30px">px
225
+ </label>
226
+ <br />
227
+ <label>
228
+ <?php _e('Max height: ',TPTN_LOCAL_NAME); ?>
229
+ <input type="textbox" name="thumb_height" id="thumb_height" value="<?php echo attribute_escape(stripslashes($tptn_settings[thumb_height])); ?>" style="width:30px">px
230
+ </label>
231
+ </p>
232
+ <p><?php _e('The plugin will first check if the post contains a thumbnail. If it doesn\'t then it will check the meta field. If this is not available, then it will show the default image as specified below:',TPTN_LOCAL_NAME); ?>
233
+ <input type="textbox" name="thumb_default" id="thumb_default" value="<?php echo attribute_escape(stripslashes($tptn_settings[thumb_default])); ?>" style="width:500px">
234
+ </p>
235
  <p>
236
  <input type="submit" name="tptn_save" id="tptn_save" value="Save Options" style="border:#0c0 1px solid" />
237
  <input name="tptn_default" type="submit" id="tptn_default" value="Default Options" style="border:#f00 1px solid" onclick="if (!confirm('<?php _e('Do you want to set options to Default?',TPTN_LOCAL_NAME); ?>')) return false;" />
default.png ADDED
Binary file
languages/tptn-en_US.mo CHANGED
Binary file
languages/tptn-en_US.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Top 10\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-07-26 23:48+0530\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
8
  "Language-Team: Ajay D'Souza <me@ajaydsouza.com>\n"
@@ -14,163 +14,259 @@ msgstr ""
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: admin.inc.php:33
18
  msgid "Options saved successfully."
19
  msgstr ""
20
 
21
- #: admin.inc.php:42
22
  msgid "Options set to Default."
23
  msgstr ""
24
 
25
- #: admin.inc.php:53
 
 
 
 
 
 
 
 
26
  msgid "Support the Development"
27
  msgstr ""
28
 
29
- #: admin.inc.php:57
30
  msgid "If you find "
31
  msgstr ""
32
 
33
- #: admin.inc.php:59
34
  msgid "useful, please do"
35
  msgstr ""
36
 
37
- #: admin.inc.php:60
38
  msgid "drop in your contribution"
39
  msgstr ""
40
 
41
- #: admin.inc.php:61
42
  msgid "Some reasons why you should."
43
  msgstr ""
44
 
45
- #: admin.inc.php:68
46
  msgid "Options:"
47
  msgstr ""
48
 
49
- #: admin.inc.php:73
50
  msgid "Format to display the count in: "
51
  msgstr ""
52
 
53
- #: admin.inc.php:77
54
  msgid "Use <code>%totalcount%</code> to display the total count and <code>%dailycount%</code> to display the daily count. e.g. the default options displays <code>(Visited 123 times, 23 visits today)</code>"
55
  msgstr ""
56
 
57
- #: admin.inc.php:80
58
  msgid "Number of popular posts to display: "
59
  msgstr ""
60
 
61
- #: admin.inc.php:86
62
- msgid "Title of popular posts: "
63
- msgstr ""
64
-
65
- #: admin.inc.php:92
66
- msgid "Title of daily popular posts: "
67
- msgstr ""
68
-
69
- #: admin.inc.php:98
70
  msgid "Daily Popular should contain views of how many days? "
71
  msgstr ""
72
 
73
- #: admin.inc.php:105
74
  msgid "Exclude Pages in display of Popular Posts? Number of views on Pages will continue to be counted."
75
  msgstr ""
76
 
77
- #: admin.inc.php:111
78
  msgid "Display number of views on posts?"
79
  msgstr ""
80
 
81
- #: admin.inc.php:117
82
  msgid "Display number of views on pages?"
83
  msgstr ""
84
 
85
- #: admin.inc.php:123
86
  msgid "Track visits of authors on their own posts?"
87
  msgstr ""
88
 
89
- #: admin.inc.php:129
90
  msgid "Display number of page views in popular lists?"
91
  msgstr ""
92
 
93
- #: admin.inc.php:135
94
  msgid "Force daily posts' list to be dynamic? This options uses JavaScript to load the post and can increase your page load time"
95
  msgstr ""
96
 
97
- #: admin.inc.php:141
98
  msgid "Display page views on Edit posts/pages in WP-Admin? An extra column is added with the count"
99
  msgstr ""
100
 
101
- #: admin.inc.php:147
102
  msgid "A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!"
103
  msgstr ""
104
 
105
- #: admin.inc.php:152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  msgid "Do you want to set options to Default?"
107
  msgstr ""
108
 
109
- #: admin.inc.php:168
110
- #: admin.inc.php:192
111
- #: admin.inc.php:364
112
- #: top-10.php:354
113
- #: top-10.php:373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  msgid "Popular Posts"
115
  msgstr ""
116
 
117
- #: admin.inc.php:168
118
  msgid "Daily Popular Posts"
119
  msgstr ""
120
 
121
- #: admin.inc.php:191
122
- #: admin.inc.php:192
123
  msgid "Top 10"
124
  msgstr ""
125
 
126
- #: admin.inc.php:272
127
  msgid "Results"
128
  msgstr ""
129
 
130
- #: admin.inc.php:274
131
- #: admin.inc.php:280
132
  msgid "of"
133
  msgstr ""
134
 
135
- #: admin.inc.php:278
136
  msgid "Page"
137
  msgstr ""
138
 
139
- #: admin.inc.php:292
140
  msgid "View Daily Popular Posts"
141
  msgstr ""
142
 
143
- #: admin.inc.php:296
144
  msgid "View Overall Popular Posts"
145
  msgstr ""
146
 
147
- #: admin.inc.php:300
148
  msgid "Results per-page:"
149
  msgstr ""
150
 
151
- #: admin.inc.php:324
152
  msgid "Previous"
153
  msgstr ""
154
 
155
- #: admin.inc.php:342
156
  msgid "Next"
157
  msgstr ""
158
 
159
- #: admin.inc.php:365
160
- #: top-10.php:303
161
- #: top-10.php:374
162
  msgid "Daily Popular"
163
  msgstr ""
164
 
165
- #: admin.inc.php:376
166
  msgid "Total / Today's Views"
167
  msgstr ""
168
 
169
- #: top-10.php:156
170
  msgid "<h3>Popular Posts</h3>"
171
  msgstr ""
172
 
173
- #: top-10.php:157
174
  msgid "<h3>Daily Popular</h3>"
175
  msgstr ""
176
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: Top 10\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-12-25 17:35+0530\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
8
  "Language-Team: Ajay D'Souza <me@ajaydsouza.com>\n"
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: admin.inc.php:43
18
  msgid "Options saved successfully."
19
  msgstr ""
20
 
21
+ #: admin.inc.php:52
22
  msgid "Options set to Default."
23
  msgstr ""
24
 
25
+ #: admin.inc.php:58
26
+ msgid "Top 10 popular posts reset"
27
+ msgstr ""
28
+
29
+ #: admin.inc.php:64
30
+ msgid "Top 10 daily popular posts reset"
31
+ msgstr ""
32
+
33
+ #: admin.inc.php:75
34
  msgid "Support the Development"
35
  msgstr ""
36
 
37
+ #: admin.inc.php:79
38
  msgid "If you find "
39
  msgstr ""
40
 
41
+ #: admin.inc.php:81
42
  msgid "useful, please do"
43
  msgstr ""
44
 
45
+ #: admin.inc.php:82
46
  msgid "drop in your contribution"
47
  msgstr ""
48
 
49
+ #: admin.inc.php:83
50
  msgid "Some reasons why you should."
51
  msgstr ""
52
 
53
+ #: admin.inc.php:90
54
  msgid "Options:"
55
  msgstr ""
56
 
57
+ #: admin.inc.php:95
58
  msgid "Format to display the count in: "
59
  msgstr ""
60
 
61
+ #: admin.inc.php:99
62
  msgid "Use <code>%totalcount%</code> to display the total count and <code>%dailycount%</code> to display the daily count. e.g. the default options displays <code>(Visited 123 times, 23 visits today)</code>"
63
  msgstr ""
64
 
65
+ #: admin.inc.php:102
66
  msgid "Number of popular posts to display: "
67
  msgstr ""
68
 
69
+ #: admin.inc.php:108
 
 
 
 
 
 
 
 
70
  msgid "Daily Popular should contain views of how many days? "
71
  msgstr ""
72
 
73
+ #: admin.inc.php:115
74
  msgid "Exclude Pages in display of Popular Posts? Number of views on Pages will continue to be counted."
75
  msgstr ""
76
 
77
+ #: admin.inc.php:121
78
  msgid "Display number of views on posts?"
79
  msgstr ""
80
 
81
+ #: admin.inc.php:127
82
  msgid "Display number of views on pages?"
83
  msgstr ""
84
 
85
+ #: admin.inc.php:133
86
  msgid "Track visits of authors on their own posts?"
87
  msgstr ""
88
 
89
+ #: admin.inc.php:139
90
  msgid "Display number of page views in popular lists?"
91
  msgstr ""
92
 
93
+ #: admin.inc.php:145
94
  msgid "Force daily posts' list to be dynamic? This options uses JavaScript to load the post and can increase your page load time"
95
  msgstr ""
96
 
97
+ #: admin.inc.php:151
98
  msgid "Display page views on Edit posts/pages in WP-Admin? An extra column is added with the count"
99
  msgstr ""
100
 
101
+ #: admin.inc.php:157
102
  msgid "A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!"
103
  msgstr ""
104
 
105
+ #: admin.inc.php:161
106
+ msgid "Output Options:"
107
+ msgstr ""
108
+
109
+ #: admin.inc.php:165
110
+ msgid "Title of popular posts: "
111
+ msgstr ""
112
+
113
+ #: admin.inc.php:171
114
+ msgid "Title of daily popular posts: "
115
+ msgstr ""
116
+
117
+ #: admin.inc.php:175
118
+ msgid "Customize the output:"
119
+ msgstr ""
120
+
121
+ #: admin.inc.php:178
122
+ msgid "HTML to display before the list of posts: "
123
+ msgstr ""
124
+
125
+ #: admin.inc.php:184
126
+ msgid "HTML to display before each list item: "
127
+ msgstr ""
128
+
129
+ #: admin.inc.php:190
130
+ msgid "HTML to display after each list item: "
131
+ msgstr ""
132
+
133
+ #: admin.inc.php:196
134
+ msgid "HTML to display after the list of posts: "
135
+ msgstr ""
136
+
137
+ #: admin.inc.php:200
138
+ msgid "Post thumbnail options:"
139
+ msgstr ""
140
+
141
+ #: admin.inc.php:204
142
+ msgid "Display thumbnails inline with posts"
143
+ msgstr ""
144
+
145
+ #: admin.inc.php:208
146
+ msgid "Display only thumbnails, no text"
147
+ msgstr ""
148
+
149
+ #: admin.inc.php:212
150
+ msgid "Do not display thumbnails, only text."
151
+ msgstr ""
152
+
153
+ #: admin.inc.php:217
154
+ msgid "Post thumbnail meta field (the meta should point contain the image source): "
155
+ msgstr ""
156
+
157
+ #: admin.inc.php:221
158
+ msgid "Thumbnail dimensions:"
159
+ msgstr ""
160
+
161
+ #: admin.inc.php:223
162
+ msgid "Max width: "
163
+ msgstr ""
164
+
165
+ #: admin.inc.php:228
166
+ msgid "Max height: "
167
+ msgstr ""
168
+
169
+ #: admin.inc.php:232
170
+ msgid "The plugin will first check if the post contains a thumbnail. If it doesn't then it will check the meta field. If this is not available, then it will show the default image as specified below:"
171
+ msgstr ""
172
+
173
+ #: admin.inc.php:237
174
  msgid "Do you want to set options to Default?"
175
  msgstr ""
176
 
177
+ #: admin.inc.php:240
178
+ msgid "Reset count"
179
+ msgstr ""
180
+
181
+ #: admin.inc.php:243
182
+ msgid "This cannot be reversed. Make sure that your database has been backed up before proceeding"
183
+ msgstr ""
184
+
185
+ #: admin.inc.php:246
186
+ msgid "Are you sure you want to reset the popular posts?"
187
+ msgstr ""
188
+
189
+ #: admin.inc.php:247
190
+ msgid "Are you sure you want to reset the daily popular posts?"
191
+ msgstr ""
192
+
193
+ #: admin.inc.php:263
194
+ #: admin.inc.php:287
195
+ #: admin.inc.php:459
196
+ #: top-10.php:218
197
+ #: top-10.php:378
198
  msgid "Popular Posts"
199
  msgstr ""
200
 
201
+ #: admin.inc.php:263
202
  msgid "Daily Popular Posts"
203
  msgstr ""
204
 
205
+ #: admin.inc.php:286
206
+ #: admin.inc.php:287
207
  msgid "Top 10"
208
  msgstr ""
209
 
210
+ #: admin.inc.php:367
211
  msgid "Results"
212
  msgstr ""
213
 
214
+ #: admin.inc.php:369
215
+ #: admin.inc.php:375
216
  msgid "of"
217
  msgstr ""
218
 
219
+ #: admin.inc.php:373
220
  msgid "Page"
221
  msgstr ""
222
 
223
+ #: admin.inc.php:387
224
  msgid "View Daily Popular Posts"
225
  msgstr ""
226
 
227
+ #: admin.inc.php:391
228
  msgid "View Overall Popular Posts"
229
  msgstr ""
230
 
231
+ #: admin.inc.php:395
232
  msgid "Results per-page:"
233
  msgstr ""
234
 
235
+ #: admin.inc.php:419
236
  msgid "Previous"
237
  msgstr ""
238
 
239
+ #: admin.inc.php:437
240
  msgid "Next"
241
  msgstr ""
242
 
243
+ #: admin.inc.php:460
244
+ #: top-10.php:197
245
+ #: top-10.php:379
246
  msgid "Daily Popular"
247
  msgstr ""
248
 
249
+ #: admin.inc.php:471
250
  msgid "Total / Today's Views"
251
  msgstr ""
252
 
253
+ #: top-10.php:229
254
  msgid "<h3>Popular Posts</h3>"
255
  msgstr ""
256
 
257
+ #: top-10.php:230
258
  msgid "<h3>Daily Popular</h3>"
259
  msgstr ""
260
 
261
+ #: top-10.php:393
262
+ msgid "Settings"
263
+ msgstr ""
264
+
265
+ #: top-10.php:394
266
+ msgid "Support"
267
+ msgstr ""
268
+
269
+ #: top-10.php:395
270
+ msgid "Donate"
271
+ msgstr ""
272
+
languages/tptn-en_US.pot CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Top 10\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-07-26 23:48+0530\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
8
  "Language-Team: Ajay D'Souza <me@ajaydsouza.com>\n"
@@ -14,163 +14,259 @@ msgstr ""
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: admin.inc.php:33
18
  msgid "Options saved successfully."
19
  msgstr ""
20
 
21
- #: admin.inc.php:42
22
  msgid "Options set to Default."
23
  msgstr ""
24
 
25
- #: admin.inc.php:53
 
 
 
 
 
 
 
 
26
  msgid "Support the Development"
27
  msgstr ""
28
 
29
- #: admin.inc.php:57
30
  msgid "If you find "
31
  msgstr ""
32
 
33
- #: admin.inc.php:59
34
  msgid "useful, please do"
35
  msgstr ""
36
 
37
- #: admin.inc.php:60
38
  msgid "drop in your contribution"
39
  msgstr ""
40
 
41
- #: admin.inc.php:61
42
  msgid "Some reasons why you should."
43
  msgstr ""
44
 
45
- #: admin.inc.php:68
46
  msgid "Options:"
47
  msgstr ""
48
 
49
- #: admin.inc.php:73
50
  msgid "Format to display the count in: "
51
  msgstr ""
52
 
53
- #: admin.inc.php:77
54
  msgid "Use <code>%totalcount%</code> to display the total count and <code>%dailycount%</code> to display the daily count. e.g. the default options displays <code>(Visited 123 times, 23 visits today)</code>"
55
  msgstr ""
56
 
57
- #: admin.inc.php:80
58
  msgid "Number of popular posts to display: "
59
  msgstr ""
60
 
61
- #: admin.inc.php:86
62
- msgid "Title of popular posts: "
63
- msgstr ""
64
-
65
- #: admin.inc.php:92
66
- msgid "Title of daily popular posts: "
67
- msgstr ""
68
-
69
- #: admin.inc.php:98
70
  msgid "Daily Popular should contain views of how many days? "
71
  msgstr ""
72
 
73
- #: admin.inc.php:105
74
  msgid "Exclude Pages in display of Popular Posts? Number of views on Pages will continue to be counted."
75
  msgstr ""
76
 
77
- #: admin.inc.php:111
78
  msgid "Display number of views on posts?"
79
  msgstr ""
80
 
81
- #: admin.inc.php:117
82
  msgid "Display number of views on pages?"
83
  msgstr ""
84
 
85
- #: admin.inc.php:123
86
  msgid "Track visits of authors on their own posts?"
87
  msgstr ""
88
 
89
- #: admin.inc.php:129
90
  msgid "Display number of page views in popular lists?"
91
  msgstr ""
92
 
93
- #: admin.inc.php:135
94
  msgid "Force daily posts' list to be dynamic? This options uses JavaScript to load the post and can increase your page load time"
95
  msgstr ""
96
 
97
- #: admin.inc.php:141
98
  msgid "Display page views on Edit posts/pages in WP-Admin? An extra column is added with the count"
99
  msgstr ""
100
 
101
- #: admin.inc.php:147
102
  msgid "A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!"
103
  msgstr ""
104
 
105
- #: admin.inc.php:152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  msgid "Do you want to set options to Default?"
107
  msgstr ""
108
 
109
- #: admin.inc.php:168
110
- #: admin.inc.php:192
111
- #: admin.inc.php:364
112
- #: top-10.php:354
113
- #: top-10.php:373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  msgid "Popular Posts"
115
  msgstr ""
116
 
117
- #: admin.inc.php:168
118
  msgid "Daily Popular Posts"
119
  msgstr ""
120
 
121
- #: admin.inc.php:191
122
- #: admin.inc.php:192
123
  msgid "Top 10"
124
  msgstr ""
125
 
126
- #: admin.inc.php:272
127
  msgid "Results"
128
  msgstr ""
129
 
130
- #: admin.inc.php:274
131
- #: admin.inc.php:280
132
  msgid "of"
133
  msgstr ""
134
 
135
- #: admin.inc.php:278
136
  msgid "Page"
137
  msgstr ""
138
 
139
- #: admin.inc.php:292
140
  msgid "View Daily Popular Posts"
141
  msgstr ""
142
 
143
- #: admin.inc.php:296
144
  msgid "View Overall Popular Posts"
145
  msgstr ""
146
 
147
- #: admin.inc.php:300
148
  msgid "Results per-page:"
149
  msgstr ""
150
 
151
- #: admin.inc.php:324
152
  msgid "Previous"
153
  msgstr ""
154
 
155
- #: admin.inc.php:342
156
  msgid "Next"
157
  msgstr ""
158
 
159
- #: admin.inc.php:365
160
- #: top-10.php:303
161
- #: top-10.php:374
162
  msgid "Daily Popular"
163
  msgstr ""
164
 
165
- #: admin.inc.php:376
166
  msgid "Total / Today's Views"
167
  msgstr ""
168
 
169
- #: top-10.php:156
170
  msgid "<h3>Popular Posts</h3>"
171
  msgstr ""
172
 
173
- #: top-10.php:157
174
  msgid "<h3>Daily Popular</h3>"
175
  msgstr ""
176
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: Top 10\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-12-25 17:35+0530\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
8
  "Language-Team: Ajay D'Souza <me@ajaydsouza.com>\n"
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: admin.inc.php:43
18
  msgid "Options saved successfully."
19
  msgstr ""
20
 
21
+ #: admin.inc.php:52
22
  msgid "Options set to Default."
23
  msgstr ""
24
 
25
+ #: admin.inc.php:58
26
+ msgid "Top 10 popular posts reset"
27
+ msgstr ""
28
+
29
+ #: admin.inc.php:64
30
+ msgid "Top 10 daily popular posts reset"
31
+ msgstr ""
32
+
33
+ #: admin.inc.php:75
34
  msgid "Support the Development"
35
  msgstr ""
36
 
37
+ #: admin.inc.php:79
38
  msgid "If you find "
39
  msgstr ""
40
 
41
+ #: admin.inc.php:81
42
  msgid "useful, please do"
43
  msgstr ""
44
 
45
+ #: admin.inc.php:82
46
  msgid "drop in your contribution"
47
  msgstr ""
48
 
49
+ #: admin.inc.php:83
50
  msgid "Some reasons why you should."
51
  msgstr ""
52
 
53
+ #: admin.inc.php:90
54
  msgid "Options:"
55
  msgstr ""
56
 
57
+ #: admin.inc.php:95
58
  msgid "Format to display the count in: "
59
  msgstr ""
60
 
61
+ #: admin.inc.php:99
62
  msgid "Use <code>%totalcount%</code> to display the total count and <code>%dailycount%</code> to display the daily count. e.g. the default options displays <code>(Visited 123 times, 23 visits today)</code>"
63
  msgstr ""
64
 
65
+ #: admin.inc.php:102
66
  msgid "Number of popular posts to display: "
67
  msgstr ""
68
 
69
+ #: admin.inc.php:108
 
 
 
 
 
 
 
 
70
  msgid "Daily Popular should contain views of how many days? "
71
  msgstr ""
72
 
73
+ #: admin.inc.php:115
74
  msgid "Exclude Pages in display of Popular Posts? Number of views on Pages will continue to be counted."
75
  msgstr ""
76
 
77
+ #: admin.inc.php:121
78
  msgid "Display number of views on posts?"
79
  msgstr ""
80
 
81
+ #: admin.inc.php:127
82
  msgid "Display number of views on pages?"
83
  msgstr ""
84
 
85
+ #: admin.inc.php:133
86
  msgid "Track visits of authors on their own posts?"
87
  msgstr ""
88
 
89
+ #: admin.inc.php:139
90
  msgid "Display number of page views in popular lists?"
91
  msgstr ""
92
 
93
+ #: admin.inc.php:145
94
  msgid "Force daily posts' list to be dynamic? This options uses JavaScript to load the post and can increase your page load time"
95
  msgstr ""
96
 
97
+ #: admin.inc.php:151
98
  msgid "Display page views on Edit posts/pages in WP-Admin? An extra column is added with the count"
99
  msgstr ""
100
 
101
+ #: admin.inc.php:157
102
  msgid "A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!"
103
  msgstr ""
104
 
105
+ #: admin.inc.php:161
106
+ msgid "Output Options:"
107
+ msgstr ""
108
+
109
+ #: admin.inc.php:165
110
+ msgid "Title of popular posts: "
111
+ msgstr ""
112
+
113
+ #: admin.inc.php:171
114
+ msgid "Title of daily popular posts: "
115
+ msgstr ""
116
+
117
+ #: admin.inc.php:175
118
+ msgid "Customize the output:"
119
+ msgstr ""
120
+
121
+ #: admin.inc.php:178
122
+ msgid "HTML to display before the list of posts: "
123
+ msgstr ""
124
+
125
+ #: admin.inc.php:184
126
+ msgid "HTML to display before each list item: "
127
+ msgstr ""
128
+
129
+ #: admin.inc.php:190
130
+ msgid "HTML to display after each list item: "
131
+ msgstr ""
132
+
133
+ #: admin.inc.php:196
134
+ msgid "HTML to display after the list of posts: "
135
+ msgstr ""
136
+
137
+ #: admin.inc.php:200
138
+ msgid "Post thumbnail options:"
139
+ msgstr ""
140
+
141
+ #: admin.inc.php:204
142
+ msgid "Display thumbnails inline with posts"
143
+ msgstr ""
144
+
145
+ #: admin.inc.php:208
146
+ msgid "Display only thumbnails, no text"
147
+ msgstr ""
148
+
149
+ #: admin.inc.php:212
150
+ msgid "Do not display thumbnails, only text."
151
+ msgstr ""
152
+
153
+ #: admin.inc.php:217
154
+ msgid "Post thumbnail meta field (the meta should point contain the image source): "
155
+ msgstr ""
156
+
157
+ #: admin.inc.php:221
158
+ msgid "Thumbnail dimensions:"
159
+ msgstr ""
160
+
161
+ #: admin.inc.php:223
162
+ msgid "Max width: "
163
+ msgstr ""
164
+
165
+ #: admin.inc.php:228
166
+ msgid "Max height: "
167
+ msgstr ""
168
+
169
+ #: admin.inc.php:232
170
+ msgid "The plugin will first check if the post contains a thumbnail. If it doesn't then it will check the meta field. If this is not available, then it will show the default image as specified below:"
171
+ msgstr ""
172
+
173
+ #: admin.inc.php:237
174
  msgid "Do you want to set options to Default?"
175
  msgstr ""
176
 
177
+ #: admin.inc.php:240
178
+ msgid "Reset count"
179
+ msgstr ""
180
+
181
+ #: admin.inc.php:243
182
+ msgid "This cannot be reversed. Make sure that your database has been backed up before proceeding"
183
+ msgstr ""
184
+
185
+ #: admin.inc.php:246
186
+ msgid "Are you sure you want to reset the popular posts?"
187
+ msgstr ""
188
+
189
+ #: admin.inc.php:247
190
+ msgid "Are you sure you want to reset the daily popular posts?"
191
+ msgstr ""
192
+
193
+ #: admin.inc.php:263
194
+ #: admin.inc.php:287
195
+ #: admin.inc.php:459
196
+ #: top-10.php:218
197
+ #: top-10.php:378
198
  msgid "Popular Posts"
199
  msgstr ""
200
 
201
+ #: admin.inc.php:263
202
  msgid "Daily Popular Posts"
203
  msgstr ""
204
 
205
+ #: admin.inc.php:286
206
+ #: admin.inc.php:287
207
  msgid "Top 10"
208
  msgstr ""
209
 
210
+ #: admin.inc.php:367
211
  msgid "Results"
212
  msgstr ""
213
 
214
+ #: admin.inc.php:369
215
+ #: admin.inc.php:375
216
  msgid "of"
217
  msgstr ""
218
 
219
+ #: admin.inc.php:373
220
  msgid "Page"
221
  msgstr ""
222
 
223
+ #: admin.inc.php:387
224
  msgid "View Daily Popular Posts"
225
  msgstr ""
226
 
227
+ #: admin.inc.php:391
228
  msgid "View Overall Popular Posts"
229
  msgstr ""
230
 
231
+ #: admin.inc.php:395
232
  msgid "Results per-page:"
233
  msgstr ""
234
 
235
+ #: admin.inc.php:419
236
  msgid "Previous"
237
  msgstr ""
238
 
239
+ #: admin.inc.php:437
240
  msgid "Next"
241
  msgstr ""
242
 
243
+ #: admin.inc.php:460
244
+ #: top-10.php:197
245
+ #: top-10.php:379
246
  msgid "Daily Popular"
247
  msgstr ""
248
 
249
+ #: admin.inc.php:471
250
  msgid "Total / Today's Views"
251
  msgstr ""
252
 
253
+ #: top-10.php:229
254
  msgid "<h3>Popular Posts</h3>"
255
  msgstr ""
256
 
257
+ #: top-10.php:230
258
  msgid "<h3>Daily Popular</h3>"
259
  msgstr ""
260
 
261
+ #: top-10.php:393
262
+ msgid "Settings"
263
+ msgstr ""
264
+
265
+ #: top-10.php:394
266
+ msgid "Support"
267
+ msgstr ""
268
+
269
+ #: top-10.php:395
270
+ msgid "Donate"
271
+ msgstr ""
272
+
languages/tptn-it_IT.mo CHANGED
Binary file
languages/tptn-it_IT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Top 10 in italiano\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-07-26 23:48+0530\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
8
  "Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
@@ -15,163 +15,259 @@ msgstr ""
15
  "X-Poedit-Country: ITALY\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
 
18
- #: admin.inc.php:33
19
  msgid "Options saved successfully."
20
  msgstr "Le opzioni sono state salvate con successo."
21
 
22
- #: admin.inc.php:42
23
  msgid "Options set to Default."
24
  msgstr "Opzioni impostate alle predefinite."
25
 
26
- #: admin.inc.php:53
 
 
 
 
 
 
 
 
27
  msgid "Support the Development"
28
  msgstr "Sostieni lo sviluppo"
29
 
30
- #: admin.inc.php:57
31
  msgid "If you find "
32
  msgstr "Avessi trovato utile il mio"
33
 
34
- #: admin.inc.php:59
35
  msgid "useful, please do"
36
  msgstr ", effettua"
37
 
38
- #: admin.inc.php:60
39
  msgid "drop in your contribution"
40
  msgstr "una donazione"
41
 
42
- #: admin.inc.php:61
43
  msgid "Some reasons why you should."
44
  msgstr "alcuni motivi affinché tu lo faccia"
45
 
46
- #: admin.inc.php:68
47
  msgid "Options:"
48
  msgstr "Opzioni:"
49
 
50
- #: admin.inc.php:73
51
  msgid "Format to display the count in: "
52
  msgstr "Formato per il conteggio:"
53
 
54
- #: admin.inc.php:77
55
  msgid "Use <code>%totalcount%</code> to display the total count and <code>%dailycount%</code> to display the daily count. e.g. the default options displays <code>(Visited 123 times, 23 visits today)</code>"
56
  msgstr "Utilizza <code>%totalcount%</code> per potere mostrare il computo totale e <code>%dailycount%</code> per visualizzare quello del giorno corrente. Ad esempio, le opzioni predefinite verranno mostrate online con un <code>(letto 123 volte, 23 visite odierne)</code>"
57
 
58
- #: admin.inc.php:80
59
  msgid "Number of popular posts to display: "
60
  msgstr "Numero degli articoli più popolari da mostrare:"
61
 
62
- #: admin.inc.php:86
63
- msgid "Title of popular posts: "
64
- msgstr "Titolo per gli articoli più popolari:"
65
-
66
- #: admin.inc.php:92
67
- msgid "Title of daily popular posts: "
68
- msgstr "Titolo per gli articoli più popolari del giorno:"
69
-
70
- #: admin.inc.php:98
71
  msgid "Daily Popular should contain views of how many days? "
72
  msgstr "Quanti giorni desideri siano considerati per il computo delle visualizzazioni per articoli più popolari del giorno?"
73
 
74
- #: admin.inc.php:105
75
  msgid "Exclude Pages in display of Popular Posts? Number of views on Pages will continue to be counted."
76
  msgstr "Desideri escludere le pagine dalla visualizzazione per gli articoli più popolari? Il numero delle visualizzazioni continuerà ad essere comunque aggiornato."
77
 
78
- #: admin.inc.php:111
79
  msgid "Display number of views on posts?"
80
  msgstr "Desideri mostrare il numero delle visualizzazioni negli articoli?"
81
 
82
- #: admin.inc.php:117
83
  msgid "Display number of views on pages?"
84
  msgstr "Desideri mostrare il numero delle visualizzazioni nelle pagine?"
85
 
86
- #: admin.inc.php:123
87
  msgid "Track visits of authors on their own posts?"
88
  msgstr "Desideri che vengano conteggiate anche le visite da parte dell'amministatore del sito?"
89
 
90
- #: admin.inc.php:129
91
  msgid "Display number of page views in popular lists?"
92
  msgstr "Desideri mostrare il numero delle visualizzazioni per pagina nella lista dei più popolari?"
93
 
94
- #: admin.inc.php:135
95
  msgid "Force daily posts' list to be dynamic? This options uses JavaScript to load the post and can increase your page load time"
96
  msgstr "Desideri che la lista degli articoli odierni sia dinamica? Questa opzione utilizza un JavaScript per il caricamento dell'articolo e di conseguenza potrà fare aumentare i tempi di caricamento della stessa pagina"
97
 
98
- #: admin.inc.php:141
99
  msgid "Display page views on Edit posts/pages in WP-Admin? An extra column is added with the count"
100
  msgstr "Desideri mostrare il totale delle visualizzazioni sotto Modifica Articoli/Pagine in WP-Admin? Se sì, verrà aggiunta una nuova sezione (a nome Top 10) con i conteggi nel dettaglio"
101
 
102
- #: admin.inc.php:147
103
  msgid "A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!"
104
  msgstr "Nella lista dei tuoi articoli più popolari é stato aggiunto un link alla pagina del plugin. Ti sarei molto grato qualora non disattivassi questa opzione!"
105
 
106
- #: admin.inc.php:152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  msgid "Do you want to set options to Default?"
108
  msgstr "Desideri ripristinare alle predefinite?"
109
 
110
- #: admin.inc.php:168
111
- #: admin.inc.php:192
112
- #: admin.inc.php:364
113
- #: top-10.php:354
114
- #: top-10.php:373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  msgid "Popular Posts"
116
  msgstr "Gli articoli più popolari"
117
 
118
- #: admin.inc.php:168
119
  msgid "Daily Popular Posts"
120
  msgstr "Gli articoli più popolari di oggi"
121
 
122
- #: admin.inc.php:191
123
- #: admin.inc.php:192
124
  msgid "Top 10"
125
  msgstr "Top 10"
126
 
127
- #: admin.inc.php:272
128
  msgid "Results"
129
  msgstr "Risultati"
130
 
131
- #: admin.inc.php:274
132
- #: admin.inc.php:280
133
  msgid "of"
134
  msgstr "di"
135
 
136
- #: admin.inc.php:278
137
  msgid "Page"
138
  msgstr "Pagina"
139
 
140
- #: admin.inc.php:292
141
  msgid "View Daily Popular Posts"
142
  msgstr "Visualizza gli articoli più letti di oggi"
143
 
144
- #: admin.inc.php:296
145
  msgid "View Overall Popular Posts"
146
  msgstr "Visualizza panoramica articoli più popolari"
147
 
148
- #: admin.inc.php:300
149
  msgid "Results per-page:"
150
  msgstr "Risultati per pagina:"
151
 
152
- #: admin.inc.php:324
153
  msgid "Previous"
154
  msgstr "Precedente"
155
 
156
- #: admin.inc.php:342
157
  msgid "Next"
158
  msgstr "Successiva"
159
 
160
- #: admin.inc.php:365
161
- #: top-10.php:303
162
- #: top-10.php:374
163
  msgid "Daily Popular"
164
  msgstr "I più letti di oggi"
165
 
166
- #: admin.inc.php:376
167
  msgid "Total / Today's Views"
168
  msgstr "Totale / Visualizzazioni odierne"
169
 
170
- #: top-10.php:156
171
  msgid "<h3>Popular Posts</h3>"
172
  msgstr "<h3>Articoli più letti</h3>"
173
 
174
- #: top-10.php:157
175
  msgid "<h3>Daily Popular</h3>"
176
  msgstr "<h3>I più letti di oggi</h3>"
177
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: Top 10 in italiano\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-12-25 17:35+0530\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
8
  "Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
15
  "X-Poedit-Country: ITALY\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
 
18
+ #: admin.inc.php:43
19
  msgid "Options saved successfully."
20
  msgstr "Le opzioni sono state salvate con successo."
21
 
22
+ #: admin.inc.php:52
23
  msgid "Options set to Default."
24
  msgstr "Opzioni impostate alle predefinite."
25
 
26
+ #: admin.inc.php:58
27
+ msgid "Top 10 popular posts reset"
28
+ msgstr "Ripristino 10 articoli più popolari"
29
+
30
+ #: admin.inc.php:64
31
+ msgid "Top 10 daily popular posts reset"
32
+ msgstr "Ripristino 10 articoli più popolari del giorno"
33
+
34
+ #: admin.inc.php:75
35
  msgid "Support the Development"
36
  msgstr "Sostieni lo sviluppo"
37
 
38
+ #: admin.inc.php:79
39
  msgid "If you find "
40
  msgstr "Avessi trovato utile il mio"
41
 
42
+ #: admin.inc.php:81
43
  msgid "useful, please do"
44
  msgstr ", effettua"
45
 
46
+ #: admin.inc.php:82
47
  msgid "drop in your contribution"
48
  msgstr "una donazione"
49
 
50
+ #: admin.inc.php:83
51
  msgid "Some reasons why you should."
52
  msgstr "alcuni motivi affinché tu lo faccia"
53
 
54
+ #: admin.inc.php:90
55
  msgid "Options:"
56
  msgstr "Opzioni:"
57
 
58
+ #: admin.inc.php:95
59
  msgid "Format to display the count in: "
60
  msgstr "Formato per il conteggio:"
61
 
62
+ #: admin.inc.php:99
63
  msgid "Use <code>%totalcount%</code> to display the total count and <code>%dailycount%</code> to display the daily count. e.g. the default options displays <code>(Visited 123 times, 23 visits today)</code>"
64
  msgstr "Utilizza <code>%totalcount%</code> per potere mostrare il computo totale e <code>%dailycount%</code> per visualizzare quello del giorno corrente. Ad esempio, le opzioni predefinite verranno mostrate online con un <code>(letto 123 volte, 23 visite odierne)</code>"
65
 
66
+ #: admin.inc.php:102
67
  msgid "Number of popular posts to display: "
68
  msgstr "Numero degli articoli più popolari da mostrare:"
69
 
70
+ #: admin.inc.php:108
 
 
 
 
 
 
 
 
71
  msgid "Daily Popular should contain views of how many days? "
72
  msgstr "Quanti giorni desideri siano considerati per il computo delle visualizzazioni per articoli più popolari del giorno?"
73
 
74
+ #: admin.inc.php:115
75
  msgid "Exclude Pages in display of Popular Posts? Number of views on Pages will continue to be counted."
76
  msgstr "Desideri escludere le pagine dalla visualizzazione per gli articoli più popolari? Il numero delle visualizzazioni continuerà ad essere comunque aggiornato."
77
 
78
+ #: admin.inc.php:121
79
  msgid "Display number of views on posts?"
80
  msgstr "Desideri mostrare il numero delle visualizzazioni negli articoli?"
81
 
82
+ #: admin.inc.php:127
83
  msgid "Display number of views on pages?"
84
  msgstr "Desideri mostrare il numero delle visualizzazioni nelle pagine?"
85
 
86
+ #: admin.inc.php:133
87
  msgid "Track visits of authors on their own posts?"
88
  msgstr "Desideri che vengano conteggiate anche le visite da parte dell'amministatore del sito?"
89
 
90
+ #: admin.inc.php:139
91
  msgid "Display number of page views in popular lists?"
92
  msgstr "Desideri mostrare il numero delle visualizzazioni per pagina nella lista dei più popolari?"
93
 
94
+ #: admin.inc.php:145
95
  msgid "Force daily posts' list to be dynamic? This options uses JavaScript to load the post and can increase your page load time"
96
  msgstr "Desideri che la lista degli articoli odierni sia dinamica? Questa opzione utilizza un JavaScript per il caricamento dell'articolo e di conseguenza potrà fare aumentare i tempi di caricamento della stessa pagina"
97
 
98
+ #: admin.inc.php:151
99
  msgid "Display page views on Edit posts/pages in WP-Admin? An extra column is added with the count"
100
  msgstr "Desideri mostrare il totale delle visualizzazioni sotto Modifica Articoli/Pagine in WP-Admin? Se sì, verrà aggiunta una nuova sezione (a nome Top 10) con i conteggi nel dettaglio"
101
 
102
+ #: admin.inc.php:157
103
  msgid "A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!"
104
  msgstr "Nella lista dei tuoi articoli più popolari é stato aggiunto un link alla pagina del plugin. Ti sarei molto grato qualora non disattivassi questa opzione!"
105
 
106
+ #: admin.inc.php:161
107
+ msgid "Output Options:"
108
+ msgstr "Opzioni output:"
109
+
110
+ #: admin.inc.php:165
111
+ msgid "Title of popular posts: "
112
+ msgstr "Titolo per gli articoli più popolari:"
113
+
114
+ #: admin.inc.php:171
115
+ msgid "Title of daily popular posts: "
116
+ msgstr "Titolo per gli articoli più popolari del giorno:"
117
+
118
+ #: admin.inc.php:175
119
+ msgid "Customize the output:"
120
+ msgstr "Personalizzazione output:"
121
+
122
+ #: admin.inc.php:178
123
+ msgid "HTML to display before the list of posts: "
124
+ msgstr "HTML da mostrare davanti alla lista degli articoli:"
125
+
126
+ #: admin.inc.php:184
127
+ msgid "HTML to display before each list item: "
128
+ msgstr "HTML da mostrare davanti ad ogni singola lista:"
129
+
130
+ #: admin.inc.php:190
131
+ msgid "HTML to display after each list item: "
132
+ msgstr "HTML da mostrare dopo ogni lista:"
133
+
134
+ #: admin.inc.php:196
135
+ msgid "HTML to display after the list of posts: "
136
+ msgstr "HTML da mostrare dopo la lista degli articoli:"
137
+
138
+ #: admin.inc.php:200
139
+ msgid "Post thumbnail options:"
140
+ msgstr "Opzioni miniature articolo:"
141
+
142
+ #: admin.inc.php:204
143
+ msgid "Display thumbnails inline with posts"
144
+ msgstr "Desideri mostrare gli articoli con le miniature inline?"
145
+
146
+ #: admin.inc.php:208
147
+ msgid "Display only thumbnails, no text"
148
+ msgstr "Mostra le sole miniature, nessun testo"
149
+
150
+ #: admin.inc.php:212
151
+ msgid "Do not display thumbnails, only text."
152
+ msgstr "Non mostrare le miniature, solo testo."
153
+
154
+ #: admin.inc.php:217
155
+ msgid "Post thumbnail meta field (the meta should point contain the image source): "
156
+ msgstr "Campo meta per le miniature (il valore deve puntare alla immagine):"
157
+
158
+ #: admin.inc.php:221
159
+ msgid "Thumbnail dimensions:"
160
+ msgstr "Dimensione miniature:"
161
+
162
+ #: admin.inc.php:223
163
+ msgid "Max width: "
164
+ msgstr "Larghezza massima:"
165
+
166
+ #: admin.inc.php:228
167
+ msgid "Max height: "
168
+ msgstr "Altezza massima:"
169
+
170
+ #: admin.inc.php:232
171
+ msgid "The plugin will first check if the post contains a thumbnail. If it doesn't then it will check the meta field. If this is not available, then it will show the default image as specified below:"
172
+ msgstr "Come prima operazione, il plugin controllerà la presenza di una miniatura nell'articolo. Nel caso in cui non fosse presente, verificherà il campo meta. Qualora non fosse disponibile, mostrerà l'immagine predefinita come specificato qui sotto:"
173
+
174
+ #: admin.inc.php:237
175
  msgid "Do you want to set options to Default?"
176
  msgstr "Desideri ripristinare alle predefinite?"
177
 
178
+ #: admin.inc.php:240
179
+ msgid "Reset count"
180
+ msgstr "Ripristino conteggio"
181
+
182
+ #: admin.inc.php:243
183
+ msgid "This cannot be reversed. Make sure that your database has been backed up before proceeding"
184
+ msgstr "Questa operazione non é reversibile. Effettua il backup del database prima di procedere"
185
+
186
+ #: admin.inc.php:246
187
+ msgid "Are you sure you want to reset the popular posts?"
188
+ msgstr "Sei certo di volere ripristinare gli articoli più popolari?"
189
+
190
+ #: admin.inc.php:247
191
+ msgid "Are you sure you want to reset the daily popular posts?"
192
+ msgstr "Sei certo di volere ripristinare gli articoli più popolari del giorno?"
193
+
194
+ #: admin.inc.php:263
195
+ #: admin.inc.php:287
196
+ #: admin.inc.php:459
197
+ #: top-10.php:218
198
+ #: top-10.php:378
199
  msgid "Popular Posts"
200
  msgstr "Gli articoli più popolari"
201
 
202
+ #: admin.inc.php:263
203
  msgid "Daily Popular Posts"
204
  msgstr "Gli articoli più popolari di oggi"
205
 
206
+ #: admin.inc.php:286
207
+ #: admin.inc.php:287
208
  msgid "Top 10"
209
  msgstr "Top 10"
210
 
211
+ #: admin.inc.php:367
212
  msgid "Results"
213
  msgstr "Risultati"
214
 
215
+ #: admin.inc.php:369
216
+ #: admin.inc.php:375
217
  msgid "of"
218
  msgstr "di"
219
 
220
+ #: admin.inc.php:373
221
  msgid "Page"
222
  msgstr "Pagina"
223
 
224
+ #: admin.inc.php:387
225
  msgid "View Daily Popular Posts"
226
  msgstr "Visualizza gli articoli più letti di oggi"
227
 
228
+ #: admin.inc.php:391
229
  msgid "View Overall Popular Posts"
230
  msgstr "Visualizza panoramica articoli più popolari"
231
 
232
+ #: admin.inc.php:395
233
  msgid "Results per-page:"
234
  msgstr "Risultati per pagina:"
235
 
236
+ #: admin.inc.php:419
237
  msgid "Previous"
238
  msgstr "Precedente"
239
 
240
+ #: admin.inc.php:437
241
  msgid "Next"
242
  msgstr "Successiva"
243
 
244
+ #: admin.inc.php:460
245
+ #: top-10.php:197
246
+ #: top-10.php:379
247
  msgid "Daily Popular"
248
  msgstr "I più letti di oggi"
249
 
250
+ #: admin.inc.php:471
251
  msgid "Total / Today's Views"
252
  msgstr "Totale / Visualizzazioni odierne"
253
 
254
+ #: top-10.php:229
255
  msgid "<h3>Popular Posts</h3>"
256
  msgstr "<h3>Articoli più letti</h3>"
257
 
258
+ #: top-10.php:230
259
  msgid "<h3>Daily Popular</h3>"
260
  msgstr "<h3>I più letti di oggi</h3>"
261
 
262
+ #: top-10.php:393
263
+ msgid "Settings"
264
+ msgstr "Impostazioni"
265
+
266
+ #: top-10.php:394
267
+ msgid "Support"
268
+ msgstr "Supporto"
269
+
270
+ #: top-10.php:395
271
+ msgid "Donate"
272
+ msgstr "Donazione"
273
+
languages/tptn-ru_RU.mo CHANGED
Binary file
languages/tptn-ru_RU.po CHANGED
@@ -2,173 +2,277 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Топ 10\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-07-26 23:48+0530\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: \n"
8
  "Language-Team: Elvis (fweb.org.ru) <kopper@rkmail.ru>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Language: Russian\n"
13
  "X-Poedit-Country: RUSSIAN FEDERATION\n"
 
 
 
14
 
15
- #: admin.inc.php:33
16
  msgid "Options saved successfully."
17
  msgstr "Настройки сохранены."
18
 
19
- #: admin.inc.php:42
20
  msgid "Options set to Default."
21
  msgstr "Настройки сброшены."
22
 
23
- #: admin.inc.php:53
 
 
 
 
 
 
 
 
 
 
24
  msgid "Support the Development"
25
  msgstr "Поддержите создателя плагина"
26
 
27
- #: admin.inc.php:57
28
  msgid "If you find "
29
  msgstr "Если вы считаете плагин"
30
 
31
- #: admin.inc.php:59
32
  msgid "useful, please do"
33
  msgstr "полезным, пожалуйста, сделайте"
34
 
35
- #: admin.inc.php:60
36
  msgid "drop in your contribution"
37
  msgstr "пожертвование"
38
 
39
- #: admin.inc.php:61
40
  msgid "Some reasons why you should."
41
  msgstr "Несколько причин сделать это."
42
 
43
- #: admin.inc.php:68
44
  msgid "Options:"
45
  msgstr "Настройки плагина:"
46
 
47
- #: admin.inc.php:73
48
  msgid "Format to display the count in: "
49
  msgstr "Формат отображения количества просмотров:"
50
 
51
- #: admin.inc.php:77
52
  msgid "Use <code>%totalcount%</code> to display the total count and <code>%dailycount%</code> to display the daily count. e.g. the default options displays <code>(Visited 123 times, 23 visits today)</code>"
53
  msgstr "Используйте <code>%totalcount%</code> чтобы показывать общее число просмотров, а <code>%dailycount%</code> - просмотры за сутки. Например: <code>(Просмотрена 123 раз, 23 раза просмотра сегодня)</code>"
54
 
55
- #: admin.inc.php:80
56
  msgid "Number of popular posts to display: "
57
  msgstr "Количество Популярных записей в списке:"
58
 
59
- #: admin.inc.php:86
60
- msgid "Title of popular posts: "
61
- msgstr "Заголовок блока Популярных записей:"
62
-
63
- #: admin.inc.php:92
64
- msgid "Title of daily popular posts: "
65
- msgstr "Заголовок блока Популярных сегодня записей:"
66
-
67
- #: admin.inc.php:98
68
  msgid "Daily Popular should contain views of how many days? "
69
  msgstr "За сколько дней считать просмотры для записей, Популярных сегодня?"
70
 
71
- #: admin.inc.php:105
72
  msgid "Exclude Pages in display of Popular Posts? Number of views on Pages will continue to be counted."
73
  msgstr "Исключить страницы из списка Популярных записей? Количество просмотров для страниц будет подсчитываться."
74
 
75
- #: admin.inc.php:111
76
  msgid "Display number of views on posts?"
77
  msgstr "Показывать количество просмотров записи в ее \"теле\"?"
78
 
79
- #: admin.inc.php:117
80
  msgid "Display number of views on pages?"
81
  msgstr "Показывать количество просмотров страницы в ее \"теле\"?"
82
 
83
- #: admin.inc.php:123
84
  msgid "Track visits of authors on their own posts?"
85
  msgstr "Учитывать просмотры записей, сделанные их же авторами?"
86
 
87
- #: admin.inc.php:129
88
  msgid "Display number of page views in popular lists?"
89
  msgstr "Показывать количество просмотров записей/страниц в списке Популярных записей?"
90
 
91
- #: admin.inc.php:135
92
  msgid "Force daily posts' list to be dynamic? This options uses JavaScript to load the post and can increase your page load time"
93
  msgstr "Сделать список Популярных записей динамичным? Опция использует JavaScript , и это может увеличить время загрузки страниц"
94
 
95
- #: admin.inc.php:141
96
  msgid "Display page views on Edit posts/pages in WP-Admin? An extra column is added with the count"
97
  msgstr "Отображать количество просмотров записей/страниц в админке? Для этого будет добавлена отдельная колонка"
98
 
99
- #: admin.inc.php:147
100
  msgid "A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!"
101
  msgstr "Ссылка на плагин будет добавлена к спискам Популярных записей. Мы будем благодарны Вам, если Вы ее все же оставите!"
102
 
103
- #: admin.inc.php:152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  msgid "Do you want to set options to Default?"
105
  msgstr "Сбросить настройки плагина?"
106
 
107
- #: admin.inc.php:168
108
- #: admin.inc.php:192
109
- #: admin.inc.php:364
110
- #: top-10.php:354
111
- #: top-10.php:373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  msgid "Popular Posts"
113
  msgstr "Популярные записи"
114
 
115
- #: admin.inc.php:168
116
  msgid "Daily Popular Posts"
117
  msgstr "Популярные сегодня записи"
118
 
119
- #: admin.inc.php:191
120
- #: admin.inc.php:192
121
  msgid "Top 10"
122
  msgstr "Топ 10 записей"
123
 
124
- #: admin.inc.php:272
125
  msgid "Results"
126
  msgstr "Результаты"
127
 
128
- #: admin.inc.php:274
129
- #: admin.inc.php:280
130
  msgid "of"
131
  msgstr "из"
132
 
133
- #: admin.inc.php:278
134
  msgid "Page"
135
  msgstr "Страница"
136
 
137
- #: admin.inc.php:292
138
  msgid "View Daily Popular Posts"
139
  msgstr "Посмотреть все Популярные сегодня записи"
140
 
141
- #: admin.inc.php:296
142
  msgid "View Overall Popular Posts"
143
  msgstr "Посмотреть все Популярные записи"
144
 
145
- #: admin.inc.php:300
146
  msgid "Results per-page:"
147
  msgstr "Результатов на страницу:"
148
 
149
- #: admin.inc.php:324
150
  msgid "Previous"
151
  msgstr "Предыдущая страница"
152
 
153
- #: admin.inc.php:342
154
  msgid "Next"
155
  msgstr "Следующая страница"
156
 
157
- #: admin.inc.php:365
158
- #: top-10.php:303
159
- #: top-10.php:374
160
  msgid "Daily Popular"
161
  msgstr "Популярные сегодня записи"
162
 
163
- #: admin.inc.php:376
164
  msgid "Total / Today's Views"
165
  msgstr "Всего / Сегодня просмотров"
166
 
167
- #: top-10.php:156
168
  msgid "<h3>Popular Posts</h3>"
169
  msgstr "<h3>Популярные записи</h3>"
170
 
171
- #: top-10.php:157
172
  msgid "<h3>Daily Popular</h3>"
173
  msgstr "<h3>Популярные сегодня записи</h3>"
174
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: Топ 10\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-12-25 17:35+0530\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
8
  "Language-Team: Elvis (fweb.org.ru) <kopper@rkmail.ru>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Language: Russian\n"
13
  "X-Poedit-Country: RUSSIAN FEDERATION\n"
14
+ "X-Poedit-KeywordsList: _e;__\n"
15
+ "X-Poedit-Basepath: ../\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
 
18
+ #: admin.inc.php:43
19
  msgid "Options saved successfully."
20
  msgstr "Настройки сохранены."
21
 
22
+ #: admin.inc.php:52
23
  msgid "Options set to Default."
24
  msgstr "Настройки сброшены."
25
 
26
+ #: admin.inc.php:58
27
+ #, fuzzy
28
+ msgid "Top 10 popular posts reset"
29
+ msgstr "Заголовок блока Популярных записей:"
30
+
31
+ #: admin.inc.php:64
32
+ #, fuzzy
33
+ msgid "Top 10 daily popular posts reset"
34
+ msgstr "Заголовок блока Популярных сегодня записей:"
35
+
36
+ #: admin.inc.php:75
37
  msgid "Support the Development"
38
  msgstr "Поддержите создателя плагина"
39
 
40
+ #: admin.inc.php:79
41
  msgid "If you find "
42
  msgstr "Если вы считаете плагин"
43
 
44
+ #: admin.inc.php:81
45
  msgid "useful, please do"
46
  msgstr "полезным, пожалуйста, сделайте"
47
 
48
+ #: admin.inc.php:82
49
  msgid "drop in your contribution"
50
  msgstr "пожертвование"
51
 
52
+ #: admin.inc.php:83
53
  msgid "Some reasons why you should."
54
  msgstr "Несколько причин сделать это."
55
 
56
+ #: admin.inc.php:90
57
  msgid "Options:"
58
  msgstr "Настройки плагина:"
59
 
60
+ #: admin.inc.php:95
61
  msgid "Format to display the count in: "
62
  msgstr "Формат отображения количества просмотров:"
63
 
64
+ #: admin.inc.php:99
65
  msgid "Use <code>%totalcount%</code> to display the total count and <code>%dailycount%</code> to display the daily count. e.g. the default options displays <code>(Visited 123 times, 23 visits today)</code>"
66
  msgstr "Используйте <code>%totalcount%</code> чтобы показывать общее число просмотров, а <code>%dailycount%</code> - просмотры за сутки. Например: <code>(Просмотрена 123 раз, 23 раза просмотра сегодня)</code>"
67
 
68
+ #: admin.inc.php:102
69
  msgid "Number of popular posts to display: "
70
  msgstr "Количество Популярных записей в списке:"
71
 
72
+ #: admin.inc.php:108
 
 
 
 
 
 
 
 
73
  msgid "Daily Popular should contain views of how many days? "
74
  msgstr "За сколько дней считать просмотры для записей, Популярных сегодня?"
75
 
76
+ #: admin.inc.php:115
77
  msgid "Exclude Pages in display of Popular Posts? Number of views on Pages will continue to be counted."
78
  msgstr "Исключить страницы из списка Популярных записей? Количество просмотров для страниц будет подсчитываться."
79
 
80
+ #: admin.inc.php:121
81
  msgid "Display number of views on posts?"
82
  msgstr "Показывать количество просмотров записи в ее \"теле\"?"
83
 
84
+ #: admin.inc.php:127
85
  msgid "Display number of views on pages?"
86
  msgstr "Показывать количество просмотров страницы в ее \"теле\"?"
87
 
88
+ #: admin.inc.php:133
89
  msgid "Track visits of authors on their own posts?"
90
  msgstr "Учитывать просмотры записей, сделанные их же авторами?"
91
 
92
+ #: admin.inc.php:139
93
  msgid "Display number of page views in popular lists?"
94
  msgstr "Показывать количество просмотров записей/страниц в списке Популярных записей?"
95
 
96
+ #: admin.inc.php:145
97
  msgid "Force daily posts' list to be dynamic? This options uses JavaScript to load the post and can increase your page load time"
98
  msgstr "Сделать список Популярных записей динамичным? Опция использует JavaScript , и это может увеличить время загрузки страниц"
99
 
100
+ #: admin.inc.php:151
101
  msgid "Display page views on Edit posts/pages in WP-Admin? An extra column is added with the count"
102
  msgstr "Отображать количество просмотров записей/страниц в админке? Для этого будет добавлена отдельная колонка"
103
 
104
+ #: admin.inc.php:157
105
  msgid "A link to the plugin is added as an extra list item to the list of popular posts. Not mandatory, but thanks if you do it!"
106
  msgstr "Ссылка на плагин будет добавлена к спискам Популярных записей. Мы будем благодарны Вам, если Вы ее все же оставите!"
107
 
108
+ #: admin.inc.php:161
109
+ #, fuzzy
110
+ msgid "Output Options:"
111
+ msgstr "Настройки плагина:"
112
+
113
+ #: admin.inc.php:165
114
+ msgid "Title of popular posts: "
115
+ msgstr "Заголовок блока Популярных записей:"
116
+
117
+ #: admin.inc.php:171
118
+ msgid "Title of daily popular posts: "
119
+ msgstr "Заголовок блока Популярных сегодня записей:"
120
+
121
+ #: admin.inc.php:175
122
+ msgid "Customize the output:"
123
+ msgstr ""
124
+
125
+ #: admin.inc.php:178
126
+ msgid "HTML to display before the list of posts: "
127
+ msgstr ""
128
+
129
+ #: admin.inc.php:184
130
+ msgid "HTML to display before each list item: "
131
+ msgstr ""
132
+
133
+ #: admin.inc.php:190
134
+ #, fuzzy
135
+ msgid "HTML to display after each list item: "
136
+ msgstr "Формат отображения количества просмотров:"
137
+
138
+ #: admin.inc.php:196
139
+ msgid "HTML to display after the list of posts: "
140
+ msgstr ""
141
+
142
+ #: admin.inc.php:200
143
+ msgid "Post thumbnail options:"
144
+ msgstr ""
145
+
146
+ #: admin.inc.php:204
147
+ #, fuzzy
148
+ msgid "Display thumbnails inline with posts"
149
+ msgstr "Показывать количество просмотров записи в ее \"теле\"?"
150
+
151
+ #: admin.inc.php:208
152
+ msgid "Display only thumbnails, no text"
153
+ msgstr ""
154
+
155
+ #: admin.inc.php:212
156
+ msgid "Do not display thumbnails, only text."
157
+ msgstr ""
158
+
159
+ #: admin.inc.php:217
160
+ msgid "Post thumbnail meta field (the meta should point contain the image source): "
161
+ msgstr ""
162
+
163
+ #: admin.inc.php:221
164
+ msgid "Thumbnail dimensions:"
165
+ msgstr ""
166
+
167
+ #: admin.inc.php:223
168
+ msgid "Max width: "
169
+ msgstr ""
170
+
171
+ #: admin.inc.php:228
172
+ msgid "Max height: "
173
+ msgstr ""
174
+
175
+ #: admin.inc.php:232
176
+ msgid "The plugin will first check if the post contains a thumbnail. If it doesn't then it will check the meta field. If this is not available, then it will show the default image as specified below:"
177
+ msgstr ""
178
+
179
+ #: admin.inc.php:237
180
  msgid "Do you want to set options to Default?"
181
  msgstr "Сбросить настройки плагина?"
182
 
183
+ #: admin.inc.php:240
184
+ msgid "Reset count"
185
+ msgstr ""
186
+
187
+ #: admin.inc.php:243
188
+ msgid "This cannot be reversed. Make sure that your database has been backed up before proceeding"
189
+ msgstr ""
190
+
191
+ #: admin.inc.php:246
192
+ msgid "Are you sure you want to reset the popular posts?"
193
+ msgstr ""
194
+
195
+ #: admin.inc.php:247
196
+ msgid "Are you sure you want to reset the daily popular posts?"
197
+ msgstr ""
198
+
199
+ #: admin.inc.php:263
200
+ #: admin.inc.php:287
201
+ #: admin.inc.php:459
202
+ #: top-10.php:218
203
+ #: top-10.php:378
204
  msgid "Popular Posts"
205
  msgstr "Популярные записи"
206
 
207
+ #: admin.inc.php:263
208
  msgid "Daily Popular Posts"
209
  msgstr "Популярные сегодня записи"
210
 
211
+ #: admin.inc.php:286
212
+ #: admin.inc.php:287
213
  msgid "Top 10"
214
  msgstr "Топ 10 записей"
215
 
216
+ #: admin.inc.php:367
217
  msgid "Results"
218
  msgstr "Результаты"
219
 
220
+ #: admin.inc.php:369
221
+ #: admin.inc.php:375
222
  msgid "of"
223
  msgstr "из"
224
 
225
+ #: admin.inc.php:373
226
  msgid "Page"
227
  msgstr "Страница"
228
 
229
+ #: admin.inc.php:387
230
  msgid "View Daily Popular Posts"
231
  msgstr "Посмотреть все Популярные сегодня записи"
232
 
233
+ #: admin.inc.php:391
234
  msgid "View Overall Popular Posts"
235
  msgstr "Посмотреть все Популярные записи"
236
 
237
+ #: admin.inc.php:395
238
  msgid "Results per-page:"
239
  msgstr "Результатов на страницу:"
240
 
241
+ #: admin.inc.php:419
242
  msgid "Previous"
243
  msgstr "Предыдущая страница"
244
 
245
+ #: admin.inc.php:437
246
  msgid "Next"
247
  msgstr "Следующая страница"
248
 
249
+ #: admin.inc.php:460
250
+ #: top-10.php:197
251
+ #: top-10.php:379
252
  msgid "Daily Popular"
253
  msgstr "Популярные сегодня записи"
254
 
255
+ #: admin.inc.php:471
256
  msgid "Total / Today's Views"
257
  msgstr "Всего / Сегодня просмотров"
258
 
259
+ #: top-10.php:229
260
  msgid "<h3>Popular Posts</h3>"
261
  msgstr "<h3>Популярные записи</h3>"
262
 
263
+ #: top-10.php:230
264
  msgid "<h3>Daily Popular</h3>"
265
  msgstr "<h3>Популярные сегодня записи</h3>"
266
 
267
+ #: top-10.php:393
268
+ msgid "Settings"
269
+ msgstr ""
270
+
271
+ #: top-10.php:394
272
+ msgid "Support"
273
+ msgstr ""
274
+
275
+ #: top-10.php:395
276
+ msgid "Donate"
277
+ msgstr ""
278
+
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Top 10 ===
2
- Tags: popular posts, top posts, counter, daily popular, page views, statistics
3
  Contributors: Ajay, Mark Ghosh
4
  Donate link: http://ajaydsouza.com/donate/
5
  Stable tag: trunk
6
  Requires at least: 2.5
7
- Tested up to: 2.9
8
 
9
 
10
  Track daily and total visits on your blog posts and display the count as well as popular posts.
@@ -24,10 +24,14 @@ Includes a sidebar widget to display the popular posts. And, all settings can be
24
  * View list of daily and/or overall popular posts from within the dashboard itself
25
  * Clean uninstall if you choose to delete the plugin from within WP-Admin
26
  * Works with caching plugins like WP-Super-Cache and W3 Total Cache
 
27
 
28
 
29
  == Changelog ==
30
 
 
 
 
31
  = 1.4.1 =
32
  * Fixed compatibility with WordPress 2.9
33
  * Fixed XHTML validation errors in output code
1
  === Top 10 ===
2
+ Tags: top 10, popular posts, top posts, counter, daily popular, page views, statistics
3
  Contributors: Ajay, Mark Ghosh
4
  Donate link: http://ajaydsouza.com/donate/
5
  Stable tag: trunk
6
  Requires at least: 2.5
7
+ Tested up to: 2.9.1
8
 
9
 
10
  Track daily and total visits on your blog posts and display the count as well as popular posts.
24
  * View list of daily and/or overall popular posts from within the dashboard itself
25
  * Clean uninstall if you choose to delete the plugin from within WP-Admin
26
  * Works with caching plugins like WP-Super-Cache and W3 Total Cache
27
+ * Display post thumbnails or text or both
28
 
29
 
30
  == Changelog ==
31
 
32
+ = 1.5 =
33
+ * Added support for post thumbnails feature of WordPress 2.9
34
+
35
  = 1.4.1 =
36
  * Fixed compatibility with WordPress 2.9
37
  * Fixed XHTML validation errors in output code
top-10-daily.js.php CHANGED
@@ -34,16 +34,37 @@ function tptn_daily_lists() {
34
 
35
  $output = '<div id="tptn_related_daily">';
36
  if(!$is_widget) $output .= $tptn_settings['title_daily'];
37
- $output .= '<ul>';
38
  if ($results) {
 
39
  foreach ($results as $result) {
40
- $output .= '<li><a href="'.get_permalink($result->postnumber).'">'.get_the_title($result->postnumber).'</a>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  if ($tptn_settings['disp_list_count']) $output .= ' ('.$result->sumCount.')';
42
- $output .= '</li>';
43
  }
 
 
44
  }
45
- if ($tptn_settings['show_credit']) $output .= '<li>Popular posts by <a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 plugin</a></li>';
46
- $output .= '</ul>';
47
  $output .= '</div>';
48
 
49
  echo "document.write('".$output."')";
34
 
35
  $output = '<div id="tptn_related_daily">';
36
  if(!$is_widget) $output .= $tptn_settings['title_daily'];
37
+
38
  if ($results) {
39
+ $output .= $tptn_settings['before_list'];
40
  foreach ($results as $result) {
41
+ $title = trim(stripslashes(get_the_title($result->postnumber)));
42
+ $output .= $tptn_settings['before_list_item'];
43
+
44
+ if (($tptn_settings['post_thumb_op']=='inline')||($tptn_settings['post_thumb_op']=='thumbs_only')) {
45
+ $output .= '<a href="'.get_permalink($result->postnumber).'" rel="bookmark">';
46
+ if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail($result->postnumber))) {
47
+ $output .= get_the_post_thumbnail( $result->postnumber, array($tptn_settings[thumb_width],$tptn_settings[thumb_height]), array('title' => $title,'alt' => $title));
48
+ } else {
49
+ $postimage = get_post_meta($result->postnumber, 'post-image', true);
50
+ if ($postimage) {
51
+ $output .= '<img src="'.$postimage.'" alt="'.$title.'" title="'.$title.'" width="'.$tptn_settings[thumb_width].'" height="'.$tptn_settings[thumb_height].'" />';
52
+ } else {
53
+ $output .= '<img src="'.$tptn_settings[thumb_default].'" alt="'.$title.'" title="'.$title.'" width="'.$tptn_settings[thumb_width].'" height="'.$tptn_settings[thumb_height].'" />';
54
+ }
55
+ }
56
+ $output .= '</a> ';
57
+ }
58
+ if (($tptn_settings['post_thumb_op']=='inline')||($tptn_settings['post_thumb_op']=='text_only')) {
59
+ $output .= '<a href="'.get_permalink($result->postnumber).'" rel="bookmark">'.$title.'</a>';
60
+ }
61
  if ($tptn_settings['disp_list_count']) $output .= ' ('.$result->sumCount.')';
62
+ $output .= $tptn_settings['after_list_item'];
63
  }
64
+ if ($tptn_settings['show_credit']) $output .= '<li>Popular posts by <a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 plugin</a></li>';
65
+ $output .= $tptn_settings['after_list'];
66
  }
67
+
 
68
  $output .= '</div>';
69
 
70
  echo "document.write('".$output."')";
top-10.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Top 10
4
- Version: 1.4.1
5
  Plugin URI: http://ajaydsouza.com/wordpress/plugins/top-10/
6
- Description: Count daily and total visits per post and display the most popular posts based on the number of views. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>. <a href="options-general.php?page=tptn_options">Configure...</a>
7
  Author: Ajay D'Souza
8
  Author URI: http://ajaydsouza.com/
9
  */
@@ -12,6 +12,17 @@ if (!defined('ABSPATH')) die("Aren't you supposed to come here via WP-Admin?");
12
  define('ALD_TPTN_DIR', dirname(__FILE__));
13
  define('TPTN_LOCAL_NAME', 'tptn');
14
 
 
 
 
 
 
 
 
 
 
 
 
15
  if (!function_exists('add_action')) {
16
  $wp_root = '../../..';
17
  if (file_exists($wp_root.'/wp-load.php')) {
@@ -40,7 +51,7 @@ add_action('init', 'ald_tptn_init');
40
  // Update post views
41
  add_filter('the_content','tptn_add_viewed_count',9000);
42
  function tptn_add_viewed_count($content) {
43
- global $post, $wpdb, $single;
44
  $table_name = $wpdb->prefix . "top_ten";
45
  $tptn_settings = tptn_read_options();
46
 
@@ -50,7 +61,7 @@ function tptn_add_viewed_count($content) {
50
  if((is_single() || is_page())) {
51
  if (!(($post_author)&&(!$tptn_settings['track_authors']))) {
52
  $id = intval($post->ID);
53
- $output = '<script type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/top-10/top-10-addcount.js.php?top_ten_id='.$id.'"></script>';
54
  return $content.$output;
55
  }
56
  else {
@@ -65,15 +76,15 @@ function tptn_add_viewed_count($content) {
65
 
66
  // Function to add count to content
67
  function tptn_pc_content($content) {
68
- global $single, $post;
69
  $tptn_settings = tptn_read_options();
70
  $id = intval($post->ID);
71
 
72
  if((is_single())&&($tptn_settings['add_to_content'])) {
73
- $output = '<script type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/top-10/top-10-counter.js.php?top_ten_id='.$id.'"></script>';
74
  return $content.$output;
75
  } elseif((is_page())&&($tptn_settings['count_on_pages'])) {
76
- $output = '<script type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/top-10/top-10-counter.js.php?top_ten_id='.$id.'"></script>';
77
  return $content.$output;
78
  } else {
79
  return $content;
@@ -83,85 +94,141 @@ add_filter('the_content', 'tptn_pc_content',9001);
83
 
84
  // Function to manually display count
85
  function echo_tptn_post_count() {
86
- global $post;
87
  $id = intval($post->ID);
88
 
89
- $output = '<script type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/top-10/top-10-counter.js.php?top_ten_id='.$id.'"></script>';
90
  echo $output;
91
  }
92
 
93
- // Function to show popular posts
94
- function tptn_show_pop_posts() {
95
  global $wpdb, $siteurl, $tableposts, $id;
96
- $table_name = $wpdb->prefix . "top_ten";
 
97
  $tptn_settings = tptn_read_options();
98
  $limit = $tptn_settings['limit'];
99
-
100
- $sql = "SELECT postnumber, cntaccess , ID, post_type, post_status ";
101
- $sql .= "FROM $table_name INNER JOIN ". $wpdb->posts ." ON postnumber=ID " ;
102
- if ($tptn_settings['exclude_pages']) $sql .= "AND post_type = 'post' ";
103
- $sql .= "AND post_status = 'publish' ";
104
- $sql .= "ORDER BY cntaccess DESC LIMIT $limit";
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  $results = $wpdb->get_results($sql);
 
 
 
 
 
 
 
 
 
107
 
108
- echo '<div id="tptn_related">'.$tptn_settings['title'];
109
- echo '<ul>';
110
  if ($results) {
 
111
  foreach ($results as $result) {
112
- echo '<li><a href="'.get_permalink($result->postnumber).'">'.get_the_title($result->postnumber).'</a>';
113
- if ($tptn_settings['disp_list_count']) echo ' ('.$result->cntaccess.')';
114
- echo '</li>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  }
 
 
116
  }
117
- if ($tptn_settings['show_credit']) echo '<li>Popular posts by <a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 plugin</a></li>';
118
- echo '</ul>';
119
- echo '</div>';
 
 
 
 
 
120
  }
121
 
122
  // Function to show daily popular posts
123
  function tptn_show_daily_pop_posts() {
124
- global $wpdb, $siteurl, $tableposts, $id;
125
- $table_name = $wpdb->prefix . "top_ten_daily";
126
  $tptn_settings = tptn_read_options();
127
- $limit = $tptn_settings['limit'];
128
-
129
- $output = '';
130
  if ($tptn_settings['d_use_js']) {
131
- $output .= '<script type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/top-10/top-10-daily.js.php"></script>';
132
  } else {
133
- $daily_range = $tptn_settings[daily_range]. ' DAY';
134
- $current_date = $wpdb->get_var("SELECT DATE_ADD(DATE_SUB(CURDATE(), INTERVAL ".$daily_range."), INTERVAL 1 DAY) ");
135
-
136
- $sql = "SELECT postnumber, SUM(cntaccess) as sumCount, dp_date, ID, post_type, post_status ";
137
- $sql .= "FROM $table_name INNER JOIN ". $wpdb->posts ." ON postnumber=ID " ;
138
- if ($tptn_settings['exclude_pages']) $sql .= "AND post_type = 'post' ";
139
- $sql .= "AND post_status = 'publish' AND dp_date >= '$current_date' ";
140
- $sql .= "GROUP BY postnumber ";
141
- $sql .= "ORDER BY sumCount DESC LIMIT $limit";
142
 
143
- $results = $wpdb->get_results($sql);
 
 
 
 
 
 
144
 
145
- $output .= '<div id="tptn_related_daily">'.$tptn_settings['title_daily'];
146
- $output .= '<ul>';
147
- if ($results) {
148
- foreach ($results as $result) {
149
- $output .= '<li><a href="'.get_permalink($result->postnumber).'">'.get_the_title($result->postnumber).'</a>';
150
- if ($tptn_settings['disp_list_count']) $output .= ' ('.$result->sumCount.')';
151
- $output .= '</li>';
152
- }
153
- }
154
- if ($tptn_settings['show_credit']) $output .= '<li>Popular posts by <a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 plugin</a></li>';
155
- $output .= '</ul>';
156
- $output .= '</div>';
157
  }
158
- echo $output;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  }
160
 
161
  // Default Options
162
  function tptn_default_options() {
 
163
  $title = __('<h3>Popular Posts</h3>',TPTN_LOCAL_NAME);
164
  $title_daily = __('<h3>Daily Popular</h3>',TPTN_LOCAL_NAME);
 
165
 
166
  $tptn_settings = Array (
167
  show_credit => true, // Add link to plugin page of my blog in top posts list
@@ -177,6 +244,15 @@ function tptn_default_options() {
177
  title_daily => $title_daily, // Title of Daily Popular
178
  limit => '10', // How many posts to display?
179
  daily_range => '1', // Daily Popular will contain posts of how many days?
 
 
 
 
 
 
 
 
 
180
  );
181
  return $tptn_settings;
182
  }
@@ -297,84 +373,6 @@ function tptn_trunc_count($daily = false) {
297
  $wpdb->query($sql);
298
  }
299
 
300
- // Create a WordPress Widget for Daily Popular Posts
301
- function widget_tptn_pop_daily($args) {
302
- global $wpdb, $siteurl, $tableposts, $id;
303
-
304
- extract($args); // extracts before_widget,before_title,after_title,after_widget
305
-
306
- $table_name = $wpdb->prefix . "top_ten_daily";
307
- $tptn_settings = tptn_read_options();
308
- $limit = $tptn_settings['limit'];
309
-
310
- $title = (($tptn_settings['title_daily']) ? strip_tags($tptn_settings['title_daily']) : __('Daily Popular',TPTN_LOCAL_NAME));
311
- echo $before_widget;
312
- echo $before_title.$title.$after_title;
313
-
314
- if ($tptn_settings['d_use_js']) {
315
- echo '<script type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/top-10/top-10-daily.js.php?widget=1"></script>';
316
- } else {
317
- $daily_range = $tptn_settings[daily_range]. ' DAY';
318
- $current_date = $wpdb->get_var("SELECT DATE_ADD(DATE_SUB(CURDATE(), INTERVAL ".$daily_range."), INTERVAL 1 DAY) ");
319
-
320
- $sql = "SELECT postnumber, SUM(cntaccess) as sumCount, dp_date, ID, post_type, post_status ";
321
- $sql .= "FROM $table_name INNER JOIN ". $wpdb->posts ." ON postnumber=ID " ;
322
- if ($tptn_settings['exclude_pages']) $sql .= "AND post_type = 'post' ";
323
- $sql .= "AND post_status = 'publish' AND dp_date >= '$current_date' ";
324
- $sql .= "GROUP BY postnumber ";
325
- $sql .= "ORDER BY sumCount DESC LIMIT $limit";
326
-
327
- $results = $wpdb->get_results($sql);
328
-
329
- echo '<ul>';
330
- if ($results) {
331
- foreach ($results as $result) {
332
- echo '<li><a href="'.get_permalink($result->postnumber).'">'.get_the_title($result->postnumber).'</a>';
333
- if ($tptn_settings['disp_list_count']) echo ' ('.$result->sumCount.')';
334
- echo '</li>';
335
- }
336
- }
337
- if ($tptn_settings['show_credit']) echo '<li>Popular posts by <a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 plugin</a></li>';
338
- echo '</ul>';
339
- }
340
-
341
- echo $after_widget;
342
- }
343
-
344
- // Create a WordPress Widget for Popular Posts
345
- function widget_tptn_pop($args) {
346
- global $wpdb, $siteurl, $tableposts, $id;
347
-
348
- extract($args); // extracts before_widget,before_title,after_title,after_widget
349
-
350
- $table_name = $wpdb->prefix . "top_ten";
351
- $tptn_settings = tptn_read_options();
352
- $limit = $tptn_settings['limit'];
353
-
354
- $sql = "SELECT postnumber, cntaccess , ID, post_type ";
355
- $sql .= "FROM $table_name INNER JOIN ". $wpdb->posts ." ON postnumber=ID " ;
356
- if ($tptn_settings['exclude_pages']) $sql .= "AND post_type = 'post' ";
357
- $sql .= "ORDER BY cntaccess DESC LIMIT $limit";
358
-
359
- $results = $wpdb->get_results($sql);
360
-
361
- $title = (($tptn_settings['title']) ? strip_tags($tptn_settings['title']) : __('Popular Posts',TPTN_LOCAL_NAME));
362
-
363
- echo $before_widget;
364
- echo $before_title.$title.$after_title;
365
- echo '<ul>';
366
- if ($results) {
367
- foreach ($results as $result) {
368
- echo '<li><a href="'.get_permalink($result->postnumber).'">'.get_the_title($result->postnumber).'</a>';
369
- if ($tptn_settings['disp_list_count']) echo ' ('.$result->cntaccess.')';
370
- echo '</li>';
371
- }
372
- }
373
- if ($tptn_settings['show_credit']) echo '<li>Popular posts by <a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 plugin</a></li>';
374
- echo '</ul>';
375
-
376
- echo $after_widget;
377
- }
378
 
379
  function init_tptn(){
380
  register_sidebar_widget(__('Popular Posts',TPTN_LOCAL_NAME), 'widget_tptn_pop');
@@ -385,6 +383,25 @@ add_action("plugins_loaded", "init_tptn");
385
  // This function adds an Options page in WP Admin
386
  if (is_admin() || strstr($_SERVER['PHP_SELF'], 'wp-admin/')) {
387
  require_once(ALD_TPTN_DIR . "/admin.inc.php");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
  }
389
 
 
390
  ?>
1
  <?php
2
  /*
3
  Plugin Name: Top 10
4
+ Version: 1.5
5
  Plugin URI: http://ajaydsouza.com/wordpress/plugins/top-10/
6
+ Description: Count daily and total visits per post and display the most popular posts based on the number of views. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>
7
  Author: Ajay D'Souza
8
  Author URI: http://ajaydsouza.com/
9
  */
12
  define('ALD_TPTN_DIR', dirname(__FILE__));
13
  define('TPTN_LOCAL_NAME', 'tptn');
14
 
15
+ // Pre-2.6 compatibility
16
+ if ( !defined('WP_CONTENT_URL') )
17
+ define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
18
+ if ( !defined('WP_CONTENT_DIR') )
19
+ define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
20
+ // Guess the location
21
+ $tptn_path = WP_CONTENT_DIR.'/plugins/'.plugin_basename(dirname(__FILE__));
22
+ $tptn_url = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__));
23
+
24
+
25
+
26
  if (!function_exists('add_action')) {
27
  $wp_root = '../../..';
28
  if (file_exists($wp_root.'/wp-load.php')) {
51
  // Update post views
52
  add_filter('the_content','tptn_add_viewed_count',9000);
53
  function tptn_add_viewed_count($content) {
54
+ global $post, $wpdb, $single,$tptn_url,$tptn_path;
55
  $table_name = $wpdb->prefix . "top_ten";
56
  $tptn_settings = tptn_read_options();
57
 
61
  if((is_single() || is_page())) {
62
  if (!(($post_author)&&(!$tptn_settings['track_authors']))) {
63
  $id = intval($post->ID);
64
+ $output = '<script type="text/javascript" src="'.$tptn_url.'/top-10-addcount.js.php?top_ten_id='.$id.'"></script>';
65
  return $content.$output;
66
  }
67
  else {
76
 
77
  // Function to add count to content
78
  function tptn_pc_content($content) {
79
+ global $single, $post,$tptn_url,$tptn_path;
80
  $tptn_settings = tptn_read_options();
81
  $id = intval($post->ID);
82
 
83
  if((is_single())&&($tptn_settings['add_to_content'])) {
84
+ $output = '<script type="text/javascript" src="'.$tptn_url.'/top-10-counter.js.php?top_ten_id='.$id.'"></script>';
85
  return $content.$output;
86
  } elseif((is_page())&&($tptn_settings['count_on_pages'])) {
87
+ $output = '<script type="text/javascript" src="'.$tptn_url.'/top-10-counter.js.php?top_ten_id='.$id.'"></script>';
88
  return $content.$output;
89
  } else {
90
  return $content;
94
 
95
  // Function to manually display count
96
  function echo_tptn_post_count() {
97
+ global $post,$tptn_url,$tptn_path;
98
  $id = intval($post->ID);
99
 
100
+ $output = '<script type="text/javascript" src="'.$tptn_url.'/top-10-counter.js.php?top_ten_id='.$id.'"></script>';
101
  echo $output;
102
  }
103
 
104
+ // Function to return popular posts
105
+ function tptn_pop_posts( $daily = false , $widget = false ) {
106
  global $wpdb, $siteurl, $tableposts, $id;
107
+ if ($daily) $table_name = $wpdb->prefix . "top_ten_daily";
108
+ else $table_name = $wpdb->prefix . "top_ten";
109
  $tptn_settings = tptn_read_options();
110
  $limit = $tptn_settings['limit'];
 
 
 
 
 
 
111
 
112
+ if (!$daily) {
113
+ $sql = "SELECT postnumber, cntaccess as sumCount, ID, post_type, post_status ";
114
+ $sql .= "FROM $table_name INNER JOIN ". $wpdb->posts ." ON postnumber=ID " ;
115
+ if ($tptn_settings['exclude_pages']) $sql .= "AND post_type = 'post' ";
116
+ $sql .= "AND post_status = 'publish' ";
117
+ $sql .= "ORDER BY sumCount DESC LIMIT $limit";
118
+ } else {
119
+ $daily_range = $tptn_settings[daily_range]. ' DAY';
120
+ $current_date = $wpdb->get_var("SELECT DATE_ADD(DATE_SUB(CURDATE(), INTERVAL ".$daily_range."), INTERVAL 1 DAY) ");
121
+
122
+ $sql = "SELECT postnumber, SUM(cntaccess) as sumCount, dp_date, ID, post_type, post_status ";
123
+ $sql .= "FROM $table_name INNER JOIN ". $wpdb->posts ." ON postnumber=ID " ;
124
+ if ($tptn_settings['exclude_pages']) $sql .= "AND post_type = 'post' ";
125
+ $sql .= "AND post_status = 'publish' AND dp_date >= '$current_date' ";
126
+ $sql .= "GROUP BY postnumber ";
127
+ $sql .= "ORDER BY sumCount DESC LIMIT $limit";
128
+ }
129
  $results = $wpdb->get_results($sql);
130
+ $output = '';
131
+
132
+ if (!$widget) {
133
+ if (!$daily) {
134
+ $output .= '<div id="tptn_related">'.$tptn_settings['title'];
135
+ } else {
136
+ $output .= '<div id="tptn_related_daily">'.$tptn_settings['title_daily'];
137
+ }
138
+ }
139
 
 
 
140
  if ($results) {
141
+ $output .= $tptn_settings['before_list'];
142
  foreach ($results as $result) {
143
+ $title = trim(stripslashes(get_the_title($result->postnumber)));
144
+ $output .= $tptn_settings['before_list_item'];
145
+
146
+ if (($tptn_settings['post_thumb_op']=='inline')||($tptn_settings['post_thumb_op']=='thumbs_only')) {
147
+ $output .= '<a href="'.get_permalink($result->postnumber).'" rel="bookmark">';
148
+ if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail($result->postnumber))) {
149
+ $output .= get_the_post_thumbnail( $result->postnumber, array($tptn_settings[thumb_width],$tptn_settings[thumb_height]), array('title' => $title,'alt' => $title));
150
+ } else {
151
+ $postimage = get_post_meta($result->postnumber, 'post-image', true);
152
+ if ($postimage) {
153
+ $output .= '<img src="'.$postimage.'" alt="'.$title.'" title="'.$title.'" width="'.$tptn_settings[thumb_width].'" height="'.$tptn_settings[thumb_height].'" />';
154
+ } else {
155
+ $output .= '<img src="'.$tptn_settings[thumb_default].'" alt="'.$title.'" title="'.$title.'" width="'.$tptn_settings[thumb_width].'" height="'.$tptn_settings[thumb_height].'" />';
156
+ }
157
+ }
158
+ $output .= '</a> ';
159
+ }
160
+ if (($tptn_settings['post_thumb_op']=='inline')||($tptn_settings['post_thumb_op']=='text_only')) {
161
+ $output .= '<a href="'.get_permalink($result->postnumber).'" rel="bookmark">'.$title.'</a>';
162
+ }
163
+ if ($tptn_settings['disp_list_count']) $output .= ' ('.$result->sumCount.')';
164
+ $output .= $tptn_settings['after_list_item'];
165
  }
166
+ if ($tptn_settings['show_credit']) $output .= '<li>Popular posts by <a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 plugin</a></li>';
167
+ $output .= $tptn_settings['after_list'];
168
  }
169
+ if (!$widget) $output .= '</div>';
170
+
171
+ return $output;
172
+ }
173
+
174
+ // Function to show popular posts
175
+ function tptn_show_pop_posts() {
176
+ echo tptn_pop_posts(false,false);
177
  }
178
 
179
  // Function to show daily popular posts
180
  function tptn_show_daily_pop_posts() {
181
+ global $tptn_url;
 
182
  $tptn_settings = tptn_read_options();
 
 
 
183
  if ($tptn_settings['d_use_js']) {
184
+ echo '<script type="text/javascript" src="'.$tptn_url.'/top-10-daily.js.php?widget=1"></script>';
185
  } else {
186
+ echo tptn_pop_posts(true,false);
187
+ }
188
+ }
189
+
190
+ // Create a WordPress Widget for Daily Popular Posts
191
+ function widget_tptn_pop_daily($args) {
192
+ global $wpdb, $siteurl, $tableposts, $id,$tptn_url;
 
 
193
 
194
+ extract($args); // extracts before_widget,before_title,after_title,after_widget
195
+
196
+ $tptn_settings = tptn_read_options();
197
+ $title = (($tptn_settings['title_daily']) ? strip_tags($tptn_settings['title_daily']) : __('Daily Popular',TPTN_LOCAL_NAME));
198
+
199
+ echo $before_widget;
200
+ echo $before_title.$title.$after_title;
201
 
202
+ if ($tptn_settings['d_use_js']) {
203
+ echo '<script type="text/javascript" src="'.$tptn_url.'/top-10-daily.js.php?widget=1"></script>';
204
+ } else {
205
+ echo tptn_pop_posts(true,true);
 
 
 
 
 
 
 
 
206
  }
207
+
208
+ echo $after_widget;
209
+ }
210
+
211
+ // Create a WordPress Widget for Popular Posts
212
+ function widget_tptn_pop($args) {
213
+ global $wpdb, $siteurl, $tableposts, $id;
214
+
215
+ extract($args); // extracts before_widget,before_title,after_title,after_widget
216
+
217
+ $tptn_settings = tptn_read_options();
218
+ $title = (($tptn_settings['title']) ? strip_tags($tptn_settings['title']) : __('Popular Posts',TPTN_LOCAL_NAME));
219
+
220
+ echo $before_widget;
221
+ echo $before_title.$title.$after_title;
222
+ echo tptn_pop_posts(false,true);
223
+ echo $after_widget;
224
  }
225
 
226
  // Default Options
227
  function tptn_default_options() {
228
+ global $tptn_url;
229
  $title = __('<h3>Popular Posts</h3>',TPTN_LOCAL_NAME);
230
  $title_daily = __('<h3>Daily Popular</h3>',TPTN_LOCAL_NAME);
231
+ $thumb_default = $tptn_url.'/default.png';
232
 
233
  $tptn_settings = Array (
234
  show_credit => true, // Add link to plugin page of my blog in top posts list
244
  title_daily => $title_daily, // Title of Daily Popular
245
  limit => '10', // How many posts to display?
246
  daily_range => '1', // Daily Popular will contain posts of how many days?
247
+ before_list => '<ul>', // Before the entire list
248
+ after_list => '</ul>', // After the entire list
249
+ before_list_item => '<li>', // Before each list item
250
+ after_list_item => '</li>', // After each list item
251
+ post_thumb_op => 'text_only', // Display only text in posts
252
+ thumb_height => '100', // Height of thumbnails
253
+ thumb_width => '100', // Width of thumbnails
254
+ thumb_meta => 'post-image', // Meta field that is used to store the location of default thumbnail image
255
+ thumb_default => $thumb_default, // Default thumbnail image
256
  );
257
  return $tptn_settings;
258
  }
373
  $wpdb->query($sql);
374
  }
375
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
 
377
  function init_tptn(){
378
  register_sidebar_widget(__('Popular Posts',TPTN_LOCAL_NAME), 'widget_tptn_pop');
383
  // This function adds an Options page in WP Admin
384
  if (is_admin() || strstr($_SERVER['PHP_SELF'], 'wp-admin/')) {
385
  require_once(ALD_TPTN_DIR . "/admin.inc.php");
386
+
387
+ // Add meta links
388
+ function tptn_plugin_actions( $links, $file ) {
389
+ $plugin = plugin_basename(__FILE__);
390
+
391
+ // create link
392
+ if ($file == $plugin) {
393
+ $links[] = '<a href="' . admin_url( 'options-general.php?page=tptn_options' ) . '">' . __('Settings', tptn_LOCAL_NAME ) . '</a>';
394
+ $links[] = '<a href="http://ajaydsouza.org">' . __('Support', tptn_LOCAL_NAME ) . '</a>';
395
+ $links[] = '<a href="http://ajaydsouza.com/donate/">' . __('Donate', tptn_LOCAL_NAME ) . '</a>';
396
+ }
397
+ return $links;
398
+ }
399
+ global $wp_version;
400
+ if ( version_compare( $wp_version, '2.8alpha', '>' ) )
401
+ add_filter( 'plugin_row_meta', 'tptn_plugin_actions', 10, 2 ); // only 2.8 and higher
402
+ else add_filter( 'plugin_action_links', 'tptn_plugin_actions', 10, 2 );
403
+
404
  }
405
 
406
+
407
  ?>