Version Description
- Added grid display funcitonality
- Added page list functionality to lists
- Updated general settings code
- Updated metabox code
- Added mtphr_dnt_contents_before & mtphr_dnt_contents_after actions
- Moved rotate direction nav to mtphr_dnt_contents_after filter
- Moved rotate control nav to mtphr_dnt_after filter
- Moved global data mtphr_dnt_after filter
- General code cleanup
- Additional admin css
- Added mtphr_dnt_settings_submit_button filter to settings submit button
- Added $mtphr_dnt_ticker_types global to front end
- Added Arabic language
- Added mtphr_dnt_after_load jQuery trigger
- Added mtphr_dnt_before_change jQuery trigger
- Added mtphr_dnt_after_change jQuery trigger
- Added mtphr_dnt_resize jQuery listener
Download this release
Release Info
Developer | metaphorcreations |
Plugin | Ditty News Ticker |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.5 to 1.4.0
- assets/css/style-admin.css +166 -82
- assets/css/style.css +68 -0
- assets/fontastic/fonts/ditty-news-ticker.eot +0 -0
- assets/fontastic/fonts/ditty-news-ticker.svg +4 -0
- assets/fontastic/fonts/ditty-news-ticker.ttf +0 -0
- assets/fontastic/fonts/ditty-news-ticker.woff +0 -0
- assets/fontastic/icons-reference.html +32 -0
- assets/fontastic/styles.css +12 -0
- assets/js/ditty-news-ticker.js +19 -1
- assets/js/script-admin.js +140 -3
- ditty-news-ticker.php +8 -17
- includes/ajax.php +25 -1
- includes/display.php +19 -0
- includes/filters.php +249 -0
- includes/functions.php +114 -177
- includes/helpers.php +5 -5
- includes/meta-boxes.php +793 -593
- includes/metaboxer/metaboxer.css +0 -3
- includes/scripts.php +4 -0
- includes/settings.php +142 -83
- languages/ditty-news-ticker-ar_YE.mo +0 -0
- languages/ditty-news-ticker-ar_YE.po +777 -0
- languages/ditty-news-ticker-en_US.mo +0 -0
- languages/ditty-news-ticker-en_US.po +287 -191
- readme.txt +20 -1
assets/css/style-admin.css
CHANGED
@@ -41,9 +41,6 @@
|
|
41 |
padding: 10px;
|
42 |
background: #FFF;
|
43 |
border: 1px solid #EEE;
|
44 |
-
-webkit-border-radius: 5px;
|
45 |
-
-moz-border-radius: 5px;
|
46 |
-
border-radius: 5px;
|
47 |
}
|
48 |
|
49 |
.mtphr-dnt-metaboxer_mtphr_dnt_ticks-tick .wp-editor-wrap {
|
@@ -56,17 +53,16 @@
|
|
56 |
|
57 |
.ditty_news_ticker_page_mtphr_dnt_settings .form-table {
|
58 |
max-width: 1000px;
|
|
|
59 |
border: 1px solid #dfdfdf;
|
60 |
margin-top: 0;
|
61 |
margin-bottom: 10px;
|
62 |
-
-webkit-border-radius: 5px;
|
63 |
-
-moz-border-radius: 5px;
|
64 |
-
border-radius: 5px;
|
65 |
}
|
66 |
.ditty_news_ticker_page_mtphr_dnt_settings .form-table > tbody > tr > th {
|
67 |
background: #fefefe;
|
68 |
border-right: 1px solid #dfdfdf;
|
69 |
border-bottom: 1px solid #f7f7f7;
|
|
|
70 |
}
|
71 |
.ditty_news_ticker_page_mtphr_dnt_settings .form-table > tbody > tr > td {
|
72 |
border-bottom: 1px solid #f7f7f7;
|
@@ -83,13 +79,6 @@
|
|
83 |
border-bottom-width: 0;
|
84 |
padding: 10px;
|
85 |
margin-bottom: 0;
|
86 |
-
|
87 |
-
-webkit-border-top-left-radius: 5px;
|
88 |
-
-webkit-border-top-right-radius: 5px;
|
89 |
-
-moz-border-radius-topleft: 5px;
|
90 |
-
-moz-border-radius-topright: 5px;
|
91 |
-
border-top-left-radius: 5px;
|
92 |
-
border-top-right-radius: 5px;
|
93 |
}
|
94 |
.ditty_news_ticker_page_mtphr_dnt_settings #wpbody-content h3 input {
|
95 |
float: right;
|
@@ -106,21 +95,13 @@
|
|
106 |
padding: 0 10px 10px;
|
107 |
margin: 0;
|
108 |
}
|
109 |
-
.ditty_news_ticker_page_mtphr_dnt_settings
|
110 |
-
|
|
|
111 |
}
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
/* !CodeMirror */
|
116 |
-
/* --------------------------------------------------------- */
|
117 |
-
|
118 |
-
.mtphr-dnt-custom-css {
|
119 |
-
border: 1px solid #dfdfdf;
|
120 |
-
-webkit-border-radius: 3px;
|
121 |
-
-moz-border-radius: 3px;
|
122 |
-
border-radius: 3px;
|
123 |
-
overflow: hidden;
|
124 |
}
|
125 |
|
126 |
|
@@ -131,11 +112,12 @@
|
|
131 |
.mtphr-dnt-table {
|
132 |
width: 100%;
|
133 |
border-spacing: 0;
|
|
|
134 |
}
|
135 |
.mtphr-dnt-table > tbody > tr > td {
|
136 |
text-align: left;
|
137 |
vertical-align: top;
|
138 |
-
background: #
|
139 |
border-bottom: 1px solid #e9e9e9;
|
140 |
padding: 10px 2px;
|
141 |
}
|
@@ -149,7 +131,7 @@
|
|
149 |
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label {
|
150 |
width: 20%;
|
151 |
max-width: 200px;
|
152 |
-
background: #
|
153 |
border-left: 1px solid #dfdfdf;
|
154 |
border-bottom: 1px solid #e9e9e9;
|
155 |
}
|
@@ -165,25 +147,8 @@
|
|
165 |
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label {
|
166 |
padding-right: 10px;
|
167 |
}
|
168 |
-
.mtphr-dnt-table > tbody > tr
|
169 |
-
|
170 |
-
-moz-border-radius-topleft: 5px;
|
171 |
-
border-top-left-radius: 5px;
|
172 |
-
}
|
173 |
-
.mtphr-dnt-table > tbody > tr:first-child > td:last-child {
|
174 |
-
-webkit-border-top-right-radius: 5px;
|
175 |
-
-moz-border-radius-topright: 5px;
|
176 |
-
border-top-right-radius: 5px;
|
177 |
-
}
|
178 |
-
.mtphr-dnt-table > tbody > tr:last-child > td:first-child {
|
179 |
-
-webkit-border-bottom-left-radius: 5px;
|
180 |
-
-moz-border-radius-bottomleft: 5px;
|
181 |
-
border-bottom-left-radius: 5px;
|
182 |
-
}
|
183 |
-
.mtphr-dnt-table > tbody > tr:last-child > td:last-child {
|
184 |
-
-webkit-border-bottom-right-radius: 5px;
|
185 |
-
-moz-border-radius-bottomright: 5px;
|
186 |
-
border-bottom-right-radius: 5px;
|
187 |
}
|
188 |
.mtphr-dnt-table label {
|
189 |
display: inline-block;
|
@@ -245,6 +210,48 @@
|
|
245 |
margin-top: 0;
|
246 |
margin-right: 2px;
|
247 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
|
250 |
/* --------------------------------------------------------- */
|
@@ -252,12 +259,16 @@
|
|
252 |
/* --------------------------------------------------------- */
|
253 |
|
254 |
#ditty-news-ticker-settings-select {
|
|
|
|
|
|
|
255 |
width: 100%;
|
256 |
-
border-spacing:
|
257 |
-
margin: 10px 0;
|
258 |
}
|
259 |
#ditty-news-ticker-settings-select td {
|
260 |
vertical-align: top;
|
|
|
|
|
261 |
}
|
262 |
#ditty-news-ticker-settings-select h2 {
|
263 |
margin: 0;
|
@@ -265,27 +276,13 @@
|
|
265 |
#ditty-news-ticker-settings-select p {
|
266 |
margin: 0;
|
267 |
}
|
268 |
-
#ditty-news-ticker-type-select {
|
269 |
-
padding-right: 5px;
|
270 |
-
}
|
271 |
-
#ditty-news-ticker-mode-select {
|
272 |
-
padding: 0;
|
273 |
-
}
|
274 |
#ditty-news-ticker-type-select > .wrapper,
|
275 |
#ditty-news-ticker-mode-select > .wrapper {
|
276 |
-
height: 100%;
|
277 |
-
background: #f5f5f5;
|
278 |
-
border: 1px solid #dfdfdf;
|
279 |
-
-webkit-border-radius: 5px;
|
280 |
-
-moz-border-radius: 5px;
|
281 |
-
border-radius: 5px;
|
282 |
padding: 10px;
|
283 |
}
|
284 |
-
#ditty-news-ticker-type-select {
|
285 |
-
|
286 |
-
|
287 |
-
#ditty-news-ticker-mode-select {
|
288 |
-
|
289 |
}
|
290 |
#ditty-news-ticker-settings-select .mtphr-dnt-metabox-toggle {
|
291 |
padding: 10px 0 0;
|
@@ -295,6 +292,46 @@
|
|
295 |
}
|
296 |
|
297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
/* --------------------------------------------------------- */
|
299 |
/* !List elements */
|
300 |
/* --------------------------------------------------------- */
|
@@ -321,28 +358,52 @@
|
|
321 |
padding-right: 0;
|
322 |
}
|
323 |
.mtphr-dnt-list-handle span,
|
|
|
324 |
.mtphr-dnt-list-add a,
|
325 |
.mtphr-dnt-list-delete a {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
display: block;
|
327 |
-
text-indent: -9999px;
|
328 |
width: 16px;
|
329 |
height: 16px;
|
|
|
|
|
|
|
|
|
|
|
330 |
}
|
331 |
.mtphr-dnt-list-handle span {
|
332 |
-
|
333 |
-
}
|
334 |
-
.mtphr-dnt-list-
|
335 |
-
|
336 |
-
}
|
337 |
-
.mtphr-dnt-list-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
.mtphr-dnt-list-add a:
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
width: 100%;
|
347 |
}
|
348 |
.mtphr-dnt-add-spinner {
|
@@ -351,6 +412,19 @@
|
|
351 |
}
|
352 |
|
353 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
/* --------------------------------------------------------- */
|
355 |
/* !Mixed list */
|
356 |
/* --------------------------------------------------------- */
|
@@ -365,3 +439,13 @@
|
|
365 |
margin: 0;
|
366 |
}
|
367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
padding: 10px;
|
42 |
background: #FFF;
|
43 |
border: 1px solid #EEE;
|
|
|
|
|
|
|
44 |
}
|
45 |
|
46 |
.mtphr-dnt-metaboxer_mtphr_dnt_ticks-tick .wp-editor-wrap {
|
53 |
|
54 |
.ditty_news_ticker_page_mtphr_dnt_settings .form-table {
|
55 |
max-width: 1000px;
|
56 |
+
background: #FFF;
|
57 |
border: 1px solid #dfdfdf;
|
58 |
margin-top: 0;
|
59 |
margin-bottom: 10px;
|
|
|
|
|
|
|
60 |
}
|
61 |
.ditty_news_ticker_page_mtphr_dnt_settings .form-table > tbody > tr > th {
|
62 |
background: #fefefe;
|
63 |
border-right: 1px solid #dfdfdf;
|
64 |
border-bottom: 1px solid #f7f7f7;
|
65 |
+
padding-left: 10px;
|
66 |
}
|
67 |
.ditty_news_ticker_page_mtphr_dnt_settings .form-table > tbody > tr > td {
|
68 |
border-bottom: 1px solid #f7f7f7;
|
79 |
border-bottom-width: 0;
|
80 |
padding: 10px;
|
81 |
margin-bottom: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
.ditty_news_ticker_page_mtphr_dnt_settings #wpbody-content h3 input {
|
84 |
float: right;
|
95 |
padding: 0 10px 10px;
|
96 |
margin: 0;
|
97 |
}
|
98 |
+
.ditty_news_ticker_page_mtphr_dnt_settings .form-table table th,
|
99 |
+
.ditty_news_ticker_page_mtphr_dnt_settings .form-table table td {
|
100 |
+
padding: 2px;
|
101 |
}
|
102 |
+
.ditty_news_ticker_page_mtphr_dnt_settings .form-table input[type="text"],
|
103 |
+
.ditty_news_ticker_page_mtphr_dnt_settings .form-table textarea {
|
104 |
+
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
|
107 |
|
112 |
.mtphr-dnt-table {
|
113 |
width: 100%;
|
114 |
border-spacing: 0;
|
115 |
+
margin-top: 12px;
|
116 |
}
|
117 |
.mtphr-dnt-table > tbody > tr > td {
|
118 |
text-align: left;
|
119 |
vertical-align: top;
|
120 |
+
background: #fcfcfc;
|
121 |
border-bottom: 1px solid #e9e9e9;
|
122 |
padding: 10px 2px;
|
123 |
}
|
131 |
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label {
|
132 |
width: 20%;
|
133 |
max-width: 200px;
|
134 |
+
background: #f5f5f5;
|
135 |
border-left: 1px solid #dfdfdf;
|
136 |
border-bottom: 1px solid #e9e9e9;
|
137 |
}
|
147 |
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label {
|
148 |
padding-right: 10px;
|
149 |
}
|
150 |
+
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-no-label {
|
151 |
+
border-left: 1px solid #dfdfdf;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
}
|
153 |
.mtphr-dnt-table label {
|
154 |
display: inline-block;
|
210 |
margin-top: 0;
|
211 |
margin-right: 2px;
|
212 |
}
|
213 |
+
p.mtphr-dnt-side-label {
|
214 |
+
font-weight: bold;
|
215 |
+
margin-top: .5em;
|
216 |
+
}
|
217 |
+
|
218 |
+
|
219 |
+
/* --------------------------------------------------------- */
|
220 |
+
/* !Instruction Info */
|
221 |
+
/* --------------------------------------------------------- */
|
222 |
+
|
223 |
+
.ditty_news_ticker_page_mtphr_dnt_settings .form-table table.mtphr-dnt-instructions {
|
224 |
+
width: 100%;
|
225 |
+
border-spacing: 0;
|
226 |
+
}
|
227 |
+
.ditty_news_ticker_page_mtphr_dnt_settings .form-table table tr.mtphr-dnt-instruction:hover td {
|
228 |
+
background: #f7f7f7;
|
229 |
+
}
|
230 |
+
.ditty_news_ticker_page_mtphr_dnt_settings .form-table table td.mtphr-dnt-instruction-label {
|
231 |
+
text-align: center;
|
232 |
+
line-height: 24px;
|
233 |
+
padding-right: 8px;
|
234 |
+
padding: 8px 10px 10px;
|
235 |
+
}
|
236 |
+
.ditty_news_ticker_page_mtphr_dnt_settings .form-table table td.mtphr-dnt-instruction-info {
|
237 |
+
line-height: 24px;
|
238 |
+
padding: 8px 10px 10px 0;
|
239 |
+
}
|
240 |
+
.mtphr-dnt-instruction-number {
|
241 |
+
display: inline-block;
|
242 |
+
font-size: 14px;
|
243 |
+
font-weight: bold;
|
244 |
+
line-height: 14px;
|
245 |
+
color: #222;
|
246 |
+
margin: 0;
|
247 |
+
}
|
248 |
+
.mtphr-dnt-instruction-info-wrapper {
|
249 |
+
border-left: 1px solid #dfdfdf;
|
250 |
+
padding-left: 12px;
|
251 |
+
}
|
252 |
+
.mtphr-dnt-instruction-info pre {
|
253 |
+
margin: 0;
|
254 |
+
}
|
255 |
|
256 |
|
257 |
/* --------------------------------------------------------- */
|
259 |
/* --------------------------------------------------------- */
|
260 |
|
261 |
#ditty-news-ticker-settings-select {
|
262 |
+
margin: 0 -5px 10px;
|
263 |
+
}
|
264 |
+
#ditty-news-ticker-settings-select table {
|
265 |
width: 100%;
|
266 |
+
border-spacing: 5px;
|
|
|
267 |
}
|
268 |
#ditty-news-ticker-settings-select td {
|
269 |
vertical-align: top;
|
270 |
+
background: #FFF;
|
271 |
+
border: 1px solid #dfdfdf;
|
272 |
}
|
273 |
#ditty-news-ticker-settings-select h2 {
|
274 |
margin: 0;
|
276 |
#ditty-news-ticker-settings-select p {
|
277 |
margin: 0;
|
278 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
#ditty-news-ticker-type-select > .wrapper,
|
280 |
#ditty-news-ticker-mode-select > .wrapper {
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
padding: 10px;
|
282 |
}
|
283 |
+
#ditty-news-ticker-type-select h2 a {
|
284 |
+
font-size: 18px;
|
285 |
+
line-height: 18px;
|
|
|
|
|
286 |
}
|
287 |
#ditty-news-ticker-settings-select .mtphr-dnt-metabox-toggle {
|
288 |
padding: 10px 0 0;
|
292 |
}
|
293 |
|
294 |
|
295 |
+
/* --------------------------------------------------------- */
|
296 |
+
/* !Code copy - 1.4.0 */
|
297 |
+
/* --------------------------------------------------------- */
|
298 |
+
|
299 |
+
#ditty-news-ticker-code-copy {
|
300 |
+
margin: 10px -5px -5px;
|
301 |
+
}
|
302 |
+
#ditty-news-ticker-code-copy table {
|
303 |
+
width: 100%;
|
304 |
+
border-spacing: 5px;
|
305 |
+
}
|
306 |
+
#ditty-news-ticker-code-copy td {
|
307 |
+
vertical-align: top;
|
308 |
+
background: #f5f5f5;
|
309 |
+
border: 1px solid #dfdfdf;
|
310 |
+
}
|
311 |
+
#ditty-news-ticker-code-copy h3 {
|
312 |
+
padding: 0;
|
313 |
+
margin-bottom: 0;
|
314 |
+
}
|
315 |
+
#ditty-news-ticker-code-copy p {
|
316 |
+
margin: 0 0 8px;
|
317 |
+
}
|
318 |
+
#ditty-news-ticker-shortcode-copy > .wrapper,
|
319 |
+
#ditty-news-ticker-function-copy > .wrapper {
|
320 |
+
padding: 10px;
|
321 |
+
}
|
322 |
+
#ditty-news-ticker-code-copy pre {
|
323 |
+
margin: 0 0 5px 0;
|
324 |
+
padding: 10px;
|
325 |
+
background: #FFF;
|
326 |
+
border: 1px solid #EEE;
|
327 |
+
white-space: normal;
|
328 |
+
word-break: break-all;
|
329 |
+
}
|
330 |
+
#ditty-news-ticker-code-copy pre p {
|
331 |
+
margin-bottom: 0;
|
332 |
+
}
|
333 |
+
|
334 |
+
|
335 |
/* --------------------------------------------------------- */
|
336 |
/* !List elements */
|
337 |
/* --------------------------------------------------------- */
|
358 |
padding-right: 0;
|
359 |
}
|
360 |
.mtphr-dnt-list-handle span,
|
361 |
+
.mtphr-dnt-list-handle a,
|
362 |
.mtphr-dnt-list-add a,
|
363 |
.mtphr-dnt-list-delete a {
|
364 |
+
font-family: "ditty-news-ticker" !important;
|
365 |
+
font-style: normal !important;
|
366 |
+
font-weight: normal !important;
|
367 |
+
font-variant: normal !important;
|
368 |
+
text-transform: none !important;
|
369 |
+
speak: none;
|
370 |
+
-webkit-font-smoothing: antialiased;
|
371 |
+
-moz-osx-font-smoothing: grayscale;
|
372 |
+
|
373 |
display: block;
|
|
|
374 |
width: 16px;
|
375 |
height: 16px;
|
376 |
+
font-size: 18px;
|
377 |
+
line-height: 16px;
|
378 |
+
text-align: center;
|
379 |
+
color: #444;
|
380 |
+
text-decoration: none;
|
381 |
}
|
382 |
.mtphr-dnt-list-handle span {
|
383 |
+
font-size: 16px;
|
384 |
+
}
|
385 |
+
.mtphr-dnt-list-handle span:before {
|
386 |
+
content: "b";
|
387 |
+
}
|
388 |
+
.mtphr-dnt-list-handle span:hover {
|
389 |
+
color: #1e8cbe;
|
390 |
+
cursor: ns-resize;
|
391 |
+
}
|
392 |
+
.mtphr-dnt-list-add a:before {
|
393 |
+
content: "c";
|
394 |
+
}
|
395 |
+
.mtphr-dnt-list-add a:hover {
|
396 |
+
color: #00a651;
|
397 |
+
}
|
398 |
+
.mtphr-dnt-list-delete a:before {
|
399 |
+
content: "d";
|
400 |
+
}
|
401 |
+
.mtphr-dnt-list-delete a:hover {
|
402 |
+
color: #ed1c24;
|
403 |
+
}
|
404 |
+
|
405 |
+
|
406 |
+
.mtphr-dnt-list-item input[type="text"] {
|
407 |
width: 100%;
|
408 |
}
|
409 |
.mtphr-dnt-add-spinner {
|
412 |
}
|
413 |
|
414 |
|
415 |
+
/* --------------------------------------------------------- */
|
416 |
+
/* !Default list */
|
417 |
+
/* --------------------------------------------------------- */
|
418 |
+
|
419 |
+
.mtphr-dnt-default-list td {
|
420 |
+
vertical-align: top;
|
421 |
+
}
|
422 |
+
.mtphr-dnt-default-target,
|
423 |
+
.mtphr-dnt-default-nofollow {
|
424 |
+
width: 1px;
|
425 |
+
}
|
426 |
+
|
427 |
+
|
428 |
/* --------------------------------------------------------- */
|
429 |
/* !Mixed list */
|
430 |
/* --------------------------------------------------------- */
|
439 |
margin: 0;
|
440 |
}
|
441 |
|
442 |
+
|
443 |
+
/* --------------------------------------------------------- */
|
444 |
+
/* !CodeMirror */
|
445 |
+
/* --------------------------------------------------------- */
|
446 |
+
|
447 |
+
.mtphr-dnt-codemirror {
|
448 |
+
border: 1px solid #dfdfdf;
|
449 |
+
overflow: hidden;
|
450 |
+
}
|
451 |
+
|
assets/css/style.css
CHANGED
@@ -34,6 +34,43 @@
|
|
34 |
white-space: nowrap;
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/* Directional nav
|
38 |
------------------------------------------------------------ */
|
39 |
.mtphr-dnt-nav {
|
@@ -45,6 +82,9 @@
|
|
45 |
background: url(../images/navarrows.png) no-repeat;
|
46 |
background-size: 76px 38px;
|
47 |
}
|
|
|
|
|
|
|
48 |
.mtphr-dnt-nav:focus {
|
49 |
outline: none;
|
50 |
}
|
@@ -84,6 +124,9 @@
|
|
84 |
margin: 0 2px;
|
85 |
text-indent: -9999px;
|
86 |
}
|
|
|
|
|
|
|
87 |
.mtphr-dnt-control-button.active {
|
88 |
background-position: 0 0;
|
89 |
}
|
@@ -91,6 +134,31 @@
|
|
91 |
outline: none;
|
92 |
}
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
/* Add clearfix
|
95 |
------------------------------------------------------------ */
|
96 |
|
34 |
white-space: nowrap;
|
35 |
}
|
36 |
|
37 |
+
/* --------------------------------------------------------- */
|
38 |
+
/* !Spinner */
|
39 |
+
/* --------------------------------------------------------- */
|
40 |
+
|
41 |
+
.mtphr-dnt-icon-spinner {
|
42 |
+
position: absolute;
|
43 |
+
left: 50%;
|
44 |
+
top: 50%;
|
45 |
+
width: 30px;
|
46 |
+
height: 30px;
|
47 |
+
font-size: 30px;
|
48 |
+
color: #FFF;
|
49 |
+
margin: -15px 0 0 -15px;
|
50 |
+
|
51 |
+
-webkit-animation: mtphr-dnt-spinner-rotation .8s infinite linear;
|
52 |
+
-moz-animation: mtphr-dnt-spinner-rotation .8s infinite linear;
|
53 |
+
-o-animation: mtphr-dnt-spinner-rotation .8s infinite linear;
|
54 |
+
animation: mtphr-dnt-spinner-rotation .8s infinite linear;
|
55 |
+
}
|
56 |
+
@-webkit-keyframes mtphr-dnt-spinner-rotation {
|
57 |
+
from {-webkit-transform: rotate(0deg);}
|
58 |
+
to {-webkit-transform: rotate(359deg);}
|
59 |
+
}
|
60 |
+
@-moz-keyframes mtphr-dnt-spinner-rotation {
|
61 |
+
from {-moz-transform: rotate(0deg);}
|
62 |
+
to {-moz-transform: rotate(359deg);}
|
63 |
+
}
|
64 |
+
@-o-keyframes mtphr-dnt-spinner-rotation {
|
65 |
+
from {-o-transform: rotate(0deg);}
|
66 |
+
to {-o-transform: rotate(359deg);}
|
67 |
+
}
|
68 |
+
@keyframes mtphr-dnt-spinner-rotation {
|
69 |
+
from {transform: rotate(0deg);}
|
70 |
+
to {transform: rotate(359deg);}
|
71 |
+
}
|
72 |
+
|
73 |
+
|
74 |
/* Directional nav
|
75 |
------------------------------------------------------------ */
|
76 |
.mtphr-dnt-nav {
|
82 |
background: url(../images/navarrows.png) no-repeat;
|
83 |
background-size: 76px 38px;
|
84 |
}
|
85 |
+
.mtphr-dnt-nav:hover {
|
86 |
+
text-decoration: none !important;
|
87 |
+
}
|
88 |
.mtphr-dnt-nav:focus {
|
89 |
outline: none;
|
90 |
}
|
124 |
margin: 0 2px;
|
125 |
text-indent: -9999px;
|
126 |
}
|
127 |
+
.mtphr-dnt-control-button:hover {
|
128 |
+
text-decoration: none !important;
|
129 |
+
}
|
130 |
.mtphr-dnt-control-button.active {
|
131 |
background-position: 0 0;
|
132 |
}
|
134 |
outline: none;
|
135 |
}
|
136 |
|
137 |
+
/* --------------------------------------------------------- */
|
138 |
+
/* !Paging */
|
139 |
+
/* --------------------------------------------------------- */
|
140 |
+
|
141 |
+
.mtphr-dnt-tick-paging {
|
142 |
+
text-align: center;
|
143 |
+
list-style: none;
|
144 |
+
}
|
145 |
+
.mtphr-dnt-tick-paging a,
|
146 |
+
.mtphr-dnt-tick-paging span {
|
147 |
+
margin: 0 4px;
|
148 |
+
}
|
149 |
+
|
150 |
+
/* --------------------------------------------------------- */
|
151 |
+
/* !Grid */
|
152 |
+
/* --------------------------------------------------------- */
|
153 |
+
|
154 |
+
.mtphr-dnt-grid {
|
155 |
+
width: 100%;
|
156 |
+
border-spacing: 0;
|
157 |
+
}
|
158 |
+
.mtphr-dnt-grid td {
|
159 |
+
border: none;
|
160 |
+
}
|
161 |
+
|
162 |
/* Add clearfix
|
163 |
------------------------------------------------------------ */
|
164 |
|
assets/fontastic/fonts/ditty-news-ticker.eot
CHANGED
Binary file
|
assets/fontastic/fonts/ditty-news-ticker.svg
CHANGED
@@ -8,4 +8,8 @@
|
|
8 |
<missing-glyph horiz-adv-x="512" />
|
9 |
|
10 |
<glyph unicode="a" d="M325 512l-138 0c-103 0-187-86-187-192c0-97 70-176 160-190l0-130l0 0l128 128l37 0c103 0 187 86 187 192c0 106-84 192-187 192z m-197-240c-26 0-48 22-48 48c0 26 22 48 48 48c26 0 48-22 48-48c0-26-22-48-48-48z m128 0c-26 0-48 22-48 48c0 26 22 48 48 48c26 0 48-22 48-48c0-26-22-48-48-48z m128 0c-26 0-48 22-48 48c0 26 22 48 48 48c26 0 48-22 48-48c0-26-22-48-48-48z"/>
|
|
|
|
|
|
|
|
|
11 |
</font></defs></svg>
|
8 |
<missing-glyph horiz-adv-x="512" />
|
9 |
|
10 |
<glyph unicode="a" d="M325 512l-138 0c-103 0-187-86-187-192c0-97 70-176 160-190l0-130l0 0l128 128l37 0c103 0 187 86 187 192c0 106-84 192-187 192z m-197-240c-26 0-48 22-48 48c0 26 22 48 48 48c26 0 48-22 48-48c0-26-22-48-48-48z m128 0c-26 0-48 22-48 48c0 26 22 48 48 48c26 0 48-22 48-48c0-26-22-48-48-48z m128 0c-26 0-48 22-48 48c0 26 22 48 48 48c26 0 48-22 48-48c0-26-22-48-48-48z"/>
|
11 |
+
<glyph unicode="b" d="M288 352l64 0l-112 128l-112-128l64 0l0-192l-64 0l112-128l112 128l-64 0z"/>
|
12 |
+
<glyph unicode="c" d="M240 416c-97 0-176-79-176-176c0-97 79-176 176-176c97 0 176 79 176 176c0 97-79 176-176 176z m112-208l-80 0l0-80l-64 0l0 80l-80 0l0 64l80 0l0 80l64 0l0-80l80 0z"/>
|
13 |
+
<glyph unicode="d" d="M240 416c-97 0-176-79-176-176c0-97 79-176 176-176c97 0 176 79 176 176c0 97-79 176-176 176z m112-208l-224 0l0 64l224 0z"/>
|
14 |
+
<glyph unicode="e" d="M75 75c-48 48-75 113-75 181c0 141 115 256 256 256l32-32l-32-32c-106 0-192-86-192-192c0-51 20-100 56-136l-39-5z m181-75l-32 32l32 32c106 0 192 86 192 192c0 51-20 100-56 136l39 5l6 40c48-48 75-113 75-181c0-141-115-256-256-256z"/>
|
15 |
</font></defs></svg>
|
assets/fontastic/fonts/ditty-news-ticker.ttf
CHANGED
Binary file
|
assets/fontastic/fonts/ditty-news-ticker.woff
CHANGED
Binary file
|
assets/fontastic/icons-reference.html
CHANGED
@@ -49,6 +49,22 @@ h2{font-size:18px;padding:0 0 21px 5px;margin:45px 0 0 0;text-transform:uppercas
|
|
49 |
<div data-icon="a" class="icon"></div>
|
50 |
<input type="text" readonly="readonly" value="a">
|
51 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
</ul>
|
53 |
<h2>CSS mapping</h2>
|
54 |
<ul class="glyphs css-mapping">
|
@@ -56,6 +72,22 @@ h2{font-size:18px;padding:0 0 21px 5px;margin:45px 0 0 0;text-transform:uppercas
|
|
56 |
<div class="icon mtphr-dnt-icon-ticker"></div>
|
57 |
<input type="text" readonly="readonly" value="ticker">
|
58 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
</ul>
|
60 |
</div><script type="text/javascript">
|
61 |
(function() {
|
49 |
<div data-icon="a" class="icon"></div>
|
50 |
<input type="text" readonly="readonly" value="a">
|
51 |
</li>
|
52 |
+
<li>
|
53 |
+
<div data-icon="b" class="icon"></div>
|
54 |
+
<input type="text" readonly="readonly" value="b">
|
55 |
+
</li>
|
56 |
+
<li>
|
57 |
+
<div data-icon="c" class="icon"></div>
|
58 |
+
<input type="text" readonly="readonly" value="c">
|
59 |
+
</li>
|
60 |
+
<li>
|
61 |
+
<div data-icon="d" class="icon"></div>
|
62 |
+
<input type="text" readonly="readonly" value="d">
|
63 |
+
</li>
|
64 |
+
<li>
|
65 |
+
<div data-icon="e" class="icon"></div>
|
66 |
+
<input type="text" readonly="readonly" value="e">
|
67 |
+
</li>
|
68 |
</ul>
|
69 |
<h2>CSS mapping</h2>
|
70 |
<ul class="glyphs css-mapping">
|
72 |
<div class="icon mtphr-dnt-icon-ticker"></div>
|
73 |
<input type="text" readonly="readonly" value="ticker">
|
74 |
</li>
|
75 |
+
<li>
|
76 |
+
<div class="icon mtphr-dnt-icon-move"></div>
|
77 |
+
<input type="text" readonly="readonly" value="move">
|
78 |
+
</li>
|
79 |
+
<li>
|
80 |
+
<div class="icon mtphr-dnt-icon-add"></div>
|
81 |
+
<input type="text" readonly="readonly" value="add">
|
82 |
+
</li>
|
83 |
+
<li>
|
84 |
+
<div class="icon mtphr-dnt-icon-delete"></div>
|
85 |
+
<input type="text" readonly="readonly" value="delete">
|
86 |
+
</li>
|
87 |
+
<li>
|
88 |
+
<div class="icon mtphr-dnt-icon-spinner"></div>
|
89 |
+
<input type="text" readonly="readonly" value="spinner">
|
90 |
+
</li>
|
91 |
</ul>
|
92 |
</div><script type="text/javascript">
|
93 |
(function() {
|
assets/fontastic/styles.css
CHANGED
@@ -41,3 +41,15 @@
|
|
41 |
.mtphr-dnt-icon-ticker:before {
|
42 |
content: "a";
|
43 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
.mtphr-dnt-icon-ticker:before {
|
42 |
content: "a";
|
43 |
}
|
44 |
+
.mtphr-dnt-icon-move:before {
|
45 |
+
content: "b";
|
46 |
+
}
|
47 |
+
.mtphr-dnt-icon-add:before {
|
48 |
+
content: "c";
|
49 |
+
}
|
50 |
+
.mtphr-dnt-icon-delete:before {
|
51 |
+
content: "d";
|
52 |
+
}
|
53 |
+
.mtphr-dnt-icon-spinner:before {
|
54 |
+
content: "e";
|
55 |
+
}
|
assets/js/ditty-news-ticker.js
CHANGED
@@ -570,6 +570,7 @@
|
|
570 |
|
571 |
// Trigger the before change callback
|
572 |
settings.before_change.call( this, $ticker );
|
|
|
573 |
|
574 |
// Set the running variable
|
575 |
vars.running = 1;
|
@@ -587,6 +588,7 @@
|
|
587 |
after_change_timeout = setTimeout( function() {
|
588 |
|
589 |
settings.after_change.call( this, $ticker );
|
|
|
590 |
|
591 |
// Reset the rotator type & variables
|
592 |
rotate_adjustment = settings.rotate_type;
|
@@ -1195,13 +1197,29 @@
|
|
1195 |
}
|
1196 |
}
|
1197 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1198 |
|
1199 |
|
1200 |
|
1201 |
|
1202 |
// Trigger the afterLoad callback
|
1203 |
settings.after_load.call(this, $ticker);
|
1204 |
-
|
1205 |
});
|
1206 |
}
|
1207 |
};
|
570 |
|
571 |
// Trigger the before change callback
|
572 |
settings.before_change.call( this, $ticker );
|
573 |
+
$('body').trigger('mtphr_dnt_before_change', [this, vars]);
|
574 |
|
575 |
// Set the running variable
|
576 |
vars.running = 1;
|
588 |
after_change_timeout = setTimeout( function() {
|
589 |
|
590 |
settings.after_change.call( this, $ticker );
|
591 |
+
$('body').trigger('mtphr_dnt_after_change', [this, vars]);
|
592 |
|
593 |
// Reset the rotator type & variables
|
594 |
rotate_adjustment = settings.rotate_type;
|
1197 |
}
|
1198 |
}
|
1199 |
});
|
1200 |
+
|
1201 |
+
|
1202 |
+
/* --------------------------------------------------------- */
|
1203 |
+
/* !Listen for resize event from other plugins - 1.4.0 */
|
1204 |
+
/* --------------------------------------------------------- */
|
1205 |
+
|
1206 |
+
$('body').on('mtphr_dnt_resize', function( e, id ) {
|
1207 |
+
|
1208 |
+
if( id && (id.indexOf(settings.id) >= 0) ) {
|
1209 |
+
if( settings.type == 'scroll' ) {
|
1210 |
+
mtphr_dnt_scroll_resize_ticks();
|
1211 |
+
} else if( settings.type == 'rotate' ) {
|
1212 |
+
mtphr_dnt_rotator_resize_ticks();
|
1213 |
+
}
|
1214 |
+
}
|
1215 |
+
});
|
1216 |
|
1217 |
|
1218 |
|
1219 |
|
1220 |
// Trigger the afterLoad callback
|
1221 |
settings.after_load.call(this, $ticker);
|
1222 |
+
$('body').trigger('mtphr_dnt_after_load', [this, vars]);
|
1223 |
});
|
1224 |
}
|
1225 |
};
|
assets/js/script-admin.js
CHANGED
@@ -1,5 +1,60 @@
|
|
1 |
jQuery( document ).ready( function($) {
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
/* --------------------------------------------------------- */
|
5 |
/* !Metabox toggle - 1.3.3 */
|
@@ -69,10 +124,92 @@ jQuery( document ).ready( function($) {
|
|
69 |
$(this).addClass('button-primary');
|
70 |
});
|
71 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
|
74 |
/* --------------------------------------------------------- */
|
75 |
-
/* !Mixed tick list */
|
76 |
/* --------------------------------------------------------- */
|
77 |
|
78 |
if( $('.mtphr-dnt-mixed-list').length > 0 ) {
|
@@ -121,7 +258,7 @@ jQuery( document ).ready( function($) {
|
|
121 |
});
|
122 |
});
|
123 |
|
124 |
-
// Add
|
125 |
$('#mtphr-dnt-mixed-add-tick').click( function(e) {
|
126 |
e.preventDefault();
|
127 |
|
@@ -135,7 +272,7 @@ jQuery( document ).ready( function($) {
|
|
135 |
action: 'mtphr_dnt_mixed_list_ajax',
|
136 |
security: ditty_news_ticker_vars.security
|
137 |
};
|
138 |
-
|
139 |
|
140 |
// Add the audio and adjust the toggles
|
141 |
$container.append( response );
|
1 |
jQuery( document ).ready( function($) {
|
2 |
|
3 |
+
|
4 |
+
/* --------------------------------------------------------- */
|
5 |
+
/* !Initiate the CodeMirror fields - 1.4.0 */
|
6 |
+
/* --------------------------------------------------------- */
|
7 |
+
|
8 |
+
$('.mtphr-dnt-codemirror-css').each( function(i) {
|
9 |
+
|
10 |
+
var $textarea = $(this).children('textarea');
|
11 |
+
var myCodeMirror = CodeMirror.fromTextArea($textarea[0], {
|
12 |
+
'mode' : 'css',
|
13 |
+
'lineNumbers' : true,
|
14 |
+
'lineWrapping' : true
|
15 |
+
});
|
16 |
+
myCodeMirror.setSize( false, 140 );
|
17 |
+
});
|
18 |
+
|
19 |
+
$('.mtphr-dnt-codemirror-js').each( function(i) {
|
20 |
+
|
21 |
+
var $textarea = $(this).children('textarea');
|
22 |
+
var myCodeMirror = CodeMirror.fromTextArea($textarea[0], {
|
23 |
+
'mode' : 'htmlmixed',
|
24 |
+
'lineNumbers' : true,
|
25 |
+
'lineWrapping' : true
|
26 |
+
});
|
27 |
+
myCodeMirror.setSize( false, 140 );
|
28 |
+
});
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
/* --------------------------------------------------------- */
|
33 |
+
/* !Code select - 1.4.0 */
|
34 |
+
/* --------------------------------------------------------- */
|
35 |
+
|
36 |
+
$('.mtphr-dnt-code-select').click( function(e) {
|
37 |
+
e.preventDefault();
|
38 |
+
|
39 |
+
var $pre = $(this).siblings('pre');
|
40 |
+
var refNode = $pre[0];
|
41 |
+
if ( $.browser.msie ) {
|
42 |
+
var range = document.body.createTextRange();
|
43 |
+
range.moveToElementText( refNode );
|
44 |
+
range.select();
|
45 |
+
} else if ( $.browser.mozilla || $.browser.opera ) {
|
46 |
+
var selection = window.getSelection();
|
47 |
+
var range = document.createRange();
|
48 |
+
range.selectNodeContents( refNode );
|
49 |
+
selection.removeAllRanges();
|
50 |
+
selection.addRange( range );
|
51 |
+
} else if ( $.browser.safari || $.browser.chrome ) {
|
52 |
+
var selection = window.getSelection();
|
53 |
+
selection.setBaseAndExtent( refNode, 0, refNode, 1 );
|
54 |
+
}
|
55 |
+
});
|
56 |
+
|
57 |
+
|
58 |
|
59 |
/* --------------------------------------------------------- */
|
60 |
/* !Metabox toggle - 1.3.3 */
|
124 |
$(this).addClass('button-primary');
|
125 |
});
|
126 |
});
|
127 |
+
|
128 |
+
|
129 |
+
|
130 |
+
/* --------------------------------------------------------- */
|
131 |
+
/* !Default tick list - 1.4.0 */
|
132 |
+
/* --------------------------------------------------------- */
|
133 |
+
|
134 |
+
if( $('.mtphr-dnt-default-list').length > 0 ) {
|
135 |
+
|
136 |
+
function mtphr_dnt_default_handle_toggle( $table ) {
|
137 |
+
if( $table.find('.mtphr-dnt-list-item').length > 1 ) {
|
138 |
+
$table.find('.mtphr-dnt-list-handle').show();
|
139 |
+
} else {
|
140 |
+
$table.find('.mtphr-dnt-list-handle').hide();
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
function mtphr_dnt_default_set_order( $table ) {
|
145 |
+
|
146 |
+
$table.find('.mtphr-dnt-list-item').each( function(index) {
|
147 |
+
$(this).find('textarea, input, select').each( function() {
|
148 |
+
if( $(this).hasClass('wp-editor-area') ) {
|
149 |
+
$(this).attr('name', '_mtphr_dnt_ticks['+index+'][tick]');
|
150 |
+
} else {
|
151 |
+
$(this).attr('name', '_mtphr_dnt_ticks['+index+']['+$(this).attr('key')+']');
|
152 |
+
}
|
153 |
+
});
|
154 |
+
});
|
155 |
+
|
156 |
+
mtphr_dnt_default_handle_toggle( $table );
|
157 |
+
}
|
158 |
+
|
159 |
+
$('.mtphr-dnt-default-list').sortable( {
|
160 |
+
handle: '.mtphr-dnt-list-handle',
|
161 |
+
items: '.mtphr-dnt-list-item',
|
162 |
+
axis: 'y',
|
163 |
+
helper: function(e, tr) {
|
164 |
+
var $originals = tr.children();
|
165 |
+
var $helper = tr.clone();
|
166 |
+
$helper.children().each(function(index) {
|
167 |
+
$(this).width($originals.eq(index).width());
|
168 |
+
$(this).height($originals.eq(index).height());
|
169 |
+
});
|
170 |
+
return $helper;
|
171 |
+
},
|
172 |
+
});
|
173 |
+
|
174 |
+
// Delete list item
|
175 |
+
$('.mtphr-dnt-default-list').find('.mtphr-dnt-list-delete').live( 'click', function(e) {
|
176 |
+
e.preventDefault();
|
177 |
+
|
178 |
+
// Fade out the item
|
179 |
+
$(this).parents('.mtphr-dnt-list-item').fadeOut( function() {
|
180 |
+
$(this).remove();
|
181 |
+
});
|
182 |
+
});
|
183 |
+
|
184 |
+
// Add new row
|
185 |
+
$('.mtphr-dnt-default-list').find('.mtphr-dnt-list-add').live( 'click', function(e) {
|
186 |
+
e.preventDefault();
|
187 |
+
|
188 |
+
// Save the container
|
189 |
+
var $table = $(this).parents('.mtphr-dnt-default-list'),
|
190 |
+
$container = $(this).parents('.mtphr-dnt-list-item');
|
191 |
+
|
192 |
+
var data = {
|
193 |
+
action: 'mtphr_dnt_default_list_ajax',
|
194 |
+
security: ditty_news_ticker_vars.security
|
195 |
+
};
|
196 |
+
$.post( ajaxurl, data, function( response ) {
|
197 |
+
|
198 |
+
// Add the audio and adjust the toggles
|
199 |
+
$container.after( response );
|
200 |
+
mtphr_dnt_default_set_order( $table );
|
201 |
+
});
|
202 |
+
});
|
203 |
+
|
204 |
+
$('.mtphr-dnt-default-list').each( function(index) {
|
205 |
+
mtphr_dnt_default_set_order( $(this) );
|
206 |
+
});
|
207 |
+
}
|
208 |
+
|
209 |
|
210 |
|
211 |
/* --------------------------------------------------------- */
|
212 |
+
/* !Mixed tick list - 1.3.3 */
|
213 |
/* --------------------------------------------------------- */
|
214 |
|
215 |
if( $('.mtphr-dnt-mixed-list').length > 0 ) {
|
258 |
});
|
259 |
});
|
260 |
|
261 |
+
// Add new row
|
262 |
$('#mtphr-dnt-mixed-add-tick').click( function(e) {
|
263 |
e.preventDefault();
|
264 |
|
272 |
action: 'mtphr_dnt_mixed_list_ajax',
|
273 |
security: ditty_news_ticker_vars.security
|
274 |
};
|
275 |
+
$.post( ajaxurl, data, function( response ) {
|
276 |
|
277 |
// Add the audio and adjust the toggles
|
278 |
$container.append( response );
|
ditty-news-ticker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ditty News Ticker
|
4 |
Plugin URI: http://dittynewsticker.com/
|
5 |
Description: Ditty News Ticker is a multi-functional data display plugin
|
6 |
-
Version: 1.
|
7 |
Author: Metaphor Creations
|
8 |
Author URI: http://www.metaphorcreations.com
|
9 |
License: GPL2
|
@@ -26,28 +26,17 @@ along with this program; if not, write to the Free Software
|
|
26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
29 |
-
/*
|
30 |
-
Fugue Icons
|
31 |
-
|
32 |
-
Copyright (C) 2011 Yusuke Kamiyamane. All rights reserved.
|
33 |
-
The icons are licensed under a Creative Commons Attribution
|
34 |
-
3.0 license. <http://creativecommons.org/licenses/by/3.0/>
|
35 |
-
|
36 |
-
<http://p.yusukekamiyamane.com/>
|
37 |
-
*/
|
38 |
-
|
39 |
-
|
40 |
|
41 |
|
42 |
/**
|
43 |
* Define constants
|
44 |
*
|
45 |
-
* @since 1.
|
46 |
*/
|
47 |
if ( WP_DEBUG ) {
|
48 |
-
define ( 'MTPHR_DNT_VERSION', '1.
|
49 |
} else {
|
50 |
-
define ( 'MTPHR_DNT_VERSION', '1.
|
51 |
}
|
52 |
define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
|
53 |
define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
|
@@ -58,7 +47,7 @@ define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
|
|
58 |
/**
|
59 |
* Include files
|
60 |
*
|
61 |
-
* @since 1.
|
62 |
*/
|
63 |
|
64 |
if( is_admin() ) {
|
@@ -67,19 +56,21 @@ if( is_admin() ) {
|
|
67 |
require_once( MTPHR_DNT_DIR.'includes/metaboxer/metaboxer.php' );
|
68 |
require_once( MTPHR_DNT_DIR.'includes/metaboxer/metaboxer-class.php' );
|
69 |
require_once( MTPHR_DNT_DIR.'includes/meta-boxes.php' );
|
70 |
-
require_once( MTPHR_DNT_DIR.'includes/settings.php' );
|
71 |
//require_once( MTPHR_DNT_DIR.'includes/help.php' );
|
72 |
require_once( MTPHR_DNT_DIR.'includes/edit-columns.php' );
|
73 |
require_once( MTPHR_DNT_DIR.'includes/ajax.php' );
|
74 |
}
|
75 |
|
76 |
// Load the general functions
|
|
|
77 |
require_once( MTPHR_DNT_DIR.'includes/helpers.php' );
|
|
|
78 |
require_once( MTPHR_DNT_DIR.'includes/scripts.php' );
|
79 |
require_once( MTPHR_DNT_DIR.'includes/post-types.php' );
|
80 |
require_once( MTPHR_DNT_DIR.'includes/functions.php' );
|
81 |
require_once( MTPHR_DNT_DIR.'includes/shortcodes.php' );
|
82 |
require_once( MTPHR_DNT_DIR.'includes/widget.php' );
|
|
|
83 |
|
84 |
|
85 |
|
3 |
Plugin Name: Ditty News Ticker
|
4 |
Plugin URI: http://dittynewsticker.com/
|
5 |
Description: Ditty News Ticker is a multi-functional data display plugin
|
6 |
+
Version: 1.4.0
|
7 |
Author: Metaphor Creations
|
8 |
Author URI: http://www.metaphorcreations.com
|
9 |
License: GPL2
|
26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
|
31 |
/**
|
32 |
* Define constants
|
33 |
*
|
34 |
+
* @since 1.4.0
|
35 |
*/
|
36 |
if ( WP_DEBUG ) {
|
37 |
+
define ( 'MTPHR_DNT_VERSION', '1.4.0-'.time() );
|
38 |
} else {
|
39 |
+
define ( 'MTPHR_DNT_VERSION', '1.4.0' );
|
40 |
}
|
41 |
define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
|
42 |
define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
|
47 |
/**
|
48 |
* Include files
|
49 |
*
|
50 |
+
* @since 1.4.0
|
51 |
*/
|
52 |
|
53 |
if( is_admin() ) {
|
56 |
require_once( MTPHR_DNT_DIR.'includes/metaboxer/metaboxer.php' );
|
57 |
require_once( MTPHR_DNT_DIR.'includes/metaboxer/metaboxer-class.php' );
|
58 |
require_once( MTPHR_DNT_DIR.'includes/meta-boxes.php' );
|
|
|
59 |
//require_once( MTPHR_DNT_DIR.'includes/help.php' );
|
60 |
require_once( MTPHR_DNT_DIR.'includes/edit-columns.php' );
|
61 |
require_once( MTPHR_DNT_DIR.'includes/ajax.php' );
|
62 |
}
|
63 |
|
64 |
// Load the general functions
|
65 |
+
require_once( MTPHR_DNT_DIR.'includes/filters.php' );
|
66 |
require_once( MTPHR_DNT_DIR.'includes/helpers.php' );
|
67 |
+
require_once( MTPHR_DNT_DIR.'includes/display.php' );
|
68 |
require_once( MTPHR_DNT_DIR.'includes/scripts.php' );
|
69 |
require_once( MTPHR_DNT_DIR.'includes/post-types.php' );
|
70 |
require_once( MTPHR_DNT_DIR.'includes/functions.php' );
|
71 |
require_once( MTPHR_DNT_DIR.'includes/shortcodes.php' );
|
72 |
require_once( MTPHR_DNT_DIR.'includes/widget.php' );
|
73 |
+
require_once( MTPHR_DNT_DIR.'includes/settings.php' );
|
74 |
|
75 |
|
76 |
|
includes/ajax.php
CHANGED
@@ -1,7 +1,31 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
/* --------------------------------------------------------- */
|
4 |
-
/* !Display a mixed list item - 1.3.
|
5 |
/* --------------------------------------------------------- */
|
6 |
|
7 |
function mtphr_dnt_mixed_list_ajax() {
|
1 |
<?php
|
2 |
|
3 |
+
|
4 |
+
/* --------------------------------------------------------- */
|
5 |
+
/* !Display a default list item - 1.3.0 */
|
6 |
+
/* --------------------------------------------------------- */
|
7 |
+
|
8 |
+
function mtphr_dnt_default_list_ajax() {
|
9 |
+
|
10 |
+
// Get access to the database
|
11 |
+
global $wpdb;
|
12 |
+
|
13 |
+
// Check the nonce
|
14 |
+
check_ajax_referer( 'ditty-news-ticker', 'security' );
|
15 |
+
|
16 |
+
$settings = mtphr_dnt_general_settings();
|
17 |
+
|
18 |
+
// Display the field
|
19 |
+
mtphr_dnt_render_default_tick( $settings );
|
20 |
+
|
21 |
+
die(); // this is required to return a proper result
|
22 |
+
}
|
23 |
+
add_action( 'wp_ajax_mtphr_dnt_default_list_ajax', 'mtphr_dnt_default_list_ajax' );
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
/* --------------------------------------------------------- */
|
28 |
+
/* !Display a mixed list item - 1.3.3 */
|
29 |
/* --------------------------------------------------------- */
|
30 |
|
31 |
function mtphr_dnt_mixed_list_ajax() {
|
includes/display.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* --------------------------------------------------------- */
|
4 |
+
/* !Create a settings label - 1.4.0 */
|
5 |
+
/* --------------------------------------------------------- */
|
6 |
+
|
7 |
+
if( !function_exists('mtphr_dnt_settings_label') ) {
|
8 |
+
function mtphr_dnt_settings_label( $title, $description = '' ) {
|
9 |
+
|
10 |
+
$label = '<div class="mtphr-dnt-label-alt">';
|
11 |
+
$label .= '<label>'.$title.'</label>';
|
12 |
+
if( $description != '' ) {
|
13 |
+
$label .= '<small>'.$description.'</small>';
|
14 |
+
}
|
15 |
+
$label .= '</div>';
|
16 |
+
|
17 |
+
return $label;
|
18 |
+
}
|
19 |
+
}
|
includes/filters.php
ADDED
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
|
4 |
+
|
5 |
+
// Extract the metadata array into variables
|
6 |
+
extract( $meta_data );
|
7 |
+
|
8 |
+
if( isset($_mtphr_dnt_grid) && $_mtphr_dnt_grid ) {
|
9 |
+
|
10 |
+
$grid_ticks = array();
|
11 |
+
|
12 |
+
$total = count( $dnt_ticks );
|
13 |
+
$col_counter = 0;
|
14 |
+
$row_counter = 0;
|
15 |
+
|
16 |
+
$style = 'style="';
|
17 |
+
$style .= ( $_mtphr_dnt_grid_equal_width ) ? 'width:'.(100/$_mtphr_dnt_grid_cols).'%;' : '';
|
18 |
+
$style .= ( $_mtphr_dnt_grid_padding > 0 ) ? 'padding:'.$_mtphr_dnt_grid_padding.'px;' : '';
|
19 |
+
$style .= '"';
|
20 |
+
|
21 |
+
$data = '<table class="mtphr-dnt-grid">';
|
22 |
+
$data .= '<tr class="mtphr-dnt-grid-row mtphr-dnt-grid-row-'.($row_counter+1).'">';
|
23 |
+
|
24 |
+
if( is_array($dnt_ticks) ) {
|
25 |
+
foreach( $dnt_ticks as $i=>$tick ) {
|
26 |
+
|
27 |
+
// Get the type and tick
|
28 |
+
$type = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['type'] : $_mtphr_dnt_type;
|
29 |
+
$tick = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['tick'] : $tick;
|
30 |
+
|
31 |
+
$data .= '<td class="mtphr-dnt-grid-item mtphr-dnt-grid-item-'.($col_counter+1).' mtphr-dnt-grid-item-'.$type.'" '.$style.'>'.$tick.'</td>';
|
32 |
+
|
33 |
+
$col_counter++;
|
34 |
+
|
35 |
+
if( (($i+1)%$_mtphr_dnt_grid_cols == 0) && ($i < $total-1) ) {
|
36 |
+
|
37 |
+
$data .= '</tr>';
|
38 |
+
|
39 |
+
$row_counter++;
|
40 |
+
if( (($row_counter)%$_mtphr_dnt_grid_rows == 0) ) {
|
41 |
+
$data .= '</table>';
|
42 |
+
|
43 |
+
// Add to the tick array
|
44 |
+
$grid_ticks[] = ( $_mtphr_dnt_type == 'mixed' ) ? array( 'type'=>'mixed-grid', 'tick'=>$data ) : $data;
|
45 |
+
|
46 |
+
$data = '<table class="mtphr-dnt-grid">';
|
47 |
+
$row_counter = 0;
|
48 |
+
}
|
49 |
+
|
50 |
+
$data .= '<tr class="mtphr-dnt-grid-row mtphr-dnt-grid-row-'.($row_counter+1).'">';
|
51 |
+
$col_counter = 0;
|
52 |
+
}
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
// Fill any empty columns
|
57 |
+
$empty_cols = $_mtphr_dnt_grid_cols - $col_counter;
|
58 |
+
for( $i=0; $i<$empty_cols; $i++ ) {
|
59 |
+
$data .= '<td class="mtphr-dnt-grid-item mtphr-dnt-grid-item-'.($col_counter+1).'" '.$style.'></td>';
|
60 |
+
$col_counter++;
|
61 |
+
}
|
62 |
+
|
63 |
+
// Fill any emptry rows
|
64 |
+
if( $_mtphr_dnt_grid_empty_rows ) {
|
65 |
+
$empty_row = $_mtphr_dnt_grid_rows - ($row_counter+1);
|
66 |
+
for( $i=0; $i<$empty_row; $i++ ) {
|
67 |
+
$row_counter++;
|
68 |
+
$col_counter = 0;
|
69 |
+
$data .= '<tr class="mtphr-dnt-grid-row mtphr-dnt-grid-row-'.($row_counter+1).'">';
|
70 |
+
for( $e=0; $e<$_mtphr_dnt_grid_cols; $e++ ) {
|
71 |
+
$data .= '<td class="mtphr-dnt-grid-item mtphr-dnt-grid-item-'.($col_counter+1).'" '.$style.'></td>';
|
72 |
+
$col_counter++;
|
73 |
+
}
|
74 |
+
$data .= '</tr>';
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
+
$data .= '</tr>';
|
79 |
+
$data .= '</table>';
|
80 |
+
|
81 |
+
// Add to the tick array
|
82 |
+
$grid_ticks[] = ( $_mtphr_dnt_type == 'mixed' ) ? array( 'type'=>'mixed-grid', 'tick'=>$data ) : $data;
|
83 |
+
|
84 |
+
return $grid_ticks;
|
85 |
+
}
|
86 |
+
|
87 |
+
return $dnt_ticks;
|
88 |
+
}
|
89 |
+
add_filter( 'mtphr_dnt_tick_array_transform', 'mtphr_dnt_tick_grid', 10, 3 );
|
90 |
+
|
91 |
+
|
92 |
+
/* --------------------------------------------------------- */
|
93 |
+
/* !Add the control nav for rotating ticks - 1.4.0 */
|
94 |
+
/* --------------------------------------------------------- */
|
95 |
+
|
96 |
+
function mtphr_dnt_direction_nav( $id, $meta_data, $total ) {
|
97 |
+
|
98 |
+
// Extract the metadata array into variables
|
99 |
+
extract( $meta_data );
|
100 |
+
|
101 |
+
// Add the control nav
|
102 |
+
if( ($total > 1) && $_mtphr_dnt_mode == 'rotate' ) {
|
103 |
+
|
104 |
+
// Add the directional nav
|
105 |
+
if( isset($_mtphr_dnt_rotate_directional_nav) ) {
|
106 |
+
if( $_mtphr_dnt_rotate_directional_nav ) {
|
107 |
+
|
108 |
+
$hide = '';
|
109 |
+
if( isset($_mtphr_dnt_rotate_directional_nav_hide) && $_mtphr_dnt_rotate_directional_nav_hide ) {
|
110 |
+
$hide = ' mtphr-dnt-nav-hide';
|
111 |
+
}
|
112 |
+
echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-prev'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_prev', '' ).'</a>';
|
113 |
+
echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-next'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_next', '' ).'</a>';
|
114 |
+
}
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
add_action( 'mtphr_dnt_contents_after', 'mtphr_dnt_direction_nav', 10, 3 );
|
119 |
+
|
120 |
+
|
121 |
+
|
122 |
+
/* --------------------------------------------------------- */
|
123 |
+
/* !Add the control nav for rotating ticks - 1.4.0 */
|
124 |
+
/* --------------------------------------------------------- */
|
125 |
+
|
126 |
+
function mtphr_dnt_control_nav( $id, $meta_data, $total ) {
|
127 |
+
|
128 |
+
// Extract the metadata array into variables
|
129 |
+
extract( $meta_data );
|
130 |
+
|
131 |
+
// Add the control nav
|
132 |
+
if( ($total > 1) && $_mtphr_dnt_mode == 'rotate' ) {
|
133 |
+
if( isset($_mtphr_dnt_rotate_control_nav) && $_mtphr_dnt_rotate_control_nav ) {
|
134 |
+
|
135 |
+
echo '<div class="mtphr-dnt-control-links">';
|
136 |
+
for( $i=0; $i<$total; $i++ ) {
|
137 |
+
echo '<a class="mtphr-dnt-control mtphr-dnt-control-'.$_mtphr_dnt_rotate_control_nav_type.'" href="'.$i.'" rel="nofollow">'.apply_filters( 'mtphr_dnt_control_nav', intval($i+1) ).'</a>';
|
138 |
+
}
|
139 |
+
echo '</div>';
|
140 |
+
}
|
141 |
+
}
|
142 |
+
}
|
143 |
+
add_action( 'mtphr_dnt_after', 'mtphr_dnt_control_nav', 10, 3 );
|
144 |
+
|
145 |
+
|
146 |
+
|
147 |
+
/* --------------------------------------------------------- */
|
148 |
+
/* !Add the pagination for list ticks - 1.4.0 */
|
149 |
+
/* --------------------------------------------------------- */
|
150 |
+
|
151 |
+
function mtphr_dnt_pagination( $id, $meta_data, $total ) {
|
152 |
+
|
153 |
+
// Extract the metadata array into variables
|
154 |
+
extract( $meta_data );
|
155 |
+
|
156 |
+
if( $_mtphr_dnt_mode == 'list' && isset($_mtphr_dnt_list_tick_paging) && $_mtphr_dnt_list_tick_paging ) {
|
157 |
+
|
158 |
+
$spacing = 'margin-top:'.intval($_mtphr_dnt_list_tick_spacing).'px;';
|
159 |
+
$total_pages = ceil( $total/$_mtphr_dnt_list_tick_count );
|
160 |
+
$current_page = isset( $_GET['tickpage'] ) ? $_GET['tickpage'] : 1;
|
161 |
+
|
162 |
+
$big = 999999999;
|
163 |
+
$args = array(
|
164 |
+
'base' => str_replace( $big, '%#%', add_query_arg('tickpage', $big) ),
|
165 |
+
'format' => '?tickpage=%#%',
|
166 |
+
'total' => $total_pages,
|
167 |
+
'current' => $current_page,
|
168 |
+
'show_all' => false,
|
169 |
+
'end_size' => 1,
|
170 |
+
'mid_size' => 2,
|
171 |
+
'prev_next' => $_mtphr_dnt_list_tick_prev_next,
|
172 |
+
'prev_text' => $_mtphr_dnt_list_tick_prev_text,
|
173 |
+
'next_text' => $_mtphr_dnt_list_tick_next_text,
|
174 |
+
'type' => 'plain',
|
175 |
+
'add_args' => false,
|
176 |
+
'add_fragment' => ''
|
177 |
+
);
|
178 |
+
|
179 |
+
echo '<div class="mtphr-dnt-tick-paging" style="'.$spacing.'">';
|
180 |
+
echo paginate_links( apply_filters( 'mtphr_dnt_tick_paging_args', $args ) );
|
181 |
+
echo '</div>';
|
182 |
+
}
|
183 |
+
}
|
184 |
+
add_action( 'mtphr_dnt_after', 'mtphr_dnt_pagination', 10, 3 );
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
+
/* --------------------------------------------------------- */
|
189 |
+
/* !Add tickers to the global - 1.4.0 */
|
190 |
+
/* --------------------------------------------------------- */
|
191 |
+
|
192 |
+
function mtphr_dnt_add_to_global( $id, $meta_data ) {
|
193 |
+
|
194 |
+
// Extract the metadata array into variables
|
195 |
+
extract( $meta_data );
|
196 |
+
|
197 |
+
// Add to the global script variable
|
198 |
+
if( $_mtphr_dnt_mode == 'scroll' || $_mtphr_dnt_mode == 'rotate' ) {
|
199 |
+
|
200 |
+
global $mtphr_dnt_ticker_scripts;
|
201 |
+
|
202 |
+
$ticker = '#mtphr-dnt-'.$id;
|
203 |
+
|
204 |
+
// Add a unique id class, if there is one
|
205 |
+
if( isset($_mtphr_dnt_unique_id) ) {
|
206 |
+
if( $_mtphr_dnt_unique_id != '' ) {
|
207 |
+
$ticker = '#mtphr-dnt-'.$id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
$scroll_pause = 0; $scroll_init = 0;
|
212 |
+
if( isset($_mtphr_dnt_scroll_pause) ) {
|
213 |
+
$scroll_pause = $_mtphr_dnt_scroll_pause ? 1 : 0;
|
214 |
+
}
|
215 |
+
if( isset($_mtphr_dnt_scroll_init) ) {
|
216 |
+
$scroll_init = $_mtphr_dnt_scroll_init ? 1 : 0;
|
217 |
+
}
|
218 |
+
$rotate = 0; $rotate_pause = 0; $nav_autohide = 0; $nav_reverse = 0;
|
219 |
+
if( isset($_mtphr_dnt_auto_rotate) ) {
|
220 |
+
$rotate = $_mtphr_dnt_auto_rotate ? 1 : 0;
|
221 |
+
}
|
222 |
+
if( isset($_mtphr_dnt_rotate_pause) ) {
|
223 |
+
$rotate_pause = $_mtphr_dnt_rotate_pause ? 1 : 0;
|
224 |
+
}
|
225 |
+
if( isset($_mtphr_dnt_rotate_directional_nav_reverse) ) {
|
226 |
+
$nav_reverse = $_mtphr_dnt_rotate_directional_nav_reverse ? 1 : 0;
|
227 |
+
}
|
228 |
+
$offset = isset($_mtphr_dnt_offset) ? intval($_mtphr_dnt_offset) : 20;
|
229 |
+
$mtphr_dnt_ticker_scripts[] = array(
|
230 |
+
'ticker' => $ticker,
|
231 |
+
'id' => $id,
|
232 |
+
'type' => $_mtphr_dnt_mode,
|
233 |
+
'scroll_direction' => $_mtphr_dnt_scroll_direction,
|
234 |
+
'scroll_speed' => intval($_mtphr_dnt_scroll_speed),
|
235 |
+
'scroll_pause' => $scroll_pause,
|
236 |
+
'scroll_spacing' => intval($_mtphr_dnt_scroll_tick_spacing),
|
237 |
+
'scroll_init' => $scroll_init,
|
238 |
+
'rotate_type' => $_mtphr_dnt_rotate_type,
|
239 |
+
'auto_rotate' => $rotate,
|
240 |
+
'rotate_delay' => intval($_mtphr_dnt_rotate_delay),
|
241 |
+
'rotate_pause' => $rotate_pause,
|
242 |
+
'rotate_speed' => intval($_mtphr_dnt_rotate_speed),
|
243 |
+
'rotate_ease' => $_mtphr_dnt_rotate_ease,
|
244 |
+
'nav_reverse' => $nav_reverse,
|
245 |
+
'offset' => $offset
|
246 |
+
);
|
247 |
+
}
|
248 |
+
}
|
249 |
+
add_action( 'mtphr_dnt_after', 'mtphr_dnt_add_to_global', 10, 2 );
|
includes/functions.php
CHANGED
@@ -22,7 +22,7 @@ function ditty_news_ticker( $id='', $class='', $atts=false ) {
|
|
22 |
/**
|
23 |
* Return the ticker
|
24 |
*
|
25 |
-
* @since 1.
|
26 |
*/
|
27 |
function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
28 |
|
@@ -31,7 +31,7 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
|
31 |
if( $ticker && $ticker->post_status == 'publish' ) {
|
32 |
|
33 |
// Save the original $wp_query
|
34 |
-
global $wp_query;
|
35 |
$original_query = $wp_query;
|
36 |
$wp_query = null;
|
37 |
$wp_query = new WP_Query();
|
@@ -52,152 +52,134 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
|
52 |
|
53 |
// Extract the metadata array into variables
|
54 |
extract( $meta_data );
|
55 |
-
|
|
|
|
|
|
|
|
|
56 |
if( $_mtphr_dnt_type == 'mixed' ) {
|
57 |
$dnt_ticks = mtphr_dnt_mixed_ticks( $id, $meta_data );
|
58 |
} else {
|
59 |
$dnt_ticks = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
|
60 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
ob_start();
|
63 |
|
64 |
-
// Create the opening div
|
65 |
-
$tick_id = 'mtphr-dnt-'.$id;
|
66 |
// Add a unique id
|
67 |
-
|
68 |
-
|
69 |
$tick_id = 'mtphr-dnt-'.$id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
|
70 |
-
}
|
71 |
}
|
72 |
|
73 |
// Check for a set width
|
74 |
$ticker_width = '';
|
75 |
-
if( isset($_mtphr_dnt_ticker_width) ) {
|
76 |
-
|
77 |
-
$ticker_width = ' style="width:'.intval($_mtphr_dnt_ticker_width).'px"';
|
78 |
-
}
|
79 |
}
|
80 |
|
81 |
echo '<div'.$ticker_width.' id="'.$tick_id.'" '.mtphr_dnt_ticker_class( $id, $class, $meta_data ).'>';
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
if( isset($_mtphr_dnt_inline_title) ) {
|
90 |
-
if( $_mtphr_dnt_inline_title ) {
|
91 |
$inline_title = ' mtphr-dnt-inline-title';
|
92 |
}
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
do_action( 'mtphr_dnt_title_after', $id, $meta_data );
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
// Create and save element styles
|
102 |
-
$margin='';$padding='';$width='';$height='';$spacing='';
|
103 |
-
|
104 |
-
if( $_mtphr_dnt_mode == 'scroll' ) {
|
105 |
-
$padding = ( intval($_mtphr_dnt_scroll_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_scroll_padding).'px;padding-bottom:'.intval($_mtphr_dnt_scroll_padding).'px;' : '';
|
106 |
-
$margin = ( intval($_mtphr_dnt_scroll_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_scroll_margin).'px;margin-bottom:'.intval($_mtphr_dnt_scroll_margin).'px;' : '';
|
107 |
-
$width = ( intval($_mtphr_dnt_scroll_width) != 0 ) ? 'white-space:normal;width:'.intval($_mtphr_dnt_scroll_width).'px;' : '';
|
108 |
-
$height = ( intval($_mtphr_dnt_scroll_height) != 0 ) ? 'height:'.intval($_mtphr_dnt_scroll_height).'px;' : '';
|
109 |
-
} elseif( $_mtphr_dnt_mode == 'rotate' ) {
|
110 |
-
$padding = ( intval($_mtphr_dnt_rotate_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_rotate_padding).'px;padding-bottom:'.intval($_mtphr_dnt_rotate_padding).'px;' : '';
|
111 |
-
$margin = ( intval($_mtphr_dnt_rotate_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_rotate_margin).'px;margin-bottom:'.intval($_mtphr_dnt_rotate_margin).'px;' : '';
|
112 |
-
$height = ( intval($_mtphr_dnt_rotate_height) != 0 ) ? 'height:'.intval($_mtphr_dnt_rotate_height).'px;' : '';
|
113 |
-
} elseif( $_mtphr_dnt_mode == 'list' ) {
|
114 |
-
$padding = ( intval($_mtphr_dnt_list_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_list_padding).'px;padding-bottom:'.intval($_mtphr_dnt_list_padding).'px;' : '';
|
115 |
-
$margin = ( intval($_mtphr_dnt_list_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_list_margin).'px;margin-bottom:'.intval($_mtphr_dnt_list_margin).'px;' : '';
|
116 |
-
}
|
117 |
-
|
118 |
-
// Filter the variables
|
119 |
-
$padding = apply_filters( 'mtphr_dnt_tick_container_padding', $padding );
|
120 |
-
$margin = apply_filters( 'mtphr_dnt_tick_container_margin', $margin );
|
121 |
-
$width = apply_filters( 'mtphr_dnt_tick_width', $width );
|
122 |
-
$height = apply_filters( 'mtphr_dnt_tick_height', $height );
|
123 |
-
|
124 |
-
// Create the container style
|
125 |
-
$container_style = ( $padding != '' || $margin != '' ) ? ' style="'.$padding.$margin.'"' : '';
|
126 |
-
|
127 |
-
// Open the ticker container
|
128 |
-
do_action( 'mtphr_dnt_before', $id, $meta_data );
|
129 |
-
echo '<div class="mtphr-dnt-tick-container"'.$container_style.'>';
|
130 |
-
echo '<div class="mtphr-dnt-tick-contents">';
|
131 |
-
do_action( 'mtphr_dnt_top', $id, $meta_data );
|
132 |
-
|
133 |
-
// Print out the ticks
|
134 |
-
if( is_array($dnt_ticks) ) {
|
135 |
-
|
136 |
-
// Randomize the ticks
|
137 |
-
if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
|
138 |
-
shuffle( $dnt_ticks );
|
139 |
-
}
|
140 |
-
$total = count($dnt_ticks);
|
141 |
-
foreach( $dnt_ticks as $i => $tick ) {
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
echo '</div>';
|
161 |
-
do_action( '
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
// Close the ticker container
|
166 |
-
do_action( 'mtphr_dnt_bottom', $id, $meta_data );
|
167 |
-
echo '</div>';
|
168 |
-
// Add the directional nav
|
169 |
-
if( is_array($dnt_ticks) && $_mtphr_dnt_mode == 'rotate' ) {
|
170 |
-
if( isset($_mtphr_dnt_rotate_directional_nav) ) {
|
171 |
-
if( $_mtphr_dnt_rotate_directional_nav ) {
|
172 |
-
|
173 |
-
$hide = '';
|
174 |
-
if( isset($_mtphr_dnt_rotate_directional_nav_hide) ) {
|
175 |
-
$hide = $_mtphr_dnt_rotate_directional_nav_hide ? ' mtphr-dnt-nav-hide' : '';
|
176 |
-
}
|
177 |
-
echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-prev'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_prev', '' ).'</a>';
|
178 |
-
echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-next'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_next', '' ).'</a>';
|
179 |
-
}
|
180 |
-
}
|
181 |
-
}
|
182 |
echo '</div>';
|
183 |
-
do_action( 'mtphr_dnt_after', $id, $meta_data );
|
184 |
-
|
185 |
-
// Add the control nav
|
186 |
-
if( is_array($dnt_ticks) && $_mtphr_dnt_mode == 'rotate' ) {
|
187 |
-
if( isset($_mtphr_dnt_rotate_control_nav) ) {
|
188 |
-
if( $_mtphr_dnt_rotate_control_nav ) {
|
189 |
-
|
190 |
-
echo '<div class="mtphr-dnt-control-links">';
|
191 |
-
foreach( $dnt_ticks as $i => $tick ) {
|
192 |
-
echo '<a class="mtphr-dnt-control mtphr-dnt-control-'.$_mtphr_dnt_rotate_control_nav_type.'" href="'.$i.'" rel="nofollow">'.apply_filters( 'mtphr_dnt_control_nav', intval($i+1) ).'</a>';
|
193 |
-
}
|
194 |
-
echo '</div>';
|
195 |
-
}
|
196 |
-
}
|
197 |
-
}
|
198 |
-
|
199 |
-
// Close the ticker
|
200 |
-
echo '</div></div>';
|
201 |
|
202 |
// Restore the original $wp_query
|
203 |
$wp_query = null;
|
@@ -205,58 +187,6 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
|
205 |
wp_reset_postdata();
|
206 |
}
|
207 |
|
208 |
-
// Add to the global script variable
|
209 |
-
if( $_mtphr_dnt_mode == 'scroll' || $_mtphr_dnt_mode == 'rotate' ) {
|
210 |
-
|
211 |
-
global $mtphr_dnt_ticker_scripts;
|
212 |
-
|
213 |
-
$ticker = '#mtphr-dnt-'.$id;
|
214 |
-
|
215 |
-
// Add a unique id class, if there is one
|
216 |
-
if( isset($_mtphr_dnt_unique_id) ) {
|
217 |
-
if( $_mtphr_dnt_unique_id != '' ) {
|
218 |
-
$ticker = '#mtphr-dnt-'.$id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
|
219 |
-
}
|
220 |
-
}
|
221 |
-
|
222 |
-
$scroll_pause = 0; $scroll_init = 0;
|
223 |
-
if( isset($_mtphr_dnt_scroll_pause) ) {
|
224 |
-
$scroll_pause = $_mtphr_dnt_scroll_pause ? 1 : 0;
|
225 |
-
}
|
226 |
-
if( isset($_mtphr_dnt_scroll_init) ) {
|
227 |
-
$scroll_init = $_mtphr_dnt_scroll_init ? 1 : 0;
|
228 |
-
}
|
229 |
-
$rotate = 0; $rotate_pause = 0; $nav_autohide = 0; $nav_reverse = 0;
|
230 |
-
if( isset($_mtphr_dnt_auto_rotate) ) {
|
231 |
-
$rotate = $_mtphr_dnt_auto_rotate ? 1 : 0;
|
232 |
-
}
|
233 |
-
if( isset($_mtphr_dnt_rotate_pause) ) {
|
234 |
-
$rotate_pause = $_mtphr_dnt_rotate_pause ? 1 : 0;
|
235 |
-
}
|
236 |
-
if( isset($_mtphr_dnt_rotate_directional_nav_reverse) ) {
|
237 |
-
$nav_reverse = $_mtphr_dnt_rotate_directional_nav_reverse ? 1 : 0;
|
238 |
-
}
|
239 |
-
$offset = isset($_mtphr_dnt_offset) ? intval($_mtphr_dnt_offset) : 20;
|
240 |
-
$mtphr_dnt_ticker_scripts[] = array(
|
241 |
-
'ticker' => $ticker,
|
242 |
-
'id' => $id,
|
243 |
-
'type' => $_mtphr_dnt_mode,
|
244 |
-
'scroll_direction' => $_mtphr_dnt_scroll_direction,
|
245 |
-
'scroll_speed' => intval($_mtphr_dnt_scroll_speed),
|
246 |
-
'scroll_pause' => $scroll_pause,
|
247 |
-
'scroll_spacing' => intval($_mtphr_dnt_scroll_tick_spacing),
|
248 |
-
'scroll_init' => $scroll_init,
|
249 |
-
'rotate_type' => $_mtphr_dnt_rotate_type,
|
250 |
-
'auto_rotate' => $rotate,
|
251 |
-
'rotate_delay' => intval($_mtphr_dnt_rotate_delay),
|
252 |
-
'rotate_pause' => $rotate_pause,
|
253 |
-
'rotate_speed' => intval($_mtphr_dnt_rotate_speed),
|
254 |
-
'rotate_ease' => $_mtphr_dnt_rotate_ease,
|
255 |
-
'nav_reverse' => $nav_reverse,
|
256 |
-
'offset' => $offset
|
257 |
-
);
|
258 |
-
}
|
259 |
-
|
260 |
// Return the output
|
261 |
return ob_get_clean();
|
262 |
}
|
@@ -310,12 +240,14 @@ add_filter( 'mtphr_dnt_tick_array', 'mtphr_dnt_default_ticks', 10, 3 );
|
|
310 |
|
311 |
|
312 |
/* --------------------------------------------------------- */
|
313 |
-
/* !Create the mixed ticks - 1.
|
314 |
/* --------------------------------------------------------- */
|
315 |
|
316 |
if( !function_exists('mtphr_dnt_mixed_ticks') ) {
|
317 |
function mtphr_dnt_mixed_ticks( $id, $meta_data ) {
|
318 |
|
|
|
|
|
319 |
// Get all active ticker types
|
320 |
$types = mtphr_dnt_types_array();
|
321 |
|
@@ -331,6 +263,11 @@ function mtphr_dnt_mixed_ticks( $id, $meta_data ) {
|
|
331 |
|
332 |
// Make sure the tick type exists
|
333 |
if( array_key_exists( $tick['type'], $types ) && !array_key_exists( $tick['type'], $ticks_cache ) ) {
|
|
|
|
|
|
|
|
|
|
|
334 |
$meta_data['_mtphr_dnt_type'] = $tick['type'];
|
335 |
$ticks_cache[$tick['type']] = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
|
336 |
}
|
22 |
/**
|
23 |
* Return the ticker
|
24 |
*
|
25 |
+
* @since 1.4.0
|
26 |
*/
|
27 |
function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
28 |
|
31 |
if( $ticker && $ticker->post_status == 'publish' ) {
|
32 |
|
33 |
// Save the original $wp_query
|
34 |
+
global $wp_query, $mtphr_dnt_ticker_types;
|
35 |
$original_query = $wp_query;
|
36 |
$wp_query = null;
|
37 |
$wp_query = new WP_Query();
|
52 |
|
53 |
// Extract the metadata array into variables
|
54 |
extract( $meta_data );
|
55 |
+
|
56 |
+
// Add to the global ticker types
|
57 |
+
$mtphr_dnt_ticker_types[$_mtphr_dnt_type] = $_mtphr_dnt_type;
|
58 |
+
|
59 |
+
// Get the ticks to display
|
60 |
if( $_mtphr_dnt_type == 'mixed' ) {
|
61 |
$dnt_ticks = mtphr_dnt_mixed_ticks( $id, $meta_data );
|
62 |
} else {
|
63 |
$dnt_ticks = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
|
64 |
}
|
65 |
+
|
66 |
+
// Transform the tick array
|
67 |
+
$dnt_ticks = apply_filters( 'mtphr_dnt_tick_array_transform', $dnt_ticks, $id, $meta_data );
|
68 |
+
|
69 |
+
// Get the total amount of ticks
|
70 |
+
$total_ticks = count( $dnt_ticks );
|
71 |
|
72 |
ob_start();
|
73 |
|
|
|
|
|
74 |
// Add a unique id
|
75 |
+
$tick_id = 'mtphr-dnt-'.$id;
|
76 |
+
if( isset($_mtphr_dnt_unique_id) && ($_mtphr_dnt_unique_id != '') ) {
|
77 |
$tick_id = 'mtphr-dnt-'.$id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
|
|
|
78 |
}
|
79 |
|
80 |
// Check for a set width
|
81 |
$ticker_width = '';
|
82 |
+
if( isset($_mtphr_dnt_ticker_width) && ($_mtphr_dnt_ticker_width != 0) ) {
|
83 |
+
$ticker_width = ' style="width:'.intval($_mtphr_dnt_ticker_width).'px"';
|
|
|
|
|
84 |
}
|
85 |
|
86 |
echo '<div'.$ticker_width.' id="'.$tick_id.'" '.mtphr_dnt_ticker_class( $id, $class, $meta_data ).'>';
|
87 |
+
echo '<div class="mtphr-dnt-wrapper mtphr-dnt-clearfix">';
|
88 |
+
|
89 |
+
// Display the title
|
90 |
+
if( isset($_mtphr_dnt_title) && $_mtphr_dnt_title ) {
|
91 |
+
|
92 |
+
$inline_title = '';
|
93 |
+
if( isset($_mtphr_dnt_inline_title) && $_mtphr_dnt_inline_title ) {
|
|
|
|
|
94 |
$inline_title = ' mtphr-dnt-inline-title';
|
95 |
}
|
96 |
+
|
97 |
+
do_action( 'mtphr_dnt_title_before', $id, $meta_data );
|
98 |
+
echo '<h3 class="mtphr-dnt-title'.$inline_title.'">'.apply_filters( 'mtphr_dnt_ticker_title', $ticker->post_title ).'</h3>';
|
99 |
+
do_action( 'mtphr_dnt_title_after', $id, $meta_data );
|
100 |
}
|
101 |
+
|
102 |
+
// Create and save element styles
|
103 |
+
$margin='';$padding='';$width='';$height='';$spacing='';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
+
if( $_mtphr_dnt_mode == 'scroll' ) {
|
106 |
+
$padding = ( intval($_mtphr_dnt_scroll_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_scroll_padding).'px;padding-bottom:'.intval($_mtphr_dnt_scroll_padding).'px;' : '';
|
107 |
+
$margin = ( intval($_mtphr_dnt_scroll_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_scroll_margin).'px;margin-bottom:'.intval($_mtphr_dnt_scroll_margin).'px;' : '';
|
108 |
+
$width = ( intval($_mtphr_dnt_scroll_width) != 0 ) ? 'white-space:normal;width:'.intval($_mtphr_dnt_scroll_width).'px;' : '';
|
109 |
+
$height = ( intval($_mtphr_dnt_scroll_height) != 0 ) ? 'height:'.intval($_mtphr_dnt_scroll_height).'px;' : '';
|
110 |
+
} elseif( $_mtphr_dnt_mode == 'rotate' ) {
|
111 |
+
$padding = ( intval($_mtphr_dnt_rotate_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_rotate_padding).'px;padding-bottom:'.intval($_mtphr_dnt_rotate_padding).'px;' : '';
|
112 |
+
$margin = ( intval($_mtphr_dnt_rotate_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_rotate_margin).'px;margin-bottom:'.intval($_mtphr_dnt_rotate_margin).'px;' : '';
|
113 |
+
$height = ( intval($_mtphr_dnt_rotate_height) != 0 ) ? 'height:'.intval($_mtphr_dnt_rotate_height).'px;' : '';
|
114 |
+
} elseif( $_mtphr_dnt_mode == 'list' ) {
|
115 |
+
$padding = ( intval($_mtphr_dnt_list_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_list_padding).'px;padding-bottom:'.intval($_mtphr_dnt_list_padding).'px;' : '';
|
116 |
+
$margin = ( intval($_mtphr_dnt_list_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_list_margin).'px;margin-bottom:'.intval($_mtphr_dnt_list_margin).'px;' : '';
|
117 |
}
|
118 |
+
|
119 |
+
// Filter the variables
|
120 |
+
$padding = apply_filters( 'mtphr_dnt_tick_container_padding', $padding );
|
121 |
+
$margin = apply_filters( 'mtphr_dnt_tick_container_margin', $margin );
|
122 |
+
$width = apply_filters( 'mtphr_dnt_tick_width', $width );
|
123 |
+
$height = apply_filters( 'mtphr_dnt_tick_height', $height );
|
124 |
+
|
125 |
+
// Create the container style
|
126 |
+
$container_style = ( $padding != '' || $margin != '' ) ? ' style="'.$padding.$margin.'"' : '';
|
127 |
+
|
128 |
+
// Open the ticker container
|
129 |
+
do_action( 'mtphr_dnt_before', $id, $meta_data );
|
130 |
+
echo '<div class="mtphr-dnt-tick-container"'.$container_style.'>';
|
131 |
+
do_action( 'mtphr_dnt_contents_before', $id, $meta_data );
|
132 |
+
echo '<div class="mtphr-dnt-tick-contents">';
|
133 |
+
do_action( 'mtphr_dnt_top', $id, $meta_data );
|
134 |
+
|
135 |
+
// Print out the ticks
|
136 |
+
if( is_array($dnt_ticks) ) {
|
137 |
+
|
138 |
+
// Grab the paged ticks
|
139 |
+
if( $_mtphr_dnt_mode == 'list' && (isset($_mtphr_dnt_list_tick_paging) && $_mtphr_dnt_list_tick_paging) ) {
|
140 |
+
$page = isset( $_GET['tickpage'] ) ? $_GET['tickpage'] : 1;
|
141 |
+
$offset = ($page-1) * $_mtphr_dnt_list_tick_count;
|
142 |
+
$dnt_ticks = array_slice( $dnt_ticks, $offset, $_mtphr_dnt_list_tick_count );
|
143 |
+
}
|
144 |
+
|
145 |
+
// Randomize the ticks
|
146 |
+
if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
|
147 |
+
shuffle( $dnt_ticks );
|
148 |
+
}
|
149 |
+
$total = count($dnt_ticks);
|
150 |
+
foreach( $dnt_ticks as $i => $tick ) {
|
151 |
+
|
152 |
+
$type = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['type'] : $_mtphr_dnt_type;
|
153 |
+
$tick = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['tick'] : $tick;
|
154 |
+
|
155 |
+
// Set the list spacing depending on the tick position
|
156 |
+
if( $_mtphr_dnt_mode == 'list' ) {
|
157 |
+
$spacing = ( $i != intval($total-1) ) ? 'margin-bottom:'.intval($_mtphr_dnt_list_tick_spacing).'px;' : '';
|
158 |
+
}
|
159 |
+
$spacing = apply_filters( 'mtphr_dnt_list_tick_spacing', $spacing, $i, $total );
|
160 |
+
$tick_style = ( $width != '' || $height != '' || $spacing != '' ) ? ' style="'.$width.$height.$spacing.'"' : '';
|
161 |
+
|
162 |
+
do_action( 'mtphr_dnt_tick_before', $id, $meta_data, $total, $i );
|
163 |
+
echo '<div'.$tick_style.' '.mtphr_dnt_tick_class('mtphr-dnt-'.$type.'-tick mtphr-dnt-clearfix').'>';
|
164 |
+
do_action( 'mtphr_dnt_tick_top', $id, $meta_data );
|
165 |
+
|
166 |
+
echo $tick;
|
167 |
+
|
168 |
+
do_action( 'mtphr_dnt_tick_bottom', $id, $meta_data );
|
169 |
+
echo '</div>';
|
170 |
+
do_action( 'mtphr_dnt_tick_after', $id, $meta_data, $total, $i );
|
171 |
+
}
|
172 |
+
}
|
173 |
+
|
174 |
+
// Close the ticker container
|
175 |
+
do_action( 'mtphr_dnt_bottom', $id, $meta_data );
|
176 |
+
echo '</div>';
|
177 |
+
do_action( 'mtphr_dnt_contents_after', $id, $meta_data, $total_ticks );
|
178 |
echo '</div>';
|
179 |
+
do_action( 'mtphr_dnt_after', $id, $meta_data, $total_ticks );
|
180 |
+
|
181 |
+
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
|
184 |
// Restore the original $wp_query
|
185 |
$wp_query = null;
|
187 |
wp_reset_postdata();
|
188 |
}
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
// Return the output
|
191 |
return ob_get_clean();
|
192 |
}
|
240 |
|
241 |
|
242 |
/* --------------------------------------------------------- */
|
243 |
+
/* !Create the mixed ticks - 1.4.0 */
|
244 |
/* --------------------------------------------------------- */
|
245 |
|
246 |
if( !function_exists('mtphr_dnt_mixed_ticks') ) {
|
247 |
function mtphr_dnt_mixed_ticks( $id, $meta_data ) {
|
248 |
|
249 |
+
global $mtphr_dnt_ticker_types;
|
250 |
+
|
251 |
// Get all active ticker types
|
252 |
$types = mtphr_dnt_types_array();
|
253 |
|
263 |
|
264 |
// Make sure the tick type exists
|
265 |
if( array_key_exists( $tick['type'], $types ) && !array_key_exists( $tick['type'], $ticks_cache ) ) {
|
266 |
+
|
267 |
+
// Add to the global tick types
|
268 |
+
$mtphr_dnt_ticker_types[$tick['type']] = $tick['type'];
|
269 |
+
|
270 |
+
// Cache the appropriate ticks
|
271 |
$meta_data['_mtphr_dnt_type'] = $tick['type'];
|
272 |
$ticks_cache[$tick['type']] = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
|
273 |
}
|
includes/helpers.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
/* --------------------------------------------------------- */
|
4 |
-
/* !Return an array of the current DNT types - 1.
|
5 |
/* --------------------------------------------------------- */
|
6 |
|
7 |
if( !function_exists('mtphr_dnt_types_array') ) {
|
@@ -11,7 +11,7 @@ function mtphr_dnt_types_array() {
|
|
11 |
$dnt_types_array = array();
|
12 |
$dnt_types_array['default'] = array(
|
13 |
'button' => __('Default', 'ditty-news-ticker'),
|
14 |
-
'metaboxes' => array( '
|
15 |
);
|
16 |
$dnt_types_array['mixed'] = array(
|
17 |
'button' => __('Mixed', 'ditty-news-ticker'),
|
@@ -35,15 +35,15 @@ function mtphr_dnt_modes_array() {
|
|
35 |
$dnt_modes_array = array();
|
36 |
$dnt_modes_array['scroll'] = array(
|
37 |
'button' => __('Scroll', 'ditty-news-ticker'),
|
38 |
-
'metaboxes' => array( '
|
39 |
);
|
40 |
$dnt_modes_array['rotate'] = array(
|
41 |
'button' => __('Rotate', 'ditty-news-ticker'),
|
42 |
-
'metaboxes' => array( '
|
43 |
);
|
44 |
$dnt_modes_array['list'] = array(
|
45 |
'button' => __('List', 'ditty-news-ticker'),
|
46 |
-
'metaboxes' => array( '
|
47 |
);
|
48 |
|
49 |
return apply_filters('mtphr_dnt_modes', $dnt_modes_array);
|
1 |
<?php
|
2 |
|
3 |
/* --------------------------------------------------------- */
|
4 |
+
/* !Return an array of the current DNT types - 1.4.0 */
|
5 |
/* --------------------------------------------------------- */
|
6 |
|
7 |
if( !function_exists('mtphr_dnt_types_array') ) {
|
11 |
$dnt_types_array = array();
|
12 |
$dnt_types_array['default'] = array(
|
13 |
'button' => __('Default', 'ditty-news-ticker'),
|
14 |
+
'metaboxes' => array( 'mtphr_dnt_default_metabox' )
|
15 |
);
|
16 |
$dnt_types_array['mixed'] = array(
|
17 |
'button' => __('Mixed', 'ditty-news-ticker'),
|
35 |
$dnt_modes_array = array();
|
36 |
$dnt_modes_array['scroll'] = array(
|
37 |
'button' => __('Scroll', 'ditty-news-ticker'),
|
38 |
+
'metaboxes' => array( 'mtphr_dnt_scroll_settings_metabox' )
|
39 |
);
|
40 |
$dnt_modes_array['rotate'] = array(
|
41 |
'button' => __('Rotate', 'ditty-news-ticker'),
|
42 |
+
'metaboxes' => array( 'mtphr_dnt_rotate_settings_metabox' )
|
43 |
);
|
44 |
$dnt_modes_array['list'] = array(
|
45 |
'button' => __('List', 'ditty-news-ticker'),
|
46 |
+
'metaboxes' => array( 'mtphr_dnt_list_settings_metabox' )
|
47 |
);
|
48 |
|
49 |
return apply_filters('mtphr_dnt_modes', $dnt_modes_array);
|
includes/meta-boxes.php
CHANGED
@@ -1,643 +1,283 @@
|
|
1 |
<?php
|
2 |
-
/**
|
3 |
-
* Create the meta boxes
|
4 |
-
*
|
5 |
-
* @package Ditty News Ticker
|
6 |
-
*/
|
7 |
-
|
8 |
-
|
9 |
-
//add_action( 'admin_init', 'mtphr_dnt_metabox_types', 9 );
|
10 |
-
/**
|
11 |
-
* Create the types metabox.
|
12 |
-
*
|
13 |
-
* @since 1.0.0
|
14 |
-
*/
|
15 |
-
function mtphr_dnt_metabox_types() {
|
16 |
-
|
17 |
-
/* Create the types metabox. */
|
18 |
-
$dnt_types = array(
|
19 |
-
'id' => 'mtphr_dnt_types',
|
20 |
-
'title' => __('Ticker Type', 'ditty-news-ticker'),
|
21 |
-
'page' => array( 'ditty_news_ticker' ),
|
22 |
-
'context' => 'normal',
|
23 |
-
'priority' => 'high',
|
24 |
-
'fields' => array(
|
25 |
-
array(
|
26 |
-
'id' => '_mtphr_dnt_type',
|
27 |
-
'type' => 'metabox_toggle',
|
28 |
-
'options' => mtphr_dnt_types_array(),
|
29 |
-
'default' => 'default',
|
30 |
-
'append' => array(
|
31 |
-
'_mtphr_dnt_type_link' => array(
|
32 |
-
'type' => 'html',
|
33 |
-
'default' => '<a href="http://dittynewsticker.com" target="_blank"><strong>'.__('View all types', 'ditty-news-ticker').'</strong></a>'
|
34 |
-
)
|
35 |
-
)
|
36 |
-
)
|
37 |
-
)
|
38 |
-
);
|
39 |
-
new MTPHR_DNT_MetaBoxer( $dnt_types );
|
40 |
-
}
|
41 |
-
|
42 |
-
|
43 |
|
|
|
|
|
|
|
44 |
|
45 |
-
|
46 |
-
/**
|
47 |
-
* Create the default type metabox.
|
48 |
-
*
|
49 |
-
* @since 1.2.2
|
50 |
-
*/
|
51 |
-
function mtphr_dnt_metabox_type_default() {
|
52 |
|
53 |
-
$
|
54 |
-
|
55 |
-
if( $
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
}
|
58 |
-
|
59 |
-
// Create an array to store the default item structure
|
60 |
-
$tick_structure = array(
|
61 |
-
'tick' => array(
|
62 |
-
'header' => __('Ticker text', 'ditty-news-ticker'),
|
63 |
-
'width' => '60%',
|
64 |
-
'type' => $tick_type,
|
65 |
-
'rows' => 2
|
66 |
-
),
|
67 |
-
'link' => array(
|
68 |
-
'header' => __('Link', 'ditty-news-ticker'),
|
69 |
-
'type' => 'text'
|
70 |
-
),
|
71 |
-
'target' => array(
|
72 |
-
'header' => __('Target', 'ditty-news-ticker'),
|
73 |
-
'type' => 'select',
|
74 |
-
'options' => array( '_self', '_blank' )
|
75 |
-
),
|
76 |
-
'nofollow' => array(
|
77 |
-
'header' => __('NF', 'ditty-news-ticker'),
|
78 |
-
'type' => 'checkbox'
|
79 |
-
)
|
80 |
-
);
|
81 |
-
|
82 |
-
// Create an array to store the fields
|
83 |
-
$default_fields = array();
|
84 |
-
|
85 |
-
// Add the items field
|
86 |
-
$default_fields['line_breaks'] = array(
|
87 |
-
'id' => '_mtphr_dnt_line_breaks',
|
88 |
-
'type' => 'checkbox',
|
89 |
-
'label' => __('Force line breaks on carriage returns', 'ditty-news-ticker'),
|
90 |
-
);
|
91 |
-
|
92 |
-
// Add the items field
|
93 |
-
$default_fields['ticks'] = array(
|
94 |
-
'id' => '_mtphr_dnt_ticks',
|
95 |
-
'type' => 'list',
|
96 |
-
'structure' => apply_filters('mtphr_dnt_default_tick_structure', $tick_structure)
|
97 |
-
);
|
98 |
-
|
99 |
-
// Create the metabox
|
100 |
-
$dnt_default_data = array(
|
101 |
-
'id' => 'mtphr_dnt_type_default',
|
102 |
-
'title' => __('Default Ticker Items', 'ditty-news-ticker'),
|
103 |
-
'page' => array( 'ditty_news_ticker' ),
|
104 |
-
'context' => 'normal',
|
105 |
-
'priority' => 'high',
|
106 |
-
'fields' => apply_filters('mtphr_dnt_type_fields_default', $default_fields)
|
107 |
-
);
|
108 |
-
new MTPHR_DNT_MetaBoxer( $dnt_default_data );
|
109 |
}
|
|
|
110 |
|
111 |
|
|
|
|
|
|
|
112 |
|
|
|
113 |
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
}
|
|
|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
*
|
152 |
-
* @since 1.1.8
|
153 |
-
*/
|
154 |
-
function mtphr_dnt_mode_metabox_scroll() {
|
155 |
-
|
156 |
-
// Create an array to store the fields
|
157 |
-
$scroll_fields = array();
|
158 |
-
|
159 |
-
// Add the dimensions field
|
160 |
-
$scroll_fields['direction'] = array(
|
161 |
-
'id' => '_mtphr_dnt_scroll_direction',
|
162 |
-
'type' => 'radio',
|
163 |
-
'name' => __('Scroll direction', 'ditty-news-ticker'),
|
164 |
-
'options' => array(
|
165 |
-
'left' => __('Left', 'ditty-news-ticker'),
|
166 |
-
'right' => __('Right', 'ditty-news-ticker'),
|
167 |
-
'up' => __('Up', 'ditty-news-ticker'),
|
168 |
-
'down' => __('Down', 'ditty-news-ticker')
|
169 |
-
),
|
170 |
-
'default' => 'left',
|
171 |
-
'description' => __('Set the scroll direction of the ticker.', 'ditty-news-ticker'),
|
172 |
-
'display' => 'inline',
|
173 |
-
'append' => array(
|
174 |
-
'_mtphr_dnt_scroll_init' => array(
|
175 |
-
'type' => 'checkbox',
|
176 |
-
'label' => __('Show first tick on init', 'ditty-news-ticker'),
|
177 |
-
)
|
178 |
-
)
|
179 |
-
);
|
180 |
-
|
181 |
-
// Add the dimensions field
|
182 |
-
$scroll_fields['dimensions'] = array(
|
183 |
-
'id' => '_mtphr_dnt_scroll_width',
|
184 |
-
'type' => 'number',
|
185 |
-
'name' => __('Tick dimensions', 'ditty-news-ticker'),
|
186 |
-
'default' => 0,
|
187 |
-
'before' => __('Width', 'ditty-news-ticker'),
|
188 |
-
'description' => __('Override the auto dimensions with specific values.', 'ditty-news-ticker'),
|
189 |
-
'append' => array(
|
190 |
-
'_mtphr_dnt_scroll_height' => array(
|
191 |
-
'type' => 'number',
|
192 |
-
'default' => 0,
|
193 |
-
'before' => __('Height', 'ditty-news-ticker'),
|
194 |
-
)
|
195 |
-
)
|
196 |
-
);
|
197 |
-
|
198 |
-
// Add the spacing field
|
199 |
-
$scroll_fields['scroller_padding'] = array(
|
200 |
-
'id' => '_mtphr_dnt_scroll_padding',
|
201 |
-
'type' => 'number',
|
202 |
-
'name' => __('Scroller padding', 'ditty-news-ticker'),
|
203 |
-
'default' => 0,
|
204 |
-
'before' => __('Vertical padding', 'ditty-news-ticker'),
|
205 |
-
'description' => __('Set the vertical spacing of the scrolling data.', 'ditty-news-ticker'),
|
206 |
-
'append' => array(
|
207 |
-
'_mtphr_dnt_scroll_margin' => array(
|
208 |
-
'type' => 'number',
|
209 |
-
'default' => 0,
|
210 |
-
'before' => __('Vertical margin', 'ditty-news-ticker')
|
211 |
-
)
|
212 |
-
)
|
213 |
-
);
|
214 |
-
|
215 |
-
// Add the slide speed field
|
216 |
-
$scroll_fields['scroll_speed'] = array(
|
217 |
-
'id' => '_mtphr_dnt_scroll_speed',
|
218 |
-
'type' => 'number',
|
219 |
-
'name' => __('Scroll speed', 'ditty-news-ticker'),
|
220 |
-
'default' => 10,
|
221 |
-
'description' => __('Set the speed of the scrolling data.', 'ditty-news-ticker'),
|
222 |
-
'append' => array(
|
223 |
-
'_mtphr_dnt_scroll_pause' => array(
|
224 |
-
'type' => 'checkbox',
|
225 |
-
'label' => __('Pause on mouse over', 'ditty-news-ticker'),
|
226 |
-
)
|
227 |
-
)
|
228 |
-
);
|
229 |
|
230 |
-
|
231 |
-
$scroll_fields['tick_spacing'] = array(
|
232 |
-
'id' => '_mtphr_dnt_scroll_tick_spacing',
|
233 |
-
'type' => 'number',
|
234 |
-
'name' => __('Tick spacing', 'ditty-news-ticker'),
|
235 |
-
'default' => 40,
|
236 |
-
'after' => __('Pixels', 'ditty-news-ticker'),
|
237 |
-
'description' => __('Set the spacing between scrolling data.', 'ditty-news-ticker')
|
238 |
-
);
|
239 |
|
240 |
-
|
241 |
-
$dnt_scroll_settings = array(
|
242 |
-
'id' => 'mtphr_dnt_mode_scroll',
|
243 |
-
'title' => __('Scroll Settings', 'ditty-news-ticker'),
|
244 |
-
'page' => array( 'ditty_news_ticker' ),
|
245 |
-
'context' => 'normal',
|
246 |
-
'priority' => 'high',
|
247 |
-
'fields' => apply_filters('mtphr_dnt_mode_fields_scroll', $scroll_fields)
|
248 |
-
);
|
249 |
-
new MTPHR_DNT_MetaBoxer( $dnt_scroll_settings );
|
250 |
}
|
|
|
251 |
|
252 |
|
|
|
|
|
|
|
253 |
|
|
|
254 |
|
255 |
-
|
256 |
-
/**
|
257 |
-
* Create the rotate metabox.
|
258 |
-
*
|
259 |
-
* @since 1.0.0
|
260 |
-
*/
|
261 |
-
function mtphr_dnt_mode_metabox_rotate() {
|
262 |
-
|
263 |
-
// Create an array to store the fields
|
264 |
-
$rotate_fields = array();
|
265 |
-
|
266 |
-
// Add the dimensions field
|
267 |
-
$rotate_fields['type'] = array(
|
268 |
-
'id' => '_mtphr_dnt_rotate_type',
|
269 |
-
'type' => 'radio',
|
270 |
-
'name' => __('Rotation type', 'ditty-news-ticker'),
|
271 |
-
'options' => array(
|
272 |
-
'fade' => __('Fade', 'ditty-news-ticker'),
|
273 |
-
'slide_left' => __('Slide left', 'ditty-news-ticker'),
|
274 |
-
'slide_right' => __('Slide right', 'ditty-news-ticker'),
|
275 |
-
'slide_up' => __('Slide up', 'ditty-news-ticker'),
|
276 |
-
'slide_down' => __('Slide down', 'ditty-news-ticker')
|
277 |
-
),
|
278 |
-
'default' => 'fade',
|
279 |
-
'description' => __('Set the type of rotation for the ticker.', 'ditty-news-ticker'),
|
280 |
-
'display' => 'inline',
|
281 |
-
'append' => array(
|
282 |
-
'_mtphr_dnt_rotate_directional_nav_reverse' => array(
|
283 |
-
'type' => 'checkbox',
|
284 |
-
'label' => __('Dynamic slide direction', 'ditty-news-ticker')
|
285 |
-
)
|
286 |
-
)
|
287 |
-
);
|
288 |
-
|
289 |
-
// Add the dimensions field
|
290 |
-
$rotate_fields['dimensions'] = array(
|
291 |
-
'id' => '_mtphr_dnt_rotate_height',
|
292 |
-
'type' => 'number',
|
293 |
-
'name' => __('Tick dimensions', 'ditty-news-ticker'),
|
294 |
-
'default' => 0,
|
295 |
-
'before' => __('Height', 'ditty-news-ticker'),
|
296 |
-
'description' => __('Override the auto dimensions with specific values.', 'ditty-news-ticker')
|
297 |
-
);
|
298 |
-
|
299 |
-
// Add the spacing field
|
300 |
-
$rotate_fields['rotate_padding'] = array(
|
301 |
-
'id' => '_mtphr_dnt_rotate_padding',
|
302 |
-
'type' => 'number',
|
303 |
-
'name' => __('Rotator padding', 'ditty-news-ticker'),
|
304 |
-
'default' => 0,
|
305 |
-
'before' => __('Vertical padding', 'ditty-news-ticker'),
|
306 |
-
'description' => __('Set the vertical spacing of the rotating data.', 'ditty-news-ticker'),
|
307 |
-
'append' => array(
|
308 |
-
'_mtphr_dnt_rotate_margin' => array(
|
309 |
-
'type' => 'number',
|
310 |
-
'default' => 0,
|
311 |
-
'before' => __('Vertical margin', 'ditty-news-ticker')
|
312 |
-
)
|
313 |
-
)
|
314 |
-
);
|
315 |
-
|
316 |
-
// Add the rotate delay field
|
317 |
-
$rotate_fields['rotate_delay'] = array(
|
318 |
-
'id' => '_mtphr_dnt_auto_rotate',
|
319 |
-
'type' => 'checkbox',
|
320 |
-
'name' => __('Auto rotate', 'ditty-news-ticker'),
|
321 |
-
'label' => __('Enable', 'ditty-news-ticker'),
|
322 |
-
'description' => __('Set the delay between rotations.', 'ditty-news-ticker'),
|
323 |
-
'append' => array(
|
324 |
-
'_mtphr_dnt_rotate_delay' => array(
|
325 |
-
'type' => 'number',
|
326 |
-
'default' => 7,
|
327 |
-
'after' => __('Seconds delay', 'ditty-news-ticker')
|
328 |
-
),
|
329 |
-
'_mtphr_dnt_rotate_pause' => array(
|
330 |
-
'type' => 'checkbox',
|
331 |
-
'label' => __('Pause on mouse over', 'ditty-news-ticker')
|
332 |
-
)
|
333 |
-
)
|
334 |
-
);
|
335 |
-
|
336 |
-
// Add the rotate speed field
|
337 |
-
$rotate_fields['rotate_speed'] = array(
|
338 |
-
'id' => '_mtphr_dnt_rotate_speed',
|
339 |
-
'type' => 'number',
|
340 |
-
'name' => __('Rotate speed', 'ditty-news-ticker'),
|
341 |
-
'default' => 3,
|
342 |
-
'after' => __('Tenths of a second', 'ditty-news-ticker'),
|
343 |
-
'description' => __('Set the speed & easing of the rotation.', 'ditty-news-ticker'),
|
344 |
-
'append' => array(
|
345 |
-
'_mtphr_dnt_rotate_ease' => array(
|
346 |
-
'type' => 'select',
|
347 |
-
'options' => array('linear','swing','jswing','easeInQuad','easeInCubic','easeInQuart','easeInQuint','easeInSine','easeInExpo','easeInCirc','easeInElastic','easeInBack','easeInBounce','easeOutQuad','easeOutCubic','easeOutQuart','easeOutQuint','easeOutSine','easeOutExpo','easeOutCirc','easeOutElastic','easeOutBack','easeOutBounce','easeInOutQuad','easeInOutCubic','easeInOutQuart','easeInOutQuint','easeInOutSine','easeInOutExpo','easeInOutCirc','easeInOutElastic','easeInOutBack','easeInOutBounce')
|
348 |
-
)
|
349 |
-
)
|
350 |
-
);
|
351 |
-
|
352 |
-
// Add the rotate navigation field
|
353 |
-
$rotate_fields['rotate_directional_nav'] = array(
|
354 |
-
'id' => '_mtphr_dnt_rotate_directional_nav',
|
355 |
-
'type' => 'checkbox',
|
356 |
-
'name' => __('Directional navigation', 'ditty-news-ticker'),
|
357 |
-
'label' => __('Enable', 'ditty-news-ticker'),
|
358 |
-
'description' => __('Set the directional navigation options.', 'ditty-news-ticker'),
|
359 |
-
'append' => array(
|
360 |
-
'_mtphr_dnt_rotate_directional_nav_hide' => array(
|
361 |
-
'type' => 'checkbox',
|
362 |
-
'label' => __('Autohide navigation', 'ditty-news-ticker')
|
363 |
-
)
|
364 |
-
)
|
365 |
-
);
|
366 |
-
|
367 |
-
// Add the rotate navigation field
|
368 |
-
$rotate_fields['rotate_control_nav'] = array(
|
369 |
-
'id' => '_mtphr_dnt_rotate_control_nav',
|
370 |
-
'type' => 'checkbox',
|
371 |
-
'name' => __('Control navigation', 'ditty-news-ticker'),
|
372 |
-
'label' => __('Enable', 'ditty-news-ticker'),
|
373 |
-
'description' => __('Set the control navigation options.', 'ditty-news-ticker'),
|
374 |
-
'append' => array(
|
375 |
-
'_mtphr_dnt_rotate_control_nav_type' => array(
|
376 |
-
'type' => 'radio',
|
377 |
-
'options' => array(
|
378 |
-
'number' => __('Numbers', 'ditty-news-ticker'),
|
379 |
-
'button' => __('Buttons', 'ditty-news-ticker')
|
380 |
-
),
|
381 |
-
'display' => 'inline',
|
382 |
-
'default' => 'number'
|
383 |
-
)
|
384 |
-
)
|
385 |
-
);
|
386 |
-
|
387 |
-
// Create the metabox
|
388 |
-
$dnt_rotate_settings = array(
|
389 |
-
'id' => 'mtphr_dnt_mode_rotate',
|
390 |
-
'title' => __('Rotate Settings', 'ditty-news-ticker'),
|
391 |
-
'page' => array( 'ditty_news_ticker' ),
|
392 |
-
'context' => 'normal',
|
393 |
-
'priority' => 'high',
|
394 |
-
'fields' => apply_filters('mtphr_dnt_mode_fields_rotate', $rotate_fields)
|
395 |
-
);
|
396 |
-
new MTPHR_DNT_MetaBoxer( $dnt_rotate_settings );
|
397 |
}
|
|
|
398 |
|
399 |
|
|
|
|
|
|
|
400 |
|
|
|
401 |
|
402 |
-
|
403 |
-
/**
|
404 |
-
* Create the list metabox.
|
405 |
-
*
|
406 |
-
* @since 1.0.0
|
407 |
-
*/
|
408 |
-
function mtphr_dnt_mode_metabox_list() {
|
409 |
-
|
410 |
-
// Create an array to store the fields
|
411 |
-
$list_fields = array();
|
412 |
-
|
413 |
-
// Add the spacing field
|
414 |
-
$list_fields['list_padding'] = array(
|
415 |
-
'id' => '_mtphr_dnt_list_padding',
|
416 |
-
'type' => 'number',
|
417 |
-
'name' => __('List padding', 'ditty-news-ticker'),
|
418 |
-
'default' => 0,
|
419 |
-
'before' => __('Vertical padding', 'ditty-news-ticker'),
|
420 |
-
'description' => __('Set the vertical spacing of the list container.', 'ditty-news-ticker'),
|
421 |
-
'append' => array(
|
422 |
-
'_mtphr_dnt_list_margin' => array(
|
423 |
-
'type' => 'number',
|
424 |
-
'default' => 0,
|
425 |
-
'before' => __('Vertical margin', 'ditty-news-ticker')
|
426 |
-
)
|
427 |
-
)
|
428 |
-
);
|
429 |
-
|
430 |
-
// Add the list spacing field
|
431 |
-
$list_fields['tick_spacing'] = array(
|
432 |
-
'id' => '_mtphr_dnt_list_tick_spacing',
|
433 |
-
'type' => 'number',
|
434 |
-
'name' => __('Tick spacing', 'ditty-news-ticker'),
|
435 |
-
'default' => 10,
|
436 |
-
'after' => __('Pixels', 'ditty-news-ticker'),
|
437 |
-
'description' => __('Set the spacing between ticks.', 'ditty-news-ticker')
|
438 |
-
);
|
439 |
-
|
440 |
-
// Create the metabox
|
441 |
-
$dnt_list_settings = array(
|
442 |
-
'id' => 'mtphr_dnt_mode_list',
|
443 |
-
'title' => __('List Settings', 'ditty-news-ticker'),
|
444 |
-
'page' => array( 'ditty_news_ticker' ),
|
445 |
-
'context' => 'normal',
|
446 |
-
'priority' => 'high',
|
447 |
-
'fields' => apply_filters('mtphr_dnt_mode_fields_list', $list_fields)
|
448 |
-
);
|
449 |
-
new MTPHR_DNT_MetaBoxer( $dnt_list_settings );
|
450 |
}
|
|
|
451 |
|
452 |
|
|
|
|
|
|
|
453 |
|
|
|
454 |
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
*
|
459 |
-
* @since 1.1.8
|
460 |
-
*/
|
461 |
-
function mtphr_dnt_global_settings() {
|
462 |
-
|
463 |
-
// Create an array to store the fields
|
464 |
-
$global_fields = array();
|
465 |
-
|
466 |
-
// Add the title field
|
467 |
-
$global_fields['title'] = array(
|
468 |
-
'id' => '_mtphr_dnt_title',
|
469 |
-
'type' => 'checkbox',
|
470 |
-
'label' => __('Display title', 'ditty-news-ticker'),
|
471 |
-
'append' => array(
|
472 |
-
'_mtphr_dnt_inline_title' => array(
|
473 |
-
'type' => 'checkbox',
|
474 |
-
'label' => __('Inline title', 'ditty-news-ticker')
|
475 |
-
)
|
476 |
-
)
|
477 |
-
);
|
478 |
|
479 |
-
// Add the randomize field
|
480 |
-
$global_fields['shuffle'] = array(
|
481 |
-
'id' => '_mtphr_dnt_shuffle',
|
482 |
-
'type' => 'checkbox',
|
483 |
-
'label' => __('Randomly shuffle the ticks', 'ditty-news-ticker')
|
484 |
-
);
|
485 |
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
'before' => __('Ticker width <em>(optional)</em>', 'ditty-news-ticker'),
|
490 |
-
'type' => 'number',
|
491 |
-
'after' => 'px<br/>'.'<small><em>'.__('Override the auto width a with specific value.', 'ditty-news-ticker').'</em></small>'
|
492 |
-
);
|
493 |
|
494 |
-
|
495 |
-
$global_fields['offset'] = array(
|
496 |
-
'id' => '_mtphr_dnt_offset',
|
497 |
-
'type' => 'number',
|
498 |
-
'default' => 20,
|
499 |
-
'before' => __('Offset ticks', 'ditty-news-ticker'),
|
500 |
-
'after' => __('px from the edge', 'ditty-news-ticker').'<br/>'.'<small><em>'.__('The amount of pixels ticks should start and end off the screen.', 'ditty-news-ticker').'</em></small>'
|
501 |
-
);
|
502 |
|
503 |
-
|
504 |
-
$dnt_global = array(
|
505 |
-
'id' => 'mtphr_dnt_global_settings',
|
506 |
-
'title' => __('Global Settings', 'ditty-news-ticker'),
|
507 |
-
'page' => array( 'ditty_news_ticker' ),
|
508 |
-
'context' => 'side',
|
509 |
-
'priority' => 'default',
|
510 |
-
'fields' => apply_filters('mtphr_dnt_display_fields', $global_fields)
|
511 |
-
);
|
512 |
-
new MTPHR_DNT_MetaBoxer( $dnt_global );
|
513 |
}
|
|
|
514 |
|
515 |
|
|
|
|
|
|
|
516 |
|
|
|
517 |
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
*
|
522 |
-
* @since 1.0.0
|
523 |
-
*/
|
524 |
-
function mtphr_dnt_display_metabox() {
|
525 |
-
|
526 |
-
// Create an array to store the fields
|
527 |
-
$display_fields = array();
|
528 |
|
529 |
-
// Add the shortcode field
|
530 |
-
$display_fields['shortcode'] = array(
|
531 |
-
'id' => '_mtphr_dnt_shortcode',
|
532 |
-
'type' => 'code',
|
533 |
-
'name' => __('Shortcode', 'ditty-news-ticker'),
|
534 |
-
'button' => __('Select Shortcode', 'ditty-news-ticker'),
|
535 |
-
'description' => __('Use this shortcode to insert the ticker into a post/page.', 'ditty-news-ticker'),
|
536 |
-
);
|
537 |
|
538 |
-
// Add the function field
|
539 |
-
$display_fields['function'] = array(
|
540 |
-
'id' => '_mtphr_dnt_function',
|
541 |
-
'type' => 'code',
|
542 |
-
'name' => __('Direct function', 'ditty-news-ticker'),
|
543 |
-
'button' => __('Select Function', 'ditty-news-ticker'),
|
544 |
-
'description' => __('Place this code directly into your theme to display the ticker.', 'ditty-news-ticker'),
|
545 |
-
);
|
546 |
|
547 |
-
// Create the metabox
|
548 |
-
$dnt_display = array(
|
549 |
-
'id' => 'mtphr_dnt_display',
|
550 |
-
'title' => __('Ticker Display', 'ditty-news-ticker'),
|
551 |
-
'page' => array( 'ditty_news_ticker' ),
|
552 |
-
'context' => 'side',
|
553 |
-
'priority' => 'default',
|
554 |
-
'fields' => apply_filters('mtphr_dnt_display_fields', $display_fields)
|
555 |
-
);
|
556 |
-
new MTPHR_DNT_MetaBoxer( $dnt_display );
|
557 |
-
}
|
558 |
|
559 |
|
560 |
|
561 |
/* --------------------------------------------------------- */
|
562 |
-
/* !
|
563 |
/* --------------------------------------------------------- */
|
564 |
|
565 |
-
|
|
|
566 |
|
567 |
-
global $post
|
568 |
|
569 |
-
|
|
|
|
|
|
|
|
|
|
|
570 |
|
571 |
-
|
572 |
-
|
573 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
|
575 |
-
|
576 |
-
|
577 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
|
579 |
-
|
580 |
-
|
581 |
-
echo '<td id="ditty-news-ticker-type-select">';
|
582 |
-
echo '<div class="wrapper">';
|
583 |
-
echo '<h2>'.__('Ticker Type', 'ditty-news-ticker').' <a href="http://dittynewsticker.com" target="_blank"><small>'.__('View all types', 'ditty-news-ticker').'</small></a></h2>';
|
584 |
-
echo '<p>'.__('Select the type of ticker you\'d like to use', 'ditty-news-ticker').'</p>';
|
585 |
-
echo '<div class="mtphr-dnt-metabox-toggle">';
|
586 |
-
echo '<input type="hidden" name="_mtphr_dnt_type" value="'.$type.'" />';
|
587 |
-
foreach( $types as $i=>$t ) {
|
588 |
-
|
589 |
-
$value = '';
|
590 |
-
$button = $t['button'];
|
591 |
-
$metaboxes = $t['metaboxes'];
|
592 |
-
$metabox_list = join( ',', $metaboxes );
|
593 |
-
|
594 |
-
// Create a button
|
595 |
-
$selected = ( $type == $i ) ? ' button-primary' : '';
|
596 |
-
echo '<a href="'.$i.'" metaboxes="'.$metabox_list.'" class="mtphr-dnt-metaboxer-metabox-toggle button'.$selected.'">'.$button.'</a> ';
|
597 |
-
}
|
598 |
-
echo '</div>';
|
599 |
-
echo '</div>';
|
600 |
-
echo '</td>';
|
601 |
-
|
602 |
-
echo '<td id="ditty-news-ticker-mode-select">';
|
603 |
-
echo '<div class="wrapper">';
|
604 |
-
echo '<h2>'.__('Ticker Mode', 'ditty-news-ticker').'</h2>';
|
605 |
-
echo '<p>'.__('Select the mode of the ticker', 'ditty-news-ticker').'</p>';
|
606 |
-
echo '<div class="mtphr-dnt-metabox-toggle">';
|
607 |
-
echo '<input type="hidden" name="_mtphr_dnt_mode" value="'.$mode.'" />';
|
608 |
-
foreach( $modes as $i=>$m ) {
|
609 |
-
|
610 |
-
$value = '';
|
611 |
-
$button = $m['button'];
|
612 |
-
$metaboxes = $m['metaboxes'];
|
613 |
-
$metabox_list = join( ',', $metaboxes );
|
614 |
-
|
615 |
-
// Create a button
|
616 |
-
$selected = ( $mode == $i ) ? ' button-primary' : '';
|
617 |
-
echo '<a href="'.$i.'" metaboxes="'.$metabox_list.'" class="mtphr-dnt-metaboxer-metabox-toggle button'.$selected.'">'.$button.'</a> ';
|
618 |
-
}
|
619 |
-
echo '</div>';
|
620 |
-
echo '</div>';
|
621 |
-
echo '</td>';
|
622 |
-
echo '</tr>';
|
623 |
-
echo '</table>';
|
624 |
-
}
|
625 |
}
|
626 |
-
add_action( 'edit_form_after_title', 'mtphr_dnt_option_buttons' );
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
/* --------------------------------------------------------- */
|
633 |
-
/* !Add the mixed type metabox - 1.3.0 */
|
634 |
-
/* --------------------------------------------------------- */
|
635 |
-
|
636 |
-
function mtphr_dnt_mixed_metabox() {
|
637 |
|
638 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
639 |
}
|
640 |
-
add_action( 'add_meta_boxes', 'mtphr_dnt_mixed_metabox' );
|
641 |
|
642 |
|
643 |
|
@@ -645,6 +285,7 @@ add_action( 'add_meta_boxes', 'mtphr_dnt_mixed_metabox' );
|
|
645 |
/* !Render the mixed type metabox - 1.3.3 */
|
646 |
/* --------------------------------------------------------- */
|
647 |
|
|
|
648 |
function mtphr_dnt_mixed_render_metabox() {
|
649 |
|
650 |
global $post;
|
@@ -681,7 +322,9 @@ function mtphr_dnt_mixed_render_metabox() {
|
|
681 |
|
682 |
echo '</table>';
|
683 |
}
|
|
|
684 |
|
|
|
685 |
function mtphr_dnt_render_mixed_tick( $types, $tick=false, $i=false ) {
|
686 |
|
687 |
$tick_type = ( isset($tick) && isset($tick['type']) ) ? $tick['type'] : '';
|
@@ -707,11 +350,444 @@ function mtphr_dnt_render_mixed_tick( $types, $tick=false, $i=false ) {
|
|
707 |
echo '<td class="mtphr-dnt-list-delete"><a href="#"></a></td>';
|
708 |
echo '</tr>';
|
709 |
}
|
|
|
710 |
|
711 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
|
713 |
/* --------------------------------------------------------- */
|
714 |
-
/* !
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
715 |
/* --------------------------------------------------------- */
|
716 |
|
717 |
function mtphr_dnt_metabox_save( $post_id ) {
|
@@ -741,26 +817,150 @@ function mtphr_dnt_metabox_save( $post_id ) {
|
|
741 |
// Update the type & mode
|
742 |
if( isset($_POST['_mtphr_dnt_type']) ) {
|
743 |
|
744 |
-
$type =
|
745 |
-
$mode =
|
746 |
|
747 |
update_post_meta( $post_id, '_mtphr_dnt_type', $type );
|
748 |
update_post_meta( $post_id, '_mtphr_dnt_mode', $mode );
|
749 |
}
|
750 |
|
751 |
-
//
|
752 |
-
|
753 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
754 |
|
|
|
|
|
755 |
$sanitized_ticks = array();
|
756 |
-
|
757 |
-
$
|
758 |
-
|
759 |
-
|
760 |
-
|
|
|
|
|
761 |
}
|
762 |
update_post_meta( $post_id, '_mtphr_dnt_mixed_ticks', $sanitized_ticks );
|
763 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
764 |
}
|
765 |
add_action( 'save_post', 'mtphr_dnt_metabox_save' );
|
766 |
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
/* --------------------------------------------------------- */
|
4 |
+
/* !Add the ticker display code - 1.4.0 */
|
5 |
+
/* --------------------------------------------------------- */
|
6 |
|
7 |
+
function mtphr_dnt_display_code() {
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
+
global $post, $typenow;
|
10 |
+
|
11 |
+
if( $typenow == 'ditty_news_ticker' ) {
|
12 |
+
|
13 |
+
echo '<div id="ditty-news-ticker-code-copy">';
|
14 |
+
echo '<table>';
|
15 |
+
echo '<tr>';
|
16 |
+
echo '<td id="ditty-news-ticker-shortcode-copy">';
|
17 |
+
echo '<div class="wrapper">';
|
18 |
+
echo '<h3>'.__('Shortcode', 'ditty-news-ticker').'</h3>';
|
19 |
+
echo '<p>'.__('Copy and paste this shortcode into a page or post to display the ticker within the post content.', 'ditty-news-ticker').'</p>';
|
20 |
+
echo '<pre><p>[ditty_news_ticker id="'.$post->ID.'"]</p></pre>';
|
21 |
+
echo '<a href="#" class="button mtphr-dnt-code-select">'.__('Select Shortcode', 'ditty-news-ticker').'</a>';
|
22 |
+
echo '</div>';
|
23 |
+
echo '</td>';
|
24 |
+
|
25 |
+
echo '<td id="ditty-news-ticker-function-copy">';
|
26 |
+
echo '<div class="wrapper">';
|
27 |
+
echo '<h3>'.__('Direct Function', 'ditty-news-ticker').'</h3>';
|
28 |
+
echo '<p>'.__('Copy and paste this code directly into one of your theme files to display the ticker any where you want on your site.', 'ditty-news-ticker').'</p>';
|
29 |
+
|
30 |
+
echo '<pre><p><?php if(function_exists(\'ditty_news_ticker\')){ditty_news_ticker('.$post->ID.');} ?></p></pre>';
|
31 |
+
echo '<a href="#" class="button mtphr-dnt-code-select">'.__('Select Function', 'ditty-news-ticker').'</a>';
|
32 |
+
echo '</div>';
|
33 |
+
echo '</td>';
|
34 |
+
echo '</tr>';
|
35 |
+
echo '</table>';
|
36 |
+
echo '</div>';
|
37 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
+
add_action( 'edit_form_after_title', 'mtphr_dnt_display_code' );
|
40 |
|
41 |
|
42 |
+
/* --------------------------------------------------------- */
|
43 |
+
/* !Add the main ticker options - 1.3.4 */
|
44 |
+
/* --------------------------------------------------------- */
|
45 |
|
46 |
+
function mtphr_dnt_option_buttons() {
|
47 |
|
48 |
+
global $post, $typenow;
|
49 |
+
|
50 |
+
if( $typenow == 'ditty_news_ticker' ) {
|
51 |
+
|
52 |
+
$types = mtphr_dnt_types_array();
|
53 |
+
$type = get_post_meta( $post->ID, '_mtphr_dnt_type', true );
|
54 |
+
$type = ( $type != '' ) ? $type : 'default';
|
55 |
+
|
56 |
+
$modes = mtphr_dnt_modes_array();
|
57 |
+
$mode = get_post_meta( $post->ID, '_mtphr_dnt_mode', true );
|
58 |
+
$type = ( $type != '' ) ? $type : 'scroll';
|
59 |
+
|
60 |
+
echo '<div id="ditty-news-ticker-settings-select">';
|
61 |
+
echo '<table>';
|
62 |
+
echo '<tr>';
|
63 |
+
echo '<td id="ditty-news-ticker-type-select">';
|
64 |
+
echo '<div class="wrapper">';
|
65 |
+
echo '<h2>'.__('Ticker Type', 'ditty-news-ticker').' <a href="http://dittynewsticker.com" target="_blank"><small>'.__('View all types', 'ditty-news-ticker').'</small></a></h2>';
|
66 |
+
echo '<p>'.__('Select the type of ticker you\'d like to use', 'ditty-news-ticker').'</p>';
|
67 |
+
echo '<div class="mtphr-dnt-metabox-toggle">';
|
68 |
+
echo '<input type="hidden" name="_mtphr_dnt_type" value="'.$type.'" />';
|
69 |
+
foreach( $types as $i=>$t ) {
|
70 |
+
|
71 |
+
$value = '';
|
72 |
+
$button = $t['button'];
|
73 |
+
$metaboxes = $t['metaboxes'];
|
74 |
+
$metabox_list = join( ',', $metaboxes );
|
75 |
+
|
76 |
+
// Create a button
|
77 |
+
$selected = ( $type == $i ) ? ' button-primary' : '';
|
78 |
+
echo '<a href="'.$i.'" metaboxes="'.$metabox_list.'" class="mtphr-dnt-metaboxer-metabox-toggle button'.$selected.'">'.$button.'</a> ';
|
79 |
+
}
|
80 |
+
echo '</div>';
|
81 |
+
echo '</div>';
|
82 |
+
echo '</td>';
|
83 |
+
|
84 |
+
echo '<td id="ditty-news-ticker-mode-select">';
|
85 |
+
echo '<div class="wrapper">';
|
86 |
+
echo '<h2>'.__('Ticker Mode', 'ditty-news-ticker').'</h2>';
|
87 |
+
echo '<p>'.__('Select the mode of the ticker', 'ditty-news-ticker').'</p>';
|
88 |
+
echo '<div class="mtphr-dnt-metabox-toggle">';
|
89 |
+
echo '<input type="hidden" name="_mtphr_dnt_mode" value="'.$mode.'" />';
|
90 |
+
foreach( $modes as $i=>$m ) {
|
91 |
+
|
92 |
+
$value = '';
|
93 |
+
$button = $m['button'];
|
94 |
+
$metaboxes = $m['metaboxes'];
|
95 |
+
$metabox_list = join( ',', $metaboxes );
|
96 |
+
|
97 |
+
// Create a button
|
98 |
+
$selected = ( $mode == $i ) ? ' button-primary' : '';
|
99 |
+
echo '<a href="'.$i.'" metaboxes="'.$metabox_list.'" class="mtphr-dnt-metaboxer-metabox-toggle button'.$selected.'">'.$button.'</a> ';
|
100 |
+
}
|
101 |
+
echo '</div>';
|
102 |
+
echo '</div>';
|
103 |
+
echo '</td>';
|
104 |
+
echo '</tr>';
|
105 |
+
echo '</table>';
|
106 |
+
echo '</div>';
|
107 |
+
}
|
108 |
}
|
109 |
+
add_action( 'edit_form_after_title', 'mtphr_dnt_option_buttons' );
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
+
/* --------------------------------------------------------- */
|
115 |
+
/* !Add the default type metabox - 1.4.0 */
|
116 |
+
/* --------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
+
function mtphr_dnt_default_metabox() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
|
120 |
+
add_meta_box( 'mtphr_dnt_default_metabox', __('Default Ticker Items', 'ditty-news-ticker'), 'mtphr_dnt_default_render_metabox', 'ditty_news_ticker', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
}
|
122 |
+
add_action( 'add_meta_boxes', 'mtphr_dnt_default_metabox', 1 );
|
123 |
|
124 |
|
125 |
+
/* --------------------------------------------------------- */
|
126 |
+
/* !Add the mixed type metabox - 1.4.0 */
|
127 |
+
/* --------------------------------------------------------- */
|
128 |
|
129 |
+
function mtphr_dnt_mixed_metabox() {
|
130 |
|
131 |
+
add_meta_box( 'mtphr_dnt_mixed_metabox', __('Mixed Ticker Items', 'ditty-news-ticker'), 'mtphr_dnt_mixed_render_metabox', 'ditty_news_ticker', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
+
add_action( 'add_meta_boxes', 'mtphr_dnt_mixed_metabox', 1 );
|
134 |
|
135 |
|
136 |
+
/* --------------------------------------------------------- */
|
137 |
+
/* !Add the scroll settings metabox - 1.4.0 */
|
138 |
+
/* --------------------------------------------------------- */
|
139 |
|
140 |
+
function mtphr_dnt_scroll_settings_metabox() {
|
141 |
|
142 |
+
add_meta_box( 'mtphr_dnt_scroll_settings_metabox', __('Scroll Settings', 'ditty-news-ticker'), 'mtphr_dnt_scroll_settings_render_metabox', 'ditty_news_ticker', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
}
|
144 |
+
add_action( 'add_meta_boxes', 'mtphr_dnt_scroll_settings_metabox' );
|
145 |
|
146 |
|
147 |
+
/* --------------------------------------------------------- */
|
148 |
+
/* !Add the rotate settings metabox - 1.4.0 */
|
149 |
+
/* --------------------------------------------------------- */
|
150 |
|
151 |
+
function mtphr_dnt_rotate_settings_metabox() {
|
152 |
|
153 |
+
add_meta_box( 'mtphr_dnt_rotate_settings_metabox', __('Rotate Settings', 'ditty-news-ticker'), 'mtphr_dnt_rotate_settings_render_metabox', 'ditty_news_ticker', 'normal', 'high' );
|
154 |
+
}
|
155 |
+
add_action( 'add_meta_boxes', 'mtphr_dnt_rotate_settings_metabox' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
+
/* --------------------------------------------------------- */
|
159 |
+
/* !Add the list settings metabox - 1.4.0 */
|
160 |
+
/* --------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
161 |
|
162 |
+
function mtphr_dnt_list_settings_metabox() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
|
164 |
+
add_meta_box( 'mtphr_dnt_list_settings_metabox', __('List Settings', 'ditty-news-ticker'), 'mtphr_dnt_list_settings_render_metabox', 'ditty_news_ticker', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
}
|
166 |
+
add_action( 'add_meta_boxes', 'mtphr_dnt_list_settings_metabox' );
|
167 |
|
168 |
|
169 |
+
/* --------------------------------------------------------- */
|
170 |
+
/* !Add the global settings metabox - 1.4.0 */
|
171 |
+
/* --------------------------------------------------------- */
|
172 |
|
173 |
+
function mtphr_dnt_global_settings_metabox() {
|
174 |
|
175 |
+
add_meta_box( 'mtphr_dnt_global_settings_metabox', __('Global Settings', 'ditty-news-ticker'), 'mtphr_dnt_global_settings_render_metabox', 'ditty_news_ticker', 'side', 'default' );
|
176 |
+
}
|
177 |
+
add_action( 'add_meta_boxes', 'mtphr_dnt_global_settings_metabox' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
|
183 |
|
184 |
/* --------------------------------------------------------- */
|
185 |
+
/* !Render the default type metabox - 1.4.0 */
|
186 |
/* --------------------------------------------------------- */
|
187 |
|
188 |
+
if( !function_exists('mtphr_dnt_default_render_metabox') ) {
|
189 |
+
function mtphr_dnt_default_render_metabox() {
|
190 |
|
191 |
+
global $post;
|
192 |
|
193 |
+
$settings = mtphr_dnt_general_settings();
|
194 |
+
|
195 |
+
$line_breaks = get_post_meta( $post->ID, '_mtphr_dnt_line_breaks', true );
|
196 |
+
$ticks = get_post_meta( $post->ID, '_mtphr_dnt_ticks', true );
|
197 |
+
|
198 |
+
echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
|
199 |
|
200 |
+
echo '<table class="mtphr-dnt-table">';
|
201 |
+
|
202 |
+
echo '<tr>';
|
203 |
+
echo '<td class="mtphr-dnt-label">';
|
204 |
+
echo '<label>'.__('Line breaks', 'ditty-news-ticker').'</label>';
|
205 |
+
echo '<small>'.__('Force line breaks on carriage returns', 'ditty-news-ticker').'</small>';
|
206 |
+
echo '</td>';
|
207 |
+
echo '<td>';
|
208 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_line_breaks" value="1" '.checked('1', $line_breaks, false).' />'.__('Force line breaks', 'ditty-news-ticker').'</label>';
|
209 |
+
echo '</td>';
|
210 |
+
echo '</tr>';
|
211 |
|
212 |
+
echo '<tr>';
|
213 |
+
echo '<td class="mtphr-dnt-label">';
|
214 |
+
echo '<label>'.__('Ticks', 'ditty-news-ticker').'</label>';
|
215 |
+
echo '<small>'.__('Add an unlimited number of ticks to your ticker', 'ditty-news-ticker').'</small>';
|
216 |
+
echo '</td>';
|
217 |
+
echo '<td>';
|
218 |
+
echo '<table class="mtphr-dnt-list mtphr-dnt-default-list">';
|
219 |
+
echo '<tr>';
|
220 |
+
echo '<th class="mtphr-dnt-list-handle"></th>';
|
221 |
+
echo '<th>'.__('Ticker text', 'ditty-news-ticker').'</th>';
|
222 |
+
echo '<th>'.__('Link', 'ditty-news-ticker').'</th>';
|
223 |
+
echo '<th class="mtphr-dnt-default-target">'.__('Target', 'ditty-news-ticker').'</th>';
|
224 |
+
echo '<th class="mtphr-dnt-default-nofollow">'.__('NF', 'ditty-news-ticker').'</th>';
|
225 |
+
echo '<th class="mtphr-dnt-list-delete"></th>';
|
226 |
+
echo '<th class="mtphr-dnt-list-add"></th>';
|
227 |
+
echo '</tr>';
|
228 |
+
if( is_array($ticks) && count($ticks) > 0 ) {
|
229 |
+
foreach( $ticks as $i=>$tick ) {
|
230 |
+
mtphr_dnt_render_default_tick( $settings, $tick );
|
231 |
+
}
|
232 |
+
} else {
|
233 |
+
mtphr_dnt_render_default_tick( $settings );
|
234 |
+
}
|
235 |
+
echo '</table>';
|
236 |
+
echo '</td>';
|
237 |
+
echo '</tr>';
|
238 |
|
239 |
+
echo '</table>';
|
240 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
+
if( !function_exists('mtphr_dnt_render_default_tick') ) {
|
244 |
+
function mtphr_dnt_render_default_tick( $settings, $tick=false ) {
|
245 |
+
|
246 |
+
$text = ( isset($tick) && isset($tick['tick']) ) ? $tick['tick'] : '';
|
247 |
+
$link = ( isset($tick) && isset($tick['link']) ) ? $tick['link'] : '';
|
248 |
+
$target = ( isset($tick) && isset($tick['target']) ) ? $tick['target'] : '';
|
249 |
+
$nofollow = ( isset($tick) && isset($tick['nofollow']) ) ? $tick['nofollow'] : '';
|
250 |
+
|
251 |
+
echo '<tr class="mtphr-dnt-list-item">';
|
252 |
+
echo '<td class="mtphr-dnt-list-handle"><span></span></td>';
|
253 |
+
echo '<td class="mtphr-dnt-default-tick">';
|
254 |
+
if( $settings['wysiwyg'] == '1' ) {
|
255 |
+
$editor_settings = array();
|
256 |
+
$editor_settings['media_buttons'] = true;
|
257 |
+
$editor_settings['textarea_rows'] = 6;
|
258 |
+
$editor_settings['textarea_name'] = '_mtphr_dnt_ticks[tick]';
|
259 |
+
wp_editor( $text, 'mtphrdnttick'.uniqid(), $editor_settings );
|
260 |
+
} else {
|
261 |
+
echo '<textarea name="_mtphr_dnt_ticks[tick]" key="tick">'.$text.'</textarea>';
|
262 |
+
}
|
263 |
+
echo '</td>';
|
264 |
+
echo '<td class="mtphr-dnt-default-link">';
|
265 |
+
echo '<input type="text" name="_mtphr_dnt_ticks[link]" key="link" value="'.$link.'" />';
|
266 |
+
echo '</td>';
|
267 |
+
echo '<td class="mtphr-dnt-default-target">';
|
268 |
+
echo '<select name="_mtphr_dnt_ticks[target]" key="target">';
|
269 |
+
echo '<option value="_self" '.selected('_self', $target, false).'>_self</option>';
|
270 |
+
echo '<option value="_blank" '.selected('_blank', $target, false).'>_blank</option>';
|
271 |
+
echo '</select>';
|
272 |
+
echo '</td>';
|
273 |
+
echo '<td class="mtphr-dnt-default-nofollow">';
|
274 |
+
echo '<input type="checkbox" name="_mtphr_dnt_ticks[nofollow]" key="nofollow" value="1" '.checked('1', $nofollow, false).' />';
|
275 |
+
echo '</td>';
|
276 |
+
echo '<td class="mtphr-dnt-list-delete"><a href="#"></a></td>';
|
277 |
+
echo '<td class="mtphr-dnt-list-add"><a href="#"></a></td>';
|
278 |
+
echo '</tr>';
|
279 |
+
}
|
280 |
}
|
|
|
281 |
|
282 |
|
283 |
|
285 |
/* !Render the mixed type metabox - 1.3.3 */
|
286 |
/* --------------------------------------------------------- */
|
287 |
|
288 |
+
if( !function_exists('mtphr_dnt_mixed_render_metabox') ) {
|
289 |
function mtphr_dnt_mixed_render_metabox() {
|
290 |
|
291 |
global $post;
|
322 |
|
323 |
echo '</table>';
|
324 |
}
|
325 |
+
}
|
326 |
|
327 |
+
if( !function_exists('mtphr_dnt_render_mixed_tick') ) {
|
328 |
function mtphr_dnt_render_mixed_tick( $types, $tick=false, $i=false ) {
|
329 |
|
330 |
$tick_type = ( isset($tick) && isset($tick['type']) ) ? $tick['type'] : '';
|
350 |
echo '<td class="mtphr-dnt-list-delete"><a href="#"></a></td>';
|
351 |
echo '</tr>';
|
352 |
}
|
353 |
+
}
|
354 |
|
355 |
|
356 |
+
/* --------------------------------------------------------- */
|
357 |
+
/* !Render the scroll settings metabox - 1.4.0 */
|
358 |
+
/* --------------------------------------------------------- */
|
359 |
+
|
360 |
+
if( !function_exists('mtphr_dnt_scroll_settings_render_metabox') ) {
|
361 |
+
function mtphr_dnt_scroll_settings_render_metabox() {
|
362 |
+
|
363 |
+
global $post;
|
364 |
+
|
365 |
+
$defaults = array(
|
366 |
+
'direction' => 'left',
|
367 |
+
'init' => '',
|
368 |
+
'width' => 0,
|
369 |
+
'height' => 0,
|
370 |
+
'padding' => 0,
|
371 |
+
'margin' => 0,
|
372 |
+
'speed' => 10,
|
373 |
+
'pause' => '',
|
374 |
+
'spacing' => 40
|
375 |
+
);
|
376 |
+
|
377 |
+
$values = array(
|
378 |
+
'direction' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_direction', true ),
|
379 |
+
'init' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_init', true ),
|
380 |
+
'width' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_width', true ),
|
381 |
+
'height' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_height', true ),
|
382 |
+
'padding' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_padding', true ),
|
383 |
+
'margin' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_margin', true ),
|
384 |
+
'speed' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_speed', true ),
|
385 |
+
'pause' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_pause', true ),
|
386 |
+
'spacing' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_tick_spacing', true )
|
387 |
+
);
|
388 |
+
foreach( $values as $i=>$value ) {
|
389 |
+
if( $value == '' ) {
|
390 |
+
unset($values[$i]);
|
391 |
+
}
|
392 |
+
}
|
393 |
+
|
394 |
+
$values = wp_parse_args( $values, $defaults );
|
395 |
+
|
396 |
+
echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
|
397 |
+
|
398 |
+
echo '<table class="mtphr-dnt-table">';
|
399 |
+
|
400 |
+
echo '<tr>';
|
401 |
+
echo '<td class="mtphr-dnt-label">';
|
402 |
+
echo '<label>'.__('Scroll direction', 'ditty-news-ticker').'</label>';
|
403 |
+
echo '<small>'.__('Set the scroll direction of the ticker', 'ditty-news-ticker').'</small>';
|
404 |
+
echo '</td>';
|
405 |
+
echo '<td>';
|
406 |
+
echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction" value="left" '.checked('left', $values['direction'], false).' /> '.__('Left', 'ditty-news-ticker').'</label>';
|
407 |
+
echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction" value="right" '.checked('right', $values['direction'], false).' /> '.__('Right', 'ditty-news-ticker').'</label>';
|
408 |
+
echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction" value="up" '.checked('up', $values['direction'], false).' /> '.__('Up', 'ditty-news-ticker').'</label>';
|
409 |
+
echo '<label style="margin-right:20px;"><input type="radio" name="_mtphr_dnt_scroll_direction" value="down" '.checked('down', $values['direction'], false).' /> '.__('Down', 'ditty-news-ticker').'</label>';
|
410 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_scroll_init" value="1" '.checked('1', $values['init'], false).' /> '.__('Show first tick on init', 'ditty-news-ticker').'</label>';
|
411 |
+
echo '</td>';
|
412 |
+
echo '</tr>';
|
413 |
+
|
414 |
+
echo '<tr>';
|
415 |
+
echo '<td class="mtphr-dnt-label">';
|
416 |
+
echo '<label>'.__('Tick dimensions', 'ditty-news-ticker').'</label>';
|
417 |
+
echo '<small>'.__('Override the auto dimensions with specific values', 'ditty-news-ticker').'</small>';
|
418 |
+
echo '</td>';
|
419 |
+
echo '<td>';
|
420 |
+
echo '<label>'.__('Width', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_scroll_width" value="'.$values['width'].'" /></label>';
|
421 |
+
echo '<label>'.__('Height', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_scroll_height" value="'.$values['height'].'" /></label>';
|
422 |
+
echo '</td>';
|
423 |
+
echo '</tr>';
|
424 |
+
|
425 |
+
echo '<tr>';
|
426 |
+
echo '<td class="mtphr-dnt-label">';
|
427 |
+
echo '<label>'.__('Scroller padding', 'ditty-news-ticker').'</label>';
|
428 |
+
echo '<small>'.__('Set the vertical spacing of the scrolling data', 'ditty-news-ticker').'</small>';
|
429 |
+
echo '</td>';
|
430 |
+
echo '<td>';
|
431 |
+
echo '<label>'.__('Vertical padding', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_scroll_padding" value="'.$values['padding'].'" /></label>';
|
432 |
+
echo '<label>'.__('Vertical margin', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_scroll_margin" value="'.$values['margin'].'" /></label>';
|
433 |
+
echo '</td>';
|
434 |
+
echo '</tr>';
|
435 |
+
|
436 |
+
echo '<tr>';
|
437 |
+
echo '<td class="mtphr-dnt-label">';
|
438 |
+
echo '<label>'.__('Scroll speed', 'ditty-news-ticker').'</label>';
|
439 |
+
echo '<small>'.__('Set the speed of the scrolling data', 'ditty-news-ticker').'</small>';
|
440 |
+
echo '</td>';
|
441 |
+
echo '<td>';
|
442 |
+
echo '<label><input type="number" name="_mtphr_dnt_scroll_speed" value="'.$values['speed'].'" /></label>';
|
443 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_scroll_pause" value="1" '.checked('1', $values['pause'], false).' /> '.__('Pause on mouse over', 'ditty-news-ticker').'</label>';
|
444 |
+
echo '</td>';
|
445 |
+
echo '</tr>';
|
446 |
+
|
447 |
+
echo '<tr>';
|
448 |
+
echo '<td class="mtphr-dnt-label">';
|
449 |
+
echo '<label>'.__('Tick spacing', 'ditty-news-ticker').'</label>';
|
450 |
+
echo '<small>'.__('Set the spacing between scrolling data', 'ditty-news-ticker').'</small>';
|
451 |
+
echo '</td>';
|
452 |
+
echo '<td>';
|
453 |
+
echo '<label><input type="number" name="_mtphr_dnt_scroll_tick_spacing" value="'.$values['spacing'].'" /> '.__('Pixels', 'ditty-news-ticker').'</label>';
|
454 |
+
echo '</td>';
|
455 |
+
echo '</tr>';
|
456 |
+
|
457 |
+
echo '</table>';
|
458 |
+
}
|
459 |
+
}
|
460 |
+
|
461 |
|
462 |
/* --------------------------------------------------------- */
|
463 |
+
/* !Render the rotate settings metabox - 1.4.0 */
|
464 |
+
/* --------------------------------------------------------- */
|
465 |
+
|
466 |
+
if( !function_exists('mtphr_dnt_rotate_settings_render_metabox') ) {
|
467 |
+
function mtphr_dnt_rotate_settings_render_metabox() {
|
468 |
+
|
469 |
+
global $post;
|
470 |
+
|
471 |
+
$defaults = array(
|
472 |
+
'type' => 'fade',
|
473 |
+
'reverse' => '',
|
474 |
+
'height' => 0,
|
475 |
+
'padding' => 0,
|
476 |
+
'margin' => 0,
|
477 |
+
'auto' => '',
|
478 |
+
'delay' => 7,
|
479 |
+
'pause' => '',
|
480 |
+
'speed' => 3,
|
481 |
+
'ease' => 'linear',
|
482 |
+
'directional_nav' => '',
|
483 |
+
'directional_nav_hide' => '',
|
484 |
+
'control_nav' => '',
|
485 |
+
'control_nav_type' => 'number'
|
486 |
+
);
|
487 |
+
|
488 |
+
$values = array(
|
489 |
+
'type' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_type', true ),
|
490 |
+
'reverse' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav_reverse', true ),
|
491 |
+
'height' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_height', true ),
|
492 |
+
'padding' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_padding', true ),
|
493 |
+
'margin' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_margin', true ),
|
494 |
+
'auto' => get_post_meta( $post->ID, '_mtphr_dnt_auto_rotate', true ),
|
495 |
+
'delay' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_delay', true ),
|
496 |
+
'pause' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_pause', true ),
|
497 |
+
'speed' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_speed', true ),
|
498 |
+
'ease' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_ease', true ),
|
499 |
+
'directional_nav' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav', true ),
|
500 |
+
'directional_nav_hide' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav_hide', true ),
|
501 |
+
'control_nav' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_control_nav', true ),
|
502 |
+
'control_nav_type' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_control_nav_type', true )
|
503 |
+
);
|
504 |
+
foreach( $values as $i=>$value ) {
|
505 |
+
if( $value == '' ) {
|
506 |
+
unset($values[$i]);
|
507 |
+
}
|
508 |
+
}
|
509 |
+
|
510 |
+
$values = wp_parse_args( $values, $defaults );
|
511 |
+
|
512 |
+
echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
|
513 |
+
|
514 |
+
echo '<table class="mtphr-dnt-table">';
|
515 |
+
|
516 |
+
echo '<tr>';
|
517 |
+
echo '<td class="mtphr-dnt-label">';
|
518 |
+
echo '<label>'.__('Rotation type', 'ditty-news-ticker').'</label>';
|
519 |
+
echo '<small>'.__('Set the type of rotation for the ticker', 'ditty-news-ticker').'</small>';
|
520 |
+
echo '</td>';
|
521 |
+
echo '<td>';
|
522 |
+
echo '<label><input type="radio" name="_mtphr_dnt_rotate_type" value="fade" '.checked('fade', $values['type'], false).' /> '.__('Fade', 'ditty-news-ticker').'</label>';
|
523 |
+
echo '<label><input type="radio" name="_mtphr_dnt_rotate_type" value="slide_left" '.checked('slide_left', $values['type'], false).' /> '.__('Slide left', 'ditty-news-ticker').'</label>';
|
524 |
+
echo '<label><input type="radio" name="_mtphr_dnt_rotate_type" value="slide_right" '.checked('slide_right', $values['type'], false).' /> '.__('Slide right', 'ditty-news-ticker').'</label>';
|
525 |
+
echo '<label><input type="radio" name="_mtphr_dnt_rotate_type" value="slide_up" '.checked('slide_up', $values['type'], false).' /> '.__('Slide up', 'ditty-news-ticker').'</label>';
|
526 |
+
echo '<label style="margin-right:20px;"><input type="radio" name="_mtphr_dnt_rotate_type" value="slide_down" '.checked('slide_down', $values['type'], false).' /> '.__('Slide down', 'ditty-news-ticker').'</label>';
|
527 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_rotate_directional_nav_reverse" value="1" '.checked('1', $values['reverse'], false).' /> '.__('Dynamic slide direction', 'ditty-news-ticker').'</label>';
|
528 |
+
echo '</td>';
|
529 |
+
echo '</tr>';
|
530 |
+
|
531 |
+
echo '<tr>';
|
532 |
+
echo '<td class="mtphr-dnt-label">';
|
533 |
+
echo '<label>'.__('Tick dimensions', 'ditty-news-ticker').'</label>';
|
534 |
+
echo '<small>'.__('Override the auto dimensions with specific values', 'ditty-news-ticker').'</small>';
|
535 |
+
echo '</td>';
|
536 |
+
echo '<td>';
|
537 |
+
echo '<label>'.__('Height', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_rotate_height" value="'.$values['height'].'" /></label>';
|
538 |
+
echo '</td>';
|
539 |
+
echo '</tr>';
|
540 |
+
|
541 |
+
echo '<tr>';
|
542 |
+
echo '<td class="mtphr-dnt-label">';
|
543 |
+
echo '<label>'.__('Rotator padding', 'ditty-news-ticker').'</label>';
|
544 |
+
echo '<small>'.__('Set the vertical spacing of the rotating data', 'ditty-news-ticker').'</small>';
|
545 |
+
echo '</td>';
|
546 |
+
echo '<td>';
|
547 |
+
echo '<label>'.__('Vertical padding', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_rotate_padding" value="'.$values['padding'].'" /></label>';
|
548 |
+
echo '<label>'.__('Vertical margin', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_rotate_margin" value="'.$values['margin'].'" /></label>';
|
549 |
+
echo '</td>';
|
550 |
+
echo '</tr>';
|
551 |
+
|
552 |
+
echo '<tr>';
|
553 |
+
echo '<td class="mtphr-dnt-label">';
|
554 |
+
echo '<label>'.__('Auto rotate', 'ditty-news-ticker').'</label>';
|
555 |
+
echo '<small>'.__('Set the delay between rotations', 'ditty-news-ticker').'</small>';
|
556 |
+
echo '</td>';
|
557 |
+
echo '<td>';
|
558 |
+
echo '<label style="margin-right:20px;"><input type="checkbox" name="_mtphr_dnt_auto_rotate" value="1" '.checked('1', $values['auto'], false).' /> '.__('Enable', 'ditty-news-ticker').'</label>';
|
559 |
+
echo '<label style="margin-right:20px;"><input type="number" name="_mtphr_dnt_rotate_delay" value="'.$values['delay'].'" /> '.__('Seconds delay', 'ditty-news-ticker').'</label>';
|
560 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_rotate_pause" value="1" '.checked('1', $values['pause'], false).' /> '.__('Pause on mouse over', 'ditty-news-ticker').'</label>';
|
561 |
+
echo '</td>';
|
562 |
+
echo '</tr>';
|
563 |
+
|
564 |
+
echo '<tr>';
|
565 |
+
echo '<td class="mtphr-dnt-label">';
|
566 |
+
echo '<label>'.__('Rotate speed', 'ditty-news-ticker').'</label>';
|
567 |
+
echo '<small>'.__('Set the speed & easing of the rotation', 'ditty-news-ticker').'</small>';
|
568 |
+
echo '</td>';
|
569 |
+
echo '<td>';
|
570 |
+
echo '<label><input type="number" name="_mtphr_dnt_rotate_speed" value="'.$values['speed'].'" /> '.__('Tenths of a second', 'ditty-news-ticker').'</label>';
|
571 |
+
echo '<label><select name="_mtphr_dnt_rotate_ease">';
|
572 |
+
$eases = array('linear','swing','jswing','easeInQuad','easeInCubic','easeInQuart','easeInQuint','easeInSine','easeInExpo','easeInCirc','easeInElastic','easeInBack','easeInBounce','easeOutQuad','easeOutCubic','easeOutQuart','easeOutQuint','easeOutSine','easeOutExpo','easeOutCirc','easeOutElastic','easeOutBack','easeOutBounce','easeInOutQuad','easeInOutCubic','easeInOutQuart','easeInOutQuint','easeInOutSine','easeInOutExpo','easeInOutCirc','easeInOutElastic','easeInOutBack','easeInOutBounce');
|
573 |
+
foreach( $eases as $ease ) {
|
574 |
+
echo '<option value="'.$ease.'" '.selected($ease, $values['ease'], false).'>'.$ease.'</option>';
|
575 |
+
}
|
576 |
+
echo '</select></label>';
|
577 |
+
echo '</td>';
|
578 |
+
echo '</tr>';
|
579 |
+
|
580 |
+
echo '<tr>';
|
581 |
+
echo '<td class="mtphr-dnt-label">';
|
582 |
+
echo '<label>'.__('Directional navigation', 'ditty-news-ticker').'</label>';
|
583 |
+
echo '<small>'.__('Set the directional navigation options', 'ditty-news-ticker').'</small>';
|
584 |
+
echo '</td>';
|
585 |
+
echo '<td>';
|
586 |
+
echo '<label style="margin-right:20px;"><input type="checkbox" name="_mtphr_dnt_rotate_directional_nav" value="1" '.checked('1', $values['directional_nav'], false).' /> '.__('Enable', 'ditty-news-ticker').'</label>';
|
587 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_rotate_directional_nav_hide" value="1" '.checked('1', $values['directional_nav_hide'], false).' /> '.__('Autohide navigation', 'ditty-news-ticker').'</label>';
|
588 |
+
echo '</td>';
|
589 |
+
echo '</tr>';
|
590 |
+
|
591 |
+
echo '<tr>';
|
592 |
+
echo '<td class="mtphr-dnt-label">';
|
593 |
+
echo '<label>'.__('Control navigation', 'ditty-news-ticker').'</label>';
|
594 |
+
echo '<small>'.__('Set the control navigation options', 'ditty-news-ticker').'</small>';
|
595 |
+
echo '</td>';
|
596 |
+
echo '<td>';
|
597 |
+
echo '<label style="margin-right:20px;"><input type="checkbox" name="_mtphr_dnt_rotate_control_nav" value="1" '.checked('1', $values['control_nav'], false).' /> '.__('Enable', 'ditty-news-ticker').'</label>';
|
598 |
+
echo '<label><input type="radio" name="_mtphr_dnt_rotate_control_nav_type" value="number" '.checked('number', $values['control_nav_type'], false).' /> '.__('Numbers', 'ditty-news-ticker').'</label>';
|
599 |
+
echo '<label><input type="radio" name="_mtphr_dnt_rotate_control_nav_type" value="button" '.checked('button', $values['control_nav_type'], false).' /> '.__('Buttons', 'ditty-news-ticker').'</label>';
|
600 |
+
echo '</td>';
|
601 |
+
echo '</tr>';
|
602 |
+
|
603 |
+
echo '</table>';
|
604 |
+
}
|
605 |
+
}
|
606 |
+
|
607 |
+
|
608 |
+
/* --------------------------------------------------------- */
|
609 |
+
/* !Render the list settings metabox - 1.4.0 */
|
610 |
+
/* --------------------------------------------------------- */
|
611 |
+
|
612 |
+
if( !function_exists('mtphr_dnt_list_settings_render_metabox') ) {
|
613 |
+
function mtphr_dnt_list_settings_render_metabox() {
|
614 |
+
|
615 |
+
global $post;
|
616 |
+
|
617 |
+
$defaults = array(
|
618 |
+
'padding' => 0,
|
619 |
+
'margin' => 0,
|
620 |
+
'spacing' => 10,
|
621 |
+
'paging' => '',
|
622 |
+
'count' => 0,
|
623 |
+
'prev_next' => '',
|
624 |
+
'prev_text' => __('« Previous', 'ditty-news-ticker'),
|
625 |
+
'next_text' => __('Next »', 'ditty-news-ticker'),
|
626 |
+
);
|
627 |
+
|
628 |
+
$values = array(
|
629 |
+
'padding' => get_post_meta( $post->ID, '_mtphr_dnt_list_padding', true ),
|
630 |
+
'margin' => get_post_meta( $post->ID, '_mtphr_dnt_list_margin', true ),
|
631 |
+
'spacing' => get_post_meta( $post->ID, '_mtphr_dnt_list_tick_spacing', true ),
|
632 |
+
'paging' => get_post_meta( $post->ID, '_mtphr_dnt_list_tick_paging', true ),
|
633 |
+
'count' => get_post_meta( $post->ID, '_mtphr_dnt_list_tick_count', true ),
|
634 |
+
'prev_next' => get_post_meta( $post->ID, '_mtphr_dnt_list_tick_prev_next', true ),
|
635 |
+
'prev_text' => get_post_meta( $post->ID, '_mtphr_dnt_list_tick_prev_text', true ),
|
636 |
+
'next_text' => get_post_meta( $post->ID, '_mtphr_dnt_list_tick_next_text', true ),
|
637 |
+
);
|
638 |
+
foreach( $values as $i=>$value ) {
|
639 |
+
if( $value == '' ) {
|
640 |
+
unset($values[$i]);
|
641 |
+
}
|
642 |
+
}
|
643 |
+
|
644 |
+
$values = wp_parse_args( $values, $defaults );
|
645 |
+
|
646 |
+
echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
|
647 |
+
|
648 |
+
echo '<table class="mtphr-dnt-table">';
|
649 |
+
|
650 |
+
echo '<tr>';
|
651 |
+
echo '<td class="mtphr-dnt-label">';
|
652 |
+
echo '<label>'.__('List padding', 'ditty-news-ticker').'</label>';
|
653 |
+
echo '<small>'.__('Set the vertical spacing of the list container', 'ditty-news-ticker').'</small>';
|
654 |
+
echo '</td>';
|
655 |
+
echo '<td>';
|
656 |
+
echo '<label>'.__('Vertical padding', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_list_padding" value="'.$values['padding'].'" /></label>';
|
657 |
+
echo '<label>'.__('Vertical margin', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_list_margin" value="'.$values['margin'].'" /></label>';
|
658 |
+
echo '</td>';
|
659 |
+
echo '</tr>';
|
660 |
+
|
661 |
+
echo '<tr>';
|
662 |
+
echo '<td class="mtphr-dnt-label">';
|
663 |
+
echo '<label>'.__('Tick spacing', 'ditty-news-ticker').'</label>';
|
664 |
+
echo '<small>'.__('Set the spacing between ticks', 'ditty-news-ticker').'</small>';
|
665 |
+
echo '</td>';
|
666 |
+
echo '<td>';
|
667 |
+
echo '<label><input type="number" name="_mtphr_dnt_list_tick_spacing" value="'.$values['spacing'].'" /> '.__('Pixels', 'ditty-news-ticker').'</label>';
|
668 |
+
echo '</td>';
|
669 |
+
echo '</tr>';
|
670 |
+
|
671 |
+
echo '<tr>';
|
672 |
+
echo '<td class="mtphr-dnt-label">';
|
673 |
+
echo '<label>'.__('List paging', 'ditty-news-ticker').'</label>';
|
674 |
+
echo '<small>'.__('Break the list up into pages', 'ditty-news-ticker').'</small>';
|
675 |
+
echo '</td>';
|
676 |
+
echo '<td>';
|
677 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_list_tick_paging" value="1" '.checked('1', $values['paging'], false).' /> '.__('Enable', 'ditty-news-ticker').'</label>';
|
678 |
+
echo '<label><input type="number" name="_mtphr_dnt_list_tick_count" value="'.$values['count'].'" /> '.__('Ticks per page', 'ditty-news-ticker').'</label>';
|
679 |
+
echo '<br/>';
|
680 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_list_tick_prev_next" value="1" '.checked('1', $values['prev_next'], false).' /> '.__('Enable previous & next links', 'ditty-news-ticker').'</label>';
|
681 |
+
echo '<br/>';
|
682 |
+
echo '<label style="margin-right:10px;"><input type="text" name="_mtphr_dnt_list_tick_prev_text" value="'.$values['prev_text'].'" size="20" placeholder="'.__('Previous text', 'ditty-news-ticker').'" /></label>';
|
683 |
+
echo '<label><input type="text" name="_mtphr_dnt_list_tick_next_text" value="'.$values['next_text'].'" size="20" placeholder="'.__('Next text', 'ditty-news-ticker').'" /></label>';
|
684 |
+
echo '</td>';
|
685 |
+
echo '</tr>';
|
686 |
+
|
687 |
+
echo '</table>';
|
688 |
+
}
|
689 |
+
}
|
690 |
+
|
691 |
+
|
692 |
+
/* --------------------------------------------------------- */
|
693 |
+
/* !Render the global settings metabox - 1.4.0 */
|
694 |
+
/* --------------------------------------------------------- */
|
695 |
+
|
696 |
+
if( !function_exists('mtphr_dnt_global_settings_render_metabox') ) {
|
697 |
+
function mtphr_dnt_global_settings_render_metabox() {
|
698 |
+
|
699 |
+
global $post;
|
700 |
+
|
701 |
+
$defaults = array(
|
702 |
+
'title' => '',
|
703 |
+
'inline_title' => '',
|
704 |
+
'shuffle' => '',
|
705 |
+
'width' => 0,
|
706 |
+
'offset' => 20,
|
707 |
+
'grid' => '',
|
708 |
+
'grid_empty_rows' => '',
|
709 |
+
'grid_equal_width' => '',
|
710 |
+
'grid_cols' => 2,
|
711 |
+
'grid_rows' => 2,
|
712 |
+
'grid_padding' => 5,
|
713 |
+
);
|
714 |
+
|
715 |
+
$values = array(
|
716 |
+
'title' => get_post_meta( $post->ID, '_mtphr_dnt_title', true ),
|
717 |
+
'inline_title' => get_post_meta( $post->ID, '_mtphr_dnt_inline_title', true ),
|
718 |
+
'shuffle' => get_post_meta( $post->ID, '_mtphr_dnt_shuffle', true ),
|
719 |
+
'width' => get_post_meta( $post->ID, '_mtphr_dnt_ticker_width', true ),
|
720 |
+
'offset' => get_post_meta( $post->ID, '_mtphr_dnt_offset', true ),
|
721 |
+
'grid' => get_post_meta( $post->ID, '_mtphr_dnt_grid', true ),
|
722 |
+
'grid_empty_rows' => get_post_meta( $post->ID, '_mtphr_dnt_grid_empty_rows', true ),
|
723 |
+
'grid_equal_width' => get_post_meta( $post->ID, '_mtphr_dnt_grid_equal_width', true ),
|
724 |
+
'grid_cols' => get_post_meta( $post->ID, '_mtphr_dnt_grid_cols', true ),
|
725 |
+
'grid_rows' => get_post_meta( $post->ID, '_mtphr_dnt_grid_rows', true ),
|
726 |
+
'grid_padding' => get_post_meta( $post->ID, '_mtphr_dnt_grid_padding', true ),
|
727 |
+
);
|
728 |
+
foreach( $values as $i=>$value ) {
|
729 |
+
if( $value == '' ) {
|
730 |
+
unset($values[$i]);
|
731 |
+
}
|
732 |
+
}
|
733 |
+
|
734 |
+
$values = wp_parse_args( $values, $defaults );
|
735 |
+
|
736 |
+
echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
|
737 |
+
|
738 |
+
echo '<table class="mtphr-dnt-table">';
|
739 |
+
|
740 |
+
echo '<tr>';
|
741 |
+
echo '<td class="mtphr-dnt-no-label">';
|
742 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_title" value="1" '.checked('1', $values['title'], false).' /> '.__('Display title', 'ditty-news-ticker').'</label>';
|
743 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_inline_title" value="1" '.checked('1', $values['inline_title'], false).' /> '.__('Inline title', 'ditty-news-ticker').'</label>';
|
744 |
+
echo '</td>';
|
745 |
+
echo '</tr>';
|
746 |
+
|
747 |
+
echo '<tr>';
|
748 |
+
echo '<td class="mtphr-dnt-no-label">';
|
749 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_shuffle" value="1" '.checked('1', $values['shuffle'], false).' /> '.__('Randomly shuffle the ticks', 'ditty-news-ticker').'</label>';
|
750 |
+
echo '</td>';
|
751 |
+
echo '</tr>';
|
752 |
+
|
753 |
+
echo '<tr>';
|
754 |
+
echo '<td class="mtphr-dnt-no-label">';
|
755 |
+
echo '<label>'.__('Ticker width <em>(optional)</em>', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_ticker_width" value="'.$values['width'].'" /></label>';
|
756 |
+
echo '</td>';
|
757 |
+
echo '</tr>';
|
758 |
+
|
759 |
+
echo '<tr>';
|
760 |
+
echo '<td class="mtphr-dnt-no-label">';
|
761 |
+
echo '<label>'.__('Offset ticks', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_offset" value="'.$values['offset'].'" /> '.__('px from the edge', 'ditty-news-ticker').'</label>';
|
762 |
+
echo '<br/><small><em>'.__('The amount of pixels ticks should start and end off the screen.', 'ditty-news-ticker').'</em></small>';
|
763 |
+
echo '</td>';
|
764 |
+
echo '</tr>';
|
765 |
+
|
766 |
+
echo '<tr>';
|
767 |
+
echo '<td class="mtphr-dnt-no-label">';
|
768 |
+
echo '<p class="mtphr-dnt-side-label">'.__('Grid Display', 'ditty-news-ticker').'</p>';
|
769 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_grid" value="1" '.checked('1', $values['grid'], false).' /> '.__('Display ticks in a grid', 'ditty-news-ticker').'</label>';
|
770 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_grid_empty_rows" value="1" '.checked('1', $values['grid_empty_rows'], false).' /> '.__('Render empty rows', 'ditty-news-ticker').'</label>';
|
771 |
+
echo '<label><input type="checkbox" name="_mtphr_dnt_grid_equal_width" value="1" '.checked('1', $values['grid_equal_width'], false).' /> '.__('Force equal column width', 'ditty-news-ticker').'</label>';
|
772 |
+
echo '<br/>';
|
773 |
+
echo '<label>'.__('Columns', 'ditty-news-ticker').' <input type="number" style="width:50px;" name="_mtphr_dnt_grid_cols" value="'.$values['grid_cols'].'" /></label>';
|
774 |
+
echo '<label>'.__('Rows', 'ditty-news-ticker').' <input type="number" style="width:50px;" name="_mtphr_dnt_grid_rows" value="'.$values['grid_rows'].'" /></label>';
|
775 |
+
echo '<br/>';
|
776 |
+
echo '<label>'.__('Cell padding', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_grid_padding" value="'.$values['grid_padding'].'" /></label>';
|
777 |
+
echo '</td>';
|
778 |
+
echo '</tr>';
|
779 |
+
|
780 |
+
echo '</table>';
|
781 |
+
}
|
782 |
+
}
|
783 |
+
|
784 |
+
|
785 |
+
|
786 |
+
|
787 |
+
|
788 |
+
|
789 |
+
/* --------------------------------------------------------- */
|
790 |
+
/* !Save the custom meta - 1.4.0 */
|
791 |
/* --------------------------------------------------------- */
|
792 |
|
793 |
function mtphr_dnt_metabox_save( $post_id ) {
|
817 |
// Update the type & mode
|
818 |
if( isset($_POST['_mtphr_dnt_type']) ) {
|
819 |
|
820 |
+
$type = isset($_POST['_mtphr_dnt_type']) ? sanitize_text_field($_POST['_mtphr_dnt_type']) : 'default';
|
821 |
+
$mode = isset($_POST['_mtphr_dnt_mode']) ? sanitize_text_field($_POST['_mtphr_dnt_mode']) : 'scroll';
|
822 |
|
823 |
update_post_meta( $post_id, '_mtphr_dnt_type', $type );
|
824 |
update_post_meta( $post_id, '_mtphr_dnt_mode', $mode );
|
825 |
}
|
826 |
|
827 |
+
// Save the default ticks
|
828 |
+
if( isset($_POST['_mtphr_dnt_ticks']) ) {
|
829 |
+
$sanitized_ticks = array();
|
830 |
+
if( count($_POST['_mtphr_dnt_ticks']) > 0 ) {
|
831 |
+
foreach( $_POST['_mtphr_dnt_ticks'] as $tick ) {
|
832 |
+
$sanitized_ticks[] = array(
|
833 |
+
'tick' => convert_chars(wptexturize($tick['tick'])),
|
834 |
+
'link' => esc_url($tick['link']),
|
835 |
+
'target' => $tick['target'],
|
836 |
+
'nofollow' => isset( $tick['nofollow'] ) ? $tick['nofollow'] : ''
|
837 |
+
);
|
838 |
+
}
|
839 |
+
}
|
840 |
+
update_post_meta( $post_id, '_mtphr_dnt_ticks', $sanitized_ticks );
|
841 |
+
}
|
842 |
|
843 |
+
// Save the mixed ticks
|
844 |
+
if( isset($_POST['_mtphr_dnt_mixed_ticks']) ) {
|
845 |
$sanitized_ticks = array();
|
846 |
+
if( count($_POST['_mtphr_dnt_mixed_ticks']) > 0 ) {
|
847 |
+
foreach( $_POST['_mtphr_dnt_mixed_ticks'] as $tick ) {
|
848 |
+
$sanitized_ticks[] = array(
|
849 |
+
'type' => $tick['type'],
|
850 |
+
'offset' => intval($tick['offset'])
|
851 |
+
);
|
852 |
+
}
|
853 |
}
|
854 |
update_post_meta( $post_id, '_mtphr_dnt_mixed_ticks', $sanitized_ticks );
|
855 |
}
|
856 |
+
|
857 |
+
// Save the scroll settings
|
858 |
+
if( isset($_POST['_mtphr_dnt_scroll_direction']) ) {
|
859 |
+
|
860 |
+
$direction = isset($_POST['_mtphr_dnt_scroll_direction']) ? $_POST['_mtphr_dnt_scroll_direction'] : 'left';
|
861 |
+
$init = isset($_POST['_mtphr_dnt_scroll_init']) ? $_POST['_mtphr_dnt_scroll_init'] : '';
|
862 |
+
$width = isset($_POST['_mtphr_dnt_scroll_width']) ? intval($_POST['_mtphr_dnt_scroll_width']) : 0;
|
863 |
+
$height = isset($_POST['_mtphr_dnt_scroll_height']) ? intval($_POST['_mtphr_dnt_scroll_height']) : 0;
|
864 |
+
$padding = isset($_POST['_mtphr_dnt_scroll_padding']) ? intval($_POST['_mtphr_dnt_scroll_padding']) : 0;
|
865 |
+
$margin = isset($_POST['_mtphr_dnt_scroll_margin']) ? intval($_POST['_mtphr_dnt_scroll_margin']) : 0;
|
866 |
+
$speed = isset($_POST['_mtphr_dnt_scroll_speed']) ? intval($_POST['_mtphr_dnt_scroll_speed']) : 10;
|
867 |
+
$pause = isset($_POST['_mtphr_dnt_scroll_pause']) ? $_POST['_mtphr_dnt_scroll_pause'] : '';
|
868 |
+
$spacing = isset($_POST['_mtphr_dnt_scroll_tick_spacing']) ? intval($_POST['_mtphr_dnt_scroll_tick_spacing']) : 40;
|
869 |
+
|
870 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_direction', $direction );
|
871 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_init', $init );
|
872 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_width', $width );
|
873 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_height', $height );
|
874 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_padding', $padding );
|
875 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_margin', $margin );
|
876 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_speed', $speed );
|
877 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_pause', $pause );
|
878 |
+
update_post_meta( $post_id, '_mtphr_dnt_scroll_tick_spacing', $spacing );
|
879 |
+
}
|
880 |
+
|
881 |
+
// Save the rotate settings
|
882 |
+
if( isset($_POST['_mtphr_dnt_rotate_type']) ) {
|
883 |
+
|
884 |
+
$type = isset($_POST['_mtphr_dnt_rotate_type']) ? $_POST['_mtphr_dnt_rotate_type'] : 'fade';
|
885 |
+
$reverse = isset($_POST['_mtphr_dnt_rotate_directional_nav_reverse']) ? $_POST['_mtphr_dnt_rotate_directional_nav_reverse'] : '';
|
886 |
+
$height = isset($_POST['_mtphr_dnt_rotate_height']) ? intval($_POST['_mtphr_dnt_rotate_height']) : 0;
|
887 |
+
$padding = isset($_POST['_mtphr_dnt_rotate_padding']) ? intval($_POST['_mtphr_dnt_rotate_padding']) : 0;
|
888 |
+
$margin = isset($_POST['_mtphr_dnt_rotate_margin']) ? intval($_POST['_mtphr_dnt_rotate_margin']) : 0;
|
889 |
+
$auto = isset($_POST['_mtphr_dnt_auto_rotate']) ? $_POST['_mtphr_dnt_auto_rotate'] : '';
|
890 |
+
$delay = isset($_POST['_mtphr_dnt_rotate_delay']) ? intval($_POST['_mtphr_dnt_rotate_delay']) : 7;
|
891 |
+
$pause = isset($_POST['_mtphr_dnt_rotate_pause']) ? $_POST['_mtphr_dnt_rotate_pause'] : '';
|
892 |
+
$speed = isset($_POST['_mtphr_dnt_rotate_speed']) ? intval($_POST['_mtphr_dnt_rotate_speed']) : 3;
|
893 |
+
$ease = isset($_POST['_mtphr_dnt_rotate_ease']) ? $_POST['_mtphr_dnt_rotate_ease'] : 'linear';
|
894 |
+
$directional_nav = isset($_POST['_mtphr_dnt_rotate_directional_nav']) ? $_POST['_mtphr_dnt_rotate_directional_nav'] : '';
|
895 |
+
$directional_nav_hide = isset($_POST['_mtphr_dnt_rotate_directional_nav_hide']) ? $_POST['_mtphr_dnt_rotate_directional_nav_hide'] : '';
|
896 |
+
$control_nav = isset($_POST['_mtphr_dnt_rotate_control_nav']) ? $_POST['_mtphr_dnt_rotate_control_nav'] : '';
|
897 |
+
$control_nav_type = isset($_POST['_mtphr_dnt_rotate_control_nav_type']) ? $_POST['_mtphr_dnt_rotate_control_nav_type'] : 'number';
|
898 |
+
|
899 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_type', $type );
|
900 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_directional_nav_reverse', $reverse );
|
901 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_height', $height );
|
902 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_padding', $padding );
|
903 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_margin', $margin );
|
904 |
+
update_post_meta( $post_id, '_mtphr_dnt_auto_rotate', $auto );
|
905 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_delay', $delay );
|
906 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_pause', $pause );
|
907 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_speed', $speed );
|
908 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_ease', $ease );
|
909 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_directional_nav', $directional_nav );
|
910 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_directional_nav_hide', $directional_nav_hide );
|
911 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_control_nav', $control_nav );
|
912 |
+
update_post_meta( $post_id, '_mtphr_dnt_rotate_control_nav_type', $control_nav_type );
|
913 |
+
}
|
914 |
+
|
915 |
+
// Save the list settings
|
916 |
+
if( isset($_POST['_mtphr_dnt_list_padding']) ) {
|
917 |
+
|
918 |
+
$padding = isset($_POST['_mtphr_dnt_list_padding']) ? intval($_POST['_mtphr_dnt_list_padding']) : 0;
|
919 |
+
$margin = isset($_POST['_mtphr_dnt_list_margin']) ? intval($_POST['_mtphr_dnt_list_margin']) : 0;
|
920 |
+
$spacing = isset($_POST['_mtphr_dnt_list_tick_spacing']) ? intval($_POST['_mtphr_dnt_list_tick_spacing']) : 10;
|
921 |
+
$paging = isset($_POST['_mtphr_dnt_list_tick_paging']) ? $_POST['_mtphr_dnt_list_tick_paging'] : '';
|
922 |
+
$count = isset($_POST['_mtphr_dnt_list_tick_count']) ? intval($_POST['_mtphr_dnt_list_tick_count']) : 0;
|
923 |
+
$prev_next = isset($_POST['_mtphr_dnt_list_tick_prev_next']) ? $_POST['_mtphr_dnt_list_tick_prev_next'] : '';
|
924 |
+
$prev_text = ( isset($_POST['_mtphr_dnt_list_tick_prev_text']) && $_POST['_mtphr_dnt_list_tick_prev_text'] != '' ) ? sanitize_text_field($_POST['_mtphr_dnt_list_tick_prev_text']) : __('« Previous', 'ditty-news-ticker');
|
925 |
+
$next_text = ( isset($_POST['_mtphr_dnt_list_tick_next_text']) && $_POST['_mtphr_dnt_list_tick_next_text'] != '' ) ? sanitize_text_field($_POST['_mtphr_dnt_list_tick_next_text']) : __('Next »', 'ditty-news-ticker');
|
926 |
+
|
927 |
+
update_post_meta( $post_id, '_mtphr_dnt_list_padding', $padding );
|
928 |
+
update_post_meta( $post_id, '_mtphr_dnt_list_margin', $margin );
|
929 |
+
update_post_meta( $post_id, '_mtphr_dnt_list_tick_spacing', $spacing );
|
930 |
+
update_post_meta( $post_id, '_mtphr_dnt_list_tick_paging', $paging );
|
931 |
+
update_post_meta( $post_id, '_mtphr_dnt_list_tick_count', $count );
|
932 |
+
update_post_meta( $post_id, '_mtphr_dnt_list_tick_prev_next', $prev_next );
|
933 |
+
update_post_meta( $post_id, '_mtphr_dnt_list_tick_prev_text', $prev_text );
|
934 |
+
update_post_meta( $post_id, '_mtphr_dnt_list_tick_next_text', $next_text );
|
935 |
+
}
|
936 |
+
|
937 |
+
// Save the global settings
|
938 |
+
if( isset($_POST['_mtphr_dnt_ticker_width']) ) {
|
939 |
+
|
940 |
+
$title = isset($_POST['_mtphr_dnt_title']) ? $_POST['_mtphr_dnt_title'] : '';
|
941 |
+
$inline_title = isset($_POST['_mtphr_dnt_inline_title']) ? $_POST['_mtphr_dnt_inline_title'] : '';
|
942 |
+
$shuffle = isset($_POST['_mtphr_dnt_shuffle']) ? $_POST['_mtphr_dnt_shuffle'] : '';
|
943 |
+
$width = isset($_POST['_mtphr_dnt_ticker_width']) ? intval($_POST['_mtphr_dnt_ticker_width']) : 0;
|
944 |
+
$offset = isset($_POST['_mtphr_dnt_offset']) ? intval($_POST['_mtphr_dnt_offset']) : 20;
|
945 |
+
$grid = isset($_POST['_mtphr_dnt_grid']) ? $_POST['_mtphr_dnt_grid'] : '';
|
946 |
+
$grid_empty_rows = isset($_POST['_mtphr_dnt_grid_empty_rows']) ? $_POST['_mtphr_dnt_grid_empty_rows'] : '';
|
947 |
+
$grid_equal_width = isset($_POST['_mtphr_dnt_grid_equal_width']) ? $_POST['_mtphr_dnt_grid_equal_width'] : '';
|
948 |
+
$grid_cols = isset($_POST['_mtphr_dnt_grid_cols']) ? intval($_POST['_mtphr_dnt_grid_cols']) : 2;
|
949 |
+
$grid_rows = isset($_POST['_mtphr_dnt_grid_rows']) ? intval($_POST['_mtphr_dnt_grid_rows']) : 2;
|
950 |
+
$grid_padding = isset($_POST['_mtphr_dnt_grid_padding']) ? intval($_POST['_mtphr_dnt_grid_padding']) : 5;
|
951 |
+
|
952 |
+
update_post_meta( $post_id, '_mtphr_dnt_title', $title );
|
953 |
+
update_post_meta( $post_id, '_mtphr_dnt_inline_title', $inline_title );
|
954 |
+
update_post_meta( $post_id, '_mtphr_dnt_shuffle', $shuffle );
|
955 |
+
update_post_meta( $post_id, '_mtphr_dnt_ticker_width', $width );
|
956 |
+
update_post_meta( $post_id, '_mtphr_dnt_offset', $offset );
|
957 |
+
update_post_meta( $post_id, '_mtphr_dnt_grid', $grid );
|
958 |
+
update_post_meta( $post_id, '_mtphr_dnt_grid_empty_rows', $grid_empty_rows );
|
959 |
+
update_post_meta( $post_id, '_mtphr_dnt_grid_equal_width', $grid_equal_width );
|
960 |
+
update_post_meta( $post_id, '_mtphr_dnt_grid_cols', $grid_cols );
|
961 |
+
update_post_meta( $post_id, '_mtphr_dnt_grid_rows', $grid_rows );
|
962 |
+
update_post_meta( $post_id, '_mtphr_dnt_grid_padding', $grid_padding );
|
963 |
+
}
|
964 |
}
|
965 |
add_action( 'save_post', 'mtphr_dnt_metabox_save' );
|
966 |
|
includes/metaboxer/metaboxer.css
CHANGED
@@ -27,9 +27,6 @@
|
|
27 |
.mtphr-dnt-metaboxer-field:last-child {
|
28 |
margin-bottom: 0;
|
29 |
}
|
30 |
-
.mtphr-dnt-metaboxer-field input[type="checkbox"] {
|
31 |
-
margin-top: 0;
|
32 |
-
}
|
33 |
.mtphr-dnt-metaboxer-field input[type="radio"] {
|
34 |
margin-top:-1px;
|
35 |
}
|
27 |
.mtphr-dnt-metaboxer-field:last-child {
|
28 |
margin-bottom: 0;
|
29 |
}
|
|
|
|
|
|
|
30 |
.mtphr-dnt-metaboxer-field input[type="radio"] {
|
31 |
margin-top:-1px;
|
32 |
}
|
includes/scripts.php
CHANGED
@@ -75,6 +75,10 @@ add_action( 'wp_enqueue_scripts', 'mtphr_dnt_scripts' );
|
|
75 |
*/
|
76 |
function mtphr_dnt_scripts() {
|
77 |
|
|
|
|
|
|
|
|
|
78 |
// Load the css
|
79 |
wp_register_style( 'ditty-news-ticker', MTPHR_DNT_URL.'/assets/css/style.css', false, MTPHR_DNT_VERSION );
|
80 |
wp_enqueue_style( 'ditty-news-ticker' );
|
75 |
*/
|
76 |
function mtphr_dnt_scripts() {
|
77 |
|
78 |
+
// Load the icon font css
|
79 |
+
wp_register_style( 'ditty-news-ticker-font', MTPHR_DNT_URL.'/assets/fontastic/styles.css', false, MTPHR_DNT_VERSION );
|
80 |
+
wp_enqueue_style( 'ditty-news-ticker-font' );
|
81 |
+
|
82 |
// Load the css
|
83 |
wp_register_style( 'ditty-news-ticker', MTPHR_DNT_URL.'/assets/css/style.css', false, MTPHR_DNT_VERSION );
|
84 |
wp_enqueue_style( 'ditty-news-ticker' );
|
includes/settings.php
CHANGED
@@ -1,19 +1,9 @@
|
|
1 |
<?php
|
2 |
-
/**
|
3 |
-
* The global settings
|
4 |
-
*
|
5 |
-
* @package Ditty News Ticker
|
6 |
-
*/
|
7 |
-
|
8 |
|
|
|
|
|
|
|
9 |
|
10 |
-
|
11 |
-
add_action( 'admin_menu', 'mtphr_dnt_settings_menu', 9 );
|
12 |
-
/**
|
13 |
-
* Create the settings page
|
14 |
-
*
|
15 |
-
* @since 1.0.0
|
16 |
-
*/
|
17 |
function mtphr_dnt_settings_menu() {
|
18 |
|
19 |
add_submenu_page(
|
@@ -25,70 +15,26 @@ function mtphr_dnt_settings_menu() {
|
|
25 |
'mtphr_dnt_settings_display' // The callback function used to render the options for this submenu item
|
26 |
);
|
27 |
}
|
|
|
28 |
|
29 |
|
|
|
|
|
|
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
*/
|
38 |
-
function mtphr_dnt_initialize_settings() {
|
39 |
-
|
40 |
-
/**
|
41 |
-
* General options sections
|
42 |
-
*/
|
43 |
-
$settings = array();
|
44 |
-
|
45 |
-
$settings['wysiwyg'] = array(
|
46 |
-
'title' => __( 'Visual Editor', 'ditty-news-ticker' ),
|
47 |
-
'type' => 'checkbox',
|
48 |
-
'label' => __( 'Use the visual editor for ticks', 'ditty-news-ticker' ),
|
49 |
-
'description' => __( '*The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after resaving the ticker.', 'ditty-news-ticker' )
|
50 |
-
);
|
51 |
-
|
52 |
-
$settings['css'] = array(
|
53 |
-
'title' => __( 'Custom CSS', 'ditty-news-ticker' ),
|
54 |
-
'type' => 'textarea',
|
55 |
-
'rows' => 20,
|
56 |
-
'class' => 'mtphr-dnt-custom-css',
|
57 |
-
'description' => __( 'Custom CSS will be added to the head of each page that includes a Ditty News Ticker.', 'ditty-news-ticker' )
|
58 |
-
);
|
59 |
-
if( false == get_option('mtphr_dnt_general_settings') ) {
|
60 |
-
add_option( 'mtphr_dnt_general_settings' );
|
61 |
-
}
|
62 |
-
|
63 |
-
/* Register the general options */
|
64 |
-
add_settings_section(
|
65 |
-
'mtphr_dnt_general_settings_section', // ID used to identify this section and with which to register options
|
66 |
-
'', // Title to be displayed on the administration page
|
67 |
-
'mtphr_dnt_general_settings_callback', // Callback used to render the description of the section
|
68 |
-
'mtphr_dnt_general_settings' // Page on which to add this section of options
|
69 |
-
);
|
70 |
-
|
71 |
-
if( is_array($settings) ) {
|
72 |
-
foreach( $settings as $id => $setting ) {
|
73 |
-
$setting['option'] = 'mtphr_dnt_general_settings';
|
74 |
-
$setting['option_id'] = $id;
|
75 |
-
$setting['id'] = 'mtphr_dnt_general_settings['.$id.']';
|
76 |
-
add_settings_field( $setting['id'], $setting['title'], 'mtphr_dnt_settings_callback', 'mtphr_dnt_general_settings', 'mtphr_dnt_general_settings_section', $setting);
|
77 |
-
}
|
78 |
-
}
|
79 |
-
|
80 |
-
// Register the fields with WordPress
|
81 |
-
register_setting( 'mtphr_dnt_general_settings', 'mtphr_dnt_general_settings' );
|
82 |
}
|
83 |
|
84 |
|
|
|
|
|
|
|
85 |
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Render the theme options page
|
89 |
-
*
|
90 |
-
* @since 1.0.6
|
91 |
-
*/
|
92 |
function mtphr_dnt_settings_display( $active_tab = null ) {
|
93 |
?>
|
94 |
<!-- Create a header in the default WordPress 'wrap' container -->
|
@@ -121,8 +67,8 @@ function mtphr_dnt_settings_display( $active_tab = null ) {
|
|
121 |
<form method="post" action="options.php">
|
122 |
<?php
|
123 |
settings_fields( $tabs[$active_tab] );
|
124 |
-
do_settings_sections( $tabs[$active_tab] );
|
125 |
-
|
126 |
?>
|
127 |
</form>
|
128 |
|
@@ -132,19 +78,132 @@ function mtphr_dnt_settings_display( $active_tab = null ) {
|
|
132 |
|
133 |
|
134 |
|
|
|
|
|
|
|
135 |
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
|
149 |
|
150 |
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
/* --------------------------------------------------------- */
|
4 |
+
/* !Create the settings page - 1.0.0 */
|
5 |
+
/* --------------------------------------------------------- */
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
function mtphr_dnt_settings_menu() {
|
8 |
|
9 |
add_submenu_page(
|
15 |
'mtphr_dnt_settings_display' // The callback function used to render the options for this submenu item
|
16 |
);
|
17 |
}
|
18 |
+
add_action( 'admin_menu', 'mtphr_dnt_settings_menu', 9 );
|
19 |
|
20 |
|
21 |
+
/* --------------------------------------------------------- */
|
22 |
+
/* !General options section callback 1.0.6 */
|
23 |
+
/* --------------------------------------------------------- */
|
24 |
|
25 |
+
function mtphr_dnt_general_settings_callback() {
|
26 |
+
?>
|
27 |
+
<div style="margin-bottom: 20px;">
|
28 |
+
<h4 style="margin-top:0;"><?php _e( 'The global settings to your news tickers.', 'ditty-news-ticker' ); ?></h4>
|
29 |
+
</div>
|
30 |
+
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
|
34 |
+
/* --------------------------------------------------------- */
|
35 |
+
/* !Render the settings page with tabs - 1.4.0 */
|
36 |
+
/* --------------------------------------------------------- */
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
function mtphr_dnt_settings_display( $active_tab = null ) {
|
39 |
?>
|
40 |
<!-- Create a header in the default WordPress 'wrap' container -->
|
67 |
<form method="post" action="options.php">
|
68 |
<?php
|
69 |
settings_fields( $tabs[$active_tab] );
|
70 |
+
do_settings_sections( $tabs[$active_tab] );
|
71 |
+
echo apply_filters( 'mtphr_dnt_settings_submit_button', get_submit_button() );
|
72 |
?>
|
73 |
</form>
|
74 |
|
78 |
|
79 |
|
80 |
|
81 |
+
/* --------------------------------------------------------- */
|
82 |
+
/* !Get the settings - 1.4.0 */
|
83 |
+
/* --------------------------------------------------------- */
|
84 |
|
85 |
+
if( !function_exists('mtphr_dnt_general_settings') ) {
|
86 |
+
function mtphr_dnt_general_settings() {
|
87 |
+
$settings = get_option( 'mtphr_dnt_general_settings', array() );
|
88 |
+
return wp_parse_args( $settings, mtphr_dnt_general_settings_defaults() );
|
89 |
+
}
|
90 |
+
}
|
91 |
+
if( !function_exists('mtphr_dnt_general_settings_defaults') ) {
|
92 |
+
function mtphr_dnt_general_settings_defaults() {
|
93 |
+
$defaults = array(
|
94 |
+
'wysiwyg' => '',
|
95 |
+
'css' => ''
|
96 |
+
);
|
97 |
+
return $defaults;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
/* --------------------------------------------------------- */
|
104 |
+
/* !Setup the settings - 1.4.0 */
|
105 |
+
/* --------------------------------------------------------- */
|
106 |
+
|
107 |
+
function mtphr_dnt_initialize_settings() {
|
108 |
+
|
109 |
+
$settings = mtphr_dnt_general_settings();
|
110 |
+
|
111 |
+
|
112 |
+
/* --------------------------------------------------------- */
|
113 |
+
/* !Add the setting sections - 1.4.0 */
|
114 |
+
/* --------------------------------------------------------- */
|
115 |
+
|
116 |
+
add_settings_section( 'mtphr_dnt_general_settings_section', __( 'Ditty News Ticker settings', 'ditty-news-ticker' ), false, 'mtphr_dnt_general_settings' );
|
117 |
+
|
118 |
+
|
119 |
+
/* --------------------------------------------------------- */
|
120 |
+
/* !Add the settings - 1.4.0 */
|
121 |
+
/* --------------------------------------------------------- */
|
122 |
+
|
123 |
+
/* Visual Editor */
|
124 |
+
$title = mtphr_dnt_settings_label( __( 'Visual Editor', 'ditty-news-ticker' ), __('Use the visual editor to create tick contents', 'ditty-news-ticker') );
|
125 |
+
add_settings_field( 'mtphr_dnt_general_settings_wysiwyg', $title, 'mtphr_dnt_general_settings_wysiwyg', 'mtphr_dnt_general_settings', 'mtphr_dnt_general_settings_section', array('settings' => $settings) );
|
126 |
+
|
127 |
+
/* Custom CSS */
|
128 |
+
$title = mtphr_dnt_settings_label( __( 'Custom CSS', 'ditty-news-ticker' ), __('Add custom css to style your ticker without modifying any external files', 'ditty-news-ticker') );
|
129 |
+
add_settings_field( 'mtphr_dnt_general_settings_css', $title, 'mtphr_dnt_general_settings_css', 'mtphr_dnt_general_settings', 'mtphr_dnt_general_settings_section', array('settings' => $settings) );
|
130 |
+
|
131 |
+
|
132 |
+
/* --------------------------------------------------------- */
|
133 |
+
/* !Register the settings - 1.4.0 */
|
134 |
+
/* --------------------------------------------------------- */
|
135 |
+
|
136 |
+
if( false == get_option('mtphr_dnt_general_settings') ) {
|
137 |
+
add_option( 'mtphr_dnt_general_settings' );
|
138 |
+
}
|
139 |
+
register_setting( 'mtphr_dnt_general_settings', 'mtphr_dnt_general_settings', 'mtphr_dnt_general_settings_sanitize' );
|
140 |
+
}
|
141 |
+
add_action( 'admin_init', 'mtphr_dnt_initialize_settings' );
|
142 |
+
|
143 |
+
|
144 |
+
|
145 |
+
/* --------------------------------------------------------- */
|
146 |
+
/* !WYSIWYG - 1.4.0 */
|
147 |
+
/* --------------------------------------------------------- */
|
148 |
+
|
149 |
+
if( !function_exists('mtphr_dnt_general_settings_wysiwyg') ) {
|
150 |
+
function mtphr_dnt_general_settings_wysiwyg( $args ) {
|
151 |
+
|
152 |
+
$settings = $args['settings'];
|
153 |
+
echo '<div id="mtphr_dnt_general_settings_wysiwyg">';
|
154 |
+
echo '<label><input type="checkbox" name="mtphr_dnt_general_settings[wysiwyg]" value="1" '.checked('1', $settings['wysiwyg'], false).' /> '.__('Use the visual editor for ticks', 'ditty-news-ticker').'</label>';
|
155 |
+
echo '<p><strong>'.__('Note:', 'ditty-news-ticker').'</strong> <em>'.__('The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after re-saving the ticker.', 'ditty-news-ticker').'</em></p>';
|
156 |
+
echo '</div>';
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
/* --------------------------------------------------------- */
|
161 |
+
/* !CSS - 1.4.0 */
|
162 |
+
/* --------------------------------------------------------- */
|
163 |
+
|
164 |
+
if( !function_exists('mtphr_dnt_general_settings_css') ) {
|
165 |
+
function mtphr_dnt_general_settings_css( $args ) {
|
166 |
+
|
167 |
+
$settings = $args['settings'];
|
168 |
+
echo '<div id="mtphr_dnt_general_settings_css">';
|
169 |
+
echo '<div class="mtphr-dnt-codemirror mtphr-dnt-codemirror-css">';
|
170 |
+
echo '<textarea name="mtphr_dnt_general_settings[css]" cols="60" rows="4">'.$settings['css'].'</textarea>';
|
171 |
+
echo '</div>';
|
172 |
+
echo '</div>';
|
173 |
}
|
174 |
+
}
|
175 |
+
|
176 |
+
|
177 |
+
|
178 |
+
/* --------------------------------------------------------- */
|
179 |
+
/* !Sanitize the setting fields - 1.4.0 */
|
180 |
+
/* --------------------------------------------------------- */
|
181 |
+
|
182 |
+
if( !function_exists('mtphr_dnt_general_settings_sanitize') ) {
|
183 |
+
function mtphr_dnt_general_settings_sanitize( $fields ) {
|
184 |
+
|
185 |
+
$fields['css'] = isset( $fields['css'] ) ? wp_kses_post($fields['css']) : '';
|
186 |
+
|
187 |
+
return $fields;
|
188 |
+
}
|
189 |
+
}
|
190 |
+
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
+
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
|
202 |
+
|
203 |
+
|
204 |
+
|
205 |
+
|
206 |
+
|
207 |
|
208 |
|
209 |
|
languages/ditty-news-ticker-ar_YE.mo
ADDED
Binary file
|
languages/ditty-news-ticker-ar_YE.po
ADDED
@@ -0,0 +1,777 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Ditty News Ticker v1.4.0\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2014-01-16 19:38:21+0000\n"
|
7 |
+
"Last-Translator: Osama Alshami <Demor17@gmail.com>\n"
|
8 |
+
"Language-Team: Osama Alshami <Demor17@gmail.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
|
13 |
+
"X-Generator: Poedit 1.6.3\n"
|
14 |
+
"X-Poedit-Language: \n"
|
15 |
+
"X-Poedit-Country: \n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
18 |
+
"X-Poedit-Basepath: .\n"
|
19 |
+
"X-Poedit-Bookmarks: \n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
"X-Textdomain-Support: yes"
|
22 |
+
|
23 |
+
#: includes/edit-columns.php:23
|
24 |
+
#@ ditty-news-ticker
|
25 |
+
msgid "Type"
|
26 |
+
msgstr "الفئة"
|
27 |
+
|
28 |
+
#: includes/edit-columns.php:24
|
29 |
+
#@ ditty-news-ticker
|
30 |
+
msgid "Mode"
|
31 |
+
msgstr "اسلوب العرض"
|
32 |
+
|
33 |
+
#: includes/edit-columns.php:25
|
34 |
+
#: includes/meta-boxes.php:18
|
35 |
+
#@ ditty-news-ticker
|
36 |
+
msgid "Shortcode"
|
37 |
+
msgstr "الإختصار"
|
38 |
+
|
39 |
+
#: includes/edit-columns.php:26
|
40 |
+
#: includes/meta-boxes.php:27
|
41 |
+
#@ ditty-news-ticker
|
42 |
+
msgid "Direct Function"
|
43 |
+
msgstr "دالة مباشرة"
|
44 |
+
|
45 |
+
#: includes/helpers.php:13
|
46 |
+
#@ ditty-news-ticker
|
47 |
+
msgid "Default"
|
48 |
+
msgstr "الافتراضي"
|
49 |
+
|
50 |
+
#: includes/helpers.php:37
|
51 |
+
#@ ditty-news-ticker
|
52 |
+
msgid "Scroll"
|
53 |
+
msgstr "تمرير"
|
54 |
+
|
55 |
+
#: includes/helpers.php:41
|
56 |
+
#@ ditty-news-ticker
|
57 |
+
msgid "Rotate"
|
58 |
+
msgstr "تناوب"
|
59 |
+
|
60 |
+
#: includes/helpers.php:45
|
61 |
+
#@ ditty-news-ticker
|
62 |
+
msgid "List"
|
63 |
+
msgstr "قائمة"
|
64 |
+
|
65 |
+
#: includes/help.php:59
|
66 |
+
#@ ditty-news-ticker
|
67 |
+
msgid "Scroll Mode"
|
68 |
+
msgstr "اسلوب عرض التمرير"
|
69 |
+
|
70 |
+
#: includes/help.php:66
|
71 |
+
#@ ditty-news-ticker
|
72 |
+
msgid "Rotate Mode"
|
73 |
+
msgstr "اسلوب عرض التناوب"
|
74 |
+
|
75 |
+
#: includes/help.php:73
|
76 |
+
#@ ditty-news-ticker
|
77 |
+
msgid "List Mode"
|
78 |
+
msgstr "اسلوب عرض القائمة"
|
79 |
+
|
80 |
+
#: includes/help.php:95
|
81 |
+
#: includes/widget.php:51
|
82 |
+
#@ ditty-news-ticker
|
83 |
+
msgid "Ditty News Ticker"
|
84 |
+
msgstr "شريط الاخبار"
|
85 |
+
|
86 |
+
#: includes/help.php:110
|
87 |
+
#@ ditty-news-ticker
|
88 |
+
msgid "For more information:"
|
89 |
+
msgstr "للمزيد من المعلومات:"
|
90 |
+
|
91 |
+
#: includes/help.php:111
|
92 |
+
#@ ditty-news-ticker
|
93 |
+
msgid "Visit the <a href=\"http://www.metaphorcreations.com\" target=\"_blank\">documentation</a> on the Ditty News Ticker website"
|
94 |
+
msgstr "قم بزيارة <a href=\"http://www.metaphorcreations.com\" target=\"_blank\">وثائق المساعدة</a> على موقع دايتي شريط الأخبار"
|
95 |
+
|
96 |
+
#: includes/help.php:126
|
97 |
+
#@ ditty-news-ticker
|
98 |
+
msgid "Add general information about Ditty News Ticker."
|
99 |
+
msgstr "إضافة معلومات عامة عم شريط الأخبار."
|
100 |
+
|
101 |
+
#: includes/help.php:135
|
102 |
+
#@ ditty-news-ticker
|
103 |
+
msgid "Add scroll mode info."
|
104 |
+
msgstr "إضافة معلومات عن اسلوب عرض التمرير"
|
105 |
+
|
106 |
+
#: includes/help.php:144
|
107 |
+
#@ ditty-news-ticker
|
108 |
+
msgid "Add rotate mode info."
|
109 |
+
msgstr "إضافة معلومات عن اسلوب عرض التناوب"
|
110 |
+
|
111 |
+
#: includes/help.php:153
|
112 |
+
#@ ditty-news-ticker
|
113 |
+
msgid "Add list mode info."
|
114 |
+
msgstr "إضافة معلومات عن اسلوب عرض القائمة"
|
115 |
+
|
116 |
+
#: includes/meta-boxes.php:65
|
117 |
+
#@ ditty-news-ticker
|
118 |
+
msgid "Ticker Type"
|
119 |
+
msgstr "نوع الشريط"
|
120 |
+
|
121 |
+
#: includes/meta-boxes.php:65
|
122 |
+
#@ ditty-news-ticker
|
123 |
+
msgid "View all types"
|
124 |
+
msgstr "عرض كل الأنواع"
|
125 |
+
|
126 |
+
#: includes/meta-boxes.php:221
|
127 |
+
#@ ditty-news-ticker
|
128 |
+
msgid "Ticker text"
|
129 |
+
msgstr "عناوين الشريط"
|
130 |
+
|
131 |
+
#: includes/meta-boxes.php:222
|
132 |
+
#@ ditty-news-ticker
|
133 |
+
msgid "Link"
|
134 |
+
msgstr "الرابط"
|
135 |
+
|
136 |
+
#: includes/meta-boxes.php:223
|
137 |
+
#@ ditty-news-ticker
|
138 |
+
msgid "Target"
|
139 |
+
msgstr "الهدف"
|
140 |
+
|
141 |
+
#: includes/meta-boxes.php:120
|
142 |
+
#@ ditty-news-ticker
|
143 |
+
msgid "Default Ticker Items"
|
144 |
+
msgstr "عناوين الشريط الاخباري"
|
145 |
+
|
146 |
+
#: includes/meta-boxes.php:86
|
147 |
+
#@ ditty-news-ticker
|
148 |
+
msgid "Ticker Mode"
|
149 |
+
msgstr "اسلوب عرض الشريط"
|
150 |
+
|
151 |
+
#: includes/meta-boxes.php:402
|
152 |
+
#@ ditty-news-ticker
|
153 |
+
msgid "Scroll direction"
|
154 |
+
msgstr "اتجاه التمرير"
|
155 |
+
|
156 |
+
#: includes/meta-boxes.php:406
|
157 |
+
#@ ditty-news-ticker
|
158 |
+
msgid "Left"
|
159 |
+
msgstr "يسار"
|
160 |
+
|
161 |
+
#: includes/meta-boxes.php:407
|
162 |
+
#@ ditty-news-ticker
|
163 |
+
msgid "Right"
|
164 |
+
msgstr "يمين"
|
165 |
+
|
166 |
+
#: includes/meta-boxes.php:408
|
167 |
+
#@ ditty-news-ticker
|
168 |
+
msgid "Up"
|
169 |
+
msgstr "اعلى"
|
170 |
+
|
171 |
+
#: includes/meta-boxes.php:409
|
172 |
+
#@ ditty-news-ticker
|
173 |
+
msgid "Down"
|
174 |
+
msgstr "اسفل"
|
175 |
+
|
176 |
+
#: includes/meta-boxes.php:416
|
177 |
+
#: includes/meta-boxes.php:533
|
178 |
+
#@ ditty-news-ticker
|
179 |
+
msgid "Tick dimensions"
|
180 |
+
msgstr "ابعاد الشريط"
|
181 |
+
|
182 |
+
#: includes/meta-boxes.php:420
|
183 |
+
#@ ditty-news-ticker
|
184 |
+
msgid "Width"
|
185 |
+
msgstr "العرض"
|
186 |
+
|
187 |
+
#: includes/meta-boxes.php:421
|
188 |
+
#: includes/meta-boxes.php:537
|
189 |
+
#@ ditty-news-ticker
|
190 |
+
msgid "Height"
|
191 |
+
msgstr "الارتفاع"
|
192 |
+
|
193 |
+
#: includes/meta-boxes.php:427
|
194 |
+
#@ ditty-news-ticker
|
195 |
+
msgid "Scroller padding"
|
196 |
+
msgstr "حاشية شريط التمرير"
|
197 |
+
|
198 |
+
#: includes/meta-boxes.php:431
|
199 |
+
#: includes/meta-boxes.php:547
|
200 |
+
#: includes/meta-boxes.php:656
|
201 |
+
#@ ditty-news-ticker
|
202 |
+
msgid "Vertical padding"
|
203 |
+
msgstr "الحاشية الرأسية"
|
204 |
+
|
205 |
+
#: includes/meta-boxes.php:432
|
206 |
+
#: includes/meta-boxes.php:548
|
207 |
+
#: includes/meta-boxes.php:657
|
208 |
+
#@ ditty-news-ticker
|
209 |
+
msgid "Vertical margin"
|
210 |
+
msgstr "الهامش الرأسي"
|
211 |
+
|
212 |
+
#: includes/meta-boxes.php:438
|
213 |
+
#@ ditty-news-ticker
|
214 |
+
msgid "Scroll speed"
|
215 |
+
msgstr "سرعة التمرير"
|
216 |
+
|
217 |
+
#: includes/meta-boxes.php:443
|
218 |
+
#: includes/meta-boxes.php:560
|
219 |
+
#@ ditty-news-ticker
|
220 |
+
msgid "Pause on mouse over"
|
221 |
+
msgstr "إيقاف مؤقت عند التمرير عليه بالفأرة"
|
222 |
+
|
223 |
+
#: includes/meta-boxes.php:449
|
224 |
+
#: includes/meta-boxes.php:663
|
225 |
+
#@ ditty-news-ticker
|
226 |
+
msgid "Tick spacing"
|
227 |
+
msgstr "المسافة بين العناوين"
|
228 |
+
|
229 |
+
#: includes/meta-boxes.php:453
|
230 |
+
#: includes/meta-boxes.php:667
|
231 |
+
#@ ditty-news-ticker
|
232 |
+
msgid "Pixels"
|
233 |
+
msgstr "بكسل"
|
234 |
+
|
235 |
+
#: includes/meta-boxes.php:142
|
236 |
+
#@ ditty-news-ticker
|
237 |
+
msgid "Scroll Settings"
|
238 |
+
msgstr "خيارات التمرير"
|
239 |
+
|
240 |
+
#: includes/meta-boxes.php:518
|
241 |
+
#@ ditty-news-ticker
|
242 |
+
msgid "Rotation type"
|
243 |
+
msgstr "نوع التناوب"
|
244 |
+
|
245 |
+
#: includes/meta-boxes.php:522
|
246 |
+
#@ ditty-news-ticker
|
247 |
+
msgid "Fade"
|
248 |
+
msgstr "تلاشي"
|
249 |
+
|
250 |
+
#: includes/meta-boxes.php:523
|
251 |
+
#@ ditty-news-ticker
|
252 |
+
msgid "Slide left"
|
253 |
+
msgstr "انزلاق من اليسار"
|
254 |
+
|
255 |
+
#: includes/meta-boxes.php:524
|
256 |
+
#@ ditty-news-ticker
|
257 |
+
msgid "Slide right"
|
258 |
+
msgstr "انزلاق من اليمين"
|
259 |
+
|
260 |
+
#: includes/meta-boxes.php:525
|
261 |
+
#@ ditty-news-ticker
|
262 |
+
msgid "Slide up"
|
263 |
+
msgstr "انزلاق من الاعلى"
|
264 |
+
|
265 |
+
#: includes/meta-boxes.php:526
|
266 |
+
#@ ditty-news-ticker
|
267 |
+
msgid "Slide down"
|
268 |
+
msgstr "انزلاق من الاسفل"
|
269 |
+
|
270 |
+
#: includes/meta-boxes.php:527
|
271 |
+
#@ ditty-news-ticker
|
272 |
+
msgid "Dynamic slide direction"
|
273 |
+
msgstr "اتجاه الانزلاق الديناميكي"
|
274 |
+
|
275 |
+
#: includes/meta-boxes.php:543
|
276 |
+
#@ ditty-news-ticker
|
277 |
+
msgid "Rotator padding"
|
278 |
+
msgstr "حاشية التناوب"
|
279 |
+
|
280 |
+
#: includes/meta-boxes.php:554
|
281 |
+
#@ ditty-news-ticker
|
282 |
+
msgid "Auto rotate"
|
283 |
+
msgstr "تناوب ذاتي"
|
284 |
+
|
285 |
+
#: includes/meta-boxes.php:558
|
286 |
+
#: includes/meta-boxes.php:586
|
287 |
+
#: includes/meta-boxes.php:597
|
288 |
+
#: includes/meta-boxes.php:677
|
289 |
+
#@ ditty-news-ticker
|
290 |
+
msgid "Enable"
|
291 |
+
msgstr "تفعيل"
|
292 |
+
|
293 |
+
#: includes/meta-boxes.php:559
|
294 |
+
#@ ditty-news-ticker
|
295 |
+
msgid "Seconds delay"
|
296 |
+
msgstr "المهلة بالثواني"
|
297 |
+
|
298 |
+
#: includes/meta-boxes.php:566
|
299 |
+
#@ ditty-news-ticker
|
300 |
+
msgid "Rotate speed"
|
301 |
+
msgstr "سرعة التناوب"
|
302 |
+
|
303 |
+
#: includes/meta-boxes.php:570
|
304 |
+
#@ ditty-news-ticker
|
305 |
+
msgid "Tenths of a second"
|
306 |
+
msgstr "أعشار من الثانية"
|
307 |
+
|
308 |
+
#: includes/meta-boxes.php:582
|
309 |
+
#@ ditty-news-ticker
|
310 |
+
msgid "Directional navigation"
|
311 |
+
msgstr "ازرار التحكم المباشرة"
|
312 |
+
|
313 |
+
#: includes/meta-boxes.php:587
|
314 |
+
#@ ditty-news-ticker
|
315 |
+
msgid "Autohide navigation"
|
316 |
+
msgstr "اخفاء آلي لازرار التحكم"
|
317 |
+
|
318 |
+
#: includes/meta-boxes.php:593
|
319 |
+
#@ ditty-news-ticker
|
320 |
+
msgid "Control navigation"
|
321 |
+
msgstr "ازرار التحكم"
|
322 |
+
|
323 |
+
#: includes/meta-boxes.php:598
|
324 |
+
#@ ditty-news-ticker
|
325 |
+
msgid "Numbers"
|
326 |
+
msgstr "الارقام"
|
327 |
+
|
328 |
+
#: includes/meta-boxes.php:599
|
329 |
+
#@ ditty-news-ticker
|
330 |
+
msgid "Buttons"
|
331 |
+
msgstr "الازرار"
|
332 |
+
|
333 |
+
#: includes/meta-boxes.php:153
|
334 |
+
#@ ditty-news-ticker
|
335 |
+
msgid "Rotate Settings"
|
336 |
+
msgstr "اعدادات التناوب"
|
337 |
+
|
338 |
+
#: includes/meta-boxes.php:652
|
339 |
+
#@ ditty-news-ticker
|
340 |
+
msgid "List padding"
|
341 |
+
msgstr "حاشية القائمة"
|
342 |
+
|
343 |
+
#: includes/meta-boxes.php:164
|
344 |
+
#@ ditty-news-ticker
|
345 |
+
msgid "List Settings"
|
346 |
+
msgstr "اعدادات القائمة"
|
347 |
+
|
348 |
+
#: includes/meta-boxes.php:742
|
349 |
+
#@ ditty-news-ticker
|
350 |
+
msgid "Display title"
|
351 |
+
msgstr "عرض العنوان"
|
352 |
+
|
353 |
+
#: includes/meta-boxes.php:743
|
354 |
+
#@ ditty-news-ticker
|
355 |
+
msgid "Inline title"
|
356 |
+
msgstr "العنوان على السطر"
|
357 |
+
|
358 |
+
#: includes/meta-boxes.php:755
|
359 |
+
#@ ditty-news-ticker
|
360 |
+
msgid "Ticker width <em>(optional)</em>"
|
361 |
+
msgstr "عرض الشريط <em>(اختياري)</em>"
|
362 |
+
|
363 |
+
#: includes/meta-boxes.php:175
|
364 |
+
#@ ditty-news-ticker
|
365 |
+
msgid "Global Settings"
|
366 |
+
msgstr "الاعدادات العامة"
|
367 |
+
|
368 |
+
#: includes/meta-boxes.php:21
|
369 |
+
#@ ditty-news-ticker
|
370 |
+
msgid "Select Shortcode"
|
371 |
+
msgstr "اختيار الأختصار"
|
372 |
+
|
373 |
+
#: includes/meta-boxes.php:31
|
374 |
+
#@ ditty-news-ticker
|
375 |
+
msgid "Select Function"
|
376 |
+
msgstr "تحديد الدالة"
|
377 |
+
|
378 |
+
#: includes/metaboxer/metaboxer.php:756
|
379 |
+
#@ ditty-news-ticker
|
380 |
+
msgid "Select Code"
|
381 |
+
msgstr "إضافة كود"
|
382 |
+
|
383 |
+
#: includes/post-types.php:20
|
384 |
+
#: includes/post-types.php:31
|
385 |
+
#@ ditty-news-ticker
|
386 |
+
msgid "News Tickers"
|
387 |
+
msgstr "شريط الاخبار"
|
388 |
+
|
389 |
+
#: includes/post-types.php:21
|
390 |
+
#@ ditty-news-ticker
|
391 |
+
msgid "News Ticker"
|
392 |
+
msgstr "شريط الاخبار"
|
393 |
+
|
394 |
+
#: includes/post-types.php:22
|
395 |
+
#@ ditty-news-ticker
|
396 |
+
msgid "Add New"
|
397 |
+
msgstr "اضافة جديد"
|
398 |
+
|
399 |
+
#: includes/post-types.php:23
|
400 |
+
#@ ditty-news-ticker
|
401 |
+
msgid "Add New News Ticker"
|
402 |
+
msgstr "إضافة شريط اخبار جديد"
|
403 |
+
|
404 |
+
#: includes/post-types.php:24
|
405 |
+
#@ ditty-news-ticker
|
406 |
+
msgid "Edit News Ticker"
|
407 |
+
msgstr "تحرير شريط الأخبار"
|
408 |
+
|
409 |
+
#: includes/post-types.php:25
|
410 |
+
#@ ditty-news-ticker
|
411 |
+
msgid "New News Ticker"
|
412 |
+
msgstr "شريط اخبار جديد"
|
413 |
+
|
414 |
+
#: includes/post-types.php:26
|
415 |
+
#@ ditty-news-ticker
|
416 |
+
msgid "View News Ticker"
|
417 |
+
msgstr "عرض شريط الاخبار"
|
418 |
+
|
419 |
+
#: includes/post-types.php:27
|
420 |
+
#@ ditty-news-ticker
|
421 |
+
msgid "Search News Tickers"
|
422 |
+
msgstr "بحث عن شريط اخبار"
|
423 |
+
|
424 |
+
#: includes/post-types.php:28
|
425 |
+
#@ ditty-news-ticker
|
426 |
+
msgid "No News Tickers Found"
|
427 |
+
msgstr "لم يتم العثور على عناوين ضمن شريط الاخبار"
|
428 |
+
|
429 |
+
#: includes/post-types.php:29
|
430 |
+
#@ ditty-news-ticker
|
431 |
+
msgid "No News Tickers Found In Trash"
|
432 |
+
msgstr "لم يتم العثور على شريط اخباري في سلة المهملات"
|
433 |
+
|
434 |
+
#: includes/post-types.php:62
|
435 |
+
#@ ditty-news-ticker
|
436 |
+
msgid "Ditty News Ticker Updated!"
|
437 |
+
msgstr "تم تحديث شريط الأخبار!"
|
438 |
+
|
439 |
+
#: includes/settings.php:11
|
440 |
+
#: includes/settings.php:12
|
441 |
+
#@ ditty-news-ticker
|
442 |
+
msgid "Settings"
|
443 |
+
msgstr "الاعدادات"
|
444 |
+
|
445 |
+
#: includes/settings.php:128
|
446 |
+
#@ ditty-news-ticker
|
447 |
+
msgid "Custom CSS"
|
448 |
+
msgstr "تنسيق خاص"
|
449 |
+
|
450 |
+
#: includes/settings.php:44
|
451 |
+
#@ ditty-news-ticker
|
452 |
+
msgid "Ditty News Ticker Settings"
|
453 |
+
msgstr "إعدادات شريط الأخبار"
|
454 |
+
|
455 |
+
#: includes/widget.php:42
|
456 |
+
#@ ditty-news-ticker
|
457 |
+
msgid "Displays a Ditty News Ticker."
|
458 |
+
msgstr "عرض شريط الأخبار."
|
459 |
+
|
460 |
+
#: includes/widget.php:137
|
461 |
+
#@ ditty-news-ticker
|
462 |
+
msgid "Title:"
|
463 |
+
msgstr "العنوان:"
|
464 |
+
|
465 |
+
#: includes/widget.php:143
|
466 |
+
#@ ditty-news-ticker
|
467 |
+
msgid "Select a Ticker:"
|
468 |
+
msgstr "اختار شريط:"
|
469 |
+
|
470 |
+
#: includes/widget.php:161
|
471 |
+
#@ ditty-news-ticker
|
472 |
+
msgid "Display Ticker Title?"
|
473 |
+
msgstr "عرض شريط العناوين؟"
|
474 |
+
|
475 |
+
#: includes/help.php:112
|
476 |
+
#@ ditty-news-ticker
|
477 |
+
msgid "View DNT extensions"
|
478 |
+
msgstr "عرض ملحقات DNT"
|
479 |
+
|
480 |
+
#: includes/meta-boxes.php:224
|
481 |
+
#@ ditty-news-ticker
|
482 |
+
msgid "NF"
|
483 |
+
msgstr "NF"
|
484 |
+
|
485 |
+
#: includes/settings.php:28
|
486 |
+
#@ ditty-news-ticker
|
487 |
+
msgid "The global settings to your news tickers."
|
488 |
+
msgstr "الإعدادات العامة للشريط الإخباري الخاص بك."
|
489 |
+
|
490 |
+
#: includes/meta-boxes.php:410
|
491 |
+
#@ ditty-news-ticker
|
492 |
+
msgid "Show first tick on init"
|
493 |
+
msgstr "عرض العنوان الاول مكتمل"
|
494 |
+
|
495 |
+
#: includes/meta-boxes.php:749
|
496 |
+
#@ ditty-news-ticker
|
497 |
+
msgid "Randomly shuffle the ticks"
|
498 |
+
msgstr "عرض العناوين ضمن الشريط عشوائياً"
|
499 |
+
|
500 |
+
#: includes/meta-boxes.php:761
|
501 |
+
#@ ditty-news-ticker
|
502 |
+
msgid "Offset ticks"
|
503 |
+
msgstr "الازاحة"
|
504 |
+
|
505 |
+
#: includes/meta-boxes.php:761
|
506 |
+
#@ ditty-news-ticker
|
507 |
+
msgid "px from the edge"
|
508 |
+
msgstr "بكسل من الحافة"
|
509 |
+
|
510 |
+
#: includes/meta-boxes.php:762
|
511 |
+
#@ ditty-news-ticker
|
512 |
+
msgid "The amount of pixels ticks should start and end off the screen."
|
513 |
+
msgstr "مقدار ازاحة الشريط بالبكسل يجب ان تبدأ وتنتهي بالشاشة."
|
514 |
+
|
515 |
+
#: includes/settings.php:124
|
516 |
+
#@ ditty-news-ticker
|
517 |
+
msgid "Visual Editor"
|
518 |
+
msgstr "المحرر المرئي"
|
519 |
+
|
520 |
+
#: includes/settings.php:154
|
521 |
+
#@ ditty-news-ticker
|
522 |
+
msgid "Use the visual editor for ticks"
|
523 |
+
msgstr "استخدام المحرر البصري لعناوين الاخبار"
|
524 |
+
|
525 |
+
#: includes/meta-boxes.php:205
|
526 |
+
#@ ditty-news-ticker
|
527 |
+
msgid "Force line breaks on carriage returns"
|
528 |
+
msgstr "اجبار فواصل الاسطر على إرجاع الاحرف"
|
529 |
+
|
530 |
+
#: includes/helpers.php:17
|
531 |
+
#@ ditty-news-ticker
|
532 |
+
msgid "Mixed"
|
533 |
+
msgstr "مختلط"
|
534 |
+
|
535 |
+
#: includes/meta-boxes.php:131
|
536 |
+
#@ ditty-news-ticker
|
537 |
+
msgid "Mixed Ticker Items"
|
538 |
+
msgstr "عناصر شريط مختلط"
|
539 |
+
|
540 |
+
#: includes/meta-boxes.php:301
|
541 |
+
#@ ditty-news-ticker
|
542 |
+
msgid "Add Tick"
|
543 |
+
msgstr "اضافة شريط"
|
544 |
+
|
545 |
+
#: includes/meta-boxes.php:307
|
546 |
+
#@ ditty-news-ticker
|
547 |
+
msgid "Tick selection"
|
548 |
+
msgstr "اختيار الشريط"
|
549 |
+
|
550 |
+
#: includes/meta-boxes.php:308
|
551 |
+
#@ ditty-news-ticker
|
552 |
+
msgid "Select the ticks you would like to display by choosing the tick type and the offset position of the selected feed"
|
553 |
+
msgstr "حدد شريط الاخبار الذي ترغب بعرضه عن طريق اختيار نوع الشريط وموضع الازاحة للتغذية المحدده"
|
554 |
+
|
555 |
+
#: includes/meta-boxes.php:336
|
556 |
+
#@ ditty-news-ticker
|
557 |
+
msgid "Type:"
|
558 |
+
msgstr "الفئة:"
|
559 |
+
|
560 |
+
#: includes/meta-boxes.php:338
|
561 |
+
#@ ditty-news-ticker
|
562 |
+
msgid "Select Tick Type"
|
563 |
+
msgstr "اختار نوع الشريط"
|
564 |
+
|
565 |
+
#: includes/meta-boxes.php:346
|
566 |
+
#@ ditty-news-ticker
|
567 |
+
msgid "Offset:"
|
568 |
+
msgstr "الازاحة:"
|
569 |
+
|
570 |
+
#: includes/meta-boxes.php:66
|
571 |
+
#@ ditty-news-ticker
|
572 |
+
msgid "Select the type of ticker you'd like to use"
|
573 |
+
msgstr "حدد نوع الشريط الذي ترغب باستخدامه."
|
574 |
+
|
575 |
+
#: includes/meta-boxes.php:87
|
576 |
+
#@ ditty-news-ticker
|
577 |
+
msgid "Select the mode of the ticker"
|
578 |
+
msgstr "اختر اسلوب عرض الشريط"
|
579 |
+
|
580 |
+
#: includes/meta-boxes.php:19
|
581 |
+
#@ ditty-news-ticker
|
582 |
+
msgid "Copy and paste this shortcode into a page or post to display the ticker within the post content."
|
583 |
+
msgstr ""
|
584 |
+
|
585 |
+
#: includes/meta-boxes.php:28
|
586 |
+
#@ ditty-news-ticker
|
587 |
+
msgid "Copy and paste this code directly into one of your theme files to display the ticker any where you want on your site."
|
588 |
+
msgstr ""
|
589 |
+
|
590 |
+
#: includes/meta-boxes.php:204
|
591 |
+
#@ ditty-news-ticker
|
592 |
+
msgid "Line breaks"
|
593 |
+
msgstr ""
|
594 |
+
|
595 |
+
#: includes/meta-boxes.php:208
|
596 |
+
#@ ditty-news-ticker
|
597 |
+
msgid "Force line breaks"
|
598 |
+
msgstr ""
|
599 |
+
|
600 |
+
#: includes/meta-boxes.php:214
|
601 |
+
#@ ditty-news-ticker
|
602 |
+
msgid "Ticks"
|
603 |
+
msgstr ""
|
604 |
+
|
605 |
+
#: includes/meta-boxes.php:215
|
606 |
+
#@ ditty-news-ticker
|
607 |
+
msgid "Add an unlimited number of ticks to your ticker"
|
608 |
+
msgstr ""
|
609 |
+
|
610 |
+
#: includes/meta-boxes.php:403
|
611 |
+
#@ ditty-news-ticker
|
612 |
+
msgid "Set the scroll direction of the ticker"
|
613 |
+
msgstr ""
|
614 |
+
|
615 |
+
#: includes/meta-boxes.php:417
|
616 |
+
#: includes/meta-boxes.php:534
|
617 |
+
#@ ditty-news-ticker
|
618 |
+
msgid "Override the auto dimensions with specific values"
|
619 |
+
msgstr ""
|
620 |
+
|
621 |
+
#: includes/meta-boxes.php:428
|
622 |
+
#@ ditty-news-ticker
|
623 |
+
msgid "Set the vertical spacing of the scrolling data"
|
624 |
+
msgstr ""
|
625 |
+
|
626 |
+
#: includes/meta-boxes.php:439
|
627 |
+
#@ ditty-news-ticker
|
628 |
+
msgid "Set the speed of the scrolling data"
|
629 |
+
msgstr ""
|
630 |
+
|
631 |
+
#: includes/meta-boxes.php:450
|
632 |
+
#@ ditty-news-ticker
|
633 |
+
msgid "Set the spacing between scrolling data"
|
634 |
+
msgstr ""
|
635 |
+
|
636 |
+
#: includes/meta-boxes.php:519
|
637 |
+
#@ ditty-news-ticker
|
638 |
+
msgid "Set the type of rotation for the ticker"
|
639 |
+
msgstr ""
|
640 |
+
|
641 |
+
#: includes/meta-boxes.php:544
|
642 |
+
#@ ditty-news-ticker
|
643 |
+
msgid "Set the vertical spacing of the rotating data"
|
644 |
+
msgstr ""
|
645 |
+
|
646 |
+
#: includes/meta-boxes.php:555
|
647 |
+
#@ ditty-news-ticker
|
648 |
+
msgid "Set the delay between rotations"
|
649 |
+
msgstr ""
|
650 |
+
|
651 |
+
#: includes/meta-boxes.php:567
|
652 |
+
#@ ditty-news-ticker
|
653 |
+
msgid "Set the speed & easing of the rotation"
|
654 |
+
msgstr ""
|
655 |
+
|
656 |
+
#: includes/meta-boxes.php:583
|
657 |
+
#@ ditty-news-ticker
|
658 |
+
msgid "Set the directional navigation options"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
+
#: includes/meta-boxes.php:594
|
662 |
+
#@ ditty-news-ticker
|
663 |
+
msgid "Set the control navigation options"
|
664 |
+
msgstr ""
|
665 |
+
|
666 |
+
#: includes/meta-boxes.php:624
|
667 |
+
#: includes/meta-boxes.php:924
|
668 |
+
#@ ditty-news-ticker
|
669 |
+
msgid "« Previous"
|
670 |
+
msgstr ""
|
671 |
+
|
672 |
+
#: includes/meta-boxes.php:625
|
673 |
+
#: includes/meta-boxes.php:925
|
674 |
+
#@ ditty-news-ticker
|
675 |
+
msgid "Next »"
|
676 |
+
msgstr ""
|
677 |
+
|
678 |
+
#: includes/meta-boxes.php:653
|
679 |
+
#@ ditty-news-ticker
|
680 |
+
msgid "Set the vertical spacing of the list container"
|
681 |
+
msgstr ""
|
682 |
+
|
683 |
+
#: includes/meta-boxes.php:664
|
684 |
+
#@ ditty-news-ticker
|
685 |
+
msgid "Set the spacing between ticks"
|
686 |
+
msgstr ""
|
687 |
+
|
688 |
+
#: includes/meta-boxes.php:673
|
689 |
+
#@ ditty-news-ticker
|
690 |
+
msgid "List paging"
|
691 |
+
msgstr ""
|
692 |
+
|
693 |
+
#: includes/meta-boxes.php:674
|
694 |
+
#@ ditty-news-ticker
|
695 |
+
msgid "Break the list up into pages"
|
696 |
+
msgstr ""
|
697 |
+
|
698 |
+
#: includes/meta-boxes.php:678
|
699 |
+
#@ ditty-news-ticker
|
700 |
+
msgid "Ticks per page"
|
701 |
+
msgstr ""
|
702 |
+
|
703 |
+
#: includes/meta-boxes.php:680
|
704 |
+
#@ ditty-news-ticker
|
705 |
+
msgid "Enable previous & next links"
|
706 |
+
msgstr ""
|
707 |
+
|
708 |
+
#: includes/meta-boxes.php:682
|
709 |
+
#@ ditty-news-ticker
|
710 |
+
msgid "Previous text"
|
711 |
+
msgstr ""
|
712 |
+
|
713 |
+
#: includes/meta-boxes.php:683
|
714 |
+
#@ ditty-news-ticker
|
715 |
+
msgid "Next text"
|
716 |
+
msgstr ""
|
717 |
+
|
718 |
+
#: includes/meta-boxes.php:768
|
719 |
+
#@ ditty-news-ticker
|
720 |
+
msgid "Grid Display"
|
721 |
+
msgstr ""
|
722 |
+
|
723 |
+
#: includes/meta-boxes.php:769
|
724 |
+
#@ ditty-news-ticker
|
725 |
+
msgid "Display ticks in a grid"
|
726 |
+
msgstr ""
|
727 |
+
|
728 |
+
#: includes/meta-boxes.php:770
|
729 |
+
#@ ditty-news-ticker
|
730 |
+
msgid "Render empty rows"
|
731 |
+
msgstr ""
|
732 |
+
|
733 |
+
#: includes/meta-boxes.php:771
|
734 |
+
#@ ditty-news-ticker
|
735 |
+
msgid "Force equal column width"
|
736 |
+
msgstr ""
|
737 |
+
|
738 |
+
#: includes/meta-boxes.php:773
|
739 |
+
#@ ditty-news-ticker
|
740 |
+
msgid "Columns"
|
741 |
+
msgstr ""
|
742 |
+
|
743 |
+
#: includes/meta-boxes.php:774
|
744 |
+
#@ ditty-news-ticker
|
745 |
+
msgid "Rows"
|
746 |
+
msgstr ""
|
747 |
+
|
748 |
+
#: includes/meta-boxes.php:776
|
749 |
+
#@ ditty-news-ticker
|
750 |
+
msgid "Cell padding"
|
751 |
+
msgstr ""
|
752 |
+
|
753 |
+
#: includes/settings.php:116
|
754 |
+
#@ ditty-news-ticker
|
755 |
+
msgid "Ditty News Ticker settings"
|
756 |
+
msgstr ""
|
757 |
+
|
758 |
+
#: includes/settings.php:124
|
759 |
+
#@ ditty-news-ticker
|
760 |
+
msgid "Use the visual editor to create tick contents"
|
761 |
+
msgstr ""
|
762 |
+
|
763 |
+
#: includes/settings.php:128
|
764 |
+
#@ ditty-news-ticker
|
765 |
+
msgid "Add custom css to style your ticker without modifying any external files"
|
766 |
+
msgstr ""
|
767 |
+
|
768 |
+
#: includes/settings.php:155
|
769 |
+
#@ ditty-news-ticker
|
770 |
+
msgid "Note:"
|
771 |
+
msgstr ""
|
772 |
+
|
773 |
+
#: includes/settings.php:155
|
774 |
+
#@ ditty-news-ticker
|
775 |
+
msgid "The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after re-saving the ticker."
|
776 |
+
msgstr ""
|
777 |
+
|
languages/ditty-news-ticker-en_US.mo
CHANGED
Binary file
|
languages/ditty-news-ticker-en_US.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Ditty News Ticker v1.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: admin <joe@metaphorcreations.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -31,12 +31,13 @@ msgid "Mode"
|
|
31 |
msgstr "Mode"
|
32 |
|
33 |
#: includes/edit-columns.php:25
|
34 |
-
#: includes/meta-boxes.php:
|
35 |
#@ ditty-news-ticker
|
36 |
msgid "Shortcode"
|
37 |
msgstr "Shortcode"
|
38 |
|
39 |
#: includes/edit-columns.php:26
|
|
|
40 |
#@ ditty-news-ticker
|
41 |
msgid "Direct Function"
|
42 |
msgstr "Direct Function"
|
@@ -112,361 +113,268 @@ msgstr "Add rotate mode info."
|
|
112 |
msgid "Add list mode info."
|
113 |
msgstr "Add list mode info."
|
114 |
|
115 |
-
#: includes/meta-boxes.php:
|
116 |
-
#: includes/meta-boxes.php:581
|
117 |
#@ ditty-news-ticker
|
118 |
msgid "Ticker Type"
|
119 |
msgstr "Ticker Type"
|
120 |
|
121 |
-
#: includes/meta-boxes.php:
|
122 |
-
#: includes/meta-boxes.php:581
|
123 |
#@ ditty-news-ticker
|
124 |
msgid "View all types"
|
125 |
msgstr "View all types"
|
126 |
|
127 |
-
#: includes/meta-boxes.php:
|
128 |
#@ ditty-news-ticker
|
129 |
msgid "Ticker text"
|
130 |
msgstr "Ticker text"
|
131 |
|
132 |
-
#: includes/meta-boxes.php:
|
133 |
#@ ditty-news-ticker
|
134 |
msgid "Link"
|
135 |
msgstr "Link"
|
136 |
|
137 |
-
#: includes/meta-boxes.php:
|
138 |
#@ ditty-news-ticker
|
139 |
msgid "Target"
|
140 |
msgstr "Target"
|
141 |
|
142 |
-
#: includes/meta-boxes.php:
|
143 |
#@ ditty-news-ticker
|
144 |
msgid "Default Ticker Items"
|
145 |
msgstr "Default Ticker Items"
|
146 |
|
147 |
-
#: includes/meta-boxes.php:
|
148 |
-
#: includes/meta-boxes.php:602
|
149 |
#@ ditty-news-ticker
|
150 |
msgid "Ticker Mode"
|
151 |
msgstr "Ticker Mode"
|
152 |
|
153 |
-
#: includes/meta-boxes.php:
|
154 |
#@ ditty-news-ticker
|
155 |
msgid "Scroll direction"
|
156 |
msgstr "Scroll direction"
|
157 |
|
158 |
-
#: includes/meta-boxes.php:
|
159 |
#@ ditty-news-ticker
|
160 |
msgid "Left"
|
161 |
msgstr "Left"
|
162 |
|
163 |
-
#: includes/meta-boxes.php:
|
164 |
#@ ditty-news-ticker
|
165 |
msgid "Right"
|
166 |
msgstr "Right"
|
167 |
|
168 |
-
#: includes/meta-boxes.php:
|
169 |
#@ ditty-news-ticker
|
170 |
msgid "Up"
|
171 |
msgstr "Up"
|
172 |
|
173 |
-
#: includes/meta-boxes.php:
|
174 |
#@ ditty-news-ticker
|
175 |
msgid "Down"
|
176 |
msgstr "Down"
|
177 |
|
178 |
-
#: includes/meta-boxes.php:
|
179 |
-
|
180 |
-
msgid "Set the scroll direction of the ticker."
|
181 |
-
msgstr "Set the scroll direction of the ticker."
|
182 |
-
|
183 |
-
#: includes/meta-boxes.php:185
|
184 |
-
#: includes/meta-boxes.php:293
|
185 |
#@ ditty-news-ticker
|
186 |
msgid "Tick dimensions"
|
187 |
msgstr "Tick dimensions"
|
188 |
|
189 |
-
#: includes/meta-boxes.php:
|
190 |
#@ ditty-news-ticker
|
191 |
msgid "Width"
|
192 |
msgstr "Width"
|
193 |
|
194 |
-
#: includes/meta-boxes.php:
|
195 |
-
#: includes/meta-boxes.php:
|
196 |
-
#@ ditty-news-ticker
|
197 |
-
msgid "Override the auto dimensions with specific values."
|
198 |
-
msgstr "Override the auto dimensions with specific values."
|
199 |
-
|
200 |
-
#: includes/meta-boxes.php:193
|
201 |
-
#: includes/meta-boxes.php:295
|
202 |
#@ ditty-news-ticker
|
203 |
msgid "Height"
|
204 |
msgstr "Height"
|
205 |
|
206 |
-
#: includes/meta-boxes.php:
|
207 |
#@ ditty-news-ticker
|
208 |
msgid "Scroller padding"
|
209 |
msgstr "Scroller padding"
|
210 |
|
211 |
-
#: includes/meta-boxes.php:
|
212 |
-
#: includes/meta-boxes.php:
|
213 |
-
#: includes/meta-boxes.php:
|
214 |
#@ ditty-news-ticker
|
215 |
msgid "Vertical padding"
|
216 |
msgstr "Vertical padding"
|
217 |
|
218 |
-
#: includes/meta-boxes.php:
|
219 |
-
|
220 |
-
|
221 |
-
msgstr "Set the vertical spacing of the scrolling data."
|
222 |
-
|
223 |
-
#: includes/meta-boxes.php:210
|
224 |
-
#: includes/meta-boxes.php:311
|
225 |
-
#: includes/meta-boxes.php:425
|
226 |
#@ ditty-news-ticker
|
227 |
msgid "Vertical margin"
|
228 |
msgstr "Vertical margin"
|
229 |
|
230 |
-
#: includes/meta-boxes.php:
|
231 |
#@ ditty-news-ticker
|
232 |
msgid "Scroll speed"
|
233 |
msgstr "Scroll speed"
|
234 |
|
235 |
-
#: includes/meta-boxes.php:
|
236 |
-
|
237 |
-
msgid "Set the speed of the scrolling data."
|
238 |
-
msgstr "Set the speed of the scrolling data."
|
239 |
-
|
240 |
-
#: includes/meta-boxes.php:225
|
241 |
-
#: includes/meta-boxes.php:331
|
242 |
#@ ditty-news-ticker
|
243 |
msgid "Pause on mouse over"
|
244 |
msgstr "Pause on mouse over"
|
245 |
|
246 |
-
#: includes/meta-boxes.php:
|
247 |
-
#: includes/meta-boxes.php:
|
248 |
#@ ditty-news-ticker
|
249 |
msgid "Tick spacing"
|
250 |
msgstr "Tick spacing"
|
251 |
|
252 |
-
#: includes/meta-boxes.php:
|
253 |
-
#: includes/meta-boxes.php:
|
254 |
#@ ditty-news-ticker
|
255 |
msgid "Pixels"
|
256 |
msgstr "Pixels"
|
257 |
|
258 |
-
#: includes/meta-boxes.php:
|
259 |
-
#@ ditty-news-ticker
|
260 |
-
msgid "Set the spacing between scrolling data."
|
261 |
-
msgstr "Set the spacing between scrolling data."
|
262 |
-
|
263 |
-
#: includes/meta-boxes.php:243
|
264 |
#@ ditty-news-ticker
|
265 |
msgid "Scroll Settings"
|
266 |
msgstr "Scroll Settings"
|
267 |
|
268 |
-
#: includes/meta-boxes.php:
|
269 |
#@ ditty-news-ticker
|
270 |
msgid "Rotation type"
|
271 |
msgstr "Rotation type"
|
272 |
|
273 |
-
#: includes/meta-boxes.php:
|
274 |
#@ ditty-news-ticker
|
275 |
msgid "Fade"
|
276 |
msgstr "Fade"
|
277 |
|
278 |
-
#: includes/meta-boxes.php:
|
279 |
#@ ditty-news-ticker
|
280 |
msgid "Slide left"
|
281 |
msgstr "Slide left"
|
282 |
|
283 |
-
#: includes/meta-boxes.php:
|
284 |
#@ ditty-news-ticker
|
285 |
msgid "Slide right"
|
286 |
msgstr "Slide right"
|
287 |
|
288 |
-
#: includes/meta-boxes.php:
|
289 |
#@ ditty-news-ticker
|
290 |
msgid "Slide up"
|
291 |
msgstr "Slide up"
|
292 |
|
293 |
-
#: includes/meta-boxes.php:
|
294 |
#@ ditty-news-ticker
|
295 |
msgid "Slide down"
|
296 |
msgstr "Slide down"
|
297 |
|
298 |
-
#: includes/meta-boxes.php:
|
299 |
-
#@ ditty-news-ticker
|
300 |
-
msgid "Set the type of rotation for the ticker."
|
301 |
-
msgstr "Set the type of rotation for the ticker."
|
302 |
-
|
303 |
-
#: includes/meta-boxes.php:284
|
304 |
#@ ditty-news-ticker
|
305 |
msgid "Dynamic slide direction"
|
306 |
msgstr "Dynamic slide direction"
|
307 |
|
308 |
-
#: includes/meta-boxes.php:
|
309 |
#@ ditty-news-ticker
|
310 |
msgid "Rotator padding"
|
311 |
msgstr "Rotator padding"
|
312 |
|
313 |
-
#: includes/meta-boxes.php:
|
314 |
-
#@ ditty-news-ticker
|
315 |
-
msgid "Set the vertical spacing of the rotating data."
|
316 |
-
msgstr "Set the vertical spacing of the rotating data."
|
317 |
-
|
318 |
-
#: includes/meta-boxes.php:320
|
319 |
#@ ditty-news-ticker
|
320 |
msgid "Auto rotate"
|
321 |
msgstr "Auto rotate"
|
322 |
|
323 |
-
#: includes/meta-boxes.php:
|
324 |
-
#: includes/meta-boxes.php:
|
325 |
-
#: includes/meta-boxes.php:
|
|
|
326 |
#@ ditty-news-ticker
|
327 |
msgid "Enable"
|
328 |
msgstr "Enable"
|
329 |
|
330 |
-
#: includes/meta-boxes.php:
|
331 |
-
#@ ditty-news-ticker
|
332 |
-
msgid "Set the delay between rotations."
|
333 |
-
msgstr "Set the delay between rotations."
|
334 |
-
|
335 |
-
#: includes/meta-boxes.php:327
|
336 |
#@ ditty-news-ticker
|
337 |
msgid "Seconds delay"
|
338 |
msgstr "Seconds delay"
|
339 |
|
340 |
-
#: includes/meta-boxes.php:
|
341 |
#@ ditty-news-ticker
|
342 |
msgid "Rotate speed"
|
343 |
msgstr "Rotate speed"
|
344 |
|
345 |
-
#: includes/meta-boxes.php:
|
346 |
#@ ditty-news-ticker
|
347 |
msgid "Tenths of a second"
|
348 |
msgstr "Tenths of a second"
|
349 |
|
350 |
-
#: includes/meta-boxes.php:
|
351 |
-
#@ ditty-news-ticker
|
352 |
-
msgid "Set the speed & easing of the rotation."
|
353 |
-
msgstr "Set the speed & easing of the rotation."
|
354 |
-
|
355 |
-
#: includes/meta-boxes.php:356
|
356 |
#@ ditty-news-ticker
|
357 |
msgid "Directional navigation"
|
358 |
msgstr "Directional navigation"
|
359 |
|
360 |
-
#: includes/meta-boxes.php:
|
361 |
-
#@ ditty-news-ticker
|
362 |
-
msgid "Set the directional navigation options."
|
363 |
-
msgstr "Set the directional navigation options."
|
364 |
-
|
365 |
-
#: includes/meta-boxes.php:362
|
366 |
#@ ditty-news-ticker
|
367 |
msgid "Autohide navigation"
|
368 |
msgstr "Autohide navigation"
|
369 |
|
370 |
-
#: includes/meta-boxes.php:
|
371 |
#@ ditty-news-ticker
|
372 |
msgid "Control navigation"
|
373 |
msgstr "Control navigation"
|
374 |
|
375 |
-
#: includes/meta-boxes.php:
|
376 |
-
#@ ditty-news-ticker
|
377 |
-
msgid "Set the control navigation options."
|
378 |
-
msgstr "Set the control navigation options."
|
379 |
-
|
380 |
-
#: includes/meta-boxes.php:378
|
381 |
#@ ditty-news-ticker
|
382 |
msgid "Numbers"
|
383 |
msgstr "Numbers"
|
384 |
|
385 |
-
#: includes/meta-boxes.php:
|
386 |
#@ ditty-news-ticker
|
387 |
msgid "Buttons"
|
388 |
msgstr "Buttons"
|
389 |
|
390 |
-
#: includes/meta-boxes.php:
|
391 |
#@ ditty-news-ticker
|
392 |
msgid "Rotate Settings"
|
393 |
msgstr "Rotate Settings"
|
394 |
|
395 |
-
#: includes/meta-boxes.php:
|
396 |
#@ ditty-news-ticker
|
397 |
msgid "List padding"
|
398 |
msgstr "List padding"
|
399 |
|
400 |
-
#: includes/meta-boxes.php:
|
401 |
-
#@ ditty-news-ticker
|
402 |
-
msgid "Set the vertical spacing of the list container."
|
403 |
-
msgstr "Set the vertical spacing of the list container."
|
404 |
-
|
405 |
-
#: includes/meta-boxes.php:437
|
406 |
-
#@ ditty-news-ticker
|
407 |
-
msgid "Set the spacing between ticks."
|
408 |
-
msgstr "Set the spacing between ticks."
|
409 |
-
|
410 |
-
#: includes/meta-boxes.php:443
|
411 |
#@ ditty-news-ticker
|
412 |
msgid "List Settings"
|
413 |
msgstr "List Settings"
|
414 |
|
415 |
-
#: includes/meta-boxes.php:
|
416 |
#@ ditty-news-ticker
|
417 |
msgid "Display title"
|
418 |
msgstr "Display title"
|
419 |
|
420 |
-
#: includes/meta-boxes.php:
|
421 |
#@ ditty-news-ticker
|
422 |
msgid "Inline title"
|
423 |
msgstr "Inline title"
|
424 |
|
425 |
-
#: includes/meta-boxes.php:
|
426 |
#@ ditty-news-ticker
|
427 |
msgid "Ticker width <em>(optional)</em>"
|
428 |
msgstr "Ticker width <em>(optional)</em>"
|
429 |
|
430 |
-
#: includes/meta-boxes.php:
|
431 |
-
#@ ditty-news-ticker
|
432 |
-
msgid "Override the auto width a with specific value."
|
433 |
-
msgstr "Override the auto width a with specific value."
|
434 |
-
|
435 |
-
#: includes/meta-boxes.php:506
|
436 |
#@ ditty-news-ticker
|
437 |
msgid "Global Settings"
|
438 |
msgstr "Global Settings"
|
439 |
|
440 |
-
#: includes/meta-boxes.php:
|
441 |
#@ ditty-news-ticker
|
442 |
msgid "Select Shortcode"
|
443 |
msgstr "Select Shortcode"
|
444 |
|
445 |
-
#: includes/meta-boxes.php:
|
446 |
-
#@ ditty-news-ticker
|
447 |
-
msgid "Use this shortcode to insert the ticker into a post/page."
|
448 |
-
msgstr "Use this shortcode to insert the ticker into a post/page."
|
449 |
-
|
450 |
-
#: includes/meta-boxes.php:542
|
451 |
-
#@ ditty-news-ticker
|
452 |
-
msgid "Direct function"
|
453 |
-
msgstr "Direct function"
|
454 |
-
|
455 |
-
#: includes/meta-boxes.php:543
|
456 |
#@ ditty-news-ticker
|
457 |
msgid "Select Function"
|
458 |
msgstr "Select Function"
|
459 |
|
460 |
-
#: includes/meta-boxes.php:544
|
461 |
-
#@ ditty-news-ticker
|
462 |
-
msgid "Place this code directly into your theme to display the ticker."
|
463 |
-
msgstr "Place this code directly into your theme to display the ticker."
|
464 |
-
|
465 |
-
#: includes/meta-boxes.php:550
|
466 |
-
#@ ditty-news-ticker
|
467 |
-
msgid "Ticker Display"
|
468 |
-
msgstr "Ticker Display"
|
469 |
-
|
470 |
#: includes/metaboxer/metaboxer.php:756
|
471 |
#@ ditty-news-ticker
|
472 |
msgid "Select Code"
|
@@ -528,23 +436,18 @@ msgstr "No News Tickers Found In Trash"
|
|
528 |
msgid "Ditty News Ticker Updated!"
|
529 |
msgstr "Ditty News Ticker Updated!"
|
530 |
|
531 |
-
#: includes/settings.php:
|
532 |
-
#: includes/settings.php:
|
533 |
#@ ditty-news-ticker
|
534 |
msgid "Settings"
|
535 |
msgstr "Settings"
|
536 |
|
537 |
-
#: includes/settings.php:
|
538 |
#@ ditty-news-ticker
|
539 |
msgid "Custom CSS"
|
540 |
msgstr "Custom CSS"
|
541 |
|
542 |
-
#: includes/settings.php:
|
543 |
-
#@ ditty-news-ticker
|
544 |
-
msgid "Custom CSS will be added to the head of each page that includes a Ditty News Ticker."
|
545 |
-
msgstr "Custom CSS will be added to the head of each page that includes a Ditty News Ticker."
|
546 |
-
|
547 |
-
#: includes/settings.php:98
|
548 |
#@ ditty-news-ticker
|
549 |
msgid "Ditty News Ticker Settings"
|
550 |
msgstr "Ditty News Ticker Settings"
|
@@ -574,57 +477,52 @@ msgstr "Display Ticker Title?"
|
|
574 |
msgid "View DNT extensions"
|
575 |
msgstr "View DNT extensions"
|
576 |
|
577 |
-
#: includes/meta-boxes.php:
|
578 |
#@ ditty-news-ticker
|
579 |
msgid "NF"
|
580 |
msgstr "NF"
|
581 |
|
582 |
-
#: includes/settings.php:
|
583 |
#@ ditty-news-ticker
|
584 |
msgid "The global settings to your news tickers."
|
585 |
msgstr "The global settings to your news tickers."
|
586 |
|
587 |
-
#: includes/meta-boxes.php:
|
588 |
#@ ditty-news-ticker
|
589 |
msgid "Show first tick on init"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: includes/meta-boxes.php:
|
593 |
#@ ditty-news-ticker
|
594 |
msgid "Randomly shuffle the ticks"
|
595 |
msgstr ""
|
596 |
|
597 |
-
#: includes/meta-boxes.php:
|
598 |
#@ ditty-news-ticker
|
599 |
msgid "Offset ticks"
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: includes/meta-boxes.php:
|
603 |
#@ ditty-news-ticker
|
604 |
msgid "px from the edge"
|
605 |
msgstr ""
|
606 |
|
607 |
-
#: includes/meta-boxes.php:
|
608 |
#@ ditty-news-ticker
|
609 |
msgid "The amount of pixels ticks should start and end off the screen."
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: includes/settings.php:
|
613 |
#@ ditty-news-ticker
|
614 |
msgid "Visual Editor"
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: includes/settings.php:
|
618 |
#@ ditty-news-ticker
|
619 |
msgid "Use the visual editor for ticks"
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: includes/
|
623 |
-
#@ ditty-news-ticker
|
624 |
-
msgid "*The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after resaving the ticker."
|
625 |
-
msgstr ""
|
626 |
-
|
627 |
-
#: includes/meta-boxes.php:89
|
628 |
#@ ditty-news-ticker
|
629 |
msgid "Force line breaks on carriage returns"
|
630 |
msgstr ""
|
@@ -634,48 +532,246 @@ msgstr ""
|
|
634 |
msgid "Mixed"
|
635 |
msgstr ""
|
636 |
|
637 |
-
#: includes/meta-boxes.php:
|
638 |
#@ ditty-news-ticker
|
639 |
msgid "Mixed Ticker Items"
|
640 |
msgstr ""
|
641 |
|
642 |
-
#: includes/meta-boxes.php:
|
643 |
#@ ditty-news-ticker
|
644 |
msgid "Add Tick"
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: includes/meta-boxes.php:
|
648 |
#@ ditty-news-ticker
|
649 |
msgid "Tick selection"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: includes/meta-boxes.php:
|
653 |
#@ ditty-news-ticker
|
654 |
msgid "Select the ticks you would like to display by choosing the tick type and the offset position of the selected feed"
|
655 |
msgstr ""
|
656 |
|
657 |
-
#: includes/meta-boxes.php:
|
658 |
#@ ditty-news-ticker
|
659 |
msgid "Type:"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: includes/meta-boxes.php:
|
663 |
#@ ditty-news-ticker
|
664 |
msgid "Select Tick Type"
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: includes/meta-boxes.php:
|
668 |
#@ ditty-news-ticker
|
669 |
msgid "Offset:"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/meta-boxes.php:
|
673 |
#@ ditty-news-ticker
|
674 |
msgid "Select the type of ticker you'd like to use"
|
675 |
msgstr ""
|
676 |
|
677 |
-
#: includes/meta-boxes.php:
|
678 |
#@ ditty-news-ticker
|
679 |
msgid "Select the mode of the ticker"
|
680 |
msgstr ""
|
681 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Ditty News Ticker v1.4.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2014-01-16 19:38:05+0000\n"
|
7 |
"Last-Translator: admin <joe@metaphorcreations.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
31 |
msgstr "Mode"
|
32 |
|
33 |
#: includes/edit-columns.php:25
|
34 |
+
#: includes/meta-boxes.php:18
|
35 |
#@ ditty-news-ticker
|
36 |
msgid "Shortcode"
|
37 |
msgstr "Shortcode"
|
38 |
|
39 |
#: includes/edit-columns.php:26
|
40 |
+
#: includes/meta-boxes.php:27
|
41 |
#@ ditty-news-ticker
|
42 |
msgid "Direct Function"
|
43 |
msgstr "Direct Function"
|
113 |
msgid "Add list mode info."
|
114 |
msgstr "Add list mode info."
|
115 |
|
116 |
+
#: includes/meta-boxes.php:65
|
|
|
117 |
#@ ditty-news-ticker
|
118 |
msgid "Ticker Type"
|
119 |
msgstr "Ticker Type"
|
120 |
|
121 |
+
#: includes/meta-boxes.php:65
|
|
|
122 |
#@ ditty-news-ticker
|
123 |
msgid "View all types"
|
124 |
msgstr "View all types"
|
125 |
|
126 |
+
#: includes/meta-boxes.php:221
|
127 |
#@ ditty-news-ticker
|
128 |
msgid "Ticker text"
|
129 |
msgstr "Ticker text"
|
130 |
|
131 |
+
#: includes/meta-boxes.php:222
|
132 |
#@ ditty-news-ticker
|
133 |
msgid "Link"
|
134 |
msgstr "Link"
|
135 |
|
136 |
+
#: includes/meta-boxes.php:223
|
137 |
#@ ditty-news-ticker
|
138 |
msgid "Target"
|
139 |
msgstr "Target"
|
140 |
|
141 |
+
#: includes/meta-boxes.php:120
|
142 |
#@ ditty-news-ticker
|
143 |
msgid "Default Ticker Items"
|
144 |
msgstr "Default Ticker Items"
|
145 |
|
146 |
+
#: includes/meta-boxes.php:86
|
|
|
147 |
#@ ditty-news-ticker
|
148 |
msgid "Ticker Mode"
|
149 |
msgstr "Ticker Mode"
|
150 |
|
151 |
+
#: includes/meta-boxes.php:402
|
152 |
#@ ditty-news-ticker
|
153 |
msgid "Scroll direction"
|
154 |
msgstr "Scroll direction"
|
155 |
|
156 |
+
#: includes/meta-boxes.php:406
|
157 |
#@ ditty-news-ticker
|
158 |
msgid "Left"
|
159 |
msgstr "Left"
|
160 |
|
161 |
+
#: includes/meta-boxes.php:407
|
162 |
#@ ditty-news-ticker
|
163 |
msgid "Right"
|
164 |
msgstr "Right"
|
165 |
|
166 |
+
#: includes/meta-boxes.php:408
|
167 |
#@ ditty-news-ticker
|
168 |
msgid "Up"
|
169 |
msgstr "Up"
|
170 |
|
171 |
+
#: includes/meta-boxes.php:409
|
172 |
#@ ditty-news-ticker
|
173 |
msgid "Down"
|
174 |
msgstr "Down"
|
175 |
|
176 |
+
#: includes/meta-boxes.php:416
|
177 |
+
#: includes/meta-boxes.php:533
|
|
|
|
|
|
|
|
|
|
|
178 |
#@ ditty-news-ticker
|
179 |
msgid "Tick dimensions"
|
180 |
msgstr "Tick dimensions"
|
181 |
|
182 |
+
#: includes/meta-boxes.php:420
|
183 |
#@ ditty-news-ticker
|
184 |
msgid "Width"
|
185 |
msgstr "Width"
|
186 |
|
187 |
+
#: includes/meta-boxes.php:421
|
188 |
+
#: includes/meta-boxes.php:537
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
#@ ditty-news-ticker
|
190 |
msgid "Height"
|
191 |
msgstr "Height"
|
192 |
|
193 |
+
#: includes/meta-boxes.php:427
|
194 |
#@ ditty-news-ticker
|
195 |
msgid "Scroller padding"
|
196 |
msgstr "Scroller padding"
|
197 |
|
198 |
+
#: includes/meta-boxes.php:431
|
199 |
+
#: includes/meta-boxes.php:547
|
200 |
+
#: includes/meta-boxes.php:656
|
201 |
#@ ditty-news-ticker
|
202 |
msgid "Vertical padding"
|
203 |
msgstr "Vertical padding"
|
204 |
|
205 |
+
#: includes/meta-boxes.php:432
|
206 |
+
#: includes/meta-boxes.php:548
|
207 |
+
#: includes/meta-boxes.php:657
|
|
|
|
|
|
|
|
|
|
|
208 |
#@ ditty-news-ticker
|
209 |
msgid "Vertical margin"
|
210 |
msgstr "Vertical margin"
|
211 |
|
212 |
+
#: includes/meta-boxes.php:438
|
213 |
#@ ditty-news-ticker
|
214 |
msgid "Scroll speed"
|
215 |
msgstr "Scroll speed"
|
216 |
|
217 |
+
#: includes/meta-boxes.php:443
|
218 |
+
#: includes/meta-boxes.php:560
|
|
|
|
|
|
|
|
|
|
|
219 |
#@ ditty-news-ticker
|
220 |
msgid "Pause on mouse over"
|
221 |
msgstr "Pause on mouse over"
|
222 |
|
223 |
+
#: includes/meta-boxes.php:449
|
224 |
+
#: includes/meta-boxes.php:663
|
225 |
#@ ditty-news-ticker
|
226 |
msgid "Tick spacing"
|
227 |
msgstr "Tick spacing"
|
228 |
|
229 |
+
#: includes/meta-boxes.php:453
|
230 |
+
#: includes/meta-boxes.php:667
|
231 |
#@ ditty-news-ticker
|
232 |
msgid "Pixels"
|
233 |
msgstr "Pixels"
|
234 |
|
235 |
+
#: includes/meta-boxes.php:142
|
|
|
|
|
|
|
|
|
|
|
236 |
#@ ditty-news-ticker
|
237 |
msgid "Scroll Settings"
|
238 |
msgstr "Scroll Settings"
|
239 |
|
240 |
+
#: includes/meta-boxes.php:518
|
241 |
#@ ditty-news-ticker
|
242 |
msgid "Rotation type"
|
243 |
msgstr "Rotation type"
|
244 |
|
245 |
+
#: includes/meta-boxes.php:522
|
246 |
#@ ditty-news-ticker
|
247 |
msgid "Fade"
|
248 |
msgstr "Fade"
|
249 |
|
250 |
+
#: includes/meta-boxes.php:523
|
251 |
#@ ditty-news-ticker
|
252 |
msgid "Slide left"
|
253 |
msgstr "Slide left"
|
254 |
|
255 |
+
#: includes/meta-boxes.php:524
|
256 |
#@ ditty-news-ticker
|
257 |
msgid "Slide right"
|
258 |
msgstr "Slide right"
|
259 |
|
260 |
+
#: includes/meta-boxes.php:525
|
261 |
#@ ditty-news-ticker
|
262 |
msgid "Slide up"
|
263 |
msgstr "Slide up"
|
264 |
|
265 |
+
#: includes/meta-boxes.php:526
|
266 |
#@ ditty-news-ticker
|
267 |
msgid "Slide down"
|
268 |
msgstr "Slide down"
|
269 |
|
270 |
+
#: includes/meta-boxes.php:527
|
|
|
|
|
|
|
|
|
|
|
271 |
#@ ditty-news-ticker
|
272 |
msgid "Dynamic slide direction"
|
273 |
msgstr "Dynamic slide direction"
|
274 |
|
275 |
+
#: includes/meta-boxes.php:543
|
276 |
#@ ditty-news-ticker
|
277 |
msgid "Rotator padding"
|
278 |
msgstr "Rotator padding"
|
279 |
|
280 |
+
#: includes/meta-boxes.php:554
|
|
|
|
|
|
|
|
|
|
|
281 |
#@ ditty-news-ticker
|
282 |
msgid "Auto rotate"
|
283 |
msgstr "Auto rotate"
|
284 |
|
285 |
+
#: includes/meta-boxes.php:558
|
286 |
+
#: includes/meta-boxes.php:586
|
287 |
+
#: includes/meta-boxes.php:597
|
288 |
+
#: includes/meta-boxes.php:677
|
289 |
#@ ditty-news-ticker
|
290 |
msgid "Enable"
|
291 |
msgstr "Enable"
|
292 |
|
293 |
+
#: includes/meta-boxes.php:559
|
|
|
|
|
|
|
|
|
|
|
294 |
#@ ditty-news-ticker
|
295 |
msgid "Seconds delay"
|
296 |
msgstr "Seconds delay"
|
297 |
|
298 |
+
#: includes/meta-boxes.php:566
|
299 |
#@ ditty-news-ticker
|
300 |
msgid "Rotate speed"
|
301 |
msgstr "Rotate speed"
|
302 |
|
303 |
+
#: includes/meta-boxes.php:570
|
304 |
#@ ditty-news-ticker
|
305 |
msgid "Tenths of a second"
|
306 |
msgstr "Tenths of a second"
|
307 |
|
308 |
+
#: includes/meta-boxes.php:582
|
|
|
|
|
|
|
|
|
|
|
309 |
#@ ditty-news-ticker
|
310 |
msgid "Directional navigation"
|
311 |
msgstr "Directional navigation"
|
312 |
|
313 |
+
#: includes/meta-boxes.php:587
|
|
|
|
|
|
|
|
|
|
|
314 |
#@ ditty-news-ticker
|
315 |
msgid "Autohide navigation"
|
316 |
msgstr "Autohide navigation"
|
317 |
|
318 |
+
#: includes/meta-boxes.php:593
|
319 |
#@ ditty-news-ticker
|
320 |
msgid "Control navigation"
|
321 |
msgstr "Control navigation"
|
322 |
|
323 |
+
#: includes/meta-boxes.php:598
|
|
|
|
|
|
|
|
|
|
|
324 |
#@ ditty-news-ticker
|
325 |
msgid "Numbers"
|
326 |
msgstr "Numbers"
|
327 |
|
328 |
+
#: includes/meta-boxes.php:599
|
329 |
#@ ditty-news-ticker
|
330 |
msgid "Buttons"
|
331 |
msgstr "Buttons"
|
332 |
|
333 |
+
#: includes/meta-boxes.php:153
|
334 |
#@ ditty-news-ticker
|
335 |
msgid "Rotate Settings"
|
336 |
msgstr "Rotate Settings"
|
337 |
|
338 |
+
#: includes/meta-boxes.php:652
|
339 |
#@ ditty-news-ticker
|
340 |
msgid "List padding"
|
341 |
msgstr "List padding"
|
342 |
|
343 |
+
#: includes/meta-boxes.php:164
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
#@ ditty-news-ticker
|
345 |
msgid "List Settings"
|
346 |
msgstr "List Settings"
|
347 |
|
348 |
+
#: includes/meta-boxes.php:742
|
349 |
#@ ditty-news-ticker
|
350 |
msgid "Display title"
|
351 |
msgstr "Display title"
|
352 |
|
353 |
+
#: includes/meta-boxes.php:743
|
354 |
#@ ditty-news-ticker
|
355 |
msgid "Inline title"
|
356 |
msgstr "Inline title"
|
357 |
|
358 |
+
#: includes/meta-boxes.php:755
|
359 |
#@ ditty-news-ticker
|
360 |
msgid "Ticker width <em>(optional)</em>"
|
361 |
msgstr "Ticker width <em>(optional)</em>"
|
362 |
|
363 |
+
#: includes/meta-boxes.php:175
|
|
|
|
|
|
|
|
|
|
|
364 |
#@ ditty-news-ticker
|
365 |
msgid "Global Settings"
|
366 |
msgstr "Global Settings"
|
367 |
|
368 |
+
#: includes/meta-boxes.php:21
|
369 |
#@ ditty-news-ticker
|
370 |
msgid "Select Shortcode"
|
371 |
msgstr "Select Shortcode"
|
372 |
|
373 |
+
#: includes/meta-boxes.php:31
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
#@ ditty-news-ticker
|
375 |
msgid "Select Function"
|
376 |
msgstr "Select Function"
|
377 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
#: includes/metaboxer/metaboxer.php:756
|
379 |
#@ ditty-news-ticker
|
380 |
msgid "Select Code"
|
436 |
msgid "Ditty News Ticker Updated!"
|
437 |
msgstr "Ditty News Ticker Updated!"
|
438 |
|
439 |
+
#: includes/settings.php:11
|
440 |
+
#: includes/settings.php:12
|
441 |
#@ ditty-news-ticker
|
442 |
msgid "Settings"
|
443 |
msgstr "Settings"
|
444 |
|
445 |
+
#: includes/settings.php:128
|
446 |
#@ ditty-news-ticker
|
447 |
msgid "Custom CSS"
|
448 |
msgstr "Custom CSS"
|
449 |
|
450 |
+
#: includes/settings.php:44
|
|
|
|
|
|
|
|
|
|
|
451 |
#@ ditty-news-ticker
|
452 |
msgid "Ditty News Ticker Settings"
|
453 |
msgstr "Ditty News Ticker Settings"
|
477 |
msgid "View DNT extensions"
|
478 |
msgstr "View DNT extensions"
|
479 |
|
480 |
+
#: includes/meta-boxes.php:224
|
481 |
#@ ditty-news-ticker
|
482 |
msgid "NF"
|
483 |
msgstr "NF"
|
484 |
|
485 |
+
#: includes/settings.php:28
|
486 |
#@ ditty-news-ticker
|
487 |
msgid "The global settings to your news tickers."
|
488 |
msgstr "The global settings to your news tickers."
|
489 |
|
490 |
+
#: includes/meta-boxes.php:410
|
491 |
#@ ditty-news-ticker
|
492 |
msgid "Show first tick on init"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: includes/meta-boxes.php:749
|
496 |
#@ ditty-news-ticker
|
497 |
msgid "Randomly shuffle the ticks"
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: includes/meta-boxes.php:761
|
501 |
#@ ditty-news-ticker
|
502 |
msgid "Offset ticks"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: includes/meta-boxes.php:761
|
506 |
#@ ditty-news-ticker
|
507 |
msgid "px from the edge"
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: includes/meta-boxes.php:762
|
511 |
#@ ditty-news-ticker
|
512 |
msgid "The amount of pixels ticks should start and end off the screen."
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: includes/settings.php:124
|
516 |
#@ ditty-news-ticker
|
517 |
msgid "Visual Editor"
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: includes/settings.php:154
|
521 |
#@ ditty-news-ticker
|
522 |
msgid "Use the visual editor for ticks"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: includes/meta-boxes.php:205
|
|
|
|
|
|
|
|
|
|
|
526 |
#@ ditty-news-ticker
|
527 |
msgid "Force line breaks on carriage returns"
|
528 |
msgstr ""
|
532 |
msgid "Mixed"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: includes/meta-boxes.php:131
|
536 |
#@ ditty-news-ticker
|
537 |
msgid "Mixed Ticker Items"
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: includes/meta-boxes.php:301
|
541 |
#@ ditty-news-ticker
|
542 |
msgid "Add Tick"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: includes/meta-boxes.php:307
|
546 |
#@ ditty-news-ticker
|
547 |
msgid "Tick selection"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/meta-boxes.php:308
|
551 |
#@ ditty-news-ticker
|
552 |
msgid "Select the ticks you would like to display by choosing the tick type and the offset position of the selected feed"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: includes/meta-boxes.php:336
|
556 |
#@ ditty-news-ticker
|
557 |
msgid "Type:"
|
558 |
msgstr ""
|
559 |
|
560 |
+
#: includes/meta-boxes.php:338
|
561 |
#@ ditty-news-ticker
|
562 |
msgid "Select Tick Type"
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: includes/meta-boxes.php:346
|
566 |
#@ ditty-news-ticker
|
567 |
msgid "Offset:"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: includes/meta-boxes.php:66
|
571 |
#@ ditty-news-ticker
|
572 |
msgid "Select the type of ticker you'd like to use"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: includes/meta-boxes.php:87
|
576 |
#@ ditty-news-ticker
|
577 |
msgid "Select the mode of the ticker"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: includes/meta-boxes.php:19
|
581 |
+
#@ ditty-news-ticker
|
582 |
+
msgid "Copy and paste this shortcode into a page or post to display the ticker within the post content."
|
583 |
+
msgstr ""
|
584 |
+
|
585 |
+
#: includes/meta-boxes.php:28
|
586 |
+
#@ ditty-news-ticker
|
587 |
+
msgid "Copy and paste this code directly into one of your theme files to display the ticker any where you want on your site."
|
588 |
+
msgstr ""
|
589 |
+
|
590 |
+
#: includes/meta-boxes.php:204
|
591 |
+
#@ ditty-news-ticker
|
592 |
+
msgid "Line breaks"
|
593 |
+
msgstr ""
|
594 |
+
|
595 |
+
#: includes/meta-boxes.php:208
|
596 |
+
#@ ditty-news-ticker
|
597 |
+
msgid "Force line breaks"
|
598 |
+
msgstr ""
|
599 |
+
|
600 |
+
#: includes/meta-boxes.php:214
|
601 |
+
#@ ditty-news-ticker
|
602 |
+
msgid "Ticks"
|
603 |
+
msgstr ""
|
604 |
+
|
605 |
+
#: includes/meta-boxes.php:215
|
606 |
+
#@ ditty-news-ticker
|
607 |
+
msgid "Add an unlimited number of ticks to your ticker"
|
608 |
+
msgstr ""
|
609 |
+
|
610 |
+
#: includes/meta-boxes.php:403
|
611 |
+
#@ ditty-news-ticker
|
612 |
+
msgid "Set the scroll direction of the ticker"
|
613 |
+
msgstr ""
|
614 |
+
|
615 |
+
#: includes/meta-boxes.php:417
|
616 |
+
#: includes/meta-boxes.php:534
|
617 |
+
#@ ditty-news-ticker
|
618 |
+
msgid "Override the auto dimensions with specific values"
|
619 |
+
msgstr ""
|
620 |
+
|
621 |
+
#: includes/meta-boxes.php:428
|
622 |
+
#@ ditty-news-ticker
|
623 |
+
msgid "Set the vertical spacing of the scrolling data"
|
624 |
+
msgstr ""
|
625 |
+
|
626 |
+
#: includes/meta-boxes.php:439
|
627 |
+
#@ ditty-news-ticker
|
628 |
+
msgid "Set the speed of the scrolling data"
|
629 |
+
msgstr ""
|
630 |
+
|
631 |
+
#: includes/meta-boxes.php:450
|
632 |
+
#@ ditty-news-ticker
|
633 |
+
msgid "Set the spacing between scrolling data"
|
634 |
+
msgstr ""
|
635 |
+
|
636 |
+
#: includes/meta-boxes.php:519
|
637 |
+
#@ ditty-news-ticker
|
638 |
+
msgid "Set the type of rotation for the ticker"
|
639 |
+
msgstr ""
|
640 |
+
|
641 |
+
#: includes/meta-boxes.php:544
|
642 |
+
#@ ditty-news-ticker
|
643 |
+
msgid "Set the vertical spacing of the rotating data"
|
644 |
+
msgstr ""
|
645 |
+
|
646 |
+
#: includes/meta-boxes.php:555
|
647 |
+
#@ ditty-news-ticker
|
648 |
+
msgid "Set the delay between rotations"
|
649 |
+
msgstr ""
|
650 |
+
|
651 |
+
#: includes/meta-boxes.php:567
|
652 |
+
#@ ditty-news-ticker
|
653 |
+
msgid "Set the speed & easing of the rotation"
|
654 |
+
msgstr ""
|
655 |
+
|
656 |
+
#: includes/meta-boxes.php:583
|
657 |
+
#@ ditty-news-ticker
|
658 |
+
msgid "Set the directional navigation options"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
+
#: includes/meta-boxes.php:594
|
662 |
+
#@ ditty-news-ticker
|
663 |
+
msgid "Set the control navigation options"
|
664 |
+
msgstr ""
|
665 |
+
|
666 |
+
#: includes/meta-boxes.php:624
|
667 |
+
#: includes/meta-boxes.php:924
|
668 |
+
#@ ditty-news-ticker
|
669 |
+
msgid "« Previous"
|
670 |
+
msgstr ""
|
671 |
+
|
672 |
+
#: includes/meta-boxes.php:625
|
673 |
+
#: includes/meta-boxes.php:925
|
674 |
+
#@ ditty-news-ticker
|
675 |
+
msgid "Next »"
|
676 |
+
msgstr ""
|
677 |
+
|
678 |
+
#: includes/meta-boxes.php:653
|
679 |
+
#@ ditty-news-ticker
|
680 |
+
msgid "Set the vertical spacing of the list container"
|
681 |
+
msgstr ""
|
682 |
+
|
683 |
+
#: includes/meta-boxes.php:664
|
684 |
+
#@ ditty-news-ticker
|
685 |
+
msgid "Set the spacing between ticks"
|
686 |
+
msgstr ""
|
687 |
+
|
688 |
+
#: includes/meta-boxes.php:673
|
689 |
+
#@ ditty-news-ticker
|
690 |
+
msgid "List paging"
|
691 |
+
msgstr ""
|
692 |
+
|
693 |
+
#: includes/meta-boxes.php:674
|
694 |
+
#@ ditty-news-ticker
|
695 |
+
msgid "Break the list up into pages"
|
696 |
+
msgstr ""
|
697 |
+
|
698 |
+
#: includes/meta-boxes.php:678
|
699 |
+
#@ ditty-news-ticker
|
700 |
+
msgid "Ticks per page"
|
701 |
+
msgstr ""
|
702 |
+
|
703 |
+
#: includes/meta-boxes.php:680
|
704 |
+
#@ ditty-news-ticker
|
705 |
+
msgid "Enable previous & next links"
|
706 |
+
msgstr ""
|
707 |
+
|
708 |
+
#: includes/meta-boxes.php:682
|
709 |
+
#@ ditty-news-ticker
|
710 |
+
msgid "Previous text"
|
711 |
+
msgstr ""
|
712 |
+
|
713 |
+
#: includes/meta-boxes.php:683
|
714 |
+
#@ ditty-news-ticker
|
715 |
+
msgid "Next text"
|
716 |
+
msgstr ""
|
717 |
+
|
718 |
+
#: includes/meta-boxes.php:768
|
719 |
+
#@ ditty-news-ticker
|
720 |
+
msgid "Grid Display"
|
721 |
+
msgstr ""
|
722 |
+
|
723 |
+
#: includes/meta-boxes.php:769
|
724 |
+
#@ ditty-news-ticker
|
725 |
+
msgid "Display ticks in a grid"
|
726 |
+
msgstr ""
|
727 |
+
|
728 |
+
#: includes/meta-boxes.php:770
|
729 |
+
#@ ditty-news-ticker
|
730 |
+
msgid "Render empty rows"
|
731 |
+
msgstr ""
|
732 |
+
|
733 |
+
#: includes/meta-boxes.php:771
|
734 |
+
#@ ditty-news-ticker
|
735 |
+
msgid "Force equal column width"
|
736 |
+
msgstr ""
|
737 |
+
|
738 |
+
#: includes/meta-boxes.php:773
|
739 |
+
#@ ditty-news-ticker
|
740 |
+
msgid "Columns"
|
741 |
+
msgstr ""
|
742 |
+
|
743 |
+
#: includes/meta-boxes.php:774
|
744 |
+
#@ ditty-news-ticker
|
745 |
+
msgid "Rows"
|
746 |
+
msgstr ""
|
747 |
+
|
748 |
+
#: includes/meta-boxes.php:776
|
749 |
+
#@ ditty-news-ticker
|
750 |
+
msgid "Cell padding"
|
751 |
+
msgstr ""
|
752 |
+
|
753 |
+
#: includes/settings.php:116
|
754 |
+
#@ ditty-news-ticker
|
755 |
+
msgid "Ditty News Ticker settings"
|
756 |
+
msgstr ""
|
757 |
+
|
758 |
+
#: includes/settings.php:124
|
759 |
+
#@ ditty-news-ticker
|
760 |
+
msgid "Use the visual editor to create tick contents"
|
761 |
+
msgstr ""
|
762 |
+
|
763 |
+
#: includes/settings.php:128
|
764 |
+
#@ ditty-news-ticker
|
765 |
+
msgid "Add custom css to style your ticker without modifying any external files"
|
766 |
+
msgstr ""
|
767 |
+
|
768 |
+
#: includes/settings.php:155
|
769 |
+
#@ ditty-news-ticker
|
770 |
+
msgid "Note:"
|
771 |
+
msgstr ""
|
772 |
+
|
773 |
+
#: includes/settings.php:155
|
774 |
+
#@ ditty-news-ticker
|
775 |
+
msgid "The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after re-saving the ticker."
|
776 |
+
msgstr ""
|
777 |
+
|
readme.txt
CHANGED
@@ -52,6 +52,25 @@ Each individual Ticker post has multiple settings to customize.
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
= 1.3.5 =
|
56 |
* Updated menu icon to icon font
|
57 |
|
@@ -179,4 +198,4 @@ Each individual Ticker post has multiple settings to customize.
|
|
179 |
|
180 |
== Upgrade Notice ==
|
181 |
|
182 |
-
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.4.0 =
|
56 |
+
* Added grid display funcitonality
|
57 |
+
* Added page list functionality to lists
|
58 |
+
* Updated general settings code
|
59 |
+
* Updated metabox code
|
60 |
+
* Added mtphr_dnt_contents_before & mtphr_dnt_contents_after actions
|
61 |
+
* Moved rotate direction nav to mtphr_dnt_contents_after filter
|
62 |
+
* Moved rotate control nav to mtphr_dnt_after filter
|
63 |
+
* Moved global data mtphr_dnt_after filter
|
64 |
+
* General code cleanup
|
65 |
+
* Additional admin css
|
66 |
+
* Added mtphr_dnt_settings_submit_button filter to settings submit button
|
67 |
+
* Added $mtphr_dnt_ticker_types global to front end
|
68 |
+
* Added Arabic language
|
69 |
+
* Added mtphr_dnt_after_load jQuery trigger
|
70 |
+
* Added mtphr_dnt_before_change jQuery trigger
|
71 |
+
* Added mtphr_dnt_after_change jQuery trigger
|
72 |
+
* Added mtphr_dnt_resize jQuery listener
|
73 |
+
|
74 |
= 1.3.5 =
|
75 |
* Updated menu icon to icon font
|
76 |
|
198 |
|
199 |
== Upgrade Notice ==
|
200 |
|
201 |
+
Multiple updates! Check notes.
|