Version Description
- Improved plugin performance with high number of posts
- PHP configuration allow_url_fopen is taken into account
- Added start date to exclude old posts
- Fixed display, only posts now
- Separated categories - which are displayed amoung thumbnails and on which thumbnails are displayed
- Random relation, for random posts display
- PHP 4.3 compatible now according to Wordpress requirements
- tested with Wordpress 3.0
Download this release
Release Info
Developer | marynixie |
Plugin | Related Posts Thumbnails Plugin for WordPress |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- locale/related-posts-thumbnails-fr_FR.mo +0 -0
- locale/related-posts-thumbnails-fr_FR.po +54 -44
- locale/related-posts-thumbnails-ru_RU.mo +0 -0
- locale/related-posts-thumbnails-ru_RU.po +89 -39
- readme.txt +24 -3
- related-posts-thumbnails.php +223 -150
- screenshot-2.png +0 -0
locale/related-posts-thumbnails-fr_FR.mo
CHANGED
Binary file
|
locale/related-posts-thumbnails-fr_FR.po
CHANGED
@@ -19,210 +19,220 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
"X-Textdomain-Support: yes"
|
21 |
|
22 |
-
#: related-posts-thumbnails.php:
|
23 |
#@ related-posts-thumbnails
|
24 |
msgid "Related Posts Thumbnails"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: related-posts-thumbnails.php:
|
28 |
#@ related-posts-thumbnails
|
29 |
msgid "Related Posts Thumbs"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: related-posts-thumbnails.php:
|
33 |
#@ related-posts-thumbnails
|
34 |
msgid "No access"
|
35 |
msgstr "Accès refusé"
|
36 |
|
37 |
-
#: related-posts-thumbnails.php:
|
38 |
#@ related-posts-thumbnails
|
39 |
msgid "Settings updated"
|
40 |
msgstr "Réglages mis à jour"
|
41 |
|
42 |
-
#: related-posts-thumbnails.php:
|
43 |
#@ related-posts-thumbnails
|
44 |
msgid "Related Posts Thumbnails Settings"
|
45 |
msgstr "Réglages de Related Posts Thumbnails"
|
46 |
|
47 |
-
#: related-posts-thumbnails.php:
|
48 |
#@ related-posts-thumbnails
|
49 |
msgid "General Display Options"
|
50 |
msgstr "Options d'affichage général"
|
51 |
|
52 |
-
#: related-posts-thumbnails.php:
|
53 |
#@ related-posts-thumbnails
|
54 |
msgid "Automatically append to the post content"
|
55 |
msgstr "Rajouter automatiquement au contenu du billet"
|
56 |
|
57 |
-
#: related-posts-thumbnails.php:
|
58 |
#@ related-posts-thumbnails
|
59 |
msgid "Or use <b><?php get_related_posts_thumbnails(); ?></b> in the Loop"
|
60 |
msgstr "Ou utiliser <b><?php get_related_posts_thumbnails(); ?></b> à l'intérieur de la boucle."
|
61 |
|
62 |
-
#: related-posts-thumbnails.php:
|
63 |
#@ related-posts-thumbnails
|
64 |
msgid "Page type"
|
65 |
msgstr "Type de page"
|
66 |
|
67 |
-
#: related-posts-thumbnails.php:
|
68 |
#@ related-posts-thumbnails
|
69 |
msgid "Show on single posts only"
|
70 |
msgstr "Afficher seulement dans les billets uniques"
|
71 |
|
72 |
-
#: related-posts-thumbnails.php:
|
73 |
-
#: related-posts-thumbnails.php:
|
74 |
#@ related-posts-thumbnails
|
75 |
msgid "Categories"
|
76 |
msgstr "Catégories"
|
77 |
|
78 |
-
#: related-posts-thumbnails.php:
|
79 |
#@ related-posts-thumbnails
|
80 |
msgid "All"
|
81 |
msgstr "Toutes "
|
82 |
|
83 |
-
#: related-posts-thumbnails.php:
|
84 |
#@ related-posts-thumbnails
|
85 |
msgid "Top text"
|
86 |
msgstr "Texte de présentation"
|
87 |
|
88 |
-
#: related-posts-thumbnails.php:
|
89 |
#@ related-posts-thumbnails
|
90 |
msgid "Number of similar posts to display"
|
91 |
msgstr "Nombre de billets similaires à afficher"
|
92 |
|
93 |
-
#: related-posts-thumbnails.php:
|
94 |
#@ related-posts-thumbnails
|
95 |
msgid "Default image URL"
|
96 |
msgstr "Adresse URL de l'image par défaut"
|
97 |
|
98 |
-
#: related-posts-thumbnails.php:
|
99 |
-
#: related-posts-thumbnails.php:
|
100 |
-
#: related-posts-thumbnails.php:
|
101 |
#@ related-posts-thumbnails
|
102 |
msgid "Thumbnails source"
|
103 |
msgstr "Source des miniatures"
|
104 |
|
105 |
-
#: related-posts-thumbnails.php:
|
106 |
#@ related-posts-thumbnails
|
107 |
msgid "Post-thumbnails name"
|
108 |
msgstr "Nom des miniatures des billets"
|
109 |
|
110 |
-
#: related-posts-thumbnails.php:
|
111 |
#@ related-posts-thumbnails
|
112 |
msgid "Your theme has to support post-thumbnails to have more choices"
|
113 |
msgstr "Votre thème doit être compatible avec les miniatures de billets pour avoir plus de choix"
|
114 |
|
115 |
-
#: related-posts-thumbnails.php:
|
116 |
#@ related-posts-thumbnails
|
117 |
msgid "Custom field name"
|
118 |
msgstr "Nom du champ personnalisé"
|
119 |
|
120 |
-
#: related-posts-thumbnails.php:
|
121 |
#@ related-posts-thumbnails
|
122 |
msgid "Size"
|
123 |
msgstr "Taille"
|
124 |
|
125 |
-
#: related-posts-thumbnails.php:
|
126 |
#@ related-posts-thumbnails
|
127 |
msgid "Width"
|
128 |
msgstr "Largeur"
|
129 |
|
130 |
-
#: related-posts-thumbnails.php:
|
131 |
#@ related-posts-thumbnails
|
132 |
msgid "Height"
|
133 |
msgstr "Hauteur"
|
134 |
|
135 |
-
#: related-posts-thumbnails.php:
|
136 |
#@ related-posts-thumbnails
|
137 |
msgid "Style options"
|
138 |
msgstr "Options de style"
|
139 |
|
140 |
-
#: related-posts-thumbnails.php:
|
141 |
#@ related-posts-thumbnails
|
142 |
msgid "Background color"
|
143 |
msgstr "Couleur de fond"
|
144 |
|
145 |
-
#: related-posts-thumbnails.php:
|
146 |
#@ related-posts-thumbnails
|
147 |
msgid "Background color on mouse over"
|
148 |
msgstr "Couleur de fond au passage de la souris"
|
149 |
|
150 |
-
#: related-posts-thumbnails.php:
|
151 |
#@ related-posts-thumbnails
|
152 |
msgid "Border color"
|
153 |
msgstr "Couleur du cadre"
|
154 |
|
155 |
-
#: related-posts-thumbnails.php:
|
156 |
#@ related-posts-thumbnails
|
157 |
msgid "Font color"
|
158 |
msgstr "Couleur de la police de caractères"
|
159 |
|
160 |
-
#: related-posts-thumbnails.php:
|
161 |
#@ related-posts-thumbnails
|
162 |
msgid "Font family"
|
163 |
msgstr "Police de caractères"
|
164 |
|
165 |
-
#: related-posts-thumbnails.php:
|
166 |
#@ related-posts-thumbnails
|
167 |
msgid "Font size"
|
168 |
msgstr "Taille de la police de caractères"
|
169 |
|
170 |
-
#: related-posts-thumbnails.php:
|
171 |
#@ related-posts-thumbnails
|
172 |
msgid "Text maximum length"
|
173 |
msgstr "Taille maximum du texte"
|
174 |
|
175 |
-
#: related-posts-thumbnails.php:
|
176 |
#@ related-posts-thumbnails
|
177 |
msgid "Set 0 for no title"
|
178 |
msgstr "Mettre 0 pour ne pas avoir de titre"
|
179 |
|
180 |
-
#: related-posts-thumbnails.php:
|
181 |
#@ related-posts-thumbnails
|
182 |
msgid "Excerpt maximum length"
|
183 |
msgstr "Taille maximum de l'extrait"
|
184 |
|
185 |
-
#: related-posts-thumbnails.php:
|
186 |
#@ related-posts-thumbnails
|
187 |
msgid "Set 0 for no excerpt"
|
188 |
msgstr "Mettre 0 pour ne pas avoir d'extrait"
|
189 |
|
190 |
-
#: related-posts-thumbnails.php:
|
191 |
#@ related-posts-thumbnails
|
192 |
msgid "Text block height"
|
193 |
msgstr "Hauteur du bloc de texte"
|
194 |
|
195 |
-
#: related-posts-thumbnails.php:
|
196 |
#@ related-posts-thumbnails
|
197 |
msgid "Relation Builder Options"
|
198 |
msgstr "Options du gestionnaire de liens"
|
199 |
|
200 |
-
#: related-posts-thumbnails.php:
|
201 |
#@ related-posts-thumbnails
|
202 |
msgid "Relation based on"
|
203 |
msgstr "Liens basés sur "
|
204 |
|
205 |
-
#: related-posts-thumbnails.php:
|
206 |
#@ related-posts-thumbnails
|
207 |
msgid "Tags"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: related-posts-thumbnails.php:
|
211 |
#@ related-posts-thumbnails
|
212 |
msgid "Categories and Tags"
|
213 |
msgstr "Catégories et tags"
|
214 |
|
215 |
-
#: related-posts-thumbnails.php:
|
216 |
#@ related-posts-thumbnails
|
217 |
msgid "Save Changes"
|
218 |
msgstr "Sauvegarder les modifications "
|
219 |
|
220 |
-
#: related-posts-thumbnails.php:
|
221 |
#@ related-posts-thumbnails
|
222 |
msgid "If you experience some problems with this plugin please let me know about it on <a href=\"http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/\">Plugin's homepage</a>. If you think this plugin is awesome please vote on <a href=\"http://wordpress.org/extend/plugins/related-posts-thumbnails/\">Wordpress plugin page</a>. Thanks!"
|
223 |
msgstr "Si vous rencontrez des problèmes avec ce plugin, faites le moi savoir à <a href=\"http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/\">la page du plugin</a>. Si vous trouvez ce plugin formidable, n'hésitez pas à aller voter sur <a href=\"http://wordpress.org/extend/plugins/related-posts-thumbnails/\">la page Wordpress du plugin</a>. Merci d'avance !"
|
224 |
|
225 |
-
#: related-posts-thumbnails.php:
|
226 |
msgid "Title:"
|
227 |
msgstr ""
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
"X-Textdomain-Support: yes"
|
21 |
|
22 |
+
#: related-posts-thumbnails.php:273
|
23 |
#@ related-posts-thumbnails
|
24 |
msgid "Related Posts Thumbnails"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: related-posts-thumbnails.php:273
|
28 |
#@ related-posts-thumbnails
|
29 |
msgid "Related Posts Thumbs"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: related-posts-thumbnails.php:279
|
33 |
#@ related-posts-thumbnails
|
34 |
msgid "No access"
|
35 |
msgstr "Accès refusé"
|
36 |
|
37 |
+
#: related-posts-thumbnails.php:305
|
38 |
#@ related-posts-thumbnails
|
39 |
msgid "Settings updated"
|
40 |
msgstr "Réglages mis à jour"
|
41 |
|
42 |
+
#: related-posts-thumbnails.php:326
|
43 |
#@ related-posts-thumbnails
|
44 |
msgid "Related Posts Thumbnails Settings"
|
45 |
msgstr "Réglages de Related Posts Thumbnails"
|
46 |
|
47 |
+
#: related-posts-thumbnails.php:332
|
48 |
#@ related-posts-thumbnails
|
49 |
msgid "General Display Options"
|
50 |
msgstr "Options d'affichage général"
|
51 |
|
52 |
+
#: related-posts-thumbnails.php:335
|
53 |
#@ related-posts-thumbnails
|
54 |
msgid "Automatically append to the post content"
|
55 |
msgstr "Rajouter automatiquement au contenu du billet"
|
56 |
|
57 |
+
#: related-posts-thumbnails.php:338
|
58 |
#@ related-posts-thumbnails
|
59 |
msgid "Or use <b><?php get_related_posts_thumbnails(); ?></b> in the Loop"
|
60 |
msgstr "Ou utiliser <b><?php get_related_posts_thumbnails(); ?></b> à l'intérieur de la boucle."
|
61 |
|
62 |
+
#: related-posts-thumbnails.php:349
|
63 |
#@ related-posts-thumbnails
|
64 |
msgid "Page type"
|
65 |
msgstr "Type de page"
|
66 |
|
67 |
+
#: related-posts-thumbnails.php:352
|
68 |
#@ related-posts-thumbnails
|
69 |
msgid "Show on single posts only"
|
70 |
msgstr "Afficher seulement dans les billets uniques"
|
71 |
|
72 |
+
#: related-posts-thumbnails.php:356
|
73 |
+
#: related-posts-thumbnails.php:528
|
74 |
#@ related-posts-thumbnails
|
75 |
msgid "Categories"
|
76 |
msgstr "Catégories"
|
77 |
|
78 |
+
#: related-posts-thumbnails.php:371
|
79 |
#@ related-posts-thumbnails
|
80 |
msgid "All"
|
81 |
msgstr "Toutes "
|
82 |
|
83 |
+
#: related-posts-thumbnails.php:381
|
84 |
#@ related-posts-thumbnails
|
85 |
msgid "Top text"
|
86 |
msgstr "Texte de présentation"
|
87 |
|
88 |
+
#: related-posts-thumbnails.php:387
|
89 |
#@ related-posts-thumbnails
|
90 |
msgid "Number of similar posts to display"
|
91 |
msgstr "Nombre de billets similaires à afficher"
|
92 |
|
93 |
+
#: related-posts-thumbnails.php:393
|
94 |
#@ related-posts-thumbnails
|
95 |
msgid "Default image URL"
|
96 |
msgstr "Adresse URL de l'image par défaut"
|
97 |
|
98 |
+
#: related-posts-thumbnails.php:399
|
99 |
+
#: related-posts-thumbnails.php:425
|
100 |
+
#: related-posts-thumbnails.php:443
|
101 |
#@ related-posts-thumbnails
|
102 |
msgid "Thumbnails source"
|
103 |
msgstr "Source des miniatures"
|
104 |
|
105 |
+
#: related-posts-thumbnails.php:428
|
106 |
#@ related-posts-thumbnails
|
107 |
msgid "Post-thumbnails name"
|
108 |
msgstr "Nom des miniatures des billets"
|
109 |
|
110 |
+
#: related-posts-thumbnails.php:436
|
111 |
#@ related-posts-thumbnails
|
112 |
msgid "Your theme has to support post-thumbnails to have more choices"
|
113 |
msgstr "Votre thème doit être compatible avec les miniatures de billets pour avoir plus de choix"
|
114 |
|
115 |
+
#: related-posts-thumbnails.php:446
|
116 |
#@ related-posts-thumbnails
|
117 |
msgid "Custom field name"
|
118 |
msgstr "Nom du champ personnalisé"
|
119 |
|
120 |
+
#: related-posts-thumbnails.php:452
|
121 |
#@ related-posts-thumbnails
|
122 |
msgid "Size"
|
123 |
msgstr "Taille"
|
124 |
|
125 |
+
#: related-posts-thumbnails.php:454
|
126 |
#@ related-posts-thumbnails
|
127 |
msgid "Width"
|
128 |
msgstr "Largeur"
|
129 |
|
130 |
+
#: related-posts-thumbnails.php:455
|
131 |
#@ related-posts-thumbnails
|
132 |
msgid "Height"
|
133 |
msgstr "Hauteur"
|
134 |
|
135 |
+
#: related-posts-thumbnails.php:461
|
136 |
#@ related-posts-thumbnails
|
137 |
msgid "Style options"
|
138 |
msgstr "Options de style"
|
139 |
|
140 |
+
#: related-posts-thumbnails.php:464
|
141 |
#@ related-posts-thumbnails
|
142 |
msgid "Background color"
|
143 |
msgstr "Couleur de fond"
|
144 |
|
145 |
+
#: related-posts-thumbnails.php:470
|
146 |
#@ related-posts-thumbnails
|
147 |
msgid "Background color on mouse over"
|
148 |
msgstr "Couleur de fond au passage de la souris"
|
149 |
|
150 |
+
#: related-posts-thumbnails.php:476
|
151 |
#@ related-posts-thumbnails
|
152 |
msgid "Border color"
|
153 |
msgstr "Couleur du cadre"
|
154 |
|
155 |
+
#: related-posts-thumbnails.php:482
|
156 |
#@ related-posts-thumbnails
|
157 |
msgid "Font color"
|
158 |
msgstr "Couleur de la police de caractères"
|
159 |
|
160 |
+
#: related-posts-thumbnails.php:488
|
161 |
#@ related-posts-thumbnails
|
162 |
msgid "Font family"
|
163 |
msgstr "Police de caractères"
|
164 |
|
165 |
+
#: related-posts-thumbnails.php:494
|
166 |
#@ related-posts-thumbnails
|
167 |
msgid "Font size"
|
168 |
msgstr "Taille de la police de caractères"
|
169 |
|
170 |
+
#: related-posts-thumbnails.php:500
|
171 |
#@ related-posts-thumbnails
|
172 |
msgid "Text maximum length"
|
173 |
msgstr "Taille maximum du texte"
|
174 |
|
175 |
+
#: related-posts-thumbnails.php:503
|
176 |
#@ related-posts-thumbnails
|
177 |
msgid "Set 0 for no title"
|
178 |
msgstr "Mettre 0 pour ne pas avoir de titre"
|
179 |
|
180 |
+
#: related-posts-thumbnails.php:507
|
181 |
#@ related-posts-thumbnails
|
182 |
msgid "Excerpt maximum length"
|
183 |
msgstr "Taille maximum de l'extrait"
|
184 |
|
185 |
+
#: related-posts-thumbnails.php:510
|
186 |
#@ related-posts-thumbnails
|
187 |
msgid "Set 0 for no excerpt"
|
188 |
msgstr "Mettre 0 pour ne pas avoir d'extrait"
|
189 |
|
190 |
+
#: related-posts-thumbnails.php:514
|
191 |
#@ related-posts-thumbnails
|
192 |
msgid "Text block height"
|
193 |
msgstr "Hauteur du bloc de texte"
|
194 |
|
195 |
+
#: related-posts-thumbnails.php:522
|
196 |
#@ related-posts-thumbnails
|
197 |
msgid "Relation Builder Options"
|
198 |
msgstr "Options du gestionnaire de liens"
|
199 |
|
200 |
+
#: related-posts-thumbnails.php:525
|
201 |
#@ related-posts-thumbnails
|
202 |
msgid "Relation based on"
|
203 |
msgstr "Liens basés sur "
|
204 |
|
205 |
+
#: related-posts-thumbnails.php:530
|
206 |
#@ related-posts-thumbnails
|
207 |
msgid "Tags"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: related-posts-thumbnails.php:532
|
211 |
#@ related-posts-thumbnails
|
212 |
msgid "Categories and Tags"
|
213 |
msgstr "Catégories et tags"
|
214 |
|
215 |
+
#: related-posts-thumbnails.php:537
|
216 |
#@ related-posts-thumbnails
|
217 |
msgid "Save Changes"
|
218 |
msgstr "Sauvegarder les modifications "
|
219 |
|
220 |
+
#: related-posts-thumbnails.php:541
|
221 |
#@ related-posts-thumbnails
|
222 |
msgid "If you experience some problems with this plugin please let me know about it on <a href=\"http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/\">Plugin's homepage</a>. If you think this plugin is awesome please vote on <a href=\"http://wordpress.org/extend/plugins/related-posts-thumbnails/\">Wordpress plugin page</a>. Thanks!"
|
223 |
msgstr "Si vous rencontrez des problèmes avec ce plugin, faites le moi savoir à <a href=\"http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/\">la page du plugin</a>. Si vous trouvez ce plugin formidable, n'hésitez pas à aller voter sur <a href=\"http://wordpress.org/extend/plugins/related-posts-thumbnails/\">la page Wordpress du plugin</a>. Merci d'avance !"
|
224 |
|
225 |
+
#: related-posts-thumbnails.php:588
|
226 |
msgid "Title:"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: related-posts-thumbnails.php:342
|
230 |
+
#@ related-posts-thumbnails
|
231 |
+
msgid "Developer mode"
|
232 |
+
msgstr "Mode pour développeur"
|
233 |
+
|
234 |
+
#: related-posts-thumbnails.php:345
|
235 |
+
#@ related-posts-thumbnails
|
236 |
+
msgid "This will add debugging information in HTML source"
|
237 |
+
msgstr "Ceci ajoutera des informations de debuggage dans la source HTML"
|
238 |
+
|
locale/related-posts-thumbnails-ru_RU.mo
CHANGED
Binary file
|
locale/related-posts-thumbnails-ru_RU.po
CHANGED
@@ -4,10 +4,10 @@
|
|
4 |
# Maria Shaldybina <mary@shaldybina.com>, 2010
|
5 |
msgid ""
|
6 |
msgstr ""
|
7 |
-
"Project-Id-Version: Related Posts Thubmnails 1.
|
8 |
"Report-Msgid-Bugs-To: \n"
|
9 |
"POT-Creation-Date: 2010-05-19 17:17-0700\n"
|
10 |
-
"PO-Revision-Date: 2010-06-
|
11 |
"Last-Translator: M.Shaldybina <mary@shaldybina.com>\n"
|
12 |
"Language-Team: ru_RU <mary@shaldybina.com>\n"
|
13 |
"Language: ru_RU\n"
|
@@ -21,37 +21,37 @@ msgstr ""
|
|
21 |
|
22 |
#: related-posts-thumbnails.php:148 related-posts-thumbnails.php:194
|
23 |
#: related-posts-thumbnails.php:231 related-posts-thumbnails.php:232
|
24 |
-
#: related-posts-thumbnails.php:273
|
25 |
msgid "Related Posts Thumbnails"
|
26 |
-
msgstr "
|
27 |
|
28 |
#: related-posts-thumbnails.php:148 related-posts-thumbnails.php:194
|
29 |
#: related-posts-thumbnails.php:231 related-posts-thumbnails.php:232
|
30 |
-
#: related-posts-thumbnails.php:273
|
31 |
msgid "Related Posts Thumbs"
|
32 |
-
msgstr "
|
33 |
|
34 |
#: related-posts-thumbnails.php:154 related-posts-thumbnails.php:200
|
35 |
#: related-posts-thumbnails.php:237 related-posts-thumbnails.php:238
|
36 |
-
#: related-posts-thumbnails.php:279
|
37 |
msgid "No access"
|
38 |
msgstr "Нет доступа"
|
39 |
|
40 |
#: related-posts-thumbnails.php:170 related-posts-thumbnails.php:222
|
41 |
#: related-posts-thumbnails.php:261 related-posts-thumbnails.php:263
|
42 |
-
#: related-posts-thumbnails.php:305
|
43 |
msgid "Settings updated"
|
44 |
msgstr "Настройки обновлены"
|
45 |
|
46 |
#: related-posts-thumbnails.php:182 related-posts-thumbnails.php:239
|
47 |
#: related-posts-thumbnails.php:281 related-posts-thumbnails.php:283
|
48 |
-
#: related-posts-thumbnails.php:326
|
49 |
msgid "Related Posts Thumbnails Settings"
|
50 |
msgstr "Настройки миниатюр похожих записей"
|
51 |
|
52 |
#: related-posts-thumbnails.php:188 related-posts-thumbnails.php:245
|
53 |
#: related-posts-thumbnails.php:287 related-posts-thumbnails.php:289
|
54 |
-
#: related-posts-thumbnails.php:332
|
55 |
msgid "General Display Options"
|
56 |
msgstr "Общие свойства отображения"
|
57 |
|
@@ -61,79 +61,79 @@ msgstr "Параметр отображения"
|
|
61 |
|
62 |
#: related-posts-thumbnails.php:194 related-posts-thumbnails.php:251
|
63 |
#: related-posts-thumbnails.php:300 related-posts-thumbnails.php:302
|
64 |
-
#: related-posts-thumbnails.php:352
|
65 |
msgid "Show on single posts only"
|
66 |
msgstr "Показывать только на отдельной странице"
|
67 |
|
68 |
#: related-posts-thumbnails.php:198 related-posts-thumbnails.php:280
|
69 |
#: related-posts-thumbnails.php:329 related-posts-thumbnails.php:331
|
70 |
-
#: related-posts-thumbnails.php:381
|
71 |
msgid "Top text"
|
72 |
msgstr "Верхний текст"
|
73 |
|
74 |
#: related-posts-thumbnails.php:204 related-posts-thumbnails.php:286
|
75 |
#: related-posts-thumbnails.php:335 related-posts-thumbnails.php:337
|
76 |
-
#: related-posts-thumbnails.php:387
|
77 |
msgid "Number of similar posts to display"
|
78 |
msgstr "Количество похожих записей для отображения"
|
79 |
|
80 |
#: related-posts-thumbnails.php:212 related-posts-thumbnails.php:360
|
81 |
#: related-posts-thumbnails.php:409 related-posts-thumbnails.php:411
|
82 |
-
#: related-posts-thumbnails.php:461
|
83 |
msgid "Style options"
|
84 |
msgstr "Опции стиля"
|
85 |
|
86 |
#: related-posts-thumbnails.php:215 related-posts-thumbnails.php:363
|
87 |
#: related-posts-thumbnails.php:412 related-posts-thumbnails.php:414
|
88 |
-
#: related-posts-thumbnails.php:464
|
89 |
msgid "Background color"
|
90 |
msgstr "Цвет заднего фона"
|
91 |
|
92 |
#: related-posts-thumbnails.php:221 related-posts-thumbnails.php:369
|
93 |
#: related-posts-thumbnails.php:418 related-posts-thumbnails.php:420
|
94 |
-
#: related-posts-thumbnails.php:470
|
95 |
msgid "Background color on mouse over"
|
96 |
msgstr "Цвет заднего фона при наведении курсора"
|
97 |
|
98 |
#: related-posts-thumbnails.php:227 related-posts-thumbnails.php:375
|
99 |
#: related-posts-thumbnails.php:424 related-posts-thumbnails.php:426
|
100 |
-
#: related-posts-thumbnails.php:476
|
101 |
msgid "Border color"
|
102 |
msgstr "Цвет границы"
|
103 |
|
104 |
#: related-posts-thumbnails.php:233 related-posts-thumbnails.php:381
|
105 |
#: related-posts-thumbnails.php:430 related-posts-thumbnails.php:432
|
106 |
-
#: related-posts-thumbnails.php:482
|
107 |
msgid "Font color"
|
108 |
msgstr "Цвет шрифта"
|
109 |
|
110 |
#: related-posts-thumbnails.php:239 related-posts-thumbnails.php:387
|
111 |
#: related-posts-thumbnails.php:436 related-posts-thumbnails.php:438
|
112 |
-
#: related-posts-thumbnails.php:488
|
113 |
msgid "Font family"
|
114 |
msgstr "Стиль шрифта"
|
115 |
|
116 |
#: related-posts-thumbnails.php:245 related-posts-thumbnails.php:393
|
117 |
#: related-posts-thumbnails.php:442 related-posts-thumbnails.php:444
|
118 |
-
#: related-posts-thumbnails.php:494
|
119 |
msgid "Font size"
|
120 |
msgstr "Размер шрифта"
|
121 |
|
122 |
#: related-posts-thumbnails.php:251 related-posts-thumbnails.php:399
|
123 |
#: related-posts-thumbnails.php:448 related-posts-thumbnails.php:450
|
124 |
-
#: related-posts-thumbnails.php:500
|
125 |
msgid "Text maximum length"
|
126 |
msgstr "Максимальная длина текста"
|
127 |
|
128 |
#: related-posts-thumbnails.php:259 related-posts-thumbnails.php:407
|
129 |
#: related-posts-thumbnails.php:464 related-posts-thumbnails.php:472
|
130 |
-
#: related-posts-thumbnails.php:522
|
131 |
msgid "Relation Builder Options"
|
132 |
msgstr "Настройки связей"
|
133 |
|
134 |
#: related-posts-thumbnails.php:262 related-posts-thumbnails.php:410
|
135 |
#: related-posts-thumbnails.php:467 related-posts-thumbnails.php:475
|
136 |
-
#: related-posts-thumbnails.php:525
|
137 |
msgid "Relation based on"
|
138 |
msgstr "Связи расчитываются на основе"
|
139 |
|
@@ -141,19 +141,19 @@ msgstr "Связи расчитываются на основе"
|
|
141 |
#: related-posts-thumbnails.php:413 related-posts-thumbnails.php:304
|
142 |
#: related-posts-thumbnails.php:470 related-posts-thumbnails.php:306
|
143 |
#: related-posts-thumbnails.php:478 related-posts-thumbnails.php:356
|
144 |
-
#: related-posts-thumbnails.php:528
|
145 |
msgid "Categories"
|
146 |
msgstr "Категории"
|
147 |
|
148 |
#: related-posts-thumbnails.php:267 related-posts-thumbnails.php:415
|
149 |
#: related-posts-thumbnails.php:472 related-posts-thumbnails.php:480
|
150 |
-
#: related-posts-thumbnails.php:530
|
151 |
msgid "Tags"
|
152 |
msgstr "Метки"
|
153 |
|
154 |
#: related-posts-thumbnails.php:269 related-posts-thumbnails.php:417
|
155 |
#: related-posts-thumbnails.php:474 related-posts-thumbnails.php:482
|
156 |
-
#: related-posts-thumbnails.php:532
|
157 |
msgid "Categories and Tags"
|
158 |
msgstr "Категории и метки"
|
159 |
|
@@ -163,13 +163,13 @@ msgstr "Настройки миниатюр"
|
|
163 |
|
164 |
#: related-posts-thumbnails.php:278 related-posts-thumbnails.php:327
|
165 |
#: related-posts-thumbnails.php:376 related-posts-thumbnails.php:378
|
166 |
-
#: related-posts-thumbnails.php:428
|
167 |
msgid "Post-thumbnails name"
|
168 |
msgstr "Название миниатюры"
|
169 |
|
170 |
#: related-posts-thumbnails.php:286 related-posts-thumbnails.php:335
|
171 |
#: related-posts-thumbnails.php:384 related-posts-thumbnails.php:386
|
172 |
-
#: related-posts-thumbnails.php:436
|
173 |
msgid "Your theme has to support post-thumbnails to have more choices"
|
174 |
msgstr ""
|
175 |
"Для более широкого выбора размеров, ваша тема должна поддерживать post-"
|
@@ -177,23 +177,25 @@ msgstr ""
|
|
177 |
|
178 |
#: related-posts-thumbnails.php:291 related-posts-thumbnails.php:292
|
179 |
#: related-posts-thumbnails.php:341 related-posts-thumbnails.php:343
|
180 |
-
#: related-posts-thumbnails.php:393
|
181 |
msgid "Default image URL"
|
182 |
msgstr "Ссылка на картинку по умолчанию, в случае, если нет миниатюры"
|
183 |
|
184 |
#: related-posts-thumbnails.php:299 related-posts-thumbnails.php:422
|
185 |
#: related-posts-thumbnails.php:479 related-posts-thumbnails.php:487
|
186 |
-
#: related-posts-thumbnails.php:537
|
187 |
msgid "Save Changes"
|
188 |
msgstr "Сохранить изменения"
|
189 |
|
190 |
#: related-posts-thumbnails.php:248 related-posts-thumbnails.php:297
|
191 |
#: related-posts-thumbnails.php:299 related-posts-thumbnails.php:349
|
|
|
192 |
msgid "Page type"
|
193 |
msgstr "Тип страницы"
|
194 |
|
195 |
#: related-posts-thumbnails.php:270 related-posts-thumbnails.php:319
|
196 |
#: related-posts-thumbnails.php:321 related-posts-thumbnails.php:371
|
|
|
197 |
msgid "All"
|
198 |
msgstr "Все"
|
199 |
|
@@ -203,31 +205,38 @@ msgstr "Все"
|
|
203 |
#: related-posts-thumbnails.php:349 related-posts-thumbnails.php:375
|
204 |
#: related-posts-thumbnails.php:393 related-posts-thumbnails.php:399
|
205 |
#: related-posts-thumbnails.php:425 related-posts-thumbnails.php:443
|
|
|
|
|
206 |
msgid "Thumbnails source"
|
207 |
msgstr "Источник миниатюр"
|
208 |
|
209 |
#: related-posts-thumbnails.php:345 related-posts-thumbnails.php:394
|
210 |
#: related-posts-thumbnails.php:396 related-posts-thumbnails.php:446
|
|
|
211 |
msgid "Custom field name"
|
212 |
msgstr "Название произвольного поля"
|
213 |
|
214 |
#: related-posts-thumbnails.php:351 related-posts-thumbnails.php:400
|
215 |
#: related-posts-thumbnails.php:402 related-posts-thumbnails.php:452
|
|
|
216 |
msgid "Size"
|
217 |
msgstr "Размер"
|
218 |
|
219 |
#: related-posts-thumbnails.php:353 related-posts-thumbnails.php:402
|
220 |
#: related-posts-thumbnails.php:404 related-posts-thumbnails.php:454
|
|
|
221 |
msgid "Width"
|
222 |
msgstr "Ширина"
|
223 |
|
224 |
#: related-posts-thumbnails.php:354 related-posts-thumbnails.php:403
|
225 |
#: related-posts-thumbnails.php:405 related-posts-thumbnails.php:455
|
|
|
226 |
msgid "Height"
|
227 |
msgstr "Высота"
|
228 |
|
229 |
#: related-posts-thumbnails.php:426 related-posts-thumbnails.php:483
|
230 |
#: related-posts-thumbnails.php:491 related-posts-thumbnails.php:541
|
|
|
231 |
msgid ""
|
232 |
"If you experience some problems with this plugin please let me know about it "
|
233 |
"on <a href=\"http://wordpress.shaldybina.com/plugins/related-posts-"
|
@@ -241,12 +250,12 @@ msgstr ""
|
|
241 |
"related-posts-thumbnails/\">проголосуйте</a>. Спасибо!"
|
242 |
|
243 |
#: related-posts-thumbnails.php:290 related-posts-thumbnails.php:292
|
244 |
-
#: related-posts-thumbnails.php:335
|
245 |
msgid "Automatically append to the post content"
|
246 |
-
msgstr ""
|
247 |
|
248 |
#: related-posts-thumbnails.php:293 related-posts-thumbnails.php:295
|
249 |
-
#: related-posts-thumbnails.php:338
|
250 |
msgid ""
|
251 |
"Or use <b><?php get_related_posts_thumbnails(); ?></b> in the Loop"
|
252 |
msgstr ""
|
@@ -254,33 +263,74 @@ msgstr ""
|
|
254 |
"темы"
|
255 |
|
256 |
#: related-posts-thumbnails.php:451 related-posts-thumbnails.php:453
|
257 |
-
#: related-posts-thumbnails.php:503
|
258 |
msgid "Set 0 for no title"
|
259 |
msgstr "Поставьте 0, чтобы не отображать заголовок"
|
260 |
|
261 |
#: related-posts-thumbnails.php:455 related-posts-thumbnails.php:457
|
262 |
-
#: related-posts-thumbnails.php:507
|
263 |
msgid "Excerpt maximum length"
|
264 |
msgstr "Максимальная длина цитаты"
|
265 |
|
266 |
#: related-posts-thumbnails.php:458 related-posts-thumbnails.php:460
|
267 |
-
#: related-posts-thumbnails.php:510
|
268 |
msgid "Set 0 for no excerpt"
|
269 |
msgstr "Поставьте 0, чтобы не отображать цитату"
|
270 |
|
271 |
#: related-posts-thumbnails.php:530 related-posts-thumbnails.php:538
|
272 |
-
#: related-posts-thumbnails.php:588
|
273 |
msgid "Title:"
|
274 |
msgstr "Заголовок:"
|
275 |
|
276 |
#: related-posts-thumbnails.php:464 related-posts-thumbnails.php:514
|
|
|
277 |
msgid "Text block height"
|
278 |
msgstr "Высота текстового блока"
|
279 |
|
280 |
-
#: related-posts-thumbnails.php:342
|
281 |
msgid "Developer mode"
|
282 |
msgstr "Режим разработчика"
|
283 |
|
284 |
-
#: related-posts-thumbnails.php:345
|
285 |
msgid "This will add debugging information in HTML source"
|
286 |
msgstr "Это добавит отладочную информацию в HTML код"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# Maria Shaldybina <mary@shaldybina.com>, 2010
|
5 |
msgid ""
|
6 |
msgstr ""
|
7 |
+
"Project-Id-Version: Related Posts Thubmnails 1.2.2\n"
|
8 |
"Report-Msgid-Bugs-To: \n"
|
9 |
"POT-Creation-Date: 2010-05-19 17:17-0700\n"
|
10 |
+
"PO-Revision-Date: 2010-06-22 17:38-0700\n"
|
11 |
"Last-Translator: M.Shaldybina <mary@shaldybina.com>\n"
|
12 |
"Language-Team: ru_RU <mary@shaldybina.com>\n"
|
13 |
"Language: ru_RU\n"
|
21 |
|
22 |
#: related-posts-thumbnails.php:148 related-posts-thumbnails.php:194
|
23 |
#: related-posts-thumbnails.php:231 related-posts-thumbnails.php:232
|
24 |
+
#: related-posts-thumbnails.php:273 related-posts-thumbnails.php:308
|
25 |
msgid "Related Posts Thumbnails"
|
26 |
+
msgstr ""
|
27 |
|
28 |
#: related-posts-thumbnails.php:148 related-posts-thumbnails.php:194
|
29 |
#: related-posts-thumbnails.php:231 related-posts-thumbnails.php:232
|
30 |
+
#: related-posts-thumbnails.php:273 related-posts-thumbnails.php:308
|
31 |
msgid "Related Posts Thumbs"
|
32 |
+
msgstr ""
|
33 |
|
34 |
#: related-posts-thumbnails.php:154 related-posts-thumbnails.php:200
|
35 |
#: related-posts-thumbnails.php:237 related-posts-thumbnails.php:238
|
36 |
+
#: related-posts-thumbnails.php:279 related-posts-thumbnails.php:314
|
37 |
msgid "No access"
|
38 |
msgstr "Нет доступа"
|
39 |
|
40 |
#: related-posts-thumbnails.php:170 related-posts-thumbnails.php:222
|
41 |
#: related-posts-thumbnails.php:261 related-posts-thumbnails.php:263
|
42 |
+
#: related-posts-thumbnails.php:305 related-posts-thumbnails.php:354
|
43 |
msgid "Settings updated"
|
44 |
msgstr "Настройки обновлены"
|
45 |
|
46 |
#: related-posts-thumbnails.php:182 related-posts-thumbnails.php:239
|
47 |
#: related-posts-thumbnails.php:281 related-posts-thumbnails.php:283
|
48 |
+
#: related-posts-thumbnails.php:326 related-posts-thumbnails.php:404
|
49 |
msgid "Related Posts Thumbnails Settings"
|
50 |
msgstr "Настройки миниатюр похожих записей"
|
51 |
|
52 |
#: related-posts-thumbnails.php:188 related-posts-thumbnails.php:245
|
53 |
#: related-posts-thumbnails.php:287 related-posts-thumbnails.php:289
|
54 |
+
#: related-posts-thumbnails.php:332 related-posts-thumbnails.php:410
|
55 |
msgid "General Display Options"
|
56 |
msgstr "Общие свойства отображения"
|
57 |
|
61 |
|
62 |
#: related-posts-thumbnails.php:194 related-posts-thumbnails.php:251
|
63 |
#: related-posts-thumbnails.php:300 related-posts-thumbnails.php:302
|
64 |
+
#: related-posts-thumbnails.php:352 related-posts-thumbnails.php:430
|
65 |
msgid "Show on single posts only"
|
66 |
msgstr "Показывать только на отдельной странице"
|
67 |
|
68 |
#: related-posts-thumbnails.php:198 related-posts-thumbnails.php:280
|
69 |
#: related-posts-thumbnails.php:329 related-posts-thumbnails.php:331
|
70 |
+
#: related-posts-thumbnails.php:381 related-posts-thumbnails.php:453
|
71 |
msgid "Top text"
|
72 |
msgstr "Верхний текст"
|
73 |
|
74 |
#: related-posts-thumbnails.php:204 related-posts-thumbnails.php:286
|
75 |
#: related-posts-thumbnails.php:335 related-posts-thumbnails.php:337
|
76 |
+
#: related-posts-thumbnails.php:387 related-posts-thumbnails.php:459
|
77 |
msgid "Number of similar posts to display"
|
78 |
msgstr "Количество похожих записей для отображения"
|
79 |
|
80 |
#: related-posts-thumbnails.php:212 related-posts-thumbnails.php:360
|
81 |
#: related-posts-thumbnails.php:409 related-posts-thumbnails.php:411
|
82 |
+
#: related-posts-thumbnails.php:461 related-posts-thumbnails.php:519
|
83 |
msgid "Style options"
|
84 |
msgstr "Опции стиля"
|
85 |
|
86 |
#: related-posts-thumbnails.php:215 related-posts-thumbnails.php:363
|
87 |
#: related-posts-thumbnails.php:412 related-posts-thumbnails.php:414
|
88 |
+
#: related-posts-thumbnails.php:464 related-posts-thumbnails.php:522
|
89 |
msgid "Background color"
|
90 |
msgstr "Цвет заднего фона"
|
91 |
|
92 |
#: related-posts-thumbnails.php:221 related-posts-thumbnails.php:369
|
93 |
#: related-posts-thumbnails.php:418 related-posts-thumbnails.php:420
|
94 |
+
#: related-posts-thumbnails.php:470 related-posts-thumbnails.php:528
|
95 |
msgid "Background color on mouse over"
|
96 |
msgstr "Цвет заднего фона при наведении курсора"
|
97 |
|
98 |
#: related-posts-thumbnails.php:227 related-posts-thumbnails.php:375
|
99 |
#: related-posts-thumbnails.php:424 related-posts-thumbnails.php:426
|
100 |
+
#: related-posts-thumbnails.php:476 related-posts-thumbnails.php:534
|
101 |
msgid "Border color"
|
102 |
msgstr "Цвет границы"
|
103 |
|
104 |
#: related-posts-thumbnails.php:233 related-posts-thumbnails.php:381
|
105 |
#: related-posts-thumbnails.php:430 related-posts-thumbnails.php:432
|
106 |
+
#: related-posts-thumbnails.php:482 related-posts-thumbnails.php:540
|
107 |
msgid "Font color"
|
108 |
msgstr "Цвет шрифта"
|
109 |
|
110 |
#: related-posts-thumbnails.php:239 related-posts-thumbnails.php:387
|
111 |
#: related-posts-thumbnails.php:436 related-posts-thumbnails.php:438
|
112 |
+
#: related-posts-thumbnails.php:488 related-posts-thumbnails.php:546
|
113 |
msgid "Font family"
|
114 |
msgstr "Стиль шрифта"
|
115 |
|
116 |
#: related-posts-thumbnails.php:245 related-posts-thumbnails.php:393
|
117 |
#: related-posts-thumbnails.php:442 related-posts-thumbnails.php:444
|
118 |
+
#: related-posts-thumbnails.php:494 related-posts-thumbnails.php:552
|
119 |
msgid "Font size"
|
120 |
msgstr "Размер шрифта"
|
121 |
|
122 |
#: related-posts-thumbnails.php:251 related-posts-thumbnails.php:399
|
123 |
#: related-posts-thumbnails.php:448 related-posts-thumbnails.php:450
|
124 |
+
#: related-posts-thumbnails.php:500 related-posts-thumbnails.php:558
|
125 |
msgid "Text maximum length"
|
126 |
msgstr "Максимальная длина текста"
|
127 |
|
128 |
#: related-posts-thumbnails.php:259 related-posts-thumbnails.php:407
|
129 |
#: related-posts-thumbnails.php:464 related-posts-thumbnails.php:472
|
130 |
+
#: related-posts-thumbnails.php:522 related-posts-thumbnails.php:580
|
131 |
msgid "Relation Builder Options"
|
132 |
msgstr "Настройки связей"
|
133 |
|
134 |
#: related-posts-thumbnails.php:262 related-posts-thumbnails.php:410
|
135 |
#: related-posts-thumbnails.php:467 related-posts-thumbnails.php:475
|
136 |
+
#: related-posts-thumbnails.php:525 related-posts-thumbnails.php:583
|
137 |
msgid "Relation based on"
|
138 |
msgstr "Связи расчитываются на основе"
|
139 |
|
141 |
#: related-posts-thumbnails.php:413 related-posts-thumbnails.php:304
|
142 |
#: related-posts-thumbnails.php:470 related-posts-thumbnails.php:306
|
143 |
#: related-posts-thumbnails.php:478 related-posts-thumbnails.php:356
|
144 |
+
#: related-posts-thumbnails.php:528 related-posts-thumbnails.php:586
|
145 |
msgid "Categories"
|
146 |
msgstr "Категории"
|
147 |
|
148 |
#: related-posts-thumbnails.php:267 related-posts-thumbnails.php:415
|
149 |
#: related-posts-thumbnails.php:472 related-posts-thumbnails.php:480
|
150 |
+
#: related-posts-thumbnails.php:530 related-posts-thumbnails.php:588
|
151 |
msgid "Tags"
|
152 |
msgstr "Метки"
|
153 |
|
154 |
#: related-posts-thumbnails.php:269 related-posts-thumbnails.php:417
|
155 |
#: related-posts-thumbnails.php:474 related-posts-thumbnails.php:482
|
156 |
+
#: related-posts-thumbnails.php:532 related-posts-thumbnails.php:590
|
157 |
msgid "Categories and Tags"
|
158 |
msgstr "Категории и метки"
|
159 |
|
163 |
|
164 |
#: related-posts-thumbnails.php:278 related-posts-thumbnails.php:327
|
165 |
#: related-posts-thumbnails.php:376 related-posts-thumbnails.php:378
|
166 |
+
#: related-posts-thumbnails.php:428 related-posts-thumbnails.php:486
|
167 |
msgid "Post-thumbnails name"
|
168 |
msgstr "Название миниатюры"
|
169 |
|
170 |
#: related-posts-thumbnails.php:286 related-posts-thumbnails.php:335
|
171 |
#: related-posts-thumbnails.php:384 related-posts-thumbnails.php:386
|
172 |
+
#: related-posts-thumbnails.php:436 related-posts-thumbnails.php:494
|
173 |
msgid "Your theme has to support post-thumbnails to have more choices"
|
174 |
msgstr ""
|
175 |
"Для более широкого выбора размеров, ваша тема должна поддерживать post-"
|
177 |
|
178 |
#: related-posts-thumbnails.php:291 related-posts-thumbnails.php:292
|
179 |
#: related-posts-thumbnails.php:341 related-posts-thumbnails.php:343
|
180 |
+
#: related-posts-thumbnails.php:393 related-posts-thumbnails.php:465
|
181 |
msgid "Default image URL"
|
182 |
msgstr "Ссылка на картинку по умолчанию, в случае, если нет миниатюры"
|
183 |
|
184 |
#: related-posts-thumbnails.php:299 related-posts-thumbnails.php:422
|
185 |
#: related-posts-thumbnails.php:479 related-posts-thumbnails.php:487
|
186 |
+
#: related-posts-thumbnails.php:537 related-posts-thumbnails.php:597
|
187 |
msgid "Save Changes"
|
188 |
msgstr "Сохранить изменения"
|
189 |
|
190 |
#: related-posts-thumbnails.php:248 related-posts-thumbnails.php:297
|
191 |
#: related-posts-thumbnails.php:299 related-posts-thumbnails.php:349
|
192 |
+
#: related-posts-thumbnails.php:427
|
193 |
msgid "Page type"
|
194 |
msgstr "Тип страницы"
|
195 |
|
196 |
#: related-posts-thumbnails.php:270 related-posts-thumbnails.php:319
|
197 |
#: related-posts-thumbnails.php:321 related-posts-thumbnails.php:371
|
198 |
+
#: related-posts-thumbnails.php:608
|
199 |
msgid "All"
|
200 |
msgstr "Все"
|
201 |
|
205 |
#: related-posts-thumbnails.php:349 related-posts-thumbnails.php:375
|
206 |
#: related-posts-thumbnails.php:393 related-posts-thumbnails.php:399
|
207 |
#: related-posts-thumbnails.php:425 related-posts-thumbnails.php:443
|
208 |
+
#: related-posts-thumbnails.php:471 related-posts-thumbnails.php:483
|
209 |
+
#: related-posts-thumbnails.php:501
|
210 |
msgid "Thumbnails source"
|
211 |
msgstr "Источник миниатюр"
|
212 |
|
213 |
#: related-posts-thumbnails.php:345 related-posts-thumbnails.php:394
|
214 |
#: related-posts-thumbnails.php:396 related-posts-thumbnails.php:446
|
215 |
+
#: related-posts-thumbnails.php:504
|
216 |
msgid "Custom field name"
|
217 |
msgstr "Название произвольного поля"
|
218 |
|
219 |
#: related-posts-thumbnails.php:351 related-posts-thumbnails.php:400
|
220 |
#: related-posts-thumbnails.php:402 related-posts-thumbnails.php:452
|
221 |
+
#: related-posts-thumbnails.php:510
|
222 |
msgid "Size"
|
223 |
msgstr "Размер"
|
224 |
|
225 |
#: related-posts-thumbnails.php:353 related-posts-thumbnails.php:402
|
226 |
#: related-posts-thumbnails.php:404 related-posts-thumbnails.php:454
|
227 |
+
#: related-posts-thumbnails.php:512
|
228 |
msgid "Width"
|
229 |
msgstr "Ширина"
|
230 |
|
231 |
#: related-posts-thumbnails.php:354 related-posts-thumbnails.php:403
|
232 |
#: related-posts-thumbnails.php:405 related-posts-thumbnails.php:455
|
233 |
+
#: related-posts-thumbnails.php:513
|
234 |
msgid "Height"
|
235 |
msgstr "Высота"
|
236 |
|
237 |
#: related-posts-thumbnails.php:426 related-posts-thumbnails.php:483
|
238 |
#: related-posts-thumbnails.php:491 related-posts-thumbnails.php:541
|
239 |
+
#: related-posts-thumbnails.php:601
|
240 |
msgid ""
|
241 |
"If you experience some problems with this plugin please let me know about it "
|
242 |
"on <a href=\"http://wordpress.shaldybina.com/plugins/related-posts-"
|
250 |
"related-posts-thumbnails/\">проголосуйте</a>. Спасибо!"
|
251 |
|
252 |
#: related-posts-thumbnails.php:290 related-posts-thumbnails.php:292
|
253 |
+
#: related-posts-thumbnails.php:335 related-posts-thumbnails.php:413
|
254 |
msgid "Automatically append to the post content"
|
255 |
+
msgstr "Автоматически добавлять после записи"
|
256 |
|
257 |
#: related-posts-thumbnails.php:293 related-posts-thumbnails.php:295
|
258 |
+
#: related-posts-thumbnails.php:338 related-posts-thumbnails.php:416
|
259 |
msgid ""
|
260 |
"Or use <b><?php get_related_posts_thumbnails(); ?></b> in the Loop"
|
261 |
msgstr ""
|
263 |
"темы"
|
264 |
|
265 |
#: related-posts-thumbnails.php:451 related-posts-thumbnails.php:453
|
266 |
+
#: related-posts-thumbnails.php:503 related-posts-thumbnails.php:561
|
267 |
msgid "Set 0 for no title"
|
268 |
msgstr "Поставьте 0, чтобы не отображать заголовок"
|
269 |
|
270 |
#: related-posts-thumbnails.php:455 related-posts-thumbnails.php:457
|
271 |
+
#: related-posts-thumbnails.php:507 related-posts-thumbnails.php:565
|
272 |
msgid "Excerpt maximum length"
|
273 |
msgstr "Максимальная длина цитаты"
|
274 |
|
275 |
#: related-posts-thumbnails.php:458 related-posts-thumbnails.php:460
|
276 |
+
#: related-posts-thumbnails.php:510 related-posts-thumbnails.php:568
|
277 |
msgid "Set 0 for no excerpt"
|
278 |
msgstr "Поставьте 0, чтобы не отображать цитату"
|
279 |
|
280 |
#: related-posts-thumbnails.php:530 related-posts-thumbnails.php:538
|
281 |
+
#: related-posts-thumbnails.php:588 related-posts-thumbnails.php:661
|
282 |
msgid "Title:"
|
283 |
msgstr "Заголовок:"
|
284 |
|
285 |
#: related-posts-thumbnails.php:464 related-posts-thumbnails.php:514
|
286 |
+
#: related-posts-thumbnails.php:572
|
287 |
msgid "Text block height"
|
288 |
msgstr "Высота текстового блока"
|
289 |
|
290 |
+
#: related-posts-thumbnails.php:342 related-posts-thumbnails.php:420
|
291 |
msgid "Developer mode"
|
292 |
msgstr "Режим разработчика"
|
293 |
|
294 |
+
#: related-posts-thumbnails.php:345 related-posts-thumbnails.php:423
|
295 |
msgid "This will add debugging information in HTML source"
|
296 |
msgstr "Это добавит отладочную информацию в HTML код"
|
297 |
+
|
298 |
+
#: related-posts-thumbnails.php:322
|
299 |
+
msgid "Wrong date"
|
300 |
+
msgstr " Неправильный формат даты"
|
301 |
+
|
302 |
+
#: related-posts-thumbnails.php:357
|
303 |
+
msgid "Settings update failed"
|
304 |
+
msgstr "Обновление настроек не удалось"
|
305 |
+
|
306 |
+
#: related-posts-thumbnails.php:434
|
307 |
+
msgid "Categories on which related thumbnails will appear"
|
308 |
+
msgstr "Категории, в которых будут показаны похожие записи"
|
309 |
+
|
310 |
+
#: related-posts-thumbnails.php:440
|
311 |
+
msgid "Categories that will appear in related thumbnails"
|
312 |
+
msgstr "Категории, которые будут включены в показ похожих записей"
|
313 |
+
|
314 |
+
#: related-posts-thumbnails.php:446
|
315 |
+
msgid "Include only posts after"
|
316 |
+
msgstr "Включать только записи после"
|
317 |
+
|
318 |
+
#: related-posts-thumbnails.php:448
|
319 |
+
msgid "Year"
|
320 |
+
msgstr "Год"
|
321 |
+
|
322 |
+
#: related-posts-thumbnails.php:448
|
323 |
+
msgid "Month"
|
324 |
+
msgstr "Месяц"
|
325 |
+
|
326 |
+
#: related-posts-thumbnails.php:448
|
327 |
+
msgid "Day"
|
328 |
+
msgstr "День"
|
329 |
+
|
330 |
+
#: related-posts-thumbnails.php:448
|
331 |
+
msgid "Leave empty for all posts dates"
|
332 |
+
msgstr "Оставьте пустым для всех дат записей"
|
333 |
+
|
334 |
+
#: related-posts-thumbnails.php:592
|
335 |
+
msgid "Random"
|
336 |
+
msgstr "Произвольно"
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: marynixie
|
|
3 |
Donate link: http://wordpress.shaldybina.com/donate
|
4 |
Tags: related, posts, thumbnail
|
5 |
Requires at least: 2.9
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
Customizable plugin, that nicely displays related posts thumbnails under the post.
|
10 |
|
@@ -16,7 +16,7 @@ By default it uses generated by Wordpress thumbnail for the first image appeared
|
|
16 |
|
17 |
Thumbnails are arranged in columns under the post with related posts title/excerpt under each post thumbnail. Colors of background, border, text, text sizes, background on mouse over, title and excerpt length can be customized. See screenshot.
|
18 |
|
19 |
-
You can specify number of related posts to display, top text, style settings, default image URL. You can select type of relation - categories, tags
|
20 |
|
21 |
Related Links:
|
22 |
|
@@ -55,6 +55,21 @@ If there are no images of the specified size in the post, or file does not exist
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
= 1.2 =
|
59 |
* added php tag for use in theme
|
60 |
* added option to turn off automatic appending
|
@@ -78,6 +93,12 @@ If there are no images of the specified size in the post, or file does not exist
|
|
78 |
|
79 |
== Upgrade Notice ==
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
= 1.2 =
|
82 |
This version supports php tag, title and excerpt length, sidebar widget.
|
83 |
|
3 |
Donate link: http://wordpress.shaldybina.com/donate
|
4 |
Tags: related, posts, thumbnail
|
5 |
Requires at least: 2.9
|
6 |
+
Tested up to: 3.0
|
7 |
+
Stable tag: 1.2.2
|
8 |
|
9 |
Customizable plugin, that nicely displays related posts thumbnails under the post.
|
10 |
|
16 |
|
17 |
Thumbnails are arranged in columns under the post with related posts title/excerpt under each post thumbnail. Colors of background, border, text, text sizes, background on mouse over, title and excerpt length can be customized. See screenshot.
|
18 |
|
19 |
+
You can specify number of related posts to display, start date, categories to show on and to include, top text, style settings, default image URL. You can select type of relation - categories, tags, categories and tags or just random. You can specify where to display related posts - choose page type (main or single) and select categories. You can turn off automatic appending to the end of post and use **<?php get_related_posts_thumbnails(); ?>** php tag in the Loop of your theme. Related Posts thumbnails sidebar widget is also available. You can use [related-posts-thumbnails] shortcode in the post body.
|
20 |
|
21 |
Related Links:
|
22 |
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 1.2.2 =
|
59 |
+
* Improved plugin performance with high number of posts
|
60 |
+
* PHP configuration allow_url_fopen is taken into account
|
61 |
+
* Added start date to exclude old posts
|
62 |
+
* Fixed display, only posts now
|
63 |
+
* Separated categories - which are displayed amoung thumbnails and on which thumbnails are displayed
|
64 |
+
* Random relation, for random posts display
|
65 |
+
* PHP 4.3 compatible now according to Wordpress requirements
|
66 |
+
* tested with Wordpress 3.0
|
67 |
+
|
68 |
+
= 1.2.1 =
|
69 |
+
* Thanks to <a href="http://www.li-an.fr/wpplugins/">Li-An</a> it now has French version.
|
70 |
+
* Excerpts will be generated if no excerpt were defined.
|
71 |
+
* Developer mode to see debugging info in HTML source.
|
72 |
+
|
73 |
= 1.2 =
|
74 |
* added php tag for use in theme
|
75 |
* added option to turn off automatic appending
|
93 |
|
94 |
== Upgrade Notice ==
|
95 |
|
96 |
+
= 1.2.2 =
|
97 |
+
In this version: improved performance, start date, separated categories, PHP 4.3 compatible, php configuration check, no relation option.
|
98 |
+
|
99 |
+
= 1.2.1 =
|
100 |
+
French version included, generation of excerpt, developer mode.
|
101 |
+
|
102 |
= 1.2 =
|
103 |
This version supports php tag, title and excerpt length, sidebar widget.
|
104 |
|
related-posts-thumbnails.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Plugin Name: Related Posts Thumbnails
|
3 |
Plugin URI: http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/
|
4 |
Description: Showing related posts thumbnails under the post.
|
5 |
-
Version: 1.2.
|
6 |
Author: Maria Shaldybina
|
7 |
Author URI: http://shaldybina.com/
|
8 |
*/
|
@@ -19,30 +19,28 @@
|
|
19 |
GNU General Public License for more details.
|
20 |
*/
|
21 |
class RelatedPostsThumbnails {
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
public $categories_all = '1';
|
45 |
-
public $devmode = '0';
|
46 |
|
47 |
function RelatedPostsThumbnails() { // initialization
|
48 |
load_plugin_textdomain( 'related-posts-thumbnails', false, basename( dirname( __FILE__ ) ) . '/locale' );
|
@@ -54,73 +52,103 @@ class RelatedPostsThumbnails {
|
|
54 |
}
|
55 |
|
56 |
function auto_show( $content ) { // Automatically displaying related posts under post body
|
57 |
-
return $content . $this->get_html();
|
58 |
}
|
59 |
|
60 |
-
function get_html() { // Getting related posts HTML
|
61 |
if ( $this->is_relpoststh_show() )
|
62 |
-
return
|
63 |
return '';
|
64 |
}
|
65 |
|
66 |
-
function get_thumbnails() { // Retrieve Related Posts HTML for output
|
67 |
-
$
|
68 |
-
$
|
69 |
-
$
|
70 |
-
$
|
71 |
-
$
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
-
$poststhname = get_option( 'relpoststh_poststhname', $this->poststhname );
|
76 |
-
$text_length = get_option( 'relpoststh_textlength', $this->text_length );
|
77 |
-
$excerpt_length = get_option( 'relpoststh_excerptlength', $this->excerpt_length );
|
78 |
-
$thsource = get_option( 'relpoststh_thsource', $this->thsource );
|
79 |
-
$categories_all = get_option( 'relpoststh_categoriesall', $this->categories_all );
|
80 |
-
$posts = array();
|
81 |
-
$q = new WP_Query;
|
82 |
-
$args = array( 'orderby' => 'rand',
|
83 |
-
'caller_get_posts' => true,
|
84 |
-
'posts_per_page' => $posts_number,
|
85 |
-
'post__not_in' => array( $id ) );
|
86 |
|
87 |
-
/*
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
$
|
96 |
-
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
}
|
99 |
}
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
|
|
|
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
|
116 |
-
if ( $
|
117 |
-
$debug .= '
|
118 |
-
|
119 |
-
$posts_unique[ $post->ID ] = $post;
|
120 |
-
}
|
121 |
-
shuffle( $posts_unique );
|
122 |
-
$posts = array_slice( $posts_unique, 0, $posts_number );
|
123 |
}
|
|
|
|
|
124 |
|
125 |
/* Calculating sizes */
|
126 |
if ( $thsource == 'custom-field' ) {
|
@@ -159,10 +187,11 @@ class RelatedPostsThumbnails {
|
|
159 |
$debug .= 'Using default height;';
|
160 |
$height = get_option( "thumbnail_size_h" );
|
161 |
}
|
162 |
-
|
163 |
$debug .= 'Got sizes '.$width.'x'.$height.';';
|
164 |
// rendering related posts HTML
|
165 |
-
|
|
|
|
|
166 |
foreach( $posts as $post ) {
|
167 |
$image = '';
|
168 |
$url = '';
|
@@ -193,7 +222,9 @@ class RelatedPostsThumbnails {
|
|
193 |
$debug .= 'No image was found;';
|
194 |
if ( strlen( trim( $image ) ) > 0 ) {
|
195 |
$image_sizes = @getimagesize( $image );
|
196 |
-
if (
|
|
|
|
|
197 |
$debug .= 'Image used is the required size;';
|
198 |
$url = $image;
|
199 |
}
|
@@ -206,10 +237,10 @@ class RelatedPostsThumbnails {
|
|
206 |
$debug .= 'Found wrong formatted image;';
|
207 |
}
|
208 |
}
|
209 |
-
|
210 |
$debug .= 'Image URL: '.$url.';';
|
211 |
-
if ( empty(
|
212 |
-
$debug .= '
|
213 |
$url = get_option( 'relpoststh_default_image', $this->default_image );
|
214 |
}
|
215 |
|
@@ -223,7 +254,6 @@ class RelatedPostsThumbnails {
|
|
223 |
}
|
224 |
|
225 |
$debug .= 'Using title with size ' . $text_length . '. Using excerpt with size ' . $excerpt_length . ';';
|
226 |
-
|
227 |
$output .= '<a onmouseout="this.style.backgroundColor=\'' . get_option( 'relpoststh_background', $this->background ) . '\'" onmouseover="this.style.backgroundColor=\'' . get_option( 'relpoststh_hoverbackground', $this->hoverbackground ) . '\'" style="border-right: 1px solid ' . get_option( 'relpoststh_bordercolor', $this->border_color ) . '; border-bottom: medium none; margin: 0pt; padding: 6px; display: block; float: left; text-decoration: none; text-align: left; cursor: pointer;" href="' . get_permalink( $post->ID ) . '">';
|
228 |
$output .= '<div style="border: 0pt none ; margin: 0pt; padding: 0pt; width: ' . $width . 'px; height: ' . ( $height + get_option( 'relpoststh_textblockheight', $this->text_block_height ) ) . 'px;">';
|
229 |
$output .= '<div style="border: 0pt none ; margin: 0pt; padding: 0pt; background: transparent url(' . $url . ') no-repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: ' . $width . 'px; height: ' . $height . 'px;"></div>';
|
@@ -233,8 +263,16 @@ class RelatedPostsThumbnails {
|
|
233 |
|
234 |
} // end foreach
|
235 |
$output .= '</div><div style="clear: both"></div>';
|
236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
$output .= '<!-- '.$debug.' -->';
|
|
|
238 |
return $output;
|
239 |
}
|
240 |
|
@@ -248,7 +286,7 @@ class RelatedPostsThumbnails {
|
|
248 |
}
|
249 |
|
250 |
function is_relpoststh_show() { // Checking display options
|
251 |
-
if ( ! is_single() && get_option( 'relpoststh_single_only', $this->single_only ) ) { // single only
|
252 |
return false;
|
253 |
}
|
254 |
/* Check categories */
|
@@ -266,9 +304,6 @@ class RelatedPostsThumbnails {
|
|
266 |
return true;
|
267 |
}
|
268 |
|
269 |
-
/**
|
270 |
-
* Related Posts Thumbnails
|
271 |
-
*/
|
272 |
function admin_menu() {
|
273 |
$page = add_options_page( __( 'Related Posts Thumbnails', 'related-posts-thumbnails' ), __( 'Related Posts Thumbs', 'related-posts-thumbnails' ), 'administrator', 'related-posts-thumbnails', array( $this, 'admin_interface' ) );
|
274 |
}
|
@@ -279,30 +314,48 @@ class RelatedPostsThumbnails {
|
|
279 |
wp_die( __( 'No access', 'related-posts-thumbnails' ) );
|
280 |
}
|
281 |
check_admin_referer( 'related-posts-thumbnails' );
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
}
|
307 |
$available_sizes = array( 'thumbnail' => 'thumbnail', 'medium' => 'medium' );
|
308 |
if ( current_theme_supports( 'post-thumbnails' ) ) {
|
@@ -318,9 +371,34 @@ class RelatedPostsThumbnails {
|
|
318 |
$relpoststh_devmode = get_option( 'relpoststh_devmode', $this->devmode );
|
319 |
$relpoststh_categoriesall = get_option( 'relpoststh_categoriesall', $this->categories_all );
|
320 |
$relpoststh_categories = unserialize( get_option( 'relpoststh_categories' ) );
|
|
|
|
|
|
|
321 |
$thsources = array( 'post-thumbnails' => 'Post thumbnails', 'custom-field' => 'Custom field' );
|
322 |
$categories = get_categories();
|
323 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
<div class="wrap">
|
325 |
<div class="icon32" id="icon-options-general"><br></div>
|
326 |
<h2><?php _e( 'Related Posts Thumbnails Settings', 'related-posts-thumbnails' ); ?></h2>
|
@@ -353,28 +431,22 @@ class RelatedPostsThumbnails {
|
|
353 |
</td>
|
354 |
</tr>
|
355 |
<tr valign="top">
|
356 |
-
<th scope="row"><?php _e( 'Categories', 'related-posts-thumbnails' ); ?>:</th>
|
357 |
<td>
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
<input type="
|
371 |
-
|
372 |
-
<div id="categories_specific" <?php if ( $relpoststh_categoriesall == '1' ) : ?> style="display:none" <?php endif; ?>>
|
373 |
-
<?php foreach ( $categories as $category ) : ?>
|
374 |
-
<input type="checkbox" name="relpoststh_categories[]" id="relpoststh_<?php echo $category->category_nicename; ?>" value="<?php echo $category->cat_ID; ?>" <?php if ( in_array( $category->cat_ID, (array)$relpoststh_categories ) ) echo 'checked="checked"'; ?>/>
|
375 |
-
<label for="relpoststh_<?php echo $category->category_nicename; ?>"><?php echo $category->cat_name; ?></label><br />
|
376 |
-
<?php endforeach; ?>
|
377 |
-
</div>
|
378 |
</td>
|
379 |
</tr>
|
380 |
<tr>
|
@@ -398,20 +470,6 @@ class RelatedPostsThumbnails {
|
|
398 |
<tr>
|
399 |
<th scope="row"><?php _e( 'Thumbnails source', 'related-posts-thumbnails' ); ?>:</th>
|
400 |
<td>
|
401 |
-
<script type="text/javascript">
|
402 |
-
jQuery(document).ready(function($) {
|
403 |
-
$('#relpoststh_thsource').change(function(){
|
404 |
-
if (this.value == 'post-thumbnails') {
|
405 |
-
$('#relpoststh-post-thumbnails').show();
|
406 |
-
$('#relpoststh-custom-field').hide();
|
407 |
-
}
|
408 |
-
else {
|
409 |
-
$('#relpoststh-post-thumbnails').hide();
|
410 |
-
$('#relpoststh-custom-field').show();
|
411 |
-
}
|
412 |
-
});
|
413 |
-
});
|
414 |
-
</script>
|
415 |
<select name="relpoststh_thsource" id="relpoststh_thsource">
|
416 |
<?php foreach ( $thsources as $name => $title ) : ?>
|
417 |
<option value="<?php echo $name; ?>" <?php if ( $relpoststh_thsource == $name ) echo 'selected'; ?>><?php echo $title; ?></option>
|
@@ -503,14 +561,14 @@ class RelatedPostsThumbnails {
|
|
503 |
<label for="relpoststh_textlength"><?php _e( 'Set 0 for no title', 'related-posts-thumbnails' ); ?></label><br />
|
504 |
</td>
|
505 |
</tr>
|
506 |
-
|
507 |
<th scope="row"><?php _e( 'Excerpt maximum length', 'related-posts-thumbnails' ); ?>:</th>
|
508 |
<td>
|
509 |
<input type="text" name="relpoststh_excerptlength" value="<?php echo get_option( 'relpoststh_excerptlength', $this->excerpt_length )?>" size="7"/>
|
510 |
<label for="relpoststh_excerptlength"><?php _e( 'Set 0 for no excerpt', 'related-posts-thumbnails' ); ?></label><br />
|
511 |
</td>
|
512 |
</tr>
|
513 |
-
|
514 |
<th scope="row"><?php _e( 'Text block height', 'related-posts-thumbnails' ); ?>:</th>
|
515 |
<td>
|
516 |
<input type="text" name="relpoststh_textblockheight" value="<?php echo get_option( 'relpoststh_textblockheight', $this->text_block_height )?>" size="7"/> px
|
@@ -530,6 +588,8 @@ class RelatedPostsThumbnails {
|
|
530 |
<label for="relpoststh_relation_tags"><?php _e( 'Tags', 'related-posts-thumbnails' ); ?></label><br />
|
531 |
<input type="radio" name="relpoststh_relation" id="relpoststh_relation_both" value="both" <?php if ( $relpoststh_relation == 'both' ) echo 'checked="checked"'; ?>/>
|
532 |
<label for="relpoststh_relation_both"><?php _e( 'Categories and Tags', 'related-posts-thumbnails' ); ?></label><br />
|
|
|
|
|
533 |
</td>
|
534 |
</tr>
|
535 |
</table>
|
@@ -541,6 +601,19 @@ class RelatedPostsThumbnails {
|
|
541 |
<p style="margin-top: 40px;"><small><?php _e('If you experience some problems with this plugin please let me know about it on <a href="http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/">Plugin\'s homepage</a>. If you think this plugin is awesome please vote on <a href="http://wordpress.org/extend/plugins/related-posts-thumbnails/">Wordpress plugin page</a>. Thanks!', 'related-posts-thumbnails' ); ?></small></p>
|
542 |
<?php
|
543 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
544 |
}
|
545 |
|
546 |
add_action( 'init', 'related_posts_thumbnails' );
|
2 |
Plugin Name: Related Posts Thumbnails
|
3 |
Plugin URI: http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/
|
4 |
Description: Showing related posts thumbnails under the post.
|
5 |
+
Version: 1.2.2
|
6 |
Author: Maria Shaldybina
|
7 |
Author URI: http://shaldybina.com/
|
8 |
*/
|
19 |
GNU General Public License for more details.
|
20 |
*/
|
21 |
class RelatedPostsThumbnails {
|
22 |
+
/* Default values. PHP 4 compatible */
|
23 |
+
var $single_only = '1';
|
24 |
+
var $auto = '1';
|
25 |
+
var $top_text = '<h3>Related posts:</h3>';
|
26 |
+
var $number = 3;
|
27 |
+
var $relation = 'categories';
|
28 |
+
var $poststh_name = 'thumbnail';
|
29 |
+
var $background = '#FFFFFF';
|
30 |
+
var $hoverbackground = '#EEEEEF';
|
31 |
+
var $border_color = '#DDDDDD';
|
32 |
+
var $font_color = '#333333';
|
33 |
+
var $font_family = 'Arial';
|
34 |
+
var $font_size = '12';
|
35 |
+
var $text_length = '100';
|
36 |
+
var $excerpt_length = '0';
|
37 |
+
var $custom_field = '';
|
38 |
+
var $custom_height = '100';
|
39 |
+
var $custom_width = '100';
|
40 |
+
var $text_block_height = '75';
|
41 |
+
var $thsource = 'post-thumbnails';
|
42 |
+
var $categories_all = '1';
|
43 |
+
var $devmode = '0';
|
|
|
|
|
44 |
|
45 |
function RelatedPostsThumbnails() { // initialization
|
46 |
load_plugin_textdomain( 'related-posts-thumbnails', false, basename( dirname( __FILE__ ) ) . '/locale' );
|
52 |
}
|
53 |
|
54 |
function auto_show( $content ) { // Automatically displaying related posts under post body
|
55 |
+
return $content . $this->get_html( true );
|
56 |
}
|
57 |
|
58 |
+
function get_html( $show_top = false ) { // Getting related posts HTML
|
59 |
if ( $this->is_relpoststh_show() )
|
60 |
+
return $this->get_thumbnails( $show_top );
|
61 |
return '';
|
62 |
}
|
63 |
|
64 |
+
function get_thumbnails( $show_top = false ) { // Retrieve Related Posts HTML for output
|
65 |
+
$output = '';
|
66 |
+
$debug = 'Developer mode initialisation;';
|
67 |
+
$time = microtime(true);
|
68 |
+
$posts_number = get_option( 'relpoststh_number', $this->number );
|
69 |
+
if ( $posts_number <= 0 ) // return nothing if this parameter was set to <= 0
|
70 |
+
return $this->finish_process( $output, $debug . 'Posts number is 0;', $time );
|
71 |
+
$id = get_the_ID();
|
72 |
+
$relation = get_option( 'relpoststh_relation', $this->relation );
|
73 |
+
$poststhname = get_option( 'relpoststh_poststhname', $this->poststhname );
|
74 |
+
$text_length = get_option( 'relpoststh_textlength', $this->text_length );
|
75 |
+
$excerpt_length = get_option( 'relpoststh_excerptlength', $this->excerpt_length );
|
76 |
+
$thsource = get_option( 'relpoststh_thsource', $this->thsource );
|
77 |
+
$categories_show_all = get_option( 'relpoststh_show_categoriesall',
|
78 |
+
get_option( 'relpoststh_categoriesall',
|
79 |
+
$this->categories_all ) );
|
80 |
+
/* Get random posts according to given rules */
|
81 |
+
global $wpdb;
|
82 |
+
$query = "SELECT distinct ID FROM $wpdb->posts ";
|
83 |
+
$where = " WHERE post_type = 'post' AND post_status = 'publish' AND ID<>" . $id; // not the current post
|
84 |
+
$startdate = get_option( 'relpoststh_startdate' );
|
85 |
+
if ( !empty( $startdate ) && preg_match( '/^\d\d\d\d-\d\d-\d\d$/', $startdate ) ) { // If startdate was set
|
86 |
+
$debug .= "Startdate: $startdate;";
|
87 |
+
$where .= " AND post_date >= '" . $startdate . "'";
|
88 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
+
/* Get taxonomy terms */
|
91 |
+
$join = '';
|
92 |
+
$whichterm = '';
|
93 |
+
$select_terms = array();
|
94 |
+
if ( $categories_show_all != '1') { // if only specific categories were selected
|
95 |
+
$select_terms = unserialize( get_option( 'relpoststh_show_categories',
|
96 |
+
get_option( 'relpoststh_categories' ) ) );
|
97 |
+
if ( empty( $select_terms ) ) // if no categories were specified intentionally return nothing
|
98 |
+
return $this->finish_process( $output, $debug . 'No categories were selected;', $time );
|
99 |
+
}
|
100 |
+
$debug .= "Relation: $relation;";
|
101 |
+
if ( $relation != 'no' ) { // relation was set
|
102 |
+
if ( !empty( $select_terms ) ) { // intersect categories selected and post's
|
103 |
+
$debug .= 'With specified categories;';
|
104 |
+
if ( $relation == 'categories' || $relation == 'both' ) {
|
105 |
+
$object_terms = wp_get_object_terms( $id, array('category'), array( 'fields' => 'ids' ) );
|
106 |
+
if ( is_array( $object_terms ) && is_array( $select_terms ) )
|
107 |
+
$select_terms = array_intersect( $select_terms, $object_terms );
|
108 |
+
}
|
109 |
+
if ( $relation == 'tags' || $relation == 'both' ) {
|
110 |
+
$object_terms = wp_get_object_terms( $id, array( 'post_tag' ), array( 'fields' => 'ids' ) );
|
111 |
+
$select_terms = array_merge( $select_terms, $object_terms );
|
112 |
}
|
113 |
}
|
114 |
+
else { // all categories were selected just get everything
|
115 |
+
if ( $relation == 'categories' )
|
116 |
+
$taxonomy = array( 'category' );
|
117 |
+
elseif ( $relation == 'tags' )
|
118 |
+
$taxonomy = array( 'post_tag' );
|
119 |
+
else
|
120 |
+
$taxonomy = array( 'category', 'post_tag' );
|
121 |
+
$select_terms = wp_get_object_terms( $id, $taxonomy, array( 'fields' => 'ids' ) );
|
122 |
+
}
|
123 |
+
if ( !is_array( $select_terms ) || empty( $select_terms ) ) // no terms to get taxonomy
|
124 |
+
return $this->finish_process( $output, $debug . 'No taxonomy terms to get posts;', $time );
|
125 |
+
}
|
126 |
+
if ( !( $relation == 'no' && $categories_show_all == '1' ) ) { // skip join if no relation and show all
|
127 |
+
$join = " INNER JOIN $wpdb->term_relationships ON ($wpdb->posts.ID = $wpdb->term_relationships.object_id) INNER JOIN $wpdb->term_taxonomy ON ($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) ";
|
128 |
+
$include_terms = "'" . implode( "', '", $select_terms ) . "'";
|
129 |
+
$whichterm = " AND $wpdb->term_taxonomy.term_id IN ($include_terms) ";
|
130 |
}
|
131 |
+
$order = " ORDER BY rand() LIMIT " . $posts_number;
|
132 |
+
$random_posts = $wpdb->get_results( $query . $join . $where . $whichterm . $order );
|
133 |
|
134 |
+
/* Get posts by their IDs */
|
135 |
+
$posts_in = array();
|
136 |
+
if ( is_array( $random_posts ) && count( $random_posts ) ) {
|
137 |
+
foreach ( $random_posts as $random_post )
|
138 |
+
$posts_in[] = $random_post->ID;
|
139 |
}
|
140 |
+
$posts = array();
|
141 |
+
$q = new WP_Query;
|
142 |
+
$posts = $q->query( array( 'caller_get_posts' => true,
|
143 |
+
'post__in' => $posts_in,
|
144 |
+
'posts_per_page' => $posts_number ) );
|
145 |
|
146 |
+
if ( ! ( is_array( $posts ) && count( $posts ) > 0 ) ) { // no posts
|
147 |
+
$debug .= 'No posts found';
|
148 |
+
return $this->finish_process( $output, $debug, $time );
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
+
else
|
151 |
+
$debug .= 'Found ' . count( $posts ) . ' posts;';
|
152 |
|
153 |
/* Calculating sizes */
|
154 |
if ( $thsource == 'custom-field' ) {
|
187 |
$debug .= 'Using default height;';
|
188 |
$height = get_option( "thumbnail_size_h" );
|
189 |
}
|
|
|
190 |
$debug .= 'Got sizes '.$width.'x'.$height.';';
|
191 |
// rendering related posts HTML
|
192 |
+
if ( $show_top )
|
193 |
+
$output .= stripslashes( get_option( 'relpoststh_top_text', $this->top_text ) );
|
194 |
+
$output .= '<div style="clear: both"></div><div style="border: 0pt none ; margin: 0pt; padding: 0pt;">';
|
195 |
foreach( $posts as $post ) {
|
196 |
$image = '';
|
197 |
$url = '';
|
222 |
$debug .= 'No image was found;';
|
223 |
if ( strlen( trim( $image ) ) > 0 ) {
|
224 |
$image_sizes = @getimagesize( $image );
|
225 |
+
if ( $image_sizes === false )
|
226 |
+
$debug .= 'Unable to determine parsed image size';
|
227 |
+
if ( $image_sizes !== false && isset( $image_sizes[0] ) && $image_sizes[0] == $width ) { // if this image is the same size as we need
|
228 |
$debug .= 'Image used is the required size;';
|
229 |
$url = $image;
|
230 |
}
|
237 |
$debug .= 'Found wrong formatted image;';
|
238 |
}
|
239 |
}
|
240 |
+
|
241 |
$debug .= 'Image URL: '.$url.';';
|
242 |
+
if ( empty($url) || ( ini_get( 'allow_url_fopen' ) && false === @fopen( $url, 'r' ) ) ) { // parsed URL is empty or no file if can check
|
243 |
+
$debug .= 'Image is empty or no file. Using default image;';
|
244 |
$url = get_option( 'relpoststh_default_image', $this->default_image );
|
245 |
}
|
246 |
|
254 |
}
|
255 |
|
256 |
$debug .= 'Using title with size ' . $text_length . '. Using excerpt with size ' . $excerpt_length . ';';
|
|
|
257 |
$output .= '<a onmouseout="this.style.backgroundColor=\'' . get_option( 'relpoststh_background', $this->background ) . '\'" onmouseover="this.style.backgroundColor=\'' . get_option( 'relpoststh_hoverbackground', $this->hoverbackground ) . '\'" style="border-right: 1px solid ' . get_option( 'relpoststh_bordercolor', $this->border_color ) . '; border-bottom: medium none; margin: 0pt; padding: 6px; display: block; float: left; text-decoration: none; text-align: left; cursor: pointer;" href="' . get_permalink( $post->ID ) . '">';
|
258 |
$output .= '<div style="border: 0pt none ; margin: 0pt; padding: 0pt; width: ' . $width . 'px; height: ' . ( $height + get_option( 'relpoststh_textblockheight', $this->text_block_height ) ) . 'px;">';
|
259 |
$output .= '<div style="border: 0pt none ; margin: 0pt; padding: 0pt; background: transparent url(' . $url . ') no-repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: ' . $width . 'px; height: ' . $height . 'px;"></div>';
|
263 |
|
264 |
} // end foreach
|
265 |
$output .= '</div><div style="clear: both"></div>';
|
266 |
+
return $this->finish_process( $output, $debug, $time );
|
267 |
+
}
|
268 |
+
|
269 |
+
function finish_process( $output, $debug, $time ) {
|
270 |
+
$devmode = get_option( 'relpoststh_devmode', $this->devmode );
|
271 |
+
if ( $devmode ) {
|
272 |
+
$time = microtime(true) - $time;
|
273 |
+
$debug .= "Plugin execution time: $time sec;";
|
274 |
$output .= '<!-- '.$debug.' -->';
|
275 |
+
}
|
276 |
return $output;
|
277 |
}
|
278 |
|
286 |
}
|
287 |
|
288 |
function is_relpoststh_show() { // Checking display options
|
289 |
+
if ( is_page() || ( ! is_single() && get_option( 'relpoststh_single_only', $this->single_only ) ) ) { // single only
|
290 |
return false;
|
291 |
}
|
292 |
/* Check categories */
|
304 |
return true;
|
305 |
}
|
306 |
|
|
|
|
|
|
|
307 |
function admin_menu() {
|
308 |
$page = add_options_page( __( 'Related Posts Thumbnails', 'related-posts-thumbnails' ), __( 'Related Posts Thumbs', 'related-posts-thumbnails' ), 'administrator', 'related-posts-thumbnails', array( $this, 'admin_interface' ) );
|
309 |
}
|
314 |
wp_die( __( 'No access', 'related-posts-thumbnails' ) );
|
315 |
}
|
316 |
check_admin_referer( 'related-posts-thumbnails' );
|
317 |
+
$validation = true;
|
318 |
+
if ( !empty($_POST['relpoststh_year']) || !empty($_POST['relpoststh_month']) || !empty($_POST['relpoststh_year']) ) { // check date
|
319 |
+
$set_date = sprintf( '%04d-%02d-%02d', $_POST['relpoststh_year'], $_POST['relpoststh_month'], $_POST['relpoststh_day'] );
|
320 |
+
if ( checkdate( intval($_POST['relpoststh_month']), intval($_POST['relpoststh_day']), intval($_POST['relpoststh_year']) ) === false ) {
|
321 |
+
$validation = false;
|
322 |
+
$error = __( 'Wrong date', 'related-posts-thumbnails' ) . ': ' . sprintf( '%d/%d/%d', $_POST['relpoststh_month'], $_POST['relpoststh_day'], $_POST['relpoststh_year'] );
|
323 |
+
}
|
324 |
+
}
|
325 |
+
else
|
326 |
+
$set_date = '';
|
327 |
+
if ( $validation ) {
|
328 |
+
update_option( 'relpoststh_single_only', $_POST['relpoststh_single_only'] );
|
329 |
+
update_option( 'relpoststh_auto', $_POST['relpoststh_auto'] );
|
330 |
+
update_option( 'relpoststh_top_text', $_POST['relpoststh_top_text'] );
|
331 |
+
update_option( 'relpoststh_number', $_POST['relpoststh_number'] );
|
332 |
+
update_option( 'relpoststh_relation', $_POST['relpoststh_relation'] );
|
333 |
+
update_option( 'relpoststh_default_image', $_POST['relpoststh_default_image'] );
|
334 |
+
update_option( 'relpoststh_poststhname', $_POST['relpoststh_poststhname'] );
|
335 |
+
update_option( 'relpoststh_background', $_POST['relpoststh_background'] );
|
336 |
+
update_option( 'relpoststh_hoverbackground', $_POST['relpoststh_hoverbackground'] );
|
337 |
+
update_option( 'relpoststh_bordercolor', $_POST['relpoststh_bordercolor'] );
|
338 |
+
update_option( 'relpoststh_fontcolor', $_POST['relpoststh_fontcolor'] );
|
339 |
+
update_option( 'relpoststh_fontsize', $_POST['relpoststh_fontsize'] );
|
340 |
+
update_option( 'relpoststh_fontfamily', $_POST['relpoststh_fontfamily'] );
|
341 |
+
update_option( 'relpoststh_textlength', $_POST['relpoststh_textlength'] );
|
342 |
+
update_option( 'relpoststh_excerptlength', $_POST['relpoststh_excerptlength'] );
|
343 |
+
update_option( 'relpoststh_thsource', $_POST['relpoststh_thsource'] );
|
344 |
+
update_option( 'relpoststh_customfield', $_POST['relpoststh_customfield'] );
|
345 |
+
update_option( 'relpoststh_customwidth', $_POST['relpoststh_customwidth'] );
|
346 |
+
update_option( 'relpoststh_customheight', $_POST['relpoststh_customheight'] );
|
347 |
+
update_option( 'relpoststh_textblockheight', $_POST['relpoststh_textblockheight'] );
|
348 |
+
update_option( 'relpoststh_categoriesall', $_POST['relpoststh_categoriesall'] );
|
349 |
+
update_option( 'relpoststh_categories', serialize( $_POST['relpoststh_categories'] ) );
|
350 |
+
update_option( 'relpoststh_show_categoriesall', $_POST['relpoststh_show_categoriesall'] );
|
351 |
+
update_option( 'relpoststh_show_categories', serialize( $_POST['relpoststh_show_categories'] ) );
|
352 |
+
update_option( 'relpoststh_devmode', $_POST['relpoststh_devmode'] );
|
353 |
+
update_option( 'relpoststh_startdate', $set_date );
|
354 |
+
echo "<div class='updated fade'><p>" . __( 'Settings updated', 'related-posts-thumbnails' ) ."</p></div>";
|
355 |
+
}
|
356 |
+
else {
|
357 |
+
echo "<div class='error fade'><p>" . __( 'Settings update failed', 'related-posts-thumbnails' ) . '. '. $error . "</p></div>";
|
358 |
+
}
|
359 |
}
|
360 |
$available_sizes = array( 'thumbnail' => 'thumbnail', 'medium' => 'medium' );
|
361 |
if ( current_theme_supports( 'post-thumbnails' ) ) {
|
371 |
$relpoststh_devmode = get_option( 'relpoststh_devmode', $this->devmode );
|
372 |
$relpoststh_categoriesall = get_option( 'relpoststh_categoriesall', $this->categories_all );
|
373 |
$relpoststh_categories = unserialize( get_option( 'relpoststh_categories' ) );
|
374 |
+
$relpoststh_show_categories = unserialize( get_option( 'relpoststh_show_categories', get_option( 'relpoststh_categories' ) ) );
|
375 |
+
$relpoststh_show_categoriesall = get_option( 'relpoststh_show_categoriesall', $relpoststh_categoriesall );
|
376 |
+
$relpoststh_startdate = explode( '-', get_option( 'relpoststh_startdate' ) );
|
377 |
$thsources = array( 'post-thumbnails' => 'Post thumbnails', 'custom-field' => 'Custom field' );
|
378 |
$categories = get_categories();
|
379 |
?>
|
380 |
+
<script type="text/javascript">
|
381 |
+
jQuery(document).ready(function($) {
|
382 |
+
$(".select_all").click(function(){
|
383 |
+
if (this.checked) {
|
384 |
+
$(this).parent().find("div.select_specific").hide();
|
385 |
+
}
|
386 |
+
else {
|
387 |
+
$(this).parent().find("div.select_specific").show();
|
388 |
+
}
|
389 |
+
});
|
390 |
+
$('#relpoststh_thsource').change(function(){
|
391 |
+
if (this.value == 'post-thumbnails') {
|
392 |
+
$('#relpoststh-post-thumbnails').show();
|
393 |
+
$('#relpoststh-custom-field').hide();
|
394 |
+
}
|
395 |
+
else {
|
396 |
+
$('#relpoststh-post-thumbnails').hide();
|
397 |
+
$('#relpoststh-custom-field').show();
|
398 |
+
}
|
399 |
+
});
|
400 |
+
});
|
401 |
+
</script>
|
402 |
<div class="wrap">
|
403 |
<div class="icon32" id="icon-options-general"><br></div>
|
404 |
<h2><?php _e( 'Related Posts Thumbnails Settings', 'related-posts-thumbnails' ); ?></h2>
|
431 |
</td>
|
432 |
</tr>
|
433 |
<tr valign="top">
|
434 |
+
<th scope="row"><?php _e( 'Categories on which related thumbnails will appear', 'related-posts-thumbnails' ); ?>:</th>
|
435 |
<td>
|
436 |
+
<?php $this->display_categories_list( $relpoststh_categoriesall, $categories, $relpoststh_categories, 'relpoststh_categoriesall', 'relpoststh_categories' ); ?>
|
437 |
+
</td>
|
438 |
+
</tr>
|
439 |
+
<tr valign="top">
|
440 |
+
<th scope="row"><?php _e( 'Categories that will appear in related thumbnails', 'related-posts-thumbnails' ); ?>:</th>
|
441 |
+
<td>
|
442 |
+
<?php $this->display_categories_list( $relpoststh_show_categoriesall, $categories, $relpoststh_show_categories, 'relpoststh_show_categoriesall', 'relpoststh_show_categories' ); ?>
|
443 |
+
</td>
|
444 |
+
</tr>
|
445 |
+
<tr>
|
446 |
+
<th scope="row"><?php _e( 'Include only posts after', 'related-posts-thumbnails' ); ?>:</th>
|
447 |
+
<td>
|
448 |
+
<?php _e( 'Year' ); ?>: <input type="text" name="relpoststh_year" size="4" value="<?php echo $relpoststh_startdate[0]; ?>"> <?php _e( 'Month' ); ?>: <input type="text" name="relpoststh_month" size="2" value="<?php echo $relpoststh_startdate[1]; ?>"> <?php _e( 'Day' ); ?>: <input type="text" name="relpoststh_day" size="2" value="<?php echo $relpoststh_startdate[2]; ?>"> <label for="relpoststh_excerptlength"><?php _e( 'Leave empty for all posts dates', 'related-posts-thumbnails' ); ?></label><br />
|
449 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
</td>
|
451 |
</tr>
|
452 |
<tr>
|
470 |
<tr>
|
471 |
<th scope="row"><?php _e( 'Thumbnails source', 'related-posts-thumbnails' ); ?>:</th>
|
472 |
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
473 |
<select name="relpoststh_thsource" id="relpoststh_thsource">
|
474 |
<?php foreach ( $thsources as $name => $title ) : ?>
|
475 |
<option value="<?php echo $name; ?>" <?php if ( $relpoststh_thsource == $name ) echo 'selected'; ?>><?php echo $title; ?></option>
|
561 |
<label for="relpoststh_textlength"><?php _e( 'Set 0 for no title', 'related-posts-thumbnails' ); ?></label><br />
|
562 |
</td>
|
563 |
</tr>
|
564 |
+
<tr valign="top">
|
565 |
<th scope="row"><?php _e( 'Excerpt maximum length', 'related-posts-thumbnails' ); ?>:</th>
|
566 |
<td>
|
567 |
<input type="text" name="relpoststh_excerptlength" value="<?php echo get_option( 'relpoststh_excerptlength', $this->excerpt_length )?>" size="7"/>
|
568 |
<label for="relpoststh_excerptlength"><?php _e( 'Set 0 for no excerpt', 'related-posts-thumbnails' ); ?></label><br />
|
569 |
</td>
|
570 |
</tr>
|
571 |
+
<tr valign="top">
|
572 |
<th scope="row"><?php _e( 'Text block height', 'related-posts-thumbnails' ); ?>:</th>
|
573 |
<td>
|
574 |
<input type="text" name="relpoststh_textblockheight" value="<?php echo get_option( 'relpoststh_textblockheight', $this->text_block_height )?>" size="7"/> px
|
588 |
<label for="relpoststh_relation_tags"><?php _e( 'Tags', 'related-posts-thumbnails' ); ?></label><br />
|
589 |
<input type="radio" name="relpoststh_relation" id="relpoststh_relation_both" value="both" <?php if ( $relpoststh_relation == 'both' ) echo 'checked="checked"'; ?>/>
|
590 |
<label for="relpoststh_relation_both"><?php _e( 'Categories and Tags', 'related-posts-thumbnails' ); ?></label><br />
|
591 |
+
<input type="radio" name="relpoststh_relation" id="relpoststh_relation_no" value="no" <?php if ( $relpoststh_relation == 'no' ) echo 'checked="checked"'; ?>/>
|
592 |
+
<label for="relpoststh_relation_no"><?php _e( 'Random', 'related-posts-thumbnails' ); ?></label><br />
|
593 |
</td>
|
594 |
</tr>
|
595 |
</table>
|
601 |
<p style="margin-top: 40px;"><small><?php _e('If you experience some problems with this plugin please let me know about it on <a href="http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/">Plugin\'s homepage</a>. If you think this plugin is awesome please vote on <a href="http://wordpress.org/extend/plugins/related-posts-thumbnails/">Wordpress plugin page</a>. Thanks!', 'related-posts-thumbnails' ); ?></small></p>
|
602 |
<?php
|
603 |
}
|
604 |
+
|
605 |
+
function display_categories_list( $categoriesall, $categories, $selected_categories, $all_name, $specific_name ) {
|
606 |
+
?>
|
607 |
+
<input id="<?php echo $all_name; ?>" class="select_all" type="checkbox" name="<?php echo $all_name; ?>" value="1" <?php if ( $categoriesall == '1' ) echo 'checked="checked"'; ?>/>
|
608 |
+
<label for="<?php echo $all_name; ?>"><?php _e( 'All', 'related-posts-thumbnails' ); ?></label>
|
609 |
+
<div class="select_specific" <?php if ( $categoriesall == '1' ) : ?> style="display:none" <?php endif; ?>>
|
610 |
+
<?php foreach ( $categories as $category ) : ?>
|
611 |
+
<input type="checkbox" name="<?php echo $specific_name; ?>[]" id="<?php echo $specific_name; ?>_<?php echo $category->category_nicename; ?>" value="<?php echo $category->cat_ID; ?>" <?php if ( in_array( $category->cat_ID, (array)$selected_categories ) ) echo 'checked="checked"'; ?>/>
|
612 |
+
<label for="<?php echo $specific_name; ?>_<?php echo $category->category_nicename; ?>"><?php echo $category->cat_name; ?></label><br />
|
613 |
+
<?php endforeach; ?>
|
614 |
+
</div>
|
615 |
+
<?php
|
616 |
+
}
|
617 |
}
|
618 |
|
619 |
add_action( 'init', 'related_posts_thumbnails' );
|
screenshot-2.png
CHANGED
Binary file
|