Version Description
- Tag <noindex> replaced to <!--noindex-->.
Download this release
Release Info
Developer | theluckywp |
Plugin | LuckyWP Table of Contents |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- admin/Admin.php +1 -1
- admin/widgets/customizeModal/views/modal.php +1 -1
- config/settings.php +1 -1
- languages/lwptoc-ru_RU.mo +0 -0
- languages/lwptoc.pot +132 -116
- luckywp-table-of-contents.php +2 -2
- plugin/Shortcode.php +2 -2
- readme.txt +5 -2
admin/Admin.php
CHANGED
@@ -190,7 +190,7 @@ class Admin extends BaseObject
|
|
190 |
}
|
191 |
}
|
192 |
if (null !== $v = $getValue($source, 'wrapNoindex')) {
|
193 |
-
$rows[] = [esc_html__('Wrap table of contents with
|
194 |
}
|
195 |
return array_map(function ($row) {
|
196 |
if ($row[1] !== null && ArrayHelper::getValue($row, 2, true) === true) {
|
190 |
}
|
191 |
}
|
192 |
if (null !== $v = $getValue($source, 'wrapNoindex')) {
|
193 |
+
$rows[] = [esc_html__('Wrap table of contents with <!--noindex--> tag', 'lwptoc'), $v ? __('Enabled', 'lwptoc') : __('Disabled', 'lwptoc')];
|
194 |
}
|
195 |
return array_map(function ($row) {
|
196 |
if ($row[1] !== null && ArrayHelper::getValue($row, 2, true) === true) {
|
admin/widgets/customizeModal/views/modal.php
CHANGED
@@ -487,7 +487,7 @@ echo $onlyBody ? '' : '<div class="lwptocCustomize lwptocCustomize-metabox">';
|
|
487 |
<?php $defaultValue = ($model->isPostSettings || is_null($model->postSettings->wrapNoindex)) ? Core::$plugin->settings->miscWrapNoindex : $model->postSettings->wrapNoindex ?>
|
488 |
<div class="lwptocCustomize_field<?= $model->defaultWrapNoindex ? ' lwptocCustomize_field-default' : '' ?>">
|
489 |
<div class="lwptocCustomize_field_header">
|
490 |
-
<span class="lwptocCustomize_field_label"><?= esc_html__('Wrap table of contents with
|
491 |
<span class="lwptocCustomize_field_default"><?= __('default', 'lwptoc') ?></span>
|
492 |
</div>
|
493 |
<div class="lwptocCustomize_field_override">
|
487 |
<?php $defaultValue = ($model->isPostSettings || is_null($model->postSettings->wrapNoindex)) ? Core::$plugin->settings->miscWrapNoindex : $model->postSettings->wrapNoindex ?>
|
488 |
<div class="lwptocCustomize_field<?= $model->defaultWrapNoindex ? ' lwptocCustomize_field-default' : '' ?>">
|
489 |
<div class="lwptocCustomize_field_header">
|
490 |
+
<span class="lwptocCustomize_field_label"><?= esc_html__('Wrap table of contents with <!--noindex--> tag', 'lwptoc') ?></span>
|
491 |
<span class="lwptocCustomize_field_default"><?= __('default', 'lwptoc') ?></span>
|
492 |
</div>
|
493 |
<div class="lwptocCustomize_field_override">
|
config/settings.php
CHANGED
@@ -319,7 +319,7 @@ return [
|
|
319 |
'widget' => 'checkbox',
|
320 |
'params' => [
|
321 |
'checkboxOptions' => [
|
322 |
-
'label' => esc_html__('Wrap table of contents with
|
323 |
],
|
324 |
],
|
325 |
'default' => false,
|
319 |
'widget' => 'checkbox',
|
320 |
'params' => [
|
321 |
'checkboxOptions' => [
|
322 |
+
'label' => esc_html__('Wrap table of contents with <!--noindex--> tag', 'lwptoc'),
|
323 |
],
|
324 |
],
|
325 |
'default' => false,
|
languages/lwptoc-ru_RU.mo
CHANGED
Binary file
|
languages/lwptoc.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: ru_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-Generator: Poedit 2.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
15 |
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
|
@@ -21,120 +21,129 @@ msgstr ""
|
|
21 |
msgid "Settings"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: admin/Admin.php:47 admin/Admin.php:48 admin/Admin.php:72 admin/Admin.php:
|
25 |
#: admin/controllers/EditorBlockController.php:65
|
26 |
#: admin/controllers/ShortcodeController.php:68
|
27 |
msgid "Table of Contents"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: admin/Admin.php:
|
31 |
msgid "Edit"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: admin/Admin.php:
|
35 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
36 |
msgid "Position"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: admin/Admin.php:
|
40 |
-
#: config/settings.php:
|
41 |
msgid "Minimal Count of Headers"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: admin/Admin.php:
|
45 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
46 |
msgid "Depth"
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: admin/Admin.php:
|
50 |
-
#: config/settings.php:
|
51 |
msgid "Hierarchical View"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: admin/Admin.php:
|
55 |
-
#: admin/Admin.php:
|
56 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
57 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
58 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
|
|
|
|
59 |
msgid "Enabled"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: admin/Admin.php:
|
63 |
-
#: admin/Admin.php:
|
64 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
65 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
66 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
|
|
|
|
67 |
msgid "Disabled"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: admin/Admin.php:
|
71 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
72 |
msgid "Numeration"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: admin/Admin.php:
|
76 |
-
#: config/settings.php:
|
77 |
msgid "Title"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: admin/Admin.php:
|
81 |
-
#: config/settings.php:
|
82 |
msgid "Toggle Show/Hide"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: admin/Admin.php:
|
86 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
87 |
msgid "Label Show"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: admin/Admin.php:
|
91 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
92 |
msgid "Label Hide"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: admin/Admin.php:
|
96 |
msgid "Hide Items"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: admin/Admin.php:
|
100 |
-
#: config/settings.php:
|
101 |
msgid "Smooth Scroll"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: admin/Admin.php:
|
105 |
msgid "Smooth Scroll Offset Top"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: admin/Admin.php:
|
109 |
-
#: config/settings.php:
|
110 |
msgid "Width"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: admin/Admin.php:
|
114 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
115 |
msgid "Float"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: admin/Admin.php:
|
119 |
-
#: config/settings.php:
|
120 |
msgid "Title Font Size"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: admin/Admin.php:
|
124 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
125 |
msgid "Title Font Weight"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: admin/Admin.php:
|
129 |
-
#: config/settings.php:
|
130 |
msgid "Items Font Size"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: admin/Admin.php:
|
134 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
135 |
msgid "Color Scheme"
|
136 |
msgstr ""
|
137 |
|
|
|
|
|
|
|
|
|
|
|
138 |
#: admin/controllers/EditorBlockController.php:71
|
139 |
#: admin/controllers/ShortcodeController.php:74
|
140 |
#: admin/widgets/metabox/views/box.php:26
|
@@ -150,7 +159,7 @@ msgid "from scheme"
|
|
150 |
msgstr ""
|
151 |
|
152 |
#: admin/widgets/customizeModal/views/modal.php:23
|
153 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
154 |
msgid "Cancel"
|
155 |
msgstr ""
|
156 |
|
@@ -158,82 +167,89 @@ msgstr ""
|
|
158 |
msgid "Customize Table of Contents"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: admin/widgets/customizeModal/views/modal.php:38 config/settings.php:
|
162 |
msgid "General"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: admin/widgets/customizeModal/views/modal.php:39 config/settings.php:
|
166 |
msgid "Appearance"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
174 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
175 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
176 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
177 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
178 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
179 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
180 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
181 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
182 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
183 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
184 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
185 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
186 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
187 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
|
|
|
|
|
|
|
|
|
|
188 |
msgid "default"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
192 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
193 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
194 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
195 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
196 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
197 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
198 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
199 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
200 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
201 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
202 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
203 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
204 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
205 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
206 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
207 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
208 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
209 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
|
|
210 |
msgid "Click for override default value"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
214 |
msgid ""
|
215 |
"If the count of headers in the post is less, then table of contents is not "
|
216 |
"displayed."
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
220 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
221 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
222 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
223 |
-
#: admin/widgets/
|
224 |
-
#:
|
|
|
225 |
msgid "Enable"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
229 |
msgid "Without title"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
233 |
msgid "By default, items of contents will be hidden"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: admin/widgets/customizeModal/views/modal.php:
|
237 |
msgid "Save"
|
238 |
msgstr ""
|
239 |
|
@@ -269,67 +285,67 @@ msgstr ""
|
|
269 |
msgid "Click \"Enable\" for automatic add table of contents to this post."
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: config/settings.php:
|
273 |
msgid "Header"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: config/settings.php:
|
277 |
msgid "Contents"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: config/settings.php:
|
281 |
msgid "show"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: config/settings.php:
|
285 |
msgid "hide"
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: config/settings.php:
|
289 |
msgid "Behavior"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: config/settings.php:
|
293 |
msgid "Scroll Offset Top"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: config/settings.php:
|
297 |
msgid "Override Color Scheme Colors"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: config/settings.php:
|
301 |
msgid "Background Color"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: config/settings.php:
|
305 |
msgid "Border Color"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: config/settings.php:
|
309 |
msgid "Title Color"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: config/settings.php:
|
313 |
msgid "Link Color"
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: config/settings.php:
|
317 |
msgid "Hover Link Color"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: config/settings.php:
|
321 |
msgid "Visited Link Color"
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: config/settings.php:
|
325 |
msgid "Auto Insert"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: config/settings.php:
|
329 |
msgid "Auto Insert Table of Contents"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: config/settings.php:
|
333 |
msgid "Post Types"
|
334 |
msgstr ""
|
335 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2019-04-15 09:59+0300\n"
|
5 |
+
"PO-Revision-Date: 2019-04-15 10:02+0300\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: ru_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-Generator: Poedit 2.2.1\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
15 |
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
|
21 |
msgid "Settings"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: admin/Admin.php:47 admin/Admin.php:48 admin/Admin.php:72 admin/Admin.php:99
|
25 |
#: admin/controllers/EditorBlockController.php:65
|
26 |
#: admin/controllers/ShortcodeController.php:68
|
27 |
msgid "Table of Contents"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: admin/Admin.php:100
|
31 |
msgid "Edit"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: admin/Admin.php:127 admin/forms/CustomizeForm.php:213
|
35 |
+
#: admin/widgets/customizeModal/views/modal.php:48 config/settings.php:283
|
36 |
msgid "Position"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: admin/Admin.php:130 admin/widgets/customizeModal/views/modal.php:71
|
40 |
+
#: config/settings.php:20
|
41 |
msgid "Minimal Count of Headers"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: admin/Admin.php:133 admin/forms/CustomizeForm.php:209
|
45 |
+
#: admin/widgets/customizeModal/views/modal.php:94 config/settings.php:32
|
46 |
msgid "Depth"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: admin/Admin.php:136 admin/widgets/customizeModal/views/modal.php:116
|
50 |
+
#: config/settings.php:41
|
51 |
msgid "Hierarchical View"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: admin/Admin.php:136 admin/Admin.php:145 admin/Admin.php:154
|
55 |
+
#: admin/Admin.php:157 admin/Admin.php:193
|
56 |
+
#: admin/widgets/customizeModal/views/modal.php:132
|
57 |
+
#: admin/widgets/customizeModal/views/modal.php:203
|
58 |
+
#: admin/widgets/customizeModal/views/modal.php:266
|
59 |
+
#: admin/widgets/customizeModal/views/modal.php:289
|
60 |
+
#: admin/widgets/customizeModal/views/modal.php:506
|
61 |
msgid "Enabled"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: admin/Admin.php:136 admin/Admin.php:145 admin/Admin.php:154
|
65 |
+
#: admin/Admin.php:157 admin/Admin.php:193
|
66 |
+
#: admin/widgets/customizeModal/views/modal.php:132
|
67 |
+
#: admin/widgets/customizeModal/views/modal.php:203
|
68 |
+
#: admin/widgets/customizeModal/views/modal.php:266
|
69 |
+
#: admin/widgets/customizeModal/views/modal.php:289
|
70 |
+
#: admin/widgets/customizeModal/views/modal.php:506
|
71 |
msgid "Disabled"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: admin/Admin.php:139 admin/forms/CustomizeForm.php:210
|
75 |
+
#: admin/widgets/customizeModal/views/modal.php:139 config/settings.php:52
|
76 |
msgid "Numeration"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: admin/Admin.php:142 admin/widgets/customizeModal/views/modal.php:161
|
80 |
+
#: config/settings.php:67
|
81 |
msgid "Title"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: admin/Admin.php:145 admin/widgets/customizeModal/views/modal.php:187
|
85 |
+
#: config/settings.php:73
|
86 |
msgid "Toggle Show/Hide"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: admin/Admin.php:148 admin/forms/CustomizeForm.php:211
|
90 |
+
#: admin/widgets/customizeModal/views/modal.php:210 config/settings.php:85
|
91 |
msgid "Label Show"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: admin/Admin.php:151 admin/forms/CustomizeForm.php:212
|
95 |
+
#: admin/widgets/customizeModal/views/modal.php:230 config/settings.php:96
|
96 |
msgid "Label Hide"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: admin/Admin.php:154
|
100 |
msgid "Hide Items"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: admin/Admin.php:157 admin/widgets/customizeModal/views/modal.php:273
|
104 |
+
#: config/settings.php:124
|
105 |
msgid "Smooth Scroll"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: admin/Admin.php:160 admin/widgets/customizeModal/views/modal.php:296
|
109 |
msgid "Smooth Scroll Offset Top"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: admin/Admin.php:163 admin/widgets/customizeModal/views/modal.php:320
|
113 |
+
#: config/settings.php:160
|
114 |
msgid "Width"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: admin/Admin.php:166 admin/forms/CustomizeForm.php:214
|
118 |
+
#: admin/widgets/customizeModal/views/modal.php:343 config/settings.php:172
|
119 |
msgid "Float"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: admin/Admin.php:169 admin/widgets/customizeModal/views/modal.php:365
|
123 |
+
#: config/settings.php:181
|
124 |
msgid "Title Font Size"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: admin/Admin.php:172 admin/forms/CustomizeForm.php:215
|
128 |
+
#: admin/widgets/customizeModal/views/modal.php:389 config/settings.php:194
|
129 |
msgid "Title Font Weight"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: admin/Admin.php:175 admin/widgets/customizeModal/views/modal.php:411
|
133 |
+
#: config/settings.php:203
|
134 |
msgid "Items Font Size"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: admin/Admin.php:178 admin/forms/CustomizeForm.php:216
|
138 |
+
#: admin/widgets/customizeModal/views/modal.php:435 config/settings.php:216
|
139 |
msgid "Color Scheme"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: admin/Admin.php:193 admin/widgets/customizeModal/views/modal.php:490
|
143 |
+
#: config/settings.php:322
|
144 |
+
msgid "Wrap table of contents with <!--noindex--> tag"
|
145 |
+
msgstr ""
|
146 |
+
|
147 |
#: admin/controllers/EditorBlockController.php:71
|
148 |
#: admin/controllers/ShortcodeController.php:74
|
149 |
#: admin/widgets/metabox/views/box.php:26
|
159 |
msgstr ""
|
160 |
|
161 |
#: admin/widgets/customizeModal/views/modal.php:23
|
162 |
+
#: admin/widgets/customizeModal/views/modal.php:515
|
163 |
msgid "Cancel"
|
164 |
msgstr ""
|
165 |
|
167 |
msgid "Customize Table of Contents"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: admin/widgets/customizeModal/views/modal.php:38 config/settings.php:14
|
171 |
msgid "General"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: admin/widgets/customizeModal/views/modal.php:39 config/settings.php:154
|
175 |
msgid "Appearance"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: admin/widgets/customizeModal/views/modal.php:40 config/settings.php:313
|
179 |
+
msgid "Misc."
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: admin/widgets/customizeModal/views/modal.php:49
|
183 |
+
#: admin/widgets/customizeModal/views/modal.php:72
|
184 |
+
#: admin/widgets/customizeModal/views/modal.php:95
|
185 |
+
#: admin/widgets/customizeModal/views/modal.php:117
|
186 |
+
#: admin/widgets/customizeModal/views/modal.php:140
|
187 |
+
#: admin/widgets/customizeModal/views/modal.php:162
|
188 |
+
#: admin/widgets/customizeModal/views/modal.php:188
|
189 |
+
#: admin/widgets/customizeModal/views/modal.php:211
|
190 |
+
#: admin/widgets/customizeModal/views/modal.php:231
|
191 |
+
#: admin/widgets/customizeModal/views/modal.php:251
|
192 |
+
#: admin/widgets/customizeModal/views/modal.php:274
|
193 |
+
#: admin/widgets/customizeModal/views/modal.php:297
|
194 |
+
#: admin/widgets/customizeModal/views/modal.php:321
|
195 |
+
#: admin/widgets/customizeModal/views/modal.php:344
|
196 |
+
#: admin/widgets/customizeModal/views/modal.php:366
|
197 |
+
#: admin/widgets/customizeModal/views/modal.php:390
|
198 |
+
#: admin/widgets/customizeModal/views/modal.php:412
|
199 |
+
#: admin/widgets/customizeModal/views/modal.php:436
|
200 |
+
#: admin/widgets/customizeModal/views/modal.php:466
|
201 |
+
#: admin/widgets/customizeModal/views/modal.php:491
|
202 |
msgid "default"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: admin/widgets/customizeModal/views/modal.php:52
|
206 |
+
#: admin/widgets/customizeModal/views/modal.php:75
|
207 |
+
#: admin/widgets/customizeModal/views/modal.php:98
|
208 |
+
#: admin/widgets/customizeModal/views/modal.php:120
|
209 |
+
#: admin/widgets/customizeModal/views/modal.php:143
|
210 |
+
#: admin/widgets/customizeModal/views/modal.php:165
|
211 |
+
#: admin/widgets/customizeModal/views/modal.php:191
|
212 |
+
#: admin/widgets/customizeModal/views/modal.php:214
|
213 |
+
#: admin/widgets/customizeModal/views/modal.php:234
|
214 |
+
#: admin/widgets/customizeModal/views/modal.php:254
|
215 |
+
#: admin/widgets/customizeModal/views/modal.php:277
|
216 |
+
#: admin/widgets/customizeModal/views/modal.php:300
|
217 |
+
#: admin/widgets/customizeModal/views/modal.php:324
|
218 |
+
#: admin/widgets/customizeModal/views/modal.php:347
|
219 |
+
#: admin/widgets/customizeModal/views/modal.php:369
|
220 |
+
#: admin/widgets/customizeModal/views/modal.php:393
|
221 |
+
#: admin/widgets/customizeModal/views/modal.php:415
|
222 |
+
#: admin/widgets/customizeModal/views/modal.php:439
|
223 |
+
#: admin/widgets/customizeModal/views/modal.php:469
|
224 |
+
#: admin/widgets/customizeModal/views/modal.php:494
|
225 |
msgid "Click for override default value"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: admin/widgets/customizeModal/views/modal.php:84 config/settings.php:28
|
229 |
msgid ""
|
230 |
"If the count of headers in the post is less, then table of contents is not "
|
231 |
"displayed."
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: admin/widgets/customizeModal/views/modal.php:125
|
235 |
+
#: admin/widgets/customizeModal/views/modal.php:196
|
236 |
+
#: admin/widgets/customizeModal/views/modal.php:259
|
237 |
+
#: admin/widgets/customizeModal/views/modal.php:282
|
238 |
+
#: admin/widgets/customizeModal/views/modal.php:499
|
239 |
+
#: admin/widgets/metabox/views/box.php:45 config/settings.php:45
|
240 |
+
#: config/settings.php:77 config/settings.php:128 config/settings.php:275
|
241 |
msgid "Enable"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: admin/widgets/customizeModal/views/modal.php:176
|
245 |
msgid "Without title"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: admin/widgets/customizeModal/views/modal.php:250 config/settings.php:111
|
249 |
msgid "By default, items of contents will be hidden"
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: admin/widgets/customizeModal/views/modal.php:518
|
253 |
msgid "Save"
|
254 |
msgstr ""
|
255 |
|
285 |
msgid "Click \"Enable\" for automatic add table of contents to this post."
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: config/settings.php:63
|
289 |
msgid "Header"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: config/settings.php:69 plugin/Settings.php:87
|
293 |
msgid "Contents"
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: config/settings.php:92 plugin/Settings.php:103
|
297 |
msgid "show"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: config/settings.php:103 plugin/Settings.php:111
|
301 |
msgid "hide"
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: config/settings.php:120
|
305 |
msgid "Behavior"
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: config/settings.php:136
|
309 |
msgid "Scroll Offset Top"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: config/settings.php:226
|
313 |
msgid "Override Color Scheme Colors"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: config/settings.php:231
|
317 |
msgid "Background Color"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: config/settings.php:236
|
321 |
msgid "Border Color"
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: config/settings.php:241
|
325 |
msgid "Title Color"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: config/settings.php:246
|
329 |
msgid "Link Color"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: config/settings.php:251
|
333 |
msgid "Hover Link Color"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: config/settings.php:256
|
337 |
msgid "Visited Link Color"
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: config/settings.php:265
|
341 |
msgid "Auto Insert"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: config/settings.php:271
|
345 |
msgid "Auto Insert Table of Contents"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: config/settings.php:295
|
349 |
msgid "Post Types"
|
350 |
msgstr ""
|
351 |
|
luckywp-table-of-contents.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: LuckyWP Table of Contents
|
4 |
Plugin URI: https://theluckywp.com/product/table-of-contents/
|
5 |
Description: Creates a table of contents for your posts/pages. Works automatically or manually (via shortcode or Gutenberg block).
|
6 |
-
Version: 1.1.
|
7 |
Author: LuckyWP
|
8 |
Author URI: https://theluckywp.com/
|
9 |
Text Domain: lwptoc
|
@@ -29,6 +29,6 @@ $lwptocAutoloader->register();
|
|
29 |
$lwptocAutoloader->addNamespace('luckywp\tableOfContents', __DIR__);
|
30 |
|
31 |
$config = require(__DIR__ . '/config/plugin.php');
|
32 |
-
(new \luckywp\tableOfContents\plugin\Plugin($config))->run('1.1.
|
33 |
|
34 |
require_once __DIR__ . '/functions.php';
|
3 |
Plugin Name: LuckyWP Table of Contents
|
4 |
Plugin URI: https://theluckywp.com/product/table-of-contents/
|
5 |
Description: Creates a table of contents for your posts/pages. Works automatically or manually (via shortcode or Gutenberg block).
|
6 |
+
Version: 1.1.1
|
7 |
Author: LuckyWP
|
8 |
Author URI: https://theluckywp.com/
|
9 |
Text Domain: lwptoc
|
29 |
$lwptocAutoloader->addNamespace('luckywp\tableOfContents', __DIR__);
|
30 |
|
31 |
$config = require(__DIR__ . '/config/plugin.php');
|
32 |
+
(new \luckywp\tableOfContents\plugin\Plugin($config))->run('1.1.1', __FILE__, 'lwptoc_');
|
33 |
|
34 |
require_once __DIR__ . '/functions.php';
|
plugin/Shortcode.php
CHANGED
@@ -387,8 +387,8 @@ class Shortcode extends BaseObject
|
|
387 |
$after = (string)apply_filters('lwptoc_after', '');
|
388 |
|
389 |
if ($this->assertBool(ArrayHelper::getValue($attrs, 'wrapnoindex', Core::$plugin->settings->miscWrapNoindex))) {
|
390 |
-
$before = '
|
391 |
-
$after = $after . '
|
392 |
}
|
393 |
|
394 |
// Вывод
|
387 |
$after = (string)apply_filters('lwptoc_after', '');
|
388 |
|
389 |
if ($this->assertBool(ArrayHelper::getValue($attrs, 'wrapnoindex', Core::$plugin->settings->miscWrapNoindex))) {
|
390 |
+
$before = '<!--noindex-->' . $before;
|
391 |
+
$after = $after . '<!--/noindex-->';
|
392 |
}
|
393 |
|
394 |
// Вывод
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://theluckywp.com/product/table-of-contents/
|
|
4 |
Tags: table of contents, toc, navigation, links, heading
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.1.1
|
7 |
-
Stable tag: 1.1.
|
8 |
Requires PHP: 5.6.20
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -31,7 +31,7 @@ Creates a table of contents for your posts, pages or custom post types. Great cu
|
|
31 |
* Customizalbe labels.
|
32 |
* Smooth scroll (optionally).
|
33 |
* Setting offset top for smooth scroll.
|
34 |
-
* Wrap table of contents with <
|
35 |
* Available override global settings for a particular post.
|
36 |
* Highly compatible with WordPress themes and plugins.
|
37 |
|
@@ -113,6 +113,9 @@ The menu item "Table of Contents" will appear in the menu "Settings" of the Word
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
116 |
= 1.1.0 =
|
117 |
+ Added option "Wrap table of contents with <noindex> tag".
|
118 |
+ Added hook filters `lwptoc_before`, `lwptoc_after`, `lwptoc_shortcode_tag`.
|
4 |
Tags: table of contents, toc, navigation, links, heading
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.1.1
|
7 |
+
Stable tag: 1.1.1
|
8 |
Requires PHP: 5.6.20
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
31 |
* Customizalbe labels.
|
32 |
* Smooth scroll (optionally).
|
33 |
* Setting offset top for smooth scroll.
|
34 |
+
* Wrap table of contents with <!--noindex--> tag (optionally).
|
35 |
* Available override global settings for a particular post.
|
36 |
* Highly compatible with WordPress themes and plugins.
|
37 |
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= 1.1.1 =
|
117 |
+
* Tag <noindex> replaced to <!--noindex-->.
|
118 |
+
|
119 |
= 1.1.0 =
|
120 |
+ Added option "Wrap table of contents with <noindex> tag".
|
121 |
+ Added hook filters `lwptoc_before`, `lwptoc_after`, `lwptoc_shortcode_tag`.
|