Ditty News Ticker - Version 2.0.15

Version Description

  • Tick width and height detection modification in jQuery script
Download this release

Release Info

Developer metaphorcreations
Plugin Icon 128x128 Ditty News Ticker
Version 2.0.15
Comparing to
See all releases

Code changes from version 1.4.15 to 2.0.15

Files changed (60) hide show
  1. assets/css/admin/style.css +0 -461
  2. assets/css/{admin/codemirror.css → codemirror.css} +0 -0
  3. assets/css/style-admin.css +1013 -0
  4. assets/css/style.css +406 -113
  5. assets/fontastic/fonts/ditty-news-ticker.eot +0 -0
  6. assets/fontastic/fonts/ditty-news-ticker.svg +72 -9
  7. assets/fontastic/fonts/ditty-news-ticker.ttf +0 -0
  8. assets/fontastic/fonts/ditty-news-ticker.woff +0 -0
  9. assets/fontastic/icons-reference.html +534 -59
  10. assets/fontastic/styles.css +189 -0
  11. assets/images/dittynewsticker.svg +10 -0
  12. assets/js/admin/script.js +0 -335
  13. assets/js/{admin/codemirror.js → codemirror.js} +0 -0
  14. assets/js/{admin/codemirror → codemirror}/css.js +0 -0
  15. assets/js/ditty-news-ticker-images.js +107 -0
  16. assets/js/ditty-news-ticker.js +302 -214
  17. assets/js/ditty-rotate-ticker.js +109 -0
  18. assets/js/imagesloaded.pkgd.min.js +7 -0
  19. assets/js/jquery.touchSwipe.min.js +1 -1
  20. assets/js/mtphr-dnt-affix.js +162 -0
  21. assets/js/script-admin.js +529 -0
  22. assets/qtip/jquery.qtip.min.css +3 -0
  23. assets/qtip/jquery.qtip.min.js +5 -0
  24. assets/sass/style-admin.scss +1008 -0
  25. assets/sass/style.scss +485 -0
  26. assets/unslider/css/unslider-dots.css +33 -0
  27. assets/unslider/css/unslider.css +1 -0
  28. assets/unslider/js/unslider-min.js +1 -0
  29. classes/class-mtphr-dnt-image.php +197 -0
  30. classes/class-mtphr-dnt-tick.php +26 -0
  31. classes/class-mtphr-dnt.php +214 -0
  32. classes/helpers/class-mtphr-dnt-string-replacement.php +74 -0
  33. ditty-news-ticker.php +58 -19
  34. includes/admin/ajax.php +54 -0
  35. includes/admin/fields/fields.php +760 -0
  36. includes/admin/fields/helpers.php +487 -0
  37. includes/admin/meta-boxes.php +940 -539
  38. includes/admin/scripts.php +23 -9
  39. includes/composer.php +28 -0
  40. includes/display.php +0 -19
  41. includes/filters.php +78 -118
  42. includes/functions.php +283 -156
  43. includes/helpers.php +170 -8
  44. includes/post-types.php +12 -20
  45. includes/scripts.php +60 -12
  46. includes/settings.php +20 -1
  47. includes/templates.php +69 -0
  48. includes/widget.php +110 -144
  49. languages/ditty-news-ticker-he_IL.mo +0 -0
  50. languages/ditty-news-ticker-he_IL.po +1374 -0
  51. readme.txt +122 -9
  52. templates/control_nav.php +19 -0
  53. templates/directional_nav.php +19 -0
  54. templates/pagination.php +33 -0
  55. templates/play_pause.php +1 -0
  56. templates/title.php +15 -0
  57. unyson/shortcodes/shortcodes/dittynewsticker/class-fw-shortcode-dittynewsticker.php +44 -0
  58. unyson/shortcodes/shortcodes/dittynewsticker/config.php +12 -0
  59. unyson/shortcodes/shortcodes/dittynewsticker/options.php +15 -0
  60. unyson/shortcodes/shortcodes/dittynewsticker/views/view.php +7 -0
assets/css/admin/style.css DELETED
@@ -1,461 +0,0 @@
1
- /* Table of Contents
2
-
3
- * Dashboard Menu Icon
4
- * Edit Screen
5
-
6
- */
7
-
8
- /* Dashboard Menu Icon
9
- ------------------------------------------------------------ */
10
-
11
- #menu-posts-ditty_news_ticker .wp-menu-image:before {
12
- font-family: "ditty-news-ticker" !important;
13
- font-size: 18px !important;
14
- font-style: normal !important;
15
- font-weight: normal !important;
16
- font-variant: normal !important;
17
- text-transform: none !important;
18
- speak: none;
19
- line-height: 1;
20
- -webkit-font-smoothing: antialiased;
21
- -moz-osx-font-smoothing: grayscale;
22
- content: "\e000" !important;
23
- }
24
-
25
-
26
- /* Edit Screen
27
- ------------------------------------------------------------ */
28
-
29
- .column-dnt_type,
30
- .column-dnt_mode {
31
- width: 10%;
32
- }
33
- .column-dnt_shortcode pre,
34
- .column-dnt_shortcode p,
35
- .column-dnt_function pre,
36
- .column-dnt_function p {
37
- margin: 0 !important;
38
- }
39
- .column-dnt_shortcode pre,
40
- .column-dnt_function pre {
41
- padding: 10px;
42
- background: #FFF;
43
- border: 1px solid #EEE;
44
- }
45
-
46
- .mtphr-dnt-metaboxer_mtphr_dnt_ticks-tick .wp-editor-wrap {
47
- margin-bottom: 10px;
48
- }
49
-
50
- /* --------------------------------------------------------- */
51
- /* !Settings pages */
52
- /* --------------------------------------------------------- */
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;
69
- }
70
- .ditty_news_ticker_page_mtphr_dnt_settings .form-table > tbody > tr:last-child th,
71
- .ditty_news_ticker_page_mtphr_dnt_settings .form-table > tbody > tr:last-child td {
72
- border-bottom: none;
73
- }
74
- .ditty_news_ticker_page_mtphr_dnt_settings #wpbody-content h3 {
75
- -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
76
- max-width: 1000px;
77
- background: #fafafa;
78
- border: 1px solid #dfdfdf;
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;
85
- font-weight: normal;
86
- margin-top: -4px;
87
- }
88
- .ditty_news_ticker_page_mtphr_dnt_settings #wpbody-content h3 + p {
89
- -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
90
- max-width: 1000px;
91
- background: #fafafa;
92
- border: 1px solid #dfdfdf;
93
- border-top-width: 0;
94
- border-bottom-width: 0;
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
-
108
- /* --------------------------------------------------------- */
109
- /* !Table */
110
- /* --------------------------------------------------------- */
111
-
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
- }
124
- .mtphr-dnt-table > tbody > tr:first-child > td {
125
- border-top: 1px solid #dfdfdf;
126
- }
127
- .mtphr-dnt-table > tbody > tr:last-child > td,
128
- .mtphr-dnt-table > tbody > tr:last-child > td.mtphr-dnt-label {
129
- border-bottom-color: #dfdfdf;
130
- }
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
- }
138
- .mtphr-dnt-table > tbody > tr > td:last-child,
139
- .mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label {
140
- border-right: 1px solid #dfdfdf;
141
- }
142
- .mtphr-dnt-table > tbody > tr > td:first-child,
143
- .mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label + td {
144
- padding-left: 10px;
145
- }
146
- .mtphr-dnt-table > tbody > tr > td:last-child,
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;
155
- margin: 0 10px 10px 0;
156
- }
157
- .mtphr-dnt-table label.checkbox-label {
158
- font-weight: normal;
159
- margin: 0;
160
- }
161
- .mtphr-dnt-table input[type="text"],
162
- .mtphr-dnt-table textarea {
163
- width: 100%;
164
- }
165
- .mtphr-dnt-table input[type="number"] {
166
- width: 60px;
167
- }
168
- .mtphr-dnt-table .mceIframeContainer {
169
- background: #FFF;
170
- }
171
- .mtphr-dnt-label-alt {
172
- display: block;
173
- width: auto;
174
- padding-right: none !important;
175
- margin-bottom: 5px;
176
- }
177
- .mtphr-dnt-label label,
178
- .mtphr-dnt-label-alt label {
179
- display: block;
180
- font-weight: bold;
181
- font-size: 12px;
182
- margin: 0;
183
- }
184
- .mtphr-dnt-label small,
185
- .mtphr-dnt-label-alt small {
186
- display: block;
187
- font-size: 10px;
188
- line-height: 13px;
189
- font-style: italic;
190
- }
191
- .mtphr-dnt-radio,
192
- .mtphr-dnt-table label.mtphr-dnt-radio {
193
- font-weight: normal;
194
- margin-right: 8px;
195
- margin-left: 2px;
196
- }
197
- .mtphr-dnt-radio input,
198
- .mtphr-dnt-table label.mtphr-dnt-radio input {
199
- margin-top: -1px;
200
- margin-right: 2px;
201
- }
202
- .mtphr-dnt-checkbox,
203
- .mtphr-dnt-table label.mtphr-dnt-checkbox {
204
- font-weight: normal;
205
- margin-right: 8px;
206
- margin-left: 1px;
207
- }
208
- .mtphr-dnt-checkbox input,
209
- .mtphr-dnt-table label.mtphr-dnt-checkbox input {
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
- /* --------------------------------------------------------- */
258
- /* !Settings select - 1.3.3 */
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;
275
- }
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;
289
- }
290
- #ditty-news-ticker-settings-select .mtphr-dnt-metabox-toggle a {
291
- margin: 0 0 3px 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
- /* --------------------------------------------------------- */
338
-
339
- .mtphr-dnt-list {
340
- width: 100%;
341
- }
342
- .mtphr-dnt-list th {
343
- text-align: left;
344
- }
345
- .mtphr-dnt-list td {
346
- padding: 2px;
347
- }
348
- .mtphr-dnt-list-handle,
349
- .mtphr-dnt-list-add,
350
- .mtphr-dnt-list-delete {
351
- width: 16px;
352
- }
353
- .mtphr-dnt-list-handle {
354
- padding-left: 0;
355
- }
356
- .mtphr-dnt-list-add,
357
- .mtphr-dnt-list-delete {
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: "\e001";
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: "\e002";
394
- }
395
- .mtphr-dnt-list-add a:hover {
396
- color: #00a651;
397
- }
398
- .mtphr-dnt-list-delete a:before {
399
- content: "\e003";
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 {
410
- float: none;
411
- margin: 0 0 0 5px;
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
- .mtphr-dnt-notice {
427
- font-weight: normal;
428
- font-style: italic;
429
- background: #f5f5f5;
430
- border-left: 4px solid #7ad03a;
431
- padding: 7px 10px;
432
- margin: 4px 0;
433
- }
434
- .mtphr-dnt-default-list .mtphr-dnt-list-handle span,
435
- .mtphr-dnt-default-list .mtphr-dnt-list-delete a,
436
- .mtphr-dnt-default-list .mtphr-dnt-list-add a {
437
- margin-top: 2px;
438
- }
439
-
440
-
441
- /* --------------------------------------------------------- */
442
- /* !Mixed list */
443
- /* --------------------------------------------------------- */
444
-
445
- .mtphr-dnt-mixed-list input[type="number"] {
446
- width: 60px;
447
- }
448
- .mtphr-dnt-list-item label {
449
- margin: 0;
450
- }
451
-
452
-
453
- /* --------------------------------------------------------- */
454
- /* !CodeMirror */
455
- /* --------------------------------------------------------- */
456
-
457
- .mtphr-dnt-codemirror {
458
- border: 1px solid #dfdfdf;
459
- overflow: hidden;
460
- }
461
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/{admin/codemirror.css → codemirror.css} RENAMED
File without changes
assets/css/style-admin.css ADDED
@@ -0,0 +1,1013 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Table of Contents
2
+
3
+ * Dashboard Menu Icon
4
+ * Edit Screen
5
+
6
+ */
7
+ /* --------------------------------------------------------- */
8
+ /* !Variables */
9
+ /* --------------------------------------------------------- */
10
+ /* --------------------------------------------------------- */
11
+ /* !Dashboard Menu Icon */
12
+ /* --------------------------------------------------------- */
13
+ #menu-posts-ditty_news_ticker .wp-menu-image:before {
14
+ font-family: "ditty-news-ticker" !important;
15
+ font-size: 18px !important;
16
+ font-style: normal !important;
17
+ font-weight: normal !important;
18
+ font-variant: normal !important;
19
+ text-transform: none !important;
20
+ speak: none;
21
+ line-height: 1;
22
+ -webkit-font-smoothing: antialiased;
23
+ -moz-osx-font-smoothing: grayscale;
24
+ content: "\e009" !important;
25
+ }
26
+
27
+ /* --------------------------------------------------------- */
28
+ /* !Visual Composer Icon */
29
+ /* --------------------------------------------------------- */
30
+ .vc_element-icon.mtphr-dnt-icon-dittynewsticker {
31
+ font-size: 32px;
32
+ color: #58ca68;
33
+ background-image: none;
34
+ }
35
+
36
+ /* --------------------------------------------------------- */
37
+ /* !Classes */
38
+ /* --------------------------------------------------------- */
39
+ .mtphr-dnt-clearfix:before,
40
+ .mtphr-dnt-clearfix:after {
41
+ display: table;
42
+ border-spacing: 0;
43
+ content: " ";
44
+ }
45
+
46
+ .mtphr-dnt-clearfix:after {
47
+ clear: both;
48
+ }
49
+
50
+ .mtphr-dnt-clear {
51
+ display: block;
52
+ clear: both;
53
+ }
54
+
55
+ /* --------------------------------------------------------- */
56
+ /* !Edit Screen */
57
+ /* --------------------------------------------------------- */
58
+ .column-dnt_type,
59
+ .column-dnt_mode {
60
+ width: 10%;
61
+ }
62
+
63
+ .column-dnt_shortcode pre,
64
+ .column-dnt_shortcode p,
65
+ .column-dnt_function pre,
66
+ .column-dnt_function p {
67
+ white-space: inherit !important;
68
+ margin: 0 !important;
69
+ }
70
+
71
+ .column-dnt_shortcode pre,
72
+ .column-dnt_function pre {
73
+ padding: 10px;
74
+ background: #FFF;
75
+ border: 1px solid #EEE;
76
+ }
77
+
78
+ .mtphr-dnt-metaboxer_mtphr_dnt_ticks-tick .wp-editor-wrap {
79
+ margin-bottom: 10px;
80
+ }
81
+
82
+ /* --------------------------------------------------------- */
83
+ /* !Code copy - 1.4.0 */
84
+ /* --------------------------------------------------------- */
85
+ #mtphr-dnt-code-copy table {
86
+ display: block;
87
+ width: 100%;
88
+ }
89
+
90
+ #mtphr-dnt-code-copy td {
91
+ display: block;
92
+ width: auto;
93
+ vertical-align: top;
94
+ color: #f2f2f2;
95
+ background: #333333;
96
+ border: 1px solid #dfdfdf;
97
+ border-radius: 5px;
98
+ border-top: 5px solid #58ca68;
99
+ margin: 10px 0;
100
+ }
101
+
102
+ #mtphr-dnt-code-copy td .wrapper {
103
+ padding: 10px;
104
+ }
105
+
106
+ #mtphr-dnt-code-copy h3 {
107
+ color: #FFF;
108
+ padding: 0;
109
+ margin-bottom: 0;
110
+ }
111
+
112
+ #mtphr-dnt-code-copy p {
113
+ margin: 0 0 8px;
114
+ }
115
+
116
+ #mtphr-dnt-code-copy pre {
117
+ color: #333333;
118
+ margin: 0 0 5px 0;
119
+ padding: 10px;
120
+ background: #FFF;
121
+ border-radius: 3px;
122
+ white-space: normal;
123
+ word-break: break-all;
124
+ }
125
+
126
+ #mtphr-dnt-code-copy pre p {
127
+ margin-bottom: 0;
128
+ }
129
+
130
+ #mtphr-dnt-code-copy .button {
131
+ color: #FFF;
132
+ border-color: #333333;
133
+ background: gray;
134
+ margin: 2px 0;
135
+ box-shadow: none;
136
+ -webkit-transition: background-color 0.25s ease, border-color 0.25s ease;
137
+ transition: background-color 0.25s ease, border-color 0.25s ease;
138
+ }
139
+
140
+ #mtphr-dnt-code-copy .button:hover {
141
+ background-color: #999999;
142
+ }
143
+
144
+ #mtphr-dnt-code-copy .button:hover i {
145
+ opacity: 1;
146
+ }
147
+
148
+ @media (min-width: 601px) {
149
+ #mtphr-dnt-code-copy {
150
+ margin: 10px -5px -5px;
151
+ }
152
+ #mtphr-dnt-code-copy table {
153
+ display: table;
154
+ border-spacing: 5px;
155
+ }
156
+ #mtphr-dnt-code-copy td {
157
+ display: table-cell;
158
+ width: auto;
159
+ }
160
+ }
161
+
162
+ /*
163
+ @media (min-width: 768px) {
164
+
165
+ }
166
+ @media (min-width: 992px) {
167
+ }
168
+ @media (min-width: 1200px) {
169
+ }
170
+ */
171
+ /* --------------------------------------------------------- */
172
+ /* !CodeMirror */
173
+ /* --------------------------------------------------------- */
174
+ .mtphr-dnt-codemirror .CodeMirror {
175
+ border: 1px solid #dfdfdf;
176
+ height: auto;
177
+ min-height: 52px;
178
+ }
179
+
180
+ /* --------------------------------------------------------- */
181
+ /* !Text Field */
182
+ /* --------------------------------------------------------- */
183
+ .mtphr-dnt-field-type-text input[type="text"] {
184
+ width: 100%;
185
+ border-radius: 3px;
186
+ }
187
+
188
+ /* --------------------------------------------------------- */
189
+ /* !Number Field */
190
+ /* --------------------------------------------------------- */
191
+ .mtphr-dnt-field-type-number input[type="number"] {
192
+ width: 80px;
193
+ border-radius: 3px;
194
+ }
195
+
196
+ /* --------------------------------------------------------- */
197
+ /* !Textarea Field */
198
+ /* --------------------------------------------------------- */
199
+ .mtphr-dnt-field-type-textarea textarea {
200
+ width: 100%;
201
+ border-radius: 3px;
202
+ }
203
+
204
+ /* --------------------------------------------------------- */
205
+ /* !Radio Buttons */
206
+ /* --------------------------------------------------------- */
207
+ .mtphr-dnt-field-type-radio_buttons label {
208
+ display: block;
209
+ margin-bottom: 10px;
210
+ }
211
+
212
+ .mtphr-dnt-field-type-radio_buttons label:last-child {
213
+ margin-bottom: 0;
214
+ }
215
+
216
+ @media (min-width: 768px) {
217
+ .mtphr-dnt-field-type-radio_buttons label {
218
+ display: inline;
219
+ margin-right: 20px;
220
+ margin-bottom: 0;
221
+ }
222
+ }
223
+
224
+ /* --------------------------------------------------------- */
225
+ /* !Single image */
226
+ /* --------------------------------------------------------- */
227
+ .mtphr-dnt-single-image {
228
+ display: table-cell;
229
+ vertical-align: middle;
230
+ position: relative;
231
+ float: left;
232
+ background: #FFF;
233
+ border: 1px solid #dfdfdf;
234
+ padding: 3px 24px 3px 3px;
235
+ -webkit-border-radius: 3px;
236
+ -moz-border-radius: 3px;
237
+ border-radius: 3px;
238
+ }
239
+
240
+ .mtphr-dnt-single-image img {
241
+ display: inline-block;
242
+ vertical-align: middle;
243
+ width: auto;
244
+ max-height: 26px;
245
+ margin-right: 7px;
246
+ }
247
+
248
+ .mtphr-dnt-single-image-title {
249
+ display: inline-block;
250
+ font-size: 12px;
251
+ line-height: 16px;
252
+ padding: 5px 7px 5px 0;
253
+ }
254
+
255
+ .mtphr-dnt-single-image .mtphr-dnt-delete {
256
+ position: absolute;
257
+ right: 8px;
258
+ top: 50%;
259
+ z-index: 999;
260
+ color: #333;
261
+ text-decoration: none;
262
+ margin-top: -7px;
263
+ }
264
+
265
+ .mtphr-dnt-single-image .mtphr-dnt-delete:hover {
266
+ color: #dd3d36;
267
+ }
268
+
269
+ .mtphr-dnt-single-image-td select {
270
+ margin-left: 5px;
271
+ }
272
+
273
+ .wp-core-ui #mtphr-dnt-settings-select .button.mtphr-dnt-single-image-upload {
274
+ background-color: #58ca68;
275
+ border: none;
276
+ }
277
+
278
+ .wp-core-ui #mtphr-dnt-settings-select .button.mtphr-dnt-single-image-upload:hover {
279
+ background-color: #3ab64a;
280
+ }
281
+
282
+ /* --------------------------------------------------------- */
283
+ /* !List Fields */
284
+ /* --------------------------------------------------------- */
285
+ .mtphr-dnt-list-item {
286
+ background-color: #f2f2f2;
287
+ padding: 10px;
288
+ margin: 10px 0;
289
+ border-radius: 5px;
290
+ overflow: hidden;
291
+ }
292
+
293
+ .mtphr-dnt-list-heading {
294
+ display: block;
295
+ font-weight: bold;
296
+ color: #FFF;
297
+ text-decoration: none;
298
+ background: #333333;
299
+ padding: 5px 10px;
300
+ margin: -10px -10px 10px;
301
+ cursor: pointer;
302
+ -webkit-transition: background-color 0.25s ease, border-radius 0.25s ease;
303
+ transition: background-color 0.25s ease, border-radius 0.25s ease;
304
+ }
305
+
306
+ .mtphr-dnt-list-heading:active, .mtphr-dnt-list-heading:focus {
307
+ box-shadow: none;
308
+ outline: none;
309
+ }
310
+
311
+ .mtphr-dnt-list-heading .dashicons-menu {
312
+ color: #FFF;
313
+ margin-right: 8px;
314
+ }
315
+
316
+ .mtphr-dnt-list-buttons {
317
+ float: right;
318
+ margin: -5px -10px;
319
+ }
320
+
321
+ .mtphr-dnt-list-buttons a {
322
+ float: left;
323
+ display: block;
324
+ width: 30px;
325
+ height: 30px;
326
+ text-align: center;
327
+ text-decoration: none;
328
+ background: transparent;
329
+ }
330
+
331
+ .mtphr-dnt-list-buttons a.mtphr-dnt-list-add:hover i {
332
+ color: #58ca68;
333
+ }
334
+
335
+ .mtphr-dnt-list-buttons a.mtphr-dnt-list-add i {
336
+ color: #FFF;
337
+ }
338
+
339
+ .mtphr-dnt-list-buttons a.mtphr-dnt-list-delete:hover i {
340
+ color: red;
341
+ }
342
+
343
+ .mtphr-dnt-list-buttons a.mtphr-dnt-list-delete i {
344
+ color: #FFF;
345
+ }
346
+
347
+ .mtphr-dnt-list-buttons i {
348
+ width: 15px;
349
+ height: 15px;
350
+ font-size: 15px;
351
+ line-height: 31px;
352
+ }
353
+
354
+ .mtphr-dnt-list-field {
355
+ color: #333333;
356
+ margin-bottom: 20px;
357
+ }
358
+
359
+ .mtphr-dnt-list-field:last-child {
360
+ margin-bottom: 0;
361
+ }
362
+
363
+ .mtphr-dnt-list-placeholder {
364
+ width: 100%;
365
+ height: 40px;
366
+ border: 3px dashed #e6e6e6;
367
+ border-radius: 5px;
368
+ margin: 5px 0;
369
+ box-sizing: border-box;
370
+ }
371
+
372
+ @media (min-width: 768px) {
373
+ .mtphr-dnt-list-item > td {
374
+ display: table-cell !important;
375
+ }
376
+ .mtphr-dnt-list-handle {
377
+ padding: 5px 2px 0 0;
378
+ }
379
+ .mtphr-dnt-list-add-delete {
380
+ width: 30px;
381
+ padding: 5px 0 0 2px;
382
+ }
383
+ .mtphr-dnt-list-add-delete a {
384
+ float: none;
385
+ margin-left: 0;
386
+ }
387
+ }
388
+
389
+ /* --------------------------------------------------------- */
390
+ /* !Sort Fields */
391
+ /* --------------------------------------------------------- */
392
+ .mtphr-dnt-sort-field {
393
+ color: #333333;
394
+ margin-bottom: 20px;
395
+ }
396
+
397
+ .mtphr-dnt-sort-field:last-child {
398
+ margin-bottom: 0;
399
+ }
400
+
401
+ .mtphr-dnt-sort-placeholder {
402
+ width: 100%;
403
+ height: 40px;
404
+ border: 3px dashed #e6e6e6;
405
+ border-radius: 5px;
406
+ margin: 5px 0;
407
+ box-sizing: border-box;
408
+ }
409
+
410
+ .mtphr-dnt-sort-item {
411
+ margin: 10px 0;
412
+ }
413
+
414
+ .mtphr-dnt-sort-item.active .mtphr-dnt-sort-heading {
415
+ background-color: #333333;
416
+ }
417
+
418
+ .mtphr-dnt-sort-item.active .mtphr-dnt-sort-heading .dashicons-menu {
419
+ color: #FFF;
420
+ }
421
+
422
+ .mtphr-dnt-sort-item.active .mtphr-dnt-sort-heading .mtphr-dnt-sort-heading-title {
423
+ color: #FFF;
424
+ }
425
+
426
+ .mtphr-dnt-sort-item.active .mtphr-dnt-sort-heading .mtphr-dnt-sort-heading-title i {
427
+ color: #58ca68;
428
+ }
429
+
430
+ .mtphr-dnt-sort-item.active.has-fields .mtphr-dnt-sort-heading {
431
+ border-bottom-left-radius: 0;
432
+ border-bottom-right-radius: 0;
433
+ }
434
+
435
+ .mtphr-dnt-sort-heading {
436
+ display: block;
437
+ font-weight: bold;
438
+ color: #FFF;
439
+ text-decoration: none;
440
+ background: #d9d9d9;
441
+ padding: 10px;
442
+ border-radius: 5px;
443
+ cursor: pointer;
444
+ -webkit-transition: background-color 0.25s ease, border-radius 0.25s ease;
445
+ transition: background-color 0.25s ease, border-radius 0.25s ease;
446
+ }
447
+
448
+ .mtphr-dnt-sort-heading:active, .mtphr-dnt-sort-heading:focus {
449
+ box-shadow: none;
450
+ outline: none;
451
+ }
452
+
453
+ .mtphr-dnt-sort-heading:hover {
454
+ background-color: #cccccc;
455
+ }
456
+
457
+ .mtphr-dnt-sort-heading input {
458
+ display: none;
459
+ }
460
+
461
+ .mtphr-dnt-sort-heading .mtphr-dnt-sort-heading-title {
462
+ display: inline-block;
463
+ line-height: 20px;
464
+ color: #333333;
465
+ margin-right: 3px;
466
+ }
467
+
468
+ .mtphr-dnt-sort-heading .mtphr-dnt-sort-heading-title i {
469
+ float: left;
470
+ display: block;
471
+ width: 24px;
472
+ height: 24px;
473
+ line-height: 24px;
474
+ text-align: center;
475
+ color: #d9d9d9;
476
+ background: #FFF;
477
+ border-radius: 12px;
478
+ margin: -2px 8px -3px 0;
479
+ -webkit-transition: color 0.25s ease;
480
+ transition: color 0.25s ease;
481
+ }
482
+
483
+ .mtphr-dnt-sort-heading .dashicons-menu {
484
+ color: #333333;
485
+ margin-right: 8px;
486
+ }
487
+
488
+ .mtphr-dnt-sort-item-fields {
489
+ display: none;
490
+ background-color: #f2f2f2;
491
+ padding: 10px;
492
+ border-bottom-left-radius: 5px;
493
+ border-bottom-right-radius: 5px;
494
+ }
495
+
496
+ .mtphr-dnt-sort-item-fields.active {
497
+ display: block;
498
+ }
499
+
500
+ /* --------------------------------------------------------- */
501
+ /* !Metaboxe Defaults */
502
+ /* --------------------------------------------------------- */
503
+ #mtphr-dnt-settings-select {
504
+ color: white;
505
+ background: #333333;
506
+ padding: 10px;
507
+ margin: 20px 0;
508
+ border-radius: 5px;
509
+ border-top: 5px solid #58ca68;
510
+ }
511
+
512
+ #mtphr-dnt-settings-select.mtphr_dnt_affix {
513
+ padding-top: 60px;
514
+ }
515
+
516
+ #mtphr-dnt-settings-select table {
517
+ width: 100%;
518
+ }
519
+
520
+ #mtphr-dnt-settings-select .mtphr-dnt-table {
521
+ margin-top: 15px;
522
+ }
523
+
524
+ #mtphr-dnt-settings-select .mtphr-dnt-metabox-heading {
525
+ float: left;
526
+ font-size: 18px;
527
+ font-weight: bold;
528
+ text-transform: uppercase;
529
+ letter-spacing: 1px;
530
+ color: #FFF;
531
+ margin-top: 0;
532
+ }
533
+
534
+ #mtphr-dnt-settings-select .mtphr-dnt-metabox-heading i {
535
+ font-size: 26px;
536
+ color: #3ab64a;
537
+ }
538
+
539
+ #mtphr-dnt-settings-select .mtphr-dnt-metabox-heading i:before {
540
+ vertical-align: middle;
541
+ }
542
+
543
+ #mtphr-dnt-type-metaboxes > div,
544
+ #mtphr-dnt-mode-metaboxes > div {
545
+ display: none;
546
+ }
547
+
548
+ #mtphr-dnt-metabox-group-toggles {
549
+ font-size: 14px;
550
+ line-height: 14px;
551
+ font-weight: bold;
552
+ text-transform: uppercase;
553
+ letter-spacing: 1px;
554
+ color: #FFF;
555
+ background: #333333;
556
+ margin: -10px -10px 20px;
557
+ }
558
+
559
+ #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-metabox-group-toggles {
560
+ position: fixed;
561
+ top: 32px;
562
+ left: 0;
563
+ z-index: 99;
564
+ width: 100%;
565
+ padding-left: 182px;
566
+ margin: 0;
567
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
568
+ box-sizing: border-box;
569
+ }
570
+
571
+ .auto-fold #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-metabox-group-toggles {
572
+ padding-left: 182px;
573
+ }
574
+
575
+ .folded #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-metabox-group-toggles {
576
+ padding-left: 58px;
577
+ }
578
+
579
+ #mtphr-dnt-metabox-group-toggles a {
580
+ float: left;
581
+ display: block;
582
+ color: #FFF;
583
+ text-decoration: none;
584
+ padding: 10px 10px 10px 10px;
585
+ background-color: #333333;
586
+ border-bottom-left-radius: 5px;
587
+ border-bottom-right-radius: 5px;
588
+ }
589
+
590
+ #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-metabox-group-toggles a {
591
+ border-bottom-left-radius: 0;
592
+ border-bottom-right-radius: 0;
593
+ }
594
+
595
+ #mtphr-dnt-metabox-group-toggles a:first-child {
596
+ border-bottom-left-radius: 0;
597
+ }
598
+
599
+ #mtphr-dnt-metabox-group-toggles a.active {
600
+ background-color: #58ca68;
601
+ }
602
+
603
+ #mtphr-dnt-metabox-group-toggles a.active i {
604
+ color: #FFF;
605
+ }
606
+
607
+ #mtphr-dnt-metabox-group-toggles a.active:hover {
608
+ background-color: #58ca68;
609
+ }
610
+
611
+ #mtphr-dnt-metabox-group-toggles a:hover {
612
+ background-color: #4d4d4d;
613
+ }
614
+
615
+ #mtphr-dnt-metabox-group-toggles a.focus, #mtphr-dnt-metabox-group-toggles a.active {
616
+ box-shadow: none;
617
+ outline: none;
618
+ }
619
+
620
+ #mtphr-dnt-metabox-group-toggles a i {
621
+ font-size: 20px;
622
+ color: #58ca68;
623
+ }
624
+
625
+ #mtphr-dnt-metabox-group-toggles a i:before {
626
+ vertical-align: middle;
627
+ }
628
+
629
+ .mtphr-dnt-metabox-group {
630
+ display: none;
631
+ }
632
+
633
+ .mtphr-dnt-metabox-group.active {
634
+ display: block;
635
+ }
636
+
637
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button {
638
+ color: #FFF;
639
+ border-color: #333333;
640
+ background: gray;
641
+ margin: 2px 0;
642
+ box-shadow: none;
643
+ -webkit-transition: background-color 0.25s ease, border-color 0.25s ease;
644
+ transition: background-color 0.25s ease, border-color 0.25s ease;
645
+ }
646
+
647
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button:hover {
648
+ background-color: #999999;
649
+ }
650
+
651
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button:hover i {
652
+ opacity: 1;
653
+ }
654
+
655
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button.button-primary {
656
+ background: #58ca68;
657
+ border-color: #3ab64a;
658
+ text-shadow: none;
659
+ }
660
+
661
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button.button-primary:hover {
662
+ background-color: #3ab64a;
663
+ }
664
+
665
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button.button-primary:active, .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button.button-primary:focus {
666
+ outline: none;
667
+ -moz-outline-style: none;
668
+ box-shadow: none;
669
+ }
670
+
671
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button.button-primary i {
672
+ opacity: 1;
673
+ }
674
+
675
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button.mtphr-dnt-get-more {
676
+ background: #4d4d4d;
677
+ }
678
+
679
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button.mtphr-dnt-get-more:hover {
680
+ background-color: #595959;
681
+ }
682
+
683
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button i {
684
+ font-size: 16px;
685
+ line-height: 16px;
686
+ margin: 2px 0 0 -5px;
687
+ opacity: .5;
688
+ -webkit-transition: opacity 0.25s ease;
689
+ transition: opacity 0.25s ease;
690
+ }
691
+
692
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button i:before {
693
+ vertical-align: middle;
694
+ }
695
+
696
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button i.fontastic {
697
+ display: inline-block;
698
+ vertical-align: top;
699
+ font-size: 14px;
700
+ line-height: 14px;
701
+ margin-top: 5px;
702
+ }
703
+
704
+ .mtphr-dnt-metabox-toggle {
705
+ padding-bottom: 20px;
706
+ }
707
+
708
+ .mtphr-dnt-field-group {
709
+ color: #333333;
710
+ background: white;
711
+ padding: 20px 20px;
712
+ margin: 10px 0;
713
+ border-top: 5px solid #58ca68;
714
+ border-radius: 5px;
715
+ }
716
+
717
+ .mtphr-dnt-metabox .mtphr-dnt-field-group:first-child {
718
+ margin-top: 0;
719
+ }
720
+
721
+ .mtphr-dnt-metabox .mtphr-dnt-field-group:last-child {
722
+ margin-bottom: 0;
723
+ }
724
+
725
+ .mtphr-dnt-heading {
726
+ background-color: #f2f2f2;
727
+ border-bottom: 1px solid #e6e6e6;
728
+ margin: -20px -20px 20px;
729
+ padding: 10px 20px;
730
+ }
731
+
732
+ .mtphr-dnt-heading h3 {
733
+ float: left;
734
+ text-transform: uppercase;
735
+ letter-spacing: 1px;
736
+ color: #333333;
737
+ padding: 0 !important;
738
+ margin: 2px 2px 2px 0;
739
+ }
740
+
741
+ .mtphr-dnt-heading p {
742
+ clear: both;
743
+ margin: 0;
744
+ color: #666666;
745
+ }
746
+
747
+ .mtphr-dnt-subheading {
748
+ font-size: 12px;
749
+ line-height: 17px;
750
+ font-weight: bold;
751
+ text-transform: uppercase;
752
+ letter-spacing: 1px;
753
+ color: #333333;
754
+ margin-bottom: 2px;
755
+ }
756
+
757
+ .mtphr-dnt-subheading .mtphr-dnt-help i {
758
+ width: 17px;
759
+ height: 17px;
760
+ font-size: 17px;
761
+ }
762
+
763
+ .mtphr-dnt-help {
764
+ display: inline-block;
765
+ text-decoration: none;
766
+ }
767
+
768
+ .mtphr-dnt-help i {
769
+ color: #999999;
770
+ }
771
+
772
+ .mtphr-dnt-field {
773
+ margin-bottom: 20px;
774
+ }
775
+
776
+ .mtphr-dnt-field-group .mtphr-dnt-field:last-child {
777
+ margin-bottom: 0;
778
+ }
779
+
780
+ #mtphr-dnt-publish {
781
+ display: none;
782
+ float: right;
783
+ height: auto;
784
+ line-height: 14px;
785
+ text-transform: uppercase;
786
+ padding: 6px 12px 6px;
787
+ margin: 5px 20px 0 0 !important;
788
+ }
789
+
790
+ #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-publish {
791
+ display: block;
792
+ }
793
+
794
+ #mtphr-dnt-publish i {
795
+ font-size: 20px !important;
796
+ margin: -2px 0 -4px -5px !important;
797
+ }
798
+
799
+ .mtphr-dnt-field-type-checkboxes label {
800
+ margin: 5px 20px 5px 0;
801
+ }
802
+
803
+ .mtphr-dnt-field-type-checkboxes label:last-child {
804
+ margin-right: 0;
805
+ }
806
+
807
+ @media (max-width: 960px) {
808
+ .auto-fold #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-metabox-group-toggles {
809
+ padding-left: 58px;
810
+ }
811
+ }
812
+
813
+ @media (max-width: 782px) {
814
+ .wp-core-ui #mtphr-dnt-settings-select .button i {
815
+ margin-top: -1px;
816
+ }
817
+ .wp-core-ui #mtphr-dnt-settings-select .button i.fontastic {
818
+ margin-top: 2px;
819
+ }
820
+ .mtphr-dnt-metabox input, .mtphr-dnt-metabox textarea {
821
+ font-size: 14px;
822
+ }
823
+ .mtphr-dnt-metabox input[type="text"],
824
+ .mtphr-dnt-metabox input[type="password"],
825
+ .mtphr-dnt-metabox input[type="email"],
826
+ .mtphr-dnt-metabox input[type="number"],
827
+ .mtphr-dnt-metabox input[type="search"] {
828
+ padding: 3px 5px;
829
+ }
830
+ #wpbody .mtphr-dnt-metabox select {
831
+ height: auto;
832
+ font-size: 14px;
833
+ }
834
+ .mtphr-dnt-metabox input[type=checkbox],
835
+ .mtphr-dnt-metabox input[type=radio] {
836
+ height: 16px;
837
+ width: 16px;
838
+ }
839
+ .mtphr-dnt-metabox input[type=checkbox]:checked:before,
840
+ .mtphr-dnt-metabox input[type=radio]:checked:before {
841
+ width: 16px;
842
+ font: 400 21px/1 dashicons;
843
+ }
844
+ .mtphr-dnt-metabox input[type=checkbox]:checked:before {
845
+ margin: -3px 0 0 -4px;
846
+ }
847
+ .mtphr-dnt-metabox input[type=radio]:checked:before {
848
+ width: 6px;
849
+ height: 6px;
850
+ margin: 4px;
851
+ }
852
+ #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-metabox-group-toggles {
853
+ top: 46px;
854
+ padding-left: 0;
855
+ }
856
+ .auto-fold #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-metabox-group-toggles {
857
+ padding-left: 0;
858
+ }
859
+ #mtphr-dnt-publish {
860
+ margin-right: 13px !important;
861
+ }
862
+ }
863
+
864
+ @media (max-width: 600px) {
865
+ #mtphr-dnt-settings-select.mtphr_dnt_affix #mtphr-dnt-metabox-group-toggles {
866
+ top: 0;
867
+ }
868
+ #mtphr-dnt-metabox-group-toggles a span {
869
+ display: none;
870
+ }
871
+ #mtphr-dnt-publish i {
872
+ margin-right: -3px !important;
873
+ }
874
+ #mtphr-dnt-publish span {
875
+ display: none;
876
+ }
877
+ }
878
+
879
+ @media (max-width: 365px) {
880
+ #mtphr-dnt-metabox-group-toggles {
881
+ font-size: 12px;
882
+ line-height: 12px;
883
+ }
884
+ #mtphr-dnt-metabox-group-toggles a i {
885
+ font-size: 14px;
886
+ }
887
+ #mtphr-dnt-publish {
888
+ padding-top: 4px;
889
+ padding-bottom: 4px;
890
+ }
891
+ }
892
+
893
+ /* --------------------------------------------------------- */
894
+ /* !Default Ticks Metabox */
895
+ /* --------------------------------------------------------- */
896
+ @media (min-width: 768px) {
897
+ .mtphr-dnt-list-field-mtphr_dnt_ticks_link {
898
+ float: left;
899
+ width: 50%;
900
+ margin-right: 1.5%;
901
+ }
902
+ .mtphr-dnt-list-field-mtphr_dnt_ticks_target {
903
+ float: left;
904
+ width: auto;
905
+ margin-right: 1.5%;
906
+ }
907
+ }
908
+
909
+ /* --------------------------------------------------------- */
910
+ /* !Mixed Ticks Metabox */
911
+ /* --------------------------------------------------------- */
912
+ @media (min-width: 768px) {
913
+ .mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_type,
914
+ .mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all {
915
+ float: left;
916
+ margin-right: 30px;
917
+ }
918
+ .mtphr-dnt-field-mtphr_dnt_mixed_ticks .mtphr-dnt-list-field {
919
+ margin-bottom: 0;
920
+ }
921
+ }
922
+
923
+ /* --------------------------------------------------------- */
924
+ /* !Scroll Mode Metabox */
925
+ /* --------------------------------------------------------- */
926
+ @media (min-width: 768px) {
927
+ .mtphr-dnt-field-mtphr_dnt_scroll_direction {
928
+ float: left;
929
+ margin-bottom: 0;
930
+ }
931
+ .mtphr-dnt-field-mtphr_dnt_scroll_width {
932
+ float: left;
933
+ margin-right: 20px;
934
+ }
935
+ .mtphr-dnt-field-mtphr_dnt_scroll_height {
936
+ float: left;
937
+ }
938
+ .mtphr-dnt-field-mtphr_dnt_scroll_padding {
939
+ float: left;
940
+ margin-right: 20px;
941
+ margin-bottom: 0;
942
+ }
943
+ .mtphr-dnt-field-mtphr_dnt_scroll_margin {
944
+ float: left;
945
+ margin-bottom: 0;
946
+ }
947
+ .mtphr-dnt-field-mtphr_dnt_scroll_speed {
948
+ float: left;
949
+ margin-right: 20px;
950
+ margin-bottom: 0;
951
+ }
952
+ }
953
+
954
+ /* --------------------------------------------------------- */
955
+ /* !Rotate Mode Metabox */
956
+ /* --------------------------------------------------------- */
957
+ @media (min-width: 768px) {
958
+ .mtphr-dnt-field-mtphr_dnt_rotate_padding,
959
+ .mtphr-dnt-field-mtphr_dnt_rotate_margin,
960
+ .mtphr-dnt-field-mtphr_dnt_auto_rotate,
961
+ .mtphr-dnt-field-mtphr_dnt_rotate_delay,
962
+ .mtphr-dnt-field-mtphr_dnt_rotate_speed,
963
+ .mtphr-dnt-field-mtphr_dnt_rotate_directional_nav,
964
+ .mtphr-dnt-field-mtphr_dnt_rotate_control_nav {
965
+ float: left;
966
+ margin-right: 20px;
967
+ margin-bottom: 0;
968
+ }
969
+ }
970
+
971
+ /* --------------------------------------------------------- */
972
+ /* !List Mode Metabox */
973
+ /* --------------------------------------------------------- */
974
+ .mtphr-dnt-field-mtphr_dnt_list_tick_count {
975
+ border-bottom: 1px solid #f2f2f2;
976
+ padding-bottom: 20px;
977
+ margin-bottom: 20px;
978
+ }
979
+
980
+ .mtphr-dnt-field-mtphr_dnt_list_tick_prev_text,
981
+ .mtphr-dnt-field-mtphr_dnt_list_tick_next_text {
982
+ float: left;
983
+ width: 100px;
984
+ margin-right: 20px;
985
+ }
986
+
987
+ .mtphr-dnt-field-mtphr_dnt_list_tick_prev_text {
988
+ clear: both;
989
+ }
990
+
991
+ @media (min-width: 768px) {
992
+ .mtphr-dnt-field-mtphr_dnt_list_padding,
993
+ .mtphr-dnt-field-mtphr_dnt_list_margin,
994
+ .mtphr-dnt-field-mtphr_dnt_list_tick_paging,
995
+ .mtphr-dnt-field-mtphr_dnt_list_tick_prev_next {
996
+ float: left;
997
+ margin-right: 20px;
998
+ }
999
+ .mtphr-dnt-field-mtphr_dnt_list_padding,
1000
+ .mtphr-dnt-field-mtphr_dnt_list_margin {
1001
+ margin-bottom: 0;
1002
+ }
1003
+ }
1004
+
1005
+ /* --------------------------------------------------------- */
1006
+ /* !Global Settings Metabox */
1007
+ /* --------------------------------------------------------- */
1008
+ @media (min-width: 768px) {
1009
+ .mtphr-dnt-field-mtphr_dnt_title {
1010
+ float: left;
1011
+ margin-right: 20px;
1012
+ }
1013
+ }
assets/css/style.css CHANGED
@@ -2,236 +2,529 @@
2
  max-width: 100%;
3
  height: auto;
4
  }
 
5
  .mtphr-dnt-wrapper {
6
- position: relative;
7
- width: 100%;
8
  }
 
9
  .mtphr-dnt-inline-title {
10
- float: left;
11
- padding-right: 5px;
12
  }
 
13
  .mtphr-dnt-tick-container {
14
- position: relative;
15
  }
 
16
  .mtphr-dnt-tick-contents {
17
- position: relative;
18
- overflow: hidden;
19
  }
 
20
  .mtphr-dnt-tick {
21
- margin: 0;
22
  }
23
- .mtphr-dnt-rotate .mtphr-dnt-tick,
24
- .mtphr-dnt-scroll .mtphr-dnt-tick {
25
- display:none;
26
  }
 
27
  .mtphr-dnt-rotate .mtphr-dnt-tick,
28
  .mtphr-dnt-scroll .mtphr-dnt-tick {
29
- position: absolute;
30
- display:none;
 
 
 
 
31
  }
 
32
  .mtphr-dnt-scroll-left .mtphr-dnt-tick,
33
  .mtphr-dnt-scroll-right .mtphr-dnt-tick {
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 .mtphr-dnt-nav {
77
- position: absolute;
78
- top: 50%;
79
- margin-top: -19px;
 
80
  }
 
81
  .mtphr-dnt-nav i {
82
- display: block;
83
- width: 38px;
84
- height: 38px;
85
- font-size: 38px;
86
- line-height: 38px;
87
- color: #DDD;
88
- color: rgba(221, 221, 221, .8);
89
  }
 
90
  .mtphr-dnt-nav:hover {
91
- text-decoration: none !important;
92
  }
 
93
  .mtphr-dnt-nav:focus {
94
- outline: none;
95
  }
 
96
  .mtphr-dnt-nav-prev {
97
- left: 10px;
98
  }
 
99
  .mtphr-dnt-nav-next {
100
- right: 10px;
101
- background-position: -38px 0;
102
  }
 
103
  .mtphr-dnt-nav-hide {
104
- opacity: 0;
105
- -webkit-transition: opacity .3s linear;
106
- -moz-transition: opacity .3s linear;
107
- -o-transition: opacity .3s linear;
108
- transition: opacity .3s linear;
109
  }
 
110
  .mtphr-dnt-tick-container:hover .mtphr-dnt-nav-hide {
111
- opacity: 1;
112
  }
113
 
114
  /* Control nav
115
  ------------------------------------------------------------ */
116
-
117
  .mtphr-dnt-control-links {
118
- text-align: center;
 
 
 
 
 
119
  }
 
120
  .mtphr-dnt-control-number {
121
- padding: 2px 5px;
122
  }
 
123
  .mtphr-dnt-control-button {
124
- display: inline-block;
125
- margin: 0 2px;
126
  }
 
127
  .mtphr-dnt-control-button i {
128
- display: block;
129
- width: 18px;
130
- height: 18px;
131
- font-size: 18px;
132
- line-height: 18px;
133
- color: #CCC;
134
  }
 
135
  .mtphr-dnt-control-button:hover {
136
- text-decoration: none !important;
137
  }
 
138
  .mtphr-dnt-control-button.active i {
139
- color: #777;
140
  }
 
141
  .mtphr-dnt-control-button:focus {
142
  outline: none;
143
  }
144
 
145
  /* --------------------------------------------------------- */
146
- /* !Edit link */
147
  /* --------------------------------------------------------- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
 
 
 
149
  .mtphr-dnt-edit-link {
150
- position: absolute;
151
- top: 0;
152
- left: 0;
153
- z-index: 999;
154
- font-family: Arial, sans-serif !important;
155
- font-size: 14px !important;
156
- line-height: 16px !important;
157
- color: #666;
158
- background: #FFF;
159
- padding: 6px 8px 4px 7px;
160
- -webkit-border-radius: 5px;
161
- -moz-border-radius: 5px;
162
- border-radius: 5px;
163
- filter: alpha(opacity=50);
164
- -moz-opacity: .5;
165
- -khtml-opacity: .5;
166
- opacity: .5;
167
- -webkit-transition: opacity .2s linear;
168
- -moz-transition: opacity .2s linear;
169
- -o-transition: opacity .2s linear;
170
- transition: opacity .2s linear;
171
  }
 
172
  .mtphr-dnt-edit-link:hover {
173
- color: #666;
174
- filter: alpha(opacity=100);
175
- -moz-opacity: 1;
176
- -khtml-opacity: 1;
177
- opacity: 1;
178
  }
 
179
  .mtphr-dnt-edit-link i {
180
- float: left;
181
- display: block;
182
- margin: 1px 3px 0 0;
183
  }
184
 
185
  /* --------------------------------------------------------- */
186
  /* !Paging */
187
  /* --------------------------------------------------------- */
188
-
189
  .mtphr-dnt-tick-paging {
190
- text-align: center;
191
- list-style: none;
192
  }
 
193
  .mtphr-dnt-tick-paging a,
194
  .mtphr-dnt-tick-paging span {
195
- margin: 0 4px;
196
  }
197
 
198
  /* --------------------------------------------------------- */
199
  /* !Grid */
200
  /* --------------------------------------------------------- */
201
-
202
  .mtphr-dnt-grid {
203
- width: 100%;
204
- border-spacing: 0;
205
  }
 
206
  .mtphr-dnt-grid td {
207
- border: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
  }
209
 
210
  /* Add clearfix
211
  ------------------------------------------------------------ */
212
-
213
  .mtphr-dnt-clearfix {
214
  *zoom: 1;
215
  }
 
216
  .mtphr-dnt-clearfix:before,
217
  .mtphr-dnt-clearfix:after {
218
  display: table;
219
  line-height: 0;
220
  content: "";
221
  }
 
222
  .mtphr-dnt-clearfix:after {
223
  clear: both;
224
  }
225
 
226
-
227
  /**
228
  * Default styles
229
  *
230
  * @since 1.0.0
231
  */
232
  .mtphr-dnt-styled .mtphr-dnt-posts-nav-prev {
233
- float: left;
234
  }
 
235
  .mtphr-dnt-styled .mtphr-dnt-posts-nav-next {
236
- float: right;
237
- }
2
  max-width: 100%;
3
  height: auto;
4
  }
5
+
6
  .mtphr-dnt-wrapper {
7
+ position: relative;
8
+ width: 100%;
9
  }
10
+
11
  .mtphr-dnt-inline-title {
12
+ float: left;
13
+ padding-right: 5px;
14
  }
15
+
16
  .mtphr-dnt-tick-container {
17
+ position: relative;
18
  }
19
+
20
  .mtphr-dnt-tick-contents {
21
+ position: relative;
22
+ overflow: hidden;
23
  }
24
+
25
  .mtphr-dnt-tick {
26
+ margin: 0;
27
  }
28
+
29
+ .mtphr-dnt-tick img.emoji {
30
+ max-width: none;
31
  }
32
+
33
  .mtphr-dnt-rotate .mtphr-dnt-tick,
34
  .mtphr-dnt-scroll .mtphr-dnt-tick {
35
+ position: absolute;
36
+ display: none;
37
+ }
38
+
39
+ .mtphr-dnt-rotate .mtphr-dnt-tick {
40
+ opacity: 0;
41
  }
42
+
43
  .mtphr-dnt-scroll-left .mtphr-dnt-tick,
44
  .mtphr-dnt-scroll-right .mtphr-dnt-tick {
45
+ white-space: nowrap;
46
  }
47
 
48
+ .mtphr-dnt-trim-ticks .mtphr-dnt-tick * {
49
+ margin-top: 0 !important;
50
+ margin-bottom: 0 !important;
51
+ padding-top: 0 !important;
52
+ padding-bottom: 0 !important;
53
+ }
54
+
55
+ /* --------------------------------------------------------- */
56
+ /* !Rotate */
57
+ /* --------------------------------------------------------- */
58
+ /*
59
+ .mtphr-dnt-rotate {
60
+ .unslider {
61
+ overflow:auto;
62
+ margin:0;
63
+ padding:0;
64
+ li, ol, ul {
65
+ list-style:none;
66
+ margin:0;
67
+ padding:0;
68
+ border:none;
69
+ }
70
+ }
71
+ .unslider-wrap {
72
+ position:relative;
73
+ &.unslider-carousel {
74
+ > .mtphr-dnt-tick {
75
+ float:left;
76
+ }
77
+ }
78
+ }
79
+ .unslider-vertical {
80
+ > ul {
81
+ height:100%;
82
+ }
83
+ li {
84
+ float:none;
85
+ width:100%;
86
+ }
87
+ }
88
+ .unslider-fade {
89
+ position:relative;
90
+ .unslider-wrap {
91
+ .mtphr-dnt-tick {
92
+ position:absolute;
93
+ left:0;
94
+ top:0;
95
+ right:0;
96
+ z-index:8;
97
+ &.unslider-active {
98
+ z-index:10;
99
+ }
100
+ }
101
+ }
102
+ }
103
+ .unslider-arrow {
104
+ position:absolute;
105
+ left:20px;
106
+ z-index:2;
107
+ cursor:pointer;
108
+ &.next {
109
+ left:auto;
110
+ right:20px;
111
+ }
112
+ }
113
+ .unslider-nav {
114
+ text-align: center;
115
+ ol {
116
+ display: inline-block;
117
+ }
118
+ li {
119
+ float: left;
120
+ margin: 0 5px;
121
+ cursor: pointer;
122
+ &.unslider-active {
123
+ color: green;
124
+ }
125
+ }
126
+ }
127
+ }
128
+ */
129
  /* --------------------------------------------------------- */
130
  /* !Spinner */
131
  /* --------------------------------------------------------- */
 
132
  .mtphr-dnt-icon-spinner {
133
+ position: absolute;
134
+ left: 50%;
135
+ top: 50%;
136
+ width: 30px;
137
+ height: 30px;
138
+ font-size: 30px;
139
+ color: #FFF;
140
+ margin: -15px 0 0 -15px;
141
+ -webkit-animation: mtphr-dnt-spinner-rotation 0.8s infinite linear;
142
+ -moz-animation: mtphr-dnt-spinner-rotation 0.8s infinite linear;
143
+ -o-animation: mtphr-dnt-spinner-rotation 0.8s infinite linear;
144
+ animation: mtphr-dnt-spinner-rotation 0.8s infinite linear;
 
145
  }
146
+
147
  @-webkit-keyframes mtphr-dnt-spinner-rotation {
148
+ from {
149
+ -webkit-transform: rotate(0deg);
150
+ }
151
+ to {
152
+ -webkit-transform: rotate(359deg);
153
+ }
154
  }
155
+
156
  @-moz-keyframes mtphr-dnt-spinner-rotation {
157
+ from {
158
+ -moz-transform: rotate(0deg);
159
+ }
160
+ to {
161
+ -moz-transform: rotate(359deg);
162
+ }
163
  }
164
+
165
  @-o-keyframes mtphr-dnt-spinner-rotation {
166
+ from {
167
+ -o-transform: rotate(0deg);
168
+ }
169
+ to {
170
+ -o-transform: rotate(359deg);
171
+ }
172
  }
173
+
174
  @keyframes mtphr-dnt-spinner-rotation {
175
+ from {
176
+ transform: rotate(0deg);
177
+ }
178
+ to {
179
+ transform: rotate(359deg);
180
+ }
181
+ }
182
+
183
+ /* --------------------------------------------------------- */
184
+ /* !Images */
185
+ /* --------------------------------------------------------- */
186
+ .mtphr-dnt-image-container {
187
+ position: relative;
188
+ }
189
+
190
+ .mtphr-dnt-image-container > * {
191
+ margin: 10px 0;
192
+ }
193
+
194
+ .mtphr-dnt-image-container > *:first-child {
195
+ margin-top: 0;
196
+ }
197
+
198
+ .mtphr-dnt-image-container > *:last-child {
199
+ margin-bottom: 0;
200
+ }
201
+
202
+ .mtphr-dnt-image-container.mtphr-dnt-image-caption-top .mtphr-dnt-image-photo,
203
+ .mtphr-dnt-image-container.mtphr-dnt-image-caption-bottom .mtphr-dnt-image-photo {
204
+ margin-top: 0;
205
+ margin-bottom: 0;
206
+ }
207
+
208
+ .mtphr-dnt-image-container.mtphr-dnt-image-caption-top .mtphr-dnt-image-caption,
209
+ .mtphr-dnt-image-container.mtphr-dnt-image-caption-bottom .mtphr-dnt-image-caption {
210
+ position: absolute;
211
+ left: 0;
212
+ bottom: 0;
213
+ z-index: 9;
214
+ box-sizing: border-box;
215
+ width: 100%;
216
+ margin: 0 !important;
217
+ padding: 20px;
218
+ color: #FFF;
219
+ background: rgba(0, 0, 0, 0.7);
220
+ }
221
+
222
+ .mtphr-dnt-image-container.mtphr-dnt-image-caption-top .mtphr-dnt-image-caption {
223
+ bottom: auto;
224
+ top: 0;
225
+ }
226
+
227
+ .mtphr-dnt-image-container.mtphr-dnt-image-caption-hover {
228
+ display: block;
229
+ }
230
+
231
+ .mtphr-dnt-image-container.mtphr-dnt-image-caption-hover .mtphr-dnt-image-caption {
232
+ opacity: 0;
233
+ -webkit-transition: opacity 0.25s ease;
234
+ transition: opacity 0.25s ease;
235
+ }
236
+
237
+ .mtphr-dnt-image-container.mtphr-dnt-image-caption-hover:hover .mtphr-dnt-image-caption {
238
+ opacity: 1;
239
+ }
240
+
241
+ .mtphr-dnt-image-container .mtphr-dnt-image-photo {
242
+ line-height: 0;
243
+ }
244
+
245
+ .mtphr-dnt-image-container .mtphr-dnt-image-photo a {
246
+ display: inline-block;
247
+ max-width: 100%;
248
+ }
249
+
250
+ .mtphr-dnt-image-container .mtphr-dnt-image-photo img {
251
+ display: block;
252
+ max-width: 100%;
253
+ height: auto;
254
+ line-height: 0;
255
+ }
256
+
257
+ .mtphr-dnt-image-container .mtphr-dnt-image-placeholder,
258
+ .mtphr-dnt-image-container .mtphr-dnt-image-placeholder-loading {
259
+ position: relative;
260
+ display: none;
261
+ width: 100%;
262
+ max-width: 100%;
263
+ background: #000;
264
+ line-height: 0;
265
+ }
266
+
267
+ .mtphr-dnt-grid .mtphr-dnt-image-container {
268
+ width: 100% !important;
269
  }
270
 
271
+ .mtphr-dnt-grid .mtphr-dnt-image-container .mtphr-dnt-image-placeholder,
272
+ .mtphr-dnt-grid .mtphr-dnt-image-container .mtphr-dnt-image-placeholder-loading {
273
+ width: 100% !important;
274
+ }
275
 
276
  /* Directional nav
277
  ------------------------------------------------------------ */
278
  .mtphr-dnt .mtphr-dnt-nav {
279
+ position: absolute;
280
+ top: 50%;
281
+ text-decoration: none;
282
+ margin-top: -19px;
283
  }
284
+
285
  .mtphr-dnt-nav i {
286
+ display: block;
287
+ width: 38px;
288
+ height: 38px;
289
+ font-size: 38px;
290
+ line-height: 38px;
291
+ color: #DDD;
292
+ color: rgba(221, 221, 221, 0.8);
293
  }
294
+
295
  .mtphr-dnt-nav:hover {
296
+ text-decoration: none !important;
297
  }
298
+
299
  .mtphr-dnt-nav:focus {
300
+ outline: none;
301
  }
302
+
303
  .mtphr-dnt-nav-prev {
304
+ left: 10px;
305
  }
306
+
307
  .mtphr-dnt-nav-next {
308
+ right: 10px;
309
+ background-position: -38px 0;
310
  }
311
+
312
  .mtphr-dnt-nav-hide {
313
+ opacity: 0;
314
+ -webkit-transition: opacity 0.3s linear;
315
+ -moz-transition: opacity 0.3s linear;
316
+ -o-transition: opacity 0.3s linear;
317
+ transition: opacity 0.3s linear;
318
  }
319
+
320
  .mtphr-dnt-tick-container:hover .mtphr-dnt-nav-hide {
321
+ opacity: 1;
322
  }
323
 
324
  /* Control nav
325
  ------------------------------------------------------------ */
 
326
  .mtphr-dnt-control-links {
327
+ text-align: center;
328
+ margin: 15px 0px 0px;
329
+ }
330
+
331
+ .mtphr-dnt-control-links a {
332
+ text-decoration: none;
333
  }
334
+
335
  .mtphr-dnt-control-number {
336
+ padding: 2px 5px;
337
  }
338
+
339
  .mtphr-dnt-control-button {
340
+ display: inline-block;
341
+ margin: 0 2px;
342
  }
343
+
344
  .mtphr-dnt-control-button i {
345
+ display: block;
346
+ width: 18px;
347
+ height: 18px;
348
+ font-size: 18px;
349
+ line-height: 18px;
350
+ color: #CCC;
351
  }
352
+
353
  .mtphr-dnt-control-button:hover {
354
+ text-decoration: none !important;
355
  }
356
+
357
  .mtphr-dnt-control-button.active i {
358
+ color: #777;
359
  }
360
+
361
  .mtphr-dnt-control-button:focus {
362
  outline: none;
363
  }
364
 
365
  /* --------------------------------------------------------- */
366
+ /* !Play & Pause */
367
  /* --------------------------------------------------------- */
368
+ .mtphr-dnt-play-pause {
369
+ float: right;
370
+ color: inherit;
371
+ text-decoration: none;
372
+ }
373
+
374
+ .mtphr-dnt-play-pause:hover i {
375
+ opacity: 1;
376
+ text-decoration: none;
377
+ }
378
+
379
+ .mtphr-dnt-play-pause:active, .mtphr-dnt-play-pause:focus {
380
+ outline: none;
381
+ text-decoration: none;
382
+ }
383
+
384
+ .mtphr-dnt-play-pause.paused i.mtphr-dnt-icon-play {
385
+ display: none;
386
+ }
387
+
388
+ .mtphr-dnt-play-pause.paused i.mtphr-dnt-icon-pause {
389
+ display: inline-block;
390
+ }
391
+
392
+ .mtphr-dnt-play-pause i {
393
+ display: inline-block;
394
+ box-sizing: border-box;
395
+ width: 40px;
396
+ height: 40px;
397
+ font-size: 25px;
398
+ line-height: 33px;
399
+ text-align: center;
400
+ color: #FFF;
401
+ background-color: #333;
402
+ border-radius: 20px;
403
+ opacity: .8;
404
+ -webkit-transition: opacity 0.25s ease;
405
+ transition: opacity 0.25s ease;
406
+ }
407
+
408
+ .mtphr-dnt-play-pause i:before {
409
+ vertical-align: middle;
410
+ }
411
+
412
+ .mtphr-dnt-play-pause i.mtphr-dnt-icon-play {
413
+ padding-left: 4px;
414
+ }
415
+
416
+ .mtphr-dnt-play-pause i.mtphr-dnt-icon-pause {
417
+ display: none;
418
+ }
419
 
420
+ /* --------------------------------------------------------- */
421
+ /* !Edit link */
422
+ /* --------------------------------------------------------- */
423
  .mtphr-dnt-edit-link {
424
+ position: absolute;
425
+ top: 0;
426
+ left: 0;
427
+ z-index: 999;
428
+ font-family: Arial, sans-serif !important;
429
+ font-size: 14px !important;
430
+ line-height: 16px !important;
431
+ color: #666;
432
+ background: #FFF;
433
+ padding: 6px 8px 4px 7px;
434
+ -webkit-border-radius: 5px;
435
+ -moz-border-radius: 5px;
436
+ border-radius: 5px;
437
+ filter: alpha(opacity=50);
438
+ -moz-opacity: .5;
439
+ -khtml-opacity: .5;
440
+ opacity: .5;
441
+ -webkit-transition: opacity 0.2s linear;
442
+ -moz-transition: opacity 0.2s linear;
443
+ -o-transition: opacity 0.2s linear;
444
+ transition: opacity 0.2s linear;
445
  }
446
+
447
  .mtphr-dnt-edit-link:hover {
448
+ color: #666;
449
+ filter: alpha(opacity=100);
450
+ -moz-opacity: 1;
451
+ -khtml-opacity: 1;
452
+ opacity: 1;
453
  }
454
+
455
  .mtphr-dnt-edit-link i {
456
+ float: left;
457
+ display: block;
458
+ margin: 1px 3px 0 0;
459
  }
460
 
461
  /* --------------------------------------------------------- */
462
  /* !Paging */
463
  /* --------------------------------------------------------- */
 
464
  .mtphr-dnt-tick-paging {
465
+ text-align: center;
466
+ list-style: none;
467
  }
468
+
469
  .mtphr-dnt-tick-paging a,
470
  .mtphr-dnt-tick-paging span {
471
+ margin: 0 4px;
472
  }
473
 
474
  /* --------------------------------------------------------- */
475
  /* !Grid */
476
  /* --------------------------------------------------------- */
 
477
  .mtphr-dnt-grid {
478
+ width: 100%;
479
+ border-spacing: 0;
480
  }
481
+
482
  .mtphr-dnt-grid td {
483
+ border: none;
484
+ }
485
+
486
+ .mtphr-dnt-grid-remove-padding tr > td:first-child {
487
+ padding-left: 0 !important;
488
+ }
489
+
490
+ .mtphr-dnt-grid-remove-padding tr > td:last-child {
491
+ padding-right: 0 !important;
492
+ }
493
+
494
+ .mtphr-dnt-grid-remove-padding tr:first-child td {
495
+ padding-top: 0 !important;
496
+ }
497
+
498
+ .mtphr-dnt-grid-remove-padding tr:last-child td {
499
+ padding-bottom: 0 !important;
500
  }
501
 
502
  /* Add clearfix
503
  ------------------------------------------------------------ */
 
504
  .mtphr-dnt-clearfix {
505
  *zoom: 1;
506
  }
507
+
508
  .mtphr-dnt-clearfix:before,
509
  .mtphr-dnt-clearfix:after {
510
  display: table;
511
  line-height: 0;
512
  content: "";
513
  }
514
+
515
  .mtphr-dnt-clearfix:after {
516
  clear: both;
517
  }
518
 
 
519
  /**
520
  * Default styles
521
  *
522
  * @since 1.0.0
523
  */
524
  .mtphr-dnt-styled .mtphr-dnt-posts-nav-prev {
525
+ float: left;
526
  }
527
+
528
  .mtphr-dnt-styled .mtphr-dnt-posts-nav-next {
529
+ float: right;
530
+ }
assets/fontastic/fonts/ditty-news-ticker.eot CHANGED
Binary file
assets/fontastic/fonts/ditty-news-ticker.svg CHANGED
@@ -7,13 +7,76 @@
7
  <font-face font-family="ditty-news-ticker" units-per-em="512" ascent="480" descent="-32"/>
8
  <missing-glyph horiz-adv-x="512" />
9
 
10
- <glyph unicode="&#57344;" d="M325 512l-138 0c-103 0-187-86-187-192 0-97 70-176 160-190l0-130 0 0 128 128 37 0c103 0 187 86 187 192 0 106-84 192-187 192z m-197-240c-26 0-48 22-48 48 0 26 22 48 48 48 26 0 48-22 48-48 0-26-22-48-48-48z m128 0c-26 0-48 22-48 48 0 26 22 48 48 48 26 0 48-22 48-48 0-26-22-48-48-48z m128 0c-26 0-48 22-48 48 0 26 22 48 48 48 26 0 48-22 48-48 0-26-22-48-48-48z"/>
11
- <glyph unicode="&#57345;" d="M288 352l64 0-112 128-112-128 64 0 0-192-64 0 112-128 112 128-64 0z"/>
12
- <glyph unicode="&#57346;" d="M240 416c-97 0-176-79-176-176 0-97 79-176 176-176 97 0 176 79 176 176 0 97-79 176-176 176z m112-208l-80 0 0-80-64 0 0 80-80 0 0 64 80 0 0 80 64 0 0-80 80 0z"/>
13
- <glyph unicode="&#57347;" d="M240 416c-97 0-176-79-176-176 0-97 79-176 176-176 97 0 176 79 176 176 0 97-79 176-176 176z m112-208l-224 0 0 64 224 0z"/>
14
- <glyph unicode="&#57348;" d="M75 75c-48 48-75 113-75 181 0 141 115 256 256 256l32-32-32-32c-106 0-192-86-192-192 0-51 20-100 56-136l-39-5z m181-75l-32 32 32 32c106 0 192 86 192 192 0 51-20 100-56 136l39 5 6 40c48-48 75-113 75-181 0-141-115-256-256-256z"/>
15
- <glyph unicode="&#57349;" d="M256 0c141 0 256 115 256 256 0 141-115 256-256 256-141 0-256-115-256-256 0-141 115-256 256-256z m0 384l0-96 128 0 0-64-128 0 0-96-128 128z"/>
16
- <glyph unicode="&#57350;" d="M256 512c-141 0-256-115-256-256 0-141 115-256 256-256 141 0 256 115 256 256 0 141-115 256-256 256z m0-384l0 96-128 0 0 64 128 0 0 96 128-128z"/>
17
- <glyph unicode="&#57351;" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
18
- <glyph unicode="&#57352;" d="M329 256c0 20-7 37-21 52-15 14-32 21-52 21-20 0-37-7-52-21-14-15-21-32-21-52 0-20 7-37 21-52 15-14 32-21 52-21 20 0 37 7 52 21 14 15 21 32 21 52z m146 31l0-63c0-3 0-5-2-7-1-2-3-3-6-4l-52-8c-4-10-8-19-12-26 7-9 17-22 31-39 2-2 3-5 3-7 0-3-1-5-3-7-5-7-14-17-28-31-14-13-23-20-27-20-2 0-5 1-7 3l-40 31c-8-5-17-8-26-11-3-26-6-44-8-53-1-6-5-8-10-8l-64 0c-2 0-5 0-7 2-2 2-3 4-3 6l-8 53c-9 3-18 6-26 10l-40-30c-2-2-4-3-7-3-3 0-5 1-7 3-24 22-40 38-47 48-2 2-2 4-2 7 0 2 0 4 2 6 3 4 8 11 14 19 7 9 12 16 16 21-5 9-9 19-12 28l-52 8c-3 0-5 1-6 3-2 2-2 4-2 7l0 63c0 3 0 5 2 7 1 2 3 3 5 4l53 8c3 8 7 17 12 26-8 11-18 24-31 39-2 3-3 5-3 7 0 2 1 4 3 7 5 7 14 17 28 30 14 14 23 21 27 21 2 0 5-1 7-3l40-31c8 5 17 8 26 11 3 26 6 44 8 53 1 6 5 8 10 8l64 0c2 0 5 0 7-2 2-2 3-4 3-6l8-53c9-3 18-6 26-10l40 30c2 2 4 3 7 3 3 0 5-1 7-3 25-23 41-39 47-49 2-1 2-3 2-6 0-2 0-4-2-6-3-4-8-11-14-19-7-9-12-16-16-21 5-9 9-18 12-28l52-8c3 0 5-1 6-3 2-2 2-4 2-7z"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </font></defs></svg>
7
  <font-face font-family="ditty-news-ticker" units-per-em="512" ascent="480" descent="-32"/>
8
  <missing-glyph horiz-adv-x="512" />
9
 
10
+ <glyph glyph-name="ticker" unicode="&#57344;" d="M325 512l-138 0c-103 0-187-86-187-192 0-97 70-176 160-190l0-130 0 0 128 128 37 0c103 0 187 86 187 192 0 106-84 192-187 192z m-197-240c-26 0-48 22-48 48 0 26 22 48 48 48 26 0 48-22 48-48 0-26-22-48-48-48z m128 0c-26 0-48 22-48 48 0 26 22 48 48 48 26 0 48-22 48-48 0-26-22-48-48-48z m128 0c-26 0-48 22-48 48 0 26 22 48 48 48 26 0 48-22 48-48 0-26-22-48-48-48z"/>
11
+ <glyph glyph-name="move" unicode="&#57345;" d="M288 352l64 0-112 128-112-128 64 0 0-192-64 0 112-128 112 128-64 0z"/>
12
+ <glyph glyph-name="add" unicode="&#57346;" d="M240 416c-97 0-176-79-176-176 0-97 79-176 176-176 97 0 176 79 176 176 0 97-79 176-176 176z m112-208l-80 0 0-80-64 0 0 80-80 0 0 64 80 0 0 80 64 0 0-80 80 0z"/>
13
+ <glyph glyph-name="delete" unicode="&#57347;" d="M240 416c-97 0-176-79-176-176 0-97 79-176 176-176 97 0 176 79 176 176 0 97-79 176-176 176z m112-208l-224 0 0 64 224 0z"/>
14
+ <glyph glyph-name="spinner" unicode="&#57348;" d="M75 75c-48 48-75 113-75 181 0 141 115 256 256 256l32-32-32-32c-106 0-192-86-192-192 0-51 20-100 56-136l-39-5z m181-75l-32 32 32 32c106 0 192 86 192 192 0 51-20 100-56 136l39 5 6 40c48-48 75-113 75-181 0-141-115-256-256-256z"/>
15
+ <glyph glyph-name="arrow-left" unicode="&#57349;" d="M256 0c141 0 256 115 256 256 0 141-115 256-256 256-141 0-256-115-256-256 0-141 115-256 256-256z m0 384l0-96 128 0 0-64-128 0 0-96-128 128z"/>
16
+ <glyph glyph-name="arrow-right" unicode="&#57350;" d="M256 512c-141 0-256-115-256-256 0-141 115-256 256-256 141 0 256 115 256 256 0 141-115 256-256 256z m0-384l0 96-128 0 0 64 128 0 0 96 128-128z"/>
17
+ <glyph glyph-name="button" unicode="&#57351;" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
18
+ <glyph glyph-name="gear" unicode="&#57352;" d="M329 256c0 20-7 37-21 52-15 14-32 21-52 21-20 0-37-7-52-21-14-15-21-32-21-52 0-20 7-37 21-52 15-14 32-21 52-21 20 0 37 7 52 21 14 15 21 32 21 52z m146 31l0-63c0-3 0-5-2-7-1-2-3-3-6-4l-52-8c-4-10-8-19-12-26 7-9 17-22 31-39 2-2 3-5 3-7 0-3-1-5-3-7-5-7-14-17-28-31-14-13-23-20-27-20-2 0-5 1-7 3l-40 31c-8-5-17-8-26-11-3-26-6-44-8-53-1-6-5-8-10-8l-64 0c-2 0-5 0-7 2-2 2-3 4-3 6l-8 53c-9 3-18 6-26 10l-40-30c-2-2-4-3-7-3-3 0-5 1-7 3-24 22-40 38-47 48-2 2-2 4-2 7 0 2 0 4 2 6 3 4 8 11 14 19 7 9 12 16 16 21-5 9-9 19-12 28l-52 8c-3 0-5 1-6 3-2 2-2 4-2 7l0 63c0 3 0 5 2 7 1 2 3 3 5 4l53 8c3 8 7 17 12 26-8 11-18 24-31 39-2 3-3 5-3 7 0 2 1 4 3 7 5 7 14 17 28 30 14 14 23 21 27 21 2 0 5-1 7-3l40-31c8 5 17 8 26 11 3 26 6 44 8 53 1 6 5 8 10 8l64 0c2 0 5 0 7-2 2-2 3-4 3-6l8-53c9-3 18-6 26-10l40 30c2 2 4 3 7 3 3 0 5-1 7-3 25-23 41-39 47-49 2-1 2-3 2-6 0-2 0-4-2-6-3-4-8-11-14-19-7-9-12-16-16-21 5-9 9-18 12-28l52-8c3 0 5-1 6-3 2-2 2-4 2-7z"/>
19
+ <glyph glyph-name="dittynewsticker" unicode="&#57353;" d="M410 461l0-194c0-45-12-83-36-111-13-16-30-29-51-39-21-9-43-14-65-14-43 0-81 15-111 44-29 30-45 66-45 109 0 41 15 77 45 108 30 30 65 45 106 45 5 0 13 0 23-1l0-106c-7 3-14 5-21 5-14 0-26-5-36-16-10-10-15-22-15-37 0-13 5-26 16-36 10-10 23-15 37-15 24 0 52 12 52 69l0 234c-17 4-35 6-53 6-141 0-256-115-256-256 0-141 115-256 256-256 141 0 256 115 256 256 0 84-40 158-102 205z"/>
20
+ <glyph glyph-name="flickr" unicode="&#57354;" d="M256 502c68 0 126-24 174-72 48-48 72-106 72-174 0-68-24-125-72-174-48-48-106-72-174-72-68 0-125 24-174 72-48 49-72 106-72 174 0 68 24 126 72 174 49 48 106 72 174 72m-66-297c14 0 26 5 36 15 11 10 16 22 16 36 0 14-5 27-16 37-10 10-22 15-36 15-13 0-25-5-35-15-11-10-16-23-16-37 0-14 5-26 16-36 10-10 22-15 35-15m132 0c14 0 26 5 36 15 10 10 15 22 15 36 0 14-5 27-15 37-10 10-22 15-36 15-14 0-26-5-36-15-10-10-15-23-15-37 0-14 5-26 15-36 10-10 22-15 36-15"/>
21
+ <glyph glyph-name="instagram" unicode="&#57355;" d="M66 512l380 0c36 0 66-30 66-66l0-380c0-36-30-66-66-66l-380 0c-36 0-66 30-66 66l0 380c0 36 30 66 66 66z m307-57c-13 0-23-10-23-23l0-55c0-13 10-23 23-23l58 0c13 0 23 10 23 23l0 55c0 13-10 23-23 23z m81-160l-45 0c4-13 7-28 7-43 0-86-72-155-160-155-87 0-159 69-159 155 0 15 3 30 7 43l-47 0 0-216c0-11 9-20 20-20l357 0c11 0 20 9 20 20l0 216z m-198 62c-56 0-102-45-102-100 0-55 46-100 102-100 57 0 103 45 103 100 0 55-46 100-103 100z"/>
22
+ <glyph glyph-name="download" unicode="&#57356;" d="M320 352l-128 0 0-96-64 0 128-128 128 128-64 0z m-64 160c-141 0-256-115-256-256 0-141 115-256 256-256 141 0 256 115 256 256 0 141-115 256-256 256m0-448c-106 0-192 86-192 192 0 106 86 192 192 192 106 0 192-86 192-192 0-106-86-192-192-192"/>
23
+ <glyph glyph-name="social-500px" unicode="&#57357;" d="M334 291c-5 0-11-1-15-3-5-2-10-5-14-9-5-3-9-7-13-11-4-4-7-8-10-11 3-4 7-8 11-12 4-4 8-7 12-10 5-3 9-6 14-7 5-2 10-3 16-3 10 0 17 3 23 9 5 7 7 14 7 24 0 9-2 17-8 23-6 7-13 10-23 10z m-111-23c-4 4-9 8-13 11-5 4-10 7-15 9-5 2-10 3-15 3-9 0-16-3-22-10-5-7-8-15-8-24 0-9 3-17 9-23 5-6 13-9 23-9 5 0 10 1 15 3 5 2 9 4 14 7 4 3 8 7 12 10 4 4 8 8 11 12-3 3-7 7-11 11z m181 172l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 296c0 20-16 36-36 36z m-6-210c-3-9-8-17-14-24-5-6-13-12-21-15-9-4-18-6-29-6-8 0-16 1-23 4-7 2-14 5-20 9-6 5-12 9-17 15-6 5-11 11-16 16-6-5-11-11-16-16-6-6-11-10-17-15-6-4-13-7-20-9-7-3-14-4-23-4-11 0-21 2-29 6-8 3-16 8-22 15-6 6-10 14-14 23-3 9-4 19-4 29 0 10 1 20 4 29 3 8 8 16 13 23 6 6 13 11 22 15 8 4 18 6 28 6 9 0 17-2 24-4 7-3 14-6 20-11 7-4 12-9 18-15 5-5 11-11 16-18 5 6 10 12 15 18 6 6 12 11 18 15 6 5 13 8 20 11 7 2 15 4 24 4 10 0 20-2 28-6 8-4 16-9 21-15 6-6 11-14 14-23 3-8 5-18 5-28 0-11-2-20-5-29z"/>
24
+ <glyph glyph-name="social-adobe" unicode="&#57358;" d="M304 419l136-326 0 326z m-232 0l0-326 136 326z m124-261l64 0 26-65 57 0-87 206z"/>
25
+ <glyph glyph-name="social-amazon" unicode="&#57359;" d="M266 328c-22-2-44-4-65-11-44-13-67-43-66-87 0-39 23-65 63-70 25-2 49 2 70 19 6 5 11 10 17 14 8-9 16-18 25-27 5-6 10-6 16-1 11 10 22 19 33 29 6 5 7 9 1 15-12 15-17 32-17 51 1 35 1 70 0 104-1 27-15 47-39 58-38 16-76 16-113-1-26-11-41-31-47-58-2-9 0-12 9-13 13-2 26-4 39-5 7-1 11 1 13 8 4 21 25 32 45 29 13-2 23-10 25-22 1-10 1-21 2-31-2 0-3-1-3-1-3 0-5 0-8 0z m-1-101c-6-10-14-17-26-19-19-3-33 9-34 29-2 27 12 45 38 50 11 2 22 3 33 4 0-23 2-45-11-64z m121-78c-2-1-4-1-5-2-26-11-51-19-78-25-26-5-51-7-77-5-32 3-61 13-90 28-18 9-35 18-53 28-6 3-11 2-14-2-3-4-2-10 3-14 18-13 35-28 54-41 35-24 73-38 123-38 40 1 85 14 126 38 7 4 14 9 21 14 6 4 7 9 4 14-3 5-8 7-14 5z m38 39c-19 2-38 0-55-12-4-3-6-7-4-12 2-4 6-5 11-4 8 1 17 2 26 3 0 0 0 0 0 0 3 0 6 0 9 0 4 0 6-2 5-6-1-4-2-8-3-13-2-8-6-15-8-23 0-3 0-7 2-9 2-1 6-2 9-1 2 0 4 2 6 4 13 14 20 30 22 49 2 18-1 22-20 24z"/>
26
+ <glyph glyph-name="social-android" unicode="&#57360;" d="M310 419l18 32c1 1 0 3-2 4-1 1-4 1-4-1l-18-32c-14 7-31 10-48 10-17 0-34-3-48-10l-18 32c-1 2-3 2-4 1-2-1-3-3-2-4l18-32c-34-17-57-50-57-89l222 0c0 39-23 72-57 89z m-105-48c-5 0-9 4-9 9 0 5 4 9 9 9 6 0 10-4 10-9 0-5-4-9-10-9z m102 0c-6 0-10 4-10 9 0 5 4 9 10 9 5 0 9-4 9-9 0-5-4-9-9-9z m118-69c0 14-11 25-25 25-13 0-24-12-24-25l0-103c0-14 11-25 24-25 14 0 25 11 25 25z m-59 20l-220 0 0-160c0-4 1-8 3-12 4-8 13-14 23-14l18 0 0-55c0-2 0-3 1-5 2-11 12-20 24-20 1 0 3 0 5 1 11 2 19 12 19 24l0 55 34 0 0-55c0-12 8-22 19-24 2 0 4-1 5-1 14 0 25 11 25 25l0 55 18 0c5 0 9 1 13 3 8 5 13 13 13 23z m-254 5c-14 0-25-12-25-25l0-103c0-9 4-17 11-21 4-3 9-4 14-4 12 0 22 8 24 20 0 1 0 3 0 5l0 103c0 13-11 25-24 25z"/>
27
+ <glyph glyph-name="social-apple" unicode="&#57361;" d="M420 323c-21 27-51 42-79 42-37 0-52-18-78-18-26 0-46 18-78 18-32 0-65-19-87-52-29-46-24-132 24-206 17-26 40-56 71-56 26 0 34 17 70 18 37 0 44-18 71-18 30 1 54 33 71 60 13 18 17 28 27 49-70 27-81 125-12 163z m-107 71c14 18 24 42 20 67-22-2-47-16-62-34-14-16-25-41-21-65 24 0 49 14 63 32z"/>
28
+ <glyph glyph-name="social-behance" unicode="&#57362;" d="M329 224c-17 0-23-13-24-19l44 0c0 4-1 9-6 14-3 3-8 5-14 5z m-116-24c0 0 0 0 0 0l-42 0 0-36 40 0c7 0 16 3 16 18 0 18-12 18-14 18z m192 240l-297 0c-16 0-30-11-35-25l0-318c4-13 15-22 27-25l312 0c12 3 23 12 27 24l0 320c-5 14-19 24-34 24z m-112-156c0 2 1 3 3 3l64 0c1 0 2-1 2-3l0-19c0-1-1-2-2-2l-64 0c-2 0-3 1-3 2z m-27-105c0-25-13-36-24-42-11-6-24-6-27-6l-81 0c-1 0-3 1-3 2l0 155c0 1 2 2 3 2l80 0c29 0 47-16 47-43 0-17-8-25-16-29 4-1 8-4 11-7 11-12 10-31 10-32z m119 2c0-1-1-2-2-2l-78 0c1-9 4-15 10-18 6-4 12-4 14-4 0 0 1 0 1 0 9 0 15 2 19 6 3 4 3 8 3 8 0 1 0 1 1 2 0 0 1 1 2 1l27 0c1 0 3-1 3-3 0-41-45-44-54-44-1 0-2 0-2 0 0 0 0 0 0 0-20 0-36 6-47 18-17 18-15 43-15 44 0 1 0 16 8 31 7 14 22 31 54 31 18 0 33-6 43-17 17-20 14-52 13-53z m-163 64c0 13-8 14-9 14l-42 0 0-30 39 0c6 0 12 1 12 16z"/>
29
+ <glyph glyph-name="social-bing" unicode="&#57363;" d="M356 224c0 38-44 69-99 69-55 0-99-31-99-69 0-39 44-70 99-70 55 0 99 31 99 70z m39 92c-36 25-82 37-126 40-52 0-103-7-149-39l0 99-58 0 0-179c0-75 50-108 115-132 24-6 50-9 79-9 28 0 54 3 78 9 23 6 44 15 61 25 17 10 30 23 40 36 9 14 14 29 14 45 7 53-30 88-54 105z m-122-188c-65-2-141 18-149 94-4 42 38 96 132 99 38 1 128-20 134-93 4-44-52-98-117-100z"/>
30
+ <glyph glyph-name="social-blogger" unicode="&#57364;" d="M380 440l-247 0c-34 0-61-27-61-61l0-246c0-34 27-61 61-61l247 0c33 0 60 27 60 61l0 246c0 34-27 61-60 61z m-12-225c0-39-32-71-72-71l-82 0c-39 0-71 32-71 71l0 83c0 40 32 72 71 72l50 0c19-2 46-18 55-39 3-6 5-7 7-24 1-9 2-16 6-20 5-5 26-1 30-5l4-2 2-4 0-3z m-153 69l40 0c7 0 14 6 14 14 0 7-7 13-14 13l-40 0c-7 0-13-6-13-13 0-8 6-14 13-14z m81-54l-81 0c-7 0-13-6-13-14 0-7 6-13 13-13l81 0c7 0 13 6 13 13 0 8-6 14-13 14z"/>
31
+ <glyph glyph-name="social-delicious" unicode="&#57365;" d="M256 256l0 174-174 0 0-174 174 0 0-174 174 0 0 174z"/>
32
+ <glyph glyph-name="social-designer-news" unicode="&#57366;" d="M342 318l1-81-47 76-3 5-28 0 0-128 31 0-1 78 50-78 28 0 0 128z m62 122l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l162 0-143 115 0 136 54 0c20 0 31-2 43-10 7-4 12-9 17-16 2-3 4-6 5-8l14-11 0 45 36 0 2-2 0-1 39-31 0 29 0 5 41 0 0 0 62-50 0 131c0 20-16 36-36 36z m-195-125c-7 2-15 3-25 3-1 0-2 0-3 0l-43 0 0-128 50 0c37 0 61 26 61 64 0 16-4 29-12 40-1 1-2 2-3 4-1 0-1 1-2 2 0 0-1 1-1 1-1 1-1 1-2 2-1 1-1 1-2 2-1 0-1 1-2 1-1 1-2 2-4 3-1 1-2 1-4 2-1 1-2 1-3 2 0 0-1 0-1 0-1 1-2 1-4 2z m7-62c0-22-11-34-31-34l-14 0 0 70 14 0c20 0 31-13 31-36z"/>
33
+ <glyph glyph-name="social-deviant-art" unicode="&#57367;" d="M237 283c11 4 38 9 57 6l24-50 67 16c4 0 5 5 0 9-42 34-83 41-165 23l49-101-169-48 0-31c0-1 0-2 1-2 1-1 2-2 3-2l303 0c1 0 2 1 3 2 1 0 1 1 1 2l0 118-129-35c0 0-36 73-45 93z m170 129l-303 0c-1 0-2 0-2-1-2 0-2-2-2-3l0-132c6 5 30 23 54 30l-20 46 56 0c0 0 15-32 15-33 20 7 118 22 205-15l1-1 0 105c0 1-1 3-2 3 0 1-1 1-2 1z m-268-217c13 3 61 16 61 16l-31 63c-9-2-44-18-42-73 0 0 0-9 12-6z m271 245l-308 0c-17 0-30-14-30-31l0-306c0-17 13-31 30-31l308 0c17 0 30 14 30 31l0 306c0 17-13 31-30 31z m11-333c0-7-6-14-14-14l-303 0c-8 0-14 7-14 14l0 301c0 8 6 14 14 14l303 0c8 0 14-6 14-14z"/>
34
+ <glyph glyph-name="social-digg" unicode="&#57368;" d="M474 317c0 2 0 4 0 6-2 0-4 0-5 0-36 0-71 0-107 0-4 0-5-1-5-5 0-40 0-80 0-120 0-5 1-6 6-6 20 1 40 0 61 0 1 0 3 0 5 0 0-6 0-11 0-16 0-4-1-5-5-5-20 0-41 0-62 0-4 0-5-1-5-5 0-8 0-15 0-23 0-4 1-5 5-5 36 0 71 0 106 0 5 0 6 2 6 6 0 58 0 115 0 173z m-49-92c-6 0-13 0-19 0-3 0-4 1-4 4 0 19 0 38 0 57 0 2 1 4 2 4 8 0 16 0 25 0 0-4 0-7 0-11 0-17 0-33 0-49 0-4-1-5-4-5z m-87 98c-35 0-71 0-106 0-4 0-5-1-5-5 0-40 0-80 0-120 0-4 1-6 5-6 20 1 41 0 61 1 5 0 6-2 6-6 0-4 0-8 0-11 0-4-1-5-5-5-20 0-41 0-62 0-1 0-3 0-5 0 0-10 0-19 0-28 0-4 1-5 5-5 35 0 71 0 106 0 2 0 3 0 5 0 0 2 0 4 0 5 0 58 0 117 1 175 0 4-2 5-6 5z m-39-95c0-1-2-3-3-3-7 0-15 0-22 0-1 0-2 2-2 3-1 20 0 41 0 62 8 0 16 0 24 0 1 0 3-2 3-3 0-19 0-39 0-59z m-189 141c0-13 0-26 0-40 0-6 0-6-6-6-21 0-41 0-61 0-4 0-5-1-5-5 0-44 0-88 0-132 0-4 1-5 5-5 36 0 71 0 107 0 1 0 3 0 4 0 0 65 0 129 0 193-14 0-29 0-44 0 0-2 0-4 0-5z m-5-155c-6 0-12 0-18 0-2 0-4 1-4 2 0 25 0 49 0 74 9 0 18 0 27 0 0-2 0-3 0-5 0-22 0-44 0-66 0-4-1-6-5-5z m104 109c-12 0-24 0-36 0-4 0-4-1-4-5 0-13 0-25 0-38 0-31 0-63 0-94 0-4 0-5 4-5 5 0 10 0 14 0 9 0 17 0 26 0 0 1 0 2 0 2 0 46 0 91 0 137 0 3-1 3-4 3z m-37 17c13 0 25 0 38 0 2 0 3 1 3 4 0 4 0 8 0 13 0 5 0 11 0 17-15 0-29 0-44 0 0-11 0-21 0-31 0-1 2-3 3-3z"/>
35
+ <glyph glyph-name="social-dribbble" unicode="&#57369;" d="M256 442c-102 0-186-84-186-186 0-102 84-186 186-186 102 0 186 84 186 186 0 102-84 186-186 186z m123-86c22-27 35-61 35-99-5 1-57 12-110 5-1 3-2 6-3 9-4 7-7 15-11 22 59 24 85 58 89 63z m-123 58c40 0 77-15 105-40-3-4-27-36-83-57-26 48-55 87-59 93 12 3 24 4 37 4z m-67-15c4-6 32-45 58-91-74-20-139-20-146-20 10 49 43 90 88 111z m-91-143c0 1 0 3 0 5 7-1 83-2 162 22 5-9 9-18 13-27-2 0-4-1-6-2-82-26-125-98-129-104-25 28-40 65-40 106z m158-159c-37 0-70 13-97 34 3 6 35 68 124 99 0 0 1 0 1 0 22-58 32-106 34-120-19-8-40-13-62-13z m89 27c-2 10-11 56-31 113 49 8 93-5 98-6-7-44-32-83-67-107z"/>
36
+ <glyph glyph-name="social-drive" unicode="&#57370;" d="M208 207l-67-115 240 0 67 115z m232 6l-120 208-133 1 121-208z m-256 200l-120-208 66-115 120 208z"/>
37
+ <glyph glyph-name="social-dropbox" unicode="&#57371;" d="M174 440l-116-76 80-64 118 72z m-116-205l116-76 82 68-118 73z m198-8l82-68 116 76-80 65z m198 137l-116 76-82-68 118-72z m-198-152l-82-68-35 23 0-25 117-70 117 70 0 25-35-23z"/>
38
+ <glyph glyph-name="social-evernote" unicode="&#57372;" d="M122 379c0 0 0 0 0 0l38 0c2 0 4 1 4 3 0 0-1 33-1 42l0 0c0 7 2 13 4 19l2 2c-1 0-1 0-1 0l-73-72c0-1 0-1 0-1 1 1 4 2 4 2 6 3 14 5 23 5z m292 7c-3 16-12 24-21 27-9 4-28 7-51 10-19 2-42 2-55 2-2 11-10 21-18 24-23 10-59 7-68 5-8-2-16-7-20-13-3-4-5-10-5-17 0-5 0-15 0-24 0-9 0-18 0-18 0-8-6-14-15-14l-37 0c-8 0-14-2-19-4-5-2-8-5-10-8-5-7-6-15-6-24 0 0 0-7 1-20 2-10 13-83 24-105 4-9 7-12 15-16 18-8 59-16 79-19 19-2 31-7 39 8 0 0 1 3 3 9 6 19 7 36 7 48 0 1 2 2 2 0 0-8-2-39 21-47 10-3 28-6 48-9 17-2 30-8 30-53 0-27-6-31-36-31-24 0-33-1-33 19 0 15 15 14 27 14 5 0 1 3 1 13 0 9 6 15 0 15-39 1-62 0-62-49 0-45 17-53 73-53 43 0 59 1 77 57 4 12 12 45 17 102 4 36-3 144-8 171z m-76-119c-5 0-11 0-16-1 2 11 6 24 22 24 18-1 21-18 21-29-8 3-17 5-27 6z"/>
39
+ <glyph glyph-name="social-facebook" unicode="&#57373;" d="M420 440l-328 0c-11 0-20-9-20-20l0-328c0-11 9-20 20-20l177 0 0 142-48 0 0 56 48 0 0 41c0 48 29 74 71 74 20 0 38-2 43-3l0-49-29 0c-23 0-28-11-28-27l0-36 55 0-7-56-48 0 0-142 94 0c11 0 20 9 20 20l0 328c0 11-9 20-20 20z"/>
40
+ <glyph glyph-name="social-flickr" unicode="&#57374;" d="M404 440l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 296c0 20-16 36-36 36z m-223-243c-33 0-59 27-59 60 0 33 26 60 59 60 33 0 60-27 60-60 0-33-27-60-60-60z m152 0c-33 0-60 27-60 60 0 33 27 60 60 60 33 0 60-27 60-60 0-33-27-60-60-60z"/>
41
+ <glyph glyph-name="social-forrst" unicode="&#57375;" d="M431 46l-175 420-175-419 147 0 0 86-44 31 11 16 33-23 0 67 46 0 0-43 33 18 10-18-43-22 0-25 64 33 9-18-73-36 0-66 92 0 0-1z"/>
42
+ <glyph glyph-name="social-foursquare" unicode="&#57376;" d="M185 303c-2 3-6 4-9 4-4 0-7-1-10-4l-32-32c-6-5-6-14 0-19l109-110c3-2 5-4 8-4 1 0 1 0 2 0 0 0 0 0 0 0l0 0c4 0 7 1 10 4l196 197c6 5 6 14 0 19l-32 32c-3 3-6 4-10 4-3 0-7-1-9-4l-155-154z m262-12l-166-166c-7-8-17-11-27-11l-7 0-2 1c-7 1-13 5-18 10l-110 109c-7 8-11 17-11 27 0 10 4 20 11 27l33 32c7 7 17 12 27 12 10 0 19-5 26-12l51-50 107 107-71 72c-19 18-50 18-69 0l-158-159c-19-19-19-49 0-68l158-159c19-18 50-18 69 0l158 159c19 19 19 49 0 68z"/>
43
+ <glyph glyph-name="social-game-center" unicode="&#57377;" d="M404 440l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 296c0 20-16 36-36 36z m-118-26c55 0 99-45 99-99 0-21-6-41-18-57-14 12-33 19-53 19-34 0-63-19-77-47-30 17-49 48-49 85 0 54 44 99 98 99z m-184-142c0 59 44 108 102 115-17-19-27-44-27-72 0-41 22-77 55-96-1-3-2-7-3-11-6 1-11 2-18 2-25 0-46-15-55-36-33 20-54 56-54 98z m109-175c-28 0-52 23-52 52 0 29 24 52 52 52 29 0 53-23 53-52 0-29-24-52-53-52z m103 17c-17 0-32 5-45 14 2 7 4 14 4 21 0 24-14 45-34 55 6 36 37 63 75 63 42 0 76-35 76-77 0-42-34-76-76-76z"/>
44
+ <glyph glyph-name="social-github" unicode="&#57378;" d="M256 451c-110 0-200-90-200-200 0-88 58-163 137-189 10-2 14 4 14 9 0 5-1 17-1 34-55-12-67 27-67 27-9 23-22 29-22 29-18 13 1 12 1 12 20-1 31-20 31-20 18-31 47-22 58-17 2 13 7 22 13 27-45 5-91 22-91 99 0 21 7 39 20 53-2 5-9 25 2 53 0 0 17 5 55-21 16 5 33 7 50 7 17 0 34-2 50-7 38 26 55 21 55 21 11-28 4-48 2-53 13-14 20-32 20-53 0-77-46-94-91-99 7-6 14-18 14-37 0-27 0-48 0-55 0-5 3-11 13-9 80 26 137 101 137 189 0 110-90 200-200 200z"/>
45
+ <glyph glyph-name="social-google-plus" unicode="&#57379;" d="M129 248c9-7 19-11 31-11 14 1 27 6 36 16 5 7 8 14 9 22 1 7 2 13 2 18 0 22-6 44-17 67-5 10-12 19-21 26-9 6-19 9-30 10-15-1-28-7-38-18-8-13-12-26-12-42 0-20 6-41 18-62 6-10 13-19 22-26z m34-84c-4 5-8 10-11 16-4 6-5 13-5 21 0 5 0 9 2 13 1 3 2 6 3 9-6 0-12-1-18-1-26 0-47 8-62 23l0-99c13 6 27 10 42 13 19 3 36 4 49 5z m15-16c-4 0-8 0-13 0-2 1-10 0-21-1-12-1-24-4-36-7-2-2-6-3-12-5-5-3-10-6-15-10-4-3-7-7-9-11l0-15c0-14 11-26 25-26l140 0c0 1 0 1 0 1 0 15-4 27-14 37-9 10-24 22-45 37z m237 291l-318 0c-14 0-25-12-25-26l0-35c1 2 3 4 5 6 16 13 32 21 49 25 17 3 33 5 47 5l111 0-34-20-34 0c3-2 7-5 12-9 4-5 8-10 12-16 4-6 7-13 10-21 3-9 4-18 4-29-1-20-5-36-13-48-5-5-9-11-14-16-5-4-10-9-16-14-3-4-6-8-9-12-3-5-5-10-5-16 0-6 2-10 5-14 3-4 6-7 8-10l19-15c12-10 22-20 31-32 8-12 13-27 13-46 0-8-1-15-3-23l145 0c14 0 25 12 25 26l0 314c0 14-11 26-25 26z m20-114l-58 0 0-58-29 0 0 58-58 0 0 29 58 0 0 58 29 0 0-58 58 0z"/>
46
+ <glyph glyph-name="social-hacker-news" unicode="&#57380;" d="M404 440l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 296c0 20-16 36-36 36z m-132-198l0-88-27 0 0 88-65 119 30 0 29-57c8-16 14-28 21-43l0 0c6 14 13 27 21 43l30 57 30 0z"/>
47
+ <glyph glyph-name="social-hi5" unicode="&#57381;" d="M477 286c2 28 3 55 4 82-53 0-107 0-160 0l-8-43 0 31c-29 0-59 0-88 0l0-40-28 0 0-9c-17 13-43 14-62 6l0 55c-39 0-78 0-117 0 0-25 0-51 0-77l15 0 0-66-15 0c0-25 0-51 0-76 104 0 207 0 310 0l0 10c19-11 42-15 64-15 30 0 54 9 71 23 18 14 29 38 30 62 2 21-3 41-16 57z m-232 50l48 0 0-32-48 0z m-32-167l-83 0 0 36 8 0 0 44c0 21-24 13-24-21l0-23 7 0 0-36-83 0 0 36 16 0 0 106-16 0 0 37 76 0 0-78c10 17 24 28 46 28 32 0 37-28 37-39l0-54 16 0 0-36z m95 0l-91 0 0 36 15 0 0 54-15 0 0 36 76 0 0-90 15 0z m84-5c-35 0-64 13-74 32-11 20-3 50 23 51 17 0 28-8 25-28-5-13 4-17 12-17 13 0 22 15 23 29 1 14-5 28-18 28-5 0-11-2-17-9l-45 6 17 92 122 0-2-48-81 0-2-16c12 6 26 9 39 9 34 0 61-17 59-62 0-34-28-67-81-67z"/>
48
+ <glyph glyph-name="social-instagram" unicode="&#57382;" d="M348 280c0-51-41-92-92-92-51 0-92 41-92 92 0 14 3 28 9 40l-101 0 0-215c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 215-101 0c6-12 9-26 9-40z m56 163l-296 0c-20 0-36-16-36-36l0-72 111 0c16 23 43 37 73 37 30 0 57-14 73-37l111 0 0 72c0 20-16 36-36 36z m-303-91l-13 0 0 52c0 9 5 17 13 20l0-72z m22 0l-13 0 0 74 13 0z m22 0l-13 0 0 74 13 0z m22 52l0-52-13 0 0 74 13 0z m255-30c0-12-10-22-22-22l-36 0c-12 0-21 10-21 22l0 30c0 12 9 22 21 22l36 0c12 0 22-10 22-22z m-166-175c45 0 81 36 81 81 0 45-36 81-81 81-45 0-81-36-81-81 0-45 36-81 81-81z m0 145c36 0 65-28 65-64 0-36-29-65-65-65-36 0-65 29-65 65 0 36 29 64 65 64z"/>
49
+ <glyph glyph-name="social-joomla" unicode="&#57383;" d="M417 162c-6 5-15 8-23 13 6 33-6 60-32 82-12 11-24 24-35 36-11 11-21 23-33 36-13-15-24-26-35-39 2-2 5-4 7-6 23-24 47-47 70-71 9-9 12-19 8-31-4-11-13-19-25-19-9 0-17 5-26 7-10-10-22-21-33-32 22-23 49-29 80-22 5-20 18-30 35-38 8 0 16 0 24 0 1 1 3 2 5 3 34 14 42 57 13 81z m-128 88c-2-3-3-6-6-8-24-24-47-47-71-71-12-11-27-12-40-1-11 10-13 26-4 39 1 2 3 4 4 5-12 12-23 23-35 35-21-21-28-47-22-77-22-6-33-21-38-42 0-4 0-7 0-10 5-21 17-35 38-42 7 0 15 0 22 0 13 6 26 13 32 28 2 7 6 9 13 8 25-3 46 4 64 21 26 26 52 53 79 82-11 9-23 20-36 33z m-105 42c10-10 21-21 34-33 14 15 29 30 43 44 12 12 23 24 36 35 10 10 23 11 34 4 11-6 17-19 14-31-2-6-6-12-9-17 11-11 23-23 34-34 23 21 29 48 23 78 31 13 44 30 41 52-2 22-18 41-38 43-10 1-21-1-30-4-16-6-23-20-27-35-3 0-5 0-7 0-24 5-46 1-63-15-29-28-56-58-85-87z m-68 47c-9-35 3-63 28-86 12-11 24-23 35-35 12-12 23-24 34-36 13 13 24 24 36 35-3 3-6 6-8 8-23 24-47 48-70 72-11 11-12 28-2 39 11 12 27 14 40 4 2-2 4-3 4-3 12 12 23 24 34 35-19 20-44 27-73 22-14 31-28 42-53 40-19-2-37-16-41-35-6-30 8-50 36-60z"/>
50
+ <glyph glyph-name="social-lastfm" unicode="&#57384;" d="M401 274l-30 7c-21 5-27 13-27 28 0 16 13 26 34 26 22 0 35-9 37-30l48 6c-4 43-34 61-83 61-43 0-85-16-85-68 0-33 16-53 56-63l32-8c25-5 33-15 33-29 0-18-17-25-50-25-48 0-68 25-80 60l-15 48c-20 62-52 85-116 85-70 0-107-45-107-120 0-73 37-112 104-112 54 0 79 25 79 25l-15 42c0 0-25-28-62-28-33 0-56 29-56 75 0 59 29 80 58 80 42 0 56-28 67-62l16-48c15-47 44-84 126-84 59 0 99 18 99 66 0 39-21 59-63 68z"/>
51
+ <glyph glyph-name="social-linkedin" unicode="&#57385;" d="M413 440l-314 0c-15 0-27-12-27-26l0-316c0-14 12-26 27-26l314 0c15 0 27 12 27 26l0 316c0 14-12 26-27 26z m-232-314l-55 0 0 176 55 0z m-27 200c-18 0-32 14-32 32 0 17 14 32 32 32 17 0 31-15 31-32 0-18-14-32-31-32z m232-200l-55 0 0 86c0 20 0 46-28 46-29 0-33-22-33-45l0-87-55 0 0 176 53 0 0-24 1 0c7 14 25 28 51 28 56 0 66-36 66-83l0-97z"/>
52
+ <glyph glyph-name="social-medium" unicode="&#57386;" d="M418 440l-326 0c-10-4-17-12-20-22l0-321c4-15 18-25 34-25l298 0c20 0 36 16 36 36l0 299c0 15-9 28-22 33z m-71-135l-7 0c-2 0-5-3-5-6l0-89c0-2 3-6 5-6l7 0 0-21-64 0 0 21 13 0 0 94-1 0-31-115-25 0-31 115-1 0 0-94 14 0 0-21-55 0 0 21 7 0c3 0 6 4 6 6l0 89c0 3-3 6-6 6l-7 0 0 22 68 0 23-84 0 0 23 84 67 0z"/>
53
+ <glyph glyph-name="social-myspace" unicode="&#57387;" d="M404 251c40 0 72 32 72 72 0 39-32 72-72 72-40 0-73-33-73-72 0-40 33-72 73-72z m-98 51c0 36-29 65-65 65-36 0-65-29-65-65 0-36 29-65 65-65 36 0 65 29 65 65z m-213-77c33 0 59 26 59 59 0 32-26 58-59 58-32 0-58-26-58-58 0-33 26-59 58-59z m0-13c-37 0-64-33-64-66l0-23c0-3 3-6 6-6l117 0c3 0 6 3 6 6l0 23c0 33-28 66-65 66z m148 11c-41 0-72-37-72-74l0-25c0-4 3-7 7-7l130 0c3 0 6 3 6 7l0 25c0 37-30 74-71 74z m163 11c-46 0-80-40-80-82l0-27c0-4 3-8 7-8l145 0c4 0 7 4 7 8l0 27c0 42-34 82-79 82z"/>
54
+ <glyph glyph-name="social-orkut" unicode="&#57388;" d="M257 336c-46 0-83-37-83-82 0-46 37-82 83-82 45 0 82 36 82 82 0 45-37 82-82 82z m147 104l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 296c0 20-16 36-36 36z m-147-311c-69 0-125 56-125 125 0 69 56 124 125 124 68 0 124-55 124-124 0-69-56-125-124-125z"/>
55
+ <glyph glyph-name="social-path" unicode="&#57389;" d="M430 299c0 87-70 144-174 144-102 0-174-59-174-144 0-30 13-74 37-96l40 43c-8 8-18 35-18 53 0 59 58 85 115 85 55 0 115-22 115-85 0-69-82-77-112-78l0 113-63 0 0-181c0-18-20-26-41-11l0-65c13-6 25-8 35-8 12 0 21 2 27 5 26 11 42 37 42 65l0 23c104 1 171 55 171 137z"/>
56
+ <glyph glyph-name="social-picasa" unicode="&#57390;" d="M338 437c-26 12-53 18-82 18-24 0-47-4-70-13 6-5 146-132 152-138 0 9 0 131 0 133z m-185-352c0 8 0 163 0 172-6-6-80-73-82-75 16-40 45-74 82-97z m-97 171c0-18 3-35 8-52 5 5 173 157 177 161-4 3-74 66-76 68-67-34-109-102-109-177z m118-87c0-4 0-93 0-95 20-10 42-15 64-17l36 0c69 6 131 49 161 112-7 0-257 0-261 0z m185 257c0-8 0-232 0-236 4 0 82 0 85 0 8 21 12 43 12 66 0 69-37 134-97 170z"/>
57
+ <glyph glyph-name="social-pinterest" unicode="&#57391;" d="M256 456c-110 0-200-90-200-200 0-82 49-152 120-183-1 14 0 31 3 46 4 16 26 109 26 109 0 0-6 13-6 31 0 30 17 52 38 52 18 0 27-14 27-30 0-18-12-45-18-71-5-21 11-38 32-38 38 0 63 48 63 106 0 44-29 76-83 76-60 0-98-45-98-95 0-18 5-30 13-39 4-5 4-6 3-11-1-4-3-13-4-17-1-5-6-6-10-5-28 12-41 42-41 77 0 57 48 125 143 125 76 0 126-56 126-115 0-78-43-137-108-137-21 0-41 12-48 25 0 0-12-46-14-55-5-15-13-31-21-43 18-5 37-8 57-8 110 0 200 90 200 200 0 110-90 200-200 200z"/>
58
+ <glyph glyph-name="social-rdio" unicode="&#57392;" d="M462 355c-50-2-111 38-134 52-2 2-5 3-7 4-2 2-5 3-7 4l0-145 0 0c0-13-4-27-12-40l-1-1c-24-38-73-60-119-45-45 16-58 59-34 98l1 1c24 38 73 60 119 45 4-2 7-3 10-5l0 105c-16 5-34 7-52 7-108 0-188-80-188-179l0-1c0-99 80-178 186-178 108 0 188 80 188 179l0 1c0 8-1 16-2 23 56 15 79 72 52 75z"/>
59
+ <glyph glyph-name="social-reddit" unicode="&#57393;" d="M485 261c0 29-24 53-53 53-12 0-24-5-34-13 0 0 0 0 0 0-35 22-80 36-131 38l30 85 75-18c0-24 20-43 43-43 24 0 44 19 44 43 0 24-20 43-44 43-18 0-33-11-39-27l-89 22-37-105c-53-1-100-15-136-38-10 8-22 13-34 13-30 0-53-24-53-53 0-18 9-34 24-44-1-5-1-11-1-16 0-76 92-138 206-138 113 0 206 62 206 138 0 5-1 10-2 15 16 10 25 27 25 45z m-159-68c-18 0-33 14-33 32 0 18 15 33 33 33 18 0 32-15 32-33 0-18-14-32-32-32z m6-56c-1-1-24-24-77-24-53 0-74 24-75 25-3 3-2 9 1 12 4 2 9 2 12-1 0-1 18-20 62-20 45 0 65 20 65 20 3 3 9 3 12 0 3-3 3-8 0-12z m-174 88c0 18 14 33 32 33 18 0 33-15 33-33 0-18-15-32-33-32-18 0-32 14-32 32z"/>
60
+ <glyph glyph-name="social-skillshare" unicode="&#57394;" d="M86 230c-2 1-3 3-5 4 1-2 3-3 5-4z m14 202l311 0 0-182c11 7 17 11 21 13l0 180c0 5-5 10-11 10l-331 0c-6 0-11-5-11-10l0-180c4-3 10-7 21-13z m349-166c-2 2-6 2-12 0-1 0-3-1-5-3-4-2-10-6-21-13-4-1-7-3-12-6-1 0-2-1-4-2-25-11-47-15-47-15 0 0-73 0-75 0-1 0-6-1-8-4-2-3-2-9-2-9l0-9c3-2 6-4 9-5 22-7 38-1 44 9 8 11 12 17 20 14 9-4 0-24-10-35-11-11-24-19-42-19-7 0-15 1-21 2 0-15 0-59 0-77 0-22 23-34 39-34 16 0 48 9 64 48 15 38-1 89-1 89 0 0 25 11 51 27 26 17 33 32 33 34 1 3 3 6 0 8z m-123-78c10 11 19 31 10 35-8 3-12-3-20-14-6-10-22-16-44-9-3 1-6 3-9 5-11 8-18 21-24 21l-75 0c0 0-20 3-44 14-3 1-5 2-7 3-5 3-9 5-13 7-11 6-17 10-21 13-1 1-3 2-4 2-6 2-10 2-12 0-3-2-1-6 0-8 0-1 4-11 18-23 2-1 3-3 5-4 3-2 6-5 10-7 26-16 51-28 51-28 0 0-16-50-1-89 16-38 48-47 64-47 16 0 39 12 39 33 0 22 0 83 0 83 0 0 6-2 14-4 6-1 14-2 21-2 18 0 31 8 42 19z m-14 148c-25 0-46-21-46-46 0-26 21-47 46-47 26 0 47 21 47 47 0 25-21 46-47 46z m-110 0c-25 0-46-21-46-46 0-26 21-47 46-47 26 0 47 21 47 47 0 25-21 46-47 46z"/>
61
+ <glyph glyph-name="social-skype" unicode="&#57395;" d="M442 214c3 13 4 26 4 40 0 104-84 188-188 188-11 0-22-1-32-3-17 11-37 17-58 17-60 0-109-49-109-109 0-20 5-39 15-55-3-13-4-25-4-38 0-104 84-188 188-188 12 0 23 1 35 3 15-8 32-13 51-13 60 0 109 49 109 109 0 18-4 34-11 49z m-87-50c-9-12-22-22-39-29-16-7-36-10-58-10-27 0-50 4-68 14-12 7-23 16-31 27-8 12-12 23-12 34 0 7 3 13 8 18 5 5 12 7 20 7 6 0 12-2 16-5 5-4 8-10 11-17 4-7 7-14 11-19 4-5 9-9 16-12 7-3 16-5 27-5 16 0 28 4 38 10 9 7 14 14 14 24 0 7-2 13-7 17-5 5-12 9-20 12-9 2-21 5-35 8-19 4-36 9-49 15-14 6-24 13-32 23-8 11-13 23-13 38 0 14 5 27 13 38 9 11 21 20 37 26 15 5 34 8 55 8 17 0 31-2 44-6 12-3 23-9 31-15 8-7 14-13 18-21 4-7 6-14 6-21 0-7-3-13-8-18-5-6-11-8-19-8-7 0-13 1-16 5-4 3-7 8-12 15-4 9-10 16-16 21-7 4-17 7-32 7-13 0-24-3-32-8-8-5-12-11-12-18 0-5 1-8 4-11 2-3 6-6 11-9 5-2 10-4 15-6 5-1 14-3 26-6 15-3 29-7 42-11 12-4 23-9 32-15 9-5 16-13 21-22 5-9 8-20 8-33 0-15-5-30-13-42z"/>
62
+ <glyph glyph-name="social-smashing-mag" unicode="&#57396;" d="M234 229c-19 7-37 16-52 27-1 1-1 1-1 1-3 2-5 4-7 5 0 1-1 1-1 2-2 1-4 3-6 4 0 1 0 1-1 1-2 2-3 4-5 6-1 0-1 1-2 1-1 2-3 4-4 6 0 0 0 0-1 1-1 2-3 4-4 6 0 0-1 1-1 1-1 2-3 4-4 6 0 0 0 1 0 1-1 2-2 4-3 7 0 0-1 1-1 1-1 3-2 5-2 7 0 0 0 0 0 0-1 3-2 5-2 8 0 0 0 1 0 1-1 3-1 5-1 8 0 3-1 7 0 10 0 1 0 2 0 3 0 2 0 4 0 7 0 1 0 2 0 3 1 2 1 4 1 6 1 1 1 2 1 4 1 2 1 4 2 6 0 1 0 2 1 3 0 2 1 4 2 6 0 1 1 2 1 2 4 9 9 18 16 26l-77-19c-16-4-25-19-21-35l64-268c4-15 19-25 35-21l33 8c-13 4-35 12-57 23l31 70c0 0 36-32 88-32 53 0 76 61-22 98z m216-68l-64 268c-4 16-19 25-35 21l-55-13c5-1 10-2 17-3 2-1 3-1 5-2 1 0 1 0 2 0 1 0 2-1 4-1 0 0 1-1 2-1 1 0 3-1 5-1 1-1 1-1 2-1 1-1 3-1 4-2 1 0 2 0 3 0 1-1 3-2 4-2 1 0 2-1 2-1 2-1 4-2 7-3 0 0 1 0 2-1 1 0 3-1 5-2 0 0 1 0 2-1 2-1 5-2 7-3l-24-67c0 0-20 22-74 25-51 3-79-53 20-85 3-1 6-2 9-3 0 0 1-1 2-1 2-1 4-2 6-3 1 0 2 0 2 0 3-1 5-3 8-4 0 0 0 0 1 0 2-1 4-2 6-3 1-1 1-1 2-1 2-1 4-3 5-4 1 0 1 0 1 0 3-2 5-3 7-4 0-1 0-1 1-1 1-1 3-2 5-4 0 0 1 0 1-1 2-1 4-2 5-4 29-25 39-55 39-85-1-23-9-42-19-56l57 14c16 4 25 19 21 35z"/>
63
+ <glyph glyph-name="social-snapchat" unicode="&#57397;" d="M368 288c5 1 9 3 13 4 7 0 14 0 19-3 10-5 11-15 2-22-7-5-16-8-24-11-18-7-21-13-11-30 15-29 37-51 70-59 3 0 9-4 8-6 0-5-2-11-6-13-11-5-22-9-34-12-8-2-11-4-12-11-4-15-7-17-21-14-23 4-43 0-62-14-40-28-69-28-108 1-19 14-39 17-61 13-16-3-18-1-22 14-1 6-4 9-11 11-11 2-23 6-33 11-4 2-8 8-8 13-1 2 6 7 11 8 35 10 57 34 71 66 4 8 1 13-5 17-6 3-12 5-18 7-4 2-8 4-12 6-7 4-13 9-8 19 3 8 14 12 23 9 4-2 9-4 14-5 7-1 10 1 10 9 0 18-1 36 0 54 3 39 26 64 60 78 50 19 109 4 136-44 10-17 11-35 12-54-1-12-1-23-2-35-1-7 3-9 9-7z"/>
64
+ <glyph glyph-name="social-spotify" unicode="&#57398;" d="M256 456c-110 0-200-90-200-200 0-52 20-99 53-135 13 15 28 27 46 36 22 11 45 17 70 17 39 0 76-15 105-41 14-13 25-28 33-45 56 35 93 97 93 168 0 110-90 200-200 200z m95-278c-3-3-7-5-11-5-3 0-6 0-8 2-31 22-68 33-106 33-22 0-44-4-64-11-7-3-15 1-17 8-3 7 1 14 8 17 23 9 48 13 73 13 44 0 85-13 121-38 6-4 8-12 4-19z m29 62c-3-5-8-7-13-7-3 0-6 1-8 2-40 25-86 38-133 38-26 0-52-4-77-12-8-2-16 2-19 10-2 8 2 16 10 19 28 9 57 13 86 13 53 0 104-15 149-43 7-4 9-13 5-20z m14 53c-3 0-6 1-8 2-48 29-104 44-160 44-30 0-61-5-90-13-8-3-18 2-20 11-3 9 2 18 11 21 32 9 65 14 99 14 62 0 123-17 177-48 8-5 10-15 6-23-3-5-9-8-15-8z m-113-213c-15 14-35 22-56 22-13 0-26-3-38-9-7-4-14-9-20-16 26-13 57-21 89-21 14 0 27 2 40 4-4 8-9 14-15 20z"/>
65
+ <glyph glyph-name="social-squidoo" unicode="&#57399;" d="M464 173c-11 39-46 67-87 68-6 0-11 3-14 9-4 10-4 20 1 30 4 9 9 18 13 27 6 12 9 24 7 38-3 16-12 28-24 39-19 18-43 28-68 34-17 4-27 15-30 31-1 5-2 10-3 14-2-2-2-5-3-8-2-23 8-40 29-48 3-1 5-2 8-3 16-7 31-15 43-28 16-17 18-35 4-55-8-11-18-21-26-34 0 2 0 3 0 4-4 15-7 30-16 44-20 29-45 50-77 64-12 6-25 11-35 21-18 18-24 39-23 63-1 0-2 0-2 0 0 0 0-1 0-2-7-40 5-73 35-100 11-11 24-19 38-27 17-10 29-25 31-45 2-11 2-22 2-33 1-4-2-2-4-2-20 3-40 10-59 18-20 9-32 24-39 44-1 4-2 8-3 12-4 14-7 28-14 41-6 12-14 23-27 27-26 6-51 5-75-8-1 0-3-1-2-3 1-1 2 0 3 0 13 2 26 3 39 1 26-5 42-19 47-45 1-8 4-17 5-26 8-46 33-81 74-104 8-5 16-10 25-16-11-2-20-3-30-5-20-4-40-7-60-6-11 1-21 3-25 15-1 4-3 7-3 11-6 21-5 44-4 65 1 24-15 44-38 46-1 0-3 1-3 0 12-10 22-21 21-39-1-8-3-17-4-25-4-21-8-42-4-63 3-21 11-38 30-48 12-6 25-9 38-10 24-1 48 4 71 7 22 3 36-5 39-27 1-4 2-8 2-12 1-25 10-48 27-66 21-23 48-33 78-28 47 6 76 35 91 78 7 21 7 43 1 65z"/>
66
+ <glyph glyph-name="social-stack-overflow" unicode="&#57400;" d="M334 76l-215 0 1 144-32 0-1-179 281 0 0 179-34 0z m-194 59l169 0 0-36-169 0z m4 65l169-17-3-36-169 16z m16 73l163-46-10-36-163 46z m39 82l145-87-19-32-145 88z m152-81l-99 138 30 22 99-138z m9 191l37 6 28-167-37-6z"/>
67
+ <glyph glyph-name="social-steam" unicode="&#57401;" d="M473 302c0-20-16-36-36-36-20 0-36 16-36 36 0 20 16 36 36 36 20 0 36-16 36-36z m-36 68c-37 0-67-30-67-67l-42-60c-2 0-4 0-5 0-10 0-19-3-26-7l-190 76c-5 23-25 40-49 40-28 0-50-23-50-50 0-28 22-51 50-51 9 0 18 3 26 7l190-76c4-23 25-40 49-40 26 0 47 20 50 46l64 47c37 0 67 30 67 67 0 37-30 68-67 68z m0-23c25 0 45-20 45-45 0-25-20-45-45-45-25 0-45 20-45 45 0 25 20 45 45 45z m-379-8c14 0 26-8 33-20l-19 7 0 0c-15 6-31-2-37-16-6-15 1-32 15-38l0 0 16-7c-3 0-5 0-8 0-21 0-37 16-37 37 0 20 16 37 37 37z m265-109c20 0 37-17 37-37 0-21-17-37-37-37-15 0-27 8-33 19 6-2 12-4 18-7 15-6 32 1 38 16 6 15-1 33-16 39l-15 6c2 0 5 1 8 1z"/>
68
+ <glyph glyph-name="social-stumbleupon" unicode="&#57402;" d="M414 378c26-33 42-76 42-122 0-110-90-200-200-200-78 0-145 45-178 109l87 0c42 0 71 23 71 58 0 76-88 45-88 72 0 13 11 18 30 18l60 0c17 0 37-3 37-22l0-60c0-44 34-66 69-66 36 0 70 22 70 66l0 147z m-158 78c42 0 80-13 112-35l0-191c0-14-11-25-24-25-13 0-24 11-24 25l0 57c0 46-23 65-53 65-33 0-66 0-99 0-35 0-65-23-65-59 0-18 8-45 46-52 30-5 42-4 42-20 0-16-18-16-41-16l-87 0c-4 17-7 34-7 51 0 110 90 200 200 200z"/>
69
+ <glyph glyph-name="social-treehouse" unicode="&#57403;" d="M252 308c-24-18-47-38-74-52-4-2-8-4-13-5-12-4-20-15-20-27 0-13 9-24 21-27 12-3 25 2 31 13 7 15 20 24 33 34 5 3 7 3 11-2 4 9 9 18 13 27 1-1 1-2 1-2-7-26-14-52-22-77-2-5-5-10-10-13-15-9-18-28-9-43 8-14 27-19 41-11 15 8 22 26 14 41-2 5-2 10-1 16 4 14 6 29 14 41 3 6 7 11 13 15 7 4 11 3 16-3 6-7 9-15 8-25-1-13 7-25 19-29 12-4 25 1 32 11 7 11 7 24-2 34-10 12-21 23-30 35-16 21-17 43-4 66 7 13 14 25 22 38 6 11 14 21 26 27 9 5 19 6 29 0 6-4 13-8 19-11 15-9 23-22 23-39 0-56 0-112 0-168 0-17-8-30-22-38-51-29-101-58-152-86-15-9-30-9-46 0-51 28-102 57-152 86-14 8-22 21-22 37 0 57 0 113 0 170 0 16 7 29 21 37 52 29 103 58 155 87 13 7 28 7 41 0 8-3 16-8 24-12 6-4 8-10 9-16 2-12-1-23-7-33-7-13-14-25-21-37-14-22-33-36-59-40-16-3-33 0-49 1-12 2-23-5-27-16-4-11 0-23 10-30 10-6 23-4 31 5 6 5 13 5 19 6 6 1 11 1 16 2 2 0 4 0 5 1 8 4 16 9 24 13 0 0 0-1 1-1z"/>
70
+ <glyph glyph-name="social-tumblr" unicode="&#57404;" d="M404 440l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 296c0 20-16 36-36 36z m-62-308c-12-5-23-9-33-12-9-2-20-3-31-3-13 0-24 2-34 5-9 3-18 8-25 14-6 6-11 12-14 19-3 6-4 16-4 29l0 97-31 0 0 39c11 4 21 9 28 16 8 6 14 14 19 23 5 10 8 22 10 36l39 0 0-70 66 0 0-44-66 0 0-71c0-16 1-27 3-31 2-5 5-8 10-11 6-4 13-6 21-6 14 0 28 5 42 14l0-44z"/>
71
+ <glyph glyph-name="social-twitter" unicode="&#57405;" d="M453 378c-14-6-30-11-46-12 16 10 29 25 35 44-15-9-33-16-51-19-15 15-36 25-59 25-45 0-81-36-81-81 0-6 1-12 2-18-67 3-127 35-167 84-7-12-11-25-11-40 0-28 15-53 36-68-13 1-25 4-36 11 0-1 0-1 0-2 0-39 28-71 65-79-7-2-14-3-22-3-5 0-10 1-15 2 10-32 40-56 76-56-28-22-63-35-101-35-6 0-13 0-19 1 36-23 78-36 124-36 149 0 230 123 230 230 0 3 0 7 0 10 16 12 29 26 40 42z"/>
72
+ <glyph glyph-name="social-vimeo" unicode="&#57406;" d="M405 440l-298 0c-19 0-35-16-35-35l0-298c0-19 16-35 35-35l298 0c19 0 35 16 35 35l0 298c0 19-16 35-35 35z m-24-117c-3-15-22-67-57-114-15-19-33-39-56-52-8-5-25-11-36-7-8 4-13 10-18 19-9 15-13 36-17 52-4 15-8 29-12 41-3 8-4 15-7 22-1 1-1 1-1 1 0 0 0 0 1-1-1 1-1 1-1 1 0 0 0 0 0 0 0 2-1 4-2 5-9 15-22 1-35 3-3 0-6 3-8 6-1 1 1 3-4 4l0 1c20 15 37 34 59 46 7 4 19 9 28 6 8-2 15-9 18-19 0 0 0 0 0 0 1 0 2-4 2-5 4-11 6-26 8-37 2-17 2-44 12-59l0 0c1 0 3-4 4-6 17-17 29 7 36 20 5 10 10 21 11 31 1 6 1 10 0 14-3 10-12 12-26 12-1 0-3 0-5 0 12 38 49 54 60 55 13 2 32 2 41-9 2-3 3-5 4-8 3-7 2-14 1-22z"/>
73
+ <glyph glyph-name="social-windows" unicode="&#57407;" d="M440 267l0 178-205-29 0-149z m-219 146l-149-21 0-125 149 0z m-149-166l0-126 149-22 0 148z m163-150l205-30 0 180-205 0z"/>
74
+ <glyph glyph-name="social-xbox" unicode="&#57408;" d="M204 341c-59 36-94 51-94 51-33-35-54-83-54-136 0-47 17-91 44-125 0 0-27 74 104 210z m52 38l0 0c0 0 0 0 0 0 80 58 129 29 129 29-34 30-80 48-129 48-50 0-95-18-130-48 0 0 50 30 130-29z m-1-82c-111-82-143-179-143-179 36-38 87-62 144-62 57 0 108 24 144 62 0 0-21 87-145 179z m201-41c0 53-21 101-54 136 0 0-35-15-94-51 131-136 104-210 104-210 27 34 44 78 44 125z"/>
75
+ <glyph glyph-name="social-yahoo" unicode="&#57409;" d="M460 114l-53 6 6 46 53-6z m52 278l-90 11 1-207 39-6z m-180-36c-36 27-83 41-139 41-57 0-104-14-139-41-36-27-54-61-54-103 0-43 18-78 54-105 29-22 66-35 111-39l56 0c44 4 81 17 111 39 35 27 53 62 53 105 0 42-18 76-53 103z m-27-68l-27-6c-4-1-15-9-34-25-21-16-31-27-33-32l-1-14-1-9 3-22 36-1-1-11-59 0-52 0 2 10 17 1c8 0 14 1 15 3 1 1 2 8 2 21l0 7-1 15c-1 4-10 16-28 39-19 22-31 36-37 40l-33 5 0 10c1 1 20 1 54 0 24 1 44 1 60 0l-2-8-35-4c11-16 28-39 51-67 29 22 45 37 45 43l-30 5-2 10 50 0 48 0z"/>
76
+ <glyph glyph-name="social-yelp" unicode="&#57410;" d="M296 197c-7-7-1-20-1-20l54-90c0 0 9-12 17-12 7 0 15 6 15 6l43 61c0 0 4 8 4 15 0 9-14 12-14 12l-101 32c0 0-10 3-17-4z m-5 46c5-9 20-6 20-6l100 29c0 0 14 6 16 13 2 7-2 16-2 16l-48 57c0 0-5 7-13 8-10 1-16-11-16-11l-57-89c0 0-5-9 0-17z m-48 35c12 3 14 20 14 20l-1 143c0 0-1 18-9 23-13 7-17 4-20 3l-84-31c0 0-8-3-12-10-6-9 6-24 6-24l87-118c0 0 9-9 19-6z m-20-58c0 11-14 17-14 17l-89 46c0 0-14 5-20 1-5-3-10-8-10-12l-6-73c0 0-1-12 2-18 5-8 20-2 20-2l105 23c4 3 11 3 12 18z m26-39c-9 4-20-5-20-5l-70-78c0 0-9-12-7-19 2-7 6-10 11-12l70-23c0 0 9-1 15 0 10 3 8 17 8 17l2 105c0 0-1 10-9 15z"/>
77
+ <glyph glyph-name="social-youtube" unicode="&#57411;" d="M231 152c-3-5-7-8-10-8-2 0-3 1-4 4 0 0 0 2 0 6l0 65-16 0 0-70c0-6 1-10 2-13 1-4 5-7 10-7 6 0 12 4 18 11l0-9 16 0 0 88-16 0z m-88 81l19 0 0-102 18 0 0 102 19 0 0 17-56 0z m109 78c6 0 8 4 8 12l0 38c0 8-2 12-8 12-5 0-7-4-7-12l0-38c0-8 2-12 7-12z m42-91c-6 0-11-3-17-9l0 39-16 0 0-119 16 0 0 8c6-6 11-10 17-10 6 0 11 4 13 10 1 4 2 10 2 18l0 36c0 8-1 14-2 17-2 7-7 10-13 10z m-2-64c0-8-2-12-7-12-2 0-5 1-8 4l0 54c3 3 6 4 8 4 5 0 7-4 7-12z m53 64c-8 0-14-3-19-9-3-4-5-11-5-21l0-31c0-9 2-16 5-20 5-7 11-10 20-10 8 0 15 4 19 10 2 3 3 6 4 10 0 1 0 5 0 10l0 2-16 0c0-6 0-10-1-10 0-5-3-7-7-7-5 0-8 4-8 12l0 16 32 0 0 19c0 9-1 16-5 20-4 6-11 9-19 9z m8-34l-16 0 0 8c0 8 3 12 8 12 5 0 8-4 8-12z m51 254l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 296c0 20-16 36-36 36z m-114-53l16 0 0-66c0-4 0-6 0-7 0-2 2-3 4-3 3 0 7 2 10 7l0 69 16 0 0-90-16 0 0 10c-6-8-12-11-18-11-6 0-9 2-11 6-1 3-1 7-1 14z m-62-30c0 10 2 17 5 22 5 6 11 9 19 9 8 0 15-3 19-9 4-5 5-12 5-22l0-31c0-9-1-17-5-21-4-6-11-9-19-9-8 0-14 3-19 9-3 4-5 12-5 21z m-43 60l13-47 12 47 18 0-22-71 0-49-18 0 0 49c-1 8-5 21-11 38-3 11-7 22-11 33z m199-292c-3-14-14-24-28-26-33-3-67-3-100-3-33 0-67 0-100 3-14 2-25 12-28 26-5 20-5 42-5 63 0 21 0 43 5 63 3 14 15 25 28 26 33 4 67 4 100 4 33 0 67 0 100-4 14-1 25-12 28-26 5-20 5-42 5-63 0-21 0-43-5-63z"/>
78
+ <glyph glyph-name="social-zerply" unicode="&#57412;" d="M192 197c37-3 66-23 95-41 21-13 44-21 69-20 12 0 23 4 32 12 4 3 6 2 7-3 9-37-21-75-59-76-19 0-35 6-51 16-17 12-34 24-51 36-32 21-67 28-105 24-11-2-12-1-13 11-2 22 6 40 21 56 42 46 83 92 122 140 3 4 7 9 10 13 1 1 3 2 2 4-1 2-3 1-5 1-18-1-37-2-55-2-10 0-19 2-28 6-15 6-19 17-14 32 5 12 12 23 19 34 2 3 4 4 8 2 17-9 36-11 55-13 40-3 79 0 119 8 5 1 5-2 6-5 2-18-4-33-16-46-42-48-83-98-128-143-14-14-28-28-40-46z"/>
79
+ <glyph glyph-name="social-zurb" unicode="&#57413;" d="M404 440l-296 0c-20 0-36-16-36-36l0-296c0-20 16-36 36-36l296 0c20 0 36 16 36 36l0 296c0 20-16 36-36 36z m-44-221l0-27c0-6-5-10-10-11l-154 0c-12 0-21 4-29 11-8 8-13 17-13 27 0 8 3 16 9 22 5 7 12 11 20 14l135 38-164 0 0 27c1 5 4 10 10 11l155 0c11 0 21-4 29-11 8-8 12-16 12-26 0-9-3-16-8-23-6-6-13-11-21-13l-135-39z"/>
80
+ <glyph glyph-name="play" unicode="&#57414;" d="M128 416l256-160-256-160z"/>
81
+ <glyph glyph-name="pause" unicode="&#57415;" d="M128 96l96 0 0 320-96 0z m160 320l0-320 96 0 0 320z"/>
82
  </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
@@ -7,42 +7,303 @@
7
  <title>Font Reference - Ditty News Ticker</title>
8
  <link href="http://fonts.googleapis.com/css?family=Dosis:400,500,700" rel="stylesheet" type="text/css">
9
  <link rel="stylesheet" href="styles.css">
10
- <style type="text/css">
11
- html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline}
12
- body{line-height:1;color:#000;background:#fff}
13
- ol,ul{list-style:none}
14
- table{border-collapse:separate;border-spacing:0;vertical-align:middle}
15
- caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}
16
- a img{border:none}
17
- *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
18
- body{font-family:'Dosis','Tahoma',sans-serif}
19
- .container{margin:15px auto;width:80%}
20
- h1{margin:40px 0 20px;font-weight:700;font-size:38px;line-height:32px;color:#fb565e}
21
- h2{font-size:18px;padding:0 0 21px 5px;margin:45px 0 0 0;text-transform:uppercase;font-weight:500}
22
- .small{font-size:14px;color:#a5adb4;}
23
- .small a{color:#a5adb4;}
24
- .small a:hover{color:#fb565e}
25
- .glyphs.character-mapping{margin:0 0 20px 0;padding:20px 0 20px 30px;color:rgba(0,0,0,0.5);border:1px solid #d8e0e5;-webkit-border-radius:3px;border-radius:3px;}
26
- .glyphs.character-mapping li{margin:0 30px 20px 0;display:inline-block;width:90px}
27
- .glyphs.character-mapping .icon{margin:10px 0 10px 15px;padding:15px;position:relative;width:55px;height:55px;color:#162a36 !important;overflow:hidden;-webkit-border-radius:3px;border-radius:3px;font-size:32px;}
28
- .glyphs.character-mapping .icon svg{fill:#000}
29
- .glyphs.character-mapping input{margin:0;padding:5px 0;line-height:12px;font-size:12px;display:block;width:100%;border:1px solid #d8e0e5;-webkit-border-radius:5px;border-radius:5px;text-align:center;outline:0;}
30
- .glyphs.character-mapping input:focus{border:1px solid #fbde4a;-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}
31
- .glyphs.character-mapping input:hover{-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}
32
- .glyphs.css-mapping{margin:0 0 60px 0;padding:30px 0 20px 30px;color:rgba(0,0,0,0.5);border:1px solid #d8e0e5;-webkit-border-radius:3px;border-radius:3px;}
33
- .glyphs.css-mapping li{margin:0 30px 20px 0;padding:0;display:inline-block;overflow:hidden}
34
- .glyphs.css-mapping .icon{margin:0;margin-right:10px;padding:13px;height:50px;width:50px;color:#162a36 !important;overflow:hidden;float:left;font-size:24px}
35
- .glyphs.css-mapping input{margin:0;margin-top:5px;padding:8px;line-height:16px;font-size:16px;display:block;width:150px;height:40px;border:1px solid #d8e0e5;-webkit-border-radius:5px;border-radius:5px;background:#fff;outline:0;float:right;}
36
- .glyphs.css-mapping input:focus{border:1px solid #fbde4a;-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}
37
- .glyphs.css-mapping input:hover{-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}
38
-
39
-
40
- </style>
41
  </head>
42
  <body>
43
  <div class="container">
44
  <h1>Ditty News Ticker</h1>
45
  <p class="small">This font was created with<a href="http://fontastic.me/">Fontastic</a></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  <h2>Character mapping</h2>
47
  <ul class="glyphs character-mapping">
48
  <li>
@@ -81,53 +342,266 @@ h2{font-size:18px;padding:0 0 21px 5px;margin:45px 0 0 0;text-transform:uppercas
81
  <div data-icon="&#xe008;" class="icon"></div>
82
  <input type="text" readonly="readonly" value="&amp;#xe008;">
83
  </li>
84
- </ul>
85
- <h2>CSS mapping</h2>
86
- <ul class="glyphs css-mapping">
87
  <li>
88
- <div class="icon mtphr-dnt-icon-ticker"></div>
89
- <input type="text" readonly="readonly" value="ticker">
90
  </li>
91
  <li>
92
- <div class="icon mtphr-dnt-icon-move"></div>
93
- <input type="text" readonly="readonly" value="move">
94
  </li>
95
  <li>
96
- <div class="icon mtphr-dnt-icon-add"></div>
97
- <input type="text" readonly="readonly" value="add">
98
  </li>
99
  <li>
100
- <div class="icon mtphr-dnt-icon-delete"></div>
101
- <input type="text" readonly="readonly" value="delete">
102
  </li>
103
  <li>
104
- <div class="icon mtphr-dnt-icon-spinner"></div>
105
- <input type="text" readonly="readonly" value="spinner">
106
  </li>
107
  <li>
108
- <div class="icon mtphr-dnt-icon-arrow-left"></div>
109
- <input type="text" readonly="readonly" value="arrow-left">
110
  </li>
111
  <li>
112
- <div class="icon mtphr-dnt-icon-arrow-right"></div>
113
- <input type="text" readonly="readonly" value="arrow-right">
114
  </li>
115
  <li>
116
- <div class="icon mtphr-dnt-icon-button"></div>
117
- <input type="text" readonly="readonly" value="button">
118
  </li>
119
  <li>
120
- <div class="icon mtphr-dnt-icon-gear"></div>
121
- <input type="text" readonly="readonly" value="gear">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  </li>
123
  </ul>
124
- </div><script type="text/javascript">
125
- (function() {
126
- var glyphs, _i, _len, _ref;
127
 
128
- _ref = document.getElementsByClassName('glyphs');
129
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
130
- glyphs = _ref[_i];
131
  glyphs.addEventListener('click', function(event) {
132
  if (event.target.tagName === 'INPUT') {
133
  return event.target.select();
@@ -136,6 +610,7 @@ h2{font-size:18px;padding:0 0 21px 5px;margin:45px 0 0 0;text-transform:uppercas
136
  }
137
 
138
  }).call(this);
139
- </script>
 
140
  </body>
141
  </html>
7
  <title>Font Reference - Ditty News Ticker</title>
8
  <link href="http://fonts.googleapis.com/css?family=Dosis:400,500,700" rel="stylesheet" type="text/css">
9
  <link rel="stylesheet" href="styles.css">
10
+ <style type="text/css">html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline}body{line-height:1;color:#000;background:#fff}ol,ul{list-style:none}table{border-collapse:separate;border-spacing:0;vertical-align:middle}caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}a img{border:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{font-family:'Dosis','Tahoma',sans-serif}.container{margin:15px auto;width:80%}h1{margin:40px 0 20px;font-weight:700;font-size:38px;line-height:32px;color:#fb565e}h2{font-size:18px;padding:0 0 21px 5px;margin:45px 0 0 0;text-transform:uppercase;font-weight:500}.small{font-size:14px;color:#a5adb4;}.small a{color:#a5adb4;}.small a:hover{color:#fb565e}.glyphs.character-mapping{margin:0 0 20px 0;padding:20px 0 20px 30px;color:rgba(0,0,0,0.5);border:1px solid #d8e0e5;-webkit-border-radius:3px;border-radius:3px;}.glyphs.character-mapping li{margin:0 30px 20px 0;display:inline-block;width:90px}.glyphs.character-mapping .icon{margin:10px 0 10px 15px;padding:15px;position:relative;width:55px;height:55px;color:#162a36 !important;overflow:hidden;-webkit-border-radius:3px;border-radius:3px;font-size:32px;}.glyphs.character-mapping .icon svg{fill:#000}.glyphs.character-mapping input{margin:0;padding:5px 0;line-height:12px;font-size:12px;display:block;width:100%;border:1px solid #d8e0e5;-webkit-border-radius:5px;border-radius:5px;text-align:center;outline:0;}.glyphs.character-mapping input:focus{border:1px solid #fbde4a;-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}.glyphs.character-mapping input:hover{-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}.glyphs.css-mapping{margin:0 0 60px 0;padding:30px 0 20px 30px;color:rgba(0,0,0,0.5);border:1px solid #d8e0e5;-webkit-border-radius:3px;border-radius:3px;}.glyphs.css-mapping li{margin:0 30px 20px 0;padding:0;display:inline-block;overflow:hidden}.glyphs.css-mapping .icon{margin:0;margin-right:10px;padding:13px;height:50px;width:50px;color:#162a36 !important;overflow:hidden;float:left;font-size:24px}.glyphs.css-mapping input{margin:0;margin-top:5px;padding:8px;line-height:16px;font-size:16px;display:block;width:150px;height:40px;border:1px solid #d8e0e5;-webkit-border-radius:5px;border-radius:5px;background:#fff;outline:0;float:right;}.glyphs.css-mapping input:focus{border:1px solid #fbde4a;-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}.glyphs.css-mapping input:hover{-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}</style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </head>
12
  <body>
13
  <div class="container">
14
  <h1>Ditty News Ticker</h1>
15
  <p class="small">This font was created with<a href="http://fontastic.me/">Fontastic</a></p>
16
+ <h2>CSS mapping</h2>
17
+ <ul class="glyphs css-mapping">
18
+ <li>
19
+ <div class="icon mtphr-dnt-icon-ticker"></div>
20
+ <input type="text" readonly="readonly" value="ticker">
21
+ </li>
22
+ <li>
23
+ <div class="icon mtphr-dnt-icon-move"></div>
24
+ <input type="text" readonly="readonly" value="move">
25
+ </li>
26
+ <li>
27
+ <div class="icon mtphr-dnt-icon-add"></div>
28
+ <input type="text" readonly="readonly" value="add">
29
+ </li>
30
+ <li>
31
+ <div class="icon mtphr-dnt-icon-delete"></div>
32
+ <input type="text" readonly="readonly" value="delete">
33
+ </li>
34
+ <li>
35
+ <div class="icon mtphr-dnt-icon-spinner"></div>
36
+ <input type="text" readonly="readonly" value="spinner">
37
+ </li>
38
+ <li>
39
+ <div class="icon mtphr-dnt-icon-arrow-left"></div>
40
+ <input type="text" readonly="readonly" value="arrow-left">
41
+ </li>
42
+ <li>
43
+ <div class="icon mtphr-dnt-icon-arrow-right"></div>
44
+ <input type="text" readonly="readonly" value="arrow-right">
45
+ </li>
46
+ <li>
47
+ <div class="icon mtphr-dnt-icon-button"></div>
48
+ <input type="text" readonly="readonly" value="button">
49
+ </li>
50
+ <li>
51
+ <div class="icon mtphr-dnt-icon-gear"></div>
52
+ <input type="text" readonly="readonly" value="gear">
53
+ </li>
54
+ <li>
55
+ <div class="icon mtphr-dnt-icon-dittynewsticker"></div>
56
+ <input type="text" readonly="readonly" value="dittynewsticker">
57
+ </li>
58
+ <li>
59
+ <div class="icon mtphr-dnt-icon-flickr"></div>
60
+ <input type="text" readonly="readonly" value="flickr">
61
+ </li>
62
+ <li>
63
+ <div class="icon mtphr-dnt-icon-instagram"></div>
64
+ <input type="text" readonly="readonly" value="instagram">
65
+ </li>
66
+ <li>
67
+ <div class="icon mtphr-dnt-icon-download"></div>
68
+ <input type="text" readonly="readonly" value="download">
69
+ </li>
70
+ <li>
71
+ <div class="icon mtphr-dnt-icon-social-500px"></div>
72
+ <input type="text" readonly="readonly" value="social-500px">
73
+ </li>
74
+ <li>
75
+ <div class="icon mtphr-dnt-icon-social-adobe"></div>
76
+ <input type="text" readonly="readonly" value="social-adobe">
77
+ </li>
78
+ <li>
79
+ <div class="icon mtphr-dnt-icon-social-amazon"></div>
80
+ <input type="text" readonly="readonly" value="social-amazon">
81
+ </li>
82
+ <li>
83
+ <div class="icon mtphr-dnt-icon-social-android"></div>
84
+ <input type="text" readonly="readonly" value="social-android">
85
+ </li>
86
+ <li>
87
+ <div class="icon mtphr-dnt-icon-social-apple"></div>
88
+ <input type="text" readonly="readonly" value="social-apple">
89
+ </li>
90
+ <li>
91
+ <div class="icon mtphr-dnt-icon-social-behance"></div>
92
+ <input type="text" readonly="readonly" value="social-behance">
93
+ </li>
94
+ <li>
95
+ <div class="icon mtphr-dnt-icon-social-bing"></div>
96
+ <input type="text" readonly="readonly" value="social-bing">
97
+ </li>
98
+ <li>
99
+ <div class="icon mtphr-dnt-icon-social-blogger"></div>
100
+ <input type="text" readonly="readonly" value="social-blogger">
101
+ </li>
102
+ <li>
103
+ <div class="icon mtphr-dnt-icon-social-delicious"></div>
104
+ <input type="text" readonly="readonly" value="social-delicious">
105
+ </li>
106
+ <li>
107
+ <div class="icon mtphr-dnt-icon-social-designer-news"></div>
108
+ <input type="text" readonly="readonly" value="social-designer-news">
109
+ </li>
110
+ <li>
111
+ <div class="icon mtphr-dnt-icon-social-deviant-art"></div>
112
+ <input type="text" readonly="readonly" value="social-deviant-art">
113
+ </li>
114
+ <li>
115
+ <div class="icon mtphr-dnt-icon-social-digg"></div>
116
+ <input type="text" readonly="readonly" value="social-digg">
117
+ </li>
118
+ <li>
119
+ <div class="icon mtphr-dnt-icon-social-dribbble"></div>
120
+ <input type="text" readonly="readonly" value="social-dribbble">
121
+ </li>
122
+ <li>
123
+ <div class="icon mtphr-dnt-icon-social-drive"></div>
124
+ <input type="text" readonly="readonly" value="social-drive">
125
+ </li>
126
+ <li>
127
+ <div class="icon mtphr-dnt-icon-social-dropbox"></div>
128
+ <input type="text" readonly="readonly" value="social-dropbox">
129
+ </li>
130
+ <li>
131
+ <div class="icon mtphr-dnt-icon-social-evernote"></div>
132
+ <input type="text" readonly="readonly" value="social-evernote">
133
+ </li>
134
+ <li>
135
+ <div class="icon mtphr-dnt-icon-social-facebook"></div>
136
+ <input type="text" readonly="readonly" value="social-facebook">
137
+ </li>
138
+ <li>
139
+ <div class="icon mtphr-dnt-icon-social-flickr"></div>
140
+ <input type="text" readonly="readonly" value="social-flickr">
141
+ </li>
142
+ <li>
143
+ <div class="icon mtphr-dnt-icon-social-forrst"></div>
144
+ <input type="text" readonly="readonly" value="social-forrst">
145
+ </li>
146
+ <li>
147
+ <div class="icon mtphr-dnt-icon-social-foursquare"></div>
148
+ <input type="text" readonly="readonly" value="social-foursquare">
149
+ </li>
150
+ <li>
151
+ <div class="icon mtphr-dnt-icon-social-game-center"></div>
152
+ <input type="text" readonly="readonly" value="social-game-center">
153
+ </li>
154
+ <li>
155
+ <div class="icon mtphr-dnt-icon-social-github"></div>
156
+ <input type="text" readonly="readonly" value="social-github">
157
+ </li>
158
+ <li>
159
+ <div class="icon mtphr-dnt-icon-social-google-plus"></div>
160
+ <input type="text" readonly="readonly" value="social-google-plus">
161
+ </li>
162
+ <li>
163
+ <div class="icon mtphr-dnt-icon-social-hacker-news"></div>
164
+ <input type="text" readonly="readonly" value="social-hacker-news">
165
+ </li>
166
+ <li>
167
+ <div class="icon mtphr-dnt-icon-social-hi5"></div>
168
+ <input type="text" readonly="readonly" value="social-hi5">
169
+ </li>
170
+ <li>
171
+ <div class="icon mtphr-dnt-icon-social-instagram"></div>
172
+ <input type="text" readonly="readonly" value="social-instagram">
173
+ </li>
174
+ <li>
175
+ <div class="icon mtphr-dnt-icon-social-joomla"></div>
176
+ <input type="text" readonly="readonly" value="social-joomla">
177
+ </li>
178
+ <li>
179
+ <div class="icon mtphr-dnt-icon-social-lastfm"></div>
180
+ <input type="text" readonly="readonly" value="social-lastfm">
181
+ </li>
182
+ <li>
183
+ <div class="icon mtphr-dnt-icon-social-linkedin"></div>
184
+ <input type="text" readonly="readonly" value="social-linkedin">
185
+ </li>
186
+ <li>
187
+ <div class="icon mtphr-dnt-icon-social-medium"></div>
188
+ <input type="text" readonly="readonly" value="social-medium">
189
+ </li>
190
+ <li>
191
+ <div class="icon mtphr-dnt-icon-social-myspace"></div>
192
+ <input type="text" readonly="readonly" value="social-myspace">
193
+ </li>
194
+ <li>
195
+ <div class="icon mtphr-dnt-icon-social-orkut"></div>
196
+ <input type="text" readonly="readonly" value="social-orkut">
197
+ </li>
198
+ <li>
199
+ <div class="icon mtphr-dnt-icon-social-path"></div>
200
+ <input type="text" readonly="readonly" value="social-path">
201
+ </li>
202
+ <li>
203
+ <div class="icon mtphr-dnt-icon-social-picasa"></div>
204
+ <input type="text" readonly="readonly" value="social-picasa">
205
+ </li>
206
+ <li>
207
+ <div class="icon mtphr-dnt-icon-social-pinterest"></div>
208
+ <input type="text" readonly="readonly" value="social-pinterest">
209
+ </li>
210
+ <li>
211
+ <div class="icon mtphr-dnt-icon-social-rdio"></div>
212
+ <input type="text" readonly="readonly" value="social-rdio">
213
+ </li>
214
+ <li>
215
+ <div class="icon mtphr-dnt-icon-social-reddit"></div>
216
+ <input type="text" readonly="readonly" value="social-reddit">
217
+ </li>
218
+ <li>
219
+ <div class="icon mtphr-dnt-icon-social-skillshare"></div>
220
+ <input type="text" readonly="readonly" value="social-skillshare">
221
+ </li>
222
+ <li>
223
+ <div class="icon mtphr-dnt-icon-social-skype"></div>
224
+ <input type="text" readonly="readonly" value="social-skype">
225
+ </li>
226
+ <li>
227
+ <div class="icon mtphr-dnt-icon-social-smashing-mag"></div>
228
+ <input type="text" readonly="readonly" value="social-smashing-mag">
229
+ </li>
230
+ <li>
231
+ <div class="icon mtphr-dnt-icon-social-snapchat"></div>
232
+ <input type="text" readonly="readonly" value="social-snapchat">
233
+ </li>
234
+ <li>
235
+ <div class="icon mtphr-dnt-icon-social-spotify"></div>
236
+ <input type="text" readonly="readonly" value="social-spotify">
237
+ </li>
238
+ <li>
239
+ <div class="icon mtphr-dnt-icon-social-squidoo"></div>
240
+ <input type="text" readonly="readonly" value="social-squidoo">
241
+ </li>
242
+ <li>
243
+ <div class="icon mtphr-dnt-icon-social-stack-overflow"></div>
244
+ <input type="text" readonly="readonly" value="social-stack-overflow">
245
+ </li>
246
+ <li>
247
+ <div class="icon mtphr-dnt-icon-social-steam"></div>
248
+ <input type="text" readonly="readonly" value="social-steam">
249
+ </li>
250
+ <li>
251
+ <div class="icon mtphr-dnt-icon-social-stumbleupon"></div>
252
+ <input type="text" readonly="readonly" value="social-stumbleupon">
253
+ </li>
254
+ <li>
255
+ <div class="icon mtphr-dnt-icon-social-treehouse"></div>
256
+ <input type="text" readonly="readonly" value="social-treehouse">
257
+ </li>
258
+ <li>
259
+ <div class="icon mtphr-dnt-icon-social-tumblr"></div>
260
+ <input type="text" readonly="readonly" value="social-tumblr">
261
+ </li>
262
+ <li>
263
+ <div class="icon mtphr-dnt-icon-social-twitter"></div>
264
+ <input type="text" readonly="readonly" value="social-twitter">
265
+ </li>
266
+ <li>
267
+ <div class="icon mtphr-dnt-icon-social-vimeo"></div>
268
+ <input type="text" readonly="readonly" value="social-vimeo">
269
+ </li>
270
+ <li>
271
+ <div class="icon mtphr-dnt-icon-social-windows"></div>
272
+ <input type="text" readonly="readonly" value="social-windows">
273
+ </li>
274
+ <li>
275
+ <div class="icon mtphr-dnt-icon-social-xbox"></div>
276
+ <input type="text" readonly="readonly" value="social-xbox">
277
+ </li>
278
+ <li>
279
+ <div class="icon mtphr-dnt-icon-social-yahoo"></div>
280
+ <input type="text" readonly="readonly" value="social-yahoo">
281
+ </li>
282
+ <li>
283
+ <div class="icon mtphr-dnt-icon-social-yelp"></div>
284
+ <input type="text" readonly="readonly" value="social-yelp">
285
+ </li>
286
+ <li>
287
+ <div class="icon mtphr-dnt-icon-social-youtube"></div>
288
+ <input type="text" readonly="readonly" value="social-youtube">
289
+ </li>
290
+ <li>
291
+ <div class="icon mtphr-dnt-icon-social-zerply"></div>
292
+ <input type="text" readonly="readonly" value="social-zerply">
293
+ </li>
294
+ <li>
295
+ <div class="icon mtphr-dnt-icon-social-zurb"></div>
296
+ <input type="text" readonly="readonly" value="social-zurb">
297
+ </li>
298
+ <li>
299
+ <div class="icon mtphr-dnt-icon-play"></div>
300
+ <input type="text" readonly="readonly" value="play">
301
+ </li>
302
+ <li>
303
+ <div class="icon mtphr-dnt-icon-pause"></div>
304
+ <input type="text" readonly="readonly" value="pause">
305
+ </li>
306
+ </ul>
307
  <h2>Character mapping</h2>
308
  <ul class="glyphs character-mapping">
309
  <li>
342
  <div data-icon="&#xe008;" class="icon"></div>
343
  <input type="text" readonly="readonly" value="&amp;#xe008;">
344
  </li>
 
 
 
345
  <li>
346
+ <div data-icon="&#xe009;" class="icon"></div>
347
+ <input type="text" readonly="readonly" value="&amp;#xe009;">
348
  </li>
349
  <li>
350
+ <div data-icon="&#xe00a;" class="icon"></div>
351
+ <input type="text" readonly="readonly" value="&amp;#xe00a;">
352
  </li>
353
  <li>
354
+ <div data-icon="&#xe00b;" class="icon"></div>
355
+ <input type="text" readonly="readonly" value="&amp;#xe00b;">
356
  </li>
357
  <li>
358
+ <div data-icon="&#xe00c;" class="icon"></div>
359
+ <input type="text" readonly="readonly" value="&amp;#xe00c;">
360
  </li>
361
  <li>
362
+ <div data-icon="&#xe00d;" class="icon"></div>
363
+ <input type="text" readonly="readonly" value="&amp;#xe00d;">
364
  </li>
365
  <li>
366
+ <div data-icon="&#xe00e;" class="icon"></div>
367
+ <input type="text" readonly="readonly" value="&amp;#xe00e;">
368
  </li>
369
  <li>
370
+ <div data-icon="&#xe00f;" class="icon"></div>
371
+ <input type="text" readonly="readonly" value="&amp;#xe00f;">
372
  </li>
373
  <li>
374
+ <div data-icon="&#xe010;" class="icon"></div>
375
+ <input type="text" readonly="readonly" value="&amp;#xe010;">
376
  </li>
377
  <li>
378
+ <div data-icon="&#xe011;" class="icon"></div>
379
+ <input type="text" readonly="readonly" value="&amp;#xe011;">
380
+ </li>
381
+ <li>
382
+ <div data-icon="&#xe012;" class="icon"></div>
383
+ <input type="text" readonly="readonly" value="&amp;#xe012;">
384
+ </li>
385
+ <li>
386
+ <div data-icon="&#xe013;" class="icon"></div>
387
+ <input type="text" readonly="readonly" value="&amp;#xe013;">
388
+ </li>
389
+ <li>
390
+ <div data-icon="&#xe014;" class="icon"></div>
391
+ <input type="text" readonly="readonly" value="&amp;#xe014;">
392
+ </li>
393
+ <li>
394
+ <div data-icon="&#xe015;" class="icon"></div>
395
+ <input type="text" readonly="readonly" value="&amp;#xe015;">
396
+ </li>
397
+ <li>
398
+ <div data-icon="&#xe016;" class="icon"></div>
399
+ <input type="text" readonly="readonly" value="&amp;#xe016;">
400
+ </li>
401
+ <li>
402
+ <div data-icon="&#xe017;" class="icon"></div>
403
+ <input type="text" readonly="readonly" value="&amp;#xe017;">
404
+ </li>
405
+ <li>
406
+ <div data-icon="&#xe018;" class="icon"></div>
407
+ <input type="text" readonly="readonly" value="&amp;#xe018;">
408
+ </li>
409
+ <li>
410
+ <div data-icon="&#xe019;" class="icon"></div>
411
+ <input type="text" readonly="readonly" value="&amp;#xe019;">
412
+ </li>
413
+ <li>
414
+ <div data-icon="&#xe01a;" class="icon"></div>
415
+ <input type="text" readonly="readonly" value="&amp;#xe01a;">
416
+ </li>
417
+ <li>
418
+ <div data-icon="&#xe01b;" class="icon"></div>
419
+ <input type="text" readonly="readonly" value="&amp;#xe01b;">
420
+ </li>
421
+ <li>
422
+ <div data-icon="&#xe01c;" class="icon"></div>
423
+ <input type="text" readonly="readonly" value="&amp;#xe01c;">
424
+ </li>
425
+ <li>
426
+ <div data-icon="&#xe01d;" class="icon"></div>
427
+ <input type="text" readonly="readonly" value="&amp;#xe01d;">
428
+ </li>
429
+ <li>
430
+ <div data-icon="&#xe01e;" class="icon"></div>
431
+ <input type="text" readonly="readonly" value="&amp;#xe01e;">
432
+ </li>
433
+ <li>
434
+ <div data-icon="&#xe01f;" class="icon"></div>
435
+ <input type="text" readonly="readonly" value="&amp;#xe01f;">
436
+ </li>
437
+ <li>
438
+ <div data-icon="&#xe020;" class="icon"></div>
439
+ <input type="text" readonly="readonly" value="&amp;#xe020;">
440
+ </li>
441
+ <li>
442
+ <div data-icon="&#xe021;" class="icon"></div>
443
+ <input type="text" readonly="readonly" value="&amp;#xe021;">
444
+ </li>
445
+ <li>
446
+ <div data-icon="&#xe022;" class="icon"></div>
447
+ <input type="text" readonly="readonly" value="&amp;#xe022;">
448
+ </li>
449
+ <li>
450
+ <div data-icon="&#xe023;" class="icon"></div>
451
+ <input type="text" readonly="readonly" value="&amp;#xe023;">
452
+ </li>
453
+ <li>
454
+ <div data-icon="&#xe024;" class="icon"></div>
455
+ <input type="text" readonly="readonly" value="&amp;#xe024;">
456
+ </li>
457
+ <li>
458
+ <div data-icon="&#xe025;" class="icon"></div>
459
+ <input type="text" readonly="readonly" value="&amp;#xe025;">
460
+ </li>
461
+ <li>
462
+ <div data-icon="&#xe026;" class="icon"></div>
463
+ <input type="text" readonly="readonly" value="&amp;#xe026;">
464
+ </li>
465
+ <li>
466
+ <div data-icon="&#xe027;" class="icon"></div>
467
+ <input type="text" readonly="readonly" value="&amp;#xe027;">
468
+ </li>
469
+ <li>
470
+ <div data-icon="&#xe028;" class="icon"></div>
471
+ <input type="text" readonly="readonly" value="&amp;#xe028;">
472
+ </li>
473
+ <li>
474
+ <div data-icon="&#xe029;" class="icon"></div>
475
+ <input type="text" readonly="readonly" value="&amp;#xe029;">
476
+ </li>
477
+ <li>
478
+ <div data-icon="&#xe02a;" class="icon"></div>
479
+ <input type="text" readonly="readonly" value="&amp;#xe02a;">
480
+ </li>
481
+ <li>
482
+ <div data-icon="&#xe02b;" class="icon"></div>
483
+ <input type="text" readonly="readonly" value="&amp;#xe02b;">
484
+ </li>
485
+ <li>
486
+ <div data-icon="&#xe02c;" class="icon"></div>
487
+ <input type="text" readonly="readonly" value="&amp;#xe02c;">
488
+ </li>
489
+ <li>
490
+ <div data-icon="&#xe02d;" class="icon"></div>
491
+ <input type="text" readonly="readonly" value="&amp;#xe02d;">
492
+ </li>
493
+ <li>
494
+ <div data-icon="&#xe02e;" class="icon"></div>
495
+ <input type="text" readonly="readonly" value="&amp;#xe02e;">
496
+ </li>
497
+ <li>
498
+ <div data-icon="&#xe02f;" class="icon"></div>
499
+ <input type="text" readonly="readonly" value="&amp;#xe02f;">
500
+ </li>
501
+ <li>
502
+ <div data-icon="&#xe030;" class="icon"></div>
503
+ <input type="text" readonly="readonly" value="&amp;#xe030;">
504
+ </li>
505
+ <li>
506
+ <div data-icon="&#xe031;" class="icon"></div>
507
+ <input type="text" readonly="readonly" value="&amp;#xe031;">
508
+ </li>
509
+ <li>
510
+ <div data-icon="&#xe032;" class="icon"></div>
511
+ <input type="text" readonly="readonly" value="&amp;#xe032;">
512
+ </li>
513
+ <li>
514
+ <div data-icon="&#xe033;" class="icon"></div>
515
+ <input type="text" readonly="readonly" value="&amp;#xe033;">
516
+ </li>
517
+ <li>
518
+ <div data-icon="&#xe034;" class="icon"></div>
519
+ <input type="text" readonly="readonly" value="&amp;#xe034;">
520
+ </li>
521
+ <li>
522
+ <div data-icon="&#xe035;" class="icon"></div>
523
+ <input type="text" readonly="readonly" value="&amp;#xe035;">
524
+ </li>
525
+ <li>
526
+ <div data-icon="&#xe036;" class="icon"></div>
527
+ <input type="text" readonly="readonly" value="&amp;#xe036;">
528
+ </li>
529
+ <li>
530
+ <div data-icon="&#xe037;" class="icon"></div>
531
+ <input type="text" readonly="readonly" value="&amp;#xe037;">
532
+ </li>
533
+ <li>
534
+ <div data-icon="&#xe038;" class="icon"></div>
535
+ <input type="text" readonly="readonly" value="&amp;#xe038;">
536
+ </li>
537
+ <li>
538
+ <div data-icon="&#xe039;" class="icon"></div>
539
+ <input type="text" readonly="readonly" value="&amp;#xe039;">
540
+ </li>
541
+ <li>
542
+ <div data-icon="&#xe03a;" class="icon"></div>
543
+ <input type="text" readonly="readonly" value="&amp;#xe03a;">
544
+ </li>
545
+ <li>
546
+ <div data-icon="&#xe03b;" class="icon"></div>
547
+ <input type="text" readonly="readonly" value="&amp;#xe03b;">
548
+ </li>
549
+ <li>
550
+ <div data-icon="&#xe03c;" class="icon"></div>
551
+ <input type="text" readonly="readonly" value="&amp;#xe03c;">
552
+ </li>
553
+ <li>
554
+ <div data-icon="&#xe03d;" class="icon"></div>
555
+ <input type="text" readonly="readonly" value="&amp;#xe03d;">
556
+ </li>
557
+ <li>
558
+ <div data-icon="&#xe03e;" class="icon"></div>
559
+ <input type="text" readonly="readonly" value="&amp;#xe03e;">
560
+ </li>
561
+ <li>
562
+ <div data-icon="&#xe03f;" class="icon"></div>
563
+ <input type="text" readonly="readonly" value="&amp;#xe03f;">
564
+ </li>
565
+ <li>
566
+ <div data-icon="&#xe040;" class="icon"></div>
567
+ <input type="text" readonly="readonly" value="&amp;#xe040;">
568
+ </li>
569
+ <li>
570
+ <div data-icon="&#xe041;" class="icon"></div>
571
+ <input type="text" readonly="readonly" value="&amp;#xe041;">
572
+ </li>
573
+ <li>
574
+ <div data-icon="&#xe042;" class="icon"></div>
575
+ <input type="text" readonly="readonly" value="&amp;#xe042;">
576
+ </li>
577
+ <li>
578
+ <div data-icon="&#xe043;" class="icon"></div>
579
+ <input type="text" readonly="readonly" value="&amp;#xe043;">
580
+ </li>
581
+ <li>
582
+ <div data-icon="&#xe044;" class="icon"></div>
583
+ <input type="text" readonly="readonly" value="&amp;#xe044;">
584
+ </li>
585
+ <li>
586
+ <div data-icon="&#xe045;" class="icon"></div>
587
+ <input type="text" readonly="readonly" value="&amp;#xe045;">
588
+ </li>
589
+ <li>
590
+ <div data-icon="&#xe046;" class="icon"></div>
591
+ <input type="text" readonly="readonly" value="&amp;#xe046;">
592
+ </li>
593
+ <li>
594
+ <div data-icon="&#xe047;" class="icon"></div>
595
+ <input type="text" readonly="readonly" value="&amp;#xe047;">
596
  </li>
597
  </ul>
598
+ </div>
599
+ <script>(function() {
600
+ var glyphs, i, len, ref;
601
 
602
+ ref = document.getElementsByClassName('glyphs');
603
+ for (i = 0, len = ref.length; i < len; i++) {
604
+ glyphs = ref[i];
605
  glyphs.addEventListener('click', function(event) {
606
  if (event.target.tagName === 'INPUT') {
607
  return event.target.select();
610
  }
611
 
612
  }).call(this);
613
+
614
+ </script>
615
  </body>
616
  </html>
assets/fontastic/styles.css CHANGED
@@ -52,3 +52,192 @@
52
  .mtphr-dnt-icon-gear:before {
53
  content: "\e008";
54
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  .mtphr-dnt-icon-gear:before {
53
  content: "\e008";
54
  }
55
+ .mtphr-dnt-icon-dittynewsticker:before {
56
+ content: "\e009";
57
+ }
58
+ .mtphr-dnt-icon-flickr:before {
59
+ content: "\e00a";
60
+ }
61
+ .mtphr-dnt-icon-instagram:before {
62
+ content: "\e00b";
63
+ }
64
+ .mtphr-dnt-icon-download:before {
65
+ content: "\e00c";
66
+ }
67
+ .mtphr-dnt-icon-social-500px:before {
68
+ content: "\e00d";
69
+ }
70
+ .mtphr-dnt-icon-social-adobe:before {
71
+ content: "\e00e";
72
+ }
73
+ .mtphr-dnt-icon-social-amazon:before {
74
+ content: "\e00f";
75
+ }
76
+ .mtphr-dnt-icon-social-android:before {
77
+ content: "\e010";
78
+ }
79
+ .mtphr-dnt-icon-social-apple:before {
80
+ content: "\e011";
81
+ }
82
+ .mtphr-dnt-icon-social-behance:before {
83
+ content: "\e012";
84
+ }
85
+ .mtphr-dnt-icon-social-bing:before {
86
+ content: "\e013";
87
+ }
88
+ .mtphr-dnt-icon-social-blogger:before {
89
+ content: "\e014";
90
+ }
91
+ .mtphr-dnt-icon-social-delicious:before {
92
+ content: "\e015";
93
+ }
94
+ .mtphr-dnt-icon-social-designer-news:before {
95
+ content: "\e016";
96
+ }
97
+ .mtphr-dnt-icon-social-deviant-art:before {
98
+ content: "\e017";
99
+ }
100
+ .mtphr-dnt-icon-social-digg:before {
101
+ content: "\e018";
102
+ }
103
+ .mtphr-dnt-icon-social-dribbble:before {
104
+ content: "\e019";
105
+ }
106
+ .mtphr-dnt-icon-social-drive:before {
107
+ content: "\e01a";
108
+ }
109
+ .mtphr-dnt-icon-social-dropbox:before {
110
+ content: "\e01b";
111
+ }
112
+ .mtphr-dnt-icon-social-evernote:before {
113
+ content: "\e01c";
114
+ }
115
+ .mtphr-dnt-icon-social-facebook:before {
116
+ content: "\e01d";
117
+ }
118
+ .mtphr-dnt-icon-social-flickr:before {
119
+ content: "\e01e";
120
+ }
121
+ .mtphr-dnt-icon-social-forrst:before {
122
+ content: "\e01f";
123
+ }
124
+ .mtphr-dnt-icon-social-foursquare:before {
125
+ content: "\e020";
126
+ }
127
+ .mtphr-dnt-icon-social-game-center:before {
128
+ content: "\e021";
129
+ }
130
+ .mtphr-dnt-icon-social-github:before {
131
+ content: "\e022";
132
+ }
133
+ .mtphr-dnt-icon-social-google-plus:before {
134
+ content: "\e023";
135
+ }
136
+ .mtphr-dnt-icon-social-hacker-news:before {
137
+ content: "\e024";
138
+ }
139
+ .mtphr-dnt-icon-social-hi5:before {
140
+ content: "\e025";
141
+ }
142
+ .mtphr-dnt-icon-social-instagram:before {
143
+ content: "\e026";
144
+ }
145
+ .mtphr-dnt-icon-social-joomla:before {
146
+ content: "\e027";
147
+ }
148
+ .mtphr-dnt-icon-social-lastfm:before {
149
+ content: "\e028";
150
+ }
151
+ .mtphr-dnt-icon-social-linkedin:before {
152
+ content: "\e029";
153
+ }
154
+ .mtphr-dnt-icon-social-medium:before {
155
+ content: "\e02a";
156
+ }
157
+ .mtphr-dnt-icon-social-myspace:before {
158
+ content: "\e02b";
159
+ }
160
+ .mtphr-dnt-icon-social-orkut:before {
161
+ content: "\e02c";
162
+ }
163
+ .mtphr-dnt-icon-social-path:before {
164
+ content: "\e02d";
165
+ }
166
+ .mtphr-dnt-icon-social-picasa:before {
167
+ content: "\e02e";
168
+ }
169
+ .mtphr-dnt-icon-social-pinterest:before {
170
+ content: "\e02f";
171
+ }
172
+ .mtphr-dnt-icon-social-rdio:before {
173
+ content: "\e030";
174
+ }
175
+ .mtphr-dnt-icon-social-reddit:before {
176
+ content: "\e031";
177
+ }
178
+ .mtphr-dnt-icon-social-skillshare:before {
179
+ content: "\e032";
180
+ }
181
+ .mtphr-dnt-icon-social-skype:before {
182
+ content: "\e033";
183
+ }
184
+ .mtphr-dnt-icon-social-smashing-mag:before {
185
+ content: "\e034";
186
+ }
187
+ .mtphr-dnt-icon-social-snapchat:before {
188
+ content: "\e035";
189
+ }
190
+ .mtphr-dnt-icon-social-spotify:before {
191
+ content: "\e036";
192
+ }
193
+ .mtphr-dnt-icon-social-squidoo:before {
194
+ content: "\e037";
195
+ }
196
+ .mtphr-dnt-icon-social-stack-overflow:before {
197
+ content: "\e038";
198
+ }
199
+ .mtphr-dnt-icon-social-steam:before {
200
+ content: "\e039";
201
+ }
202
+ .mtphr-dnt-icon-social-stumbleupon:before {
203
+ content: "\e03a";
204
+ }
205
+ .mtphr-dnt-icon-social-treehouse:before {
206
+ content: "\e03b";
207
+ }
208
+ .mtphr-dnt-icon-social-tumblr:before {
209
+ content: "\e03c";
210
+ }
211
+ .mtphr-dnt-icon-social-twitter:before {
212
+ content: "\e03d";
213
+ }
214
+ .mtphr-dnt-icon-social-vimeo:before {
215
+ content: "\e03e";
216
+ }
217
+ .mtphr-dnt-icon-social-windows:before {
218
+ content: "\e03f";
219
+ }
220
+ .mtphr-dnt-icon-social-xbox:before {
221
+ content: "\e040";
222
+ }
223
+ .mtphr-dnt-icon-social-yahoo:before {
224
+ content: "\e041";
225
+ }
226
+ .mtphr-dnt-icon-social-yelp:before {
227
+ content: "\e042";
228
+ }
229
+ .mtphr-dnt-icon-social-youtube:before {
230
+ content: "\e043";
231
+ }
232
+ .mtphr-dnt-icon-social-zerply:before {
233
+ content: "\e044";
234
+ }
235
+ .mtphr-dnt-icon-social-zurb:before {
236
+ content: "\e045";
237
+ }
238
+ .mtphr-dnt-icon-play:before {
239
+ content: "\e046";
240
+ }
241
+ .mtphr-dnt-icon-pause:before {
242
+ content: "\e047";
243
+ }
assets/images/dittynewsticker.svg ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
6
+ <path d="M80,10v37.9c0,8.8-2.3,16.1-6.9,21.6c-2.6,3.2-6,5.7-10.1,7.6c-4.1,1.9-8.3,2.8-12.6,2.8c-8.5,0-15.8-2.9-21.7-8.6
7
+ C23,65.5,20,58.4,20,50c0-8,2.9-15.1,8.7-21c5.8-5.9,12.8-8.9,20.7-8.9c1,0,2.6,0.1,4.5,0.2v20.8c-1.3-0.6-2.7-1-4.1-1
8
+ c-2.7,0-5.1,1-7.1,3c-1.9,2-2.9,4.4-2.9,7.2c0,2.7,1,5.1,3.1,7.1c2,1.9,4.5,2.9,7.3,2.9c4.7,0,10.2-2.3,10.2-13.5V1.1
9
+ C57.1,0.4,53.6,0,50,0C22.4,0,0,22.4,0,50c0,27.6,22.4,50,50,50s50-22.4,50-50C100,33.6,92.1,19.1,80,10z"/>
10
+ </svg>
assets/js/admin/script.js DELETED
@@ -1,335 +0,0 @@
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 */
61
- /* --------------------------------------------------------- */
62
-
63
- $('.mtphr-dnt-metabox-toggle').each( function(index) {
64
-
65
- // Create an array to store all the toggled metaboxes
66
- var metaboxes = Array();
67
- $(this).children('a').each( function(index) {
68
-
69
- // Get the metaboxes and merge into the main array
70
- var m = $(this).attr('metaboxes').split(',');
71
- $.merge( metaboxes, m );
72
- });
73
- var total_metaboxes = metaboxes.length;
74
-
75
- // Hide the toggled metaboxes
76
- mtphr_dnt_metabox_hide();
77
-
78
- // Display the current metaboxes
79
- if( $(this).children('a.button-primary').length > 0 ) {
80
- $init_button = $(this).children('a.button-primary');
81
- } else {
82
- $init_button = $(this).children('a:first');
83
- $init_button.addClass('button-primary');
84
- }
85
- mtphr_dnt_metabox_show( $init_button );
86
-
87
- // Hide the toggled metaboxes
88
- function mtphr_dnt_metabox_hide() {
89
- for( var i=0; i<total_metaboxes; i++ ) {
90
- $('#'+metaboxes[i]).hide();
91
- $('input[name="'+metaboxes[i]+'-hide"]').removeAttr('checked');
92
- }
93
- }
94
-
95
- // Show the selected metaboxes
96
- function mtphr_dnt_metabox_show( $button ) {
97
-
98
- // Get and display the selected metaboxes
99
- var m = $button.attr('metaboxes').split(',');
100
- var t = m.length;
101
-
102
- // Show all the toggled metaboxes
103
- for( var i=0; i<t; i++ ) {
104
- $('#'+m[i]).show();
105
- $('input[name="'+m[i]+'-hide"]').attr('checked', 'checked');
106
- }
107
-
108
- // Store the new value
109
- $button.siblings('input').val($button.attr('href'));
110
- }
111
-
112
- // Select the code on button click
113
- $(this).children('a').click( function(e) {
114
- e.preventDefault();
115
-
116
- // Hide all the toggled metaboxes
117
- mtphr_dnt_metabox_hide();
118
-
119
- // Show the selected metaboxes
120
- mtphr_dnt_metabox_show( $(this) );
121
-
122
- // Set the button classes
123
- $(this).siblings('a').removeClass('button-primary');
124
- $(this).addClass('button-primary');
125
- });
126
- });
127
-
128
-
129
- /* --------------------------------------------------------- */
130
- /* !Sort list - 1.4.4 */
131
- /* --------------------------------------------------------- */
132
-
133
- if( $('.mtphr-dnt-sort-list').length > 0 ) {
134
-
135
- $('.mtphr-dnt-sort-list').sortable( {
136
- handle: '.mtphr-dnt-list-handle',
137
- items: '.mtphr-dnt-list-item',
138
- axis: 'y',
139
- helper: function(e, tr) {
140
- var $originals = tr.children();
141
- var $helper = tr.clone();
142
- $helper.children().each(function(index) {
143
- $(this).width($originals.eq(index).width());
144
- $(this).height($originals.eq(index).height());
145
- });
146
- return $helper;
147
- },
148
- });
149
- }
150
-
151
-
152
- /* --------------------------------------------------------- */
153
- /* !Advanced list - 1.4.12 */
154
- /* --------------------------------------------------------- */
155
-
156
- if( $('.mtphr-dnt-advanced-list').length > 0 ) {
157
-
158
- function mtphr_dnt_advanced_handle_toggle( $table ) {
159
-
160
- if( $table.find('.mtphr-dnt-list-item').length > 1 ) {
161
- $table.find('.mtphr-dnt-list-handle').show();
162
- $table.find('.mtphr-dnt-list-delete').show();
163
- } else {
164
- $table.find('.mtphr-dnt-list-handle').hide();
165
- $table.find('.mtphr-dnt-list-delete').hide();
166
- }
167
- }
168
-
169
- function mtphr_dnt_advanced_set_order( $table ) {
170
-
171
- $table.find('.mtphr-dnt-list-item').each( function(index) {
172
- $(this).find('textarea, input, select').each( function() {
173
-
174
- if( $(this).hasClass('mtphr-dnt-wysiwyg') ) {
175
-
176
- var $parent = $(this).parents('.mtphr-dnt-wysiwyg-container'),
177
- name = $parent.attr('data-name'),
178
- key = $parent.attr('data-key');
179
-
180
- } else {
181
-
182
- var name = $(this).attr('data-name'),
183
- key = $(this).attr('data-key');
184
- }
185
-
186
- $(this).attr('name', name+'['+index+']['+key+']');
187
- });
188
- });
189
-
190
- mtphr_dnt_advanced_handle_toggle( $table );
191
- }
192
-
193
- $('.mtphr-dnt-advanced-list').sortable( {
194
- handle: '.mtphr-dnt-list-handle',
195
- items: '.mtphr-dnt-list-item',
196
- axis: 'y',
197
- helper: function(e, tr) {
198
- var $originals = tr.children();
199
- var $helper = tr.clone();
200
- $helper.children().each(function(index) {
201
- $(this).width($originals.eq(index).width());
202
- $(this).height($originals.eq(index).height());
203
- });
204
- return $helper;
205
- }
206
- });
207
-
208
- // Delete list item
209
- $('.mtphr-dnt-advanced-list').find('.mtphr-dnt-list-delete').live( 'click', function(e) {
210
- e.preventDefault();
211
-
212
- var $table = $(this).parents('.mtphr-dnt-advanced-list');
213
-
214
- // Fade out the item
215
- $(this).parents('.mtphr-dnt-list-item').fadeOut( function() {
216
- $(this).remove();
217
- mtphr_dnt_advanced_set_order( $table );
218
- });
219
- });
220
-
221
- // Add new row
222
- $('.mtphr-dnt-advanced-list').find('.mtphr-dnt-list-add').live( 'click', function(e) {
223
- e.preventDefault();
224
-
225
- // Save the container
226
- var $table = $(this).parents('.mtphr-dnt-advanced-list'),
227
- $container = $(this).parents('.mtphr-dnt-list-item'),
228
- $dup = $container.clone();
229
-
230
- // Reset the duplicate
231
- $dup.find('textarea, input, select').each( function() {
232
- if( $(this).attr('type') == 'checkbox' || $(this).attr('type') == 'radio' ) {
233
- $(this).removeAttr('checked');
234
- } else {
235
- $(this).val('');
236
- }
237
- });
238
-
239
- // Add the duplicate
240
- $dup.hide();
241
- $container.after( $dup );
242
- $dup.fadeIn();
243
-
244
- // Set the order
245
- mtphr_dnt_advanced_set_order( $table );
246
- });
247
-
248
- $('.mtphr-dnt-advanced-list').each( function(index) {
249
- mtphr_dnt_advanced_set_order( $(this) );
250
- });
251
- }
252
-
253
-
254
-
255
- /* --------------------------------------------------------- */
256
- /* !Mixed tick list - 1.3.3 */
257
- /* --------------------------------------------------------- */
258
-
259
- /*
260
- if( $('.mtphr-dnt-mixed-list').length > 0 ) {
261
-
262
- function mtphr_dnt_mixed_handle_toggle( $table ) {
263
- if( $table.find('.mtphr-dnt-list-item').length > 1 ) {
264
- $table.find('.mtphr-dnt-list-handle').show();
265
- } else {
266
- $table.find('.mtphr-dnt-list-handle').hide();
267
- }
268
- }
269
-
270
- function mtphr_dnt_mixed_set_order( $table ) {
271
-
272
- $table.find('.mtphr-dnt-list-item').each( function(index) {
273
- $(this).find('input, select').each( function() {
274
- $(this).attr('name', '_mtphr_dnt_mixed_ticks['+index+']['+$(this).attr('key')+']');
275
- });
276
- });
277
-
278
- mtphr_dnt_mixed_handle_toggle( $table );
279
- }
280
-
281
- $('.mtphr-dnt-mixed-list').sortable( {
282
- handle: '.mtphr-dnt-list-handle',
283
- items: '.mtphr-dnt-list-item',
284
- axis: 'y',
285
- helper: function(e, tr) {
286
- var $originals = tr.children();
287
- var $helper = tr.clone();
288
- $helper.children().each(function(index) {
289
- $(this).width($originals.eq(index).width());
290
- $(this).height($originals.eq(index).height());
291
- });
292
- return $helper;
293
- },
294
- });
295
-
296
- // Delete list item
297
- $('.mtphr-dnt-mixed-list').find('.mtphr-dnt-list-delete').live( 'click', function(e) {
298
- e.preventDefault();
299
-
300
- // Fade out the item
301
- $(this).parents('.mtphr-dnt-list-item').fadeOut( function() {
302
- $(this).remove();
303
- });
304
- });
305
-
306
- // Add new row
307
- $('#mtphr-dnt-mixed-add-tick').click( function(e) {
308
- e.preventDefault();
309
-
310
- // Save the container
311
- var $container = $(this).siblings('.mtphr-dnt-table').find('.mtphr-dnt-mixed-list'),
312
- $spinner = $(this).next();
313
-
314
- $spinner.css('display', 'inline-block');
315
-
316
- var data = {
317
- action: 'mtphr_dnt_mixed_list_ajax',
318
- security: ditty_news_ticker_vars.security
319
- };
320
- $.post( ajaxurl, data, function( response ) {
321
-
322
- // Add the audio and adjust the toggles
323
- $container.append( response );
324
- mtphr_dnt_mixed_set_order( $container );
325
- $spinner.fadeOut();
326
- });
327
- });
328
-
329
- $('.mtphr-dnt-mixed-list').each( function(index) {
330
- mtphr_dnt_mixed_set_order( $(this) );
331
- });
332
- }
333
- */
334
-
335
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/{admin/codemirror.js → codemirror.js} RENAMED
File without changes
assets/js/{admin/codemirror → codemirror}/css.js RENAMED
File without changes
assets/js/ditty-news-ticker-images.js ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( document ).ready( function($) {
2
+
3
+
4
+ var preload_limit = 4;
5
+ currently_preloading = 0;
6
+
7
+
8
+ /* --------------------------------------------------------- */
9
+ /* !Preload images */
10
+ /* --------------------------------------------------------- */
11
+
12
+ function mtphr_dnt_image_preload() {
13
+
14
+ var start = currently_preloading;
15
+ for( var i=start; i<preload_limit; i++ ) {
16
+
17
+ var $placeholder = $('.mtphr-dnt-image-placeholder:visible:first');
18
+ if( $placeholder.length == 0 ) {
19
+ $placeholder = $('.mtphr-dnt-image-placeholder:first');
20
+ }
21
+
22
+ if( $placeholder.length > 0 ) {
23
+
24
+ // Add 1 to the currently preloading var
25
+ currently_preloading++;
26
+
27
+ // Replace the placeholder class
28
+ $placeholder.attr('class', 'mtphr-dnt-image-placeholder-loading');
29
+
30
+ // Load the image
31
+ mtphr_dnt_image_preload_image( $placeholder );
32
+ }
33
+ }
34
+ }
35
+
36
+ function mtphr_dnt_image_preload_image( $placeholder ) {
37
+
38
+ var path = $placeholder.attr('data-src');
39
+
40
+ var img = new Image();
41
+ $(img).load(function () {
42
+
43
+ var $img = $(this);
44
+ $placeholder.after( $img );
45
+ $placeholder.css('position', 'absolute').fadeOut( function() {
46
+
47
+ // Remove the placeholder
48
+ $(this).next('.mtphr-dnt-image-placeholder-sizer').remove();
49
+ $(this).remove();
50
+
51
+ // Trigger a ticker resize
52
+ $('body').trigger('mtphr_dnt_resize', [$img.parents('.mtphr-dnt').attr('id')]);
53
+
54
+ // Resize the placeholders
55
+ mtphr_dnt_image_resize_placeholders();
56
+
57
+ // Subtract 1 to the currently preloading var
58
+ currently_preloading--;
59
+
60
+ // Preload the next image
61
+ if( $('.mtphr-dnt-image-placeholder').length > 0 ) {
62
+ mtphr_dnt_image_preload();
63
+ }
64
+ });
65
+ $(this).fadeIn();
66
+
67
+ }).attr('src', path);
68
+ }
69
+
70
+ mtphr_dnt_image_preload();
71
+
72
+
73
+
74
+
75
+
76
+ /* --------------------------------------------------------- */
77
+ /* !Resize the placholders - 1.0.0 */
78
+ /* --------------------------------------------------------- */
79
+
80
+ function mtphr_dnt_image_resize_placeholders() {
81
+
82
+ $('.mtphr-dnt-image-placeholder, .mtphr-dnt-image-placeholder-loading').each( function(index) {
83
+
84
+ var init_w = $(this).data('width'),
85
+ init_h = $(this).data('height'),
86
+ percent = init_h/init_w,
87
+ w = $(this).next('.mtphr-dnt-image-placeholder-sizer').width(),
88
+ h = w*percent;
89
+
90
+ $(this).css({
91
+ display: 'block',
92
+ width: w+'px',
93
+ height: h+'px'
94
+ });
95
+
96
+ });
97
+ }
98
+
99
+
100
+
101
+
102
+ $(window).resize( function() {
103
+ mtphr_dnt_image_resize_placeholders();
104
+ });
105
+ mtphr_dnt_image_resize_placeholders();
106
+
107
+ });
assets/js/ditty-news-ticker.js CHANGED
@@ -25,6 +25,7 @@
25
  scroll_spacing : 40,
26
  scroll_units : 10,
27
  scroll_init : 0,
 
28
  rotate_type : 'fade',
29
  auto_rotate : 0,
30
  rotate_delay : 10,
@@ -32,12 +33,14 @@
32
  rotate_speed : 10,
33
  rotate_ease : 'easeOutExpo',
34
  nav_reverse : 0,
 
35
  offset : 20,
36
  before_change : function(){},
37
  after_change : function(){},
38
  after_load : function(){}
39
  };
40
 
 
41
  // Useful variables. Play carefully.
42
  var vars = {
43
  id : settings.id,
@@ -46,7 +49,8 @@
46
  current_tick : 0,
47
  next_tick : 0,
48
  reverse : 0,
49
- running : 0
 
50
  };
51
 
52
  // Add any set options
@@ -60,7 +64,8 @@
60
  $nav_prev = $container.find('.mtphr-dnt-nav-prev'),
61
  $nav_next = $container.find('.mtphr-dnt-nav-next'),
62
  $nav_controls = $container.find('.mtphr-dnt-control-links'),
63
- ticker_width = $ticker.width(),
 
64
  ticker_height = 0,
65
  ticks = [],
66
  ticker_scroll,
@@ -78,8 +83,7 @@
78
  // Add the vars
79
  $ticker.data('ditty:vars', vars);
80
 
81
- // Save the tick count & total
82
- vars.tick_count = $ticker.find('.mtphr-dnt-tick').length;
83
 
84
 
85
 
@@ -89,6 +93,9 @@
89
  * @since 1.0.0
90
  */
91
  function mtphr_dnt_init() {
 
 
 
92
 
93
  // Start the first tick
94
  if( vars.tick_count > 0 ) {
@@ -116,16 +123,8 @@
116
  *
117
  * @since 1.1.0
118
  */
119
- function mtphr_dnt_scroll_setup() {
120
-
121
- var $first = $ticker.find('.mtphr-dnt-tick:first');
122
- if( $first.attr('style') ) {
123
- var style = $first.attr('style');
124
- var style_array = style.split('width:');
125
- ticker_scroll_resize = (style_array.length > 1) ? false : true;
126
- }
127
-
128
- // Loop through the tick items
129
  $ticker.find('.mtphr-dnt-tick').each( function(index) {
130
 
131
  // Find the greatest tick height
@@ -140,40 +139,67 @@
140
 
141
  // Set the ticker height
142
  $ticker.css('height',ticker_height+'px');
 
 
 
143
 
144
- // Loop through the tick items
145
- $ticker.find('.mtphr-dnt-tick').each( function(index) {
146
-
147
- // Make sure the ticker is visible
148
- $(this).show();
149
-
150
- // Add the tick data
151
- var tick = [{'headline':$(this)}];
152
-
153
- // Add the tick to the array
154
- ticks.push(tick);
155
- });
156
-
157
- // Set the initial position of the ticks
158
- mtphr_dnt_scroll_reset_ticks();
159
-
160
- // Start the scroll loop
161
- mtphr_dnt_scroll_loop();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
 
163
  // Clear the loop on mouse hover
164
  $ticker.hover(
165
  function () {
166
  if( settings.scroll_pause ) {
167
- clearInterval( ticker_scroll );
168
  }
169
  },
170
  function () {
171
- if( settings.scroll_pause ) {
172
- mtphr_dnt_scroll_loop();
173
  }
174
  }
175
  );
176
  }
 
 
 
 
 
 
 
 
177
 
178
  /**
179
  * Create the ticker scroll loop
@@ -233,9 +259,9 @@
233
  var pos = parseFloat(ticks[i][0].position - settings.scroll_speed);
234
 
235
  // Reset the tick if off the screen
236
- if( pos < -(ticks[i][0].width+settings.offset) ) {
237
  pos = mtphr_dnt_scroll_check_current(i);
238
- } else if( pos < parseFloat(ticker_width-ticks[i][0].width-settings.scroll_spacing) ) {
239
  mtphr_dnt_scroll_check_next(i);
240
  }
241
 
@@ -273,9 +299,9 @@
273
  var pos = ticks[i][0].position - settings.scroll_speed;
274
 
275
  // Reset the tick if off the screen
276
- if( pos < -(ticks[i][0].height+settings.offset) ) {
277
  pos = mtphr_dnt_scroll_check_current(i);
278
- } else if( pos < ticker_height-ticks[i][0].height-settings.scroll_spacing ) {
279
  mtphr_dnt_scroll_check_next(i);
280
  }
281
 
@@ -312,9 +338,31 @@
312
  if( vars.tick_count > 1 ) {
313
  ticks[i][0].visible = false;
314
  }
 
 
 
 
 
 
315
 
316
  return 'reset';
317
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
 
319
  /**
320
  * Check the next tick visibility
@@ -324,8 +372,12 @@
324
  function mtphr_dnt_scroll_check_next( i ) {
325
 
326
  if( i==(vars.tick_count-1) ) {
327
- ticks[0][0].visible = true;
 
 
 
328
  } else {
 
329
  ticks[(i+1)][0].visible = true;
330
  }
331
  }
@@ -400,7 +452,7 @@
400
  for( var i=0; i<vars.tick_count; i++ ) {
401
 
402
  var $tick = ticks[i][0].headline;
403
-
404
  switch( settings.scroll_direction ) {
405
  case 'left':
406
  position = ticker_width+settings.offset;
@@ -503,7 +555,14 @@
503
  }
504
  }
505
 
506
-
 
 
 
 
 
 
 
507
 
508
 
509
  /**
@@ -518,11 +577,16 @@
518
 
519
  // Add the tick to the array
520
  ticks.push($(this));
521
-
 
 
522
  });
523
 
524
  // Resize the ticks
525
  mtphr_dnt_rotator_resize_ticks();
 
 
 
526
 
527
  // Find the rotation type and create the dynamic rotation init function
528
  var rotate_init_name = 'mtphr_dnt_rotator_'+settings.rotate_type+'_init';
@@ -532,19 +596,19 @@
532
 
533
  // Start the rotator rotate
534
  if( settings.auto_rotate ) {
535
- mtphr_dnt_rotator_delay();
536
  }
537
 
538
  // Clear the loop on mouse hover
539
  $ticker.hover(
540
  function (e) {
541
  if( settings.auto_rotate && settings.rotate_pause && !vars.running ) {
542
- clearInterval( ticker_delay );
543
  }
544
  },
545
  function () {
546
- if( settings.auto_rotate && settings.rotate_pause && !vars.running ) {
547
- mtphr_dnt_rotator_delay();
548
  }
549
  }
550
  );
@@ -558,7 +622,7 @@
558
  function mtphr_dnt_rotator_delay() {
559
 
560
  // Start the ticker timer
561
- clearInterval( ticker_delay );
562
  ticker_delay = setInterval( function() {
563
 
564
  // Find the new tick
@@ -583,7 +647,7 @@
583
 
584
  // Clear the interval
585
  if( settings.auto_rotate ) {
586
- clearInterval( ticker_delay );
587
  }
588
 
589
  // Set the next variable
@@ -620,7 +684,7 @@
620
  vars.running = 0;
621
 
622
  // Restart the interval
623
- if( settings.auto_rotate ) {
624
  mtphr_dnt_rotator_delay();
625
  }
626
 
@@ -681,6 +745,11 @@
681
 
682
  // Set the width of the tick
683
  $(ticks[i]).width( ticker_width+'px' );
 
 
 
 
 
684
  }
685
 
686
  // Resize the ticker
@@ -702,32 +771,45 @@
702
  $tick = ticks[0];
703
 
704
  // Find the width of the tick
705
- var w = $tick.parents('.mtphr-dnt-rotate').width();
706
  var h = $tick.height();
707
 
708
  // Set the height of the ticker
709
  $ticker.css( 'height', h+'px' );
710
-
711
- // Set the initial position of the width & make sure it's visible
712
- $tick.show();
 
713
  }
714
 
715
  // Show the new tick
716
  function mtphr_dnt_rotator_fade_in( $ticker, $tick, $prev, rotate_speed, ease ) {
717
- $tick.fadeIn( rotate_speed );
 
 
 
 
 
 
718
 
719
  var h = $tick.height();
720
 
721
  // Resize the ticker
722
  $ticker.stop().animate( {
723
  height: h+'px'
724
- }, rotate_speed, ease, function() {
725
- });
726
  }
727
 
728
  // Hide the old tick
729
  function mtphr_dnt_rotator_fade_out( $ticker, $tick, $next, rotate_speed, ease ) {
730
- $tick.fadeOut( rotate_speed );
 
 
 
 
 
 
 
 
731
  }
732
 
733
 
@@ -744,43 +826,29 @@
744
  $tick = ticks[0];
745
 
746
  // Find the dimensions of the tick
747
- var w = $tick.parents('.mtphr-dnt-rotate').width();
748
  var h = $tick.height();
749
 
750
  // Set the height of the ticker
751
  $ticker.css( 'height', h+'px' );
752
 
753
  // Set the initial position of the width & make sure it's visible
754
- $tick.css( 'left', 0 );
755
- $tick.show();
756
-
757
- // If there are any images, reset height after loading
758
- if( $tick.find('img').length > 0 ) {
759
-
760
- $tick.find('img').each( function(index) {
761
-
762
- jQuery(this).load( function() {
763
-
764
- // Find the height of the tick
765
- var h = $tick.height();
766
-
767
- // Set the height of the ticker
768
- $ticker.css( 'height', h+'px' );
769
- });
770
- });
771
- }
772
  }
773
 
774
  // Show the new tick
775
  function mtphr_dnt_rotator_slide_left_in( $ticker, $tick, $prev, rotate_speed, ease ) {
776
 
777
  // Find the dimensions of the tick
778
- var w = $tick.parents('.mtphr-dnt-rotate').width();
779
  var h = $tick.height();
780
 
781
  // Set the initial position of the width & make sure it's visible
782
- $tick.css( 'left', parseFloat(w+settings.offset)+'px' );
783
- $tick.show();
 
 
784
 
785
  // Resize the ticker
786
  $ticker.stop().animate( {
@@ -799,15 +867,17 @@
799
  function mtphr_dnt_rotator_slide_left_out( $ticker, $tick, $next, rotate_speed, ease ) {
800
 
801
  // Find the dimensions of the tick
802
- var w = $tick.parents('.mtphr-dnt-rotate').width();
803
  var h = $tick.height();
804
 
805
  // Slide the tick in
806
  $tick.stop().animate( {
807
- left: '-'+parseFloat(w+settings.offset)+'px'
808
  }, rotate_speed, ease, function() {
809
- // Hide the tick
810
- $tick.hide();
 
 
 
811
  });
812
  }
813
 
@@ -825,43 +895,29 @@
825
  $tick = ticks[0];
826
 
827
  // Find the dimensions of the tick
828
- var w = $tick.parents('.mtphr-dnt-rotate').width();
829
  var h = $tick.height();
830
 
831
  // Set the height of the ticker
832
  $ticker.css( 'height', h+'px' );
833
 
834
  // Set the initial position of the width & make sure it's visible
835
- $tick.css( 'left', 0 );
836
- $tick.show();
837
-
838
- // If there are any images, reset height after loading
839
- if( $tick.find('img').length > 0 ) {
840
-
841
- $tick.find('img').each( function(index) {
842
-
843
- jQuery(this).load( function() {
844
-
845
- // Find the height of the tick
846
- var h = $tick.height();
847
-
848
- // Set the height of the ticker
849
- $ticker.css( 'height', h+'px' );
850
- });
851
- });
852
- }
853
  }
854
 
855
  // Show the new tick
856
  function mtphr_dnt_rotator_slide_right_in( $ticker, $tick, $prev, rotate_speed, ease ) {
857
 
858
  // Find the dimensions of the tick
859
- var w = $tick.parents('.mtphr-dnt-rotate').width();
860
  var h = $tick.height();
861
 
862
  // Set the initial position of the width & make sure it's visible
863
- $tick.css( 'left', '-'+parseFloat(w+settings.offset)+'px' );
864
- $tick.show();
 
 
865
 
866
  // Resize the ticker
867
  $ticker.stop().animate( {
@@ -872,23 +928,21 @@
872
  // Slide the tick in
873
  $tick.stop().animate( {
874
  left: '0'
875
- }, rotate_speed, ease, function() {
876
- });
877
  }
878
 
879
  // Hide the old tick
880
  function mtphr_dnt_rotator_slide_right_out( $ticker, $tick, $next, rotate_speed, ease ) {
881
 
882
- // Find the dimensions of the tick
883
- var w = $tick.parents('.mtphr-dnt-rotate').width();
884
- var h = $tick.height();
885
-
886
  // Slide the tick in
887
  $tick.stop().animate( {
888
- left: parseFloat(w+settings.offset)+'px'
889
  }, rotate_speed, ease, function() {
890
- // Hide the tick
891
- $tick.hide();
 
 
 
892
  });
893
  }
894
 
@@ -912,24 +966,11 @@
912
  $ticker.css( 'height', h+'px' );
913
 
914
  // Set the initial position of the width & make sure it's visible
915
- $tick.css( 'top', 0 );
916
- $tick.show();
917
-
918
- // If there are any images, reset height after loading
919
- if( $tick.find('img').length > 0 ) {
920
-
921
- $tick.find('img').each( function(index) {
922
-
923
- jQuery(this).load( function() {
924
-
925
- // Find the height of the tick
926
- var h = $tick.height();
927
-
928
- // Set the height of the ticker
929
- $ticker.css( 'height', h+'px' );
930
- });
931
- });
932
- }
933
  }
934
 
935
  // Show the new tick
@@ -939,20 +980,21 @@
939
  var h = $tick.height();
940
 
941
  // Set the initial position of the width & make sure it's visible
942
- $tick.css( 'top', '-'+parseFloat(h+settings.offset)+'px' );
943
- $tick.show();
 
 
 
944
 
945
  // Resize the ticker
946
  $ticker.stop().animate( {
947
  height: h+'px'
948
- }, rotate_speed, ease, function() {
949
- });
950
 
951
  // Slide the tick in
952
  $tick.stop().animate( {
953
  top: '0'
954
- }, rotate_speed, ease, function() {
955
- });
956
  }
957
 
958
  // Hide the old tick
@@ -965,8 +1007,11 @@
965
  $tick.stop().animate( {
966
  top: parseFloat(h+settings.offset)+'px'
967
  }, rotate_speed, ease, function() {
968
- // Hide the tick
969
- $tick.hide();
 
 
 
970
  });
971
  }
972
 
@@ -987,27 +1032,16 @@
987
  var h = $tick.height();
988
 
989
  // Set the height of the ticker
990
- $ticker.css( 'height', h+'px' );
 
 
 
991
 
992
  // Set the initial position of the width & make sure it's visible
993
- $tick.css( 'top', 0 );
994
- $tick.show();
995
-
996
- // If there are any images, reset height after loading
997
- if( $tick.find('img').length > 0 ) {
998
-
999
- $tick.find('img').each( function(index) {
1000
-
1001
- jQuery(this).load( function() {
1002
-
1003
- // Find the height of the tick
1004
- var h = $tick.height();
1005
-
1006
- // Set the height of the ticker
1007
- $ticker.css( 'height', h+'px' );
1008
- });
1009
- });
1010
- }
1011
  }
1012
 
1013
  // Show the new tick
@@ -1017,20 +1051,21 @@
1017
  var h = $tick.height();
1018
 
1019
  // Set the initial position of the width & make sure it's visible
1020
- $tick.css( 'top', parseFloat($prev.height()+settings.offset)+'px' );
1021
- $tick.show();
 
 
 
1022
 
1023
  // Resize the ticker
1024
  $ticker.stop().animate( {
1025
  height: h+'px'
1026
- }, rotate_speed, ease, function() {
1027
- });
1028
 
1029
  // Slide the tick in
1030
  $tick.stop().animate( {
1031
  top: '0'
1032
- }, rotate_speed, ease, function() {
1033
- });
1034
  }
1035
 
1036
  // Hide the old tick
@@ -1043,8 +1078,11 @@
1043
  $tick.stop().animate( {
1044
  top: '-'+parseFloat(h+settings.offset)+'px'
1045
  }, rotate_speed, ease, function() {
1046
- // Hide the tick
1047
- $tick.hide();
 
 
 
1048
  });
1049
  }
1050
 
@@ -1150,60 +1188,87 @@
1150
  mtphr_dnt_rotator_update( new_tick );
1151
  });
1152
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1153
 
1154
 
1155
 
1156
 
1157
  /* --------------------------------------------------------- */
1158
- /* !Mobile swipe - 1.1.9 */
1159
  /* --------------------------------------------------------- */
1160
 
1161
- if( settings.type == 'rotate' ) {
1162
-
1163
  $ticker.swipe( {
1164
  triggerOnTouchEnd : true,
1165
- allowPageScroll: 'vertical',
1166
- swipeStatus : function(event, phase, direction, distance, duration, fingers) {
1167
- if ( phase =="end" ) {
1168
- if (direction == "right") {
1169
-
1170
- if(vars.running) return false;
1171
-
1172
- // Find the new tick
1173
- var new_tick = parseInt(vars.current_tick-1);
1174
- if( new_tick < 0 ) {
1175
- new_tick = vars.tick_count-1;
1176
- }
1177
- if( settings.rotate_type == 'slide_left' || settings.rotate_type == 'slide_right' ) {
1178
- rotate_adjustment = 'slide_right';
1179
- }
1180
- if( settings.nav_reverse ) {
1181
- if( settings.rotate_type == 'slide_down' ) {
1182
- rotate_adjustment = 'slide_up';
1183
- } else if( settings.rotate_type == 'slide_up' ) {
1184
- rotate_adjustment = 'slide_down';
1185
- }
1186
- vars.reverse = 1;
1187
- }
1188
- mtphr_dnt_rotator_update( new_tick );
1189
-
1190
- } else if (direction == "left") {
1191
-
1192
- if(vars.running) return false;
1193
-
1194
- // Find the new tick
1195
- var new_tick = parseInt(vars.current_tick + 1);
1196
- if( new_tick == vars.tick_count ) {
1197
- new_tick = 0;
1198
- }
1199
- if( settings.rotate_type == 'slide_left' || settings.rotate_type == 'slide_right' ) {
1200
- rotate_adjustment = 'slide_left';
1201
- }
1202
- mtphr_dnt_rotator_update( new_tick );
1203
  }
 
1204
  }
1205
- }
1206
- });
 
1207
  }
1208
 
1209
 
@@ -1223,6 +1288,14 @@
1223
  $container.on('mtphr_dnt_goto', function( e, pos ) {
1224
  mtphr_dnt_rotator_update( parseInt(pos) );
1225
  });
 
 
 
 
 
 
 
 
1226
 
1227
 
1228
 
@@ -1235,9 +1308,9 @@
1235
  $(window).resize( function() {
1236
 
1237
  // Resize the tickers if the width is different
1238
- if( $ticker.width() != ticker_width ) {
1239
 
1240
- ticker_width = $ticker.width();
1241
 
1242
  if( settings.type == 'scroll' ) {
1243
  if( settings.scroll_direction=='up' || settings.scroll_direction=='down' ) {
@@ -1277,13 +1350,28 @@
1277
  }
1278
  });
1279
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1280
  if( $container.width() == 0 ) {
1281
 
1282
  var mtphr_dnt_init_timer = setInterval( function() {
1283
 
1284
  if( $container.width() > 10 ) {
1285
  clearInterval(mtphr_dnt_init_timer);
1286
- ticker_width = $ticker.width();
1287
  mtphr_dnt_init();
1288
  }
1289
 
25
  scroll_spacing : 40,
26
  scroll_units : 10,
27
  scroll_init : 0,
28
+ scroll_loop : 1,
29
  rotate_type : 'fade',
30
  auto_rotate : 0,
31
  rotate_delay : 10,
33
  rotate_speed : 10,
34
  rotate_ease : 'easeOutExpo',
35
  nav_reverse : 0,
36
+ disable_touchswipe : 0,
37
  offset : 20,
38
  before_change : function(){},
39
  after_change : function(){},
40
  after_load : function(){}
41
  };
42
 
43
+
44
  // Useful variables. Play carefully.
45
  var vars = {
46
  id : settings.id,
49
  current_tick : 0,
50
  next_tick : 0,
51
  reverse : 0,
52
+ running : 0,
53
+ paused : 0
54
  };
55
 
56
  // Add any set options
64
  $nav_prev = $container.find('.mtphr-dnt-nav-prev'),
65
  $nav_next = $container.find('.mtphr-dnt-nav-next'),
66
  $nav_controls = $container.find('.mtphr-dnt-control-links'),
67
+ $play_pause = $container.find('.mtphr-dnt-play-pause'),
68
+ ticker_width = $ticker.outerWidth(),
69
  ticker_height = 0,
70
  ticks = [],
71
  ticker_scroll,
83
  // Add the vars
84
  $ticker.data('ditty:vars', vars);
85
 
86
+
 
87
 
88
 
89
 
93
  * @since 1.0.0
94
  */
95
  function mtphr_dnt_init() {
96
+
97
+ // Save the tick count & total
98
+ vars.tick_count = $ticker.find('.mtphr-dnt-tick').length;
99
 
100
  // Start the first tick
101
  if( vars.tick_count > 0 ) {
123
  *
124
  * @since 1.1.0
125
  */
126
+ function mtphr_dnt_scroll_set_height() {
127
+ // Loop through the tick items
 
 
 
 
 
 
 
 
128
  $ticker.find('.mtphr-dnt-tick').each( function(index) {
129
 
130
  // Find the greatest tick height
139
 
140
  // Set the ticker height
141
  $ticker.css('height',ticker_height+'px');
142
+ }
143
+
144
+ function mtphr_dnt_scroll_setup() {
145
 
146
+ var $first = $ticker.find('.mtphr-dnt-tick:first');
147
+ if( $first.attr('style') ) {
148
+ var style = $first.attr('style');
149
+ var style_array = style.split('width:');
150
+ ticker_scroll_resize = (style_array.length > 1) ? false : true;
151
+ }
152
+
153
+ // Reset the ticks
154
+ ticks = [];
155
+
156
+ //mtphr_dnt_scroll_set_height();
157
+
158
+ $ticker.imagesLoaded( function() {
159
+ mtphr_dnt_scroll_set_height();
160
+
161
+ // Loop through the tick items
162
+ $ticker.find('.mtphr-dnt-tick').each( function(index) {
163
+
164
+ // Make sure the ticker is visible
165
+ $(this).show();
166
+
167
+ // Add the tick data
168
+ var tick = [{'headline':$(this)}];
169
+
170
+ // Add the tick to the array
171
+ ticks.push(tick);
172
+ });
173
+
174
+ // Set the initial position of the ticks
175
+ mtphr_dnt_scroll_reset_ticks();
176
+
177
+ // Start the scroll loop
178
+ mtphr_dnt_scroll_loop();
179
+ });
180
 
181
  // Clear the loop on mouse hover
182
  $ticker.hover(
183
  function () {
184
  if( settings.scroll_pause ) {
185
+ mtphr_dnt_scroll_pause();
186
  }
187
  },
188
  function () {
189
+ if( settings.scroll_pause && !vars.paused ) {
190
+ mtphr_dnt_scroll_play();
191
  }
192
  }
193
  );
194
  }
195
+
196
+ function mtphr_dnt_scroll_pause() {
197
+ clearInterval( ticker_scroll );
198
+ }
199
+
200
+ function mtphr_dnt_scroll_play() {
201
+ mtphr_dnt_scroll_loop();
202
+ }
203
 
204
  /**
205
  * Create the ticker scroll loop
259
  var pos = parseFloat(ticks[i][0].position - settings.scroll_speed);
260
 
261
  // Reset the tick if off the screen
262
+ if( pos < -(ticks[i][0].headline.width()+settings.offset) ) {
263
  pos = mtphr_dnt_scroll_check_current(i);
264
+ } else if( pos < parseFloat(ticker_width-ticks[i][0].headline.width()-settings.scroll_spacing) ) {
265
  mtphr_dnt_scroll_check_next(i);
266
  }
267
 
299
  var pos = ticks[i][0].position - settings.scroll_speed;
300
 
301
  // Reset the tick if off the screen
302
+ if( pos < -(ticks[i][0].headline.height()+settings.offset) ) {
303
  pos = mtphr_dnt_scroll_check_current(i);
304
+ } else if( pos < ticker_height-ticks[i][0].headline.height()-settings.scroll_spacing ) {
305
  mtphr_dnt_scroll_check_next(i);
306
  }
307
 
338
  if( vars.tick_count > 1 ) {
339
  ticks[i][0].visible = false;
340
  }
341
+
342
+ // Add a scroll complete trigger
343
+ if( vars.tick_count == (i+1) ) {
344
+ $container.trigger('mtphr_dnt_scroll_complete', [vars, ticks]);
345
+ $('body').trigger('mtphr_dnt_scroll_complete', [$container, vars, ticks]);
346
+ }
347
 
348
  return 'reset';
349
  }
350
+
351
+
352
+ function mtphr_dnt_set_scroll_vars( i ) {
353
+
354
+ if( ticks[i][0].visible == false ) {
355
+ vars.previous_tick = parseInt(i-1);
356
+ if( vars.previous_tick < 0 ) {
357
+ vars.previous_tick = parseInt(vars.tick_count-1);
358
+ }
359
+ vars.current_tick = i;
360
+ vars.next_tick = parseInt(i+1);
361
+ if( vars.next_tick >= vars.tick_count ) {
362
+ vars.next_tick = 0;
363
+ }
364
+ }
365
+ }
366
 
367
  /**
368
  * Check the next tick visibility
372
  function mtphr_dnt_scroll_check_next( i ) {
373
 
374
  if( i==(vars.tick_count-1) ) {
375
+ if( settings.scroll_loop ) {
376
+ mtphr_dnt_set_scroll_vars(0);
377
+ ticks[0][0].visible = true;
378
+ }
379
  } else {
380
+ mtphr_dnt_set_scroll_vars(parseInt(i+1));
381
  ticks[(i+1)][0].visible = true;
382
  }
383
  }
452
  for( var i=0; i<vars.tick_count; i++ ) {
453
 
454
  var $tick = ticks[i][0].headline;
455
+
456
  switch( settings.scroll_direction ) {
457
  case 'left':
458
  position = ticker_width+settings.offset;
555
  }
556
  }
557
 
558
+
559
+ function mtphr_dnt_rotator_play() {
560
+ mtphr_dnt_rotator_delay();
561
+ }
562
+
563
+ function mtphr_dnt_rotator_pause() {
564
+ clearInterval( ticker_delay );
565
+ }
566
 
567
 
568
  /**
577
 
578
  // Add the tick to the array
579
  ticks.push($(this));
580
+ $(this).imagesLoaded( function() {
581
+ mtphr_dnt_rotator_resize_ticks();
582
+ });
583
  });
584
 
585
  // Resize the ticks
586
  mtphr_dnt_rotator_resize_ticks();
587
+
588
+ // Loop through the tick items
589
+ $ticker.find('.mtphr-dnt-tick').show();
590
 
591
  // Find the rotation type and create the dynamic rotation init function
592
  var rotate_init_name = 'mtphr_dnt_rotator_'+settings.rotate_type+'_init';
596
 
597
  // Start the rotator rotate
598
  if( settings.auto_rotate ) {
599
+ mtphr_dnt_rotator_play();
600
  }
601
 
602
  // Clear the loop on mouse hover
603
  $ticker.hover(
604
  function (e) {
605
  if( settings.auto_rotate && settings.rotate_pause && !vars.running ) {
606
+ mtphr_dnt_rotator_pause();
607
  }
608
  },
609
  function () {
610
+ if( settings.auto_rotate && settings.rotate_pause && !vars.running && !vars.paused ) {
611
+ mtphr_dnt_rotator_play();
612
  }
613
  }
614
  );
622
  function mtphr_dnt_rotator_delay() {
623
 
624
  // Start the ticker timer
625
+ mtphr_dnt_rotator_pause();
626
  ticker_delay = setInterval( function() {
627
 
628
  // Find the new tick
647
 
648
  // Clear the interval
649
  if( settings.auto_rotate ) {
650
+ mtphr_dnt_rotator_pause();
651
  }
652
 
653
  // Set the next variable
684
  vars.running = 0;
685
 
686
  // Restart the interval
687
+ if( settings.auto_rotate && !vars.paused ) {
688
  mtphr_dnt_rotator_delay();
689
  }
690
 
745
 
746
  // Set the width of the tick
747
  $(ticks[i]).width( ticker_width+'px' );
748
+ if( vars.current_tick !== i ) {
749
+ $(ticks[i]).css({
750
+ left: parseFloat(ticker_width+settings.offset)+'px'
751
+ });
752
+ }
753
  }
754
 
755
  // Resize the ticker
771
  $tick = ticks[0];
772
 
773
  // Find the width of the tick
 
774
  var h = $tick.height();
775
 
776
  // Set the height of the ticker
777
  $ticker.css( 'height', h+'px' );
778
+ $tick.css({
779
+ opacity: 1,
780
+ left: 'auto'
781
+ });
782
  }
783
 
784
  // Show the new tick
785
  function mtphr_dnt_rotator_fade_in( $ticker, $tick, $prev, rotate_speed, ease ) {
786
+ $tick.css({
787
+ opacity: 0,
788
+ left: 'auto'
789
+ });
790
+ $tick.stop().animate( {
791
+ opacity: 1
792
+ }, rotate_speed, ease );
793
 
794
  var h = $tick.height();
795
 
796
  // Resize the ticker
797
  $ticker.stop().animate( {
798
  height: h+'px'
799
+ }, rotate_speed, ease );
 
800
  }
801
 
802
  // Hide the old tick
803
  function mtphr_dnt_rotator_fade_out( $ticker, $tick, $next, rotate_speed, ease ) {
804
+ $tick.stop().animate( {
805
+ opacity: 0
806
+ }, rotate_speed, ease, function() {
807
+ $(this).css({
808
+ left: parseFloat(ticker_width+settings.offset)+'px'
809
+ });
810
+ $tick.remove();
811
+ $ticker.append( $tick );
812
+ });
813
  }
814
 
815
 
826
  $tick = ticks[0];
827
 
828
  // Find the dimensions of the tick
 
829
  var h = $tick.height();
830
 
831
  // Set the height of the ticker
832
  $ticker.css( 'height', h+'px' );
833
 
834
  // Set the initial position of the width & make sure it's visible
835
+ $tick.css({
836
+ opacity: 1,
837
+ left: 0
838
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
839
  }
840
 
841
  // Show the new tick
842
  function mtphr_dnt_rotator_slide_left_in( $ticker, $tick, $prev, rotate_speed, ease ) {
843
 
844
  // Find the dimensions of the tick
 
845
  var h = $tick.height();
846
 
847
  // Set the initial position of the width & make sure it's visible
848
+ $tick.css({
849
+ opacity: 1,
850
+ left: parseFloat(ticker_width+settings.offset)+'px',
851
+ });
852
 
853
  // Resize the ticker
854
  $ticker.stop().animate( {
867
  function mtphr_dnt_rotator_slide_left_out( $ticker, $tick, $next, rotate_speed, ease ) {
868
 
869
  // Find the dimensions of the tick
 
870
  var h = $tick.height();
871
 
872
  // Slide the tick in
873
  $tick.stop().animate( {
874
+ left: '-'+parseFloat(ticker_width+settings.offset)+'px'
875
  }, rotate_speed, ease, function() {
876
+ $tick.css({
877
+ opacity: 0,
878
+ });
879
+ $tick.remove();
880
+ $ticker.append( $tick );
881
  });
882
  }
883
 
895
  $tick = ticks[0];
896
 
897
  // Find the dimensions of the tick
 
898
  var h = $tick.height();
899
 
900
  // Set the height of the ticker
901
  $ticker.css( 'height', h+'px' );
902
 
903
  // Set the initial position of the width & make sure it's visible
904
+ $tick.css({
905
+ opacity: 1,
906
+ left: 0
907
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
908
  }
909
 
910
  // Show the new tick
911
  function mtphr_dnt_rotator_slide_right_in( $ticker, $tick, $prev, rotate_speed, ease ) {
912
 
913
  // Find the dimensions of the tick
 
914
  var h = $tick.height();
915
 
916
  // Set the initial position of the width & make sure it's visible
917
+ $tick.css({
918
+ opacity: 1,
919
+ left: '-'+parseFloat(ticker_width+settings.offset)+'px'
920
+ });
921
 
922
  // Resize the ticker
923
  $ticker.stop().animate( {
928
  // Slide the tick in
929
  $tick.stop().animate( {
930
  left: '0'
931
+ }, rotate_speed, ease );
 
932
  }
933
 
934
  // Hide the old tick
935
  function mtphr_dnt_rotator_slide_right_out( $ticker, $tick, $next, rotate_speed, ease ) {
936
 
 
 
 
 
937
  // Slide the tick in
938
  $tick.stop().animate( {
939
+ left: parseFloat(ticker_width+settings.offset)+'px'
940
  }, rotate_speed, ease, function() {
941
+ $tick.css({
942
+ opacity: 0,
943
+ });
944
+ $tick.remove();
945
+ $ticker.append( $tick );
946
  });
947
  }
948
 
966
  $ticker.css( 'height', h+'px' );
967
 
968
  // Set the initial position of the width & make sure it's visible
969
+ $tick.css({
970
+ opacity: 1,
971
+ top: 0,
972
+ left: 'auto'
973
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
974
  }
975
 
976
  // Show the new tick
980
  var h = $tick.height();
981
 
982
  // Set the initial position of the width & make sure it's visible
983
+ $tick.css({
984
+ opacity: 1,
985
+ top: '-'+parseFloat(h+settings.offset)+'px',
986
+ left: 'auto'
987
+ });
988
 
989
  // Resize the ticker
990
  $ticker.stop().animate( {
991
  height: h+'px'
992
+ }, rotate_speed, ease );
 
993
 
994
  // Slide the tick in
995
  $tick.stop().animate( {
996
  top: '0'
997
+ }, rotate_speed, ease );
 
998
  }
999
 
1000
  // Hide the old tick
1007
  $tick.stop().animate( {
1008
  top: parseFloat(h+settings.offset)+'px'
1009
  }, rotate_speed, ease, function() {
1010
+ $tick.css({
1011
+ opacity: 0,
1012
+ });
1013
+ $tick.remove();
1014
+ $ticker.append( $tick );
1015
  });
1016
  }
1017
 
1032
  var h = $tick.height();
1033
 
1034
  // Set the height of the ticker
1035
+ $ticker.css({
1036
+ height: h+'px',
1037
+ left: 'auto'
1038
+ });
1039
 
1040
  // Set the initial position of the width & make sure it's visible
1041
+ $tick.css({
1042
+ opacity: 1,
1043
+ top: 0
1044
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1045
  }
1046
 
1047
  // Show the new tick
1051
  var h = $tick.height();
1052
 
1053
  // Set the initial position of the width & make sure it's visible
1054
+ $tick.css({
1055
+ opacity: 1,
1056
+ top: parseFloat($prev.height()+settings.offset)+'px',
1057
+ left: 'auto'
1058
+ });
1059
 
1060
  // Resize the ticker
1061
  $ticker.stop().animate( {
1062
  height: h+'px'
1063
+ }, rotate_speed, ease );
 
1064
 
1065
  // Slide the tick in
1066
  $tick.stop().animate( {
1067
  top: '0'
1068
+ }, rotate_speed, ease );
 
1069
  }
1070
 
1071
  // Hide the old tick
1078
  $tick.stop().animate( {
1079
  top: '-'+parseFloat(h+settings.offset)+'px'
1080
  }, rotate_speed, ease, function() {
1081
+ $tick.css({
1082
+ opacity: 0,
1083
+ });
1084
+ $tick.remove();
1085
+ $ticker.append( $tick );
1086
  });
1087
  }
1088
 
1188
  mtphr_dnt_rotator_update( new_tick );
1189
  });
1190
  }
1191
+
1192
+
1193
+
1194
+ /* --------------------------------------------------------- */
1195
+ /* !Play and pause - 2.0.4 */
1196
+ /* --------------------------------------------------------- */
1197
+
1198
+ function mtphr_dnt_play_pause_toggle( play ) {
1199
+ if( play ) {
1200
+ vars.paused = false;
1201
+ $play_pause.removeClass('paused');
1202
+ if( settings.type == 'scroll' ) {
1203
+ mtphr_dnt_scroll_play();
1204
+ } else {
1205
+ mtphr_dnt_rotator_play();
1206
+ }
1207
+ } else {
1208
+ vars.paused = true;
1209
+ $play_pause.addClass('paused');
1210
+ if( settings.type == 'scroll' ) {
1211
+ mtphr_dnt_scroll_pause();
1212
+ } else {
1213
+ mtphr_dnt_rotator_pause();
1214
+ }
1215
+ }
1216
+ $container.trigger('mtphr_dnt_play_pause', [vars, ticks]);
1217
+ }
1218
+
1219
+ $play_pause.bind('click', function(e) {
1220
+ e.preventDefault();
1221
+ mtphr_dnt_play_pause_toggle( vars.paused );
1222
+ });
1223
 
1224
 
1225
 
1226
 
1227
  /* --------------------------------------------------------- */
1228
+ /* !Mobile swipe - 1.5.0 */
1229
  /* --------------------------------------------------------- */
1230
 
1231
+ if( settings.type == 'rotate' && !settings.disable_touchswipe ) {
1232
+
1233
  $ticker.swipe( {
1234
  triggerOnTouchEnd : true,
1235
+ swipeLeft: function(event, distance, duration, fingerCount, fingerData) {
1236
+
1237
+ if(vars.running) return false;
1238
+
1239
+ // Find the new tick
1240
+ var new_tick = parseInt(vars.current_tick + 1);
1241
+ if( new_tick == vars.tick_count ) {
1242
+ new_tick = 0;
1243
+ }
1244
+ if( settings.rotate_type == 'slide_left' || settings.rotate_type == 'slide_right' ) {
1245
+ rotate_adjustment = 'slide_left';
1246
+ }
1247
+ mtphr_dnt_rotator_update( new_tick );
1248
+ },
1249
+ swipeRight: function(event, distance, duration, fingerCount, fingerData) {
1250
+
1251
+ if(vars.running) return false;
1252
+
1253
+ // Find the new tick
1254
+ var new_tick = parseInt(vars.current_tick-1);
1255
+ if( new_tick < 0 ) {
1256
+ new_tick = vars.tick_count-1;
1257
+ }
1258
+ if( settings.rotate_type == 'slide_left' || settings.rotate_type == 'slide_right' ) {
1259
+ rotate_adjustment = 'slide_right';
1260
+ }
1261
+ if( settings.nav_reverse ) {
1262
+ if( settings.rotate_type == 'slide_down' ) {
1263
+ rotate_adjustment = 'slide_up';
1264
+ } else if( settings.rotate_type == 'slide_up' ) {
1265
+ rotate_adjustment = 'slide_down';
 
 
 
 
 
 
 
1266
  }
1267
+ vars.reverse = 1;
1268
  }
1269
+ mtphr_dnt_rotator_update( new_tick );
1270
+ }
1271
+ });
1272
  }
1273
 
1274
 
1288
  $container.on('mtphr_dnt_goto', function( e, pos ) {
1289
  mtphr_dnt_rotator_update( parseInt(pos) );
1290
  });
1291
+
1292
+ $container.on('mtphr_dnt_pause', function( e, pos ) {
1293
+ mtphr_dnt_play_pause_toggle();
1294
+ });
1295
+
1296
+ $container.on('mtphr_dnt_play', function( e, pos ) {
1297
+ mtphr_dnt_play_pause_toggle( true );
1298
+ });
1299
 
1300
 
1301
 
1308
  $(window).resize( function() {
1309
 
1310
  // Resize the tickers if the width is different
1311
+ if( $ticker.outerWidth() != ticker_width ) {
1312
 
1313
+ ticker_width = $ticker.outerWidth();
1314
 
1315
  if( settings.type == 'scroll' ) {
1316
  if( settings.scroll_direction=='up' || settings.scroll_direction=='down' ) {
1350
  }
1351
  });
1352
 
1353
+ $container.on('mtphr_dnt_replace_ticks', function( e, ticks, delay ) {
1354
+
1355
+ clearInterval( ticker_scroll );
1356
+ $container.find('.mtphr-dnt-tick').remove();
1357
+
1358
+ ticks.each( function(index) {
1359
+ $ticker.append( $(this) );
1360
+ });
1361
+
1362
+ setTimeout( function() {
1363
+ mtphr_dnt_init();
1364
+ }, delay );
1365
+
1366
+ });
1367
+
1368
  if( $container.width() == 0 ) {
1369
 
1370
  var mtphr_dnt_init_timer = setInterval( function() {
1371
 
1372
  if( $container.width() > 10 ) {
1373
  clearInterval(mtphr_dnt_init_timer);
1374
+ ticker_width = $ticker.outerWidth();
1375
  mtphr_dnt_init();
1376
  }
1377
 
assets/js/ditty-rotate-ticker.js ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Ditty Rotate Ticker
3
+ * Date: 04/21/16
4
+ *
5
+ * @author Metaphor Creations
6
+ * @version 1.0.0
7
+ *
8
+ **/
9
+
10
+ ( function($) {
11
+
12
+ var methods = {
13
+
14
+ init : function( options ) {
15
+
16
+ return this.each( function(){
17
+
18
+ // Create default options
19
+ var settings = {
20
+ id : '',
21
+ ticks : '',
22
+ autoplay : false,
23
+ speed : 750,
24
+ delay : 3000,
25
+ animation : 'horizontal',
26
+ animateHeight : true
27
+ };
28
+
29
+ // Add any set options
30
+ if (options) {
31
+ $.extend(settings, options);
32
+ }
33
+
34
+ // Useful variables. Play carefully.
35
+ var vars = {
36
+ id : settings.id,
37
+ current_tick : 0,
38
+ total_ticks : 0,
39
+ };
40
+
41
+ // Create variables
42
+ var $ticker = $(this),
43
+ $wrapper = $ticker.find('.mtphr-dnt-wrapper'),
44
+ $contents = $ticker.find('.mtphr-dnt-tick-contents');
45
+
46
+ // Add the vars
47
+ $ticker.data('ditty:vars', vars);
48
+
49
+ vars.total_ticks = settings.ticks.length;
50
+
51
+
52
+ /* --------------------------------------------------------- */
53
+ /* !Initialize rotate - 1.0.0 */
54
+ /* --------------------------------------------------------- */
55
+
56
+ $wrapper.unslider({
57
+ arrows: {
58
+ // Unslider default behaviour
59
+ prev: '<a class="unslider-arrow prev">Previous slide</a>',
60
+ next: '<a class="unslider-arrow next">Next slide</a>',
61
+
62
+ // Example: generate buttons to start/stop the slider autoplaying
63
+ stop: '<a class="unslider-pause" />',
64
+ start: '<a class="unslider-play">Play</a>'
65
+ },
66
+ animation: settings.animation,
67
+ selectors: {
68
+ container: '.mtphr-dnt-tick-contents',
69
+ slides: '.mtphr-dnt-tick'
70
+ },
71
+ animateHeight: settings.animateHeight
72
+ });
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ /* --------------------------------------------------------- */
82
+ /* !Close each */
83
+ /* --------------------------------------------------------- */
84
+
85
+ });
86
+ }
87
+ };
88
+
89
+
90
+
91
+
92
+
93
+ /**
94
+ * Setup the class
95
+ *
96
+ * @since 1.0.0
97
+ */
98
+ $.fn.ditty_rotate_ticker = function( method ) {
99
+
100
+ if ( methods[method] ) {
101
+ return methods[method].apply( this, Array.prototype.slice.call(arguments, 1) );
102
+ } else if ( typeof method === 'object' || !method ) {
103
+ return methods.init.apply( this, arguments );
104
+ } else {
105
+ $.error( 'Method ' + method + ' does not exist in ditty_rotate_ticker' );
106
+ }
107
+ };
108
+
109
+ })( jQuery );
assets/js/imagesloaded.pkgd.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ /*!
2
+ * imagesLoaded PACKAGED v4.1.0
3
+ * JavaScript is all like "You images are done yet or what?"
4
+ * MIT License
5
+ */
6
+
7
+ !function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||[];return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function o(t,e,r){return this instanceof o?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(function(){this.check()}.bind(this))):new o(t,e,r)}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var h=t.jQuery,a=t.console;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&d[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(h=e,h.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
assets/js/jquery.touchSwipe.min.js CHANGED
@@ -1 +1 @@
1
- (function(e){var o="left",n="right",d="up",v="down",c="in",w="out",l="none",r="auto",k="swipe",s="pinch",x="tap",i="doubletap",b="longtap",A="horizontal",t="vertical",h="all",q=10,f="start",j="move",g="end",p="cancel",a="ontouchstart" in window,y="TouchSwipe";var m={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"button, input, select, textarea, a, .noSwipe"};e.fn.swipe=function(D){var C=e(this),B=C.data(y);if(B&&typeof D==="string"){if(B[D]){return B[D].apply(this,Array.prototype.slice.call(arguments,1))}else{e.error("Method "+D+" does not exist on jQuery.swipe")}}else{if(!B&&(typeof D==="object"||!D)){return u.apply(this,arguments)}}return C};e.fn.swipe.defaults=m;e.fn.swipe.phases={PHASE_START:f,PHASE_MOVE:j,PHASE_END:g,PHASE_CANCEL:p};e.fn.swipe.directions={LEFT:o,RIGHT:n,UP:d,DOWN:v,IN:c,OUT:w};e.fn.swipe.pageScroll={NONE:l,HORIZONTAL:A,VERTICAL:t,AUTO:r};e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:h};function u(B){if(B&&(B.allowPageScroll===undefined&&(B.swipe!==undefined||B.swipeStatus!==undefined))){B.allowPageScroll=l}if(B.click!==undefined&&B.tap===undefined){B.tap=B.click}if(!B){B={}}B=e.extend({},e.fn.swipe.defaults,B);return this.each(function(){var D=e(this);var C=D.data(y);if(!C){C=new z(this,B);D.data(y,C)}})}function z(a0,aq){var av=(a||!aq.fallbackToMouseEvents),G=av?"touchstart":"mousedown",au=av?"touchmove":"mousemove",R=av?"touchend":"mouseup",P=av?null:"mouseleave",az="touchcancel";var ac=0,aL=null,Y=0,aX=0,aV=0,D=1,am=0,aF=0,J=null;var aN=e(a0);var W="start";var T=0;var aM=null;var Q=0,aY=0,a1=0,aa=0,K=0;var aS=null;try{aN.bind(G,aJ);aN.bind(az,a5)}catch(ag){e.error("events not supported "+G+","+az+" on jQuery.swipe")}this.enable=function(){aN.bind(G,aJ);aN.bind(az,a5);return aN};this.disable=function(){aG();return aN};this.destroy=function(){aG();aN.data(y,null);return aN};this.option=function(a8,a7){if(aq[a8]!==undefined){if(a7===undefined){return aq[a8]}else{aq[a8]=a7}}else{e.error("Option "+a8+" does not exist on jQuery.swipe.options")}};function aJ(a9){if(ax()){return}if(e(a9.target).closest(aq.excludedElements,aN).length>0){return}var ba=a9.originalEvent?a9.originalEvent:a9;var a8,a7=a?ba.touches[0]:ba;W=f;if(a){T=ba.touches.length}else{a9.preventDefault()}ac=0;aL=null;aF=null;Y=0;aX=0;aV=0;D=1;am=0;aM=af();J=X();O();if(!a||(T===aq.fingers||aq.fingers===h)||aT()){ae(0,a7);Q=ao();if(T==2){ae(1,ba.touches[1]);aX=aV=ap(aM[0].start,aM[1].start)}if(aq.swipeStatus||aq.pinchStatus){a8=L(ba,W)}}else{a8=false}if(a8===false){W=p;L(ba,W);return a8}else{ak(true)}}function aZ(ba){var bd=ba.originalEvent?ba.originalEvent:ba;if(W===g||W===p||ai()){return}var a9,a8=a?bd.touches[0]:bd;var bb=aD(a8);aY=ao();if(a){T=bd.touches.length}W=j;if(T==2){if(aX==0){ae(1,bd.touches[1]);aX=aV=ap(aM[0].start,aM[1].start)}else{aD(bd.touches[1]);aV=ap(aM[0].end,aM[1].end);aF=an(aM[0].end,aM[1].end)}D=a3(aX,aV);am=Math.abs(aX-aV)}if((T===aq.fingers||aq.fingers===h)||!a||aT()){aL=aH(bb.start,bb.end);ah(ba,aL);ac=aO(bb.start,bb.end);Y=aI();aE(aL,ac);if(aq.swipeStatus||aq.pinchStatus){a9=L(bd,W)}if(!aq.triggerOnTouchEnd||aq.triggerOnTouchLeave){var a7=true;if(aq.triggerOnTouchLeave){var bc=aU(this);a7=B(bb.end,bc)}if(!aq.triggerOnTouchEnd&&a7){W=ay(j)}else{if(aq.triggerOnTouchLeave&&!a7){W=ay(g)}}if(W==p||W==g){L(bd,W)}}}else{W=p;L(bd,W)}if(a9===false){W=p;L(bd,W)}}function I(a7){var a8=a7.originalEvent;if(a){if(a8.touches.length>0){C();return true}}if(ai()){T=aa}a7.preventDefault();aY=ao();Y=aI();if(a6()){W=p;L(a8,W)}else{if(aq.triggerOnTouchEnd||(aq.triggerOnTouchEnd==false&&W===j)){W=g;L(a8,W)}else{if(!aq.triggerOnTouchEnd&&a2()){W=g;aB(a8,W,x)}else{if(W===j){W=p;L(a8,W)}}}}ak(false)}function a5(){T=0;aY=0;Q=0;aX=0;aV=0;D=1;O();ak(false)}function H(a7){var a8=a7.originalEvent;if(aq.triggerOnTouchLeave){W=ay(g);L(a8,W)}}function aG(){aN.unbind(G,aJ);aN.unbind(az,a5);aN.unbind(au,aZ);aN.unbind(R,I);if(P){aN.unbind(P,H)}ak(false)}function ay(bb){var ba=bb;var a9=aw();var a8=aj();var a7=a6();if(!a9||a7){ba=p}else{if(a8&&bb==j&&(!aq.triggerOnTouchEnd||aq.triggerOnTouchLeave)){ba=g}else{if(!a8&&bb==g&&aq.triggerOnTouchLeave){ba=p}}}return ba}function L(a9,a7){var a8=undefined;if(F()||S()){a8=aB(a9,a7,k)}else{if((M()||aT())&&a8!==false){a8=aB(a9,a7,s)}}if(aC()&&a8!==false){a8=aB(a9,a7,i)}else{if(al()&&a8!==false){a8=aB(a9,a7,b)}else{if(ad()&&a8!==false){a8=aB(a9,a7,x)}}}if(a7===p){a5(a9)}if(a7===g){if(a){if(a9.touches.length==0){a5(a9)}}else{a5(a9)}}return a8}function aB(ba,a7,a9){var a8=undefined;if(a9==k){aN.trigger("swipeStatus",[a7,aL||null,ac||0,Y||0,T]);if(aq.swipeStatus){a8=aq.swipeStatus.call(aN,ba,a7,aL||null,ac||0,Y||0,T);if(a8===false){return false}}if(a7==g&&aR()){aN.trigger("swipe",[aL,ac,Y,T]);if(aq.swipe){a8=aq.swipe.call(aN,ba,aL,ac,Y,T);if(a8===false){return false}}switch(aL){case o:aN.trigger("swipeLeft",[aL,ac,Y,T]);if(aq.swipeLeft){a8=aq.swipeLeft.call(aN,ba,aL,ac,Y,T)}break;case n:aN.trigger("swipeRight",[aL,ac,Y,T]);if(aq.swipeRight){a8=aq.swipeRight.call(aN,ba,aL,ac,Y,T)}break;case d:aN.trigger("swipeUp",[aL,ac,Y,T]);if(aq.swipeUp){a8=aq.swipeUp.call(aN,ba,aL,ac,Y,T)}break;case v:aN.trigger("swipeDown",[aL,ac,Y,T]);if(aq.swipeDown){a8=aq.swipeDown.call(aN,ba,aL,ac,Y,T)}break}}}if(a9==s){aN.trigger("pinchStatus",[a7,aF||null,am||0,Y||0,T,D]);if(aq.pinchStatus){a8=aq.pinchStatus.call(aN,ba,a7,aF||null,am||0,Y||0,T,D);if(a8===false){return false}}if(a7==g&&a4()){switch(aF){case c:aN.trigger("pinchIn",[aF||null,am||0,Y||0,T,D]);if(aq.pinchIn){a8=aq.pinchIn.call(aN,ba,aF||null,am||0,Y||0,T,D)}break;case w:aN.trigger("pinchOut",[aF||null,am||0,Y||0,T,D]);if(aq.pinchOut){a8=aq.pinchOut.call(aN,ba,aF||null,am||0,Y||0,T,D)}break}}}if(a9==x){if(a7===p||a7===g){clearTimeout(aS);if(V()&&!E()){K=ao();aS=setTimeout(e.proxy(function(){K=null;aN.trigger("tap",[ba.target]);if(aq.tap){a8=aq.tap.call(aN,ba,ba.target)}},this),aq.doubleTapThreshold)}else{K=null;aN.trigger("tap",[ba.target]);if(aq.tap){a8=aq.tap.call(aN,ba,ba.target)}}}}else{if(a9==i){if(a7===p||a7===g){clearTimeout(aS);K=null;aN.trigger("doubletap",[ba.target]);if(aq.doubleTap){a8=aq.doubleTap.call(aN,ba,ba.target)}}}else{if(a9==b){if(a7===p||a7===g){clearTimeout(aS);K=null;aN.trigger("longtap",[ba.target]);if(aq.longTap){a8=aq.longTap.call(aN,ba,ba.target)}}}}}return a8}function aj(){var a7=true;if(aq.threshold!==null){a7=ac>=aq.threshold}return a7}function a6(){var a7=false;if(aq.cancelThreshold!==null&&aL!==null){a7=(aP(aL)-ac)>=aq.cancelThreshold}return a7}function ab(){if(aq.pinchThreshold!==null){return am>=aq.pinchThreshold}return true}function aw(){var a7;if(aq.maxTimeThreshold){if(Y>=aq.maxTimeThreshold){a7=false}else{a7=true}}else{a7=true}return a7}function ah(a7,a8){if(aq.allowPageScroll===l||aT()){a7.preventDefault()}else{var a9=aq.allowPageScroll===r;switch(a8){case o:if((aq.swipeLeft&&a9)||(!a9&&aq.allowPageScroll!=A)){a7.preventDefault()}break;case n:if((aq.swipeRight&&a9)||(!a9&&aq.allowPageScroll!=A)){a7.preventDefault()}break;case d:if((aq.swipeUp&&a9)||(!a9&&aq.allowPageScroll!=t)){a7.preventDefault()}break;case v:if((aq.swipeDown&&a9)||(!a9&&aq.allowPageScroll!=t)){a7.preventDefault()}break}}}function a4(){var a8=aK();var a7=U();var a9=ab();return a8&&a7&&a9}function aT(){return !!(aq.pinchStatus||aq.pinchIn||aq.pinchOut)}function M(){return !!(a4()&&aT())}function aR(){var ba=aw();var bc=aj();var a9=aK();var a7=U();var a8=a6();var bb=!a8&&a7&&a9&&bc&&ba;return bb}function S(){return !!(aq.swipe||aq.swipeStatus||aq.swipeLeft||aq.swipeRight||aq.swipeUp||aq.swipeDown)}function F(){return !!(aR()&&S())}function aK(){return((T===aq.fingers||aq.fingers===h)||!a)}function U(){return aM[0].end.x!==0}function a2(){return !!(aq.tap)}function V(){return !!(aq.doubleTap)}function aQ(){return !!(aq.longTap)}function N(){if(K==null){return false}var a7=ao();return(V()&&((a7-K)<=aq.doubleTapThreshold))}function E(){return N()}function at(){return((T===1||!a)&&(isNaN(ac)||ac===0))}function aW(){return((Y>aq.longTapThreshold)&&(ac<q))}function ad(){return !!(at()&&a2())}function aC(){return !!(N()&&V())}function al(){return !!(aW()&&aQ())}function C(){a1=ao();aa=event.touches.length+1}function O(){a1=0;aa=0}function ai(){var a7=false;if(a1){var a8=ao()-a1;if(a8<=aq.fingerReleaseThreshold){a7=true}}return a7}function ax(){return !!(aN.data(y+"_intouch")===true)}function ak(a7){if(a7===true){aN.bind(au,aZ);aN.bind(R,I);if(P){aN.bind(P,H)}}else{aN.unbind(au,aZ,false);aN.unbind(R,I,false);if(P){aN.unbind(P,H,false)}}aN.data(y+"_intouch",a7===true)}function ae(a8,a7){var a9=a7.identifier!==undefined?a7.identifier:0;aM[a8].identifier=a9;aM[a8].start.x=aM[a8].end.x=a7.pageX||a7.clientX;aM[a8].start.y=aM[a8].end.y=a7.pageY||a7.clientY;return aM[a8]}function aD(a7){var a9=a7.identifier!==undefined?a7.identifier:0;var a8=Z(a9);a8.end.x=a7.pageX||a7.clientX;a8.end.y=a7.pageY||a7.clientY;return a8}function Z(a8){for(var a7=0;a7<aM.length;a7++){if(aM[a7].identifier==a8){return aM[a7]}}}function af(){var a7=[];for(var a8=0;a8<=5;a8++){a7.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return a7}function aE(a7,a8){a8=Math.max(a8,aP(a7));J[a7].distance=a8}function aP(a7){return J[a7].distance}function X(){var a7={};a7[o]=ar(o);a7[n]=ar(n);a7[d]=ar(d);a7[v]=ar(v);return a7}function ar(a7){return{direction:a7,distance:0}}function aI(){return aY-Q}function ap(ba,a9){var a8=Math.abs(ba.x-a9.x);var a7=Math.abs(ba.y-a9.y);return Math.round(Math.sqrt(a8*a8+a7*a7))}function a3(a7,a8){var a9=(a8/a7)*1;return a9.toFixed(2)}function an(){if(D<1){return w}else{return c}}function aO(a8,a7){return Math.round(Math.sqrt(Math.pow(a7.x-a8.x,2)+Math.pow(a7.y-a8.y,2)))}function aA(ba,a8){var a7=ba.x-a8.x;var bc=a8.y-ba.y;var a9=Math.atan2(bc,a7);var bb=Math.round(a9*180/Math.PI);if(bb<0){bb=360-Math.abs(bb)}return bb}function aH(a8,a7){var a9=aA(a8,a7);if((a9<=45)&&(a9>=0)){return o}else{if((a9<=360)&&(a9>=315)){return o}else{if((a9>=135)&&(a9<=225)){return n}else{if((a9>45)&&(a9<135)){return v}else{return d}}}}}function ao(){var a7=new Date();return a7.getTime()}function aU(a7){a7=e(a7);var a9=a7.offset();var a8={left:a9.left,right:a9.left+a7.outerWidth(),top:a9.top,bottom:a9.top+a7.outerHeight()};return a8}function B(a7,a8){return(a7.x>a8.left&&a7.x<a8.right&&a7.y>a8.top&&a7.y<a8.bottom)}}})(jQuery);
1
+ (function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var y="1.6.9",p="left",o="right",e="up",x="down",c="in",A="out",m="none",s="auto",l="swipe",t="pinch",B="tap",j="doubletap",b="longtap",z="hold",E="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,C="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:true};f.fn.swipe=function(H){var G=f(this),F=G.data(C);if(F&&typeof H==="string"){if(F[H]){return F[H].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+H+" does not exist on jQuery.swipe")}}else{if(!F&&(typeof H==="object"||!H)){return w.apply(this,arguments)}}return G};f.fn.swipe.version=y;f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:A};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:E,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(F){if(F&&(F.allowPageScroll===undefined&&(F.swipe!==undefined||F.swipeStatus!==undefined))){F.allowPageScroll=m}if(F.click!==undefined&&F.tap===undefined){F.tap=F.click}if(!F){F={}}F=f.extend({},f.fn.swipe.defaults,F);return this.each(function(){var H=f(this);var G=H.data(C);if(!G){G=new D(this,F);H.data(C,G)}})}function D(a5,aw){var aA=(a||d||!aw.fallbackToMouseEvents),K=aA?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",az=aA?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",V=aA?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",T=aA?null:"mouseleave",aE=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ah=0,aQ=null,ac=0,a2=0,a0=0,H=1,ar=0,aK=0,N=null;var aS=f(a5);var aa="start";var X=0;var aR=null;var U=0,a3=0,a6=0,ae=0,O=0;var aX=null,ag=null;try{aS.bind(K,aO);aS.bind(aE,ba)}catch(al){f.error("events not supported "+K+","+aE+" on jQuery.swipe")}this.enable=function(){aS.bind(K,aO);aS.bind(aE,ba);return aS};this.disable=function(){aL();return aS};this.destroy=function(){aL();aS.data(C,null);aS=null};this.option=function(bd,bc){if(aw[bd]!==undefined){if(bc===undefined){return aw[bd]}else{aw[bd]=bc}}else{f.error("Option "+bd+" does not exist on jQuery.swipe.options")}return null};function aO(be){if(aC()){return}if(f(be.target).closest(aw.excludedElements,aS).length>0){return}var bf=be.originalEvent?be.originalEvent:be;var bd,bg=bf.touches,bc=bg?bg[0]:bf;aa=g;if(bg){X=bg.length}else{be.preventDefault()}ah=0;aQ=null;aK=null;ac=0;a2=0;a0=0;H=1;ar=0;aR=ak();N=ab();S();if(!bg||(X===aw.fingers||aw.fingers===i)||aY()){aj(0,bc);U=au();if(X==2){aj(1,bg[1]);a2=a0=av(aR[0].start,aR[1].start)}if(aw.swipeStatus||aw.pinchStatus){bd=P(bf,aa)}}else{bd=false}if(bd===false){aa=q;P(bf,aa);return bd}else{if(aw.hold){ag=setTimeout(f.proxy(function(){aS.trigger("hold",[bf.target]);if(aw.hold){bd=aw.hold.call(aS,bf,bf.target)}},this),aw.longTapThreshold)}ap(true)}return null}function a4(bf){var bi=bf.originalEvent?bf.originalEvent:bf;if(aa===h||aa===q||an()){return}var be,bj=bi.touches,bd=bj?bj[0]:bi;var bg=aI(bd);a3=au();if(bj){X=bj.length}if(aw.hold){clearTimeout(ag)}aa=k;if(X==2){if(a2==0){aj(1,bj[1]);a2=a0=av(aR[0].start,aR[1].start)}else{aI(bj[1]);a0=av(aR[0].end,aR[1].end);aK=at(aR[0].end,aR[1].end)}H=a8(a2,a0);ar=Math.abs(a2-a0)}if((X===aw.fingers||aw.fingers===i)||!bj||aY()){aQ=aM(bg.start,bg.end);am(bf,aQ);ah=aT(bg.start,bg.end);ac=aN();aJ(aQ,ah);if(aw.swipeStatus||aw.pinchStatus){be=P(bi,aa)}if(!aw.triggerOnTouchEnd||aw.triggerOnTouchLeave){var bc=true;if(aw.triggerOnTouchLeave){var bh=aZ(this);bc=F(bg.end,bh)}if(!aw.triggerOnTouchEnd&&bc){aa=aD(k)}else{if(aw.triggerOnTouchLeave&&!bc){aa=aD(h)}}if(aa==q||aa==h){P(bi,aa)}}}else{aa=q;P(bi,aa)}if(be===false){aa=q;P(bi,aa)}}function M(bc){var bd=bc.originalEvent?bc.originalEvent:bc,be=bd.touches;if(be){if(be.length){G();return true}}if(an()){X=ae}a3=au();ac=aN();if(bb()||!ao()){aa=q;P(bd,aa)}else{if(aw.triggerOnTouchEnd||(aw.triggerOnTouchEnd==false&&aa===k)){bc.preventDefault();aa=h;P(bd,aa)}else{if(!aw.triggerOnTouchEnd&&a7()){aa=h;aG(bd,aa,B)}else{if(aa===k){aa=q;P(bd,aa)}}}}ap(false);return null}function ba(){X=0;a3=0;U=0;a2=0;a0=0;H=1;S();ap(false)}function L(bc){var bd=bc.originalEvent?bc.originalEvent:bc;if(aw.triggerOnTouchLeave){aa=aD(h);P(bd,aa)}}function aL(){aS.unbind(K,aO);aS.unbind(aE,ba);aS.unbind(az,a4);aS.unbind(V,M);if(T){aS.unbind(T,L)}ap(false)}function aD(bg){var bf=bg;var be=aB();var bd=ao();var bc=bb();if(!be||bc){bf=q}else{if(bd&&bg==k&&(!aw.triggerOnTouchEnd||aw.triggerOnTouchLeave)){bf=h}else{if(!bd&&bg==h&&aw.triggerOnTouchLeave){bf=q}}}return bf}function P(be,bc){var bd,bf=be.touches;if((J()||W())||(Q()||aY())){if(J()||W()){bd=aG(be,bc,l)}if((Q()||aY())&&bd!==false){bd=aG(be,bc,t)}}else{if(aH()&&bd!==false){bd=aG(be,bc,j)}else{if(aq()&&bd!==false){bd=aG(be,bc,b)}else{if(ai()&&bd!==false){bd=aG(be,bc,B)}}}}if(bc===q){ba(be)}if(bc===h){if(bf){if(!bf.length){ba(be)}}else{ba(be)}}return bd}function aG(bf,bc,be){var bd;if(be==l){aS.trigger("swipeStatus",[bc,aQ||null,ah||0,ac||0,X,aR]);if(aw.swipeStatus){bd=aw.swipeStatus.call(aS,bf,bc,aQ||null,ah||0,ac||0,X,aR);if(bd===false){return false}}if(bc==h&&aW()){aS.trigger("swipe",[aQ,ah,ac,X,aR]);if(aw.swipe){bd=aw.swipe.call(aS,bf,aQ,ah,ac,X,aR);if(bd===false){return false}}switch(aQ){case p:aS.trigger("swipeLeft",[aQ,ah,ac,X,aR]);if(aw.swipeLeft){bd=aw.swipeLeft.call(aS,bf,aQ,ah,ac,X,aR)}break;case o:aS.trigger("swipeRight",[aQ,ah,ac,X,aR]);if(aw.swipeRight){bd=aw.swipeRight.call(aS,bf,aQ,ah,ac,X,aR)}break;case e:aS.trigger("swipeUp",[aQ,ah,ac,X,aR]);if(aw.swipeUp){bd=aw.swipeUp.call(aS,bf,aQ,ah,ac,X,aR)}break;case x:aS.trigger("swipeDown",[aQ,ah,ac,X,aR]);if(aw.swipeDown){bd=aw.swipeDown.call(aS,bf,aQ,ah,ac,X,aR)}break}}}if(be==t){aS.trigger("pinchStatus",[bc,aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchStatus){bd=aw.pinchStatus.call(aS,bf,bc,aK||null,ar||0,ac||0,X,H,aR);if(bd===false){return false}}if(bc==h&&a9()){switch(aK){case c:aS.trigger("pinchIn",[aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchIn){bd=aw.pinchIn.call(aS,bf,aK||null,ar||0,ac||0,X,H,aR)}break;case A:aS.trigger("pinchOut",[aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchOut){bd=aw.pinchOut.call(aS,bf,aK||null,ar||0,ac||0,X,H,aR)}break}}}if(be==B){if(bc===q||bc===h){clearTimeout(aX);clearTimeout(ag);if(Z()&&!I()){O=au();aX=setTimeout(f.proxy(function(){O=null;aS.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(aS,bf,bf.target)}},this),aw.doubleTapThreshold)}else{O=null;aS.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(aS,bf,bf.target)}}}}else{if(be==j){if(bc===q||bc===h){clearTimeout(aX);O=null;aS.trigger("doubletap",[bf.target]);if(aw.doubleTap){bd=aw.doubleTap.call(aS,bf,bf.target)}}}else{if(be==b){if(bc===q||bc===h){clearTimeout(aX);O=null;aS.trigger("longtap",[bf.target]);if(aw.longTap){bd=aw.longTap.call(aS,bf,bf.target)}}}}}return bd}function ao(){var bc=true;if(aw.threshold!==null){bc=ah>=aw.threshold}return bc}function bb(){var bc=false;if(aw.cancelThreshold!==null&&aQ!==null){bc=(aU(aQ)-ah)>=aw.cancelThreshold}return bc}function af(){if(aw.pinchThreshold!==null){return ar>=aw.pinchThreshold}return true}function aB(){var bc;if(aw.maxTimeThreshold){if(ac>=aw.maxTimeThreshold){bc=false}else{bc=true}}else{bc=true}return bc}function am(bc,bd){if(aw.preventDefaultEvents===false){return}if(aw.allowPageScroll===m){bc.preventDefault()}else{var be=aw.allowPageScroll===s;switch(bd){case p:if((aw.swipeLeft&&be)||(!be&&aw.allowPageScroll!=E)){bc.preventDefault()}break;case o:if((aw.swipeRight&&be)||(!be&&aw.allowPageScroll!=E)){bc.preventDefault()}break;case e:if((aw.swipeUp&&be)||(!be&&aw.allowPageScroll!=u)){bc.preventDefault()}break;case x:if((aw.swipeDown&&be)||(!be&&aw.allowPageScroll!=u)){bc.preventDefault()}break}}}function a9(){var bd=aP();var bc=Y();var be=af();return bd&&bc&&be}function aY(){return !!(aw.pinchStatus||aw.pinchIn||aw.pinchOut)}function Q(){return !!(a9()&&aY())}function aW(){var bf=aB();var bh=ao();var be=aP();var bc=Y();var bd=bb();var bg=!bd&&bc&&be&&bh&&bf;return bg}function W(){return !!(aw.swipe||aw.swipeStatus||aw.swipeLeft||aw.swipeRight||aw.swipeUp||aw.swipeDown)}function J(){return !!(aW()&&W())}function aP(){return((X===aw.fingers||aw.fingers===i)||!a)}function Y(){return aR[0].end.x!==0}function a7(){return !!(aw.tap)}function Z(){return !!(aw.doubleTap)}function aV(){return !!(aw.longTap)}function R(){if(O==null){return false}var bc=au();return(Z()&&((bc-O)<=aw.doubleTapThreshold))}function I(){return R()}function ay(){return((X===1||!a)&&(isNaN(ah)||ah<aw.threshold))}function a1(){return((ac>aw.longTapThreshold)&&(ah<r))}function ai(){return !!(ay()&&a7())}function aH(){return !!(R()&&Z())}function aq(){return !!(a1()&&aV())}function G(){a6=au();ae=event.touches.length+1}function S(){a6=0;ae=0}function an(){var bc=false;if(a6){var bd=au()-a6;if(bd<=aw.fingerReleaseThreshold){bc=true}}return bc}function aC(){return !!(aS.data(C+"_intouch")===true)}function ap(bc){if(bc===true){aS.bind(az,a4);aS.bind(V,M);if(T){aS.bind(T,L)}}else{aS.unbind(az,a4,false);aS.unbind(V,M,false);if(T){aS.unbind(T,L,false)}}aS.data(C+"_intouch",bc===true)}function aj(bd,bc){var be=bc.identifier!==undefined?bc.identifier:0;aR[bd].identifier=be;aR[bd].start.x=aR[bd].end.x=bc.pageX||bc.clientX;aR[bd].start.y=aR[bd].end.y=bc.pageY||bc.clientY;return aR[bd]}function aI(bc){var be=bc.identifier!==undefined?bc.identifier:0;var bd=ad(be);bd.end.x=bc.pageX||bc.clientX;bd.end.y=bc.pageY||bc.clientY;return bd}function ad(bd){for(var bc=0;bc<aR.length;bc++){if(aR[bc].identifier==bd){return aR[bc]}}}function ak(){var bc=[];for(var bd=0;bd<=5;bd++){bc.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return bc}function aJ(bc,bd){bd=Math.max(bd,aU(bc));N[bc].distance=bd}function aU(bc){if(N[bc]){return N[bc].distance}return undefined}function ab(){var bc={};bc[p]=ax(p);bc[o]=ax(o);bc[e]=ax(e);bc[x]=ax(x);return bc}function ax(bc){return{direction:bc,distance:0}}function aN(){return a3-U}function av(bf,be){var bd=Math.abs(bf.x-be.x);var bc=Math.abs(bf.y-be.y);return Math.round(Math.sqrt(bd*bd+bc*bc))}function a8(bc,bd){var be=(bd/bc)*1;return be.toFixed(2)}function at(){if(H<1){return A}else{return c}}function aT(bd,bc){return Math.round(Math.sqrt(Math.pow(bc.x-bd.x,2)+Math.pow(bc.y-bd.y,2)))}function aF(bf,bd){var bc=bf.x-bd.x;var bh=bd.y-bf.y;var be=Math.atan2(bh,bc);var bg=Math.round(be*180/Math.PI);if(bg<0){bg=360-Math.abs(bg)}return bg}function aM(bd,bc){var be=aF(bd,bc);if((be<=45)&&(be>=0)){return p}else{if((be<=360)&&(be>=315)){return p}else{if((be>=135)&&(be<=225)){return o}else{if((be>45)&&(be<135)){return x}else{return e}}}}}function au(){var bc=new Date();return bc.getTime()}function aZ(bc){bc=f(bc);var be=bc.offset();var bd={left:be.left,right:be.left+bc.outerWidth(),top:be.top,bottom:be.top+bc.outerHeight()};return bd}function F(bc,bd){return(bc.x>bd.left&&bc.x<bd.right&&bc.y>bd.top&&bc.y<bd.bottom)}}}));
assets/js/mtphr-dnt-affix.js ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ========================================================================
2
+ * Bootstrap: mtphr_dnt_affix.js v3.3.5
3
+ * http://getbootstrap.com/javascript/#mtphr_dnt_affix
4
+ * ========================================================================
5
+ * Copyright 2011-2015 Twitter, Inc.
6
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
7
+ * ======================================================================== */
8
+
9
+
10
+ +function ($) {
11
+ 'use strict';
12
+
13
+ // AFFIX CLASS DEFINITION
14
+ // ======================
15
+
16
+ var MTPHR_DNT_Affix = function (element, options) {
17
+ this.options = $.extend({}, MTPHR_DNT_Affix.DEFAULTS, options)
18
+
19
+ this.$target = $(this.options.target)
20
+ .on('scroll.bs.mtphr_dnt_affix.data-api', $.proxy(this.checkPosition, this))
21
+ .on('click.bs.mtphr_dnt_affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
22
+
23
+ this.$element = $(element)
24
+ this.mtphr_dnt_affixed = null
25
+ this.unpin = null
26
+ this.pinnedOffset = null
27
+
28
+ this.checkPosition()
29
+ }
30
+
31
+ MTPHR_DNT_Affix.VERSION = '3.3.5'
32
+
33
+ MTPHR_DNT_Affix.RESET = 'mtphr_dnt_affix mtphr_dnt_affix-top mtphr_dnt_affix-bottom'
34
+
35
+ MTPHR_DNT_Affix.DEFAULTS = {
36
+ offset: 0,
37
+ target: window
38
+ }
39
+
40
+ MTPHR_DNT_Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
41
+ var scrollTop = this.$target.scrollTop()
42
+ var position = this.$element.offset()
43
+ var targetHeight = this.$target.height()
44
+
45
+ if (offsetTop != null && this.mtphr_dnt_affixed == 'top') return scrollTop < offsetTop ? 'top' : false
46
+
47
+ if (this.mtphr_dnt_affixed == 'bottom') {
48
+ if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
49
+ return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
50
+ }
51
+
52
+ var initializing = this.mtphr_dnt_affixed == null
53
+ var colliderTop = initializing ? scrollTop : position.top
54
+ var colliderHeight = initializing ? targetHeight : height
55
+
56
+ if (offsetTop != null && scrollTop <= offsetTop) return 'top'
57
+ if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
58
+
59
+ return false
60
+ }
61
+
62
+ MTPHR_DNT_Affix.prototype.getPinnedOffset = function () {
63
+ if (this.pinnedOffset) return this.pinnedOffset
64
+ this.$element.removeClass(MTPHR_DNT_Affix.RESET).addClass('mtphr_dnt_affix')
65
+ var scrollTop = this.$target.scrollTop()
66
+ var position = this.$element.offset()
67
+ return (this.pinnedOffset = position.top - scrollTop)
68
+ }
69
+
70
+ MTPHR_DNT_Affix.prototype.checkPositionWithEventLoop = function () {
71
+ setTimeout($.proxy(this.checkPosition, this), 1)
72
+ }
73
+
74
+ MTPHR_DNT_Affix.prototype.checkPosition = function () {
75
+ if (!this.$element.is(':visible')) return
76
+
77
+ var height = this.$element.height()
78
+ var offset = this.options.offset
79
+ var offsetTop = offset.top
80
+ var offsetBottom = offset.bottom
81
+ var scrollHeight = Math.max($(document).height(), $(document.body).height())
82
+
83
+ if (typeof offset != 'object') offsetBottom = offsetTop = offset
84
+ if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
85
+ if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
86
+
87
+ var mtphr_dnt_affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
88
+
89
+ if (this.mtphr_dnt_affixed != mtphr_dnt_affix) {
90
+ if (this.unpin != null) this.$element.css('top', '')
91
+
92
+ var mtphr_dnt_affixType = 'mtphr_dnt_affix' + (mtphr_dnt_affix ? '-' + mtphr_dnt_affix : '')
93
+ var e = $.Event(mtphr_dnt_affixType + '.bs.mtphr_dnt_affix')
94
+
95
+ this.$element.trigger(e)
96
+
97
+ if (e.isDefaultPrevented()) return
98
+
99
+ this.mtphr_dnt_affixed = mtphr_dnt_affix
100
+ this.unpin = mtphr_dnt_affix == 'bottom' ? this.getPinnedOffset() : null
101
+
102
+ this.$element
103
+ .removeClass(MTPHR_DNT_Affix.RESET)
104
+ .addClass(mtphr_dnt_affixType)
105
+ .trigger(mtphr_dnt_affixType.replace('mtphr_dnt_affix', 'mtphr_dnt_affixed') + '.bs.mtphr_dnt_affix')
106
+ }
107
+
108
+ if (mtphr_dnt_affix == 'bottom') {
109
+ this.$element.offset({
110
+ top: scrollHeight - height - offsetBottom
111
+ })
112
+ }
113
+ }
114
+
115
+
116
+ // AFFIX PLUGIN DEFINITION
117
+ // =======================
118
+
119
+ function Plugin(option) {
120
+ return this.each(function () {
121
+ var $this = $(this)
122
+ var data = $this.data('bs.mtphr_dnt_affix')
123
+ var options = typeof option == 'object' && option
124
+
125
+ if (!data) $this.data('bs.mtphr_dnt_affix', (data = new MTPHR_DNT_Affix(this, options)))
126
+ if (typeof option == 'string') data[option]()
127
+ })
128
+ }
129
+
130
+ var old = $.fn.mtphr_dnt_affix
131
+
132
+ $.fn.mtphr_dnt_affix = Plugin
133
+ $.fn.mtphr_dnt_affix.Constructor = MTPHR_DNT_Affix
134
+
135
+
136
+ // AFFIX NO CONFLICT
137
+ // =================
138
+
139
+ $.fn.mtphr_dnt_affix.noConflict = function () {
140
+ $.fn.mtphr_dnt_affix = old
141
+ return this
142
+ }
143
+
144
+
145
+ // AFFIX DATA-API
146
+ // ==============
147
+
148
+ $(window).on('load', function () {
149
+ $('[data-spy="mtphr_dnt_affix"]').each(function () {
150
+ var $spy = $(this)
151
+ var data = $spy.data()
152
+
153
+ data.offset = data.offset || {}
154
+
155
+ if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
156
+ if (data.offsetTop != null) data.offset.top = data.offsetTop
157
+
158
+ Plugin.call($spy, data)
159
+ })
160
+ })
161
+
162
+ }(jQuery);
assets/js/script-admin.js ADDED
@@ -0,0 +1,529 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( document ).ready( function($) {
2
+
3
+ var $settings_select = $('#mtphr-dnt-settings-select')
4
+ $admin_bar = $('#wpadminbar');
5
+
6
+
7
+ /* --------------------------------------------------------- */
8
+ /* !Affix the menu bar - 2.0.1 */
9
+ /* --------------------------------------------------------- */
10
+
11
+ $settings_select.mtphr_dnt_affix({
12
+ offset: {
13
+ top: function () {
14
+ if( $(window).width() < 601 ) {
15
+ return (this.top = $settings_select.offset().top + 5)
16
+ } else {
17
+ return (this.top = $settings_select.offset().top - $admin_bar.height() + 5)
18
+ }
19
+ }
20
+ }
21
+ });
22
+
23
+
24
+ /* --------------------------------------------------------- */
25
+ /* !Main settings selects - 2.0.0 */
26
+ /* --------------------------------------------------------- */
27
+
28
+ $('.mtphr-dnt-metabox-group-toggle').click( function(e) {
29
+ e.preventDefault();
30
+
31
+ var value = $(this).attr('href');
32
+
33
+ $('.mtphr-dnt-metabox-group-toggle').removeClass('active');
34
+ $('.mtphr-dnt-metabox-group').removeClass('active');
35
+
36
+ $(this).addClass('active');
37
+ $(value).addClass('active');
38
+
39
+ // Set the input data
40
+ $('input[name="_mtphr_dnt_admin_tab"]').val( value );
41
+ });
42
+
43
+
44
+ /* --------------------------------------------------------- */
45
+ /* !Initiate the CodeMirror fields - 1.4.0 */
46
+ /* --------------------------------------------------------- */
47
+
48
+ $('.mtphr-dnt-codemirror-css').each( function(i) {
49
+
50
+ var $textarea = $(this).children('textarea');
51
+ var myCodeMirror = CodeMirror.fromTextArea($textarea[0], {
52
+ 'mode' : 'css',
53
+ 'lineNumbers' : true,
54
+ 'lineWrapping' : true,
55
+ 'viewportMargin' : Infinity
56
+ });
57
+ //myCodeMirror.setSize( false, false );
58
+ });
59
+
60
+ $('.mtphr-dnt-codemirror-js').each( function(i) {
61
+
62
+ var $textarea = $(this).children('textarea');
63
+ var myCodeMirror = CodeMirror.fromTextArea($textarea[0], {
64
+ 'mode' : 'htmlmixed',
65
+ 'lineNumbers' : true,
66
+ 'lineWrapping' : true
67
+ });
68
+ myCodeMirror.setSize( false, 140 );
69
+ });
70
+
71
+
72
+
73
+ /* --------------------------------------------------------- */
74
+ /* !Code select - 1.4.0 */
75
+ /* --------------------------------------------------------- */
76
+
77
+ $('.mtphr-dnt-code-select').click( function(e) {
78
+ e.preventDefault();
79
+
80
+ var $pre = $(this).siblings('pre');
81
+ var refNode = $pre[0];
82
+ if ( $.browser.msie ) {
83
+ var range = document.body.createTextRange();
84
+ range.moveToElementText( refNode );
85
+ range.select();
86
+ } else if ( $.browser.mozilla || $.browser.opera ) {
87
+ var selection = window.getSelection();
88
+ var range = document.createRange();
89
+ range.selectNodeContents( refNode );
90
+ selection.removeAllRanges();
91
+ selection.addRange( range );
92
+ } else if ( $.browser.safari || $.browser.chrome ) {
93
+ var selection = window.getSelection();
94
+ selection.setBaseAndExtent( refNode, 0, refNode, 1 );
95
+ }
96
+ });
97
+
98
+
99
+
100
+ /* --------------------------------------------------------- */
101
+ /* !Ensure javascript is working - 2.0.0 */
102
+ /* --------------------------------------------------------- */
103
+
104
+ if( $('input[name="_mtphr_dnt_admin_javascript"]').length ) {
105
+ $('input[name="_mtphr_dnt_admin_javascript"]').val('ok');
106
+ }
107
+
108
+
109
+
110
+ /* --------------------------------------------------------- */
111
+ /* !Metabox toggles - 2.0.0 */
112
+ /* --------------------------------------------------------- */
113
+
114
+ function mtphr_dnt_toggle_metaboxes( $button, kind ) {
115
+
116
+ // Set the metaboxes
117
+ $('#mtphr-dnt-'+kind+'-metaboxes > div').stop(true, true).hide();
118
+ var metaboxes = $button.attr('metabox').split(' ');
119
+ for( var i=0; i<metaboxes.length; i++ ) {
120
+ $('#'+metaboxes[i]).show();
121
+ }
122
+
123
+ // Set the button classes
124
+ $button.siblings('a').removeClass('button-primary');
125
+ $button.addClass('button-primary');
126
+
127
+ // Store the new value
128
+ $button.siblings('input').val($button.attr('href').substring(1));
129
+ }
130
+
131
+ if( $('.mtphr-dnt-type-toggle.button-primary').length ) {
132
+ mtphr_dnt_toggle_metaboxes( $('.mtphr-dnt-type-toggle.button-primary'), 'type' );
133
+ }
134
+
135
+ if( $('.mtphr-dnt-mode-toggle.button-primary').length ) {
136
+ mtphr_dnt_toggle_metaboxes( $('.mtphr-dnt-mode-toggle.button-primary'), 'mode' );
137
+ }
138
+
139
+ $('.mtphr-dnt-type-toggle').click( function(e) {
140
+
141
+ e.preventDefault();
142
+ if( !$(this).hasClass('button-primary') ) {
143
+ mtphr_dnt_toggle_metaboxes( $(this), 'type' );
144
+ }
145
+ });
146
+
147
+ $('.mtphr-dnt-mode-toggle').click( function(e) {
148
+
149
+ e.preventDefault();
150
+ if( !$(this).hasClass('button-primary') ) {
151
+ mtphr_dnt_toggle_metaboxes( $(this), 'mode' );
152
+ }
153
+ });
154
+
155
+
156
+
157
+ /* --------------------------------------------------------- */
158
+ /* !Sort list - 1.4.4 */
159
+ /* --------------------------------------------------------- */
160
+
161
+ if( $('.mtphr-dnt-sort').length > 0 ) {
162
+
163
+ $('.mtphr-dnt-sort').sortable( {
164
+ handle: '.mtphr-dnt-sort-heading',
165
+ items: '.mtphr-dnt-sort-item',
166
+ axis: 'y',
167
+ opacity: 0.7,
168
+ placeholder: {
169
+ element: function(currentItem) {
170
+ var height = $(currentItem).innerHeight();
171
+ return $('<div class="mtphr-dnt-sort-placeholder" style="height:'+height+'px;"></div>')[0];
172
+ },
173
+ update: function(container, p) {
174
+ return;
175
+ }
176
+ },
177
+ helper: function(e, tr) {
178
+ var $originals = tr.children();
179
+ var $helper = tr.clone();
180
+ $helper.children().each(function(index) {
181
+ $(this).width($originals.eq(index).width());
182
+ $(this).height($originals.eq(index).height());
183
+ });
184
+ return $helper;
185
+ }
186
+ });
187
+
188
+ $('.mtphr-dnt-sort-heading.optional').live( 'click', function(e) {
189
+ e.preventDefault();
190
+
191
+ var $container = $(this).parents('.mtphr-dnt-sort-item'),
192
+ $content = $(this).next('.mtphr-dnt-sort-item-fields'),
193
+ $input = $(this).children('input');
194
+
195
+ if( $container.hasClass('active') ) {
196
+ $container.removeClass('active');
197
+ $input.val('off');
198
+ if( $content.length ) {
199
+ $content.stop(true,true).slideUp( 1000, 'easeOutQuint' );
200
+ }
201
+ } else {
202
+ $container.addClass('active');
203
+ $input.val('on');
204
+ if( $content.length ) {
205
+ $content.stop(true,true).slideDown( 1000, 'easeOutQuint' );
206
+ }
207
+ }
208
+ });
209
+ }
210
+
211
+
212
+ /* --------------------------------------------------------- */
213
+ /* !List - 2.0.0 */
214
+ /* --------------------------------------------------------- */
215
+
216
+ $('.mtphr-dnt-list').mtphr_dnt_list();
217
+
218
+
219
+ /* --------------------------------------------------------- */
220
+ /* !Single image upload - 2.0.0 */
221
+ /* --------------------------------------------------------- */
222
+
223
+ // Delete an image
224
+ $('.mtphr-dnt-single-image').find('.mtphr-dnt-delete').live( 'click', function(e) {
225
+ e.preventDefault();
226
+
227
+ var $image = $(this).parent(),
228
+ $button = $image.siblings('.mtphr-dnt-single-image-upload'),
229
+ $input = $image.siblings('input');
230
+
231
+ $input.val('');
232
+ $image.remove();
233
+ $button.show();
234
+ });
235
+
236
+ // Add an image
237
+ $('.mtphr-dnt-single-image-upload').live( 'click', function(e) {
238
+ e.preventDefault();
239
+
240
+ // Save the container
241
+ var $button = $(this),
242
+ $container = $button.parent(),
243
+ $input = $container.children('input');
244
+
245
+ // Create a custom uploader
246
+ var uploader;
247
+ if( uploader ) {
248
+ uploader.open();
249
+ return;
250
+ }
251
+
252
+ // Set the uploader attributes
253
+ uploader = wp.media({
254
+ title: ditty_news_ticker_vars.img_title,
255
+ button: { text: ditty_news_ticker_vars.img_button, size: 'small' },
256
+ multiple: false,
257
+ library : {
258
+ type : 'image'
259
+ }
260
+ });
261
+
262
+ uploader.on( 'select', function() {
263
+
264
+ attachments = uploader.state().get('selection').toJSON();
265
+ if( attachments.length > 0 ) {
266
+
267
+ $input.val(attachments[0].id);
268
+
269
+ // Create the display
270
+ var data = {
271
+ action: 'mtphr_dnt_single_image_ajax',
272
+ attachment: attachments[0],
273
+ security: ditty_news_ticker_vars.security
274
+ };
275
+ jQuery.post( ajaxurl, data, function( response ) {
276
+ $button.hide();
277
+ $container.append( response );
278
+ });
279
+ }
280
+ });
281
+
282
+ //Open the uploader dialog
283
+ uploader.open();
284
+
285
+ return false;
286
+ });
287
+
288
+
289
+ /* --------------------------------------------------------- */
290
+ /* !Tool tips - 2.0.0 */
291
+ /* --------------------------------------------------------- */
292
+
293
+ var qtipConfig = {
294
+ content: {
295
+ attr: 'data-tooltip' // Tell qTip2 to look inside this attr for its content
296
+ },
297
+ style: 'qtip-light qtip-rounded qtip-shadow'
298
+ }
299
+ $('.mtphr-dnt-help[data-tooltip!=""]').qtip( qtipConfig );
300
+ $('.mtphr-dnt-help[data-tooltip!=""]').click( function(e) {
301
+ e.preventDefault();
302
+ });
303
+
304
+
305
+
306
+ /* --------------------------------------------------------- */
307
+ /* !Mixed tick list - 2.0.0 */
308
+ /* --------------------------------------------------------- */
309
+
310
+ function mtphr_dnt_mixed_ticks_all( $field ) {
311
+
312
+ var checked = $field.find('input').is(':checked');
313
+ if( checked ) {
314
+ $field.next().fadeOut();
315
+ } else {
316
+ $field.next().fadeIn();
317
+ }
318
+ }
319
+
320
+ $('.mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all').find('input').live( 'click', function(e) {
321
+ mtphr_dnt_mixed_ticks_all( $(this).parents('.mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all') );
322
+ });
323
+
324
+ $('.mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all').each( function(index) {
325
+ mtphr_dnt_mixed_ticks_all( $(this) );
326
+ });
327
+
328
+ });
329
+
330
+
331
+
332
+ /* --------------------------------------------------------- */
333
+ /* !List */
334
+ /* --------------------------------------------------------- */
335
+
336
+ ( function($) {
337
+
338
+ var methods = {
339
+
340
+ init : function( options ) {
341
+
342
+ return this.each( function(){
343
+
344
+ // Create default options
345
+ var settings = {
346
+ };
347
+
348
+ // Add any set options
349
+ if (options) {
350
+ $.extend(settings, options);
351
+ }
352
+
353
+ var $table = $(this);
354
+ var qtipConfig = {
355
+ content: {
356
+ attr: 'data-tooltip' // Tell qTip2 to look inside this attr for its content
357
+ },
358
+ style: 'qtip-light qtip-rounded qtip-shadow'
359
+ }
360
+
361
+ $table.sortable( {
362
+ handle: '.mtphr-dnt-list-heading',
363
+ items: '.mtphr-dnt-list-item',
364
+ axis: 'y',
365
+ opacity: 0.7,
366
+ placeholder: {
367
+ element: function(currentItem) {
368
+ var height = $(currentItem).innerHeight();
369
+ return $('<div class="mtphr-dnt-sort-placeholder" style="height:'+height+'px;"></div>')[0];
370
+ },
371
+ update: function(container, p) {
372
+ return;
373
+ }
374
+ },
375
+ helper: function(e, tr) {
376
+ var $originals = tr.children();
377
+ var $helper = tr.clone();
378
+ $helper.children().each(function(index) {
379
+ $(this).width($originals.eq(index).width());
380
+ $(this).height($originals.eq(index).height());
381
+ });
382
+ return $helper;
383
+ }
384
+ });
385
+
386
+ function mtphr_dnt_list_handle_toggle() {
387
+
388
+ if( $table.find('.mtphr-dnt-list-item').length > 1 ) {
389
+ $table.find('.mtphr-dnt-list-handle').show();
390
+ $table.find('.mtphr-dnt-list-delete').show();
391
+ } else {
392
+ $table.find('.mtphr-dnt-list-handle').hide();
393
+ $table.find('.mtphr-dnt-list-delete').hide();
394
+ }
395
+ }
396
+
397
+ function mtphr_dnt_list_set_order() {
398
+
399
+ $table.find('.mtphr-dnt-list-item').each( function(index) {
400
+ $(this).find('textarea, input, select').each( function() {
401
+
402
+ if( $(this).hasClass('wp-editor-area') ) {
403
+
404
+ var $parent = $(this).parents('.mtphr-dnt-field-type-wysiwyg'),
405
+ name = $parent.attr('data-name'),
406
+ key = $parent.attr('data-key');
407
+
408
+ } else {
409
+
410
+ var name = $(this).attr('data-name'),
411
+ key = $(this).attr('data-key');
412
+ }
413
+
414
+ if( name && key ) {
415
+ $(this).attr('name', name+'['+index+']['+key+']');
416
+ }
417
+ });
418
+ });
419
+
420
+ mtphr_dnt_list_handle_toggle();
421
+ }
422
+
423
+ function mtphr_dnt_list_add_item( $item, unique_class ) {
424
+
425
+ // Save the container
426
+ var $dup = $item.clone();
427
+
428
+ // Reset the duplicate
429
+ $dup.find('textarea, input, select').each( function() {
430
+ if( $(this).attr('type') == 'checkbox' || $(this).attr('type') == 'radio' ) {
431
+ $(this).removeAttr('checked');
432
+ } else {
433
+ $(this).val('');
434
+ }
435
+ });
436
+
437
+ // Setup new wysiwyg editors
438
+ $dup.find('textarea').each( function() {
439
+ if( $(this).hasClass('wp-editor-area') ) {
440
+
441
+ var $parent = $(this).parents('.mtphr-dnt-field-type-wysiwyg'),
442
+ name = $parent.attr('data-name');
443
+
444
+ $parent.children('.wp-core-ui').remove();
445
+
446
+ // Create the display
447
+ var data = {
448
+ action: 'mtphr_dnt_wysiwyg_ajax',
449
+ name: name,
450
+ security: ditty_news_ticker_vars.security
451
+ };
452
+ jQuery.post( ajaxurl, data, function( response ) {
453
+
454
+ var $editor = $(response),
455
+ id = $editor.find('textarea').attr('id');
456
+
457
+ $parent.append( response );
458
+
459
+ if( typeof(tinyMCE) == 'object' && typeof(tinyMCE.execCommand) == 'function' ) {
460
+ tinyMCE.execCommand("mceAddEditor", false, id);
461
+ }
462
+
463
+ // Set the order
464
+ mtphr_dnt_list_set_order();
465
+ });
466
+
467
+ }
468
+ });
469
+
470
+ // Add the duplicate
471
+ $dup.hide();
472
+ $item.after( $dup );
473
+ $dup.fadeIn().addClass(unique_class);
474
+
475
+ // Add qtip support
476
+ $dup.find('.mtphr-dnt-help[data-tooltip!=""]').qtip( qtipConfig );
477
+
478
+ // Set the order
479
+ mtphr_dnt_list_set_order();
480
+
481
+ // Trigger an added event
482
+ $table.trigger('mtphr_dnt_list_item_added', [$dup, unique_class]);
483
+ }
484
+
485
+ // Delete list item
486
+ $table.find('.mtphr-dnt-list-delete').live( 'click', function(e) {
487
+ e.preventDefault();
488
+
489
+ // Fade out the item
490
+ $(this).parents('.mtphr-dnt-list-item').fadeOut( function() {
491
+ $(this).remove();
492
+ mtphr_dnt_list_set_order();
493
+ });
494
+ });
495
+
496
+ // Add new row
497
+ $table.find('.mtphr-dnt-list-add').live( 'click', function(e) {
498
+ e.preventDefault();
499
+ mtphr_dnt_list_add_item( $(this).parents('.mtphr-dnt-list-item') );
500
+ });
501
+
502
+
503
+ $table.on('mtphr_dnt_list_add_item', function( e, item, unique_class ) {
504
+ mtphr_dnt_list_add_item( item, unique_class );
505
+ });
506
+
507
+ mtphr_dnt_list_set_order();
508
+
509
+ });
510
+ }
511
+ };
512
+
513
+ /**
514
+ * Setup the list
515
+ *
516
+ * @since 1.0.0
517
+ */
518
+ $.fn.mtphr_dnt_list = function( method ) {
519
+
520
+ if ( methods[method] ) {
521
+ return methods[method].apply( this, Array.prototype.slice.call(arguments, 1) );
522
+ } else if ( typeof method === 'object' || !method ) {
523
+ return methods.init.apply( this, arguments );
524
+ } else {
525
+ $.error( 'Method ' + method + ' does not exist in mtphr_dnt_list' );
526
+ }
527
+ };
528
+
529
+ })( jQuery );
assets/qtip/jquery.qtip.min.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ /* qTip2 v2.2.1 | Plugins: tips modal viewport svg imagemap ie6 | Styles: core basic css3 | qtip2.com | Licensed MIT | Sat Sep 06 2014 23:12:07 */
2
+
3
+ .qtip{position:absolute;left:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;direction:ltr;box-shadow:none;padding:0}.qtip-content{position:relative;padding:5px 9px;overflow:hidden;text-align:left;word-wrap:break-word}.qtip-titlebar{position:relative;padding:5px 35px 5px 10px;overflow:hidden;border-width:0 0 1px;font-weight:700}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;right:-9px;top:-9px;z-index:11;cursor:pointer;outline:0;border:1px solid transparent}.qtip-titlebar .qtip-close{right:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-icon .ui-icon,.qtip-titlebar .ui-icon{display:block;text-indent:-1000em;direction:ltr}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;line-height:14px;text-align:center;text-indent:0;font:400 bold 10px/13px Tahoma,sans-serif;color:inherit;background:-100em -100em no-repeat}.qtip-default{border:1px solid #F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}.qtip-red{background-color:#F78B83;border-color:#D95252;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}.qtip-red .qtip-icon,.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-bootstrap,.qtip-rounded,.qtip-tipsy{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-rounded .qtip-titlebar{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border:0 solid transparent;background:#4A4A4A;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,#000));background-image:-webkit-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,#000 100%)}.qtip-youtube .qtip-titlebar{background-color:transparent}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,left top,left bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #ddd;border:2px solid rgba(241,241,241,1);-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"}.qtip-jtools .qtip-content,.qtip-jtools .qtip-titlebar{background:0 0;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:4px 4px 5px rgba(0,0,0,.4);box-shadow:4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px #000}.qtip-tipsy .qtip-titlebar{padding:6px 35px 0 10px;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10px}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,left top,left bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{right:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:0 0}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:right;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,x:-o-prefocus{visibility:hidden}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml,.qtip .qtip-tip canvas{position:absolute;color:#123456;background:0 0;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;left:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed;left:0;top:0;width:100%;height:100%}#qtip-overlay.blurs{cursor:pointer}#qtip-overlay div{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;opacity:.7;filter:alpha(opacity=70);-ms-filter:"alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}
assets/qtip/jquery.qtip.min.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /* qTip2 v2.2.1 | Plugins: tips modal viewport svg imagemap ie6 | Styles: core basic css3 | qtip2.com | Licensed MIT | Sat Sep 06 2014 23:12:07 */
2
+
3
+ !function(a,b,c){!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):jQuery&&!jQuery.fn.qtip&&a(jQuery)}(function(d){"use strict";function e(a,b,c,e){this.id=c,this.target=a,this.tooltip=F,this.elements={target:a},this._id=S+"-"+c,this.timers={img:{}},this.options=b,this.plugins={},this.cache={event:{},target:d(),disabled:E,attr:e,onTooltip:E,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=E}function f(a){return a===F||"object"!==d.type(a)}function g(a){return!(d.isFunction(a)||a&&a.attr||a.length||"object"===d.type(a)&&(a.jquery||a.then))}function h(a){var b,c,e,h;return f(a)?E:(f(a.metadata)&&(a.metadata={type:a.metadata}),"content"in a&&(b=a.content,f(b)||b.jquery||b.done?b=a.content={text:c=g(b)?E:b}:c=b.text,"ajax"in b&&(e=b.ajax,h=e&&e.once!==E,delete b.ajax,b.text=function(a,b){var f=c||d(this).attr(b.options.content.attr)||"Loading...",g=d.ajax(d.extend({},e,{context:b})).then(e.success,F,e.error).then(function(a){return a&&h&&b.set("content.text",a),a},function(a,c,d){b.destroyed||0===a.status||b.set("content.text",c+": "+d)});return h?f:(b.set("content.text",f),g)}),"title"in b&&(d.isPlainObject(b.title)&&(b.button=b.title.button,b.title=b.title.text),g(b.title||E)&&(b.title=E))),"position"in a&&f(a.position)&&(a.position={my:a.position,at:a.position}),"show"in a&&f(a.show)&&(a.show=a.show.jquery?{target:a.show}:a.show===D?{ready:D}:{event:a.show}),"hide"in a&&f(a.hide)&&(a.hide=a.hide.jquery?{target:a.hide}:{event:a.hide}),"style"in a&&f(a.style)&&(a.style={classes:a.style}),d.each(R,function(){this.sanitize&&this.sanitize(a)}),a)}function i(a,b){for(var c,d=0,e=a,f=b.split(".");e=e[f[d++]];)d<f.length&&(c=e);return[c||a,f.pop()]}function j(a,b){var c,d,e;for(c in this.checks)for(d in this.checks[c])(e=new RegExp(d,"i").exec(a))&&(b.push(e),("builtin"===c||this.plugins[c])&&this.checks[c][d].apply(this.plugins[c]||this,b))}function k(a){return V.concat("").join(a?"-"+a+" ":" ")}function l(a,b){return b>0?setTimeout(d.proxy(a,this),b):void a.call(this)}function m(a){this.tooltip.hasClass(ab)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=l.call(this,function(){this.toggle(D,a)},this.options.show.delay))}function n(a){if(!this.tooltip.hasClass(ab)&&!this.destroyed){var b=d(a.relatedTarget),c=b.closest(W)[0]===this.tooltip[0],e=b[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==b[0]&&"mouse"===this.options.position.target&&c||this.options.hide.fixed&&/mouse(out|leave|move)/.test(a.type)&&(c||e))try{a.preventDefault(),a.stopImmediatePropagation()}catch(f){}else this.timers.hide=l.call(this,function(){this.toggle(E,a)},this.options.hide.delay,this)}}function o(a){!this.tooltip.hasClass(ab)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=l.call(this,function(){this.hide(a)},this.options.hide.inactive))}function p(a){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(a)}function q(a,c,e){d(b.body).delegate(a,(c.split?c:c.join("."+S+" "))+"."+S,function(){var a=y.api[d.attr(this,U)];a&&!a.disabled&&e.apply(a,arguments)})}function r(a,c,f){var g,i,j,k,l,m=d(b.body),n=a[0]===b?m:a,o=a.metadata?a.metadata(f.metadata):F,p="html5"===f.metadata.type&&o?o[f.metadata.name]:F,q=a.data(f.metadata.name||"qtipopts");try{q="string"==typeof q?d.parseJSON(q):q}catch(r){}if(k=d.extend(D,{},y.defaults,f,"object"==typeof q?h(q):F,h(p||o)),i=k.position,k.id=c,"boolean"==typeof k.content.text){if(j=a.attr(k.content.attr),k.content.attr===E||!j)return E;k.content.text=j}if(i.container.length||(i.container=m),i.target===E&&(i.target=n),k.show.target===E&&(k.show.target=n),k.show.solo===D&&(k.show.solo=i.container.closest("body")),k.hide.target===E&&(k.hide.target=n),k.position.viewport===D&&(k.position.viewport=i.container),i.container=i.container.eq(0),i.at=new A(i.at,D),i.my=new A(i.my),a.data(S))if(k.overwrite)a.qtip("destroy",!0);else if(k.overwrite===E)return E;return a.attr(T,c),k.suppress&&(l=a.attr("title"))&&a.removeAttr("title").attr(cb,l).attr("title",""),g=new e(a,k,c,!!j),a.data(S,g),g}function s(a){return a.charAt(0).toUpperCase()+a.slice(1)}function t(a,b){var d,e,f=b.charAt(0).toUpperCase()+b.slice(1),g=(b+" "+rb.join(f+" ")+f).split(" "),h=0;if(qb[b])return a.css(qb[b]);for(;d=g[h++];)if((e=a.css(d))!==c)return qb[b]=d,e}function u(a,b){return Math.ceil(parseFloat(t(a,b)))}function v(a,b){this._ns="tip",this.options=b,this.offset=b.offset,this.size=[b.width,b.height],this.init(this.qtip=a)}function w(a,b){this.options=b,this._ns="-modal",this.init(this.qtip=a)}function x(a){this._ns="ie6",this.init(this.qtip=a)}var y,z,A,B,C,D=!0,E=!1,F=null,G="x",H="y",I="width",J="height",K="top",L="left",M="bottom",N="right",O="center",P="flipinvert",Q="shift",R={},S="qtip",T="data-hasqtip",U="data-qtip-id",V=["ui-widget","ui-tooltip"],W="."+S,X="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Y=S+"-fixed",Z=S+"-default",$=S+"-focus",_=S+"-hover",ab=S+"-disabled",bb="_replacedByqTip",cb="oldtitle",db={ie:function(){for(var a=4,c=b.createElement("div");(c.innerHTML="<!--[if gt IE "+a+"]><i></i><![endif]-->")&&c.getElementsByTagName("i")[0];a+=1);return a>4?a:0/0}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||E};z=e.prototype,z._when=function(a){return d.when.apply(d,a)},z.render=function(a){if(this.rendered||this.destroyed)return this;var b,c=this,e=this.options,f=this.cache,g=this.elements,h=e.content.text,i=e.content.title,j=e.content.button,k=e.position,l=("."+this._id+" ",[]);return d.attr(this.target[0],"aria-describedby",this._id),f.posClass=this._createPosClass((this.position={my:k.my,at:k.at}).my),this.tooltip=g.tooltip=b=d("<div/>",{id:this._id,"class":[S,Z,e.style.classes,f.posClass].join(" "),width:e.style.width||"",height:e.style.height||"",tracking:"mouse"===k.target&&k.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":E,"aria-describedby":this._id+"-content","aria-hidden":D}).toggleClass(ab,this.disabled).attr(U,this.id).data(S,this).appendTo(k.container).append(g.content=d("<div />",{"class":S+"-content",id:this._id+"-content","aria-atomic":D})),this.rendered=-1,this.positioning=D,i&&(this._createTitle(),d.isFunction(i)||l.push(this._updateTitle(i,E))),j&&this._createButton(),d.isFunction(h)||l.push(this._updateContent(h,E)),this.rendered=D,this._setWidget(),d.each(R,function(a){var b;"render"===this.initialize&&(b=this(c))&&(c.plugins[a]=b)}),this._unassignEvents(),this._assignEvents(),this._when(l).then(function(){c._trigger("render"),c.positioning=E,c.hiddenDuringWait||!e.show.ready&&!a||c.toggle(D,f.event,E),c.hiddenDuringWait=E}),y.api[this.id]=this,this},z.destroy=function(a){function b(){if(!this.destroyed){this.destroyed=D;var a,b=this.target,c=b.attr(cb);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),d.each(this.plugins,function(){this.destroy&&this.destroy()});for(a in this.timers)clearTimeout(this.timers[a]);b.removeData(S).removeAttr(U).removeAttr(T).removeAttr("aria-describedby"),this.options.suppress&&c&&b.attr("title",c).removeAttr(cb),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=F,delete y.api[this.id]}}return this.destroyed?this.target:(a===D&&"hide"!==this.triggering||!this.rendered?b.call(this):(this.tooltip.one("tooltiphidden",d.proxy(b,this)),!this.triggering&&this.hide()),this.target)},B=z.checks={builtin:{"^id$":function(a,b,c,e){var f=c===D?y.nextid:c,g=S+"-"+f;f!==E&&f.length>0&&!d("#"+g).length?(this._id=g,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):a[b]=e},"^prerender":function(a,b,c){c&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(a,b,c){this._updateContent(c)},"^content.attr$":function(a,b,c,d){this.options.content.text===this.target.attr(d)&&this._updateContent(this.target.attr(c))},"^content.title$":function(a,b,c){return c?(c&&!this.elements.title&&this._createTitle(),void this._updateTitle(c)):this._removeTitle()},"^content.button$":function(a,b,c){this._updateButton(c)},"^content.title.(text|button)$":function(a,b,c){this.set("content."+b,c)},"^position.(my|at)$":function(a,b,c){"string"==typeof c&&(this.position[b]=a[b]=new A(c,"at"===b))},"^position.container$":function(a,b,c){this.rendered&&this.tooltip.appendTo(c)},"^show.ready$":function(a,b,c){c&&(!this.rendered&&this.render(D)||this.toggle(D))},"^style.classes$":function(a,b,c,d){this.rendered&&this.tooltip.removeClass(d).addClass(c)},"^style.(width|height)":function(a,b,c){this.rendered&&this.tooltip.css(b,c)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(a,b,c){this.rendered&&this.tooltip.toggleClass(Z,!!c)},"^events.(render|show|move|hide|focus|blur)$":function(a,b,c){this.rendered&&this.tooltip[(d.isFunction(c)?"":"un")+"bind"]("tooltip"+b,c)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var a=this.options.position;this.tooltip.attr("tracking","mouse"===a.target&&a.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},z.get=function(a){if(this.destroyed)return this;var b=i(this.options,a.toLowerCase()),c=b[0][b[1]];return c.precedance?c.string():c};var eb=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,fb=/^prerender|show\.ready/i;z.set=function(a,b){if(this.destroyed)return this;{var c,e=this.rendered,f=E,g=this.options;this.checks}return"string"==typeof a?(c=a,a={},a[c]=b):a=d.extend({},a),d.each(a,function(b,c){if(e&&fb.test(b))return void delete a[b];var h,j=i(g,b.toLowerCase());h=j[0][j[1]],j[0][j[1]]=c&&c.nodeType?d(c):c,f=eb.test(b)||f,a[b]=[j[0],j[1],c,h]}),h(g),this.positioning=D,d.each(a,d.proxy(j,this)),this.positioning=E,this.rendered&&this.tooltip[0].offsetWidth>0&&f&&this.reposition("mouse"===g.position.target?F:this.cache.event),this},z._update=function(a,b){var c=this,e=this.cache;return this.rendered&&a?(d.isFunction(a)&&(a=a.call(this.elements.target,e.event,this)||""),d.isFunction(a.then)?(e.waiting=D,a.then(function(a){return e.waiting=E,c._update(a,b)},F,function(a){return c._update(a,b)})):a===E||!a&&""!==a?E:(a.jquery&&a.length>0?b.empty().append(a.css({display:"block",visibility:"visible"})):b.html(a),this._waitForContent(b).then(function(a){c.rendered&&c.tooltip[0].offsetWidth>0&&c.reposition(e.event,!a.length)}))):E},z._waitForContent=function(a){var b=this.cache;return b.waiting=D,(d.fn.imagesLoaded?a.imagesLoaded():d.Deferred().resolve([])).done(function(){b.waiting=E}).promise()},z._updateContent=function(a,b){this._update(a,this.elements.content,b)},z._updateTitle=function(a,b){this._update(a,this.elements.title,b)===E&&this._removeTitle(E)},z._createTitle=function(){var a=this.elements,b=this._id+"-title";a.titlebar&&this._removeTitle(),a.titlebar=d("<div />",{"class":S+"-titlebar "+(this.options.style.widget?k("header"):"")}).append(a.title=d("<div />",{id:b,"class":S+"-title","aria-atomic":D})).insertBefore(a.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(a){d(this).toggleClass("ui-state-active ui-state-focus","down"===a.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(a){d(this).toggleClass("ui-state-hover","mouseover"===a.type)}),this.options.content.button&&this._createButton()},z._removeTitle=function(a){var b=this.elements;b.title&&(b.titlebar.remove(),b.titlebar=b.title=b.button=F,a!==E&&this.reposition())},z._createPosClass=function(a){return S+"-pos-"+(a||this.options.position.my).abbrev()},z.reposition=function(c,e){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=D;var f,g,h,i,j=this.cache,k=this.tooltip,l=this.options.position,m=l.target,n=l.my,o=l.at,p=l.viewport,q=l.container,r=l.adjust,s=r.method.split(" "),t=k.outerWidth(E),u=k.outerHeight(E),v=0,w=0,x=k.css("position"),y={left:0,top:0},z=k[0].offsetWidth>0,A=c&&"scroll"===c.type,B=d(a),C=q[0].ownerDocument,F=this.mouse;if(d.isArray(m)&&2===m.length)o={x:L,y:K},y={left:m[0],top:m[1]};else if("mouse"===m)o={x:L,y:K},(!r.mouse||this.options.hide.distance)&&j.origin&&j.origin.pageX?c=j.origin:!c||c&&("resize"===c.type||"scroll"===c.type)?c=j.event:F&&F.pageX&&(c=F),"static"!==x&&(y=q.offset()),C.body.offsetWidth!==(a.innerWidth||C.documentElement.clientWidth)&&(g=d(b.body).offset()),y={left:c.pageX-y.left+(g&&g.left||0),top:c.pageY-y.top+(g&&g.top||0)},r.mouse&&A&&F&&(y.left-=(F.scrollX||0)-B.scrollLeft(),y.top-=(F.scrollY||0)-B.scrollTop());else{if("event"===m?c&&c.target&&"scroll"!==c.type&&"resize"!==c.type?j.target=d(c.target):c.target||(j.target=this.elements.target):"event"!==m&&(j.target=d(m.jquery?m:this.elements.target)),m=j.target,m=d(m).eq(0),0===m.length)return this;m[0]===b||m[0]===a?(v=db.iOS?a.innerWidth:m.width(),w=db.iOS?a.innerHeight:m.height(),m[0]===a&&(y={top:(p||m).scrollTop(),left:(p||m).scrollLeft()})):R.imagemap&&m.is("area")?f=R.imagemap(this,m,o,R.viewport?s:E):R.svg&&m&&m[0].ownerSVGElement?f=R.svg(this,m,o,R.viewport?s:E):(v=m.outerWidth(E),w=m.outerHeight(E),y=m.offset()),f&&(v=f.width,w=f.height,g=f.offset,y=f.position),y=this.reposition.offset(m,y,q),(db.iOS>3.1&&db.iOS<4.1||db.iOS>=4.3&&db.iOS<4.33||!db.iOS&&"fixed"===x)&&(y.left-=B.scrollLeft(),y.top-=B.scrollTop()),(!f||f&&f.adjustable!==E)&&(y.left+=o.x===N?v:o.x===O?v/2:0,y.top+=o.y===M?w:o.y===O?w/2:0)}return y.left+=r.x+(n.x===N?-t:n.x===O?-t/2:0),y.top+=r.y+(n.y===M?-u:n.y===O?-u/2:0),R.viewport?(h=y.adjusted=R.viewport(this,y,l,v,w,t,u),g&&h.left&&(y.left+=g.left),g&&h.top&&(y.top+=g.top),h.my&&(this.position.my=h.my)):y.adjusted={left:0,top:0},j.posClass!==(i=this._createPosClass(this.position.my))&&k.removeClass(j.posClass).addClass(j.posClass=i),this._trigger("move",[y,p.elem||p],c)?(delete y.adjusted,e===E||!z||isNaN(y.left)||isNaN(y.top)||"mouse"===m||!d.isFunction(l.effect)?k.css(y):d.isFunction(l.effect)&&(l.effect.call(k,this,d.extend({},y)),k.queue(function(a){d(this).css({opacity:"",height:""}),db.ie&&this.style.removeAttribute("filter"),a()})),this.positioning=E,this):this},z.reposition.offset=function(a,c,e){function f(a,b){c.left+=b*a.scrollLeft(),c.top+=b*a.scrollTop()}if(!e[0])return c;var g,h,i,j,k=d(a[0].ownerDocument),l=!!db.ie&&"CSS1Compat"!==b.compatMode,m=e[0];do"static"!==(h=d.css(m,"position"))&&("fixed"===h?(i=m.getBoundingClientRect(),f(k,-1)):(i=d(m).position(),i.left+=parseFloat(d.css(m,"borderLeftWidth"))||0,i.top+=parseFloat(d.css(m,"borderTopWidth"))||0),c.left-=i.left+(parseFloat(d.css(m,"marginLeft"))||0),c.top-=i.top+(parseFloat(d.css(m,"marginTop"))||0),g||"hidden"===(j=d.css(m,"overflow"))||"visible"===j||(g=d(m)));while(m=m.offsetParent);return g&&(g[0]!==k[0]||l)&&f(g,1),c};var gb=(A=z.reposition.Corner=function(a,b){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,O).toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!b;var c=a.charAt(0);this.precedance="t"===c||"b"===c?H:G}).prototype;gb.invert=function(a,b){this[a]=this[a]===L?N:this[a]===N?L:b||this[a]},gb.string=function(a){var b=this.x,c=this.y,d=b!==c?"center"===b||"center"!==c&&(this.precedance===H||this.forceY)?[c,b]:[b,c]:[b];return a!==!1?d.join(" "):d},gb.abbrev=function(){var a=this.string(!1);return a[0].charAt(0)+(a[1]&&a[1].charAt(0)||"")},gb.clone=function(){return new A(this.string(),this.forceY)},z.toggle=function(a,c){var e=this.cache,f=this.options,g=this.tooltip;if(c){if(/over|enter/.test(c.type)&&e.event&&/out|leave/.test(e.event.type)&&f.show.target.add(c.target).length===f.show.target.length&&g.has(c.relatedTarget).length)return this;e.event=d.event.fix(c)}if(this.waiting&&!a&&(this.hiddenDuringWait=D),!this.rendered)return a?this.render(1):this;if(this.destroyed||this.disabled)return this;var h,i,j,k=a?"show":"hide",l=this.options[k],m=(this.options[a?"hide":"show"],this.options.position),n=this.options.content,o=this.tooltip.css("width"),p=this.tooltip.is(":visible"),q=a||1===l.target.length,r=!c||l.target.length<2||e.target[0]===c.target;return(typeof a).search("boolean|number")&&(a=!p),h=!g.is(":animated")&&p===a&&r,i=h?F:!!this._trigger(k,[90]),this.destroyed?this:(i!==E&&a&&this.focus(c),!i||h?this:(d.attr(g[0],"aria-hidden",!a),a?(this.mouse&&(e.origin=d.event.fix(this.mouse)),d.isFunction(n.text)&&this._updateContent(n.text,E),d.isFunction(n.title)&&this._updateTitle(n.title,E),!C&&"mouse"===m.target&&m.adjust.mouse&&(d(b).bind("mousemove."+S,this._storeMouse),C=D),o||g.css("width",g.outerWidth(E)),this.reposition(c,arguments[2]),o||g.css("width",""),l.solo&&("string"==typeof l.solo?d(l.solo):d(W,l.solo)).not(g).not(l.target).qtip("hide",d.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete e.origin,C&&!d(W+'[tracking="true"]:visible',l.solo).not(g).length&&(d(b).unbind("mousemove."+S),C=E),this.blur(c)),j=d.proxy(function(){a?(db.ie&&g[0].style.removeAttribute("filter"),g.css("overflow",""),"string"==typeof l.autofocus&&d(this.options.show.autofocus,g).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):g.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(a?"visible":"hidden")},this),l.effect===E||q===E?(g[k](),j()):d.isFunction(l.effect)?(g.stop(1,1),l.effect.call(g,this),g.queue("fx",function(a){j(),a()})):g.fadeTo(90,a?1:0,j),a&&l.target.trigger("qtip-"+this.id+"-inactive"),this))},z.show=function(a){return this.toggle(D,a)},z.hide=function(a){return this.toggle(E,a)},z.focus=function(a){if(!this.rendered||this.destroyed)return this;var b=d(W),c=this.tooltip,e=parseInt(c[0].style.zIndex,10),f=y.zindex+b.length;return c.hasClass($)||this._trigger("focus",[f],a)&&(e!==f&&(b.each(function(){this.style.zIndex>e&&(this.style.zIndex=this.style.zIndex-1)}),b.filter("."+$).qtip("blur",a)),c.addClass($)[0].style.zIndex=f),this},z.blur=function(a){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass($),this._trigger("blur",[this.tooltip.css("zIndex")],a),this)},z.disable=function(a){return this.destroyed?this:("toggle"===a?a=!(this.rendered?this.tooltip.hasClass(ab):this.disabled):"boolean"!=typeof a&&(a=D),this.rendered&&this.tooltip.toggleClass(ab,a).attr("aria-disabled",a),this.disabled=!!a,this)},z.enable=function(){return this.disable(E)},z._createButton=function(){var a=this,b=this.elements,c=b.tooltip,e=this.options.content.button,f="string"==typeof e,g=f?e:"Close tooltip";b.button&&b.button.remove(),b.button=e.jquery?e:d("<a />",{"class":"qtip-close "+(this.options.style.widget?"":S+"-icon"),title:g,"aria-label":g}).prepend(d("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),b.button.appendTo(b.titlebar||c).attr("role","button").click(function(b){return c.hasClass(ab)||a.hide(b),E})},z._updateButton=function(a){if(!this.rendered)return E;var b=this.elements.button;a?this._createButton():b.remove()},z._setWidget=function(){var a=this.options.style.widget,b=this.elements,c=b.tooltip,d=c.hasClass(ab);c.removeClass(ab),ab=a?"ui-state-disabled":"qtip-disabled",c.toggleClass(ab,d),c.toggleClass("ui-helper-reset "+k(),a).toggleClass(Z,this.options.style.def&&!a),b.content&&b.content.toggleClass(k("content"),a),b.titlebar&&b.titlebar.toggleClass(k("header"),a),b.button&&b.button.toggleClass(S+"-icon",!a)},z._storeMouse=function(a){return(this.mouse=d.event.fix(a)).type="mousemove",this},z._bind=function(a,b,c,e,f){if(a&&c&&b.length){var g="."+this._id+(e?"-"+e:"");return d(a).bind((b.split?b:b.join(g+" "))+g,d.proxy(c,f||this)),this}},z._unbind=function(a,b){return a&&d(a).unbind("."+this._id+(b?"-"+b:"")),this},z._trigger=function(a,b,c){var e=d.Event("tooltip"+a);return e.originalEvent=c&&d.extend({},c)||this.cache.event||F,this.triggering=a,this.tooltip.trigger(e,[this].concat(b||[])),this.triggering=E,!e.isDefaultPrevented()},z._bindEvents=function(a,b,c,e,f,g){var h=c.filter(e).add(e.filter(c)),i=[];h.length&&(d.each(b,function(b,c){var e=d.inArray(c,a);e>-1&&i.push(a.splice(e,1)[0])}),i.length&&(this._bind(h,i,function(a){var b=this.rendered?this.tooltip[0].offsetWidth>0:!1;(b?g:f).call(this,a)}),c=c.not(h),e=e.not(h))),this._bind(c,a,f),this._bind(e,b,g)},z._assignInitialEvents=function(a){function b(a){return this.disabled||this.destroyed?E:(this.cache.event=a&&d.event.fix(a),this.cache.target=a&&d(a.target),clearTimeout(this.timers.show),void(this.timers.show=l.call(this,function(){this.render("object"==typeof a||c.show.ready)},c.prerender?0:c.show.delay)))}var c=this.options,e=c.show.target,f=c.hide.target,g=c.show.event?d.trim(""+c.show.event).split(" "):[],h=c.hide.event?d.trim(""+c.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(c.show.event)&&!/mouse(out|leave)/i.test(c.hide.event)&&h.push("mouseleave"),this._bind(e,"mousemove",function(a){this._storeMouse(a),this.cache.onTarget=D}),this._bindEvents(g,h,e,f,b,function(){return this.timers?void clearTimeout(this.timers.show):E}),(c.show.ready||c.prerender)&&b.call(this,a)},z._assignEvents=function(){var c=this,e=this.options,f=e.position,g=this.tooltip,h=e.show.target,i=e.hide.target,j=f.container,k=f.viewport,l=d(b),q=(d(b.body),d(a)),r=e.show.event?d.trim(""+e.show.event).split(" "):[],s=e.hide.event?d.trim(""+e.hide.event).split(" "):[];d.each(e.events,function(a,b){c._bind(g,"toggle"===a?["tooltipshow","tooltiphide"]:["tooltip"+a],b,null,g)}),/mouse(out|leave)/i.test(e.hide.event)&&"window"===e.hide.leave&&this._bind(l,["mouseout","blur"],function(a){/select|option/.test(a.target.nodeName)||a.relatedTarget||this.hide(a)}),e.hide.fixed?i=i.add(g.addClass(Y)):/mouse(over|enter)/i.test(e.show.event)&&this._bind(i,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+e.hide.event).indexOf("unfocus")>-1&&this._bind(j.closest("html"),["mousedown","touchstart"],function(a){var b=d(a.target),c=this.rendered&&!this.tooltip.hasClass(ab)&&this.tooltip[0].offsetWidth>0,e=b.parents(W).filter(this.tooltip[0]).length>0;b[0]===this.target[0]||b[0]===this.tooltip[0]||e||this.target.has(b[0]).length||!c||this.hide(a)}),"number"==typeof e.hide.inactive&&(this._bind(h,"qtip-"+this.id+"-inactive",o,"inactive"),this._bind(i.add(g),y.inactiveEvents,o)),this._bindEvents(r,s,h,i,m,n),this._bind(h.add(g),"mousemove",function(a){if("number"==typeof e.hide.distance){var b=this.cache.origin||{},c=this.options.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&this.hide(a)}this._storeMouse(a)}),"mouse"===f.target&&f.adjust.mouse&&(e.hide.event&&this._bind(h,["mouseenter","mouseleave"],function(a){return this.cache?void(this.cache.onTarget="mouseenter"===a.type):E}),this._bind(l,"mousemove",function(a){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(ab)&&this.tooltip[0].offsetWidth>0&&this.reposition(a)})),(f.adjust.resize||k.length)&&this._bind(d.event.special.resize?k:q,"resize",p),f.adjust.scroll&&this._bind(q.add(f.container),"scroll",p)},z._unassignEvents=function(){var c=this.options,e=c.show.target,f=c.hide.target,g=d.grep([this.elements.target[0],this.rendered&&this.tooltip[0],c.position.container[0],c.position.viewport[0],c.position.container.closest("html")[0],a,b],function(a){return"object"==typeof a});e&&e.toArray&&(g=g.concat(e.toArray())),f&&f.toArray&&(g=g.concat(f.toArray())),this._unbind(g)._unbind(g,"destroy")._unbind(g,"inactive")},d(function(){q(W,["mouseenter","mouseleave"],function(a){var b="mouseenter"===a.type,c=d(a.currentTarget),e=d(a.relatedTarget||a.target),f=this.options;b?(this.focus(a),c.hasClass(Y)&&!c.hasClass(ab)&&clearTimeout(this.timers.hide)):"mouse"===f.position.target&&f.position.adjust.mouse&&f.hide.event&&f.show.target&&!e.closest(f.show.target[0]).length&&this.hide(a),c.toggleClass(_,b)}),q("["+U+"]",X,o)}),y=d.fn.qtip=function(a,b,e){var f=(""+a).toLowerCase(),g=F,i=d.makeArray(arguments).slice(1),j=i[i.length-1],k=this[0]?d.data(this[0],S):F;return!arguments.length&&k||"api"===f?k:"string"==typeof a?(this.each(function(){var a=d.data(this,S);if(!a)return D;if(j&&j.timeStamp&&(a.cache.event=j),!b||"option"!==f&&"options"!==f)a[f]&&a[f].apply(a,i);else{if(e===c&&!d.isPlainObject(b))return g=a.get(b),E;a.set(b,e)}}),g!==F?g:this):"object"!=typeof a&&arguments.length?void 0:(k=h(d.extend(D,{},a)),this.each(function(a){var b,c;return c=d.isArray(k.id)?k.id[a]:k.id,c=!c||c===E||c.length<1||y.api[c]?y.nextid++:c,b=r(d(this),c,k),b===E?D:(y.api[c]=b,d.each(R,function(){"initialize"===this.initialize&&this(b)}),void b._assignInitialEvents(j))}))},d.qtip=e,y.api={},d.each({attr:function(a,b){if(this.length){var c=this[0],e="title",f=d.data(c,"qtip");if(a===e&&f&&"object"==typeof f&&f.options.suppress)return arguments.length<2?d.attr(c,cb):(f&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",b),this.attr(cb,b))}return d.fn["attr"+bb].apply(this,arguments)},clone:function(a){var b=(d([]),d.fn["clone"+bb].apply(this,arguments));return a||b.filter("["+cb+"]").attr("title",function(){return d.attr(this,cb)}).removeAttr(cb),b}},function(a,b){if(!b||d.fn[a+bb])return D;var c=d.fn[a+bb]=d.fn[a];d.fn[a]=function(){return b.apply(this,arguments)||c.apply(this,arguments)}}),d.ui||(d["cleanData"+bb]=d.cleanData,d.cleanData=function(a){for(var b,c=0;(b=d(a[c])).length;c++)if(b.attr(T))try{b.triggerHandler("removeqtip")}catch(e){}d["cleanData"+bb].apply(this,arguments)}),y.version="2.2.1",y.nextid=0,y.inactiveEvents=X,y.zindex=15e3,y.defaults={prerender:E,id:E,overwrite:D,suppress:D,content:{text:D,attr:"title",title:E,button:E},position:{my:"top left",at:"bottom right",target:E,container:E,viewport:E,adjust:{x:0,y:0,mouse:D,scroll:D,resize:D,method:"flipinvert flipinvert"},effect:function(a,b){d(this).animate(b,{duration:200,queue:E})}},show:{target:E,event:"mouseenter",effect:D,delay:90,solo:E,ready:E,autofocus:E},hide:{target:E,event:"mouseleave",effect:D,delay:0,fixed:E,inactive:E,leave:"window",distance:E},style:{classes:"",widget:E,width:E,height:E,def:D},events:{render:F,move:F,show:F,hide:F,toggle:F,visible:F,hidden:F,focus:F,blur:F}};var hb,ib="margin",jb="border",kb="color",lb="background-color",mb="transparent",nb=" !important",ob=!!b.createElement("canvas").getContext,pb=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,qb={},rb=["Webkit","O","Moz","ms"];if(ob)var sb=a.devicePixelRatio||1,tb=function(){var a=b.createElement("canvas").getContext("2d");return a.backingStorePixelRatio||a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||1}(),ub=sb/tb;else var vb=function(a,b,c){return"<qtipvml:"+a+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(b||"")+' style="behavior: url(#default#VML); '+(c||"")+'" />'};d.extend(v.prototype,{init:function(a){var b,c;c=this.element=a.elements.tip=d("<div />",{"class":S+"-tip"}).prependTo(a.tooltip),ob?(b=d("<canvas />").appendTo(this.element)[0].getContext("2d"),b.lineJoin="miter",b.miterLimit=1e5,b.save()):(b=vb("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(b+b),a._bind(d("*",c).add(c),["click","mousedown"],function(a){a.stopPropagation()},this._ns)),a._bind(a.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(a){var b=this.qtip.elements.titlebar;return b&&(a.y===K||a.y===O&&this.element.position().top+this.size[1]/2+this.options.offset<b.outerHeight(D))},_parseCorner:function(a){var b=this.qtip.options.position.my;return a===E||b===E?a=E:a===D?a=new A(b.string()):a.string||(a=new A(a),a.fixed=D),a},_parseWidth:function(a,b,c){var d=this.qtip.elements,e=jb+s(b)+"Width";return(c?u(c,e):u(d.content,e)||u(this._useTitle(a)&&d.titlebar||d.content,e)||u(d.tooltip,e))||0},_parseRadius:function(a){var b=this.qtip.elements,c=jb+s(a.y)+s(a.x)+"Radius";return db.ie<9?0:u(this._useTitle(a)&&b.titlebar||b.content,c)||u(b.tooltip,c)||0},_invalidColour:function(a,b,c){var d=a.css(b);return!d||c&&d===a.css(c)||pb.test(d)?E:d},_parseColours:function(a){var b=this.qtip.elements,c=this.element.css("cssText",""),e=jb+s(a[a.precedance])+s(kb),f=this._useTitle(a)&&b.titlebar||b.content,g=this._invalidColour,h=[];return h[0]=g(c,lb)||g(f,lb)||g(b.content,lb)||g(b.tooltip,lb)||c.css(lb),h[1]=g(c,e,kb)||g(f,e,kb)||g(b.content,e,kb)||g(b.tooltip,e,kb)||b.tooltip.css(e),d("*",c).add(c).css("cssText",lb+":"+mb+nb+";"+jb+":0"+nb+";"),h},_calculateSize:function(a){var b,c,d,e=a.precedance===H,f=this.options.width,g=this.options.height,h="c"===a.abbrev(),i=(e?f:g)*(h?.5:1),j=Math.pow,k=Math.round,l=Math.sqrt(j(i,2)+j(g,2)),m=[this.border/i*l,this.border/g*l];return m[2]=Math.sqrt(j(m[0],2)-j(this.border,2)),m[3]=Math.sqrt(j(m[1],2)-j(this.border,2)),b=l+m[2]+m[3]+(h?0:m[0]),c=b/l,d=[k(c*f),k(c*g)],e?d:d.reverse()},_calculateTip:function(a,b,c){c=c||1,b=b||this.size;var d=b[0]*c,e=b[1]*c,f=Math.ceil(d/2),g=Math.ceil(e/2),h={br:[0,0,d,e,d,0],bl:[0,0,d,0,0,e],tr:[0,e,d,0,d,e],tl:[0,0,0,e,d,e],tc:[0,e,f,0,d,e],bc:[0,0,d,0,f,e],rc:[0,0,d,g,0,e],lc:[d,0,d,e,0,g]};return h.lt=h.br,h.rt=h.bl,h.lb=h.tr,h.rb=h.tl,h[a.abbrev()]},_drawCoords:function(a,b){a.beginPath(),a.moveTo(b[0],b[1]),a.lineTo(b[2],b[3]),a.lineTo(b[4],b[5]),a.closePath()},create:function(){var a=this.corner=(ob||db.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=a.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(b,c){if(!this.enabled)return this;var e,f,g,h,i,j,k,l,m=this.qtip.elements,n=this.element,o=n.children(),p=this.options,q=this.size,r=p.mimic,s=Math.round;b||(b=this.qtip.cache.corner||this.corner),r===E?r=b:(r=new A(r),r.precedance=b.precedance,"inherit"===r.x?r.x=b.x:"inherit"===r.y?r.y=b.y:r.x===r.y&&(r[b.precedance]=b[b.precedance])),f=r.precedance,b.precedance===G?this._swapDimensions():this._resetDimensions(),e=this.color=this._parseColours(b),e[1]!==mb?(l=this.border=this._parseWidth(b,b[b.precedance]),p.border&&1>l&&!pb.test(e[1])&&(e[0]=e[1]),this.border=l=p.border!==D?p.border:l):this.border=l=0,k=this.size=this._calculateSize(b),n.css({width:k[0],height:k[1],lineHeight:k[1]+"px"}),j=b.precedance===H?[s(r.x===L?l:r.x===N?k[0]-q[0]-l:(k[0]-q[0])/2),s(r.y===K?k[1]-q[1]:0)]:[s(r.x===L?k[0]-q[0]:0),s(r.y===K?l:r.y===M?k[1]-q[1]-l:(k[1]-q[1])/2)],ob?(g=o[0].getContext("2d"),g.restore(),g.save(),g.clearRect(0,0,6e3,6e3),h=this._calculateTip(r,q,ub),i=this._calculateTip(r,this.size,ub),o.attr(I,k[0]*ub).attr(J,k[1]*ub),o.css(I,k[0]).css(J,k[1]),this._drawCoords(g,i),g.fillStyle=e[1],g.fill(),g.translate(j[0]*ub,j[1]*ub),this._drawCoords(g,h),g.fillStyle=e[0],g.fill()):(h=this._calculateTip(r),h="m"+h[0]+","+h[1]+" l"+h[2]+","+h[3]+" "+h[4]+","+h[5]+" xe",j[2]=l&&/^(r|b)/i.test(b.string())?8===db.ie?2:1:0,o.css({coordsize:k[0]+l+" "+(k[1]+l),antialias:""+(r.string().indexOf(O)>-1),left:j[0]-j[2]*Number(f===G),top:j[1]-j[2]*Number(f===H),width:k[0]+l,height:k[1]+l}).each(function(a){var b=d(this);b[b.prop?"prop":"attr"]({coordsize:k[0]+l+" "+(k[1]+l),path:h,fillcolor:e[0],filled:!!a,stroked:!a}).toggle(!(!l&&!a)),!a&&b.html(vb("stroke",'weight="'+2*l+'px" color="'+e[1]+'" miterlimit="1000" joinstyle="miter"'))})),a.opera&&setTimeout(function(){m.tip.css({display:"inline-block",visibility:"visible"})},1),c!==E&&this.calculate(b,k)},calculate:function(a,b){if(!this.enabled)return E;var c,e,f=this,g=this.qtip.elements,h=this.element,i=this.options.offset,j=(g.tooltip.hasClass("ui-widget"),{});return a=a||this.corner,c=a.precedance,b=b||this._calculateSize(a),e=[a.x,a.y],c===G&&e.reverse(),d.each(e,function(d,e){var h,k,l;
4
+ e===O?(h=c===H?L:K,j[h]="50%",j[ib+"-"+h]=-Math.round(b[c===H?0:1]/2)+i):(h=f._parseWidth(a,e,g.tooltip),k=f._parseWidth(a,e,g.content),l=f._parseRadius(a),j[e]=Math.max(-f.border,d?k:i+(l>h?l:-h)))}),j[a[c]]-=b[c===G?0:1],h.css({margin:"",top:"",bottom:"",left:"",right:""}).css(j),j},reposition:function(a,b,d){function e(a,b,c,d,e){a===Q&&j.precedance===b&&k[d]&&j[c]!==O?j.precedance=j.precedance===G?H:G:a!==Q&&k[d]&&(j[b]=j[b]===O?k[d]>0?d:e:j[b]===d?e:d)}function f(a,b,e){j[a]===O?p[ib+"-"+b]=o[a]=g[ib+"-"+b]-k[b]:(h=g[e]!==c?[k[b],-g[b]]:[-k[b],g[b]],(o[a]=Math.max(h[0],h[1]))>h[0]&&(d[b]-=k[b],o[b]=E),p[g[e]!==c?e:b]=o[a])}if(this.enabled){var g,h,i=b.cache,j=this.corner.clone(),k=d.adjusted,l=b.options.position.adjust.method.split(" "),m=l[0],n=l[1]||l[0],o={left:E,top:E,x:0,y:0},p={};this.corner.fixed!==D&&(e(m,G,H,L,N),e(n,H,G,K,M),(j.string()!==i.corner.string()||i.cornerTop!==k.top||i.cornerLeft!==k.left)&&this.update(j,E)),g=this.calculate(j),g.right!==c&&(g.left=-g.right),g.bottom!==c&&(g.top=-g.bottom),g.user=this.offset,(o.left=m===Q&&!!k.left)&&f(G,L,N),(o.top=n===Q&&!!k.top)&&f(H,K,M),this.element.css(p).toggle(!(o.x&&o.y||j.x===O&&o.y||j.y===O&&o.x)),d.left-=g.left.charAt?g.user:m!==Q||o.top||!o.left&&!o.top?g.left+this.border:0,d.top-=g.top.charAt?g.user:n!==Q||o.left||!o.left&&!o.top?g.top+this.border:0,i.cornerLeft=k.left,i.cornerTop=k.top,i.corner=j.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),hb=R.tip=function(a){return new v(a,a.options.style.tip)},hb.initialize="render",hb.sanitize=function(a){if(a.style&&"tip"in a.style){var b=a.style.tip;"object"!=typeof b&&(b=a.style.tip={corner:b}),/string|boolean/i.test(typeof b.corner)||(b.corner=D)}},B.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(a){this.size=[a.width,a.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},d.extend(D,y.defaults,{style:{tip:{corner:D,mimic:E,width:6,height:6,border:D,offset:0}}});var wb,xb,yb="qtip-modal",zb="."+yb;xb=function(){function a(a){if(d.expr[":"].focusable)return d.expr[":"].focusable;var b,c,e,f=!isNaN(d.attr(a,"tabindex")),g=a.nodeName&&a.nodeName.toLowerCase();return"area"===g?(b=a.parentNode,c=b.name,a.href&&c&&"map"===b.nodeName.toLowerCase()?(e=d("img[usemap=#"+c+"]")[0],!!e&&e.is(":visible")):!1):/input|select|textarea|button|object/.test(g)?!a.disabled:"a"===g?a.href||f:f}function c(a){k.length<1&&a.length?a.not("body").blur():k.first().focus()}function e(a){if(i.is(":visible")){var b,e=d(a.target),h=f.tooltip,j=e.closest(W);b=j.length<1?E:parseInt(j[0].style.zIndex,10)>parseInt(h[0].style.zIndex,10),b||e.closest(W)[0]===h[0]||c(e),g=a.target===k[k.length-1]}}var f,g,h,i,j=this,k={};d.extend(j,{init:function(){return i=j.elem=d("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return E}}).hide(),d(b.body).bind("focusin"+zb,e),d(b).bind("keydown"+zb,function(a){f&&f.options.show.modal.escape&&27===a.keyCode&&f.hide(a)}),i.bind("click"+zb,function(a){f&&f.options.show.modal.blur&&f.hide(a)}),j},update:function(b){f=b,k=b.options.show.modal.stealfocus!==E?b.tooltip.find("*").filter(function(){return a(this)}):[]},toggle:function(a,e,g){var k=(d(b.body),a.tooltip),l=a.options.show.modal,m=l.effect,n=e?"show":"hide",o=i.is(":visible"),p=d(zb).filter(":visible:not(:animated)").not(k);return j.update(a),e&&l.stealfocus!==E&&c(d(":focus")),i.toggleClass("blurs",l.blur),e&&i.appendTo(b.body),i.is(":animated")&&o===e&&h!==E||!e&&p.length?j:(i.stop(D,E),d.isFunction(m)?m.call(i,e):m===E?i[n]():i.fadeTo(parseInt(g,10)||90,e?1:0,function(){e||i.hide()}),e||i.queue(function(a){i.css({left:"",top:""}),d(zb).length||i.detach(),a()}),h=e,f.destroyed&&(f=F),j)}}),j.init()},xb=new xb,d.extend(w.prototype,{init:function(a){var b=a.tooltip;return this.options.on?(a.elements.overlay=xb.elem,b.addClass(yb).css("z-index",y.modal_zindex+d(zb).length),a._bind(b,["tooltipshow","tooltiphide"],function(a,c,e){var f=a.originalEvent;if(a.target===b[0])if(f&&"tooltiphide"===a.type&&/mouse(leave|enter)/.test(f.type)&&d(f.relatedTarget).closest(xb.elem[0]).length)try{a.preventDefault()}catch(g){}else(!f||f&&"tooltipsolo"!==f.type)&&this.toggle(a,"tooltipshow"===a.type,e)},this._ns,this),a._bind(b,"tooltipfocus",function(a,c){if(!a.isDefaultPrevented()&&a.target===b[0]){var e=d(zb),f=y.modal_zindex+e.length,g=parseInt(b[0].style.zIndex,10);xb.elem[0].style.zIndex=f-1,e.each(function(){this.style.zIndex>g&&(this.style.zIndex-=1)}),e.filter("."+$).qtip("blur",a.originalEvent),b.addClass($)[0].style.zIndex=f,xb.update(c);try{a.preventDefault()}catch(h){}}},this._ns,this),void a._bind(b,"tooltiphide",function(a){a.target===b[0]&&d(zb).filter(":visible").not(b).last().qtip("focus",a)},this._ns,this)):this},toggle:function(a,b,c){return a&&a.isDefaultPrevented()?this:void xb.toggle(this.qtip,!!b,c)},destroy:function(){this.qtip.tooltip.removeClass(yb),this.qtip._unbind(this.qtip.tooltip,this._ns),xb.toggle(this.qtip,E),delete this.qtip.elements.overlay}}),wb=R.modal=function(a){return new w(a,a.options.show.modal)},wb.sanitize=function(a){a.show&&("object"!=typeof a.show.modal?a.show.modal={on:!!a.show.modal}:"undefined"==typeof a.show.modal.on&&(a.show.modal.on=D))},y.modal_zindex=y.zindex-200,wb.initialize="render",B.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},d.extend(D,y.defaults,{show:{modal:{on:E,effect:D,blur:D,stealfocus:D,escape:D}}}),R.viewport=function(c,d,e,f,g,h,i){function j(a,b,c,e,f,g,h,i,j){var k=d[f],s=u[a],t=v[a],w=c===Q,x=s===f?j:s===g?-j:-j/2,y=t===f?i:t===g?-i:-i/2,z=q[f]+r[f]-(n?0:m[f]),A=z-k,B=k+j-(h===I?o:p)-z,C=x-(u.precedance===a||s===u[b]?y:0)-(t===O?i/2:0);return w?(C=(s===f?1:-1)*x,d[f]+=A>0?A:B>0?-B:0,d[f]=Math.max(-m[f]+r[f],k-C,Math.min(Math.max(-m[f]+r[f]+(h===I?o:p),k+C),d[f],"center"===s?k-x:1e9))):(e*=c===P?2:0,A>0&&(s!==f||B>0)?(d[f]-=C+e,l.invert(a,f)):B>0&&(s!==g||A>0)&&(d[f]-=(s===O?-C:C)+e,l.invert(a,g)),d[f]<q&&-d[f]>B&&(d[f]=k,l=u.clone())),d[f]-k}var k,l,m,n,o,p,q,r,s=e.target,t=c.elements.tooltip,u=e.my,v=e.at,w=e.adjust,x=w.method.split(" "),y=x[0],z=x[1]||x[0],A=e.viewport,B=e.container,C=(c.cache,{left:0,top:0});return A.jquery&&s[0]!==a&&s[0]!==b.body&&"none"!==w.method?(m=B.offset()||C,n="static"===B.css("position"),k="fixed"===t.css("position"),o=A[0]===a?A.width():A.outerWidth(E),p=A[0]===a?A.height():A.outerHeight(E),q={left:k?0:A.scrollLeft(),top:k?0:A.scrollTop()},r=A.offset()||C,("shift"!==y||"shift"!==z)&&(l=u.clone()),C={left:"none"!==y?j(G,H,y,w.x,L,N,I,f,h):0,top:"none"!==z?j(H,G,z,w.y,K,M,J,g,i):0,my:l}):C},R.polys={polygon:function(a,b){var c,d,e,f={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:E},g=0,h=[],i=1,j=1,k=0,l=0;for(g=a.length;g--;)c=[parseInt(a[--g],10),parseInt(a[g+1],10)],c[0]>f.position.right&&(f.position.right=c[0]),c[0]<f.position.left&&(f.position.left=c[0]),c[1]>f.position.bottom&&(f.position.bottom=c[1]),c[1]<f.position.top&&(f.position.top=c[1]),h.push(c);if(d=f.width=Math.abs(f.position.right-f.position.left),e=f.height=Math.abs(f.position.bottom-f.position.top),"c"===b.abbrev())f.position={left:f.position.left+f.width/2,top:f.position.top+f.height/2};else{for(;d>0&&e>0&&i>0&&j>0;)for(d=Math.floor(d/2),e=Math.floor(e/2),b.x===L?i=d:b.x===N?i=f.width-d:i+=Math.floor(d/2),b.y===K?j=e:b.y===M?j=f.height-e:j+=Math.floor(e/2),g=h.length;g--&&!(h.length<2);)k=h[g][0]-f.position.left,l=h[g][1]-f.position.top,(b.x===L&&k>=i||b.x===N&&i>=k||b.x===O&&(i>k||k>f.width-i)||b.y===K&&l>=j||b.y===M&&j>=l||b.y===O&&(j>l||l>f.height-j))&&h.splice(g,1);f.position={left:h[0][0],top:h[0][1]}}return f},rect:function(a,b,c,d){return{width:Math.abs(c-a),height:Math.abs(d-b),position:{left:Math.min(a,c),top:Math.min(b,d)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(a,b,c,d,e){var f=R.polys._angles[e.abbrev()],g=0===f?0:c*Math.cos(f*Math.PI),h=d*Math.sin(f*Math.PI);return{width:2*c-Math.abs(g),height:2*d-Math.abs(h),position:{left:a+g,top:b+h},adjustable:E}},circle:function(a,b,c,d){return R.polys.ellipse(a,b,c,c,d)}},R.svg=function(a,c,e){for(var f,g,h,i,j,k,l,m,n,o=(d(b),c[0]),p=d(o.ownerSVGElement),q=o.ownerDocument,r=(parseInt(c.css("stroke-width"),10)||0)/2;!o.getBBox;)o=o.parentNode;if(!o.getBBox||!o.parentNode)return E;switch(o.nodeName){case"ellipse":case"circle":m=R.polys.ellipse(o.cx.baseVal.value,o.cy.baseVal.value,(o.rx||o.r).baseVal.value+r,(o.ry||o.r).baseVal.value+r,e);break;case"line":case"polygon":case"polyline":for(l=o.points||[{x:o.x1.baseVal.value,y:o.y1.baseVal.value},{x:o.x2.baseVal.value,y:o.y2.baseVal.value}],m=[],k=-1,i=l.numberOfItems||l.length;++k<i;)j=l.getItem?l.getItem(k):l[k],m.push.apply(m,[j.x,j.y]);m=R.polys.polygon(m,e);break;default:m=o.getBBox(),m={width:m.width,height:m.height,position:{left:m.x,top:m.y}}}return n=m.position,p=p[0],p.createSVGPoint&&(g=o.getScreenCTM(),l=p.createSVGPoint(),l.x=n.left,l.y=n.top,h=l.matrixTransform(g),n.left=h.x,n.top=h.y),q!==b&&"mouse"!==a.position.target&&(f=d((q.defaultView||q.parentWindow).frameElement).offset(),f&&(n.left+=f.left,n.top+=f.top)),q=d(q),n.left+=q.scrollLeft(),n.top+=q.scrollTop(),m},R.imagemap=function(a,b,c){b.jquery||(b=d(b));var e,f,g,h,i,j=(b.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),k=d('img[usemap="#'+b.parent("map").attr("name")+'"]'),l=d.trim(b.attr("coords")),m=l.replace(/,$/,"").split(",");if(!k.length)return E;if("polygon"===j)h=R.polys.polygon(m,c);else{if(!R.polys[j])return E;for(g=-1,i=m.length,f=[];++g<i;)f.push(parseInt(m[g],10));h=R.polys[j].apply(this,f.concat(c))}return e=k.offset(),e.left+=Math.ceil((k.outerWidth(E)-k.width())/2),e.top+=Math.ceil((k.outerHeight(E)-k.height())/2),h.position.left+=e.left,h.position.top+=e.top,h};var Ab,Bb='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';d.extend(x.prototype,{_scroll:function(){var b=this.qtip.elements.overlay;b&&(b[0].style.top=d(a).scrollTop()+"px")},init:function(c){var e=c.tooltip;d("select, object").length<1&&(this.bgiframe=c.elements.bgiframe=d(Bb).appendTo(e),c._bind(e,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=d("<div/>",{id:S+"-rcontainer"}).appendTo(b.body),c.elements.overlay&&c.elements.overlay.addClass("qtipmodal-ie6fix")&&(c._bind(a,["scroll","resize"],this._scroll,this._ns,this),c._bind(e,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var a,b,c=this.qtip.tooltip,d={height:c.outerHeight(E),width:c.outerWidth(E)},e=this.qtip.plugins.tip,f=this.qtip.elements.tip;b=parseInt(c.css("borderLeftWidth"),10)||0,b={left:-b,top:-b},e&&f&&(a="x"===e.corner.precedance?[I,L]:[J,K],b[a[1]]-=f[a[0]]()),this.bgiframe.css(b).css(d)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var a,b,c,d,e=this.qtip.tooltip,f=this.qtip.options.style,g=this.qtip.options.position.container;return this.qtip.drawing=1,f.height&&e.css(J,f.height),f.width?e.css(I,f.width):(e.css(I,"").appendTo(this.redrawContainer),b=e.width(),1>b%2&&(b+=1),c=e.css("maxWidth")||"",d=e.css("minWidth")||"",a=(c+d).indexOf("%")>-1?g.width()/100:0,c=(c.indexOf("%")>-1?a:1)*parseInt(c,10)||b,d=(d.indexOf("%")>-1?a:1)*parseInt(d,10)||0,b=c+d?Math.min(Math.max(b,d),c):b,e.css(I,Math.round(b)).appendTo(g)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([a,this.qtip.tooltip],this._ns)}}),Ab=R.ie6=function(a){return 6===db.ie?new x(a):E},Ab.initialize="render",B.ie6={"^content|style$":function(){this.redraw()}}})}(window,document);
5
+ //# sourceMappingURL=jquery.qtip.min.js.map
assets/sass/style-admin.scss ADDED
@@ -0,0 +1,1008 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Table of Contents
2
+
3
+ * Dashboard Menu Icon
4
+ * Edit Screen
5
+
6
+ */
7
+
8
+ /* --------------------------------------------------------- */
9
+ /* !Variables */
10
+ /* --------------------------------------------------------- */
11
+
12
+ $highlight-color: hsl(128, 52%, 57%);
13
+ $highlight-color-hover: darken($highlight-color, 10%);
14
+ $dark-gray: hsl(0, 0%, 20%);
15
+ $dark-gray-hover: lighten($dark-gray, 10%);
16
+ $medium-gray: hsl(0, 0%, 60%);
17
+ $light-gray-hover: hsl(0, 0%, 80%);
18
+ $light-gray: hsl(0, 0%, 85%);
19
+ $lighter-gray: hsl(0, 0%, 95%);
20
+
21
+ $green: $highlight-color;
22
+ $red: hsl(0, 100%, 50%);
23
+
24
+
25
+ /* --------------------------------------------------------- */
26
+ /* !Dashboard Menu Icon */
27
+ /* --------------------------------------------------------- */
28
+
29
+ #menu-posts-ditty_news_ticker .wp-menu-image:before {
30
+ font-family: "ditty-news-ticker" !important;
31
+ font-size: 18px !important;
32
+ font-style: normal !important;
33
+ font-weight: normal !important;
34
+ font-variant: normal !important;
35
+ text-transform: none !important;
36
+ speak: none;
37
+ line-height: 1;
38
+ -webkit-font-smoothing: antialiased;
39
+ -moz-osx-font-smoothing: grayscale;
40
+ content: "\e009" !important;
41
+ }
42
+
43
+
44
+ /* --------------------------------------------------------- */
45
+ /* !Visual Composer Icon */
46
+ /* --------------------------------------------------------- */
47
+
48
+ .vc_element-icon.mtphr-dnt-icon-dittynewsticker {
49
+ font-size: 32px;
50
+ color: $highlight-color;
51
+ background-image: none;
52
+ }
53
+
54
+
55
+ /* --------------------------------------------------------- */
56
+ /* !Classes */
57
+ /* --------------------------------------------------------- */
58
+
59
+ .mtphr-dnt-clearfix:before,
60
+ .mtphr-dnt-clearfix:after {
61
+ display: table;
62
+ border-spacing: 0;
63
+ content: " ";
64
+ }
65
+ .mtphr-dnt-clearfix:after {
66
+ clear: both;
67
+ }
68
+ .mtphr-dnt-clear {
69
+ display: block;
70
+ clear: both;
71
+ }
72
+
73
+
74
+ /* --------------------------------------------------------- */
75
+ /* !Edit Screen */
76
+ /* --------------------------------------------------------- */
77
+
78
+ .column-dnt_type,
79
+ .column-dnt_mode {
80
+ width: 10%;
81
+ }
82
+ .column-dnt_shortcode pre,
83
+ .column-dnt_shortcode p,
84
+ .column-dnt_function pre,
85
+ .column-dnt_function p {
86
+ white-space: inherit !important;
87
+ margin: 0 !important;
88
+ }
89
+ .column-dnt_shortcode pre,
90
+ .column-dnt_function pre {
91
+ padding: 10px;
92
+ background: #FFF;
93
+ border: 1px solid #EEE;
94
+ }
95
+
96
+ .mtphr-dnt-metaboxer_mtphr_dnt_ticks-tick .wp-editor-wrap {
97
+ margin-bottom: 10px;
98
+ }
99
+
100
+
101
+
102
+
103
+ /* --------------------------------------------------------- */
104
+ /* !Code copy - 1.4.0 */
105
+ /* --------------------------------------------------------- */
106
+
107
+ #mtphr-dnt-code-copy {
108
+ table {
109
+ display: block;
110
+ width: 100%;
111
+ }
112
+ td {
113
+ display: block;
114
+ width: auto;
115
+ vertical-align: top;
116
+ color: $lighter-gray;
117
+ background: $dark-gray;
118
+ border: 1px solid #dfdfdf;
119
+ border-radius: 5px;
120
+ border-top: 5px solid $highlight-color;
121
+ margin: 10px 0;
122
+ .wrapper {
123
+ padding: 10px;
124
+ }
125
+ }
126
+ h3 {
127
+ color: #FFF;
128
+ padding: 0;
129
+ margin-bottom: 0;
130
+ }
131
+ p {
132
+ margin: 0 0 8px;
133
+ }
134
+ pre {
135
+ color: $dark-gray;
136
+ margin: 0 0 5px 0;
137
+ padding: 10px;
138
+ background: #FFF;
139
+ border-radius: 3px;
140
+ white-space: normal;
141
+ word-break: break-all;
142
+ p {
143
+ margin-bottom: 0;
144
+ }
145
+ }
146
+ .button {
147
+ color: #FFF;
148
+ border-color: $dark-gray;
149
+ background: hsl(0, 0%, 50%);
150
+ margin: 2px 0;
151
+ box-shadow: none;
152
+ -webkit-transition: background-color .25s ease, border-color .25s ease;
153
+ transition: background-color .25s ease, border-color .25s ease;
154
+ &:hover {
155
+ background-color: $medium-gray;
156
+ i {
157
+ opacity: 1;
158
+ }
159
+ }
160
+ }
161
+ }
162
+
163
+ @media (min-width: 366px) {
164
+ }
165
+ @media (min-width: 601px) {
166
+ #mtphr-dnt-code-copy {
167
+ margin: 10px -5px -5px;
168
+ table {
169
+ display: table;
170
+ border-spacing: 5px;
171
+ }
172
+ td {
173
+ display: table-cell;
174
+ width: auto;
175
+ }
176
+ }
177
+ }
178
+ @media (min-width: 783px) {
179
+ }
180
+ @media (min-width: 961px) {
181
+ }
182
+
183
+ /*
184
+ @media (min-width: 768px) {
185
+
186
+ }
187
+ @media (min-width: 992px) {
188
+ }
189
+ @media (min-width: 1200px) {
190
+ }
191
+ */
192
+
193
+
194
+
195
+
196
+
197
+ /* --------------------------------------------------------- */
198
+ /* !CodeMirror */
199
+ /* --------------------------------------------------------- */
200
+
201
+ .mtphr-dnt-codemirror .CodeMirror {
202
+ border: 1px solid #dfdfdf;
203
+ height: auto;
204
+ min-height: 52px;
205
+ }
206
+
207
+
208
+
209
+
210
+
211
+ /* --------------------------------------------------------- */
212
+ /* !Text Field */
213
+ /* --------------------------------------------------------- */
214
+
215
+ .mtphr-dnt-field-type-text input[type="text"] {
216
+ width: 100%;
217
+ border-radius: 3px;
218
+ }
219
+
220
+
221
+ /* --------------------------------------------------------- */
222
+ /* !Number Field */
223
+ /* --------------------------------------------------------- */
224
+
225
+ .mtphr-dnt-field-type-number input[type="number"] {
226
+ width: 80px;
227
+ border-radius: 3px;
228
+ }
229
+
230
+
231
+ /* --------------------------------------------------------- */
232
+ /* !Textarea Field */
233
+ /* --------------------------------------------------------- */
234
+
235
+ .mtphr-dnt-field-type-textarea textarea {
236
+ width: 100%;
237
+ border-radius: 3px;
238
+ }
239
+
240
+
241
+ /* --------------------------------------------------------- */
242
+ /* !Radio Buttons */
243
+ /* --------------------------------------------------------- */
244
+
245
+ .mtphr-dnt-field-type-radio_buttons label {
246
+ display: block;
247
+ margin-bottom: 10px;
248
+ &:last-child {
249
+ margin-bottom: 0;
250
+ }
251
+ }
252
+
253
+ @media (min-width: 768px) {
254
+ .mtphr-dnt-field-type-radio_buttons label {
255
+ display: inline;
256
+ margin-right: 20px;
257
+ margin-bottom: 0;
258
+ }
259
+ }
260
+
261
+
262
+ /* --------------------------------------------------------- */
263
+ /* !Single image */
264
+ /* --------------------------------------------------------- */
265
+
266
+ .mtphr-dnt-single-image {
267
+ display: table-cell;
268
+ vertical-align: middle;
269
+ position: relative;
270
+ float: left;
271
+ background: #FFF;
272
+ border: 1px solid #dfdfdf;
273
+ padding: 3px 24px 3px 3px;
274
+ -webkit-border-radius: 3px;
275
+ -moz-border-radius: 3px;
276
+ border-radius: 3px;
277
+ }
278
+ .mtphr-dnt-single-image img {
279
+ display: inline-block;
280
+ vertical-align: middle;
281
+ width: auto;
282
+ max-height: 26px;
283
+ margin-right: 7px;
284
+ }
285
+ .mtphr-dnt-single-image-title {
286
+ display: inline-block;
287
+ font-size: 12px;
288
+ line-height: 16px;
289
+ padding: 5px 7px 5px 0;
290
+ }
291
+ .mtphr-dnt-single-image .mtphr-dnt-delete {
292
+ position: absolute;
293
+ right: 8px;
294
+ top: 50%;
295
+ z-index: 999;
296
+ color: #333;
297
+ text-decoration: none;
298
+ margin-top: -7px;
299
+ }
300
+ .mtphr-dnt-single-image .mtphr-dnt-delete:hover {
301
+ color: #dd3d36;
302
+ }
303
+ .mtphr-dnt-single-image-td select {
304
+ margin-left: 5px;
305
+ }
306
+ .wp-core-ui #mtphr-dnt-settings-select .button.mtphr-dnt-single-image-upload {
307
+ background-color: $highlight-color;
308
+ border: none;
309
+ &:hover {
310
+ background-color: $highlight-color-hover;
311
+ }
312
+ }
313
+
314
+
315
+ /* --------------------------------------------------------- */
316
+ /* !List Fields */
317
+ /* --------------------------------------------------------- */
318
+
319
+ .mtphr-dnt-list-item {
320
+ background-color: $lighter-gray;
321
+ padding: 10px;
322
+ margin: 10px 0;
323
+ border-radius: 5px;
324
+ overflow: hidden;
325
+ }
326
+ .mtphr-dnt-list-heading {
327
+ display: block;
328
+ font-weight: bold;
329
+ color: #FFF;
330
+ text-decoration: none;
331
+ background: $dark-gray;
332
+ padding: 5px 10px;
333
+ margin: -10px -10px 10px;
334
+ cursor: pointer;
335
+ -webkit-transition: background-color .25s ease, border-radius .25s ease;
336
+ transition: background-color .25s ease, border-radius .25s ease;
337
+ &:active, &:focus {
338
+ box-shadow: none;
339
+ outline: none;
340
+ }
341
+ .dashicons-menu {
342
+ color: #FFF;
343
+ margin-right: 8px;
344
+ }
345
+ }
346
+ .mtphr-dnt-list-buttons {
347
+ float: right;
348
+ margin: -5px -10px;
349
+ a {
350
+ float: left;
351
+ display: block;
352
+ width: 30px;
353
+ height: 30px;
354
+ text-align: center;
355
+ text-decoration: none;
356
+ background: transparent;
357
+ &.mtphr-dnt-list-add {
358
+ &:hover {
359
+ i {
360
+ color: $green;
361
+ }
362
+ }
363
+ i {
364
+ color: #FFF;
365
+ }
366
+ }
367
+ &.mtphr-dnt-list-delete {
368
+ &:hover {
369
+ i {
370
+ color: $red;
371
+ }
372
+ }
373
+ i {
374
+ color: #FFF;
375
+ }
376
+ }
377
+ }
378
+ i {
379
+ width: 15px;
380
+ height: 15px;
381
+ font-size: 15px;
382
+ line-height: 31px;
383
+ }
384
+ }
385
+ .mtphr-dnt-list-field {
386
+ color: $dark-gray;
387
+ margin-bottom: 20px;
388
+ &:last-child {
389
+ margin-bottom: 0;
390
+ }
391
+ }
392
+ .mtphr-dnt-list-placeholder {
393
+ width: 100%;
394
+ height: 40px;
395
+ border: 3px dashed hsl(0, 0%, 90%);
396
+ border-radius: 5px;
397
+ margin: 5px 0;
398
+ box-sizing: border-box;
399
+ }
400
+
401
+ @media (min-width: 768px) {
402
+ .mtphr-dnt-list-item > td {
403
+ display: table-cell !important;
404
+ }
405
+ .mtphr-dnt-list-handle {
406
+ padding: 5px 2px 0 0;
407
+ }
408
+ .mtphr-dnt-list-add-delete {
409
+ width: 30px;
410
+ padding: 5px 0 0 2px;
411
+ a {
412
+ float: none;
413
+ margin-left: 0;
414
+ }
415
+ }
416
+ }
417
+
418
+
419
+
420
+ /* --------------------------------------------------------- */
421
+ /* !Sort Fields */
422
+ /* --------------------------------------------------------- */
423
+
424
+ .mtphr-dnt-sort-field {
425
+ color: $dark-gray;
426
+ margin-bottom: 20px;
427
+ &:last-child {
428
+ margin-bottom: 0;
429
+ }
430
+ }
431
+ .mtphr-dnt-sort-placeholder {
432
+ width: 100%;
433
+ height: 40px;
434
+ border: 3px dashed hsl(0, 0%, 90%);
435
+ border-radius: 5px;
436
+ margin: 5px 0;
437
+ box-sizing: border-box;
438
+ }
439
+ .mtphr-dnt-sort-item {
440
+ margin: 10px 0;
441
+ &.active {
442
+ .mtphr-dnt-sort-heading {
443
+ background-color: $dark-gray;
444
+ .dashicons-menu {
445
+ color: #FFF;
446
+ }
447
+ .mtphr-dnt-sort-heading-title {
448
+ color: #FFF;
449
+ i {
450
+ color: $highlight-color;
451
+ }
452
+ }
453
+ }
454
+ &.has-fields .mtphr-dnt-sort-heading {
455
+ border-bottom-left-radius: 0;
456
+ border-bottom-right-radius: 0;
457
+ }
458
+ }
459
+ }
460
+ .mtphr-dnt-sort-heading {
461
+ display: block;
462
+ font-weight: bold;
463
+ color: #FFF;
464
+ text-decoration: none;
465
+ background: $light-gray;
466
+ padding: 10px;
467
+ border-radius: 5px;
468
+ cursor: pointer;
469
+ -webkit-transition: background-color .25s ease, border-radius .25s ease;
470
+ transition: background-color .25s ease, border-radius .25s ease;
471
+ &:active, &:focus {
472
+ box-shadow: none;
473
+ outline: none;
474
+ }
475
+ &:hover {
476
+ background-color: $light-gray-hover;
477
+ }
478
+ input {
479
+ display: none;
480
+ }
481
+ .mtphr-dnt-sort-heading-title {
482
+ display: inline-block;
483
+ line-height: 20px;
484
+ color: $dark-gray;
485
+ margin-right: 3px;
486
+ i {
487
+ float: left;
488
+ display: block;
489
+ width: 24px;
490
+ height: 24px;
491
+ line-height: 24px;
492
+ text-align: center;
493
+ color: $light-gray;
494
+ background: #FFF;
495
+ border-radius: 12px;
496
+ margin: -2px 8px -3px 0;
497
+ -webkit-transition: color .25s ease;
498
+ transition: color .25s ease;
499
+ }
500
+ }
501
+ .dashicons-menu {
502
+ color: $dark-gray;
503
+ margin-right: 8px;
504
+ }
505
+ }
506
+ .mtphr-dnt-sort-item-fields {
507
+ display: none;
508
+ background-color: $lighter-gray;
509
+ padding: 10px;
510
+ border-bottom-left-radius: 5px;
511
+ border-bottom-right-radius: 5px;
512
+ &.active {
513
+ display: block;
514
+ }
515
+ }
516
+
517
+
518
+
519
+ /* --------------------------------------------------------- */
520
+ /* !Metaboxe Defaults */
521
+ /* --------------------------------------------------------- */
522
+
523
+ #mtphr-dnt-settings-select {
524
+ color: hsl(0, 0%, 100%);
525
+ background: $dark-gray;
526
+ padding: 10px;
527
+ margin: 20px 0;
528
+ border-radius: 5px;
529
+ border-top: 5px solid $highlight-color;
530
+ &.mtphr_dnt_affix {
531
+ padding-top: 60px;
532
+ }
533
+ table {
534
+ width: 100%;
535
+ }
536
+ .mtphr-dnt-table {
537
+ margin-top: 15px;
538
+ }
539
+ .mtphr-dnt-metabox-heading {
540
+ float: left;
541
+ font-size: 18px;
542
+ font-weight: bold;
543
+ text-transform: uppercase;
544
+ letter-spacing: 1px;
545
+ color: #FFF;
546
+ margin-top: 0;
547
+ i {
548
+ font-size: 26px;
549
+ color: hsl(128, 52%, 47%);
550
+ &:before {
551
+ vertical-align: middle;
552
+ }
553
+ }
554
+ }
555
+ }
556
+ #mtphr-dnt-type-metaboxes > div,
557
+ #mtphr-dnt-mode-metaboxes > div {
558
+ display: none;
559
+ }
560
+ #mtphr-dnt-metabox-group-toggles {
561
+ font-size: 14px;
562
+ line-height: 14px;
563
+ font-weight: bold;
564
+ text-transform: uppercase;
565
+ letter-spacing: 1px;
566
+ color: #FFF;
567
+ background: $dark-gray;
568
+ margin: -10px -10px 20px;
569
+ #mtphr-dnt-settings-select.mtphr_dnt_affix & {
570
+ position: fixed;
571
+ top: 32px;
572
+ left: 0;
573
+ z-index: 99;
574
+ width: 100%;
575
+ padding-left: 182px;
576
+ margin: 0;
577
+ box-shadow: 0 0 8px rgba(0, 0, 0, .8);
578
+ box-sizing: border-box;
579
+ .auto-fold & {
580
+ padding-left: 182px;
581
+ }
582
+ .folded & {
583
+ padding-left: 58px;
584
+ }
585
+ }
586
+ a {
587
+ float: left;
588
+ display: block;
589
+ color: #FFF;
590
+ text-decoration: none;
591
+ padding: 10px 10px 10px 10px;
592
+ background-color: $dark-gray;
593
+ border-bottom-left-radius: 5px;
594
+ border-bottom-right-radius: 5px;
595
+ #mtphr-dnt-settings-select.mtphr_dnt_affix & {
596
+ border-bottom-left-radius: 0;
597
+ border-bottom-right-radius: 0;
598
+ }
599
+ &:first-child {
600
+ border-bottom-left-radius: 0;
601
+ }
602
+ &.active {
603
+ background-color: $highlight-color;
604
+ i {
605
+ color: #FFF;
606
+ }
607
+ &:hover {
608
+ background-color: $highlight-color;
609
+ }
610
+ }
611
+ &:hover {
612
+ background-color: $dark-gray-hover;
613
+ }
614
+ &.focus, &.active {
615
+ box-shadow: none;
616
+ outline: none;
617
+ }
618
+ i {
619
+ font-size: 20px;
620
+ color: $highlight-color;
621
+ &:before {
622
+ vertical-align: middle;
623
+ }
624
+ }
625
+ }
626
+ }
627
+ .mtphr-dnt-metabox-group {
628
+ display: none;
629
+ }
630
+ .mtphr-dnt-metabox-group.active {
631
+ display: block;
632
+ }
633
+ .wp-core-ui #mtphr-dnt-settings-select .mtphr-dnt-button {
634
+ color: #FFF;
635
+ border-color: $dark-gray;
636
+ background: hsl(0, 0%, 50%);
637
+ margin: 2px 0;
638
+ box-shadow: none;
639
+ -webkit-transition: background-color .25s ease, border-color .25s ease;
640
+ transition: background-color .25s ease, border-color .25s ease;
641
+ &:hover {
642
+ background-color: $medium-gray;
643
+ i {
644
+ opacity: 1;
645
+ }
646
+ }
647
+ &.button-primary {
648
+ background: $highlight-color;
649
+ border-color: $highlight-color-hover;
650
+ text-shadow: none;
651
+ &:hover {
652
+ background-color: $highlight-color-hover;
653
+ }
654
+ &:active, &:focus {
655
+ outline: none;
656
+ -moz-outline-style: none;
657
+ box-shadow: none;
658
+ }
659
+ i {
660
+ opacity: 1;
661
+ }
662
+ }
663
+ &.mtphr-dnt-get-more {
664
+ background: hsl(0, 0%, 30%);
665
+ &:hover {
666
+ background-color: hsl(0, 0%, 35%);
667
+ }
668
+ }
669
+ i {
670
+ font-size: 16px;
671
+ line-height: 16px;
672
+ margin: 2px 0 0 -5px;
673
+ opacity: .5;
674
+ -webkit-transition: opacity .25s ease;
675
+ transition: opacity .25s ease;
676
+ &:before {
677
+ vertical-align: middle;
678
+ }
679
+ &.fontastic {
680
+ display: inline-block;
681
+ vertical-align: top;
682
+ font-size: 14px;
683
+ line-height: 14px;
684
+ margin-top: 5px;
685
+ }
686
+ }
687
+ }
688
+ .mtphr-dnt-metabox-toggle {
689
+ padding-bottom: 20px;
690
+ }
691
+ .mtphr-dnt-field-group {
692
+ color: $dark-gray;
693
+ background: hsl(0, 0%, 100%);
694
+ padding: 20px 20px;
695
+ margin: 10px 0;
696
+ border-top: 5px solid $highlight-color;
697
+ border-radius: 5px;
698
+ .mtphr-dnt-metabox &:first-child {
699
+ margin-top: 0;
700
+ }
701
+ .mtphr-dnt-metabox &:last-child {
702
+ margin-bottom: 0;
703
+ }
704
+ }
705
+ .mtphr-dnt-heading {
706
+ background-color: $lighter-gray;
707
+ border-bottom: 1px solid hsl(0, 0%, 90%);
708
+ margin: -20px -20px 20px;
709
+ padding: 10px 20px;
710
+ h3 {
711
+ float: left;
712
+ text-transform: uppercase;
713
+ letter-spacing: 1px;
714
+ color: $dark-gray;
715
+ padding: 0 !important;
716
+ margin: 2px 2px 2px 0;
717
+ }
718
+ p {
719
+ clear: both;
720
+ margin: 0;
721
+ color: hsl(0, 0%, 40%);
722
+ }
723
+ }
724
+ .mtphr-dnt-subheading {
725
+ font-size: 12px;
726
+ line-height: 17px;
727
+ font-weight: bold;
728
+ text-transform: uppercase;
729
+ letter-spacing: 1px;
730
+ color: $dark-gray;
731
+ margin-bottom: 2px;
732
+ .mtphr-dnt-help i {
733
+ width: 17px;
734
+ height: 17px;
735
+ font-size: 17px;
736
+ }
737
+ }
738
+ .mtphr-dnt-help {
739
+ display: inline-block;
740
+ text-decoration: none;
741
+ i {
742
+ color: $medium-gray;
743
+ }
744
+ }
745
+ .mtphr-dnt-field {
746
+ margin-bottom: 20px;
747
+ .mtphr-dnt-field-group &:last-child {
748
+ margin-bottom: 0;
749
+ }
750
+ }
751
+
752
+ #mtphr-dnt-publish {
753
+ display: none;
754
+ float: right;
755
+ height: auto;
756
+ line-height: 14px;
757
+ text-transform: uppercase;
758
+ padding: 6px 12px 6px;
759
+ margin: 5px 20px 0 0 !important;
760
+ #mtphr-dnt-settings-select.mtphr_dnt_affix & {
761
+ display: block;
762
+ }
763
+ i {
764
+ font-size: 20px !important;
765
+ margin: -2px 0 -4px -5px !important;
766
+ }
767
+ }
768
+
769
+ .mtphr-dnt-field-type-checkboxes {
770
+ label {
771
+ margin: 5px 20px 5px 0;
772
+ &:last-child {
773
+ margin-right: 0;
774
+ }
775
+ }
776
+ }
777
+
778
+ @media (max-width: 960px) {
779
+ #mtphr-dnt-metabox-group-toggles {
780
+ #mtphr-dnt-settings-select.mtphr_dnt_affix & {
781
+ .auto-fold & {
782
+ padding-left: 58px;
783
+ }
784
+ }
785
+ }
786
+ }
787
+
788
+ @media (max-width: 782px) {
789
+ .wp-core-ui #mtphr-dnt-settings-select .button {
790
+ i {
791
+ margin-top: -1px;
792
+ &.fontastic {
793
+ margin-top: 2px;
794
+ }
795
+ }
796
+ }
797
+ .mtphr-dnt-metabox {
798
+ input, textarea {
799
+ font-size: 14px;
800
+ }
801
+ input[type="text"],
802
+ input[type="password"],
803
+ input[type="email"],
804
+ input[type="number"],
805
+ input[type="search"] {
806
+ padding: 3px 5px;
807
+ }
808
+ #wpbody & select {
809
+ height: auto;
810
+ font-size: 14px;
811
+ }
812
+ input[type=checkbox],
813
+ input[type=radio] {
814
+ height: 16px;
815
+ width: 16px;
816
+ }
817
+ input[type=checkbox]:checked:before,
818
+ input[type=radio]:checked:before {
819
+ width: 16px;
820
+ font: 400 21px/1 dashicons;
821
+ }
822
+ input[type=checkbox]:checked:before {
823
+ margin: -3px 0 0 -4px;
824
+ }
825
+ input[type=radio]:checked:before {
826
+ width: 6px;
827
+ height: 6px;
828
+ margin: 4px;
829
+ }
830
+ }
831
+ #mtphr-dnt-metabox-group-toggles {
832
+ #mtphr-dnt-settings-select.mtphr_dnt_affix & {
833
+ top: 46px;
834
+ padding-left: 0;
835
+ .auto-fold & {
836
+ padding-left: 0;
837
+ }
838
+ }
839
+ }
840
+ #mtphr-dnt-publish {
841
+ margin-right: 13px !important;
842
+ }
843
+ }
844
+
845
+ @media (max-width: 600px) {
846
+ #mtphr-dnt-metabox-group-toggles {
847
+ #mtphr-dnt-settings-select.mtphr_dnt_affix & {
848
+ top: 0;
849
+ }
850
+ a span {
851
+ display: none;
852
+ }
853
+ }
854
+ #mtphr-dnt-publish {
855
+ i {
856
+ margin-right: -3px !important;
857
+ }
858
+ span {
859
+ display: none;
860
+ }
861
+ }
862
+ }
863
+
864
+ @media (max-width: 365px) {
865
+ #mtphr-dnt-metabox-group-toggles {
866
+ font-size: 12px;
867
+ line-height: 12px;
868
+ a i {
869
+ font-size: 14px;
870
+ }
871
+ }
872
+ #mtphr-dnt-publish {
873
+ padding-top: 4px;
874
+ padding-bottom: 4px;
875
+ }
876
+ }
877
+
878
+
879
+ /* --------------------------------------------------------- */
880
+ /* !Default Ticks Metabox */
881
+ /* --------------------------------------------------------- */
882
+
883
+ @media (min-width: 768px) {
884
+ .mtphr-dnt-list-field-mtphr_dnt_ticks_link {
885
+ float: left;
886
+ width: 50%;
887
+ margin-right: 1.5%;
888
+ }
889
+ .mtphr-dnt-list-field-mtphr_dnt_ticks_target {
890
+ float: left;
891
+ width: auto;
892
+ margin-right: 1.5%;
893
+ }
894
+ }
895
+
896
+
897
+ /* --------------------------------------------------------- */
898
+ /* !Mixed Ticks Metabox */
899
+ /* --------------------------------------------------------- */
900
+
901
+ @media (min-width: 768px) {
902
+ .mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_type,
903
+ .mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all {
904
+ float: left;
905
+ margin-right: 30px;
906
+ }
907
+ .mtphr-dnt-field-mtphr_dnt_mixed_ticks .mtphr-dnt-list-field {
908
+ margin-bottom: 0;
909
+ }
910
+ }
911
+
912
+
913
+ /* --------------------------------------------------------- */
914
+ /* !Scroll Mode Metabox */
915
+ /* --------------------------------------------------------- */
916
+
917
+ @media (min-width: 768px) {
918
+ .mtphr-dnt-field-mtphr_dnt_scroll_direction {
919
+ float: left;
920
+ margin-bottom: 0;
921
+ }
922
+ .mtphr-dnt-field-mtphr_dnt_scroll_width {
923
+ float: left;
924
+ margin-right: 20px;
925
+ }
926
+ .mtphr-dnt-field-mtphr_dnt_scroll_height {
927
+ float: left;
928
+ }
929
+ .mtphr-dnt-field-mtphr_dnt_scroll_padding {
930
+ float: left;
931
+ margin-right: 20px;
932
+ margin-bottom: 0;
933
+ }
934
+ .mtphr-dnt-field-mtphr_dnt_scroll_margin {
935
+ float: left;
936
+ margin-bottom: 0;
937
+ }
938
+ .mtphr-dnt-field-mtphr_dnt_scroll_speed {
939
+ float: left;
940
+ margin-right: 20px;
941
+ margin-bottom: 0;
942
+ }
943
+ }
944
+
945
+
946
+ /* --------------------------------------------------------- */
947
+ /* !Rotate Mode Metabox */
948
+ /* --------------------------------------------------------- */
949
+
950
+ @media (min-width: 768px) {
951
+ .mtphr-dnt-field-mtphr_dnt_rotate_padding,
952
+ .mtphr-dnt-field-mtphr_dnt_rotate_margin,
953
+ .mtphr-dnt-field-mtphr_dnt_auto_rotate,
954
+ .mtphr-dnt-field-mtphr_dnt_rotate_delay,
955
+ .mtphr-dnt-field-mtphr_dnt_rotate_speed,
956
+ .mtphr-dnt-field-mtphr_dnt_rotate_directional_nav,
957
+ .mtphr-dnt-field-mtphr_dnt_rotate_control_nav {
958
+ float: left;
959
+ margin-right: 20px;
960
+ margin-bottom: 0;
961
+ }
962
+ }
963
+
964
+
965
+ /* --------------------------------------------------------- */
966
+ /* !List Mode Metabox */
967
+ /* --------------------------------------------------------- */
968
+
969
+ .mtphr-dnt-field-mtphr_dnt_list_tick_count {
970
+ border-bottom: 1px solid $lighter-gray;
971
+ padding-bottom: 20px;
972
+ margin-bottom: 20px;
973
+ }
974
+ .mtphr-dnt-field-mtphr_dnt_list_tick_prev_text,
975
+ .mtphr-dnt-field-mtphr_dnt_list_tick_next_text {
976
+ float: left;
977
+ width: 100px;
978
+ margin-right: 20px;
979
+ }
980
+ .mtphr-dnt-field-mtphr_dnt_list_tick_prev_text {
981
+ clear: both;
982
+ }
983
+
984
+ @media (min-width: 768px) {
985
+ .mtphr-dnt-field-mtphr_dnt_list_padding,
986
+ .mtphr-dnt-field-mtphr_dnt_list_margin,
987
+ .mtphr-dnt-field-mtphr_dnt_list_tick_paging,
988
+ .mtphr-dnt-field-mtphr_dnt_list_tick_prev_next {
989
+ float: left;
990
+ margin-right: 20px;
991
+ }
992
+ .mtphr-dnt-field-mtphr_dnt_list_padding,
993
+ .mtphr-dnt-field-mtphr_dnt_list_margin {
994
+ margin-bottom: 0;
995
+ }
996
+ }
997
+
998
+
999
+ /* --------------------------------------------------------- */
1000
+ /* !Global Settings Metabox */
1001
+ /* --------------------------------------------------------- */
1002
+
1003
+ @media (min-width: 768px) {
1004
+ .mtphr-dnt-field-mtphr_dnt_title {
1005
+ float: left;
1006
+ margin-right: 20px;
1007
+ }
1008
+ }
assets/sass/style.scss ADDED
@@ -0,0 +1,485 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .mtphr-dnt img {
2
+ max-width: 100%;
3
+ height: auto;
4
+ }
5
+ .mtphr-dnt-wrapper {
6
+ position: relative;
7
+ width: 100%;
8
+ }
9
+ .mtphr-dnt-inline-title {
10
+ float: left;
11
+ padding-right: 5px;
12
+ }
13
+ .mtphr-dnt-tick-container {
14
+ position: relative;
15
+ }
16
+ .mtphr-dnt-tick-contents {
17
+ position: relative;
18
+ overflow: hidden;
19
+ }
20
+ .mtphr-dnt-tick {
21
+ margin: 0;
22
+ img.emoji {
23
+ max-width: none;
24
+ }
25
+ }
26
+ .mtphr-dnt-rotate,
27
+ .mtphr-dnt-scroll {
28
+ .mtphr-dnt-tick {
29
+ position: absolute;
30
+ display:none;
31
+ }
32
+ }
33
+ .mtphr-dnt-rotate {
34
+ .mtphr-dnt-tick {
35
+ opacity: 0;
36
+ }
37
+ }
38
+ .mtphr-dnt-scroll-left,
39
+ .mtphr-dnt-scroll-right {
40
+ .mtphr-dnt-tick {
41
+ white-space: nowrap;
42
+ }
43
+ }
44
+ .mtphr-dnt-trim-ticks .mtphr-dnt-tick {
45
+ * {
46
+ margin-top: 0 !important;
47
+ margin-bottom: 0 !important;
48
+ padding-top: 0 !important;
49
+ padding-bottom: 0 !important;
50
+ }
51
+ }
52
+
53
+ /* --------------------------------------------------------- */
54
+ /* !Rotate */
55
+ /* --------------------------------------------------------- */
56
+
57
+ /*
58
+ .mtphr-dnt-rotate {
59
+ .unslider {
60
+ overflow:auto;
61
+ margin:0;
62
+ padding:0;
63
+ li, ol, ul {
64
+ list-style:none;
65
+ margin:0;
66
+ padding:0;
67
+ border:none;
68
+ }
69
+ }
70
+ .unslider-wrap {
71
+ position:relative;
72
+ &.unslider-carousel {
73
+ > .mtphr-dnt-tick {
74
+ float:left;
75
+ }
76
+ }
77
+ }
78
+ .unslider-vertical {
79
+ > ul {
80
+ height:100%;
81
+ }
82
+ li {
83
+ float:none;
84
+ width:100%;
85
+ }
86
+ }
87
+ .unslider-fade {
88
+ position:relative;
89
+ .unslider-wrap {
90
+ .mtphr-dnt-tick {
91
+ position:absolute;
92
+ left:0;
93
+ top:0;
94
+ right:0;
95
+ z-index:8;
96
+ &.unslider-active {
97
+ z-index:10;
98
+ }
99
+ }
100
+ }
101
+ }
102
+ .unslider-arrow {
103
+ position:absolute;
104
+ left:20px;
105
+ z-index:2;
106
+ cursor:pointer;
107
+ &.next {
108
+ left:auto;
109
+ right:20px;
110
+ }
111
+ }
112
+ .unslider-nav {
113
+ text-align: center;
114
+ ol {
115
+ display: inline-block;
116
+ }
117
+ li {
118
+ float: left;
119
+ margin: 0 5px;
120
+ cursor: pointer;
121
+ &.unslider-active {
122
+ color: green;
123
+ }
124
+ }
125
+ }
126
+ }
127
+ */
128
+
129
+
130
+
131
+ /* --------------------------------------------------------- */
132
+ /* !Spinner */
133
+ /* --------------------------------------------------------- */
134
+
135
+ .mtphr-dnt-icon-spinner {
136
+ position: absolute;
137
+ left: 50%;
138
+ top: 50%;
139
+ width: 30px;
140
+ height: 30px;
141
+ font-size: 30px;
142
+ color: #FFF;
143
+ margin: -15px 0 0 -15px;
144
+
145
+ -webkit-animation: mtphr-dnt-spinner-rotation .8s infinite linear;
146
+ -moz-animation: mtphr-dnt-spinner-rotation .8s infinite linear;
147
+ -o-animation: mtphr-dnt-spinner-rotation .8s infinite linear;
148
+ animation: mtphr-dnt-spinner-rotation .8s infinite linear;
149
+ }
150
+ @-webkit-keyframes mtphr-dnt-spinner-rotation {
151
+ from {-webkit-transform: rotate(0deg);}
152
+ to {-webkit-transform: rotate(359deg);}
153
+ }
154
+ @-moz-keyframes mtphr-dnt-spinner-rotation {
155
+ from {-moz-transform: rotate(0deg);}
156
+ to {-moz-transform: rotate(359deg);}
157
+ }
158
+ @-o-keyframes mtphr-dnt-spinner-rotation {
159
+ from {-o-transform: rotate(0deg);}
160
+ to {-o-transform: rotate(359deg);}
161
+ }
162
+ @keyframes mtphr-dnt-spinner-rotation {
163
+ from {transform: rotate(0deg);}
164
+ to {transform: rotate(359deg);}
165
+ }
166
+
167
+
168
+ /* --------------------------------------------------------- */
169
+ /* !Images */
170
+ /* --------------------------------------------------------- */
171
+
172
+ .mtphr-dnt-image-container {
173
+ position: relative;
174
+ > * {
175
+ margin: 10px 0;
176
+ &:first-child {
177
+ margin-top: 0;
178
+ }
179
+ &:last-child {
180
+ margin-bottom: 0;
181
+ }
182
+ }
183
+ &.mtphr-dnt-image-caption-top,
184
+ &.mtphr-dnt-image-caption-bottom {
185
+ .mtphr-dnt-image-photo {
186
+ margin-top: 0;
187
+ margin-bottom: 0;
188
+ }
189
+ .mtphr-dnt-image-caption {
190
+ position: absolute;
191
+ left: 0;
192
+ bottom: 0;
193
+ z-index: 9;
194
+ box-sizing: border-box;
195
+ width: 100%;
196
+ margin: 0 !important;
197
+ padding: 20px;
198
+ color: #FFF;
199
+ background: rgba(0, 0, 0, .7);
200
+ }
201
+ }
202
+ &.mtphr-dnt-image-caption-top {
203
+ .mtphr-dnt-image-caption {
204
+ bottom: auto;
205
+ top: 0;
206
+ }
207
+ }
208
+ &.mtphr-dnt-image-caption-hover {
209
+ display: block;
210
+ .mtphr-dnt-image-caption {
211
+ opacity: 0;
212
+ -webkit-transition: opacity .25s ease;
213
+ transition: opacity .25s ease;
214
+ }
215
+ &:hover {
216
+ .mtphr-dnt-image-caption {
217
+ opacity: 1;
218
+ }
219
+ }
220
+ }
221
+ .mtphr-dnt-image-photo {
222
+ line-height: 0;
223
+ a {
224
+ display: inline-block;
225
+ max-width: 100%;
226
+ }
227
+ img {
228
+ display: block;
229
+ max-width: 100%;
230
+ height: auto;
231
+ line-height: 0;
232
+ }
233
+ }
234
+ .mtphr-dnt-image-placeholder,
235
+ .mtphr-dnt-image-placeholder-loading {
236
+ position: relative;
237
+ display: none;
238
+ width: 100%;
239
+ max-width: 100%;
240
+ background: #000;
241
+ line-height: 0;
242
+ }
243
+ .mtphr-dnt-grid & {
244
+ width: 100% !important;
245
+ .mtphr-dnt-image-placeholder,
246
+ .mtphr-dnt-image-placeholder-loading {
247
+ width: 100% !important;
248
+ }
249
+ }
250
+ }
251
+
252
+
253
+ /* Directional nav
254
+ ------------------------------------------------------------ */
255
+ .mtphr-dnt .mtphr-dnt-nav {
256
+ position: absolute;
257
+ top: 50%;
258
+ text-decoration: none;
259
+ margin-top: -19px;
260
+ }
261
+ .mtphr-dnt-nav i {
262
+ display: block;
263
+ width: 38px;
264
+ height: 38px;
265
+ font-size: 38px;
266
+ line-height: 38px;
267
+ color: #DDD;
268
+ color: rgba(221, 221, 221, .8);
269
+ }
270
+ .mtphr-dnt-nav:hover {
271
+ text-decoration: none !important;
272
+ }
273
+ .mtphr-dnt-nav:focus {
274
+ outline: none;
275
+ }
276
+ .mtphr-dnt-nav-prev {
277
+ left: 10px;
278
+ }
279
+ .mtphr-dnt-nav-next {
280
+ right: 10px;
281
+ background-position: -38px 0;
282
+ }
283
+ .mtphr-dnt-nav-hide {
284
+ opacity: 0;
285
+ -webkit-transition: opacity .3s linear;
286
+ -moz-transition: opacity .3s linear;
287
+ -o-transition: opacity .3s linear;
288
+ transition: opacity .3s linear;
289
+ }
290
+ .mtphr-dnt-tick-container:hover .mtphr-dnt-nav-hide {
291
+ opacity: 1;
292
+ }
293
+
294
+ /* Control nav
295
+ ------------------------------------------------------------ */
296
+
297
+ .mtphr-dnt-control-links {
298
+ text-align: center;
299
+ margin: 15px 0px 0px;
300
+ }
301
+ .mtphr-dnt-control-links a {
302
+ text-decoration: none;
303
+ }
304
+ .mtphr-dnt-control-number {
305
+ padding: 2px 5px;
306
+ }
307
+ .mtphr-dnt-control-button {
308
+ display: inline-block;
309
+ margin: 0 2px;
310
+ }
311
+ .mtphr-dnt-control-button i {
312
+ display: block;
313
+ width: 18px;
314
+ height: 18px;
315
+ font-size: 18px;
316
+ line-height: 18px;
317
+ color: #CCC;
318
+ }
319
+ .mtphr-dnt-control-button:hover {
320
+ text-decoration: none !important;
321
+ }
322
+ .mtphr-dnt-control-button.active i {
323
+ color: #777;
324
+ }
325
+ .mtphr-dnt-control-button:focus {
326
+ outline: none;
327
+ }
328
+
329
+ /* --------------------------------------------------------- */
330
+ /* !Play & Pause */
331
+ /* --------------------------------------------------------- */
332
+
333
+ .mtphr-dnt-play-pause {
334
+ float: right;
335
+ color: inherit;
336
+ text-decoration: none;
337
+ &:hover i {
338
+ opacity: 1;
339
+ text-decoration: none;
340
+ }
341
+ &:active, &:focus {
342
+ outline: none;
343
+ text-decoration: none;
344
+ }
345
+ &.paused {
346
+ i.mtphr-dnt-icon-play {
347
+ display: none;
348
+ }
349
+ i.mtphr-dnt-icon-pause {
350
+ display: inline-block;
351
+ }
352
+ }
353
+ i {
354
+ display: inline-block;
355
+ box-sizing: border-box;
356
+ width: 40px;
357
+ height: 40px;
358
+ font-size: 25px;
359
+ line-height: 33px;
360
+ text-align: center;
361
+ color: #FFF;
362
+ background-color: #333;
363
+ border-radius: 20px;
364
+ opacity: .8;
365
+ -webkit-transition: opacity .25s ease;
366
+ transition: opacity .25s ease;
367
+ &:before {
368
+ vertical-align: middle;
369
+ }
370
+ &.mtphr-dnt-icon-play {
371
+ padding-left: 4px;
372
+ }
373
+ &.mtphr-dnt-icon-pause {
374
+ display: none;
375
+ }
376
+ }
377
+ }
378
+
379
+
380
+ /* --------------------------------------------------------- */
381
+ /* !Edit link */
382
+ /* --------------------------------------------------------- */
383
+
384
+ .mtphr-dnt-edit-link {
385
+ position: absolute;
386
+ top: 0;
387
+ left: 0;
388
+ z-index: 999;
389
+ font-family: Arial, sans-serif !important;
390
+ font-size: 14px !important;
391
+ line-height: 16px !important;
392
+ color: #666;
393
+ background: #FFF;
394
+ padding: 6px 8px 4px 7px;
395
+ -webkit-border-radius: 5px;
396
+ -moz-border-radius: 5px;
397
+ border-radius: 5px;
398
+ filter: alpha(opacity=50);
399
+ -moz-opacity: .5;
400
+ -khtml-opacity: .5;
401
+ opacity: .5;
402
+ -webkit-transition: opacity .2s linear;
403
+ -moz-transition: opacity .2s linear;
404
+ -o-transition: opacity .2s linear;
405
+ transition: opacity .2s linear;
406
+ }
407
+ .mtphr-dnt-edit-link:hover {
408
+ color: #666;
409
+ filter: alpha(opacity=100);
410
+ -moz-opacity: 1;
411
+ -khtml-opacity: 1;
412
+ opacity: 1;
413
+ }
414
+ .mtphr-dnt-edit-link i {
415
+ float: left;
416
+ display: block;
417
+ margin: 1px 3px 0 0;
418
+ }
419
+
420
+ /* --------------------------------------------------------- */
421
+ /* !Paging */
422
+ /* --------------------------------------------------------- */
423
+
424
+ .mtphr-dnt-tick-paging {
425
+ text-align: center;
426
+ list-style: none;
427
+ }
428
+ .mtphr-dnt-tick-paging a,
429
+ .mtphr-dnt-tick-paging span {
430
+ margin: 0 4px;
431
+ }
432
+
433
+ /* --------------------------------------------------------- */
434
+ /* !Grid */
435
+ /* --------------------------------------------------------- */
436
+
437
+ .mtphr-dnt-grid {
438
+ width: 100%;
439
+ border-spacing: 0;
440
+ }
441
+ .mtphr-dnt-grid td {
442
+ border: none;
443
+ }
444
+ .mtphr-dnt-grid-remove-padding tr > td:first-child {
445
+ padding-left: 0 !important;
446
+ }
447
+ .mtphr-dnt-grid-remove-padding tr > td:last-child {
448
+ padding-right: 0 !important;
449
+ }
450
+ .mtphr-dnt-grid-remove-padding tr:first-child td {
451
+ padding-top: 0 !important;
452
+ }
453
+ .mtphr-dnt-grid-remove-padding tr:last-child td {
454
+ padding-bottom: 0 !important;
455
+ }
456
+
457
+
458
+ /* Add clearfix
459
+ ------------------------------------------------------------ */
460
+
461
+ .mtphr-dnt-clearfix {
462
+ *zoom: 1;
463
+ }
464
+ .mtphr-dnt-clearfix:before,
465
+ .mtphr-dnt-clearfix:after {
466
+ display: table;
467
+ line-height: 0;
468
+ content: "";
469
+ }
470
+ .mtphr-dnt-clearfix:after {
471
+ clear: both;
472
+ }
473
+
474
+
475
+ /**
476
+ * Default styles
477
+ *
478
+ * @since 1.0.0
479
+ */
480
+ .mtphr-dnt-styled .mtphr-dnt-posts-nav-prev {
481
+ float: left;
482
+ }
483
+ .mtphr-dnt-styled .mtphr-dnt-posts-nav-next {
484
+ float: right;
485
+ }
assets/unslider/css/unslider-dots.css ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Here's where everything gets included. You don't need
3
+ * to change anything here, and doing so might break
4
+ * stuff. Here be dragons and all that.
5
+ */
6
+ /**
7
+ * Default variables
8
+ *
9
+ * While these can be set with JavaScript, it's probably
10
+ * better and faster to just set them here, compile to
11
+ * CSS and include that instead to use some of that
12
+ * hardware-accelerated goodness.
13
+ */
14
+ .unslider-nav ol {
15
+ list-style: none;
16
+ text-align: center;
17
+ }
18
+ .unslider-nav ol li {
19
+ display: inline-block;
20
+ width: 6px;
21
+ height: 6px;
22
+ margin: 0 4px;
23
+ background: transparent;
24
+ border-radius: 5px;
25
+ overflow: hidden;
26
+ text-indent: -999em;
27
+ border: 2px solid #fff;
28
+ cursor: pointer;
29
+ }
30
+ .unslider-nav ol li.unslider-active {
31
+ background: #fff;
32
+ cursor: default;
33
+ }
assets/unslider/css/unslider.css ADDED
@@ -0,0 +1 @@
 
1
+ .unslider{overflow:auto;margin:0;padding:0}.unslider-wrap{position:relative}.unslider-wrap.unslider-carousel>li{float:left}.unslider-vertical>ul{height:100%}.unslider-vertical li{float:none;width:100%}.unslider-fade{position:relative}.unslider-fade .unslider-wrap li{position:absolute;left:0;top:0;right:0;z-index:8}.unslider-fade .unslider-wrap li.unslider-active{z-index:10}.unslider li,.unslider ol,.unslider ul{list-style:none;margin:0;padding:0;border:none}.unslider-arrow{position:absolute;left:20px;z-index:2;cursor:pointer}.unslider-arrow.next{left:auto;right:20px}
assets/unslider/js/unslider-min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function($){return $?($.Unslider=function(t,n){var e=this;return e._="unslider",e.defaults={autoplay:!1,delay:3e3,speed:750,easing:"swing",keys:{prev:37,next:39},nav:!0,arrows:{prev:'<a class="'+e._+'-arrow prev">Prev</a>',next:'<a class="'+e._+'-arrow next">Next</a>'},animation:"horizontal",selectors:{container:"ul:first",slides:"li"},animateHeight:!1,activeClass:e._+"-active",swipe:!0,swipeThreshold:.2},e.$context=t,e.options={},e.$parent=null,e.$container=null,e.$slides=null,e.$nav=null,e.$arrows=[],e.total=0,e.current=0,e.prefix=e._+"-",e.eventSuffix="."+e.prefix+~~(2e3*Math.random()),e.interval=null,e.init=function(t){return e.options=$.extend({},e.defaults,t),e.$container=e.$context.find(e.options.selectors.container).addClass(e.prefix+"wrap"),e.$slides=e.$container.children(e.options.selectors.slides),e.setup(),$.each(["nav","arrows","keys","infinite"],function(t,n){e.options[n]&&e["init"+$._ucfirst(n)]()}),jQuery.event.special.swipe&&e.options.swipe&&e.initSwipe(),e.options.autoplay&&e.start(),e.calculateSlides(),e.$context.trigger(e._+".ready"),e.animate(e.options.index||e.current,"init")},e.setup=function(){e.$context.addClass(e.prefix+e.options.animation).wrap('<div class="'+e._+'" />'),e.$parent=e.$context.parent("."+e._);var t=e.$context.css("position");"static"===t&&e.$context.css("position","relative"),e.$context.css("overflow","hidden")},e.calculateSlides=function(){if(e.total=e.$slides.length,"fade"!==e.options.animation){var t="width";"vertical"===e.options.animation&&(t="height"),e.$container.css(t,100*e.total+"%").addClass(e.prefix+"carousel"),e.$slides.css(t,100/e.total+"%")}},e.start=function(){return e.interval=setTimeout(function(){e.next()},e.options.delay),e},e.stop=function(){return clearTimeout(e.interval),e},e.initNav=function(){var t=$('<nav class="'+e.prefix+'nav"><ol /></nav>');e.$slides.each(function(n){var i=this.getAttribute("data-nav")||n+1;$.isFunction(e.options.nav)&&(i=e.options.nav.call(e.$slides.eq(n),n,i)),t.children("ol").append('<li data-slide="'+n+'">'+i+"</li>")}),e.$nav=t.insertAfter(e.$context),e.$nav.find("li").on("click"+e.eventSuffix,function(){var t=$(this).addClass(e.options.activeClass);t.siblings().removeClass(e.options.activeClass),e.animate(t.attr("data-slide"))})},e.initArrows=function(){e.options.arrows===!0&&(e.options.arrows=e.defaults.arrows),$.each(e.options.arrows,function(t,n){e.$arrows.push($(n).insertAfter(e.$context).on("click"+e.eventSuffix,e[t]))})},e.initKeys=function(){e.options.keys===!0&&(e.options.keys=e.defaults.keys),$(document).on("keyup"+e.eventSuffix,function(t){$.each(e.options.keys,function(n,i){t.which===i&&$.isFunction(e[n])&&e[n].call(e)})})},e.initSwipe=function(){var t=e.$slides.width();"fade"!==e.options.animation&&e.$container.on({movestart:function(t){return t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY?!!t.preventDefault():void e.$container.css("position","relative")},move:function(n){e.$container.css("left",-(100*e.current)+100*n.distX/t+"%")},moveend:function(n){Math.abs(n.distX)/t>e.options.swipeThreshold?e[n.distX<0?"next":"prev"]():e.$container.animate({left:-(100*e.current)+"%"},e.options.speed/2)}})},e.initInfinite=function(){var t=["first","last"];$.each(t,function(n,i){e.$slides.push.apply(e.$slides,e.$slides.filter(':not(".'+e._+'-clone")')[i]().clone().addClass(e._+"-clone")["insert"+(0===n?"After":"Before")](e.$slides[t[~~!n]]()))})},e.destroyArrows=function(){$.each(e.$arrows,function(t,n){n.remove()})},e.destroySwipe=function(){e.$container.off("movestart move moveend")},e.destroyKeys=function(){$(document).off("keyup"+e.eventSuffix)},e.setIndex=function(t){return 0>t&&(t=e.total-1),e.current=Math.min(Math.max(0,t),e.total-1),e.options.nav&&e.$nav.find('[data-slide="'+e.current+'"]')._active(e.options.activeClass),e.$slides.eq(e.current)._active(e.options.activeClass),e},e.animate=function(t,n){if("first"===t&&(t=0),"last"===t&&(t=e.total),isNaN(t))return e;e.options.autoplay&&e.stop().start(),e.setIndex(t),e.$context.trigger(e._+".change",[t,e.$slides.eq(t)]);var i="animate"+$._ucfirst(e.options.animation);return $.isFunction(e[i])&&e[i](e.current,n),e},e.next=function(){var t=e.current+1;return t>=e.total&&(t=0),e.animate(t,"next")},e.prev=function(){return e.animate(e.current-1,"prev")},e.animateHorizontal=function(t){var n="left";return"rtl"===e.$context.attr("dir")&&(n="right"),e.options.infinite&&e.$container.css("margin-"+n,"-100%"),e.slide(n,t)},e.animateVertical=function(t){return e.options.animateHeight=!0,e.options.infinite&&e.$container.css("margin-top",-e.$slides.outerHeight()),e.slide("top",t)},e.slide=function(t,n){if(e.options.animateHeight&&e._move(e.$context,{height:e.$slides.eq(n).outerHeight()},!1),e.options.infinite){var i;n===e.total-1&&(i=e.total-3,n=-1),n===e.total-2&&(i=0,n=e.total-2),"number"==typeof i&&(e.setIndex(i),e.$context.on(e._+".moved",function(){e.current===i&&e.$container.css(t,-(100*i)+"%").off(e._+".moved")}))}var o={};return o[t]=-(100*n)+"%",e._move(e.$container,o)},e.animateFade=function(t){var n=e.$slides.eq(t).addClass(e.options.activeClass);e._move(n.siblings().removeClass(e.options.activeClass),{opacity:0}),e._move(n,{opacity:1},!1)},e._move=function(t,n,i,o){return i!==!1&&(i=function(){e.$context.trigger(e._+".moved")}),t._move(n,o||e.options.speed,e.options.easing,i)},e.init(n)},$.fn._active=function(t){return this.addClass(t).siblings().removeClass(t)},$._ucfirst=function(t){return(t+"").toLowerCase().replace(/^./,function(t){return t.toUpperCase()})},$.fn._move=function(){return this.stop(!0,!0),$.fn[$.fn.velocity?"velocity":"animate"].apply(this,arguments)},void($.fn.unslider=function(t){return this.each(function(){var n=$(this);if("string"==typeof t&&n.data("unslider")){t=t.split(":");var e=n.data("unslider")[t[0]];if($.isFunction(e))return e.apply(n,t[1]?t[1].split(","):null)}return n.data("unslider",new $.Unslider(n,t))})})):console.warn("Unslider needs jQuery")}(window.jQuery);
classes/class-mtphr-dnt-image.php ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* --------------------------------------------------------- */
4
+ /* !Create an image class - 2.0.12 */
5
+ /* --------------------------------------------------------- */
6
+
7
+ class MTPHR_DNT_Image {
8
+
9
+ private $src;
10
+ private $width = '';
11
+ private $height = '';
12
+ private $static_dimensions = false;
13
+ private $alt = '';
14
+ private $link = false;
15
+ private $target = '_blank';
16
+ private $nofollow = false;
17
+ private $caption = false;
18
+ private $caption_position = 'below';
19
+ private $caption_hover = true;
20
+
21
+
22
+ function __construct( $src, $width='', $height='', $alt='' ) {
23
+ $this->src = $src;
24
+ $this->width = $width;
25
+ $this->height = $height;
26
+ $this->alt = $alt;
27
+ }
28
+
29
+
30
+ public function set_src( $src='' ) {
31
+ $this->src = $src;
32
+ }
33
+
34
+ public function get_src() {
35
+ return $this->src;
36
+ }
37
+
38
+ public function set_width( $width=0 ) {
39
+ $this->width = intval($width);
40
+ }
41
+
42
+ public function get_width() {
43
+ return $this->width;
44
+ }
45
+
46
+ public function set_height( $height=0 ) {
47
+ $this->height = intval($height);
48
+ }
49
+
50
+ public function get_height() {
51
+ return $this->height;
52
+ }
53
+
54
+ public function set_alt( $alt='' ) {
55
+ $this->alt = $alt;
56
+ }
57
+
58
+ public function get_alt() {
59
+ return $this->alt;
60
+ }
61
+
62
+ public function enable_static_dimensions() {
63
+ $this->static_dimensions = true;
64
+ }
65
+
66
+ public function disable_static_dimensions() {
67
+ $this->static_dimensions = false;
68
+ }
69
+
70
+ public function get_static_dimensions() {
71
+ return $this->static_dimensions;
72
+ }
73
+
74
+ public function set_link( $link=false, $target='_blank', $nofollow=false ) {
75
+ $this->link = $link;
76
+ $this->target = $target;
77
+ $this->nofollow = $nofollow;
78
+ }
79
+
80
+ public function get_link() {
81
+ return $this->link;
82
+ }
83
+
84
+ public function get_target() {
85
+ return $this->target;
86
+ }
87
+
88
+ public function get_nofollow() {
89
+ return $this->nofollow;
90
+ }
91
+
92
+ public function set_caption( $caption=false ) {
93
+ $this->caption = $caption;
94
+ }
95
+
96
+ public function get_caption() {
97
+ return $this->caption;
98
+ }
99
+
100
+ public function set_caption_position( $caption_position='' ) {
101
+ $this->caption_position = $caption_position;
102
+ }
103
+
104
+ public function get_caption_position() {
105
+ return $this->caption_position;
106
+ }
107
+
108
+ public function set_caption_hover( $caption_hover=true ) {
109
+ $this->caption_hover = $caption_hover;
110
+ }
111
+
112
+ public function get_caption_hover( $caption_hover=true ) {
113
+ return $this->caption_hover;
114
+ }
115
+
116
+ public function render() {
117
+
118
+ $html = '';
119
+ $hover = ( $this->caption_hover && ($this->caption_position == 'top' || $this->caption_position == 'bottom') ) ? ' mtphr-dnt-image-caption-hover' : '';
120
+
121
+ $html .= '<div class="mtphr-dnt-image-container mtphr-dnt-image-caption-'.$this->caption_position.$hover.'">';
122
+
123
+ switch( $this->caption_position ) {
124
+ case 'above':
125
+ $html .= $this->render_caption();
126
+ $html .= $this->render_image();
127
+ break;
128
+
129
+ default:
130
+ $html .= $this->render_image();
131
+ $html .= $this->render_caption();
132
+ break;
133
+ }
134
+
135
+ $html .= '</div>';
136
+
137
+ return $html;
138
+ }
139
+
140
+ private function add_static_dimensions() {
141
+
142
+ $html = '';
143
+
144
+ if( $this->static_dimensions && (($this->width >= 0) || ($this->height >= 0)) ) {
145
+ $html .= ' style="';
146
+ if( $this->width >= 0 ) {
147
+ $html .= 'width:'.$this->width.'px;';
148
+ }
149
+ if( $this->height >= 0 ) {
150
+ $html .= 'height:'.$this->height.'px;';
151
+ }
152
+ $html .= '"';
153
+ }
154
+
155
+ return $html;
156
+ }
157
+
158
+
159
+ private function render_image() {
160
+
161
+ $html = '';
162
+
163
+ $html .= '<div class="mtphr-dnt-image-photo"'.$this->add_static_dimensions().'>';
164
+ if( $this->link ) {
165
+ $nofollow = $this->nofollow ? ' rel="nofollow"' : '';
166
+ $html .= '<a href="'.esc_url_raw($this->link).'" target="'.$this->target.'"'.$nofollow.'>';
167
+ }
168
+
169
+ $html .= '<img src="'.$this->src.'" width="'.$this->width.'" height="'.$this->height.'" alt="'.$this->alt.'" />';
170
+
171
+ //$html .= '<span class="mtphr-dnt-image-placeholder" data-src="'.$this->src.'" data-width="'.$this->width.'" data-height="'.$this->height.'" style="width:'.$this->width.'px;height:'.$this->height.'px;"><i class="mtphr-dnt-icon-spinner"></i></span>';
172
+ //$html .= '<span class="mtphr-dnt-image-placeholder-sizer"></span>';
173
+
174
+ if( $this->link ) {
175
+ $html .= '</a>';
176
+ }
177
+ $html .= '</div>';
178
+
179
+ return $html;
180
+ }
181
+
182
+
183
+ private function render_caption() {
184
+
185
+ $html = '';
186
+ if( $this->caption ) {
187
+ $html .= '<span class="mtphr-dnt-image-caption">';
188
+ $html .= $this->caption;
189
+ $html .= '</span>';
190
+ }
191
+
192
+ return $html;
193
+ }
194
+
195
+
196
+
197
+ }
classes/class-mtphr-dnt-tick.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* --------------------------------------------------------- */
4
+ /* !Create the base ticker class - 2.0.9 */
5
+ /* --------------------------------------------------------- */
6
+
7
+ class MTPHR_DNT_Tick {
8
+
9
+ private $contents;
10
+ private $id;
11
+ private $classes;
12
+ private $type;
13
+ private $width;
14
+ private $height;
15
+
16
+
17
+ function __construct( $data ) {
18
+ $this->contents = ( is_array($data) && isset($data['tick']) ) ? $data['tick'] : $data;
19
+ }
20
+
21
+
22
+ private function tick_wrapper() {
23
+
24
+ }
25
+
26
+ }
classes/class-mtphr-dnt.php ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* --------------------------------------------------------- */
4
+ /* !Create the base ticker class - 2.0.9 */
5
+ /* --------------------------------------------------------- */
6
+
7
+ class MTPHR_DNT {
8
+
9
+ private $post_id;
10
+ private $ticker_id;
11
+ private $mode;
12
+ private $type;
13
+ private $ticks = array();
14
+ private $total_ticks = 0;
15
+ private $active;
16
+ private $classes = '';
17
+ private $meta = false;
18
+
19
+
20
+ function __construct( $id='', $class='', $atts=false ) {
21
+ $this->post_id = $this->modify_id( $id );
22
+ $this->parse_meta( $atts );
23
+ $this->classes = $class;
24
+ $this->set_active();
25
+ $this->set_ticker_id();
26
+ $this->set_type();
27
+
28
+ if( $this->active ) {
29
+ $this->get_ticks();
30
+ }
31
+ }
32
+
33
+
34
+ /* --------------------------------------------------------- */
35
+ /* !Modify the ticker post id */
36
+ /* --------------------------------------------------------- */
37
+
38
+ private function modify_id( $id ) {
39
+
40
+ // Check for WPML language posts
41
+ if( function_exists('icl_object_id') ) {
42
+ $id = icl_object_id( $id, 'ditty_news_ticker', true );
43
+ }
44
+
45
+ return $id;
46
+ }
47
+
48
+
49
+ /* --------------------------------------------------------- */
50
+ /* !Set the active value of the ticker */
51
+ /* --------------------------------------------------------- */
52
+
53
+ private function set_active() {
54
+
55
+ $ticker = get_post( $this->post_id );
56
+ if( $ticker && $ticker->post_status == 'publish' ) {
57
+ $this->active = true;
58
+ }
59
+ }
60
+
61
+ public function is_active() {
62
+ return $this->active;
63
+ }
64
+
65
+
66
+ /* --------------------------------------------------------- */
67
+ /* !Set the ticker id */
68
+ /* --------------------------------------------------------- */
69
+
70
+ private function set_ticker_id() {
71
+
72
+ $ticker_id = 'mtphr-dnt-'.$this->post_id;
73
+ if( isset($this->meta['_mtphr_dnt_unique_id']) && ($this->meta['_mtphr_dnt_unique_id'] != '') ) {
74
+ $ticker_id = 'mtphr-dnt-'.$this->post_id.'-'.sanitize_html_class( $this->meta['_mtphr_dnt_unique_id'] );
75
+ }
76
+ $this->ticker_id = $ticker_id;
77
+ }
78
+
79
+
80
+ /* --------------------------------------------------------- */
81
+ /* !Set the ticker type */
82
+ /* --------------------------------------------------------- */
83
+
84
+ private function set_type() {
85
+ $this->type = $this->meta['_mtphr_dnt_type'];
86
+ }
87
+
88
+
89
+ /* --------------------------------------------------------- */
90
+ /* !Parse the metadata */
91
+ /* --------------------------------------------------------- */
92
+
93
+ private function parse_meta( $atts ) {
94
+
95
+ $custom_fields = get_post_custom( $this->post_id );
96
+ $meta_data = array();
97
+ foreach( $custom_fields as $key => $value ) {
98
+ $meta_data[$key] = maybe_unserialize( $value[0] );
99
+ }
100
+
101
+ // Override meta data with supplied attributes
102
+ if( is_array($atts) ) {
103
+ foreach( $atts as $key => $value ) {
104
+ $meta_data["_mtphr_dnt_{$key}"] = $value;
105
+ }
106
+ }
107
+
108
+ $this->meta;
109
+ }
110
+
111
+
112
+ /* --------------------------------------------------------- */
113
+ /* !Get the ticks */
114
+ /* --------------------------------------------------------- */
115
+
116
+ private function add_ticks( $ticks ) {
117
+
118
+ if( $this->meta['_mtphr_dnt_type'] == 'mixed' ) {
119
+ $this->ticks = mtphr_dnt_mixed_ticks( $this->post_id, $this->meta );
120
+ } else {
121
+ $this->ticks = apply_filters( 'mtphr_dnt_tick_array', array(), $this->post_id, $this->meta );
122
+ }
123
+
124
+ // Randomize the ticks
125
+ if( isset($this->meta['_mtphr_dnt_shuffle']) && $this->meta['_mtphr_dnt_shuffle'] ) {
126
+ shuffle( $this->ticks );
127
+ }
128
+
129
+ $this->total_ticks = count( $this->ticks );
130
+ }
131
+
132
+ private function get_ticks() {
133
+
134
+ if( $this->meta['_mtphr_dnt_type'] == 'mixed' ) {
135
+ $this->ticks = mtphr_dnt_mixed_ticks( $this->post_id, $this->meta );
136
+ } else {
137
+ $this->ticks = apply_filters( 'mtphr_dnt_tick_array', array(), $this->post_id, $this->meta );
138
+ }
139
+
140
+ // Randomize the ticks
141
+ if( isset($this->meta['_mtphr_dnt_shuffle']) && $this->meta['_mtphr_dnt_shuffle'] ) {
142
+ shuffle( $this->ticks );
143
+ }
144
+
145
+ $this->total_ticks = count( $this->ticks );
146
+ }
147
+
148
+
149
+ /* --------------------------------------------------------- */
150
+ /* !Return a static ticker width */
151
+ /* --------------------------------------------------------- */
152
+
153
+ private function static_ticker_width() {
154
+ if( isset($this->meta['_mtphr_dnt_ticker_width']) && ($this->meta['_mtphr_dnt_ticker_width'] != 0) ) {
155
+ return ' style="width:'.intval($_mtphr_dnt_ticker_width).'px"';
156
+ }
157
+ }
158
+
159
+
160
+ /* --------------------------------------------------------- */
161
+ /* !Render the ticker */
162
+ /* --------------------------------------------------------- */
163
+
164
+ public function render() {
165
+
166
+ $html = '';
167
+ $html .= '<div'.$this->static_ticker_width().' id="'.$this->ticker_id.'" '.mtphr_dnt_ticker_class( $this->post_id, $this->classes, $this->meta ).'>';
168
+ $html .= '<div class="mtphr-dnt-wrapper mtphr-dnt-clearfix">';
169
+
170
+ // Open the ticker container
171
+ do_action( 'mtphr_dnt_before', $this->post_id, $this->meta );
172
+ echo '<div class="mtphr-dnt-tick-container"'.$container_style.'>';
173
+ do_action( 'mtphr_dnt_contents_before', $this->post_id, $this->meta );
174
+ echo '<div class="mtphr-dnt-tick-contents">';
175
+ do_action( 'mtphr_dnt_top', $this->post_id, $this->meta );
176
+
177
+ // Print out the ticks
178
+ if( is_array($this->ticks) ) {
179
+
180
+ $html .= ob_get_clean();
181
+
182
+ foreach( $this->ticks as $i => $tick_obj ) {
183
+
184
+ ob_start();
185
+
186
+ mtphr_dnt_tick_open( $tick_obj, $i, $this->post_id, $this->meta, $this->total_ticks );
187
+
188
+ $tick = ( is_array($tick_obj) && isset($tick_obj['tick']) ) ? $tick_obj['tick'] : $tick_obj;
189
+ echo $tick;
190
+
191
+ mtphr_dnt_tick_close( $tick_obj, $i, $this->post_id, $this->meta, $this->total_ticks );
192
+
193
+ $html .= ob_get_clean();
194
+ }
195
+
196
+ ob_start();
197
+ }
198
+
199
+ // Close the ticker container
200
+ do_action( 'mtphr_dnt_bottom', $this->post_id, $this->meta );
201
+ echo '</div>';
202
+ do_action( 'mtphr_dnt_contents_after', $this->post_id, $this->meta, $this->total_ticks );
203
+ echo '</div>';
204
+ do_action( 'mtphr_dnt_after', $this->post_id, $this->meta, $this->total_ticks );
205
+
206
+ echo '</div>';
207
+ echo '</div>';
208
+
209
+ }
210
+
211
+
212
+
213
+
214
+ }
classes/helpers/class-mtphr-dnt-string-replacement.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* --------------------------------------------------------- */
4
+ /* !Create a string replacement class - 2.0.8 */
5
+ /* --------------------------------------------------------- */
6
+
7
+ class MTPHR_DNT_String_Replacement {
8
+
9
+ private $str = '';
10
+ private $replacements = array();
11
+
12
+
13
+ function __construct( $str='' ) {
14
+ $this->str = $str;
15
+ }
16
+
17
+
18
+ public function str( $str='' ) {
19
+ $this->str = $str;
20
+ }
21
+
22
+
23
+ public function add_replacement( $placeholder, $replacement ) {
24
+ $this->replacements[] = array(
25
+ 'placeholder' => $placeholder,
26
+ 'replacement' => $replacement,
27
+ 'type' => 'simple'
28
+ );
29
+ }
30
+
31
+ public function add_hashtag_replacement( $url, $target="_blank" ) {
32
+ $this->replacements[] = array(
33
+ 'url' => $url,
34
+ 'target' => $target,
35
+ 'type' => 'hashtag'
36
+ );
37
+ }
38
+
39
+ public function add_at_replacement( $url, $target="_blank" ) {
40
+ $this->replacements[] = array(
41
+ 'url' => $url,
42
+ 'target' => $target,
43
+ 'type' => 'at'
44
+ );
45
+ }
46
+
47
+ public function render() {
48
+ return $this->replace_strings();
49
+ }
50
+
51
+
52
+ private function replace_strings() {
53
+
54
+ $str = $this->str;
55
+ if( is_array($this->replacements) && count($this->replacements) > 0 ) {
56
+ foreach( $this->replacements as $i=>$replacement ) {
57
+ if( $replacement['type'] == 'simple' ) {
58
+ $str = preg_replace( '/'.$replacement['placeholder'].'/i', $replacement['replacement'], $str );
59
+ } elseif( $replacement['type'] == 'hashtag' ) {
60
+ $str = preg_replace( '/ [#]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
61
+ $str = preg_replace( '/^[#]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
62
+ $str = preg_replace( '/\s+[#]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
63
+ } elseif( $replacement['type'] == 'at' ) {
64
+ $str = preg_replace( '/ [@]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
65
+ $str = preg_replace( '/^[@]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
66
+ $str = preg_replace( '/\s+[@]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
67
+ }
68
+ }
69
+ }
70
+ return $str;
71
+ }
72
+
73
+
74
+ }
ditty-news-ticker.php CHANGED
@@ -3,9 +3,12 @@
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.15
 
 
7
  Author: Metaphor Creations
8
  Author URI: http://www.metaphorcreations.com
 
9
  License: GPL2
10
  */
11
 
@@ -29,40 +32,51 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29
 
30
 
31
  /* --------------------------------------------------------- */
32
- /* !Define constants - 1.4.15 */
33
  /* --------------------------------------------------------- */
34
 
35
- define ( 'MTPHR_DNT_VERSION', '1.4.15' );
36
- define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
37
- define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
38
 
39
 
40
 
41
  /* --------------------------------------------------------- */
42
- /* !Include files - 1.4.6 */
43
  /* --------------------------------------------------------- */
 
 
 
 
 
 
 
 
44
  if( is_admin() ) {
45
 
46
- // Load admin code
 
47
  require_once( MTPHR_DNT_DIR.'includes/admin/meta-boxes.php' );
48
- //require_once( MTPHR_DNT_DIR.'includes/help.php' );
49
  require_once( MTPHR_DNT_DIR.'includes/admin/edit-columns.php' );
 
 
50
  require_once( MTPHR_DNT_DIR.'includes/admin/filters.php' );
51
  require_once( MTPHR_DNT_DIR.'includes/admin/upgrades.php' );
52
  require_once( MTPHR_DNT_DIR.'includes/admin/scripts.php' );
 
 
 
 
 
 
 
 
 
 
 
 
53
  }
54
 
55
- // Load the general functions
56
- require_once( MTPHR_DNT_DIR.'includes/filters.php' );
57
- require_once( MTPHR_DNT_DIR.'includes/helpers.php' );
58
- require_once( MTPHR_DNT_DIR.'includes/display.php' );
59
- require_once( MTPHR_DNT_DIR.'includes/scripts.php' );
60
- require_once( MTPHR_DNT_DIR.'includes/post-types.php' );
61
- require_once( MTPHR_DNT_DIR.'includes/functions.php' );
62
- require_once( MTPHR_DNT_DIR.'includes/shortcodes.php' );
63
- require_once( MTPHR_DNT_DIR.'includes/widget.php' );
64
- require_once( MTPHR_DNT_DIR.'includes/settings.php' );
65
-
66
 
67
 
68
  /* --------------------------------------------------------- */
@@ -75,6 +89,8 @@ function mtphr_dnt_activation() {
75
  }
76
  register_activation_hook( __FILE__, 'mtphr_dnt_activation' );
77
 
 
 
78
  /* --------------------------------------------------------- */
79
  /* !Flush the rewrite rules - 1.4.6 */
80
  /* --------------------------------------------------------- */
@@ -84,3 +100,26 @@ function mtphr_dnt_deactivation() {
84
  }
85
  register_deactivation_hook( __FILE__, 'mtphr_dnt_deactivation' );
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ Text Domain: ditty-news-ticker
7
+ Domain Path: languages
8
+ Version: 2.0.15
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
+ Contributors: metaphorcreations
12
  License: GPL2
13
  */
14
 
32
 
33
 
34
  /* --------------------------------------------------------- */
35
+ /* !Define constants - 2.0.15 */
36
  /* --------------------------------------------------------- */
37
 
38
+ define ( 'MTPHR_DNT_VERSION', '2.0.15' );
39
+ define ( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path(__FILE__)) );
40
+ define ( 'MTPHR_DNT_URL', trailingslashit(plugins_url()).'ditty-news-ticker/' );
41
 
42
 
43
 
44
  /* --------------------------------------------------------- */
45
+ /* !Include files - 1.5.0 */
46
  /* --------------------------------------------------------- */
47
+
48
+ // Load the general functions
49
+ require_once( MTPHR_DNT_DIR.'includes/helpers.php' );
50
+ require_once( MTPHR_DNT_DIR.'includes/post-types.php' );
51
+ require_once( MTPHR_DNT_DIR.'includes/settings.php' );
52
+ require_once( MTPHR_DNT_DIR.'includes/widget.php' );
53
+ require_once( MTPHR_DNT_DIR.'includes/composer.php' );
54
+
55
  if( is_admin() ) {
56
 
57
+ // Load admin specific code
58
+ require_once( MTPHR_DNT_DIR.'includes/admin/ajax.php' );
59
  require_once( MTPHR_DNT_DIR.'includes/admin/meta-boxes.php' );
 
60
  require_once( MTPHR_DNT_DIR.'includes/admin/edit-columns.php' );
61
+ require_once( MTPHR_DNT_DIR.'includes/admin/fields/helpers.php' );
62
+ require_once( MTPHR_DNT_DIR.'includes/admin/fields/fields.php' );
63
  require_once( MTPHR_DNT_DIR.'includes/admin/filters.php' );
64
  require_once( MTPHR_DNT_DIR.'includes/admin/upgrades.php' );
65
  require_once( MTPHR_DNT_DIR.'includes/admin/scripts.php' );
66
+ } else {
67
+
68
+ // Load front-end specific code
69
+ require_once( MTPHR_DNT_DIR.'includes/filters.php' );
70
+ require_once( MTPHR_DNT_DIR.'includes/functions.php' );
71
+ require_once( MTPHR_DNT_DIR.'includes/scripts.php' );
72
+ require_once( MTPHR_DNT_DIR.'includes/shortcodes.php' );
73
+ require_once( MTPHR_DNT_DIR.'classes/class-mtphr-dnt.php' );
74
+ require_once( MTPHR_DNT_DIR.'classes/class-mtphr-dnt-tick.php' );
75
+ require_once( MTPHR_DNT_DIR.'classes/class-mtphr-dnt-image.php' );
76
+ require_once( MTPHR_DNT_DIR.'classes/helpers/class-mtphr-dnt-string-replacement.php' );
77
+ require_once( MTPHR_DNT_DIR.'includes/templates.php' );
78
  }
79
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
 
82
  /* --------------------------------------------------------- */
89
  }
90
  register_activation_hook( __FILE__, 'mtphr_dnt_activation' );
91
 
92
+
93
+
94
  /* --------------------------------------------------------- */
95
  /* !Flush the rewrite rules - 1.4.6 */
96
  /* --------------------------------------------------------- */
100
  }
101
  register_deactivation_hook( __FILE__, 'mtphr_dnt_deactivation' );
102
 
103
+
104
+
105
+ /* --------------------------------------------------------- */
106
+ /* !Setup localization - 1.1.5 */
107
+ /* --------------------------------------------------------- */
108
+
109
+ function mtphr_dnt_localization() {
110
+ load_plugin_textdomain( 'ditty-news-ticker', false, 'ditty-news-ticker/languages/' );
111
+ }
112
+ add_action( 'plugins_loaded', 'mtphr_dnt_localization' );
113
+
114
+
115
+
116
+ /* --------------------------------------------------------- */
117
+ /* !Set a custom Unyson extension location - 2.0.6 */
118
+ /* --------------------------------------------------------- */
119
+
120
+ function mtphr_dnt_unyson_extension( $locations ) {
121
+ $locations[ MTPHR_DNT_DIR.'unyson' ] = MTPHR_DNT_URL.'unyson';
122
+ return $locations;
123
+ }
124
+ add_filter( 'fw_extensions_locations', 'mtphr_dnt_unyson_extension' );
125
+
includes/admin/ajax.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* --------------------------------------------------------- */
4
+ /* !Display a single image field via ajax - 1.0.0 */
5
+ /* --------------------------------------------------------- */
6
+
7
+ function mtphr_dnt_single_image_ajax() {
8
+
9
+ // Get access to the database
10
+ global $wpdb;
11
+
12
+ // Check the nonce
13
+ check_ajax_referer( 'ditty-news-ticker', 'security' );
14
+
15
+ // Get variables
16
+ $attachment = $_POST['attachment'];
17
+
18
+ // Display the image
19
+ if( $attachment['type'] == 'image' ) {
20
+ mtphr_dnt_render_single_image( $attachment['id'] );
21
+ }
22
+
23
+ die(); // this is required to return a proper result
24
+ }
25
+ add_action( 'wp_ajax_mtphr_dnt_single_image_ajax', 'mtphr_dnt_single_image_ajax' );
26
+
27
+
28
+
29
+ /* --------------------------------------------------------- */
30
+ /* !Return a new editor via ajax - 2.0.0 */
31
+ /* --------------------------------------------------------- */
32
+
33
+ function mtphr_dnt_wysiwyg_ajax() {
34
+
35
+ // Get access to the database
36
+ global $wpdb;
37
+
38
+ // Check the nonce
39
+ check_ajax_referer( 'ditty-news-ticker', 'security' );
40
+
41
+ // Get variables
42
+ $name = $_POST['name'];
43
+
44
+ $editor_settings = array(
45
+ 'textarea_name' => $name,
46
+ 'textarea_rows' => 2
47
+ );
48
+
49
+ // Display the image
50
+ wp_editor( '', uniqid(), $editor_settings );
51
+
52
+ die(); // this is required to return a proper result
53
+ }
54
+ add_action( 'wp_ajax_mtphr_dnt_wysiwyg_ajax', 'mtphr_dnt_wysiwyg_ajax' );
includes/admin/fields/fields.php ADDED
@@ -0,0 +1,760 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /* --------------------------------------------------------- */
5
+ /* !Container - 2.0.0 */
6
+ /* --------------------------------------------------------- */
7
+
8
+ if( !function_exists('mtphr_dnt_field_container') ) {
9
+ function mtphr_dnt_field_container( $args=array() ) {
10
+ mtphr_dnt_field_append( $args );
11
+ }
12
+ }
13
+
14
+
15
+
16
+ /* --------------------------------------------------------- */
17
+ /* !HTML - 2.0.0 */
18
+ /* --------------------------------------------------------- */
19
+
20
+ if( !function_exists('mtphr_dnt_field_html') ) {
21
+ function mtphr_dnt_field_html( $args=array() ) {
22
+
23
+ if( isset($args['name']) ) {
24
+
25
+ $name = $args['name'];
26
+ $class = mtphr_dnt_field_class( $args );
27
+ $value = isset($args['value']) ? $args['value'] : '';
28
+
29
+ echo '<div class="'.$class.'">';
30
+ echo $value;
31
+ echo '</div>';
32
+
33
+ mtphr_dnt_field_append( $args );
34
+
35
+ } else {
36
+ echo __('Missing required data', 'ditty-news-ticker');
37
+ }
38
+ }
39
+ }
40
+
41
+
42
+ /* --------------------------------------------------------- */
43
+ /* !Number - 2.0.0 */
44
+ /* --------------------------------------------------------- */
45
+
46
+ if( !function_exists('mtphr_dnt_field_number') ) {
47
+ function mtphr_dnt_field_number( $args=array() ) {
48
+
49
+ if( isset($args['name']) ) {
50
+
51
+ $name = $args['name'];
52
+ $class = mtphr_dnt_field_class( $args );
53
+ $value = isset($args['value']) ? $args['value'] : '';
54
+ $width = isset($args['width']) ? 'style="width:'.sanitize_text_field($args['width']).'"' : '';
55
+ $before = isset($args['before']) ? $args['before'].' ' : '';
56
+ $after = isset($args['after']) ? ' '.$args['after'] : '';
57
+
58
+ echo '<div class="'.$class.'">';
59
+ echo mtphr_dnt_subheading( $args );
60
+ echo '<label>'.$before.'<input type="number" name="'.$name.'" value="'.$value.'" '.$width.' '.mtphr_dnt_field_atts($args).' />'.$after.'</label>';
61
+ echo '</div>';
62
+
63
+ mtphr_dnt_field_append( $args );
64
+
65
+ } else {
66
+ echo __('Missing required data', 'ditty-news-ticker');
67
+ }
68
+ }
69
+ }
70
+
71
+
72
+ /* --------------------------------------------------------- */
73
+ /* !Select - 2.0.0 */
74
+ /* --------------------------------------------------------- */
75
+
76
+ if( !function_exists('mtphr_dnt_field_select') ) {
77
+ function mtphr_dnt_field_select( $args=array() ) {
78
+
79
+ if( isset($args['name']) ) {
80
+
81
+ $name = $args['name'];
82
+ $class = mtphr_dnt_field_class( $args );
83
+ $value = isset($args['value']) ? $args['value'] : '';
84
+ $options = isset($args['options']) ? $args['options'] : '';
85
+ $option_keys = isset($args['option_keys']) ? $args['option_keys'] : true;
86
+
87
+ echo '<div class="'.$class.'">';
88
+ echo mtphr_dnt_subheading( $args );
89
+ echo '<select name="'.$name.'" '.mtphr_dnt_field_atts($args).'>';
90
+ if( is_array($options) && count($options) > 0 ) {
91
+ foreach( $options as $i=>$option ) {
92
+ if( is_array($option) ) {
93
+ echo '<optgroup label="'.$i.'">';
94
+ foreach( $option as $e=>$suboption ) {
95
+ $data = mtphr_dnt_select_help( $suboption );
96
+ $v = $option_keys ? $e : $data['label'];
97
+ echo '<option value="'.$v.'" '.selected($v, $value, false).''.$data['help'].'>'.$data['label'].'</option>';
98
+ }
99
+ echo '</optgroup>';
100
+ } else {
101
+ $data = mtphr_dnt_select_help( $option );
102
+ $v = $option_keys ? $i : $data['label'];
103
+ echo '<option value="'.$v.'" '.selected($v, $value, false).''.$data['help'].'>'.$data['label'].'</option>';
104
+ }
105
+ }
106
+ }
107
+ echo '</select>';
108
+ echo '</div>';
109
+
110
+ mtphr_dnt_field_append( $args );
111
+
112
+ } else {
113
+ echo __('Missing required data', 'ditty-news-ticker');
114
+ }
115
+ }
116
+ }
117
+
118
+
119
+ /* --------------------------------------------------------- */
120
+ /* !Post order selects - 2.0.0 */
121
+ /* --------------------------------------------------------- */
122
+
123
+ if( !function_exists('mtphr_dnt_field_post_order') ) {
124
+ function mtphr_dnt_field_post_order( $args=array() ) {
125
+
126
+ if( isset($args['name']) && isset($args['order_name']) ) {
127
+
128
+ $name = $args['name'];
129
+ $class = mtphr_dnt_field_class( $args );
130
+ $value = isset($args['value']) ? $args['value'] : '';
131
+ $order_name = $args['order_name'];
132
+ $order_value = isset($args['order_value']) ? $args['order_value'] : '';
133
+
134
+ echo '<div class="'.$class.'">';
135
+ echo mtphr_dnt_subheading( $args );
136
+ echo '<select name="'.$name.'" '.mtphr_dnt_field_atts($args).'>';
137
+ echo '<option value="ID" '.selected('ID', $value, false).'>'.__('ID', 'ditty-news-ticker').'</option>';
138
+ echo '<option value="author" '.selected('author', $value, false).'>'.__('Author', 'ditty-news-ticker').'</option>';
139
+ echo '<option value="title" '.selected('title', $value, false).'>'.__('Title', 'ditty-news-ticker').'</option>';
140
+ echo '<option value="name" '.selected('name', $value, false).'>'.__('Name', 'ditty-news-ticker').'</option>';
141
+ echo '<option value="date" '.selected('date', $value, false).'>'.__('Date', 'ditty-news-ticker').'</option>';
142
+ echo '<option value="modified" '.selected('modified', $value, false).'>'.__('Modified', 'ditty-news-ticker').'</option>';
143
+ echo '<option value="parent" '.selected('parent', $value, false).'>'.__('Parent', 'ditty-news-ticker').'</option>';
144
+ echo '<option value="rand" '.selected('rand', $value, false).'>'.__('Random', 'ditty-news-ticker').'</option>';
145
+ echo '<option value="comment_count" '.selected('comment_count', $value, false).'>'.__('Comment Count', 'ditty-news-ticker').'</option>';
146
+ echo '<option value="menu_order" '.selected('menu_order', $value, false).'>'.__('Menu Order', 'ditty-news-ticker').'</option>';
147
+ echo '</select>';
148
+ echo '<select name="'.$order_name.'">';
149
+ echo '<option value="ASC" '.selected('ASC', $order_value, false).'>'.__('Ascending', 'ditty-news-ticker').'</option>';
150
+ echo '<option value="DESC" '.selected('DESC', $order_value, false).'>'.__('Descending', 'ditty-news-ticker').'</option>';
151
+ echo '</select>';
152
+ echo '</div>';
153
+
154
+ mtphr_dnt_field_append( $args );
155
+
156
+ } else {
157
+ echo __('Missing required data', 'ditty-news-ticker');
158
+ }
159
+ }
160
+ }
161
+
162
+
163
+ /* --------------------------------------------------------- */
164
+ /* !Textarea - 2.0.0 */
165
+ /* --------------------------------------------------------- */
166
+
167
+ if( !function_exists('mtphr_dnt_field_textarea') ) {
168
+ function mtphr_dnt_field_textarea( $args=array() ) {
169
+
170
+ if( isset($args['name']) ) {
171
+
172
+ $name = $args['name'];
173
+ $class = mtphr_dnt_field_class( $args );
174
+ $value = isset($args['value']) ? $args['value'] : '';
175
+ $placeholder = isset($args['placeholder']) ? 'placeholder="'.$args['placeholder'].'" ' : '';
176
+ $cols = isset($args['cols']) ? $args['cols'] : 60;
177
+ $rows = isset($args['rows']) ? $args['rows'] : 4;
178
+
179
+ echo '<div class="'.$class.'">';
180
+ echo mtphr_dnt_subheading( $args );
181
+ echo '<textarea name="'.$name.'" cols="'.$cols.'" rows="'.$rows.'" '.$placeholder.mtphr_dnt_field_atts($args).'>'.$value.'</textarea>';
182
+ echo '</div>';
183
+
184
+ mtphr_dnt_field_append( $args );
185
+
186
+ } else {
187
+ echo __('Missing required data', 'ditty-news-ticker');
188
+ }
189
+ }
190
+ }
191
+
192
+
193
+ /* --------------------------------------------------------- */
194
+ /* !Text - 2.0.0 */
195
+ /* --------------------------------------------------------- */
196
+
197
+ if( !function_exists('mtphr_dnt_field_text') ) {
198
+ function mtphr_dnt_field_text( $args=array() ) {
199
+
200
+ if( isset($args['name']) ) {
201
+
202
+ $name = $args['name'];
203
+ $class = mtphr_dnt_field_class( $args );
204
+ $value = isset($args['value']) ? $args['value'] : '';
205
+ $placeholder = isset($args['placeholder']) ? 'placeholder="'.$args['placeholder'].'" ' : '';
206
+ $width = isset($args['width']) ? ' style="width:'.$args['width'].';"' : '';
207
+ $before = isset($args['before']) ? $args['before'].' ' : '';
208
+ $after = isset($args['after']) ? ' '.$args['after'] : '';
209
+
210
+ echo '<div class="'.$class.'">';
211
+ echo mtphr_dnt_subheading( $args );
212
+ echo '<label>'.$before.'<input type="text" name="'.$name.'" value="'.$value.'"'.$width.' '.$placeholder.mtphr_dnt_field_atts($args).' />'.$after.'</label>';
213
+ echo '</div>';
214
+
215
+ mtphr_dnt_field_append( $args );
216
+
217
+ } else {
218
+ echo __('Missing required data', 'ditty-news-ticker');
219
+ }
220
+ }
221
+ }
222
+
223
+
224
+ /* --------------------------------------------------------- */
225
+ /* !WYSIWYG */
226
+ /* --------------------------------------------------------- */
227
+
228
+ if( !function_exists('mtphr_dnt_field_wysiwyg') ) {
229
+ function mtphr_dnt_field_wysiwyg( $args=array() ) {
230
+
231
+ if( isset($args['name']) ) {
232
+
233
+ $name = $args['name'];
234
+ $class = mtphr_dnt_field_class( $args );
235
+ $value = isset($args['value']) ? $args['value'] : '';
236
+
237
+ $editor_settings = array(
238
+ 'textarea_name' => $name,
239
+ 'textarea_rows' => 10
240
+ );
241
+ if( isset($args['editor_settings']) && is_array($args['editor_settings']) ) {
242
+ $editor_settings = wp_parse_args($args['editor_settings'], $editor_settings);
243
+ };
244
+
245
+ echo '<div class="'.$class.'"'.mtphr_dnt_field_atts($args).'>';
246
+ echo mtphr_dnt_subheading( $args );
247
+ wp_editor( $value, uniqid(), $editor_settings );
248
+ echo '</div>';
249
+
250
+ mtphr_dnt_field_append( $args );
251
+
252
+ } else {
253
+ echo __('Missing required data', 'ditty-news-ticker');
254
+ }
255
+ }
256
+ }
257
+
258
+
259
+ /* --------------------------------------------------------- */
260
+ /* !Codemirror - 2.0.0 */
261
+ /* --------------------------------------------------------- */
262
+
263
+ if( !function_exists('mtphr_dnt_field_codemirror') ) {
264
+ function mtphr_dnt_field_codemirror( $args=array() ) {
265
+
266
+ if( isset($args['name']) && isset($args['modes']) ) {
267
+
268
+ $name = $args['name'];
269
+ $class = mtphr_dnt_field_class( $args );
270
+ $value = isset($args['value']) ? $args['value'] : '';
271
+ $cols = isset($args['cols']) ? $args['cols'] : 60;
272
+ $rows = isset($args['rows']) ? $args['rows'] : 4;
273
+ $modes = isset($args['modes']) ? $args['modes'] : '';
274
+
275
+ $mode_classes = 'mtphr-dnt-codemirror';
276
+ if( is_array($modes) && count($modes) > 0 ) {
277
+ foreach( $modes as $i=>$mode ) {
278
+ $mode_classes .= ' mtphr-dnt-codemirror-'.$mode;
279
+ }
280
+ }
281
+
282
+ echo '<div class="'.$class.'">';
283
+ echo mtphr_dnt_subheading( $args );
284
+ echo '<div class="'.$mode_classes.'">';
285
+ echo '<textarea name="'.$name.'" cols="'.$cols.'" rows="'.$rows.'" '.mtphr_dnt_field_atts($args).'>'.$value.'</textarea>';
286
+ echo '</div>';
287
+ echo '</div>';
288
+
289
+ mtphr_dnt_field_append( $args );
290
+
291
+ } else {
292
+ echo __('Missing required data', 'ditty-news-ticker');
293
+ }
294
+ }
295
+ }
296
+
297
+
298
+ /* --------------------------------------------------------- */
299
+ /* !Checkbox - 2.0.0 */
300
+ /* --------------------------------------------------------- */
301
+
302
+ if( !function_exists('mtphr_dnt_field_checkbox') ) {
303
+ function mtphr_dnt_field_checkbox( $args=array() ) {
304
+
305
+ if( isset($args['name']) ) {
306
+
307
+ $name = $args['name'];
308
+ $class = mtphr_dnt_field_class( $args );
309
+ $value = isset($args['value']) ? $args['value'] : '';
310
+ $value = ($value == '1') ? 'on' : $value;
311
+ $label = isset($args['label']) ? $args['label'] : '';
312
+
313
+ echo '<div class="'.$class.'">';
314
+ echo mtphr_dnt_subheading( $args );
315
+ echo '<label><input type="checkbox" name="'.$name.'" value="on" '.checked('on', $value, false).' '.mtphr_dnt_field_atts($args).' /> '.$label.'</label>';
316
+ echo '</div>';
317
+
318
+ mtphr_dnt_field_append( $args );
319
+
320
+ } else {
321
+ echo __('Missing required data', 'ditty-news-ticker');
322
+ }
323
+ }
324
+ }
325
+
326
+
327
+ /* --------------------------------------------------------- */
328
+ /* !Checkboxes - 2.0.0 */
329
+ /* --------------------------------------------------------- */
330
+
331
+ if( !function_exists('mtphr_dnt_field_checkboxes') ) {
332
+ function mtphr_dnt_field_checkboxes( $args=array() ) {
333
+
334
+ if( isset($args['name']) ) {
335
+
336
+ $name = $args['name'];
337
+ $class = mtphr_dnt_field_class( $args );
338
+ $value = isset($args['value']) ? $args['value'] : array();
339
+ $options = isset($args['options']) ? $args['options'] : '';
340
+
341
+ echo '<div class="'.$class.' mtphr-dnt-clearfix">';
342
+ echo mtphr_dnt_subheading( $args );
343
+ if( is_array($options) && count($options) > 0 ) {
344
+ foreach( $options as $i=>$option ) {
345
+ $on = in_array($i, $value) ? $i : '';
346
+ echo '<label><input type="checkbox" name="'.$name.'['.$i.']" value="'.$i.'" '.checked($i, $on, false).' '.mtphr_dnt_field_atts($args).' /> '.$option.'</label>';
347
+ }
348
+ }
349
+ echo '</div>';
350
+
351
+ mtphr_dnt_field_append( $args );
352
+
353
+ } else {
354
+ echo __('Missing required data', 'ditty-news-ticker');
355
+ }
356
+ }
357
+ }
358
+
359
+
360
+ /* --------------------------------------------------------- */
361
+ /* !Radio buttons - 2.0.0 */
362
+ /* --------------------------------------------------------- */
363
+
364
+ if( !function_exists('mtphr_dnt_field_radio_buttons') ) {
365
+ function mtphr_dnt_field_radio_buttons( $args=array() ) {
366
+
367
+ if( isset($args['name']) && isset($args['options']) ) {
368
+
369
+ $name = $args['name'];
370
+ $class = mtphr_dnt_field_class( $args );
371
+ $value = isset($args['value']) ? $args['value'] : '';
372
+ $options = isset($args['options']) ? $args['options'] : '';
373
+
374
+ echo '<div class="'.$class.' mtphr-dnt-clearfix">';
375
+ echo mtphr_dnt_subheading( $args );
376
+ if( is_array($options) && count($options) > 0 ) {
377
+ foreach( $options as $i=>$option ) {
378
+ echo '<label><input type="radio" name="'.$name.'" value="'.$i.'" '.checked($i, $value, false).' '.mtphr_dnt_field_atts($args).' />&nbsp;'.$option.'</label>';
379
+ }
380
+ }
381
+ echo '</div>';
382
+
383
+ mtphr_dnt_field_append( $args );
384
+
385
+ } else {
386
+ echo __('Missing required data', 'ditty-news-ticker');
387
+ }
388
+ }
389
+ }
390
+
391
+
392
+ /* --------------------------------------------------------- */
393
+ /* !Menu select - 2.0.0 */
394
+ /* --------------------------------------------------------- */
395
+
396
+ if( !function_exists('mtphr_dnt_field_menu_select') ) {
397
+ function mtphr_dnt_field_menu_select( $args=array() ) {
398
+
399
+ if( isset($args['name']) ) {
400
+
401
+ $name = $args['name'];
402
+ $class = mtphr_dnt_field_class( $args );
403
+ $value = isset($args['value']) ? $args['value'] : '';
404
+ $default = isset($args['default']) ? true : false;
405
+ $menus = get_terms( 'nav_menu' );
406
+
407
+ echo '<div class="'.$class.'">';
408
+ echo mtphr_dnt_subheading( $args );
409
+ echo '<select name="'.$name.'" '.mtphr_dnt_field_atts($args).'>';
410
+ if( $default ) {
411
+ echo '<option value="default" '.selected( 'default', $value, false ).'>'.__('Use default', 'ditty-news-ticker').'</option>';
412
+ }
413
+ echo '<option value="none" '.selected( 'none', $value, false ).'>'.__('None', 'ditty-news-ticker').'</option>';
414
+ if( is_array($menus) && count($menus) > 0 ) {
415
+ foreach( $menus as $i=>$menu ) {
416
+ echo '<option value="'.$menu->slug.'" '.selected( $menu->slug, $value, false ).'>'.$menu->name.'</option>';
417
+ }
418
+ }
419
+ echo '</select>';
420
+ echo '</div>';
421
+
422
+ mtphr_dnt_field_append( $args );
423
+
424
+ } else {
425
+ echo __('Missing required data', 'ditty-news-ticker');
426
+ }
427
+ }
428
+ }
429
+
430
+
431
+
432
+ /* --------------------------------------------------------- */
433
+ /* !Widget area select - 2.0.0 */
434
+ /* --------------------------------------------------------- */
435
+
436
+ if( !function_exists('mtphr_dnt_field_widget_area_select') ) {
437
+ function mtphr_dnt_field_widget_area_select( $args=array() ) {
438
+
439
+ if( isset($args['name']) ) {
440
+
441
+ $name = $args['name'];
442
+ $class = mtphr_dnt_field_class( $args );
443
+ $value = isset($args['value']) ? $args['value'] : '';
444
+ $default = isset($args['default']) ? true : false;
445
+ $sidebars = $GLOBALS['wp_registered_sidebars'];
446
+
447
+ echo '<div class="'.$class.'">';
448
+ echo mtphr_dnt_subheading( $args );
449
+ echo '<select name="'.$name.'" '.mtphr_dnt_field_atts($args).'>';
450
+ if( $default ) {
451
+ echo '<option value="default">'.__('Use default', 'ditty-news-ticker').'</option>';
452
+ }
453
+ if( is_array($sidebars) && count($sidebars) > 0 ) {
454
+ foreach( $sidebars as $slug=>$sidebar ) {
455
+ echo '<option value="'.$slug.'" '.selected( $slug, $value, false ).'>'.$sidebar['name'].'</option>';
456
+ }
457
+ }
458
+ echo '</select>';
459
+ echo '</div>';
460
+
461
+ mtphr_dnt_field_append( $args );
462
+
463
+ } else {
464
+ echo __('Missing required data', 'ditty-news-ticker');
465
+ }
466
+ }
467
+ }
468
+
469
+
470
+ /* --------------------------------------------------------- */
471
+ /* !Single image - 2.0.0 */
472
+ /* --------------------------------------------------------- */
473
+
474
+ if( !function_exists('mtphr_dnt_field_image') ) {
475
+ function mtphr_dnt_field_image( $args=array() ) {
476
+
477
+ if( isset($args['name']) ) {
478
+
479
+ $name = $args['name'];
480
+ $class = mtphr_dnt_field_class( $args );
481
+ $value = isset($args['value']) ? $args['value'] : '';
482
+
483
+ echo '<div class="'.$class.'">';
484
+ echo mtphr_dnt_subheading( $args );
485
+ echo '<input type="hidden" name="'.$name.'" value="'.$value.'" '.mtphr_dnt_field_atts($args).' />';
486
+ if( $value != '' ) {
487
+ mtphr_dnt_render_single_image( $value );
488
+ echo '<a href="#" class="button mtphr-dnt-single-image-upload" style="display:none;">'.__('Add Image', 'ditty-news-ticker').'</a>';
489
+ } else {
490
+ echo '<a href="#" class="button mtphr-dnt-single-image-upload">'.__('Add Image', 'ditty-news-ticker').'</a>';
491
+ }
492
+ echo '</div>';
493
+
494
+ mtphr_dnt_field_append( $args );
495
+
496
+ } else {
497
+ echo __('Missing required data', 'ditty-news-ticker');
498
+ }
499
+ }
500
+ }
501
+
502
+
503
+ /* --------------------------------------------------------- */
504
+ /* !Color picker & opacity - 2.0.0 */
505
+ /* --------------------------------------------------------- */
506
+
507
+ if( !function_exists('mtphr_dnt_field_minicolors') ) {
508
+ function mtphr_dnt_field_minicolors( $args=array() ) {
509
+
510
+ if( isset($args['name']) ) {
511
+
512
+ $name = $args['name'];
513
+ $class = mtphr_dnt_field_class( $args );
514
+ $value = isset($args['value']) ? $args['value'] : '';
515
+
516
+ $opacity_name = isset($args['opacity_name']) ? $args['opacity_name'] : '';
517
+ $default = isset($args['default']) ? true : false;
518
+ if( $default ) {
519
+ $opacity_value = (isset($args['opacity_value']) && $args['opacity_value'] != '' ) ? $args['opacity_value'] : '';
520
+ } else {
521
+ $opacity_value = (isset($args['opacity_value']) && $args['opacity_value'] != '' ) ? $args['opacity_value'] : 100;
522
+ }
523
+ $default_checked = ($opacity_value != '') ? 'checked="checked"' : '';
524
+
525
+ echo '<div class="'.$class.'">';
526
+ echo mtphr_dnt_subheading( $args );
527
+ echo '<table class="mtphr-dnt-minicolors-table">';
528
+ echo '<tr>';
529
+ echo '<td class="mtphr-dnt-minicolors-td">';
530
+ echo '<div class="mtphr-dnt-minicolors">';
531
+ echo '<input type="text" size="24" name="'.$name.'" value="'.$value.'" />';
532
+ echo '</div>';
533
+ echo '</td>';
534
+ if( $opacity_name != '' ) {
535
+ echo '<td class="mtphr-dnt-ui-slider-label-td">';
536
+ if( $default ) {
537
+ echo '<label><input type="checkbox" name="'.$opacity_name.'" value="'.$opacity_value.'" '.$default_checked.' />'.__('Override default opacity', 'ditty-news-ticker').'</label>';
538
+ } else {
539
+ echo '<label>'.__('Opacity', 'ditty-news-ticker').'</label>';
540
+ echo '<input type="hidden" name="'.$opacity_name.'" value="'.$opacity_value.'" '.mtphr_dnt_field_atts($args).' />';
541
+ }
542
+ echo '</td>';
543
+ echo '<td class="mtphr-dnt-ui-slider-td">';
544
+ echo '<div class="mtphr-dnt-opacity-slider"></div>';
545
+ echo '</td>';
546
+ echo '<td class="mtphr-dnt-ui-slider-value-td">';
547
+ echo '<span>'.$opacity_value.'%</span>';
548
+ echo '</td>';
549
+ }
550
+ echo '</tr>';
551
+ echo '</table>';
552
+ echo '</div>';
553
+
554
+ mtphr_dnt_field_append( $args );
555
+
556
+ } else {
557
+ echo __('Missing required data', 'ditty-news-ticker');
558
+ }
559
+ }
560
+ }
561
+
562
+
563
+ /* --------------------------------------------------------- */
564
+ /* !WOW Animations - 2.0.0 */
565
+ /* --------------------------------------------------------- */
566
+
567
+ if( !function_exists('mtphr_dnt_field_wow_animations') ) {
568
+ function mtphr_dnt_field_wow_animations( $args=array() ) {
569
+
570
+ if( isset($args['name']) || isset($args['content_name']) || isset($args['sidebar_name']) ) {
571
+
572
+ $name = isset($args['name']) ? $args['name'] : '';
573
+ $value = isset($args['value']) ? $args['value'] : '';
574
+
575
+ $content_name = isset($args['content_name']) ? $args['content_name'] : '';
576
+ $content_value = isset($args['content_value']) ? $args['content_value'] : '';
577
+
578
+ $default = isset($args['default']) ? true : false;
579
+
580
+ $class = mtphr_dnt_field_class( $args );
581
+
582
+ echo '<div class="'.$class.'">';
583
+ echo mtphr_dnt_subheading( $args );
584
+ echo '<table class="mtphr-dnt-wow-animations-table">';
585
+ echo '<tr>';
586
+ echo '<th class="mtphr-dnt-wow-animations-heading"><small>'.__('Element', 'ditty-news-ticker').'</small></th>';
587
+ echo '<th><small>'.__('Animation', 'ditty-news-ticker').'</small></th>';
588
+ echo '<th><small>'.__('Delay', 'ditty-news-ticker').'</small></th>';
589
+ echo '</tr>';
590
+
591
+ if( $name != '' ) {
592
+ $enabled = isset($value['enabled']) ? $value['enabled'] : '';
593
+ $delay = isset($value['delay']) ? $value['delay'] : '';
594
+ $animation = isset($value['animation']) ? $value['animation'] : '';
595
+ echo '<tr>';
596
+ echo '<th class="mtphr-dnt-wow-animations-heading">';
597
+ echo __('Header', 'ditty-news-ticker');
598
+ echo '</th>';
599
+ echo '<td>';
600
+ echo mtphr_dnt_animate_select($name.'[animation]', $animation, $default);
601
+ echo '</td>';
602
+ echo '<td>';
603
+ echo '<label><input type="text" size="3" name="'.$name.'[delay]" value="'.$delay.'" /> '.__('seconds', 'ditty-news-ticker').'</label>';
604
+ echo '</td>';
605
+ echo '</tr>';
606
+ }
607
+ if( $content_name != '' ) {
608
+ $enabled = isset($content_value['enabled']) ? $content_value['enabled'] : '';
609
+ $delay = isset($content_value['delay']) ? $content_value['delay'] : '';
610
+ $animation = isset($content_value['animation']) ? $content_value['animation'] : '';
611
+ echo '<tr>';
612
+ echo '<th class="mtphr-dnt-wow-animations-heading">';
613
+ echo __('Content', 'ditty-news-ticker');
614
+ echo '</th>';
615
+ echo '<td>';
616
+ echo mtphr_dnt_animate_select($content_name.'[animation]', $animation, $default);
617
+ echo '</td>';
618
+ echo '<td>';
619
+ echo '<label><input type="text" size="3" name="'.$content_name.'[delay]" value="'.$delay.'" /> '.__('seconds', 'ditty-news-ticker').'</label>';
620
+ echo '</td>';
621
+ echo '</tr>';
622
+ }
623
+
624
+ echo '</table>';
625
+ echo '</div>';
626
+
627
+ mtphr_dnt_field_append( $args );
628
+
629
+ } else {
630
+ echo __('Missing required data', 'ditty-news-ticker');
631
+ }
632
+ }
633
+ }
634
+
635
+
636
+ /* --------------------------------------------------------- */
637
+ /* !List - 2.0.0 */
638
+ /* --------------------------------------------------------- */
639
+
640
+ if( !function_exists('mtphr_dnt_field_list') ) {
641
+ function mtphr_dnt_field_list( $args=array() ) {
642
+
643
+ $html = '';
644
+
645
+ if( isset($args['name']) && isset($args['fields']) ) {
646
+
647
+ $name = $args['name'];
648
+ $class = mtphr_dnt_field_class( $args );
649
+
650
+ $fields = $args['fields'];
651
+ $value = isset($args['value']) ? $args['value'] : '';
652
+
653
+ echo '<div class="'.$class.'">';
654
+ echo mtphr_dnt_subheading( $args );
655
+ echo '<div class="mtphr-dnt-list">';
656
+
657
+ // Check for labels
658
+ $total_fields = count($fields);
659
+ $counter = 1;
660
+
661
+ // Display the fields
662
+ if( is_array($value) && count($value) > 0 ) {
663
+ foreach( $value as $i=>$val ) {
664
+ mtphr_dnt_list_item( $name, $fields, $val );
665
+ }
666
+ } else {
667
+ mtphr_dnt_list_item( $name, $fields );
668
+ }
669
+
670
+ echo '</div>';
671
+ echo '</div>';
672
+
673
+ mtphr_dnt_field_append( $args );
674
+
675
+ } else {
676
+ echo __('Missing required data', 'ditty-news-ticker');
677
+ }
678
+ }
679
+ }
680
+
681
+
682
+ /* --------------------------------------------------------- */
683
+ /* !Sort - 2.0.0 */
684
+ /* --------------------------------------------------------- */
685
+
686
+ if( !function_exists('mtphr_dnt_field_sort') ) {
687
+ function mtphr_dnt_field_sort( $args=array() ) {
688
+
689
+ $html = '';
690
+
691
+ if( isset($args['name']) && isset($args['items']) ) {
692
+
693
+ $name = $args['name'];
694
+ $class = mtphr_dnt_field_class( $args );
695
+
696
+ $items = $args['items'];
697
+ $value = isset($args['value']) ? $args['value'] : '';
698
+ $optional_fields = isset($args['optional_fields']) ? $args['optional_fields'] : false;
699
+
700
+ echo '<div class="'.$class.'">';
701
+ echo mtphr_dnt_subheading( $args );
702
+ echo '<div class="mtphr-dnt-sort">';
703
+
704
+ // Display the fields
705
+ if( is_array($value) && count($value) > 0 ) {
706
+ foreach( $value as $i => $val ) {
707
+
708
+ $active = ($val == 'on' || !$optional_fields) ? ' active' : '';
709
+
710
+ $fields = isset($items[$i]['fields']) ? $items[$i]['fields'] : '';
711
+ $total_fields = count($fields);
712
+ $has_fields = ( is_array($fields) && $total_fields > 0 ) ? ' has-fields' : '';
713
+
714
+ echo '<div class="mtphr-dnt-sort-item'.$active.$has_fields.'">';
715
+ echo mtphr_dnt_sort_checkbox( $name.'['.$i.']', $val, $optional_fields, $items[$i] );
716
+
717
+ if( is_array($fields) && $total_fields > 0 ) {
718
+ echo '<div class="mtphr-dnt-sort-item-fields'.$active.' mtphr-dnt-clearfix">';
719
+ foreach( $fields as $fname=>$field ) {
720
+
721
+ // Set some default values
722
+ $defaults = array(
723
+ 'heading' => '',
724
+ 'type' => '',
725
+ 'help' => ''
726
+ );
727
+ $field = wp_parse_args( $field, $defaults );
728
+
729
+ // Set a field class
730
+ $class = mtphr_dnt_sort_item_class( $field );
731
+ echo '<div class="'.$class.'">';
732
+
733
+ // Create the field
734
+ if( function_exists('mtphr_dnt_field_'.$field['type']) ) {
735
+ $field['subheading'] = isset($field['heading']) ? $field['heading'] : '';
736
+ $field['subhelp'] = isset($field['help']) ? $field['help'] : '';
737
+ call_user_func( 'mtphr_dnt_field_'.$field['type'], $field );
738
+ }
739
+
740
+ echo '</div>';
741
+ }
742
+ echo '</div>';
743
+ }
744
+
745
+ echo '</div>';
746
+
747
+ }
748
+ }
749
+
750
+ echo '</div>';
751
+ echo '</div>';
752
+
753
+ mtphr_dnt_field_append( $args );
754
+
755
+ } else {
756
+ echo __('Missing required data', 'ditty-news-ticker');
757
+ }
758
+ }
759
+ }
760
+
includes/admin/fields/helpers.php ADDED
@@ -0,0 +1,487 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* --------------------------------------------------------- */
4
+ /* !Create the metaboxes - 2.0.0 */
5
+ /* --------------------------------------------------------- */
6
+
7
+ if( !function_exists('mtphr_dnt_metabox') ) {
8
+ function mtphr_dnt_metabox( $id='', $fields=false ) {
9
+
10
+ if( $id == '' || !$fields ) {
11
+ return;
12
+ }
13
+
14
+ echo '<div id="'.esc_attr($id).'" class="mtphr-dnt-metabox">';
15
+
16
+ // Loop through the fiels
17
+ if( is_array($fields) && count($fields) > 0 ) {
18
+ foreach( $fields as $i=>$field ) {
19
+
20
+ // Set some default values
21
+ $defaults = array(
22
+ 'id' => '',
23
+ 'heading' => '',
24
+ 'description' => '',
25
+ 'help' => '',
26
+ 'type' => '',
27
+ 'name' => '',
28
+ 'value' => ''
29
+ );
30
+ $field = wp_parse_args( $field, $defaults );
31
+
32
+ $id = (isset($field['id']) && $field['id'] != '') ? ' id="'.esc_attr($field['id']).'"' : '';
33
+ echo '<div'.$id.' class="mtphr-dnt-field-group mtphr-dnt-clearfix">';
34
+
35
+ // Create the label
36
+ echo mtphr_dnt_heading( $field['heading'], $field['description'], $field['help'] );
37
+
38
+ // Create the field
39
+ if( function_exists('mtphr_dnt_field_'.$field['type']) ) {
40
+ call_user_func( 'mtphr_dnt_field_'.$field['type'], $field );
41
+ }
42
+
43
+ echo '</div>';
44
+
45
+ }
46
+ }
47
+
48
+ echo '</div>';
49
+
50
+ }
51
+ }
52
+
53
+
54
+ /* --------------------------------------------------------- */
55
+ /* !Return re-formatted classes - 2.0.0 */
56
+ /* --------------------------------------------------------- */
57
+
58
+ if( !function_exists('mtphr_dnt_field_class_main') ) {
59
+ function mtphr_dnt_field_class_main( $class ) {
60
+
61
+ $class = preg_replace( '%\[%', '_', $class );
62
+ $class = preg_replace( '%\]\[%', '_', $class );
63
+ $class = preg_replace( '%\]%', '', $class );
64
+ $class = ltrim( $class, '_' );
65
+
66
+ return esc_attr( $class );
67
+ }
68
+ }
69
+ if( !function_exists('mtphr_dnt_field_class') ) {
70
+ function mtphr_dnt_field_class( $field ) {
71
+
72
+ if( !isset($field['name']) || !isset($field['type']) ) {
73
+ return;
74
+ }
75
+
76
+ $name = $field['name'];
77
+ $type = $field['type'];
78
+ $class = isset($args['class']) ? $field['class'] : $field['name'];
79
+
80
+ return 'mtphr-dnt-field mtphr-dnt-field-type-'.$type.' mtphr-dnt-field-'.mtphr_dnt_field_class_main( $class );
81
+ }
82
+ }
83
+ if( !function_exists('mtphr_dnt_list_item_class') ) {
84
+ function mtphr_dnt_list_item_class( $field ) {
85
+
86
+ if( !isset($field['name']) || !isset($field['type']) ) {
87
+ return;
88
+ }
89
+
90
+ $name = $field['name'];
91
+ $type = $field['type'];
92
+ $class = isset($args['class']) ? $field['class'] : $field['name'];
93
+
94
+ return 'mtphr-dnt-list-field mtphr-dnt-list-field-type-'.$type.' mtphr-dnt-list-field-'.mtphr_dnt_field_class_main( $class );
95
+ }
96
+ }
97
+ if( !function_exists('mtphr_dnt_sort_item_class') ) {
98
+ function mtphr_dnt_sort_item_class( $field ) {
99
+
100
+ if( !isset($field['name']) || !isset($field['type']) ) {
101
+ return;
102
+ }
103
+
104
+ $name = $field['name'];
105
+ $type = $field['type'];
106
+ $class = isset($args['class']) ? $field['class'] : $field['name'];
107
+
108
+ return 'mtphr-dnt-sort-field mtphr-dnt-sort-field-type-'.$type.' mtphr-dnt-sort-field-'.mtphr_dnt_field_class_main( $class );
109
+ }
110
+ }
111
+
112
+
113
+ /* --------------------------------------------------------- */
114
+ /* !Return a list of attributes - 2.0.0 */
115
+ /* --------------------------------------------------------- */
116
+
117
+ if( !function_exists('mtphr_dnt_field_atts') ) {
118
+ function mtphr_dnt_field_atts( $field ) {
119
+
120
+ $html = '';
121
+
122
+ if( isset($field['atts']) ) {
123
+ if( is_array($field['atts']) && count($field['atts']) > 0 ) {
124
+ foreach( $field['atts'] as $i=>$att ) {
125
+ $html .= esc_attr($i).'="'.esc_attr($att).'" ';
126
+ }
127
+ }
128
+ }
129
+
130
+ return $html;
131
+ }
132
+ }
133
+
134
+
135
+ /* --------------------------------------------------------- */
136
+ /* !Create a metabox heading - 2.0.0 */
137
+ /* --------------------------------------------------------- */
138
+
139
+ if( !function_exists('mtphr_dnt_heading') ) {
140
+ function mtphr_dnt_heading( $heading='', $description='', $help='' ) {
141
+
142
+ if( $heading == '' && $description == '' ) {
143
+ return;
144
+ }
145
+
146
+ $html = '';
147
+ $html .= '<div class="mtphr-dnt-heading mtphr-dnt-clearfix">';
148
+ if( $heading != '' ) {
149
+ $html .= '<h3>'.$heading.'</h3>';
150
+ }
151
+ if( $help != '' ) {
152
+ $html .= '<a href="#" class="mtphr-dnt-help" data-tooltip="'.$help.'"><i class="dashicons dashicons-editor-help"></i></a>';
153
+ }
154
+ if( $description != '' ) {
155
+ $html .= '<p>'.$description.'</p>';
156
+ }
157
+ $html .= '</div>';
158
+
159
+ return $html;
160
+ }
161
+ }
162
+
163
+
164
+ /* --------------------------------------------------------- */
165
+ /* !Create a metabox subheading - 2.0.0 */
166
+ /* --------------------------------------------------------- */
167
+
168
+ if( !function_exists('mtphr_dnt_subheading') ) {
169
+ function mtphr_dnt_subheading( $args=array() ) {
170
+
171
+ if( isset($args['subheading']) && $args['subheading'] != '' ) {
172
+
173
+ $html = '<div class="mtphr-dnt-subheading">';
174
+ $html .= '<span class="mtphr-dnt-subheading-label">'.$args['subheading'].'</span>';
175
+ if( isset($args['subhelp']) && $args['subhelp'] != '' ) {
176
+ $html .= '<a href="#" class="mtphr-dnt-help" data-tooltip="'.$args['subhelp'].'"><i class="dashicons dashicons-editor-help"></i></a>';
177
+ }
178
+ $html .= '</div>';
179
+
180
+ return $html;
181
+
182
+ }
183
+ }
184
+ }
185
+
186
+
187
+ /* --------------------------------------------------------- */
188
+ /* !Append fields to another field - 2.0.0 */
189
+ /* --------------------------------------------------------- */
190
+
191
+ if( !function_exists('mtphr_dnt_field_append') ) {
192
+ function mtphr_dnt_field_append( $parent_field ) {
193
+
194
+ if( isset($parent_field['append']) && is_array($parent_field['append']) ) {
195
+ if( is_array($parent_field['append']) && count($parent_field['append']) > 0 ) {
196
+ foreach( $parent_field['append'] as $i=>$field ) {
197
+
198
+ // Create the field
199
+ if( function_exists('mtphr_dnt_field_'.$field['type']) ) {
200
+
201
+ $field['subheading'] = isset($field['heading']) ? $field['heading'] : '';
202
+ $field['subhelp'] = isset($field['help']) ? $field['help'] : '';
203
+
204
+ call_user_func( 'mtphr_dnt_field_'.$field['type'], $field );
205
+ }
206
+
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+
213
+
214
+ /* --------------------------------------------------------- */
215
+ /* !Render a single image - 2.0.0 */
216
+ /* --------------------------------------------------------- */
217
+
218
+ if( !function_exists('mtphr_dnt_render_single_image') ) {
219
+ function mtphr_dnt_render_single_image( $id, $title = true ) {
220
+
221
+ $img = get_post( $id );
222
+ echo '<span class="mtphr-dnt-single-image">';
223
+ echo wp_get_attachment_image( $id, array( 300, 80 ) );
224
+ if( $title ) {
225
+ echo '<span class="mtphr-dnt-single-image-title">'.$img->post_title.'</span>';
226
+ }
227
+ echo '<a href="#" class="mtphr-dnt-delete"><i class="dashicons dashicons-no"></i></a>';
228
+ echo '</span>';
229
+
230
+ }
231
+ }
232
+
233
+
234
+ /* --------------------------------------------------------- */
235
+ /* !Setup the animation selects - 2.0.0 */
236
+ /* --------------------------------------------------------- */
237
+
238
+ if( !function_exists('mtphr_dnt_animate_select') ) {
239
+ function mtphr_dnt_animate_select( $name, $value, $default=false ) {
240
+
241
+ $options = array(
242
+ 'Attention Seekers' => array(
243
+ 'bounce',
244
+ 'flash',
245
+ 'pulse',
246
+ 'rubberBand',
247
+ 'shake',
248
+ 'swing',
249
+ 'tada',
250
+ 'wobble'
251
+ ),
252
+ 'Bouncing Entrances' => array(
253
+ 'bounceIn',
254
+ 'bounceInDown',
255
+ 'bounceInLeft',
256
+ 'bounceInRight',
257
+ 'bounceInUp'
258
+ ),
259
+ 'Bouncing Exits' => array(
260
+ 'bounceOut',
261
+ 'bounceOutDown',
262
+ 'bounceOutLeft',
263
+ 'bounceOutRight',
264
+ 'bounceOutUp'
265
+ ),
266
+ 'Fading Entrances' => array(
267
+ 'fadeIn',
268
+ 'fadeInDown',
269
+ 'fadeInDownBig',
270
+ 'fadeInLeft',
271
+ 'fadeInLeftBig',
272
+ 'fadeInRight',
273
+ 'fadeInRightBig',
274
+ 'fadeInUp',
275
+ 'fadeInUpBig'
276
+ ),
277
+ 'Fading Exits' => array(
278
+ 'fadeOut',
279
+ 'fadeOutDown',
280
+ 'fadeOutDownBig',
281
+ 'fadeOutLeft',
282
+ 'fadeOutLeftBig',
283
+ 'fadeOutRight',
284
+ 'fadeOutRightBig',
285
+ 'fadeOutUp',
286
+ 'fadeOutUpBig'
287
+ ),
288
+ 'Flippers' => array(
289
+ 'flip',
290
+ 'flipInX',
291
+ 'flipInY',
292
+ 'flipOutX',
293
+ 'flipOutY'
294
+ ),
295
+ 'Lightspeed' => array(
296
+ 'lightSpeedIn',
297
+ 'lightSpeedOut'
298
+ ),
299
+ 'Rotating Entrances' => array(
300
+ 'rotateIn',
301
+ 'rotateInDownLeft',
302
+ 'rotateInDownRight',
303
+ 'rotateInUpLeft',
304
+ 'rotateInUpRight'
305
+ ),
306
+ 'Rotating Exits' => array(
307
+ 'rotateOut',
308
+ 'rotateOutDownLeft',
309
+ 'rotateOutDownRight',
310
+ 'rotateOutUpLeft',
311
+ 'rotateOutUpRight'
312
+ ),
313
+ 'Specials' => array(
314
+ 'hinge',
315
+ 'rollIn',
316
+ 'rollOut'
317
+ ),
318
+ 'Zoom Entrances' => array(
319
+ 'zoomIn',
320
+ 'zoomInDown',
321
+ 'zoomInLeft',
322
+ 'zoomInRight',
323
+ 'zoomInUp'
324
+ ),
325
+ 'Zoom Exits' => array(
326
+ 'zoomOut',
327
+ 'zoomOutDown',
328
+ 'zoomOutLeft',
329
+ 'zoomOutRight',
330
+ 'zoomOutUp'
331
+ )
332
+ );
333
+
334
+ $html = '';
335
+ $html .= '<select name="'.$name.'">';
336
+ if( $default ) {
337
+ $html .= '<option value="" '.selected('', $value, false).'>'.__('Use Default Value', 'ditty-news-ticker').'</option>';
338
+ }
339
+ $html .= '<option value="none" '.selected('none', $value, false).'>'.__('None', 'ditty-news-ticker').'</option>';
340
+ if( is_array($options) && count($options) > 0 ) {
341
+ foreach( $options as $label=>$group ) {
342
+ $html .= '<optgroup label="'.$label.'">';
343
+ if( is_array($group) && count($group) > 0 ) {
344
+ foreach( $group as $i=>$option ) {
345
+ $html .= '<option value="'.$option.'" '.selected($option, $value, false).'>'.$option.'</option>';
346
+ }
347
+ }
348
+ $html .= '</optgroup>';
349
+ }
350
+ }
351
+ $html .= '</select>';
352
+
353
+ return $html;
354
+ }
355
+ }
356
+
357
+
358
+ /* --------------------------------------------------------- */
359
+ /* !List helper functions - 2.0.0 */
360
+ /* --------------------------------------------------------- */
361
+
362
+ if( !function_exists('mtphr_dnt_list_heading') ) {
363
+ function mtphr_dnt_list_heading() {
364
+
365
+ $html = '';
366
+ $html .= '<div class="mtphr-dnt-list-heading mtphr-dnt-clearfix">';
367
+ $html .= '<i class="dashicons dashicons-menu"></i>';
368
+ $html .= '<div class="mtphr-dnt-list-buttons">';
369
+ $html .= '<a class="mtphr-dnt-list-delete" href="#"><i class="dashicons dashicons-no"></i></a>';
370
+ $html .= '<a class="mtphr-dnt-list-add" href="#"><i class="dashicons dashicons-plus"></i></a>';
371
+ $html .= '</div>';
372
+ $html .= '</div>';
373
+ return $html;
374
+ }
375
+ }
376
+
377
+ if( !function_exists('mtphr_dnt_list_item') ) {
378
+ function mtphr_dnt_list_item( $name, $fields=array(), $val=false ) {
379
+
380
+ echo '<div class="mtphr-dnt-list-item mtphr-dnt-clearfix">';
381
+ echo mtphr_dnt_list_heading();
382
+
383
+ // If this is a single field
384
+ if( isset($fields['type']) && !is_array($fields['type']) ) {
385
+
386
+ // Create the field
387
+ if( function_exists('mtphr_dnt_field_'.$fields['type']) ) {
388
+ $fields['subheading'] = isset($fields['heading']) ? $fields['heading'] : '';
389
+ $fields['subhelp'] = isset($fields['help']) ? $fields['help'] : '';
390
+ $fields['name'] = $name.'[]';
391
+ $fields['value'] = $val;
392
+ call_user_func( 'mtphr_dnt_field_'.$fields['type'], $fields );
393
+ }
394
+
395
+ // If this is multiple fields
396
+ } else {
397
+
398
+ if( is_array($fields) && count($fields) > 0 ) {
399
+ foreach( $fields as $fname=>$field ) {
400
+
401
+ // Set some default values
402
+ $defaults = array(
403
+ 'heading' => '',
404
+ 'type' => '',
405
+ 'help' => ''
406
+ );
407
+ $field = wp_parse_args( $field, $defaults );
408
+
409
+ // Append the field data
410
+ $field['name'] = $name.'['.$fname.']';
411
+ $field['value'] = isset($val[$fname]) ? $val[$fname] : '';
412
+ $field['atts'] = array(
413
+ 'data-name' => $name,
414
+ 'data-key' => $fname
415
+ );
416
+
417
+ // Set a field class
418
+ $class = mtphr_dnt_list_item_class( $field );
419
+ echo '<div class="'.$class.'">';
420
+
421
+ // Create the field
422
+ if( function_exists('mtphr_dnt_field_'.$field['type']) ) {
423
+ $field['subheading'] = isset($field['heading']) ? $field['heading'] : '';
424
+ $field['subhelp'] = isset($field['help']) ? $field['help'] : '';
425
+ call_user_func( 'mtphr_dnt_field_'.$field['type'], $field );
426
+ }
427
+
428
+ echo '</div>';
429
+ }
430
+ }
431
+ }
432
+
433
+ echo '</div>';
434
+ }
435
+ }
436
+
437
+
438
+ /* --------------------------------------------------------- */
439
+ /* !Sort helper functions - 2.0.0 */
440
+ /* --------------------------------------------------------- */
441
+
442
+ if( !function_exists('mtphr_dnt_sort_checkbox') ) {
443
+ function mtphr_dnt_sort_checkbox( $name, $val, $optional_fields=false, $args=array() ) {
444
+
445
+ $heading = isset($args['heading']) ? $args['heading'] : '';
446
+ $help = isset($args['help']) ? $args['help'] : '';
447
+ $optional = $optional_fields ? ' optional' : '';
448
+ $val = $optional_fields ? $val : 'on';
449
+
450
+ $html = '';
451
+ $html .= '<div class="mtphr-dnt-sort-heading'.$optional.'">';
452
+ $html .= '<i class="dashicons dashicons-menu"></i>';
453
+ $html .= '<div href="#" class="mtphr-dnt-sort-heading-title">';
454
+ if( $optional_fields ) {
455
+ $html .= '<i class="dashicons dashicons-yes"></i> ';
456
+ }
457
+ $html .= $heading.'</div>';
458
+ if( $help != '' ) {
459
+ $html .= '<span class="mtphr-dnt-help" data-tooltip="'.$help.'"><i class="dashicons dashicons-editor-help"></i></span>';
460
+ }
461
+ $html .= '<input type="hidden" name="'.$name.'" value="'.$val.'" />';
462
+ $html .= '</div>';
463
+ return $html;
464
+ }
465
+ }
466
+
467
+
468
+ /* --------------------------------------------------------- */
469
+ /* !Select helper functions - 2.0.0 */
470
+ /* --------------------------------------------------------- */
471
+
472
+ if( !function_exists('mtphr_dnt_select_help') ) {
473
+ function mtphr_dnt_select_help( $option ) {
474
+
475
+ $label_split = explode(':|:', $option);
476
+ $label = $label_split[0];
477
+ $help = '';
478
+ if( count($label_split) == 2 ) {
479
+ $help = ' data-help="'.$label_split[1].'"';
480
+ }
481
+
482
+ return array(
483
+ 'label' => $label,
484
+ 'help' => $help
485
+ );
486
+ }
487
+ }
includes/admin/meta-boxes.php CHANGED
@@ -1,19 +1,20 @@
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>';
@@ -22,7 +23,7 @@ function mtphr_dnt_display_code() {
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>';
@@ -36,18 +37,23 @@ function mtphr_dnt_display_code() {
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 );
@@ -55,319 +61,366 @@ function mtphr_dnt_option_buttons() {
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>&nbsp;';
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>&nbsp;';
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.5 */
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 mtphr-dnt-advanced-list">';
219
- echo '<tr>';
220
- echo '<th class="mtphr-dnt-list-handle"></th>';
221
-
222
- $label = __('Ticker text', 'ditty-news-ticker');
223
- if( $settings['wysiwyg'] == '1' ) {
224
- $label .= '<div class="mtphr-dnt-notice">'.__('<strong>Notice:</strong> When using the WYSIWYG editor you must save your ticker after adding or re-arranging ticks.', 'ditty-news-ticker').'</div>';
225
- }
226
- echo '<th>'.$label.'</th>';
227
- echo '<th>'.__('Link', 'ditty-news-ticker').'</th>';
228
- echo '<th class="mtphr-dnt-default-target">'.__('Target', 'ditty-news-ticker').'</th>';
229
- echo '<th class="mtphr-dnt-default-nofollow">'.__('NF', 'ditty-news-ticker').'</th>';
230
- echo '<th class="mtphr-dnt-list-delete"></th>';
231
- echo '<th class="mtphr-dnt-list-add"></th>';
232
- echo '</tr>';
233
- if( is_array($ticks) && count($ticks) > 0 ) {
234
- foreach( $ticks as $i=>$tick ) {
235
- mtphr_dnt_render_default_tick( $settings, $tick );
236
- }
237
- } else {
238
- mtphr_dnt_render_default_tick( $settings );
239
- }
240
- echo '</table>';
241
- echo '</td>';
242
- echo '</tr>';
243
-
244
- echo '</table>';
245
- }
246
- }
247
-
248
- if( !function_exists('mtphr_dnt_render_default_tick') ) {
249
- function mtphr_dnt_render_default_tick( $settings, $tick=false ) {
250
-
251
- $text = ( isset($tick) && isset($tick['tick']) ) ? $tick['tick'] : '';
252
- $link = ( isset($tick) && isset($tick['link']) ) ? $tick['link'] : '';
253
- $target = ( isset($tick) && isset($tick['target']) ) ? $tick['target'] : '';
254
- $nofollow = ( isset($tick) && isset($tick['nofollow']) ) ? $tick['nofollow'] : '';
255
-
256
- echo '<tr class="mtphr-dnt-list-item">';
257
- echo '<td class="mtphr-dnt-list-handle"><span></span></td>';
258
- echo '<td class="mtphr-dnt-default-tick mtphr-dnt-wysiwyg-container" data-name="_mtphr_dnt_ticks" data-key="tick">';
259
- if( $settings['wysiwyg'] == '1' ) {
260
- $editor_settings = array();
261
- $editor_settings['media_buttons'] = true;
262
- $editor_settings['textarea_rows'] = 6;
263
- $editor_settings['editor_class'] = 'mtphr-dnt-wysiwyg';
264
- $editor_settings['textarea_name'] = '_mtphr_dnt_ticks[tick]';
265
- wp_editor( $text, 'mtphrdnttick'.uniqid(), $editor_settings );
266
- } else {
267
- echo '<textarea name="_mtphr_dnt_ticks[tick]" data-name="_mtphr_dnt_ticks" data-key="tick">'.$text.'</textarea>';
268
- }
269
- echo '</td>';
270
- echo '<td class="mtphr-dnt-default-link">';
271
- echo '<input type="text" name="_mtphr_dnt_ticks[link]" data-name="_mtphr_dnt_ticks" data-key="link" value="'.$link.'" />';
272
- echo '</td>';
273
- echo '<td class="mtphr-dnt-default-target">';
274
- echo '<select name="_mtphr_dnt_ticks[target]" data-name="_mtphr_dnt_ticks" data-key="target">';
275
- echo '<option value="_self" '.selected('_self', $target, false).'>_self</option>';
276
- echo '<option value="_blank" '.selected('_blank', $target, false).'>_blank</option>';
277
- echo '</select>';
278
- echo '</td>';
279
- echo '<td class="mtphr-dnt-default-nofollow">';
280
- echo '<input type="checkbox" name="_mtphr_dnt_ticks[nofollow]" data-name="_mtphr_dnt_ticks" data-key="nofollow" value="1" '.checked('1', $nofollow, false).' />';
281
- echo '</td>';
282
- echo '<td class="mtphr-dnt-list-delete"><a href="#"></a></td>';
283
- echo '<td class="mtphr-dnt-list-add"><a href="#"></a></td>';
284
- echo '</tr>';
285
  }
286
  }
287
 
288
-
289
-
290
  /* --------------------------------------------------------- */
291
- /* !Render the mixed type metabox - 1.4.5 */
292
  /* --------------------------------------------------------- */
293
 
294
- if( !function_exists('mtphr_dnt_mixed_render_metabox') ) {
295
- function mtphr_dnt_mixed_render_metabox() {
296
-
297
- global $post;
298
-
299
- $ticks = get_post_meta( $post->ID, '_mtphr_dnt_mixed_ticks', true );
300
- $types = mtphr_dnt_types_array();
301
- unset($types['mixed']);
302
 
303
- echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
 
304
 
305
- echo '<table class="mtphr-dnt-table">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
 
307
- echo '<tr>';
308
- echo '<td class="mtphr-dnt-label">';
309
- echo '<label>'.__('Tick selection', 'ditty-news-ticker').'</label>';
310
- echo '<small>'.__('Select the ticks you would like to display by choosing the tick type and the offset position of the selected feed', 'ditty-news-ticker').'</small>';
311
- echo '</td>';
312
- echo '<td>';
313
- echo '<table class="mtphr-dnt-list mtphr-dnt-mixed-list mtphr-dnt-advanced-list" style="width:auto;">';
314
- if( is_array($ticks) && count($ticks) > 0 ) {
315
- foreach( $ticks as $i=>$tick ) {
316
- mtphr_dnt_render_mixed_tick( $types, $tick, $i );
317
- }
318
- } else {
319
- mtphr_dnt_render_mixed_tick( $types );
320
- }
321
- echo '</table>';
322
- echo '</td>';
323
- echo '</tr>';
324
-
325
- echo '</table>';
326
- }
327
- }
328
-
329
- if( !function_exists('mtphr_dnt_render_mixed_tick') ) {
330
- function mtphr_dnt_render_mixed_tick( $types, $tick=false, $i=false ) {
331
-
332
- $tick_type = ( isset($tick) && isset($tick['type']) ) ? $tick['type'] : '';
333
- $tick_offset = ( isset($tick) && isset($tick['offset']) ) ? $tick['offset'] : 0;
334
- $tick_all = ( isset($tick) && isset($tick['all']) && $tick['all'] == 'on' ) ? 'on' :'';
335
-
336
- echo '<tr class="mtphr-dnt-list-item">';
337
- echo '<td class="mtphr-dnt-list-handle"><span></span></td>';
338
- echo '<td class="mtphr-dnt-mixed-type">';
339
- echo '<label style="margin-right:10px;">'.__('Type:', 'ditty-news-ticker').' ';
340
- echo '<select name="_mtphr_dnt_mixed_ticks[type]" data-name="_mtphr_dnt_mixed_ticks" data-key="type">';
341
- echo '<option value="">-- '.__('Select Tick Type', 'ditty-news-ticker').' --</option>';
342
- foreach( $types as $i=>$type ) {
343
- echo '<option value="'.$i.'" '.selected($i, $tick_type, false).'>'.$type['button'].'</option>';
344
- }
345
- echo '</select>';
346
- echo '</label>';
347
- echo '</td>';
348
- echo '<td>';
349
- echo '<label>'.__('Display <strong>all</strong> ticks:', 'ditty-news-ticker').' ';
350
- echo '<input type="checkbox" name="_mtphr_dnt_mixed_ticks[all]" data-name="_mtphr_dnt_mixed_ticks" data-key="all" value="on" '.checked('on', $tick_all, false).' />';
351
- echo '</label>';
352
-
353
- echo '<label>'.__(', or choose <strong>offset</strong>:', 'ditty-news-ticker').' ';
354
- echo '<input type="number" name="_mtphr_dnt_mixed_ticks[offset]" data-name="_mtphr_dnt_mixed_ticks" data-key="offset" value="'.$tick_offset.'" />';
355
- echo '</label>';
356
- echo '</td>';
357
- echo '<td class="mtphr-dnt-list-delete"><a href="#"></a></td>';
358
- echo '<td class="mtphr-dnt-list-add"><a href="#"></a></td>';
359
- echo '</tr>';
360
  }
361
  }
362
 
363
 
364
  /* --------------------------------------------------------- */
365
- /* !Render the scroll settings metabox - 1.4.0 */
366
  /* --------------------------------------------------------- */
367
 
368
- if( !function_exists('mtphr_dnt_scroll_settings_render_metabox') ) {
369
- function mtphr_dnt_scroll_settings_render_metabox() {
370
-
371
  global $post;
372
 
373
  $defaults = array(
@@ -382,6 +435,8 @@ function mtphr_dnt_scroll_settings_render_metabox() {
382
  'spacing' => 40
383
  );
384
 
 
 
385
  $values = array(
386
  'direction' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_direction', true ),
387
  'init' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_init', true ),
@@ -399,102 +454,163 @@ function mtphr_dnt_scroll_settings_render_metabox() {
399
  }
400
  }
401
 
402
- $values = wp_parse_args( $values, $defaults );
403
-
404
- echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
405
-
406
- echo '<table class="mtphr-dnt-table">';
407
-
408
- echo '<tr>';
409
- echo '<td class="mtphr-dnt-label">';
410
- echo '<label>'.__('Scroll direction', 'ditty-news-ticker').'</label>';
411
- echo '<small>'.__('Set the scroll direction of the ticker', 'ditty-news-ticker').'</small>';
412
- echo '</td>';
413
- echo '<td>';
414
- echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction" value="left" '.checked('left', $values['direction'], false).' /> '.__('Left', 'ditty-news-ticker').'</label>';
415
- echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction" value="right" '.checked('right', $values['direction'], false).' /> '.__('Right', 'ditty-news-ticker').'</label>';
416
- echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction" value="up" '.checked('up', $values['direction'], false).' /> '.__('Up', 'ditty-news-ticker').'</label>';
417
- 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>';
418
- 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>';
419
- echo '</td>';
420
- echo '</tr>';
421
-
422
- echo '<tr>';
423
- echo '<td class="mtphr-dnt-label">';
424
- echo '<label>'.__('Tick dimensions', 'ditty-news-ticker').'</label>';
425
- echo '<small>'.__('Override the auto dimensions with specific values', 'ditty-news-ticker').'</small>';
426
- echo '</td>';
427
- echo '<td>';
428
- echo '<label>'.__('Width', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_scroll_width" value="'.$values['width'].'" /></label>';
429
- echo '<label>'.__('Height', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_scroll_height" value="'.$values['height'].'" /></label>';
430
- echo '</td>';
431
- echo '</tr>';
432
-
433
- echo '<tr>';
434
- echo '<td class="mtphr-dnt-label">';
435
- echo '<label>'.__('Scroller padding', 'ditty-news-ticker').'</label>';
436
- echo '<small>'.__('Set the vertical spacing of the scrolling data', 'ditty-news-ticker').'</small>';
437
- echo '</td>';
438
- echo '<td>';
439
- echo '<label>'.__('Vertical padding', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_scroll_padding" value="'.$values['padding'].'" /></label>';
440
- echo '<label>'.__('Vertical margin', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_scroll_margin" value="'.$values['margin'].'" /></label>';
441
- echo '</td>';
442
- echo '</tr>';
443
-
444
- echo '<tr>';
445
- echo '<td class="mtphr-dnt-label">';
446
- echo '<label>'.__('Scroll speed', 'ditty-news-ticker').'</label>';
447
- echo '<small>'.__('Set the speed of the scrolling data', 'ditty-news-ticker').'</small>';
448
- echo '</td>';
449
- echo '<td>';
450
- echo '<label><input type="number" name="_mtphr_dnt_scroll_speed" value="'.$values['speed'].'" /></label>';
451
- 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>';
452
- echo '</td>';
453
- echo '</tr>';
454
-
455
- echo '<tr>';
456
- echo '<td class="mtphr-dnt-label">';
457
- echo '<label>'.__('Tick spacing', 'ditty-news-ticker').'</label>';
458
- echo '<small>'.__('Set the spacing between scrolling data', 'ditty-news-ticker').'</small>';
459
- echo '</td>';
460
- echo '<td>';
461
- echo '<label><input type="number" name="_mtphr_dnt_scroll_tick_spacing" value="'.$values['spacing'].'" /> '.__('Pixels', 'ditty-news-ticker').'</label>';
462
- echo '</td>';
463
- echo '</tr>';
464
-
465
- echo '</table>';
466
- }
467
- }
468
-
469
-
470
- /* --------------------------------------------------------- */
471
- /* !Render the rotate settings metabox - 1.4.0 */
472
- /* --------------------------------------------------------- */
473
-
474
- if( !function_exists('mtphr_dnt_rotate_settings_render_metabox') ) {
475
- function mtphr_dnt_rotate_settings_render_metabox() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
476
 
 
 
 
477
  global $post;
478
 
 
 
479
  $defaults = array(
480
  'type' => 'fade',
481
  'reverse' => '',
482
  'height' => 0,
483
  'padding' => 0,
484
  'margin' => 0,
485
- 'auto' => '',
486
  'delay' => 7,
487
  'pause' => '',
488
- 'speed' => 3,
489
- 'ease' => 'linear',
490
- 'directional_nav' => '',
491
  'directional_nav_hide' => '',
492
- 'control_nav' => '',
493
- 'control_nav_type' => 'number'
 
494
  );
495
 
 
 
496
  $values = array(
497
- 'type' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_type', true ),
498
  'reverse' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav_reverse', true ),
499
  'height' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_height', true ),
500
  'padding' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_padding', true ),
@@ -507,7 +623,8 @@ function mtphr_dnt_rotate_settings_render_metabox() {
507
  'directional_nav' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav', true ),
508
  'directional_nav_hide' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav_hide', true ),
509
  'control_nav' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_control_nav', true ),
510
- 'control_nav_type' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_control_nav_type', true )
 
511
  );
512
  foreach( $values as $i=>$value ) {
513
  if( $value == '' ) {
@@ -515,111 +632,206 @@ function mtphr_dnt_rotate_settings_render_metabox() {
515
  }
516
  }
517
 
518
- $values = wp_parse_args( $values, $defaults );
519
-
520
- echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
521
-
522
- echo '<table class="mtphr-dnt-table">';
523
-
524
- echo '<tr>';
525
- echo '<td class="mtphr-dnt-label">';
526
- echo '<label>'.__('Rotation type', 'ditty-news-ticker').'</label>';
527
- echo '<small>'.__('Set the type of rotation for the ticker', 'ditty-news-ticker').'</small>';
528
- echo '</td>';
529
- echo '<td>';
530
- echo '<label><input type="radio" name="_mtphr_dnt_rotate_type" value="fade" '.checked('fade', $values['type'], false).' /> '.__('Fade', 'ditty-news-ticker').'</label>';
531
- 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>';
532
- 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>';
533
- 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>';
534
- 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>';
535
- 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>';
536
- echo '</td>';
537
- echo '</tr>';
538
-
539
- echo '<tr>';
540
- echo '<td class="mtphr-dnt-label">';
541
- echo '<label>'.__('Tick dimensions', 'ditty-news-ticker').'</label>';
542
- echo '<small>'.__('Override the auto dimensions with specific values', 'ditty-news-ticker').'</small>';
543
- echo '</td>';
544
- echo '<td>';
545
- echo '<label>'.__('Height', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_rotate_height" value="'.$values['height'].'" /></label>';
546
- echo '</td>';
547
- echo '</tr>';
548
-
549
- echo '<tr>';
550
- echo '<td class="mtphr-dnt-label">';
551
- echo '<label>'.__('Rotator padding', 'ditty-news-ticker').'</label>';
552
- echo '<small>'.__('Set the vertical spacing of the rotating data', 'ditty-news-ticker').'</small>';
553
- echo '</td>';
554
- echo '<td>';
555
- echo '<label>'.__('Vertical padding', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_rotate_padding" value="'.$values['padding'].'" /></label>';
556
- echo '<label>'.__('Vertical margin', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_rotate_margin" value="'.$values['margin'].'" /></label>';
557
- echo '</td>';
558
- echo '</tr>';
559
-
560
- echo '<tr>';
561
- echo '<td class="mtphr-dnt-label">';
562
- echo '<label>'.__('Auto rotate', 'ditty-news-ticker').'</label>';
563
- echo '<small>'.__('Set the delay between rotations', 'ditty-news-ticker').'</small>';
564
- echo '</td>';
565
- echo '<td>';
566
- 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>';
567
- echo '<label style="margin-right:20px;"><input type="number" name="_mtphr_dnt_rotate_delay" value="'.$values['delay'].'" /> '.__('Seconds delay', 'ditty-news-ticker').'</label>';
568
- 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>';
569
- echo '</td>';
570
- echo '</tr>';
571
-
572
- echo '<tr>';
573
- echo '<td class="mtphr-dnt-label">';
574
- echo '<label>'.__('Rotate speed', 'ditty-news-ticker').'</label>';
575
- echo '<small>'.__('Set the speed & easing of the rotation', 'ditty-news-ticker').'</small>';
576
- echo '</td>';
577
- echo '<td>';
578
- echo '<label><input type="number" name="_mtphr_dnt_rotate_speed" value="'.$values['speed'].'" /> '.__('Tenths of a second', 'ditty-news-ticker').'</label>';
579
- echo '<label><select name="_mtphr_dnt_rotate_ease">';
580
- $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');
581
- foreach( $eases as $ease ) {
582
- echo '<option value="'.$ease.'" '.selected($ease, $values['ease'], false).'>'.$ease.'</option>';
583
- }
584
- echo '</select></label>';
585
- echo '</td>';
586
- echo '</tr>';
587
-
588
- echo '<tr>';
589
- echo '<td class="mtphr-dnt-label">';
590
- echo '<label>'.__('Directional navigation', 'ditty-news-ticker').'</label>';
591
- echo '<small>'.__('Set the directional navigation options', 'ditty-news-ticker').'</small>';
592
- echo '</td>';
593
- echo '<td>';
594
- 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>';
595
- 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>';
596
- echo '</td>';
597
- echo '</tr>';
598
-
599
- echo '<tr>';
600
- echo '<td class="mtphr-dnt-label">';
601
- echo '<label>'.__('Control navigation', 'ditty-news-ticker').'</label>';
602
- echo '<small>'.__('Set the control navigation options', 'ditty-news-ticker').'</small>';
603
- echo '</td>';
604
- echo '<td>';
605
- 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>';
606
- 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>';
607
- 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>';
608
- echo '</td>';
609
- echo '</tr>';
610
-
611
- echo '</table>';
612
- }
613
- }
614
-
615
-
616
- /* --------------------------------------------------------- */
617
- /* !Render the list settings metabox - 1.4.0 */
618
- /* --------------------------------------------------------- */
619
-
620
- if( !function_exists('mtphr_dnt_list_settings_render_metabox') ) {
621
- function mtphr_dnt_list_settings_render_metabox() {
622
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
623
  global $post;
624
 
625
  $defaults = array(
@@ -627,12 +839,14 @@ function mtphr_dnt_list_settings_render_metabox() {
627
  'margin' => 0,
628
  'spacing' => 10,
629
  'paging' => '',
630
- 'count' => 0,
631
  'prev_next' => '',
632
  'prev_text' => __('« Previous', 'ditty-news-ticker'),
633
  'next_text' => __('Next »', 'ditty-news-ticker'),
634
  );
635
 
 
 
636
  $values = array(
637
  'padding' => get_post_meta( $post->ID, '_mtphr_dnt_list_padding', true ),
638
  'margin' => get_post_meta( $post->ID, '_mtphr_dnt_list_margin', true ),
@@ -649,89 +863,152 @@ function mtphr_dnt_list_settings_render_metabox() {
649
  }
650
  }
651
 
652
- $values = wp_parse_args( $values, $defaults );
 
 
653
 
654
- echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
 
 
655
 
656
- echo '<table class="mtphr-dnt-table">';
 
 
 
 
 
657
 
658
- echo '<tr>';
659
- echo '<td class="mtphr-dnt-label">';
660
- echo '<label>'.__('List padding', 'ditty-news-ticker').'</label>';
661
- echo '<small>'.__('Set the vertical spacing of the list container', 'ditty-news-ticker').'</small>';
662
- echo '</td>';
663
- echo '<td>';
664
- echo '<label>'.__('Vertical padding', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_list_padding" value="'.$values['padding'].'" /></label>';
665
- echo '<label>'.__('Vertical margin', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_list_margin" value="'.$values['margin'].'" /></label>';
666
- echo '</td>';
667
- echo '</tr>';
 
 
 
 
 
 
 
 
 
 
 
 
668
 
669
- echo '<tr>';
670
- echo '<td class="mtphr-dnt-label">';
671
- echo '<label>'.__('Tick spacing', 'ditty-news-ticker').'</label>';
672
- echo '<small>'.__('Set the spacing between ticks', 'ditty-news-ticker').'</small>';
673
- echo '</td>';
674
- echo '<td>';
675
- echo '<label><input type="number" name="_mtphr_dnt_list_tick_spacing" value="'.$values['spacing'].'" /> '.__('Pixels', 'ditty-news-ticker').'</label>';
676
- echo '</td>';
677
- echo '</tr>';
 
678
 
679
- echo '<tr>';
680
- echo '<td class="mtphr-dnt-label">';
681
- echo '<label>'.__('List paging', 'ditty-news-ticker').'</label>';
682
- echo '<small>'.__('Break the list up into pages', 'ditty-news-ticker').'</small>';
683
- echo '</td>';
684
- echo '<td>';
685
- echo '<label><input type="checkbox" name="_mtphr_dnt_list_tick_paging" value="1" '.checked('1', $values['paging'], false).' /> '.__('Enable', 'ditty-news-ticker').'</label>';
686
- echo '<label><input type="number" name="_mtphr_dnt_list_tick_count" value="'.$values['count'].'" /> '.__('Ticks per page', 'ditty-news-ticker').'</label>';
687
- echo '<br/>';
688
- 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>';
689
- echo '<br/>';
690
- 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>';
691
- 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>';
692
- echo '</td>';
693
- echo '</tr>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
694
 
695
- echo '</table>';
 
 
696
  }
697
  }
698
 
699
 
700
  /* --------------------------------------------------------- */
701
- /* !Render the global settings metabox - 1.4.0 */
702
  /* --------------------------------------------------------- */
703
 
704
- if( !function_exists('mtphr_dnt_global_settings_render_metabox') ) {
705
- function mtphr_dnt_global_settings_render_metabox() {
706
-
707
  global $post;
708
 
709
  $defaults = array(
 
710
  'title' => '',
711
  'inline_title' => '',
712
  'shuffle' => '',
713
  'width' => 0,
714
  'offset' => 20,
 
 
715
  'grid' => '',
716
  'grid_empty_rows' => '',
717
  'grid_equal_width' => '',
718
  'grid_cols' => 2,
719
  'grid_rows' => 2,
720
  'grid_padding' => 5,
 
721
  );
722
 
 
 
723
  $values = array(
 
724
  'title' => get_post_meta( $post->ID, '_mtphr_dnt_title', true ),
725
  'inline_title' => get_post_meta( $post->ID, '_mtphr_dnt_inline_title', true ),
726
  'shuffle' => get_post_meta( $post->ID, '_mtphr_dnt_shuffle', true ),
727
  'width' => get_post_meta( $post->ID, '_mtphr_dnt_ticker_width', true ),
728
  'offset' => get_post_meta( $post->ID, '_mtphr_dnt_offset', true ),
 
 
729
  'grid' => get_post_meta( $post->ID, '_mtphr_dnt_grid', true ),
730
  'grid_empty_rows' => get_post_meta( $post->ID, '_mtphr_dnt_grid_empty_rows', true ),
731
  'grid_equal_width' => get_post_meta( $post->ID, '_mtphr_dnt_grid_equal_width', true ),
732
  'grid_cols' => get_post_meta( $post->ID, '_mtphr_dnt_grid_cols', true ),
733
  'grid_rows' => get_post_meta( $post->ID, '_mtphr_dnt_grid_rows', true ),
734
  'grid_padding' => get_post_meta( $post->ID, '_mtphr_dnt_grid_padding', true ),
 
735
  );
736
  foreach( $values as $i=>$value ) {
737
  if( $value == '' ) {
@@ -739,65 +1016,171 @@ function mtphr_dnt_global_settings_render_metabox() {
739
  }
740
  }
741
 
742
- $values = wp_parse_args( $values, $defaults );
 
 
 
 
 
 
 
 
 
743
 
744
- echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
745
 
746
- echo '<table class="mtphr-dnt-table">';
747
 
748
- echo '<tr>';
749
- echo '<td class="mtphr-dnt-no-label">';
750
- echo '<label><input type="checkbox" name="_mtphr_dnt_title" value="1" '.checked('1', $values['title'], false).' /> '.__('Display title', 'ditty-news-ticker').'</label>';
751
- echo '<label><input type="checkbox" name="_mtphr_dnt_inline_title" value="1" '.checked('1', $values['inline_title'], false).' /> '.__('Inline title', 'ditty-news-ticker').'</label>';
752
- echo '</td>';
753
- echo '</tr>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
754
 
755
- echo '<tr>';
756
- echo '<td class="mtphr-dnt-no-label">';
757
- echo '<label><input type="checkbox" name="_mtphr_dnt_shuffle" value="1" '.checked('1', $values['shuffle'], false).' /> '.__('Randomly shuffle the ticks', 'ditty-news-ticker').'</label>';
758
- echo '</td>';
759
- echo '</tr>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
760
 
761
- echo '<tr>';
762
- echo '<td class="mtphr-dnt-no-label">';
763
- echo '<label>'.__('Ticker width <em>(optional)</em>', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_ticker_width" value="'.$values['width'].'" /></label>';
764
- echo '</td>';
765
- echo '</tr>';
 
 
 
 
 
766
 
767
- echo '<tr>';
768
- echo '<td class="mtphr-dnt-no-label">';
769
- 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>';
770
- echo '<br/><small><em>'.__('The amount of pixels ticks should start and end off the screen.', 'ditty-news-ticker').'</em></small>';
771
- echo '</td>';
772
- echo '</tr>';
 
 
 
773
 
774
- echo '<tr>';
775
- echo '<td class="mtphr-dnt-no-label">';
776
- echo '<p class="mtphr-dnt-side-label">'.__('Grid Display', 'ditty-news-ticker').'</p>';
777
- 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>';
778
- 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>';
779
- 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>';
780
- echo '<br/>';
781
- echo '<label>'.__('Columns', 'ditty-news-ticker').' <input type="number" style="width:50px;" name="_mtphr_dnt_grid_cols" value="'.$values['grid_cols'].'" /></label>';
782
- echo '<label>'.__('Rows', 'ditty-news-ticker').' <input type="number" style="width:50px;" name="_mtphr_dnt_grid_rows" value="'.$values['grid_rows'].'" /></label>';
783
- echo '<br/>';
784
- echo '<label>'.__('Cell padding', 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_grid_padding" value="'.$values['grid_padding'].'" /></label>';
785
- echo '</td>';
786
- echo '</tr>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
787
 
788
- echo '</table>';
 
 
789
  }
790
  }
791
 
792
 
793
 
794
 
795
-
796
-
797
  /* --------------------------------------------------------- */
798
- /* !Save the custom meta - 1.4.15 */
799
  /* --------------------------------------------------------- */
800
 
 
801
  function mtphr_dnt_metabox_save( $post_id ) {
802
 
803
  global $post;
@@ -822,12 +1205,18 @@ function mtphr_dnt_metabox_save( $post_id ) {
822
  return $post_id;
823
  }
824
 
 
 
 
 
825
  // Update the type & mode
826
  if( isset($_POST['_mtphr_dnt_type']) ) {
827
 
 
828
  $type = isset($_POST['_mtphr_dnt_type']) ? sanitize_text_field($_POST['_mtphr_dnt_type']) : 'default';
829
  $mode = isset($_POST['_mtphr_dnt_mode']) ? sanitize_text_field($_POST['_mtphr_dnt_mode']) : 'scroll';
830
 
 
831
  update_post_meta( $post_id, '_mtphr_dnt_type', $type );
832
  update_post_meta( $post_id, '_mtphr_dnt_mode', $mode );
833
  }
@@ -837,19 +1226,26 @@ function mtphr_dnt_metabox_save( $post_id ) {
837
 
838
  $force_breaks = ( isset($_POST['_mtphr_dnt_line_breaks']) && $_POST['_mtphr_dnt_line_breaks'] != '' ) ? 1 : '';
839
  update_post_meta( $post_id, '_mtphr_dnt_line_breaks', $force_breaks );
 
 
 
 
840
 
841
  $sanitized_ticks = array();
842
  if( count($_POST['_mtphr_dnt_ticks']) > 0 ) {
843
  foreach( $_POST['_mtphr_dnt_ticks'] as $tick ) {
844
  $sanitized_ticks[] = array(
845
- 'tick' => convert_chars(wptexturize($tick['tick'])),
846
- 'link' => esc_url($tick['link']),
847
- 'target' => $tick['target'],
848
  'nofollow' => isset( $tick['nofollow'] ) ? $tick['nofollow'] : ''
849
  );
850
  }
851
  }
852
- update_post_meta( $post_id, '_mtphr_dnt_ticks', $sanitized_ticks );
 
 
 
853
  }
854
 
855
  // Save the mixed ticks
@@ -864,7 +1260,9 @@ function mtphr_dnt_metabox_save( $post_id ) {
864
  );
865
  }
866
  }
867
- update_post_meta( $post_id, '_mtphr_dnt_mixed_ticks', $sanitized_ticks );
 
 
868
  }
869
 
870
  // Save the scroll settings
@@ -908,6 +1306,7 @@ function mtphr_dnt_metabox_save( $post_id ) {
908
  $directional_nav_hide = isset($_POST['_mtphr_dnt_rotate_directional_nav_hide']) ? $_POST['_mtphr_dnt_rotate_directional_nav_hide'] : '';
909
  $control_nav = isset($_POST['_mtphr_dnt_rotate_control_nav']) ? $_POST['_mtphr_dnt_rotate_control_nav'] : '';
910
  $control_nav_type = isset($_POST['_mtphr_dnt_rotate_control_nav_type']) ? $_POST['_mtphr_dnt_rotate_control_nav_type'] : 'number';
 
911
 
912
  update_post_meta( $post_id, '_mtphr_dnt_rotate_type', $type );
913
  update_post_meta( $post_id, '_mtphr_dnt_rotate_directional_nav_reverse', $reverse );
@@ -923,6 +1322,7 @@ function mtphr_dnt_metabox_save( $post_id ) {
923
  update_post_meta( $post_id, '_mtphr_dnt_rotate_directional_nav_hide', $directional_nav_hide );
924
  update_post_meta( $post_id, '_mtphr_dnt_rotate_control_nav', $control_nav );
925
  update_post_meta( $post_id, '_mtphr_dnt_rotate_control_nav_type', $control_nav_type );
 
926
  }
927
 
928
  // Save the list settings
@@ -950,38 +1350,39 @@ function mtphr_dnt_metabox_save( $post_id ) {
950
  // Save the global settings
951
  if( isset($_POST['_mtphr_dnt_ticker_width']) ) {
952
 
 
953
  $title = isset($_POST['_mtphr_dnt_title']) ? $_POST['_mtphr_dnt_title'] : '';
954
  $inline_title = isset($_POST['_mtphr_dnt_inline_title']) ? $_POST['_mtphr_dnt_inline_title'] : '';
955
  $shuffle = isset($_POST['_mtphr_dnt_shuffle']) ? $_POST['_mtphr_dnt_shuffle'] : '';
956
  $width = isset($_POST['_mtphr_dnt_ticker_width']) ? intval($_POST['_mtphr_dnt_ticker_width']) : 0;
957
- $offset = isset($_POST['_mtphr_dnt_offset']) ? intval($_POST['_mtphr_dnt_offset']) : 20;
 
 
958
  $grid = isset($_POST['_mtphr_dnt_grid']) ? $_POST['_mtphr_dnt_grid'] : '';
959
  $grid_empty_rows = isset($_POST['_mtphr_dnt_grid_empty_rows']) ? $_POST['_mtphr_dnt_grid_empty_rows'] : '';
960
  $grid_equal_width = isset($_POST['_mtphr_dnt_grid_equal_width']) ? $_POST['_mtphr_dnt_grid_equal_width'] : '';
961
  $grid_cols = isset($_POST['_mtphr_dnt_grid_cols']) ? intval($_POST['_mtphr_dnt_grid_cols']) : 2;
962
  $grid_rows = isset($_POST['_mtphr_dnt_grid_rows']) ? intval($_POST['_mtphr_dnt_grid_rows']) : 2;
963
  $grid_padding = isset($_POST['_mtphr_dnt_grid_padding']) ? intval($_POST['_mtphr_dnt_grid_padding']) : 5;
 
964
 
 
965
  update_post_meta( $post_id, '_mtphr_dnt_title', $title );
966
  update_post_meta( $post_id, '_mtphr_dnt_inline_title', $inline_title );
967
  update_post_meta( $post_id, '_mtphr_dnt_shuffle', $shuffle );
968
  update_post_meta( $post_id, '_mtphr_dnt_ticker_width', $width );
969
  update_post_meta( $post_id, '_mtphr_dnt_offset', $offset );
 
 
970
  update_post_meta( $post_id, '_mtphr_dnt_grid', $grid );
971
  update_post_meta( $post_id, '_mtphr_dnt_grid_empty_rows', $grid_empty_rows );
972
  update_post_meta( $post_id, '_mtphr_dnt_grid_equal_width', $grid_equal_width );
973
  update_post_meta( $post_id, '_mtphr_dnt_grid_cols', $grid_cols );
974
  update_post_meta( $post_id, '_mtphr_dnt_grid_rows', $grid_rows );
975
  update_post_meta( $post_id, '_mtphr_dnt_grid_padding', $grid_padding );
 
976
  }
977
  }
 
978
  add_action( 'save_post', 'mtphr_dnt_metabox_save' );
979
 
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
-
1
  <?php
2
 
3
  /* --------------------------------------------------------- */
4
+ /* !Add the ticker display code - 2.0.0 */
5
  /* --------------------------------------------------------- */
6
 
7
+ if( !function_exists('mtphr_dnt_display_code') ) {
8
  function mtphr_dnt_display_code() {
9
 
10
  global $post, $typenow;
11
 
12
  if( $typenow == 'ditty_news_ticker' ) {
13
 
14
+ echo '<div id="mtphr-dnt-code-copy">';
15
  echo '<table>';
16
  echo '<tr>';
17
+ echo '<td id="mtphr-dnt-shortcode-copy">';
18
  echo '<div class="wrapper">';
19
  echo '<h3>'.__('Shortcode', 'ditty-news-ticker').'</h3>';
20
  echo '<p>'.__('Copy and paste this shortcode into a page or post to display the ticker within the post content.', 'ditty-news-ticker').'</p>';
23
  echo '</div>';
24
  echo '</td>';
25
 
26
+ echo '<td id="mtphr-dnt-function-copy">';
27
  echo '<div class="wrapper">';
28
  echo '<h3>'.__('Direct Function', 'ditty-news-ticker').'</h3>';
29
  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>';
37
  echo '</div>';
38
  }
39
  }
40
+ }
41
  add_action( 'edit_form_after_title', 'mtphr_dnt_display_code' );
42
 
43
 
44
  /* --------------------------------------------------------- */
45
+ /* !Add the main ticker options - 2.0.0 */
46
  /* --------------------------------------------------------- */
47
 
48
+ if( !function_exists('mtphr_dnt_option_buttons') ) {
49
  function mtphr_dnt_option_buttons() {
50
 
51
  global $post, $typenow;
52
 
53
  if( $typenow == 'ditty_news_ticker' ) {
54
+
55
+ $tab = get_post_meta( $post->ID, '_mtphr_dnt_admin_tab', true );
56
+ $tab = ( $tab != '' ) ? $tab : '#mtphr-dnt-type-select';
57
 
58
  $types = mtphr_dnt_types_array();
59
  $type = get_post_meta( $post->ID, '_mtphr_dnt_type', true );
61
 
62
  $modes = mtphr_dnt_modes_array();
63
  $mode = get_post_meta( $post->ID, '_mtphr_dnt_mode', true );
64
+ $mode = ( $mode != '' ) ? $mode : 'scroll';
65
 
66
+ echo '<div id="mtphr-dnt-settings-select">';
67
+ echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
68
+ echo '<input type="hidden" name="_mtphr_dnt_admin_tab" value="'.$tab.'" />';
69
+ echo '<input type="hidden" name="_mtphr_dnt_admin_javascript" value="error" />';
70
+
71
+ echo '<div id="mtphr-dnt-metabox-group-toggles" class="mtphr-dnt-clearfix">';
72
+ $active = ( $tab == '#mtphr-dnt-type-select' ) ? ' active' : '';
73
+ echo '<a class="mtphr-dnt-metabox-group-toggle'.$active.'" href="#mtphr-dnt-type-select"><i class="mtphr-dnt-icon-dittynewsticker"></i> '.__('<span>Ticker </span>Type', 'ditty-news-ticker').'</a>';
74
+ $active = ( $tab == '#mtphr-dnt-mode-select' ) ? ' active' : '';
75
+ echo '<a class="mtphr-dnt-metabox-group-toggle'.$active.'" href="#mtphr-dnt-mode-select"><i class="mtphr-dnt-icon-dittynewsticker"></i> '.__('<span>Ticker </span>Mode', 'ditty-news-ticker').'</a>';
76
+ $active = ( $tab == '#mtphr-dnt-global-select' ) ? ' active' : '';
77
+ echo '<a class="mtphr-dnt-metabox-group-toggle'.$active.'" href="#mtphr-dnt-global-select"><i class="mtphr-dnt-icon-dittynewsticker"></i> '.__('<span>Global </span>Settings', 'ditty-news-ticker').'</a>';
78
+ echo '<button name="save" type="submit" class="button button-primary button-large" id="mtphr-dnt-publish"><i class="dashicons dashicons-yes"></i><span> '.__('Update', 'ditty-news-ticker').'</span></button>';
79
+ echo '</div>';
80
+
81
+
82
+ /* --------------------------------------------------------- */
83
+ /* !Ticker Type - 2.0.2 */
84
+ /* --------------------------------------------------------- */
85
+
86
+ $active = ( $tab == '#mtphr-dnt-type-select' ) ? ' active' : '';
87
+ echo '<div id="mtphr-dnt-type-select" class="mtphr-dnt-metabox-group'.$active.'">';
88
+
89
+ echo '<div>';
90
+ echo '<div class="mtphr-dnt-metabox-toggle">';
91
+ echo '<input type="hidden" name="_mtphr_dnt_type" value="'.$type.'" />';
92
+ foreach( $types as $i=>$t ) {
93
 
94
+ $value = '';
95
+ $button = $t['button'];
96
+ $metabox_id = isset($t['metabox_id']) ? $t['metabox_id'] : '';
97
+ if( is_array($metabox_id) ) {
98
+ $metabox_id = trim(implode(' ', $t['metabox_id']));
99
+ }
100
+
101
+ // Create a button
102
+ $selected = ( $type == $i ) ? ' button-primary' : '';
103
+ $icon = isset($t['icon']) ? '<i class="'.$t['icon'].'"></i> ' : '';
104
+ echo '<a href="#'.$i.'" metabox="'.$metabox_id.'" class="mtphr-dnt-type-toggle mtphr-dnt-button button'.$selected.'">'.$icon.$button.'</a>&nbsp;';
105
+ }
106
+ echo '<a href="http://www.dittynewsticker.com/" target="_blank" class="mtphr-dnt-button button mtphr-dnt-get-more"><i class="fontastic mtphr-dnt-icon-download"></i> '.__('More Extensions', 'ditty-news-ticker').'</a>';
107
+ echo '</div>';
108
+ echo '</div>';
109
+
110
+ echo '<div id="mtphr-dnt-type-metaboxes">';
111
+ do_action( 'mtphr_dnt_type_metaboxes' );
112
+ echo '</div>';
113
+
114
+ echo '</div>';
115
+
116
+
117
+ /* --------------------------------------------------------- */
118
+ /* !Ticker Mode - 2.0.2 */
119
+ /* --------------------------------------------------------- */
120
+
121
+ $active = ( $tab == '#mtphr-dnt-mode-select' ) ? ' active' : '';
122
+ echo '<div id="mtphr-dnt-mode-select" class="mtphr-dnt-metabox-group'.$active.'">';
123
+
124
+ echo '<div class="wrapper">';
125
+ echo '<div class="mtphr-dnt-metabox-toggle">';
126
+ echo '<input type="hidden" name="_mtphr_dnt_mode" value="'.$mode.'" />';
127
+ foreach( $modes as $i=>$m ) {
128
 
129
+ $value = '';
130
+ $button = $m['button'];
131
+ $metabox_id = isset($m['metabox_id']) ? $m['metabox_id'] : '';
132
+ if( is_array($metabox_id) ) {
133
+ $metabox_id = trim(implode(' ', $m['metabox_id']));
134
+ }
135
+
136
+ // Create a button
137
+ $selected = ( $mode == $i ) ? ' button-primary' : '';
138
+ $icon = isset($m['icon']) ? '<i class="'.$m['icon'].'"></i> ' : '';
139
+ echo '<a href="#'.$i.'" metabox="'.$metabox_id.'" class="mtphr-dnt-mode-toggle mtphr-dnt-button button'.$selected.'">'.$icon.$button.'</a>&nbsp;';
140
+ }
141
+ echo '<a href="http://www.dittynewsticker.com/" target="_blank" class="mtphr-dnt-button button mtphr-dnt-get-more"><i class="fontastic mtphr-dnt-icon-download"></i> '.__('More Extensions', 'ditty-news-ticker').'</a>';
142
+ echo '</div>';
143
+ echo '</div>';
144
+
145
+ echo '<div id="mtphr-dnt-mode-metaboxes">';
146
+ do_action( 'mtphr_dnt_mode_metaboxes' );
147
+ echo '</div>';
148
+
149
+ echo '</div>';
150
+
151
+
152
+ /* --------------------------------------------------------- */
153
+ /* !Global Settings - 2.0.0 */
154
+ /* --------------------------------------------------------- */
155
+
156
+ $active = ( $tab == '#mtphr-dnt-global-select' ) ? ' active' : '';
157
+ echo '<div id="mtphr-dnt-global-select" class="mtphr-dnt-metabox-group'.$active.'">';
158
+
159
+ echo '<div id="mtphr-dnt-global-metaboxes">';
160
+ do_action( 'mtphr_dnt_global_metaboxes' );
161
+ echo '</div>';
162
+
163
+ echo '</div>';
164
+
165
  echo '</div>';
166
  }
167
  }
168
+ }
169
  add_action( 'edit_form_after_title', 'mtphr_dnt_option_buttons' );
170
 
171
 
172
 
173
 
174
  /* --------------------------------------------------------- */
175
+ /* !Add ticker type metaboxes - 2.0.2 */
176
  /* --------------------------------------------------------- */
177
 
178
+ if( !function_exists('mtphr_dnt_type_metaboxes') ) {
179
+ function mtphr_dnt_type_metaboxes() {
180
+
181
+ // Default type metabox
182
+ mtphr_dnt_metabox( 'mtphr-dnt-defualt-metabox', mtphr_dnt_default_fields() );
183
+
184
+ // Mixed type metabox
185
+ mtphr_dnt_metabox( 'mtphr-dnt-mixed-metabox', mtphr_dnt_mixed_fields() );
186
  }
187
+ }
188
+ add_action( 'mtphr_dnt_type_metaboxes', 'mtphr_dnt_type_metaboxes' );
189
 
190
 
191
  /* --------------------------------------------------------- */
192
+ /* !Add ticker mode metaboxes - 2.0.2 */
193
  /* --------------------------------------------------------- */
194
 
195
+ if( !function_exists('mtphr_dnt_mode_metaboxes') ) {
196
+ function mtphr_dnt_mode_metaboxes() {
197
+
198
+ // Scroll mode metabox
199
+ mtphr_dnt_metabox( 'mtphr-dnt-scroll-metabox', mtphr_dnt_scroll_fields() );
200
+
201
+ // Rotate mode metabox
202
+ mtphr_dnt_metabox( 'mtphr-dnt-rotate-metabox', mtphr_dnt_rotate_fields() );
203
+
204
+ // List mode metabox
205
+ mtphr_dnt_metabox( 'mtphr-dnt-list-metabox', mtphr_dnt_list_fields() );
206
+ }
207
  }
208
+ add_action( 'mtphr_dnt_mode_metaboxes', 'mtphr_dnt_mode_metaboxes' );
209
 
210
 
211
  /* --------------------------------------------------------- */
212
+ /* !Add global metaboxes - 2.0.2 */
213
  /* --------------------------------------------------------- */
214
 
215
+ if( !function_exists('mtphr_dnt_global_metaboxes') ) {
216
+ function mtphr_dnt_global_metaboxes() {
217
+
218
+ // Global mode metabox
219
+ mtphr_dnt_metabox( 'mtphr-dnt-global-metabox', mtphr_dnt_global_fields() );
220
  }
221
+ }
222
+ add_action( 'mtphr_dnt_global_metaboxes', 'mtphr_dnt_global_metaboxes' );
 
 
 
 
223
 
 
224
 
 
 
 
225
 
226
 
227
  /* --------------------------------------------------------- */
228
+ /* !Return the default ticker values - 2.0.3 */
229
  /* --------------------------------------------------------- */
230
 
231
+ if( !function_exists('mtphr_dnt_default_values') ) {
232
+ function mtphr_dnt_default_values() {
233
+
234
+ global $post;
235
+
236
+ $defaults = array(
237
+ 'ticks' => false,
238
+ 'line_breaks' => ''
239
+ );
240
+
241
+ $defaults = apply_filters( 'mtphr_dnt_default_defaults', $defaults );
242
+
243
+ $values = array(
244
+ 'ticks' => get_post_meta( $post->ID, '_mtphr_dnt_ticks', true ),
245
+ 'line_breaks' => get_post_meta( $post->ID, '_mtphr_dnt_line_breaks', true )
246
+ );
247
+ foreach( $values as $i=>$value ) {
248
+ if( $value == '' ) {
249
+ unset($values[$i]);
250
+ }
251
+ }
252
+
253
+ return wp_parse_args( $values, $defaults );
254
+ }
255
  }
 
 
256
 
257
  /* --------------------------------------------------------- */
258
+ /* !Return the default ticker fields - 2.0.3 */
259
  /* --------------------------------------------------------- */
260
 
261
+ if( !function_exists('mtphr_dnt_default_fields') ) {
262
+ function mtphr_dnt_default_fields() {
263
+
264
+ $settings = mtphr_dnt_general_settings();
265
+ $values = mtphr_dnt_default_values();
266
+
267
+ $fields = array(
268
+
269
+ /* !Ticks (& text, link, target, nofollow) - 2.0.0 */
270
+ 'ticks' => array(
271
+ 'heading' => __('Ticks', 'ditty-news-ticker'),
272
+ 'description' => __('Add an unlimited number of ticks to your ticker', 'ditty-news-ticker'),
273
+ 'help' => __('Use the \'+\' and \'x\' buttons on the right to add and delete ticks. Drag and drop the arrows on the left to re-order your ticks.', 'ditty-news-ticker'),
274
+ 'type' => 'list',
275
+ 'name' => '_mtphr_dnt_ticks',
276
+ 'value' => $values['ticks'],
277
+ 'fields' => array(
278
+
279
+ /* !Tick text - 2.0.0 */
280
+ 'tick' => array(
281
+ 'heading' => __('Ticker text', 'ditty-news-ticker'),
282
+ 'help' => __('Add the content of your tick. HTML and inline styles are supported.', 'ditty-news-ticker'),
283
+ 'type' => (isset($settings['wysiwyg']) && ($settings['wysiwyg'] == '1' || $settings['wysiwyg'] == 'on') ) ? 'wysiwyg' : 'textarea',
284
+ 'placeholder' => __('Add your content here. HTML and inline styles are supported.', 'ditty-news-ticker'),
285
+ 'rows' => 2
286
+ ),
287
+
288
+ /* !Tick link - 2.0.0 */
289
+ 'link' => array(
290
+ 'heading' => __('Link', 'ditty-news-ticker'),
291
+ 'help' => __('Wrap a link around your tick content. You can also add a link directly into your content.', 'ditty-news-ticker'),
292
+ 'type' => 'text',
293
+ 'placeholder' => __('Add a URL (optional)', 'ditty-news-ticker'),
294
+ ),
295
+
296
+ /* !Tick link target - 2.0.0 */
297
+ 'target' => array(
298
+ 'heading' => __('Target', 'ditty-news-ticker'),
299
+ 'help' => __('Set a target for your link.', 'ditty-news-ticker'),
300
+ 'type' => 'select',
301
+ 'options' => array(
302
+ '_self' => '_self',
303
+ '_blank' => '_blank'
304
+ )
305
+ ),
306
+
307
+ /* !Tick link nofollow - 2.0.0 */
308
+ 'nofollow' => array(
309
+ 'heading' => __('No Follow', 'ditty-news-ticker'),
310
+ 'help' => __('Enabling this setting will add an attribute called \'nofollow\' to your link. This tells search engines to not follow this link.', 'ditty-news-ticker'),
311
+ 'type' => 'checkbox',
312
+ 'label' => __('Add "nofollow" to link', 'ditty-news-ticker')
313
+ )
314
+ )
315
+ ),
316
+
317
+ /* !Force line breaks - 2.0.0 */
318
+ 'line_breaks' => array(
319
+ 'heading' => __('Line breaks', 'ditty-news-ticker'),
320
+ 'description' => __('Force line breaks on carriage returns (not used for wysiwyg editors)', 'ditty-news-ticker'),
321
+ 'help' => __('Enabling this setting will create new lines for all carrige returns contained in your tick text', 'ditty-news-ticker'),
322
+ 'type' => 'checkbox',
323
+ 'name' => '_mtphr_dnt_line_breaks',
324
+ 'value' => $values['line_breaks'],
325
+ 'label' => __('Force line breaks', 'ditty-news-ticker')
326
+ )
327
+ );
328
+
329
+ return apply_filters( 'mtphr_dnt_default_fields', $fields, $values );
330
+ }
331
  }
 
 
 
 
332
 
333
 
334
 
335
  /* --------------------------------------------------------- */
336
+ /* !Return the mixed ticker values - 2.0.2 */
337
  /* --------------------------------------------------------- */
338
 
339
+ if( !function_exists('mtphr_dnt_mixed_values') ) {
340
+ function mtphr_dnt_mixed_values() {
341
+
342
  global $post;
343
 
344
+ $defaults = array(
345
+ 'ticks' => false
346
+ );
347
+
348
+ $defaults = apply_filters( 'mtphr_dnt_mixed_defaults', $defaults );
349
+
350
+ $values = array(
351
+ 'ticks' => get_post_meta( $post->ID, '_mtphr_dnt_mixed_ticks', true )
352
+ );
353
+ foreach( $values as $i=>$value ) {
354
+ if( $value == '' ) {
355
+ unset($values[$i]);
356
+ }
357
+ }
358
+
359
+ return wp_parse_args( $values, $defaults );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  }
361
  }
362
 
 
 
363
  /* --------------------------------------------------------- */
364
+ /* !Return the mixed ticker fields - 2.0.5 */
365
  /* --------------------------------------------------------- */
366
 
367
+ if( !function_exists('mtphr_dnt_mixed_fields') ) {
368
+ function mtphr_dnt_mixed_fields() {
369
+
370
+ $values = mtphr_dnt_mixed_values();
 
 
 
 
371
 
372
+ $types = mtphr_dnt_types_labels();
373
+ unset($types['mixed']);
374
 
375
+ $fields = array(
376
+
377
+ /* !Ticks (& type, all, lffset) - 2.0.0 */
378
+ 'ticks' => array(
379
+ 'heading' => __('Tick selection', 'ditty-news-ticker'),
380
+ 'description' => __('Select the ticks you would like to display by choosing the tick type and the offset position of the selected feed', 'ditty-news-ticker'),
381
+ 'type' => 'list',
382
+ 'name' => '_mtphr_dnt_mixed_ticks',
383
+ 'value' => $values['ticks'],
384
+ 'fields' => array(
385
+
386
+ /* !Tick type - 2.0.0 */
387
+ 'type' => array(
388
+ 'heading' => __('Ticker type', 'ditty-news-ticker'),
389
+ 'help' => __('Select the ticker type to use.', 'ditty-news-ticker'),
390
+ 'type' => 'select',
391
+ 'options' => $types
392
+ ),
393
+
394
+ /* !All ticks - 2.0.0 */
395
+ 'all' => array(
396
+ 'heading' => __('All ticks', 'ditty-news-ticker'),
397
+ 'help' => __('All ticks from the specified type will be show when this is enabled.', 'ditty-news-ticker'),
398
+ 'type' => 'checkbox',
399
+ 'label' => __('Display all ticks', 'ditty-news-ticker')
400
+ ),
401
+
402
+ /* !Tick offset - 2.0.0 */
403
+ 'offset' => array(
404
+ 'heading' => __('Offset', 'ditty-news-ticker'),
405
+ 'help' => __('Choose the specific tick you would like to use from the specified type. \'0\' will display the first tick, \'1\' will display the second tick, and so on.', 'ditty-news-ticker'),
406
+ 'type' => 'number',
407
+ )
408
+ )
409
+ )
410
+ );
411
 
412
+ return apply_filters( 'mtphr_dnt_mixed_fields', $fields, $values );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
413
  }
414
  }
415
 
416
 
417
  /* --------------------------------------------------------- */
418
+ /* !Return the scroll mode values - 2.0.2 */
419
  /* --------------------------------------------------------- */
420
 
421
+ if( !function_exists('mtphr_dnt_scroll_values') ) {
422
+ function mtphr_dnt_scroll_values() {
423
+
424
  global $post;
425
 
426
  $defaults = array(
435
  'spacing' => 40
436
  );
437
 
438
+ $defaults = apply_filters( 'mtphr_dnt_scroll_defaults', $defaults );
439
+
440
  $values = array(
441
  'direction' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_direction', true ),
442
  'init' => get_post_meta( $post->ID, '_mtphr_dnt_scroll_init', true ),
454
  }
455
  }
456
 
457
+ return wp_parse_args( $values, $defaults );
458
+ }
459
+ }
460
+
461
+ /* --------------------------------------------------------- */
462
+ /* !Return the scroll mode fields - 2.0.2 */
463
+ /* --------------------------------------------------------- */
464
+
465
+ if( !function_exists('mtphr_dnt_scroll_fields') ) {
466
+ function mtphr_dnt_scroll_fields() {
467
+
468
+ $values = mtphr_dnt_scroll_values();
469
+
470
+ $fields = array(
471
+
472
+ /* !Scroll direction (& init) - 2.0.0 */
473
+ 'direction' => array(
474
+ 'heading' => __('Scroll direction', 'ditty-news-ticker'),
475
+ 'description' => __('Set the scroll direction of the ticker', 'ditty-news-ticker'),
476
+ 'help' => __('Set the direction you want the ticker to scroll. By default, the ticker starts off-screen, but you can enable the \'Show first tick on init\' setting to force the content to start on-screen.', 'ditty-news-ticker'),
477
+ 'type' => 'radio_buttons',
478
+ 'name' => '_mtphr_dnt_scroll_direction',
479
+ 'value' => $values['direction'],
480
+ 'options' => array(
481
+ 'left' => __('Left', 'ditty-news-ticker'),
482
+ 'right' => __('Right', 'ditty-news-ticker'),
483
+ 'up' => __('Up', 'ditty-news-ticker'),
484
+ 'down' => __('Down', 'ditty-news-ticker')
485
+ ),
486
+ 'append' => array(
487
+
488
+ /* !Scroll init - 2.0.0 */
489
+ 'init' => array(
490
+ 'type' => 'checkbox',
491
+ 'name' => '_mtphr_dnt_scroll_init',
492
+ 'label' => __('Show first tick on init', 'ditty-news-ticker'),
493
+ 'value' => $values['init'],
494
+ )
495
+ )
496
+ ),
497
+
498
+ /* !Tick width (& height) - 2.0.0 */
499
+ 'dimensions' => array(
500
+ 'heading' => __('Tick dimensions', 'ditty-news-ticker'),
501
+ 'description' => __('Override the auto dimensions with specific values', 'ditty-news-ticker'),
502
+ 'help' => __('Set a specific width and height for the ticks. When using a vertically scrolling ticker the height will define the overall height of the ticker.', 'ditty-news-ticker'),
503
+ 'type' => 'number',
504
+ 'name' => '_mtphr_dnt_scroll_width',
505
+ 'value' => $values['width'],
506
+ 'before' => __('Width', 'ditty-news-ticker').':',
507
+ 'after' => __('pixels', 'ditty-news-ticker'),
508
+ 'append' => array(
509
+
510
+ /* !Tick height - 2.0.0 */
511
+ 'height' => array(
512
+ 'type' => 'number',
513
+ 'name' => '_mtphr_dnt_scroll_height',
514
+ 'value' => $values['height'],
515
+ 'before' => __('Height', 'ditty-news-ticker').':',
516
+ 'after' => __('pixels', 'ditty-news-ticker')
517
+ ),
518
+ )
519
+ ),
520
+
521
+ /* !Tick padding (& margin) - 2.0.0 */
522
+ 'padding' => array(
523
+ 'heading' => __('Scroller padding', 'ditty-news-ticker'),
524
+ 'description' => __('Set the vertical spacing of the scrolling data', 'ditty-news-ticker'),
525
+ 'help' => __('Add custom vertical padding and margins to each of your ticks.', 'ditty-news-ticker'),
526
+ 'type' => 'number',
527
+ 'name' => '_mtphr_dnt_scroll_padding',
528
+ 'value' => $values['padding'],
529
+ 'before' => __('Vertical padding', 'ditty-news-ticker').':',
530
+ 'after' => __('pixels', 'ditty-news-ticker'),
531
+ 'append' => array(
532
+
533
+ /* !Ticker margin - 2.0.0 */
534
+ 'margin' => array(
535
+ 'type' => 'number',
536
+ 'name' => '_mtphr_dnt_scroll_margin',
537
+ 'value' => $values['margin'],
538
+ 'before' => __('Vertical margin', 'ditty-news-ticker').':',
539
+ 'after' => __('pixels', 'ditty-news-ticker'),
540
+ )
541
+ )
542
+ ),
543
+
544
+ /* !Scroll speed (& pause) - 2.0.0 */
545
+ 'speed' => array(
546
+ 'heading' => __('Scroll speed', 'ditty-news-ticker'),
547
+ 'description' => __('Set the speed of the scrolling data', 'ditty-news-ticker'),
548
+ 'help' => __('Set the speed of the ticker. You may need to try different speeds to get optimum results when using different fonts. Enable the checkbox to pause the ticker when a user\'s have their mouse over the ticker.', 'ditty-news-ticker'),
549
+ 'type' => 'number',
550
+ 'name' => '_mtphr_dnt_scroll_speed',
551
+ 'value' => $values['speed'],
552
+ 'append' => array(
553
+
554
+ /* !Scroll pause - 2.0.0 */
555
+ 'pause' => array(
556
+ 'type' => 'checkbox',
557
+ 'name' => '_mtphr_dnt_scroll_pause',
558
+ 'value' => $values['pause'],
559
+ 'label' => __('Pause on mouse over', 'ditty-news-ticker'),
560
+ )
561
+ )
562
+ ),
563
+
564
+ /* !Tick spacing - 2.0.0 */
565
+ 'spacing' => array(
566
+ 'heading' => __('Tick spacing', 'ditty-news-ticker'),
567
+ 'description' => __('Set the spacing between scrolling data', 'ditty-news-ticker'),
568
+ 'help' => __('Set the amount of space that should be rendered between the ticks within your ticker.', 'ditty-news-ticker'),
569
+ 'type' => 'number',
570
+ 'name' => '_mtphr_dnt_scroll_tick_spacing',
571
+ 'value' => $values['spacing'],
572
+ 'after' => __('pixels', 'ditty-news-ticker')
573
+ )
574
+ );
575
+
576
+ return apply_filters( 'mtphr_dnt_scroll_fields', $fields, $values );
577
+ }
578
+ }
579
+
580
+
581
+ /* --------------------------------------------------------- */
582
+ /* !Return the rotate mode values - 2.0.2 */
583
+ /* --------------------------------------------------------- */
584
 
585
+ if( !function_exists('mtphr_dnt_rotate_values') ) {
586
+ function mtphr_dnt_rotate_values() {
587
+
588
  global $post;
589
 
590
+ $type = get_post_meta( $post->ID, '_mtphr_dnt_rotate_type', true );
591
+
592
  $defaults = array(
593
  'type' => 'fade',
594
  'reverse' => '',
595
  'height' => 0,
596
  'padding' => 0,
597
  'margin' => 0,
598
+ 'auto' => ($type == '' ) ? '1' : '',
599
  'delay' => 7,
600
  'pause' => '',
601
+ 'speed' => 10,
602
+ 'ease' => 'easeInOutQuint',
603
+ 'directional_nav' => ($type == '' ) ? '1' : '',
604
  'directional_nav_hide' => '',
605
+ 'control_nav' => ($type == '' ) ? '1' : '',
606
+ 'control_nav_type' => 'button',
607
+ 'disable_touchswipe' => ''
608
  );
609
 
610
+ $defaults = apply_filters( 'mtphr_dnt_rotate_defaults', $defaults, $type );
611
+
612
  $values = array(
613
+ 'type' => $type,
614
  'reverse' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav_reverse', true ),
615
  'height' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_height', true ),
616
  'padding' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_padding', true ),
623
  'directional_nav' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav', true ),
624
  'directional_nav_hide' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_directional_nav_hide', true ),
625
  'control_nav' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_control_nav', true ),
626
+ 'control_nav_type' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_control_nav_type', true ),
627
+ 'disable_touchswipe' => get_post_meta( $post->ID, '_mtphr_dnt_rotate_disable_touchswipe', true )
628
  );
629
  foreach( $values as $i=>$value ) {
630
  if( $value == '' ) {
632
  }
633
  }
634
 
635
+ return wp_parse_args( $values, $defaults );
636
+ }
637
+ }
638
+
639
+ /* --------------------------------------------------------- */
640
+ /* !Return the rotate mode fields - 2.0.0 */
641
+ /* --------------------------------------------------------- */
642
+
643
+ if( !function_exists('mtphr_dnt_rotate_fields') ) {
644
+ function mtphr_dnt_rotate_fields() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
645
 
646
+ $values = mtphr_dnt_rotate_values();
647
+
648
+ $fields = array(
649
+
650
+ /* !Rotate type - 2.0.0 */
651
+ 'direction' => array(
652
+ 'heading' => __('Rotation type', 'ditty-news-ticker'),
653
+ 'description' => __('Set the type of rotation for the ticker', 'ditty-news-ticker'),
654
+ 'help' => __('Select the rotation type. Enable \'Dynamic Slide Direction\' to reverse the slide direction when previous items are selected.', 'ditty-news-ticker'),
655
+ 'type' => 'radio_buttons',
656
+ 'name' => '_mtphr_dnt_rotate_type',
657
+ 'value' => $values['type'],
658
+ 'options' => array(
659
+ 'fade' => __('Fade', 'ditty-news-ticker'),
660
+ 'slide_left' => __('Slide left', 'ditty-news-ticker'),
661
+ 'slide_right' => __('Slide right', 'ditty-news-ticker'),
662
+ 'slide_up' => __('Slide up', 'ditty-news-ticker'),
663
+ 'slide_down' => __('Slide up', 'ditty-news-ticker')
664
+ ),
665
+ 'append' => array(
666
+
667
+ /* !Dynamic slide direction - 2.0.0 */
668
+ 'init' => array(
669
+ 'type' => 'checkbox',
670
+ 'name' => '_mtphr_dnt_rotate_directional_nav_reverse',
671
+ 'label' => __('Dynamic slide direction', 'ditty-news-ticker'),
672
+ 'value' => $values['reverse'],
673
+ )
674
+ )
675
+ ),
676
+
677
+ /* !Tick height - 2.0.0 */
678
+ 'dimensions' => array(
679
+ 'heading' => __('Tick dimensions', 'ditty-news-ticker'),
680
+ 'description' => __('Override the auto dimensions with specific values', 'ditty-news-ticker'),
681
+ 'help' => __('Set a specific height for the ticks.', 'ditty-news-ticker'),
682
+ 'type' => 'number',
683
+ 'name' => '_mtphr_dnt_rotate_height',
684
+ 'value' => $values['height'],
685
+ 'before' => __('Height', 'ditty-news-ticker').':',
686
+ 'after' => __('pixels', 'ditty-news-ticker')
687
+ ),
688
+
689
+ /* !Tick padding (& margin) - 2.0.0 */
690
+ 'padding' => array(
691
+ 'heading' => __('Rotator padding', 'ditty-news-ticker'),
692
+ 'description' => __('Set the vertical spacing of the rotating data', 'ditty-news-ticker'),
693
+ 'help' => __('Add custom vertical padding and margins to each of your ticks.', 'ditty-news-ticker'),
694
+ 'type' => 'number',
695
+ 'name' => '_mtphr_dnt_rotate_padding',
696
+ 'value' => $values['padding'],
697
+ 'before' => __('Vertical padding', 'ditty-news-ticker').':',
698
+ 'after' => __('pixels', 'ditty-news-ticker'),
699
+ 'append' => array(
700
+
701
+ /* !Ticker margin - 2.0.0 */
702
+ 'margin' => array(
703
+ 'type' => 'number',
704
+ 'name' => '_mtphr_dnt_rotate_margin',
705
+ 'value' => $values['margin'],
706
+ 'before' => __('Vertical margin', 'ditty-news-ticker').':',
707
+ 'after' => __('pixels', 'ditty-news-ticker'),
708
+ )
709
+ )
710
+ ),
711
+
712
+ /* !Auto rotate (& pause) - 2.0.0 */
713
+ 'auto_rotate' => array(
714
+ 'heading' => __('Auto rotate', 'ditty-news-ticker'),
715
+ 'description' => __('Set the delay between rotations', 'ditty-news-ticker'),
716
+ 'help' => __('Enable auto rotation of your ticks with and set the amount of time each tick should display. Optionally, force the rotator to pause when the user hovers over the ticker.', 'ditty-news-ticker'),
717
+ 'type' => 'checkbox',
718
+ 'name' => '_mtphr_dnt_auto_rotate',
719
+ 'value' => $values['auto'],
720
+ 'label' => __('Enable', 'ditty-news-ticker'),
721
+ 'append' => array(
722
+
723
+ /* !Delay - 2.0.0 */
724
+ 'delay' => array(
725
+ 'type' => 'number',
726
+ 'name' => '_mtphr_dnt_rotate_delay',
727
+ 'value' => $values['delay'],
728
+ 'after' => __('Seconds delay', 'ditty-news-ticker')
729
+ ),
730
+
731
+ /* !Pause - 2.0.0 */
732
+ 'pause' => array(
733
+ 'type' => 'checkbox',
734
+ 'name' => '_mtphr_dnt_rotate_pause',
735
+ 'value' => $values['pause'],
736
+ 'label' => __('Pause on mouse over', 'ditty-news-ticker')
737
+ )
738
+ )
739
+ ),
740
+
741
+ /* !Rotate speed (& ease) - 2.0.0 */
742
+ 'speed' => array(
743
+ 'heading' => __('Rotate speed', 'ditty-news-ticker'),
744
+ 'description' => __('Set the speed & easing of the rotation', 'ditty-news-ticker'),
745
+ 'help' => __('Set the speed of the rotation based on tenths of a second. Also, choose the type of easing you want to use when the ticks rotate.', 'ditty-news-ticker'),
746
+ 'type' => 'number',
747
+ 'name' => '_mtphr_dnt_rotate_speed',
748
+ 'value' => $values['speed'],
749
+ 'after' => __('Tenths of a second', 'ditty-news-ticker'),
750
+ 'append' => array(
751
+
752
+ /* !Ease - 2.0.0 */
753
+ 'ease' => array(
754
+ 'type' => 'select',
755
+ 'name' => '_mtphr_dnt_rotate_ease',
756
+ 'value' => $values['ease'],
757
+ 'option_keys' => false,
758
+ 'options' => array(
759
+ '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'
760
+ )
761
+ )
762
+ )
763
+ ),
764
+
765
+ /* !Directional navigation - 2.0.0 */
766
+ 'directional_nav' => array(
767
+ 'heading' => __('Directional navigation', 'ditty-news-ticker'),
768
+ 'description' => __('Set the directional navigation options', 'ditty-news-ticker'),
769
+ 'help' => __('Enable the directional navigation. Optionally, set the navigation to auto-hide when the user is not hovering over the ticker.', 'ditty-news-ticker'),
770
+ 'type' => 'checkbox',
771
+ 'name' => '_mtphr_dnt_rotate_directional_nav',
772
+ 'value' => $values['directional_nav'],
773
+ 'label' => __('Enable', 'ditty-news-ticker'),
774
+ 'append' => array(
775
+
776
+ /* !Hide - 2.0.0 */
777
+ 'hide' => array(
778
+ 'type' => 'checkbox',
779
+ 'name' => '_mtphr_dnt_rotate_directional_nav_hide',
780
+ 'value' => $values['directional_nav_hide'],
781
+ 'label' => __('Autohide navigation', 'ditty-news-ticker')
782
+ )
783
+ )
784
+ ),
785
+
786
+ /* !Control navigation - 2.0.0 */
787
+ 'control_nav' => array(
788
+ 'heading' => __('Control navigation', 'ditty-news-ticker'),
789
+ 'description' => __('Set the control navigation options', 'ditty-news-ticker'),
790
+ 'help' => __('Enable the control navigation and choose the type of display.', 'ditty-news-ticker'),
791
+ 'type' => 'checkbox',
792
+ 'name' => '_mtphr_dnt_rotate_control_nav',
793
+ 'value' => $values['control_nav'],
794
+ 'label' => __('Enable', 'ditty-news-ticker'),
795
+ 'append' => array(
796
+
797
+ /* !Type - 2.0.0 */
798
+ 'nav_type' => array(
799
+ 'type' => 'radio_buttons',
800
+ 'name' => '_mtphr_dnt_rotate_control_nav_type',
801
+ 'value' => $values['control_nav_type'],
802
+ 'options' => array(
803
+ 'button' => __('Buttons', 'ditty-news-ticker'),
804
+ 'number' => __('Numbers', 'ditty-news-ticker')
805
+ )
806
+ )
807
+ )
808
+ ),
809
+
810
+ /* !Disable touchswipe - 2.0.0 */
811
+ 'touchswipe' => array(
812
+ 'heading' => __('Disable Touchswipe', 'ditty-news-ticker'),
813
+ 'description' => __('Disable touchswipe navigation on touch devices', 'ditty-news-ticker'),
814
+ 'help' => __('Disable touchswipe navigation on touch devices', 'ditty-news-ticker'),
815
+ 'type' => 'checkbox',
816
+ 'name' => '_mtphr_dnt_rotate_disable_touchswipe',
817
+ 'value' => $values['disable_touchswipe'],
818
+ 'label' => __('Disable', 'ditty-news-ticker')
819
+ ),
820
+
821
+ );
822
+
823
+ return apply_filters( 'mtphr_dnt_rotate_fields', $fields, $values );
824
+ }
825
+ }
826
+
827
+
828
+ /* --------------------------------------------------------- */
829
+ /* !Return the list mode values - 2.0.2 */
830
+ /* --------------------------------------------------------- */
831
+
832
+ if( !function_exists('mtphr_dnt_list_values') ) {
833
+ function mtphr_dnt_list_values() {
834
+
835
  global $post;
836
 
837
  $defaults = array(
839
  'margin' => 0,
840
  'spacing' => 10,
841
  'paging' => '',
842
+ 'count' => 10,
843
  'prev_next' => '',
844
  'prev_text' => __('« Previous', 'ditty-news-ticker'),
845
  'next_text' => __('Next »', 'ditty-news-ticker'),
846
  );
847
 
848
+ $defaults = apply_filters( 'mtphr_dnt_list_defaults', $defaults );
849
+
850
  $values = array(
851
  'padding' => get_post_meta( $post->ID, '_mtphr_dnt_list_padding', true ),
852
  'margin' => get_post_meta( $post->ID, '_mtphr_dnt_list_margin', true ),
863
  }
864
  }
865
 
866
+ return wp_parse_args( $values, $defaults );
867
+ }
868
+ }
869
 
870
+ /* --------------------------------------------------------- */
871
+ /* !Return the list mode fields - 2.0.2 */
872
+ /* --------------------------------------------------------- */
873
 
874
+ if( !function_exists('mtphr_dnt_list_fields') ) {
875
+ function mtphr_dnt_list_fields() {
876
+
877
+ $values = mtphr_dnt_list_values();
878
+
879
+ $fields = array(
880
 
881
+ /* !Tick padding (& margin) - 2.0.0 */
882
+ 'padding' => array(
883
+ 'heading' => __('List padding', 'ditty-news-ticker'),
884
+ 'description' => __('Set the vertical spacing of the list container', 'ditty-news-ticker'),
885
+ 'help' => __('Add custom vertical padding and margins to each of your ticks.', 'ditty-news-ticker'),
886
+ 'type' => 'number',
887
+ 'name' => '_mtphr_dnt_list_padding',
888
+ 'value' => $values['padding'],
889
+ 'before' => __('Vertical padding', 'ditty-news-ticker').':',
890
+ 'after' => __('pixels', 'ditty-news-ticker'),
891
+ 'append' => array(
892
+
893
+ /* !Ticker margin - 2.0.0 */
894
+ 'margin' => array(
895
+ 'type' => 'number',
896
+ 'name' => '_mtphr_dnt_list_margin',
897
+ 'value' => $values['margin'],
898
+ 'before' => __('Vertical margin', 'ditty-news-ticker').':',
899
+ 'after' => __('pixels', 'ditty-news-ticker'),
900
+ )
901
+ )
902
+ ),
903
 
904
+ /* !Tick spacing - 2.0.0 */
905
+ 'spacing' => array(
906
+ 'heading' => __('Tick spacing', 'ditty-news-ticker'),
907
+ 'description' => __('Set the spacing between ticks', 'ditty-news-ticker'),
908
+ 'help' => __('Set the amount of space that should be added between the ticks.', 'ditty-news-ticker'),
909
+ 'type' => 'number',
910
+ 'name' => '_mtphr_dnt_list_tick_spacing',
911
+ 'value' => $values['spacing'],
912
+ 'after' => __('pixels', 'ditty-news-ticker')
913
+ ),
914
 
915
+ /* !Paging - 2.0.0 */
916
+ 'paging' => array(
917
+ 'heading' => __('List paging', 'ditty-news-ticker'),
918
+ 'description' => __('Break the list up into pages', 'ditty-news-ticker'),
919
+ 'help' => __('Break your list up into pages with navigation. Set the number of ticks to show per page and customize the previous and next links.', 'ditty-news-ticker'),
920
+ 'type' => 'checkbox',
921
+ 'name' => '_mtphr_dnt_list_tick_paging',
922
+ 'value' => $values['paging'],
923
+ 'label' => __('Enable', 'ditty-news-ticker'),
924
+ 'append' => array(
925
+
926
+ /* !Scroll pause - 2.0.0 */
927
+ 'count' => array(
928
+ 'type' => 'number',
929
+ 'name' => '_mtphr_dnt_list_tick_count',
930
+ 'value' => $values['count'],
931
+ 'after' => __('Ticks per page', 'ditty-news-ticker')
932
+ ),
933
+
934
+ /* !Previous & next buttons - 2.0.0 */
935
+ 'prev_next' => array(
936
+ 'type' => 'checkbox',
937
+ 'name' => '_mtphr_dnt_list_tick_prev_next',
938
+ 'value' => $values['prev_next'],
939
+ 'label' => __('Enable previous & next links', 'ditty-news-ticker')
940
+ ),
941
+
942
+ /* !Previous text - 2.0.0 */
943
+ 'prev_text' => array(
944
+ 'type' => 'text',
945
+ 'name' => '_mtphr_dnt_list_tick_prev_text',
946
+ 'value' => $values['prev_text'],
947
+ 'placeholder' => __('Previous text', 'ditty-news-ticker')
948
+ ),
949
+
950
+ /* !Next text - 2.0.0 */
951
+ 'next_next' => array(
952
+ 'type' => 'text',
953
+ 'name' => '_mtphr_dnt_list_tick_next_text',
954
+ 'value' => $values['next_text'],
955
+ 'placeholder' => __('Next text', 'ditty-news-ticker')
956
+ )
957
+ )
958
+ )
959
 
960
+ );
961
+
962
+ return apply_filters( 'mtphr_dnt_list_fields', $fields, $values );
963
  }
964
  }
965
 
966
 
967
  /* --------------------------------------------------------- */
968
+ /* !Return the global values - 2.0.2 */
969
  /* --------------------------------------------------------- */
970
 
971
+ if( !function_exists('mtphr_dnt_global_values') ) {
972
+ function mtphr_dnt_global_values() {
973
+
974
  global $post;
975
 
976
  $defaults = array(
977
+ 'ajax' => '',
978
  'title' => '',
979
  'inline_title' => '',
980
  'shuffle' => '',
981
  'width' => 0,
982
  'offset' => 20,
983
+ 'trim_ticks' => '',
984
+ 'pause_button' => '',
985
  'grid' => '',
986
  'grid_empty_rows' => '',
987
  'grid_equal_width' => '',
988
  'grid_cols' => 2,
989
  'grid_rows' => 2,
990
  'grid_padding' => 5,
991
+ 'grid_remove_padding' => '',
992
  );
993
 
994
+ $defaults = apply_filters( 'mtphr_dnt_global_defaults', $defaults );
995
+
996
  $values = array(
997
+ 'ajax' => get_post_meta( $post->ID, '_mtphr_dnt_ajax', true ),
998
  'title' => get_post_meta( $post->ID, '_mtphr_dnt_title', true ),
999
  'inline_title' => get_post_meta( $post->ID, '_mtphr_dnt_inline_title', true ),
1000
  'shuffle' => get_post_meta( $post->ID, '_mtphr_dnt_shuffle', true ),
1001
  'width' => get_post_meta( $post->ID, '_mtphr_dnt_ticker_width', true ),
1002
  'offset' => get_post_meta( $post->ID, '_mtphr_dnt_offset', true ),
1003
+ 'trim_ticks' => get_post_meta( $post->ID, '_mtphr_dnt_trim_ticks', true ),
1004
+ 'pause_button' => get_post_meta( $post->ID, '_mtphr_dnt_pause_button', true ),
1005
  'grid' => get_post_meta( $post->ID, '_mtphr_dnt_grid', true ),
1006
  'grid_empty_rows' => get_post_meta( $post->ID, '_mtphr_dnt_grid_empty_rows', true ),
1007
  'grid_equal_width' => get_post_meta( $post->ID, '_mtphr_dnt_grid_equal_width', true ),
1008
  'grid_cols' => get_post_meta( $post->ID, '_mtphr_dnt_grid_cols', true ),
1009
  'grid_rows' => get_post_meta( $post->ID, '_mtphr_dnt_grid_rows', true ),
1010
  'grid_padding' => get_post_meta( $post->ID, '_mtphr_dnt_grid_padding', true ),
1011
+ 'grid_remove_padding' => get_post_meta( $post->ID, '_mtphr_dnt_grid_remove_padding', true ),
1012
  );
1013
  foreach( $values as $i=>$value ) {
1014
  if( $value == '' ) {
1016
  }
1017
  }
1018
 
1019
+ return wp_parse_args( $values, $defaults );
1020
+ }
1021
+ }
1022
+
1023
+ /* --------------------------------------------------------- */
1024
+ /* !Return the global fields - 2.0.0 */
1025
+ /* --------------------------------------------------------- */
1026
+
1027
+ if( !function_exists('mtphr_dnt_global_fields') ) {
1028
+ function mtphr_dnt_global_fields() {
1029
 
1030
+ $values = mtphr_dnt_global_values();
1031
 
1032
+ $fields = array(
1033
 
1034
+ /* !Title display (& inline display) - 2.0.0 */
1035
+ 'title' => array(
1036
+ 'heading' => __('Ticker title', 'ditty-news-ticker'),
1037
+ 'description' => __('Set the display of the title', 'ditty-news-ticker'),
1038
+ 'help' => __('Enable the display and set the position of the ticker title.', 'ditty-news-ticker'),
1039
+ 'type' => 'checkbox',
1040
+ 'name' => '_mtphr_dnt_title',
1041
+ 'value' => $values['title'],
1042
+ 'label' => __('Display title', 'ditty-news-ticker'),
1043
+ 'append' => array(
1044
+
1045
+ /* !Ticker margin - 2.0.0 */
1046
+ 'inline' => array(
1047
+ 'type' => 'checkbox',
1048
+ 'name' => '_mtphr_dnt_inline_title',
1049
+ 'value' => $values['inline_title'],
1050
+ 'label' => __('Inline title', 'ditty-news-ticker')
1051
+ )
1052
+ )
1053
+ ),
1054
 
1055
+ /* !Shuffle - 2.0.4 */
1056
+ 'shuffle' => array(
1057
+ 'heading' => __('Ticker options', 'ditty-news-ticker'),
1058
+ 'description' => __('General ticker options', 'ditty-news-ticker'),
1059
+ 'type' => 'container',
1060
+ 'append' => array(
1061
+
1062
+ /* !Shuffle ticks - 2.0.4 */
1063
+ 'shuffle' => array(
1064
+ 'type' => 'checkbox',
1065
+ 'name' => '_mtphr_dnt_shuffle',
1066
+ 'value' => $values['shuffle'],
1067
+ 'label' => __('Randomly shuffle the ticks', 'ditty-news-ticker')
1068
+ ),
1069
+
1070
+ /* !Trim ticks - 2.0.2 */
1071
+ 'trim_ticks' => array(
1072
+ 'type' => 'checkbox',
1073
+ 'name' => '_mtphr_dnt_trim_ticks',
1074
+ 'value' => $values['trim_ticks'],
1075
+ 'label' => __('Remove margin and padding from all tick contents', 'ditty-news-ticker')
1076
+ ),
1077
+
1078
+ /* !Pause button - 2.0.4 */
1079
+ 'pause_button' => array(
1080
+ 'type' => 'checkbox',
1081
+ 'name' => '_mtphr_dnt_pause_button',
1082
+ 'value' => $values['pause_button'],
1083
+ 'label' => __('Add a play/pause button to scrolling and auto-rotating tickers', 'ditty-news-ticker')
1084
+ ),
1085
+ )
1086
+ ),
1087
 
1088
+ /* !Ticker width - 2.0.0 */
1089
+ 'width' => array(
1090
+ 'heading' => __('Ticker width', 'ditty-news-ticker'),
1091
+ 'description' => __('Set a static width for the ticker', 'ditty-news-ticker'),
1092
+ 'help' => __('Leave blank or set to \'0\' if you want the ticker width to be responsive.', 'ditty-news-ticker'),
1093
+ 'type' => 'number',
1094
+ 'name' => '_mtphr_dnt_ticker_width',
1095
+ 'value' => $values['width'],
1096
+ 'after' => __('pixels', 'ditty-news-ticker')
1097
+ ),
1098
 
1099
+ /* !Ticker offset - 2.0.0 */
1100
+ 'offset' => array(
1101
+ 'heading' => __('Offset ticks', 'ditty-news-ticker'),
1102
+ 'description' => __('Set the amount of pixels ticks should start and end off the screen', 'ditty-news-ticker'),
1103
+ 'type' => 'number',
1104
+ 'name' => '_mtphr_dnt_offset',
1105
+ 'value' => $values['offset'],
1106
+ 'after' => __('pixels', 'ditty-news-ticker')
1107
+ ),
1108
 
1109
+ /* !Grid display - 2.0.0 */
1110
+ 'grid' => array(
1111
+ 'heading' => __('Grid Display', 'ditty-news-ticker'),
1112
+ 'description' => __('Enable a grid display of your tickers and adjust the grid settings', 'ditty-news-ticker'),
1113
+ 'help' => __('You should only use this option if you need to display multiple ticks at the same time. You should not use this functionality if you are using a normal scrolling ticker.', 'ditty-news-ticker'),
1114
+ 'type' => 'checkbox',
1115
+ 'name' => '_mtphr_dnt_grid',
1116
+ 'value' => $values['grid'],
1117
+ 'label' => __('Display ticks in a grid', 'ditty-news-ticker'),
1118
+ 'append' => array(
1119
+
1120
+ /* !Empty rows - 2.0.0 */
1121
+ 'empty_rows' => array(
1122
+ 'type' => 'checkbox',
1123
+ 'name' => '_mtphr_dnt_grid_empty_rows',
1124
+ 'value' => $values['grid_empty_rows'],
1125
+ 'label' => __('Render empty rows', 'ditty-news-ticker')
1126
+ ),
1127
+
1128
+ /* !Empty rows - 2.0.0 */
1129
+ 'equal_width' => array(
1130
+ 'type' => 'checkbox',
1131
+ 'name' => '_mtphr_dnt_grid_equal_width',
1132
+ 'value' => $values['grid_equal_width'],
1133
+ 'label' => __('Force equal column width', 'ditty-news-ticker')
1134
+ ),
1135
+
1136
+ /* !Columns - 2.0.0 */
1137
+ 'cols' => array(
1138
+ 'type' => 'number',
1139
+ 'name' => '_mtphr_dnt_grid_cols',
1140
+ 'value' => $values['grid_cols'],
1141
+ 'before' => __('Columns', 'ditty-news-ticker')
1142
+ ),
1143
+
1144
+ /* !Rows - 2.0.0 */
1145
+ 'rows' => array(
1146
+ 'type' => 'number',
1147
+ 'name' => '_mtphr_dnt_grid_rows',
1148
+ 'value' => $values['grid_rows'],
1149
+ 'before' => __('Rows', 'ditty-news-ticker')
1150
+ ),
1151
+
1152
+ /* !Cell padding - 2.0.0 */
1153
+ 'padding' => array(
1154
+ 'type' => 'number',
1155
+ 'name' => '_mtphr_dnt_grid_padding',
1156
+ 'value' => $values['grid_padding'],
1157
+ 'before' => __('Cell padding', 'ditty-news-ticker')
1158
+ ),
1159
+
1160
+ /* !Remove padding - 2.0.0 */
1161
+ 'remove_padding' => array(
1162
+ 'type' => 'checkbox',
1163
+ 'name' => '_mtphr_dnt_grid_remove_padding',
1164
+ 'value' => $values['grid_remove_padding'],
1165
+ 'label' => __('Remove padding on table edges', 'ditty-news-ticker')
1166
+ )
1167
+ )
1168
+ ),
1169
 
1170
+ );
1171
+
1172
+ return apply_filters( 'mtphr_dnt_global_fields', $fields, $values );
1173
  }
1174
  }
1175
 
1176
 
1177
 
1178
 
 
 
1179
  /* --------------------------------------------------------- */
1180
+ /* !Save the custom meta - 2.0.2 */
1181
  /* --------------------------------------------------------- */
1182
 
1183
+ if( !function_exists('mtphr_dnt_metabox_save') ) {
1184
  function mtphr_dnt_metabox_save( $post_id ) {
1185
 
1186
  global $post;
1205
  return $post_id;
1206
  }
1207
 
1208
+ // Check javascript errors
1209
+ $admin_javascript = isset($_POST['_mtphr_dnt_admin_javascript']) ? $_POST['_mtphr_dnt_admin_javascript'] : 'error';
1210
+ //update_post_meta( $post_id, '_mtphr_dnt_admin_javascript', $admin_javascript );
1211
+
1212
  // Update the type & mode
1213
  if( isset($_POST['_mtphr_dnt_type']) ) {
1214
 
1215
+ $tab = isset($_POST['_mtphr_dnt_admin_tab']) ? sanitize_text_field($_POST['_mtphr_dnt_admin_tab']) : '';
1216
  $type = isset($_POST['_mtphr_dnt_type']) ? sanitize_text_field($_POST['_mtphr_dnt_type']) : 'default';
1217
  $mode = isset($_POST['_mtphr_dnt_mode']) ? sanitize_text_field($_POST['_mtphr_dnt_mode']) : 'scroll';
1218
 
1219
+ update_post_meta( $post_id, '_mtphr_dnt_admin_tab', $tab );
1220
  update_post_meta( $post_id, '_mtphr_dnt_type', $type );
1221
  update_post_meta( $post_id, '_mtphr_dnt_mode', $mode );
1222
  }
1226
 
1227
  $force_breaks = ( isset($_POST['_mtphr_dnt_line_breaks']) && $_POST['_mtphr_dnt_line_breaks'] != '' ) ? 1 : '';
1228
  update_post_meta( $post_id, '_mtphr_dnt_line_breaks', $force_breaks );
1229
+
1230
+ $allowed_tags = wp_kses_allowed_html( 'post' );
1231
+ $allowed_tags['div']['data-href'] = true;
1232
+ $allowed_tags['div']['data-width'] = true;
1233
 
1234
  $sanitized_ticks = array();
1235
  if( count($_POST['_mtphr_dnt_ticks']) > 0 ) {
1236
  foreach( $_POST['_mtphr_dnt_ticks'] as $tick ) {
1237
  $sanitized_ticks[] = array(
1238
+ 'tick' => isset($tick['tick']) ? wp_kses($tick['tick'], $allowed_tags) : '',
1239
+ 'link' => isset($tick['link']) ? esc_url($tick['link']) : '',
1240
+ 'target' => isset($tick['target']) ? $tick['target'] : '',
1241
  'nofollow' => isset( $tick['nofollow'] ) ? $tick['nofollow'] : ''
1242
  );
1243
  }
1244
  }
1245
+
1246
+ if( $admin_javascript == 'ok' ) {
1247
+ update_post_meta( $post_id, '_mtphr_dnt_ticks', $sanitized_ticks );
1248
+ }
1249
  }
1250
 
1251
  // Save the mixed ticks
1260
  );
1261
  }
1262
  }
1263
+ if( $admin_javascript == 'ok' ) {
1264
+ update_post_meta( $post_id, '_mtphr_dnt_mixed_ticks', $sanitized_ticks );
1265
+ }
1266
  }
1267
 
1268
  // Save the scroll settings
1306
  $directional_nav_hide = isset($_POST['_mtphr_dnt_rotate_directional_nav_hide']) ? $_POST['_mtphr_dnt_rotate_directional_nav_hide'] : '';
1307
  $control_nav = isset($_POST['_mtphr_dnt_rotate_control_nav']) ? $_POST['_mtphr_dnt_rotate_control_nav'] : '';
1308
  $control_nav_type = isset($_POST['_mtphr_dnt_rotate_control_nav_type']) ? $_POST['_mtphr_dnt_rotate_control_nav_type'] : 'number';
1309
+ $disable_touchswipe = isset($_POST['_mtphr_dnt_rotate_disable_touchswipe']) ? $_POST['_mtphr_dnt_rotate_disable_touchswipe'] : '';
1310
 
1311
  update_post_meta( $post_id, '_mtphr_dnt_rotate_type', $type );
1312
  update_post_meta( $post_id, '_mtphr_dnt_rotate_directional_nav_reverse', $reverse );
1322
  update_post_meta( $post_id, '_mtphr_dnt_rotate_directional_nav_hide', $directional_nav_hide );
1323
  update_post_meta( $post_id, '_mtphr_dnt_rotate_control_nav', $control_nav );
1324
  update_post_meta( $post_id, '_mtphr_dnt_rotate_control_nav_type', $control_nav_type );
1325
+ update_post_meta( $post_id, '_mtphr_dnt_rotate_disable_touchswipe', $disable_touchswipe );
1326
  }
1327
 
1328
  // Save the list settings
1350
  // Save the global settings
1351
  if( isset($_POST['_mtphr_dnt_ticker_width']) ) {
1352
 
1353
+ //$ajax = isset($_POST['_mtphr_dnt_ajax']) ? $_POST['_mtphr_dnt_ajax'] : '';
1354
  $title = isset($_POST['_mtphr_dnt_title']) ? $_POST['_mtphr_dnt_title'] : '';
1355
  $inline_title = isset($_POST['_mtphr_dnt_inline_title']) ? $_POST['_mtphr_dnt_inline_title'] : '';
1356
  $shuffle = isset($_POST['_mtphr_dnt_shuffle']) ? $_POST['_mtphr_dnt_shuffle'] : '';
1357
  $width = isset($_POST['_mtphr_dnt_ticker_width']) ? intval($_POST['_mtphr_dnt_ticker_width']) : 0;
1358
+ $offset = isset($_POST['_mtphr_dnt_offset']) ? intval($_POST['_mtphr_dnt_offset']) : 20;
1359
+ $trim = isset($_POST['_mtphr_dnt_trim_ticks']) ? $_POST['_mtphr_dnt_trim_ticks'] : '';
1360
+ $pause_button = isset($_POST['_mtphr_dnt_pause_button']) ? $_POST['_mtphr_dnt_pause_button'] : '';
1361
  $grid = isset($_POST['_mtphr_dnt_grid']) ? $_POST['_mtphr_dnt_grid'] : '';
1362
  $grid_empty_rows = isset($_POST['_mtphr_dnt_grid_empty_rows']) ? $_POST['_mtphr_dnt_grid_empty_rows'] : '';
1363
  $grid_equal_width = isset($_POST['_mtphr_dnt_grid_equal_width']) ? $_POST['_mtphr_dnt_grid_equal_width'] : '';
1364
  $grid_cols = isset($_POST['_mtphr_dnt_grid_cols']) ? intval($_POST['_mtphr_dnt_grid_cols']) : 2;
1365
  $grid_rows = isset($_POST['_mtphr_dnt_grid_rows']) ? intval($_POST['_mtphr_dnt_grid_rows']) : 2;
1366
  $grid_padding = isset($_POST['_mtphr_dnt_grid_padding']) ? intval($_POST['_mtphr_dnt_grid_padding']) : 5;
1367
+ $grid_remove_padding = isset($_POST['_mtphr_dnt_grid_remove_padding']) ? $_POST['_mtphr_dnt_grid_remove_padding'] : '';
1368
 
1369
+ //update_post_meta( $post_id, '_mtphr_dnt_ajax', $ajax );
1370
  update_post_meta( $post_id, '_mtphr_dnt_title', $title );
1371
  update_post_meta( $post_id, '_mtphr_dnt_inline_title', $inline_title );
1372
  update_post_meta( $post_id, '_mtphr_dnt_shuffle', $shuffle );
1373
  update_post_meta( $post_id, '_mtphr_dnt_ticker_width', $width );
1374
  update_post_meta( $post_id, '_mtphr_dnt_offset', $offset );
1375
+ update_post_meta( $post_id, '_mtphr_dnt_trim_ticks', $trim );
1376
+ update_post_meta( $post_id, '_mtphr_dnt_pause_button', $pause_button );
1377
  update_post_meta( $post_id, '_mtphr_dnt_grid', $grid );
1378
  update_post_meta( $post_id, '_mtphr_dnt_grid_empty_rows', $grid_empty_rows );
1379
  update_post_meta( $post_id, '_mtphr_dnt_grid_equal_width', $grid_equal_width );
1380
  update_post_meta( $post_id, '_mtphr_dnt_grid_cols', $grid_cols );
1381
  update_post_meta( $post_id, '_mtphr_dnt_grid_rows', $grid_rows );
1382
  update_post_meta( $post_id, '_mtphr_dnt_grid_padding', $grid_padding );
1383
+ update_post_meta( $post_id, '_mtphr_dnt_grid_remove_padding', $grid_remove_padding );
1384
  }
1385
  }
1386
+ }
1387
  add_action( 'save_post', 'mtphr_dnt_metabox_save' );
1388
 
 
 
 
 
 
 
 
 
includes/admin/scripts.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /* --------------------------------------------------------- */
4
- /* !Load the admin scrips - 1.4.8 */
5
  /* --------------------------------------------------------- */
6
 
7
  function mtphr_dnt_admin_scripts( $hook ) {
@@ -20,29 +20,43 @@ function mtphr_dnt_admin_scripts( $hook ) {
20
  }
21
 
22
  // Load the CodeMirror plugin
23
- wp_register_style( 'codemirror', MTPHR_DNT_URL.'/assets/css/admin/codemirror.css', false, MTPHR_DNT_VERSION );
24
  wp_enqueue_style( 'codemirror' );
25
- wp_register_script( 'codemirror', MTPHR_DNT_URL.'/assets/js/admin/codemirror.js', array('jquery'), MTPHR_DNT_VERSION, true );
26
  wp_enqueue_script( 'codemirror' );
27
- wp_register_script( 'codemirror-css', MTPHR_DNT_URL.'/assets/js/admin/codemirror/css.js', array('jquery'), MTPHR_DNT_VERSION, true );
28
  wp_enqueue_script( 'codemirror-css' );
29
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  // Load the news ticker scripts
31
- wp_register_script( 'ditty-news-ticker', MTPHR_DNT_URL.'/assets/js/admin/script.js', array( 'jquery','jquery-ui-core','jquery-ui-sortable' ), MTPHR_DNT_VERSION, true );
32
  wp_enqueue_script( 'ditty-news-ticker' );
33
  wp_localize_script( 'ditty-news-ticker', 'ditty_news_ticker_vars', array(
34
- 'security' => wp_create_nonce( 'ditty-news-ticker' )
 
 
35
  )
36
  );
37
  }
38
 
39
  // Load the icon font css
40
- wp_register_style( 'ditty-news-ticker-font', MTPHR_DNT_URL.'/assets/fontastic/styles.css', false, MTPHR_DNT_VERSION );
41
  wp_enqueue_style( 'ditty-news-ticker-font' );
42
 
43
  // Load the plugin css
44
- wp_register_style( 'ditty-news-ticker', MTPHR_DNT_URL.'/assets/css/admin/style.css', false, MTPHR_DNT_VERSION );
45
  wp_enqueue_style( 'ditty-news-ticker' );
46
  }
47
- add_action( 'admin_enqueue_scripts', 'mtphr_dnt_admin_scripts' );
48
 
1
  <?php
2
 
3
  /* --------------------------------------------------------- */
4
+ /* !Load the admin scrips - 2.0.2 */
5
  /* --------------------------------------------------------- */
6
 
7
  function mtphr_dnt_admin_scripts( $hook ) {
20
  }
21
 
22
  // Load the CodeMirror plugin
23
+ wp_register_style( 'codemirror', MTPHR_DNT_URL.'assets/css/codemirror.css', false, MTPHR_DNT_VERSION );
24
  wp_enqueue_style( 'codemirror' );
25
+ wp_register_script( 'codemirror', MTPHR_DNT_URL.'assets/js/codemirror.js', array('jquery'), MTPHR_DNT_VERSION, true );
26
  wp_enqueue_script( 'codemirror' );
27
+ wp_register_script( 'codemirror-css', MTPHR_DNT_URL.'assets/js/codemirror/css.js', array('jquery'), MTPHR_DNT_VERSION, true );
28
  wp_enqueue_script( 'codemirror-css' );
29
 
30
+ // Register the jQuery easing
31
+ wp_register_script( 'jquery-easing', MTPHR_DNT_URL.'assets/js/jquery.easing.1.3.js', array('jquery'), MTPHR_DNT_VERSION, true );
32
+
33
+ // Register Bootstrap
34
+ wp_register_script( 'mtphr-dnt-affix', MTPHR_DNT_URL.'assets/js/mtphr-dnt-affix.js', array('jquery'), MTPHR_DNT_VERSION, true );
35
+
36
+ // Load qTip
37
+ wp_register_style( 'qtip', MTPHR_DNT_URL.'assets/qtip/jquery.qtip.min.css', false, MTPHR_DNT_VERSION );
38
+ wp_enqueue_style( 'qtip' );
39
+ wp_register_script( 'qtip', MTPHR_DNT_URL.'assets/qtip/jquery.qtip.min.js', array( 'jquery' ), MTPHR_DNT_VERSION, true );
40
+ wp_enqueue_script( 'qtip' );
41
+
42
  // Load the news ticker scripts
43
+ wp_register_script( 'ditty-news-ticker', MTPHR_DNT_URL.'assets/js/script-admin.js', array( 'jquery','jquery-ui-core','jquery-ui-sortable', 'jquery-easing', 'qtip', 'mtphr-dnt-affix' ), MTPHR_DNT_VERSION, true );
44
  wp_enqueue_script( 'ditty-news-ticker' );
45
  wp_localize_script( 'ditty-news-ticker', 'ditty_news_ticker_vars', array(
46
+ 'security' => wp_create_nonce( 'ditty-news-ticker' ),
47
+ 'img_title' => __( 'Upload or select an image', 'ditty-news-ticker' ),
48
+ 'img_button' => __( 'Use Image', 'ditty-news-ticker' )
49
  )
50
  );
51
  }
52
 
53
  // Load the icon font css
54
+ wp_register_style( 'ditty-news-ticker-font', MTPHR_DNT_URL.'assets/fontastic/styles.css', false, MTPHR_DNT_VERSION );
55
  wp_enqueue_style( 'ditty-news-ticker-font' );
56
 
57
  // Load the plugin css
58
+ wp_register_style( 'ditty-news-ticker', MTPHR_DNT_URL.'assets/css/style-admin.css', array('dashicons'), MTPHR_DNT_VERSION );
59
  wp_enqueue_style( 'ditty-news-ticker' );
60
  }
61
+ add_action( 'admin_enqueue_scripts', 'mtphr_dnt_admin_scripts', 9 );
62
 
includes/composer.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function mtphr_dnt_add_to_vc() {
4
+
5
+ vc_map( array(
6
+ 'name' => __( 'Ditty News Ticker', 'ditty-news-ticker' ),
7
+ 'base' => 'ditty_news_ticker',
8
+ 'icon' => 'mtphr-dnt-icon-dittynewsticker',
9
+ 'category' => 'Content',
10
+ 'params' => array(
11
+ array(
12
+ 'type' => 'dropdown',
13
+ 'heading' => __( 'Ditty News Ticker', 'ditty-news-ticker' ),
14
+ 'param_name' => 'id',
15
+ 'description' => __('Select the ticker you want to display', 'ditty-news-ticker'),
16
+ 'value' => mtphr_dnt_get_tickers( true ),
17
+ 'admin_label' => true
18
+ ),
19
+ array(
20
+ 'type' => 'textfield',
21
+ 'heading' => __( 'Custom Class', 'ditty-news-ticker' ),
22
+ 'param_name' => 'class',
23
+ 'description' => __('Add a custom class name to the ticker', 'ditty-news-ticker'),
24
+ ),
25
+ )
26
+ ));
27
+ }
28
+ add_action( 'vc_before_init', 'mtphr_dnt_add_to_vc' );
includes/display.php DELETED
@@ -1,19 +0,0 @@
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 CHANGED
@@ -17,7 +17,20 @@ add_filter( 'the_content', 'mtphr_dnt_content' );
17
 
18
 
19
  /* --------------------------------------------------------- */
20
- /* !Make a grid out of the ticks - 1.4.0 */
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  /* --------------------------------------------------------- */
22
 
23
  function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
@@ -38,7 +51,9 @@ function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
38
  $style .= ( $_mtphr_dnt_grid_padding > 0 ) ? 'padding:'.$_mtphr_dnt_grid_padding.'px;' : '';
39
  $style .= '"';
40
 
41
- $data = '<table class="mtphr-dnt-grid">';
 
 
42
  $data .= '<tr class="mtphr-dnt-grid-row mtphr-dnt-grid-row-'.($row_counter+1).'">';
43
 
44
  if( is_array($dnt_ticks) ) {
@@ -63,7 +78,7 @@ function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
63
  // Add to the tick array
64
  $grid_ticks[] = ( $_mtphr_dnt_type == 'mixed' ) ? array( 'type'=>'mixed-grid', 'tick'=>$data ) : $data;
65
 
66
- $data = '<table class="mtphr-dnt-grid">';
67
  $row_counter = 0;
68
  }
69
 
@@ -109,105 +124,9 @@ function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
109
  add_filter( 'mtphr_dnt_tick_array_transform', 'mtphr_dnt_tick_grid', 10, 3 );
110
 
111
 
112
- /* --------------------------------------------------------- */
113
- /* !Add the control nav for rotating ticks - 1.4.5 */
114
- /* --------------------------------------------------------- */
115
-
116
- function mtphr_dnt_direction_nav( $id, $meta_data, $total ) {
117
-
118
- // Extract the metadata array into variables
119
- extract( $meta_data );
120
-
121
- // Add the control nav
122
- if( ($total > 1) && $_mtphr_dnt_mode == 'rotate' ) {
123
-
124
- // Add the directional nav
125
- if( isset($_mtphr_dnt_rotate_directional_nav) ) {
126
- if( $_mtphr_dnt_rotate_directional_nav ) {
127
-
128
- $hide = '';
129
- if( isset($_mtphr_dnt_rotate_directional_nav_hide) && $_mtphr_dnt_rotate_directional_nav_hide ) {
130
- $hide = ' mtphr-dnt-nav-hide';
131
- }
132
- echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-prev'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_prev', '<i class="mtphr-dnt-icon-arrow-left"></i>' ).'</a>';
133
- echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-next'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_next', '<i class="mtphr-dnt-icon-arrow-right"></i>' ).'</a>';
134
- }
135
- }
136
- }
137
- }
138
- add_action( 'mtphr_dnt_contents_after', 'mtphr_dnt_direction_nav', 10, 3 );
139
-
140
-
141
-
142
- /* --------------------------------------------------------- */
143
- /* !Add the control nav for rotating ticks - 1.4.0 */
144
- /* --------------------------------------------------------- */
145
-
146
- function mtphr_dnt_control_nav( $id, $meta_data, $total ) {
147
-
148
- // Extract the metadata array into variables
149
- extract( $meta_data );
150
-
151
- // Add the control nav
152
- if( ($total > 1) && $_mtphr_dnt_mode == 'rotate' ) {
153
- if( isset($_mtphr_dnt_rotate_control_nav) && $_mtphr_dnt_rotate_control_nav ) {
154
-
155
- echo '<div class="mtphr-dnt-control-links">';
156
- for( $i=0; $i<$total; $i++ ) {
157
- $link = ( $_mtphr_dnt_rotate_control_nav_type == 'button' ) ? '<i class="mtphr-dnt-icon-button"></i>' : intval($i+1);
158
- 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', $link, $_mtphr_dnt_rotate_control_nav_type ).'</a>';
159
- }
160
- echo '</div>';
161
- }
162
- }
163
- }
164
- add_action( 'mtphr_dnt_after', 'mtphr_dnt_control_nav', 10, 3 );
165
-
166
-
167
-
168
- /* --------------------------------------------------------- */
169
- /* !Add the pagination for list ticks - 1.4.0 */
170
- /* --------------------------------------------------------- */
171
-
172
- function mtphr_dnt_pagination( $id, $meta_data, $total ) {
173
-
174
- // Extract the metadata array into variables
175
- extract( $meta_data );
176
-
177
- if( $_mtphr_dnt_mode == 'list' && isset($_mtphr_dnt_list_tick_paging) && $_mtphr_dnt_list_tick_paging ) {
178
-
179
- $spacing = 'margin-top:'.intval($_mtphr_dnt_list_tick_spacing).'px;';
180
- $total_pages = ceil( $total/$_mtphr_dnt_list_tick_count );
181
- $current_page = isset( $_GET['tickpage'] ) ? $_GET['tickpage'] : 1;
182
-
183
- $big = 999999999;
184
- $args = array(
185
- 'base' => str_replace( $big, '%#%', add_query_arg('tickpage', $big) ),
186
- 'format' => '?tickpage=%#%',
187
- 'total' => $total_pages,
188
- 'current' => $current_page,
189
- 'show_all' => false,
190
- 'end_size' => 1,
191
- 'mid_size' => 2,
192
- 'prev_next' => $_mtphr_dnt_list_tick_prev_next,
193
- 'prev_text' => $_mtphr_dnt_list_tick_prev_text,
194
- 'next_text' => $_mtphr_dnt_list_tick_next_text,
195
- 'type' => 'plain',
196
- 'add_args' => false,
197
- 'add_fragment' => ''
198
- );
199
-
200
- echo '<div class="mtphr-dnt-tick-paging" style="'.$spacing.'">';
201
- echo paginate_links( apply_filters( 'mtphr_dnt_tick_paging_args', $args ) );
202
- echo '</div>';
203
- }
204
- }
205
- add_action( 'mtphr_dnt_after', 'mtphr_dnt_pagination', 10, 3 );
206
-
207
-
208
 
209
  /* --------------------------------------------------------- */
210
- /* !Add tickers to the global - 1.4.2 */
211
  /* --------------------------------------------------------- */
212
 
213
  function mtphr_dnt_add_to_global( $id, $meta_data ) {
@@ -220,8 +139,6 @@ function mtphr_dnt_add_to_global( $id, $meta_data ) {
220
 
221
  global $mtphr_dnt_ticker_scripts;
222
 
223
-
224
-
225
  // Add a unique id class, if there is one
226
  if( isset($_mtphr_dnt_unique_id) ) {
227
  if( $_mtphr_dnt_unique_id != '' ) {
@@ -231,7 +148,7 @@ function mtphr_dnt_add_to_global( $id, $meta_data ) {
231
 
232
  $ticker = '#mtphr-dnt-'.$id;
233
 
234
- $scroll_pause = 0; $scroll_init = 0;
235
  if( isset($_mtphr_dnt_scroll_pause) ) {
236
  $scroll_pause = $_mtphr_dnt_scroll_pause ? 1 : 0;
237
  }
@@ -248,6 +165,9 @@ function mtphr_dnt_add_to_global( $id, $meta_data ) {
248
  if( isset($_mtphr_dnt_rotate_directional_nav_reverse) ) {
249
  $nav_reverse = $_mtphr_dnt_rotate_directional_nav_reverse ? 1 : 0;
250
  }
 
 
 
251
  $offset = isset($_mtphr_dnt_offset) ? intval($_mtphr_dnt_offset) : 20;
252
  $mtphr_dnt_ticker_scripts[] = array(
253
  'ticker' => $ticker,
@@ -265,6 +185,7 @@ function mtphr_dnt_add_to_global( $id, $meta_data ) {
265
  'rotate_speed' => intval($_mtphr_dnt_rotate_speed),
266
  'rotate_ease' => $_mtphr_dnt_rotate_ease,
267
  'nav_reverse' => $nav_reverse,
 
268
  'offset' => $offset
269
  );
270
  }
@@ -290,26 +211,65 @@ add_action( 'mtphr_dnt_before', 'mtphr_dnt_tick_edit_link' );
290
 
291
 
292
  /* --------------------------------------------------------- */
293
- /* !Add an edit link to the tickers - 1.4.8 */
294
  /* --------------------------------------------------------- */
295
 
296
- function mtphr_dnt_tick_title( $id, $meta_data ) {
 
 
 
297
 
298
- // Extract the metadata array into variables
299
- extract( $meta_data );
300
-
301
- // Display the title
302
- if( isset($_mtphr_dnt_title) && $_mtphr_dnt_title ) {
303
 
304
- $inline_title = '';
305
- if( isset($_mtphr_dnt_inline_title) && $_mtphr_dnt_inline_title ) {
306
- $inline_title = ' mtphr-dnt-inline-title';
307
- }
308
 
309
- do_action( 'mtphr_dnt_title_before', $id, $meta_data );
310
- echo '<h3 class="mtphr-dnt-title'.$inline_title.'">'.apply_filters( 'mtphr_dnt_ticker_title', get_the_title($id) ).'</h3>';
311
- do_action( 'mtphr_dnt_title_after', $id, $meta_data );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  }
313
  }
314
- add_action( 'mtphr_dnt_before', 'mtphr_dnt_tick_title', 10, 2 );
 
315
 
17
 
18
 
19
  /* --------------------------------------------------------- */
20
+ /* !Add oEmbed to default ticks - 1.5.0 */
21
+ /* --------------------------------------------------------- */
22
+
23
+ function mtphr_dnt_oembed() {
24
+
25
+ global $wp_embed;
26
+ add_filter( 'mtphr_dnt_tick', array( $wp_embed, 'autoembed' ), 8 );
27
+ }
28
+ add_action( 'init', 'mtphr_dnt_oembed' );
29
+
30
+
31
+
32
+ /* --------------------------------------------------------- */
33
+ /* !Make a grid out of the ticks - 1.5.5 */
34
  /* --------------------------------------------------------- */
35
 
36
  function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
51
  $style .= ( $_mtphr_dnt_grid_padding > 0 ) ? 'padding:'.$_mtphr_dnt_grid_padding.'px;' : '';
52
  $style .= '"';
53
 
54
+ $extra_classes = ( isset($_mtphr_dnt_grid_remove_padding) && $_mtphr_dnt_grid_remove_padding ) ? ' mtphr-dnt-grid-remove-padding' : '';
55
+
56
+ $data = '<table class="mtphr-dnt-grid'.$extra_classes.'">';
57
  $data .= '<tr class="mtphr-dnt-grid-row mtphr-dnt-grid-row-'.($row_counter+1).'">';
58
 
59
  if( is_array($dnt_ticks) ) {
78
  // Add to the tick array
79
  $grid_ticks[] = ( $_mtphr_dnt_type == 'mixed' ) ? array( 'type'=>'mixed-grid', 'tick'=>$data ) : $data;
80
 
81
+ $data = '<table class="mtphr-dnt-grid'.$extra_classes.'">';
82
  $row_counter = 0;
83
  }
84
 
124
  add_filter( 'mtphr_dnt_tick_array_transform', 'mtphr_dnt_tick_grid', 10, 3 );
125
 
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
 
128
  /* --------------------------------------------------------- */
129
+ /* !Add tickers to the global - 1.5.3 */
130
  /* --------------------------------------------------------- */
131
 
132
  function mtphr_dnt_add_to_global( $id, $meta_data ) {
139
 
140
  global $mtphr_dnt_ticker_scripts;
141
 
 
 
142
  // Add a unique id class, if there is one
143
  if( isset($_mtphr_dnt_unique_id) ) {
144
  if( $_mtphr_dnt_unique_id != '' ) {
148
 
149
  $ticker = '#mtphr-dnt-'.$id;
150
 
151
+ $scroll_pause = 0; $scroll_init = 0; $disable_touchswipe = 0;
152
  if( isset($_mtphr_dnt_scroll_pause) ) {
153
  $scroll_pause = $_mtphr_dnt_scroll_pause ? 1 : 0;
154
  }
165
  if( isset($_mtphr_dnt_rotate_directional_nav_reverse) ) {
166
  $nav_reverse = $_mtphr_dnt_rotate_directional_nav_reverse ? 1 : 0;
167
  }
168
+ if( isset($_mtphr_dnt_rotate_disable_touchswipe) ) {
169
+ $disable_touchswipe = $_mtphr_dnt_rotate_disable_touchswipe ? 1 : 0;
170
+ }
171
  $offset = isset($_mtphr_dnt_offset) ? intval($_mtphr_dnt_offset) : 20;
172
  $mtphr_dnt_ticker_scripts[] = array(
173
  'ticker' => $ticker,
185
  'rotate_speed' => intval($_mtphr_dnt_rotate_speed),
186
  'rotate_ease' => $_mtphr_dnt_rotate_ease,
187
  'nav_reverse' => $nav_reverse,
188
+ 'disable_touchswipe' => $disable_touchswipe,
189
  'offset' => $offset
190
  );
191
  }
211
 
212
 
213
  /* --------------------------------------------------------- */
214
+ /* !Display the ticker title - 1.5.0 */
215
  /* --------------------------------------------------------- */
216
 
217
+ function mtphr_dnt_tick_title() {
218
+ mtphr_dnt_get_template_part( 'title' );
219
+ }
220
+ add_action( 'mtphr_dnt_before', 'mtphr_dnt_tick_title' );
221
 
 
 
 
 
 
222
 
 
 
 
 
223
 
224
+ /* --------------------------------------------------------- */
225
+ /* !Add the control nav for rotating ticks - 1.5.0 */
226
+ /* --------------------------------------------------------- */
227
+
228
+ function mtphr_dnt_direction_nav() {
229
+ mtphr_dnt_get_template_part( 'directional_nav' );
230
+ }
231
+ add_action( 'mtphr_dnt_contents_after', 'mtphr_dnt_direction_nav' );
232
+
233
+
234
+
235
+ /* --------------------------------------------------------- */
236
+ /* !Add the control nav for rotating ticks - 1.5.0 */
237
+ /* --------------------------------------------------------- */
238
+
239
+ function mtphr_dnt_control_nav() {
240
+ mtphr_dnt_get_template_part( 'control_nav' );
241
+ }
242
+ add_action( 'mtphr_dnt_after', 'mtphr_dnt_control_nav' );
243
+
244
+
245
+
246
+ /* --------------------------------------------------------- */
247
+ /* !Add the pagination for list ticks - 1.5.0 */
248
+ /* --------------------------------------------------------- */
249
+
250
+ function mtphr_dnt_pagination() {
251
+ mtphr_dnt_get_template_part( 'pagination' );
252
+ }
253
+ add_action( 'mtphr_dnt_after', 'mtphr_dnt_pagination' );
254
+
255
+
256
+
257
+ /* --------------------------------------------------------- */
258
+ /* !Add a play/pause button - 2.0.4 */
259
+ /* --------------------------------------------------------- */
260
+
261
+ function mtphr_dnt_playpause() {
262
+
263
+ // Get and extract the metadata array into variables
264
+ global $mtphr_dnt_meta_data;
265
+ extract( $mtphr_dnt_meta_data );
266
+
267
+ if( $_mtphr_dnt_mode == 'scroll' || ($_mtphr_dnt_mode == 'rotate' && $_mtphr_dnt_auto_rotate) ) {
268
+ if( isset($_mtphr_dnt_pause_button) && $_mtphr_dnt_pause_button ) {
269
+ mtphr_dnt_get_template_part( 'play_pause' );
270
+ }
271
  }
272
  }
273
+ add_action( 'mtphr_dnt_after', 'mtphr_dnt_playpause' );
274
+
275
 
includes/functions.php CHANGED
@@ -14,173 +14,329 @@
14
  * @since 1.0.0
15
  */
16
  function ditty_news_ticker( $id='', $class='', $atts=false ) {
17
-
18
- // Display the ticker
19
- echo get_mtphr_dnt_ticker( $id, $class, $atts );
20
  }
21
 
22
  /**
23
  * Return the ticker
24
  *
25
- * @since 1.4.8
26
  */
27
  function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
28
 
29
- // Switch the post based on the selected language
30
- if( function_exists('icl_object_id') ) {
31
- $id = icl_object_id( $id, 'ditty_news_ticker', true );
 
 
 
 
 
 
32
  }
33
-
34
- // Get the post
 
 
 
 
 
 
 
 
 
35
  $ticker = get_post( $id );
36
  if( $ticker && $ticker->post_status == 'publish' ) {
37
-
38
- // Save the original $wp_query
39
- global $wp_query, $mtphr_dnt_ticker_types;
40
- $original_query = $wp_query;
41
- $wp_query = null;
42
- $wp_query = new WP_Query();
43
-
44
- // Get all the custom data
45
  $custom_fields = get_post_custom( $id );
46
  $meta_data = array();
47
  foreach( $custom_fields as $key => $value ) {
48
  $meta_data[$key] = maybe_unserialize( $value[0] );
49
  }
50
-
51
  // Override meta data with supplied attributes
52
  if( is_array($atts) ) {
53
  foreach( $atts as $key => $value ) {
54
  $meta_data["_mtphr_dnt_{$key}"] = $value;
55
  }
56
  }
57
-
58
- // Extract the metadata array into variables
59
- extract( $meta_data );
60
 
61
- // Add to the global ticker types
62
- $mtphr_dnt_ticker_types[$_mtphr_dnt_type] = $_mtphr_dnt_type;
63
-
64
- // Get the ticks to display
65
- if( $_mtphr_dnt_type == 'mixed' ) {
66
- $dnt_ticks = mtphr_dnt_mixed_ticks( $id, $meta_data );
67
  } else {
68
- $dnt_ticks = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
69
  }
70
-
71
- // Transform the tick array
72
- $dnt_ticks = apply_filters( 'mtphr_dnt_tick_array_transform', $dnt_ticks, $id, $meta_data );
73
-
74
- // Get the total amount of ticks
75
- $total_ticks = count( $dnt_ticks );
76
 
77
- ob_start();
 
 
78
 
79
- // Add a unique id
80
- $tick_id = 'mtphr-dnt-'.$id;
81
- if( isset($_mtphr_dnt_unique_id) && ($_mtphr_dnt_unique_id != '') ) {
82
- $tick_id = 'mtphr-dnt-'.$id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
83
- }
84
 
85
- // Check for a set width
86
- $ticker_width = '';
87
- if( isset($_mtphr_dnt_ticker_width) && ($_mtphr_dnt_ticker_width != 0) ) {
88
- $ticker_width = ' style="width:'.intval($_mtphr_dnt_ticker_width).'px"';
89
- }
90
 
91
- echo '<div'.$ticker_width.' id="'.$tick_id.'" '.mtphr_dnt_ticker_class( $id, $class, $meta_data ).'>';
92
- echo '<div class="mtphr-dnt-wrapper mtphr-dnt-clearfix">';
 
 
 
 
 
 
 
 
 
93
 
94
- // Create and save element styles
95
- $margin='';$padding='';$width='';$height='';$spacing='';
96
-
97
- if( $_mtphr_dnt_mode == 'scroll' ) {
98
- $padding = ( intval($_mtphr_dnt_scroll_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_scroll_padding).'px;padding-bottom:'.intval($_mtphr_dnt_scroll_padding).'px;' : '';
99
- $margin = ( intval($_mtphr_dnt_scroll_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_scroll_margin).'px;margin-bottom:'.intval($_mtphr_dnt_scroll_margin).'px;' : '';
100
- $width = ( intval($_mtphr_dnt_scroll_width) != 0 ) ? 'white-space:normal;width:'.intval($_mtphr_dnt_scroll_width).'px;' : '';
101
- $height = ( intval($_mtphr_dnt_scroll_height) != 0 ) ? 'height:'.intval($_mtphr_dnt_scroll_height).'px;' : '';
102
- } elseif( $_mtphr_dnt_mode == 'rotate' ) {
103
- $padding = ( intval($_mtphr_dnt_rotate_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_rotate_padding).'px;padding-bottom:'.intval($_mtphr_dnt_rotate_padding).'px;' : '';
104
- $margin = ( intval($_mtphr_dnt_rotate_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_rotate_margin).'px;margin-bottom:'.intval($_mtphr_dnt_rotate_margin).'px;' : '';
105
- $height = ( intval($_mtphr_dnt_rotate_height) != 0 ) ? 'height:'.intval($_mtphr_dnt_rotate_height).'px;' : '';
106
- } elseif( $_mtphr_dnt_mode == 'list' ) {
107
- $padding = ( intval($_mtphr_dnt_list_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_list_padding).'px;padding-bottom:'.intval($_mtphr_dnt_list_padding).'px;' : '';
108
- $margin = ( intval($_mtphr_dnt_list_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_list_margin).'px;margin-bottom:'.intval($_mtphr_dnt_list_margin).'px;' : '';
109
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
- // Filter the variables
112
- $padding = apply_filters( 'mtphr_dnt_tick_container_padding', $padding );
113
- $margin = apply_filters( 'mtphr_dnt_tick_container_margin', $margin );
114
- $width = apply_filters( 'mtphr_dnt_tick_width', $width );
115
- $height = apply_filters( 'mtphr_dnt_tick_height', $height );
 
 
 
 
116
 
117
- // Create the container style
118
- $container_style = ( $padding != '' || $margin != '' ) ? ' style="'.$padding.$margin.'"' : '';
119
-
120
- // Open the ticker container
121
- do_action( 'mtphr_dnt_before', $id, $meta_data );
122
- echo '<div class="mtphr-dnt-tick-container"'.$container_style.'>';
123
- do_action( 'mtphr_dnt_contents_before', $id, $meta_data );
124
- echo '<div class="mtphr-dnt-tick-contents">';
125
- do_action( 'mtphr_dnt_top', $id, $meta_data );
126
-
127
- // Print out the ticks
128
- if( is_array($dnt_ticks) ) {
129
 
130
- // Grab the paged ticks
131
- if( $_mtphr_dnt_mode == 'list' && (isset($_mtphr_dnt_list_tick_paging) && $_mtphr_dnt_list_tick_paging) ) {
132
- $page = isset( $_GET['tickpage'] ) ? $_GET['tickpage'] : 1;
133
- $offset = ($page-1) * $_mtphr_dnt_list_tick_count;
134
- $dnt_ticks = array_slice( $dnt_ticks, $offset, $_mtphr_dnt_list_tick_count );
135
- }
136
-
137
- // Randomize the ticks
138
- if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
139
- shuffle( $dnt_ticks );
140
- }
141
- $total = count($dnt_ticks);
142
- foreach( $dnt_ticks as $i => $tick ) {
143
 
144
- $type = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['type'] : $_mtphr_dnt_type;
145
- $tick = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['tick'] : $tick;
146
-
147
- // Set the list spacing depending on the tick position
148
- if( $_mtphr_dnt_mode == 'list' ) {
149
- $spacing = ( $i != intval($total-1) ) ? 'margin-bottom:'.intval($_mtphr_dnt_list_tick_spacing).'px;' : '';
150
- }
151
- $spacing = apply_filters( 'mtphr_dnt_list_tick_spacing', $spacing, $i, $total );
152
- $tick_style = ( $width != '' || $height != '' || $spacing != '' ) ? ' style="'.$width.$height.$spacing.'"' : '';
153
-
154
- do_action( 'mtphr_dnt_tick_before', $id, $meta_data, $total, $i );
155
- echo '<div'.$tick_style.' '.mtphr_dnt_tick_class('mtphr-dnt-'.$type.'-tick mtphr-dnt-clearfix').'>';
156
- do_action( 'mtphr_dnt_tick_top', $id, $meta_data );
157
-
158
- echo $tick;
159
-
160
- do_action( 'mtphr_dnt_tick_bottom', $id, $meta_data );
161
- echo '</div>';
162
- do_action( 'mtphr_dnt_tick_after', $id, $meta_data, $total, $i );
163
- }
164
  }
165
-
166
- // Close the ticker container
167
- do_action( 'mtphr_dnt_bottom', $id, $meta_data );
168
- echo '</div>';
169
- do_action( 'mtphr_dnt_contents_after', $id, $meta_data, $total_ticks );
 
170
  echo '</div>';
171
- do_action( 'mtphr_dnt_after', $id, $meta_data, $total_ticks );
172
-
173
  echo '</div>';
 
 
174
  echo '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
 
176
- // Restore the original $wp_query
177
- $wp_query = null;
178
- $wp_query = $original_query;
179
- wp_reset_postdata();
 
 
 
 
 
 
 
180
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
- // Return the output
183
- return ob_get_clean();
184
  }
185
 
186
 
@@ -204,7 +360,7 @@ function mtphr_dnt_default_ticks( $ticks, $id, $meta_data ) {
204
  if( isset($meta_data['_mtphr_dnt_line_breaks']) && $meta_data['_mtphr_dnt_line_breaks'] ) {
205
  $text = nl2br($tick['tick']);
206
  }
207
- $text = convert_chars(wptexturize($text));
208
 
209
  // Get the contents
210
  if( $link = esc_url($tick['link']) ) {
@@ -290,32 +446,3 @@ function mtphr_dnt_mixed_ticks( $id, $meta_data ) {
290
  return $dnt_ticks;
291
  }
292
  }
293
-
294
-
295
-
296
- /**
297
- * Return an array of the current DNT settings
298
- *
299
- * @since 1.0.6
300
- */
301
- function mtphr_dnt_settings_tabs() {
302
-
303
- $dnt_settings_array = array();
304
- $dnt_settings_array['general'] = 'mtphr_dnt_general_settings';
305
-
306
- return apply_filters('mtphr_dnt_settings', $dnt_settings_array);
307
- }
308
-
309
-
310
-
311
-
312
- add_action( 'plugins_loaded', 'mtphr_dnt_localization' );
313
- /**
314
- * Setup localization
315
- *
316
- * @since 1.1.5
317
- */
318
- function mtphr_dnt_localization() {
319
- load_plugin_textdomain( 'ditty-news-ticker', false, 'ditty-news-ticker/languages/' );
320
- }
321
-
14
  * @since 1.0.0
15
  */
16
  function ditty_news_ticker( $id='', $class='', $atts=false ) {
17
+ echo get_mtphr_dnt_ticker( $id, $class, $atts );
 
 
18
  }
19
 
20
  /**
21
  * Return the ticker
22
  *
23
+ * @since 2.0.9
24
  */
25
  function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
26
 
27
+ /*
28
+ // Get the current mode for the ticker
29
+ $mode = ( is_array($atts) && isset($atts['mode']) ) ? $atts['mode'] : get_post_meta( $id, '_mtphr_dnt_mode', true );
30
+
31
+ // Return the appropriate ticker mode
32
+ if( function_exists('render_mtphr_dnt_'.$mode.'_ticker') ) {
33
+ return call_user_func( 'render_mtphr_dnt_'.$mode.'_ticker', $id, $class, $atts );
34
+ } else {
35
+ return render_mtphr_dnt_ticker( $id, $class, $atts );
36
  }
37
+ */
38
+
39
+ //$ticker = new MTPHR_DNT();
40
+
41
+ // Check for WPML language posts
42
+ $id = function_exists('icl_object_id') ? icl_object_id( $id, 'ditty_news_ticker', true ) : $id;
43
+
44
+ // Get the current mode for the ticker
45
+ $mode = ( is_array($atts) && isset($atts['mode']) ) ? $atts['mode'] : get_post_meta( $id, '_mtphr_dnt_mode', true );
46
+
47
+ // Make sure the ticker exists and is published
48
  $ticker = get_post( $id );
49
  if( $ticker && $ticker->post_status == 'publish' ) {
50
+
51
+ global $mtphr_dnt_meta_data;
52
+
53
+ // Store all the custom fields in a metadata array
 
 
 
 
54
  $custom_fields = get_post_custom( $id );
55
  $meta_data = array();
56
  foreach( $custom_fields as $key => $value ) {
57
  $meta_data[$key] = maybe_unserialize( $value[0] );
58
  }
59
+
60
  // Override meta data with supplied attributes
61
  if( is_array($atts) ) {
62
  foreach( $atts as $key => $value ) {
63
  $meta_data["_mtphr_dnt_{$key}"] = $value;
64
  }
65
  }
 
 
 
66
 
67
+ // Return the appropriate ticker mode
68
+ if( function_exists('render_mtphr_dnt_'.$mode.'_ticker') ) {
69
+ return call_user_func( 'render_mtphr_dnt_'.$mode.'_ticker', $id, $class, $meta_data );
 
 
 
70
  } else {
71
+ return render_mtphr_dnt_ticker( $id, $class, $meta_data );
72
  }
 
 
 
 
 
 
73
 
74
+ }
75
+
76
+ }
77
 
 
 
 
 
 
78
 
 
 
 
 
 
79
 
80
+ /**
81
+ * Render the ticker
82
+ *
83
+ * @since 2.0.9
84
+ */
85
+ function render_mtphr_dnt_ticker( $id='', $class='', $meta_data=false ) {
86
+
87
+ //$ticker = new MTPHR_DNT( $id, $class, $atts );
88
+ //echo '<pre>';print_r($ticker);echo '</pre>';
89
+
90
+ $html = '';
91
 
92
+ // Save the original $wp_query
93
+ global $wp_query, $mtphr_dnt_ticker_types, $mtphr_dnt_meta_data;
94
+ $original_query = $wp_query;
95
+ $wp_query = null;
96
+ $wp_query = new WP_Query();
97
+
98
+ // Extract the metadata array into variables
99
+ extract( $meta_data );
100
+
101
+ // Add to the global ticker types
102
+ $mtphr_dnt_ticker_types[$_mtphr_dnt_type] = $_mtphr_dnt_type;
103
+
104
+ // Get the ticks to display
105
+ if( $_mtphr_dnt_type == 'mixed' ) {
106
+ $dnt_ticks = mtphr_dnt_mixed_ticks( $id, $meta_data );
107
+ } else {
108
+ $dnt_ticks = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
109
+ }
110
+
111
+ // Transform the tick array
112
+ $dnt_ticks = apply_filters( 'mtphr_dnt_tick_array_transform', $dnt_ticks, $id, $meta_data );
113
+
114
+ // Add the post amount of ticks to the metadata
115
+ $total_ticks = count( $dnt_ticks );
116
+
117
+ // Add the post id & total ticks to the metadata
118
+ $meta_data['_mtphr_dnt_id'] = $id;
119
+ $meta_data['_mtphr_dnt_total_ticks'] = $total_ticks;
120
+
121
+ // Save the metadata in a global variable
122
+ $mtphr_dnt_meta_data = $meta_data;
123
+
124
+ ob_start();
125
+
126
+ // Add a unique id
127
+ $tick_id = 'mtphr-dnt-'.$id;
128
+ if( isset($_mtphr_dnt_unique_id) && ($_mtphr_dnt_unique_id != '') ) {
129
+ $tick_id = 'mtphr-dnt-'.$id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
130
+ }
131
+
132
+ // Check for a set width
133
+ $ticker_width = '';
134
+ if( isset($_mtphr_dnt_ticker_width) && ($_mtphr_dnt_ticker_width != 0) ) {
135
+ $ticker_width = ' style="width:'.intval($_mtphr_dnt_ticker_width).'px"';
136
+ }
137
+
138
+ echo '<div'.$ticker_width.' id="'.$tick_id.'" '.mtphr_dnt_ticker_class( $id, $class, $meta_data ).'>';
139
+ echo '<div class="mtphr-dnt-wrapper mtphr-dnt-clearfix">';
140
+
141
+ // Create and save element styles
142
+ $margin='';$padding='';
143
+
144
+ if( $_mtphr_dnt_mode == 'scroll' ) {
145
+ $padding = ( intval($_mtphr_dnt_scroll_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_scroll_padding).'px;padding-bottom:'.intval($_mtphr_dnt_scroll_padding).'px;' : '';
146
+ $margin = ( intval($_mtphr_dnt_scroll_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_scroll_margin).'px;margin-bottom:'.intval($_mtphr_dnt_scroll_margin).'px;' : '';
147
+ } elseif( $_mtphr_dnt_mode == 'rotate' ) {
148
+ $padding = ( intval($_mtphr_dnt_rotate_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_rotate_padding).'px;padding-bottom:'.intval($_mtphr_dnt_rotate_padding).'px;' : '';
149
+ $margin = ( intval($_mtphr_dnt_rotate_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_rotate_margin).'px;margin-bottom:'.intval($_mtphr_dnt_rotate_margin).'px;' : '';
150
+ } elseif( $_mtphr_dnt_mode == 'list' ) {
151
+ $padding = ( intval($_mtphr_dnt_list_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_list_padding).'px;padding-bottom:'.intval($_mtphr_dnt_list_padding).'px;' : '';
152
+ $margin = ( intval($_mtphr_dnt_list_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_list_margin).'px;margin-bottom:'.intval($_mtphr_dnt_list_margin).'px;' : '';
153
+ }
154
+
155
+ // Filter the variables
156
+ $padding = apply_filters( 'mtphr_dnt_tick_container_padding', $padding );
157
+ $margin = apply_filters( 'mtphr_dnt_tick_container_margin', $margin );
158
+
159
+ // Create the container style
160
+ $container_style = ( $padding != '' || $margin != '' ) ? ' style="'.$padding.$margin.'"' : '';
161
+
162
+ // Open the ticker container
163
+ do_action( 'mtphr_dnt_before', $id, $meta_data );
164
+ echo '<div class="mtphr-dnt-tick-container"'.$container_style.'>';
165
+ do_action( 'mtphr_dnt_contents_before', $id, $meta_data );
166
+ echo '<div class="mtphr-dnt-tick-contents">';
167
+ do_action( 'mtphr_dnt_top', $id, $meta_data );
168
 
169
+ // Print out the ticks
170
+ if( is_array($dnt_ticks) ) {
171
+
172
+ // Grab the paged ticks
173
+ if( $_mtphr_dnt_mode == 'list' && (isset($_mtphr_dnt_list_tick_paging) && $_mtphr_dnt_list_tick_paging) ) {
174
+ $page = isset( $_GET['tickpage'] ) ? $_GET['tickpage'] : 1;
175
+ $offset = ($page-1) * $_mtphr_dnt_list_tick_count;
176
+ $dnt_ticks = array_slice( $dnt_ticks, $offset, $_mtphr_dnt_list_tick_count );
177
+ }
178
 
179
+ // Randomize the ticks
180
+ if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
181
+ shuffle( $dnt_ticks );
182
+ }
183
+ $total = count($dnt_ticks);
184
+
185
+ $html .= ob_get_clean();
186
+
187
+ foreach( $dnt_ticks as $i => $tick_obj ) {
 
 
 
188
 
189
+ ob_start();
190
+
191
+ mtphr_dnt_tick_open( $tick_obj, $i, $id, $meta_data, $total );
 
 
 
 
 
 
 
 
 
 
192
 
193
+ $tick = ( is_array($tick_obj) && isset($tick_obj['tick']) ) ? $tick_obj['tick'] : $tick_obj;
194
+ echo $tick;
195
+
196
+ mtphr_dnt_tick_close( $tick_obj, $i, $id, $meta_data, $total );
197
+
198
+ $html .= ob_get_clean();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  }
200
+
201
+ ob_start();
202
+ }
203
+
204
+ // Close the ticker container
205
+ do_action( 'mtphr_dnt_bottom', $id, $meta_data );
206
  echo '</div>';
207
+ do_action( 'mtphr_dnt_contents_after', $id, $meta_data, $total_ticks );
 
208
  echo '</div>';
209
+ do_action( 'mtphr_dnt_after', $id, $meta_data, $total_ticks );
210
+
211
  echo '</div>';
212
+ echo '</div>';
213
+
214
+ // Restore the original $wp_query
215
+ $wp_query = null;
216
+ $wp_query = $original_query;
217
+ wp_reset_postdata();
218
+
219
+ $html .= ob_get_clean();
220
+
221
+ return $html;
222
+ }
223
+
224
+
225
+ /* --------------------------------------------------------- */
226
+ /* !Render the rotate ticker - 2.0.9 */
227
+ /* --------------------------------------------------------- */
228
+
229
+ function render_mtphr_dnt_rotate_ticker( $id='', $class='', $meta_data=false ) {
230
+
231
+ $html = '';
232
+
233
+ // Save the original $wp_query
234
+ global $mtphr_dnt_ticker_types, $mtphr_dnt_meta_data, $mtphr_dnt_rotate_ticks;
235
 
236
+ // Extract the metadata array into variables
237
+ extract( $meta_data );
238
+
239
+ // Add to the global ticker types
240
+ $mtphr_dnt_ticker_types[$_mtphr_dnt_type] = $_mtphr_dnt_type;
241
+
242
+ // Get the ticks to display
243
+ if( $_mtphr_dnt_type == 'mixed' ) {
244
+ $dnt_ticks = mtphr_dnt_mixed_ticks( $id, $meta_data );
245
+ } else {
246
+ $dnt_ticks = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
247
  }
248
+
249
+ // Transform the tick array
250
+ $dnt_ticks = apply_filters( 'mtphr_dnt_tick_array_transform', $dnt_ticks, $id, $meta_data );
251
+
252
+ // Randomize the ticks
253
+ if( isset($_mtphr_dnt_shuffle) && $_mtphr_dnt_shuffle ) {
254
+ shuffle( $dnt_ticks );
255
+ }
256
+
257
+ // Add the post amount of ticks to the metadata
258
+ $total_ticks = count( $dnt_ticks );
259
+
260
+ // Add the post id & total ticks to the metadata
261
+ $meta_data['_mtphr_dnt_id'] = $id;
262
+ $meta_data['_mtphr_dnt_total_ticks'] = $total_ticks;
263
+
264
+ // Save the metadata in a global variable
265
+ $mtphr_dnt_meta_data = $meta_data;
266
+
267
+ ob_start();
268
+
269
+ // Add a unique id
270
+ $tick_id = 'mtphr-dnt-'.$id;
271
+ if( isset($_mtphr_dnt_unique_id) && ($_mtphr_dnt_unique_id != '') ) {
272
+ $tick_id = 'mtphr-dnt-'.$id.'-'.sanitize_html_class( $_mtphr_dnt_unique_id );
273
+ }
274
+
275
+ // Add to the global carousel ticks
276
+ $mtphr_dnt_rotate_ticks[$tick_id] = array();
277
+
278
+ // Check for a set width
279
+ $ticker_width = '';
280
+ if( isset($_mtphr_dnt_ticker_width) && ($_mtphr_dnt_ticker_width != 0) ) {
281
+ $ticker_width = ' style="width:'.intval($_mtphr_dnt_ticker_width).'px"';
282
+ }
283
+
284
+ echo '<div'.$ticker_width.' id="'.$tick_id.'" '.mtphr_dnt_ticker_class( $id, $class, $meta_data ).'>';
285
+ echo '<div class="mtphr-dnt-wrapper mtphr-dnt-clearfix">';
286
+
287
+ // Create and save element styles
288
+ $padding = ( intval($_mtphr_dnt_rotate_padding) != 0 ) ? 'padding-top:'.intval($_mtphr_dnt_rotate_padding).'px;padding-bottom:'.intval($_mtphr_dnt_rotate_padding).'px;' : '';
289
+ $margin = ( intval($_mtphr_dnt_rotate_margin) != 0 ) ? 'margin-top:'.intval($_mtphr_dnt_rotate_margin).'px;margin-bottom:'.intval($_mtphr_dnt_rotate_margin).'px;' : '';
290
+
291
+ // Filter the variables
292
+ $padding = apply_filters( 'mtphr_dnt_tick_container_padding', $padding );
293
+ $margin = apply_filters( 'mtphr_dnt_tick_container_margin', $margin );
294
+
295
+ // Create the container style
296
+ $container_style = ( $padding != '' || $margin != '' ) ? ' style="'.$padding.$margin.'"' : '';
297
+
298
+ // Open the ticker container
299
+ do_action( 'mtphr_dnt_before', $id, $meta_data );
300
+ echo '<div class="mtphr-dnt-tick-container"'.$container_style.'>';
301
+ do_action( 'mtphr_dnt_contents_before', $id, $meta_data );
302
+ echo '<div class="mtphr-dnt-tick-contents">';
303
+ do_action( 'mtphr_dnt_top', $id, $meta_data );
304
+
305
+ // Print out the ticks
306
+ if( is_array($dnt_ticks) ) {
307
+
308
+ $html .= ob_get_clean();
309
+
310
+ foreach( $dnt_ticks as $i => $tick_obj ) {
311
+
312
+ ob_start();
313
+
314
+ mtphr_dnt_tick_open( $tick_obj, $i, $id, $meta_data, $total_ticks );
315
+
316
+ $tick = ( is_array($tick_obj) && isset($tick_obj['tick']) ) ? $tick_obj['tick'] : $tick_obj;
317
+ echo $tick;
318
+
319
+ mtphr_dnt_tick_close( $tick_obj, $i, $id, $meta_data, $total_ticks );
320
+
321
+ $html .= $mtphr_dnt_rotate_ticks[$tick_id][] = ob_get_clean();
322
+ }
323
+
324
+ ob_start();
325
+ }
326
+
327
+ // Close the ticker container
328
+ do_action( 'mtphr_dnt_bottom', $id, $meta_data );
329
+ echo '</div>';
330
+ do_action( 'mtphr_dnt_contents_after', $id, $meta_data, $total_ticks );
331
+ echo '</div>';
332
+ do_action( 'mtphr_dnt_after', $id, $meta_data, $total_ticks );
333
+
334
+ echo '</div>';
335
+ echo '</div>';
336
+
337
+ $html .= ob_get_clean();
338
 
339
+ return $html;
 
340
  }
341
 
342
 
360
  if( isset($meta_data['_mtphr_dnt_line_breaks']) && $meta_data['_mtphr_dnt_line_breaks'] ) {
361
  $text = nl2br($tick['tick']);
362
  }
363
+ $text = do_shortcode(convert_chars(wptexturize($text)));
364
 
365
  // Get the contents
366
  if( $link = esc_url($tick['link']) ) {
446
  return $dnt_ticks;
447
  }
448
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/helpers.php CHANGED
@@ -1,7 +1,7 @@
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,11 +11,13 @@ 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( 'mtphr_dnt_default_metabox' )
 
15
  );
16
  $dnt_types_array['mixed'] = array(
17
  'button' => __('Mixed', 'ditty-news-ticker'),
18
- 'metaboxes' => array( 'mtphr_dnt_mixed_metabox' )
 
19
  );
20
 
21
  return apply_filters('mtphr_dnt_types', $dnt_types_array);
@@ -23,6 +25,23 @@ function mtphr_dnt_types_array() {
23
  }
24
 
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  /* --------------------------------------------------------- */
28
  /* !Return an array of the current DNT modes - 1.0.0 */
@@ -35,15 +54,18 @@ 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( '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);
@@ -53,7 +75,21 @@ function mtphr_dnt_modes_array() {
53
 
54
 
55
  /* --------------------------------------------------------- */
56
- /* !Return the ticker class - 1.0.0 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  /* --------------------------------------------------------- */
58
 
59
  if( !function_exists('mtphr_dnt_ticker_class') ) {
@@ -82,6 +118,9 @@ function get_mtphr_dnt_ticker_class( $id='', $class='', $meta_data ) {
82
  if( $_mtphr_dnt_mode == 'rotate' ) {
83
  $classes[] = 'mtphr-dnt-'.$_mtphr_dnt_mode.'-'.$_mtphr_dnt_rotate_type;
84
  }
 
 
 
85
 
86
  // Set the styles class
87
  if( isset($_mtphr_dnt_styled) ) {
@@ -102,7 +141,7 @@ function get_mtphr_dnt_ticker_class( $id='', $class='', $meta_data ) {
102
 
103
  $classes = array_map( 'esc_attr', $classes );
104
 
105
- return apply_filters( 'mtphr_dnt_ticker_class', $classes, $class );
106
  }
107
  }
108
 
@@ -143,3 +182,126 @@ function get_mtphr_dnt_tick_class( $class='' ) {
143
  }
144
  }
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
 
3
  /* --------------------------------------------------------- */
4
+ /* !Return an array of the current DNT types - 2.0.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
+ 'metabox_id' => 'mtphr-dnt-defualt-metabox',
15
+ 'icon' => 'dashicons dashicons-edit'
16
  );
17
  $dnt_types_array['mixed'] = array(
18
  'button' => __('Mixed', 'ditty-news-ticker'),
19
+ 'metabox_id' => 'mtphr-dnt-mixed-metabox',
20
+ 'icon' => 'dashicons dashicons-randomize'
21
  );
22
 
23
  return apply_filters('mtphr_dnt_types', $dnt_types_array);
25
  }
26
 
27
 
28
+ if( !function_exists('mtphr_dnt_types_labels') ) {
29
+ function mtphr_dnt_types_labels() {
30
+
31
+ $types = mtphr_dnt_types_array();
32
+ $labels = array();
33
+
34
+ if( is_array($types) && count($types) > 0 ) {
35
+ foreach( $types as $i=>$type ) {
36
+ $labels[$i] = $type['button'];
37
+ }
38
+ }
39
+
40
+ return $labels;
41
+ }
42
+ }
43
+
44
+
45
 
46
  /* --------------------------------------------------------- */
47
  /* !Return an array of the current DNT modes - 1.0.0 */
54
  $dnt_modes_array = array();
55
  $dnt_modes_array['scroll'] = array(
56
  'button' => __('Scroll', 'ditty-news-ticker'),
57
+ 'metabox_id' => 'mtphr-dnt-scroll-metabox',
58
+ 'icon' => 'dashicons dashicons-leftright'
59
  );
60
  $dnt_modes_array['rotate'] = array(
61
  'button' => __('Rotate', 'ditty-news-ticker'),
62
+ 'metabox_id' => 'mtphr-dnt-rotate-metabox',
63
+ 'icon' => 'dashicons dashicons-update'
64
  );
65
  $dnt_modes_array['list'] = array(
66
  'button' => __('List', 'ditty-news-ticker'),
67
+ 'metabox_id' => 'mtphr-dnt-list-metabox',
68
+ 'icon' => 'dashicons dashicons-menu'
69
  );
70
 
71
  return apply_filters('mtphr_dnt_modes', $dnt_modes_array);
75
 
76
 
77
  /* --------------------------------------------------------- */
78
+ /* !Return an array of the current DNT settings - 1.0.6 */
79
+ /* --------------------------------------------------------- */
80
+
81
+ function mtphr_dnt_settings_tabs() {
82
+
83
+ $dnt_settings_array = array();
84
+ $dnt_settings_array['general'] = 'mtphr_dnt_general_settings';
85
+
86
+ return apply_filters('mtphr_dnt_settings', $dnt_settings_array);
87
+ }
88
+
89
+
90
+
91
+ /* --------------------------------------------------------- */
92
+ /* !Return the ticker class - 2.0.4 */
93
  /* --------------------------------------------------------- */
94
 
95
  if( !function_exists('mtphr_dnt_ticker_class') ) {
118
  if( $_mtphr_dnt_mode == 'rotate' ) {
119
  $classes[] = 'mtphr-dnt-'.$_mtphr_dnt_mode.'-'.$_mtphr_dnt_rotate_type;
120
  }
121
+ if( isset($_mtphr_dnt_trim_ticks) && $_mtphr_dnt_trim_ticks ) {
122
+ $classes[] = 'mtphr-dnt-trim-ticks';
123
+ }
124
 
125
  // Set the styles class
126
  if( isset($_mtphr_dnt_styled) ) {
141
 
142
  $classes = array_map( 'esc_attr', $classes );
143
 
144
+ return apply_filters( 'mtphr_dnt_ticker_class', $classes, $class, $meta_data );
145
  }
146
  }
147
 
182
  }
183
  }
184
 
185
+
186
+
187
+ /* --------------------------------------------------------- */
188
+ /* !Create the tick open structure - 2.0.0 */
189
+ /* --------------------------------------------------------- */
190
+
191
+ if( !function_exists('mtphr_dnt_tick_open') ) {
192
+ function mtphr_dnt_tick_open( $tick_obj, $i, $id, $meta_data, $total=false ) {
193
+
194
+ extract( $meta_data );
195
+
196
+ // Create and save element styles
197
+ $width='';$height='';$spacing='';
198
+
199
+ if( $_mtphr_dnt_mode == 'scroll' ) {
200
+ $width = ( intval($_mtphr_dnt_scroll_width) != 0 ) ? 'white-space:normal;width:'.intval($_mtphr_dnt_scroll_width).'px;' : '';
201
+ $height = ( intval($_mtphr_dnt_scroll_height) != 0 ) ? 'height:'.intval($_mtphr_dnt_scroll_height).'px;' : '';
202
+ } elseif( $_mtphr_dnt_mode == 'rotate' ) {
203
+ $height = ( intval($_mtphr_dnt_rotate_height) != 0 ) ? 'height:'.intval($_mtphr_dnt_rotate_height).'px;' : '';
204
+ }
205
+
206
+ // Filter the variables
207
+ $width = apply_filters( 'mtphr_dnt_tick_width', $width );
208
+ $height = apply_filters( 'mtphr_dnt_tick_height', $height );
209
+
210
+ $type = ( is_array($tick_obj) && isset($tick_obj['type']) ) ? $tick_obj['type'] : $_mtphr_dnt_type;
211
+ $tick_class = ( is_array($tick_obj) && isset($tick_obj['tick_class']) ) ? $tick_obj['tick_class'] : '';
212
+ $data_attributes = '';
213
+ if( is_array($tick_obj) && isset($tick_obj['data']) && is_array($tick_obj['data']) ) {
214
+ if( is_array($tick_obj['data']) && count($tick_obj['data']) > 0 ) {
215
+ foreach( $tick_obj['data'] as $i=>$data ) {
216
+ $data_attributes .= ' data-'.$i.'="'.$data.'"';
217
+ }
218
+ }
219
+ }
220
+
221
+ // Set the list spacing depending on the tick position
222
+ $spacing = ( $_mtphr_dnt_mode == 'list' && ($i != intval($total-1)) ) ? 'margin-bottom:'.intval($_mtphr_dnt_list_tick_spacing).'px;' : '';
223
+ $spacing = apply_filters( 'mtphr_dnt_list_tick_spacing', $spacing, $i, $total );
224
+ $tick_style = ( $width != '' || $height != '' || $spacing != '' ) ? ' style="'.$width.$height.$spacing.'"' : '';
225
+
226
+ do_action( 'mtphr_dnt_tick_before', $id, $meta_data, $total, $i );
227
+ echo '<div'.$tick_style.' '.mtphr_dnt_tick_class('mtphr-dnt-'.$type.'-tick mtphr-dnt-clearfix '.$tick_class).$data_attributes.'>';
228
+ do_action( 'mtphr_dnt_tick_top', $id, $meta_data );
229
+
230
+ }
231
+ }
232
+
233
+
234
+
235
+ /* --------------------------------------------------------- */
236
+ /* !Create the tick close structure - 2.0.0 */
237
+ /* --------------------------------------------------------- */
238
+
239
+ if( !function_exists('mtphr_dnt_tick_close') ) {
240
+ function mtphr_dnt_tick_close( $tick_obj, $i, $id, $meta_data, $total=false ) {
241
+
242
+ do_action( 'mtphr_dnt_tick_bottom', $id, $meta_data );
243
+ echo '</div>';
244
+ do_action( 'mtphr_dnt_tick_after', $id, $meta_data, $total, $i );
245
+ }
246
+ }
247
+
248
+
249
+ /* --------------------------------------------------------- */
250
+ /* !Return an array of tickers - 2.0.6 */
251
+ /* --------------------------------------------------------- */
252
+
253
+ if( !function_exists('mtphr_dnt_get_tickers') ) {
254
+ function mtphr_dnt_get_tickers( $reverse = false ) {
255
+
256
+ $args = array(
257
+ 'posts_per_page' => -1,
258
+ 'offset' => 0,
259
+ 'category' => '',
260
+ 'orderby' => 'title',
261
+ 'order' => 'ASC',
262
+ 'include' => '',
263
+ 'exclude' => '',
264
+ 'meta_key' => '',
265
+ 'meta_value' => '',
266
+ 'post_type' => 'ditty_news_ticker',
267
+ 'post_mime_type' => '',
268
+ 'post_parent' => '',
269
+ 'post_status' => 'publish',
270
+ 'suppress_filters' => true
271
+ );
272
+ $tickers = get_posts( $args );
273
+
274
+ $tickers_array = $reverse ? array( __('Select a Ticker', 'ditty-news-ticker') => '' ) : array( '' => __('Select a Ticker', 'ditty-news-ticker') );
275
+ if( is_array($tickers) && count($tickers) > 0 ) {
276
+ foreach( $tickers as $i=>$ticker ) {
277
+ if( $reverse ) {
278
+ $tickers_array[$ticker->post_title] = $ticker->ID;
279
+ } else {
280
+ $tickers_array[$ticker->ID] = $ticker->post_title;
281
+ }
282
+ }
283
+ } else {
284
+ $tickers_array = array( __('No tickers found', 'ditty-news-ticker') );
285
+ }
286
+
287
+ return $tickers_array;
288
+ }
289
+ }
290
+
291
+
292
+ /* --------------------------------------------------------- */
293
+ /* !Convert links in strings - 2.0.11 */
294
+ /* --------------------------------------------------------- */
295
+
296
+ if( !function_exists('mtphr_dnt_convert_links') ) {
297
+ function mtphr_dnt_convert_links( $string, $blank=true ) {
298
+
299
+ $string = make_clickable( $string );
300
+ if( $blank ) {
301
+ $string = preg_replace( '/<a /','<a target="_blank" ', $string );
302
+ }
303
+
304
+ return $string;
305
+ }
306
+ }
307
+
includes/post-types.php CHANGED
@@ -1,19 +1,10 @@
1
  <?php
2
- /**
3
- * Create the News Ticker post type
4
- *
5
- * @package Ditty News Ticker
6
- */
7
-
8
-
9
-
10
 
11
- add_action( 'init','mtphr_dnt_posttype' );
12
- /**
13
- * Add post types
14
- *
15
- * @since 1.4.4
16
- */
17
  function mtphr_dnt_posttype() {
18
 
19
  $labels = array(
@@ -41,6 +32,7 @@ function mtphr_dnt_posttype() {
41
  'show_in_menu' => true,
42
  'query_var' => true,
43
  'rewrite' => true,
 
44
  'supports' => array( 'title', 'author' ),
45
  'rewrite' => array( 'slug' => __( 'ticker', 'ditty-news-ticker' ) ),
46
  'show_in_nav_menus' => true
@@ -48,21 +40,21 @@ function mtphr_dnt_posttype() {
48
 
49
  register_post_type( 'ditty_news_ticker', $args );
50
  }
 
51
 
52
 
53
 
54
 
55
- add_filter( 'post_updated_messages', 'mtphr_dnt_updated_messages' );
56
- /**
57
- * Modify the update text
58
- *
59
- * @since 1.0.3
60
- */
61
  function mtphr_dnt_updated_messages( $messages ) {
62
 
63
  $messages['ditty_news_ticker'][1] = __('Ditty News Ticker Updated!', 'ditty-news-ticker');
64
 
65
  return $messages;
66
  }
 
67
 
68
 
1
  <?php
2
+
 
 
 
 
 
 
 
3
 
4
+ /* --------------------------------------------------------- */
5
+ /* !Add the post type - 1.4.4 */
6
+ /* --------------------------------------------------------- */
7
+
 
 
8
  function mtphr_dnt_posttype() {
9
 
10
  $labels = array(
32
  'show_in_menu' => true,
33
  'query_var' => true,
34
  'rewrite' => true,
35
+ 'menu_icon' => 'dashicons-format-status',
36
  'supports' => array( 'title', 'author' ),
37
  'rewrite' => array( 'slug' => __( 'ticker', 'ditty-news-ticker' ) ),
38
  'show_in_nav_menus' => true
40
 
41
  register_post_type( 'ditty_news_ticker', $args );
42
  }
43
+ add_action( 'init','mtphr_dnt_posttype' );
44
 
45
 
46
 
47
 
48
+ /* --------------------------------------------------------- */
49
+ /* !Modify the updated text - 1.0.3 */
50
+ /* --------------------------------------------------------- */
51
+
 
 
52
  function mtphr_dnt_updated_messages( $messages ) {
53
 
54
  $messages['ditty_news_ticker'][1] = __('Ditty News Ticker Updated!', 'ditty-news-ticker');
55
 
56
  return $messages;
57
  }
58
+ add_filter( 'post_updated_messages', 'mtphr_dnt_updated_messages' );
59
 
60
 
includes/scripts.php CHANGED
@@ -1,25 +1,35 @@
1
  <?php
2
 
3
  /* --------------------------------------------------------- */
4
- /* !Load the front end scripts - 1.4.6 */
5
  /* --------------------------------------------------------- */
6
 
7
  function mtphr_dnt_scripts() {
8
 
9
  // Load the icon font css
10
- wp_register_style( 'ditty-news-ticker-font', MTPHR_DNT_URL.'/assets/fontastic/styles.css', false, MTPHR_DNT_VERSION );
11
  wp_enqueue_style( 'ditty-news-ticker-font' );
12
 
13
  // Register touchSwipe
14
- wp_register_script( 'touchSwipe', MTPHR_DNT_URL.'/assets/js/jquery.touchSwipe.min.js', array('jquery'), MTPHR_DNT_VERSION, true );
15
 
16
  // Register the jQuery easing
17
- wp_register_script( 'jquery-easing', MTPHR_DNT_URL.'/assets/js/jquery.easing.1.3.js', array('jquery'), MTPHR_DNT_VERSION, true );
 
 
 
 
 
18
 
19
  // Register the Ditty News Ticker scripts
20
- wp_register_style( 'ditty-news-ticker', MTPHR_DNT_URL.'/assets/css/style.css', false, MTPHR_DNT_VERSION );
21
  wp_enqueue_style( 'ditty-news-ticker' );
22
- wp_register_script( 'ditty-news-ticker', MTPHR_DNT_URL.'/assets/js/ditty-news-ticker.js', array('jquery'), MTPHR_DNT_VERSION, true );
 
 
 
 
 
23
  }
24
  add_action( 'wp_enqueue_scripts', 'mtphr_dnt_scripts' );
25
 
@@ -41,30 +51,29 @@ add_action( 'wp_head', 'mtphr_dnt_custom_css' );
41
 
42
 
43
  /* --------------------------------------------------------- */
44
- /* !Initialize the ticker scripts - 1.4.11 */
45
  /* --------------------------------------------------------- */
46
 
47
  function mtphr_dnt_tickers_init_scripts() {
48
 
49
  global $mtphr_dnt_ticker_scripts;
 
50
  if( is_array($mtphr_dnt_ticker_scripts) && !empty($mtphr_dnt_ticker_scripts) ) {
51
- wp_print_scripts('touchSwipe');
52
- wp_print_scripts('jquery-easing');
53
  wp_print_scripts('ditty-news-ticker');
54
 
55
  $filtered_tickers = array();
56
  $id_array = array();
57
  foreach ( $mtphr_dnt_ticker_scripts as $ticker) {
58
  if (!array_key_exists($ticker['id'], $id_array)) {
59
- $id_array['id'] = $ticker['id'];
60
  $filtered_tickers[] = $ticker;
61
  }
62
  }
63
  ?>
64
  <script>
65
- jQuery( window ).load( function() {
66
  <?php foreach( $filtered_tickers as $ticker ) { ?>
67
- jQuery( '<?php echo $ticker['ticker']; ?>' ).ditty_news_ticker({
68
  id : '<?php echo $ticker['id']; ?>',
69
  type : '<?php echo $ticker['type']; ?>',
70
  scroll_direction : '<?php echo $ticker['scroll_direction']; ?>',
@@ -79,6 +88,7 @@ function mtphr_dnt_tickers_init_scripts() {
79
  rotate_speed : <?php echo $ticker['rotate_speed']; ?>,
80
  rotate_ease : '<?php echo $ticker['rotate_ease']; ?>',
81
  nav_reverse : <?php echo $ticker['nav_reverse']; ?>,
 
82
  offset : <?php echo $ticker['offset']; ?>,
83
  after_load : function( $ticker ) {
84
  <?php echo apply_filters( 'mtphr_dnt_after_load_rotate', '', $ticker['id'] ); ?>
@@ -98,3 +108,41 @@ function mtphr_dnt_tickers_init_scripts() {
98
  }
99
  add_action( 'wp_footer', 'mtphr_dnt_tickers_init_scripts', 20 );
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
 
3
  /* --------------------------------------------------------- */
4
+ /* !Load the front end scripts - 1.5.0 */
5
  /* --------------------------------------------------------- */
6
 
7
  function mtphr_dnt_scripts() {
8
 
9
  // Load the icon font css
10
+ wp_register_style( 'ditty-news-ticker-font', MTPHR_DNT_URL.'assets/fontastic/styles.css', false, MTPHR_DNT_VERSION );
11
  wp_enqueue_style( 'ditty-news-ticker-font' );
12
 
13
  // Register touchSwipe
14
+ wp_register_script( 'touchSwipe', MTPHR_DNT_URL.'assets/js/jquery.touchSwipe.min.js', array('jquery'), MTPHR_DNT_VERSION, true );
15
 
16
  // Register the jQuery easing
17
+ wp_register_script( 'jquery-easing', MTPHR_DNT_URL.'assets/js/jquery.easing.1.3.js', array('jquery'), MTPHR_DNT_VERSION, true );
18
+
19
+ // Register the Ditty News Ticker image scripts
20
+ //wp_register_script( 'ditty-news-ticker-images', MTPHR_DNT_URL.'assets/js/ditty-news-ticker-images.js', array('jquery'), MTPHR_DNT_VERSION, true );
21
+ //wp_enqueue_script( 'ditty-news-ticker-images' );
22
+
23
 
24
  // Register the Ditty News Ticker scripts
25
+ wp_register_style( 'ditty-news-ticker', MTPHR_DNT_URL.'assets/css/style.css', false, MTPHR_DNT_VERSION );
26
  wp_enqueue_style( 'ditty-news-ticker' );
27
+ wp_register_script( 'imagesLoaded', MTPHR_DNT_URL.'assets/js/imagesloaded.pkgd.min.js', array('jquery'), MTPHR_DNT_VERSION, true );
28
+ wp_register_script( 'ditty-news-ticker', MTPHR_DNT_URL.'assets/js/ditty-news-ticker.js', array('jquery', 'imagesLoaded', 'touchSwipe', 'jquery-easing'), MTPHR_DNT_VERSION, true );
29
+
30
+ // Register the rotate scripts
31
+ //wp_register_script( 'unslider', MTPHR_DNT_URL.'assets/unslider/js/unslider-min.js', array('jquery'), MTPHR_DNT_VERSION, true );
32
+ //wp_register_script( 'ditty-rotate-ticker', MTPHR_DNT_URL.'assets/js/ditty-rotate-ticker.js', array('jquery', 'unslider'), MTPHR_DNT_VERSION, true );
33
  }
34
  add_action( 'wp_enqueue_scripts', 'mtphr_dnt_scripts' );
35
 
51
 
52
 
53
  /* --------------------------------------------------------- */
54
+ /* !Initialize the ticker scripts - 1.5.3 */
55
  /* --------------------------------------------------------- */
56
 
57
  function mtphr_dnt_tickers_init_scripts() {
58
 
59
  global $mtphr_dnt_ticker_scripts;
60
+
61
  if( is_array($mtphr_dnt_ticker_scripts) && !empty($mtphr_dnt_ticker_scripts) ) {
 
 
62
  wp_print_scripts('ditty-news-ticker');
63
 
64
  $filtered_tickers = array();
65
  $id_array = array();
66
  foreach ( $mtphr_dnt_ticker_scripts as $ticker) {
67
  if (!array_key_exists($ticker['id'], $id_array)) {
68
+ $id_array[$ticker['id']] = $ticker['id'];
69
  $filtered_tickers[] = $ticker;
70
  }
71
  }
72
  ?>
73
  <script>
74
+ jQuery( document ).ready( function($) {
75
  <?php foreach( $filtered_tickers as $ticker ) { ?>
76
+ $( '<?php echo $ticker['ticker']; ?>' ).ditty_news_ticker({
77
  id : '<?php echo $ticker['id']; ?>',
78
  type : '<?php echo $ticker['type']; ?>',
79
  scroll_direction : '<?php echo $ticker['scroll_direction']; ?>',
88
  rotate_speed : <?php echo $ticker['rotate_speed']; ?>,
89
  rotate_ease : '<?php echo $ticker['rotate_ease']; ?>',
90
  nav_reverse : <?php echo $ticker['nav_reverse']; ?>,
91
+ disable_touchswipe : <?php echo $ticker['disable_touchswipe']; ?>,
92
  offset : <?php echo $ticker['offset']; ?>,
93
  after_load : function( $ticker ) {
94
  <?php echo apply_filters( 'mtphr_dnt_after_load_rotate', '', $ticker['id'] ); ?>
108
  }
109
  add_action( 'wp_footer', 'mtphr_dnt_tickers_init_scripts', 20 );
110
 
111
+
112
+ /* --------------------------------------------------------- */
113
+ /* !Initialize the carousel scripts - 2.0.9 */
114
+ /* --------------------------------------------------------- */
115
+
116
+ /*
117
+ function mtphr_dnt_rotate_init_scripts() {
118
+
119
+ global $mtphr_dnt_rotate_ticks;
120
+
121
+ if( is_array($mtphr_dnt_rotate_ticks) && !empty($mtphr_dnt_rotate_ticks) ) {
122
+ wp_print_scripts('unslider');
123
+ wp_print_scripts('ditty-rotate-ticker');
124
+
125
+ $filtered_tickers = array();
126
+ $id_array = array();
127
+ foreach ( $mtphr_dnt_rotate_ticks as $ticker_id=>$ticks) {
128
+ if (!array_key_exists($ticker_id, $id_array)) {
129
+ $id_array[$ticker_id] = $ticker_id;
130
+ $filtered_tickers[$ticker_id] = $ticks;
131
+ }
132
+ }
133
+ ?>
134
+ <script>
135
+ jQuery( document ).ready( function($) {
136
+ <?php foreach( $filtered_tickers as $ticker_id=>$ticks ) { ?>
137
+ $( '#<?php echo $ticker_id; ?>' ).ditty_rotate_ticker({
138
+ id : '<?php echo $ticker_id; ?>',
139
+ ticks : <?php echo json_encode($ticks); ?>
140
+ });
141
+ <?php } ?>
142
+ });
143
+ </script>
144
+ <?php
145
+ }
146
+ }
147
+ */
148
+ //add_action( 'wp_footer', 'mtphr_dnt_rotate_init_scripts', 20 );
includes/settings.php CHANGED
@@ -157,7 +157,6 @@ function mtphr_dnt_general_settings_wysiwyg( $args ) {
157
  $settings = $args['settings'];
158
  echo '<div id="mtphr_dnt_general_settings_wysiwyg">';
159
  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>';
160
- 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>';
161
  echo '</div>';
162
  }
163
  }
@@ -206,3 +205,23 @@ function mtphr_dnt_general_settings_sanitize( $fields ) {
206
  return $fields;
207
  }
208
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  $settings = $args['settings'];
158
  echo '<div id="mtphr_dnt_general_settings_wysiwyg">';
159
  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>';
 
160
  echo '</div>';
161
  }
162
  }
205
  return $fields;
206
  }
207
  }
208
+
209
+
210
+
211
+ /* --------------------------------------------------------- */
212
+ /* !Create a settings label - 1.4.0 */
213
+ /* --------------------------------------------------------- */
214
+
215
+ if( !function_exists('mtphr_dnt_settings_label') ) {
216
+ function mtphr_dnt_settings_label( $title, $description = '' ) {
217
+
218
+ $label = '<div class="mtphr-dnt-label-alt">';
219
+ $label .= '<label>'.$title.'</label>';
220
+ if( $description != '' ) {
221
+ $label .= '<small>'.$description.'</small>';
222
+ }
223
+ $label .= '</div>';
224
+
225
+ return $label;
226
+ }
227
+ }
includes/templates.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* --------------------------------------------------------- */
4
+ /* !Retrieves a template part - 1.5.0 */
5
+ /* --------------------------------------------------------- */
6
+
7
+ function mtphr_dnt_get_template_part( $slug, $name = null, $load = true ) {
8
+
9
+ // Execute code for this part
10
+ do_action( 'get_template_part_' . $slug, $slug, $name );
11
+
12
+ // Setup possible parts
13
+ $templates = array();
14
+ if( isset($name) ) {
15
+ $templates[] = $slug.'-'.$name.'.php';
16
+ }
17
+ $templates[] = $slug.'.php';
18
+
19
+ // Allow template parts to be filtered
20
+ $templates = apply_filters( 'mtphr_dnt_get_template_part', $templates, $slug, $name );
21
+
22
+ // Return the part that is found
23
+ return mtphr_dnt_locate_template( $templates, $load, false );
24
+ }
25
+
26
+
27
+ /* --------------------------------------------------------- */
28
+ /* !Retrieve the name of the highest priority template file that exists - 1.5.0 */
29
+ /* --------------------------------------------------------- */
30
+
31
+ function mtphr_dnt_locate_template( $template_names, $load = false, $require_once = true ) {
32
+
33
+ // No file found yet
34
+ $located = false;
35
+
36
+ // Try to find a template file
37
+ foreach( (array) $template_names as $template_name ) {
38
+
39
+ // Continue if template is empty
40
+ if( empty($template_name) ) {
41
+ continue;
42
+ }
43
+
44
+ // Trim off any slashes from the template name
45
+ $template_name = ltrim( $template_name, '/' );
46
+
47
+ // Check child theme first
48
+ if( file_exists(trailingslashit(get_stylesheet_directory()).'dittyticker/'.$template_name) ) {
49
+ $located = trailingslashit(get_stylesheet_directory()).'dittyticker/'.$template_name;
50
+ break;
51
+
52
+ // Check parent theme next
53
+ } elseif( file_exists(trailingslashit(get_template_directory()).'dittyticker/'.$template_name) ) {
54
+ $located = trailingslashit( get_template_directory() ).'dittyticker/'.$template_name;
55
+ break;
56
+
57
+ // Check theme compatibility last
58
+ } elseif( file_exists(MTPHR_DNT_DIR.'templates/'.$template_name) ) {
59
+ $located = MTPHR_DNT_DIR.'templates/'.$template_name;
60
+ break;
61
+ }
62
+ }
63
+
64
+ if( (true == $load) && !empty($located) ) {
65
+ load_template( $located, $require_once );
66
+ }
67
+
68
+ return $located;
69
+ }
includes/widget.php CHANGED
@@ -1,167 +1,133 @@
1
  <?php
2
- /**
3
- * Create a sidebar widget
4
- *
5
- * @package Ditty News Ticker
6
- */
7
-
8
-
9
-
10
- /* Register the widget - @since 1.0 */
11
- add_action( 'widgets_init', 'mtphr_dnt_widget_init' );
12
-
13
- /**
14
- * Register the widget
15
- *
16
- * @since 1.0
17
- */
18
- function mtphr_dnt_widget_init() {
19
- register_widget( 'mtphr_dnt_widget' );
20
- }
21
-
22
-
23
-
24
 
25
  /**
26
  * Create a class for the widget
27
  *
28
- * @since 1.0
29
  */
30
  class mtphr_dnt_widget extends WP_Widget {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
- /**
33
- * Widget setup
34
- *
35
- * @since 1.0
36
- */
37
- function mtphr_dnt_widget() {
38
-
39
- // Widget settings
40
- $widget_ops = array(
41
- 'classname' => 'mtphr-dnt-widget',
42
- 'description' => __('Displays a Ditty News Ticker.', 'ditty-news-ticker')
43
- );
44
-
45
- // Widget control settings
46
- $control_ops = array(
47
- 'id_base' => 'mtphr-dnt-widget'
48
- );
49
-
50
- // Create the widget
51
- $this->WP_Widget( 'mtphr-dnt-widget', __('Ditty News Ticker', 'ditty-news-ticker'), $widget_ops, $control_ops );
52
- }
53
-
54
- /**
55
- * Display the widget
56
- *
57
- * @since 1.0.4
58
- */
59
- function widget( $args, $instance ) {
60
 
61
- extract( $args );
62
-
63
- // User-selected settings
64
- $title = $instance['title'];
65
- $title = apply_filters( 'widget_title', $title );
 
 
 
 
 
 
 
 
 
66
 
67
- $ticker = $instance['ticker'];
68
- $ticker_title = isset( $instance['ticker_title'] );
 
 
69
 
70
- // Before widget (defined by themes)
71
- echo $before_widget;
 
 
72
 
73
- // Title of widget (before and after defined by themes)
74
- if ( $title ) {
75
- echo $before_title . $title . $after_title;
76
  }
77
 
78
- // Set custom attributes
79
- $atts = array();
80
 
81
- // Set the ticker title visibility
82
- $atts['title'] = 0;
83
- if( $ticker_title ) {
84
- $atts['title'] = 1;
85
- }
86
-
87
- // Add a unique widget ID
88
- $atts['unique_id'] = 'widget';
89
-
90
- // Add in_widget attribute for customization
91
- $atts['in_widget'] = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
- // Display the ticker
94
- if( $ticker != '' ) {
95
- ditty_news_ticker( $ticker, '', $atts );
 
 
 
 
96
  }
97
-
98
- // After widget (defined by themes)
99
- echo $after_widget;
100
- }
101
-
102
- /**
103
- * Update the widget
104
- *
105
- * @since 1.0
106
- */
107
- function update( $new_instance, $old_instance ) {
108
-
109
- $instance = $old_instance;
110
-
111
- // Strip tags (if needed) and update the widget settings
112
- $instance['title'] = sanitize_text_field( $new_instance['title'] );
113
- $instance['ticker'] = $new_instance['ticker'];
114
- $instance['ticker_title'] = $new_instance['ticker_title'];
115
-
116
- return $instance;
117
  }
118
 
119
- /**
120
- * Widget settings
121
- *
122
- * @since 1.0.5
123
- */
124
- function form( $instance ) {
125
 
126
- // Set up some default widget settings
127
- $defaults = array(
128
- 'title' => '',
129
- 'ticker' => '',
130
- 'ticker_title' => ''
131
- );
132
-
133
- $instance = wp_parse_args( (array) $instance, $defaults ); ?>
134
-
135
- <!-- Widget Title: Text Input -->
136
- <p>
137
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'ditty-news-ticker' ); ?></label>
138
- <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:97%;" />
139
- </p>
140
-
141
- <!-- Ticker: Select -->
142
- <p>
143
- <label for="<?php echo $this->get_field_id( 'ticker' ); ?>"><?php _e( 'Select a Ticker:', 'ditty-news-ticker' ); ?></label><br/>
144
- <select id="<?php echo $this->get_field_id( 'ticker' ); ?>" name="<?php echo $this->get_field_name( 'ticker' ); ?>">
145
- <?php
146
- $tickers = get_posts( 'numberposts=-1&post_type=ditty_news_ticker&orderby=name&order=ASC' );
147
- foreach( $tickers as $ticker ) {
148
- if( $instance['ticker'] == $ticker->ID ) {
149
- echo '<option value="'.$ticker->ID.'" selected="selected">'.$ticker->post_title.'</option>';
150
- } else {
151
- echo '<option value="'.$ticker->ID.'">'.$ticker->post_title.'</option>';
152
- }
153
- }
154
- ?>
155
- </select>
156
- </p>
157
 
158
- <!-- Display Ticker Title: Checkbox -->
159
- <p>
160
- <input class="checkbox" type="checkbox" <?php checked( $instance['ticker_title'], 'on' ); ?> id="<?php echo $this->get_field_id( 'ticker_title' ); ?>" name="<?php echo $this->get_field_name( 'ticker_title' ); ?>" />
161
- <label for="<?php echo $this->get_field_id( 'ticker_title' ); ?>"><?php _e( 'Display Ticker Title?', 'ditty-news-ticker' ); ?></label>
162
- </p>
163
-
164
- <?php
165
- }
166
  }
 
167
 
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  /**
4
  * Create a class for the widget
5
  *
6
+ * @since 1.5.8
7
  */
8
  class mtphr_dnt_widget extends WP_Widget {
9
+
10
+ /** Constructor */
11
+ function __construct() {
12
+ parent::__construct(
13
+ 'mtphr-dnt-widget',
14
+ __('Ditty News Ticker', 'ditty-news-ticker'),
15
+ array(
16
+ 'classname' => 'mtphr-dnt-widget',
17
+ 'description' => __('Displays a Ditty News Ticker.', 'ditty-news-ticker')
18
+ )
19
+ );
20
+ }
21
+
22
+ /** @see WP_Widget::widget */
23
+ function widget( $args, $instance ) {
24
+
25
+ extract( $args );
26
 
27
+ // User-selected settings
28
+ $title = $instance['title'];
29
+ $title = apply_filters( 'widget_title', $title );
30
+
31
+ $ticker = $instance['ticker'];
32
+ $ticker_title = isset( $instance['ticker_title'] );
33
+
34
+ // Before widget (defined by themes)
35
+ echo $before_widget;
36
+
37
+ // Title of widget (before and after defined by themes)
38
+ if ( $title ) {
39
+ echo $before_title . $title . $after_title;
40
+ }
41
+
42
+ // Set custom attributes
43
+ $atts = array();
44
+
45
+ // Set the ticker title visibility
46
+ $atts['title'] = 0;
47
+ if( $ticker_title ) {
48
+ $atts['title'] = 1;
49
+ }
 
 
 
 
 
50
 
51
+ // Add a unique widget ID
52
+ $atts['unique_id'] = 'widget';
53
+
54
+ // Add in_widget attribute for customization
55
+ $atts['in_widget'] = 1;
56
+
57
+ // Display the ticker
58
+ if( $ticker != '' ) {
59
+ ditty_news_ticker( $ticker, '', $atts );
60
+ }
61
+
62
+ // After widget (defined by themes)
63
+ echo $after_widget;
64
+ }
65
 
66
+ /** @see WP_Widget::update */
67
+ function update( $new_instance, $old_instance ) {
68
+
69
+ $instance = $old_instance;
70
 
71
+ // Strip tags (if needed) and update the widget settings
72
+ $instance['title'] = sanitize_text_field( $new_instance['title'] );
73
+ $instance['ticker'] = $new_instance['ticker'];
74
+ $instance['ticker_title'] = $new_instance['ticker_title'];
75
 
76
+ return $instance;
 
 
77
  }
78
 
79
+ /** @see WP_Widget::form */
80
+ function form( $instance ) {
81
 
82
+ // Set up some default widget settings
83
+ $defaults = array(
84
+ 'title' => '',
85
+ 'ticker' => '',
86
+ 'ticker_title' => ''
87
+ );
88
+
89
+ $instance = wp_parse_args( (array) $instance, $defaults ); ?>
90
+
91
+ <!-- Widget Title: Text Input -->
92
+ <p>
93
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'ditty-news-ticker' ); ?></label>
94
+ <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:97%;" />
95
+ </p>
96
+
97
+ <!-- Ticker: Select -->
98
+ <p>
99
+ <label for="<?php echo $this->get_field_id( 'ticker' ); ?>"><?php _e( 'Select a Ticker:', 'ditty-news-ticker' ); ?></label><br/>
100
+ <select id="<?php echo $this->get_field_id( 'ticker' ); ?>" name="<?php echo $this->get_field_name( 'ticker' ); ?>">
101
+ <?php
102
+ $tickers = get_posts( 'numberposts=-1&post_type=ditty_news_ticker&orderby=name&order=ASC' );
103
+ foreach( $tickers as $ticker ) {
104
+ if( $instance['ticker'] == $ticker->ID ) {
105
+ echo '<option value="'.$ticker->ID.'" selected="selected">'.$ticker->post_title.'</option>';
106
+ } else {
107
+ echo '<option value="'.$ticker->ID.'">'.$ticker->post_title.'</option>';
108
+ }
109
+ }
110
+ ?>
111
+ </select>
112
+ </p>
113
 
114
+ <!-- Display Ticker Title: Checkbox -->
115
+ <p>
116
+ <input class="checkbox" type="checkbox" <?php checked( $instance['ticker_title'], 'on' ); ?> id="<?php echo $this->get_field_id( 'ticker_title' ); ?>" name="<?php echo $this->get_field_name( 'ticker_title' ); ?>" />
117
+ <label for="<?php echo $this->get_field_id( 'ticker_title' ); ?>"><?php _e( 'Display Ticker Title?', 'ditty-news-ticker' ); ?></label>
118
+ </p>
119
+
120
+ <?php
121
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
123
 
 
 
 
 
 
 
124
 
125
+ /* --------------------------------------------------------- */
126
+ /* !Register the widget - 1.5.7 */
127
+ /* --------------------------------------------------------- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
+ function mtphr_dnt_widget_init() {
130
+ register_widget( 'mtphr_dnt_widget' );
 
 
 
 
 
 
131
  }
132
+ add_action( 'widgets_init', 'mtphr_dnt_widget_init' );
133
 
languages/ditty-news-ticker-he_IL.mo ADDED
Binary file
languages/ditty-news-ticker-he_IL.po ADDED
@@ -0,0 +1,1374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file was generated by WPML
2
+ # WPML is a WordPress plugin that can turn any WordPress or WordPressMU site into a full featured multilingual content management system.
3
+ # https://wpml.org
4
+ msgid ""
5
+ msgstr ""
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "Project-Id-Version: ditty-news-ticker\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: Ahrale <contact@atar4u.com>\n"
12
+ "Language-Team: Ahrale, Atar4U.com <contact@atar4u.com>\n"
13
+ "Language: he_IL\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Generator: Poedit 1.7.3\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+
19
+ # wpml-name: f2437d6ccf4b0bf1939150731cceaa72
20
+ msgctxt "1653e41fa20245053fe0f57317bfec1e"
21
+ msgid "Offset:"
22
+ msgstr "קיזוז:"
23
+
24
+ # wpml-name: c555780763843d6190d10871aaf2520f
25
+ msgctxt "8684fa983c73cdc8b125dd76fed77117"
26
+ msgid "Add Tick"
27
+ msgstr "הוסף מבזק"
28
+
29
+ # wpml-name: 288e53c0ebac15d67f67b50e55fce792
30
+ msgctxt "ddc1a109240aef48ae62650eea1a19d6"
31
+ msgid "Select Code"
32
+ msgstr "בחר קוד"
33
+
34
+ # wpml-name: 53a739c443377d771499b74708a29e47
35
+ #: if( isset($settings['edit_links']) && $settings['edit_links'] ) { echo '<a
36
+ #: class="mtphr-dnt-edit-link" href="'.get_edit_post_link( $id ).'">'.__('<i
37
+ #: class="mtphr-dnt-icon-gear"></i> Edit ticker', 'ditty-news-ticker').'</a>';
38
+ #: }
39
+ msgctxt "457ee5a0f6d16ea325418dcf2bc6556a"
40
+ msgid "<i class=\"mtphr-dnt-icon-gear\"></i> Edit ticker"
41
+ msgstr "<i class=\"mtphr-dnt-icon-gear\"></i> ערוך את המבזק"
42
+
43
+ # wpml-name: dc05f35109f72118f21db8d0b2d9692f
44
+ #: if( isset($settings['edit_links']) && $settings['edit_links'] ) { echo '<a
45
+ #: class="mtphr-dnt-edit-link" href="'.get_edit_post_link( $id ).'">'.__('<i
46
+ #: class="mtphr-dnt-icon-gear"></i> Edit ticker', 'ditty-news-ticker').'</a>';
47
+ #: }
48
+ msgctxt "42f1a04d57a926d383901b7986741be2"
49
+ msgid "Ditty News Ticker Settings"
50
+ msgstr "הגדרות מבזקי החדשות"
51
+
52
+ # wpml-name: 39ccb1087856f924a498463b6d10aa70
53
+ #: <div style="margin-bottom: 20px;"> <h4 style="margin-top:0;"><?php _e( 'The
54
+ #: global settings to your news tickers.', 'ditty-news-ticker' ); ?></h4>
55
+ #: </div>
56
+ msgctxt "6157ca92dabeb3c59057ee07d244b42f"
57
+ msgid "The global settings to your news tickers."
58
+ msgstr "ההגדרות הכלליות של מבזקי החדשות שלך."
59
+
60
+ # wpml-name: e54e7c1260b329241371f6468658f668
61
+ #: echo '<div id="mtphr_dnt_general_settings_edit_links">'; '<label><input
62
+ #: type="checkbox" name="mtphr_dnt_general_settings[edit_links]" value="1"
63
+ #: '.checked('1', $settings['edit_links'], false).' /> '.__('Add quick edit
64
+ #: links', 'ditty-news-ticker').'</label>'; '</div>';
65
+ msgctxt "fabc0c58528302266b0ccee2ac79110b"
66
+ msgid "Add quick edit links"
67
+ msgstr "הוספת קישורי עריכה מהירה"
68
+
69
+ # wpml-name: 13076400a0dccb5a557df18516f6aea0
70
+ #: echo '<label><input type="checkbox"
71
+ #: name="mtphr_dnt_general_settings[wysiwyg]" value="1" '.checked('1',
72
+ #: $settings['wysiwyg'], false).' /> '.__('Use the visual editor for ticks',
73
+ #: 'ditty-news-ticker').'</label>'; '<p><strong>'.__('Note:',
74
+ #: 'ditty-news-ticker').'</strong> <em>'.__('The content in editors will
75
+ #: disappear after re-arranging ticks. That re-populate re-saving ticker.',
76
+ #: 'ditty-news-ticker').'</em></p>'; '</div>';
77
+ msgctxt "2ff9523f18699de46722fb848b564ed3"
78
+ msgid "The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after re-saving the ticker."
79
+ msgstr "התוכן בעורך הויזואלי ייעלם לאחר סידור מחדש של המבזקים. התוכן יאכלס אותם מחדש לאחר השמירה."
80
+
81
+ # wpml-name: fc9d3df613063ee57906c461320744e2
82
+ #: echo '<label><input type="checkbox"
83
+ #: name="mtphr_dnt_general_settings[wysiwyg]" value="1" '.checked('1',
84
+ #: $settings['wysiwyg'], false).' /> '.__('Use the visual editor for ticks',
85
+ #: 'ditty-news-ticker').'</label>'; '<p><strong>'.__('Note:',
86
+ #: 'ditty-news-ticker').'</strong> <em>'.__('The content in editors will
87
+ #: disappear after re-arranging ticks. That re-populate re-saving ticker.',
88
+ #: 'ditty-news-ticker').'</em></p>'; '</div>';
89
+ msgctxt "ce662c7cd7e031bddc026573032bdb7e"
90
+ msgid "Note:"
91
+ msgstr "הערה:"
92
+
93
+ # wpml-name: d984d1cefeebaa323798156df1efa4eb
94
+ #: echo '<div id="mtphr_dnt_general_settings_wysiwyg">'; '<label><input
95
+ #: type="checkbox" name="mtphr_dnt_general_settings[wysiwyg]" value="1"
96
+ #: '.checked('1', $settings['wysiwyg'], false).' /> '.__('Use the visual
97
+ #: editor for ticks', 'ditty-news-ticker').'</label>';
98
+ #: '<p><strong>'.__('Note:', 'ditty-news-ticker').'</strong> <em>'.__('The
99
+ #: content in editors will disappear after re-arranging ticks. That
100
+ #: re-populate re-saving ticker.', 'ditty-news-ticker').'</em></p>';
101
+ msgctxt "fc299414f021289bf64aa7c774759a34"
102
+ msgid "Use the visual editor for ticks"
103
+ msgstr "השתמש בעורך הוויזואלי למבזקים"
104
+
105
+ # wpml-name: 8b4eb43df7a275e13a857ef4106d3b36
106
+ #: /* Custom CSS */ $title = mtphr_dnt_settings_label( __( 'Custom CSS',
107
+ #: 'ditty-news-ticker' ), __('Add custom css to style your ticker without
108
+ #: modifying any external files', 'ditty-news-ticker') ); add_settings_field(
109
+ #: 'mtphr_dnt_general_settings_css', $title, 'mtphr_dnt_general_settings',
110
+ #: 'mtphr_dnt_general_settings_section', array('settings' => $settings)
111
+ msgctxt "228a1c330daa6b7d15462b0cf4c13291"
112
+ msgid "Add custom css to style your ticker without modifying any external files"
113
+ msgstr "הוסף עיצוב CSS למבזק שלך מבלי לשנות קבצים חיצוניים"
114
+
115
+ # wpml-name: 42e6feb7f76e910efcda54034ecc83ce
116
+ #: /* Custom CSS */ $title = mtphr_dnt_settings_label( __( 'Custom CSS',
117
+ #: 'ditty-news-ticker' ), __('Add custom css to style your ticker without
118
+ #: modifying any external files', 'ditty-news-ticker') ); add_settings_field(
119
+ #: 'mtphr_dnt_general_settings_css', $title, 'mtphr_dnt_general_settings',
120
+ #: 'mtphr_dnt_general_settings_section', array('settings' => $settings)
121
+ msgctxt "bfdc13bca0eeac79d0b01eb311826299"
122
+ msgid "Custom CSS"
123
+ msgstr "עיצוב CSS"
124
+
125
+ # wpml-name: b6570b98efb409924ac59c62166395c6
126
+ #: /* Quick Edit Links */ $title = mtphr_dnt_settings_label( __( 'Quick
127
+ #: Links', 'ditty-news-ticker' ), __('Add quick edit links on the front-end of
128
+ #: site for editors and admins', 'ditty-news-ticker') ); add_settings_field(
129
+ #: 'mtphr_dnt_general_settings_edit_links', $title,
130
+ #: 'mtphr_dnt_general_settings', 'mtphr_dnt_general_settings_section',
131
+ #: array('settings' => $settings)
132
+ msgctxt "576ced28c5da6c2963662c588eb776de"
133
+ msgid "Add quick edit links on the front-end of the site for editors and admins"
134
+ msgstr "הוספת קישורי עריכה מהירה בצד הקדמי של האתר עבור עורכים ומנהלים"
135
+
136
+ # wpml-name: 98a05a810392169807210ee0a011de9e
137
+ #: /* Quick Edit Links */ $title = mtphr_dnt_settings_label( __( 'Quick
138
+ #: Links', 'ditty-news-ticker' ), __('Add quick edit links on the front-end of
139
+ #: site for editors and admins', 'ditty-news-ticker') ); add_settings_field(
140
+ #: 'mtphr_dnt_general_settings_edit_links', $title,
141
+ #: 'mtphr_dnt_general_settings', 'mtphr_dnt_general_settings_section',
142
+ #: array('settings' => $settings)
143
+ msgctxt "c31bdee124edcacd2b52c4b16418ab25"
144
+ msgid "Quick Edit Links"
145
+ msgstr "קישורי עריכה מהירה"
146
+
147
+ # wpml-name: 6e9ec28da3a315795f3e0a4082724c7d
148
+ #: /* Visual Editor */ $title = mtphr_dnt_settings_label( __( 'Visual Editor',
149
+ #: 'ditty-news-ticker' ), __('Use the visual editor to create tick contents',
150
+ #: 'ditty-news-ticker') ); add_settings_field(
151
+ #: 'mtphr_dnt_general_settings_wysiwyg', $title, 'mtphr_dnt_general_settings',
152
+ #: 'mtphr_dnt_general_settings_section', array('settings' => $settings)
153
+ msgctxt "ddb639d96383c4dbb20b194af7b05e6e"
154
+ msgid "Use the visual editor to create tick contents"
155
+ msgstr "השתמש בעורך הויזואלי כדי ליצור תוכן למבזק"
156
+
157
+ # wpml-name: 01a23ad87d518ac297063053699bbc69
158
+ #: /* Visual Editor */ $title = mtphr_dnt_settings_label( __( 'Visual Editor',
159
+ #: 'ditty-news-ticker' ), __('Use the visual editor to create tick contents',
160
+ #: 'ditty-news-ticker') ); add_settings_field(
161
+ #: 'mtphr_dnt_general_settings_wysiwyg', $title, 'mtphr_dnt_general_settings',
162
+ #: 'mtphr_dnt_general_settings_section', array('settings' => $settings)
163
+ msgctxt "1e648de5d8ef4a86e759a69f6fdb892e"
164
+ msgid "Visual Editor"
165
+ msgstr "עורך ויזואלי"
166
+
167
+ # wpml-name: 8aeccff480c9e078c20f7c29ba32cf96
168
+ #: <div id="icon-themes" class="icon32"></div> <h2><?php _e( 'Ditty News
169
+ #: Ticker Settings', 'ditty-news-ticker' ); ?></h2> <?php settings_errors();
170
+ #: ?>
171
+ msgctxt "cc7b08027ee9ec22e3accf0d1a978cfe"
172
+ msgid "Ditty News Ticker settings"
173
+ msgstr "הגדרות מבזקי החדשות"
174
+
175
+ # wpml-name: f4f70727dc34561dfde1a3c529b6205c
176
+ #: __( 'Settings', 'ditty-news-ticker' ), // The value used to populate the
177
+ #: browser's title bar when menu page is active label of this submenu item
178
+ #: displayed in 'administrator', What roles are able access
179
+ msgctxt "8e15e07851f69542b97dbe9f57df1102"
180
+ msgid "Settings"
181
+ msgstr "הגדרות"
182
+
183
+ # wpml-name: 4ee29ca12c7d126654bd0e5275de6135
184
+ #: $dnt_modes_array['list'] = array( 'button' => __('List',
185
+ #: 'ditty-news-ticker'), 'metaboxes' 'mtphr_dnt_list_settings_metabox' )
186
+ msgctxt "ed91b77726b7bd651f337b6fb1fb5d29"
187
+ msgid "List"
188
+ msgstr "רשימה"
189
+
190
+ # wpml-name: 8d2de5368588552fbae54044ac5c7b3d
191
+ #: $dnt_modes_array['rotate'] = array( 'button' => __('Rotate',
192
+ #: 'ditty-news-ticker'), 'metaboxes' 'mtphr_dnt_rotate_settings_metabox' )
193
+ msgctxt "a1af61a172b414dcea4cc1c7b5c0724d"
194
+ msgid "Rotate"
195
+ msgstr "סבב"
196
+
197
+ # wpml-name: 105078d294d30c978ca2badf7f376934
198
+ #: $dnt_modes_array['scroll'] = array( 'button' => __('Scroll',
199
+ #: 'ditty-news-ticker'), 'metaboxes' 'mtphr_dnt_scroll_settings_metabox' )
200
+ msgctxt "9c00fadaab1ab9a42bf10b10a612d152"
201
+ msgid "Scroll"
202
+ msgstr "גלילה"
203
+
204
+ # wpml-name: 699b4f79215d191584653efebf156e52
205
+ #: $dnt_types_array['mixed'] = array( 'button' => __('Mixed',
206
+ #: 'ditty-news-ticker'), 'metaboxes' 'mtphr_dnt_mixed_metabox' )
207
+ msgctxt "c1d1cf56a05bfdfe275d51d5780b0c9c"
208
+ msgid "Mixed"
209
+ msgstr "מעורב"
210
+
211
+ # wpml-name: 7a1920d61156abc05a60135aefe8bc67
212
+ #: $dnt_types_array['default'] = array( 'button' => __('Default',
213
+ #: 'ditty-news-ticker'), 'metaboxes' 'mtphr_dnt_default_metabox' )
214
+ msgctxt "a5fa3b49f2782c549f6341fb4b6c9bb1"
215
+ msgid "Default"
216
+ msgstr "ברירת המחדל"
217
+
218
+ # wpml-name: 7c1f18331f2b85d2b5efb4845b706b19
219
+ #: $messages['ditty_news_ticker'][1] = __('Ditty News Ticker Updated!',
220
+ #: 'ditty-news-ticker');
221
+ msgctxt "b83de84e75c4848c8fd36a68cb96fb1d"
222
+ msgid "Ditty News Ticker Updated!"
223
+ msgstr "המבזקון עודכן!"
224
+
225
+ # wpml-name: 8a084cf70d89160151bfe9722cb4c124
226
+ #: 'supports' => array( 'title', 'author' ), 'rewrite' 'slug' __( 'ticker',
227
+ #: 'ditty-news-ticker' ) 'show_in_nav_menus' true
228
+ msgctxt "28dc8e92807bf8026fa3f2e03f9c6da9"
229
+ msgid "ticker"
230
+ msgstr "מבזק"
231
+
232
+ # wpml-name: 86409e0844b03d85c534ee7a3efc82b3
233
+ #: 'not_found' => __( 'No News Tickers Found', 'ditty-news-ticker' ),
234
+ #: 'not_found_in_trash' Found In Trash', 'parent_item_colon' '',
235
+ msgctxt "c76f65a7370b915e05545965caa0a9a2"
236
+ msgid "No News Tickers Found In Trash"
237
+ msgstr "לא נמצאו מבזקי חדשות באשפה"
238
+
239
+ # wpml-name: 164b96ff838f1f491500852d1a695da4
240
+ #: 'search_items' => __( 'Search News Tickers', 'ditty-news-ticker' ),
241
+ #: 'not_found' 'No Tickers Found', 'not_found_in_trash' Found In Trash',
242
+ msgctxt "bc82702fbcac3537da65d76e4a31e1ee"
243
+ msgid "No News Tickers Found"
244
+ msgstr "לא נמצאו מבזקי חדשות"
245
+
246
+ # wpml-name: fc0f7735c09678367d834733c59e0058
247
+ #: 'view_item' => __( 'View News Ticker', 'ditty-news-ticker' ),
248
+ #: 'search_items' 'Search Tickers', 'not_found' 'No Tickers Found',
249
+ msgctxt "41e106161b76c647e3e06ddf02e3d8a3"
250
+ msgid "Search News Tickers"
251
+ msgstr "חיפוש מבזקי חדשות"
252
+
253
+ # wpml-name: ef758b4972541466cc0bafa357fc20b5
254
+ #: 'new_item' => __( 'New News Ticker', 'ditty-news-ticker' ), 'view_item'
255
+ #: 'View 'search_items' 'Search Tickers',
256
+ msgctxt "0cca52eb20b16d0198a9ee3d70083f70"
257
+ msgid "View News Ticker"
258
+ msgstr "הצגת מבזקי חדשות"
259
+
260
+ # wpml-name: 310e3eff45c89d098e0ec915c2554c33
261
+ #: 'edit_item' => __( 'Edit News Ticker', 'ditty-news-ticker' ), 'new_item'
262
+ #: 'New 'view_item' 'View
263
+ msgctxt "e7fb61f0053f0bc1e4a169687d768ccb"
264
+ msgid "New News Ticker"
265
+ msgstr "מבזק חדשות חדש"
266
+
267
+ # wpml-name: 58313f0f1354081d61425da802e27c47
268
+ #: 'add_new_item' => __( 'Add New News Ticker', 'ditty-news-ticker' ),
269
+ #: 'edit_item' 'Edit 'new_item' 'New
270
+ msgctxt "31ad8c52ceca7526cdcf57c9ca2b2d60"
271
+ msgid "Edit News Ticker"
272
+ msgstr "עריכת מבזק חדשות"
273
+
274
+ # wpml-name: 65b7816ce38cdc7f69bdfa9a6f6ba94d
275
+ #: 'add_new' => __( 'Add New', 'ditty-news-ticker' ), 'add_new_item' New News
276
+ #: Ticker', 'edit_item' 'Edit
277
+ msgctxt "f7051b311c529cd995ca9e62feedd8bb"
278
+ msgid "Add New News Ticker"
279
+ msgstr "הוספת מבזק חדשות חדש"
280
+
281
+ # wpml-name: de9ced9bf5e9829de4a93ad8c9d7a170
282
+ #: 'singular_name' => __( 'News Ticker', 'ditty-news-ticker' ), 'add_new' 'Add
283
+ #: New', 'add_new_item' New News
284
+ msgctxt "131e7bbafddbf9953a6e2fff973170d9"
285
+ msgid "Add New"
286
+ msgstr "הוספת חדש"
287
+
288
+ # wpml-name: 50d77e670e211fe0d3c7544334e1cbdb
289
+ #: 'name' => __( 'News Tickers', 'ditty-news-ticker' ), 'singular_name'
290
+ #: Ticker', 'add_new' 'Add New',
291
+ msgctxt "b3ef9f13598f69d0bd342e244c8ddb49"
292
+ msgid "News Ticker"
293
+ msgstr "מבזק חדשות"
294
+
295
+ # wpml-name: 02dcb4e41fd8553f597395c413a9605b
296
+ #: 'parent_item_colon' => '', 'menu_name' __( 'News Tickers',
297
+ #: 'ditty-news-ticker' ) );
298
+ msgctxt "727364f23ad4d16a96ac4f923299a633"
299
+ msgid "News Tickers"
300
+ msgstr "מבזקי חדשות"
301
+
302
+ # wpml-name: 957f7fe4bab47e7b092b1cd1f746f28d
303
+ #: function mtphr_dnt_list_mode_help_callback() { echo '<p>'.__('Add list mode
304
+ #: info.', 'ditty-news-ticker').'</p>'; }
305
+ msgctxt "f064284c350ab1a89cbea7b91a6d50bb"
306
+ msgid "Add list mode info."
307
+ msgstr "הוספת מידע מצב רשימה."
308
+
309
+ # wpml-name: ed414cc7963cfd09abd0fcaa1dd675a2
310
+ #: function mtphr_dnt_rotate_mode_help_callback() { echo '<p>'.__('Add rotate
311
+ #: mode info.', 'ditty-news-ticker').'</p>'; }
312
+ msgctxt "6a2b30667f7960e39b72b9783fd60c59"
313
+ msgid "Add rotate mode info."
314
+ msgstr "הוספת מידע מצב סבב."
315
+
316
+ # wpml-name: 0a2aa96bdc683a690498d3b30cba1b3b
317
+ #: function mtphr_dnt_scroll_mode_help_callback() { echo '<p>'.__('Add scroll
318
+ #: mode info.', 'ditty-news-ticker').'</p>'; }
319
+ msgctxt "a4d600eeb28b4e977ad6c3da492ae42e"
320
+ msgid "Add scroll mode info."
321
+ msgstr "הוספת מידע מצב גלילה."
322
+
323
+ # wpml-name: c8ce3fca1a4520cff9ede758cf505701
324
+ #: function mtphr_dnt_general_help_callback() { echo '<p>'.__('Add general
325
+ #: information about Ditty News Ticker.', 'ditty-news-ticker').'</p>'; }
326
+ msgctxt "124e0b01532a3805c546f62735b8872e"
327
+ msgid "Add general information about Ditty News Ticker."
328
+ msgstr "הוסף מידע כללי על מבזקי החדשות."
329
+
330
+ # wpml-name: 7a1cc18527da43f4effcf13e40cb81cb
331
+ #: $sidebar .= '<p>'.__('Visit the <a href="http://www.metaphorcreations.com"
332
+ #: target="_blank">documentation</a> on Ditty News Ticker website',
333
+ #: 'ditty-news-ticker').'</p>'; '<p><strong><a target="_blnak">'.__('View DNT
334
+ #: extensions', 'ditty-news-ticker').'</strong></a>';
335
+ msgctxt "2b2cf47716fb6197b84650ea0b738380"
336
+ msgid "View DNT extensions"
337
+ msgstr "הצג הרחבות מבזקי החדשות"
338
+
339
+ # wpml-name: 9037ea079c8e7829c139d1499564b655
340
+ #: $sidebar = '<p><strong>'.__('For more information:',
341
+ #: 'ditty-news-ticker').'</strong></p>'; .= '<p>'.__('Visit the <a
342
+ #: href="http://www.metaphorcreations.com" target="_blank">documentation</a>
343
+ #: on Ditty News Ticker website', 'ditty-news-ticker').'</p>'; '<p><strong><a
344
+ #: target="_blnak">'.__('View DNT extensions',
345
+ #: 'ditty-news-ticker').'</strong></a>';
346
+ msgctxt "eaf4902de8f23a5e43585f0609afd03d"
347
+ msgid "Visit the <a href=\"http://www.metaphorcreations.com\" target=\"_blank\">documentation</a> on the Ditty News Ticker website"
348
+ msgstr "בקר ב <a href=\"http://www.metaphorcreations.com\" target=\"_blank\">תיעוד</a> באתר של Ditty News Ticker"
349
+
350
+ # wpml-name: 55707b4848b3a26a39057e3af6948b43
351
+ #: $sidebar = '<p><strong>'.__('For more information:',
352
+ #: 'ditty-news-ticker').'</strong></p>'; .= '<p>'.__('Visit the <a
353
+ #: href="http://www.metaphorcreations.com" target="_blank">documentation</a>
354
+ #: on Ditty News Ticker website', 'ditty-news-ticker').'</p>';
355
+ msgctxt "62297c444017f19a1d38cfe68095c9d7"
356
+ msgid "For more information:"
357
+ msgstr "למידע נוסף:"
358
+
359
+ # wpml-name: 6ce574d213255c9163f39d8a456592de
360
+ #: 'id' => 'mtphr-dnt-list-mode-help', //unique id for the tab 'title'
361
+ #: __('List Mode', 'ditty-news-ticker'), visible title 'callback'
362
+ #: 'mtphr_dnt_list_mode_help_callback' //optional function to callback
363
+ msgctxt "563e25d2cca98ff9784e426fe2ac94c0"
364
+ msgid "List Mode"
365
+ msgstr "מצב רשימה"
366
+
367
+ # wpml-name: 130f662e66c889cc538d75e47dd65bf5
368
+ #: 'id' => 'mtphr-dnt-rotate-mode-help', //unique id for the tab 'title'
369
+ #: __('Rotate Mode', 'ditty-news-ticker'), visible title 'callback'
370
+ #: 'mtphr_dnt_rotate_mode_help_callback' //optional function to callback
371
+ msgctxt "be82e6a1ef0d5829c2f69dcc900dfa9d"
372
+ msgid "Rotate Mode"
373
+ msgstr "מצב סבב"
374
+
375
+ # wpml-name: 0e9f364bcdec50a11c2795af74214d38
376
+ #: 'id' => 'mtphr-dnt-scroll-mode-help', //unique id for the tab 'title'
377
+ #: __('Scroll Mode', 'ditty-news-ticker'), visible title 'callback'
378
+ #: 'mtphr_dnt_scroll_mode_help_callback' //optional function to callback
379
+ msgctxt "c9087a5e1a2989f0322086eb203eee67"
380
+ msgid "Scroll Mode"
381
+ msgstr "מצב גלילה"
382
+
383
+ # wpml-name: 0702a86e7e37ee69c41b5a0f004c5359
384
+ #: <input class="checkbox" type="checkbox" <?php checked(
385
+ #: $instance['ticker_title'], 'on' ); ?> id="<?php echo $this->get_field_id(
386
+ #: 'ticker_title' ?>" name="<?php $this->get_field_name( /> <label for="<?php
387
+ #: ?>"><?php _e( 'Display Ticker Title?', 'ditty-news-ticker' ?></label> </p>
388
+ msgctxt "83972d7accab1b3d77138c95dd88633a"
389
+ msgid "Display Ticker Title?"
390
+ msgstr "האם להציג את כותרת המבזק?"
391
+
392
+ # wpml-name: 322c278cdd36c25bbeea820b45cb5955
393
+ #: <p> <label for="<?php echo $this->get_field_id( 'ticker' ); ?>"><?php _e(
394
+ #: 'Select a Ticker:', 'ditty-news-ticker' ?></label><br/> <select id="<?php
395
+ #: ?>" name="<?php $this->get_field_name( ?>">
396
+ msgctxt "b6c141cca4452be3c6c37ecaeac31f57"
397
+ msgid "Select a Ticker:"
398
+ msgstr "בחירת מבזק:"
399
+
400
+ # wpml-name: 51ec9bf4aaeab1b25bb57f9f8d4de557
401
+ #: <p> <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e(
402
+ #: 'Title:', 'ditty-news-ticker' ?></label> <input class="widefat" id="<?php
403
+ #: ?>" name="<?php $this->get_field_name( value="<?php $instance['title'];
404
+ #: style="width:97%;" />
405
+ msgctxt "9ee0626bb24988836b204acc7c6a021a"
406
+ msgid "Title:"
407
+ msgstr "כותרת:"
408
+
409
+ # wpml-name: 81b003bb81fbda39e59831e5f1c1fec4
410
+ #: 'id' => 'mtphr-dnt-general-help', //unique id for the tab 'title' __('Ditty
411
+ #: News Ticker', 'ditty-news-ticker'), visible title 'callback'
412
+ #: 'mtphr_dnt_general_help_callback' //optional function to callback
413
+ msgctxt "d73ca84ce7580dfb7ad09f213bf89821"
414
+ msgid "Ditty News Ticker"
415
+ msgstr "מבזק חדשות"
416
+
417
+ # wpml-name: d5084f2cc7fb3146d64da457ba3d6b98
418
+ #: 'classname' => 'mtphr-dnt-widget', 'description' __('Displays a Ditty News
419
+ #: Ticker.', 'ditty-news-ticker') );
420
+ msgctxt "4ce29e923e26069ba04be50cf7b57427"
421
+ msgid "Displays a Ditty News Ticker."
422
+ msgstr "מציג מבזק חדשות.."
423
+
424
+ # wpml-name: 6cea352c1f55e5905c076b414ad9e1aa
425
+ #: echo '<select name="dnt_mode">'; '<option value="">'.__('Show all Modes',
426
+ #: 'ditty-news-ticker').'</option>'; if( is_array($modes) && count($modes) > 0
427
+ #: ) {
428
+ msgctxt "468edc0c32c6da9893d286e255027c92"
429
+ msgid "Show all Modes"
430
+ msgstr "הצג את כל המצבים"
431
+
432
+ # wpml-name: 7c532c4af50997f8910984fc1b98dcb1
433
+ #: echo '<select name="dnt_type">'; '<option value="">'.__('Show all Types',
434
+ #: 'ditty-news-ticker').'</option>'; if( is_array($types) && count($types) > 0
435
+ #: ) {
436
+ msgctxt "9f882de9999239cf3c85a0521d8d4450"
437
+ msgid "Show all Types"
438
+ msgstr "הצג את כל הסוגים"
439
+
440
+ # wpml-name: 650be61892bf690026089544abbd9d26
441
+ #: $new_columns['dnt_type'] = __( 'Type', 'ditty-news-ticker' );
442
+ #: $new_columns['dnt_mode'] 'Mode', $new_columns['dnt_shortcode'] 'Shortcode',
443
+ msgctxt "e62523580ac03851ae22ddc7e90b6741"
444
+ msgid "Mode"
445
+ msgstr "מצב"
446
+
447
+ # wpml-name: a1fa27779242b4902f7ae3bdd5c6d508
448
+ #: if( $i == 2 ) { $new_columns['dnt_type'] = __( 'Type', 'ditty-news-ticker'
449
+ #: ); $new_columns['dnt_mode'] 'Mode',
450
+ msgctxt "1c418363528200af4c0dab1110f6f983"
451
+ msgid "Type"
452
+ msgstr "סוג"
453
+
454
+ # wpml-name: d8725c9be0163434c461b9a21d75dde4
455
+ #: echo '<br/>'; '<label>'.__('Cell padding', 'ditty-news-ticker').' <input
456
+ #: type="number" name="_mtphr_dnt_grid_padding"
457
+ #: value="'.$values['grid_padding'].'" /></label>'; '</td>';
458
+ msgctxt "7c11b0dfa3d2320abd7704a740f6dbf2"
459
+ msgid "Cell padding"
460
+ msgstr "מרווח תאים"
461
+
462
+ # wpml-name: 530f488f7a9800411efc6926ab189708
463
+ #: echo '<label>'.__('Columns', 'ditty-news-ticker').' <input type="number"
464
+ #: style="width:50px;" name="_mtphr_dnt_grid_cols"
465
+ #: value="'.$values['grid_cols'].'" /></label>'; '<label>'.__('Rows',
466
+ #: name="_mtphr_dnt_grid_rows" value="'.$values['grid_rows'].'" '<br/>';
467
+ msgctxt "9ab29eedef0a4ccffd24e836703bbd77"
468
+ msgid "Rows"
469
+ msgstr "שורות"
470
+
471
+ # wpml-name: 168b82d33f8073018c50a4f658a02559
472
+ #: echo '<br/>'; '<label>'.__('Columns', 'ditty-news-ticker').' <input
473
+ #: type="number" style="width:50px;" name="_mtphr_dnt_grid_cols"
474
+ #: value="'.$values['grid_cols'].'" /></label>'; '<label>'.__('Rows',
475
+ #: name="_mtphr_dnt_grid_rows" value="'.$values['grid_rows'].'"
476
+ msgctxt "b97d335523dd97f12da438eae8bd9fb0"
477
+ msgid "Columns"
478
+ msgstr "עמודות"
479
+
480
+ # wpml-name: 97b8791226370907bc17edc4ef3076aa
481
+ #: echo '<label><input type="checkbox" name="_mtphr_dnt_grid_empty_rows"
482
+ #: value="1" '.checked('1', $values['grid_empty_rows'], false).' />
483
+ #: '.__('Render empty rows', 'ditty-news-ticker').'</label>';
484
+ #: name="_mtphr_dnt_grid_equal_width" $values['grid_equal_width'], '.__('Force
485
+ #: equal column width', '<br/>';
486
+ msgctxt "8e903518e277b82996bbf9102d50f49c"
487
+ msgid "Force equal column width"
488
+ msgstr "כפה רוחב שווה של עמודות"
489
+
490
+ # wpml-name: 53165efc4314734ed589fa3bb8d1fdff
491
+ #: echo '<label><input type="checkbox" name="_mtphr_dnt_grid" value="1"
492
+ #: '.checked('1', $values['grid'], false).' /> '.__('Display ticks in a grid',
493
+ #: 'ditty-news-ticker').'</label>'; name="_mtphr_dnt_grid_empty_rows"
494
+ #: $values['grid_empty_rows'], '.__('Render empty rows',
495
+ #: name="_mtphr_dnt_grid_equal_width" $values['grid_equal_width'], '.__('Force
496
+ #: equal column width',
497
+ msgctxt "4204651fe2c9785a07400a2d08ba9750"
498
+ msgid "Render empty rows"
499
+ msgstr "הסר שורות ריקות"
500
+
501
+ # wpml-name: d8f7d1ba4c03caae6bfe99b123b5e48a
502
+ #: echo '<p class="mtphr-dnt-side-label">'.__('Grid Display',
503
+ #: 'ditty-news-ticker').'</p>'; '<label><input type="checkbox"
504
+ #: name="_mtphr_dnt_grid" value="1" '.checked('1', $values['grid'], false).'
505
+ #: /> '.__('Display ticks in a grid', 'ditty-news-ticker').'</label>';
506
+ #: name="_mtphr_dnt_grid_empty_rows" $values['grid_empty_rows'], '.__('Render
507
+ #: empty rows',
508
+ msgctxt "f779156b2730ea5a11bee417db62b857"
509
+ msgid "Display ticks in a grid"
510
+ msgstr "הצג את המבזקים ברשת"
511
+
512
+ # wpml-name: b7c0a2a0043c45439398f1845845eed9
513
+ #: echo '<td class="mtphr-dnt-no-label">'; '<p
514
+ #: class="mtphr-dnt-side-label">'.__('Grid Display',
515
+ #: 'ditty-news-ticker').'</p>'; '<label><input type="checkbox"
516
+ #: name="_mtphr_dnt_grid" value="1" '.checked('1', $values['grid'], false).'
517
+ #: /> '.__('Display ticks in a grid', 'ditty-news-ticker').'</label>';
518
+ msgctxt "7f6ca13ffe5634f7abc64a25222e87df"
519
+ msgid "Grid Display"
520
+ msgstr "תצוגת רשת"
521
+
522
+ # wpml-name: 2c6d76b4cd6f8f2d9dc680edbb9c7e31
523
+ #: echo '<label>'.__('Offset ticks', 'ditty-news-ticker').' <input
524
+ #: type="number" name="_mtphr_dnt_offset" value="'.$values['offset'].'" />
525
+ #: '.__('px from the edge', 'ditty-news-ticker').'</label>';
526
+ #: '<br/><small><em>'.__('The amount of pixels ticks should start and end off
527
+ #: screen.', 'ditty-news-ticker').'</em></small>'; '</td>';
528
+ msgctxt "d68738279bd10af51b5ff446de414934"
529
+ msgid "The amount of pixels ticks should start and end off the screen."
530
+ msgstr "במרחק כמה פיקסלים מהמסך צריכים המבזקים להתחיל ולהסתיים"
531
+
532
+ # wpml-name: d338bc5c014153367fe9ea28c4b67d42
533
+ #: echo '<td class="mtphr-dnt-no-label">'; '<label>'.__('Offset ticks',
534
+ #: 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_offset"
535
+ #: value="'.$values['offset'].'" /> '.__('px from the edge',
536
+ #: 'ditty-news-ticker').'</label>'; '<br/><small><em>'.__('The amount of
537
+ #: pixels ticks should start and end off screen.',
538
+ #: 'ditty-news-ticker').'</em></small>';
539
+ msgctxt "06855dfd9a5032699392c82c66872a78"
540
+ msgid "px from the edge"
541
+ msgstr "פיקסלים מהקצה"
542
+
543
+ # wpml-name: 935d6eac337aac40dce4f5a23ef78dfa
544
+ #: echo '<td class="mtphr-dnt-no-label">'; '<label>'.__('Offset ticks',
545
+ #: 'ditty-news-ticker').' <input type="number" name="_mtphr_dnt_offset"
546
+ #: value="'.$values['offset'].'" /> '.__('px from the edge',
547
+ #: 'ditty-news-ticker').'</label>'; '<br/><small><em>'.__('The amount of
548
+ #: pixels ticks should start and end off screen.',
549
+ #: 'ditty-news-ticker').'</em></small>';
550
+ msgctxt "585cdd61dcba49fbe0dfc6554c33d15a"
551
+ msgid "Offset ticks"
552
+ msgstr "קיזוז מבזקים"
553
+
554
+ # wpml-name: 18ece3212cf9f72da942f1de29b32ae4
555
+ #: echo '<td class="mtphr-dnt-no-label">'; '<label>'.__('Ticker width
556
+ #: <em>(optional)</em>', 'ditty-news-ticker').' <input type="number"
557
+ #: name="_mtphr_dnt_ticker_width" value="'.$values['width'].'" /></label>';
558
+ #: '</td>';
559
+ msgctxt "e64e56ba33a14001dd828809a258bafb"
560
+ msgid "Ticker width <em>(optional)</em>"
561
+ msgstr "רוחב <em>(רשות)</em>"
562
+
563
+ # wpml-name: b730a651164d83ee593e7614c3388cdf
564
+ #: echo '<td class="mtphr-dnt-no-label">'; '<label><input type="checkbox"
565
+ #: name="_mtphr_dnt_shuffle" value="1" '.checked('1', $values['shuffle'],
566
+ #: false).' /> '.__('Randomly shuffle the ticks',
567
+ #: 'ditty-news-ticker').'</label>'; '</td>';
568
+ msgctxt "f42eb814057c15273c703db83f92e3e4"
569
+ msgid "Randomly shuffle the ticks"
570
+ msgstr "הצג את המבזקים בסדר אקראי"
571
+
572
+ # wpml-name: de19e157ba76ebb447a7bca30696d372
573
+ #: echo '<label><input type="checkbox" name="_mtphr_dnt_title" value="1"
574
+ #: '.checked('1', $values['title'], false).' /> '.__('Display title',
575
+ #: 'ditty-news-ticker').'</label>'; name="_mtphr_dnt_inline_title"
576
+ #: $values['inline_title'], '.__('Inline '</td>';
577
+ msgctxt "c41c42b9cae04250b5f97726fdf5b892"
578
+ msgid "Inline title"
579
+ msgstr "כותרת בתוך השורה"
580
+
581
+ # wpml-name: 9e3b95d7c76b34fc36feceba25606caf
582
+ #: echo '<td class="mtphr-dnt-no-label">'; '<label><input type="checkbox"
583
+ #: name="_mtphr_dnt_title" value="1" '.checked('1', $values['title'], false).'
584
+ #: /> '.__('Display title', 'ditty-news-ticker').'</label>';
585
+ #: name="_mtphr_dnt_inline_title" $values['inline_title'], '.__('Inline
586
+ msgctxt "64c97977ea5b505cbf90a6473b004e2f"
587
+ msgid "Display title"
588
+ msgstr "כותרת"
589
+
590
+ # wpml-name: 6144709c1f98946dbd881cab8edce9ee
591
+ #: echo '<label style="margin-right:10px;"><input type="text"
592
+ #: name="_mtphr_dnt_list_tick_prev_text" value="'.$values['prev_text'].'"
593
+ #: size="20" placeholder="'.__('Previous text', 'ditty-news-ticker').'"
594
+ #: /></label>'; '<label><input name="_mtphr_dnt_list_tick_next_text"
595
+ #: value="'.$values['next_text'].'" placeholder="'.__('Next '</td>';
596
+ msgctxt "30bbd5a6296675cde23900b0b7125523"
597
+ msgid "Next text"
598
+ msgstr "טקסט הבא"
599
+
600
+ # wpml-name: c8b4f14b2d395a45f667b1ae5bdc4e21
601
+ #: echo '<br/>'; '<label style="margin-right:10px;"><input type="text"
602
+ #: name="_mtphr_dnt_list_tick_prev_text" value="'.$values['prev_text'].'"
603
+ #: size="20" placeholder="'.__('Previous text', 'ditty-news-ticker').'"
604
+ #: /></label>'; '<label><input name="_mtphr_dnt_list_tick_next_text"
605
+ #: value="'.$values['next_text'].'" placeholder="'.__('Next
606
+ msgctxt "b0ae4fb0a447b64d9ff4dd51d42c29be"
607
+ msgid "Previous text"
608
+ msgstr "טקסט הקודם"
609
+
610
+ # wpml-name: 5aca586666727dced743c3cf3b383b1b
611
+ #: echo '<br/>'; '<label><input type="checkbox"
612
+ #: name="_mtphr_dnt_list_tick_prev_next" value="1" '.checked('1',
613
+ #: $values['prev_next'], false).' /> '.__('Enable previous & next links',
614
+ #: 'ditty-news-ticker').'</label>';
615
+ msgctxt "04d1ba8ad124aca1925b270c0d19f06e"
616
+ msgid "Enable previous & next links"
617
+ msgstr "הפעל קישורי הבקודם והבא"
618
+
619
+ # wpml-name: 21628a5791d8685b772d2fec8d2f7844
620
+ #: echo '<label><input type="checkbox" name="_mtphr_dnt_list_tick_paging"
621
+ #: value="1" '.checked('1', $values['paging'], false).' /> '.__('Enable',
622
+ #: 'ditty-news-ticker').'</label>'; type="number"
623
+ #: name="_mtphr_dnt_list_tick_count" value="'.$values['count'].'" '.__('Ticks
624
+ #: per page', '<br/>';
625
+ msgctxt "11ae8e16883695eaf77b15474c7befc8"
626
+ msgid "Ticks per page"
627
+ msgstr "מבזקים לעמוד"
628
+
629
+ # wpml-name: aacd8285e193a67242c0e849f5833b23
630
+ #: echo '<label>'.__('List paging', 'ditty-news-ticker').'</label>';
631
+ #: '<small>'.__('Break the list up into pages',
632
+ #: 'ditty-news-ticker').'</small>'; '</td>';
633
+ msgctxt "f2ba9497567735d62d316fb54de610e8"
634
+ msgid "Break the list up into pages"
635
+ msgstr "חלק את הרשימה לעמודים"
636
+
637
+ # wpml-name: 3c644fc0dc28f9dd627c05d93d3d9a8b
638
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('List paging',
639
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Break the list up into
640
+ #: pages', 'ditty-news-ticker').'</small>';
641
+ msgctxt "d5ed130cb092d9a6e2ce3c6dae3eadd6"
642
+ msgid "List paging"
643
+ msgstr "עימוד רשימה"
644
+
645
+ # wpml-name: e5a07e93e6100972be30ee79420843d1
646
+ #: echo '<label>'.__('Tick spacing', 'ditty-news-ticker').'</label>';
647
+ #: '<small>'.__('Set the spacing between ticks',
648
+ #: 'ditty-news-ticker').'</small>'; '</td>';
649
+ msgctxt "737e5f72b4c8365d4d44cc6aa604504b"
650
+ msgid "Set the spacing between ticks"
651
+ msgstr "קבע את המרווח בין מבזקים"
652
+
653
+ # wpml-name: ed498f5d21ac310b3ea1296a65d3fbf0
654
+ #: echo '<label>'.__('List padding', 'ditty-news-ticker').'</label>';
655
+ #: '<small>'.__('Set the vertical spacing of list container',
656
+ #: 'ditty-news-ticker').'</small>'; '</td>';
657
+ msgctxt "aefdb3bc7b416428073581b33d98e6a8"
658
+ msgid "Set the vertical spacing of the list container"
659
+ msgstr "קבע את המרווח האנכי של מיכל הרשימה"
660
+
661
+ # wpml-name: 9f5bc616d62b846455449094fde6c730
662
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('List padding',
663
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the vertical spacing of
664
+ #: list container', 'ditty-news-ticker').'</small>';
665
+ msgctxt "588d07209951b1444cd66d1ca7f549c4"
666
+ msgid "List padding"
667
+ msgstr "מרווח רשימה"
668
+
669
+ # wpml-name: bf639c78fe7bdf0aa807cd80dde9e0d5
670
+ #: $prev_text = ( isset($_POST['_mtphr_dnt_list_tick_prev_text']) &&
671
+ #: $_POST['_mtphr_dnt_list_tick_prev_text'] != '' ) ?
672
+ #: sanitize_text_field($_POST['_mtphr_dnt_list_tick_prev_text']) : __('«
673
+ #: Previous', 'ditty-news-ticker'); $next_text
674
+ #: isset($_POST['_mtphr_dnt_list_tick_next_text'])
675
+ #: $_POST['_mtphr_dnt_list_tick_next_text']
676
+ #: sanitize_text_field($_POST['_mtphr_dnt_list_tick_next_text']) __('Next »',
677
+ msgctxt "042fd3e3058a5502b428aafa22d63943"
678
+ msgid "Next »"
679
+ msgstr "הבא«"
680
+
681
+ # wpml-name: b83d30928c513fe0470bcd3db5e2ecc4
682
+ #: $prev_next = isset($_POST['_mtphr_dnt_list_tick_prev_next']) ?
683
+ #: $_POST['_mtphr_dnt_list_tick_prev_next'] : ''; $prev_text (
684
+ #: isset($_POST['_mtphr_dnt_list_tick_prev_text']) &&
685
+ #: $_POST['_mtphr_dnt_list_tick_prev_text'] != '' )
686
+ #: sanitize_text_field($_POST['_mtphr_dnt_list_tick_prev_text']) __('«
687
+ #: Previous', 'ditty-news-ticker'); $next_text
688
+ #: isset($_POST['_mtphr_dnt_list_tick_next_text'])
689
+ #: $_POST['_mtphr_dnt_list_tick_next_text']
690
+ #: sanitize_text_field($_POST['_mtphr_dnt_list_tick_next_text']) __('Next »',
691
+ msgctxt "57228f89b242f3f25507bd5f44f756ed"
692
+ msgid "« Previous"
693
+ msgstr " »הקודם"
694
+
695
+ # wpml-name: 5b3ec15499a125805b5bbf8e4afcec8c
696
+ #: echo '<label><input type="radio" name="_mtphr_dnt_rotate_control_nav_type"
697
+ #: value="number" '.checked('number', $values['control_nav_type'], false).' />
698
+ #: '.__('Numbers', 'ditty-news-ticker').'</label>'; value="button"
699
+ #: '.checked('button', '.__('Buttons', '</td>';
700
+ msgctxt "a44e4b8e919d0ad4f5dfa222ad8bcfd8"
701
+ msgid "Buttons"
702
+ msgstr "כפתורים"
703
+
704
+ # wpml-name: cbebfa21dbe8e87e788d94a76f073807
705
+ #: echo '<label style="margin-right:20px;"><input type="checkbox"
706
+ #: name="_mtphr_dnt_rotate_control_nav" value="1" '.checked('1',
707
+ #: $values['control_nav'], false).' /> '.__('Enable',
708
+ #: 'ditty-news-ticker').'</label>'; '<label><input type="radio"
709
+ #: name="_mtphr_dnt_rotate_control_nav_type" value="number"
710
+ #: '.checked('number', $values['control_nav_type'], '.__('Numbers',
711
+ #: value="button" '.checked('button', '.__('Buttons',
712
+ msgctxt "2cbe2c61aeb97a90704c066c7f3cdb29"
713
+ msgid "Numbers"
714
+ msgstr "מספרים"
715
+
716
+ # wpml-name: 9db5c4617a6431172d0182a539e7e52f
717
+ #: echo '<label>'.__('Control navigation', 'ditty-news-ticker').'</label>';
718
+ #: '<small>'.__('Set the control navigation options',
719
+ #: 'ditty-news-ticker').'</small>'; '</td>';
720
+ msgctxt "62f3c62ac50f387a014d47ac56f036c5"
721
+ msgid "Set the control navigation options"
722
+ msgstr "קבע את אפשרויות הניווט"
723
+
724
+ # wpml-name: ad3d2aae5a1cc433e85ee113005c0ad3
725
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Control navigation',
726
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the control navigation
727
+ #: options', 'ditty-news-ticker').'</small>';
728
+ msgctxt "96cbf98a514c68d84f297ddd1b0dad6a"
729
+ msgid "Control navigation"
730
+ msgstr "ניווט בקרה"
731
+
732
+ # wpml-name: 77dee8369d7a9976d844971fe8e45fb8
733
+ #: echo '<label style="margin-right:20px;"><input type="checkbox"
734
+ #: name="_mtphr_dnt_rotate_directional_nav" value="1" '.checked('1',
735
+ #: $values['directional_nav'], false).' /> '.__('Enable',
736
+ #: 'ditty-news-ticker').'</label>'; '<label><input
737
+ #: name="_mtphr_dnt_rotate_directional_nav_hide"
738
+ #: $values['directional_nav_hide'], '.__('Autohide navigation', '</td>';
739
+ msgctxt "eb6c20d8287657a75d3186cbb3e35f3d"
740
+ msgid "Autohide navigation"
741
+ msgstr "הסתרה אוטומטית של ניווט"
742
+
743
+ # wpml-name: 65cfbb5f9a88d7653880516ed1d69f63
744
+ #: echo '<label>'.__('Directional navigation',
745
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the directional
746
+ #: navigation options', 'ditty-news-ticker').'</small>'; '</td>';
747
+ msgctxt "d9cbe241d7456b12b24e810ba0f7f191"
748
+ msgid "Set the directional navigation options"
749
+ msgstr "קבע את אפשרויות ניווט הכיוון"
750
+
751
+ # wpml-name: 4115c5b7a60eb3318888f019863e99f2
752
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Directional navigation',
753
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the directional
754
+ #: navigation options', 'ditty-news-ticker').'</small>';
755
+ msgctxt "e74f7ca134944a19d59d08783585a8de"
756
+ msgid "Directional navigation"
757
+ msgstr "ניווט הכיוון"
758
+
759
+ # wpml-name: afc6239d2ac3f6dbfd78067859832ae8
760
+ #: echo '<td>'; '<label><input type="number" name="_mtphr_dnt_rotate_speed"
761
+ #: value="'.$values['speed'].'" /> '.__('Tenths of a second',
762
+ #: 'ditty-news-ticker').'</label>'; '<label><select
763
+ #: name="_mtphr_dnt_rotate_ease">';
764
+ msgctxt "d438e4c35fa1addea9cc5f329fb46ac5"
765
+ msgid "Tenths of a second"
766
+ msgstr "עשיריות שניה"
767
+
768
+ # wpml-name: 768f5f6891e4d0260c589cec70703a6f
769
+ #: echo '<label>'.__('Rotate speed', 'ditty-news-ticker').'</label>';
770
+ #: '<small>'.__('Set the speed & easing of rotation',
771
+ #: 'ditty-news-ticker').'</small>'; '</td>';
772
+ msgctxt "e2729ca6761624b9f4ad2ae1fa45d849"
773
+ msgid "Set the speed & easing of the rotation"
774
+ msgstr "קבע את המהירות וההחלקה של המבזקים המתחלפים"
775
+
776
+ # wpml-name: 9ce99ea22ea6f2e5504eaab5aa900585
777
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Rotate speed',
778
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the speed & easing of
779
+ #: rotation', 'ditty-news-ticker').'</small>';
780
+ msgctxt "fec841c219252d992ee7a13012054de4"
781
+ msgid "Rotate speed"
782
+ msgstr "מהירות סבב"
783
+
784
+ # wpml-name: aa208adcbdc5754edf4c88bf63bfde12
785
+ #: echo '<label style="margin-right:20px;"><input type="checkbox"
786
+ #: name="_mtphr_dnt_auto_rotate" value="1" '.checked('1', $values['auto'],
787
+ #: false).' /> '.__('Enable', 'ditty-news-ticker').'</label>'; type="number"
788
+ #: name="_mtphr_dnt_rotate_delay" value="'.$values['delay'].'" '.__('Seconds
789
+ #: delay', '<label><input name="_mtphr_dnt_rotate_pause" $values['pause'],
790
+ #: '.__('Pause on mouse over',
791
+ msgctxt "2924a4377311171c852dfaf60d2fd79c"
792
+ msgid "Seconds delay"
793
+ msgstr "השהיה בשניות"
794
+
795
+ # wpml-name: 2faec1f9f8cc7f8f40d521c4dd574f49
796
+ #: echo '<td>'; '<label><input type="checkbox"
797
+ #: name="_mtphr_dnt_list_tick_paging" value="1" '.checked('1',
798
+ #: $values['paging'], false).' /> '.__('Enable',
799
+ #: 'ditty-news-ticker').'</label>'; type="number"
800
+ #: name="_mtphr_dnt_list_tick_count" value="'.$values['count'].'" '.__('Ticks
801
+ #: per page',
802
+ msgctxt "5a2aca9b112fc1e7915adb7fbc92f74d"
803
+ msgid "Enable"
804
+ msgstr "פעיל"
805
+
806
+ # wpml-name: 6d513ddc911edace7a1db3e582c48880
807
+ #: echo '<label>'.__('Auto rotate', 'ditty-news-ticker').'</label>';
808
+ #: '<small>'.__('Set the delay between rotations',
809
+ #: 'ditty-news-ticker').'</small>'; '</td>';
810
+ msgctxt "c9aea1b42954500b4d14b785210169a2"
811
+ msgid "Set the delay between rotations"
812
+ msgstr "קבע את משך ההמתנה בין החלפה"
813
+
814
+ # wpml-name: e213b9a1a3bb97207c8b629519e054e1
815
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Auto rotate',
816
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the delay between
817
+ #: rotations', 'ditty-news-ticker').'</small>';
818
+ msgctxt "8ff853dd7d0ebce69e4698fc7d4b7acf"
819
+ msgid "Auto rotate"
820
+ msgstr "סבב אוטומטי"
821
+
822
+ # wpml-name: 84474266ba09fd8eeb912063ae0876d4
823
+ #: echo '<label>'.__('Rotator padding', 'ditty-news-ticker').'</label>';
824
+ #: '<small>'.__('Set the vertical spacing of rotating data',
825
+ #: 'ditty-news-ticker').'</small>'; '</td>';
826
+ msgctxt "9d07be7863235bed2b53fa7502c1b1f5"
827
+ msgid "Set the vertical spacing of the rotating data"
828
+ msgstr "קבע את המרווח של המבזקים המתחלפים"
829
+
830
+ # wpml-name: ee0fa9f8c030b0843b64b60af7655e83
831
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Rotator padding',
832
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the vertical spacing of
833
+ #: rotating data', 'ditty-news-ticker').'</small>';
834
+ msgctxt "8b70ff7e0760c97250eacf6f9a71a20e"
835
+ msgid "Rotator padding"
836
+ msgstr "מרווח המסובב"
837
+
838
+ # wpml-name: 946370b4eef2570efaf0ac36f9c93db4
839
+ #: echo '<label style="margin-right:20px;"><input type="radio"
840
+ #: name="_mtphr_dnt_rotate_type" value="slide_down" '.checked('slide_down',
841
+ #: $values['type'], false).' /> '.__('Slide down',
842
+ #: 'ditty-news-ticker').'</label>'; '<label><input type="checkbox"
843
+ #: name="_mtphr_dnt_rotate_directional_nav_reverse" value="1" '.checked('1',
844
+ #: $values['reverse'], '.__('Dynamic slide direction', '</td>';
845
+ msgctxt "5de9b90867f3dfef9e78205d781001b5"
846
+ msgid "Dynamic slide direction"
847
+ msgstr "כיוון דינמי"
848
+
849
+ # wpml-name: 265eea5b45c01587fca2ac8d73cf7d91
850
+ #: echo '<label><input type="radio" name="_mtphr_dnt_rotate_type"
851
+ #: value="slide_up" '.checked('slide_up', $values['type'], false).' />
852
+ #: '.__('Slide up', 'ditty-news-ticker').'</label>'; '<label
853
+ #: style="margin-right:20px;"><input value="slide_down"
854
+ #: '.checked('slide_down', down', type="checkbox"
855
+ #: name="_mtphr_dnt_rotate_directional_nav_reverse" value="1" '.checked('1',
856
+ #: $values['reverse'], '.__('Dynamic slide direction',
857
+ msgctxt "3d7e89523d76c7553c3b017ba99eab5a"
858
+ msgid "Slide down"
859
+ msgstr "החלקה למטה"
860
+
861
+ # wpml-name: c2e43be38273b6fe2c77b6f03ca4085f
862
+ #: echo '<label><input type="radio" name="_mtphr_dnt_rotate_type"
863
+ #: value="slide_right" '.checked('slide_right', $values['type'], false).' />
864
+ #: '.__('Slide right', 'ditty-news-ticker').'</label>'; value="slide_up"
865
+ #: '.checked('slide_up', up', '<label style="margin-right:20px;"><input
866
+ #: value="slide_down" '.checked('slide_down', down',
867
+ msgctxt "6d57676621a298b7e8d14fc9fc5efe1b"
868
+ msgid "Slide up"
869
+ msgstr "החלקה למעלה"
870
+
871
+ # wpml-name: 0eca8e70723d9531acc62fa1c77394d0
872
+ #: echo '<label><input type="radio" name="_mtphr_dnt_rotate_type"
873
+ #: value="slide_left" '.checked('slide_left', $values['type'], false).' />
874
+ #: '.__('Slide left', 'ditty-news-ticker').'</label>'; value="slide_right"
875
+ #: '.checked('slide_right', right', value="slide_up" '.checked('slide_up',
876
+ #: up',
877
+ msgctxt "604e4e1b86f3e6ec4faaf620e7749cb1"
878
+ msgid "Slide right"
879
+ msgstr "החלקה ימינה"
880
+
881
+ # wpml-name: 25179616790ddaeb1c77e067e305078a
882
+ #: echo '<label><input type="radio" name="_mtphr_dnt_rotate_type" value="fade"
883
+ #: '.checked('fade', $values['type'], false).' /> '.__('Fade',
884
+ #: 'ditty-news-ticker').'</label>'; value="slide_left" '.checked('slide_left',
885
+ #: '.__('Slide left', value="slide_right" '.checked('slide_right', right',
886
+ msgctxt "7e61d49dcc83a02caa4fa8888a1eb2ff"
887
+ msgid "Slide left"
888
+ msgstr "החלקה שמאלה"
889
+
890
+ # wpml-name: 04e0385c10aefee8e4681617d2f3ef40
891
+ #: echo '<td>'; '<label><input type="radio" name="_mtphr_dnt_rotate_type"
892
+ #: value="fade" '.checked('fade', $values['type'], false).' /> '.__('Fade',
893
+ #: 'ditty-news-ticker').'</label>'; value="slide_left" '.checked('slide_left',
894
+ #: '.__('Slide left',
895
+ msgctxt "606e4d35a94da83a1af5c1d025f269c4"
896
+ msgid "Fade"
897
+ msgstr "עמעום"
898
+
899
+ # wpml-name: 0874ef7b6e515cb8eb44fb3a21ac2b17
900
+ #: echo '<label>'.__('Rotation type', 'ditty-news-ticker').'</label>';
901
+ #: '<small>'.__('Set the type of rotation for ticker',
902
+ #: 'ditty-news-ticker').'</small>'; '</td>';
903
+ msgctxt "01539b5f4a322c945aa6834e302864b0"
904
+ msgid "Set the type of rotation for the ticker"
905
+ msgstr "קבע את סוג ההחלפה של המבזקון"
906
+
907
+ # wpml-name: 9bf6bb8c9437d30e228825ae8efe572f
908
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Rotation type',
909
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the type of rotation for
910
+ #: ticker', 'ditty-news-ticker').'</small>';
911
+ msgctxt "b34e6a628799b9f4c654830e0f970c76"
912
+ msgid "Rotation type"
913
+ msgstr "סוג סבב"
914
+
915
+ # wpml-name: c3d2f5d37334dc978fd8b17fc77408a1
916
+ #: echo '<td>'; '<label><input type="number"
917
+ #: name="_mtphr_dnt_list_tick_spacing" value="'.$values['spacing'].'" />
918
+ #: '.__('Pixels', 'ditty-news-ticker').'</label>'; '</td>';
919
+ msgctxt "df5c0067894609d8d695e10484405cbb"
920
+ msgid "Pixels"
921
+ msgstr "פיקסל"
922
+
923
+ # wpml-name: 87d5aa46ef684d8bd9669b5df78107f3
924
+ #: echo '<label>'.__('Tick spacing', 'ditty-news-ticker').'</label>';
925
+ #: '<small>'.__('Set the spacing between scrolling data',
926
+ #: 'ditty-news-ticker').'</small>'; '</td>';
927
+ msgctxt "dedbc74dd17820f59494b1977d7a5511"
928
+ msgid "Set the spacing between scrolling data"
929
+ msgstr "קבע את במרווח בין מבזקים בגלילה"
930
+
931
+ # wpml-name: 7f1ff000926a5953db223a5c670abc41
932
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Tick spacing',
933
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the spacing between
934
+ #: ticks', 'ditty-news-ticker').'</small>';
935
+ msgctxt "4035e6ff47c7cb1010c41ee8575f2f3e"
936
+ msgid "Tick spacing"
937
+ msgstr "מרווח מבזק"
938
+
939
+ # wpml-name: 70eb1ecd9b4dff7efac21c0a725129be
940
+ #: echo '<label style="margin-right:20px;"><input type="number"
941
+ #: name="_mtphr_dnt_rotate_delay" value="'.$values['delay'].'" />
942
+ #: '.__('Seconds delay', 'ditty-news-ticker').'</label>'; '<label><input
943
+ #: type="checkbox" name="_mtphr_dnt_rotate_pause" value="1" '.checked('1',
944
+ #: $values['pause'], false).' '.__('Pause on mouse over', '</td>';
945
+ msgctxt "530215c270c6baabf8cce159327cca37"
946
+ msgid "Pause on mouse over"
947
+ msgstr "עצור כאשר העכבר מרחף מעל"
948
+
949
+ # wpml-name: 1c897c17ef94688cb5c1e258acaefcaf
950
+ #: echo '<label>'.__('Scroll speed', 'ditty-news-ticker').'</label>';
951
+ #: '<small>'.__('Set the speed of scrolling data',
952
+ #: 'ditty-news-ticker').'</small>'; '</td>';
953
+ msgctxt "f42b063c5c5d20915ea828b1906e6027"
954
+ msgid "Set the speed of the scrolling data"
955
+ msgstr "קבע את המהירות של הגלילה"
956
+
957
+ # wpml-name: dea4ef30c64c01df03392c38c634a2df
958
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Scroll speed',
959
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the speed of scrolling
960
+ #: data', 'ditty-news-ticker').'</small>';
961
+ msgctxt "288806ab6717ef01017b88478ff16ddf"
962
+ msgid "Scroll speed"
963
+ msgstr "מהירות גלילה"
964
+
965
+ # wpml-name: edb3c436541e2c764e3efad8c6996f34
966
+ #: echo '<label>'.__('Vertical padding', 'ditty-news-ticker').' <input
967
+ #: type="number" name="_mtphr_dnt_list_padding" value="'.$values['padding'].'"
968
+ #: /></label>'; margin', name="_mtphr_dnt_list_margin"
969
+ #: value="'.$values['margin'].'" '</td>';
970
+ msgctxt "64e174d7e569ef958ace8d2f3b7ad432"
971
+ msgid "Vertical margin"
972
+ msgstr "שוליים אנכיים"
973
+
974
+ # wpml-name: b73098d3907eb6f8d67d3f031da6e374
975
+ #: echo '<td>'; '<label>'.__('Vertical padding', 'ditty-news-ticker').' <input
976
+ #: type="number" name="_mtphr_dnt_list_padding" value="'.$values['padding'].'"
977
+ #: /></label>'; margin', name="_mtphr_dnt_list_margin"
978
+ #: value="'.$values['margin'].'"
979
+ msgctxt "3f345d11f6248c9ede572a7a927b51cc"
980
+ msgid "Vertical padding"
981
+ msgstr "מרווח אנכי"
982
+
983
+ # wpml-name: 8a9d2d30e3f28babc280ab44a3293ff7
984
+ #: echo '<label>'.__('Scroller padding', 'ditty-news-ticker').'</label>';
985
+ #: '<small>'.__('Set the vertical spacing of scrolling data',
986
+ #: 'ditty-news-ticker').'</small>'; '</td>';
987
+ msgctxt "8e6d2e0af5637f576c292ea5c1e5ddc4"
988
+ msgid "Set the vertical spacing of the scrolling data"
989
+ msgstr "קבע מרווח אנכי בגלילה"
990
+
991
+ # wpml-name: 81900d42bcd6ddadca90a4e060b3573e
992
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Scroller padding',
993
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the vertical spacing of
994
+ #: scrolling data', 'ditty-news-ticker').'</small>';
995
+ msgctxt "de3bb8b4846cb53ca41abced79cb691f"
996
+ msgid "Scroller padding"
997
+ msgstr "מרווח גלילה"
998
+
999
+ # wpml-name: eec6c4bdbd339edf8cbea68becb85244
1000
+ #: echo '<td>'; '<label>'.__('Height', 'ditty-news-ticker').' <input
1001
+ #: type="number" name="_mtphr_dnt_rotate_height" value="'.$values['height'].'"
1002
+ #: /></label>'; '</td>';
1003
+ msgctxt "b9ef1e3010bacb42d141859f053e9409"
1004
+ msgid "Height"
1005
+ msgstr "גובה"
1006
+
1007
+ # wpml-name: 32954654ac8fe66a1d09be19001de2d4
1008
+ #: echo '<td>'; '<label>'.__('Width', 'ditty-news-ticker').' <input
1009
+ #: type="number" name="_mtphr_dnt_scroll_width" value="'.$values['width'].'"
1010
+ #: /></label>'; '<label>'.__('Height', name="_mtphr_dnt_scroll_height"
1011
+ #: value="'.$values['height'].'"
1012
+ msgctxt "8e069dc0354a8c05106e3934ef5c8367"
1013
+ msgid "Width"
1014
+ msgstr "רוחב"
1015
+
1016
+ # wpml-name: a17d92a2dc34b681093d3cb03fbda02a
1017
+ #: echo '<label>'.__('Tick dimensions', 'ditty-news-ticker').'</label>';
1018
+ #: '<small>'.__('Override the auto dimensions with specific values',
1019
+ #: 'ditty-news-ticker').'</small>'; '</td>';
1020
+ msgctxt "9bfd0db98b3ee0a694a9fac3601bbe47"
1021
+ msgid "Override the auto dimensions with specific values"
1022
+ msgstr "דרוס את המידות האוטומטיות עם ערכים ספציפיים"
1023
+
1024
+ # wpml-name: e794876156eb91c5bbee49f9b061b3af
1025
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Tick dimensions',
1026
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Override the auto dimensions
1027
+ #: with specific values', 'ditty-news-ticker').'</small>';
1028
+ msgctxt "fe5b5794542d65221faf34302eabd8b8"
1029
+ msgid "Tick dimensions"
1030
+ msgstr "מידות המבזק"
1031
+
1032
+ # wpml-name: c009b34db7462f5bb4430d1c63bee1fd
1033
+ #: echo '<label style="margin-right:20px;"><input type="radio"
1034
+ #: name="_mtphr_dnt_scroll_direction" value="down" '.checked('down',
1035
+ #: $values['direction'], false).' /> '.__('Down',
1036
+ #: 'ditty-news-ticker').'</label>'; '<label><input type="checkbox"
1037
+ #: name="_mtphr_dnt_scroll_init" value="1" '.checked('1', $values['init'],
1038
+ #: '.__('Show first tick on init', '</td>';
1039
+ msgctxt "35fae503e2cffde8c253fa35bce6e9d1"
1040
+ msgid "Show first tick on init"
1041
+ msgstr "הצג מבזק ראשון תחילה"
1042
+
1043
+ # wpml-name: 08a38277b0309070706f6652eeae9a53
1044
+ #: echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction"
1045
+ #: value="up" '.checked('up', $values['direction'], false).' /> '.__('Up',
1046
+ #: 'ditty-news-ticker').'</label>'; '<label style="margin-right:20px;"><input
1047
+ #: value="down" '.checked('down', '.__('Down', type="checkbox"
1048
+ #: name="_mtphr_dnt_scroll_init" value="1" '.checked('1', $values['init'],
1049
+ #: '.__('Show first tick on init',
1050
+ msgctxt "40a482ddc2d497c4414454d9b57280cd"
1051
+ msgid "Down"
1052
+ msgstr "למטה"
1053
+
1054
+ # wpml-name: 258f49887ef8d14ac268c92b02503aaa
1055
+ #: echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction"
1056
+ #: value="right" '.checked('right', $values['direction'], false).' />
1057
+ #: '.__('Right', 'ditty-news-ticker').'</label>'; value="up" '.checked('up',
1058
+ #: '.__('Up', '<label style="margin-right:20px;"><input value="down"
1059
+ #: '.checked('down', '.__('Down',
1060
+ msgctxt "d04047557f23360f1e9a109ca9f624d9"
1061
+ msgid "Up"
1062
+ msgstr "למעלה"
1063
+
1064
+ # wpml-name: 92b09c7c48c520c3c55e497875da437c
1065
+ #: echo '<label><input type="radio" name="_mtphr_dnt_scroll_direction"
1066
+ #: value="left" '.checked('left', $values['direction'], false).' />
1067
+ #: '.__('Left', 'ditty-news-ticker').'</label>'; value="right"
1068
+ #: '.checked('right', '.__('Right', value="up" '.checked('up', '.__('Up',
1069
+ msgctxt "38ee5bddb2cc647c818d8f9cac61d444"
1070
+ msgid "Right"
1071
+ msgstr "ימינה"
1072
+
1073
+ # wpml-name: 945d5e233cf7d6240f6b783b36a374ff
1074
+ #: echo '<td>'; '<label><input type="radio" name="_mtphr_dnt_scroll_direction"
1075
+ #: value="left" '.checked('left', $values['direction'], false).' />
1076
+ #: '.__('Left', 'ditty-news-ticker').'</label>'; value="right"
1077
+ #: '.checked('right', '.__('Right',
1078
+ msgctxt "e01dd91f9d74a4cc8c4d6ce38354eec8"
1079
+ msgid "Left"
1080
+ msgstr "שמאלה"
1081
+
1082
+ # wpml-name: e480e3a4b1cff54aceb5e892d22c015d
1083
+ #: echo '<label>'.__('Scroll direction', 'ditty-news-ticker').'</label>';
1084
+ #: '<small>'.__('Set the scroll direction of ticker',
1085
+ #: 'ditty-news-ticker').'</small>'; '</td>';
1086
+ msgctxt "8c51c85854d9b87f524b82d96193e7ac"
1087
+ msgid "Set the scroll direction of the ticker"
1088
+ msgstr "קבע את כיוון הגלילה של המבזקון"
1089
+
1090
+ # wpml-name: 6938bd305d176b83d42364c13cd131d5
1091
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Scroll direction',
1092
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Set the scroll direction of
1093
+ #: ticker', 'ditty-news-ticker').'</small>';
1094
+ msgctxt "a639d17b9cf58f5820675f261148882a"
1095
+ msgid "Scroll direction"
1096
+ msgstr "כיוון הגלילה"
1097
+
1098
+ # wpml-name: e97b5e93e2dcae63fa85ac351f387d1c
1099
+ #: echo '<label>'.__(', or choose <strong>offset</strong>:',
1100
+ #: 'ditty-news-ticker').' '; '<input type="number"
1101
+ #: name="_mtphr_dnt_mixed_ticks[offset]" data-name="_mtphr_dnt_mixed_ticks"
1102
+ #: data-key="offset" value="'.$tick_offset.'" />';
1103
+ msgctxt "58ada22e49c412b85c4d4f4828453cda"
1104
+ msgid ", or choose <strong>offset</strong>:"
1105
+ msgstr ", או שתבחר <strong>קיזוז</strong>:"
1106
+
1107
+ # wpml-name: 154cbe2e5277a7cdb96389c50bcff0c8
1108
+ #: echo '<td>'; '<label>'.__('Display <strong>all</strong> ticks:',
1109
+ #: 'ditty-news-ticker').' '; '<input type="checkbox"
1110
+ #: name="_mtphr_dnt_mixed_ticks[all]" data-name="_mtphr_dnt_mixed_ticks"
1111
+ #: data-key="all" value="on" '.checked('on', $tick_all, false).' />';
1112
+ msgctxt "9b6207df33a02eb79a9931ff7ef09316"
1113
+ msgid "Display <strong>all</strong> ticks:"
1114
+ msgstr "הצג <strong>הכל</strong> ticks:"
1115
+
1116
+ # wpml-name: ab97a78cdfd98ee0d71b5845fb4c8711
1117
+ #: echo '<select name="_mtphr_dnt_mixed_ticks[type]"
1118
+ #: data-name="_mtphr_dnt_mixed_ticks" data-key="type">'; '<option value="">--
1119
+ #: '.__('Select Tick Type', 'ditty-news-ticker').' --</option>'; foreach(
1120
+ #: $types as $i=>$type ) {
1121
+ msgctxt "f28c76b2fe0c46c1f36da5acf9bc9ea4"
1122
+ msgid "Select Tick Type"
1123
+ msgstr "בחר את סוג המבזק"
1124
+
1125
+ # wpml-name: e659b52eba1f0299b2d8ca3483919e72
1126
+ #: echo '<td class="mtphr-dnt-mixed-type">'; '<label
1127
+ #: style="margin-right:10px;">'.__('Type:', 'ditty-news-ticker').' '; '<select
1128
+ #: name="_mtphr_dnt_mixed_ticks[type]" data-name="_mtphr_dnt_mixed_ticks"
1129
+ #: data-key="type">';
1130
+ msgctxt "4e4b360dfcb264f63a69d9f46f59ae7c"
1131
+ msgid "Type:"
1132
+ msgstr "סוג:"
1133
+
1134
+ # wpml-name: f9983e1d5bc956b41c0279f185321b8c
1135
+ #: echo '<label>'.__('Tick selection', 'ditty-news-ticker').'</label>';
1136
+ #: '<small>'.__('Select the ticks you would like to display by choosing tick
1137
+ #: type and offset position of selected feed',
1138
+ #: 'ditty-news-ticker').'</small>'; '</td>';
1139
+ msgctxt "9b4d7d5f2f803273d44ad307edc8079f"
1140
+ msgid "Select the ticks you would like to display by choosing the tick type and the offset position of the selected feed"
1141
+ msgstr "בחר את המבזקים שתרצה להציג על-ידי בחירת סוג המבזק ומיקום הקיזוז של ההזנה הנבחרת"
1142
+
1143
+ # wpml-name: ea426ef083b198b98b70da48e4d09b66
1144
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Tick selection',
1145
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Select the ticks you would
1146
+ #: like to display by choosing tick type and offset position of selected
1147
+ #: feed', 'ditty-news-ticker').'</small>';
1148
+ msgctxt "cb380cb5eba5d3b6bd2de709a78e218b"
1149
+ msgid "Tick selection"
1150
+ msgstr "בחירת מבזק"
1151
+
1152
+ # wpml-name: 227dc251e1411f6b6fffcd1c30486f4d
1153
+ #: echo '<th class="mtphr-dnt-default-target">'.__('Target',
1154
+ #: 'ditty-news-ticker').'</th>'; class="mtphr-dnt-default-nofollow">'.__('NF',
1155
+ #: class="mtphr-dnt-list-delete"></th>';
1156
+ msgctxt "93632a8ce8e8cc77e70284aac333eaaf"
1157
+ msgid "NF"
1158
+ msgstr "לא לעקוב"
1159
+
1160
+ # wpml-name: c41a31890959544c6523af684561abe5
1161
+ #: echo '<th>'.__('Link', 'ditty-news-ticker').'</th>'; '<th
1162
+ #: class="mtphr-dnt-default-target">'.__('Target',
1163
+ #: class="mtphr-dnt-default-nofollow">'.__('NF',
1164
+ msgctxt "2383fbe4b60023c00e0c345529634903"
1165
+ msgid "Target"
1166
+ msgstr "מטרה"
1167
+
1168
+ # wpml-name: 97e7c9a7d06eac006a28bf05467fcc8b
1169
+ #: echo '<th>'.$label.'</th>'; '<th>'.__('Link', 'ditty-news-ticker').'</th>';
1170
+ #: '<th class="mtphr-dnt-default-target">'.__('Target',
1171
+ msgctxt "a845195ce420d53763298ad53992c6a0"
1172
+ msgid "Link"
1173
+ msgstr "קישור"
1174
+
1175
+ # wpml-name: d9f72e11d3b156d80bf128a3650e81ba
1176
+ #: if( $settings['wysiwyg'] == '1' ) { $label .= '<div
1177
+ #: class="mtphr-dnt-notice">'.__('<strong>Notice:</strong> When using the
1178
+ #: WYSIWYG editor you must save your ticker after adding or re-arranging
1179
+ #: ticks.', 'ditty-news-ticker').'</div>'; }
1180
+ msgctxt "e49317dffda0b05c455809f05003dedd"
1181
+ msgid "<strong>Notice:</strong> When using the WYSIWYG editor you must save your ticker after adding or re-arranging ticks."
1182
+ msgstr "<strong>הערה:</strong> כאשר משתמשים בעורך הויזואלי חובה לשמור את המבזק לאחר הוספה או סידור מחדש של המבזקים."
1183
+
1184
+ # wpml-name: eb46881201f8c9735ba354240f59cb90
1185
+ #: $label = __('Ticker text', 'ditty-news-ticker'); if( $settings['wysiwyg']
1186
+ #: == '1' ) {
1187
+ msgctxt "3b24a9415ce18c28fbdadfa436038528"
1188
+ msgid "Ticker text"
1189
+ msgstr "טקסט המבזק"
1190
+
1191
+ # wpml-name: ac9582dd9c6ff35812239e26dda022d2
1192
+ #: echo '<label>'.__('Ticks', 'ditty-news-ticker').'</label>';
1193
+ #: '<small>'.__('Add an unlimited number of ticks to your ticker',
1194
+ #: 'ditty-news-ticker').'</small>'; '</td>';
1195
+ msgctxt "a9c8fc9f6f5b2a00bcf8fbc1c1cc72a5"
1196
+ msgid "Add an unlimited number of ticks to your ticker"
1197
+ msgstr "הוף מספר בלתי מוגבל של מבזקים למבזקון שלך"
1198
+
1199
+ # wpml-name: 7ad0bde3d601cd3c0eaa8eb5bf27cb1a
1200
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Ticks',
1201
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Add an unlimited number of
1202
+ #: ticks to your ticker', 'ditty-news-ticker').'</small>';
1203
+ msgctxt "089c6b4864e6c55dde4ba468e7aaf225"
1204
+ msgid "Ticks"
1205
+ msgstr "מבזקים"
1206
+
1207
+ # wpml-name: e40474df3a87bd43a32fde9b28c311e9
1208
+ #: echo '<td>'; '<label><input type="checkbox" name="_mtphr_dnt_line_breaks"
1209
+ #: value="1" '.checked('1', $line_breaks, false).' />'.__('Force line breaks',
1210
+ #: 'ditty-news-ticker').'</label>'; '</td>';
1211
+ msgctxt "ce95a3f2dd7b38433bdde4ae9b5334e0"
1212
+ msgid "Force line breaks"
1213
+ msgstr "כפה שבירת שורות"
1214
+
1215
+ # wpml-name: 2125ea12379521a369c59325a8e8fa03
1216
+ #: echo '<label>'.__('Line breaks', 'ditty-news-ticker').'</label>';
1217
+ #: '<small>'.__('Force line breaks on carriage returns',
1218
+ #: 'ditty-news-ticker').'</small>'; '</td>';
1219
+ msgctxt "e792b84c886893482f903e138e911efc"
1220
+ msgid "Force line breaks on carriage returns"
1221
+ msgstr "כפה שבירת שורות"
1222
+
1223
+ # wpml-name: ee4e8c96014380f63c11e3ee5394b3af
1224
+ #: echo '<td class="mtphr-dnt-label">'; '<label>'.__('Line breaks',
1225
+ #: 'ditty-news-ticker').'</label>'; '<small>'.__('Force line breaks on
1226
+ #: carriage returns', 'ditty-news-ticker').'</small>';
1227
+ msgctxt "47309e136202b42f8f4a0ed5ec5e27e4"
1228
+ msgid "Line breaks"
1229
+ msgstr "שבירת שורה"
1230
+
1231
+ # wpml-name: 9a51a007b33a46e553def6423aad8648
1232
+ #: add_meta_box( 'mtphr_dnt_global_settings_metabox', __('Global Settings',
1233
+ #: 'ditty-news-ticker'), 'mtphr_dnt_global_settings_render_metabox',
1234
+ #: 'ditty_news_ticker', 'side', 'default' ); }
1235
+ msgctxt "215a8aa89010d14a8cbbcb0cbdff40c4"
1236
+ msgid "Global Settings"
1237
+ msgstr "הגדרות כלליות"
1238
+
1239
+ # wpml-name: 96db63d23423db107e05dcea55f63bfe
1240
+ #: add_meta_box( 'mtphr_dnt_list_settings_metabox', __('List Settings',
1241
+ #: 'ditty-news-ticker'), 'mtphr_dnt_list_settings_render_metabox',
1242
+ #: 'ditty_news_ticker', 'normal', 'high' ); }
1243
+ msgctxt "0fb862253ea2df8f4851cf9cc39205ea"
1244
+ msgid "List Settings"
1245
+ msgstr "הגדרות רשימה"
1246
+
1247
+ # wpml-name: 3bed533fc661905d5169cd515e19f035
1248
+ #: add_meta_box( 'mtphr_dnt_rotate_settings_metabox', __('Rotate Settings',
1249
+ #: 'ditty-news-ticker'), 'mtphr_dnt_rotate_settings_render_metabox',
1250
+ #: 'ditty_news_ticker', 'normal', 'high' ); }
1251
+ msgctxt "f74d22794ce01f8cfc0376299c38fcf7"
1252
+ msgid "Rotate Settings"
1253
+ msgstr "הגדרות סבב"
1254
+
1255
+ # wpml-name: 9efe02e72f258fc798ac41a78bd328cb
1256
+ #: add_meta_box( 'mtphr_dnt_scroll_settings_metabox', __('Scroll Settings',
1257
+ #: 'ditty-news-ticker'), 'mtphr_dnt_scroll_settings_render_metabox',
1258
+ #: 'ditty_news_ticker', 'normal', 'high' ); }
1259
+ msgctxt "470ce5af58dbf9d7eeb8ffb574c4a92d"
1260
+ msgid "Scroll Settings"
1261
+ msgstr "הגדרות גלילה"
1262
+
1263
+ # wpml-name: f48be66231036d5a4f945e0a858c02c3
1264
+ #: add_meta_box( 'mtphr_dnt_mixed_metabox', __('Mixed Ticker Items',
1265
+ #: 'ditty-news-ticker'), 'mtphr_dnt_mixed_render_metabox',
1266
+ #: 'ditty_news_ticker', 'normal', 'high' ); }
1267
+ msgctxt "7cb45e10976f2187c5d7310972605cd7"
1268
+ msgid "Mixed Ticker Items"
1269
+ msgstr "פריטי מבזקון מעורב"
1270
+
1271
+ # wpml-name: 9ecbcbd35fd61e9a3d261b918e2bdcf6
1272
+ #: add_meta_box( 'mtphr_dnt_default_metabox', __('Default Ticker Items',
1273
+ #: 'ditty-news-ticker'), 'mtphr_dnt_default_render_metabox',
1274
+ #: 'ditty_news_ticker', 'normal', 'high' ); }
1275
+ msgctxt "7228c3b97a9b58abf021880f2037a71b"
1276
+ msgid "Default Ticker Items"
1277
+ msgstr "פריטי ברירת המחדל של המבזקון"
1278
+
1279
+ # wpml-name: 8f9e9bc01119cd39a66c92e42d06321d
1280
+ #: echo '<h2>'.__('Ticker Mode', 'ditty-news-ticker').'</h2>';
1281
+ #: '<p>'.__('Select the mode of ticker', 'ditty-news-ticker').'</p>'; '<div
1282
+ #: class="mtphr-dnt-metabox-toggle">';
1283
+ msgctxt "eef937b679c2fe832612afcf6456613c"
1284
+ msgid "Select the mode of the ticker"
1285
+ msgstr "בחר את מצב המבזקון"
1286
+
1287
+ # wpml-name: 2c52e5426e3416a17cf78bcb2eb8a83c
1288
+ #: echo '<div class="wrapper">'; '<h2>'.__('Ticker Mode',
1289
+ #: 'ditty-news-ticker').'</h2>'; '<p>'.__('Select the mode of ticker',
1290
+ #: 'ditty-news-ticker').'</p>';
1291
+ msgctxt "0262769c571022e9381c2feba2eb595a"
1292
+ msgid "Ticker Mode"
1293
+ msgstr "מצב המבזקון"
1294
+
1295
+ # wpml-name: b627e1db6fb4bdc5cf6fdb526753d6f7
1296
+ #: echo '<h2>'.__('Ticker Type', 'ditty-news-ticker').' <a
1297
+ #: href="http://dittynewsticker.com" target="_blank"><small>'.__('View all
1298
+ #: types', 'ditty-news-ticker').'</small></a></h2>'; '<p>'.__('Select the type
1299
+ #: of ticker you\'d like to use', 'ditty-news-ticker').'</p>'; '<div
1300
+ #: class="mtphr-dnt-metabox-toggle">';
1301
+ msgctxt "88fa5dd23ebe53bcb056ac39a1a05ec2"
1302
+ msgid "Select the type of ticker you'd like to use"
1303
+ msgstr "בחר את סוג המבזקון שתרצה להשתמש בו"
1304
+
1305
+ # wpml-name: 667f04defe30272a4db20c51a46fa4c1
1306
+ #: echo '<div class="wrapper">'; '<h2>'.__('Ticker Type',
1307
+ #: 'ditty-news-ticker').' <a href="http://dittynewsticker.com"
1308
+ #: target="_blank"><small>'.__('View all types',
1309
+ #: 'ditty-news-ticker').'</small></a></h2>'; '<p>'.__('Select the type of
1310
+ #: ticker you\'d like to use', 'ditty-news-ticker').'</p>';
1311
+ msgctxt "f72f4450a0252f4a9aaa40707099c759"
1312
+ msgid "View all types"
1313
+ msgstr "הצג את כל הסוגים"
1314
+
1315
+ # wpml-name: ca664d9a2af8d93e57a6d5e5ce2c33de
1316
+ #: echo '<div class="wrapper">'; '<h2>'.__('Ticker Type',
1317
+ #: 'ditty-news-ticker').' <a href="http://dittynewsticker.com"
1318
+ #: target="_blank"><small>'.__('View all types',
1319
+ #: 'ditty-news-ticker').'</small></a></h2>'; '<p>'.__('Select the type of
1320
+ #: ticker you\'d like to use', 'ditty-news-ticker').'</p>';
1321
+ msgctxt "5cfeeae6a8393ca792664be39e982dc7"
1322
+ msgid "Ticker Type"
1323
+ msgstr "סוג מבזקון"
1324
+
1325
+ # wpml-name: 09c4383af84a770006a28d6e0df6f26a
1326
+ #: echo '<pre><p>&lt;?php
1327
+ #: if(function_exists(\'ditty_news_ticker\')){ditty_news_ticker('.$post->ID.');}
1328
+ #: ?&gt;</p></pre>'; '<a href="#" class="button
1329
+ #: mtphr-dnt-code-select">'.__('Select Function', 'ditty-news-ticker').'</a>';
1330
+ #: '</div>';
1331
+ msgctxt "8e09ea266bc67f4c4c5a6d2fbb1e82e9"
1332
+ msgid "Select Function"
1333
+ msgstr "בחירת פונקציה"
1334
+
1335
+ # wpml-name: f0d7fdab7bfd6fe9e739b3d8db567208
1336
+ #: echo '<h3>'.__('Direct Function', 'ditty-news-ticker').'</h3>';
1337
+ #: '<p>'.__('Copy and paste this code directly into one of your theme files to
1338
+ #: display the ticker any where you want on site.',
1339
+ #: 'ditty-news-ticker').'</p>';
1340
+ msgctxt "7b110ddb40daade9deace4864d0be219"
1341
+ msgid "Copy and paste this code directly into one of your theme files to display the ticker any where you want on your site."
1342
+ msgstr "העתק והדבק את הקוד הזה ישירות לקבצי ערכת הנושא שלך כדי להציג את המבזק בכל מקום שתרצה באתר."
1343
+
1344
+ # wpml-name: 7716cb5ab7874eee6856ec574088f0f0
1345
+ #: $new_columns['dnt_shortcode'] = __( 'Shortcode', 'ditty-news-ticker' );
1346
+ #: $new_columns['dnt_function'] 'Direct Function', }
1347
+ msgctxt "8e393dc6b801563be9fe3aa0c92e07d9"
1348
+ msgid "Direct Function"
1349
+ msgstr "פונקציה ישירה"
1350
+
1351
+ # wpml-name: 510e20b370a423e99b183300b49e536d
1352
+ #: echo '<pre><p>[ditty_news_ticker id="'.$post->ID.'"]</p></pre>'; '<a
1353
+ #: href="#" class="button mtphr-dnt-code-select">'.__('Select Shortcode',
1354
+ #: 'ditty-news-ticker').'</a>'; '</div>';
1355
+ msgctxt "abd48711ae8f2e057a8650c394a17933"
1356
+ msgid "Select Shortcode"
1357
+ msgstr "בחר פקודת מקרו"
1358
+
1359
+ # wpml-name: 5479830ffa59d645f658c3046b53ae6e
1360
+ #: echo '<h3>'.__('Shortcode', 'ditty-news-ticker').'</h3>'; '<p>'.__('Copy
1361
+ #: and paste this shortcode into a page or post to display the ticker within
1362
+ #: content.', 'ditty-news-ticker').'</p>'; '<pre><p>[ditty_news_ticker
1363
+ #: id="'.$post->ID.'"]</p></pre>';
1364
+ msgctxt "8c6c14ddf3fb412b5babb0aa6c2055fe"
1365
+ msgid "Copy and paste this shortcode into a page or post to display the ticker within the post content."
1366
+ msgstr "העתק והדבק את קיצור הקוד הזה בכל עמוד או פוסט כדי להציג את המבזק בתוך התוכן שלהם."
1367
+
1368
+ # wpml-name: 6feadb455c64759731e453380c52fbd9
1369
+ #: $new_columns['dnt_mode'] = __( 'Mode', 'ditty-news-ticker' );
1370
+ #: $new_columns['dnt_shortcode'] 'Shortcode', $new_columns['dnt_function']
1371
+ #: 'Direct Function',
1372
+ msgctxt "86dc40f656e8003bfabe741ba6eded0c"
1373
+ msgid "Shortcode"
1374
+ msgstr "קיצור קוד"
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: metaphorcreations
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
4
  Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
- Requires at least: 3.2
6
- Tested up to: 4.1
7
  Stable tag: /trunk/
8
  License: GPL2
9
 
@@ -19,11 +19,22 @@ Ditty News Ticker is a multi-functional data display plugin. Easily add custom n
19
  * **Rotate Mode** - Rotate through the ticker data
20
  * **List Mode** - Display your ticker data in a list
21
 
22
- [**View samples of each mode.**](http://dittynewsticker.com/ticker-modes/)
23
 
24
- #### Extensions
25
- Ditty News Ticker is built to easily be extended to add extra Ticker Types and extra Ticker Modes.
26
- To see a list of all extensions, visit the [**extensions page**](http://dittynewsticker.com/extensions/).
 
 
 
 
 
 
 
 
 
 
 
27
 
28
  <img src="http://metaphorcreations.com/data/wpml-ready-badge.png" />
29
 
@@ -35,7 +46,7 @@ To see a list of all extensions, visit the [**extensions page**](http://dittynew
35
  4. Insert your tickers by copying and pasting the provided shortcode into another post.
36
  5. Optionally, insert your tickers by copying and pasting the direct function code directly into your theme or plugin.
37
 
38
- [**View full help documentation.**](http://dittynewsticker.com/mc/ditty-news-ticker-doc/)
39
 
40
  == Frequently Asked Questions ==
41
 
@@ -43,7 +54,7 @@ To see a list of all extensions, visit the [**extensions page**](http://dittynew
43
 
44
  Each individual Ticker post has multiple settings to customize.
45
 
46
- [**View full help documentation.**](http://dittynewsticker.com/mc/ditty-news-ticker-doc/)
47
 
48
  == Screenshots ==
49
 
@@ -54,6 +65,108 @@ Each individual Ticker post has multiple settings to customize.
54
 
55
  == Changelog ==
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  = 1.4.15 =
58
  * Admin metabox bug fix
59
 
@@ -261,4 +374,4 @@ Each individual Ticker post has multiple settings to customize.
261
 
262
  == Upgrade Notice ==
263
 
264
- Admin metabox bug fix.
2
  Contributors: metaphorcreations
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
4
  Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
+ Requires at least: 4.0
6
+ Tested up to: 4.5.2
7
  Stable tag: /trunk/
8
  License: GPL2
9
 
19
  * **Rotate Mode** - Rotate through the ticker data
20
  * **List Mode** - Display your ticker data in a list
21
 
22
+ [**View samples of each mode.**](http://www.dittynewsticker.com/ticker-modes/)
23
 
24
+ #### Paid Extensions
25
+ Ditty News Ticker is built to easily be extended to add extra Ticker Types and extra Ticker Modes. We currently have the following extensions for sale:
26
+
27
+ * [**Ditty Posts Ticker**](https://www.metaphorcreations.com/downloads/ditty-posts-ticker/)
28
+ * [**Ditty Twitter Ticker**](https://www.metaphorcreations.com/downloads/ditty-twitter-ticker/)
29
+ * [**Ditty Facebook Ticker**](https://www.metaphorcreations.com/downloads/ditty-facebook-ticker/)
30
+ * [**Ditty RSS Ticker**](https://www.metaphorcreations.com/downloads/ditty-rss-ticker/)
31
+ * [**Ditty Image Ticker**](https://www.metaphorcreations.com/downloads/ditty-image-ticker/)
32
+ * [**Ditty Flickr Ticker**](https://www.metaphorcreations.com/downloads/ditty-flickr-ticker/)
33
+ * [**Ditty Mega Ticker**](https://www.metaphorcreations.com/downloads/ditty-mega-ticker/)
34
+
35
+ We now also offer an extensions bundle that includes all current and future extensions!
36
+
37
+ * [**Ditty Extensions Bundle**](https://www.metaphorcreations.com/downloads/ditty-news-ticker-bundle/)
38
 
39
  <img src="http://metaphorcreations.com/data/wpml-ready-badge.png" />
40
 
46
  4. Insert your tickers by copying and pasting the provided shortcode into another post.
47
  5. Optionally, insert your tickers by copying and pasting the direct function code directly into your theme or plugin.
48
 
49
+ [**View full help documentation.**](http://www.dittynewsticker.com/documentation/)
50
 
51
  == Frequently Asked Questions ==
52
 
54
 
55
  Each individual Ticker post has multiple settings to customize.
56
 
57
+ [**View full help documentation.**](http://www.dittynewsticker.com/documentation/)
58
 
59
  == Screenshots ==
60
 
65
 
66
  == Changelog ==
67
 
68
+ = 2.0.15 =
69
+ * Tick width and height detection modification in jQuery script
70
+
71
+ = 2.0.14 =
72
+ * Ensured that imageloaded is enqueued when ditty-news-ticker.js is enqueued
73
+
74
+ = 2.0.13 =
75
+ * Bug fixes in updated jquery script
76
+ * CSS adjustments for better image rendering across browsers
77
+
78
+ = 2.0.12 =
79
+ * Added static image dimension options to MTPHR_DNT_Image class
80
+
81
+ = 2.0.11 =
82
+ * Updated mtphr_dnt_convert_links to fix latin character bug
83
+ * Removed console function in script
84
+
85
+ = 2.0.10 =
86
+ * Bug fix from last update
87
+ * MTPHR_DNT_Image container element update
88
+
89
+ = 2.0.9 =
90
+ * Updates to rotate mode script
91
+ * Scroll and rotate tickers now load on document ready
92
+ * Added imagesLoaded to scroll and rotate tickers
93
+ * Added 'nofollow' option to MTPHR_DNT_Image class
94
+ * Additional updates to MTPHR_DNT_Image class
95
+
96
+ = 2.0.8 =
97
+ * Bug fix in news ticker output
98
+ * Added MTPHR_DTN_Image class for use in extensions
99
+ * Added MTPHR_DNT_String_Replacement class for use in extensions
100
+ * Added checkboxes field for admin use
101
+
102
+ = 2.0.7 =
103
+ * Adjusted Custom CSS field display
104
+ * CSS updates
105
+
106
+ = 2.0.6 =
107
+ * Unyson page builder shortcode integration
108
+ * Visual Composer page builder shortcode integration
109
+
110
+ = 2.0.5 =
111
+ * Mixed ticker bug fix
112
+ * Dashboard CSS updates
113
+
114
+ = 2.0.4 =
115
+ * Added optional play/pause button for scroll and auto rotate mode
116
+ * Removed data-icon css from icon css file
117
+ * Small bug fix
118
+
119
+ = 2.0.3 =
120
+ * Fixed visual editor glitch from last update
121
+
122
+ = 2.0.2 =
123
+ * Updated metabox code for flexibility
124
+ * Updated some metabox filter names
125
+
126
+ = 2.0.1 =
127
+ * Customized bootstrap affix plugin due to conflicts within dashboard
128
+ * Added more social icons to icon font package
129
+
130
+ = 2.0.0 =
131
+ * Updated admin page layout
132
+ * Updated metaboxes for new admin page layout
133
+ * Newly added WYSIWYG editors now work without having to save your post
134
+ * Added javascript error check before saving dynamic fields
135
+ * Additional data passed through mtphr_dnt_ticker_class filter
136
+
137
+ = 1.5.8 =
138
+ * Updated widget class name
139
+
140
+ = 1.5.7 =
141
+ * Updated widget class
142
+
143
+ = 1.5.6 =
144
+ * Updated touchSwipe.js
145
+ * Fixed inactive links on mobile using touchSwipe
146
+
147
+ = 1.5.5 =
148
+ * Bug fix
149
+
150
+ = 1.5.4 =
151
+ * Modified data sanitization on tick content
152
+
153
+ = 1.5.3 =
154
+ * Modified default options for Rotate Settings
155
+ * Added option to disable touchswipe on touch devices
156
+
157
+ = 1.5.2 =
158
+ * Security update
159
+
160
+ = 1.5.1 =
161
+ * Script bug fix
162
+
163
+ = 1.5.0 =
164
+ * Re-organized files
165
+ * Added template files for easier customization
166
+ * Added shortcode & oEmbed parsing to ticks
167
+ * Added option to remove outer padding around grids
168
+ * Fixed add_query_arg() and remove_query_arg() usage
169
+
170
  = 1.4.15 =
171
  * Admin metabox bug fix
172
 
374
 
375
  == Upgrade Notice ==
376
 
377
+ Tick width and height detection modification in jQuery script
templates/control_nav.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Get and extract the metadata array into variables
4
+ global $mtphr_dnt_meta_data;
5
+ extract( $mtphr_dnt_meta_data );
6
+
7
+ // Add the control nav
8
+ if( ($_mtphr_dnt_total_ticks > 1) && $_mtphr_dnt_mode == 'rotate' ) {
9
+
10
+ if( isset($_mtphr_dnt_rotate_control_nav) && $_mtphr_dnt_rotate_control_nav ) {
11
+
12
+ echo '<div class="mtphr-dnt-control-links">';
13
+ for( $i=0; $i<$_mtphr_dnt_total_ticks; $i++ ) {
14
+ $link = ( $_mtphr_dnt_rotate_control_nav_type == 'button' ) ? '<i class="mtphr-dnt-icon-button"></i>' : intval($i+1);
15
+ 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', $link, $_mtphr_dnt_rotate_control_nav_type ).'</a>';
16
+ }
17
+ echo '</div>';
18
+ }
19
+ }
templates/directional_nav.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Get and extract the metadata array into variables
4
+ global $mtphr_dnt_meta_data;
5
+ extract( $mtphr_dnt_meta_data );
6
+
7
+ // Add the directional nav
8
+ if( ($_mtphr_dnt_total_ticks > 1) && $_mtphr_dnt_mode == 'rotate' ) {
9
+
10
+ if( isset($_mtphr_dnt_rotate_directional_nav) && $_mtphr_dnt_rotate_directional_nav ) {
11
+
12
+ $hide = '';
13
+ if( isset($_mtphr_dnt_rotate_directional_nav_hide) && $_mtphr_dnt_rotate_directional_nav_hide ) {
14
+ $hide = ' mtphr-dnt-nav-hide';
15
+ }
16
+ echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-prev'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_prev', '<i class="mtphr-dnt-icon-arrow-left"></i>' ).'</a>';
17
+ echo '<a class="mtphr-dnt-nav mtphr-dnt-nav-next'.$hide.'" href="#" rel="nofollow">'.apply_filters( 'mtphr_dnt_direction_nav_next', '<i class="mtphr-dnt-icon-arrow-right"></i>' ).'</a>';
18
+ }
19
+ }
templates/pagination.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Get and extract the metadata array into variables
4
+ global $mtphr_dnt_meta_data;
5
+ extract( $mtphr_dnt_meta_data );
6
+
7
+ if( $_mtphr_dnt_mode == 'list' && isset($_mtphr_dnt_list_tick_paging) && $_mtphr_dnt_list_tick_paging ) {
8
+
9
+ $spacing = 'margin-top:'.intval($_mtphr_dnt_list_tick_spacing).'px;';
10
+ $total_pages = ceil( $_mtphr_dnt_total_ticks/$_mtphr_dnt_list_tick_count );
11
+ $current_page = isset( $_GET['tickpage'] ) ? $_GET['tickpage'] : 1;
12
+
13
+ $big = 999999999;
14
+ $args = array(
15
+ 'base' => str_replace( $big, '%#%', esc_url(add_query_arg('tickpage', $big)) ),
16
+ 'format' => '?tickpage=%#%',
17
+ 'total' => $total_pages,
18
+ 'current' => $current_page,
19
+ 'show_all' => false,
20
+ 'end_size' => 1,
21
+ 'mid_size' => 2,
22
+ 'prev_next' => $_mtphr_dnt_list_tick_prev_next,
23
+ 'prev_text' => $_mtphr_dnt_list_tick_prev_text,
24
+ 'next_text' => $_mtphr_dnt_list_tick_next_text,
25
+ 'type' => 'plain',
26
+ 'add_args' => false,
27
+ 'add_fragment' => ''
28
+ );
29
+
30
+ echo '<div class="mtphr-dnt-tick-paging" style="'.$spacing.'">';
31
+ echo paginate_links( apply_filters('mtphr_dnt_tick_paging_args', $args) );
32
+ echo '</div>';
33
+ }
templates/play_pause.php ADDED
@@ -0,0 +1 @@
 
1
+ <a class="mtphr-dnt-play-pause" href="#"><i class="mtphr-dnt-icon-play"></i><i class="mtphr-dnt-icon-pause"></i></a>
templates/title.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Get and extract the metadata array into variables
4
+ global $mtphr_dnt_meta_data;
5
+ extract( $mtphr_dnt_meta_data );
6
+
7
+ // Display the title
8
+ if( isset($_mtphr_dnt_title) && $_mtphr_dnt_title ) {
9
+
10
+ $inline_title = ( isset($_mtphr_dnt_inline_title) && $_mtphr_dnt_inline_title ) ? ' mtphr-dnt-inline-title' : '';
11
+
12
+ do_action( 'mtphr_dnt_title_before', $_mtphr_dnt_id, $mtphr_dnt_meta_data );
13
+ echo '<h3 class="mtphr-dnt-title'.$inline_title.'">'.apply_filters( 'mtphr_dnt_ticker_title', get_the_title($_mtphr_dnt_id) ).'</h3>';
14
+ do_action( 'mtphr_dnt_title_after', $_mtphr_dnt_id, $mtphr_dnt_meta_data );
15
+ }
unyson/shortcodes/shortcodes/dittynewsticker/class-fw-shortcode-dittynewsticker.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ( ! defined( 'FW' ) ) {
2
+ die( 'Forbidden' );
3
+ }
4
+
5
+ class FW_Shortcode_DittyNewsTicker extends FW_Shortcode
6
+ {
7
+ /**
8
+ * @internal
9
+ */
10
+ public function _init() {
11
+ }
12
+
13
+ public function get_tickers() {
14
+
15
+ $args = array(
16
+ 'posts_per_page' => -1,
17
+ 'offset' => 0,
18
+ 'category' => '',
19
+ 'orderby' => 'title',
20
+ 'order' => 'ASC',
21
+ 'include' => '',
22
+ 'exclude' => '',
23
+ 'meta_key' => '',
24
+ 'meta_value' => '',
25
+ 'post_type' => 'ditty_news_ticker',
26
+ 'post_mime_type' => '',
27
+ 'post_parent' => '',
28
+ 'post_status' => 'publish',
29
+ 'suppress_filters' => true
30
+ );
31
+ $tickers = get_posts( $args );
32
+
33
+ $tickers_array = array( 'dnt-' => __('Select a Ticker', 'ditty-news-ticker') );
34
+ if( is_array($tickers) && count($tickers) > 0 ) {
35
+ foreach( $tickers as $i=>$ticker ) {
36
+ $tickers_array['dnt-'.$ticker->ID] = $ticker->post_title;
37
+ }
38
+ } else {
39
+ $tickers_array = array( '' => __('No tickers found', 'ditty-news-ticker') );
40
+ }
41
+
42
+ return $tickers_array;
43
+ }
44
+ }
unyson/shortcodes/shortcodes/dittynewsticker/config.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ( ! defined( 'FW' ) ) {
2
+ die( 'Forbidden' );
3
+ }
4
+
5
+ $cfg = array();
6
+
7
+ $cfg['page_builder'] = array(
8
+ 'title' => __( 'Ditty News Ticker', 'ditty-news-ticker' ),
9
+ 'description' => __( 'Add a News Ticker', 'ditty-news-ticker' ),
10
+ 'tab' => __( 'Content Elements', 'ditty-news-ticker' ),
11
+ 'icon' => 'mtphr-dnt-icon-dittynewsticker'
12
+ );
unyson/shortcodes/shortcodes/dittynewsticker/options.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ( ! defined( 'FW' ) ) {
2
+ die( 'Forbidden' );
3
+ }
4
+
5
+ $dittynewsticker_shortcode = fw_ext('shortcodes')->get_shortcode('dittynewsticker');
6
+
7
+ $options = array(
8
+ 'ticker' => array(
9
+ 'type' => 'select',
10
+ 'label' => __('Ditty News Ticker', 'ditty-news-ticker'),
11
+ 'desc' => __('Select the ticker you want to display', 'ditty-news-ticker'),
12
+ 'choices' => $dittynewsticker_shortcode->get_tickers()
13
+ )
14
+
15
+ );
unyson/shortcodes/shortcodes/dittynewsticker/views/view.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php if ( ! defined( 'FW' ) ) {
2
+ die( 'Forbidden' );
3
+ }
4
+
5
+ if( ($atts['ticker'] != '' || $atts['ticker'] != 'dnt-') && function_exists('ditty_news_ticker') ) {
6
+ ditty_news_ticker( substr($atts['ticker'], 4) );
7
+ }