Shortcodes Ultimate - Version 4.9.5

Version Description

  • Added: basic RTL support
  • Fixed: JS error (blocking shortcodes settings) on WordPress 3.5
  • Fixed: minor improvement for slider/gallery posts query. Forum topic
  • Fixed: minor imrovements on [quote], fixed markup bug for long values in cite, thanks to Anatoly Yumashev
  • Added: completely redesigned search feature. Now it's like a Google, but for shortcodes =)
  • Added: Insert shortcode popup window hotkey. So now, you can open Insert shortcode window, choose shortcode and insert it with just one click
  • Updated: new demo video at plugin settings page (About tab)
  • Updated: new plugin's banner and icon
Download this release

Release Info

Developer gn_themes
Plugin Icon 128x128 Shortcodes Ultimate
Version 4.9.5
Comparing to
See all releases

Code changes from version 4.9.4 to 4.9.5

assets/css/box-shortcodes.css CHANGED
@@ -248,7 +248,7 @@
248
padding: 0.5em 3em;
249
font-style: italic;
250
}
251
- .su-quote-style-default.su-quote-has-cite { margin-bottom: 3em; }
252
.su-quote-style-default:before,
253
.su-quote-style-default:after {
254
position: absolute;
@@ -269,9 +269,8 @@
269
background-position: -20px 0;
270
}
271
.su-quote-style-default .su-quote-cite {
272
- position: absolute;
273
- right: 4em;
274
- bottom: -1.5em;
275
font-style: normal;
276
}
277
.su-quote-style-default .su-quote-cite:before { content: "\2014\0000a0"; }
248
padding: 0.5em 3em;
249
font-style: italic;
250
}
251
+ /*.su-quote-style-default.su-quote-has-cite { margin-bottom: 3em; }*/
252
.su-quote-style-default:before,
253
.su-quote-style-default:after {
254
position: absolute;
269
background-position: -20px 0;
270
}
271
.su-quote-style-default .su-quote-cite {
272
+ display: block;
273
+ text-align: right;
274
font-style: normal;
275
}
276
.su-quote-style-default .su-quote-cite:before { content: "\2014\0000a0"; }
assets/css/generator.css CHANGED
@@ -67,11 +67,18 @@
67
/* Search box */
68
#su-generator-search {
69
width: 100%;
70
- margin-bottom: 30px;
71
padding: 10px 10px 10px 42px;
72
background: 5px 50% url('../images/search.png') no-repeat;
73
font-size: 1.3em;
74
}
75
76
/* Filter box */
77
#su-generator-filter {
67
/* Search box */
68
#su-generator-search {
69
width: 100%;
70
+ margin-bottom: 5px;
71
padding: 10px 10px 10px 42px;
72
background: 5px 50% url('../images/search.png') no-repeat;
73
font-size: 1.3em;
74
}
75
+ #su-generator-search-pro-tip {
76
+ margin: 0 0 30px 0;
77
+ color: #999;
78
+ font-style: italic;
79
+ text-align: right;
80
+ font-size: 0.9em;
81
+ }
82
83
/* Filter box */
84
#su-generator-filter {
assets/css/rtl-admin.css ADDED
@@ -0,0 +1 @@
1
+ /*** Shortcodes Ultimate - RTL support - admin ***/
assets/css/rtl-shortcodes.css ADDED
@@ -0,0 +1,98 @@
1
+ /*** Shortcodes Ultimate - RTL support - front ***/
2
+
3
+ /* Tabs + Tab
4
+ ---------------------------------------------------------------*/
5
+
6
+ .su-tabs-nav span {
7
+ margin-right: 0;
8
+ margin-left: 3px;
9
+ }
10
+ .su-tabs-vertical .su-tabs-nav {
11
+ float: right;
12
+ }
13
+ .su-tabs-vertical .su-tabs-panes {
14
+ float: right;
15
+ }
16
+ .su-tabs-vertical .su-tabs-nav span {
17
+ margin-left: 0;
18
+ }
19
+ @media only screen and (max-width: 768px) {
20
+ .su-tabs-vertical .su-tabs-nav,
21
+ .su-tabs-vertical .su-tabs-panes {
22
+ float: none;
23
+ }
24
+ }
25
+
26
+ /* Spoiler + Accordion
27
+ ---------------------------------------------------------------*/
28
+
29
+ .su-spoiler-title {
30
+ padding: 7px 34px 7px 7px;
31
+ }
32
+ .su-spoiler-icon {
33
+ right: 7px;
34
+ }
35
+ .su-spoiler-style-default > .su-spoiler-title {
36
+ padding-right: 27px;
37
+ padding-left: 0;
38
+ }
39
+ .su-spoiler-style-default > .su-spoiler-title > .su-spoiler-icon { right: 0; }
40
+
41
+ /* Quote
42
+ ---------------------------------------------------------------*/
43
+
44
+ .su-quote .su-quote-cite {
45
+ text-align: left;
46
+ }
47
+
48
+ /* Row + Column
49
+ ---------------------------------------------------------------*/
50
+
51
+ .su-column {
52
+ margin: 0 0 0 4%;
53
+ float: right;
54
+ }
55
+ .su-column-last { margin-left: 0; }
56
+ .su-row .su-column { margin: 0 4% 0 0; }
57
+ .su-row .su-column.su-column-size-1-1 { margin-left: 0; margin-right: 0; }
58
+ .su-row .su-column:first-child { margin-right: 0; }
59
+ @media only screen {
60
+ [class*="su-column"] + [class*="su-column"]:last-child { float: left; }
61
+ }
62
+
63
+ /* Service
64
+ ---------------------------------------------------------------*/
65
+
66
+ .su-service-title img,
67
+ .su-service-title i {
68
+ left: auto;
69
+ right: 0;
70
+ }
71
+
72
+ /* Label
73
+ ---------------------------------------------------------------*/
74
+
75
+ .su-label {
76
+ margin-right: 0;
77
+ margin-left: 0.3em;
78
+ }
79
+
80
+ /* Dropcap
81
+ ---------------------------------------------------------------*/
82
+
83
+ .su-dropcap {
84
+ float: right;
85
+ margin: 0.2em 0 0.2em 0.5em;
86
+ }
87
+
88
+ /* List
89
+ ---------------------------------------------------------------*/
90
+
91
+ .su-list ul li {
92
+ padding: 4px 2em 4px 0 !important;
93
+ }
94
+ .su-list ul li > img,
95
+ .su-list ul li i {
96
+ left: auto;
97
+ right: 0;
98
+ }
assets/js/generator.js CHANGED
@@ -1,5 +1,4 @@
1
- jQuery(document).ready(function ($) {
2
-
3
// Prepare data
4
var $generator = $('#su-generator'),
5
$search = $('#su-generator-search'),
@@ -12,9 +11,14 @@ jQuery(document).ready(function ($) {
12
$result = $('#su-generator-result'),
13
$selected = $('#su-generator-selected'),
14
mce_selection = '';
15
-
16
// Generator button
17
- $('body').on('click', '.su-generator-button', function (e) {
18
e.preventDefault();
19
// Save the target
20
window.su_generator_target = $(this).data('target');
@@ -25,11 +29,11 @@ jQuery(document).ready(function ($) {
25
type: 'inline',
26
alignTop: true,
27
callbacks: {
28
- open: function () {
29
// Open queried shortcode
30
if (shortcode) $choice.filter('[data-shortcode="' + shortcode + '"]').trigger('click');
31
// Focus search field when popup is opened
32
- else window.setTimeout(function () {
33
$search.focus();
34
}, 200);
35
// Change z-index
@@ -39,7 +43,7 @@ jQuery(document).ready(function ($) {
39
format: "text"
40
}) : '';
41
},
42
- close: function () {
43
// Clear search field
44
$search.val('');
45
// Hide settings
@@ -59,9 +63,8 @@ jQuery(document).ready(function ($) {
59
}
60
}).magnificPopup('open');
61
});
62
-
63
// Filters
64
- $filters.click(function (e) {
65
// Prepare data
66
var filter = $(this).data('filter');
67
// If filter All, show all choices
@@ -76,7 +79,7 @@ jQuery(document).ready(function ($) {
76
opacity: 0.2
77
});
78
// Find searched choices and show
79
- $choice.each(function () {
80
// Get shortcode name
81
var group = $(this).data('group');
82
// Show choice if matched
@@ -87,9 +90,8 @@ jQuery(document).ready(function ($) {
87
}
88
e.preventDefault();
89
});
90
-
91
// Go to home link
92
- $('#su-generator').on('click', '.su-generator-home', function (e) {
93
// Clear search field
94
$search.val('');
95
// Hide settings
@@ -107,18 +109,16 @@ jQuery(document).ready(function ($) {
107
$search.focus();
108
e.preventDefault();
109
});
110
-
111
// Generator close button
112
- $('#su-generator').on('click', '.su-generator-close', function (e) {
113
// Close popup
114
$.magnificPopup.close();
115
// Prevent default action
116
e.preventDefault();
117
});
118
-
119
// Search field
120
$search.on({
121
- focus: function () {
122
// Clear field
123
$(this).val('');
124
// Hide settings
@@ -133,11 +133,13 @@ jQuery(document).ready(function ($) {
133
// Show filters
134
$filter.show();
135
},
136
- blur: function () {},
137
- keyup: function (e) {
138
var $first = $('.su-generator-choice-first:first'),
139
val = $(this).val(),
140
- regex = new RegExp(val, 'gi');
141
// Hotkey action
142
if (e.keyCode === 13 && $first.length > 0) {
143
e.preventDefault();
@@ -148,28 +150,47 @@ jQuery(document).ready(function ($) {
148
$choice.css({
149
opacity: 0.2
150
}).removeClass('su-generator-choice-first');
151
- // Find searched choices and show
152
- $choice.each(function () {
153
- // Get shortcode name
154
- var id = $(this).data('shortcode'),
155
- name = $(this).data('name'),
156
- desc = $(this).data('desc'),
157
- group = $(this).data('group');
158
- // Show choice if matched
159
- if ((id + name + desc + group).match(regex) !== null) {
160
$(this).css({
161
opacity: 1
162
- }).removeClass('su-generator-choice-first');
163
- if (val === id || val === name || val === name.toLowerCase()) {
164
$(this).addClass('su-generator-choice-first');
165
}
166
}
167
});
168
}
169
});
170
-
171
// Click on shortcode choice
172
- $choice.on('click', function (e) {
173
// Prepare data
174
var shortcode = $(this).data('shortcode');
175
// Load shortcode options
@@ -180,7 +201,7 @@ jQuery(document).ready(function ($) {
180
action: 'su_generator_settings',
181
shortcode: shortcode
182
},
183
- beforeSend: function () {
184
// Hide preview box
185
$('#su-generator-preview').hide();
186
// Hide choices panel
@@ -192,7 +213,7 @@ jQuery(document).ready(function ($) {
192
// Hide filters
193
$filter.hide();
194
},
195
- success: function (data) {
196
// Hide loading animation
197
$settings.removeClass('su-generator-loading');
198
// Insert new HTML
@@ -200,7 +221,7 @@ jQuery(document).ready(function ($) {
200
// Apply selected text to the content field
201
if (typeof mce_selection !== 'undefined' && mce_selection !== '') $('#su-generator-content').val(mce_selection);
202
// Init range pickers
203
- $('.su-generator-range-picker').each(function (index) {
204
var $picker = $(this),
205
$val = $picker.find('input'),
206
min = $val.attr('min'),
@@ -212,24 +233,23 @@ jQuery(document).ready(function ($) {
212
step: step,
213
range: [min, max]
214
});
215
- $val.attr('type', 'text').show();
216
- $val.on('keyup blur', function (e) {
217
$val.simpleSlider('setValue', $val.val());
218
});
219
});
220
// Init color pickers
221
- $('.su-generator-select-color').each(function (index) {
222
- $(this).find('.su-generator-select-color-wheel').filter(':first').farbtastic('.su-generator-select-color-value:eq(' +
223
- index + ')');
224
- $(this).find('.su-generator-select-color-value').focus(function () {
225
$('.su-generator-select-color-wheel:eq(' + index + ')').show();
226
});
227
- $(this).find('.su-generator-select-color-value').blur(function () {
228
$('.su-generator-select-color-wheel:eq(' + index + ')').hide();
229
});
230
});
231
// Init image sourse pickers
232
- $('.su-generator-isp').each(function () {
233
var $picker = $(this),
234
$sources = $picker.find('.su-generator-isp-sources'),
235
$source = $picker.find('.su-generator-isp-source'),
@@ -241,14 +261,14 @@ jQuery(document).ready(function ($) {
241
$val = $picker.find('.su-generator-attr'),
242
frame;
243
// Update hidden value
244
- var update = function () {
245
var val = 'none',
246
ids = '',
247
source = $sources.val();
248
// Media library
249
if (source === 'media') {
250
var images = [];
251
- $images.find('span').each(function (i) {
252
images[i] = $(this).data('id');
253
});
254
if (images.length > 0) ids = images.join(',');
@@ -276,7 +296,7 @@ jQuery(document).ready(function ($) {
276
$val.val(val).trigger('change');
277
}
278
// Switch source
279
- $sources.on('change', function (e) {
280
var source = $(this).val();
281
e.preventDefault();
282
$source.removeClass('su-generator-isp-source-open');
@@ -284,16 +304,16 @@ jQuery(document).ready(function ($) {
284
update();
285
});
286
// Remove image
287
- $images.on('click', 'span i', function () {
288
- $(this).parent('span').css('border-color', '#f03').fadeOut(300, function () {
289
$(this).remove();
290
update();
291
});
292
});
293
// Add image
294
- $add_media.click(function (e) {
295
e.preventDefault();
296
- if (typeof (frame) !== 'undefined') frame.close();
297
frame = wp.media.frames.su_media_frame_1 = wp.media({
298
title: su_generator.isp_media_title,
299
library: {
@@ -304,10 +324,10 @@ jQuery(document).ready(function ($) {
304
},
305
multiple: true
306
});
307
- frame.on('select', function () {
308
var files = frame.state().get('selection').toJSON();
309
$images.find('em').remove();
310
- $.each(files, function (i) {
311
$images.append('<span data-id="' + this.id + '" title="' + this.title + '"><img src="' + this.url + '" alt="" /><i class="fa fa-times"></i></span>');
312
});
313
update();
@@ -318,7 +338,7 @@ jQuery(document).ready(function ($) {
318
revert: 200,
319
containment: $picker,
320
tolerance: 'pointer',
321
- stop: function () {
322
update();
323
}
324
});
@@ -326,7 +346,7 @@ jQuery(document).ready(function ($) {
326
$cats.on('change', update);
327
$terms.on('change', update);
328
// Select taxonomy
329
- $taxes.on('change', function () {
330
var $cont = $(this).parents('.su-generator-isp-source'),
331
tax = $(this).val();
332
// Remove terms
@@ -347,12 +367,12 @@ jQuery(document).ready(function ($) {
347
'multiple': true,
348
'size': 10
349
},
350
- beforeSend: function () {
351
if (typeof ajax_term_select === 'object') ajax_term_select.abort();
352
$terms.html('').attr('disabled', true).hide();
353
$cont.addClass('su-generator-loading');
354
},
355
- success: function (data) {
356
$terms.html(data).attr('disabled', false).show();
357
$cont.removeClass('su-generator-loading');
358
}
@@ -361,15 +381,15 @@ jQuery(document).ready(function ($) {
361
});
362
});
363
// Init media buttons
364
- $('.su-generator-upload-button').each(function () {
365
var $button = $(this),
366
$val = $(this).parents('.su-generator-attr-container').find('input:text'),
367
file;
368
- $button.on('click', function (e) {
369
e.preventDefault();
370
e.stopPropagation();
371
// If the frame already exists, reopen it
372
- if (typeof (file) !== 'undefined') file.close();
373
// Create WP media frame.
374
file = wp.media.frames.su_media_frame_2 = wp.media({
375
// Title of media manager frame
@@ -382,7 +402,7 @@ jQuery(document).ready(function ($) {
382
multiple: false
383
});
384
//callback for selected image
385
- file.on('select', function () {
386
var attachment = file.state().get('selection').first().toJSON();
387
$val.val(attachment.url).trigger('change');
388
});
@@ -391,14 +411,13 @@ jQuery(document).ready(function ($) {
391
});
392
});
393
// Init icon pickers
394
- $('.su-generator-icon-picker-button').each(function () {
395
var $button = $(this),
396
$field = $(this).parents('.su-generator-attr-container'),
397
$val = $field.find('.su-generator-attr'),
398
$picker = $field.find('.su-generator-icon-picker'),
399
$filter = $picker.find('input:text');
400
-
401
- $button.click(function (e) {
402
$picker.toggleClass('su-generator-icon-picker-visible');
403
$filter.val('').trigger('keyup');
404
if ($picker.hasClass('su-generator-icon-picker-loaded')) return;
@@ -410,36 +429,36 @@ jQuery(document).ready(function ($) {
410
action: 'su_generator_get_icons'
411
},
412
dataType: 'html',
413
- beforeSend: function () {
414
// Show loading animation
415
$picker.addClass('su-generator-loading');
416
// Add loaded class
417
$picker.addClass('su-generator-icon-picker-loaded');
418
},
419
- success: function (data) {
420
$picker.append(data);
421
var $icons = $picker.children('i');
422
- $icons.click(function (e) {
423
$val.val('icon: ' + $(this).attr('title'));
424
$picker.removeClass('su-generator-icon-picker-visible');
425
$val.trigger('change');
426
e.preventDefault();
427
});
428
$filter.on({
429
- keyup: function () {
430
var val = $(this).val(),
431
regex = new RegExp(val, 'gi');
432
// Hide all choices
433
$icons.hide();
434
// Find searched choices and show
435
- $icons.each(function () {
436
// Get shortcode name
437
var name = $(this).attr('title');
438
// Show choice if matched
439
if (name.match(regex) !== null) $(this).show();
440
});
441
},
442
- focus: function () {
443
$(this).val('');
444
$icons.show();
445
}
@@ -451,7 +470,7 @@ jQuery(document).ready(function ($) {
451
});
452
});
453
// Init switches
454
- $('.su-generator-switch').click(function (e) {
455
// Prepare data
456
var $switch = $(this),
457
$value = $switch.parent().children('input'),
@@ -468,7 +487,7 @@ jQuery(document).ready(function ($) {
468
}
469
e.preventDefault();
470
});
471
- $('.su-generator-switch-value').on('change', function () {
472
// Prepare data
473
var $value = $(this),
474
$switch = $value.parent().children('.su-generator-switch'),
@@ -479,7 +498,7 @@ jQuery(document).ready(function ($) {
479
else if (value === 'no') $switch.removeClass('su-generator-switch-yes').addClass('su-generator-switch-no');
480
});
481
// Init tax_term selects
482
- $('select#su-generator-attr-taxonomy').on('change', function () {
483
var $taxonomy = $(this),
484
tax = $taxonomy.val(),
485
$terms = $('select#su-generator-attr-tax_term');
@@ -493,13 +512,13 @@ jQuery(document).ready(function ($) {
493
noselect: true
494
},
495
dataType: 'html',
496
- beforeSend: function () {
497
// Check previous requests
498
if (typeof window.su_generator_get_terms === 'object') window.su_generator_get_terms.abort();
499
// Show loading animation
500
$terms.parent().addClass('su-generator-loading');
501
},
502
- success: function (data) {
503
// Remove previous options
504
$terms.find('option').remove();
505
// Append new options
@@ -510,7 +529,7 @@ jQuery(document).ready(function ($) {
510
});
511
});
512
// Init shadow pickers
513
- $('.su-generator-shadow-picker').each(function (index) {
514
var $picker = $(this),
515
$fields = $picker.find('.su-generator-shadow-picker-field input'),
516
$hoff = $picker.find('.su-generator-sp-hoff'),
@@ -524,17 +543,17 @@ jQuery(document).ready(function ($) {
524
$val = $picker.find('.su-generator-attr');
525
// Init color picker
526
$color.wheel.farbtastic($color.value);
527
- $color.value.focus(function () {
528
$color.wheel.show();
529
});
530
- $color.value.blur(function () {
531
$color.wheel.hide();
532
});
533
// Handle text fields
534
- $fields.on('change blur keyup', function () {
535
$val.val($hoff.val() + 'px ' + $voff.val() + 'px ' + $blur.val() + 'px ' + $color.value.val()).trigger('change');
536
});
537
- $val.on('keyup', function () {
538
var value = $(this).val().split(' ');
539
// Value is correct
540
if (value.length === 4) {
@@ -547,7 +566,7 @@ jQuery(document).ready(function ($) {
547
});
548
});
549
// Init border pickers
550
- $('.su-generator-border-picker').each(function (index) {
551
var $picker = $(this),
552
$fields = $picker.find('.su-generator-border-picker-field input, .su-generator-border-picker-field select'),
553
$width = $picker.find('.su-generator-bp-width'),
@@ -560,17 +579,17 @@ jQuery(document).ready(function ($) {
560
$val = $picker.find('.su-generator-attr');
561
// Init color picker
562
$color.wheel.farbtastic($color.value);
563
- $color.value.focus(function () {
564
$color.wheel.show();
565
});
566
- $color.value.blur(function () {
567
$color.wheel.hide();
568
});
569
// Handle text fields
570
- $fields.on('change blur keyup', function () {
571
$val.val($width.val() + 'px ' + $style.val() + ' ' + $color.value.val()).trigger('change');
572
});
573
- $val.on('keyup', function () {
574
var value = $(this).val().split(' ');
575
// Value is correct
576
if (value.length === 3) {
@@ -582,7 +601,7 @@ jQuery(document).ready(function ($) {
582
});
583
});
584
// Remove skip class when setting is changed
585
- $settings.find('.su-generator-attr').on('change keyup blur', function () {
586
var $cnt = $(this).parents('.su-generator-attr-container'),
587
_default = $cnt.data('default'),
588
val = $(this).val();
@@ -591,7 +610,7 @@ jQuery(document).ready(function ($) {
591
else $cnt.addClass('su-generator-skip');
592
});
593
// Init value setters
594
- $('.su-generator-set-value').click(function (e) {
595
$(this).parents('.su-generator-attr-container').find('input').val($(this).text()).trigger('change');
596
});
597
// Save selected value
@@ -605,11 +624,11 @@ jQuery(document).ready(function ($) {
605
id: 'last_used',
606
shortcode: shortcode
607
},
608
- beforeSend: function () {
609
// Show loading animation
610
// $settings.addClass('su-generator-loading');
611
},
612
- success: function (data) {
613
// Remove loading animation
614
// $settings.removeClass('su-generator-loading');
615
// Set new settings
@@ -623,9 +642,8 @@ jQuery(document).ready(function ($) {
623
dataType: 'html'
624
});
625
});
626
-
627
// Insert shortcode
628
- $('#su-generator').on('click', '.su-generator-insert', function (e) {
629
// Prepare data
630
var shortcode = parse();
631
// Save current settings to presets
@@ -656,9 +674,8 @@ jQuery(document).ready(function ($) {
656
// if ($target.length > 0) $target.val($target.val() + shortcode);
657
// }
658
});
659
-
660
// Preview shortcode
661
- $('#su-generator').on('click', '.su-generator-toggle-preview', function (e) {
662
// Prepare data
663
var $preview = $('#su-generator-preview'),
664
$button = $(this);
@@ -667,7 +684,7 @@ jQuery(document).ready(function ($) {
667
// Show preview box
668
$preview.addClass('su-generator-loading').show();
669
// Bind updating on settings changes
670
- $settings.find('input, textarea, select').on('change keyup blur', function () {
671
update_preview();
672
});
673
// Update preview box
@@ -675,22 +692,20 @@ jQuery(document).ready(function ($) {
675
// Prevent default action
676
e.preventDefault();
677
});
678
-
679
var gp_hover_timer;
680
-
681
// Presets manager - mouseenter
682
- $('#su-generator').on('mouseenter click', '.su-generator-presets', function () {
683
clearTimeout(gp_hover_timer);
684
$('.su-gp-popup').show();
685
});
686
// Presets manager - mouseleave
687
- $('#su-generator').on('mouseleave', '.su-generator-presets', function () {
688
- gp_hover_timer = window.setTimeout(function () {
689
$('.su-gp-popup').fadeOut(200);
690
}, 600);
691
});
692
// Presets manager - add new preset
693
- $('#su-generator').on('click', '.su-gp-new', function (e) {
694
// Prepare data
695
var $container = $(this).parents('.su-generator-presets'),
696
$list = $('.su-gp-list'),
@@ -708,7 +723,7 @@ jQuery(document).ready(function ($) {
708
}
709
});
710
// Presets manager - load preset
711
- $('#su-generator').on('click', '.su-gp-list span', function (e) {
712
// Prepare data
713
var shortcode = $('.su-generator-presets').data('shortcode'),
714
id = $(this).data('id'),
@@ -726,11 +741,11 @@ jQuery(document).ready(function ($) {
726
id: id,
727
shortcode: shortcode
728
},
729
- beforeSend: function () {
730
// Disable insert button
731
$insert.addClass('button-primary-disabled').attr('disabled', true);
732
},
733
- success: function (data) {
734
// Enable insert button
735
$insert.removeClass('button-primary-disabled').attr('disabled', false);
736
// Set new settings
@@ -743,7 +758,7 @@ jQuery(document).ready(function ($) {
743
e.stopPropagation();
744
});
745
// Presets manager - remove preset
746
- $('#su-generator').on('click', '.su-gp-list i', function (e) {
747
// Prepare data
748
var $list = $(this).parents('.su-gp-list'),
749
$preset = $(this).parent('span'),
@@ -759,31 +774,29 @@ jQuery(document).ready(function ($) {
759
// Prevent default action
760
e.preventDefault();
761
});
762
-
763
/**
764
* Create new preset with specified name from current settings
765
*/
766
function add_preset(id, name) {
767
- // Prepare shortcode name and current settings
768
- var shortcode = $('.su-generator-presets').data('shortcode'),
769
- settings = get();
770
- // Perform AJAX request
771
- $.ajax({
772
- type: 'POST',
773
- url: ajaxurl,
774
- data: {
775
- action: 'su_generator_add_preset',
776
- id: id,
777
- name: name,
778
- shortcode: shortcode,
779
- settings: settings
780
- }
781
- });
782
- }
783
-
784
- /**
785
- * Remove preset by ID
786
- */
787
function remove_preset(id) {
788
// Get current shortcode name
789
var shortcode = $('.su-generator-presets').data('shortcode');
@@ -809,7 +822,7 @@ jQuery(document).ready(function ($) {
809
// Open shortcode
810
result += '[' + prefix + query;
811
// Add shortcode attributes
812
- $settings.each(function () {
813
// Prepare field and value
814
var $this = $(this),
815
value = '';
@@ -838,7 +851,7 @@ jQuery(document).ready(function ($) {
838
content = $('#su-generator-content').val(),
839
data = {};
840
// Add shortcode attributes
841
- $settings.each(function (i) {
842
// Prepare field and value
843
var $this = $(this),
844
value = '',
@@ -863,7 +876,7 @@ jQuery(document).ready(function ($) {
863
var $settings = $('#su-generator-settings .su-generator-attr'),
864
$content = $('#su-generator-content');
865
// Loop through settings
866
- $settings.each(function () {
867
var $this = $(this),
868
name = $this.attr('name');
869
// Data contains value for this field
@@ -878,7 +891,6 @@ jQuery(document).ready(function ($) {
878
// Update preview
879
update_preview();
880
}
881
-
882
var update_preview_timer,
883
update_preview_request;
884
@@ -895,7 +907,7 @@ jQuery(document).ready(function ($) {
895
if (shortcode === previous && !forced) return;
896
// Run timer to filter often calls
897
window.clearTimeout(update_preview_timer);
898
- update_preview_timer = window.setTimeout(function () {
899
update_preview_request = $.ajax({
900
type: 'POST',
901
url: ajaxurl,
@@ -904,13 +916,13 @@ jQuery(document).ready(function ($) {
904
action: 'su_generator_preview',
905
shortcode: shortcode
906
},
907
- beforeSend: function () {
908
// Abort previous requests
909
if (typeof update_preview_request === 'object') update_preview_request.abort();
910
// Show loading animation
911
$preview.addClass('su-generator-loading').html('');
912
},
913
- success: function (data) {
914
// Hide loading animation and set new HTML
915
$preview.html(data).removeClass('su-generator-loading');
916
},
@@ -920,5 +932,4 @@ jQuery(document).ready(function ($) {
920
// Save shortcode to div
921
$result.text(shortcode);
922
}
923
-
924
});
1
+ jQuery(document).ready(function($) {
2
// Prepare data
3
var $generator = $('#su-generator'),
4
$search = $('#su-generator-search'),
11
$result = $('#su-generator-result'),
12
$selected = $('#su-generator-selected'),
13
mce_selection = '';
14
+ // Hotkey
15
+ if (typeof $.hotkeys == 'object' && $.hotkeys.version === '(beta)(0.0.3)' && su_generator.hotkey) {
16
+ $.hotkeys.add(su_generator.hotkey, function() {
17
+ $('.su-generator-button').trigger('click');
18
+ });
19
+ }
20
// Generator button
21
+ $('body').on('click', '.su-generator-button', function(e) {
22
e.preventDefault();
23
// Save the target
24
window.su_generator_target = $(this).data('target');
29
type: 'inline',
30
alignTop: true,
31
callbacks: {
32
+ open: function() {
33
// Open queried shortcode
34
if (shortcode) $choice.filter('[data-shortcode="' + shortcode + '"]').trigger('click');
35
// Focus search field when popup is opened
36
+ else window.setTimeout(function() {
37
$search.focus();
38
}, 200);
39
// Change z-index
43
format: "text"
44
}) : '';
45
},
46
+ close: function() {
47
// Clear search field
48
$search.val('');
49
// Hide settings
63
}
64
}).magnificPopup('open');
65
});
66
// Filters
67
+ $filters.click(function(e) {
68
// Prepare data
69
var filter = $(this).data('filter');
70
// If filter All, show all choices
79
opacity: 0.2
80
});
81
// Find searched choices and show
82
+ $choice.each(function() {
83
// Get shortcode name
84
var group = $(this).data('group');
85
// Show choice if matched
90
}
91
e.preventDefault();
92
});
93
// Go to home link
94
+ $('#su-generator').on('click', '.su-generator-home', function(e) {
95
// Clear search field
96
$search.val('');
97
// Hide settings
109
$search.focus();
110
e.preventDefault();
111
});
112
// Generator close button
113
+ $('#su-generator').on('click', '.su-generator-close', function(e) {
114
// Close popup
115
$.magnificPopup.close();
116
// Prevent default action
117
e.preventDefault();
118
});
119
// Search field
120
$search.on({
121
+ focus: function() {
122
// Clear field
123
$(this).val('');
124
// Hide settings
133
// Show filters
134
$filter.show();
135
},
136
+ blur: function() {},
137
+ keyup: function(e) {
138
+ // Prepare vars
139
var $first = $('.su-generator-choice-first:first'),
140
val = $(this).val(),
141
+ regex = new RegExp(val, 'gi'),
142
+ best = 0;
143
// Hotkey action
144
if (e.keyCode === 13 && $first.length > 0) {
145
e.preventDefault();
150
$choice.css({
151
opacity: 0.2
152
}).removeClass('su-generator-choice-first');
153
+ // Loop and highlight choices
154
+ $choice.each(function() {
155
+ // Get choice data
156
+ var data = $(this).data(),
157
+ id = data.shortcode,
158
+ name = data.name,
159
+ desc = data.desc,
160
+ group = data.group,
161
+ matches = ([id, name, desc, group].join(' ')).match(regex);
162
+ // Highlight choice if matched
163
+ if (matches !== null) {
164
+ // Highlight current choice
165
$(this).css({
166
opacity: 1
167
+ });
168
+ // Check for exact match
169
+ if (val === id) {
170
+ // Remove primary class from all choices
171
+ $choice.removeClass('su-generator-choice-first');
172
+ // Add primary class to the current choice
173
+ $(this).addClass('su-generator-choice-first');
174
+ // Prevent selecting by matches number
175
+ best = 999;
176
+ }
177
+ // Check matches length
178
+ else if (matches.length > best) {
179
+ // Remove primary class from all choices
180
+ $choice.removeClass('su-generator-choice-first');
181
+ // Add primary class to the current choice
182
$(this).addClass('su-generator-choice-first');
183
+ // Save the score
184
+ best = matches.length;
185
}
186
}
187
});
188
+ // Remove primary class if search field is empty
189
+ if (val === '') $choice.removeClass('su-generator-choice-first');
190
}
191
});
192
// Click on shortcode choice
193
+ $choice.on('click', function(e) {
194
// Prepare data
195
var shortcode = $(this).data('shortcode');
196
// Load shortcode options
201
action: 'su_generator_settings',
202
shortcode: shortcode
203
},
204
+ beforeSend: function() {
205
// Hide preview box
206
$('#su-generator-preview').hide();
207
// Hide choices panel
213
// Hide filters
214
$filter.hide();
215
},
216
+ success: function(data) {
217
// Hide loading animation
218
$settings.removeClass('su-generator-loading');
219
// Insert new HTML
221
// Apply selected text to the content field
222
if (typeof mce_selection !== 'undefined' && mce_selection !== '') $('#su-generator-content').val(mce_selection);
223
// Init range pickers
224
+ $('.su-generator-range-picker').each(function(index) {
225
var $picker = $(this),
226
$val = $picker.find('input'),
227
min = $val.attr('min'),
233
step: step,
234
range: [min, max]
235
});
236
+ $val.show();
237
+ $val.on('keyup blur', function(e) {
238
$val.simpleSlider('setValue', $val.val());
239
});
240
});
241
// Init color pickers
242
+ $('.su-generator-select-color').each(function(index) {
243
+ $(this).find('.su-generator-select-color-wheel').filter(':first').farbtastic('.su-generator-select-color-value:eq(' + index + ')');
244
+ $(this).find('.su-generator-select-color-value').focus(function() {
245
$('.su-generator-select-color-wheel:eq(' + index + ')').show();
246
});
247
+ $(this).find('.su-generator-select-color-value').blur(function() {
248
$('.su-generator-select-color-wheel:eq(' + index + ')').hide();
249
});
250
});
251
// Init image sourse pickers
252
+ $('.su-generator-isp').each(function() {
253
var $picker = $(this),
254
$sources = $picker.find('.su-generator-isp-sources'),
255
$source = $picker.find('.su-generator-isp-source'),
261
$val = $picker.find('.su-generator-attr'),
262
frame;
263
// Update hidden value
264
+ var update = function() {
265
var val = 'none',
266
ids = '',
267
source = $sources.val();
268
// Media library
269
if (source === 'media') {
270
var images = [];
271
+ $images.find('span').each(function(i) {
272
images[i] = $(this).data('id');
273
});
274
if (images.length > 0) ids = images.join(',');
296
$val.val(val).trigger('change');
297
}
298
// Switch source
299
+ $sources.on('change', function(e) {
300
var source = $(this).val();
301
e.preventDefault();
302
$source.removeClass('su-generator-isp-source-open');
304
update();
305
});
306
// Remove image
307
+ $images.on('click', 'span i', function() {
308
+ $(this).parent('span').css('border-color', '#f03').fadeOut(300, function() {
309
$(this).remove();
310
update();
311
});
312
});
313
// Add image
314
+ $add_media.click(function(e) {
315
e.preventDefault();
316
+ if (typeof(frame) !== 'undefined') frame.close();
317
frame = wp.media.frames.su_media_frame_1 = wp.media({
318
title: su_generator.isp_media_title,
319
library: {
324
},
325
multiple: true
326
});
327
+ frame.on('select', function() {
328
var files = frame.state().get('selection').toJSON();
329
$images.find('em').remove();
330
+ $.each(files, function(i) {
331
$images.append('<span data-id="' + this.id + '" title="' + this.title + '"><img src="' + this.url + '" alt="" /><i class="fa fa-times"></i></span>');
332
});
333
update();
338
revert: 200,
339
containment: $picker,
340
tolerance: 'pointer',
341
+ stop: function() {
342
update();
343
}
344
});
346
$cats.on('change', update);
347
$terms.on('change', update);
348
// Select taxonomy
349
+ $taxes.on('change', function() {
350
var $cont = $(this).parents('.su-generator-isp-source'),
351
tax = $(this).val();
352
// Remove terms
367
'multiple': true,
368
'size': 10
369
},
370
+ beforeSend: function() {
371
if (typeof ajax_term_select === 'object') ajax_term_select.abort();
372
$terms.html('').attr('disabled', true).hide();
373
$cont.addClass('su-generator-loading');
374
},
375
+ success: function(data) {
376
$terms.html(data).attr('disabled', false).show();
377
$cont.removeClass('su-generator-loading');
378
}
381
});
382
});
383
// Init media buttons
384
+ $('.su-generator-upload-button').each(function() {
385
var $button = $(this),
386
$val = $(this).parents('.su-generator-attr-container').find('input:text'),
387
file;
388
+ $button.on('click', function(e) {
389
e.preventDefault();
390
e.stopPropagation();
391
// If the frame already exists, reopen it
392
+ if (typeof(file) !== 'undefined') file.close();
393
// Create WP media frame.
394
file = wp.media.frames.su_media_frame_2 = wp.media({
395
// Title of media manager frame
402
multiple: false
403
});
404
//callback for selected image
405
+ file.on('select', function() {
406
var attachment = file.state().get('selection').first().toJSON();
407
$val.val(attachment.url).trigger('change');
408
});
411
});
412
});
413
// Init icon pickers
414
+ $('.su-generator-icon-picker-button').each(function() {
415
var $button = $(this),
416
$field = $(this).parents('.su-generator-attr-container'),
417
$val = $field.find('.su-generator-attr'),
418
$picker = $field.find('.su-generator-icon-picker'),
419
$filter = $picker.find('input:text');
420
+ $button.click(function(e) {
421
$picker.toggleClass('su-generator-icon-picker-visible');
422
$filter.val('').trigger('keyup');
423
if ($picker.hasClass('su-generator-icon-picker-loaded')) return;
429
action: 'su_generator_get_icons'
430
},
431
dataType: 'html',
432
+ beforeSend: function() {
433
// Show loading animation
434
$picker.addClass('su-generator-loading');
435
// Add loaded class
436
$picker.addClass('su-generator-icon-picker-loaded');
437
},
438
+ success: function(data) {
439
$picker.append(data);
440
var $icons = $picker.children('i');
441
+ $icons.click(function(e) {
442
$val.val('icon: ' + $(this).attr('title'));
443
$picker.removeClass('su-generator-icon-picker-visible');
444
$val.trigger('change');
445
e.preventDefault();
446
});
447
$filter.on({
448
+ keyup: function() {
449
var val = $(this).val(),
450
regex = new RegExp(val, 'gi');
451
// Hide all choices
452
$icons.hide();
453
// Find searched choices and show
454
+ $icons.each(function() {
455
// Get shortcode name
456
var name = $(this).attr('title');
457
// Show choice if matched
458
if (name.match(regex) !== null) $(this).show();
459
});
460
},
461
+ focus: function() {
462
$(this).val('');
463
$icons.show();
464
}
470
});
471
});
472
// Init switches
473
+ $('.su-generator-switch').click(function(e) {
474
// Prepare data
475
var $switch = $(this),
476
$value = $switch.parent().children('input'),
487
}
488
e.preventDefault();
489
});
490
+ $('.su-generator-switch-value').on('change', function() {
491
// Prepare data
492
var $value = $(this),
493
$switch = $value.parent().children('.su-generator-switch'),
498
else if (value === 'no') $switch.removeClass('su-generator-switch-yes').addClass('su-generator-switch-no');
499
});
500
// Init tax_term selects
501
+ $('select#su-generator-attr-taxonomy').on('change', function() {
502
var $taxonomy = $(this),
503
tax = $taxonomy.val(),
504
$terms = $('select#su-generator-attr-tax_term');
512
noselect: true
513
},
514
dataType: 'html',
515
+ beforeSend: function() {
516
// Check previous requests
517
if (typeof window.su_generator_get_terms === 'object') window.su_generator_get_terms.abort();
518
// Show loading animation
519
$terms.parent().addClass('su-generator-loading');
520
},
521
+ success: function(data) {
522
// Remove previous options
523
$terms.find('option').remove();
524
// Append new options
529
});
530
});
531
// Init shadow pickers
532
+ $('.su-generator-shadow-picker').each(function(index) {
533
var $picker = $(this),
534
$fields = $picker.find('.su-generator-shadow-picker-field input'),
535
$hoff = $picker.find('.su-generator-sp-hoff'),
543
$val = $picker.find('.su-generator-attr');
544
// Init color picker
545
$color.wheel.farbtastic($color.value);
546
+ $color.value.focus(function() {
547
$color.wheel.show();
548
});
549
+ $color.value.blur(function() {
550
$color.wheel.hide();
551
});
552
// Handle text fields
553
+ $fields.on('change blur keyup', function() {
554
$val.val($hoff.val() + 'px ' + $voff.val() + 'px ' + $blur.val() + 'px ' + $color.value.val()).trigger('change');
555
});
556
+ $val.on('keyup', function() {
557
var value = $(this).val().split(' ');
558
// Value is correct
559
if (value.length === 4) {
566
});
567
});
568
// Init border pickers
569
+ $('.su-generator-border-picker').each(function(index) {
570
var $picker = $(this),
571
$fields = $picker.find('.su-generator-border-picker-field input, .su-generator-border-picker-field select'),
572
$width = $picker.find('.su-generator-bp-width'),
579
$val = $picker.find('.su-generator-attr');
580
// Init color picker
581
$color.wheel.farbtastic($color.value);
582
+ $color.value.focus(function() {
583
$color.wheel.show();
584
});
585
+ $color.value.blur(function() {
586
$color.wheel.hide();
587
});
588
// Handle text fields
589
+ $fields.on('change blur keyup', function() {
590
$val.val($width.val() + 'px ' + $style.val() + ' ' + $color.value.val()).trigger('change');
591
});
592
+ $val.on('keyup', function() {
593
var value = $(this).val().split(' ');
594
// Value is correct
595
if (value.length === 3) {
601
});
602
});
603
// Remove skip class when setting is changed
604
+ $settings.find('.su-generator-attr').on('change keyup blur', function() {
605
var $cnt = $(this).parents('.su-generator-attr-container'),
606
_default = $cnt.data('default'),
607
val = $(this).val();
610
else $cnt.addClass('su-generator-skip');
611
});
612
// Init value setters
613
+ $('.su-generator-set-value').click(function(e) {
614
$(this).parents('.su-generator-attr-container').find('input').val($(this).text()).trigger('change');
615
});
616
// Save selected value
624
id: 'last_used',
625
shortcode: shortcode
626
},
627
+ beforeSend: function() {
628
// Show loading animation
629
// $settings.addClass('su-generator-loading');
630
},
631
+ success: function(data) {
632
// Remove loading animation
633
// $settings.removeClass('su-generator-loading');
634
// Set new settings
642
dataType: 'html'
643
});
644
});
645
// Insert shortcode
646
+ $('#su-generator').on('click', '.su-generator-insert', function(e) {
647
// Prepare data
648
var shortcode = parse();
649
// Save current settings to presets
674
// if ($target.length > 0) $target.val($target.val() + shortcode);
675
// }
676
});
677
// Preview shortcode
678
+ $('#su-generator').on('click', '.su-generator-toggle-preview', function(e) {
679
// Prepare data
680
var $preview = $('#su-generator-preview'),
681
$button = $(this);
684
// Show preview box
685
$preview.addClass('su-generator-loading').show();
686
// Bind updating on settings changes
687
+ $settings.find('input, textarea, select').on('change keyup blur', function() {
688
update_preview();
689
});
690
// Update preview box
692
// Prevent default action
693
e.preventDefault();
694
});
695
var gp_hover_timer;
696
// Presets manager - mouseenter
697
+ $('#su-generator').on('mouseenter click', '.su-generator-presets', function() {
698
clearTimeout(gp_hover_timer);
699
$('.su-gp-popup').show();
700
});
701
// Presets manager - mouseleave
702
+ $('#su-generator').on('mouseleave', '.su-generator-presets', function() {
703
+ gp_hover_timer = window.setTimeout(function() {
704
$('.su-gp-popup').fadeOut(200);
705
}, 600);
706
});
707
// Presets manager - add new preset
708
+ $('#su-generator').on('click', '.su-gp-new', function(e) {
709
// Prepare data
710
var $container = $(this).parents('.su-generator-presets'),
711
$list = $('.su-gp-list'),
723
}
724
});
725
// Presets manager - load preset
726
+ $('#su-generator').on('click', '.su-gp-list span', function(e) {
727
// Prepare data
728
var shortcode = $('.su-generator-presets').data('shortcode'),
729
id = $(this).data('id'),
741
id: id,
742
shortcode: shortcode
743
},
744
+ beforeSend: function() {
745
// Disable insert button
746
$insert.addClass('button-primary-disabled').attr('disabled', true);
747
},
748
+ success: function(data) {
749
// Enable insert button
750
$insert.removeClass('button-primary-disabled').attr('disabled', false);
751
// Set new settings
758
e.stopPropagation();
759
});
760
// Presets manager - remove preset
761
+ $('#su-generator').on('click', '.su-gp-list i', function(e) {
762
// Prepare data
763
var $list = $(this).parents('.su-gp-list'),
764
$preset = $(this).parent('span'),
774
// Prevent default action
775
e.preventDefault();
776
});
777
/**
778
* Create new preset with specified name from current settings
779
*/
780
function add_preset(id, name) {
781
+ // Prepare shortcode name and current settings
782
+ var shortcode = $('.su-generator-presets').data('shortcode'),
783
+ settings = get();
784
+ // Perform AJAX request
785
+ $.ajax({
786
+ type: 'POST',
787
+ url: ajaxurl,
788
+ data: {
789
+ action: 'su_generator_add_preset',
790
+ id: id,
791
+ name: name,
792
+ shortcode: shortcode,
793
+ settings: settings
794
+ }
795
+ });
796
+ }
797
+ /**
798
+ * Remove preset by ID
799
+ */
800
function remove_preset(id) {
801
// Get current shortcode name
802
var shortcode = $('.su-generator-presets').data('shortcode');
822
// Open shortcode
823
result += '[' + prefix + query;
824
// Add shortcode attributes
825
+ $settings.each(function() {
826
// Prepare field and value
827
var $this = $(this),
828
value = '';
851
content = $('#su-generator-content').val(),
852
data = {};
853
// Add shortcode attributes
854
+ $settings.each(function(i) {
855
// Prepare field and value
856
var $this = $(this),
857
value = '',
876
var $settings = $('#su-generator-settings .su-generator-attr'),
877
$content = $('#su-generator-content');
878
// Loop through settings
879
+ $settings.each(function() {
880
var $this = $(this),
881
name = $this.attr('name');
882
// Data contains value for this field
891
// Update preview
892
update_preview();
893
}
894
var update_preview_timer,
895
update_preview_request;
896
907
if (shortcode === previous && !forced) return;
908
// Run timer to filter often calls
909
window.clearTimeout(update_preview_timer);
910
+ update_preview_timer = window.setTimeout(function() {
911
update_preview_request = $.ajax({
912
type: 'POST',
913
url: ajaxurl,
916
action: 'su_generator_preview',
917
shortcode: shortcode
918
},
919
+ beforeSend: function() {
920
// Abort previous requests
921
if (typeof update_preview_request === 'object') update_preview_request.abort();
922
// Show loading animation
923
$preview.addClass('su-generator-loading').html('');
924
},
925
+ success: function(data) {
926
// Hide loading animation and set new HTML
927
$preview.html(data).removeClass('su-generator-loading');
928
},
932
// Save shortcode to div
933
$result.text(shortcode);
934
}
935
});
inc/core/admin-views.php CHANGED
@@ -34,7 +34,7 @@ class Su_Admin_Views {
34
<div class="su-clearfix">
35
<div class="su-about-column">
36
<h3><?php _e( 'How does it works', 'su' ); ?></h3>
37
- <a href="http://www.youtube.com/watch?v=DR2c266yWEA?autoplay=1&amp;showinfo=0&amp;rel=0&amp;theme=light#" target="_blank" class="su-demo-video"><img src="<?php echo plugins_url( 'assets/images/banners/how-it-works.jpg', SU_PLUGIN_FILE ); ?>" alt=""></a>
38
</div>
39
<div class="su-about-column">
40
<h3><?php _e( 'More videos', 'su' ); ?></h3>
34
<div class="su-clearfix">
35
<div class="su-about-column">
36
<h3><?php _e( 'How does it works', 'su' ); ?></h3>
37
+ <a href="http://www.youtube.com/watch?v=lni-w2dtcQY?autoplay=1&amp;showinfo=0&amp;rel=0&amp;theme=light#" target="_blank" class="su-demo-video"><img src="<?php echo plugins_url( 'assets/images/banners/how-it-works.jpg', SU_PLUGIN_FILE ); ?>" alt=""></a>
38
</div>
39
<div class="su-about-column">
40
<h3><?php _e( 'More videos', 'su' ); ?></h3>
inc/core/assets.php CHANGED
@@ -31,6 +31,8 @@ class Su_Assets {
31
add_action( 'wp_footer', array( __CLASS__, 'custom_css' ), 99 );
32
add_action( 'su/generator/preview/after', array( __CLASS__, 'custom_css' ), 99 );
33
add_action( 'su/examples/preview/after', array( __CLASS__, 'custom_css' ), 99 );
34
// Custom TinyMCE CSS and JS
35
// add_filter( 'mce_css', array( __CLASS__, 'mce_css' ) );
36
// add_filter( 'mce_external_plugins', array( __CLASS__, 'mce_js' ) );
@@ -97,7 +99,8 @@ class Su_Assets {
97
'isp_media_insert' => __( 'Add selected images', 'su' ),
98
'presets_prompt_msg' => __( 'Please enter a name for new preset', 'su' ),
99
'presets_prompt_value' => __( 'New preset', 'su' ),
100
- 'last_used' => __( 'Last used settings', 'su' )
101
) );
102
// Shortcodes stylesheets
103
wp_register_style( 'su-content-shortcodes', self::skin_url( 'content-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
@@ -106,6 +109,9 @@ class Su_Assets {
106
wp_register_style( 'su-other-shortcodes', self::skin_url( 'other-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
107
wp_register_style( 'su-galleries-shortcodes', self::skin_url( 'galleries-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
108
wp_register_style( 'su-players-shortcodes', self::skin_url( 'players-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
109
// Shortcodes scripts
110
wp_register_script( 'su-galleries-shortcodes', plugins_url( 'assets/js/galleries-shortcodes.js', SU_PLUGIN_FILE ), array( 'jquery', 'swiper' ), SU_PLUGIN_VERSION, true );
111
wp_register_script( 'su-players-shortcodes', plugins_url( 'assets/js/players-shortcodes.js', SU_PLUGIN_FILE ), array( 'jquery', 'jplayer' ), SU_PLUGIN_VERSION, true );
@@ -151,6 +157,8 @@ class Su_Assets {
151
$custom_css = apply_filters( 'su/assets/custom_css', str_replace( '&#039;', '\'', html_entity_decode( (string) get_option( 'su_option_custom-css' ) ) ) );
152
// Print CSS if exists
153
if ( $custom_css ) echo "\n\n<!-- Shortcodes Ultimate custom CSS - begin -->\n<style type='text/css'>\n" . stripslashes( str_replace( array( '%theme_url%', '%home_url%', '%plugin_url%' ), array( trailingslashit( get_stylesheet_directory_uri() ), trailingslashit( get_option( 'home' ) ), trailingslashit( plugins_url( '', SU_PLUGIN_FILE ) ) ), $custom_css ) ) . "\n</style>\n<!-- Shortcodes Ultimate custom CSS - end -->\n\n";
154
}
155
156
/**
@@ -170,6 +178,26 @@ class Su_Assets {
170
return $plugins;
171
}
172
173
/**
174
* Add asset to the query
175
*/
@@ -179,6 +207,7 @@ class Su_Assets {
179
// Single handle
180
else self::$assets[$type][$handle] = $handle;
181
}
182
/**
183
* Get queried assets
184
*/
31
add_action( 'wp_footer', array( __CLASS__, 'custom_css' ), 99 );
32
add_action( 'su/generator/preview/after', array( __CLASS__, 'custom_css' ), 99 );
33
add_action( 'su/examples/preview/after', array( __CLASS__, 'custom_css' ), 99 );
34
+ // RTL support
35
+ add_action( 'su/assets/custom_css', array( __CLASS__, 'rtl_shortcodes' ) );
36
// Custom TinyMCE CSS and JS
37
// add_filter( 'mce_css', array( __CLASS__, 'mce_css' ) );
38
// add_filter( 'mce_external_plugins', array( __CLASS__, 'mce_js' ) );
99
'isp_media_insert' => __( 'Add selected images', 'su' ),
100
'presets_prompt_msg' => __( 'Please enter a name for new preset', 'su' ),
101
'presets_prompt_value' => __( 'New preset', 'su' ),
102
+ 'last_used' => __( 'Last used settings', 'su' ),
103
+ 'hotkey' => get_option( 'su_option_hotkey' )
104
) );
105
// Shortcodes stylesheets
106
wp_register_style( 'su-content-shortcodes', self::skin_url( 'content-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
109
wp_register_style( 'su-other-shortcodes', self::skin_url( 'other-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
110
wp_register_style( 'su-galleries-shortcodes', self::skin_url( 'galleries-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
111
wp_register_style( 'su-players-shortcodes', self::skin_url( 'players-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
112
+ // RTL stylesheets
113
+ wp_register_style( 'su-rtl-shortcodes', self::skin_url( 'rtl-shortcodes.css' ), false, SU_PLUGIN_VERSION, 'all' );
114
+ wp_register_style( 'su-rtl-admin', self::skin_url( 'rtl-admin.css' ), false, SU_PLUGIN_VERSION, 'all' );
115
// Shortcodes scripts
116
wp_register_script( 'su-galleries-shortcodes', plugins_url( 'assets/js/galleries-shortcodes.js', SU_PLUGIN_FILE ), array( 'jquery', 'swiper' ), SU_PLUGIN_VERSION, true );
117
wp_register_script( 'su-players-shortcodes', plugins_url( 'assets/js/players-shortcodes.js', SU_PLUGIN_FILE ), array( 'jquery', 'jplayer' ), SU_PLUGIN_VERSION, true );
157
$custom_css = apply_filters( 'su/assets/custom_css', str_replace( '&#039;', '\'', html_entity_decode( (string) get_option( 'su_option_custom-css' ) ) ) );
158
// Print CSS if exists
159
if ( $custom_css ) echo "\n\n<!-- Shortcodes Ultimate custom CSS - begin -->\n<style type='text/css'>\n" . stripslashes( str_replace( array( '%theme_url%', '%home_url%', '%plugin_url%' ), array( trailingslashit( get_stylesheet_directory_uri() ), trailingslashit( get_option( 'home' ) ), trailingslashit( plugins_url( '', SU_PLUGIN_FILE ) ) ), $custom_css ) ) . "\n</style>\n<!-- Shortcodes Ultimate custom CSS - end -->\n\n";
160
+ // Hook
161
+ do_action( 'su/assets/custom_css' );
162
}
163
164
/**
178
return $plugins;
179
}
180
181
+ /**
182
+ * RTL support for shortcodes
183
+ */
184
+ public static function rtl_shortcodes( $assets ) {
185
+ // Check RTL
186
+ if ( !is_rtl() ) return;
187
+ // Add RTL stylesheets
188
+ wp_print_styles( array( 'su-rtl-shortcodes' ) );
189
+ }
190
+
191
+ /**
192
+ * RTL support for admin
193
+ */
194
+ public static function rtl_admin( $assets ) {
195
+ // Check RTL
196
+ if ( !is_rtl() ) return;
197
+ // Add RTL stylesheets
198
+ self::add( 'css', 'su-rtl-admin' );
199
+ }
200
+
201
/**
202
* Add asset to the query
203
*/
207
// Single handle
208
else self::$assets[$type][$handle] = $handle;
209
}
210
+
211
/**
212
* Get queried assets
213
*/
inc/core/generator.php CHANGED
@@ -56,7 +56,9 @@ class Su_Generator {
56
// Request assets
57
wp_enqueue_media();
58
su_query_asset( 'css', array( 'simpleslider', 'farbtastic', 'magnific-popup', 'font-awesome', 'su-generator' ) );
59
- su_query_asset( 'js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse', 'simpleslider', 'farbtastic', 'magnific-popup', 'su-generator' ) );
60
// Print/return result
61
if ( $args['echo'] ) echo $button;
62
return $button;
@@ -96,6 +98,7 @@ class Su_Generator {
96
<div id="su-generator-header">
97
<div id="su-generator-tools"><?php echo implode( ' <span></span> ', $tools ); ?></div>
98
<input type="text" name="su_generator_search" id="su-generator-search" value="" placeholder="<?php _e( 'Search for shortcodes', 'su' ); ?>" />
99
<div id="su-generator-filter">
100
<strong><?php _e( 'Filter by type', 'su' ); ?></strong>
101
<?php foreach ( (array) Su_Data::groups() as $group => $label ) echo '<a href="#" data-filter="' . $group . '">' . $label . '</a>'; ?>
56
// Request assets
57
wp_enqueue_media();
58
su_query_asset( 'css', array( 'simpleslider', 'farbtastic', 'magnific-popup', 'font-awesome', 'su-generator' ) );
59
+ su_query_asset( 'js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse', 'simpleslider', 'farbtastic', 'magnific-popup', 'jquery-hotkeys', 'su-generator' ) );
60
+ // Hook
61
+ do_action( 'su/button', $args );
62
// Print/return result
63
if ( $args['echo'] ) echo $button;
64
return $button;
98
<div id="su-generator-header">
99
<div id="su-generator-tools"><?php echo implode( ' <span></span> ', $tools ); ?></div>
100
<input type="text" name="su_generator_search" id="su-generator-search" value="" placeholder="<?php _e( 'Search for shortcodes', 'su' ); ?>" />
101
+ <p id="su-generator-search-pro-tip"><?php printf( '<strong>%s:</strong> %s', __( 'Pro Tip', 'su' ), __( 'Hit enter to select highlighted shortcode, while searching' ) ) ?></p>
102
<div id="su-generator-filter">
103
<strong><?php _e( 'Filter by type', 'su' ); ?></strong>
104
<?php foreach ( (array) Su_Data::groups() as $group => $label ) echo '<a href="#" data-filter="' . $group . '">' . $label . '</a>'; ?>
inc/core/load.php CHANGED
@@ -73,6 +73,13 @@ class Shortcodes_Ultimate {
73
'desc' => sprintf( __( 'This prefix will be added to all shortcodes by this plugin. For example, type here %s and you\'ll get shortcodes like %s and %s. Please keep in mind: this option is not affects your already inserted shortcodes and if you\'ll change this value your old shortcodes will be broken', 'su' ), '<code>su_</code>', '<code>[su_button]</code>', '<code>[su_column]</code>' ),
74
'default' => 'su_'
75
),
76
array(
77
'type' => 'hidden',
78
'id' => 'skin',
73
'desc' => sprintf( __( 'This prefix will be added to all shortcodes by this plugin. For example, type here %s and you\'ll get shortcodes like %s and %s. Please keep in mind: this option is not affects your already inserted shortcodes and if you\'ll change this value your old shortcodes will be broken', 'su' ), '<code>su_</code>', '<code>[su_button]</code>', '<code>[su_column]</code>' ),
74
'default' => 'su_'
75
),
76
+ array(
77
+ 'type' => 'text',
78
+ 'id' => 'hotkey',
79
+ 'name' => __( 'Insert shortcode Hotkey', 'su' ),
80
+ 'desc' => sprintf( '%s<br><a href="https://rawgit.com/jeresig/jquery.hotkeys/master/test-static-01.html" target="_blank">%s</a> | <a href="https://github.com/jeresig/jquery.hotkeys#notes" target="_blank">%s</a>', __( 'Here you can define custom hotkey for the Insert shortcode popup window. Leave this field empty to disable hotkey', 'su' ), __( 'Hotkey examples', 'su' ), __( 'Additional notes', 'su' ) ),
81
+ 'default' => 'alt+i'
82
+ ),
83
array(
84
'type' => 'hidden',
85
'id' => 'skin',
inc/core/shortcodes.php CHANGED
@@ -446,6 +446,8 @@ class Su_Shortcodes {
446
'size' => 32,
447
'class' => ''
448
), $atts, 'service' );
449
// Built-in icon
450
if ( strpos( $atts['icon'], 'icon:' ) !== false ) {
451
$atts['icon'] = '<i class="fa fa-' . trim( str_replace( 'icon:', '', $atts['icon'] ) ) . '" style="font-size:' . $atts['size'] . 'px;color:' . $atts['icon_color'] . '"></i>';
@@ -456,7 +458,7 @@ class Su_Shortcodes {
456
$atts['icon'] = '<img src="' . $atts['icon'] . '" width="' . $atts['size'] . '" height="' . $atts['size'] . '" alt="' . $atts['title'] . '" />';
457
}
458
su_query_asset( 'css', 'su-box-shortcodes' );
459
- return '<div class="su-service' . su_ecssc( $atts ) . '"><div class="su-service-title" style="padding-left:' . round( $atts['size'] + 14 ) . 'px;min-height:' . $atts['size'] . 'px;line-height:' . $atts['size'] . 'px">' . $atts['icon'] . ' ' . su_scattr( $atts['title'] ) . '</div><div class="su-service-content su-clearfix" style="padding-left:' . round( $atts['size'] + 14 ) . 'px">' . do_shortcode( $content ) . '</div></div>';
460
}
461
462
public static function box( $atts = null, $content = null ) {
446
'size' => 32,
447
'class' => ''
448
), $atts, 'service' );
449
+ // RTL
450
+ $rtl = ( is_rtl() ) ? 'right' : 'left';
451
// Built-in icon
452
if ( strpos( $atts['icon'], 'icon:' ) !== false ) {
453
$atts['icon'] = '<i class="fa fa-' . trim( str_replace( 'icon:', '', $atts['icon'] ) ) . '" style="font-size:' . $atts['size'] . 'px;color:' . $atts['icon_color'] . '"></i>';
458
$atts['icon'] = '<img src="' . $atts['icon'] . '" width="' . $atts['size'] . '" height="' . $atts['size'] . '" alt="' . $atts['title'] . '" />';
459
}
460
su_query_asset( 'css', 'su-box-shortcodes' );
461
+ return '<div class="su-service' . su_ecssc( $atts ) . '"><div class="su-service-title" style="padding-' . $rtl . ':' . round( $atts['size'] + 14 ) . 'px;min-height:' . $atts['size'] . 'px;line-height:' . $atts['size'] . 'px">' . $atts['icon'] . ' ' . su_scattr( $atts['title'] ) . '</div><div class="su-service-content su-clearfix" style="padding-' . $rtl . ':' . round( $atts['size'] + 14 ) . 'px">' . do_shortcode( $content ) . '</div></div>';
462
}
463
464
public static function box( $atts = null, $content = null ) {
inc/core/tools.php CHANGED
@@ -715,6 +715,7 @@ class Su_Tools {
715
'terms' => (array) explode( ',', $args['source']['val'][1] )
716
)
717
);
718
}
719
// Query posts
720
$query = new WP_Query( $query );
715
'terms' => (array) explode( ',', $args['source']['val'][1] )
716
)
717
);
718
+ $query['post_type'] = 'any';
719
}
720
// Query posts
721
$query = new WP_Query( $query );
inc/integrations/load.php ADDED
@@ -0,0 +1,8 @@
1
+ <?php
2
+
3
+ /**
4
+ * Class for managing integrations with other plugins
5
+ */
6
+ class Su_Integrations {
7
+
8
+ }
inc/vendor/sunrise.php CHANGED
@@ -369,7 +369,7 @@ if ( !class_exists( 'Sunrise4_Views' ) ) {
369
$field = wp_parse_args( $field, array( 'actions' => true ) );
370
$return = array();
371
$return[] = '</table>';
372
- if ( $field['actions'] ) $return[] = '<div class="sunrise-actions-bar"><input type="submit" value="' . __( 'Save changes', $config['textdomain'] ) . '" class="sunrise-submit button-primary" /><span class="sunrise-spin"><img src="' . admin_url( 'images/wpspin_light.gif' ) . '" alt="" /> ' . __( 'Saving', $config['textdomain'] ) . '&hellip;</span><span class="sunrise-success-tip"><img src="' . admin_url( 'images/yes.png' ) . '" alt="" /> ' . __( 'Saved', $config['textdomain'] ) . '</span><a href="' . $_SERVER["REQUEST_URI"] . '&amp;sunrise_action=reset" class="sunrise-reset button alignright" title="' . esc_attr( __( 'This action will delete all your settings. Are you sure? This action cannot be undone!', $config['textdomain'] ) ) . '">' . __( 'Restore default settings', $config['textdomain'] ) . '</a></div>';
373
$return[] = '</div>';
374
return implode( '', $return );
375
}
369
$field = wp_parse_args( $field, array( 'actions' => true ) );
370
$return = array();
371
$return[] = '</table>';
372
+ if ( $field['actions'] ) $return[] = '<div class="sunrise-actions-bar"><input type="submit" value="' . __( 'Save changes', $config['textdomain'] ) . '" class="sunrise-submit button-primary" /><span class="sunrise-spin"><img src="' . admin_url( 'images/wpspin_light.gif' ) . '" alt="" /> ' . __( 'Saving', $config['textdomain'] ) . '&hellip;</span><span class="sunrise-success-tip"><img src="' . admin_url( 'images/yes.png' ) . '" alt="" /> ' . __( 'Saved', $config['textdomain'] ) . '</span><a href="' . $_SERVER["REQUEST_URI"] . '&amp;sunrise_action=reset&amp;sunrise_nonce=' . wp_create_nonce( 'sunrise_nonce' ) . '" class="sunrise-reset button alignright" title="' . esc_attr( __( 'This action will delete all your settings. Are you sure? This action cannot be undone!', $config['textdomain'] ) ) . '">' . __( 'Restore default settings', $config['textdomain'] ) . '</a></div>';
373
$return[] = '</div>';
374
return implode( '', $return );
375
}
languages/su-ru_RU.mo CHANGED
Binary file
languages/su-ru_RU.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: gn_themes\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-09-09 21:23+0400\n"
6
- "PO-Revision-Date: 2014-09-09 21:31+0400\n"
7
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
"Language-Team: \n"
9
"Language: ru_RU\n"
@@ -13,7 +13,7 @@ msgstr ""
13
"X-Poedit-KeywordsList: _e;__\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: utf-8\n"
16
- "X-Generator: Poedit 1.6.4\n"
17
"X-Poedit-SearchPath-0: .\n"
18
19
#: inc/core/admin-views.php:9
@@ -24,7 +24,7 @@ msgstr "Добро пожаловать в Shortcodes Ultimate"
24
msgid "A real swiss army knife for WordPress"
25
msgstr "Настоящий швейцарский армейский нож для WordPress"
26
27
- #: inc/core/admin-views.php:11 inc/core/load.php:243
28
msgid "Project homepage"
29
msgstr "Страница проекта"
30
@@ -32,11 +32,11 @@ msgstr "Страница проекта"
32
msgid "Documentation"
33
msgstr "Документация"
34
35
- #: inc/core/admin-views.php:13 inc/core/load.php:244
36
msgid "Support forum"
37
msgstr "Форум поддержки"
38
39
- #: inc/core/admin-views.php:14 inc/core/load.php:245
40
msgid "Changelog"
41
msgstr "Список изменений"
42
@@ -113,8 +113,8 @@ msgid "How to create image gallery"
113
msgstr "Как создать галерею изображений"
114
115
#: inc/core/admin-views.php:63
116
- msgid "You can overview the original styles to override it"
117
- msgstr "Вы можете посмотреть оригинальные стили, чтобы перезаписать их"
118
119
#: inc/core/admin-views.php:75
120
msgid "You can use next variables in your custom CSS"
@@ -132,66 +132,66 @@ msgstr "url папки с текущей темой"
132
msgid "plugin url"
133
msgstr "url папки этого плагина"
134
135
- #: inc/core/admin-views.php:115
136
msgid "Printable version"
137
msgstr "Версия для печати"
138
139
- #: inc/core/admin-views.php:115 inc/core/load.php:30 inc/core/load.php:104
140
- #: inc/core/load.php:113 inc/core/load.php:127 inc/core/load.php:141
141
- #: inc/core/load.php:153 inc/core/tools.php:912 inc/core/widget.php:14
142
#: inc/core/widget.php:40
143
msgid "Shortcodes Ultimate"
144
msgstr "Шорткоды"
145
146
- #: inc/core/admin-views.php:115 inc/core/load.php:127 inc/core/load.php:128
147
msgid "Cheatsheet"
148
msgstr "Шпаргалка"
149
150
- #: inc/core/admin-views.php:115
151
msgid "Back to Dashboard"
152
msgstr "Вернуться в Панель управления"
153
154
- #: inc/core/admin-views.php:119
155
msgid "Shortcode"
156
msgstr "Шорткод"
157
158
- #: inc/core/admin-views.php:119
159
msgid "Attributes"
160
msgstr "Аттрибуты"
161
162
- #: inc/core/admin-views.php:119
163
msgid "Example code"
164
msgstr "Пример кода"
165
166
- #: inc/core/admin-views.php:127
167
msgid "full list"
168
msgstr "полный список"
169
170
- #: inc/core/admin-views.php:132
171
msgid "Default value"
172
msgstr "Значение по умолчанию"
173
174
- #: inc/core/admin-views.php:154
175
msgid "#RGB and rgba() colors"
176
msgstr "#RGB и rgba() цвета"
177
178
- #: inc/core/admin-views.php:162
179
msgid "Any text value"
180
msgstr "Любое текстовое значение"
181
182
- #: inc/core/admin-views.php:164
183
msgid "Any custom CSS classes"
184
msgstr "Любой произвольный CSS класс"
185
186
- #: inc/core/admin-views.php:166
187
msgid "Possible values"
188
msgstr "Возможные значения"
189
190
- #: inc/core/admin-views.php:196
191
msgid "New Shortcodes"
192
msgstr "Новые Шорткоды"
193
194
- #: inc/core/admin-views.php:197
195
msgid ""
196
"Parallax sections, responsive content slider, pricing tables, vector icons, "
197
"testimonials, progress bars and even more"
@@ -199,11 +199,11 @@ msgstr ""
199
"Секции с параллакс эффектом, адаптивный слайдер контента, тарифные таблицы, "
200
"векторные иконки, отзывы, прогресс бары и даже больше"
201
202
- #: inc/core/admin-views.php:202
203
msgid "Maker"
204
msgstr "Maker"
205
206
- #: inc/core/admin-views.php:203
207
msgid ""
208
"This add-on allows you to create custom shortcodes. You can easily create "
209
"any shortcode with different parameters or even override default shortcodes"
@@ -211,11 +211,11 @@ msgstr ""
211
"Это дополнение позволит вам создавать собственные шорткоды. Вы можете с "
212
"легкостью создать новый шорткод или даже перезаписать оригинальный"
213
214
- #: inc/core/admin-views.php:208
215
msgid "Skins"
216
msgstr "Скины"
217
218
- #: inc/core/admin-views.php:209
219
msgid ""
220
"Set of additional skins for Shortcodes Ultimate. It includes skins for "
221
"accordeons/spoilers, tabs and some other shortcodes"
@@ -223,93 +223,93 @@ msgstr ""
223
"Набор дополнительных скинов для шорткодов плагина. Набор включает в себя "
224
"скины для аккордеонов/спойлеров, вкладок и некоторых других шорткодов"
225
226
- #: inc/core/admin-views.php:214
227
msgid "Add-ons bundle"
228
msgstr "Набор дополнений"
229
230
- #: inc/core/admin-views.php:215
231
msgid "Get all three add-ons with huge discount!"
232
msgstr "Получите все три дополнения с большой скидкой"
233
234
- #: inc/core/admin-views.php:221
235
msgid "Shortcodes Ultimate Add-ons"
236
msgstr "Дополнения для Shortcodes Ultimate"
237
238
- #: inc/core/admin-views.php:224 inc/core/admin-views.php:231
239
msgid "Learn more"
240
msgstr "Узнать больше"
241
242
- #: inc/core/admin-views.php:228
243
msgid "Other WordPress Plugins"
244
msgstr "Другие плагины для WordPress"
245
246
- #: inc/core/assets.php:67
247
msgid "Close (Esc)"
248
msgstr "Закрыть (Esc)"
249
250
- #: inc/core/assets.php:68
251
msgid "Loading..."
252
msgstr "Загрузка..."
253
254
- #: inc/core/assets.php:69
255
msgid "Previous (Left arrow key)"
256
msgstr "Назад (Клавиша Влево)"
257
258
- #: inc/core/assets.php:70
259
msgid "Next (Right arrow key)"
260
msgstr "Вперед (Клавиша Вправо)"
261
262
- #: inc/core/assets.php:71
263
#, php-format
264
msgid "%s of %s"
265
msgstr "%s из %s"
266
267
- #: inc/core/assets.php:72
268
#, php-format
269
msgid "Failed to load this link. %sOpen link%s."
270
msgstr "Ошибка загрузки ссылки. %sОткрыть ссылку%s."
271
272
- #: inc/core/assets.php:84
273
msgid "Choose files"
274
msgstr "Выбор файлов"
275
276
- #: inc/core/assets.php:85
277
msgid "Add selected files"
278
msgstr "Добавить выбранные файлы"
279
280
- #: inc/core/assets.php:86
281
msgid "This button is not clickable"
282
msgstr "Эта кнопка не нажимается"
283
284
- #: inc/core/assets.php:94 inc/vendor/sunrise.php:178
285
msgid "Choose file"
286
msgstr "Выбор файла"
287
288
- #: inc/core/assets.php:95
289
msgid "Insert"
290
msgstr "Вставить"
291
292
- #: inc/core/assets.php:96
293
msgid "Select images"
294
msgstr "Выберите изображения"
295
296
- #: inc/core/assets.php:97
297
msgid "Add selected images"
298
msgstr "Добавить выбранные изображения"
299
300
- #: inc/core/assets.php:98
301
msgid "Please enter a name for new preset"
302
msgstr "Пожалуйста введите имя для нового шаблона"
303
304
- #: inc/core/assets.php:99
305
msgid "New preset"
306
msgstr "Новый шаблон"
307
308
- #: inc/core/assets.php:100
309
msgid "Last used settings"
310
msgstr "Последние настройки"
311
312
- #: inc/core/assets.php:113
313
msgid ""
314
"This shortcode doesn't work in live preview. Please insert it into editor "
315
"and preview on the site."
@@ -325,7 +325,7 @@ msgstr "1 новое дополнение для плагина Шорткоды
325
msgid "All"
326
msgstr "Все"
327
328
- #: inc/core/data.php:18 inc/core/generator.php:182
329
msgid "Content"
330
msgstr "Содержимое"
331
@@ -443,11 +443,6 @@ msgstr "Стиль"
443
msgid "Choose style for this heading"
444
msgstr "Выберите стиль для этого заголовка"
445
446
- #: inc/core/data.php:140 inc/core/data.php:194 inc/core/data.php:296
447
- #: inc/core/data.php:520
448
- msgid "Install additional styles"
449
- msgstr "Установить дополнительные стили"
450
-
451
#: inc/core/data.php:148 inc/core/data.php:403 inc/core/data.php:591
452
#: inc/core/data.php:670 inc/core/data.php:776 inc/core/data.php:2923
453
msgid "Size"
@@ -900,7 +895,7 @@ msgstr "Цвет выделяемого текста"
900
msgid "Highlighted text"
901
msgstr "Подсвеченный текст"
902
903
- #: inc/core/data.php:479 inc/core/data.php:503 inc/vendor/sunrise.php:409
904
msgid "Label"
905
msgstr "Ярлык"
906
@@ -1397,7 +1392,7 @@ msgstr "Цветной блок"
1397
msgid "Expand"
1398
msgstr "Развернуть"
1399
1400
- #: inc/core/data.php:990 inc/core/shortcodes.php:501
1401
msgid "Show more"
1402
msgstr "Показать больше"
1403
@@ -1409,7 +1404,7 @@ msgstr "Текст больше"
1409
msgid "Enter the text for more link"
1410
msgstr "Введите здесь текст для ссылки больше"
1411
1412
- #: inc/core/data.php:995 inc/core/shortcodes.php:502
1413
msgid "Show less"
1414
msgstr "Показать меньше"
1415
@@ -1729,7 +1724,7 @@ msgstr ""
1729
"Укажите заголовок окна подсказки. Оставьте поле пустым, чтобы скрыть "
1730
"заголовок"
1731
1732
- #: inc/core/data.php:1256 inc/core/shortcodes.php:565
1733
msgid "Tooltip text"
1734
msgstr "Текст подсказки"
1735
@@ -3444,7 +3439,7 @@ msgid "No"
3444
msgstr "Нет"
3445
3446
#: inc/core/generator-views.php:50 inc/core/generator-views.php:55
3447
- #: inc/vendor/sunrise.php:440
3448
msgid "Media manager"
3449
msgstr "Медиа менеджер"
3450
@@ -3548,12 +3543,12 @@ msgstr ""
3548
"Выберите таксономию и её категории.<br>Вы можете выбрать несколько категорий "
3549
"удерживая клавишу Ctrl (Cmd)"
3550
3551
- #: inc/core/generator.php:43 inc/core/generator.php:147
3552
msgid "Insert shortcode"
3553
msgstr "Вставить шорткод"
3554
3555
#: inc/core/generator.php:86 inc/core/load.php:30 inc/core/load.php:51
3556
- #: inc/core/load.php:104 inc/core/load.php:105
3557
msgid "Settings"
3558
msgstr "Настройки"
3559
@@ -3569,7 +3564,7 @@ msgstr "Сайт плагина"
3569
msgid "Support forums"
3570
msgstr "Форум поддержки"
3571
3572
- #: inc/core/generator.php:92 inc/core/load.php:141 inc/core/load.php:142
3573
msgid "Add-ons"
3574
msgstr "Дополнения"
3575
@@ -3577,51 +3572,59 @@ msgstr "Дополнения"
3577
msgid "Search for shortcodes"
3578
msgstr "Поиск шорткода"
3579
3580
- #: inc/core/generator.php:100
3581
msgid "Filter by type"
3582
msgstr "Фильтр"
3583
3584
- #: inc/core/generator.php:135
3585
msgid "Shortcode not specified"
3586
msgstr "Не выбран шорткод"
3587
3588
- #: inc/core/generator.php:148
3589
msgid "Live preview"
3590
msgstr "Предпросмотр"
3591
3592
- #: inc/core/generator.php:152
3593
msgid "Click to return to the shortcodes list"
3594
msgstr "Нажмите, чтобы вернуться к списку шорткодов"
3595
3596
- #: inc/core/generator.php:152
3597
msgid "All shortcodes"
3598
msgstr "Все шорткоды"
3599
3600
- #: inc/core/generator.php:158
3601
msgid "Examples of use"
3602
msgstr "Примеры использования"
3603
3604
- #: inc/core/generator.php:175
3605
msgid "Click to set this value"
3606
msgstr "Нажмите чтобы установить это значение"
3607
3608
- #: inc/core/generator.php:199
3609
msgid "Preview"
3610
msgstr "Предпросмотр"
3611
3612
- #: inc/core/generator.php:208 inc/core/tools.php:900
3613
msgid "Access denied"
3614
msgstr "Доступ запрещен"
3615
3616
- #: inc/core/generator.php:243
3617
msgid "Presets"
3618
msgstr "Шаблоны"
3619
3620
- #: inc/core/generator.php:246
3621
msgid "Save current settings as preset"
3622
msgstr "Сохранить настройки как новый шаблон"
3623
3624
- #: inc/core/generator.php:275 inc/core/generator.php:278
3625
msgid "Presets not found"
3626
msgstr "Шаблоны не найдены"
3627
@@ -3686,30 +3689,50 @@ msgstr ""
3686
"будут работать"
3687
3688
#: inc/core/load.php:79
3689
msgid "Skin"
3690
msgstr "Скин"
3691
3692
- #: inc/core/load.php:80
3693
msgid "Choose global skin for shortcodes"
3694
msgstr "Выберите глобальный скин для шорткодов"
3695
3696
- #: inc/core/load.php:88
3697
msgid "Custom CSS"
3698
msgstr "Произвольный CSS"
3699
3700
- #: inc/core/load.php:113 inc/core/load.php:114 inc/core/load.php:231
3701
msgid "Examples"
3702
msgstr "Примеры"
3703
3704
- #: inc/core/load.php:154 inc/core/vote.php:42
3705
msgid "Vladimir Anokhin"
3706
msgstr "Владимир Анохин"
3707
3708
- #: inc/core/load.php:155
3709
msgid "Supercharge your WordPress theme with mega pack of shortcodes"
3710
msgstr "Суперзарядка для вашей WordPress-темы с помощью мега набора шорткодов"
3711
3712
- #: inc/core/load.php:232
3713
msgid "Where to start?"
3714
msgstr "С чего начать?"
3715
@@ -3745,15 +3768,15 @@ msgstr ""
3745
msgid "Tab title"
3746
msgstr "Заголовок вкладкки"
3747
3748
- #: inc/core/shortcodes.php:464
3749
msgid "This is box title"
3750
msgstr "Заголовок блока"
3751
3752
- #: inc/core/shortcodes.php:530
3753
msgid "please specify correct source"
3754
msgstr "пожалуйста укажите корректную ссылку"
3755
3756
- #: inc/core/shortcodes.php:551
3757
msgid ""
3758
"please specify correct ID for this block. You should use same ID as in the "
3759
"Content source field (when inserting lightbox shortcode)"
@@ -3761,9 +3784,9 @@ msgstr ""
3761
"пожалуйста укажите корректный ID для этого блока. Вы должны использовать ID "
3762
"из поля Источник содержимого (вводится при вставке шорткода lightbox)"
3763
3764
- #: inc/core/shortcodes.php:618 inc/core/shortcodes.php:622
3765
- #: inc/core/shortcodes.php:657 inc/core/shortcodes.php:661
3766
- #: inc/core/shortcodes.php:690 inc/core/shortcodes.php:694
3767
#: inc/core/shortcodes.php:718 inc/core/shortcodes.php:722
3768
#: inc/core/shortcodes.php:750 inc/core/shortcodes.php:754
3769
#: inc/core/shortcodes.php:777 inc/core/shortcodes.php:784
@@ -3817,19 +3840,31 @@ msgstr ""
3817
"Неверный временной промежуток (%s). Пожалуйста используйте символ - (минус) "
3818
"чтобы указать промежуток времени. Пример: 14:00 - 18:00"
3819
3820
- #: inc/core/tools.php:819
3821
msgid "Example code does not found, please check it later"
3822
msgstr "Код примера не найден, возвращайтесь позже"
3823
3824
- #: inc/core/tools.php:835
3825
msgid "Get the code"
3826
msgstr "Получить код"
3827
3828
- #: inc/core/tools.php:909
3829
msgid "Slide link"
3830
msgstr "Ссылка слайда"
3831
3832
- #: inc/core/tools.php:912
3833
msgid ""
3834
"Use this field to add custom links to slides used with Slider, Carousel and "
3835
"Custom Gallery shortcodes"
@@ -3887,23 +3922,23 @@ msgstr "Заголовок:"
3887
msgid "Plugin Settings"
3888
msgstr "Настройки плагина"
3889
3890
- #: inc/vendor/sunrise.php:179
3891
msgid "Use selected file"
3892
msgstr "Использовать выбранный файл"
3893
3894
- #: inc/vendor/sunrise.php:369
3895
msgid "Save changes"
3896
msgstr "Сохранить изменения"
3897
3898
- #: inc/vendor/sunrise.php:369
3899
msgid "Saving"
3900
msgstr "Сохранение"
3901
3902
- #: inc/vendor/sunrise.php:369
3903
msgid "Saved"
3904
msgstr "Сохранено"
3905
3906
- #: inc/vendor/sunrise.php:369
3907
msgid ""
3908
"This action will delete all your settings. Are you sure? This action cannot "
3909
"be undone!"
@@ -3911,46 +3946,46 @@ msgstr ""
3911
"Данное действие удалит все ваши настройки. Вы уверены? Это действие нельзя "
3912
"будет отменить!"
3913
3914
- #: inc/vendor/sunrise.php:369
3915
msgid "Restore default settings"
3916
msgstr "Сбросить настройки"
3917
3918
- #: inc/vendor/sunrise.php:376 inc/vendor/sunrise.php:385
3919
- #: inc/vendor/sunrise.php:435
3920
msgid "Text field"
3921
msgstr "Текстовое поле"
3922
3923
- #: inc/vendor/sunrise.php:397
3924
msgid "Textarea field"
3925
msgstr "Текстовое поле"
3926
3927
- #: inc/vendor/sunrise.php:408 inc/vendor/sunrise.php:419
3928
msgid "Checkbox"
3929
msgstr "Флажок"
3930
3931
- #: inc/vendor/sunrise.php:445
3932
msgid "Color picker"
3933
msgstr "Пипетка"
3934
3935
- #: inc/vendor/sunrise.php:453
3936
msgid "Pick a color"
3937
msgstr "Выберите цвет"
3938
3939
- #: inc/vendor/sunrise.php:477
3940
msgid ""
3941
"For full functionality of this page it is reccomended to enable javascript."
3942
msgstr ""
3943
"Для полной функциональности этой страницы рекомендуется включить Javascript."
3944
3945
- #: inc/vendor/sunrise.php:478
3946
msgid "Settings saved successfully"
3947
msgstr "Настройки успешно сохранены"
3948
3949
- #: inc/vendor/sunrise.php:479
3950
msgid "Settings reseted successfully"
3951
msgstr "Настройки успешно сброшены"
3952
3953
- #: inc/vendor/sunrise.php:508
3954
#, php-format
3955
msgid "option type %s is not callable"
3956
msgstr "тип поля %s не может быть отображен"
@@ -3975,3 +4010,9 @@ msgstr "Записи не найдены"
3975
#: templates/single-post.php:17
3976
msgid "%n comments"
3977
msgstr "%n комментариев"
2
msgstr ""
3
"Project-Id-Version: gn_themes\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-04-06 06:07+0300\n"
6
+ "PO-Revision-Date: 2015-04-06 06:11+0300\n"
7
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
"Language-Team: \n"
9
"Language: ru_RU\n"
13
"X-Poedit-KeywordsList: _e;__\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Generator: Poedit 1.7.5\n"
17
"X-Poedit-SearchPath-0: .\n"
18
19
#: inc/core/admin-views.php:9
24
msgid "A real swiss army knife for WordPress"
25
msgstr "Настоящий швейцарский армейский нож для WordPress"
26
27
+ #: inc/core/admin-views.php:11 inc/core/load.php:240
28
msgid "Project homepage"
29
msgstr "Страница проекта"
30
32
msgid "Documentation"
33
msgstr "Документация"
34
35
+ #: inc/core/admin-views.php:13 inc/core/load.php:241
36
msgid "Support forum"
37
msgstr "Форум поддержки"
38
39
+ #: inc/core/admin-views.php:14 inc/core/load.php:242
40
msgid "Changelog"
41
msgstr "Список изменений"
42
113
msgstr "Как создать галерею изображений"
114
115
#: inc/core/admin-views.php:63
116
+ msgid "You can overview the original styles to overwrite it"
117
+ msgstr "Вы можете посмотреть оригинальные стили, чтобы переопределить их"
118
119
#: inc/core/admin-views.php:75
120
msgid "You can use next variables in your custom CSS"
132
msgid "plugin url"
133
msgstr "url папки этого плагина"
134
135
+ #: inc/core/admin-views.php:116
136
msgid "Printable version"
137
msgstr "Версия для печати"
138
139
+ #: inc/core/admin-views.php:116 inc/core/load.php:30 inc/core/load.php:111
140
+ #: inc/core/load.php:120 inc/core/load.php:134 inc/core/load.php:148
141
+ #: inc/core/load.php:160 inc/core/tools.php:867 inc/core/widget.php:14
142
#: inc/core/widget.php:40
143
msgid "Shortcodes Ultimate"
144
msgstr "Шорткоды"
145
146
+ #: inc/core/admin-views.php:116 inc/core/load.php:134 inc/core/load.php:135
147
msgid "Cheatsheet"
148
msgstr "Шпаргалка"
149
150
+ #: inc/core/admin-views.php:116
151
msgid "Back to Dashboard"
152
msgstr "Вернуться в Панель управления"
153
154
+ #: inc/core/admin-views.php:120
155
msgid "Shortcode"
156
msgstr "Шорткод"
157
158
+ #: inc/core/admin-views.php:120
159
msgid "Attributes"
160
msgstr "Аттрибуты"
161
162
+ #: inc/core/admin-views.php:120
163
msgid "Example code"
164
msgstr "Пример кода"
165
166
+ #: inc/core/admin-views.php:128
167
msgid "full list"
168
msgstr "полный список"
169
170
+ #: inc/core/admin-views.php:133
171
msgid "Default value"
172
msgstr "Значение по умолчанию"
173
174
+ #: inc/core/admin-views.php:157
175
msgid "#RGB and rgba() colors"
176
msgstr "#RGB и rgba() цвета"
177
178
+ #: inc/core/admin-views.php:165
179
msgid "Any text value"
180
msgstr "Любое текстовое значение"
181
182
+ #: inc/core/admin-views.php:167
183
msgid "Any custom CSS classes"
184
msgstr "Любой произвольный CSS класс"
185
186
+ #: inc/core/admin-views.php:169
187
msgid "Possible values"
188
msgstr "Возможные значения"
189
190
+ #: inc/core/admin-views.php:201
191
msgid "New Shortcodes"
192
msgstr "Новые Шорткоды"
193
194
+ #: inc/core/admin-views.php:202
195
msgid ""
196
"Parallax sections, responsive content slider, pricing tables, vector icons, "
197
"testimonials, progress bars and even more"
199
"Секции с параллакс эффектом, адаптивный слайдер контента, тарифные таблицы, "
200
"векторные иконки, отзывы, прогресс бары и даже больше"
201
202
+ #: inc/core/admin-views.php:207
203
msgid "Maker"
204
msgstr "Maker"
205
206
+ #: inc/core/admin-views.php:208
207
msgid ""
208
"This add-on allows you to create custom shortcodes. You can easily create "
209
"any shortcode with different parameters or even override default shortcodes"
211
"Это дополнение позволит вам создавать собственные шорткоды. Вы можете с "
212
"легкостью создать новый шорткод или даже перезаписать оригинальный"
213
214
+ #: inc/core/admin-views.php:213
215
msgid "Skins"
216
msgstr "Скины"
217
218
+ #: inc/core/admin-views.php:214
219
msgid ""
220
"Set of additional skins for Shortcodes Ultimate. It includes skins for "
221
"accordeons/spoilers, tabs and some other shortcodes"
223
"Набор дополнительных скинов для шорткодов плагина. Набор включает в себя "
224
"скины для аккордеонов/спойлеров, вкладок и некоторых других шорткодов"
225
226
+ #: inc/core/admin-views.php:219
227
msgid "Add-ons bundle"
228
msgstr "Набор дополнений"
229
230
+ #: inc/core/admin-views.php:220
231
msgid "Get all three add-ons with huge discount!"
232
msgstr "Получите все три дополнения с большой скидкой"
233
234
+ #: inc/core/admin-views.php:226
235
msgid "Shortcodes Ultimate Add-ons"
236
msgstr "Дополнения для Shortcodes Ultimate"
237
238
+ #: inc/core/admin-views.php:229 inc/core/admin-views.php:236
239
msgid "Learn more"
240
msgstr "Узнать больше"
241
242
+ #: inc/core/admin-views.php:233
243
msgid "Other WordPress Plugins"
244
msgstr "Другие плагины для WordPress"
245
246
+ #: inc/core/assets.php:70
247
msgid "Close (Esc)"
248
msgstr "Закрыть (Esc)"
249
250
+ #: inc/core/assets.php:71
251
msgid "Loading..."
252
msgstr "Загрузка..."
253
254
+ #: inc/core/assets.php:72
255
msgid "Previous (Left arrow key)"
256
msgstr "Назад (Клавиша Влево)"
257
258
+ #: inc/core/assets.php:73
259
msgid "Next (Right arrow key)"
260
msgstr "Вперед (Клавиша Вправо)"
261
262
+ #: inc/core/assets.php:74
263
#, php-format
264
msgid "%s of %s"
265
msgstr "%s из %s"
266
267
+ #: inc/core/assets.php:75
268
#, php-format
269
msgid "Failed to load this link. %sOpen link%s."
270
msgstr "Ошибка загрузки ссылки. %sОткрыть ссылку%s."
271
272
+ #: inc/core/assets.php:87
273
msgid "Choose files"
274
msgstr "Выбор файлов"
275
276
+ #: inc/core/assets.php:88
277
msgid "Add selected files"
278
msgstr "Добавить выбранные файлы"
279
280
+ #: inc/core/assets.php:89
281
msgid "This button is not clickable"
282
msgstr "Эта кнопка не нажимается"
283
284
+ #: inc/core/assets.php:97 inc/vendor/sunrise.php:179
285
msgid "Choose file"
286
msgstr "Выбор файла"
287
288
+ #: inc/core/assets.php:98
289
msgid "Insert"
290
msgstr "Вставить"
291
292
+ #: inc/core/assets.php:99
293
msgid "Select images"
294
msgstr "Выберите изображения"
295
296
+ #: inc/core/assets.php:100
297
msgid "Add selected images"
298
msgstr "Добавить выбранные изображения"
299
300
+ #: inc/core/assets.php:101
301
msgid "Please enter a name for new preset"
302
msgstr "Пожалуйста введите имя для нового шаблона"
303
304
+ #: inc/core/assets.php:102
305
msgid "New preset"
306
msgstr "Новый шаблон"
307
308
+ #: inc/core/assets.php:103
309
msgid "Last used settings"
310
msgstr "Последние настройки"
311
312
+ #: inc/core/assets.php:120
313
msgid ""
314
"This shortcode doesn't work in live preview. Please insert it into editor "
315
"and preview on the site."
325
msgid "All"
326
msgstr "Все"
327
328
+ #: inc/core/data.php:18 inc/core/generator.php:187
329
msgid "Content"
330
msgstr "Содержимое"
331
443
msgid "Choose style for this heading"
444
msgstr "Выберите стиль для этого заголовка"
445
446
#: inc/core/data.php:148 inc/core/data.php:403 inc/core/data.php:591
447
#: inc/core/data.php:670 inc/core/data.php:776 inc/core/data.php:2923
448
msgid "Size"
895
msgid "Highlighted text"
896
msgstr "Подсвеченный текст"
897
898
+ #: inc/core/data.php:479 inc/core/data.php:503 inc/vendor/sunrise.php:421
899
msgid "Label"
900
msgstr "Ярлык"
901
1392
msgid "Expand"
1393
msgstr "Развернуть"
1394
1395
+ #: inc/core/data.php:990 inc/core/shortcodes.php:503
1396
msgid "Show more"
1397
msgstr "Показать больше"
1398
1404
msgid "Enter the text for more link"
1405
msgstr "Введите здесь текст для ссылки больше"
1406
1407
+ #: inc/core/data.php:995 inc/core/shortcodes.php:504
1408
msgid "Show less"
1409
msgstr "Показать меньше"
1410
1724
"Укажите заголовок окна подсказки. Оставьте поле пустым, чтобы скрыть "
1725
"заголовок"
1726
1727
+ #: inc/core/data.php:1256 inc/core/shortcodes.php:567
1728
msgid "Tooltip text"
1729
msgstr "Текст подсказки"
1730
3439
msgstr "Нет"
3440
3441
#: inc/core/generator-views.php:50 inc/core/generator-views.php:55
3442
+ #: inc/vendor/sunrise.php:452
3443
msgid "Media manager"
3444
msgstr "Медиа менеджер"
3445
3543
"Выберите таксономию и её категории.<br>Вы можете выбрать несколько категорий "
3544
"удерживая клавишу Ctrl (Cmd)"
3545
3546
+ #: inc/core/generator.php:43 inc/core/generator.php:148
3547
msgid "Insert shortcode"
3548
msgstr "Вставить шорткод"
3549
3550
#: inc/core/generator.php:86 inc/core/load.php:30 inc/core/load.php:51
3551
+ #: inc/core/load.php:111 inc/core/load.php:112
3552
msgid "Settings"
3553
msgstr "Настройки"
3554
3564
msgid "Support forums"
3565
msgstr "Форум поддержки"
3566
3567
+ #: inc/core/generator.php:92 inc/core/load.php:148 inc/core/load.php:149
3568
msgid "Add-ons"
3569
msgstr "Дополнения"
3570
3572
msgid "Search for shortcodes"
3573
msgstr "Поиск шорткода"
3574
3575
+ #: inc/core/generator.php:99
3576
+ msgid "Pro Tip"
3577
+ msgstr "Совет"
3578
+
3579
+ #: inc/core/generator.php:99
3580
+ msgid "Hit enter to select highlighted shortcode, while searching"
3581
+ msgstr "Нажмите Enter во время поиска, чтобы выбрать подсвеченный шорткод"
3582
+
3583
+ #: inc/core/generator.php:101
3584
msgid "Filter by type"
3585
msgstr "Фильтр"
3586
3587
+ #: inc/core/generator.php:136
3588
msgid "Shortcode not specified"
3589
msgstr "Не выбран шорткод"
3590
3591
+ #: inc/core/generator.php:149
3592
msgid "Live preview"
3593
msgstr "Предпросмотр"
3594
3595
+ #: inc/core/generator.php:153
3596
msgid "Click to return to the shortcodes list"
3597
msgstr "Нажмите, чтобы вернуться к списку шорткодов"
3598
3599
+ #: inc/core/generator.php:153
3600
msgid "All shortcodes"
3601
msgstr "Все шорткоды"
3602
3603
+ #: inc/core/generator.php:159
3604
msgid "Examples of use"
3605
msgstr "Примеры использования"
3606
3607
+ #: inc/core/generator.php:177
3608
msgid "Click to set this value"
3609
msgstr "Нажмите чтобы установить это значение"
3610
3611
+ #: inc/core/generator.php:205
3612
msgid "Preview"
3613
msgstr "Предпросмотр"
3614
3615
+ #: inc/core/generator.php:214 inc/core/tools.php:855
3616
msgid "Access denied"
3617
msgstr "Доступ запрещен"
3618
3619
+ #: inc/core/generator.php:249
3620
msgid "Presets"
3621
msgstr "Шаблоны"
3622
3623
+ #: inc/core/generator.php:252
3624
msgid "Save current settings as preset"
3625
msgstr "Сохранить настройки как новый шаблон"
3626
3627
+ #: inc/core/generator.php:281 inc/core/generator.php:284
3628
msgid "Presets not found"
3629
msgstr "Шаблоны не найдены"
3630
3689
"будут работать"
3690
3691
#: inc/core/load.php:79
3692
+ msgid "Insert shortcode Hotkey"
3693
+ msgstr "Горячая клавиша"
3694
+
3695
+ #: inc/core/load.php:80
3696
+ msgid ""
3697
+ "Here you can define custom hotkey for the Insert shortcode popup window. "
3698
+ "Leave this field empty to disable hotkey"
3699
+ msgstr ""
3700
+ "Здесь вы можете задать свою горячую клавишу для открытия окна Вставить "
3701
+ "шорткод. Оставьте это поле пустым, чтобы отключить горячую клавишу"
3702
+
3703
+ #: inc/core/load.php:80
3704
+ msgid "Hotkey examples"
3705
+ msgstr "Примеры горячих клавиш"
3706
+
3707
+ #: inc/core/load.php:80
3708
+ msgid "Additional notes"
3709
+ msgstr "Дополнительные заметки"
3710
+
3711
+ #: inc/core/load.php:86
3712
msgid "Skin"
3713
msgstr "Скин"
3714
3715
+ #: inc/core/load.php:87
3716
msgid "Choose global skin for shortcodes"
3717
msgstr "Выберите глобальный скин для шорткодов"
3718
3719
+ #: inc/core/load.php:95
3720
msgid "Custom CSS"
3721
msgstr "Произвольный CSS"
3722
3723
+ #: inc/core/load.php:120 inc/core/load.php:121 inc/core/load.php:228
3724
msgid "Examples"
3725
msgstr "Примеры"
3726
3727
+ #: inc/core/load.php:161 inc/core/vote.php:42
3728
msgid "Vladimir Anokhin"
3729
msgstr "Владимир Анохин"
3730
3731
+ #: inc/core/load.php:162
3732
msgid "Supercharge your WordPress theme with mega pack of shortcodes"
3733
msgstr "Суперзарядка для вашей WordPress-темы с помощью мега набора шорткодов"
3734
3735
+ #: inc/core/load.php:229
3736
msgid "Where to start?"
3737
msgstr "С чего начать?"
3738
3768
msgid "Tab title"
3769
msgstr "Заголовок вкладкки"
3770
3771
+ #: inc/core/shortcodes.php:466
3772
msgid "This is box title"
3773
msgstr "Заголовок блока"
3774
3775
+ #: inc/core/shortcodes.php:532
3776
msgid "please specify correct source"
3777
msgstr "пожалуйста укажите корректную ссылку"
3778
3779
+ #: inc/core/shortcodes.php:553
3780
msgid ""
3781
"please specify correct ID for this block. You should use same ID as in the "
3782
"Content source field (when inserting lightbox shortcode)"
3784
"пожалуйста укажите корректный ID для этого блока. Вы должны использовать ID "
3785
"из поля Источник содержимого (вводится при вставке шорткода lightbox)"
3786
3787
+ #: inc/core/shortcodes.php:620 inc/core/shortcodes.php:624
3788
+ #: inc/core/shortcodes.php:659 inc/core/shortcodes.php:663
3789
+ #: inc/core/shortcodes.php:692 inc/core/shortcodes.php:696
3790
#: inc/core/shortcodes.php:718 inc/core/shortcodes.php:722
3791
#: inc/core/shortcodes.php:750 inc/core/shortcodes.php:754
3792
#: inc/core/shortcodes.php:777 inc/core/shortcodes.php:784
3840
"Неверный временной промежуток (%s). Пожалуйста используйте символ - (минус) "
3841
"чтобы указать промежуток времени. Пример: 14:00 - 18:00"
3842
3843
+ #: inc/core/tools.php:258
3844
+ msgid "Additional skins successfully installed"
3845
+ msgstr "Дополнительные стили успешно установлены"
3846
+
3847
+ #: inc/core/tools.php:258
3848
+ msgid "Open dropdown to choose one of new styles"
3849
+ msgstr "Откройте выпадающий список, чтобы выбрать один из новых стилей"
3850
+
3851
+ #: inc/core/tools.php:259
3852
+ msgid "Get more styles"
3853
+ msgstr "Получить больше стилей"
3854
+
3855
+ #: inc/core/tools.php:774
3856
msgid "Example code does not found, please check it later"
3857
msgstr "Код примера не найден, возвращайтесь позже"
3858
3859
+ #: inc/core/tools.php:790
3860
msgid "Get the code"
3861
msgstr "Получить код"
3862
3863
+ #: inc/core/tools.php:864
3864
msgid "Slide link"
3865
msgstr "Ссылка слайда"
3866
3867
+ #: inc/core/tools.php:867
3868
msgid ""
3869
"Use this field to add custom links to slides used with Slider, Carousel and "
3870
"Custom Gallery shortcodes"
3922
msgid "Plugin Settings"
3923
msgstr "Настройки плагина"
3924
3925
+ #: inc/vendor/sunrise.php:180
3926
msgid "Use selected file"
3927
msgstr "Использовать выбранный файл"
3928
3929
+ #: inc/vendor/sunrise.php:372
3930
msgid "Save changes"
3931
msgstr "Сохранить изменения"
3932
3933
+ #: inc/vendor/sunrise.php:372
3934
msgid "Saving"
3935
msgstr "Сохранение"
3936
3937
+ #: inc/vendor/sunrise.php:372
3938
msgid "Saved"
3939
msgstr "Сохранено"
3940
3941
+ #: inc/vendor/sunrise.php:372
3942
msgid ""
3943
"This action will delete all your settings. Are you sure? This action cannot "
3944
"be undone!"
3946
"Данное действие удалит все ваши настройки. Вы уверены? Это действие нельзя "
3947
"будет отменить!"
3948
3949
+ #: inc/vendor/sunrise.php:372
3950
msgid "Restore default settings"
3951
msgstr "Сбросить настройки"
3952
3953
+ #: inc/vendor/sunrise.php:379 inc/vendor/sunrise.php:388
3954
+ #: inc/vendor/sunrise.php:397 inc/vendor/sunrise.php:447
3955
msgid "Text field"
3956
msgstr "Текстовое поле"
3957
3958
+ #: inc/vendor/sunrise.php:409
3959
msgid "Textarea field"
3960
msgstr "Текстовое поле"
3961
3962
+ #: inc/vendor/sunrise.php:420 inc/vendor/sunrise.php:431
3963
msgid "Checkbox"
3964
msgstr "Флажок"
3965
3966
+ #: inc/vendor/sunrise.php:457
3967
msgid "Color picker"
3968
msgstr "Пипетка"
3969
3970
+ #: inc/vendor/sunrise.php:465
3971
msgid "Pick a color"
3972
msgstr "Выберите цвет"
3973
3974
+ #: inc/vendor/sunrise.php:489
3975
msgid ""
3976
"For full functionality of this page it is reccomended to enable javascript."
3977
msgstr ""
3978
"Для полной функциональности этой страницы рекомендуется включить Javascript."
3979
3980
+ #: inc/vendor/sunrise.php:490
3981
msgid "Settings saved successfully"
3982
msgstr "Настройки успешно сохранены"
3983
3984
+ #: inc/vendor/sunrise.php:491
3985
msgid "Settings reseted successfully"
3986
msgstr "Настройки успешно сброшены"
3987
3988
+ #: inc/vendor/sunrise.php:520
3989
#, php-format
3990
msgid "option type %s is not callable"
3991
msgstr "тип поля %s не может быть отображен"
4010
#: templates/single-post.php:17
4011
msgid "%n comments"
4012
msgstr "%n комментариев"
4013
+
4014
+ #~ msgid "You can overview the original styles to override it"
4015
+ #~ msgstr "Вы можете посмотреть оригинальные стили, чтобы перезаписать их"
4016
+
4017
+ #~ msgid "Install additional styles"
4018
+ #~ msgstr "Установить дополнительные стили"
languages/su.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: Shortcodes Ultimate\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-10-30 15:07+0400\n"
6
- "PO-Revision-Date: 2014-10-30 15:07+0400\n"
7
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
"Language-Team: \n"
9
"Language: su\n"
@@ -12,8 +12,9 @@ msgstr ""
12
"Content-Transfer-Encoding: 8bit\n"
13
"X-Poedit-KeywordsList: _e;__\n"
14
"X-Poedit-Basepath: ..\n"
15
- "X-Poedit-SourceCharset: utf-8\n"
16
- "X-Generator: Poedit 1.6.4\n"
17
"X-Poedit-SearchPath-0: .\n"
18
19
#: inc/core/admin-views.php:9
@@ -24,7 +25,7 @@ msgstr ""
24
msgid "A real swiss army knife for WordPress"
25
msgstr ""
26
27
- #: inc/core/admin-views.php:11 inc/core/load.php:243
28
msgid "Project homepage"
29
msgstr ""
30
@@ -32,11 +33,11 @@ msgstr ""
32
msgid "Documentation"
33
msgstr ""
34
35
- #: inc/core/admin-views.php:13 inc/core/load.php:244
36
msgid "Support forum"
37
msgstr ""
38
39
- #: inc/core/admin-views.php:14 inc/core/load.php:245
40
msgid "Changelog"
41
msgstr ""
42
@@ -109,7 +110,7 @@ msgid "How to create image gallery"
109
msgstr ""
110
111
#: inc/core/admin-views.php:63
112
- msgid "You can overview the original styles to override it"
113
msgstr ""
114
115
#: inc/core/admin-views.php:75
@@ -128,178 +129,178 @@ msgstr ""
128
msgid "plugin url"
129
msgstr ""
130
131
- #: inc/core/admin-views.php:115
132
msgid "Printable version"
133
msgstr ""
134
135
- #: inc/core/admin-views.php:115 inc/core/load.php:30 inc/core/load.php:104
136
- #: inc/core/load.php:113 inc/core/load.php:127 inc/core/load.php:141
137
- #: inc/core/load.php:153 inc/core/tools.php:872 inc/core/widget.php:14
138
#: inc/core/widget.php:40
139
msgid "Shortcodes Ultimate"
140
msgstr ""
141
142
- #: inc/core/admin-views.php:115 inc/core/load.php:127 inc/core/load.php:128
143
msgid "Cheatsheet"
144
msgstr ""
145
146
- #: inc/core/admin-views.php:115
147
msgid "Back to Dashboard"
148
msgstr ""
149
150
- #: inc/core/admin-views.php:119
151
msgid "Shortcode"
152
msgstr ""
153
154
- #: inc/core/admin-views.php:119
155
msgid "Attributes"
156
msgstr ""
157
158
- #: inc/core/admin-views.php:119
159
msgid "Example code"
160
msgstr ""
161
162
- #: inc/core/admin-views.php:127
163
msgid "full list"
164
msgstr ""
165
166
- #: inc/core/admin-views.php:132
167
msgid "Default value"
168
msgstr ""
169
170
- #: inc/core/admin-views.php:154
171
msgid "#RGB and rgba() colors"
172
msgstr ""
173
174
- #: inc/core/admin-views.php:162
175
msgid "Any text value"
176
msgstr ""
177
178
- #: inc/core/admin-views.php:164
179
msgid "Any custom CSS classes"
180
msgstr ""
181
182
- #: inc/core/admin-views.php:166
183
msgid "Possible values"
184
msgstr ""
185
186
- #: inc/core/admin-views.php:196
187
msgid "New Shortcodes"
188
msgstr ""
189
190
- #: inc/core/admin-views.php:197
191
msgid ""
192
"Parallax sections, responsive content slider, pricing tables, vector icons, "
193
"testimonials, progress bars and even more"
194
msgstr ""
195
196
- #: inc/core/admin-views.php:202
197
msgid "Maker"
198
msgstr ""
199
200
- #: inc/core/admin-views.php:203
201
msgid ""
202
"This add-on allows you to create custom shortcodes. You can easily create "
203
"any shortcode with different parameters or even override default shortcodes"
204
msgstr ""
205
206
- #: inc/core/admin-views.php:208
207
msgid "Skins"
208
msgstr ""
209
210
- #: inc/core/admin-views.php:209
211
msgid ""
212
"Set of additional skins for Shortcodes Ultimate. It includes skins for "
213
"accordeons/spoilers, tabs and some other shortcodes"
214
msgstr ""
215
216
- #: inc/core/admin-views.php:214
217
msgid "Add-ons bundle"
218
msgstr ""
219
220
- #: inc/core/admin-views.php:215
221
msgid "Get all three add-ons with huge discount!"
222
msgstr ""
223
224
- #: inc/core/admin-views.php:221
225
msgid "Shortcodes Ultimate Add-ons"
226
msgstr ""
227
228
- #: inc/core/admin-views.php:224 inc/core/admin-views.php:231
229
msgid "Learn more"
230
msgstr ""
231
232
- #: inc/core/admin-views.php:228
233
msgid "Other WordPress Plugins"
234
msgstr ""
235
236
- #: inc/core/assets.php:67
237
msgid "Close (Esc)"
238
msgstr ""
239
240
- #: inc/core/assets.php:68
241
msgid "Loading..."
242
msgstr ""
243
244
- #: inc/core/assets.php:69
245
msgid "Previous (Left arrow key)"
246
msgstr ""
247
248
- #: inc/core/assets.php:70
249
msgid "Next (Right arrow key)"
250
msgstr ""
251
252
- #: inc/core/assets.php:71