Version Description
- Organized code
- Added "Mixed" type to display tickers mixed with multiple ticker types
- Modified 'after_load', 'before_change', 'after_change' filters for DNT class script
- Added code to remove duplicate tickers
Download this release
Release Info
Developer | metaphorcreations |
Plugin | Ditty News Ticker |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.3.0
- assets/css/style-admin.css +195 -0
- assets/images/admin/arrow-resize-090.png +0 -0
- assets/images/admin/minus-circle.png +0 -0
- assets/images/admin/plus-circle.png +0 -0
- assets/js/script-admin.js +83 -0
- ditty-news-ticker.php +6 -4
- includes/ajax.php +24 -0
- includes/functions.php +72 -164
- includes/helpers.php +145 -0
- includes/meta-boxes.php +129 -2
- includes/scripts.php +24 -8
- languages/ditty-news-ticker-en_US.mo +0 -0
- languages/ditty-news-ticker-en_US.po +134 -94
- readme.txt +8 -2
assets/css/style-admin.css
CHANGED
@@ -119,3 +119,198 @@
|
|
119 |
border-radius: 3px;
|
120 |
overflow: hidden;
|
121 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
border-radius: 3px;
|
120 |
overflow: hidden;
|
121 |
}
|
122 |
+
|
123 |
+
|
124 |
+
/* --------------------------------------------------------- */
|
125 |
+
/* !Table */
|
126 |
+
/* --------------------------------------------------------- */
|
127 |
+
|
128 |
+
.mtphr-dnt-table {
|
129 |
+
width: 100%;
|
130 |
+
border-spacing: 0;
|
131 |
+
}
|
132 |
+
.mtphr-dnt-table > tbody > tr > td {
|
133 |
+
text-align: left;
|
134 |
+
vertical-align: top;
|
135 |
+
background: #f5f5f5;
|
136 |
+
border-bottom: 1px solid #e9e9e9;
|
137 |
+
padding: 10px 2px;
|
138 |
+
}
|
139 |
+
.mtphr-dnt-table > tbody > tr:first-child > td {
|
140 |
+
border-top: 1px solid #dfdfdf;
|
141 |
+
}
|
142 |
+
.mtphr-dnt-table > tbody > tr:last-child > td,
|
143 |
+
.mtphr-dnt-table > tbody > tr:last-child > td.mtphr-dnt-label {
|
144 |
+
border-bottom-color: #dfdfdf;
|
145 |
+
}
|
146 |
+
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label {
|
147 |
+
width: 20%;
|
148 |
+
max-width: 200px;
|
149 |
+
background: #f0f0f0;
|
150 |
+
border-left: 1px solid #dfdfdf;
|
151 |
+
border-bottom: 1px solid #e9e9e9;
|
152 |
+
}
|
153 |
+
.mtphr-dnt-table > tbody > tr > td:last-child,
|
154 |
+
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label {
|
155 |
+
border-right: 1px solid #dfdfdf;
|
156 |
+
}
|
157 |
+
.mtphr-dnt-table > tbody > tr > td:first-child,
|
158 |
+
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label + td {
|
159 |
+
padding-left: 10px;
|
160 |
+
}
|
161 |
+
.mtphr-dnt-table > tbody > tr > td:last-child,
|
162 |
+
.mtphr-dnt-table > tbody > tr > td.mtphr-dnt-label {
|
163 |
+
padding-right: 10px;
|
164 |
+
}
|
165 |
+
.mtphr-dnt-table > tbody > tr:first-child > td:first-child {
|
166 |
+
-webkit-border-top-left-radius: 5px;
|
167 |
+
-moz-border-radius-topleft: 5px;
|
168 |
+
border-top-left-radius: 5px;
|
169 |
+
}
|
170 |
+
.mtphr-dnt-table > tbody > tr:first-child > td:last-child {
|
171 |
+
-webkit-border-top-right-radius: 5px;
|
172 |
+
-moz-border-radius-topright: 5px;
|
173 |
+
border-top-right-radius: 5px;
|
174 |
+
}
|
175 |
+
.mtphr-dnt-table > tbody > tr:last-child > td:first-child {
|
176 |
+
-webkit-border-bottom-left-radius: 5px;
|
177 |
+
-moz-border-radius-bottomleft: 5px;
|
178 |
+
border-bottom-left-radius: 5px;
|
179 |
+
}
|
180 |
+
.mtphr-dnt-table > tbody > tr:last-child > td:last-child {
|
181 |
+
-webkit-border-bottom-right-radius: 5px;
|
182 |
+
-moz-border-radius-bottomright: 5px;
|
183 |
+
border-bottom-right-radius: 5px;
|
184 |
+
}
|
185 |
+
.mtphr-dnt-table label {
|
186 |
+
display: inline-block;
|
187 |
+
margin: 0 10px 10px 0;
|
188 |
+
}
|
189 |
+
.mtphr-dnt-table label.checkbox-label {
|
190 |
+
font-weight: normal;
|
191 |
+
margin: 0;
|
192 |
+
}
|
193 |
+
.mtphr-dnt-table input[type="text"],
|
194 |
+
.mtphr-dnt-table textarea {
|
195 |
+
width: 100%;
|
196 |
+
}
|
197 |
+
.mtphr-dnt-table input[type="number"] {
|
198 |
+
width: 60px;
|
199 |
+
}
|
200 |
+
.mtphr-dnt-table .mceIframeContainer {
|
201 |
+
background: #FFF;
|
202 |
+
}
|
203 |
+
.mtphr-dnt-label-alt {
|
204 |
+
display: block;
|
205 |
+
width: auto;
|
206 |
+
padding-right: none !important;
|
207 |
+
margin-bottom: 5px;
|
208 |
+
}
|
209 |
+
.mtphr-dnt-label label,
|
210 |
+
.mtphr-dnt-label-alt label {
|
211 |
+
display: block;
|
212 |
+
font-weight: bold;
|
213 |
+
font-size: 12px;
|
214 |
+
margin: 0;
|
215 |
+
}
|
216 |
+
.mtphr-dnt-label small,
|
217 |
+
.mtphr-dnt-label-alt small {
|
218 |
+
display: block;
|
219 |
+
font-size: 10px;
|
220 |
+
line-height: 13px;
|
221 |
+
font-style: italic;
|
222 |
+
}
|
223 |
+
.ronniedunn-radio,
|
224 |
+
.mtphr-dnt-table label.ronniedunn-radio {
|
225 |
+
font-weight: normal;
|
226 |
+
margin-right: 8px;
|
227 |
+
margin-left: 2px;
|
228 |
+
}
|
229 |
+
.ronniedunn-radio input,
|
230 |
+
.mtphr-dnt-table label.ronniedunn-radio input {
|
231 |
+
margin-top: -1px;
|
232 |
+
margin-right: 2px;
|
233 |
+
}
|
234 |
+
.ronniedunn-checkbox,
|
235 |
+
.mtphr-dnt-table label.ronniedunn-checkbox {
|
236 |
+
font-weight: normal;
|
237 |
+
margin-right: 8px;
|
238 |
+
margin-left: 1px;
|
239 |
+
}
|
240 |
+
.ronniedunn-checkbox input,
|
241 |
+
.mtphr-dnt-table label.ronniedunn-checkbox input {
|
242 |
+
margin-top: 0;
|
243 |
+
margin-right: 2px;
|
244 |
+
}
|
245 |
+
|
246 |
+
|
247 |
+
/* --------------------------------------------------------- */
|
248 |
+
/* !List elements */
|
249 |
+
/* --------------------------------------------------------- */
|
250 |
+
|
251 |
+
.mtphr-dnt-list {
|
252 |
+
width: 100%;
|
253 |
+
}
|
254 |
+
.mtphr-dnt-list th {
|
255 |
+
text-align: left;
|
256 |
+
}
|
257 |
+
.mtphr-dnt-list td {
|
258 |
+
padding: 2px;
|
259 |
+
}
|
260 |
+
.mtphr-dnt-list-handle,
|
261 |
+
.mtphr-dnt-list-add,
|
262 |
+
.mtphr-dnt-list-delete {
|
263 |
+
width: 16px;
|
264 |
+
}
|
265 |
+
.mtphr-dnt-list-handle {
|
266 |
+
padding-left: 0;
|
267 |
+
}
|
268 |
+
.mtphr-dnt-list-add,
|
269 |
+
.mtphr-dnt-list-delete {
|
270 |
+
padding-right: 0;
|
271 |
+
}
|
272 |
+
.mtphr-dnt-list-handle span,
|
273 |
+
.mtphr-dnt-list-add a,
|
274 |
+
.mtphr-dnt-list-delete a {
|
275 |
+
display: block;
|
276 |
+
text-indent: -9999px;
|
277 |
+
width: 16px;
|
278 |
+
height: 16px;
|
279 |
+
}
|
280 |
+
.mtphr-dnt-list-handle span {
|
281 |
+
background: url(../images/admin/arrow-resize-090.png) no-repeat top;
|
282 |
+
}
|
283 |
+
.mtphr-dnt-list-add a {
|
284 |
+
background: url(../images/admin/plus-circle.png) no-repeat top;
|
285 |
+
}
|
286 |
+
.mtphr-dnt-list-delete a {
|
287 |
+
background: url(../images/admin/minus-circle.png) no-repeat top;
|
288 |
+
}
|
289 |
+
.mtphr-dnt-list-handle span:hover,
|
290 |
+
.mtphr-dnt-list-add a:hover,
|
291 |
+
.mtphr-dnt-list-delete a:hover {
|
292 |
+
background-position: 0 -16px;
|
293 |
+
}
|
294 |
+
.mtphr-dnt-list-item input {
|
295 |
+
width: 100%;
|
296 |
+
}
|
297 |
+
.mtphr-dnt-add-spinner {
|
298 |
+
float: none;
|
299 |
+
margin: 0 0 0 5px;
|
300 |
+
}
|
301 |
+
|
302 |
+
|
303 |
+
/* --------------------------------------------------------- */
|
304 |
+
/* !Mixed list */
|
305 |
+
/* --------------------------------------------------------- */
|
306 |
+
|
307 |
+
#mtphr-dnt-mixed-add-tick {
|
308 |
+
margin: 10px 0 10px;
|
309 |
+
}
|
310 |
+
.mtphr-dnt-mixed-list input[type="number"] {
|
311 |
+
width: 60px;
|
312 |
+
}
|
313 |
+
.mtphr-dnt-list-item label {
|
314 |
+
margin: 0;
|
315 |
+
}
|
316 |
+
|
assets/images/admin/arrow-resize-090.png
ADDED
Binary file
|
assets/images/admin/minus-circle.png
ADDED
Binary file
|
assets/images/admin/plus-circle.png
ADDED
Binary file
|
assets/js/script-admin.js
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery( document ).ready( function($) {
|
2 |
+
|
3 |
+
|
4 |
+
/* --------------------------------------------------------- */
|
5 |
+
/* !Mixed tick list */
|
6 |
+
/* --------------------------------------------------------- */
|
7 |
+
|
8 |
+
if( $('.mtphr-dnt-mixed-list').length > 0 ) {
|
9 |
+
|
10 |
+
function mtphr_dnt_mixed_handle_toggle( $table ) {
|
11 |
+
if( $table.find('.mtphr-dnt-list-item').length > 1 ) {
|
12 |
+
$table.find('.mtphr-dnt-list-handle').show();
|
13 |
+
} else {
|
14 |
+
$table.find('.mtphr-dnt-list-handle').hide();
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
function mtphr_dnt_mixed_set_order( $table ) {
|
19 |
+
|
20 |
+
$table.find('.mtphr-dnt-list-item').each( function(index) {
|
21 |
+
$(this).find('input, select').each( function() {
|
22 |
+
console.log($(this).attr('key'));
|
23 |
+
$(this).attr('name', '_mtphr_dnt_mixed_ticks['+index+']['+$(this).attr('key')+']');
|
24 |
+
});
|
25 |
+
});
|
26 |
+
|
27 |
+
mtphr_dnt_mixed_handle_toggle( $table );
|
28 |
+
}
|
29 |
+
|
30 |
+
$('.mtphr-dnt-mixed-list').sortable( {
|
31 |
+
handle: '.mtphr-dnt-list-handle',
|
32 |
+
items: '.mtphr-dnt-list-item',
|
33 |
+
axis: 'y',
|
34 |
+
helper: function(e, tr) {
|
35 |
+
var $originals = tr.children();
|
36 |
+
var $helper = tr.clone();
|
37 |
+
$helper.children().each(function(index) {
|
38 |
+
$(this).width($originals.eq(index).width());
|
39 |
+
$(this).height($originals.eq(index).height());
|
40 |
+
});
|
41 |
+
return $helper;
|
42 |
+
},
|
43 |
+
});
|
44 |
+
|
45 |
+
// Delete list item
|
46 |
+
$('.mtphr-dnt-mixed-list').find('.mtphr-dnt-list-delete').live( 'click', function(e) {
|
47 |
+
e.preventDefault();
|
48 |
+
|
49 |
+
// Fade out the item
|
50 |
+
$(this).parents('.mtphr-dnt-list-item').fadeOut( function() {
|
51 |
+
$(this).remove();
|
52 |
+
});
|
53 |
+
});
|
54 |
+
|
55 |
+
// Add videos
|
56 |
+
$('#mtphr-dnt-mixed-add-tick').click( function(e) {
|
57 |
+
e.preventDefault();
|
58 |
+
|
59 |
+
// Save the container
|
60 |
+
var $container = $(this).siblings('.mtphr-dnt-table').find('.mtphr-dnt-mixed-list'),
|
61 |
+
$spinner = $(this).next();
|
62 |
+
|
63 |
+
$spinner.css('display', 'inline-block');
|
64 |
+
|
65 |
+
var data = {
|
66 |
+
action: 'mtphr_dnt_mixed_list_ajax',
|
67 |
+
security: ditty_news_ticker_vars.security
|
68 |
+
};
|
69 |
+
jQuery.post( ajaxurl, data, function( response ) {
|
70 |
+
|
71 |
+
// Add the audio and adjust the toggles
|
72 |
+
$container.append( response );
|
73 |
+
mtphr_dnt_mixed_set_order( $container );
|
74 |
+
$spinner.fadeOut();
|
75 |
+
});
|
76 |
+
});
|
77 |
+
|
78 |
+
$('.mtphr-dnt-mixed-list').each( function(index) {
|
79 |
+
mtphr_dnt_mixed_set_order( $(this) );
|
80 |
+
});
|
81 |
+
}
|
82 |
+
|
83 |
+
});
|
ditty-news-ticker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ditty News Ticker
|
4 |
Plugin URI: http://dittynewsticker.com/
|
5 |
Description: Ditty News Ticker is a multi-functional data display plugin
|
6 |
-
Version: 1.
|
7 |
Author: Metaphor Creations
|
8 |
Author URI: http://www.metaphorcreations.com
|
9 |
License: GPL2
|
@@ -45,9 +45,9 @@ The icons are licensed under a Creative Commons Attribution
|
|
45 |
* @since 1.2.1
|
46 |
*/
|
47 |
if ( WP_DEBUG ) {
|
48 |
-
define ( 'MTPHR_DNT_VERSION', '1.
|
49 |
} else {
|
50 |
-
define ( 'MTPHR_DNT_VERSION', '1.
|
51 |
}
|
52 |
define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
|
53 |
define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
|
@@ -58,7 +58,7 @@ define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
|
|
58 |
/**
|
59 |
* Include files
|
60 |
*
|
61 |
-
* @since 1.
|
62 |
*/
|
63 |
|
64 |
if( is_admin() ) {
|
@@ -70,9 +70,11 @@ if( is_admin() ) {
|
|
70 |
require_once( MTPHR_DNT_DIR.'includes/settings.php' );
|
71 |
//require_once( MTPHR_DNT_DIR.'includes/help.php' );
|
72 |
require_once( MTPHR_DNT_DIR.'includes/edit-columns.php' );
|
|
|
73 |
}
|
74 |
|
75 |
// Load the general functions
|
|
|
76 |
require_once( MTPHR_DNT_DIR.'includes/scripts.php' );
|
77 |
require_once( MTPHR_DNT_DIR.'includes/post-types.php' );
|
78 |
require_once( MTPHR_DNT_DIR.'includes/functions.php' );
|
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.3.0
|
7 |
Author: Metaphor Creations
|
8 |
Author URI: http://www.metaphorcreations.com
|
9 |
License: GPL2
|
45 |
* @since 1.2.1
|
46 |
*/
|
47 |
if ( WP_DEBUG ) {
|
48 |
+
define ( 'MTPHR_DNT_VERSION', '1.3.0-'.time() );
|
49 |
} else {
|
50 |
+
define ( 'MTPHR_DNT_VERSION', '1.3.0' );
|
51 |
}
|
52 |
define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
|
53 |
define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
|
58 |
/**
|
59 |
* Include files
|
60 |
*
|
61 |
+
* @since 1.3.0
|
62 |
*/
|
63 |
|
64 |
if( is_admin() ) {
|
70 |
require_once( MTPHR_DNT_DIR.'includes/settings.php' );
|
71 |
//require_once( MTPHR_DNT_DIR.'includes/help.php' );
|
72 |
require_once( MTPHR_DNT_DIR.'includes/edit-columns.php' );
|
73 |
+
require_once( MTPHR_DNT_DIR.'includes/ajax.php' );
|
74 |
}
|
75 |
|
76 |
// Load the general functions
|
77 |
+
require_once( MTPHR_DNT_DIR.'includes/helpers.php' );
|
78 |
require_once( MTPHR_DNT_DIR.'includes/scripts.php' );
|
79 |
require_once( MTPHR_DNT_DIR.'includes/post-types.php' );
|
80 |
require_once( MTPHR_DNT_DIR.'includes/functions.php' );
|
includes/ajax.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* --------------------------------------------------------- */
|
4 |
+
/* !Display a mixed list item - 1.3.0 */
|
5 |
+
/* --------------------------------------------------------- */
|
6 |
+
|
7 |
+
function mtphr_dnt_mixed_list_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 the DNT types
|
16 |
+
$types = mtphr_dnt_types_array();
|
17 |
+
unset($types['mixed']);
|
18 |
+
|
19 |
+
// Display the field
|
20 |
+
mtphr_dnt_render_mixed_tick( $types );
|
21 |
+
|
22 |
+
die(); // this is required to return a proper result
|
23 |
+
}
|
24 |
+
add_action( 'wp_ajax_mtphr_dnt_mixed_list_ajax', 'mtphr_dnt_mixed_list_ajax' );
|
includes/functions.php
CHANGED
@@ -22,7 +22,7 @@ function ditty_news_ticker( $id='', $class='', $atts=false ) {
|
|
22 |
/**
|
23 |
* Return the ticker
|
24 |
*
|
25 |
-
* @since 1.
|
26 |
*/
|
27 |
function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
28 |
|
@@ -53,37 +53,12 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
|
53 |
// Extract the metadata array into variables
|
54 |
extract( $meta_data );
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
if( is_array($_mtphr_dnt_ticks) ) {
|
61 |
-
foreach( $_mtphr_dnt_ticks as $i => $tick ) {
|
62 |
-
|
63 |
-
if( $text = $tick['tick'] ) {
|
64 |
-
if( isset($_mtphr_dnt_line_breaks) && $_mtphr_dnt_line_breaks ) {
|
65 |
-
$text = nl2br($tick['tick']);
|
66 |
-
}
|
67 |
-
$text = wp_kses_post($text);
|
68 |
-
|
69 |
-
// Get the contents
|
70 |
-
if( $link = esc_url($tick['link']) ) {
|
71 |
-
$nf = ( isset($tick['nofollow']) && $tick['nofollow'] ) ? ' rel="nofollow"' : '';
|
72 |
-
$contents = '<a href="'.$link.'" target="'.$tick['target'].'"'.$nf.'>'.$text.'</a>';
|
73 |
-
} else {
|
74 |
-
$contents = $text;
|
75 |
-
}
|
76 |
-
$contents = apply_filters('mtphr_dnt_tick', $contents, $text, $link );
|
77 |
-
|
78 |
-
// Save the output to the tick array
|
79 |
-
$dnt_ticks[] = $contents;
|
80 |
-
}
|
81 |
-
}
|
82 |
}
|
83 |
|
84 |
-
// Filter the ticks
|
85 |
-
$dnt_ticks = apply_filters( 'mtphr_dnt_tick_array', $dnt_ticks, $id, $meta_data );
|
86 |
-
|
87 |
ob_start();
|
88 |
|
89 |
// Create the opening div
|
@@ -164,6 +139,9 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
|
164 |
}
|
165 |
$total = count($dnt_ticks);
|
166 |
foreach( $dnt_ticks as $i => $tick ) {
|
|
|
|
|
|
|
167 |
|
168 |
// Set the list spacing depending on the tick position
|
169 |
if( $_mtphr_dnt_mode == 'list' ) {
|
@@ -173,7 +151,7 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
|
173 |
$tick_style = ( $width != '' || $height != '' || $spacing != '' ) ? ' style="'.$width.$height.$spacing.'"' : '';
|
174 |
|
175 |
do_action( 'mtphr_dnt_tick_before', $id, $meta_data, $total, $i );
|
176 |
-
echo '<div'.$tick_style.' '.mtphr_dnt_tick_class('mtphr-dnt-clearfix').'>';
|
177 |
do_action( 'mtphr_dnt_tick_top', $id, $meta_data );
|
178 |
|
179 |
echo $tick;
|
@@ -285,166 +263,96 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
|
285 |
|
286 |
|
287 |
|
|
|
|
|
|
|
288 |
|
289 |
-
|
290 |
-
* Return the ticker class
|
291 |
-
*
|
292 |
-
* @since 1.0.9
|
293 |
-
*/
|
294 |
-
function mtphr_dnt_ticker_class( $id='', $class='', $meta_data ) {
|
295 |
-
|
296 |
-
// Separates classes with a single space, collates classes for ditty ticker element
|
297 |
-
return 'class="'.join( ' ', get_mtphr_dnt_ticker_class($id,$class,$meta_data) ).'"';
|
298 |
-
}
|
299 |
|
300 |
-
|
301 |
|
302 |
-
|
303 |
-
|
304 |
|
305 |
-
|
|
|
|
|
306 |
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
|
|
|
|
311 |
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
|
|
|
|
318 |
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
}
|
324 |
-
}
|
325 |
|
326 |
-
|
327 |
-
|
328 |
-
$class = preg_split( '#\s+#', $class );
|
329 |
-
}
|
330 |
-
$classes = array_merge( $classes, $class );
|
331 |
-
} else {
|
332 |
-
// Ensure that we always coerce class to being an array.
|
333 |
-
$class = array();
|
334 |
}
|
335 |
|
336 |
-
|
337 |
-
|
338 |
-
return apply_filters( 'mtphr_dnt_ticker_class', $classes, $class );
|
339 |
}
|
|
|
340 |
|
341 |
|
342 |
|
|
|
|
|
|
|
343 |
|
344 |
-
|
345 |
-
|
346 |
-
*
|
347 |
-
* @since 1.0.0
|
348 |
-
*/
|
349 |
-
function mtphr_dnt_tick_class( $class='' ) {
|
350 |
-
|
351 |
-
// Separates classes with a single space, collates classes for ditty ticker element
|
352 |
-
return 'class="'.join( ' ', get_mtphr_dnt_tick_class($class) ).'"';
|
353 |
-
}
|
354 |
-
|
355 |
-
function get_mtphr_dnt_tick_class( $class='' ) {
|
356 |
-
|
357 |
-
$classes = array();
|
358 |
|
359 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
}
|
365 |
-
$classes = array_merge( $classes, $class );
|
366 |
-
} else {
|
367 |
-
// Ensure that we always coerce class to being an array.
|
368 |
-
$class = array();
|
369 |
-
}
|
370 |
-
|
371 |
-
$classes = array_map( 'esc_attr', $classes );
|
372 |
-
|
373 |
-
return apply_filters( 'mtphr_dnt_tick_class', $classes, $class );
|
374 |
-
}
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
/**
|
380 |
-
* Minify scripts for output
|
381 |
-
*
|
382 |
-
* @since 1.0.0
|
383 |
-
*/
|
384 |
-
function mtphr_dnt_compress_script( $str ) {
|
385 |
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
}
|
392 |
}
|
393 |
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
/**
|
401 |
-
* Return an array of the current DNT types
|
402 |
-
*
|
403 |
-
* @since 1.0.0
|
404 |
-
*/
|
405 |
-
function mtphr_dnt_types_array() {
|
406 |
-
|
407 |
-
/* Create the types array. */
|
408 |
-
$dnt_types_array = array();
|
409 |
-
$dnt_types_array['default'] = array(
|
410 |
-
'button' => __('Default', 'ditty-news-ticker'),
|
411 |
-
'metaboxes' => array( 'mtphr_dnt_type_default' )
|
412 |
-
);
|
413 |
-
|
414 |
-
return apply_filters('mtphr_dnt_types', $dnt_types_array);
|
415 |
}
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
/**
|
421 |
-
* Return an array of the current DNT modes
|
422 |
-
*
|
423 |
-
* @since 1.0.0
|
424 |
-
*/
|
425 |
-
function mtphr_dnt_modes_array() {
|
426 |
-
|
427 |
-
/* Create the modes array. */
|
428 |
-
$dnt_modes_array = array();
|
429 |
-
$dnt_modes_array['scroll'] = array(
|
430 |
-
'button' => __('Scroll', 'ditty-news-ticker'),
|
431 |
-
'metaboxes' => array( 'mtphr_dnt_mode_scroll' )
|
432 |
-
);
|
433 |
-
$dnt_modes_array['rotate'] = array(
|
434 |
-
'button' => __('Rotate', 'ditty-news-ticker'),
|
435 |
-
'metaboxes' => array( 'mtphr_dnt_mode_rotate' )
|
436 |
-
);
|
437 |
-
$dnt_modes_array['list'] = array(
|
438 |
-
'button' => __('List', 'ditty-news-ticker'),
|
439 |
-
'metaboxes' => array( 'mtphr_dnt_mode_list' )
|
440 |
-
);
|
441 |
-
|
442 |
-
return apply_filters('mtphr_dnt_modes', $dnt_modes_array);
|
443 |
}
|
444 |
|
445 |
|
446 |
|
447 |
-
|
448 |
/**
|
449 |
* Return an array of the current DNT settings
|
450 |
*
|
22 |
/**
|
23 |
* Return the ticker
|
24 |
*
|
25 |
+
* @since 1.3.0
|
26 |
*/
|
27 |
function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
|
28 |
|
53 |
// Extract the metadata array into variables
|
54 |
extract( $meta_data );
|
55 |
|
56 |
+
if( $_mtphr_dnt_type == 'mixed' ) {
|
57 |
+
$dnt_ticks = mtphr_dnt_mixed_ticks( $id, $meta_data );
|
58 |
+
} else {
|
59 |
+
$dnt_ticks = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
|
|
|
|
|
|
|
62 |
ob_start();
|
63 |
|
64 |
// Create the opening div
|
139 |
}
|
140 |
$total = count($dnt_ticks);
|
141 |
foreach( $dnt_ticks as $i => $tick ) {
|
142 |
+
|
143 |
+
$type = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['type'] : $_mtphr_dnt_type;
|
144 |
+
$tick = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['tick'] : $tick;
|
145 |
|
146 |
// Set the list spacing depending on the tick position
|
147 |
if( $_mtphr_dnt_mode == 'list' ) {
|
151 |
$tick_style = ( $width != '' || $height != '' || $spacing != '' ) ? ' style="'.$width.$height.$spacing.'"' : '';
|
152 |
|
153 |
do_action( 'mtphr_dnt_tick_before', $id, $meta_data, $total, $i );
|
154 |
+
echo '<div'.$tick_style.' '.mtphr_dnt_tick_class('mtphr-dnt-'.$type.'-tick mtphr-dnt-clearfix').'>';
|
155 |
do_action( 'mtphr_dnt_tick_top', $id, $meta_data );
|
156 |
|
157 |
echo $tick;
|
263 |
|
264 |
|
265 |
|
266 |
+
/* --------------------------------------------------------- */
|
267 |
+
/* !Create the default ticks - 1.3.0 */
|
268 |
+
/* --------------------------------------------------------- */
|
269 |
|
270 |
+
function mtphr_dnt_default_ticks( $ticks, $id, $meta_data ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
|
272 |
+
if( $meta_data['_mtphr_dnt_type'] == 'default' ) {
|
273 |
|
274 |
+
// Create an empty array to save ticks
|
275 |
+
$new_ticks = array();
|
276 |
|
277 |
+
// Get the ticks
|
278 |
+
if( isset($meta_data['_mtphr_dnt_ticks']) && is_array($meta_data['_mtphr_dnt_ticks']) ) {
|
279 |
+
foreach( $meta_data['_mtphr_dnt_ticks'] as $i => $tick ) {
|
280 |
|
281 |
+
if( $text = $tick['tick'] ) {
|
282 |
+
if( isset($meta_data['_mtphr_dnt_line_breaks']) && $meta_data['_mtphr_dnt_line_breaks'] ) {
|
283 |
+
$text = nl2br($tick['tick']);
|
284 |
+
}
|
285 |
+
//$text = wp_kses_post($text);
|
286 |
+
$text = wpautop(convert_chars(wptexturize($text)));
|
287 |
|
288 |
+
// Get the contents
|
289 |
+
if( $link = esc_url($tick['link']) ) {
|
290 |
+
$nf = ( isset($tick['nofollow']) && $tick['nofollow'] ) ? ' rel="nofollow"' : '';
|
291 |
+
$contents = '<a href="'.$link.'" target="'.$tick['target'].'"'.$nf.'>'.$text.'</a>';
|
292 |
+
} else {
|
293 |
+
$contents = $text;
|
294 |
+
}
|
295 |
+
$contents = apply_filters('mtphr_dnt_tick', $contents, $text, $link );
|
296 |
|
297 |
+
// Save the output to the tick array
|
298 |
+
$new_ticks[] = $contents;
|
299 |
+
}
|
300 |
+
}
|
301 |
}
|
|
|
302 |
|
303 |
+
// Return the new ticks
|
304 |
+
return $new_ticks;
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
}
|
306 |
|
307 |
+
return $ticks;
|
|
|
|
|
308 |
}
|
309 |
+
add_filter( 'mtphr_dnt_tick_array', 'mtphr_dnt_default_ticks', 10, 3 );
|
310 |
|
311 |
|
312 |
|
313 |
+
/* --------------------------------------------------------- */
|
314 |
+
/* !Create the mixed ticks - 1.3.0 */
|
315 |
+
/* --------------------------------------------------------- */
|
316 |
|
317 |
+
if( !function_exists('mtphr_dnt_mixed_ticks') ) {
|
318 |
+
function mtphr_dnt_mixed_ticks( $id, $meta_data ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
|
320 |
+
// Get all active ticker types
|
321 |
+
$types = mtphr_dnt_types_array();
|
322 |
+
|
323 |
+
// Create a cache of the ticks
|
324 |
+
$ticks_cache = array();
|
325 |
+
|
326 |
+
// Create an empty array to save ticks
|
327 |
+
$dnt_ticks = array();
|
328 |
|
329 |
+
// Get the ticks
|
330 |
+
if( isset($meta_data['_mtphr_dnt_mixed_ticks']) && is_array($meta_data['_mtphr_dnt_mixed_ticks']) && count($meta_data['_mtphr_dnt_mixed_ticks']) > 0 ) {
|
331 |
+
foreach( $meta_data['_mtphr_dnt_mixed_ticks'] as $i => $tick ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
|
333 |
+
// Make sure the tick type exists
|
334 |
+
if( array_key_exists( $tick['type'], $types ) && !array_key_exists( $tick['type'], $ticks_cache ) ) {
|
335 |
+
$meta_data['_mtphr_dnt_type'] = $tick['type'];
|
336 |
+
$ticks_cache[$tick['type']] = apply_filters( 'mtphr_dnt_tick_array', array(), $id, $meta_data );
|
337 |
+
}
|
338 |
+
|
339 |
+
// Add the appropriate tick to the tick array
|
340 |
+
if( isset($ticks_cache[$tick['type']][intval($tick['offset'])]) ) {
|
341 |
+
$dnt_ticks[] = array(
|
342 |
+
'type' => $tick['type'],
|
343 |
+
'tick' => $ticks_cache[$tick['type']][intval($tick['offset'])]
|
344 |
+
);
|
345 |
+
}
|
346 |
}
|
347 |
}
|
348 |
|
349 |
+
// Return the new ticks
|
350 |
+
return $dnt_ticks;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
}
|
353 |
|
354 |
|
355 |
|
|
|
356 |
/**
|
357 |
* Return an array of the current DNT settings
|
358 |
*
|
includes/helpers.php
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* --------------------------------------------------------- */
|
4 |
+
/* !Return an array of the current DNT types - 1.0.0 */
|
5 |
+
/* --------------------------------------------------------- */
|
6 |
+
|
7 |
+
if( !function_exists('mtphr_dnt_types_array') ) {
|
8 |
+
function mtphr_dnt_types_array() {
|
9 |
+
|
10 |
+
/* Create the types array. */
|
11 |
+
$dnt_types_array = array();
|
12 |
+
$dnt_types_array['default'] = array(
|
13 |
+
'button' => __('Default', 'ditty-news-ticker'),
|
14 |
+
'metaboxes' => array( 'mtphr_dnt_type_default' )
|
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);
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
/* --------------------------------------------------------- */
|
28 |
+
/* !Return an array of the current DNT modes - 1.0.0 */
|
29 |
+
/* --------------------------------------------------------- */
|
30 |
+
|
31 |
+
if( !function_exists('mtphr_dnt_modes_array') ) {
|
32 |
+
function mtphr_dnt_modes_array() {
|
33 |
+
|
34 |
+
/* Create the modes array. */
|
35 |
+
$dnt_modes_array = array();
|
36 |
+
$dnt_modes_array['scroll'] = array(
|
37 |
+
'button' => __('Scroll', 'ditty-news-ticker'),
|
38 |
+
'metaboxes' => array( 'mtphr_dnt_mode_scroll' )
|
39 |
+
);
|
40 |
+
$dnt_modes_array['rotate'] = array(
|
41 |
+
'button' => __('Rotate', 'ditty-news-ticker'),
|
42 |
+
'metaboxes' => array( 'mtphr_dnt_mode_rotate' )
|
43 |
+
);
|
44 |
+
$dnt_modes_array['list'] = array(
|
45 |
+
'button' => __('List', 'ditty-news-ticker'),
|
46 |
+
'metaboxes' => array( 'mtphr_dnt_mode_list' )
|
47 |
+
);
|
48 |
+
|
49 |
+
return apply_filters('mtphr_dnt_modes', $dnt_modes_array);
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
/* --------------------------------------------------------- */
|
56 |
+
/* !Return the ticker class - 1.0.0 */
|
57 |
+
/* --------------------------------------------------------- */
|
58 |
+
|
59 |
+
if( !function_exists('mtphr_dnt_ticker_class') ) {
|
60 |
+
function mtphr_dnt_ticker_class( $id='', $class='', $meta_data ) {
|
61 |
+
|
62 |
+
return 'class="'.join( ' ', get_mtphr_dnt_ticker_class($id,$class,$meta_data) ).'"';
|
63 |
+
}
|
64 |
+
}
|
65 |
+
|
66 |
+
if( !function_exists('get_mtphr_dnt_ticker_class') ) {
|
67 |
+
function get_mtphr_dnt_ticker_class( $id='', $class='', $meta_data ) {
|
68 |
+
|
69 |
+
// Extract the metadata array into variables
|
70 |
+
extract( $meta_data );
|
71 |
+
|
72 |
+
$classes = array();
|
73 |
+
|
74 |
+
$classes[] = 'mtphr-dnt';
|
75 |
+
$classes[] = 'mtphr-dnt-'.$id;
|
76 |
+
$classes[] = 'mtphr-dnt-'.$_mtphr_dnt_type;
|
77 |
+
$classes[] = 'mtphr-dnt-'.$_mtphr_dnt_mode;
|
78 |
+
|
79 |
+
if( $_mtphr_dnt_mode == 'scroll' ) {
|
80 |
+
$classes[] = 'mtphr-dnt-'.$_mtphr_dnt_mode.'-'.$_mtphr_dnt_scroll_direction;
|
81 |
+
}
|
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) ) {
|
88 |
+
if( $_mtphr_dnt_styled ) {
|
89 |
+
$classes[] = 'mtphr-dnt-styled';
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
if ( !empty( $class ) ) {
|
94 |
+
if ( !is_array( $class ) ) {
|
95 |
+
$class = preg_split( '#\s+#', $class );
|
96 |
+
}
|
97 |
+
$classes = array_merge( $classes, $class );
|
98 |
+
} else {
|
99 |
+
// Ensure that we always coerce class to being an array.
|
100 |
+
$class = array();
|
101 |
+
}
|
102 |
+
|
103 |
+
$classes = array_map( 'esc_attr', $classes );
|
104 |
+
|
105 |
+
return apply_filters( 'mtphr_dnt_ticker_class', $classes, $class );
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
|
110 |
+
|
111 |
+
/* --------------------------------------------------------- */
|
112 |
+
/* !Return the tick class - 1.0.0 */
|
113 |
+
/* --------------------------------------------------------- */
|
114 |
+
|
115 |
+
if( !function_exists('mtphr_dnt_tick_class') ) {
|
116 |
+
function mtphr_dnt_tick_class( $class='' ) {
|
117 |
+
|
118 |
+
// Separates classes with a single space, collates classes for ditty ticker element
|
119 |
+
return 'class="'.join( ' ', get_mtphr_dnt_tick_class($class) ).'"';
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
if( !function_exists('get_mtphr_dnt_tick_class') ) {
|
124 |
+
function get_mtphr_dnt_tick_class( $class='' ) {
|
125 |
+
|
126 |
+
$classes = array();
|
127 |
+
|
128 |
+
$classes[] = 'mtphr-dnt-tick';
|
129 |
+
|
130 |
+
if ( !empty( $class ) ) {
|
131 |
+
if ( !is_array( $class ) ) {
|
132 |
+
$class = preg_split( '#\s+#', $class );
|
133 |
+
}
|
134 |
+
$classes = array_merge( $classes, $class );
|
135 |
+
} else {
|
136 |
+
// Ensure that we always coerce class to being an array.
|
137 |
+
$class = array();
|
138 |
+
}
|
139 |
+
|
140 |
+
$classes = array_map( 'esc_attr', $classes );
|
141 |
+
|
142 |
+
return apply_filters( 'mtphr_dnt_tick_class', $classes, $class );
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
includes/meta-boxes.php
CHANGED
@@ -6,8 +6,6 @@
|
|
6 |
*/
|
7 |
|
8 |
|
9 |
-
|
10 |
-
|
11 |
add_action( 'admin_init', 'mtphr_dnt_metabox_types', 9 );
|
12 |
/**
|
13 |
* Create the types metabox.
|
@@ -562,6 +560,135 @@ function mtphr_dnt_display_metabox() {
|
|
562 |
|
563 |
|
564 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
|
566 |
|
567 |
|
6 |
*/
|
7 |
|
8 |
|
|
|
|
|
9 |
add_action( 'admin_init', 'mtphr_dnt_metabox_types', 9 );
|
10 |
/**
|
11 |
* Create the types metabox.
|
560 |
|
561 |
|
562 |
|
563 |
+
/* --------------------------------------------------------- */
|
564 |
+
/* !Add the mixed type metabox - 1.3.0 */
|
565 |
+
/* --------------------------------------------------------- */
|
566 |
+
|
567 |
+
function mtphr_dnt_mixed_metabox() {
|
568 |
+
|
569 |
+
add_meta_box( 'mtphr_dnt_mixed_metabox', __('Mixed Ticker Items', 'ditty-news-ticker'), 'mtphr_dnt_mixed_render_metabox', 'ditty_news_ticker', 'normal', 'high' );
|
570 |
+
}
|
571 |
+
add_action( 'add_meta_boxes', 'mtphr_dnt_mixed_metabox' );
|
572 |
+
|
573 |
+
|
574 |
+
|
575 |
+
/* --------------------------------------------------------- */
|
576 |
+
/* !Render the mixed type metabox - 1.3.0 */
|
577 |
+
/* --------------------------------------------------------- */
|
578 |
+
|
579 |
+
function mtphr_dnt_mixed_render_metabox() {
|
580 |
+
|
581 |
+
global $post;
|
582 |
+
|
583 |
+
$ticks = get_post_meta( $post->ID, '_mtphr_dnt_mixed_ticks', true );
|
584 |
+
$types = mtphr_dnt_types_array();
|
585 |
+
unset($types['mixed']);
|
586 |
+
|
587 |
+
//echo '<pre>';print_r($ticks);echo '</pre>';
|
588 |
+
|
589 |
+
echo '<input type="hidden" name="mtphr_dnt_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';
|
590 |
+
|
591 |
+
echo '<a href="#" id="mtphr-dnt-mixed-add-tick" class="button-primary">'.__('Add Tick', 'ditty-news-ticker').'</a><span class="spinner mtphr-dnt-add-spinner"></span>';
|
592 |
+
|
593 |
+
echo '<table class="mtphr-dnt-table">';
|
594 |
+
|
595 |
+
echo '<tr>';
|
596 |
+
echo '<td class="mtphr-dnt-label">';
|
597 |
+
echo '<label>'.__('Tick selection', 'ditty-news-ticker').'</label>';
|
598 |
+
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>';
|
599 |
+
echo '</td>';
|
600 |
+
echo '<td>';
|
601 |
+
echo '<table class="mtphr-dnt-list mtphr-dnt-mixed-list" style="width:auto;">';
|
602 |
+
if( is_array($ticks) && count($ticks) > 0 ) {
|
603 |
+
foreach( $ticks as $i=>$tick ) {
|
604 |
+
mtphr_dnt_render_mixed_tick( $types, $tick, $i );
|
605 |
+
}
|
606 |
+
}
|
607 |
+
echo '</table>';
|
608 |
+
echo '</td>';
|
609 |
+
echo '</tr>';
|
610 |
+
|
611 |
+
echo '</table>';
|
612 |
+
}
|
613 |
+
|
614 |
+
function mtphr_dnt_render_mixed_tick( $types, $tick=false, $i=false ) {
|
615 |
+
|
616 |
+
$tick_type = ( isset($tick) && isset($tick['type']) ) ? $tick['type'] : '';
|
617 |
+
$tick_offset = ( isset($tick) && isset($tick['offset']) ) ? $tick['offset'] : 0;
|
618 |
+
|
619 |
+
echo '<tr class="mtphr-dnt-list-item">';
|
620 |
+
echo '<td class="mtphr-dnt-list-handle"><span></span></td>';
|
621 |
+
echo '<td class="mtphr-dnt-mixed-type">';
|
622 |
+
echo '<label style="margin-right:10px;"><strong>'.__('Type:', 'ditty-news-ticker').'</strong> ';
|
623 |
+
echo '<select name="_mtphr_dnt_mixed_ticks[type]" key="type">';
|
624 |
+
echo '<option value="">-- '.__('Select Tick Type', 'ditty-news-ticker').' --</option>';
|
625 |
+
foreach( $types as $i=>$type ) {
|
626 |
+
echo '<option value="'.$i.'" '.selected($i, $tick_type, false).'>'.$type['button'].'</option>';
|
627 |
+
}
|
628 |
+
echo '</select>';
|
629 |
+
echo '</label>';
|
630 |
+
echo '</td>';
|
631 |
+
echo '<td>';
|
632 |
+
echo '<label><strong>'.__('Offset:', 'ditty-news-ticker').'</strong> ';
|
633 |
+
echo '<input type="number" name="_mtphr_dnt_mixed_ticks[offset]" key="offset" value="'.$tick_offset.'" />';
|
634 |
+
echo '</label>';
|
635 |
+
echo '</td>';
|
636 |
+
echo '<td class="mtphr-dnt-list-delete"><a href="#"></a></td>';
|
637 |
+
echo '</tr>';
|
638 |
+
}
|
639 |
+
|
640 |
+
|
641 |
+
|
642 |
+
/* --------------------------------------------------------- */
|
643 |
+
/* !Save the custom meta - 1.0.5 */
|
644 |
+
/* --------------------------------------------------------- */
|
645 |
+
|
646 |
+
function mtphr_dnt_metabox_save( $post_id ) {
|
647 |
+
|
648 |
+
global $post;
|
649 |
+
|
650 |
+
// verify nonce
|
651 |
+
if (!isset($_POST['mtphr_dnt_nonce']) || !wp_verify_nonce($_POST['mtphr_dnt_nonce'], basename(__FILE__))) {
|
652 |
+
return $post_id;
|
653 |
+
}
|
654 |
+
|
655 |
+
// check autosave
|
656 |
+
if ( (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) || ( defined('DOING_AJAX') && DOING_AJAX) || isset($_REQUEST['bulk_edit']) ) return $post_id;
|
657 |
+
|
658 |
+
// don't save if only a revision
|
659 |
+
if ( isset($post->post_type) && $post->post_type == 'revision' ) return $post_id;
|
660 |
+
|
661 |
+
// check permissions
|
662 |
+
if (isset($_POST['post_type']) && 'page' == $_POST['post_type']) {
|
663 |
+
if (!current_user_can('edit_page', $post_id)) {
|
664 |
+
return $post_id;
|
665 |
+
}
|
666 |
+
} elseif (!current_user_can('edit_post', $post_id)) {
|
667 |
+
return $post_id;
|
668 |
+
}
|
669 |
+
|
670 |
+
|
671 |
+
// Delete & save the mixed ticks
|
672 |
+
delete_post_meta( $post_id, '_mtphr_dnt_mixed_ticks' );
|
673 |
+
if( isset($_POST['_mtphr_dnt_mixed_ticks']) && count($_POST['_mtphr_dnt_mixed_ticks']) > 0 ) {
|
674 |
+
|
675 |
+
$sanitized_ticks = array();
|
676 |
+
foreach( $_POST['_mtphr_dnt_mixed_ticks'] as $tick ) {
|
677 |
+
$sanitized_ticks[] = array(
|
678 |
+
'type' => $tick['type'],
|
679 |
+
'offset' => intval($tick['offset'])
|
680 |
+
);
|
681 |
+
}
|
682 |
+
update_post_meta( $post_id, '_mtphr_dnt_mixed_ticks', $sanitized_ticks );
|
683 |
+
}
|
684 |
+
}
|
685 |
+
add_action( 'save_post', 'mtphr_dnt_metabox_save' );
|
686 |
+
|
687 |
+
|
688 |
+
|
689 |
+
|
690 |
+
|
691 |
+
|
692 |
|
693 |
|
694 |
|
includes/scripts.php
CHANGED
@@ -12,7 +12,7 @@ add_action( 'admin_enqueue_scripts', 'mtphr_dnt_admin_scripts' );
|
|
12 |
/**
|
13 |
* Load the metaboxer scripts
|
14 |
*
|
15 |
-
* @since 1.
|
16 |
*/
|
17 |
function mtphr_dnt_admin_scripts( $hook ) {
|
18 |
|
@@ -46,11 +46,18 @@ function mtphr_dnt_admin_scripts( $hook ) {
|
|
46 |
'security' => wp_create_nonce( 'ditty-metaboxer' )
|
47 |
)
|
48 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
// Load the plugin css
|
52 |
-
wp_register_style( '
|
53 |
-
wp_enqueue_style( '
|
54 |
}
|
55 |
|
56 |
|
@@ -102,7 +109,7 @@ add_action( 'wp_footer', 'mtphr_dnt_tickers_init_scripts', 20 );
|
|
102 |
/**
|
103 |
* Initialize the ticker scriptinos
|
104 |
*
|
105 |
-
* @since 1.
|
106 |
*/
|
107 |
function mtphr_dnt_tickers_init_scripts() {
|
108 |
|
@@ -111,10 +118,19 @@ function mtphr_dnt_tickers_init_scripts() {
|
|
111 |
wp_print_scripts('touchSwipe');
|
112 |
wp_print_scripts('jquery-easing');
|
113 |
wp_print_scripts('ditty-news-ticker');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
?>
|
115 |
<script>
|
116 |
jQuery( window ).load( function() {
|
117 |
-
<?php foreach( $
|
118 |
jQuery( '<?php echo $ticker['ticker']; ?>' ).ditty_news_ticker({
|
119 |
id : '<?php echo $ticker['id']; ?>',
|
120 |
type : '<?php echo $ticker['type']; ?>',
|
@@ -132,13 +148,13 @@ function mtphr_dnt_tickers_init_scripts() {
|
|
132 |
nav_reverse : <?php echo $ticker['nav_reverse']; ?>,
|
133 |
offset : <?php echo $ticker['offset']; ?>,
|
134 |
after_load : function( $ticker ) {
|
135 |
-
<?php echo apply_filters( 'mtphr_dnt_after_load_rotate'
|
136 |
},
|
137 |
before_change : function( $ticker ) {
|
138 |
-
<?php echo apply_filters( 'mtphr_dnt_before_change_rotate'
|
139 |
},
|
140 |
after_change : function( $ticker ) {
|
141 |
-
<?php echo apply_filters( 'mtphr_dnt_after_change_rotate'
|
142 |
}
|
143 |
});
|
144 |
<?php } ?>
|
12 |
/**
|
13 |
* Load the metaboxer scripts
|
14 |
*
|
15 |
+
* @since 1.3.0
|
16 |
*/
|
17 |
function mtphr_dnt_admin_scripts( $hook ) {
|
18 |
|
46 |
'security' => wp_create_nonce( 'ditty-metaboxer' )
|
47 |
)
|
48 |
);
|
49 |
+
|
50 |
+
wp_register_script( 'ditty-news-ticker', MTPHR_DNT_URL.'/assets/js/script-admin.js', array( 'jquery','jquery-ui-core','jquery-ui-sortable' ), MTPHR_DNT_VERSION, true );
|
51 |
+
wp_enqueue_script( 'ditty-news-ticker' );
|
52 |
+
wp_localize_script( 'ditty-news-ticker', 'ditty_news_ticker_vars', array(
|
53 |
+
'security' => wp_create_nonce( 'ditty-news-ticker' )
|
54 |
+
)
|
55 |
+
);
|
56 |
}
|
57 |
|
58 |
// Load the plugin css
|
59 |
+
wp_register_style( 'ditty-news-ticker', MTPHR_DNT_URL.'/assets/css/style-admin.css', false, MTPHR_DNT_VERSION );
|
60 |
+
wp_enqueue_style( 'ditty-news-ticker' );
|
61 |
}
|
62 |
|
63 |
|
109 |
/**
|
110 |
* Initialize the ticker scriptinos
|
111 |
*
|
112 |
+
* @since 1.3.0
|
113 |
*/
|
114 |
function mtphr_dnt_tickers_init_scripts() {
|
115 |
|
118 |
wp_print_scripts('touchSwipe');
|
119 |
wp_print_scripts('jquery-easing');
|
120 |
wp_print_scripts('ditty-news-ticker');
|
121 |
+
|
122 |
+
$filtered_tickers = array();
|
123 |
+
$id_array = array();
|
124 |
+
foreach ( $mtphr_dnt_ticker_scripts as $ticker) {
|
125 |
+
if (!in_array($ticker['id'], $id_array)) {
|
126 |
+
$id_array[] = $ticker['id'];
|
127 |
+
$filtered_tickers[] = $ticker;
|
128 |
+
}
|
129 |
+
}
|
130 |
?>
|
131 |
<script>
|
132 |
jQuery( window ).load( function() {
|
133 |
+
<?php foreach( $filtered_tickers as $ticker ) { ?>
|
134 |
jQuery( '<?php echo $ticker['ticker']; ?>' ).ditty_news_ticker({
|
135 |
id : '<?php echo $ticker['id']; ?>',
|
136 |
type : '<?php echo $ticker['type']; ?>',
|
148 |
nav_reverse : <?php echo $ticker['nav_reverse']; ?>,
|
149 |
offset : <?php echo $ticker['offset']; ?>,
|
150 |
after_load : function( $ticker ) {
|
151 |
+
<?php echo apply_filters( 'mtphr_dnt_after_load_rotate', $ticker['id'] ); ?>
|
152 |
},
|
153 |
before_change : function( $ticker ) {
|
154 |
+
<?php echo apply_filters( 'mtphr_dnt_before_change_rotate', $ticker['id'] ); ?>
|
155 |
},
|
156 |
after_change : function( $ticker ) {
|
157 |
+
<?php echo apply_filters( 'mtphr_dnt_after_change_rotate', $ticker['id'] ); ?>
|
158 |
}
|
159 |
});
|
160 |
<?php } ?>
|
languages/ditty-news-ticker-en_US.mo
CHANGED
Binary file
|
languages/ditty-news-ticker-en_US.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Ditty News Ticker v1.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: admin <joe@metaphorcreations.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -31,7 +31,7 @@ msgid "Mode"
|
|
31 |
msgstr "Mode"
|
32 |
|
33 |
#: includes/edit-columns.php:25
|
34 |
-
#: includes/meta-boxes.php:
|
35 |
#@ ditty-news-ticker
|
36 |
msgid "Shortcode"
|
37 |
msgstr "Shortcode"
|
@@ -41,22 +41,22 @@ msgstr "Shortcode"
|
|
41 |
msgid "Direct Function"
|
42 |
msgstr "Direct Function"
|
43 |
|
44 |
-
#: includes/
|
45 |
#@ ditty-news-ticker
|
46 |
msgid "Default"
|
47 |
msgstr "Default"
|
48 |
|
49 |
-
#: includes/
|
50 |
#@ ditty-news-ticker
|
51 |
msgid "Scroll"
|
52 |
msgstr "Scroll"
|
53 |
|
54 |
-
#: includes/
|
55 |
#@ ditty-news-ticker
|
56 |
msgid "Rotate"
|
57 |
msgstr "Rotate"
|
58 |
|
59 |
-
#: includes/
|
60 |
#@ ditty-news-ticker
|
61 |
msgid "List"
|
62 |
msgstr "List"
|
@@ -112,354 +112,354 @@ msgstr "Add rotate mode info."
|
|
112 |
msgid "Add list mode info."
|
113 |
msgstr "Add list mode info."
|
114 |
|
115 |
-
#: includes/meta-boxes.php:
|
116 |
#@ ditty-news-ticker
|
117 |
msgid "Ticker Type"
|
118 |
msgstr "Ticker Type"
|
119 |
|
120 |
-
#: includes/meta-boxes.php:
|
121 |
#@ ditty-news-ticker
|
122 |
msgid "View all types"
|
123 |
msgstr "View all types"
|
124 |
|
125 |
-
#: includes/meta-boxes.php:
|
126 |
#@ ditty-news-ticker
|
127 |
msgid "Ticker text"
|
128 |
msgstr "Ticker text"
|
129 |
|
130 |
-
#: includes/meta-boxes.php:
|
131 |
#@ ditty-news-ticker
|
132 |
msgid "Link"
|
133 |
msgstr "Link"
|
134 |
|
135 |
-
#: includes/meta-boxes.php:
|
136 |
#@ ditty-news-ticker
|
137 |
msgid "Target"
|
138 |
msgstr "Target"
|
139 |
|
140 |
-
#: includes/meta-boxes.php:
|
141 |
#@ ditty-news-ticker
|
142 |
msgid "Default Ticker Items"
|
143 |
msgstr "Default Ticker Items"
|
144 |
|
145 |
-
#: includes/meta-boxes.php:
|
146 |
#@ ditty-news-ticker
|
147 |
msgid "Ticker Mode"
|
148 |
msgstr "Ticker Mode"
|
149 |
|
150 |
-
#: includes/meta-boxes.php:
|
151 |
#@ ditty-news-ticker
|
152 |
msgid "Scroll direction"
|
153 |
msgstr "Scroll direction"
|
154 |
|
155 |
-
#: includes/meta-boxes.php:
|
156 |
#@ ditty-news-ticker
|
157 |
msgid "Left"
|
158 |
msgstr "Left"
|
159 |
|
160 |
-
#: includes/meta-boxes.php:
|
161 |
#@ ditty-news-ticker
|
162 |
msgid "Right"
|
163 |
msgstr "Right"
|
164 |
|
165 |
-
#: includes/meta-boxes.php:
|
166 |
#@ ditty-news-ticker
|
167 |
msgid "Up"
|
168 |
msgstr "Up"
|
169 |
|
170 |
-
#: includes/meta-boxes.php:
|
171 |
#@ ditty-news-ticker
|
172 |
msgid "Down"
|
173 |
msgstr "Down"
|
174 |
|
175 |
-
#: includes/meta-boxes.php:
|
176 |
#@ ditty-news-ticker
|
177 |
msgid "Set the scroll direction of the ticker."
|
178 |
msgstr "Set the scroll direction of the ticker."
|
179 |
|
180 |
-
#: includes/meta-boxes.php:
|
181 |
-
#: includes/meta-boxes.php:
|
182 |
#@ ditty-news-ticker
|
183 |
msgid "Tick dimensions"
|
184 |
msgstr "Tick dimensions"
|
185 |
|
186 |
-
#: includes/meta-boxes.php:
|
187 |
#@ ditty-news-ticker
|
188 |
msgid "Width"
|
189 |
msgstr "Width"
|
190 |
|
191 |
-
#: includes/meta-boxes.php:
|
192 |
-
#: includes/meta-boxes.php:
|
193 |
#@ ditty-news-ticker
|
194 |
msgid "Override the auto dimensions with specific values."
|
195 |
msgstr "Override the auto dimensions with specific values."
|
196 |
|
197 |
-
#: includes/meta-boxes.php:
|
198 |
-
#: includes/meta-boxes.php:
|
199 |
#@ ditty-news-ticker
|
200 |
msgid "Height"
|
201 |
msgstr "Height"
|
202 |
|
203 |
-
#: includes/meta-boxes.php:
|
204 |
#@ ditty-news-ticker
|
205 |
msgid "Scroller padding"
|
206 |
msgstr "Scroller padding"
|
207 |
|
208 |
-
#: includes/meta-boxes.php:
|
209 |
-
#: includes/meta-boxes.php:
|
210 |
-
#: includes/meta-boxes.php:
|
211 |
#@ ditty-news-ticker
|
212 |
msgid "Vertical padding"
|
213 |
msgstr "Vertical padding"
|
214 |
|
215 |
-
#: includes/meta-boxes.php:
|
216 |
#@ ditty-news-ticker
|
217 |
msgid "Set the vertical spacing of the scrolling data."
|
218 |
msgstr "Set the vertical spacing of the scrolling data."
|
219 |
|
220 |
-
#: includes/meta-boxes.php:
|
221 |
-
#: includes/meta-boxes.php:
|
222 |
-
#: includes/meta-boxes.php:
|
223 |
#@ ditty-news-ticker
|
224 |
msgid "Vertical margin"
|
225 |
msgstr "Vertical margin"
|
226 |
|
227 |
-
#: includes/meta-boxes.php:
|
228 |
#@ ditty-news-ticker
|
229 |
msgid "Scroll speed"
|
230 |
msgstr "Scroll speed"
|
231 |
|
232 |
-
#: includes/meta-boxes.php:
|
233 |
#@ ditty-news-ticker
|
234 |
msgid "Set the speed of the scrolling data."
|
235 |
msgstr "Set the speed of the scrolling data."
|
236 |
|
237 |
-
#: includes/meta-boxes.php:
|
238 |
-
#: includes/meta-boxes.php:
|
239 |
#@ ditty-news-ticker
|
240 |
msgid "Pause on mouse over"
|
241 |
msgstr "Pause on mouse over"
|
242 |
|
243 |
-
#: includes/meta-boxes.php:
|
244 |
-
#: includes/meta-boxes.php:
|
245 |
#@ ditty-news-ticker
|
246 |
msgid "Tick spacing"
|
247 |
msgstr "Tick spacing"
|
248 |
|
249 |
-
#: includes/meta-boxes.php:
|
250 |
-
#: includes/meta-boxes.php:
|
251 |
#@ ditty-news-ticker
|
252 |
msgid "Pixels"
|
253 |
msgstr "Pixels"
|
254 |
|
255 |
-
#: includes/meta-boxes.php:
|
256 |
#@ ditty-news-ticker
|
257 |
msgid "Set the spacing between scrolling data."
|
258 |
msgstr "Set the spacing between scrolling data."
|
259 |
|
260 |
-
#: includes/meta-boxes.php:
|
261 |
#@ ditty-news-ticker
|
262 |
msgid "Scroll Settings"
|
263 |
msgstr "Scroll Settings"
|
264 |
|
265 |
-
#: includes/meta-boxes.php:
|
266 |
#@ ditty-news-ticker
|
267 |
msgid "Rotation type"
|
268 |
msgstr "Rotation type"
|
269 |
|
270 |
-
#: includes/meta-boxes.php:
|
271 |
#@ ditty-news-ticker
|
272 |
msgid "Fade"
|
273 |
msgstr "Fade"
|
274 |
|
275 |
-
#: includes/meta-boxes.php:
|
276 |
#@ ditty-news-ticker
|
277 |
msgid "Slide left"
|
278 |
msgstr "Slide left"
|
279 |
|
280 |
-
#: includes/meta-boxes.php:
|
281 |
#@ ditty-news-ticker
|
282 |
msgid "Slide right"
|
283 |
msgstr "Slide right"
|
284 |
|
285 |
-
#: includes/meta-boxes.php:
|
286 |
#@ ditty-news-ticker
|
287 |
msgid "Slide up"
|
288 |
msgstr "Slide up"
|
289 |
|
290 |
-
#: includes/meta-boxes.php:
|
291 |
#@ ditty-news-ticker
|
292 |
msgid "Slide down"
|
293 |
msgstr "Slide down"
|
294 |
|
295 |
-
#: includes/meta-boxes.php:
|
296 |
#@ ditty-news-ticker
|
297 |
msgid "Set the type of rotation for the ticker."
|
298 |
msgstr "Set the type of rotation for the ticker."
|
299 |
|
300 |
-
#: includes/meta-boxes.php:
|
301 |
#@ ditty-news-ticker
|
302 |
msgid "Dynamic slide direction"
|
303 |
msgstr "Dynamic slide direction"
|
304 |
|
305 |
-
#: includes/meta-boxes.php:
|
306 |
#@ ditty-news-ticker
|
307 |
msgid "Rotator padding"
|
308 |
msgstr "Rotator padding"
|
309 |
|
310 |
-
#: includes/meta-boxes.php:
|
311 |
#@ ditty-news-ticker
|
312 |
msgid "Set the vertical spacing of the rotating data."
|
313 |
msgstr "Set the vertical spacing of the rotating data."
|
314 |
|
315 |
-
#: includes/meta-boxes.php:
|
316 |
#@ ditty-news-ticker
|
317 |
msgid "Auto rotate"
|
318 |
msgstr "Auto rotate"
|
319 |
|
320 |
-
#: includes/meta-boxes.php:
|
321 |
-
#: includes/meta-boxes.php:
|
322 |
-
#: includes/meta-boxes.php:
|
323 |
#@ ditty-news-ticker
|
324 |
msgid "Enable"
|
325 |
msgstr "Enable"
|
326 |
|
327 |
-
#: includes/meta-boxes.php:
|
328 |
#@ ditty-news-ticker
|
329 |
msgid "Set the delay between rotations."
|
330 |
msgstr "Set the delay between rotations."
|
331 |
|
332 |
-
#: includes/meta-boxes.php:
|
333 |
#@ ditty-news-ticker
|
334 |
msgid "Seconds delay"
|
335 |
msgstr "Seconds delay"
|
336 |
|
337 |
-
#: includes/meta-boxes.php:
|
338 |
#@ ditty-news-ticker
|
339 |
msgid "Rotate speed"
|
340 |
msgstr "Rotate speed"
|
341 |
|
342 |
-
#: includes/meta-boxes.php:
|
343 |
#@ ditty-news-ticker
|
344 |
msgid "Tenths of a second"
|
345 |
msgstr "Tenths of a second"
|
346 |
|
347 |
-
#: includes/meta-boxes.php:
|
348 |
#@ ditty-news-ticker
|
349 |
msgid "Set the speed & easing of the rotation."
|
350 |
msgstr "Set the speed & easing of the rotation."
|
351 |
|
352 |
-
#: includes/meta-boxes.php:
|
353 |
#@ ditty-news-ticker
|
354 |
msgid "Directional navigation"
|
355 |
msgstr "Directional navigation"
|
356 |
|
357 |
-
#: includes/meta-boxes.php:
|
358 |
#@ ditty-news-ticker
|
359 |
msgid "Set the directional navigation options."
|
360 |
msgstr "Set the directional navigation options."
|
361 |
|
362 |
-
#: includes/meta-boxes.php:
|
363 |
#@ ditty-news-ticker
|
364 |
msgid "Autohide navigation"
|
365 |
msgstr "Autohide navigation"
|
366 |
|
367 |
-
#: includes/meta-boxes.php:
|
368 |
#@ ditty-news-ticker
|
369 |
msgid "Control navigation"
|
370 |
msgstr "Control navigation"
|
371 |
|
372 |
-
#: includes/meta-boxes.php:
|
373 |
#@ ditty-news-ticker
|
374 |
msgid "Set the control navigation options."
|
375 |
msgstr "Set the control navigation options."
|
376 |
|
377 |
-
#: includes/meta-boxes.php:
|
378 |
#@ ditty-news-ticker
|
379 |
msgid "Numbers"
|
380 |
msgstr "Numbers"
|
381 |
|
382 |
-
#: includes/meta-boxes.php:
|
383 |
#@ ditty-news-ticker
|
384 |
msgid "Buttons"
|
385 |
msgstr "Buttons"
|
386 |
|
387 |
-
#: includes/meta-boxes.php:
|
388 |
#@ ditty-news-ticker
|
389 |
msgid "Rotate Settings"
|
390 |
msgstr "Rotate Settings"
|
391 |
|
392 |
-
#: includes/meta-boxes.php:
|
393 |
#@ ditty-news-ticker
|
394 |
msgid "List padding"
|
395 |
msgstr "List padding"
|
396 |
|
397 |
-
#: includes/meta-boxes.php:
|
398 |
#@ ditty-news-ticker
|
399 |
msgid "Set the vertical spacing of the list container."
|
400 |
msgstr "Set the vertical spacing of the list container."
|
401 |
|
402 |
-
#: includes/meta-boxes.php:
|
403 |
#@ ditty-news-ticker
|
404 |
msgid "Set the spacing between ticks."
|
405 |
msgstr "Set the spacing between ticks."
|
406 |
|
407 |
-
#: includes/meta-boxes.php:
|
408 |
#@ ditty-news-ticker
|
409 |
msgid "List Settings"
|
410 |
msgstr "List Settings"
|
411 |
|
412 |
-
#: includes/meta-boxes.php:
|
413 |
#@ ditty-news-ticker
|
414 |
msgid "Display title"
|
415 |
msgstr "Display title"
|
416 |
|
417 |
-
#: includes/meta-boxes.php:
|
418 |
#@ ditty-news-ticker
|
419 |
msgid "Inline title"
|
420 |
msgstr "Inline title"
|
421 |
|
422 |
-
#: includes/meta-boxes.php:
|
423 |
#@ ditty-news-ticker
|
424 |
msgid "Ticker width <em>(optional)</em>"
|
425 |
msgstr "Ticker width <em>(optional)</em>"
|
426 |
|
427 |
-
#: includes/meta-boxes.php:
|
428 |
#@ ditty-news-ticker
|
429 |
msgid "Override the auto width a with specific value."
|
430 |
msgstr "Override the auto width a with specific value."
|
431 |
|
432 |
-
#: includes/meta-boxes.php:
|
433 |
#@ ditty-news-ticker
|
434 |
msgid "Global Settings"
|
435 |
msgstr "Global Settings"
|
436 |
|
437 |
-
#: includes/meta-boxes.php:
|
438 |
#@ ditty-news-ticker
|
439 |
msgid "Select Shortcode"
|
440 |
msgstr "Select Shortcode"
|
441 |
|
442 |
-
#: includes/meta-boxes.php:
|
443 |
#@ ditty-news-ticker
|
444 |
msgid "Use this shortcode to insert the ticker into a post/page."
|
445 |
msgstr "Use this shortcode to insert the ticker into a post/page."
|
446 |
|
447 |
-
#: includes/meta-boxes.php:
|
448 |
#@ ditty-news-ticker
|
449 |
msgid "Direct function"
|
450 |
msgstr "Direct function"
|
451 |
|
452 |
-
#: includes/meta-boxes.php:
|
453 |
#@ ditty-news-ticker
|
454 |
msgid "Select Function"
|
455 |
msgstr "Select Function"
|
456 |
|
457 |
-
#: includes/meta-boxes.php:
|
458 |
#@ ditty-news-ticker
|
459 |
msgid "Place this code directly into your theme to display the ticker."
|
460 |
msgstr "Place this code directly into your theme to display the ticker."
|
461 |
|
462 |
-
#: includes/meta-boxes.php:
|
463 |
#@ ditty-news-ticker
|
464 |
msgid "Ticker Display"
|
465 |
msgstr "Ticker Display"
|
@@ -571,7 +571,7 @@ msgstr "Display Ticker Title?"
|
|
571 |
msgid "View DNT extensions"
|
572 |
msgstr "View DNT extensions"
|
573 |
|
574 |
-
#: includes/meta-boxes.php:
|
575 |
#@ ditty-news-ticker
|
576 |
msgid "NF"
|
577 |
msgstr "NF"
|
@@ -581,27 +581,27 @@ msgstr "NF"
|
|
581 |
msgid "The global settings to your news tickers."
|
582 |
msgstr "The global settings to your news tickers."
|
583 |
|
584 |
-
#: includes/meta-boxes.php:
|
585 |
#@ ditty-news-ticker
|
586 |
msgid "Show first tick on init"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: includes/meta-boxes.php:
|
590 |
#@ ditty-news-ticker
|
591 |
msgid "Randomly shuffle the ticks"
|
592 |
msgstr ""
|
593 |
|
594 |
-
#: includes/meta-boxes.php:
|
595 |
#@ ditty-news-ticker
|
596 |
msgid "Offset ticks"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: includes/meta-boxes.php:
|
600 |
#@ ditty-news-ticker
|
601 |
msgid "px from the edge"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: includes/meta-boxes.php:
|
605 |
#@ ditty-news-ticker
|
606 |
msgid "The amount of pixels ticks should start and end off the screen."
|
607 |
msgstr ""
|
@@ -621,8 +621,48 @@ msgstr ""
|
|
621 |
msgid "*The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after resaving the ticker."
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: includes/meta-boxes.php:
|
625 |
#@ ditty-news-ticker
|
626 |
msgid "Force line breaks on carriage returns"
|
627 |
msgstr ""
|
628 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Ditty News Ticker v1.3.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2013-12-04 21:31:19+0000\n"
|
7 |
"Last-Translator: admin <joe@metaphorcreations.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
31 |
msgstr "Mode"
|
32 |
|
33 |
#: includes/edit-columns.php:25
|
34 |
+
#: includes/meta-boxes.php:533
|
35 |
#@ ditty-news-ticker
|
36 |
msgid "Shortcode"
|
37 |
msgstr "Shortcode"
|
41 |
msgid "Direct Function"
|
42 |
msgstr "Direct Function"
|
43 |
|
44 |
+
#: includes/helpers.php:13
|
45 |
#@ ditty-news-ticker
|
46 |
msgid "Default"
|
47 |
msgstr "Default"
|
48 |
|
49 |
+
#: includes/helpers.php:37
|
50 |
#@ ditty-news-ticker
|
51 |
msgid "Scroll"
|
52 |
msgstr "Scroll"
|
53 |
|
54 |
+
#: includes/helpers.php:41
|
55 |
#@ ditty-news-ticker
|
56 |
msgid "Rotate"
|
57 |
msgstr "Rotate"
|
58 |
|
59 |
+
#: includes/helpers.php:45
|
60 |
#@ ditty-news-ticker
|
61 |
msgid "List"
|
62 |
msgstr "List"
|
112 |
msgid "Add list mode info."
|
113 |
msgstr "Add list mode info."
|
114 |
|
115 |
+
#: includes/meta-boxes.php:20
|
116 |
#@ ditty-news-ticker
|
117 |
msgid "Ticker Type"
|
118 |
msgstr "Ticker Type"
|
119 |
|
120 |
+
#: includes/meta-boxes.php:33
|
121 |
#@ ditty-news-ticker
|
122 |
msgid "View all types"
|
123 |
msgstr "View all types"
|
124 |
|
125 |
+
#: includes/meta-boxes.php:62
|
126 |
#@ ditty-news-ticker
|
127 |
msgid "Ticker text"
|
128 |
msgstr "Ticker text"
|
129 |
|
130 |
+
#: includes/meta-boxes.php:68
|
131 |
#@ ditty-news-ticker
|
132 |
msgid "Link"
|
133 |
msgstr "Link"
|
134 |
|
135 |
+
#: includes/meta-boxes.php:72
|
136 |
#@ ditty-news-ticker
|
137 |
msgid "Target"
|
138 |
msgstr "Target"
|
139 |
|
140 |
+
#: includes/meta-boxes.php:102
|
141 |
#@ ditty-news-ticker
|
142 |
msgid "Default Ticker Items"
|
143 |
msgstr "Default Ticker Items"
|
144 |
|
145 |
+
#: includes/meta-boxes.php:136
|
146 |
#@ ditty-news-ticker
|
147 |
msgid "Ticker Mode"
|
148 |
msgstr "Ticker Mode"
|
149 |
|
150 |
+
#: includes/meta-boxes.php:163
|
151 |
#@ ditty-news-ticker
|
152 |
msgid "Scroll direction"
|
153 |
msgstr "Scroll direction"
|
154 |
|
155 |
+
#: includes/meta-boxes.php:165
|
156 |
#@ ditty-news-ticker
|
157 |
msgid "Left"
|
158 |
msgstr "Left"
|
159 |
|
160 |
+
#: includes/meta-boxes.php:166
|
161 |
#@ ditty-news-ticker
|
162 |
msgid "Right"
|
163 |
msgstr "Right"
|
164 |
|
165 |
+
#: includes/meta-boxes.php:167
|
166 |
#@ ditty-news-ticker
|
167 |
msgid "Up"
|
168 |
msgstr "Up"
|
169 |
|
170 |
+
#: includes/meta-boxes.php:168
|
171 |
#@ ditty-news-ticker
|
172 |
msgid "Down"
|
173 |
msgstr "Down"
|
174 |
|
175 |
+
#: includes/meta-boxes.php:171
|
176 |
#@ ditty-news-ticker
|
177 |
msgid "Set the scroll direction of the ticker."
|
178 |
msgstr "Set the scroll direction of the ticker."
|
179 |
|
180 |
+
#: includes/meta-boxes.php:185
|
181 |
+
#: includes/meta-boxes.php:293
|
182 |
#@ ditty-news-ticker
|
183 |
msgid "Tick dimensions"
|
184 |
msgstr "Tick dimensions"
|
185 |
|
186 |
+
#: includes/meta-boxes.php:187
|
187 |
#@ ditty-news-ticker
|
188 |
msgid "Width"
|
189 |
msgstr "Width"
|
190 |
|
191 |
+
#: includes/meta-boxes.php:188
|
192 |
+
#: includes/meta-boxes.php:296
|
193 |
#@ ditty-news-ticker
|
194 |
msgid "Override the auto dimensions with specific values."
|
195 |
msgstr "Override the auto dimensions with specific values."
|
196 |
|
197 |
+
#: includes/meta-boxes.php:193
|
198 |
+
#: includes/meta-boxes.php:295
|
199 |
#@ ditty-news-ticker
|
200 |
msgid "Height"
|
201 |
msgstr "Height"
|
202 |
|
203 |
+
#: includes/meta-boxes.php:202
|
204 |
#@ ditty-news-ticker
|
205 |
msgid "Scroller padding"
|
206 |
msgstr "Scroller padding"
|
207 |
|
208 |
+
#: includes/meta-boxes.php:204
|
209 |
+
#: includes/meta-boxes.php:305
|
210 |
+
#: includes/meta-boxes.php:419
|
211 |
#@ ditty-news-ticker
|
212 |
msgid "Vertical padding"
|
213 |
msgstr "Vertical padding"
|
214 |
|
215 |
+
#: includes/meta-boxes.php:205
|
216 |
#@ ditty-news-ticker
|
217 |
msgid "Set the vertical spacing of the scrolling data."
|
218 |
msgstr "Set the vertical spacing of the scrolling data."
|
219 |
|
220 |
+
#: includes/meta-boxes.php:210
|
221 |
+
#: includes/meta-boxes.php:311
|
222 |
+
#: includes/meta-boxes.php:425
|
223 |
#@ ditty-news-ticker
|
224 |
msgid "Vertical margin"
|
225 |
msgstr "Vertical margin"
|
226 |
|
227 |
+
#: includes/meta-boxes.php:219
|
228 |
#@ ditty-news-ticker
|
229 |
msgid "Scroll speed"
|
230 |
msgstr "Scroll speed"
|
231 |
|
232 |
+
#: includes/meta-boxes.php:221
|
233 |
#@ ditty-news-ticker
|
234 |
msgid "Set the speed of the scrolling data."
|
235 |
msgstr "Set the speed of the scrolling data."
|
236 |
|
237 |
+
#: includes/meta-boxes.php:225
|
238 |
+
#: includes/meta-boxes.php:331
|
239 |
#@ ditty-news-ticker
|
240 |
msgid "Pause on mouse over"
|
241 |
msgstr "Pause on mouse over"
|
242 |
|
243 |
+
#: includes/meta-boxes.php:234
|
244 |
+
#: includes/meta-boxes.php:434
|
245 |
#@ ditty-news-ticker
|
246 |
msgid "Tick spacing"
|
247 |
msgstr "Tick spacing"
|
248 |
|
249 |
+
#: includes/meta-boxes.php:236
|
250 |
+
#: includes/meta-boxes.php:436
|
251 |
#@ ditty-news-ticker
|
252 |
msgid "Pixels"
|
253 |
msgstr "Pixels"
|
254 |
|
255 |
+
#: includes/meta-boxes.php:237
|
256 |
#@ ditty-news-ticker
|
257 |
msgid "Set the spacing between scrolling data."
|
258 |
msgstr "Set the spacing between scrolling data."
|
259 |
|
260 |
+
#: includes/meta-boxes.php:243
|
261 |
#@ ditty-news-ticker
|
262 |
msgid "Scroll Settings"
|
263 |
msgstr "Scroll Settings"
|
264 |
|
265 |
+
#: includes/meta-boxes.php:270
|
266 |
#@ ditty-news-ticker
|
267 |
msgid "Rotation type"
|
268 |
msgstr "Rotation type"
|
269 |
|
270 |
+
#: includes/meta-boxes.php:272
|
271 |
#@ ditty-news-ticker
|
272 |
msgid "Fade"
|
273 |
msgstr "Fade"
|
274 |
|
275 |
+
#: includes/meta-boxes.php:273
|
276 |
#@ ditty-news-ticker
|
277 |
msgid "Slide left"
|
278 |
msgstr "Slide left"
|
279 |
|
280 |
+
#: includes/meta-boxes.php:274
|
281 |
#@ ditty-news-ticker
|
282 |
msgid "Slide right"
|
283 |
msgstr "Slide right"
|
284 |
|
285 |
+
#: includes/meta-boxes.php:275
|
286 |
#@ ditty-news-ticker
|
287 |
msgid "Slide up"
|
288 |
msgstr "Slide up"
|
289 |
|
290 |
+
#: includes/meta-boxes.php:276
|
291 |
#@ ditty-news-ticker
|
292 |
msgid "Slide down"
|
293 |
msgstr "Slide down"
|
294 |
|
295 |
+
#: includes/meta-boxes.php:279
|
296 |
#@ ditty-news-ticker
|
297 |
msgid "Set the type of rotation for the ticker."
|
298 |
msgstr "Set the type of rotation for the ticker."
|
299 |
|
300 |
+
#: includes/meta-boxes.php:284
|
301 |
#@ ditty-news-ticker
|
302 |
msgid "Dynamic slide direction"
|
303 |
msgstr "Dynamic slide direction"
|
304 |
|
305 |
+
#: includes/meta-boxes.php:303
|
306 |
#@ ditty-news-ticker
|
307 |
msgid "Rotator padding"
|
308 |
msgstr "Rotator padding"
|
309 |
|
310 |
+
#: includes/meta-boxes.php:306
|
311 |
#@ ditty-news-ticker
|
312 |
msgid "Set the vertical spacing of the rotating data."
|
313 |
msgstr "Set the vertical spacing of the rotating data."
|
314 |
|
315 |
+
#: includes/meta-boxes.php:320
|
316 |
#@ ditty-news-ticker
|
317 |
msgid "Auto rotate"
|
318 |
msgstr "Auto rotate"
|
319 |
|
320 |
+
#: includes/meta-boxes.php:321
|
321 |
+
#: includes/meta-boxes.php:357
|
322 |
+
#: includes/meta-boxes.php:372
|
323 |
#@ ditty-news-ticker
|
324 |
msgid "Enable"
|
325 |
msgstr "Enable"
|
326 |
|
327 |
+
#: includes/meta-boxes.php:322
|
328 |
#@ ditty-news-ticker
|
329 |
msgid "Set the delay between rotations."
|
330 |
msgstr "Set the delay between rotations."
|
331 |
|
332 |
+
#: includes/meta-boxes.php:327
|
333 |
#@ ditty-news-ticker
|
334 |
msgid "Seconds delay"
|
335 |
msgstr "Seconds delay"
|
336 |
|
337 |
+
#: includes/meta-boxes.php:340
|
338 |
#@ ditty-news-ticker
|
339 |
msgid "Rotate speed"
|
340 |
msgstr "Rotate speed"
|
341 |
|
342 |
+
#: includes/meta-boxes.php:342
|
343 |
#@ ditty-news-ticker
|
344 |
msgid "Tenths of a second"
|
345 |
msgstr "Tenths of a second"
|
346 |
|
347 |
+
#: includes/meta-boxes.php:343
|
348 |
#@ ditty-news-ticker
|
349 |
msgid "Set the speed & easing of the rotation."
|
350 |
msgstr "Set the speed & easing of the rotation."
|
351 |
|
352 |
+
#: includes/meta-boxes.php:356
|
353 |
#@ ditty-news-ticker
|
354 |
msgid "Directional navigation"
|
355 |
msgstr "Directional navigation"
|
356 |
|
357 |
+
#: includes/meta-boxes.php:358
|
358 |
#@ ditty-news-ticker
|
359 |
msgid "Set the directional navigation options."
|
360 |
msgstr "Set the directional navigation options."
|
361 |
|
362 |
+
#: includes/meta-boxes.php:362
|
363 |
#@ ditty-news-ticker
|
364 |
msgid "Autohide navigation"
|
365 |
msgstr "Autohide navigation"
|
366 |
|
367 |
+
#: includes/meta-boxes.php:371
|
368 |
#@ ditty-news-ticker
|
369 |
msgid "Control navigation"
|
370 |
msgstr "Control navigation"
|
371 |
|
372 |
+
#: includes/meta-boxes.php:373
|
373 |
#@ ditty-news-ticker
|
374 |
msgid "Set the control navigation options."
|
375 |
msgstr "Set the control navigation options."
|
376 |
|
377 |
+
#: includes/meta-boxes.php:378
|
378 |
#@ ditty-news-ticker
|
379 |
msgid "Numbers"
|
380 |
msgstr "Numbers"
|
381 |
|
382 |
+
#: includes/meta-boxes.php:379
|
383 |
#@ ditty-news-ticker
|
384 |
msgid "Buttons"
|
385 |
msgstr "Buttons"
|
386 |
|
387 |
+
#: includes/meta-boxes.php:390
|
388 |
#@ ditty-news-ticker
|
389 |
msgid "Rotate Settings"
|
390 |
msgstr "Rotate Settings"
|
391 |
|
392 |
+
#: includes/meta-boxes.php:417
|
393 |
#@ ditty-news-ticker
|
394 |
msgid "List padding"
|
395 |
msgstr "List padding"
|
396 |
|
397 |
+
#: includes/meta-boxes.php:420
|
398 |
#@ ditty-news-ticker
|
399 |
msgid "Set the vertical spacing of the list container."
|
400 |
msgstr "Set the vertical spacing of the list container."
|
401 |
|
402 |
+
#: includes/meta-boxes.php:437
|
403 |
#@ ditty-news-ticker
|
404 |
msgid "Set the spacing between ticks."
|
405 |
msgstr "Set the spacing between ticks."
|
406 |
|
407 |
+
#: includes/meta-boxes.php:443
|
408 |
#@ ditty-news-ticker
|
409 |
msgid "List Settings"
|
410 |
msgstr "List Settings"
|
411 |
|
412 |
+
#: includes/meta-boxes.php:470
|
413 |
#@ ditty-news-ticker
|
414 |
msgid "Display title"
|
415 |
msgstr "Display title"
|
416 |
|
417 |
+
#: includes/meta-boxes.php:474
|
418 |
#@ ditty-news-ticker
|
419 |
msgid "Inline title"
|
420 |
msgstr "Inline title"
|
421 |
|
422 |
+
#: includes/meta-boxes.php:489
|
423 |
#@ ditty-news-ticker
|
424 |
msgid "Ticker width <em>(optional)</em>"
|
425 |
msgstr "Ticker width <em>(optional)</em>"
|
426 |
|
427 |
+
#: includes/meta-boxes.php:491
|
428 |
#@ ditty-news-ticker
|
429 |
msgid "Override the auto width a with specific value."
|
430 |
msgstr "Override the auto width a with specific value."
|
431 |
|
432 |
+
#: includes/meta-boxes.php:506
|
433 |
#@ ditty-news-ticker
|
434 |
msgid "Global Settings"
|
435 |
msgstr "Global Settings"
|
436 |
|
437 |
+
#: includes/meta-boxes.php:534
|
438 |
#@ ditty-news-ticker
|
439 |
msgid "Select Shortcode"
|
440 |
msgstr "Select Shortcode"
|
441 |
|
442 |
+
#: includes/meta-boxes.php:535
|
443 |
#@ ditty-news-ticker
|
444 |
msgid "Use this shortcode to insert the ticker into a post/page."
|
445 |
msgstr "Use this shortcode to insert the ticker into a post/page."
|
446 |
|
447 |
+
#: includes/meta-boxes.php:542
|
448 |
#@ ditty-news-ticker
|
449 |
msgid "Direct function"
|
450 |
msgstr "Direct function"
|
451 |
|
452 |
+
#: includes/meta-boxes.php:543
|
453 |
#@ ditty-news-ticker
|
454 |
msgid "Select Function"
|
455 |
msgstr "Select Function"
|
456 |
|
457 |
+
#: includes/meta-boxes.php:544
|
458 |
#@ ditty-news-ticker
|
459 |
msgid "Place this code directly into your theme to display the ticker."
|
460 |
msgstr "Place this code directly into your theme to display the ticker."
|
461 |
|
462 |
+
#: includes/meta-boxes.php:550
|
463 |
#@ ditty-news-ticker
|
464 |
msgid "Ticker Display"
|
465 |
msgstr "Ticker Display"
|
571 |
msgid "View DNT extensions"
|
572 |
msgstr "View DNT extensions"
|
573 |
|
574 |
+
#: includes/meta-boxes.php:77
|
575 |
#@ ditty-news-ticker
|
576 |
msgid "NF"
|
577 |
msgstr "NF"
|
581 |
msgid "The global settings to your news tickers."
|
582 |
msgstr "The global settings to your news tickers."
|
583 |
|
584 |
+
#: includes/meta-boxes.php:176
|
585 |
#@ ditty-news-ticker
|
586 |
msgid "Show first tick on init"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: includes/meta-boxes.php:483
|
590 |
#@ ditty-news-ticker
|
591 |
msgid "Randomly shuffle the ticks"
|
592 |
msgstr ""
|
593 |
|
594 |
+
#: includes/meta-boxes.php:499
|
595 |
#@ ditty-news-ticker
|
596 |
msgid "Offset ticks"
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: includes/meta-boxes.php:500
|
600 |
#@ ditty-news-ticker
|
601 |
msgid "px from the edge"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: includes/meta-boxes.php:500
|
605 |
#@ ditty-news-ticker
|
606 |
msgid "The amount of pixels ticks should start and end off the screen."
|
607 |
msgstr ""
|
621 |
msgid "*The content in the visual editors will disappear after re-arranging ticks. That content will re-populate after resaving the ticker."
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: includes/meta-boxes.php:89
|
625 |
#@ ditty-news-ticker
|
626 |
msgid "Force line breaks on carriage returns"
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: includes/helpers.php:17
|
630 |
+
#@ ditty-news-ticker
|
631 |
+
msgid "Mixed"
|
632 |
+
msgstr ""
|
633 |
+
|
634 |
+
#: includes/meta-boxes.php:569
|
635 |
+
#@ ditty-news-ticker
|
636 |
+
msgid "Mixed Ticker Items"
|
637 |
+
msgstr ""
|
638 |
+
|
639 |
+
#: includes/meta-boxes.php:591
|
640 |
+
#@ ditty-news-ticker
|
641 |
+
msgid "Add Tick"
|
642 |
+
msgstr ""
|
643 |
+
|
644 |
+
#: includes/meta-boxes.php:597
|
645 |
+
#@ ditty-news-ticker
|
646 |
+
msgid "Tick selection"
|
647 |
+
msgstr ""
|
648 |
+
|
649 |
+
#: includes/meta-boxes.php:598
|
650 |
+
#@ ditty-news-ticker
|
651 |
+
msgid "Select the ticks you would like to display by choosing the tick type and the offset position of the selected feed"
|
652 |
+
msgstr ""
|
653 |
+
|
654 |
+
#: includes/meta-boxes.php:622
|
655 |
+
#@ ditty-news-ticker
|
656 |
+
msgid "Type:"
|
657 |
+
msgstr ""
|
658 |
+
|
659 |
+
#: includes/meta-boxes.php:624
|
660 |
+
#@ ditty-news-ticker
|
661 |
+
msgid "Select Tick Type"
|
662 |
+
msgstr ""
|
663 |
+
|
664 |
+
#: includes/meta-boxes.php:632
|
665 |
+
#@ ditty-news-ticker
|
666 |
+
msgid "Offset:"
|
667 |
+
msgstr ""
|
668 |
+
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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: 3.
|
7 |
Stable tag: /trunk/
|
8 |
License: GPL2
|
9 |
|
@@ -52,6 +52,12 @@ Each individual Ticker post has multiple settings to customize.
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
= 1.2.2 =
|
56 |
* Added option to force line breaks on carriage returns.
|
57 |
|
@@ -157,4 +163,4 @@ Each individual Ticker post has multiple settings to customize.
|
|
157 |
|
158 |
== Upgrade Notice ==
|
159 |
|
160 |
-
Added
|
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: 3.7.1
|
7 |
Stable tag: /trunk/
|
8 |
License: GPL2
|
9 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.3.0 =
|
56 |
+
* Organized code
|
57 |
+
* Added "Mixed" type to display tickers mixed with multiple ticker types
|
58 |
+
* Modified 'after_load', 'before_change', 'after_change' filters for DNT class script
|
59 |
+
* Added code to remove duplicate tickers
|
60 |
+
|
61 |
= 1.2.2 =
|
62 |
* Added option to force line breaks on carriage returns.
|
63 |
|
163 |
|
164 |
== Upgrade Notice ==
|
165 |
|
166 |
+
Added a Mixed Type to display a ticker with multiple tick type. Other updates.
|