Shortcodes Ultimate - Version 5.6.0

Version Description

What's new

  • Shortcodes can now be enabled not only in Category descriptions, but in any Term description. See Enable shortcodes in option at plugin settings page

Fixes

  • Fixed WP-Rocket compatibility issue, [su_image_carousel] didn't work on Android Chrome. Forum topic
  • Fixed issue with <span> tags in the [su_tabs] shortcode. Forum topic
  • Fixed issue with ghost-style button colors
Download this release

Release Info

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

Code changes from version 5.5.0 to 5.6.0

Files changed (52) hide show
  1. admin/class-shortcodes-ultimate-admin-addons.php +4 -1
  2. admin/class-shortcodes-ultimate-admin-extra-shortcodes.php +150 -0
  3. admin/class-shortcodes-ultimate-admin-settings.php +2 -2
  4. admin/class-shortcodes-ultimate-admin-shortcodes.php +29 -1
  5. admin/css/available-shortcodes.css +1 -1
  6. admin/css/generator.css +1 -1
  7. admin/images/extra/icon-available-shortcodes.png +0 -0
  8. admin/images/extra/icon-banner.png +0 -0
  9. admin/images/extra/icon-generator.png +0 -0
  10. admin/images/extra/screenshots/content_slider.png +0 -0
  11. admin/images/extra/screenshots/exit_popup.png +0 -0
  12. admin/images/extra/screenshots/icon.png +0 -0
  13. admin/images/extra/screenshots/icon_panel.png +0 -0
  14. admin/images/extra/screenshots/icon_text.png +0 -0
  15. admin/images/extra/screenshots/member.png +0 -0
  16. admin/images/extra/screenshots/panel.png +0 -0
  17. admin/images/extra/screenshots/photo_panel.png +0 -0
  18. admin/images/extra/screenshots/pricing_table.png +0 -0
  19. admin/images/extra/screenshots/progress_bar.png +0 -0
  20. admin/images/extra/screenshots/progress_pie.png +0 -0
  21. admin/images/extra/screenshots/section.png +0 -0
  22. admin/images/extra/screenshots/shadow.png +0 -0
  23. admin/images/extra/screenshots/splash.png +0 -0
  24. admin/images/extra/screenshots/testimonial.png +0 -0
  25. admin/partials/extra/available-shortcodes.php +14 -0
  26. admin/partials/extra/generator.php +22 -0
  27. admin/partials/pages/shortcodes-list.php +33 -29
  28. admin/partials/pages/shortcodes-single-content.php +76 -0
  29. admin/partials/pages/shortcodes-single.php +16 -88
  30. admin/partials/pages/shortcodes.php +0 -11
  31. inc/core/assets.php +6 -7
  32. inc/core/generator.php +16 -3
  33. includes/class-shortcodes-ultimate-upgrade.php +35 -22
  34. includes/class-shortcodes-ultimate.php +23 -2
  35. includes/config/default-settings.php +1 -1
  36. includes/css/shortcodes.css +1 -1
  37. includes/css/shortcodes.full.css +1 -1
  38. includes/functions-colors.php +125 -0
  39. includes/functions-helpers.php +0 -65
  40. includes/js/block-editor/index.js +2 -1
  41. includes/js/block-editor/index.js.map +1 -0
  42. includes/js/generator/index.js +2 -1
  43. includes/js/generator/index.js.map +1 -0
  44. includes/js/shortcodes/index.js +2 -1
  45. includes/js/shortcodes/index.js.map +1 -0
  46. includes/shortcodes/button.php +3 -3
  47. includes/shortcodes/image-carousel.php +1 -1
  48. includes/upgrade/5.2.0.php +1 -1
  49. includes/upgrade/5.6.0.php +25 -0
  50. readme.txt +13 -0
  51. shortcodes-ultimate.php +2 -2
  52. templates/README.txt +5 -0
admin/class-shortcodes-ultimate-admin-addons.php CHANGED
@@ -24,7 +24,10 @@ final class Shortcodes_Ultimate_Admin_Addons extends Shortcodes_Ultimate_Admin {
24
$this->add_submenu_page(
25
rtrim( $this->plugin_prefix, '-_' ),
26
__( 'Add-ons', 'shortcodes-ultimate' ),
27
- __( 'Add-ons', 'shortcodes-ultimate' ),
28
$this->get_capability(),
29
$this->plugin_prefix . 'addons',
30
array( $this, 'the_menu_page' )
24
$this->add_submenu_page(
25
rtrim( $this->plugin_prefix, '-_' ),
26
__( 'Add-ons', 'shortcodes-ultimate' ),
27
+ sprintf(
28
+ '<span style="color:#2afd39">&#9733; %s</span>',
29
+ __( 'Add-ons', 'shortcodes-ultimate' )
30
+ ),
31
$this->get_capability(),
32
$this->plugin_prefix . 'addons',
33
array( $this, 'the_menu_page' )
admin/class-shortcodes-ultimate-admin-extra-shortcodes.php ADDED
@@ -0,0 +1,150 @@
1
+ <?php
2
+
3
+ class Shortcodes_Ultimate_Admin_Extra_Shortcodes {
4
+
5
+ public function __construct() {}
6
+
7
+ public function register_shortcodes() {
8
+
9
+ if ( $this->is_extra_active() ) {
10
+ return;
11
+ }
12
+
13
+ foreach ( $this->get_shortcodes() as $shortcode ) {
14
+
15
+ su_add_shortcode(
16
+ wp_parse_args(
17
+ $shortcode,
18
+ array(
19
+ 'group' => 'extra',
20
+ 'image' => $this->get_image_url( 'icon-available-shortcodes.png' ),
21
+ 'icon' => $this->get_image_url( 'icon-generator.png' ),
22
+ 'desc' => '',
23
+ 'callback' => '__return_empty_string',
24
+ 'atts' => array(),
25
+ 'generator_callback' => array( $this, 'generator_callback' ),
26
+ 'as_callback' => array( $this, 'as_callback' ),
27
+ )
28
+ )
29
+ );
30
+
31
+ }
32
+
33
+ }
34
+
35
+ public function register_group( $groups ) {
36
+
37
+ if ( ! $this->is_extra_active() ) {
38
+ $groups['extra'] = _x( 'Extra Shortcodes', 'Custom shortcodes group name', 'shortcodes-ultimate' );
39
+ }
40
+
41
+ return $groups;
42
+
43
+ }
44
+
45
+ public function generator_callback( $shortcode ) {
46
+ // phpcs:disable
47
+ echo $this->get_template( 'generator', $shortcode );
48
+ // phpcs:enable
49
+ }
50
+
51
+ public function as_callback( $shortcode ) {
52
+ // phpcs:disable
53
+ echo $this->get_template( 'available-shortcodes', $shortcode );
54
+ // phpcs:enable
55
+ }
56
+
57
+ public function get_image_url( $path ) {
58
+ return plugin_dir_url( __FILE__ ) . 'images/extra/' . $path;
59
+ }
60
+
61
+ private function is_extra_active() {
62
+ return did_action( 'su/extra/ready' );
63
+ }
64
+
65
+ private function get_shortcodes() {
66
+
67
+ return array(
68
+ array(
69
+ 'id' => 'splash',
70
+ 'name' => __( 'Splash screen', 'shortcodes-ultimate' ),
71
+ ),
72
+ array(
73
+ 'id' => 'exit_popup',
74
+ 'name' => __( 'Exit popup', 'shortcodes-ultimate' ),
75
+ ),
76
+ array(
77
+ 'id' => 'panel',
78
+ 'name' => __( 'Panel', 'shortcodes-ultimate' ),
79
+ ),
80
+ array(
81
+ 'id' => 'photo_panel',
82
+ 'name' => __( 'Photo panel', 'shortcodes-ultimate' ),
83
+ ),
84
+ array(
85
+ 'id' => 'icon_panel',
86
+ 'name' => __( 'Icon panel', 'shortcodes-ultimate' ),
87
+ ),
88
+ array(
89
+ 'id' => 'icon_text',
90
+ 'name' => __( 'Text with icon', 'shortcodes-ultimate' ),
91
+ ),
92
+ array(
93
+ 'id' => 'progress_pie',
94
+ 'name' => __( 'Progress pie', 'shortcodes-ultimate' ),
95
+ ),
96
+ array(
97
+ 'id' => 'progress_bar',
98
+ 'name' => __( 'Progress bar', 'shortcodes-ultimate' ),
99
+ ),
100
+ array(
101
+ 'id' => 'member',
102
+ 'name' => __( 'Member', 'shortcodes-ultimate' ),
103
+ ),
104
+ array(
105
+ 'id' => 'section',
106
+ 'name' => __( 'Section', 'shortcodes-ultimate' ),
107
+ ),
108
+ array(
109
+ 'id' => 'pricing_table',
110
+ 'name' => __( 'Pricing table', 'shortcodes-ultimate' ),
111
+ ),
112
+ array(
113
+ 'id' => 'testimonial',
114
+ 'name' => __( 'Testimonial', 'shortcodes-ultimate' ),
115
+ ),
116
+ array(
117
+ 'id' => 'icon',
118
+ 'name' => __( 'Icon', 'shortcodes-ultimate' ),
119
+ ),
120
+ array(
121
+ 'id' => 'content_slider',
122
+ 'name' => __( 'Content slider', 'shortcodes-ultimate' ),
123
+ ),
124
+ array(
125
+ 'id' => 'shadow',
126
+ 'name' => __( 'Shadow', 'shortcodes-ultimate' ),
127
+ ),
128
+ );
129
+
130
+ }
131
+
132
+ protected function get_template( $name = '', $data = array() ) {
133
+
134
+ if ( preg_match( '/^(?!-)[a-z0-9-_]+(?<!-)(\/(?!-)[a-z0-9-_]+(?<!-))*#x2F;', $name ) !== 1 ) {
135
+ return '';
136
+ }
137
+
138
+ $file = plugin_dir_path( __FILE__ ) . 'partials/extra/' . $name . '.php';
139
+
140
+ if ( ! file_exists( $file ) ) {
141
+ return '';
142
+ }
143
+
144
+ ob_start();
145
+ include $file;
146
+ return ob_get_clean();
147
+
148
+ }
149
+
150
+ }
admin/class-shortcodes-ultimate-admin-settings.php CHANGED
@@ -228,8 +228,8 @@ final class Shortcodes_Ultimate_Admin_Settings extends Shortcodes_Ultimate_Admin
228
'title' => __( 'Enable shortcodes in', 'shortcodes-ultimate' ),
229
'description' => __( 'This option allows you to enable shortcodes in places where they are disabled by default', 'shortcodes-ultimate' ),
230
'options' => array(
231
- 'category_description' => __( 'Category descriptions', 'shortcodes-ultimate' ),
232
- 'widget_text' => __( 'Text widgets', 'shortcodes-ultimate' ),
233
),
234
);
235
228
'title' => __( 'Enable shortcodes in', 'shortcodes-ultimate' ),
229
'description' => __( 'This option allows you to enable shortcodes in places where they are disabled by default', 'shortcodes-ultimate' ),
230
'options' => array(
231
+ 'term_description' => __( 'Term descriptions (Categories, Tags, Custom Taxonomies)', 'shortcodes-ultimate' ),
232
+ 'widget_text' => __( 'Text widgets', 'shortcodes-ultimate' ),
233
),
234
);
235
admin/class-shortcodes-ultimate-admin-shortcodes.php CHANGED
@@ -39,7 +39,35 @@ final class Shortcodes_Ultimate_Admin_Shortcodes extends Shortcodes_Ultimate_Adm
39
* @return string Menu page markup.
40
*/
41
public function the_menu_page() {
42
- $this->the_template( 'admin/partials/pages/shortcodes' );
43
}
44
45
/**
39
* @return string Menu page markup.
40
*/
41
public function the_menu_page() {
42
+
43
+ $shortcode = $this->get_current_shortcode();
44
+
45
+ if ( ! $shortcode ) {
46
+ return $this->the_template( 'admin/partials/pages/shortcodes-list' );
47
+ }
48
+
49
+ if ( isset( $shortcode['id'] ) ) {
50
+ return $this->the_template( 'admin/partials/pages/shortcodes-single' );
51
+ }
52
+
53
+ }
54
+
55
+ public function single_shortcode_page_content() {
56
+
57
+ $shortcode = $this->get_current_shortcode();
58
+
59
+ if (
60
+ isset( $shortcode['as_callback'] ) &&
61
+ is_callable( $shortcode['as_callback'] )
62
+ ) {
63
+ return call_user_func( $shortcode['as_callback'], $shortcode );
64
+ }
65
+
66
+ $this->the_template(
67
+ 'admin/partials/pages/shortcodes-single-content',
68
+ $shortcode
69
+ );
70
+
71
}
72
73
/**
admin/css/available-shortcodes.css CHANGED
@@ -1 +1 @@
1
- .su-admin-shortcodes .wp-filter{padding-left:20px}.su-admin-shortcodes-list-not-found{margin:0;padding:100px 0;color:#666;text-align:center;font-style:normal;font-size:18px}.su-admin-shortcodes-list-item{float:left;margin:0 22px 22px 0;width:150px;text-decoration:none}.su-admin-shortcodes-list-item-image{display:block;padding:15px;width:120px;height:120px;background:#fff;-webkit-transition:box-shadow 0.2s ease;transition:box-shadow 0.2s ease}.su-admin-shortcodes-list-item:hover .su-admin-shortcodes-list-item-image{box-shadow:0 0 0 4px rgba(0,150,221,0.2),0 0 0 1px #0096dd}.su-admin-shortcodes-list-item-title{display:block;overflow:hidden;margin:8px 0;height:18px;text-align:center;text-transform:capitalize;line-height:18px}.su-admin-shortcodes-single{padding-top:20px}.su-admin-shortcodes-single-section{margin-bottom:30px;max-width:840px}.su-admin-shortcodes-single-back span{margin-right:0.3em;vertical-align:middle;font-size:1.25em}.su-admin-shortcodes-single-description{overflow:hidden}.su-admin-shortcodes-single-description>span{display:block;float:left;margin:0 1.3em 0 0;padding:10px;width:60px;height:60px;background:#fff}.su-admin-shortcodes-single-description h2{margin:5px 0 10px;height:20px;font-size:1.3em;line-height:20px}.su-admin-shortcodes-single-description p{display:block;overflow:hidden;margin:0;height:40px;font-size:13px;line-height:20px}.su-admin-shortcodes-single-preview-content{padding:2em;background:#fff}.su-admin-shortcodes-single-preview-content :first-child{margin-top:0 !important}.su-admin-shortcodes-single-preview-content :last-child{margin-bottom:0 !important}.su-admin-shortcodes-single-preview .su-column{outline:1px dotted #ccc}.su-admin-shortcodes-single-code pre code{display:block;padding:1em}.su-admin-shortcodes-single-options-table>table{table-layout:fixed}.su-admin-shortcodes-single-options-table>table td{word-break:break-word}.su-admin-shortcodes-single-options-table+.su-admin-shortcodes-single-options-table{margin-top:20px}
1
+ .su-admin-shortcodes .wp-filter{padding-left:20px}.su-admin-shortcodes-list-not-found{margin:0;padding:100px 0;color:#666;text-align:center;font-style:normal;font-size:18px}.su-admin-shortcodes-list-item{float:left;margin:0 22px 22px 0;width:150px;text-decoration:none}.su-admin-shortcodes-list-item-image{display:block;padding:15px;width:120px;height:120px;background:#fff;-webkit-transition:box-shadow 0.2s ease;transition:box-shadow 0.2s ease}.su-admin-shortcodes-list-item:hover .su-admin-shortcodes-list-item-image{box-shadow:0 0 0 4px rgba(0,150,221,0.2),0 0 0 1px #0096dd}.su-admin-shortcodes-list-item-title{display:block;overflow:hidden;margin:8px 0;height:18px;text-align:center;text-transform:capitalize;line-height:18px}.su-admin-shortcodes-single{padding-top:20px}.su-admin-shortcodes-single-section{margin-bottom:30px;max-width:840px}.su-admin-shortcodes-single-back span{margin-right:0.3em;vertical-align:middle;font-size:1.25em}.su-admin-shortcodes-single-description{overflow:hidden}.su-admin-shortcodes-single-description>span{display:block;float:left;margin:0 1.3em 0 0;padding:10px;width:60px;height:60px;background:#fff}.su-admin-shortcodes-single-description h2{margin:5px 0 10px;height:20px;font-size:1.3em;line-height:20px}.su-admin-shortcodes-single-description p{display:block;overflow:hidden;margin:0;height:40px;font-size:13px;line-height:20px}.su-admin-shortcodes-single-preview-content{padding:2em;background:#fff}.su-admin-shortcodes-single-preview-content :first-child{margin-top:0 !important}.su-admin-shortcodes-single-preview-content :last-child{margin-bottom:0 !important}.su-admin-shortcodes-single-preview .su-column{outline:1px dotted #ccc}.su-admin-shortcodes-single-code pre code{display:block;overflow-x:auto;padding:1em}.su-admin-shortcodes-single-options-table>table{table-layout:fixed}.su-admin-shortcodes-single-options-table>table td{word-break:break-word}.su-admin-shortcodes-single-options-table+.su-admin-shortcodes-single-options-table{margin-top:20px}.su-admin-shortcodes-extra{max-width:500px;margin-bottom:2rem;padding:20px 20px 0;background:white;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);text-align:center}.su-admin-shortcodes-extra-message{padding:15px;background:#f0f0f0;border-left:4px solid #999;color:black;margin:0 0 2rem;font-size:.9rem;text-align:left}.su-admin-shortcodes-extra-icon{width:80px;height:80px;margin:0 0 1.75rem}.su-admin-shortcodes-extra-title{margin:0 0 .75rem;font-size:1.5rem;font-weight:bold;color:#333}.su-admin-shortcodes-extra-description{margin:0 0 1.75rem;font-size:.95rem;color:#555}.su-admin-shortcodes-extra-action{margin:0 0 2rem}.su-admin-shortcodes-extra-action>a.button{padding:12px 24px;font-weight:bold;font-size:.9rem;height:auto;border-radius:5px;line-height:1}.su-admin-shortcodes-extra-screenshot{max-height:300px;overflow:hidden}.su-admin-shortcodes-extra-screenshot img{display:block;width:100%}
admin/css/generator.css CHANGED
@@ -1 +1 @@
1
- .su-generator-clearfix:before,.su-generator-clearfix:after{display:table;content:' '}.su-generator-clearfix:after{clear:both}.su-generator-clear{height:0;clear:both;overflow:hidden}.su-generator-hidden{display:none !important}.su-generator-loading{min-height:60px;background:50% 50% url("../images/spinner.gif") no-repeat !important}.su-generator-loading *{visibility:hidden}.su-generator-button img{margin:-1px 2px 0 -5px;vertical-align:middle}.wp-media-buttons .su-generator-button img{margin:-1px -1px 0 -4px;vertical-align:middle}#su-generator-wrap{display:none}#su-generator{position:relative;width:85%;max-width:1000px;margin:60px auto;padding:20px;background:#fff;box-shadow:0 2px 25px #000;-webkit-transition:max-width 0.2s;transition:max-width 0.2s}#su-generator.su-generator-narrow{max-width:500px}#su-generator-tools{margin:0 20px 20px 0}#su-generator-tools span{display:inline-block;width:1px;height:1em;margin:0 0.5em;border-right:1px dotted #555;vertical-align:middle}#su-generator-tools a{text-decoration:none}#su-generator-tools a.su-add-ons{display:inline-block;padding:2px 7px;background:#ff7654;color:#fff;border:1px solid #ff4d21;border-radius:3px}#su-generator-tools a.su-add-ons:hover{background:#ff4d21}#su-generator-search{width:100%;margin-bottom:5px;padding:10px 10px 10px 42px;background:5px 50% url("../images/search.png") no-repeat;font-size:1.3em}#su-generator-search-pro-tip{margin:0 0 30px 0;color:#999;font-style:italic;text-align:right;font-size:0.9em}#su-generator-filter{margin:0 -20px;padding:14px 20px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;background:#eee;color:#555;text-align:center;line-height:24px}#su-generator-filter a,#su-generator-filter strong{display:inline-block;margin:0 1em;line-height:1}#su-generator-filter a{border-bottom:1px dotted #ccc;text-decoration:none}#su-generator-choices{margin-top:20px;text-align:left}#su-generator-choices>span{position:relative;display:block;width:20%;height:28px;min-width:130px;padding:0 5px 0 30px;float:left;overflow:hidden;box-sizing:border-box;border-bottom:1px dotted #e5e5e5;color:#222;vertical-align:top;text-align:left;line-height:28px;cursor:pointer}#su-generator-choices span:hover{border-bottom:1px solid #333;background:#333;color:#fff}#su-generator-choices span img{position:absolute;top:7px;left:7px;width:14px;height:14px}#su-generator-choices span i{position:absolute;top:1px;left:1px;display:block;width:26px;height:26px;color:#888;text-align:center;font-size:14px;line-height:26px}#su-generator-choices span:hover i{color:#fff}.su-generator-choice-first{outline:1px solid #09f;box-shadow:0 0 3px rgba(30,140,190,0.8)}#su-generator-breadcrumbs{margin:0 -20px;padding:14px 20px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;background:#eee;color:#555;line-height:24px}#su-generator-breadcrumbs span{margin-right:1em;font-weight:bold}#su-generator-breadcrumbs small{color:#bbb;font-weight:normal;font-size:0.9em}.su-generator-note{position:relative;margin:0 -20px;padding:5px 20px;background:#ffffb8;border-bottom:1px solid #ccc;color:#333;line-height:18px}.su-generator-note-content{min-height:20px;margin-left:35px}.su-generator-note p{margin:10px 0}.su-generator-note a{text-decoration:underline}.su-generator-note i{position:absolute;top:15px;left:20px;display:block;width:1em;height:1em;color:#555;text-align:left;font-size:20px;line-height:1em}#su-generator-settings .su-generator-attr-container{margin:0 -20px;padding:1.5em 20px;border-bottom:1px solid #ccc;box-shadow:0 1px 3px rgba(0,0,0,0.1)}#su-generator-settings h5{text-transform:capitalize;font-weight:700}#su-generator-settings h5,#su-generator-preview h5{margin:0 0 15px 0;font-size:1em}.su-generator-attr-desc{margin-top:15px;color:#aaa;font-style:italic;line-height:1.6}.su-generator-attr-desc b{color:#999}.su-generator-px-units{position:relative;margin-right:15px}.su-generator-px-units:before{position:absolute;right:-18px;bottom:3px;display:block;width:15px;color:#999;content:'px';text-align:left;font-size:0.9em}.su-generator-attr-desc b.su-generator-set-value{border-bottom:1px dotted #999;cursor:pointer}.su-generator-attr-desc b.su-generator-set-value:hover{border-bottom:1px dotted #333;color:#333}#su-generator-settings input[type='text'],#su-generator-settings input[type='number'],#su-generator-settings textarea,#su-generator-settings select{width:100%;height:auto;padding:10px}.su-generator-field-actions{padding-top:10px}.su-generator-field-actions .button,.su-generator-field-actions span{margin-right:5px}.su-generator-field-actions img{margin:0 6px 0 -4px;vertical-align:middle}.su-generator-icon-picker{height:0;margin:0 -20px;padding:0 20px;overflow:hidden;background:#eee;line-height:24px;-webkit-transition:all 0.2s;transition:all 0.2s}.su-generator-icon-picker.su-generator-icon-picker-visible{height:auto;margin:1em -20px 0 -20px;padding:14px 20px;overflow:visible;border-top:1px solid #ccc;border-bottom:1px solid #ccc}.su-generator-icon-picker input{margin-bottom:15px}.su-generator-icon-picker i{display:block;width:24px;height:24px;margin-left:2px;float:left;color:#555;text-align:center;font-size:14px;line-height:24px;cursor:pointer}.su-generator-icon-picker i:hover{color:#000;font-size:24px}.su-generator-shadow-picker-field{position:relative;display:inline-block;width:22%;padding-right:3%}.su-generator-shadow-picker-field small{display:block;color:#ccc}.su-generator-shadow-picker-field input{text-align:right}.su-generator-shadow-picker-field.su-generator-shadow-picker-color{width:25%;padding-right:0}.su-generator-shadow-picker-field.su-generator-shadow-picker-color input{text-align:left}.su-generator-shadow-picker-color{position:relative}.su-generator-shadow-picker-color-wheel{position:absolute;top:100%;right:0;z-index:9999;display:none;border:1px solid #aaa;border-radius:50%;background:#fff;box-shadow:0 2px 5px #ccc}.su-generator-border-picker-field{position:relative;display:inline-block;width:30%;padding-right:3%}.su-generator-border-picker-field small{display:block;color:#ccc}.su-generator-border-picker-field input{text-align:right}.su-generator-border-picker-field.su-generator-border-picker-color{width:34%;padding-right:0}.su-generator-border-picker-field.su-generator-border-picker-color input{text-align:left}.su-generator-border-picker-color{position:relative}.su-generator-border-picker-color-wheel{position:absolute;top:100%;right:0;z-index:9999;display:none;border:1px solid #aaa;border-radius:50%;background:#fff;box-shadow:0 2px 5px #ccc}.su-generator-range-picker .slider{width:420px;margin:10px 0 0 0 !important;padding:0;float:left}.su-generator-range-picker .slider>.dragger{background:#fff !important}.su-generator-range-picker .slider:hover>.dragger{background:#fff !important;box-shadow:0 0 0 5px rgba(33,117,155,0.5)}.su-generator-range-picker .slider>.dragger.dragging{background:#ccc !important;box-shadow:0 0 0 5px rgba(33,117,155,0.5)}.su-generator-range-picker .slider>.track{height:12px !important;border:1px solid #ccc !important;background:#fff !important}.su-generator-range-picker input{width:60px !important;float:right;text-align:center}.su-generator-switch{display:inline-block;width:100%;font-weight:bold;cursor:pointer}.su-generator-switch span{display:none;padding:10px;border-radius:3px}.su-generator-switch-yes span.su-generator-yes{display:block;background:#e0ffe0;color:#0c0}.su-generator-switch-no span.su-generator-no{display:block;background:#f5f5f5;color:#777}.su-generator-select-color{position:relative;display:inline-block;width:100%}.su-generator-select-color-wheel{position:absolute;top:100%;left:0;z-index:9999;display:none;border:1px solid #aaa;border-radius:50%;background:#fff;box-shadow:0 2px 5px #ccc}.su-generator-isp{margin-bottom:15px}.su-generator-isp-source{height:0;margin:0 -20px;padding:0 20px;overflow:hidden;background:#eee;color:#555;opacity:0;-webkit-transition:opacity 0.2s;transition:opacity 0.2s}.su-generator-isp-source.su-generator-isp-source-open{height:auto;margin:20px -20px 0;padding:14px 20px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;opacity:1}.su-generator-isp-images{margin-top:1em;overflow:auto}.su-generator-isp-images span{position:relative;display:block;width:84px;height:84px;margin:5px 5px 5px 0;float:left;border:3px solid #fff;border-radius:50%;background:#fff;box-shadow:0 1px 2px #999}.su-generator-isp-images span:hover,.su-generator-isp-images span.ui-sortable-helper{box-shadow:0 1px 6px #777}.su-generator-isp-images img{display:block;width:100%;height:100%;margin:0;padding:0;border:none;border-radius:50%}.su-generator-isp-images span i{position:absolute;top:-3px;right:-3px;display:none;width:16px;height:16px;border-radius:50%;background:#fff;color:#f03;text-align:center;font-size:12px;line-height:16px;cursor:pointer}.su-generator-isp-images span:hover i{display:block}.su-generator-isp-images span i:hover{background:#f03;color:#fff}.su-generator-isp-categories,.su-generator-isp-taxonomies,.su-generator-isp-terms{margin-top:15px}#su-generator-preview{display:none;margin:0 -20px;padding:1.5em 20px;overflow:hidden;border-bottom:1px solid #ccc}#su-generator-preview .su-column{outline:1px dotted #ccc}.su-generator-actions{margin:0 -20px -20px;padding:1.5em 15px;background:#eee}.su-generator-actions>.button{margin:0 5px}.su-generator-actions .button i{margin:0 5px 0 -3px}.su-generator-presets{position:relative}.su-generator-presets>.button{cursor:default}.su-gp-popup{position:absolute;right:0;bottom:0;display:none;min-width:160px;max-width:500px;border:1px solid #aaa;border-radius:5px;background:#fff}.su-gp-head{margin-bottom:10px;padding:10px;border-bottom:1px dotted #ccc}.su-gp-head .button{display:block;text-align:center}.su-gp-list{margin:5px 0}.su-gp-list b{display:block;padding:5px 10px;color:#aaa;font-weight:normal;font-style:italic}.su-gp-list span{position:relative;display:block;padding:5px 10px;overflow:hidden;color:#21759b;cursor:pointer}.su-gp-list span:nth-child(odd){background:#f8f8f8}.su-gp-list span:hover{background:#eee;color:#d54e21}.su-gp-list span em{margin-right:32px;white-space:nowrap;font-style:normal}.su-gp-list span i{position:absolute;top:50%;right:10px;display:block;width:20px;height:20px;margin-top:-10px;border-radius:50%;color:#999;text-align:center;font-weight:normal;font-size:12px;line-height:20px}.su-gp-list span i:hover{background:#f03;color:#fff}.su-generator-mfp.mfp-bg{z-index:101000 !important}.su-generator-mfp.mfp-wrap{z-index:101001 !important}.su-generator-mfp.mfp-wrap .mfp-preloader{z-index:101002 !important}.su-generator-mfp.mfp-wrap .mfp-content{z-index:101003 !important}.su-generator-mfp.mfp-wrap button.mfp-close,.su-generator-mfp.mfp-wrap button.mfp-arrow{z-index:101004 !important}#su-generator-preview .su-image-carousel-align-full{margin-left:-1.5em;margin-right:-1.5em;max-width:calc(100% + 3em) !important}
1
+ .su-generator-clearfix:before,.su-generator-clearfix:after{display:table;content:' '}.su-generator-clearfix:after{clear:both}.su-generator-clear{height:0;clear:both;overflow:hidden}.su-generator-hidden{display:none !important}.su-generator-loading{min-height:60px;background:50% 50% url("../images/spinner.gif") no-repeat !important}.su-generator-loading *{visibility:hidden}.su-generator-button img{margin:-1px 2px 0 -5px;vertical-align:middle}.wp-media-buttons .su-generator-button img{margin:-1px -1px 0 -4px;vertical-align:middle}#su-generator-wrap{display:none}#su-generator{position:relative;width:85%;max-width:1000px;margin:60px auto;padding:20px;background:#fff;box-shadow:0 2px 25px #000;-webkit-transition:max-width 0.2s;transition:max-width 0.2s}#su-generator.su-generator-narrow{max-width:500px}#su-generator-tools{margin:0 20px 20px 0}#su-generator-tools span{display:inline-block;width:1px;height:1em;margin:0 0.5em;border-right:1px dotted #555;vertical-align:middle}#su-generator-tools a{text-decoration:none}#su-generator-tools a.su-add-ons{display:inline-block;padding:3px 8px;background:#ff562d;color:white;font-weight:700;border-radius:3px;border:1px solid #f2522b;text-shadow:1px 1px 1px #a6381d}#su-generator-tools a.su-add-ons:hover,#su-generator-tools a.su-add-ons:active,#su-generator-tools a.su-add-ons:focus{background:#ff7857}#su-generator-search{width:100%;margin-bottom:5px;padding:10px 10px 10px 42px;background:5px 50% url("../images/search.png") no-repeat;font-size:1.3em}#su-generator-search-pro-tip{margin:0 0 30px 0;color:#999;font-style:italic;text-align:right;font-size:0.9em}#su-generator-filter{margin:0 -20px;padding:14px 20px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;background:#eee;color:#555;text-align:center;line-height:24px}#su-generator-filter a,#su-generator-filter strong{display:inline-block;margin:0 1em;line-height:1}#su-generator-filter a{border-bottom:1px dotted #ccc;text-decoration:none}#su-generator-choices{margin-top:20px;text-align:left}#su-generator-choices>span{position:relative;display:block;width:20%;height:28px;min-width:130px;padding:0 5px 0 30px;float:left;overflow:hidden;box-sizing:border-box;border-bottom:1px dotted #e5e5e5;color:#222;vertical-align:top;text-align:left;line-height:28px;cursor:pointer}#su-generator-choices span:hover{border-bottom:1px solid #333;background:#333;color:#fff}#su-generator-choices span img{position:absolute;top:7px;left:7px;width:14px;height:14px}#su-generator-choices span i{position:absolute;top:1px;left:1px;display:block;width:26px;height:26px;color:#888;text-align:center;font-size:14px;line-height:26px}#su-generator-choices span:hover i{color:#fff}.su-generator-choice-first{outline:1px solid #09f;box-shadow:0 0 3px rgba(30,140,190,0.8)}#su-generator-breadcrumbs{margin:0 -20px;padding:14px 20px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;background:#eee;color:#555;line-height:24px}#su-generator-breadcrumbs span{margin-right:1em;font-weight:bold}#su-generator-breadcrumbs small{color:#bbb;font-weight:normal;font-size:0.9em}.su-generator-note{position:relative;margin:0 -20px;padding:5px 20px;background:#ffffb8;border-bottom:1px solid #ccc;color:#333;line-height:18px}.su-generator-note-content{min-height:20px;margin-left:35px}.su-generator-note p{margin:10px 0}.su-generator-note a{text-decoration:underline}.su-generator-note i{position:absolute;top:15px;left:20px;display:block;width:1em;height:1em;color:#555;text-align:left;font-size:20px;line-height:1em}#su-generator-settings .su-generator-attr-container{margin:0 -20px;padding:1.5em 20px;border-bottom:1px solid #ccc;box-shadow:0 1px 3px rgba(0,0,0,0.1)}#su-generator-settings h5{text-transform:capitalize;font-weight:700}#su-generator-settings h5,#su-generator-preview h5{margin:0 0 15px 0;font-size:1em}.su-generator-attr-desc{margin-top:15px;color:#aaa;font-style:italic;line-height:1.6}.su-generator-attr-desc b{color:#999}.su-generator-px-units{position:relative;margin-right:15px}.su-generator-px-units:before{position:absolute;right:-18px;bottom:3px;display:block;width:15px;color:#999;content:'px';text-align:left;font-size:0.9em}.su-generator-attr-desc b.su-generator-set-value{border-bottom:1px dotted #999;cursor:pointer}.su-generator-attr-desc b.su-generator-set-value:hover{border-bottom:1px dotted #333;color:#333}#su-generator-settings input[type='text'],#su-generator-settings input[type='number'],#su-generator-settings textarea,#su-generator-settings select{width:100%;height:auto;padding:10px}.su-generator-field-actions{padding-top:10px}.su-generator-field-actions .button,.su-generator-field-actions span{margin-right:5px}.su-generator-field-actions img{margin:0 6px 0 -4px;vertical-align:middle}.su-generator-icon-picker{height:0;margin:0 -20px;padding:0 20px;overflow:hidden;background:#eee;line-height:24px;-webkit-transition:all 0.2s;transition:all 0.2s}.su-generator-icon-picker.su-generator-icon-picker-visible{height:auto;margin:1em -20px 0 -20px;padding:14px 20px;overflow:visible;border-top:1px solid #ccc;border-bottom:1px solid #ccc}.su-generator-icon-picker input{margin-bottom:15px}.su-generator-icon-picker i{display:block;width:24px;height:24px;margin-left:2px;float:left;color:#555;text-align:center;font-size:14px;line-height:24px;cursor:pointer}.su-generator-icon-picker i:hover{color:#000;font-size:24px}.su-generator-shadow-picker-field{position:relative;display:inline-block;width:22%;padding-right:3%}.su-generator-shadow-picker-field small{display:block;color:#ccc}.su-generator-shadow-picker-field input{text-align:right}.su-generator-shadow-picker-field.su-generator-shadow-picker-color{width:25%;padding-right:0}.su-generator-shadow-picker-field.su-generator-shadow-picker-color input{text-align:left}.su-generator-shadow-picker-color{position:relative}.su-generator-shadow-picker-color-wheel{position:absolute;top:100%;right:0;z-index:9999;display:none;border:1px solid #aaa;border-radius:50%;background:#fff;box-shadow:0 2px 5px #ccc}.su-generator-border-picker-field{position:relative;display:inline-block;width:30%;padding-right:3%}.su-generator-border-picker-field small{display:block;color:#ccc}.su-generator-border-picker-field input{text-align:right}.su-generator-border-picker-field.su-generator-border-picker-color{width:34%;padding-right:0}.su-generator-border-picker-field.su-generator-border-picker-color input{text-align:left}.su-generator-border-picker-color{position:relative}.su-generator-border-picker-color-wheel{position:absolute;top:100%;right:0;z-index:9999;display:none;border:1px solid #aaa;border-radius:50%;background:#fff;box-shadow:0 2px 5px #ccc}.su-generator-range-picker .slider{width:420px;margin:10px 0 0 0 !important;padding:0;float:left}.su-generator-range-picker .slider>.dragger{background:#fff !important}.su-generator-range-picker .slider:hover>.dragger{background:#fff !important;box-shadow:0 0 0 5px rgba(33,117,155,0.5)}.su-generator-range-picker .slider>.dragger.dragging{background:#ccc !important;box-shadow:0 0 0 5px rgba(33,117,155,0.5)}.su-generator-range-picker .slider>.track{height:12px !important;border:1px solid #ccc !important;background:#fff !important}.su-generator-range-picker input{width:60px !important;float:right;text-align:center}.su-generator-switch{display:inline-block;width:100%;font-weight:bold;cursor:pointer}.su-generator-switch span{display:none;padding:10px;border-radius:3px}.su-generator-switch-yes span.su-generator-yes{display:block;background:#e0ffe0;color:#0c0}.su-generator-switch-no span.su-generator-no{display:block;background:#f5f5f5;color:#777}.su-generator-select-color{position:relative;display:inline-block;width:100%}.su-generator-select-color-wheel{position:absolute;top:100%;left:0;z-index:9999;display:none;border:1px solid #aaa;border-radius:50%;background:#fff;box-shadow:0 2px 5px #ccc}.su-generator-isp{margin-bottom:15px}.su-generator-isp-source{height:0;margin:0 -20px;padding:0 20px;overflow:hidden;background:#eee;color:#555;opacity:0;-webkit-transition:opacity 0.2s;transition:opacity 0.2s}.su-generator-isp-source.su-generator-isp-source-open{height:auto;margin:20px -20px 0;padding:14px 20px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;opacity:1}.su-generator-isp-images{margin-top:1em;overflow:auto}.su-generator-isp-images span{position:relative;display:block;width:84px;height:84px;margin:5px 5px 5px 0;float:left;border:3px solid #fff;border-radius:50%;background:#fff;box-shadow:0 1px 2px #999}.su-generator-isp-images span:hover,.su-generator-isp-images span.ui-sortable-helper{box-shadow:0 1px 6px #777}.su-generator-isp-images img{display:block;width:100%;height:100%;margin:0;padding:0;border:none;border-radius:50%}.su-generator-isp-images span i{position:absolute;top:-3px;right:-3px;display:none;width:16px;height:16px;border-radius:50%;background:#fff;color:#f03;text-align:center;font-size:12px;line-height:16px;cursor:pointer}.su-generator-isp-images span:hover i{display:block}.su-generator-isp-images span i:hover{background:#f03;color:#fff}.su-generator-isp-categories,.su-generator-isp-taxonomies,.su-generator-isp-terms{margin-top:15px}#su-generator-preview{display:none;margin:0 -20px;padding:1.5em 20px;overflow:hidden;border-bottom:1px solid #ccc}#su-generator-preview .su-column{outline:1px dotted #ccc}.su-generator-actions{margin:0 -20px -20px;padding:1.5em 15px;background:#eee}.su-generator-actions>.button{margin:0 5px}.su-generator-actions .button i{margin:0 5px 0 -3px}.su-generator-presets{position:relative}.su-generator-presets>.button{cursor:default}.su-gp-popup{position:absolute;right:0;bottom:0;display:none;min-width:160px;max-width:500px;border:1px solid #aaa;border-radius:5px;background:#fff}.su-gp-head{margin-bottom:10px;padding:10px;border-bottom:1px dotted #ccc}.su-gp-head .button{display:block;text-align:center}.su-gp-list{margin:5px 0}.su-gp-list b{display:block;padding:5px 10px;color:#aaa;font-weight:normal;font-style:italic}.su-gp-list span{position:relative;display:block;padding:5px 10px;overflow:hidden;color:#21759b;cursor:pointer}.su-gp-list span:nth-child(odd){background:#f8f8f8}.su-gp-list span:hover{background:#eee;color:#d54e21}.su-gp-list span em{margin-right:32px;white-space:nowrap;font-style:normal}.su-gp-list span i{position:absolute;top:50%;right:10px;display:block;width:20px;height:20px;margin-top:-10px;border-radius:50%;color:#999;text-align:center;font-weight:normal;font-size:12px;line-height:20px}.su-gp-list span i:hover{background:#f03;color:#fff}.su-generator-mfp.mfp-bg{z-index:101000 !important}.su-generator-mfp.mfp-wrap{z-index:101001 !important}.su-generator-mfp.mfp-wrap .mfp-preloader{z-index:101002 !important}.su-generator-mfp.mfp-wrap .mfp-content{z-index:101003 !important}.su-generator-mfp.mfp-wrap button.mfp-close,.su-generator-mfp.mfp-wrap button.mfp-arrow{z-index:101004 !important}#su-generator-preview .su-image-carousel-align-full{margin-left:-1.5em;margin-right:-1.5em;max-width:calc(100% + 3em) !important}.su-generator-extra-banner{margin-bottom:-20px;padding-top:20px;text-align:center}.su-generator-extra-banner-message{padding:15px;background:#f0f0f0;border-left:4px solid #999;color:black;margin:0 0 2rem;font-size:.9rem;text-align:left}.su-generator-extra-banner-icon{width:80px;height:80px;margin:0 0 1.75rem}.su-generator-extra-banner-title{margin:0 0 .75rem;font-size:1.5rem;font-weight:bold;color:#333}.su-generator-extra-banner-description{margin:0 0 1.75rem;font-size:.95rem;color:#555}.su-generator-extra-banner-action{margin:0 0 2rem}.su-generator-extra-banner-action>a.button{padding:12px 24px;font-weight:bold;font-size:.9rem;height:auto;border-radius:5px;line-height:1}.su-generator-extra-banner-screenshot img{display:block;width:100%}
admin/images/extra/icon-available-shortcodes.png ADDED
Binary file
admin/images/extra/icon-banner.png ADDED
Binary file
admin/images/extra/icon-generator.png ADDED
Binary file
admin/images/extra/screenshots/content_slider.png ADDED
Binary file
admin/images/extra/screenshots/exit_popup.png ADDED
Binary file
admin/images/extra/screenshots/icon.png ADDED
Binary file
admin/images/extra/screenshots/icon_panel.png ADDED
Binary file
admin/images/extra/screenshots/icon_text.png ADDED
Binary file
admin/images/extra/screenshots/member.png ADDED
Binary file
admin/images/extra/screenshots/panel.png ADDED
Binary file
admin/images/extra/screenshots/photo_panel.png ADDED
Binary file
admin/images/extra/screenshots/pricing_table.png ADDED
Binary file
admin/images/extra/screenshots/progress_bar.png ADDED
Binary file
admin/images/extra/screenshots/progress_pie.png ADDED
Binary file
admin/images/extra/screenshots/section.png ADDED
Binary file
admin/images/extra/screenshots/shadow.png ADDED
Binary file
admin/images/extra/screenshots/splash.png ADDED
Binary file
admin/images/extra/screenshots/testimonial.png ADDED
Binary file
admin/partials/extra/available-shortcodes.php ADDED
@@ -0,0 +1,14 @@
1
+ <?php defined( 'ABSPATH' ) || exit; ?>
2
+
3
+ <div class="su-admin-shortcodes-extra">
4
+ <p class="su-admin-shortcodes-extra-message"><?php esc_html_e( 'This shortcode is available with the Extra Shortcodes add-on', 'shortcodes-ultimate' ); ?></p>
5
+ <img src="<?php echo esc_attr( $this->get_image_url( 'icon-banner.png' ) ); ?>" class="su-admin-shortcodes-extra-icon">
6
+ <h2 class="su-admin-shortcodes-extra-title"><?php esc_html_e( 'Extra Shortcodes', 'shortcodes-ultimate' ); ?></h2>
7
+ <p class="su-admin-shortcodes-extra-description"><?php esc_html_e( 'This add-on extends Shortcodes Ultimate with 15 new shortcodes. Parallax sections, responsive content slider, pricing tables and more', 'shortcodes-ultimate' ); ?></p>
8
+ <p class="su-admin-shortcodes-extra-action">
9
+ <a href="https://getshortcodes.com/add-ons/extra-shortcodes/?utm_source=wp-dash&amp;utm_medium=available-shortcodes&amp;utm_campaign=extra-shortcode" target="_blank" class="button button-primary"><?php esc_html_e( 'Details & Pricing', 'shortcodes-ultimate' ); ?> &rarr;</a>
10
+ </p>
11
+ <div class="su-admin-shortcodes-extra-screenshot">
12
+ <img src="<?php echo esc_attr( $this->get_image_url( 'screenshots/' . $data['id'] . '.png' ) ); ?>">
13
+ </div>
14
+ </div>
admin/partials/extra/generator.php ADDED
@@ -0,0 +1,22 @@
1
+ <div id="su-generator-breadcrumbs">
2
+ <a href="javascript:;" class="su-generator-home" title="<?php esc_html_e( 'Click to return to the shortcodes list', 'shortcodes-ultimate' ); ?>"><?php esc_html_e( 'All shortcodes', 'shortcodes-ultimate' ); ?></a>
3
+ &rarr;
4
+ <span><?php echo esc_html( $data['name'] ); ?></span>
5
+ <small class="alignright"><?php echo esc_html( $data['desc'] ); ?></small>
6
+ <div class="su-generator-clear"></div>
7
+ </div>
8
+
9
+ <div class="su-generator-extra-banner">
10
+ <div class="su-generator-extra-banner-message">
11
+ <?php esc_html_e( 'This shortcode is available with the Extra Shortcodes add-on', 'shortcodes-ultimate' ); ?>
12
+ </div>
13
+ <img src="<?php echo esc_attr( $this->get_image_url( 'icon-banner.png' ) ); ?>" class="su-generator-extra-banner-icon">
14
+ <h3 class="su-generator-extra-banner-title"><?php esc_html_e( 'Extra Shortcodes', 'shortcodes-ultimate' ); ?></h3>
15
+ <p class="su-generator-extra-banner-description"><?php esc_html_e( 'This add-on extends Shortcodes Ultimate with 15 new shortcodes. Parallax sections, responsive content slider, pricing tables and more', 'shortcodes-ultimate' ); ?></p>
16
+ <p class="su-generator-extra-banner-action">
17
+ <a href="https://getshortcodes.com/add-ons/extra-shortcodes/?utm_source=wp-dash&amp;utm_medium=generator&amp;utm_campaign=extra-shortcode" target="_blank" class="button button-primary"><?php esc_html_e( 'Details & Pricing', 'shortcodes-ultimate' ); ?> &rarr;</a>
18
+ </p>
19
+ <div class="su-generator-extra-banner-screenshot">
20
+ <img src="<?php echo esc_attr( $this->get_image_url( 'screenshots/' . $data['id'] . '.png' ) ); ?>">
21
+ </div>
22
+ </div>
admin/partials/pages/shortcodes-list.php CHANGED
@@ -1,43 +1,47 @@
1
- <?php defined( 'ABSPATH' ) or exit; ?>
2
3
<?php $shortcodes = $this->get_available_shortcodes(); ?>
4
5
- <h1><?php $this->the_page_title(); ?></h1>
6
7
- <div class="wp-filter">
8
- <div class="filter-count">
9
- <span class="count"><?php echo count( $shortcodes ); ?></span>
10
- </div>
11
- <ul class="filter-links">
12
13
- <?php foreach( $this->get_groups() as $group ) : ?>
14
15
- <?php if ( $group['active'] ) : ?>
16
- <li><a href="<?php echo esc_url( $group['url'] ); ?>" class="current"><?php echo esc_html( $group['title'] ); ?></a></li>
17
- <?php else : ?>
18
- <li><a href="<?php echo esc_url( $group['url'] ); ?>"><?php echo esc_html( $group['title'] ); ?></a></li>
19
- <?php endif; ?>
20
21
- <?php endforeach; ?>
22
23
- </ul>
24
- </div>
25
26
- <div class="su-admin-shortcodes-list wp-clearfix">
27
28
- <?php if ( count( $shortcodes ) ) : ?>
29
30
- <?php foreach ( $shortcodes as $id => $shortcode ) : ?>
31
- <a href="<?php echo add_query_arg( 'shortcode', $id, $this->get_component_url() ); ?>" class="su-admin-shortcodes-list-item">
32
- <span class="su-admin-shortcodes-list-item-image">
33
- <?php $this->shortcode_image( $shortcode, 120 ); ?>
34
- </span>
35
- <span class="su-admin-shortcodes-list-item-title"><?php echo $shortcode['name']; ?></span>
36
- </a>
37
- <?php endforeach; ?>
38
39
- <?php else : ?>
40
- <p class="su-admin-shortcodes-list-not-found"><?php _e( 'No shortcodes found.', 'shortcodes-ultimate' ); ?></p>
41
- <?php endif; ?>
42
43
</div>
1
+ <?php defined( 'ABSPATH' ) || exit; ?>
2
3
<?php $shortcodes = $this->get_available_shortcodes(); ?>
4
5
+ <div id="su_admin_shortcodes" class="wrap su-admin-shortcodes">
6
7
+ <h1><?php $this->the_page_title(); ?></h1>
8
9
+ <div class="wp-filter">
10
+ <div class="filter-count">
11
+ <span class="count"><?php echo count( $shortcodes ); ?></span>
12
+ </div>
13
+ <ul class="filter-links">
14
15
+ <?php foreach ( $this->get_groups() as $group ) : ?>
16
17
+ <?php if ( $group['active'] ) : ?>
18
+ <li><a href="<?php echo esc_url( $group['url'] ); ?>" class="current"><?php echo esc_html( $group['title'] ); ?></a></li>
19
+ <?php else : ?>
20
+ <li><a href="<?php echo esc_url( $group['url'] ); ?>"><?php echo esc_html( $group['title'] ); ?></a></li>
21
+ <?php endif; ?>
22
23
+ <?php endforeach; ?>
24
+
25
+ </ul>
26
+ </div>
27
+
28
+ <div class="su-admin-shortcodes-list wp-clearfix">
29
30
+ <?php if ( count( $shortcodes ) ) : ?>
31
32
+ <?php foreach ( $shortcodes as $shortcode_id => $shortcode ) : ?>
33
+ <a href="<?php echo esc_attr( add_query_arg( 'shortcode', $shortcode_id, $this->get_component_url() ) ); ?>" class="su-admin-shortcodes-list-item">
34
+ <span class="su-admin-shortcodes-list-item-image">
35
+ <?php $this->shortcode_image( $shortcode, 120 ); ?>
36
+ </span>
37
+ <span class="su-admin-shortcodes-list-item-title"><?php echo esc_html( $shortcode['name'] ); ?></span>
38
+ </a>
39
+ <?php endforeach; ?>
40
41
+ <?php else : ?>
42
+ <p class="su-admin-shortcodes-list-not-found"><?php esc_html_e( 'No shortcodes found.', 'shortcodes-ultimate' ); ?></p>
43
+ <?php endif; ?>
44
45
+ </div>
46
47
</div>
admin/partials/pages/shortcodes-single-content.php ADDED
@@ -0,0 +1,76 @@
1
+ <?php defined( 'ABSPATH' ) || exit; ?>
2
+
3
+ <!-- Description section -->
4
+ <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-description wp-clearfix">
5
+ <span><?php $this->shortcode_image( $data, 60 ); ?></span>
6
+ <h2><?php echo esc_html( $data['name'] ); ?></h2>
7
+ <p>
8
+ <?php echo esc_html( $data['desc'] ); ?>
9
+ <?php if ( isset( $data['article'] ) ) : ?>
10
+ <br><a href="<?php echo esc_url( $data['article'] ); ?>" target="_blank"><strong><?php esc_html_e( 'Shortcode documentation', 'shortcodes-ultimate' ); ?></strong></a>.
11
+ <?php endif; ?>
12
+ </p>
13
+ </div>
14
+ <!-- /Description section -->
15
+
16
+ <!-- Preview section -->
17
+ <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-preview">
18
+ <h2><?php esc_html_e( 'Preview', 'shortcodes-ultimate' ); ?></h2>
19
+ <div class="su-admin-shortcodes-single-preview-content wp-clearfix">
20
+ <?php echo do_shortcode( $this->get_shortcode_code( $data['id'] ) ); ?>
21
+ </div>
22
+ </div>
23
+ <!-- /Preview section -->
24
+
25
+ <!-- Shortcode section -->
26
+ <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-code">
27
+ <h2><?php esc_html_e( 'Shortcode', 'shortcodes-ultimate' ); ?></h2>
28
+ <pre contenteditable="true" class=""><code><?php echo str_replace( "\t", ' ', esc_html( $this->get_shortcode_code( $data['id'] ) ) ); ?></code></pre>
29
+ </div>
30
+ <!-- /Shortcode section -->
31
+
32
+ <!-- Options section -->
33
+ <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-options">
34
+ <h2><?php esc_html_e( 'Shortcode options', 'shortcodes-ultimate' ); ?></h2>
35
+
36
+ <?php foreach ( $this->get_single_shortcode_options() as $table ) : ?>
37
+
38
+ <div class="su-admin-shortcodes-single-options-table">
39
+
40
+ <?php if ( count( $this->get_single_shortcode_options() ) > 1 ) : ?>
41
+ <h3>[<?php echo esc_html( su_get_shortcode_prefix() . $table['id'] ); ?>]</h3>
42
+ <?php endif; ?>
43
+
44
+ <?php if ( ! is_array( $table['atts'] ) || ! count( $table['atts'] ) ) : ?>
45
+ <p class="description"><?php esc_html_e( 'This shortcode do not have options', 'shortcodes-ultimate' ); ?></p>
46
+ <?php else : ?>
47
+
48
+ <table class="widefat striped">
49
+
50
+ <tr>
51
+ <th><?php esc_html_e( 'Option name', 'shortcodes-ultimate' ); ?></th>
52
+ <th><?php esc_html_e( 'Possible values', 'shortcodes-ultimate' ); ?></th>
53
+ <th><?php esc_html_e( 'Default value', 'shortcodes-ultimate' ); ?></th>
54
+ </tr>
55
+
56
+ <?php foreach ( $table['atts'] as $attr_id => $attr ) : ?>
57
+ <tr>
58
+ <td style="max-width:360px">
59
+ <strong><?php echo esc_html( $attr_id ); ?></strong><br>
60
+ <small class="description"><?php echo $this->get_shortcode_description( $attr['desc'] ); ?></small>
61
+ </td>
62
+ <td><?php echo $this->get_possible_values( $attr ); ?></td>
63
+ <td><?php echo $this->get_default_value( $attr ); ?></td>
64
+ </tr>
65
+ <?php endforeach; ?>
66
+
67
+ </table>
68
+
69
+ <?php endif; ?>
70
+
71
+ </div>
72
+
73
+ <?php endforeach; ?>
74
+
75
+ </div>
76
+ <!-- /Options section -->
admin/partials/pages/shortcodes-single.php CHANGED
@@ -1,103 +1,31 @@
1
<?php defined( 'ABSPATH' ) || exit; ?>
2
3
- <?php
4
- $shortcode = $this->get_current_shortcode();
5
- $options = $this->get_single_shortcode_options();
6
- ?>
7
8
- <h1><?php $this->the_page_title(); ?></h1>
9
10
- <div class="su-admin-shortcodes-single">
11
12
- <!-- "Go back" button -->
13
- <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-back">
14
- <a href="<?php echo $this->get_component_url(); ?>" class="button"><span class="dashicons dashicons-arrow-left-alt"></span> <?php _e( 'Back to shortcodes list', 'shortcodes-ultimate' ); ?></a>
15
- </div>
16
- <!-- /"Go back" button -->
17
-
18
- <?php if ( $shortcode ) : ?>
19
-
20
- <!-- Description section -->
21
- <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-description wp-clearfix">
22
- <span><?php $this->shortcode_image( $shortcode, 60 ); ?></span>
23
- <h2><?php echo $shortcode['name']; ?></h2>
24
- <p>
25
- <?php echo $shortcode['desc']; ?>
26
- <?php if ( isset( $shortcode['article'] ) ) : ?>
27
- <br><a href="<?php echo esc_url( $shortcode['article'] ); ?>" target="_blank"><strong><?php _e( 'Shortcode documentation', 'shortcodes-ultimate' ); ?></strong></a>.
28
- <?php endif; ?>
29
- </p>
30
- </div>
31
- <!-- /Description section -->
32
-
33
- <!-- Preview section -->
34
- <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-preview">
35
- <h2><?php _e( 'Preview', 'shortcodes-ultimate' ); ?></h2>
36
- <div class="su-admin-shortcodes-single-preview-content wp-clearfix">
37
- <?php echo do_shortcode( $this->get_shortcode_code( $shortcode['id'] ) ); ?>
38
- </div>
39
- </div>
40
- <!-- /Preview section -->
41
-
42
- <!-- Shortcode section -->
43
- <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-code">
44
- <h2><?php _e( 'Shortcode', 'shortcodes-ultimate' ); ?></h2>
45
- <pre contenteditable="true" class=""><code><?php echo str_replace( "\t", ' ', esc_html( $this->get_shortcode_code( $shortcode['id'] ) ) ); ?></code></pre>
46
</div>
47
- <!-- /Shortcode section -->
48
-
49
- <!-- Options section -->
50
- <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-options">
51
- <h2><?php _e( 'Shortcode options', 'shortcodes-ultimate' ); ?></h2>
52
-
53
- <?php foreach( $options as $table ) : ?>
54
-
55
- <div class="su-admin-shortcodes-single-options-table">
56
-
57
- <?php if ( count( $options ) > 1 ) : ?>
58
- <h3>[<?php echo su_get_shortcode_prefix(), $table['id']; ?>]</h3>
59
- <?php endif; ?>
60
-
61
- <?php if ( !is_array( $table['atts'] ) || !count( $table['atts'] ) ) : ?>
62
- <p class="description"><?php _e( 'This shortcode do not have options', 'shortcodes-ultimate' ); ?></p>
63
- <?php else : ?>
64
-
65
- <table class="widefat striped">
66
-
67
- <tr>
68
- <th><?php _e( 'Option name', 'shortcodes-ultimate' ); ?></th>
69
- <th><?php _e( 'Possible values', 'shortcodes-ultimate' ); ?></th>
70
- <th><?php _e( 'Default value', 'shortcodes-ultimate' ); ?></th>
71
- </tr>
72
-
73
- <?php foreach( $table['atts'] as $attr_id => $attr ) : ?>
74
- <tr>
75
- <td style="max-width:360px">
76
- <strong><?php echo $attr_id; ?></strong><br>
77
- <small class="description"><?php echo $this->get_shortcode_description( $attr['desc'] ); ?></small>
78
- </td>
79
- <td><?php echo $this->get_possible_values( $attr ); ?></td>
80
- <td><?php echo $this->get_default_value( $attr ); ?></td>
81
- </tr>
82
- <?php endforeach; ?>
83
-
84
- </table>
85
-
86
- <?php endif; ?>
87
-
88
- </div>
89
-
90
- <?php endforeach; ?>
91
92
- </div>
93
- <!-- /Options section -->
94
95
<!-- "Go back" button -->
96
<div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-back">
97
- <a href="<?php echo $this->get_component_url(); ?>" class="button"><span class="dashicons dashicons-arrow-left-alt"></span> <?php _e( 'Back to shortcodes list', 'shortcodes-ultimate' ); ?></a>
98
</div>
99
<!-- /"Go back" button -->
100
101
- <?php endif; // if ( $shortcode ) ?>
102
103
</div>
1
<?php defined( 'ABSPATH' ) || exit; ?>
2
3
+ <div id="su_admin_shortcodes" class="wrap su-admin-shortcodes">
4
5
+ <h1><?php $this->the_page_title(); ?></h1>
6
7
+ <div class="su-admin-shortcodes-single">
8
9
+ <!-- "Go back" button -->
10
+ <div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-back">
11
+ <a href="<?php echo esc_attr( $this->get_component_url() ); ?>" class="button">
12
+ <span class="dashicons dashicons-arrow-left-alt"></span>
13
+ <?php esc_html_e( 'Back to shortcodes list', 'shortcodes-ultimate' ); ?>
14
+ </a>
15
</div>
16
+ <!-- /"Go back" button -->
17
18
+ <?php $this->single_shortcode_page_content(); ?>
19
20
<!-- "Go back" button -->
21
<div class="su-admin-shortcodes-single-section su-admin-shortcodes-single-back">
22
+ <a href="<?php echo esc_attr( $this->get_component_url() ); ?>" class="button">
23
+ <span class="dashicons dashicons-arrow-left-alt"></span>
24
+ <?php esc_html_e( 'Back to shortcodes list', 'shortcodes-ultimate' ); ?>
25
+ </a>
26
</div>
27
<!-- /"Go back" button -->
28
29
+ </div>
30
31
</div>
admin/partials/pages/shortcodes.php DELETED
@@ -1,11 +0,0 @@
1
- <?php defined( 'ABSPATH' ) or exit; ?>
2
-
3
- <div id="su_admin_shortcodes" class="wrap su-admin-shortcodes">
4
-
5
- <?php if ( ! $this->is_single_shortcode_page() ) : ?>
6
- <?php $this->the_template( 'admin/partials/pages/shortcodes-list' ); ?>
7
- <?php else : ?>
8
- <?php $this->the_template( 'admin/partials/pages/shortcodes-single' ); ?>
9
- <?php endif; ?>
10
-
11
- </div>
inc/core/assets.php CHANGED
@@ -94,13 +94,12 @@ class Su_Assets {
94
// Plugin Icons (Fork Awesome)
95
wp_register_style( 'su-icons', plugins_url( 'includes/css/icons.css', SU_PLUGIN_FILE ), false, '1.1.5', 'all' );
96
// DEPRECATED - Shortcodes stylesheets
97
- // TODO: remove declarations (10)
98
- wp_register_style( 'su-content-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
99
- wp_register_style( 'su-box-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
100
- wp_register_style( 'su-media-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
101
- wp_register_style( 'su-other-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
102
- wp_register_style( 'su-galleries-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
103
- wp_register_style( 'su-players-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
104
// RTL stylesheets
105
wp_register_style( 'su-rtl-shortcodes', plugins_url( 'includes/css/rtl-shortcodes.css', SU_PLUGIN_FILE ), false, SU_PLUGIN_VERSION, 'all' );
106
wp_register_style( 'su-rtl-admin', plugins_url( 'admin/css/rtl-admin.css', SU_PLUGIN_FILE ), false, SU_PLUGIN_VERSION, 'all' );
94
// Plugin Icons (Fork Awesome)
95
wp_register_style( 'su-icons', plugins_url( 'includes/css/icons.css', SU_PLUGIN_FILE ), false, '1.1.5', 'all' );
96
// DEPRECATED - Shortcodes stylesheets
97
+ // wp_register_style( 'su-content-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
98
+ // wp_register_style( 'su-box-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
99
+ // wp_register_style( 'su-media-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
100
+ // wp_register_style( 'su-other-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
101
+ // wp_register_style( 'su-galleries-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
102
+ // wp_register_style( 'su-players-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
103
// RTL stylesheets
104
wp_register_style( 'su-rtl-shortcodes', plugins_url( 'includes/css/rtl-shortcodes.css', SU_PLUGIN_FILE ), false, SU_PLUGIN_VERSION, 'all' );
105
wp_register_style( 'su-rtl-admin', plugins_url( 'admin/css/rtl-admin.css', SU_PLUGIN_FILE ), false, SU_PLUGIN_VERSION, 'all' );
inc/core/generator.php CHANGED
@@ -179,7 +179,7 @@ class Su_Generator {
179
180
// Add add-ons links
181
if ( ! self::is_addons_active() ) {
182
- $tools[] = '<a href="' . admin_url( 'admin.php?page=shortcodes-ultimate-addons' ) . '" target="_blank" title="' . __( 'Add-ons', 'shortcodes-ultimate' ) . '" class="su-add-ons">' . __( 'Add-ons', 'shortcodes-ultimate' ) . '</a>';
183
}
184
?>
185
<div id="su-generator-wrap" style="display:none">
@@ -196,9 +196,14 @@ class Su_Generator {
196
<?php
197
// Choices loop
198
foreach ( self::get_shortcodes() as $name => $shortcode ) {
199
- $icon = ( isset( $shortcode['icon'] ) ) ? $shortcode['icon'] : 'puzzle-piece';
200
$shortcode['name'] = ( isset( $shortcode['name'] ) ) ? $shortcode['name'] : $name;
201
- echo '<span data-name="' . $shortcode['name'] . '" data-shortcode="' . $name . '" title="' . esc_attr( $shortcode['desc'] ) . '" data-desc="' . esc_attr( $shortcode['desc'] ) . '" data-group="' . $shortcode['group'] . '">' . su_html_icon( 'icon:' . $icon ) . $shortcode['name'] . '</span>' . "\n";
202
}
203
?>
204
</div>
@@ -222,6 +227,14 @@ class Su_Generator {
222
if ( empty( $_REQUEST['shortcode'] ) ) wp_die( __( 'Shortcode not specified', 'shortcodes-ultimate' ) );
223
// Request queried shortcode
224
$shortcode = su_get_shortcode( sanitize_key( $_REQUEST['shortcode'] ) );
225
// Prepare skip-if-default option
226
$skip = ( get_option( 'su_option_skip' ) === 'on' ) ? ' su-generator-skip' : '';
227
// Prepare actions
179
180
// Add add-ons links
181
if ( ! self::is_addons_active() ) {
182
+ $tools[] = '<a href="' . admin_url( 'admin.php?page=shortcodes-ultimate-addons' ) . '" target="_blank" title="' . __( 'Add-ons', 'shortcodes-ultimate' ) . '" class="su-add-ons">&#9733; ' . __( 'Premium Add-ons', 'shortcodes-ultimate' ) . '</a>';
183
}
184
?>
185
<div id="su-generator-wrap" style="display:none">
196
<?php
197
// Choices loop
198
foreach ( self::get_shortcodes() as $name => $shortcode ) {
199
+ if ( ! isset( $shortcode['icon'] ) ) {
200
+ $shortcode['icon'] = 'puzzle-piece';
201
+ }
202
+ if ( strpos( $shortcode['icon'], '/' ) === false ) {
203
+ $shortcode['icon'] = 'icon:' . $shortcode['icon'];
204
+ }
205
$shortcode['name'] = ( isset( $shortcode['name'] ) ) ? $shortcode['name'] : $name;
206
+ echo '<span data-name="' . $shortcode['name'] . '" data-shortcode="' . $name . '" title="' . esc_attr( $shortcode['desc'] ) . '" data-desc="' . esc_attr( $shortcode['desc'] ) . '" data-group="' . $shortcode['group'] . '">' . su_html_icon( $shortcode['icon'] ) . $shortcode['name'] . '</span>' . "\n";
207
}
208
?>
209
</div>
227
if ( empty( $_REQUEST['shortcode'] ) ) wp_die( __( 'Shortcode not specified', 'shortcodes-ultimate' ) );
228
// Request queried shortcode
229
$shortcode = su_get_shortcode( sanitize_key( $_REQUEST['shortcode'] ) );
230
+ // Call custom callback
231
+ if (
232
+ isset( $shortcode['generator_callback'] ) &&
233
+ is_callable( $shortcode['generator_callback'] )
234
+ ) {
235
+ call_user_func( $shortcode['generator_callback'], $shortcode );
236
+ exit;
237
+ }
238
// Prepare skip-if-default option
239
$skip = ( get_option( 'su_option_skip' ) === 'on' ) ? ' su-generator-skip' : '';
240
// Prepare actions
includes/class-shortcodes-ultimate-upgrade.php CHANGED
@@ -66,11 +66,46 @@ final class Shortcodes_Ultimate_Upgrade {
66
$this->maybe_upgrade_to( '5.1.1' );
67
$this->maybe_upgrade_to( '5.2.0' );
68
$this->maybe_upgrade_to( '5.4.0' );
69
70
$this->update_saved_version();
71
72
}
73
74
/**
75
* Conditional check if plugin was updated.
76
*
@@ -99,28 +134,6 @@ final class Shortcodes_Ultimate_Upgrade {
99
100
}
101
102
- /**
103
- * Helper function to register a new upgrade routine.
104
- *
105
- * @since 5.4.0
106
- * @param string $version New version number.
107
- */
108
- private function maybe_upgrade_to( $version ) {
109
-
110
- if ( ! $this->is_saved_version_less_than( $version ) ) {
111
- return;
112
- }
113
-
114
- $this->upgrade_path = su_get_plugin_path() . 'includes/upgrade/' . $version . '.php';
115
-
116
- if ( ! file_exists( $this->upgrade_path ) ) {
117
- return;
118
- }
119
-
120
- include $this->upgrade_path;
121
-
122
- }
123
-
124
/**
125
* Save current version number.
126
*
66
$this->maybe_upgrade_to( '5.1.1' );
67
$this->maybe_upgrade_to( '5.2.0' );
68
$this->maybe_upgrade_to( '5.4.0' );
69
+ $this->maybe_upgrade_to( '5.6.0' );
70
71
$this->update_saved_version();
72
73
}
74
75
+ /**
76
+ * Helper function to register a new upgrade routine.
77
+ *
78
+ * @since 5.4.0
79
+ * @param string $version New version number.
80
+ */
81
+ private function maybe_upgrade_to( $version ) {
82
+
83
+ if ( ! $this->is_saved_version_less_than( $version ) ) {
84
+ return;
85
+ }
86
+
87
+ $this->upgrade_to( $version );
88
+
89
+ }
90
+
91
+ /**
92
+ * Helper function to test a new upgrade routine.
93
+ *
94
+ * @since 5.6.0
95
+ * @param string $version New version number.
96
+ */
97
+ private function upgrade_to( $version ) {
98
+
99
+ $this->upgrade_path = plugin_dir_path( __FILE__ ) . 'upgrade/' . $version . '.php';
100
+
101
+ if ( ! file_exists( $this->upgrade_path ) ) {
102
+ return;
103
+ }
104
+
105
+ include $this->upgrade_path;
106
+
107
+ }
108
+
109
/**
110
* Conditional check if plugin was updated.
111
*
134
135
}
136
137
/**
138
* Save current version number.
139
*
includes/class-shortcodes-ultimate.php CHANGED
@@ -81,6 +81,13 @@ class Shortcodes_Ultimate {
81
*/
82
public $rate_notice;
83
84
/**
85
* Get class instance.
86
*
@@ -147,6 +154,11 @@ class Shortcodes_Ultimate {
147
require_once $this->plugin_path . 'admin/class-shortcodes-ultimate-notice.php';
148
require_once $this->plugin_path . 'admin/class-shortcodes-ultimate-notice-rate.php';
149
150
/**
151
* Filters.
152
*/
@@ -159,6 +171,7 @@ class Shortcodes_Ultimate {
159
require_once $this->plugin_path . 'includes/functions-html.php';
160
require_once $this->plugin_path . 'includes/functions-shortcodes.php';
161
require_once $this->plugin_path . 'includes/functions-galleries.php';
162
163
/**
164
* Deprecated stuff.
@@ -281,6 +294,14 @@ class Shortcodes_Ultimate {
281
add_filter( 'attachment_fields_to_edit', 'su_slide_link_input', 10, 2 );
282
add_filter( 'attachment_fields_to_save', 'su_slide_link_save', 10, 2 );
283
284
}
285
286
/**
@@ -307,8 +328,8 @@ class Shortcodes_Ultimate {
307
*/
308
$enable_shortcodes_in = (array) get_option( 'su_option_enable_shortcodes_in' );
309
310
- if ( in_array( 'category_description', $enable_shortcodes_in, true ) ) {
311
- add_filter( 'category_description', 'do_shortcode' );
312
}
313
314
if ( in_array( 'widget_text', $enable_shortcodes_in, true ) ) {
81
*/
82
public $rate_notice;
83
84
+ /**
85
+ * Admin Extra Shortcodes instance.
86
+ *
87
+ * @since 5.6.0
88
+ */
89
+ public $admin_extra_shortcodes;
90
+
91
/**
92
* Get class instance.
93
*
154
require_once $this->plugin_path . 'admin/class-shortcodes-ultimate-notice.php';
155
require_once $this->plugin_path . 'admin/class-shortcodes-ultimate-notice-rate.php';
156
157
+ /**
158
+ * Add Extra Shortcodes
159
+ */
160
+ require_once $this->plugin_path . 'admin/class-shortcodes-ultimate-admin-extra-shortcodes.php';
161
+
162
/**
163
* Filters.
164
*/
171
require_once $this->plugin_path . 'includes/functions-html.php';
172
require_once $this->plugin_path . 'includes/functions-shortcodes.php';
173
require_once $this->plugin_path . 'includes/functions-galleries.php';
174
+ require_once $this->plugin_path . 'includes/functions-colors.php';
175
176
/**
177
* Deprecated stuff.
294
add_filter( 'attachment_fields_to_edit', 'su_slide_link_input', 10, 2 );
295
add_filter( 'attachment_fields_to_save', 'su_slide_link_save', 10, 2 );
296
297
+ /**
298
+ * Add Extra Shortcodes
299
+ */
300
+ $this->admin_extra_shortcodes = new Shortcodes_Ultimate_Admin_Extra_Shortcodes();
301
+
302
+ add_action( 'admin_init', array( $this->admin_extra_shortcodes, 'register_shortcodes' ) );
303
+ add_filter( 'su/data/groups', array( $this->admin_extra_shortcodes, 'register_group' ) );
304
+
305
}
306
307
/**
328
*/
329
$enable_shortcodes_in = (array) get_option( 'su_option_enable_shortcodes_in' );
330
331
+ if ( in_array( 'term_description', $enable_shortcodes_in, true ) ) {
332
+ add_filter( 'term_description', 'do_shortcode' );
333
}
334
335
if ( in_array( 'widget_text', $enable_shortcodes_in, true ) ) {
includes/config/default-settings.php CHANGED
@@ -13,7 +13,7 @@ return apply_filters(
13
'core/freeform',
14
),
15
'su_option_generator_access' => 'manage_options',
16
- 'su_option_enable_shortcodes_in' => array( 'category_description' ),
17
'su_option_hide_deprecated' => 'on',
18
)
19
);
13
'core/freeform',
14
),
15
'su_option_generator_access' => 'manage_options',
16
+ 'su_option_enable_shortcodes_in' => array( 'term_description' ),
17
'su_option_hide_deprecated' => 'on',
18
)
19
);
includes/css/shortcodes.css CHANGED
@@ -1 +1 @@
1
- .su-u-clearfix::after{content:'';display:table;clear:both}.su-u-trim>:first-child{margin-top:0}.su-u-trim>:last-child{margin-bottom:0}.su-u-responsive-media-yes{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.su-u-responsive-media-yes .fluid-width-video-wrapper,.su-u-responsive-media-yes .video-holder{position:static !important}.su-u-responsive-media-yes iframe,.su-u-responsive-media-yes object,.su-u-responsive-media-yes embed{position:absolute;top:0;left:0;width:100%;height:100%}.su-accordion{margin-bottom:1.5em}.su-accordion .su-spoiler{margin-bottom:0.5em}.su-audio{position:relative;width:100%;height:30px;margin-bottom:1.5em;background:#7c8781;background:-webkit-gradient(linear, left top, left bottom, from(#7c8781), to(#0a0809));background:-webkit-linear-gradient(top, #7c8781 0%, #0a0809 100%);background:linear-gradient(to bottom, #7c8781 0%, #0a0809 100%);border-radius:3px}.su-audio .jp-play,.su-audio .jp-pause{position:absolute;left:0;top:0;display:block;width:30px;height:30px;border-top-left-radius:3px;border-bottom-left-radius:3px;cursor:pointer;border-right:1px solid #454947;background-image:url("../images/player/default.png");background-repeat:no-repeat}.su-audio .jp-play{background-position:0 0}.su-audio .jp-pause{background-position:-30px 0}.su-audio .jp-current-time,.su-audio .jp-duration{position:absolute;top:0;display:block;height:30px;line-height:30px;font-size:10px;color:#eee;text-shadow:0 -1px 0 #000}.su-audio .jp-current-time{left:45px}.su-audio .jp-duration{right:10px}.su-audio .jp-seek-bar,.su-audio .jp-play-bar{position:absolute;top:0;left:0;height:10px;border-radius:3px;cursor:pointer}.su-audio .jp-progress{position:absolute;top:10px;left:85px;right:50px;height:10px;background:#333;box-shadow:0 0 5px #000 inset;border-radius:3px}.su-audio .jp-seek-bar{background:#0b0b0b;background:-webkit-gradient(linear, left top, left bottom, from(#0b0b0b), to(#666));background:-webkit-linear-gradient(top, #0b0b0b 0%, #666 100%);background:linear-gradient(to bottom, #0b0b0b 0%, #666 100%)}.su-audio .jp-play-bar{background:#6db3f2;background:-webkit-gradient(linear, left top, left bottom, from(#6db3f2), color-stop(50%, #54a3ee), color-stop(51%, #3690f0), to(#1e69de));background:-webkit-linear-gradient(top, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);background:linear-gradient(to bottom, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%)}.su-box{margin:0 0 1.5em;border-width:2px;border-style:solid}.su-box-title{display:block;padding:0.5em 1em;font-weight:bold;font-size:1.1em}.su-box-content{background-color:#fff;color:#444;padding:1em}.su-box-style-soft .su-box-title{background-image:url("../images/styles/style-soft.png");background-position:0 0;background-repeat:repeat-x}.su-box-style-glass .su-box-title{background-image:url("../images/styles/style-glass.png");background-position:0 50%;background-repeat:repeat-x}.su-box-style-bubbles .su-box-title{background-image:url("../images/styles/style-bubbles.png");background-position:0 50%;background-repeat:repeat-x}.su-box-style-noise .su-box-title{background-image:url("../images/styles/style-noise.png");background-position:0 0;background-repeat:repeat-x}.su-button{display:inline-block !important;text-align:center;text-decoration:none !important;box-sizing:content-box !important;-webkit-transition:all 0.2s;transition:all 0.2s}.su-button-wide{display:block !important;margin:1em 0}.su-button-center{text-align:center}.su-button span{display:block !important;text-decoration:none !important;box-sizing:content-box !important;-webkit-transition:all 0.2s;transition:all 0.2s}.su-button img{border:none !important;vertical-align:middle !important;margin:-0.2em 0.4em 0 -0.3em !important;box-shadow:none !important}.su-button i{display:inline-block;width:1em;height:1em;margin:0 0.5em 0 0 !important;text-align:center;line-height:1em}.su-button.su-button-float-icon img{margin:0 0.5em !important}.su-button small{display:block;margin:-0.2em 0 0;color:inherit;text-align:center;font-style:normal;font-size:0.8em;line-height:1;opacity:0.7}@media screen and (max-width: 768px){.su-button span{padding-top:0.25em !important;padding-bottom:0.25em !important;line-height:1.2 !important}.su-button small{margin-top:0.2em !important}}.su-button-style-default{border-width:1px;border-style:solid}.su-button-style-default:hover{opacity:0.7}.su-button-style-default span{border-top-width:1px;border-bottom-width:1px;border-top-style:solid;border-bottom-style:solid}.su-button-style-flat,.su-button-style-flat span{border:none}.su-button-style-flat span{position:relative}.su-button-style-flat:hover span{top:1px}.su-button-style-ghost{background:transparent !important}.su-button-style-ghost span{border-width:3px;border-style:solid}.su-button-style-ghost:hover span{border-color:inherit !important}.su-button-style-soft span{background:0 -20px url("../images/styles/style-soft.png") repeat-x}.su-button-style-soft:hover span{background:0 0 url("../images/styles/style-soft.png") repeat-x}.su-button-style-glass span{background:0 50% url("../images/styles/style-glass.png") repeat-x}.su-button-style-glass:hover span{background:100% 50% url("../images/styles/style-glass.png") repeat-x}.su-button-style-bubbles span{background:0 50% url("../images/styles/style-bubbles.png") no-repeat}.su-button-style-bubbles:hover span{background:-710px 50% url("../images/styles/style-bubbles.png") no-repeat}.su-button-style-noise span{background:0 0 url("../images/styles/style-noise.png") repeat-x}.su-button-style-noise:hover span{background:0 0 url("../images/styles/style-noise.png") repeat-x}.su-button-style-stroked span{margin:1px;border:1px dashed #fff !important}.su-button-style-stroked:hover span{opacity:0.7}.su-button-style-3d{border-bottom-style:solid;border-bottom-width:6px}.su-button-style-3d span{border-bottom-style:solid;border-bottom-width:1px}.su-button-style-3d:hover{position:relative;top:3px;border-bottom-width:3px}.su-carousel{position:relative;margin-bottom:1.5em;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.su-carousel-centered{margin:0 auto 1.5em}.su-carousel-slides{position:relative;width:100%;-webkit-transition-property:-webkit-transform, left, top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0, 0, 0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform, left, top;-moz-transition-duration:0s;-moz-transform:translate3d(0, 0, 0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform, left, top;-o-transition-duration:0s;-o-transform:translate3d(0, 0, 0);-o-transition-timing-function:ease;-o-transform:translate(0, 0);-ms-transition-property:-ms-transform, left, top;-ms-transition-duration:0s;-ms-transform:translate3d(0, 0, 0);-ms-transition-timing-function:ease;-webkit-transition-property:left, top, -webkit-transform;transition-property:left, top, -webkit-transform;transition-property:transform, left, top;transition-property:transform, left, top, -webkit-transform;transition-duration:0s;transform:translate3d(0, 0, 0);transition-timing-function:ease}.swiper-free-mode>.su-carousel-slides{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.su-carousel-slide{position:relative;float:left}.su-carousel-slide>a,.su-carousel-slide>img,.su-carousel-slide>a>img{position:relative;display:block;width:100%;height:100%;text-decoration:none;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.su-carousel-responsive-yes .su-carousel-slide>a,.su-carousel-responsive-yes .su-carousel-slide>img,.su-carousel-responsive-yes .su-carousel-slide>a>img{height:auto}.su-carousel-pages-no .su-carousel-pagination{display:none}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.su-carousel .su-carousel-slide a{padding:0 5px}.su-carousel .su-carousel-slide img{padding:3px;border:1px solid #ccc;background:#fff;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}.su-carousel .su-carousel-slide-title{position:absolute;left:9px;right:9px;bottom:4px;display:block;padding:2px 3px;color:#fff;line-height:1.2;font-size:11px;background:#000;background:rgba(0,0,0,0.5);box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;transition:opacity 1s;-o-transition:opacity 1s;-moz-transition:opacity 1s;-webkit-transition:opacity 1s}.su-carousel .su-carousel-prev,.su-carousel .su-carousel-next{position:absolute;top:50%;display:block;width:40px;height:40px;margin-top:-20px;background:#000 0 0 url("../images/swiper/default.png") no-repeat;background-color:rgba(0,0,0,0.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;filter:alpha(opacity=0);opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-carousel .su-carousel-prev{right:20px;margin-right:40px;background-position:-40px 0}.su-carousel .su-carousel-next{left:20px;margin-left:40px;background-position:0 0}.su-carousel:hover .su-carousel-prev,.su-carousel:hover .su-carousel-next{margin-left:0;margin-right:0;filter:alpha(opacity=70);opacity:0.7}.su-carousel .su-carousel-prev:hover,.su-carousel .su-carousel-next:hover{filter:alpha(opacity=100);opacity:1}.su-carousel .su-carousel-pagination{position:absolute;left:15%;right:15%;top:50%;width:70%;height:0;margin-top:-7px;text-align:center;cursor:default;filter:alpha(opacity=0);opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-carousel:hover .su-carousel-pagination{bottom:20px;filter:alpha(opacity=100);opacity:1}.su-carousel .su-carousel-pagination span{display:inline-block;width:14px;height:14px;margin:0;background:#000 0 -999px url("../images/swiper/default.png") no-repeat;background-color:rgba(0,0,0,0.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;-webkit-transition:all 0.2s;transition:all 0.2s}.su-carousel:hover .su-carousel-pagination span{margin:0 3px}.su-carousel .su-carousel-pagination span.swiper-visible-switch{background-color:#fff;background-color:rgba(255,255,255,0.5)}.su-carousel .su-carousel-pagination span:hover,.su-carousel .su-carousel-pagination span.swiper-active-switch{background-position:0 -40px}.su-row{clear:both;zoom:1;margin-bottom:1.5em}.su-row:before,.su-row:after{display:table;content:''}.su-row:after{clear:both}.su-column{display:block;margin:0 4% 0 0;float:left;box-sizing:border-box}.su-column-last{margin-right:0}.su-row .su-column{margin:0 0 0 4%}.su-row .su-column.su-column-size-1-1{margin-left:0;margin-right:0}.su-row .su-column:first-child{margin-left:0}.su-row .su-column.su-column-centered{margin-right:auto;margin-left:auto;float:none}.su-column img,.su-column iframe,.su-column object,.su-column embed{max-width:100%}@media only screen{[class*='su-column']+[class*='su-column']:last-child{float:right}}.su-column-size-1-1{width:100%}.su-column-size-1-2{width:48%}.su-column-size-1-3{width:30.66%}.su-column-size-2-3{width:65.33%}.su-column-size-1-4{width:22%}.su-column-size-3-4{width:74%}.su-column-size-1-5{width:16.8%}.su-column-size-2-5{width:37.6%}.su-column-size-3-5{width:58.4%}.su-column-size-4-5{width:79.2%}.su-column-size-1-6{width:13.33%}.su-column-size-5-6{width:82.66%}@media only screen and (max-width: 768px){.su-row .su-column{width:100%;margin:0 0 1.5em;float:none}.su-row .su-column:last-child{margin-bottom:0}}.su-custom-gallery{margin-bottom:1.5em}.su-custom-gallery:after,.su-custom-gallery:before{content:'';display:table}.su-custom-gallery:after{clear:both}.su-custom-gallery-slide{position:relative;float:left;margin:0.5em;overflow:hidden}.su-custom-gallery-slide a{display:block;width:100%;height:100%}.su-custom-gallery-slide img{display:block;margin:0;padding:3px;border:1px solid #ccc;background:#fff;box-sizing:border-box;border-radius:5px;box-shadow:none;-webkit-transition:all 0.2s;transition:all 0.2s}.su-custom-gallery-slide:hover img{background:#eee;border:1px solid #aaa}.su-custom-gallery-slide span{position:absolute;left:4px;bottom:4px;right:4px;display:block;padding:2px 4px;font-size:12px;color:#fff;background:#000;background:rgba(0,0,0,0.5);line-height:1.3;opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-custom-gallery-slide:hover span{opacity:1}.su-custom-gallery-title-never span{display:none}.su-custom-gallery-title-always span{opacity:1}.su-dailymotion{margin:0 0 1.5em}.su-dailymotion iframe{border:none !important}.su-divider{clear:both;border:none;text-align:right;line-height:1}.su-divider a{display:inline-block;font-size:0.8em;text-decoration:none;outline:none;padding-bottom:5px}.su-divider-style-default{border-bottom-style:solid}.su-divider-style-dotted{border-bottom-style:dotted}.su-divider-style-dashed{border-bottom-style:dashed}.su-divider-style-double{border-bottom-style:double}.su-document{margin:0 0 1.5em}.su-document iframe{border:none !important}.su-dropcap{float:left;display:inline-block;width:2em;height:2em;margin:0.2em 0.5em 0.2em 0;line-height:2em;text-align:center;overflow:hidden;text-transform:uppercase}.su-dropcap-style-default{color:white;background:#45484d;background:-webkit-gradient(linear, left top, left bottom, from(#45484d), to(black));background:-webkit-linear-gradient(top, #45484d 0%, black 100%);background:linear-gradient(to bottom, #45484d 0%, black 100%);text-shadow:-1px -1px 0 black;border-radius:50%}.su-dropcap-style-flat{background:#444;color:#fff}.su-dropcap-style-light{color:#333;border-radius:50%;background:white;background:-webkit-gradient(linear, left top, left bottom, from(white), to(#eaeaea));background:-webkit-linear-gradient(top, white 0%, #eaeaea 100%);background:linear-gradient(to bottom, white 0%, #eaeaea 100%)}.su-dropcap-style-simple{width:1em;height:1em;line-height:1em;text-align:left}.su-expand{margin:0 0 1.5em}.su-expand-content{overflow:hidden}.su-expand-link{margin-top:0.5em;cursor:pointer}.su-expand-link:hover{opacity:0.7}.su-expand-link a,.su-expand-link a:hover,.su-expand-link a:active,.su-expand-link a:visited,.su-expand-link a:focus{display:inline;text-decoration:none;box-shadow:none;background:transparent;border:none}.su-expand-link-style-underlined .su-expand-link span{text-decoration:underline}.su-expand-link-style-dotted .su-expand-link span{border-bottom:1px dotted #333}.su-expand-link-style-dashed .su-expand-link span{border-bottom:1px dashed #333}.su-expand-link-style-button .su-expand-link a{display:inline-block;margin-top:0.2em;padding:0.2em 0.4em;border:2px solid #333}.su-expand-link-more{display:none}.su-expand-link-less{display:block}.su-expand-collapsed .su-expand-link-more{display:block}.su-expand-collapsed .su-expand-link-less{display:none}.su-expand-link i{display:inline-block;margin:0 0.3em 0 0;vertical-align:middle;color:inherit}.su-expand-link img{display:inline-block;width:1em;height:1em;margin:0 0.3em 0 0;vertical-align:middle}.su-frame,.su-frame-inner{display:block}.su-frame-align-left{float:left;margin:0 1em 1em 0}.su-frame-align-center{float:none;margin:1em auto}.su-frame-align-right{float:right;margin:0 0 1em 1em}.su-frame img{display:block !important;float:none !important;padding:0 !important;margin:0 !important;border:none !important;box-shadow:none !important}.su-frame-style-default{padding:2px;border:1px solid #999;background:#fff;box-shadow:1px 1px 4px #ccc}.su-frame-style-default .su-frame-inner{padding:2px;border:4px solid #eee}.su-gmap{margin:0 0 1.5em}.su-gmap iframe{border:none !important}.su-guests{margin-bottom:1.5em}.su-heading-style-default{padding:2px 0;border-top:1px solid #999;border-bottom:1px solid #999}.su-heading-style-default .su-heading-inner{padding:1em 0.5em;border-top:4px solid #eee;border-bottom:4px solid #eee}.su-heading.su-heading-align-left{text-align:left}.su-heading.su-heading-align-left .su-heading-inner{padding-left:0.2em}.su-heading.su-heading-align-right{text-align:right}.su-heading.su-heading-align-right .su-heading-inner{padding-right:0.2em}.su-heading.su-heading-align-center{text-align:center}.su-highlight{display:inline;padding:1px 0}.su-image-carousel{width:100%;margin:1.5em 0}.su-image-carousel:first-child{margin-top:0}.su-image-carousel:last-child{margin-bottom:0}.su-image-carousel-item{width:100%;box-sizing:border-box}.su-image-carousel .su-image-carousel-item-content{position:relative}.su-image-carousel .su-image-carousel-item-content a,.su-image-carousel .su-image-carousel-item-content a:hover,.su-image-carousel .su-image-carousel-item-content a:focus,.su-image-carousel .su-image-carousel-item-content a:visited,.su-image-carousel .su-image-carousel-item-content a:active,.su-image-carousel .su-image-carousel-item-content img{display:block;width:100%;height:100%;margin:0;padding:0;box-sizing:border-box;box-shadow:none;text-decoration:none;border:none;border-radius:0}.su-image-carousel .su-image-carousel-item-content a::before,.su-image-carousel .su-image-carousel-item-content a::after,.su-image-carousel .su-image-carousel-item-content img::before,.su-image-carousel .su-image-carousel-item-content img::after{display:none}.su-image-carousel .su-image-carousel-item-content span{position:absolute;display:block;font-size:0.9em;max-height:60%;overflow:auto;line-height:1.3;word-wrap:break-word}.su-image-carousel .su-image-carousel-item-content span:empty{display:none}.su-image-carousel-columns-2 .su-image-carousel-item{width:50%}.su-image-carousel-columns-2.su-image-carousel-has-spacing .su-image-carousel-item{width:48.5%;margin-right:3%}.su-image-carousel-columns-3 .su-image-carousel-item{width:33.33333%}.su-image-carousel-columns-3.su-image-carousel-has-spacing .su-image-carousel-item{width:31.4%;margin-right:2.9%}.su-image-carousel-columns-4 .su-image-carousel-item{width:25%}.su-image-carousel-columns-4.su-image-carousel-has-spacing .su-image-carousel-item{width:22.9%;margin-right:2.8%}.su-image-carousel-columns-5 .su-image-carousel-item{width:20%}.su-image-carousel-columns-5.su-image-carousel-has-spacing .su-image-carousel-item{width:18%;margin-right:2.5%}.su-image-carousel-columns-6 .su-image-carousel-item{width:16.66667%}.su-image-carousel-columns-6.su-image-carousel-has-spacing .su-image-carousel-item{width:14.5%;margin-right:2.6%}.su-image-carousel-columns-7 .su-image-carousel-item{width:14.28571%}.su-image-carousel-columns-7.su-image-carousel-has-spacing .su-image-carousel-item{width:12.4%;margin-right:2.2%}.su-image-carousel-columns-8 .su-image-carousel-item{width:12.5%}.su-image-carousel-columns-8.su-image-carousel-has-spacing .su-image-carousel-item{width:10.75%;margin-right:2%}@media screen and (max-width: 768px){.su-image-carousel-adaptive .su-image-carousel-item{width:100% !important;margin-right:0 !important}}.su-image-carousel-crop .su-image-carousel-item-content::before{float:left;width:1px;margin-left:-1px;height:0;content:''}.su-image-carousel-crop .su-image-carousel-item-content::after{content:'';display:table;clear:both}.su-image-carousel-crop .su-image-carousel-item-content img{position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.su-image-carousel-crop-16-9 .su-image-carousel-item-content::before{padding-top:56.25%}.su-image-carousel-crop-16-10 .su-image-carousel-item-content::before{padding-top:62.5%}.su-image-carousel-crop-21-9 .su-image-carousel-item-content::before{padding-top:42.85714%}.su-image-carousel-crop-5-4 .su-image-carousel-item-content::before{padding-top:80%}.su-image-carousel-crop-4-3 .su-image-carousel-item-content::before{padding-top:75%}.su-image-carousel-crop-3-2 .su-image-carousel-item-content::before{padding-top:66.66667%}.su-image-carousel-crop-2-1 .su-image-carousel-item-content::before{padding-top:50%}.su-image-carousel-crop-1-1 .su-image-carousel-item-content::before{padding-top:100%}.su-image-carousel-crop-1-2 .su-image-carousel-item-content::before{padding-top:200%}.su-image-carousel-crop-2-3 .su-image-carousel-item-content::before{padding-top:150%}.su-image-carousel-crop-3-4 .su-image-carousel-item-content::before{padding-top:133.33333%}.su-image-carousel-crop-4-5 .su-image-carousel-item-content::before{padding-top:125%}.su-image-carousel-crop-9-21 .su-image-carousel-item-content::before{padding-top:233.33333%}.su-image-carousel-crop-10-16 .su-image-carousel-item-content::before{padding-top:160%}.su-image-carousel-crop-9-16 .su-image-carousel-item-content::before{padding-top:177.77778%}.su-image-carousel-align-left{float:left;margin-right:1.5em;margin-top:0}.su-image-carousel-align-right{float:right;margin-left:1.5em;margin-top:0}.su-image-carousel-align-center{margin-right:auto;margin-left:auto}.su-image-carousel-align-full{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw !important;width:100vw !important}.su-image-carousel button.flickity-prev-next-button{position:absolute;top:50%;display:block;width:44px;height:44px;margin:-22px 0 0;padding:0;opacity:0;outline:none;border-radius:50%;-webkit-transform:none;transform:none;-webkit-transition:opacity 0.2s ease, -webkit-transform 0.2s ease;transition:opacity 0.2s ease, -webkit-transform 0.2s ease;transition:opacity 0.2s ease, transform 0.2s ease;transition:opacity 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease}.su-image-carousel:hover button.flickity-prev-next-button{opacity:0.5}.su-image-carousel button.flickity-prev-next-button:hover,.su-image-carousel button.flickity-prev-next-button:focus{opacity:1;box-shadow:none}.su-image-carousel button.flickity-prev-next-button:focus{-webkit-transform:scale(1.05);transform:scale(1.05)}.su-image-carousel button.flickity-prev-next-button[disabled]{display:none}.su-image-carousel button.flickity-prev-next-button.previous{left:20px}.su-image-carousel button.flickity-prev-next-button.next{right:20px}.su-image-carousel>ol.flickity-page-dots{position:absolute;top:50%;left:50%;bottom:auto;width:auto;margin:0;padding:0;list-style:none;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);pointer-events:none;opacity:0;-webkit-transition:opacity 0.2s ease;transition:opacity 0.2s ease}.su-image-carousel>ol.flickity-page-dots>li.dot{position:relative;width:20px;height:20px;display:inline-block;margin:5px;padding:0;list-style:none;pointer-events:all;border-radius:50%;opacity:0.5;-webkit-transition:opacity 0.2s ease;transition:opacity 0.2s ease}.su-image-carousel>ol.flickity-page-dots>li.dot:hover{opacity:1}.su-image-carousel>ol.flickity-page-dots>li.dot::before{position:absolute;top:50%;left:50%;display:none;width:10px;height:10px;margin:0;padding:0;content:'';border-radius:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.su-image-carousel>ol.flickity-page-dots>li.dot.is-selected::before{display:block}.su-image-carousel:hover ol.flickity-page-dots{opacity:1}.su-image-carousel-controls-style-dark button.flickity-prev-next-button{background:black;color:white}.su-image-carousel-controls-style-dark ol.flickity-page-dots li.dot{background:black}.su-image-carousel-controls-style-dark ol.flickity-page-dots li.dot::before{background:white}.su-image-carousel-controls-style-light button.flickity-prev-next-button{background:white;color:black}.su-image-carousel-controls-style-light ol.flickity-page-dots li.dot{background:white}.su-image-carousel-controls-style-light ol.flickity-page-dots li.dot::before{background:black}.su-image-carousel-slides-style-default .su-image-carousel-item-content{margin:1px}.su-image-carousel-slides-style-default .su-image-carousel-item-content img{padding:3px;background:white;border:1px solid #ccc;border-radius:7px}.su-image-carousel-slides-style-default .su-image-carousel-item-content span{bottom:4px;right:4px;left:4px;padding:0.5em 0.7em;background:-webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.7)), to(transparent));background:-webkit-linear-gradient(bottom, rgba(0,0,0,0.7), transparent);background:linear-gradient(to top, rgba(0,0,0,0.7), transparent);text-shadow:0 2px 5px black;color:white;border-bottom-right-radius:2px;border-bottom-left-radius:2px}.su-image-carousel-slides-style-minimal .su-image-carousel-item-content{margin:1px}.su-image-carousel-slides-style-minimal .su-image-carousel-item-content span{right:0;bottom:0;left:0;padding:0.7em;background:-webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.7)), to(transparent));background:-webkit-linear-gradient(bottom, rgba(0,0,0,0.7), transparent);background:linear-gradient(to top, rgba(0,0,0,0.7), transparent);text-shadow:0 2px 5px black;color:white}.su-image-carousel-slides-style-photo .su-image-carousel-item-content{padding:7px}.su-image-carousel-slides-style-photo .su-image-carousel-item-content img{border:5px solid white;border-radius:7px;box-shadow:0 2px 5px rgba(0,0,0,0.5)}.su-image-carousel-slides-style-photo .su-image-carousel-item-content span{right:12px;bottom:12px;left:12px;padding:0.3em 0.5em;background:white;color:black;font-size:0.9em}.su-image-carousel-slides-style-photo.su-image-carousel-crop .su-image-carousel-item-content img{top:7px;right:7px;left:7px;bottom:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.su-image-carousel-mfp.mfp-bg{z-index:102000 !important}.su-image-carousel-mfp.mfp-wrap{z-index:102001 !important}.su-image-carousel-mfp.mfp-wrap .mfp-preloader{z-index:102002 !important}.su-image-carousel-mfp.mfp-wrap .mfp-content{z-index:102003 !important}.su-image-carousel-mfp.mfp-wrap button.mfp-close,.su-image-carousel-mfp.mfp-wrap button.mfp-arrow{z-index:102004 !important}.su-image-carousel-has-outline button.flickity-prev-next-button:focus,.su-image-carousel-has-outline .su-image-carousel-item-content a:focus img{outline-width:2px;outline-style:solid;outline-color:Highlight}@media (-webkit-min-device-pixel-ratio: 0){.su-image-carousel-has-outline button.flickity-prev-next-button:focus,.su-image-carousel-has-outline .su-image-carousel-item-content a:focus{outline-color:-webkit-focus-ring-color;outline-style:auto}}.su-label{display:inline;margin-right:0.3em;padding:0.1em 0.3em;font-size:0.8em;height:0.8em;line-height:0.8em;color:#fff;border-radius:3px}.su-label-type-default{background:#999}.su-label-type-success{background:#090}.su-label-type-warning{background:#f90}.su-label-type-important{background:#f03}.su-label-type-black{background:#111}.su-label-type-info{background:#09c}.su-lightbox-content{position:relative;margin:0 auto}.mfp-content .su-lightbox-content,#su-generator .su-lightbox-content{display:block !important}.su-lightbox-content-preview{width:100%;min-height:300px;background:#444;overflow:hidden}.su-lightbox-content h1,.su-lightbox-content h2,.su-lightbox-content h3,.su-lightbox-content h4,.su-lightbox-content h5,.su-lightbox-content h6{color:inherit}.su-lightbox{cursor:pointer}.su-list{margin-bottom:1.5em}.su-list ul{margin:0 !important;padding:0 !important;list-style:none !important}.su-list ul li{position:relative;display:block !important;margin:0 !important;padding:4px 0 4px 2em !important;list-style-type:none !important;line-height:1.3em}.su-list ul li>img{position:absolute;left:0;top:4px;width:1.3em;height:1.3em;padding:0;margin:0;border:none}.su-list ul li>i{position:absolute;left:0;top:4px;width:1.3em;height:1.3em;line-height:1.3em;text-align:center}.su-members{margin-bottom:1.5em;padding:1em;border-width:1px 0;border-style:solid;text-align:center}.su-members a{text-decoration:underline;color:inherit}.su-note{margin:0 0 1.5em;border-width:1px;border-style:solid}.su-note-inner{padding:1em;border-width:1px;border-style:solid}.su-posts-default-loop .su-post{margin-bottom:2.5em;line-height:1.5}.su-posts-default-loop .su-post:after{content:'';display:table;clear:both}.su-posts-default-loop .su-post-thumbnail{float:left;display:block;width:100px;height:100px;margin-right:1em}.su-posts-default-loop .su-post-thumbnail img{max-width:100px;max-height:100px}.su-posts-default-loop h2.su-post-title{clear:none;margin:0 0 0.3em;font-size:1.2em;font-weight:bold}.su-posts-default-loop .su-post-meta{margin-bottom:0.7em;font-size:0.8em;opacity:0.6;filter:alpha(opacity=60)}.su-posts-default-loop .su-post-excerpt{margin-bottom:0.5em}.su-posts-default-loop .su-post-excerpt p:last-child{margin-bottom:0}.su-posts-default-loop .su-post-comments-link{font-size:0.9em}.su-posts-teaser-loop .su-post{margin-bottom:1.5em;line-height:1.2}.su-posts-teaser-loop .su-post:after{content:'';display:table;clear:both}.su-posts-teaser-loop .su-post-thumbnail{float:left;display:block;width:56px;height:56px;margin:0 1em 0 0}.su-posts-teaser-loop .su-post-thumbnail img{display:block;margin:0;padding:2px;border:1px solid #ccc;border-radius:5px;max-width:100%;max-height:100%}.su-posts-teaser-loop h2.su-post-title{display:block;margin:0;padding:0;border:none;font-size:0.9em;font-weight:normal;clear:none}.su-posts-single-post .su-post{margin-bottom:2.5em;line-height:1.5}.su-posts-single-post .su-post:after{content:'';display:table;clear:both}.su-posts-single-post h1.su-post-title{clear:none;margin:0 0 0.3em;font-size:1.2em;font-weight:bold}.su-posts-single-post .su-post-meta{margin-bottom:0.7em;font-size:0.8em;opacity:0.6;filter:alpha(opacity=60)}.su-posts-single-post .su-post-content{margin-bottom:0.5em}.su-posts-single-post .su-post-content p:last-child{margin-bottom:0}.su-private{margin:0 0 1.5em}.su-pullquote{display:block;width:30%;padding:0.5em 1em}.su-pullquote-align-left{margin:0.5em 1.5em 1em 0;padding-left:0;float:left;border-right:5px solid #eee}.su-pullquote-align-right{margin:0.5em 0 1em 1.5em;padding-right:0;float:right;border-left:5px solid #eee}@media screen and (max-width: 48em){.su-pullquote{width:auto}.su-pullquote-align-left,.su-pullquote-align-right{float:none;margin:1.5em 0;padding:0.5em 1em}}.su-qrcode{display:inline-block}.su-qrcode-align-left{float:left;margin:0 0.5em 0.5em 0}.su-qrcode-align-center{display:block;clear:both;margin:1em auto;text-align:center}.su-qrcode-align-right{float:right;margin:0 0 0.5em 0.5em}.su-qrcode a,.su-qrcode a:hover,.su-qrcode a:active,.su-qrcode a:focus{background:transparent;outline:none;display:inline;text-decoration:none}.su-qrcode-clickable a:hover{opacity:0.7}.su-qrcode img{max-width:100%}.su-quote-style-default{position:relative;margin-bottom:1.5em;padding:0.5em 3em;font-style:italic}.su-quote-style-default:before,.su-quote-style-default:after{position:absolute;display:block;width:20px;height:20px;background-image:url("../images/quote.png");content:''}.su-quote-style-default:before{top:0;left:0;background-position:0 0}.su-quote-style-default:after{right:0;bottom:0;background-position:-20px 0}.su-quote-style-default .su-quote-cite{display:block;text-align:right;font-style:normal}.su-quote-style-default .su-quote-cite:before{content:'\2014\0000a0'}.su-quote-style-default .su-quote-cite a{text-decoration:underline}.su-screenr{margin:0 0 1.5em}.su-screenr iframe{border:none !important}.su-service{position:relative;margin:0 0 1.5em}.su-service-title{display:block;margin-bottom:0.5em;color:#333;font-weight:bold;font-size:1.1em}.su-service-title img{position:absolute;top:0;left:0;display:block !important;margin:0 !important;padding:0 !important;border:none !important;box-shadow:none !important}.su-service-title i{position:absolute;top:0;left:0;display:block !important;width:1em;height:1em;text-align:center;line-height:1em}.su-service-content{line-height:1.4}.su-slider{position:relative;margin-bottom:1.5em;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.su-slider-centered{margin:0 auto 1.5em}.su-slider-slides{position:relative;width:100%;-webkit-transition-property:-webkit-transform, left, top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0, 0, 0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform, left, top;-moz-transition-duration:0s;-moz-transform:translate3d(0, 0, 0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform, left, top;-o-transition-duration:0s;-o-transform:translate3d(0, 0, 0);-o-transition-timing-function:ease;-o-transform:translate(0, 0);-ms-transition-property:-ms-transform, left, top;-ms-transition-duration:0s;-ms-transform:translate3d(0, 0, 0);-ms-transition-timing-function:ease;-webkit-transition-property:left, top, -webkit-transform;transition-property:left, top, -webkit-transform;transition-property:transform, left, top;transition-property:transform, left, top, -webkit-transform;transition-duration:0s;transform:translate3d(0, 0, 0);transition-timing-function:ease}.swiper-free-mode>.su-slider-slides{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.su-slider-slide{position:relative;float:left}.su-slider-slide>a,.su-slider-slide>img,.su-slider-slide>a>img{position:relative;display:block;width:100%;height:100%;text-decoration:none}.su-slider-responsive-yes .su-slider-slide>a,.su-slider-responsive-yes .su-slider-slide>img,.su-slider-responsive-yes .su-slider-slide>a>img{height:auto}.su-slider-pages-no .su-slider-pagination{display:none}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.su-slider-slide-title{position:absolute;left:20px;bottom:20px;display:block;max-width:90%;padding:5px 10px;color:#fff;line-height:1.3;background:#000;background:rgba(0,0,0,0.5);border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;filter:alpha(opacity=0);opacity:0;transition:opacity 1s;-o-transition:opacity 1s;-moz-transition:opacity 1s;-webkit-transition:opacity 1s}.su-slider-slide-visible .su-slider-slide-title{filter:alpha(opacity=100);opacity:1}.su-slider-prev,.su-slider-next{position:absolute;top:50%;display:block;width:40px;height:40px;margin-top:-20px !important;background:#000 0 0 url("../images/swiper/default.png") no-repeat;background-color:rgba(0,0,0,0.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;filter:alpha(opacity=0);opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-slider-prev{right:10px;margin-right:30px;background-position:-40px 0}.su-slider-next{left:10px;margin-left:30px;background-position:0 0}.su-slider:hover .su-slider-prev,.su-slider:hover .su-slider-next{margin-left:0;margin-right:0;filter:alpha(opacity=70);opacity:0.7}.su-slider .su-slider-prev:hover,.su-slider .su-slider-next:hover{filter:alpha(opacity=100);opacity:1}.su-slider-pagination{position:absolute;left:15%;right:15%;top:50%;width:70%;height:0;margin-top:-7px;text-align:center;cursor:default;filter:alpha(opacity=0);opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-slider:hover .su-slider-pagination{bottom:20px;filter:alpha(opacity=100);opacity:1}.su-slider-pagination span{display:inline-block;width:14px;height:14px;margin:0;background:#000 0 -999px url("../images/swiper/default.png") no-repeat;background-color:rgba(0,0,0,0.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;-webkit-transition:all 0.2s;transition:all 0.2s}.su-slider:hover .su-slider-pagination span{margin:0 3px}.su-slider .su-slider-pagination span.swiper-visible-switch{background-color:#fff;background-color:rgba(255,255,255,0.5)}.su-slider-pagination span:hover,.su-slider-pagination span.swiper-active-switch{background-position:0 -40px}.su-spacer{display:block;height:0;clear:both;overflow:hidden}.su-spacer-5{height:5px}.su-spacer-10{height:10px}.su-spacer-20{height:20px}.su-spacer-30{height:30px}.su-spacer-40{height:40px}.su-spoiler{margin-bottom:1.5em}.su-spoiler .su-spoiler:last-child{margin-bottom:0}.su-spoiler-title{position:relative;cursor:pointer;min-height:20px;line-height:20px;padding:7px 7px 7px 34px;font-weight:bold;font-size:13px}.su-spoiler-title:focus{outline:currentColor thin dotted}.su-spoiler-icon{position:absolute;left:7px;top:7px;display:block;width:20px;height:20px;line-height:21px;text-align:center;font-size:14px;font-family:ShortcodesUltimateIcons;font-weight:normal;font-style:normal;-webkit-font-smoothing:antialiased;*margin-right:0.3em}.su-spoiler-content{padding:14px;-webkit-transition:padding-top 0.2s;transition:padding-top 0.2s;-ie-transition:padding-top 0.2s}.su-spoiler.su-spoiler-closed>.su-spoiler-content{height:0;margin:0;padding:0;overflow:hidden;border:none;opacity:0}.su-spoiler-icon-plus .su-spoiler-icon:before{content:'\f068'}.su-spoiler-icon-plus.su-spoiler-closed .su-spoiler-icon:before{content:'\f067'}.su-spoiler-icon-plus-circle .su-spoiler-icon:before{content:'\f056'}.su-spoiler-icon-plus-circle.su-spoiler-closed .su-spoiler-icon:before{content:'\f055'}.su-spoiler-icon-plus-square-1 .su-spoiler-icon:before{content:'\f146'}.su-spoiler-icon-plus-square-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f0fe'}.su-spoiler-icon-plus-square-2 .su-spoiler-icon:before{content:'\f147'}.su-spoiler-icon-plus-square-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f196'}.su-spoiler-icon-arrow .su-spoiler-icon:before{content:'\f063'}.su-spoiler-icon-arrow.su-spoiler-closed .su-spoiler-icon:before{content:'\f061'}.su-spoiler-icon-arrow-circle-1 .su-spoiler-icon:before{content:'\f0ab'}.su-spoiler-icon-arrow-circle-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f0a9'}.su-spoiler-icon-arrow-circle-2 .su-spoiler-icon:before{content:'\f01a'}.su-spoiler-icon-arrow-circle-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f18e'}.su-spoiler-icon-chevron .su-spoiler-icon:before{content:'\f078'}.su-spoiler-icon-chevron.su-spoiler-closed .su-spoiler-icon:before{content:'\f054'}.su-spoiler-icon-chevron-circle .su-spoiler-icon:before{content:'\f13a'}.su-spoiler-icon-chevron-circle.su-spoiler-closed .su-spoiler-icon:before{content:'\f138'}.su-spoiler-icon-caret .su-spoiler-icon:before{content:'\f0d7'}.su-spoiler-icon-caret.su-spoiler-closed .su-spoiler-icon:before{content:'\f0da'}.su-spoiler-icon-caret-square .su-spoiler-icon:before{content:'\f150'}.su-spoiler-icon-caret-square.su-spoiler-closed .su-spoiler-icon:before{content:'\f152'}.su-spoiler-icon-folder-1 .su-spoiler-icon:before{content:'\f07c'}.su-spoiler-icon-folder-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f07b'}.su-spoiler-icon-folder-2 .su-spoiler-icon:before{content:'\f115'}.su-spoiler-icon-folder-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f114'}.su-spoiler-style-default>.su-spoiler-title{padding-left:27px;padding-right:0}.su-spoiler-style-default>.su-spoiler-title>.su-spoiler-icon{left:0}.su-spoiler-style-default>.su-spoiler-content{padding:1em 0 1em 27px}.su-spoiler-style-fancy{border:1px solid #ccc;border-radius:10px;background:#fff;color:#333}.su-spoiler-style-fancy>.su-spoiler-title{border-bottom:1px solid #ccc;border-radius:10px;background:#f0f0f0;font-size:0.9em}.su-spoiler-style-fancy.su-spoiler-closed>.su-spoiler-title{border:none}.su-spoiler-style-fancy>.su-spoiler-content{border-radius:10px}.su-spoiler-style-simple{border-top:1px solid #ccc;border-bottom:1px solid #ccc}.su-spoiler-style-simple>.su-spoiler-title{padding:5px 10px;background:#f0f0f0;color:#333;font-size:0.9em}.su-spoiler-style-simple>.su-spoiler-title>.su-spoiler-icon{display:none}.su-spoiler-style-simple>.su-spoiler-content{padding:1em 10px;background:#fff;color:#333}.su-table{width:100%;margin-bottom:1.5em}.su-table table{width:100% !important;margin:0 !important;border-collapse:collapse !important;font-size:1em !important;border:1px solid #ccc !important;table-layout:auto !important}.su-table table th{text-align:center !important;padding:1em !important;font-size:1em !important;font-weight:bold !important;color:#333 !important;border:1px solid #ccc !important;background:#f0f0f0 !important}.su-table table td{padding:0.5em 1em !important;border:1px solid #ccc !important;background:#fff !important}.su-table-responsive{overflow-x:auto}.su-table-responsive table{width:auto !important;min-width:100% !important}.su-table-responsive table th,.su-table-responsive table td{word-break:initial !important}.su-table-alternate table tr:nth-child(even) td{background-color:#f7f7f7 !important}.su-table-fixed table{table-layout:fixed !important}.su-tabs{margin:0 0 1.5em;padding:3px;border-radius:3px;background:#eee}.su-tabs-nav span{display:inline-block;margin-right:3px;padding:10px 15px;min-height:40px;border-top-left-radius:3px;border-top-right-radius:3px;color:#333;font-size:13px;line-height:20px;cursor:pointer;-webkit-transition:all 0.2s;transition:all 0.2s}.su-tabs-nav span:hover{background:#f5f5f5}.su-tabs-nav span.su-tabs-current{background:#fff;cursor:default}.su-tabs-nav span:focus{outline:currentColor thin dotted}.su-tabs-nav span.su-tabs-disabled{opacity:0.5;cursor:default}.su-tabs-pane{padding:15px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background:#fff;color:#333;font-size:13px}.su-tabs-pane:not(.su-tabs-pane-open){overflow:hidden !important;padding:0 !important;min-height:0 !important;height:0 !important;border:none !important}.su-tabs-nav,.su-tabs-nav span,.su-tabs-panes,.su-tabs-pane{box-sizing:border-box !important}.su-tabs-vertical{display:-webkit-box;display:flex}.su-tabs-vertical .su-tabs-nav{width:30%}.su-tabs-vertical .su-tabs-nav>span{display:block;margin-right:0;border-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.su-tabs-vertical .su-tabs-panes{width:70%}.su-tabs-vertical .su-tabs-panes .su-tabs-pane{height:100%;border-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}@media only screen and (max-width: 768px){.su-tabs-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.su-tabs-vertical .su-tabs-nav,.su-tabs-vertical .su-tabs-panes{width:100%}.su-tabs-vertical .su-tabs-nav>span,.su-tabs-vertical .su-tabs-nav .su-tabs-pane,.su-tabs-vertical .su-tabs-panes>span,.su-tabs-vertical .su-tabs-panes .su-tabs-pane{border-radius:3px}.su-tabs-mobile-stack span{display:block}.su-tabs-mobile-scroll .su-tabs-nav{display:-webkit-box;display:flex;-webkit-box-align:end;align-items:flex-end;white-space:nowrap;overflow-x:auto}}.qtip.su-qtip{max-width:480px !important}.su-tooltip{display:inline-block}.su-qtip-size-1{font-size:0.8em !important}.su-qtip-size-2{font-size:0.9em !important}.su-qtip-size-3{font-size:1em !important}.su-qtip-size-4{font-size:1.1em !important}.su-qtip-size-5{font-size:1.2em !important}.su-qtip-size-6{font-size:1.3em !important}.su-tooltip-content{display:none}.su-tooltip-content>:last-child{margin-bottom:0}.qtip-content .su-tooltip-content img,.qtip-content .su-tooltip-content object,.qtip-content .su-tooltip-content iframe,.qtip-content .su-tooltip-content embed{max-width:430px}.qtip-content .su-tooltip-content .su-u-responsive-media-yes{width:430px}.su-video{position:relative;margin-bottom:1.5em;overflow:hidden}.su-video .jp-title{position:absolute;top:-100px;left:0;width:100%;height:30px;padding:0 1em;line-height:30px;font-size:0.9em;background:#000;background:rgba(0,0,0,0.5);color:#fff;-webkit-transition:top 0.2s;transition:top 0.2s}.su-video:hover .jp-title{top:0}.su-video .jp-start{position:absolute;left:0;top:0;width:100%;height:100%;cursor:pointer;opacity:0.5;-webkit-transition:opacity 0.2s;transition:opacity 0.2s;background:50% 50% url("../images/player/default-start.png") no-repeat}.su-video:hover .jp-start{opacity:0.8}.su-video.jp-video-full{position:fixed;left:0;top:0;width:100%;height:100%}.su-video.jp-video-full .jp-jplayer{position:fixed !important;left:0;top:0;overflow:hidden}.su-video .jp-gui{position:relative;height:30px;background:#7c8781;background:-webkit-gradient(linear, left top, left bottom, from(#7c8781), to(#0a0809));background:-webkit-linear-gradient(top, #7c8781 0%, #0a0809 100%);background:linear-gradient(to bottom, #7c8781 0%, #0a0809 100%);border-bottom-right-radius:3px;border-bottom-left-radius:3px}.su-video.jp-video-full .jp-gui{position:fixed;left:0;bottom:0;width:100%}.su-video-controls-no .jp-gui{position:absolute !important;bottom:-100px;left:0;right:0;-webkit-transition:bottom 0.2s;transition:bottom 0.2s}.su-video-controls-no:hover .jp-gui{bottom:0}.su-video img{border-radius:0 !important;border:none !important;margin:0 !important;padding:0 !important}.su-video .jp-gui .jp-play,.su-video .jp-gui .jp-pause{position:absolute;left:0;top:0;display:block;width:30px;height:30px;border-right:1px solid #454947;cursor:pointer}.su-video .jp-gui .jp-play{background:0 0 url("../images/player/default.png") no-repeat}.su-video .jp-gui .jp-pause{background:-30px 0 url("../images/player/default.png") no-repeat}.su-video .jp-full-screen,.su-video .jp-restore-screen{position:absolute;top:0;right:0;display:block;width:30px;height:30px;border-left:1px solid #454947;cursor:pointer}.su-video .jp-full-screen{background:0 -30px url("../images/player/default.png") no-repeat}.su-video .jp-restore-screen{background:-30px -30px url("../images/player/default.png") no-repeat}.su-video .jp-progress{position:absolute;top:10px;left:90px;right:90px;height:10px;background:#333;border-radius:3px;box-shadow:0 0 5px #000 inset}.su-video .jp-seek-bar,.su-video .jp-play-bar{position:absolute;top:0;left:0;height:100%;cursor:pointer;border-radius:3px}.su-video .jp-seek-bar{background:#0b0b0b;background:-webkit-gradient(linear, left top, left bottom, from(#0b0b0b), to(#666));background:-webkit-linear-gradient(top, #0b0b0b 0%, #666 100%);background:linear-gradient(to bottom, #0b0b0b 0%, #666 100%)}.su-video .jp-play-bar{background:#6db3f2;background:-webkit-gradient(linear, left top, left bottom, from(#6db3f2), color-stop(50%, #54a3ee), color-stop(51%, #3690f0), to(#1e69de));background:-webkit-linear-gradient(top, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);background:linear-gradient(to bottom, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%)}.su-video .jp-current-time,.su-video .jp-duration{position:absolute;top:0;display:block;height:30px;line-height:30px;color:#f5f5f5;font-size:10px}.su-video .jp-current-time{left:50px}.su-video .jp-duration{right:50px}.su-vimeo{margin:0 0 1.5em}.su-vimeo iframe{border:none !important}.su-youtube{margin:0 0 1.5em}.su-youtube iframe{border:none !important}
1
+ .su-u-clearfix::after{content:'';display:table;clear:both}.su-u-trim>:first-child{margin-top:0}.su-u-trim>:last-child{margin-bottom:0}.su-u-responsive-media-yes{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.su-u-responsive-media-yes .fluid-width-video-wrapper,.su-u-responsive-media-yes .video-holder{position:static !important}.su-u-responsive-media-yes iframe,.su-u-responsive-media-yes object,.su-u-responsive-media-yes embed{position:absolute;top:0;left:0;width:100%;height:100%}.su-accordion{margin-bottom:1.5em}.su-accordion .su-spoiler{margin-bottom:0.5em}.su-audio{position:relative;width:100%;height:30px;margin-bottom:1.5em;background:#7c8781;background:-webkit-gradient(linear, left top, left bottom, from(#7c8781), to(#0a0809));background:-webkit-linear-gradient(top, #7c8781 0%, #0a0809 100%);background:linear-gradient(to bottom, #7c8781 0%, #0a0809 100%);border-radius:3px}.su-audio .jp-play,.su-audio .jp-pause{position:absolute;left:0;top:0;display:block;width:30px;height:30px;border-top-left-radius:3px;border-bottom-left-radius:3px;cursor:pointer;border-right:1px solid #454947;background-image:url("../images/player/default.png");background-repeat:no-repeat}.su-audio .jp-play{background-position:0 0}.su-audio .jp-pause{background-position:-30px 0}.su-audio .jp-current-time,.su-audio .jp-duration{position:absolute;top:0;display:block;height:30px;line-height:30px;font-size:10px;color:#eee;text-shadow:0 -1px 0 #000}.su-audio .jp-current-time{left:45px}.su-audio .jp-duration{right:10px}.su-audio .jp-seek-bar,.su-audio .jp-play-bar{position:absolute;top:0;left:0;height:10px;border-radius:3px;cursor:pointer}.su-audio .jp-progress{position:absolute;top:10px;left:85px;right:50px;height:10px;background:#333;box-shadow:0 0 5px #000 inset;border-radius:3px}.su-audio .jp-seek-bar{background:#0b0b0b;background:-webkit-gradient(linear, left top, left bottom, from(#0b0b0b), to(#666));background:-webkit-linear-gradient(top, #0b0b0b 0%, #666 100%);background:linear-gradient(to bottom, #0b0b0b 0%, #666 100%)}.su-audio .jp-play-bar{background:#6db3f2;background:-webkit-gradient(linear, left top, left bottom, from(#6db3f2), color-stop(50%, #54a3ee), color-stop(51%, #3690f0), to(#1e69de));background:-webkit-linear-gradient(top, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);background:linear-gradient(to bottom, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%)}.su-box{margin:0 0 1.5em;border-width:2px;border-style:solid}.su-box-title{display:block;padding:0.5em 1em;font-weight:bold;font-size:1.1em}.su-box-content{background-color:#fff;color:#444;padding:1em}.su-box-style-soft .su-box-title{background-image:url("../images/styles/style-soft.png");background-position:0 0;background-repeat:repeat-x}.su-box-style-glass .su-box-title{background-image:url("../images/styles/style-glass.png");background-position:0 50%;background-repeat:repeat-x}.su-box-style-bubbles .su-box-title{background-image:url("../images/styles/style-bubbles.png");background-position:0 50%;background-repeat:repeat-x}.su-box-style-noise .su-box-title{background-image:url("../images/styles/style-noise.png");background-position:0 0;background-repeat:repeat-x}.su-button{display:inline-block !important;text-align:center;text-decoration:none !important;box-sizing:content-box !important;-webkit-transition:all 0.2s;transition:all 0.2s}.su-button-wide{display:block !important;margin:1em 0}.su-button-center{text-align:center}.su-button span{display:block !important;text-decoration:none !important;box-sizing:content-box !important;-webkit-transition:all 0.2s;transition:all 0.2s}.su-button img{border:none !important;vertical-align:middle !important;margin:-0.2em 0.4em 0 -0.3em !important;box-shadow:none !important}.su-button i{display:inline-block;width:1em;height:1em;margin:0 0.5em 0 0 !important;text-align:center;line-height:1em}.su-button.su-button-float-icon img{margin:0 0.5em !important}.su-button small{display:block;margin:-0.2em 0 0;color:inherit;text-align:center;font-style:normal;font-size:0.8em;line-height:1;opacity:0.7}@media screen and (max-width: 768px){.su-button span{padding-top:0.25em !important;padding-bottom:0.25em !important;line-height:1.2 !important}.su-button small{margin-top:0.2em !important}}.su-button-style-default{border-width:1px;border-style:solid}.su-button-style-default:hover{opacity:0.7}.su-button-style-default span{border-top-width:1px;border-bottom-width:1px;border-top-style:solid;border-bottom-style:solid}.su-button-style-flat,.su-button-style-flat span{border:none}.su-button-style-flat span{position:relative}.su-button-style-flat:hover span{top:1px}.su-button-style-ghost{background:transparent !important}.su-button-style-ghost span{border-width:3px;border-style:solid}.su-button-style-ghost:hover span{border-color:inherit !important}.su-button-style-soft span{background:0 -20px url("../images/styles/style-soft.png") repeat-x}.su-button-style-soft:hover span{background:0 0 url("../images/styles/style-soft.png") repeat-x}.su-button-style-glass span{background:0 50% url("../images/styles/style-glass.png") repeat-x}.su-button-style-glass:hover span{background:100% 50% url("../images/styles/style-glass.png") repeat-x}.su-button-style-bubbles span{background:0 50% url("../images/styles/style-bubbles.png") no-repeat}.su-button-style-bubbles:hover span{background:-710px 50% url("../images/styles/style-bubbles.png") no-repeat}.su-button-style-noise span{background:0 0 url("../images/styles/style-noise.png") repeat-x}.su-button-style-noise:hover span{background:0 0 url("../images/styles/style-noise.png") repeat-x}.su-button-style-stroked span{margin:1px;border:1px dashed #fff !important}.su-button-style-stroked:hover span{opacity:0.7}.su-button-style-3d{border-bottom-style:solid;border-bottom-width:6px}.su-button-style-3d span{border-bottom-style:solid;border-bottom-width:1px}.su-button-style-3d:hover{position:relative;top:3px;border-bottom-width:3px}.su-carousel{position:relative;margin-bottom:1.5em;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.su-carousel-centered{margin:0 auto 1.5em}.su-carousel-slides{position:relative;width:100%;-webkit-transition-property:-webkit-transform, left, top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0, 0, 0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform, left, top;-moz-transition-duration:0s;-moz-transform:translate3d(0, 0, 0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform, left, top;-o-transition-duration:0s;-o-transform:translate3d(0, 0, 0);-o-transition-timing-function:ease;-o-transform:translate(0, 0);-ms-transition-property:-ms-transform, left, top;-ms-transition-duration:0s;-ms-transform:translate3d(0, 0, 0);-ms-transition-timing-function:ease;-webkit-transition-property:left, top, -webkit-transform;transition-property:left, top, -webkit-transform;transition-property:transform, left, top;transition-property:transform, left, top, -webkit-transform;transition-duration:0s;transform:translate3d(0, 0, 0);transition-timing-function:ease}.swiper-free-mode>.su-carousel-slides{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.su-carousel-slide{position:relative;float:left}.su-carousel-slide>a,.su-carousel-slide>img,.su-carousel-slide>a>img{position:relative;display:block;width:100%;height:100%;text-decoration:none;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.su-carousel-responsive-yes .su-carousel-slide>a,.su-carousel-responsive-yes .su-carousel-slide>img,.su-carousel-responsive-yes .su-carousel-slide>a>img{height:auto}.su-carousel-pages-no .su-carousel-pagination{display:none}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.su-carousel .su-carousel-slide a{padding:0 5px}.su-carousel .su-carousel-slide img{padding:3px;border:1px solid #ccc;background:#fff;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}.su-carousel .su-carousel-slide-title{position:absolute;left:9px;right:9px;bottom:4px;display:block;padding:2px 3px;color:#fff;line-height:1.2;font-size:11px;background:#000;background:rgba(0,0,0,0.5);box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;transition:opacity 1s;-o-transition:opacity 1s;-moz-transition:opacity 1s;-webkit-transition:opacity 1s}.su-carousel .su-carousel-prev,.su-carousel .su-carousel-next{position:absolute;top:50%;display:block;width:40px;height:40px;margin-top:-20px;background:#000 0 0 url("../images/swiper/default.png") no-repeat;background-color:rgba(0,0,0,0.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;filter:alpha(opacity=0);opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-carousel .su-carousel-prev{right:20px;margin-right:40px;background-position:-40px 0}.su-carousel .su-carousel-next{left:20px;margin-left:40px;background-position:0 0}.su-carousel:hover .su-carousel-prev,.su-carousel:hover .su-carousel-next{margin-left:0;margin-right:0;filter:alpha(opacity=70);opacity:0.7}.su-carousel .su-carousel-prev:hover,.su-carousel .su-carousel-next:hover{filter:alpha(opacity=100);opacity:1}.su-carousel .su-carousel-pagination{position:absolute;left:15%;right:15%;top:50%;width:70%;height:0;margin-top:-7px;text-align:center;cursor:default;filter:alpha(opacity=0);opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-carousel:hover .su-carousel-pagination{bottom:20px;filter:alpha(opacity=100);opacity:1}.su-carousel .su-carousel-pagination span{display:inline-block;width:14px;height:14px;margin:0;background:#000 0 -999px url("../images/swiper/default.png") no-repeat;background-color:rgba(0,0,0,0.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;-webkit-transition:all 0.2s;transition:all 0.2s}.su-carousel:hover .su-carousel-pagination span{margin:0 3px}.su-carousel .su-carousel-pagination span.swiper-visible-switch{background-color:#fff;background-color:rgba(255,255,255,0.5)}.su-carousel .su-carousel-pagination span:hover,.su-carousel .su-carousel-pagination span.swiper-active-switch{background-position:0 -40px}.su-row{clear:both;zoom:1;margin-bottom:1.5em}.su-row:before,.su-row:after{display:table;content:''}.su-row:after{clear:both}.su-column{display:block;margin:0 4% 0 0;float:left;box-sizing:border-box}.su-column-last{margin-right:0}.su-row .su-column{margin:0 0 0 4%}.su-row .su-column.su-column-size-1-1{margin-left:0;margin-right:0}.su-row .su-column:first-child{margin-left:0}.su-row .su-column.su-column-centered{margin-right:auto;margin-left:auto;float:none}.su-column img,.su-column iframe,.su-column object,.su-column embed{max-width:100%}@media only screen{[class*='su-column']+[class*='su-column']:last-child{float:right}}.su-column-size-1-1{width:100%}.su-column-size-1-2{width:48%}.su-column-size-1-3{width:30.66%}.su-column-size-2-3{width:65.33%}.su-column-size-1-4{width:22%}.su-column-size-3-4{width:74%}.su-column-size-1-5{width:16.8%}.su-column-size-2-5{width:37.6%}.su-column-size-3-5{width:58.4%}.su-column-size-4-5{width:79.2%}.su-column-size-1-6{width:13.33%}.su-column-size-5-6{width:82.66%}@media only screen and (max-width: 768px){.su-row .su-column{width:100%;margin:0 0 1.5em;float:none}.su-row .su-column:last-child{margin-bottom:0}}.su-custom-gallery{margin-bottom:1.5em}.su-custom-gallery:after,.su-custom-gallery:before{content:'';display:table}.su-custom-gallery:after{clear:both}.su-custom-gallery-slide{position:relative;float:left;margin:0.5em;overflow:hidden}.su-custom-gallery-slide a{display:block;width:100%;height:100%}.su-custom-gallery-slide img{display:block;margin:0;padding:3px;border:1px solid #ccc;background:#fff;box-sizing:border-box;border-radius:5px;box-shadow:none;-webkit-transition:all 0.2s;transition:all 0.2s}.su-custom-gallery-slide:hover img{background:#eee;border:1px solid #aaa}.su-custom-gallery-slide span{position:absolute;left:4px;bottom:4px;right:4px;display:block;padding:2px 4px;font-size:12px;color:#fff;background:#000;background:rgba(0,0,0,0.5);line-height:1.3;opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-custom-gallery-slide:hover span{opacity:1}.su-custom-gallery-title-never span{display:none}.su-custom-gallery-title-always span{opacity:1}.su-dailymotion{margin:0 0 1.5em}.su-dailymotion iframe{border:none !important}.su-divider{clear:both;border:none;text-align:right;line-height:1}.su-divider a{display:inline-block;font-size:0.8em;text-decoration:none;outline:none;padding-bottom:5px}.su-divider-style-default{border-bottom-style:solid}.su-divider-style-dotted{border-bottom-style:dotted}.su-divider-style-dashed{border-bottom-style:dashed}.su-divider-style-double{border-bottom-style:double}.su-document{margin:0 0 1.5em}.su-document iframe{border:none !important}.su-dropcap{float:left;display:inline-block;width:2em;height:2em;margin:0.2em 0.5em 0.2em 0;line-height:2em;text-align:center;overflow:hidden;text-transform:uppercase}.su-dropcap-style-default{color:white;background:#45484d;background:-webkit-gradient(linear, left top, left bottom, from(#45484d), to(black));background:-webkit-linear-gradient(top, #45484d 0%, black 100%);background:linear-gradient(to bottom, #45484d 0%, black 100%);text-shadow:-1px -1px 0 black;border-radius:50%}.su-dropcap-style-flat{background:#444;color:#fff}.su-dropcap-style-light{color:#333;border-radius:50%;background:white;background:-webkit-gradient(linear, left top, left bottom, from(white), to(#eaeaea));background:-webkit-linear-gradient(top, white 0%, #eaeaea 100%);background:linear-gradient(to bottom, white 0%, #eaeaea 100%)}.su-dropcap-style-simple{width:1em;height:1em;line-height:1em;text-align:left}.su-expand{margin:0 0 1.5em}.su-expand-content{overflow:hidden}.su-expand-link{margin-top:0.5em;cursor:pointer}.su-expand-link:hover{opacity:0.7}.su-expand-link a,.su-expand-link a:hover,.su-expand-link a:active,.su-expand-link a:visited,.su-expand-link a:focus{display:inline;text-decoration:none;box-shadow:none;background:transparent;border:none}.su-expand-link-style-underlined .su-expand-link span{text-decoration:underline}.su-expand-link-style-dotted .su-expand-link span{border-bottom:1px dotted #333}.su-expand-link-style-dashed .su-expand-link span{border-bottom:1px dashed #333}.su-expand-link-style-button .su-expand-link a{display:inline-block;margin-top:0.2em;padding:0.2em 0.4em;border:2px solid #333}.su-expand-link-more{display:none}.su-expand-link-less{display:block}.su-expand-collapsed .su-expand-link-more{display:block}.su-expand-collapsed .su-expand-link-less{display:none}.su-expand-link i{display:inline-block;margin:0 0.3em 0 0;vertical-align:middle;color:inherit}.su-expand-link img{display:inline-block;width:1em;height:1em;margin:0 0.3em 0 0;vertical-align:middle}.su-frame,.su-frame-inner{display:block}.su-frame-align-left{float:left;margin:0 1em 1em 0}.su-frame-align-center{float:none;margin:1em auto}.su-frame-align-right{float:right;margin:0 0 1em 1em}.su-frame img{display:block !important;float:none !important;padding:0 !important;margin:0 !important;border:none !important;box-shadow:none !important}.su-frame-style-default{padding:2px;border:1px solid #999;background:#fff;box-shadow:1px 1px 4px #ccc}.su-frame-style-default .su-frame-inner{padding:2px;border:4px solid #eee}.su-gmap{margin:0 0 1.5em}.su-gmap iframe{border:none !important}.su-guests{margin-bottom:1.5em}.su-heading-style-default{padding:2px 0;border-top:1px solid #999;border-bottom:1px solid #999}.su-heading-style-default .su-heading-inner{padding:1em 0.5em;border-top:4px solid #eee;border-bottom:4px solid #eee}.su-heading.su-heading-align-left{text-align:left}.su-heading.su-heading-align-left .su-heading-inner{padding-left:0.2em}.su-heading.su-heading-align-right{text-align:right}.su-heading.su-heading-align-right .su-heading-inner{padding-right:0.2em}.su-heading.su-heading-align-center{text-align:center}.su-highlight{display:inline;padding:1px 0}.su-image-carousel{width:100%;margin:1.5em 0}.su-image-carousel:first-child{margin-top:0}.su-image-carousel:last-child{margin-bottom:0}.su-image-carousel-item{width:100%;box-sizing:border-box}.su-image-carousel .su-image-carousel-item-content{position:relative}.su-image-carousel .su-image-carousel-item-content a,.su-image-carousel .su-image-carousel-item-content a:hover,.su-image-carousel .su-image-carousel-item-content a:focus,.su-image-carousel .su-image-carousel-item-content a:visited,.su-image-carousel .su-image-carousel-item-content a:active,.su-image-carousel .su-image-carousel-item-content img{display:block;width:100%;height:100%;margin:0;padding:0;box-sizing:border-box;box-shadow:none;text-decoration:none;border:none;border-radius:0}.su-image-carousel .su-image-carousel-item-content a::before,.su-image-carousel .su-image-carousel-item-content a::after,.su-image-carousel .su-image-carousel-item-content img::before,.su-image-carousel .su-image-carousel-item-content img::after{display:none}.su-image-carousel .su-image-carousel-item-content span{position:absolute;display:block;font-size:0.9em;max-height:60%;overflow:auto;line-height:1.3;word-wrap:break-word}.su-image-carousel .su-image-carousel-item-content span:empty{display:none}.su-image-carousel-columns-2 .su-image-carousel-item{width:50%}.su-image-carousel-columns-2.su-image-carousel-has-spacing .su-image-carousel-item{width:48.5%;margin-right:3%}.su-image-carousel-columns-3 .su-image-carousel-item{width:33.33333%}.su-image-carousel-columns-3.su-image-carousel-has-spacing .su-image-carousel-item{width:31.4%;margin-right:2.9%}.su-image-carousel-columns-4 .su-image-carousel-item{width:25%}.su-image-carousel-columns-4.su-image-carousel-has-spacing .su-image-carousel-item{width:22.9%;margin-right:2.8%}.su-image-carousel-columns-5 .su-image-carousel-item{width:20%}.su-image-carousel-columns-5.su-image-carousel-has-spacing .su-image-carousel-item{width:18%;margin-right:2.5%}.su-image-carousel-columns-6 .su-image-carousel-item{width:16.66667%}.su-image-carousel-columns-6.su-image-carousel-has-spacing .su-image-carousel-item{width:14.5%;margin-right:2.6%}.su-image-carousel-columns-7 .su-image-carousel-item{width:14.28571%}.su-image-carousel-columns-7.su-image-carousel-has-spacing .su-image-carousel-item{width:12.4%;margin-right:2.2%}.su-image-carousel-columns-8 .su-image-carousel-item{width:12.5%}.su-image-carousel-columns-8.su-image-carousel-has-spacing .su-image-carousel-item{width:10.75%;margin-right:2%}@media screen and (max-width: 768px){.su-image-carousel-adaptive .su-image-carousel-item{width:100% !important;margin-right:0 !important}}.su-image-carousel-crop .su-image-carousel-item-content::before{float:left;width:1px;margin-left:-1px;height:0;content:''}.su-image-carousel-crop .su-image-carousel-item-content::after{content:'';display:table;clear:both}.su-image-carousel-crop .su-image-carousel-item-content img{position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.su-image-carousel-crop-16-9 .su-image-carousel-item-content::before{padding-top:56.25%}.su-image-carousel-crop-16-10 .su-image-carousel-item-content::before{padding-top:62.5%}.su-image-carousel-crop-21-9 .su-image-carousel-item-content::before{padding-top:42.85714%}.su-image-carousel-crop-5-4 .su-image-carousel-item-content::before{padding-top:80%}.su-image-carousel-crop-4-3 .su-image-carousel-item-content::before{padding-top:75%}.su-image-carousel-crop-3-2 .su-image-carousel-item-content::before{padding-top:66.66667%}.su-image-carousel-crop-2-1 .su-image-carousel-item-content::before{padding-top:50%}.su-image-carousel-crop-1-1 .su-image-carousel-item-content::before{padding-top:100%}.su-image-carousel-crop-1-2 .su-image-carousel-item-content::before{padding-top:200%}.su-image-carousel-crop-2-3 .su-image-carousel-item-content::before{padding-top:150%}.su-image-carousel-crop-3-4 .su-image-carousel-item-content::before{padding-top:133.33333%}.su-image-carousel-crop-4-5 .su-image-carousel-item-content::before{padding-top:125%}.su-image-carousel-crop-9-21 .su-image-carousel-item-content::before{padding-top:233.33333%}.su-image-carousel-crop-10-16 .su-image-carousel-item-content::before{padding-top:160%}.su-image-carousel-crop-9-16 .su-image-carousel-item-content::before{padding-top:177.77778%}.su-image-carousel-align-left{float:left;margin-right:1.5em;margin-top:0}.su-image-carousel-align-right{float:right;margin-left:1.5em;margin-top:0}.su-image-carousel-align-center{margin-right:auto;margin-left:auto}.su-image-carousel-align-full{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw !important;width:100vw !important}.su-image-carousel button.flickity-prev-next-button{position:absolute;top:50%;display:block;width:44px;height:44px;margin:-22px 0 0;padding:0;opacity:0;outline:none;border-radius:50%;-webkit-transform:none;transform:none;-webkit-transition:opacity 0.2s ease, -webkit-transform 0.2s ease;transition:opacity 0.2s ease, -webkit-transform 0.2s ease;transition:opacity 0.2s ease, transform 0.2s ease;transition:opacity 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease}.su-image-carousel:hover button.flickity-prev-next-button{opacity:0.5}.su-image-carousel button.flickity-prev-next-button:hover,.su-image-carousel button.flickity-prev-next-button:focus{opacity:1;box-shadow:none}.su-image-carousel button.flickity-prev-next-button:focus{-webkit-transform:scale(1.05);transform:scale(1.05)}.su-image-carousel button.flickity-prev-next-button[disabled]{display:none}.su-image-carousel button.flickity-prev-next-button.previous{left:20px}.su-image-carousel button.flickity-prev-next-button.next{right:20px}.su-image-carousel>ol.flickity-page-dots{position:absolute;top:50%;left:50%;bottom:auto;width:auto;margin:0;padding:0;list-style:none;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);pointer-events:none;opacity:0;-webkit-transition:opacity 0.2s ease;transition:opacity 0.2s ease}.su-image-carousel>ol.flickity-page-dots>li.dot{position:relative;width:20px;height:20px;display:inline-block;margin:5px;padding:0;list-style:none;pointer-events:all;border-radius:50%;opacity:0.5;-webkit-transition:opacity 0.2s ease;transition:opacity 0.2s ease}.su-image-carousel>ol.flickity-page-dots>li.dot:hover{opacity:1}.su-image-carousel>ol.flickity-page-dots>li.dot::before{position:absolute;top:50%;left:50%;display:none;width:10px;height:10px;margin:0;padding:0;content:'';border-radius:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.su-image-carousel>ol.flickity-page-dots>li.dot.is-selected::before{display:block}.su-image-carousel:hover ol.flickity-page-dots{opacity:1}.su-image-carousel-controls-style-dark button.flickity-prev-next-button{background:black;color:white}.su-image-carousel-controls-style-dark ol.flickity-page-dots li.dot{background:black}.su-image-carousel-controls-style-dark ol.flickity-page-dots li.dot::before{background:white}.su-image-carousel-controls-style-light button.flickity-prev-next-button{background:white;color:black}.su-image-carousel-controls-style-light ol.flickity-page-dots li.dot{background:white}.su-image-carousel-controls-style-light ol.flickity-page-dots li.dot::before{background:black}.su-image-carousel-slides-style-default .su-image-carousel-item-content{margin:1px}.su-image-carousel-slides-style-default .su-image-carousel-item-content img{padding:3px;background:white;border:1px solid #ccc;border-radius:7px}.su-image-carousel-slides-style-default .su-image-carousel-item-content span{bottom:4px;right:4px;left:4px;padding:0.5em 0.7em;background:-webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.7)), to(transparent));background:-webkit-linear-gradient(bottom, rgba(0,0,0,0.7), transparent);background:linear-gradient(to top, rgba(0,0,0,0.7), transparent);text-shadow:0 2px 5px black;color:white;border-bottom-right-radius:2px;border-bottom-left-radius:2px}.su-image-carousel-slides-style-minimal .su-image-carousel-item-content{margin:1px}.su-image-carousel-slides-style-minimal .su-image-carousel-item-content span{right:0;bottom:0;left:0;padding:0.7em;background:-webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.7)), to(transparent));background:-webkit-linear-gradient(bottom, rgba(0,0,0,0.7), transparent);background:linear-gradient(to top, rgba(0,0,0,0.7), transparent);text-shadow:0 2px 5px black;color:white}.su-image-carousel-slides-style-photo .su-image-carousel-item-content{padding:7px}.su-image-carousel-slides-style-photo .su-image-carousel-item-content img{border:5px solid white;border-radius:7px;box-shadow:0 2px 5px rgba(0,0,0,0.5)}.su-image-carousel-slides-style-photo .su-image-carousel-item-content span{right:12px;bottom:12px;left:12px;padding:0.3em 0.5em;background:white;color:black;font-size:0.9em}.su-image-carousel-slides-style-photo.su-image-carousel-crop .su-image-carousel-item-content img{top:7px;right:7px;left:7px;bottom:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.su-image-carousel-mfp.mfp-bg{z-index:102000 !important}.su-image-carousel-mfp.mfp-wrap{z-index:102001 !important}.su-image-carousel-mfp.mfp-wrap .mfp-preloader{z-index:102002 !important}.su-image-carousel-mfp.mfp-wrap .mfp-content{z-index:102003 !important}.su-image-carousel-mfp.mfp-wrap button.mfp-close,.su-image-carousel-mfp.mfp-wrap button.mfp-arrow{z-index:102004 !important}.su-image-carousel-has-outline button.flickity-prev-next-button:focus,.su-image-carousel-has-outline .su-image-carousel-item-content a:focus img{outline-width:2px;outline-style:solid;outline-color:Highlight}@media (-webkit-min-device-pixel-ratio: 0){.su-image-carousel-has-outline button.flickity-prev-next-button:focus,.su-image-carousel-has-outline .su-image-carousel-item-content a:focus{outline-color:-webkit-focus-ring-color;outline-style:auto}}.su-label{display:inline;margin-right:0.3em;padding:0.1em 0.3em;font-size:0.8em;height:0.8em;line-height:0.8em;color:#fff;border-radius:3px}.su-label-type-default{background:#999}.su-label-type-success{background:#090}.su-label-type-warning{background:#f90}.su-label-type-important{background:#f03}.su-label-type-black{background:#111}.su-label-type-info{background:#09c}.su-lightbox-content{position:relative;margin:0 auto}.mfp-content .su-lightbox-content,#su-generator .su-lightbox-content{display:block !important}.su-lightbox-content-preview{width:100%;min-height:300px;background:#444;overflow:hidden}.su-lightbox-content h1,.su-lightbox-content h2,.su-lightbox-content h3,.su-lightbox-content h4,.su-lightbox-content h5,.su-lightbox-content h6{color:inherit}.su-lightbox{cursor:pointer}.su-list{margin-bottom:1.5em}.su-list ul{margin:0 !important;padding:0 !important;list-style:none !important}.su-list ul li{position:relative;display:block !important;margin:0 !important;padding:4px 0 4px 2em !important;list-style-type:none !important;line-height:1.3em}.su-list ul li>img{position:absolute;left:0;top:4px;width:1.3em;height:1.3em;padding:0;margin:0;border:none}.su-list ul li>i{position:absolute;left:0;top:4px;width:1.3em;height:1.3em;line-height:1.3em;text-align:center}.su-members{margin-bottom:1.5em;padding:1em;border-width:1px 0;border-style:solid;text-align:center}.su-members a{text-decoration:underline;color:inherit}.su-note{margin:0 0 1.5em;border-width:1px;border-style:solid}.su-note-inner{padding:1em;border-width:1px;border-style:solid}.su-posts-default-loop .su-post{margin-bottom:2.5em;line-height:1.5}.su-posts-default-loop .su-post:after{content:'';display:table;clear:both}.su-posts-default-loop .su-post-thumbnail{float:left;display:block;width:100px;height:100px;margin-right:1em}.su-posts-default-loop .su-post-thumbnail img{max-width:100px;max-height:100px}.su-posts-default-loop h2.su-post-title{clear:none;margin:0 0 0.3em;font-size:1.2em;font-weight:bold}.su-posts-default-loop .su-post-meta{margin-bottom:0.7em;font-size:0.8em;opacity:0.6;filter:alpha(opacity=60)}.su-posts-default-loop .su-post-excerpt{margin-bottom:0.5em}.su-posts-default-loop .su-post-excerpt p:last-child{margin-bottom:0}.su-posts-default-loop .su-post-comments-link{font-size:0.9em}.su-posts-teaser-loop .su-post{margin-bottom:1.5em;line-height:1.2}.su-posts-teaser-loop .su-post:after{content:'';display:table;clear:both}.su-posts-teaser-loop .su-post-thumbnail{float:left;display:block;width:56px;height:56px;margin:0 1em 0 0}.su-posts-teaser-loop .su-post-thumbnail img{display:block;margin:0;padding:2px;border:1px solid #ccc;border-radius:5px;max-width:100%;max-height:100%}.su-posts-teaser-loop h2.su-post-title{display:block;margin:0;padding:0;border:none;font-size:0.9em;font-weight:normal;clear:none}.su-posts-single-post .su-post{margin-bottom:2.5em;line-height:1.5}.su-posts-single-post .su-post:after{content:'';display:table;clear:both}.su-posts-single-post h1.su-post-title{clear:none;margin:0 0 0.3em;font-size:1.2em;font-weight:bold}.su-posts-single-post .su-post-meta{margin-bottom:0.7em;font-size:0.8em;opacity:0.6;filter:alpha(opacity=60)}.su-posts-single-post .su-post-content{margin-bottom:0.5em}.su-posts-single-post .su-post-content p:last-child{margin-bottom:0}.su-private{margin:0 0 1.5em}.su-pullquote{display:block;width:30%;padding:0.5em 1em}.su-pullquote-align-left{margin:0.5em 1.5em 1em 0;padding-left:0;float:left;border-right:5px solid #eee}.su-pullquote-align-right{margin:0.5em 0 1em 1.5em;padding-right:0;float:right;border-left:5px solid #eee}@media screen and (max-width: 48em){.su-pullquote{width:auto}.su-pullquote-align-left,.su-pullquote-align-right{float:none;margin:1.5em 0;padding:0.5em 1em}}.su-qrcode{display:inline-block}.su-qrcode-align-left{float:left;margin:0 0.5em 0.5em 0}.su-qrcode-align-center{display:block;clear:both;margin:1em auto;text-align:center}.su-qrcode-align-right{float:right;margin:0 0 0.5em 0.5em}.su-qrcode a,.su-qrcode a:hover,.su-qrcode a:active,.su-qrcode a:focus{background:transparent;outline:none;display:inline;text-decoration:none}.su-qrcode-clickable a:hover{opacity:0.7}.su-qrcode img{max-width:100%}.su-quote-style-default{position:relative;margin-bottom:1.5em;padding:0.5em 3em;font-style:italic}.su-quote-style-default:before,.su-quote-style-default:after{position:absolute;display:block;width:20px;height:20px;background-image:url("../images/quote.png");content:''}.su-quote-style-default:before{top:0;left:0;background-position:0 0}.su-quote-style-default:after{right:0;bottom:0;background-position:-20px 0}.su-quote-style-default .su-quote-cite{display:block;text-align:right;font-style:normal}.su-quote-style-default .su-quote-cite:before{content:'\2014\0000a0'}.su-quote-style-default .su-quote-cite a{text-decoration:underline}.su-screenr{margin:0 0 1.5em}.su-screenr iframe{border:none !important}.su-service{position:relative;margin:0 0 1.5em}.su-service-title{display:block;margin-bottom:0.5em;color:#333;font-weight:bold;font-size:1.1em}.su-service-title img{position:absolute;top:0;left:0;display:block !important;margin:0 !important;padding:0 !important;border:none !important;box-shadow:none !important}.su-service-title i{position:absolute;top:0;left:0;display:block !important;width:1em;height:1em;text-align:center;line-height:1em}.su-service-content{line-height:1.4}.su-slider{position:relative;margin-bottom:1.5em;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.su-slider-centered{margin:0 auto 1.5em}.su-slider-slides{position:relative;width:100%;-webkit-transition-property:-webkit-transform, left, top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0, 0, 0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform, left, top;-moz-transition-duration:0s;-moz-transform:translate3d(0, 0, 0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform, left, top;-o-transition-duration:0s;-o-transform:translate3d(0, 0, 0);-o-transition-timing-function:ease;-o-transform:translate(0, 0);-ms-transition-property:-ms-transform, left, top;-ms-transition-duration:0s;-ms-transform:translate3d(0, 0, 0);-ms-transition-timing-function:ease;-webkit-transition-property:left, top, -webkit-transform;transition-property:left, top, -webkit-transform;transition-property:transform, left, top;transition-property:transform, left, top, -webkit-transform;transition-duration:0s;transform:translate3d(0, 0, 0);transition-timing-function:ease}.swiper-free-mode>.su-slider-slides{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.su-slider-slide{position:relative;float:left}.su-slider-slide>a,.su-slider-slide>img,.su-slider-slide>a>img{position:relative;display:block;width:100%;height:100%;text-decoration:none}.su-slider-responsive-yes .su-slider-slide>a,.su-slider-responsive-yes .su-slider-slide>img,.su-slider-responsive-yes .su-slider-slide>a>img{height:auto}.su-slider-pages-no .su-slider-pagination{display:none}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.su-slider-slide-title{position:absolute;left:20px;bottom:20px;display:block;max-width:90%;padding:5px 10px;color:#fff;line-height:1.3;background:#000;background:rgba(0,0,0,0.5);border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;filter:alpha(opacity=0);opacity:0;transition:opacity 1s;-o-transition:opacity 1s;-moz-transition:opacity 1s;-webkit-transition:opacity 1s}.su-slider-slide-visible .su-slider-slide-title{filter:alpha(opacity=100);opacity:1}.su-slider-prev,.su-slider-next{position:absolute;top:50%;display:block;width:40px;height:40px;margin-top:-20px !important;background:#000 0 0 url("../images/swiper/default.png") no-repeat;background-color:rgba(0,0,0,0.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;filter:alpha(opacity=0);opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-slider-prev{right:10px;margin-right:30px;background-position:-40px 0}.su-slider-next{left:10px;margin-left:30px;background-position:0 0}.su-slider:hover .su-slider-prev,.su-slider:hover .su-slider-next{margin-left:0;margin-right:0;filter:alpha(opacity=70);opacity:0.7}.su-slider .su-slider-prev:hover,.su-slider .su-slider-next:hover{filter:alpha(opacity=100);opacity:1}.su-slider-pagination{position:absolute;left:15%;right:15%;top:50%;width:70%;height:0;margin-top:-7px;text-align:center;cursor:default;filter:alpha(opacity=0);opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s}.su-slider:hover .su-slider-pagination{bottom:20px;filter:alpha(opacity=100);opacity:1}.su-slider-pagination span{display:inline-block;width:14px;height:14px;margin:0;background:#000 0 -999px url("../images/swiper/default.png") no-repeat;background-color:rgba(0,0,0,0.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;-webkit-transition:all 0.2s;transition:all 0.2s}.su-slider:hover .su-slider-pagination span{margin:0 3px}.su-slider .su-slider-pagination span.swiper-visible-switch{background-color:#fff;background-color:rgba(255,255,255,0.5)}.su-slider-pagination span:hover,.su-slider-pagination span.swiper-active-switch{background-position:0 -40px}.su-spacer{display:block;height:0;clear:both;overflow:hidden}.su-spacer-5{height:5px}.su-spacer-10{height:10px}.su-spacer-20{height:20px}.su-spacer-30{height:30px}.su-spacer-40{height:40px}.su-spoiler{margin-bottom:1.5em}.su-spoiler .su-spoiler:last-child{margin-bottom:0}.su-spoiler-title{position:relative;cursor:pointer;min-height:20px;line-height:20px;padding:7px 7px 7px 34px;font-weight:bold;font-size:13px}.su-spoiler-title:focus{outline:currentColor thin dotted}.su-spoiler-icon{position:absolute;left:7px;top:7px;display:block;width:20px;height:20px;line-height:21px;text-align:center;font-size:14px;font-family:ShortcodesUltimateIcons;font-weight:normal;font-style:normal;-webkit-font-smoothing:antialiased;*margin-right:0.3em}.su-spoiler-content{padding:14px;-webkit-transition:padding-top 0.2s;transition:padding-top 0.2s;-ie-transition:padding-top 0.2s}.su-spoiler.su-spoiler-closed>.su-spoiler-content{height:0;margin:0;padding:0;overflow:hidden;border:none;opacity:0}.su-spoiler-icon-plus .su-spoiler-icon:before{content:'\f068'}.su-spoiler-icon-plus.su-spoiler-closed .su-spoiler-icon:before{content:'\f067'}.su-spoiler-icon-plus-circle .su-spoiler-icon:before{content:'\f056'}.su-spoiler-icon-plus-circle.su-spoiler-closed .su-spoiler-icon:before{content:'\f055'}.su-spoiler-icon-plus-square-1 .su-spoiler-icon:before{content:'\f146'}.su-spoiler-icon-plus-square-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f0fe'}.su-spoiler-icon-plus-square-2 .su-spoiler-icon:before{content:'\f147'}.su-spoiler-icon-plus-square-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f196'}.su-spoiler-icon-arrow .su-spoiler-icon:before{content:'\f063'}.su-spoiler-icon-arrow.su-spoiler-closed .su-spoiler-icon:before{content:'\f061'}.su-spoiler-icon-arrow-circle-1 .su-spoiler-icon:before{content:'\f0ab'}.su-spoiler-icon-arrow-circle-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f0a9'}.su-spoiler-icon-arrow-circle-2 .su-spoiler-icon:before{content:'\f01a'}.su-spoiler-icon-arrow-circle-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f18e'}.su-spoiler-icon-chevron .su-spoiler-icon:before{content:'\f078'}.su-spoiler-icon-chevron.su-spoiler-closed .su-spoiler-icon:before{content:'\f054'}.su-spoiler-icon-chevron-circle .su-spoiler-icon:before{content:'\f13a'}.su-spoiler-icon-chevron-circle.su-spoiler-closed .su-spoiler-icon:before{content:'\f138'}.su-spoiler-icon-caret .su-spoiler-icon:before{content:'\f0d7'}.su-spoiler-icon-caret.su-spoiler-closed .su-spoiler-icon:before{content:'\f0da'}.su-spoiler-icon-caret-square .su-spoiler-icon:before{content:'\f150'}.su-spoiler-icon-caret-square.su-spoiler-closed .su-spoiler-icon:before{content:'\f152'}.su-spoiler-icon-folder-1 .su-spoiler-icon:before{content:'\f07c'}.su-spoiler-icon-folder-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f07b'}.su-spoiler-icon-folder-2 .su-spoiler-icon:before{content:'\f115'}.su-spoiler-icon-folder-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f114'}.su-spoiler-style-default>.su-spoiler-title{padding-left:27px;padding-right:0}.su-spoiler-style-default>.su-spoiler-title>.su-spoiler-icon{left:0}.su-spoiler-style-default>.su-spoiler-content{padding:1em 0 1em 27px}.su-spoiler-style-fancy{border:1px solid #ccc;border-radius:10px;background:#fff;color:#333}.su-spoiler-style-fancy>.su-spoiler-title{border-bottom:1px solid #ccc;border-radius:10px;background:#f0f0f0;font-size:0.9em}.su-spoiler-style-fancy.su-spoiler-closed>.su-spoiler-title{border:none}.su-spoiler-style-fancy>.su-spoiler-content{border-radius:10px}.su-spoiler-style-simple{border-top:1px solid #ccc;border-bottom:1px solid #ccc}.su-spoiler-style-simple>.su-spoiler-title{padding:5px 10px;background:#f0f0f0;color:#333;font-size:0.9em}.su-spoiler-style-simple>.su-spoiler-title>.su-spoiler-icon{display:none}.su-spoiler-style-simple>.su-spoiler-content{padding:1em 10px;background:#fff;color:#333}.su-table{width:100%;margin-bottom:1.5em}.su-table table{width:100% !important;margin:0 !important;border-collapse:collapse !important;font-size:1em !important;border:1px solid #ccc !important;table-layout:auto !important}.su-table table th{text-align:center !important;padding:1em !important;font-size:1em !important;font-weight:bold !important;color:#333 !important;border:1px solid #ccc !important;background:#f0f0f0 !important}.su-table table td{padding:0.5em 1em !important;border:1px solid #ccc !important;background:#fff !important}.su-table-responsive{overflow-x:auto}.su-table-responsive table{width:auto !important;min-width:100% !important}.su-table-responsive table th,.su-table-responsive table td{word-break:initial !important}.su-table-alternate table tr:nth-child(even) td{background-color:#f7f7f7 !important}.su-table-fixed table{table-layout:fixed !important}.su-tabs{margin:0 0 1.5em;padding:3px;border-radius:3px;background:#eee}.su-tabs-nav span{display:inline-block;margin-right:3px;padding:10px 15px;min-height:40px;border-top-left-radius:3px;border-top-right-radius:3px;color:#333;font-size:13px;line-height:20px;cursor:pointer;-webkit-transition:all 0.2s;transition:all 0.2s}.su-tabs-nav span:hover{background:#f5f5f5}.su-tabs-nav span.su-tabs-current{background:#fff;cursor:default}.su-tabs-nav span:focus{outline:currentColor thin dotted}.su-tabs-nav span.su-tabs-disabled{opacity:0.5;cursor:default}.su-tabs-pane{padding:15px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background:#fff;color:#333;font-size:13px}.su-tabs-pane:not(.su-tabs-pane-open){overflow:hidden !important;padding:0 !important;min-height:0 !important;height:0 !important;border:none !important}.su-tabs-nav,.su-tabs-nav span,.su-tabs-panes,.su-tabs-pane{box-sizing:border-box !important}.su-tabs-vertical{display:-webkit-box;display:flex}.su-tabs-vertical .su-tabs-nav{width:30%}.su-tabs-vertical .su-tabs-nav>span{display:block;margin-right:0;border-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.su-tabs-vertical .su-tabs-panes{width:70%}.su-tabs-vertical .su-tabs-panes .su-tabs-pane{height:100%;border-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}@media only screen and (max-width: 768px){.su-tabs-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.su-tabs-vertical .su-tabs-nav,.su-tabs-vertical .su-tabs-panes{width:100%}.su-tabs-vertical .su-tabs-nav>span,.su-tabs-vertical .su-tabs-nav .su-tabs-pane,.su-tabs-vertical .su-tabs-panes>span,.su-tabs-vertical .su-tabs-panes .su-tabs-pane{border-radius:3px}.su-tabs-mobile-stack .su-tabs-nav span{display:block}.su-tabs-mobile-scroll .su-tabs-nav{display:-webkit-box;display:flex;-webkit-box-align:end;align-items:flex-end;white-space:nowrap;overflow-x:auto}}.qtip.su-qtip{max-width:480px !important}.su-tooltip{display:inline-block}.su-qtip-size-1{font-size:0.8em !important}.su-qtip-size-2{font-size:0.9em !important}.su-qtip-size-3{font-size:1em !important}.su-qtip-size-4{font-size:1.1em !important}.su-qtip-size-5{font-size:1.2em !important}.su-qtip-size-6{font-size:1.3em !important}.su-tooltip-content{display:none}.su-tooltip-content>:last-child{margin-bottom:0}.qtip-content .su-tooltip-content img,.qtip-content .su-tooltip-content object,.qtip-content .su-tooltip-content iframe,.qtip-content .su-tooltip-content embed{max-width:430px}.qtip-content .su-tooltip-content .su-u-responsive-media-yes{width:430px}.su-video{position:relative;margin-bottom:1.5em;overflow:hidden}.su-video .jp-title{position:absolute;top:-100px;left:0;width:100%;height:30px;padding:0 1em;line-height:30px;font-size:0.9em;background:#000;background:rgba(0,0,0,0.5);color:#fff;-webkit-transition:top 0.2s;transition:top 0.2s}.su-video:hover .jp-title{top:0}.su-video .jp-start{position:absolute;left:0;top:0;width:100%;height:100%;cursor:pointer;opacity:0.5;-webkit-transition:opacity 0.2s;transition:opacity 0.2s;background:50% 50% url("../images/player/default-start.png") no-repeat}.su-video:hover .jp-start{opacity:0.8}.su-video.jp-video-full{position:fixed;left:0;top:0;width:100%;height:100%}.su-video.jp-video-full .jp-jplayer{position:fixed !important;left:0;top:0;overflow:hidden}.su-video .jp-gui{position:relative;height:30px;background:#7c8781;background:-webkit-gradient(linear, left top, left bottom, from(#7c8781), to(#0a0809));background:-webkit-linear-gradient(top, #7c8781 0%, #0a0809 100%);background:linear-gradient(to bottom, #7c8781 0%, #0a0809 100%);border-bottom-right-radius:3px;border-bottom-left-radius:3px}.su-video.jp-video-full .jp-gui{position:fixed;left:0;bottom:0;width:100%}.su-video-controls-no .jp-gui{position:absolute !important;bottom:-100px;left:0;right:0;-webkit-transition:bottom 0.2s;transition:bottom 0.2s}.su-video-controls-no:hover .jp-gui{bottom:0}.su-video img{border-radius:0 !important;border:none !important;margin:0 !important;padding:0 !important}.su-video .jp-gui .jp-play,.su-video .jp-gui .jp-pause{position:absolute;left:0;top:0;display:block;width:30px;height:30px;border-right:1px solid #454947;cursor:pointer}.su-video .jp-gui .jp-play{background:0 0 url("../images/player/default.png") no-repeat}.su-video .jp-gui .jp-pause{background:-30px 0 url("../images/player/default.png") no-repeat}.su-video .jp-full-screen,.su-video .jp-restore-screen{position:absolute;top:0;right:0;display:block;width:30px;height:30px;border-left:1px solid #454947;cursor:pointer}.su-video .jp-full-screen{background:0 -30px url("../images/player/default.png") no-repeat}.su-video .jp-restore-screen{background:-30px -30px url("../images/player/default.png") no-repeat}.su-video .jp-progress{position:absolute;top:10px;left:90px;right:90px;height:10px;background:#333;border-radius:3px;box-shadow:0 0 5px #000 inset}.su-video .jp-seek-bar,.su-video .jp-play-bar{position:absolute;top:0;left:0;height:100%;cursor:pointer;border-radius:3px}.su-video .jp-seek-bar{background:#0b0b0b;background:-webkit-gradient(linear, left top, left bottom, from(#0b0b0b), to(#666));background:-webkit-linear-gradient(top, #0b0b0b 0%, #666 100%);background:linear-gradient(to bottom, #0b0b0b 0%, #666 100%)}.su-video .jp-play-bar{background:#6db3f2;background:-webkit-gradient(linear, left top, left bottom, from(#6db3f2), color-stop(50%, #54a3ee), color-stop(51%, #3690f0), to(#1e69de));background:-webkit-linear-gradient(top, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);background:linear-gradient(to bottom, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%)}.su-video .jp-current-time,.su-video .jp-duration{position:absolute;top:0;display:block;height:30px;line-height:30px;color:#f5f5f5;font-size:10px}.su-video .jp-current-time{left:50px}.su-video .jp-duration{right:50px}.su-vimeo{margin:0 0 1.5em}.su-vimeo iframe{border:none !important}.su-youtube{margin:0 0 1.5em}.su-youtube iframe{border:none !important}
includes/css/shortcodes.full.css CHANGED
@@ -2515,7 +2515,7 @@
2515
.su-tabs-vertical .su-tabs-panes .su-tabs-pane {
2516
border-radius: 3px;
2517
}
2518
- .su-tabs-mobile-stack span {
2519
display: block;
2520
}
2521
.su-tabs-mobile-scroll .su-tabs-nav {
2515
.su-tabs-vertical .su-tabs-panes .su-tabs-pane {
2516
border-radius: 3px;
2517
}
2518
+ .su-tabs-mobile-stack .su-tabs-nav span {
2519
display: block;
2520
}
2521
.su-tabs-mobile-scroll .su-tabs-nav {
includes/functions-colors.php ADDED
@@ -0,0 +1,125 @@
1
+ <?php
2
+
3
+ /**
4
+ * Helper function to check validity of a given HEX color.
5
+ *
6
+ * Valid formats are:
7
+ * - #aabbcc
8
+ * - aabbcc
9
+ * - #abc
10
+ * - abc
11
+ *
12
+ * @since 5.2.0
13
+ * @param string $color HEX color to check validity of.
14
+ * @return bool True if a given color mathes accepted pattern, False otherwise.
15
+ */
16
+ function su_is_valid_hex( $color ) {
17
+ return preg_match( '/^#([a-f0-9]{3}){1,2}\b#x2F;i', $color ) === 1;
18
+ }
19
+
20
+ /**
21
+ * Helper function that expands 3-sybol string into 6-sybol by repeating each
22
+ * symbol twice.
23
+ *
24
+ * @since 5.6.0
25
+ * @param string $hex Short value.
26
+ * @return string Expanded value.
27
+ */
28
+ function su_expand_short_color( $value ) {
29
+
30
+ if ( ! is_string( $value ) || 3 !== strlen( $value ) ) {
31
+ return $value;
32
+ }
33
+
34
+ return $value[0] . $value[0] . $value[1] . $value[1] . $value[2] . $value[2];
35
+
36
+ }
37
+
38
+ /**
39
+ * Helper function that adjusts brightness of a given HEX color value.
40
+ *
41
+ * Examples of use:
42
+ * `su_adjust_brightness( '#fc0', 50 )` - increase color brightness by 50%
43
+ * `su_adjust_brightness( 'ffcc00', -50 )` - decrease color brightness by 50%
44
+ *
45
+ * @since 5.2.0
46
+ * @param string $color A valid HEX color
47
+ * @param int $percent The percent to adjust brightness to.
48
+ * @return string Adjusted HEX color value.
49
+ */
50
+ function su_adjust_brightness( $color, $percent ) {
51
+
52
+ if (
53
+ ! su_is_valid_hex( $color ) ||
54
+ ! is_numeric( $percent )
55
+ ) {
56
+ return $color;
57
+ }
58
+
59
+ $percent = max( -100, min( 100, $percent ) );
60
+ $steps = round( $percent * 2.55 );
61
+ $color = ltrim( $color, '#' );
62
+
63
+ if ( 3 === strlen( $color ) ) {
64
+ $color = su_expand_short_color( $color );
65
+ }
66
+
67
+ $color_parts = str_split( $color, 2 );
68
+ $new_color = '#';
69
+
70
+ foreach ( $color_parts as $color_part ) {
71
+
72
+ $color_part = hexdec( $color_part );
73
+ $color_part = max( 0, min( 255, $color_part + $steps ) );
74
+
75
+ $new_color .= str_pad( dechex( $color_part ), 2, '0', STR_PAD_LEFT );
76
+
77
+ }
78
+
79
+ return $new_color;
80
+
81
+ }
82
+
83
+ /**
84
+ * Helper function that adjusts lightness of a given HEX color value.
85
+ *
86
+ * Examples of use:
87
+ * `su_adjust_lightness( '#fc0', 50 )` - increase color lightness by 50%
88
+ * `su_adjust_lightness( 'ffcc00', -50 )` - decrease color lightness by 50%
89
+ *
90
+ * @since 5.6.0
91
+ * @param string $color A valid HEX color
92
+ * @param int $percent The percent to adjust lightness to.
93
+ * @return string Adjusted HEX color value.
94
+ */
95
+ function su_adjust_lightness( $color, $percent ) {
96
+
97
+ if (
98
+ ! su_is_valid_hex( $color ) ||
99
+ ! is_numeric( $percent )
100
+ ) {
101
+ return $color;
102
+ }
103
+
104
+ $percent = max( -100, min( 100, $percent ) );
105
+ $color = ltrim( $color, '#' );
106
+ $new_color = '#';
107
+
108
+ if ( 3 === strlen( $color ) ) {
109
+ $color = su_expand_short_color( $color );
110
+ }
111
+
112
+ $color = array_map( 'hexdec', str_split( $color, 2 ) );
113
+
114
+ foreach ( $color as $part ) {
115
+
116
+ $limit = $percent < 0 ? $part : 255 - $part;
117
+ $amount = ceil( $limit * $percent / 100 );
118
+
119
+ $new_color .= str_pad( dechex( $part + $amount ), 2, '0', STR_PAD_LEFT );
120
+
121
+ }
122
+
123
+ return $new_color;
124
+
125
+ }
includes/functions-helpers.php CHANGED
@@ -184,71 +184,6 @@ if ( ! function_exists( 'su_get_css_class' ) ) {
184
185
}
186
187
- /**
188
- * Helper function to check validity of a given HEX color.
189
- *
190
- * Valid formats are:
191
- * - #aabbcc
192
- * - aabbcc
193
- * - #abc
194
- * - abc
195
- *
196
- * @since 5.2.0
197
- * @param string $color HEX color to check validity of.
198
- * @return bool True if a given color mathes accepted pattern, False otherwise.
199
- */
200
- function su_is_valid_hex( $color ) {
201
- return preg_match( '/^#([a-f0-9]{3}){1,2}\b#x2F;i', $color ) === 1;
202
- }
203
-
204
- /**
205
- * Helper function that adjusts brightness of a given HEX color value.
206
- *
207
- * Examples of use:
208
- * `su_adjust_brightness( '#fc0', 50 )` - increase color brightness by 50%
209
- * `su_adjust_brightness( 'ffcc00', -50 )` - decrease color brightness by 50%
210
- *
211
- * @since 5.2.0
212
- * @param string $color A valid HEX color
213
- * @param int $percent The percent to adjust brightness to.
214
- * @return string Adjusted HEX color value.
215
- */
216
- function su_adjust_brightness( $color, $percent ) {
217
-
218
- if (
219
- ! su_is_valid_hex( $color ) ||
220
- ! is_numeric( $percent )
221
- ) {
222
- return $color;
223
- }
224
-
225
- $percent = max( -100, min( 100, $percent ) );
226
- $steps = round( $percent * 2.55 );
227
- $color = str_replace( '#', '', $color );
228
-
229
- if ( 3 === strlen( $color ) ) {
230
- $color =
231
- str_repeat( substr( $color, 0, 1 ), 2 ) .
232
- str_repeat( substr( $color, 1, 1 ), 2 ) .
233
- str_repeat( substr( $color, 2, 1 ), 2 );
234
- }
235
-
236
- $color_parts = str_split( $color, 2 );
237
- $new_color = '#';
238
-
239
- foreach ( $color_parts as $color_part ) {
240
-
241
- $color_part = hexdec( $color_part );
242
- $color_part = max( 0, min( 255, $color_part + $steps ) );
243
-
244
- $new_color .= str_pad( dechex( $color_part ), 2, '0', STR_PAD_LEFT );
245
-
246
- }
247
-
248
- return $new_color;
249
-
250
- }
251
-
252
/**
253
* Helper function to force enqueuing of the shortcode generator assets and
254
* templates.
184
185
}
186
187
/**
188
* Helper function to force enqueuing of the shortcode generator assets and
189
* templates.
includes/js/block-editor/index.js CHANGED
@@ -1 +1,2 @@
1
- !function(){var o=wp.element.Fragment,n=wp.editor.BlockControls,t=wp.components,c=t.SVG,r=t.Path;wp.hooks.addFilter("editor.BlockEdit","shortcodes-ultimate/with-insert-shortcode-button",function(e){return function(t){return-1===SUBlockEditorSettings.supportedBlocks.indexOf(t.name)?React.createElement(e,t):React.createElement(o,null,React.createElement(e,t),React.createElement(n,{controls:[{icon:React.createElement(c,{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},React.createElement(r,{d:"m3 3h5.833v2.333h-3.5v9.334h3.5v2.333h-5.833zm8.167 0h5.833v14h-5.833v-2.333h3.5v-9.334h-3.5z"})),title:SUBlockEditorL10n.insertShortcode,onClick:function(){SUG.App.insert("block",{props:t})}}]}))}})}();
1
+ !function c(i,l,u){function a(t,e){if(!l[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(s)return s(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var o=l[t]={exports:{}};i[t][0].call(o.exports,function(e){return a(i[t][1][e]||e)},o,o.exports,c,i,l,u)}return l[t].exports}for(var s="function"==typeof require&&require,e=0;e<u.length;e++)a(u[e]);return a}({1:[function(e,t,r){"use strict";var n=wp.element.Fragment,o=wp.editor.BlockControls,c=wp.components,i=c.SVG,l=c.Path;wp.hooks.addFilter("editor.BlockEdit","shortcodes-ultimate/with-insert-shortcode-button",function(t){return function(e){return-1===SUBlockEditorSettings.supportedBlocks.indexOf(e.name)?React.createElement(t,e):React.createElement(n,null,React.createElement(t,e),React.createElement(o,{controls:[{icon:React.createElement(i,{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},React.createElement(l,{d:"m3 3h5.833v2.333h-3.5v9.334h3.5v2.333h-5.833zm8.167 0h5.833v14h-5.833v-2.333h3.5v-9.334h-3.5z"})),title:SUBlockEditorL10n.insertShortcode,onClick:function(){window.SUG.App.insert("block",{props:e})}}]}))}})},{}]},{},[1]);
2
+ //# sourceMappingURL=index.js.map
includes/js/block-editor/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["includes/js/block-editor/node_modules/browser-pack/_prelude.js","includes/js/block-editor/includes/js/block-editor/src/index.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","Fragment","wp","element","BlockControls","editor","components","SVG","Path","hooks","addFilter","BlockEdit","props","SUBlockEditorSettings","supportedBlocks","indexOf","name","React","createElement","controls","icon","viewBox","xmlns","d","title","SUBlockEditorL10n","insertShortcode","onClick","window","SUG","App","insert"],"mappings":"CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,mBAAAC,SAAAA,QAAA,IAAAF,GAAAC,EAAA,OAAAA,EAAAF,GAAA,GAAA,GAAAI,EAAA,OAAAA,EAAAJ,GAAA,GAAA,IAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,KAAA,MAAAK,EAAAE,KAAA,mBAAAF,EAAA,IAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,IAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,OAAAD,EAAAG,GAAAS,QAAA,IAAA,IAAAL,EAAA,mBAAAD,SAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,IAAAD,EAAAD,EAAAE,IAAA,OAAAD,EAAA,CAAA,CAAAa,EAAA,CAAA,SAAAT,EAAAU,EAAAJ,oBCEQK,EAAaC,GAAGC,QAAhBF,SACAG,EAAkBF,GAAGG,OAArBD,gBACcF,GAAGI,WAAjBC,IAAAA,IAAKC,IAAAA,KA4BbN,GAAGO,MAAMC,UACP,mBACA,mDA5BgC,SAAAC,GAChC,OAAO,SAACC,GACN,OAAmE,IAA/DC,sBAAsBC,gBAAgBC,QAAQH,EAAMI,MAC/CC,MAAAC,cAACP,EAAcC,GAItBK,MAAAC,cAACjB,EAAD,KACEgB,MAAAC,cAACP,EAAcC,GACfK,MAAAC,cAACd,EAAD,CAAee,SAAU,CACvB,CAEEC,KAAMH,MAAAC,cAACX,EAAD,CAAKc,QAAQ,YAAYC,MAAM,8BAA6BL,MAAAC,cAACV,EAAD,CAAMe,EAAE,mGAE1EC,MAAOC,kBAAkBC,gBACzBC,QAAS,WACPC,OAAOC,IAAIC,IAAIC,OAAO,QAAS,CAAEnB,MAAOA","file":"index.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()","/* global wp, SUBlockEditorSettings, SUBlockEditorL10n */\n\nconst { Fragment } = wp.element\nconst { BlockControls } = wp.editor\nconst { SVG, Path } = wp.components\n\nconst withInsertShortcodeButton = BlockEdit => {\n return (props) => {\n if (SUBlockEditorSettings.supportedBlocks.indexOf(props.name) === -1) {\n return <BlockEdit {...props} />\n }\n\n return (\n <Fragment>\n <BlockEdit {...props} />\n <BlockControls controls={[\n {\n /* eslint-disable react/jsx-pascal-case */\n icon: <SVG viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><Path d='m3 3h5.833v2.333h-3.5v9.334h3.5v2.333h-5.833zm8.167 0h5.833v14h-5.833v-2.333h3.5v-9.334h-3.5z' /></SVG>,\n /* eslint-disable react/jsx-pascal-case */\n title: SUBlockEditorL10n.insertShortcode,\n onClick: () => {\n window.SUG.App.insert('block', { props: props })\n }\n }\n ]}\n />\n </Fragment>\n )\n }\n}\n\nwp.hooks.addFilter(\n 'editor.BlockEdit',\n 'shortcodes-ultimate/with-insert-shortcode-button',\n withInsertShortcodeButton\n)\n"]}
includes/js/generator/index.js CHANGED
@@ -1 +1,2 @@
1
- function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var SUG={};SUG.App=function(d){var s=d("#su-generator"),o=d("#su-generator-search"),i=d("#su-generator-filter"),e=i.children("a"),c=d("#su-generator-choices"),u=c.find("span"),l=d("#su-generator-settings"),g=d("#su-compatibility-mode-prefix"),a=d("#su-generator-result"),p=d("#su-generator-selected"),f={state:{mceSelection:"",target:"",wpActiveEditor:null,context:"",insertArgs:"",preview:{timer:null,request:null}}};return f.el={body:d("body")},f.init=function(){var a;e.click(function(e){var t=d(this).data("filter");if("all"===t)u.css({opacity:1}).removeClass("su-generator-choice-first");else{var r=new RegExp(t,"gi");u.css({opacity:.2}),u.each(function(){null!==d(this).data("group").match(r)&&d(this).css({opacity:1}).removeClass("su-generator-choice-first")})}e.preventDefault()}),d("#su-generator").on("click",".su-generator-home",function(e){o.val(""),l.html("").hide(),s.removeClass("su-generator-narrow"),i.show(),c.show(),u.show(),f.state.mceSelection="",o.focus(),e.preventDefault()}),d("#su-generator").on("click",".su-generator-close",function(e){d.magnificPopup.close(),e.preventDefault()}),o.on({focus:function(){d(this).val(""),l.html("").hide(),s.removeClass("su-generator-narrow"),c.show(),u.css({opacity:1}).removeClass("su-generator-choice-first"),i.show()},blur:function(){},keyup:function(e){var t=d(".su-generator-choice-first:first"),n=d(this).val(),a=new RegExp(n,"gi"),s=0;13===e.keyCode&&0<t.length&&(e.preventDefault(),d(this).val("").blur(),t.trigger("click")),u.css({opacity:.2}).removeClass("su-generator-choice-first"),u.each(function(){var e=d(this).data(),t=e.shortcode,r=[t,e.name,e.desc,e.group].join(" ").match(a);null!==r&&(d(this).css({opacity:1}),n===t?(u.removeClass("su-generator-choice-first"),d(this).addClass("su-generator-choice-first"),s=999):r.length>s&&(u.removeClass("su-generator-choice-first"),d(this).addClass("su-generator-choice-first"),s=r.length))}),""===n&&u.removeClass("su-generator-choice-first")}}),u.on("click",function(e){var r=d(this).data("shortcode");d.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_settings",shortcode:r},beforeSend:function(){d("#su-generator-preview").hide(),c.hide(),l.addClass("su-generator-loading").show(),s.addClass("su-generator-narrow"),i.hide()},success:function(e){l.removeClass("su-generator-loading"),l.html(e);var t=d("#su-generator-content");void 0!==f.state.mceSelection&&""!==f.state.mceSelection&&"hidden"!==t.attr("type")&&t.val(f.state.mceSelection),d(".su-generator-range-picker").each(function(e){var t=d(this).find("input"),r=t.attr("min"),n=t.attr("max"),a=t.attr("step");t.simpleSlider({snap:!0,step:a,range:[r,n]}),t.show(),t.on("keyup blur",function(e){t.simpleSlider("setValue",t.val())})}),d(".su-generator-select-color").each(function(e){d(this).find(".su-generator-select-color-wheel").filter(":first").farbtastic(".su-generator-select-color-value:eq("+e+")"),d(this).find(".su-generator-select-color-value").focus(function(){d(".su-generator-select-color-wheel:eq("+e+")").show()}),d(this).find(".su-generator-select-color-value").blur(function(){d(".su-generator-select-color-wheel:eq("+e+")").hide()})}),d(".su-generator-isp").each(function(){function n(){var e="none",t="",r=i.val();if("media"===r){var n=[];c.find("span").each(function(e){n[e]=d(this).data("id")}),0<n.length&&(t=n.join(","))}else if("category"===r){var a=u.val()||[];0<a.length&&(t=a.join(","))}else if("taxonomy"===r){var s=l.val()||"",o=g.val()||[];"0"!==s&&0<o.length&&(e="taxonomy: "+s+"/"+o.join(","))}else e="0"===r?"none":r;""!==t&&(e=r+": "+t),p.val(e).trigger("change")}var t,r=d(this),i=r.find(".su-generator-isp-sources"),a=r.find(".su-generator-isp-source"),e=r.find(".su-generator-isp-add-media"),c=r.find(".su-generator-isp-images"),u=r.find(".su-generator-isp-categories"),l=r.find(".su-generator-isp-taxonomies"),g=d(".su-generator-isp-terms"),p=r.find(".su-generator-attr");i.on("change",function(e){var t=d(this).val();e.preventDefault(),a.removeClass("su-generator-isp-source-open"),-1===t.indexOf(":")&&r.find(".su-generator-isp-source-"+t).addClass("su-generator-isp-source-open"),n()}),c.on("click","span i",function(){d(this).parent("span").css("border-color","#f03").fadeOut(300,function(){d(this).remove(),n()})}),e.click(function(e){e.preventDefault(),void 0!==t&&t.close(),(t=wp.media.frames.su_media_frame_1=wp.media({title:SUGL10n.isp_media_title,library:{type:"image"},button:{text:SUGL10n.isp_media_insert},multiple:!0})).on("open",function(){d(".mfp-wrap").addClass("hidden")}),t.on("close",function(){d(".mfp-wrap").removeClass("hidden")}),t.on("select",function(){var e=t.state().get("selection").toJSON();c.find("em").remove(),d.each(e,function(e){c.append('<span data-id="'+this.id+'" title="'+this.title+'"><img src="'+this.url+'" alt="" /><i class="sui sui-times"></i></span>')}),n()}).open()}),c.sortable({revert:200,containment:r,tolerance:"pointer",stop:function(){n()}}),u.on("change",n),g.on("change",n),l.on("change",function(){var t=d(this).parents(".su-generator-isp-source"),e=d(this).val();if(g.hide().find("option").remove(),n(),"0"!==e)var r=d.ajax({url:ajaxurl,type:"post",dataType:"html",data:{action:"su_generator_get_terms",tax:e,class:"su-generator-isp-terms",multiple:!0,size:10},beforeSend:function(){"object"===_typeof(r)&&r.abort(),g.html("").attr("disabled",!0).hide(),t.addClass("su-generator-loading")},success:function(e){g.html(e).attr("disabled",!1).show(),t.removeClass("su-generator-loading")}})})}),d(".su-generator-upload-button").each(function(){var t,e=d(this),r=d(this).parents(".su-generator-attr-container").find("input:text");e.on("click",function(e){e.preventDefault(),e.stopPropagation(),void 0!==t&&t.close(),(t=wp.media.frames.su_media_frame_2=wp.media({title:SUGL10n.upload_title,button:{text:SUGL10n.upload_insert},multiple:!1})).on("select",function(){var e=t.state().get("selection").first().toJSON();r.val(e.url).trigger("change")}),t.on("open",function(){d(".mfp-wrap").addClass("hidden")}),t.on("close",function(){d(".mfp-wrap").removeClass("hidden")}),t.open()})}),d(".su-generator-icon-picker-button").each(function(){var e=d(this),t=d(this).parents(".su-generator-attr-container"),n=t.find(".su-generator-attr"),a=t.find(".su-generator-icon-picker"),s=a.find("input:text");e.click(function(e){a.toggleClass("su-generator-icon-picker-visible"),s.val("").trigger("keyup"),a.hasClass("su-generator-icon-picker-loaded")||(d.ajax({type:"post",url:ajaxurl,data:{action:"su_generator_get_icons"},dataType:"html",beforeSend:function(){a.addClass("su-generator-loading"),a.addClass("su-generator-icon-picker-loaded")},success:function(e){a.append(e);var r=a.children("i");r.click(function(e){n.val("icon: "+d(this).attr("title")),a.removeClass("su-generator-icon-picker-visible"),n.trigger("change"),e.preventDefault()}),s.on({keyup:function(){var e=d(this).val(),t=new RegExp(e,"gi");r.hide(),r.each(function(){null!==d(this).attr("title").match(t)&&d(this).show()})},focus:function(){d(this).val(""),r.show()}}),a.removeClass("su-generator-loading")}}),e.preventDefault())})}),d(".su-generator-switch").click(function(e){var t=d(this).parent().children("input");"yes"===t.val()?t.val("no").trigger("change"):t.val("yes").trigger("change"),e.preventDefault()}),d(".su-generator-switch-value").on("change",function(){var e=d(this),t=e.parent().children(".su-generator-switch"),r=e.val();"yes"===r?t.removeClass("su-generator-switch-no").addClass("su-generator-switch-yes"):"no"===r&&t.removeClass("su-generator-switch-yes").addClass("su-generator-switch-no")}),d("select#su-generator-attr-taxonomy").on("change",function(){var e=d(this).val(),t=d("select#su-generator-attr-tax_term");window.su_generator_get_terms=d.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_get_terms",tax:e,noselect:!0},dataType:"html",beforeSend:function(){"object"===_typeof(window.su_generator_get_terms)&&window.su_generator_get_terms.abort(),t.parent().addClass("su-generator-loading")},success:function(e){t.find("option").remove(),t.append(e),t.parent().removeClass("su-generator-loading")}})}),d(".su-generator-shadow-picker").each(function(e){var t=d(this),r=t.find(".su-generator-shadow-picker-field input"),n=t.find(".su-generator-sp-hoff"),a=t.find(".su-generator-sp-voff"),s=t.find(".su-generator-sp-blur"),o={cnt:t.find(".su-generator-shadow-picker-color"),value:t.find(".su-generator-shadow-picker-color-value"),wheel:t.find(".su-generator-shadow-picker-color-wheel")},i=t.find(".su-generator-attr");o.wheel.farbtastic(o.value),o.value.focus(function(){o.wheel.show()}),o.value.blur(function(){o.wheel.hide()}),r.on("change blur keyup",function(){i.val(n.val()+"px "+a.val()+"px "+s.val()+"px "+o.value.val()).trigger("change")}),i.on("keyup",function(){var e=d(this).val().split(" ");4===e.length&&(n.val(e[0].replace("px","")),a.val(e[1].replace("px","")),s.val(e[2].replace("px","")),o.value.val(e[3]),r.trigger("keyup"))})}),d(".su-generator-border-picker").each(function(e){var t=d(this),r=t.find(".su-generator-border-picker-field input, .su-generator-border-picker-field select"),n=t.find(".su-generator-bp-width"),a=t.find(".su-generator-bp-style"),s={cnt:t.find(".su-generator-border-picker-color"),value:t.find(".su-generator-border-picker-color-value"),wheel:t.find(".su-generator-border-picker-color-wheel")},o=t.find(".su-generator-attr");s.wheel.farbtastic(s.value),s.value.focus(function(){s.wheel.show()}),s.value.blur(function(){s.wheel.hide()}),r.on("change blur keyup",function(){o.val(n.val()+"px "+a.val()+" "+s.value.val()).trigger("change")}),o.on("keyup",function(){var e=d(this).val().split(" ");3===e.length&&(n.val(e[0].replace("px","")),a.val(e[1]),s.value.val(e[2]),r.trigger("keyup"))})}),l.find(".su-generator-attr").on("change keyup blur",function(){var e=d(this).parents(".su-generator-attr-container"),t=e.data("default");d(this).val()!=t?e.removeClass("su-generator-skip"):e.addClass("su-generator-skip")}),d(".su-generator-set-value").click(function(e){d(this).parents(".su-generator-attr-container").find("input").val(d(this).text()).trigger("change")}),p.val(r),d.ajax({type:"GET",url:ajaxurl,data:{action:"su_generator_get_preset",id:"last_used",shortcode:r},beforeSend:function(){},success:function(e){f.setSettings(e);var t=d("#su-generator-content");void 0!==f.state.mceSelection&&""!==f.state.mceSelection&&"hidden"!==t.attr("type")&&t.val(f.state.mceSelection)},dataType:"json"})},dataType:"html"})}),d("#su-generator").on("click",".su-generator-insert",f.insertShortcode),d("#su-generator").on("click",".su-generator-toggle-preview",function(e){var t=d("#su-generator-preview");d(this).hide(),t.addClass("su-generator-loading").show(),l.find("input, textarea, select").on("change keyup blur",function(){f.updatePreview()}),f.updatePreview(!0),e.preventDefault()}),d("#su-generator").on("mouseenter click",".su-generator-presets",function(){clearTimeout(a),d(".su-gp-popup").show()}),d("#su-generator").on("mouseleave",".su-generator-presets",function(){a=window.setTimeout(function(){d(".su-gp-popup").fadeOut(200)},600)}),d("#su-generator").on("click",".su-gp-new",function(e){d(this).parents(".su-generator-presets");var t=d(".su-gp-list"),r=(new Date).getTime(),n=prompt(SUGL10n.presets_prompt_msg,SUGL10n.presets_prompt_value);""!==n&&null!==n&&(t.find("b").hide(),t.append('<span data-id="'+r+'"><em>'+n+'</em><i class="sui sui-times"></i></span>'),f.addPreset(r,n))}),d("#su-generator").on("click",".su-gp-list span",function(e){var t=d(".su-generator-presets").data("shortcode"),r=d(this).data("id"),n=d(".su-generator-insert");d(".su-gp-popup").hide(),clearTimeout(a),d.ajax({type:"GET",url:ajaxurl,data:{action:"su_generator_get_preset",id:r,shortcode:t},beforeSend:function(){n.addClass("button-primary-disabled").attr("disabled",!0)},success:function(e){n.removeClass("button-primary-disabled").attr("disabled",!1),f.setSettings(e)},dataType:"json"}),e.preventDefault(),e.stopPropagation()}),d("#su-generator").on("click",".su-gp-list i",function(e){var t=d(this).parents(".su-gp-list"),r=d(this).parent("span"),n=r.data("id");r.remove(),t.find("span").length<1&&t.find("b").show(),f.removePreset(n),e.stopPropagation(),e.preventDefault()})},f.addPreset=function(e,t){var r=d(".su-generator-presets").data("shortcode"),n=f.getSettings();d.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_add_preset",id:e,name:t,shortcode:r,settings:n}})},f.removePreset=function(e){var t=d(".su-generator-presets").data("shortcode");d.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_remove_preset",id:e,shortcode:t}})},f.parseSettings=function(){var e=p.val(),t=g.val(),r=d("#su-generator-settings .su-generator-attr-container:not(.su-generator-skip) .su-generator-attr"),n=d("textarea#su-generator-content"),a=n.length?n.val():"false",s=new String("");return s+="["+t+e,r.each(function(){var e=d(this),t="";null==(t=e.is("select")?e.find("option:selected").val():e.val())?t="":"array"==typeof t&&(t=t.join(",")),""!==t&&(s+=" "+d(this).attr("name")+'="'+d(this).val().toString().replace(/"/gi,"'")+'"')}),s+="]","false"!=a&&(s+=a+"[/"+t+e+"]"),s},f.getSettings=function(){p.val();var e=d("#su-generator-settings .su-generator-attr"),t=d("textarea#su-generator-content"),r=t.length?t.val():"false",a={};return e.each(function(e){var t=d(this),r="",n=t.attr("name");null==(r=t.is("select")?t.find("option:selected").val():t.val())&&(r=""),a[n]=r}),a.content=r.toString(),a},f.setSettings=function(r){var e=d("#su-generator-settings .su-generator-attr"),t=d("#su-generator-content");e.each(function(){var e=d(this),t=e.attr("name");r.hasOwnProperty(t)&&(e.val(r[t]),e.trigger("keyup").trigger("change").trigger("blur"))}),r.hasOwnProperty("content")&&t.val(r.content).trigger("keyup").trigger("change").trigger("blur"),f.updatePreview()},f.updatePreview=function(e){var t=d("#su-generator-preview"),r=f.parseSettings(),n=a.text();e=e||!1,t.is(":visible")&&(r===n&&!e||(window.clearTimeout(f.state.preview.timer),f.state.preview.timer=window.setTimeout(function(){f.state.preview.request=d.ajax({type:"POST",url:ajaxurl,cache:!1,data:{action:"su_generator_preview",shortcode:r},beforeSend:function(){f.state.preview.request&&f.state.preview.request.abort(),t.addClass("su-generator-loading").html("")},success:function(e){t.html(e).removeClass("su-generator-loading")},dataType:"html"})},300),a.text(r)))},f.insert=function(e,t){if("string"==typeof e&&"object"===_typeof(t)){f.state.context=e;var r=(f.state.insertArgs=t).shortcode||"",n={type:"inline",alignTop:!0,closeOnBgClick:!1,mainClass:"su-generator-mfp",items:{src:"#su-generator"},callbacks:{}};n.callbacks.open=function(){r?u.filter('[data-shortcode="'.concat(r,'"]')).trigger("click"):window.setTimeout(function(){return o.focus()},200),"undefined"!=typeof tinyMCE&&null!=tinyMCE.activeEditor&&tinyMCE.activeEditor.hasOwnProperty("selection")&&(f.state.mceSelection=tinyMCE.activeEditor.selection.getContent({format:"text"}))},n.callbacks.close=function(){o.val(""),l.html("").hide(),s.removeClass("su-generator-narrow"),i.show(),c.show(),u.show(),f.state.mceSelection=""},d.magnificPopup.open(n)}},f.insertShortcode=function(){var e=f.parseSettings();if(f.addPreset("last_used",SUGL10n.last_used),d.magnificPopup.close(),a.text(e),"classic"===f.state.context)f.state.wpActiveEditor=window.wpActiveEditor,window.wpActiveEditor=f.state.insertArgs.editorID,window.wp.media.editor.insert(e),window.wpActiveEditor=f.state.wpActiveEditor;else if("block"===f.state.context){var t=f.state.insertArgs.props;if(t.attributes.hasOwnProperty("content"))t.setAttributes({content:t.attributes.content+e});else if("core/shortcode"===t.name){var r=t.attributes.hasOwnProperty("text")?t.attributes.text:"";t.setAttributes({text:r+e})}}},f.insertAtCaret=function(e,t){var r=e.selectionStart;e.selectionEnd;e.value=e.value.substring(0,r)+t+e.value.substring(r),e.focus(),e.selectionStart=r+t.length},{init:f.init,insert:f.insert}}(jQuery),jQuery(document).ready(SUG.App.init);
1
+ !function s(o,i,u){function c(t,e){if(!i[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var a=i[t]={exports:{}};o[t][0].call(a.exports,function(e){return c(o[t][1][e]||e)},a,a.exports,s,o,i,u)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,r){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p,o,i,u,n,c,l,g,d,a,f,h;window.SUG={},window.SUG.App=(p=jQuery,o=p("#su-generator"),i=p("#su-generator-search"),u=p("#su-generator-filter"),n=u.children("a"),c=p("#su-generator-choices"),l=c.find("span"),g=p("#su-generator-settings"),d=p("#su-compatibility-mode-prefix"),a=p("#su-generator-result"),f=p("#su-generator-selected"),(h={state:{mceSelection:"",target:"",wpActiveEditor:null,context:"",insertArgs:"",preview:{timer:null,request:null}}}).el={body:p("body")},h.init=function(){var a;n.click(function(e){var t=p(this).data("filter");if("all"===t)l.css({opacity:1}).removeClass("su-generator-choice-first");else{var r=new RegExp(t,"gi");l.css({opacity:.2}),l.each(function(){null!==p(this).data("group").match(r)&&p(this).css({opacity:1}).removeClass("su-generator-choice-first")})}e.preventDefault()}),p("#su-generator").on("click",".su-generator-home",function(e){i.val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),u.show(),c.show(),l.show(),h.state.mceSelection="",i.focus(),e.preventDefault()}),p("#su-generator").on("click",".su-generator-close",function(e){p.magnificPopup.close(),e.preventDefault()}),i.on({focus:function(){p(this).val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),c.show(),l.css({opacity:1}).removeClass("su-generator-choice-first"),u.show()},blur:function(){},keyup:function(e){var t=p(".su-generator-choice-first:first"),n=p(this).val(),a=new RegExp(n,"gi"),s=0;13===e.keyCode&&0<t.length&&(e.preventDefault(),p(this).val("").blur(),t.trigger("click")),l.css({opacity:.2}).removeClass("su-generator-choice-first"),l.each(function(){var e=p(this).data(),t=e.shortcode,r=[t,e.name,e.desc,e.group].join(" ").match(a);null!==r&&(p(this).css({opacity:1}),n===t?(l.removeClass("su-generator-choice-first"),p(this).addClass("su-generator-choice-first"),s=999):r.length>s&&(l.removeClass("su-generator-choice-first"),p(this).addClass("su-generator-choice-first"),s=r.length))}),""===n&&l.removeClass("su-generator-choice-first")}}),l.on("click",function(e){var r=p(this).data("shortcode");p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_settings",shortcode:r},beforeSend:function(){p("#su-generator-preview").hide(),c.hide(),g.addClass("su-generator-loading").show(),o.addClass("su-generator-narrow"),u.hide()},success:function(e){g.removeClass("su-generator-loading"),g.html(e);var t=p("#su-generator-content");void 0!==h.state.mceSelection&&""!==h.state.mceSelection&&"hidden"!==t.attr("type")&&t.val(h.state.mceSelection),p(".su-generator-range-picker").each(function(e){var t=p(this).find("input"),r=t.attr("min"),n=t.attr("max"),a=t.attr("step");t.simpleSlider({snap:!0,step:a,range:[r,n]}),t.show(),t.on("keyup blur",function(e){t.simpleSlider("setValue",t.val())})}),p(".su-generator-select-color").each(function(e){p(this).find(".su-generator-select-color-wheel").filter(":first").farbtastic(".su-generator-select-color-value:eq("+e+")"),p(this).find(".su-generator-select-color-value").focus(function(){p(".su-generator-select-color-wheel:eq("+e+")").show()}),p(this).find(".su-generator-select-color-value").blur(function(){p(".su-generator-select-color-wheel:eq("+e+")").hide()})}),p(".su-generator-isp").each(function(){function n(){var e="none",t="",r=i.val();if("media"===r){var n=[];u.find("span").each(function(e){n[e]=p(this).data("id")}),0<n.length&&(t=n.join(","))}else if("category"===r){var a=c.val()||[];0<a.length&&(t=a.join(","))}else if("taxonomy"===r){var s=l.val()||"",o=g.val()||[];"0"!==s&&0<o.length&&(e="taxonomy: "+s+"/"+o.join(","))}else e="0"===r?"none":r;""!==t&&(e=r+": "+t),d.val(e).trigger("change")}var t,r=p(this),i=r.find(".su-generator-isp-sources"),a=r.find(".su-generator-isp-source"),e=r.find(".su-generator-isp-add-media"),u=r.find(".su-generator-isp-images"),c=r.find(".su-generator-isp-categories"),l=r.find(".su-generator-isp-taxonomies"),g=p(".su-generator-isp-terms"),d=r.find(".su-generator-attr");i.on("change",function(e){var t=p(this).val();e.preventDefault(),a.removeClass("su-generator-isp-source-open"),-1===t.indexOf(":")&&r.find(".su-generator-isp-source-"+t).addClass("su-generator-isp-source-open"),n()}),u.on("click","span i",function(){p(this).parent("span").css("border-color","#f03").fadeOut(300,function(){p(this).remove(),n()})}),e.click(function(e){e.preventDefault(),void 0!==t&&t.close(),(t=wp.media.frames.su_media_frame_1=wp.media({title:SUGL10n.isp_media_title,library:{type:"image"},button:{text:SUGL10n.isp_media_insert},multiple:!0})).on("open",function(){p(".mfp-wrap").addClass("hidden")}),t.on("close",function(){p(".mfp-wrap").removeClass("hidden")}),t.on("select",function(){var e=t.state().get("selection").toJSON();u.find("em").remove(),p.each(e,function(e){u.append('<span data-id="'+this.id+'" title="'+this.title+'"><img src="'+this.url+'" alt="" /><i class="sui sui-times"></i></span>')}),n()}).open()}),u.sortable({revert:200,containment:r,tolerance:"pointer",stop:function(){n()}}),c.on("change",n),g.on("change",n),l.on("change",function(){var t=p(this).parents(".su-generator-isp-source"),e=p(this).val();if(g.hide().find("option").remove(),n(),"0"===e);else var r=p.ajax({url:ajaxurl,type:"post",dataType:"html",data:{action:"su_generator_get_terms",tax:e,class:"su-generator-isp-terms",multiple:!0,size:10},beforeSend:function(){"object"===s(r)&&r.abort(),g.html("").attr("disabled",!0).hide(),t.addClass("su-generator-loading")},success:function(e){g.html(e).attr("disabled",!1).show(),t.removeClass("su-generator-loading")}})})}),p(".su-generator-upload-button").each(function(){var t,e=p(this),r=p(this).parents(".su-generator-attr-container").find("input:text");e.on("click",function(e){e.preventDefault(),e.stopPropagation(),void 0!==t&&t.close(),(t=wp.media.frames.su_media_frame_2=wp.media({title:SUGL10n.upload_title,button:{text:SUGL10n.upload_insert},multiple:!1})).on("select",function(){var e=t.state().get("selection").first().toJSON();r.val(e.url).trigger("change")}),t.on("open",function(){p(".mfp-wrap").addClass("hidden")}),t.on("close",function(){p(".mfp-wrap").removeClass("hidden")}),t.open()})}),p(".su-generator-icon-picker-button").each(function(){var e=p(this),t=p(this).parents(".su-generator-attr-container"),n=t.find(".su-generator-attr"),a=t.find(".su-generator-icon-picker"),s=a.find("input:text");e.click(function(e){a.toggleClass("su-generator-icon-picker-visible"),s.val("").trigger("keyup"),a.hasClass("su-generator-icon-picker-loaded")||(p.ajax({type:"post",url:ajaxurl,data:{action:"su_generator_get_icons"},dataType:"html",beforeSend:function(){a.addClass("su-generator-loading"),a.addClass("su-generator-icon-picker-loaded")},success:function(e){a.append(e);var r=a.children("i");r.click(function(e){n.val("icon: "+p(this).attr("title")),a.removeClass("su-generator-icon-picker-visible"),n.trigger("change"),e.preventDefault()}),s.on({keyup:function(){var e=p(this).val(),t=new RegExp(e,"gi");r.hide(),r.each(function(){null!==p(this).attr("title").match(t)&&p(this).show()})},focus:function(){p(this).val(""),r.show()}}),a.removeClass("su-generator-loading")}}),e.preventDefault())})}),p(".su-generator-switch").click(function(e){var t=p(this).parent().children("input");"yes"===t.val()?t.val("no").trigger("change"):t.val("yes").trigger("change"),e.preventDefault()}),p(".su-generator-switch-value").on("change",function(){var e=p(this),t=e.parent().children(".su-generator-switch"),r=e.val();"yes"===r?t.removeClass("su-generator-switch-no").addClass("su-generator-switch-yes"):"no"===r&&t.removeClass("su-generator-switch-yes").addClass("su-generator-switch-no")}),p("select#su-generator-attr-taxonomy").on("change",function(){var e=p(this).val(),t=p("select#su-generator-attr-tax_term");window.su_generator_get_terms=p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_get_terms",tax:e,noselect:!0},dataType:"html",beforeSend:function(){"object"===s(window.su_generator_get_terms)&&window.su_generator_get_terms.abort(),t.parent().addClass("su-generator-loading")},success:function(e){t.find("option").remove(),t.append(e),t.parent().removeClass("su-generator-loading")}})}),p(".su-generator-shadow-picker").each(function(e){var t=p(this),r=t.find(".su-generator-shadow-picker-field input"),n=t.find(".su-generator-sp-hoff"),a=t.find(".su-generator-sp-voff"),s=t.find(".su-generator-sp-blur"),o={cnt:t.find(".su-generator-shadow-picker-color"),value:t.find(".su-generator-shadow-picker-color-value"),wheel:t.find(".su-generator-shadow-picker-color-wheel")},i=t.find(".su-generator-attr");o.wheel.farbtastic(o.value),o.value.focus(function(){o.wheel.show()}),o.value.blur(function(){o.wheel.hide()}),r.on("change blur keyup",function(){i.val(n.val()+"px "+a.val()+"px "+s.val()+"px "+o.value.val()).trigger("change")}),i.on("keyup",function(){var e=p(this).val().split(" ");4===e.length&&(n.val(e[0].replace("px","")),a.val(e[1].replace("px","")),s.val(e[2].replace("px","")),o.value.val(e[3]),r.trigger("keyup"))})}),p(".su-generator-border-picker").each(function(e){var t=p(this),r=t.find(".su-generator-border-picker-field input, .su-generator-border-picker-field select"),n=t.find(".su-generator-bp-width"),a=t.find(".su-generator-bp-style"),s={cnt:t.find(".su-generator-border-picker-color"),value:t.find(".su-generator-border-picker-color-value"),wheel:t.find(".su-generator-border-picker-color-wheel")},o=t.find(".su-generator-attr");s.wheel.farbtastic(s.value),s.value.focus(function(){s.wheel.show()}),s.value.blur(function(){s.wheel.hide()}),r.on("change blur keyup",function(){o.val(n.val()+"px "+a.val()+" "+s.value.val()).trigger("change")}),o.on("keyup",function(){var e=p(this).val().split(" ");3===e.length&&(n.val(e[0].replace("px","")),a.val(e[1]),s.value.val(e[2]),r.trigger("keyup"))})}),g.find(".su-generator-attr").on("change keyup blur",function(){var e=p(this).parents(".su-generator-attr-container"),t=e.data("default");p(this).val()!=t?e.removeClass("su-generator-skip"):e.addClass("su-generator-skip")}),p(".su-generator-set-value").click(function(e){p(this).parents(".su-generator-attr-container").find("input").val(p(this).text()).trigger("change")}),f.val(r),p.ajax({type:"GET",url:ajaxurl,data:{action:"su_generator_get_preset",id:"last_used",shortcode:r},beforeSend:function(){},success:function(e){h.setSettings(e);var t=p("#su-generator-content");void 0!==h.state.mceSelection&&""!==h.state.mceSelection&&"hidden"!==t.attr("type")&&t.val(h.state.mceSelection)},dataType:"json"})},dataType:"html"})}),p("#su-generator").on("click",".su-generator-insert",h.insertShortcode),p("#su-generator").on("click",".su-generator-toggle-preview",function(e){var t=p("#su-generator-preview");p(this).hide(),t.addClass("su-generator-loading").show(),g.find("input, textarea, select").on("change keyup blur",function(){h.updatePreview()}),h.updatePreview(!0),e.preventDefault()}),p("#su-generator").on("mouseenter click",".su-generator-presets",function(){clearTimeout(a),p(".su-gp-popup").show()}),p("#su-generator").on("mouseleave",".su-generator-presets",function(){a=window.setTimeout(function(){p(".su-gp-popup").fadeOut(200)},600)}),p("#su-generator").on("click",".su-gp-new",function(e){p(this).parents(".su-generator-presets");var t=p(".su-gp-list"),r=(new Date).getTime(),n=prompt(SUGL10n.presets_prompt_msg,SUGL10n.presets_prompt_value);""!==n&&null!==n&&(t.find("b").hide(),t.append('<span data-id="'+r+'"><em>'+n+'</em><i class="sui sui-times"></i></span>'),h.addPreset(r,n))}),p("#su-generator").on("click",".su-gp-list span",function(e){var t=p(".su-generator-presets").data("shortcode"),r=p(this).data("id"),n=p(".su-generator-insert");p(".su-gp-popup").hide(),clearTimeout(a),p.ajax({type:"GET",url:ajaxurl,data:{action:"su_generator_get_preset",id:r,shortcode:t},beforeSend:function(){n.addClass("button-primary-disabled").attr("disabled",!0)},success:function(e){n.removeClass("button-primary-disabled").attr("disabled",!1),h.setSettings(e)},dataType:"json"}),e.preventDefault(),e.stopPropagation()}),p("#su-generator").on("click",".su-gp-list i",function(e){var t=p(this).parents(".su-gp-list"),r=p(this).parent("span"),n=r.data("id");r.remove(),t.find("span").length<1&&t.find("b").show(),h.removePreset(n),e.stopPropagation(),e.preventDefault()})},h.addPreset=function(e,t){var r=p(".su-generator-presets").data("shortcode"),n=h.getSettings();p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_add_preset",id:e,name:t,shortcode:r,settings:n}})},h.removePreset=function(e){var t=p(".su-generator-presets").data("shortcode");p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_remove_preset",id:e,shortcode:t}})},h.parseSettings=function(){var e=f.val(),t=d.val(),r=p("#su-generator-settings .su-generator-attr-container:not(.su-generator-skip) .su-generator-attr"),n=p("textarea#su-generator-content"),a=n.length?n.val():"false",s=new String("");return s+="["+t+e,r.each(function(){var e=p(this),t="";null==(t=e.is("select")?e.find("option:selected").val():e.val())?t="":"array"==typeof t&&(t=t.join(",")),""!==t&&(s+=" "+p(this).attr("name")+'="'+p(this).val().toString().replace(/"/gi,"'")+'"')}),s+="]","false"!=a&&(s+=a+"[/"+t+e+"]"),s},h.getSettings=function(){f.val();var e=p("#su-generator-settings .su-generator-attr"),t=p("textarea#su-generator-content"),r=t.length?t.val():"false",a={};return e.each(function(e){var t=p(this),r="",n=t.attr("name");null==(r=t.is("select")?t.find("option:selected").val():t.val())&&(r=""),a[n]=r}),a.content=r.toString(),a},h.setSettings=function(r){var e=p("#su-generator-settings .su-generator-attr"),t=p("#su-generator-content");e.each(function(){var e=p(this),t=e.attr("name");r.hasOwnProperty(t)&&(e.val(r[t]),e.trigger("keyup").trigger("change").trigger("blur"))}),r.hasOwnProperty("content")&&t.val(r.content).trigger("keyup").trigger("change").trigger("blur"),h.updatePreview()},h.updatePreview=function(e){var t=p("#su-generator-preview"),r=h.parseSettings(),n=a.text();e=e||!1,t.is(":visible")&&(r===n&&!e||(window.clearTimeout(h.state.preview.timer),h.state.preview.timer=window.setTimeout(function(){h.state.preview.request=p.ajax({type:"POST",url:ajaxurl,cache:!1,data:{action:"su_generator_preview",shortcode:r},beforeSend:function(){h.state.preview.request&&h.state.preview.request.abort(),t.addClass("su-generator-loading").html("")},success:function(e){t.html(e).removeClass("su-generator-loading")},dataType:"html"})},300),a.text(r)))},h.insert=function(e,t){if("string"==typeof e&&"object"===s(t)){h.state.context=e;var r=(h.state.insertArgs=t).shortcode||"",n={type:"inline",alignTop:!0,closeOnBgClick:!1,mainClass:"su-generator-mfp",items:{src:"#su-generator"},callbacks:{}};n.callbacks.open=function(){r?l.filter('[data-shortcode="'.concat(r,'"]')).trigger("click"):window.setTimeout(function(){return i.focus()},200),"undefined"!=typeof tinyMCE&&null!=tinyMCE.activeEditor&&tinyMCE.activeEditor.hasOwnProperty("selection")&&(h.state.mceSelection=tinyMCE.activeEditor.selection.getContent({format:"text"}))},n.callbacks.close=function(){i.val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),u.show(),c.show(),l.show(),h.state.mceSelection=""},p.magnificPopup.open(n)}},h.insertShortcode=function(){var e=h.parseSettings();if(h.addPreset("last_used",SUGL10n.last_used),p.magnificPopup.close(),a.text(e),"classic"===h.state.context)h.state.wpActiveEditor=window.wpActiveEditor,window.wpActiveEditor=h.state.insertArgs.editorID,window.wp.media.editor.insert(e),window.wpActiveEditor=h.state.wpActiveEditor;else if("block"===h.state.context){var t=h.state.insertArgs.props;if(t.attributes.hasOwnProperty("content"))t.setAttributes({content:t.attributes.content+e});else if("core/shortcode"===t.name){var r=t.attributes.hasOwnProperty("text")?t.attributes.text:"";t.setAttributes({text:r+e})}}},h.insertAtCaret=function(e,t){var r=e.selectionStart;e.selectionEnd,e.value=e.value.substring(0,r)+t+e.value.substring(r),e.focus(),e.selectionStart=r+t.length},{init:h.init,insert:h.insert}),jQuery(document).ready(window.SUG.App.init)},{}]},{},[1]);
2
+ //# sourceMappingURL=index.js.map
includes/js/generator/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["includes/js/generator/node_modules/browser-pack/_prelude.js","includes/js/generator/includes/js/generator/src/index.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","quot;,"$generator","$search","$filter","$filters","$choices","$choice","$settings","$prefix","$result","$selected","self","window","SUG","App","jQuery","children","find","state","mceSelection","target","wpActiveEditor","context","insertArgs","preview","timer","request","el","body","init","gp_hover_timer","click","filter","this","data","css","opacity","removeClass","regex","RegExp","each","match","preventDefault","on","val","html","hide","show","focus","magnificPopup","close","blur","keyup","$first","best","keyCode","trigger","id","shortcode","matches","name","desc","group","join","addClass","ajax","type","url","ajaxurl","action","beforeSend","success","$content","attr","index","$val","min","max","step","simpleSlider","snap","range","farbtastic","update","ids","source","$sources","images","$images","categories","$cats","tax","$taxes","terms","$terms","frame","$picker","$source","$addMedia","indexOf","parent","fadeOut","remove","wp","media","frames","su_media_frame_1","title","SUGL10n","isp_media_title","library","button","text","isp_media_insert","multiple","files","get","toJSON","append","open","sortable","revert","containment","tolerance","stop","$cont","parents","ajaxTermSelect","dataType","class","size","_typeof","abort","file","$button","stopPropagation","su_media_frame_2","upload_title","upload_insert","attachment","first","$field","toggleClass","hasClass","$icons","$value","$switch","value","su_generator_get_terms","noselect","$fields","$hoff","$voff","$blur","$color","cnt","wheel","split","replace","$width","$style","$cnt","_default","setSettings","insertShortcode","$preview","updatePreview","clearTimeout","setTimeout","$list","Date","getTime","prompt","presets_prompt_msg","presets_prompt_value","addPreset","$insert","$preset","removePreset","settings","getSettings","parseSettings","query","prefix","content","result","String","$this","is","toString","hasOwnProperty","forced","previous","cache","insert","args","preSelectedShortcode","mfpOptions","alignTop","closeOnBgClick","mainClass","items","src","callbacks","concat","tinyMCE","activeEditor","selection","getContent","format","last_used","editorID","editor","props","attributes","setAttributes","originalText","insertAtCaret","field","start","selectionStart","selectionEnd","substring","document","ready"],"mappings":"CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,mBAAAC,SAAAA,QAAA,IAAAF,GAAAC,EAAA,OAAAA,EAAAF,GAAA,GAAA,GAAAI,EAAA,OAAAA,EAAAJ,GAAA,GAAA,IAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,KAAA,MAAAK,EAAAE,KAAA,mBAAAF,EAAA,IAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,IAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAA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H,GAE7ED,EAAM1K,QAEN0K,EAAME,eAAiBD,EAAQ3G,EAAKnH,QAG/B,CACLgC,KAAMlB,EAAKkB,KACXqK,OAAQvL,EAAKuL,SAIjBnL,OAAOgN,UAAUC,MAAMpN,OAAOC,IAAIC,IAAIe","file":"index.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()","/* global jQuery, wp, ajaxurl, SUGL10n */\n\nwindow.SUG = {}\n\nwindow.SUG.App = (($) => {\n var $generator = $('#su-generator')\n var $search = $('#su-generator-search')\n var $filter = $('#su-generator-filter')\n var $filters = $filter.children('a')\n var $choices = $('#su-generator-choices')\n var $choice = $choices.find('span')\n var $settings = $('#su-generator-settings')\n var $prefix = $('#su-compatibility-mode-prefix')\n var $result = $('#su-generator-result')\n var $selected = $('#su-generator-selected')\n\n var self = {}\n\n self.state = {\n mceSelection: '',\n target: '',\n wpActiveEditor: null,\n context: '',\n insertArgs: '',\n preview: {\n timer: null,\n request: null\n }\n }\n\n self.el = {\n body: $('body')\n }\n\n self.init = () => {\n $filters.click(\n function (e) {\n // Prepare data\n var filter = $(this).data('filter')\n // If filter All, show all choices\n if (filter === 'all') {\n $choice.css(\n {\n opacity: 1\n }\n ).removeClass('su-generator-choice-first')\n } else { // Else run search\n var regex = new RegExp(filter, 'gi')\n // Hide all choices\n $choice.css({ opacity: 0.2 })\n // Find searched choices and show\n $choice.each(\n function () {\n // Get shortcode name\n var group = $(this).data('group')\n // Show choice if matched\n if (group.match(regex) !== null) {\n $(this)\n .css({ opacity: 1 })\n .removeClass('su-generator-choice-first')\n }\n }\n )\n }\n e.preventDefault()\n }\n )\n // Go to home link\n $('#su-generator').on(\n 'click',\n '.su-generator-home',\n function (e) {\n // Clear search field\n $search.val('')\n // Hide settings\n $settings.html('').hide()\n // Remove narrow class\n $generator.removeClass('su-generator-narrow')\n // Show filters\n $filter.show()\n // Show choices panel\n $choices.show()\n $choice.show()\n // Clear selection\n self.state.mceSelection = ''\n // Focus search field\n $search.focus()\n e.preventDefault()\n }\n )\n // Generator close button\n $('#su-generator').on(\n 'click',\n '.su-generator-close',\n function (e) {\n // Close popup\n $.magnificPopup.close()\n // Prevent default action\n e.preventDefault()\n }\n )\n // Search field\n $search.on(\n {\n focus: function () {\n // Clear field\n $(this).val('')\n // Hide settings\n $settings.html('').hide()\n // Remove narrow class\n $generator.removeClass('su-generator-narrow')\n // Show choices panel\n $choices.show()\n $choice.css(\n {\n opacity: 1\n }\n ).removeClass('su-generator-choice-first')\n // Show filters\n $filter.show()\n },\n blur: function () {},\n keyup: function (e) {\n // Prepare vars\n var $first = $('.su-generator-choice-first:first')\n var val = $(this).val()\n var regex = new RegExp(val, 'gi')\n var best = 0\n // Hotkey action\n if (e.keyCode === 13 && $first.length > 0) {\n e.preventDefault()\n $(this).val('').blur()\n $first.trigger('click')\n }\n // Hide all choices\n $choice.css(\n {\n opacity: 0.2\n }\n ).removeClass('su-generator-choice-first')\n // Loop and highlight choices\n $choice.each(\n function () {\n // Get choice data\n var data = $(this).data()\n var id = data.shortcode\n var name = data.name\n var desc = data.desc\n var group = data.group\n var matches = ([id, name, desc, group].join(' ')).match(regex)\n // Highlight choice if matched\n if (matches !== null) {\n // Highlight current choice\n $(this).css(\n {\n opacity: 1\n }\n )\n // Check for exact match\n if (val === id) {\n // Remove primary class from all choices\n $choice.removeClass('su-generator-choice-first')\n // Add primary class to the current choice\n $(this).addClass('su-generator-choice-first')\n // Prevent selecting by matches number\n best = 999\n } else if (matches.length > best) { // Check matches length\n // Remove primary class from all choices\n $choice.removeClass('su-generator-choice-first')\n // Add primary class to the current choice\n $(this).addClass('su-generator-choice-first')\n // Save the score\n best = matches.length\n }\n }\n }\n )\n // Remove primary class if search field is empty\n if (val === '') {\n $choice.removeClass('su-generator-choice-first')\n }\n }\n }\n )\n // Click on shortcode choice\n $choice.on(\n 'click',\n function (e) {\n // Prepare data\n var shortcode = $(this).data('shortcode')\n // Load shortcode options\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_settings',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Hide preview box\n $('#su-generator-preview').hide()\n // Hide choices panel\n $choices.hide()\n // Show loading animation\n $settings.addClass('su-generator-loading').show()\n // Add narrow class\n $generator.addClass('su-generator-narrow')\n // Hide filters\n $filter.hide()\n },\n success: function (data) {\n // Hide loading animation\n $settings.removeClass('su-generator-loading')\n // Insert new HTML\n $settings.html(data)\n // Apply selected text to the content field\n var $content = $('#su-generator-content')\n if (typeof self.state.mceSelection !== 'undefined' && self.state.mceSelection !== '' && $content.attr('type') !== 'hidden') {\n $content.val(self.state.mceSelection)\n }\n // Init range pickers\n $('.su-generator-range-picker').each(\n function (index) {\n var $picker = $(this)\n var $val = $picker.find('input')\n var min = $val.attr('min')\n var max = $val.attr('max')\n var step = $val.attr('step')\n // Apply noUIslider\n $val.simpleSlider(\n {\n snap: true,\n step: step,\n range: [min, max]\n }\n )\n $val.show()\n $val.on(\n 'keyup blur',\n function (e) {\n $val.simpleSlider('setValue', $val.val())\n }\n )\n }\n )\n // Init color pickers\n $('.su-generator-select-color').each(\n function (index) {\n $(this).find('.su-generator-select-color-wheel').filter(':first').farbtastic('.su-generator-select-color-value:eq(' + index + ')')\n $(this).find('.su-generator-select-color-value').focus(\n function () {\n $('.su-generator-select-color-wheel:eq(' + index + ')').show()\n }\n )\n $(this).find('.su-generator-select-color-value').blur(\n function () {\n $('.su-generator-select-color-wheel:eq(' + index + ')').hide()\n }\n )\n }\n )\n // Init image sourse pickers\n $('.su-generator-isp').each(\n function () {\n var $picker = $(this)\n var $sources = $picker.find('.su-generator-isp-sources')\n var $source = $picker.find('.su-generator-isp-source')\n var $addMedia = $picker.find('.su-generator-isp-add-media')\n var $images = $picker.find('.su-generator-isp-images')\n var $cats = $picker.find('.su-generator-isp-categories')\n var $taxes = $picker.find('.su-generator-isp-taxonomies')\n var $terms = $('.su-generator-isp-terms')\n var $val = $picker.find('.su-generator-attr')\n var frame\n // Update hidden value\n var update = function () {\n var val = 'none'\n var ids = ''\n var source = $sources.val()\n // Media library\n if (source === 'media') {\n var images = []\n $images.find('span').each(\n function (i) {\n images[i] = $(this).data('id')\n }\n )\n if (images.length > 0) {\n ids = images.join(',')\n }\n }\n // Category\n else if (source === 'category') {\n var categories = $cats.val() || []\n if (categories.length > 0) {\n ids = categories.join(',')\n }\n }\n // Taxonomy\n else if (source === 'taxonomy') {\n var tax = $taxes.val() || ''\n var terms = $terms.val() || []\n if (tax !== '0' && terms.length > 0) {\n val = 'taxonomy: ' + tax + '/' + terms.join(',')\n }\n }\n // Deselect\n else if (source === '0') {\n val = 'none'\n }\n // Other options\n else {\n val = source\n }\n if (ids !== '') {\n val = source + ': ' + ids\n }\n $val.val(val).trigger('change')\n }\n // Switch source\n $sources.on(\n 'change',\n function (e) {\n var source = $(this).val()\n e.preventDefault()\n $source.removeClass('su-generator-isp-source-open')\n if (source.indexOf(':') === -1) {\n $picker.find('.su-generator-isp-source-' + source).addClass('su-generator-isp-source-open')\n }\n update()\n }\n )\n // Remove image\n $images.on(\n 'click',\n 'span i',\n function () {\n $(this).parent('span').css('border-color', '#f03').fadeOut(\n 300,\n function () {\n $(this).remove()\n update()\n }\n )\n }\n )\n // Add image\n $addMedia.click(\n function (e) {\n e.preventDefault()\n if (typeof (frame) !== 'undefined') {\n frame.close()\n }\n frame = wp.media.frames.su_media_frame_1 = wp.media(\n {\n title: SUGL10n.isp_media_title,\n library: {\n type: 'image'\n },\n button: {\n text: SUGL10n.isp_media_insert\n },\n multiple: true\n }\n )\n frame.on('open', function () {\n $('.mfp-wrap').addClass('hidden')\n })\n frame.on('close', function () {\n $('.mfp-wrap').removeClass('hidden')\n })\n frame.on(\n 'select',\n function () {\n var files = frame.state().get('selection').toJSON()\n $images.find('em').remove()\n $.each(\n files,\n function (i) {\n $images.append('<span data-id=\"' + this.id + '\" title=\"' + this.title + '\"><img src=\"' + this.url + '\" alt=\"\" /><i class=\"sui sui-times\"></i></span>')\n }\n )\n update()\n }\n ).open()\n }\n )\n // Sort images\n $images.sortable(\n {\n revert: 200,\n containment: $picker,\n tolerance: 'pointer',\n stop: function () {\n update()\n }\n }\n )\n // Select categories and terms\n $cats.on('change', update)\n $terms.on('change', update)\n // Select taxonomy\n $taxes.on(\n 'change',\n function () {\n var $cont = $(this).parents('.su-generator-isp-source')\n var tax = $(this).val()\n // Remove terms\n $terms.hide().find('option').remove()\n update()\n // Taxonomy is not selected\n if (tax === '0') {\n\n } else { // Taxonomy selected\n var ajaxTermSelect = $.ajax(\n {\n url: ajaxurl,\n type: 'post',\n dataType: 'html',\n data: {\n action: 'su_generator_get_terms',\n tax: tax,\n class: 'su-generator-isp-terms',\n multiple: true,\n size: 10\n },\n beforeSend: function () {\n if (typeof ajaxTermSelect === 'object') {\n ajaxTermSelect.abort()\n }\n $terms.html('').attr('disabled', true).hide()\n $cont.addClass('su-generator-loading')\n },\n success: function (data) {\n $terms.html(data).attr('disabled', false).show()\n $cont.removeClass('su-generator-loading')\n }\n }\n )\n }\n }\n )\n }\n )\n // Init media buttons\n $('.su-generator-upload-button').each(\n function () {\n var $button = $(this)\n var $val = $(this).parents('.su-generator-attr-container').find('input:text')\n var file\n $button.on(\n 'click',\n function (e) {\n e.preventDefault()\n e.stopPropagation()\n // If the frame already exists, reopen it\n if (typeof (file) !== 'undefined') {\n file.close()\n }\n // Create WP media frame.\n file = wp.media.frames.su_media_frame_2 = wp.media(\n {\n // Title of media manager frame\n title: SUGL10n.upload_title,\n button: {\n // Button text\n text: SUGL10n.upload_insert\n },\n // Do not allow multiple files, if you want multiple, set true\n multiple: false\n }\n )\n // callback for selected image\n file.on(\n 'select',\n function () {\n var attachment = file.state().get('selection').first().toJSON()\n $val.val(attachment.url).trigger('change')\n }\n )\n file.on('open', function () {\n $('.mfp-wrap').addClass('hidden')\n })\n file.on('close', function () {\n $('.mfp-wrap').removeClass('hidden')\n })\n // Open modal\n file.open()\n }\n )\n }\n )\n // Init icon pickers\n $('.su-generator-icon-picker-button').each(\n function () {\n var $button = $(this)\n var $field = $(this).parents('.su-generator-attr-container')\n var $val = $field.find('.su-generator-attr')\n var $picker = $field.find('.su-generator-icon-picker')\n var $filter = $picker.find('input:text')\n $button.click(\n function (e) {\n $picker.toggleClass('su-generator-icon-picker-visible')\n $filter.val('').trigger('keyup')\n if ($picker.hasClass('su-generator-icon-picker-loaded')) {\n return\n }\n // Load icons\n $.ajax(\n {\n type: 'post',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_icons'\n },\n dataType: 'html',\n beforeSend: function () {\n // Show loading animation\n $picker.addClass('su-generator-loading')\n // Add loaded class\n $picker.addClass('su-generator-icon-picker-loaded')\n },\n success: function (data) {\n $picker.append(data)\n var $icons = $picker.children('i')\n $icons.click(\n function (e) {\n $val.val('icon: ' + $(this).attr('title'))\n $picker.removeClass('su-generator-icon-picker-visible')\n $val.trigger('change')\n e.preventDefault()\n }\n )\n $filter.on(\n {\n keyup: function () {\n var val = $(this).val()\n var regex = new RegExp(val, 'gi')\n // Hide all choices\n $icons.hide()\n // Find searched choices and show\n $icons.each(\n function () {\n // Get shortcode name\n var name = $(this).attr('title')\n // Show choice if matched\n if (name.match(regex) !== null) {\n $(this).show()\n }\n }\n )\n },\n focus: function () {\n $(this).val('')\n $icons.show()\n }\n }\n )\n $picker.removeClass('su-generator-loading')\n }\n }\n )\n e.preventDefault()\n }\n )\n }\n )\n // Init switches\n $('.su-generator-switch').click(\n function (e) {\n // Prepare data\n var $switch = $(this)\n var $value = $switch.parent().children('input')\n var isOn = $value.val() === 'yes'\n // Disable\n if (isOn) {\n // Change value\n $value.val('no').trigger('change')\n } else { // Enable\n // Change value\n $value.val('yes').trigger('change')\n }\n e.preventDefault()\n }\n )\n $('.su-generator-switch-value').on(\n 'change',\n function () {\n // Prepare data\n var $value = $(this)\n var $switch = $value.parent().children('.su-generator-switch')\n var value = $value.val()\n // Disable\n if (value === 'yes') {\n $switch.removeClass('su-generator-switch-no').addClass('su-generator-switch-yes')\n } else if (value === 'no') { // Enable\n $switch.removeClass('su-generator-switch-yes').addClass('su-generator-switch-no')\n }\n }\n )\n // Init tax_term selects\n $('select#su-generator-attr-taxonomy').on(\n 'change',\n function () {\n var $taxonomy = $(this)\n var tax = $taxonomy.val()\n var $terms = $('select#su-generator-attr-tax_term')\n // Load new options\n window.su_generator_get_terms = $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_terms',\n tax: tax,\n noselect: true\n },\n dataType: 'html',\n beforeSend: function () {\n // Check previous requests\n if (typeof window.su_generator_get_terms === 'object') {\n window.su_generator_get_terms.abort()\n }\n // Show loading animation\n $terms.parent().addClass('su-generator-loading')\n },\n success: function (data) {\n // Remove previous options\n $terms.find('option').remove()\n // Append new options\n $terms.append(data)\n // Hide loading animation\n $terms.parent().removeClass('su-generator-loading')\n }\n }\n )\n }\n )\n // Init shadow pickers\n $('.su-generator-shadow-picker').each(\n function (index) {\n var $picker = $(this)\n var $fields = $picker.find('.su-generator-shadow-picker-field input')\n var $hoff = $picker.find('.su-generator-sp-hoff')\n var $voff = $picker.find('.su-generator-sp-voff')\n var $blur = $picker.find('.su-generator-sp-blur')\n var $color = {\n cnt: $picker.find('.su-generator-shadow-picker-color'),\n value: $picker.find('.su-generator-shadow-picker-color-value'),\n wheel: $picker.find('.su-generator-shadow-picker-color-wheel')\n }\n var $val = $picker.find('.su-generator-attr')\n // Init color picker\n $color.wheel.farbtastic($color.value)\n $color.value.focus(\n function () {\n $color.wheel.show()\n }\n )\n $color.value.blur(\n function () {\n $color.wheel.hide()\n }\n )\n // Handle text fields\n $fields.on(\n 'change blur keyup',\n function () {\n $val.val($hoff.val() + 'px ' + $voff.val() + 'px ' + $blur.val() + 'px ' + $color.value.val()).trigger('change')\n }\n )\n $val.on(\n 'keyup',\n function () {\n var value = $(this).val().split(' ')\n // Value is correct\n if (value.length === 4) {\n $hoff.val(value[0].replace('px', ''))\n $voff.val(value[1].replace('px', ''))\n $blur.val(value[2].replace('px', ''))\n $color.value.val(value[3])\n $fields.trigger('keyup')\n }\n }\n )\n }\n )\n // Init border pickers\n $('.su-generator-border-picker').each(\n function (index) {\n var $picker = $(this)\n var $fields = $picker.find('.su-generator-border-picker-field input, .su-generator-border-picker-field select')\n var $width = $picker.find('.su-generator-bp-width')\n var $style = $picker.find('.su-generator-bp-style')\n var $color = {\n cnt: $picker.find('.su-generator-border-picker-color'),\n value: $picker.find('.su-generator-border-picker-color-value'),\n wheel: $picker.find('.su-generator-border-picker-color-wheel')\n }\n var $val = $picker.find('.su-generator-attr')\n // Init color picker\n $color.wheel.farbtastic($color.value)\n $color.value.focus(\n function () {\n $color.wheel.show()\n }\n )\n $color.value.blur(\n function () {\n $color.wheel.hide()\n }\n )\n // Handle text fields\n $fields.on(\n 'change blur keyup',\n function () {\n $val.val($width.val() + 'px ' + $style.val() + ' ' + $color.value.val()).trigger('change')\n }\n )\n $val.on(\n 'keyup',\n function () {\n var value = $(this).val().split(' ')\n // Value is correct\n if (value.length === 3) {\n $width.val(value[0].replace('px', ''))\n $style.val(value[1])\n $color.value.val(value[2])\n $fields.trigger('keyup')\n }\n }\n )\n }\n )\n // Remove skip class when setting is changed\n $settings.find('.su-generator-attr').on(\n 'change keyup blur',\n function () {\n var $cnt = $(this).parents('.su-generator-attr-container')\n var _default = $cnt.data('default')\n var val = $(this).val()\n // Value is changed\n if (val != _default) {\n $cnt.removeClass('su-generator-skip')\n } else {\n $cnt.addClass('su-generator-skip')\n }\n }\n )\n // Init value setters\n $('.su-generator-set-value').click(\n function (e) {\n $(this).parents('.su-generator-attr-container').find('input').val($(this).text()).trigger('change')\n }\n )\n // Save selected value\n $selected.val(shortcode)\n // Load last used preset\n $.ajax(\n {\n type: 'GET',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_preset',\n id: 'last_used',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Show loading animation\n // $settings.addClass('su-generator-loading');\n },\n success: function (data) {\n // Remove loading animation\n // $settings.removeClass('su-generator-loading');\n // Set new settings\n self.setSettings(data)\n // Apply selected text to the content field\n var $content = $('#su-generator-content')\n if (typeof self.state.mceSelection !== 'undefined' && self.state.mceSelection !== '' && $content.attr('type') !== 'hidden') {\n $content.val(self.state.mceSelection)\n }\n },\n dataType: 'json'\n }\n )\n },\n dataType: 'html'\n }\n )\n }\n )\n // Insert shortcode\n $('#su-generator').on('click', '.su-generator-insert', self.insertShortcode)\n // Preview shortcode\n $('#su-generator').on(\n 'click',\n '.su-generator-toggle-preview',\n function (e) {\n // Prepare data\n var $preview = $('#su-generator-preview')\n var $button = $(this)\n // Hide button\n $button.hide()\n // Show preview box\n $preview.addClass('su-generator-loading').show()\n // Bind updating on settings changes\n $settings.find('input, textarea, select').on(\n 'change keyup blur',\n function () {\n self.updatePreview()\n }\n )\n // Update preview box\n self.updatePreview(true)\n // Prevent default action\n e.preventDefault()\n }\n )\n var gp_hover_timer\n // Presets manager - mouseenter\n $('#su-generator').on(\n 'mouseenter click',\n '.su-generator-presets',\n function () {\n clearTimeout(gp_hover_timer)\n $('.su-gp-popup').show()\n }\n )\n // Presets manager - mouseleave\n $('#su-generator').on(\n 'mouseleave',\n '.su-generator-presets',\n function () {\n gp_hover_timer = window.setTimeout(\n function () {\n $('.su-gp-popup').fadeOut(200)\n },\n 600\n )\n }\n )\n // Presets manager - add new preset\n $('#su-generator').on(\n 'click',\n '.su-gp-new',\n function (e) {\n // Prepare data\n var $container = $(this).parents('.su-generator-presets')\n var $list = $('.su-gp-list')\n var id = new Date().getTime()\n // Ask for preset name\n var name = prompt(SUGL10n.presets_prompt_msg, SUGL10n.presets_prompt_value)\n // Name is entered\n if (name !== '' && name !== null) {\n // Hide default text\n $list.find('b').hide()\n // Add new option\n $list.append('<span data-id=\"' + id + '\"><em>' + name + '</em><i class=\"sui sui-times\"></i></span>')\n // Perform AJAX request\n self.addPreset(id, name)\n }\n }\n )\n // Presets manager - load preset\n $('#su-generator').on(\n 'click',\n '.su-gp-list span',\n function (e) {\n // Prepare data\n var shortcode = $('.su-generator-presets').data('shortcode')\n var id = $(this).data('id')\n var $insert = $('.su-generator-insert')\n // Hide popup\n $('.su-gp-popup').hide()\n // Disable hover timer\n clearTimeout(gp_hover_timer)\n // Get the preset\n $.ajax(\n {\n type: 'GET',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_preset',\n id: id,\n shortcode: shortcode\n },\n beforeSend: function () {\n // Disable insert button\n $insert.addClass('button-primary-disabled').attr('disabled', true)\n },\n success: function (data) {\n // Enable insert button\n $insert.removeClass('button-primary-disabled').attr('disabled', false)\n // Set new settings\n self.setSettings(data)\n },\n dataType: 'json'\n }\n )\n // Prevent default action\n e.preventDefault()\n e.stopPropagation()\n }\n )\n // Presets manager - remove preset\n $('#su-generator').on(\n 'click',\n '.su-gp-list i',\n function (e) {\n // Prepare data\n var $list = $(this).parents('.su-gp-list')\n var $preset = $(this).parent('span')\n var id = $preset.data('id')\n // Remove DOM element\n $preset.remove()\n // Show default text if last preset was removed\n if ($list.find('span').length < 1) {\n $list.find('b').show()\n }\n // Perform ajax request\n self.removePreset(id)\n // Prevent <span> action\n e.stopPropagation()\n // Prevent default action\n e.preventDefault()\n }\n )\n }\n\n /**\n\t * Create new preset with specified name from current settings\n\t */\n self.addPreset = function (id, name) {\n // Prepare shortcode name and current settings\n var shortcode = $('.su-generator-presets').data('shortcode')\n var settings = self.getSettings()\n // Perform AJAX request\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_add_preset',\n id: id,\n name: name,\n shortcode: shortcode,\n settings: settings\n }\n }\n )\n }\n /**\n\t * Remove preset by ID\n\t */\n self.removePreset = function (id) {\n // Get current shortcode name\n var shortcode = $('.su-generator-presets').data('shortcode')\n // Perform AJAX request\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_remove_preset',\n id: id,\n shortcode: shortcode\n }\n }\n )\n }\n\n self.parseSettings = function () {\n // Prepare data\n var query = $selected.val()\n var prefix = $prefix.val()\n var $settings = $('#su-generator-settings .su-generator-attr-container:not(.su-generator-skip) .su-generator-attr')\n var $content = $('textarea#su-generator-content')\n var content = $content.length ? $content.val() : 'false'\n var result = new String('')\n // Open shortcode\n result += '[' + prefix + query\n // Add shortcode attributes\n $settings.each(\n function () {\n // Prepare field and value\n var $this = $(this)\n var value = ''\n // Selects\n if ($this.is('select')) {\n value = $this.find('option:selected').val()\n }\n // Other fields\n else {\n value = $this.val()\n }\n // Check that value is not empty\n if (value == null) {\n value = ''\n } else if (typeof value === 'array') {\n value = value.join(',')\n }\n // Add attribute\n if (value !== '') {\n result += ' ' + $(this).attr('name') + '=\"' + $(this).val().toString().replace(/\"/gi, \"'\") + '\"'\n }\n }\n )\n // End of opening tag\n result += ']'\n // Wrap shortcode if content presented\n if (content != 'false') {\n result += content + '[/' + prefix + query + ']'\n }\n // Return result\n return result\n }\n\n self.getSettings = function () {\n // Prepare data\n var query = $selected.val()\n var $settings = $('#su-generator-settings .su-generator-attr')\n var $content = $('textarea#su-generator-content')\n var content = $content.length ? $content.val() : 'false'\n var data = {}\n // Add shortcode attributes\n $settings.each(\n function (i) {\n // Prepare field and value\n var $this = $(this)\n var value = ''\n var name = $this.attr('name')\n // Selects\n if ($this.is('select')) {\n value = $this.find('option:selected').val()\n }\n // Other fields\n else {\n value = $this.val()\n }\n // Check that value is not empty\n if (value == null) {\n value = ''\n }\n // Save value\n data[name] = value\n }\n )\n // Add content\n data.content = content.toString()\n // Return data\n return data\n }\n\n self.setSettings = function (data) {\n // Prepare data\n var $settings = $('#su-generator-settings .su-generator-attr')\n var $content = $('#su-generator-content')\n // Loop through settings\n $settings.each(\n function () {\n var $this = $(this)\n var name = $this.attr('name')\n // Data contains value for this field\n if (data.hasOwnProperty(name)) {\n // Set new value\n $this.val(data[name])\n $this.trigger('keyup').trigger('change').trigger('blur')\n }\n }\n )\n // Set content\n if (data.hasOwnProperty('content')) {\n $content.val(data.content).trigger('keyup').trigger('change').trigger('blur')\n }\n // Update preview\n self.updatePreview()\n }\n\n self.updatePreview = function (forced) {\n // Prepare data\n var $preview = $('#su-generator-preview')\n var shortcode = self.parseSettings()\n var previous = $result.text()\n // Check forced mode\n forced = forced || false\n // Break if preview box is hidden (preview isn't enabled)\n if (!$preview.is(':visible')) {\n return\n }\n // Check shortcode is changed is this is not a forced mode\n if (shortcode === previous && !forced) {\n return\n }\n // Run timer to filter often calls\n window.clearTimeout(self.state.preview.timer)\n self.state.preview.timer = window.setTimeout(\n function () {\n self.state.preview.request = $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n cache: false,\n data: {\n action: 'su_generator_preview',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Abort previous requests\n if (self.state.preview.request) {\n self.state.preview.request.abort()\n }\n // Show loading animation\n $preview.addClass('su-generator-loading').html('')\n },\n success: function (data) {\n // Hide loading animation and set new HTML\n $preview.html(data).removeClass('su-generator-loading')\n },\n dataType: 'html'\n }\n )\n },\n 300\n )\n // Save shortcode to div\n $result.text(shortcode)\n }\n\n self.insert = function (context, args) {\n if (typeof context !== 'string' || typeof args !== 'object') {\n return\n }\n\n self.state.context = context\n self.state.insertArgs = args\n\n var preSelectedShortcode = args.shortcode || ''\n\n var mfpOptions = {\n type: 'inline',\n alignTop: true,\n closeOnBgClick: false,\n mainClass: 'su-generator-mfp',\n items: {\n src: '#su-generator'\n },\n callbacks: {}\n }\n\n mfpOptions.callbacks.open = () => {\n if (preSelectedShortcode) {\n $choice.filter(`[data-shortcode=\"${preSelectedShortcode}\"]`).trigger('click')\n } else {\n window.setTimeout(() => $search.focus(), 200)\n }\n\n // self.el.body.addClass( 'su-mfp-shown' );\n\n if (\n typeof tinyMCE !== 'undefined' &&\n\t\t\t\ttinyMCE.activeEditor != null &&\n\t\t\t\ttinyMCE.activeEditor.hasOwnProperty('selection')\n ) {\n self.state.mceSelection = tinyMCE.activeEditor.selection.getContent({ format: 'text' })\n }\n }\n\n mfpOptions.callbacks.close = () => {\n $search.val('')\n $settings.html('').hide()\n $generator.removeClass('su-generator-narrow')\n $filter.show()\n $choices.show()\n $choice.show()\n\n self.state.mceSelection = ''\n\n // self.el.body.removeClass( 'su-mfp-shown' );\n }\n\n $.magnificPopup.open(mfpOptions)\n }\n\n self.insertShortcode = function () {\n var shortcode = self.parseSettings()\n\n self.addPreset('last_used', SUGL10n.last_used)\n\n $.magnificPopup.close()\n\n $result.text(shortcode)\n\n if (self.state.context === 'classic') {\n self.state.wpActiveEditor = window.wpActiveEditor\n window.wpActiveEditor = self.state.insertArgs.editorID\n window.wp.media.editor.insert(shortcode)\n window.wpActiveEditor = self.state.wpActiveEditor\n } else if (self.state.context === 'block') {\n var props = self.state.insertArgs.props\n\n if (props.attributes.hasOwnProperty('content')) {\n props.setAttributes({ content: props.attributes.content + shortcode })\n } else if (props.name === 'core/shortcode') {\n var originalText = props.attributes.hasOwnProperty('text')\n ? props.attributes.text\n : ''\n\n props.setAttributes({ text: originalText + shortcode })\n\n // var textarea = document.querySelector( `#block-${props.clientId} textarea` );\n // self.insertAtCaret( textarea, shortcode );\n }\n }\n }\n\n self.insertAtCaret = (field, text) => {\n var start = field.selectionStart\n var end = field.selectionEnd\n\n field.value = field.value.substring(0, start) + text + field.value.substring(start)\n\n field.focus()\n\n field.selectionStart = start + text.length\n }\n\n return {\n init: self.init,\n insert: self.insert\n }\n})(jQuery)\n\njQuery(document).ready(window.SUG.App.init)\n"]}
includes/js/shortcodes/index.js CHANGED
@@ -1 +1,2 @@
1
- jQuery(document).ready(function(i){i(".su-lightbox-gallery").each(function(){var t=[];i(this).find(".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide").each(function(e){i(this).attr("data-index",e),t.push({src:i(this).children("a").attr("href"),title:i(this).children("a").attr("title")})}),i(this).data("slides",t)}),i(".su-slider").each(function(){var e=i(this),t=e.swiper({wrapperClass:"su-slider-slides",slideClass:"su-slider-slide",slideActiveClass:"su-slider-slide-active",slideVisibleClass:"su-slider-slide-visible",pagination:"#"+e.attr("id")+" .su-slider-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),calculateHeight:e.hasClass("su-slider-responsive-yes"),loop:!0});e.find(".su-slider-prev").click(function(e){t.swipeNext()}),e.find(".su-slider-next").click(function(e){t.swipePrev()})}),i(".su-carousel").each(function(){var e=i(this),t=e.find(".su-carousel-slide"),a=e.swiper({wrapperClass:"su-carousel-slides",slideClass:"su-carousel-slide",slideActiveClass:"su-carousel-slide-active",slideVisibleClass:"su-carousel-slide-visible",pagination:"#"+e.attr("id")+" .su-carousel-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),slidesPerView:e.data("items")>t.length?t.length:e.data("items"),slidesPerGroup:e.data("scroll"),calculateHeight:e.hasClass("su-carousel-responsive-yes"),loop:!0});e.find(".su-carousel-prev").click(function(e){a.swipeNext()}),e.find(".su-carousel-next").click(function(e){a.swipePrev()})}),i(".su-lightbox-gallery").on("click",".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide",function(e){e.preventDefault();var t=i(this).parents(".su-lightbox-gallery").data("slides");i.magnificPopup.open({items:t,type:"image",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading},i(this).data("index"))})}),jQuery(document).ready(function(l){l(".su-audio").each(function(){var t=l(this),e="#"+t.data("id"),a=l(e),i=t.data("audio"),s=t.data("swf");a.jPlayer({ready:function(e){a.jPlayer("setMedia",{mp3:i}),"yes"===t.data("autoplay")&&a.jPlayer("play"),"yes"===t.data("loop")&&a.bind(l.jPlayer.event.ended+".repeat",function(){a.jPlayer("play")})},cssSelectorAncestor:e+"_container",volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp3"})}),l(".su-video").each(function(){var t=l(this),e=t.attr("id"),a=l("#"+e+"_player"),i=t.data("video"),s=t.data("swf"),n=t.data("poster"),o={width:a.width(),height:a.height()};a.jPlayer({ready:function(e){a.jPlayer("setMedia",{mp4:i,flv:i,poster:n}),"yes"===t.data("autoplay")&&a.jPlayer("play"),"yes"===t.data("loop")&&a.bind(l.jPlayer.event.ended+".repeat",function(){a.jPlayer("play")})},cssSelector:{gui:".jp-gui, .jp-title"},size:o,cssSelectorAncestor:"#"+e,volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp4, flv"})})}),jQuery(document).ready(function(r){var e;function t(){""!==document.location.hash&&(r(".su-tabs-nav span[data-anchor]").each(function(){if("#"+r(this).data("anchor")===document.location.hash){var e=r(this).parents(".su-tabs"),t=0<r("#wpadminbar").length?28:0;r(this).trigger("click"),window.setTimeout(function(){r(window).scrollTop(e.offset().top-t-10)},100)}}),r(".su-spoiler[data-anchor]").each(function(){if("#"+r(this).data("anchor")===document.location.hash){var e=r(this),t=0<r("#wpadminbar").length?28:0;e.hasClass("su-spoiler-closed")&&e.find(".su-spoiler-title:first").trigger("click"),window.setTimeout(function(){r(window).scrollTop(e.offset().top-t-10)},100)}}))}r("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-spoiler-title",function(e){var t=r(this),a=t.parent(),i=0<r("#wpadminbar").length?28:0;a.toggleClass("su-spoiler-closed"),a.parent(".su-accordion").children(".su-spoiler").not(a).addClass("su-spoiler-closed"),r(window).scrollTop()>t.offset().top&&r(window).scrollTop(t.offset().top-t.height()-i),e.preventDefault()}),r("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-tabs-nav span",function(e){var t=r(this),a=t.data(),i=t.index(),s=t.hasClass("su-tabs-disabled"),n=t.parent(".su-tabs-nav").children("span"),o=t.parents(".su-tabs").find(".su-tabs-pane"),l=o.eq(i).find(".su-gmap:not(.su-gmap-reloaded)");if(s)return!1;o.removeClass("su-tabs-pane-open").eq(i).addClass("su-tabs-pane-open"),n.removeClass("su-tabs-current").eq(i).addClass("su-tabs-current"),0<l.length&&l.each(function(){var e=r(this).find("iframe:first");r(this).addClass("su-gmap-reloaded"),e.attr("src",e.attr("src"))}),""!==a.url&&("self"===a.target?window.location=a.url:"blank"===a.target&&window.open(a.url)),e.preventDefault()}),r(".su-tabs").each(function(){var e=parseInt(r(this).data("active"))-1;r(this).children(".su-tabs-nav").children("span").eq(e).trigger("click")}),t(),r(document).on("click",".su-lightbox",function(e){if(e.preventDefault(),e.stopPropagation(),"su-generator-preview"!==r(this).parent().attr("id")){var t=r(this).data("mfp-type"),a=r(this).data("mobile"),i=r(window).width();r(this).magnificPopup({disableOn:function(){return!("no"===a&&i<768)&&!("number"==typeof a&&i<a)},type:t,tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading,gallery:{tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},image:{tError:SUShortcodesL10n.magnificPopup.error},ajax:{tError:SUShortcodesL10n.magnificPopup.error}}).magnificPopup("open")}else r(this).html(SUShortcodesL10n.noPreview)}),r(".su-frame-align-center, .su-frame-align-none").each(function(){var e=r(this).find("img").width();r(this).css("width",e+12)}),r(".su-tooltip").each(function(){var e=r(this),t=e.find(".su-tooltip-content"),a=0<t.length,i=e.data(),s={style:{classes:i.classes},position:{my:i.my,at:i.at,viewport:r(window)},content:{title:"",text:""}};""!==i.title&&(s.content.title=i.title),s.content.text=a?t:e.attr("title"),"yes"===i.close&&(s.content.button=!0),"click"===i.behavior?(s.show="click",s.hide="click",e.on("click",function(e){e.preventDefault(),e.stopPropagation()}),r(window).on("scroll resize",function(){e.qtip("reposition")})):"always"===i.behavior?(s.show=!0,s.hide=!1,r(window).on("scroll resize",function(){e.qtip("reposition")})):"hover"===i.behavior&&a&&(s.hide={fixed:!0,delay:600}),e.qtip(s)}),r("body:not(.su-other-shortcodes-loaded)").on("click",".su-expand-link",function(){var e=r(this).parents(".su-expand"),t=e.children(".su-expand-content");e.hasClass("su-expand-collapsed")?t.css("max-height","none"):t.css("max-height",e.data("height")+"px"),e.toggleClass("su-expand-collapsed")}),void 0!==(e=(document.body||document.documentElement).style).transition||void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.MsTransition||void 0!==e.OTransition?r(".su-animate").each(function(){r(this).one("inview",function(e){var t=r(this),a=t.data();window.setTimeout(function(){t.addClass(a.animation),t.addClass("animated"),t.css("visibility","visible")},1e3*a.delay)})}):r(".su-animate").css("visibility","visible"),"onhashchange"in window&&r(window).on("hashchange",t),r("body").addClass("su-other-shortcodes-loaded")}),window.SUImageCarousel=function(){var n={MFPItems:{},MFPL10n:SUShortcodesL10n.magnificPopup,initGalleries:function(){var e=document.querySelectorAll(".su-image-carousel");Array.prototype.forEach.call(e,n.initGallery)},initGallery:function(e){if(!e.classList.contains("su-image-carousel-ready")){var t=JSON.parse(e.getAttribute("data-flickity-options")),a=new Flickity(e,t);if(e.removeAttribute("tabindex"),a.on("settle",n.onGallerySettle),e.classList.contains("su-image-carousel-has-lightbox")){a.on("staticClick",n.onFlickityStaticClick),e.addEventListener("click",n.preventGalleryLinkClick),e.addEventListener("keyup",n.onGalleryKeyUp);var i=e.getAttribute("id"),s=e.querySelectorAll(".su-image-carousel-item-content > a");n.MFPItems[i]=[],Array.prototype.forEach.call(s,function(e,t){e.setAttribute("data-gallery",i),e.setAttribute("data-index",t),n.MFPItems[i].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})}e.classList.add("su-image-carousel-ready")}},onFlickityStaticClick:function(e,t,a,i){if(a){var s=a.querySelector("a");s&&n.openMagnificPopupFromLink(s)}},onGallerySettle:function(e){var t=this.element.querySelectorAll(".su-image-carousel-item");Array.prototype.forEach.call(t,function(e,t){var a=e.querySelectorAll("a")[0];a&&(a.setAttribute("tabindex",-1),e.classList.contains("is-selected")&&a.setAttribute("tabindex",0))})},preventGalleryLinkClick:function(e){n.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()})&&e.preventDefault()},onGalleryKeyUp:function(e){if(e.keyCode&&13===e.keyCode){var t=n.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()});t&&n.openMagnificPopupFromLink(t)}},openMagnificPopup:function(e,t){jQuery.magnificPopup.open({items:n.MFPItems[e],type:"image",mainClass:"mfp-img-mobile su-image-carousel-mfp",gallery:{enabled:!0,navigateByImgClick:!0,preload:[1,1],tPrev:n.MFPL10n.prev,tNext:n.MFPL10n.next,tCounter:n.MFPL10n.counter},tClose:n.MFPL10n.close,tLoading:n.MFPL10n.loading},t)},openMagnificPopupFromLink:function(e){var t=e.getAttribute("data-gallery"),a=parseInt(e.getAttribute("data-index"),10);n.openMagnificPopup(t,a)},closest:function(e,t){return e&&(t(e)?e:n.closest(e.parentNode,t))},ready:function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}};return{ready:n.ready,initGalleries:n.initGalleries,initGallery:n.initGallery}}(),jQuery(document).ready(function(){SUImageCarousel.initGalleries()});
1
+ !function o(n,r,l){function c(t,e){if(!r[t]){if(!n[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(u)return u(t,!0);var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}var s=r[t]={exports:{}};n[t][0].call(s.exports,function(e){return c(n[t][1][e]||e)},s,s.exports,o,n,r,l)}return r[t].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,t,i){"use strict";var a=r(e("./shortcodes/galleries")),s=r(e("./shortcodes/players")),o=r(e("./shortcodes/other")),n=r(e("./shortcodes/image-carousel"));function r(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(),(0,s.default)(),(0,o.default)(),(0,n.default)()},{"./shortcodes/galleries":2,"./shortcodes/image-carousel":3,"./shortcodes/other":4,"./shortcodes/players":5}],2:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(a){a(".su-lightbox-gallery").each(function(){var t=[];a(this).find(".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide").each(function(e){a(this).attr("data-index",e),t.push({src:a(this).children("a").attr("href"),title:a(this).children("a").attr("title")})}),a(this).data("slides",t)}),a(".su-slider").each(function(){var e=a(this),t=e.swiper({wrapperClass:"su-slider-slides",slideClass:"su-slider-slide",slideActiveClass:"su-slider-slide-active",slideVisibleClass:"su-slider-slide-visible",pagination:"#"+e.attr("id")+" .su-slider-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),calculateHeight:e.hasClass("su-slider-responsive-yes"),loop:!0});e.find(".su-slider-prev").click(function(e){t.swipeNext()}),e.find(".su-slider-next").click(function(e){t.swipePrev()})}),a(".su-carousel").each(function(){var e=a(this),t=e.find(".su-carousel-slide"),i=e.swiper({wrapperClass:"su-carousel-slides",slideClass:"su-carousel-slide",slideActiveClass:"su-carousel-slide-active",slideVisibleClass:"su-carousel-slide-visible",pagination:"#"+e.attr("id")+" .su-carousel-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),slidesPerView:e.data("items")>t.length?t.length:e.data("items"),slidesPerGroup:e.data("scroll"),calculateHeight:e.hasClass("su-carousel-responsive-yes"),loop:!0});e.find(".su-carousel-prev").click(function(e){i.swipeNext()}),e.find(".su-carousel-next").click(function(e){i.swipePrev()})}),a(".su-lightbox-gallery").on("click",".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide",function(e){e.preventDefault();var t=a(this).parents(".su-lightbox-gallery").data("slides");a.magnificPopup.open({items:t,type:"image",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading},a(this).data("index"))})})}},{}],3:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){window.SUImageCarousel=function(){var o={MFPItems:{},MFPL10n:SUShortcodesL10n.magnificPopup,initGalleries:function(){var e=document.querySelectorAll(".su-image-carousel");Array.prototype.forEach.call(e,o.initGallery)},initGallery:function(e){if(!e.classList.contains("su-image-carousel-ready")){var t=JSON.parse(e.getAttribute("data-flickity-options")),i=new Flickity(e,t);if(e.removeAttribute("tabindex"),i.on("settle",o.onGallerySettle),e.classList.contains("su-image-carousel-has-lightbox")){i.on("staticClick",o.onFlickityStaticClick),e.addEventListener("click",o.preventGalleryLinkClick),e.addEventListener("keyup",o.onGalleryKeyUp);var a=e.getAttribute("id"),s=e.querySelectorAll(".su-image-carousel-item-content > a");o.MFPItems[a]=[],Array.prototype.forEach.call(s,function(e,t){e.setAttribute("data-gallery",a),e.setAttribute("data-index",t),o.MFPItems[a].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})}e.classList.add("su-image-carousel-ready")}},onFlickityStaticClick:function(e,t,i,a){if(i){var s=i.querySelector("a");s&&o.openMagnificPopupFromLink(s)}},onGallerySettle:function(e){var t=this.element.querySelectorAll(".su-image-carousel-item");Array.prototype.forEach.call(t,function(e,t){var i=e.querySelectorAll("a")[0];i&&(i.setAttribute("tabindex",-1),e.classList.contains("is-selected")&&i.setAttribute("tabindex",0))})},preventGalleryLinkClick:function(e){o.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()})&&e.preventDefault()},onGalleryKeyUp:function(e){if(e.keyCode&&13===e.keyCode){var t=o.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()});t&&o.openMagnificPopupFromLink(t)}},openMagnificPopup:function(e,t){jQuery.magnificPopup.open({items:o.MFPItems[e],type:"image",mainClass:"mfp-img-mobile su-image-carousel-mfp",gallery:{enabled:!0,navigateByImgClick:!0,preload:[1,1],tPrev:o.MFPL10n.prev,tNext:o.MFPL10n.next,tCounter:o.MFPL10n.counter},tClose:o.MFPL10n.close,tLoading:o.MFPL10n.loading},t)},openMagnificPopupFromLink:function(e){var t=e.getAttribute("data-gallery"),i=parseInt(e.getAttribute("data-index"),10);o.openMagnificPopup(t,i)},closest:function(e,t){return e&&(t(e)?e:o.closest(e.parentNode,t))},ready:function(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}};return{ready:o.ready,initGalleries:o.initGalleries,initGallery:o.initGallery}}(),jQuery(document).ready(function(){window.SUImageCarousel.initGalleries()})}},{}],4:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(l){var e;function t(){""!==document.location.hash&&(l(".su-tabs-nav span[data-anchor]").each(function(){if("#"+l(this).data("anchor")===document.location.hash){var e=l(this).parents(".su-tabs"),t=0<l("#wpadminbar").length?28:0;l(this).trigger("click"),window.setTimeout(function(){l(window).scrollTop(e.offset().top-t-10)},100)}}),l(".su-spoiler[data-anchor]").each(function(){if("#"+l(this).data("anchor")===document.location.hash){var e=l(this),t=0<l("#wpadminbar").length?28:0;e.hasClass("su-spoiler-closed")&&e.find(".su-spoiler-title:first").trigger("click"),window.setTimeout(function(){l(window).scrollTop(e.offset().top-t-10)},100)}}))}l("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-spoiler-title",function(e){var t=l(this),i=t.parent(),a=0<l("#wpadminbar").length?28:0;i.toggleClass("su-spoiler-closed"),i.parent(".su-accordion").children(".su-spoiler").not(i).addClass("su-spoiler-closed"),l(window).scrollTop()>t.offset().top&&l(window).scrollTop(t.offset().top-t.height()-a),e.preventDefault()}),l("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-tabs-nav span",function(e){var t=l(this),i=t.data(),a=t.index(),s=t.hasClass("su-tabs-disabled"),o=t.parent(".su-tabs-nav").children("span"),n=t.parents(".su-tabs").find(".su-tabs-pane"),r=n.eq(a).find(".su-gmap:not(.su-gmap-reloaded)");if(s)return!1;n.removeClass("su-tabs-pane-open").eq(a).addClass("su-tabs-pane-open"),o.removeClass("su-tabs-current").eq(a).addClass("su-tabs-current"),0<r.length&&r.each(function(){var e=l(this).find("iframe:first");l(this).addClass("su-gmap-reloaded"),e.attr("src",e.attr("src"))}),""!==i.url&&("self"===i.target?window.location=i.url:"blank"===i.target&&window.open(i.url)),e.preventDefault()}),l(".su-tabs").each(function(){var e=parseInt(l(this).data("active"))-1;l(this).children(".su-tabs-nav").children("span").eq(e).trigger("click")}),t(),l(document).on("click",".su-lightbox",function(e){if(e.preventDefault(),e.stopPropagation(),"su-generator-preview"!==l(this).parent().attr("id")){var t=l(this).data("mfp-type"),i=l(this).data("mobile"),a=l(window).width();l(this).magnificPopup({disableOn:function(){return!("no"===i&&a<768)&&!("number"==typeof i&&a<i)},type:t,tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading,gallery:{tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},image:{tError:SUShortcodesL10n.magnificPopup.error},ajax:{tError:SUShortcodesL10n.magnificPopup.error}}).magnificPopup("open")}else l(this).html(SUShortcodesL10n.noPreview)}),l(".su-frame-align-center, .su-frame-align-none").each(function(){var e=l(this).find("img").width();l(this).css("width",e+12)}),l(".su-tooltip").each(function(){var e=l(this),t=e.find(".su-tooltip-content"),i=0<t.length,a=e.data(),s={style:{classes:a.classes},position:{my:a.my,at:a.at,viewport:l(window)},content:{title:"",text:""}};""!==a.title&&(s.content.title=a.title),s.content.text=i?t:e.attr("title"),"yes"===a.close&&(s.content.button=!0),"click"===a.behavior?(s.show="click",s.hide="click",e.on("click",function(e){e.preventDefault(),e.stopPropagation()}),l(window).on("scroll resize",function(){e.qtip("reposition")})):"always"===a.behavior?(s.show=!0,s.hide=!1,l(window).on("scroll resize",function(){e.qtip("reposition")})):"hover"===a.behavior&&i&&(s.hide={fixed:!0,delay:600}),e.qtip(s)}),l("body:not(.su-other-shortcodes-loaded)").on("click",".su-expand-link",function(){var e=l(this).parents(".su-expand"),t=e.children(".su-expand-content");e.hasClass("su-expand-collapsed")?t.css("max-height","none"):t.css("max-height",e.data("height")+"px"),e.toggleClass("su-expand-collapsed")}),void 0!==(e=(document.body||document.documentElement).style).transition||void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.MsTransition||void 0!==e.OTransition?l(".su-animate").each(function(){l(this).one("inview",function(e){var t=l(this),i=t.data();window.setTimeout(function(){t.addClass(i.animation),t.addClass("animated"),t.css("visibility","visible")},1e3*i.delay)})}):l(".su-animate").css("visibility","visible"),"onhashchange"in window&&l(window).on("hashchange",t),l("body").addClass("su-other-shortcodes-loaded")})}},{}],5:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(r){r(".su-audio").each(function(){var t=r(this),e="#"+t.data("id"),i=r(e),a=t.data("audio"),s=t.data("swf");i.jPlayer({ready:function(e){i.jPlayer("setMedia",{mp3:a}),"yes"===t.data("autoplay")&&i.jPlayer("play"),"yes"===t.data("loop")&&i.bind(r.jPlayer.event.ended+".repeat",function(){i.jPlayer("play")})},cssSelectorAncestor:e+"_container",volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp3"})}),r(".su-video").each(function(){var t=r(this),e=t.attr("id"),i=r("#"+e+"_player"),a=t.data("video"),s=t.data("swf"),o=t.data("poster"),n={width:i.width(),height:i.height()};i.jPlayer({ready:function(e){i.jPlayer("setMedia",{mp4:a,flv:a,poster:o}),"yes"===t.data("autoplay")&&i.jPlayer("play"),"yes"===t.data("loop")&&i.bind(r.jPlayer.event.ended+".repeat",function(){i.jPlayer("play")})},cssSelector:{gui:".jp-gui, .jp-title"},size:n,cssSelectorAncestor:"#"+e,volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp4, flv"})})})}},{}]},{},[1]);
2
+ //# sourceMappingURL=index.js.map
includes/js/shortcodes/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["includes/js/shortcodes/node_modules/browser-pack/_prelude.js","includes/js/shortcodes/includes/js/shortcodes/src/index.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/galleries.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/image-carousel.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/other.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/players.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","_galleries","_interopRequireDefault","_players","_other","_imageCarousel","default","jQuery","document","ready","quot;,"each","slides","this","find","attr","push","src","children","title","data","$slider","$swiper","swiper","wrapperClass","slideClass","slideActiveClass","slideVisibleClass","pagination","autoplay","paginationClickable","grabCursor","mode","mousewheelControl","speed","calculateHeight","hasClass","loop","click","swipeNext","swipePrev","$carousel","$slides","slidesPerView","slidesPerGroup","on","preventDefault","parents","magnificPopup","open","items","type","mainClass","gallery","enabled","navigateByImgClick","preload","tPrev","SUShortcodesL10n","prev","tNext","next","tCounter","counter","tClose","close","tLoading","loading","window","SUImageCarousel","self","MFPItems","MFPL10n","initGalleries","galleries","querySelectorAll","Array","prototype","forEach","initGallery","classList","contains","flickityOptions","JSON","parse","getAttribute","flckty","Flickity","removeAttribute","onGallerySettle","onFlickityStaticClick","addEventListener","preventGalleryLinkClick","onGalleryKeyUp","galleryID","item","itemIndex","setAttribute","add","event","pointer","cellElement","cellIndex","clickedLink","querySelector","openMagnificPopupFromLink","index","element","link","closest","target","el","tagName","toUpperCase","keyCode","openMagnificPopup","linkEl","parseInt","fn","parentNode","readyState","thisStyle","anchor_nav","location","hash","$tabs","bar","trigger","setTimeout","scrollTop","offset","top","$spoiler","$title","parent","toggleClass","not","addClass","height","$tab","is_disabled","$panes","$gmaps","eq","removeClass","$iframe","url","active","stopPropagation","mobile","windowWidth","width","disableOn","image","tError","error","ajax","html","noPreview","frame_width","css","$tt","$content","is_advanced","config","style","classes","position","my","at","viewport","content","text","button","behavior","show","hide","qtip","fixed","delay","$container","undefined","body","documentElement","transition","WebkitTransition","MozTransition","MsTransition","OTransition","one","$this","animation","selector","$player","audio","swf","jPlayer","mp3","bind","ended","cssSelectorAncestor","volume","keyEnabled","smoothPlayBar","swfPath","supplied","$video","id","file","poster","size","mp4","flv","cssSelector","gui"],"mappings":"CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,mBAAAC,SAAAA,QAAA,IAAAF,GAAAC,EAAA,OAAAA,EAAAF,GAAA,GAAA,GAAAI,EAAA,OAAAA,EAAAJ,GAAA,GAAA,IAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,KAAA,MAAAK,EAAAE,KAAA,mBAAAF,EAAA,IAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,IAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,OAAAD,EAAAG,GAAAS,QAAA,IAAA,IAAAL,EAAA,mBAAAD,SAAAA,QAAAH,EAAA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R,EAAW,aAChCS,OAAQ,EACRC,YAAY,EACZC,eAAe,EACfC,QAAST,EACTU,SAAU,UAIdnM,EAAE,aAAaC,KAAK,WAElB,IAAImM,EAASpM,EAAEG,MACXkM,EAAKD,EAAO/L,KAAK,MACjBkL,EAAUvL,EAAE,IAAMqM,EAAK,WACvBC,EAAOF,EAAO1L,KAAK,SACnB+K,EAAMW,EAAO1L,KAAK,OAClB6L,EAASH,EAAO1L,KAAK,UACrB8L,EAAO,CACT3D,MAAO0C,EAAQ1C,QACfb,OAAQuD,EAAQvD,UAGlBuD,EAAQG,QAAQ,CACd3L,MAAO,SAAU1B,GAEfkN,EAAQG,QAAQ,WAAY,CAC1Be,IAAKH,EACLI,IAAKJ,EACLC,OAAQA,IAGsB,QAA5BH,EAAO1L,KAAK,aAAuB6K,EAAQG,QAAQ,QAE3B,QAAxBU,EAAO1L,KAAK,SACd6K,EAAQK,KAAK5L,EAAE0L,QAAQjG,MAAMoG,MAAQ,UAAW,WAC9CN,EAAQG,QAAQ,WAItBiB,YAAa,CACXC,IAAK,sBAEPJ,KAAMA,EACNV,oBAAqB,IAAMO,EAC3BN,OAAQ,EACRC,YAAY,EACZC,eAAe,EACfC,QAAST,EACTU,SAAU","file":"index.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()","import SUGalleriesShortcodes from './shortcodes/galleries'\nimport SUPlayersShortcodes from './shortcodes/players'\nimport SUOtherShortcodes from './shortcodes/other'\nimport SUImageCarouselShortcode from './shortcodes/image-carousel'\n\nSUGalleriesShortcodes()\nSUPlayersShortcodes()\nSUOtherShortcodes()\nSUImageCarouselShortcode()\n","export default function SUGalleriesShortcodes () {\n jQuery(document).ready(function ($) {\n // Prepare items arrays for lightbox\n $('.su-lightbox-gallery').each(function () {\n var slides = []\n $(this)\n .find('.su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide')\n .each(function (i) {\n $(this).attr('data-index', i)\n slides.push({\n src: $(this)\n .children('a')\n .attr('href'),\n title: $(this)\n .children('a')\n .attr('title')\n })\n })\n $(this).data('slides', slides)\n })\n // Enable sliders\n $('.su-slider').each(function () {\n // Prepare data\n var $slider = $(this)\n // Apply Swiper\n var $swiper = $slider.swiper({\n wrapperClass: 'su-slider-slides',\n slideClass: 'su-slider-slide',\n slideActiveClass: 'su-slider-slide-active',\n slideVisibleClass: 'su-slider-slide-visible',\n pagination: '#' + $slider.attr('id') + ' .su-slider-pagination',\n autoplay: $slider.data('autoplay'),\n paginationClickable: true,\n grabCursor: true,\n mode: 'horizontal',\n mousewheelControl: $slider.data('mousewheel'),\n speed: $slider.data('speed'),\n calculateHeight: $slider.hasClass('su-slider-responsive-yes'),\n loop: true\n })\n // Prev button\n $slider.find('.su-slider-prev').click(function (e) {\n $swiper.swipeNext()\n })\n // Next button\n $slider.find('.su-slider-next').click(function (e) {\n $swiper.swipePrev()\n })\n })\n // Enable carousels\n $('.su-carousel').each(function () {\n // Prepare data\n var $carousel = $(this)\n var $slides = $carousel.find('.su-carousel-slide')\n // Apply Swiper\n var $swiper = $carousel.swiper({\n wrapperClass: 'su-carousel-slides',\n slideClass: 'su-carousel-slide',\n slideActiveClass: 'su-carousel-slide-active',\n slideVisibleClass: 'su-carousel-slide-visible',\n pagination: '#' + $carousel.attr('id') + ' .su-carousel-pagination',\n autoplay: $carousel.data('autoplay'),\n paginationClickable: true,\n grabCursor: true,\n mode: 'horizontal',\n mousewheelControl: $carousel.data('mousewheel'),\n speed: $carousel.data('speed'),\n slidesPerView:\n $carousel.data('items') > $slides.length\n ? $slides.length\n : $carousel.data('items'),\n slidesPerGroup: $carousel.data('scroll'),\n calculateHeight: $carousel.hasClass('su-carousel-responsive-yes'),\n loop: true\n })\n // Prev button\n $carousel.find('.su-carousel-prev').click(function (e) {\n $swiper.swipeNext()\n })\n // Next button\n $carousel.find('.su-carousel-next').click(function (e) {\n $swiper.swipePrev()\n })\n })\n // Enable lightbox\n $('.su-lightbox-gallery').on(\n 'click',\n '.su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide',\n function (e) {\n e.preventDefault()\n var slides = $(this)\n .parents('.su-lightbox-gallery')\n .data('slides')\n $.magnificPopup.open(\n {\n items: slides,\n type: 'image',\n mainClass: 'mfp-img-mobile',\n gallery: {\n enabled: true,\n navigateByImgClick: true,\n preload: [0, 1],\n tPrev: SUShortcodesL10n.magnificPopup.prev,\n tNext: SUShortcodesL10n.magnificPopup.next,\n tCounter: SUShortcodesL10n.magnificPopup.counter\n },\n tClose: SUShortcodesL10n.magnificPopup.close,\n tLoading: SUShortcodesL10n.magnificPopup.loading\n },\n $(this).data('index')\n )\n }\n )\n })\n}\n","/* global jQuery, Flickity, SUShortcodesL10n */\n\nexport default function SUImageCarouselShortcode () {\n window.SUImageCarousel = (function () {\n var self = {\n MFPItems: {},\n MFPL10n: SUShortcodesL10n.magnificPopup\n }\n\n self.initGalleries = function () {\n var galleries = document.querySelectorAll('.su-image-carousel')\n\n Array.prototype.forEach.call(galleries, self.initGallery)\n }\n\n self.initGallery = function (gallery) {\n if (gallery.classList.contains('su-image-carousel-ready')) {\n return\n }\n\n var flickityOptions = JSON.parse(\n gallery.getAttribute('data-flickity-options')\n )\n\n var flckty = new Flickity(gallery, flickityOptions)\n\n gallery.removeAttribute('tabindex')\n\n flckty.on('settle', self.onGallerySettle)\n\n if (gallery.classList.contains('su-image-carousel-has-lightbox')) {\n flckty.on('staticClick', self.onFlickityStaticClick)\n gallery.addEventListener('click', self.preventGalleryLinkClick)\n gallery.addEventListener('keyup', self.onGalleryKeyUp)\n\n var galleryID = gallery.getAttribute('id')\n var items = gallery.querySelectorAll(\n '.su-image-carousel-item-content > a'\n )\n\n self.MFPItems[galleryID] = []\n\n Array.prototype.forEach.call(items, function (item, itemIndex) {\n item.setAttribute('data-gallery', galleryID)\n item.setAttribute('data-index', itemIndex)\n\n self.MFPItems[galleryID].push({\n src: item.getAttribute('href'),\n title: item.getAttribute('data-caption')\n })\n })\n }\n\n gallery.classList.add('su-image-carousel-ready')\n }\n\n self.onFlickityStaticClick = function (event, pointer, cellElement, cellIndex) {\n if (!cellElement) {\n return\n }\n\n var clickedLink = cellElement.querySelector('a')\n\n if (!clickedLink) {\n return\n }\n\n self.openMagnificPopupFromLink(clickedLink)\n }\n\n self.onGallerySettle = function (index) {\n var items = this.element.querySelectorAll('.su-image-carousel-item')\n\n Array.prototype.forEach.call(items, function (item, itemIndex) {\n var link = item.querySelectorAll('a')[0]\n\n if (!link) {\n return\n }\n\n link.setAttribute('tabindex', -1)\n\n if (item.classList.contains('is-selected')) {\n link.setAttribute('tabindex', 0)\n }\n })\n }\n\n self.preventGalleryLinkClick = function (e) {\n var clickedLink = self.closest(e.target, function (el) {\n return el.tagName && el.tagName.toUpperCase() === 'A'\n })\n\n if (!clickedLink) {\n return\n }\n\n e.preventDefault()\n }\n\n self.onGalleryKeyUp = function (e) {\n if (!e.keyCode || e.keyCode !== 13) {\n return\n }\n\n var clickedLink = self.closest(e.target, function (el) {\n return el.tagName && el.tagName.toUpperCase() === 'A'\n })\n\n if (!clickedLink) {\n return\n }\n\n self.openMagnificPopupFromLink(clickedLink)\n }\n\n self.openMagnificPopup = function (galleryID, itemIndex) {\n jQuery.magnificPopup.open(\n {\n items: self.MFPItems[galleryID],\n type: 'image',\n mainClass: 'mfp-img-mobile su-image-carousel-mfp',\n gallery: {\n enabled: true,\n navigateByImgClick: true,\n preload: [1, 1],\n tPrev: self.MFPL10n.prev,\n tNext: self.MFPL10n.next,\n tCounter: self.MFPL10n.counter\n },\n tClose: self.MFPL10n.close,\n tLoading: self.MFPL10n.loading\n },\n itemIndex\n )\n }\n\n self.openMagnificPopupFromLink = function (linkEl) {\n var galleryID = linkEl.getAttribute('data-gallery')\n var itemIndex = parseInt(linkEl.getAttribute('data-index'), 10)\n\n self.openMagnificPopup(galleryID, itemIndex)\n }\n\n self.closest = function closest (el, fn) {\n return el && (fn(el) ? el : self.closest(el.parentNode, fn))\n }\n\n self.ready = function (fn) {\n if (document.readyState !== 'loading') {\n fn()\n } else {\n document.addEventListener('DOMContentLoaded', fn)\n }\n }\n\n return {\n ready: self.ready,\n initGalleries: self.initGalleries,\n initGallery: self.initGallery\n }\n })()\n\n jQuery(document).ready(function () {\n window.SUImageCarousel.initGalleries()\n })\n}\n","export default function SUOtherShortcodes () {\n jQuery(document).ready(function ($) {\n // Spoiler\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click keypress',\n '.su-spoiler-title',\n function (e) {\n var $title = $(this)\n var $spoiler = $title.parent()\n var bar = $('#wpadminbar').length > 0 ? 28 : 0\n // Open/close spoiler\n $spoiler.toggleClass('su-spoiler-closed')\n // Close other spoilers in accordion\n $spoiler\n .parent('.su-accordion')\n .children('.su-spoiler')\n .not($spoiler)\n .addClass('su-spoiler-closed')\n // Scroll in spoiler in accordion\n if ($(window).scrollTop() > $title.offset().top) { $(window).scrollTop($title.offset().top - $title.height() - bar) }\n e.preventDefault()\n }\n )\n // Tabs\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click keypress',\n '.su-tabs-nav span',\n function (e) {\n var $tab = $(this)\n var data = $tab.data()\n var index = $tab.index()\n var is_disabled = $tab.hasClass('su-tabs-disabled')\n var $tabs = $tab.parent('.su-tabs-nav').children('span')\n var $panes = $tab.parents('.su-tabs').find('.su-tabs-pane')\n var $gmaps = $panes.eq(index).find('.su-gmap:not(.su-gmap-reloaded)')\n // Check tab is not disabled\n if (is_disabled) return false\n // Hide all panes, show selected pane\n $panes\n .removeClass('su-tabs-pane-open')\n .eq(index)\n .addClass('su-tabs-pane-open')\n // Disable all tabs, enable selected tab\n $tabs\n .removeClass('su-tabs-current')\n .eq(index)\n .addClass('su-tabs-current')\n // Reload gmaps\n if ($gmaps.length > 0) {\n $gmaps.each(function () {\n var $iframe = $(this).find('iframe:first')\n $(this).addClass('su-gmap-reloaded')\n $iframe.attr('src', $iframe.attr('src'))\n })\n }\n // Open specified url\n if (data.url !== '') {\n if (data.target === 'self') window.location = data.url\n else if (data.target === 'blank') window.open(data.url)\n }\n e.preventDefault()\n }\n )\n\n // Activate tabs\n $('.su-tabs').each(function () {\n var active = parseInt($(this).data('active')) - 1\n $(this)\n .children('.su-tabs-nav')\n .children('span')\n .eq(active)\n .trigger('click')\n })\n\n // Activate anchor nav for tabs and spoilers\n anchor_nav()\n\n // Lightbox\n $(document).on('click', '.su-lightbox', function (e) {\n e.preventDefault()\n e.stopPropagation()\n\n if (\n $(this)\n .parent()\n .attr('id') === 'su-generator-preview'\n ) {\n $(this).html(SUShortcodesL10n.noPreview)\n\n return\n }\n\n var type = $(this).data('mfp-type')\n var mobile = $(this).data('mobile')\n var windowWidth = $(window).width()\n\n $(this)\n .magnificPopup({\n disableOn: function () {\n if (mobile === 'no' && windowWidth < 768) {\n return false\n }\n if (typeof mobile === 'number' && windowWidth < mobile) {\n return false\n }\n return true\n },\n type: type,\n tClose: SUShortcodesL10n.magnificPopup.close,\n tLoading: SUShortcodesL10n.magnificPopup.loading,\n gallery: {\n tPrev: SUShortcodesL10n.magnificPopup.prev,\n tNext: SUShortcodesL10n.magnificPopup.next,\n tCounter: SUShortcodesL10n.magnificPopup.counter\n },\n image: {\n tError: SUShortcodesL10n.magnificPopup.error\n },\n ajax: {\n tError: SUShortcodesL10n.magnificPopup.error\n }\n })\n .magnificPopup('open')\n })\n // Frame\n $('.su-frame-align-center, .su-frame-align-none').each(function () {\n var frame_width = $(this)\n .find('img')\n .width()\n $(this).css('width', frame_width + 12)\n })\n // Tooltip\n $('.su-tooltip').each(function () {\n var $tt = $(this)\n var $content = $tt.find('.su-tooltip-content')\n var is_advanced = $content.length > 0\n var data = $tt.data()\n var config = {\n style: {\n classes: data.classes\n },\n position: {\n my: data.my,\n at: data.at,\n viewport: $(window)\n },\n content: {\n title: '',\n text: ''\n }\n }\n if (data.title !== '') config.content.title = data.title\n if (is_advanced) config.content.text = $content\n else config.content.text = $tt.attr('title')\n if (data.close === 'yes') config.content.button = true\n if (data.behavior === 'click') {\n config.show = 'click'\n config.hide = 'click'\n $tt.on('click', function (e) {\n e.preventDefault()\n e.stopPropagation()\n })\n $(window).on('scroll resize', function () {\n $tt.qtip('reposition')\n })\n } else if (data.behavior === 'always') {\n config.show = true\n config.hide = false\n $(window).on('scroll resize', function () {\n $tt.qtip('reposition')\n })\n } else if (data.behavior === 'hover' && is_advanced) {\n config.hide = {\n fixed: true,\n delay: 600\n }\n }\n $tt.qtip(config)\n })\n\n // Expand\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click',\n '.su-expand-link',\n function () {\n var $this = $(this)\n var $container = $this.parents('.su-expand')\n var $content = $container.children('.su-expand-content')\n\n if ($container.hasClass('su-expand-collapsed')) {\n $content.css('max-height', 'none')\n } else {\n $content.css('max-height', $container.data('height') + 'px')\n }\n\n $container.toggleClass('su-expand-collapsed')\n }\n )\n\n function is_transition_supported () {\n var thisBody = document.body || document.documentElement\n var thisStyle = thisBody.style\n var support =\n thisStyle.transition !== undefined ||\n thisStyle.WebkitTransition !== undefined ||\n thisStyle.MozTransition !== undefined ||\n thisStyle.MsTransition !== undefined ||\n thisStyle.OTransition !== undefined\n\n return support\n }\n\n // Animations is supported\n if (is_transition_supported()) {\n // Animate\n $('.su-animate').each(function () {\n $(this).one('inview', function (e) {\n var $this = $(this)\n var data = $this.data()\n window.setTimeout(function () {\n $this.addClass(data.animation)\n $this.addClass('animated')\n $this.css('visibility', 'visible')\n }, data.delay * 1000)\n })\n })\n }\n // Animations isn't supported\n else {\n $('.su-animate').css('visibility', 'visible')\n }\n\n function anchor_nav () {\n // Check hash\n if (document.location.hash === '') return\n // Go through tabs\n $('.su-tabs-nav span[data-anchor]').each(function () {\n if ('#' + $(this).data('anchor') === document.location.hash) {\n var $tabs = $(this).parents('.su-tabs')\n var bar = $('#wpadminbar').length > 0 ? 28 : 0\n // Activate tab\n $(this).trigger('click')\n // Scroll-in tabs container\n window.setTimeout(function () {\n $(window).scrollTop($tabs.offset().top - bar - 10)\n }, 100)\n }\n })\n // Go through spoilers\n $('.su-spoiler[data-anchor]').each(function () {\n if ('#' + $(this).data('anchor') === document.location.hash) {\n var $spoiler = $(this)\n var bar = $('#wpadminbar').length > 0 ? 28 : 0\n // Activate tab\n if ($spoiler.hasClass('su-spoiler-closed')) { $spoiler.find('.su-spoiler-title:first').trigger('click') }\n // Scroll-in tabs container\n window.setTimeout(function () {\n $(window).scrollTop($spoiler.offset().top - bar - 10)\n }, 100)\n }\n })\n }\n\n if ('onhashchange' in window) $(window).on('hashchange', anchor_nav)\n\n $('body').addClass('su-other-shortcodes-loaded')\n })\n}\n","export default function SUPlayersShortcodes () {\n jQuery(document).ready(function ($) {\n // Audio player\n $('.su-audio').each(function () {\n // Prepare data\n var $this = $(this)\n var id = $this.data('id')\n var selector = '#' + id\n var $player = $(selector)\n var audio = $this.data('audio')\n var swf = $this.data('swf')\n // Init jPlayer\n $player.jPlayer({\n ready: function (e) {\n // Set media\n $player.jPlayer('setMedia', {\n mp3: audio\n })\n // Autoplay\n if ($this.data('autoplay') === 'yes') $player.jPlayer('play')\n // Loop\n if ($this.data('loop') === 'yes') {\n $player.bind($.jPlayer.event.ended + '.repeat', function () {\n $player.jPlayer('play')\n })\n }\n },\n cssSelectorAncestor: selector + '_container',\n volume: 1,\n keyEnabled: true,\n smoothPlayBar: true,\n swfPath: swf,\n supplied: 'mp3'\n })\n })\n // Video player\n $('.su-video').each(function () {\n // Prepare data\n var $video = $(this)\n var id = $video.attr('id')\n var $player = $('#' + id + '_player')\n var file = $video.data('video')\n var swf = $video.data('swf')\n var poster = $video.data('poster')\n var size = {\n width: $player.width(),\n height: $player.height()\n }\n // Init jPlayer\n $player.jPlayer({\n ready: function (e) {\n // Set media\n $player.jPlayer('setMedia', {\n mp4: file,\n flv: file,\n poster: poster\n })\n // Autoplay\n if ($video.data('autoplay') === 'yes') $player.jPlayer('play')\n // Loop\n if ($video.data('loop') === 'yes') {\n $player.bind($.jPlayer.event.ended + '.repeat', function () {\n $player.jPlayer('play')\n })\n }\n },\n cssSelector: {\n gui: '.jp-gui, .jp-title'\n },\n size: size,\n cssSelectorAncestor: '#' + id,\n volume: 1,\n keyEnabled: true,\n smoothPlayBar: true,\n swfPath: swf,\n supplied: 'mp4, flv'\n })\n })\n })\n}\n"]}
includes/shortcodes/button.php CHANGED
@@ -226,7 +226,7 @@ function su_shortcode_button( $atts = null, $content = null ) {
226
// Common styles for button
227
$styles = array(
228
'size' => round( ( $atts['size'] + 7 ) * 1.3 ),
229
- 'ts_color' => ( $atts['ts_color'] === 'light' ) ? su_adjust_brightness( $atts['background'], 50 ) : su_adjust_brightness( $atts['background'], -40 ),
230
'ts_pos' => ( $atts['ts_pos'] !== null ) ? $shadows[ $atts['ts_pos'] ] : $shadows['none'],
231
);
232
@@ -243,7 +243,7 @@ function su_shortcode_button( $atts = null, $content = null ) {
243
$a_rules = array(
244
'color' => $atts['color'],
245
'background-color' => $atts['background'],
246
- 'border-color' => su_adjust_brightness( $atts['background'], -20 ),
247
'border-radius' => $radius,
248
'-moz-border-radius' => $radius,
249
'-webkit-border-radius' => $radius,
@@ -255,7 +255,7 @@ function su_shortcode_button( $atts = null, $content = null ) {
255
'padding' => ( $atts['icon'] ) ? round( ( $atts['size'] ) / 2 + 4 ) . 'px ' . round( $atts['size'] * 2 + 10 ) . 'px' : '0px ' . round( $atts['size'] * 2 + 10 ) . 'px',
256
'font-size' => $styles['size'] . 'px',
257
'line-height' => ( $atts['icon'] ) ? round( $styles['size'] * 1.5 ) . 'px' : round( $styles['size'] * 2 ) . 'px',
258
- 'border-color' => su_adjust_brightness( $atts['background'], 30 ),
259
'border-radius' => $radius,
260
'-moz-border-radius' => $radius,
261
'-webkit-border-radius' => $radius,
226
// Common styles for button
227
$styles = array(
228
'size' => round( ( $atts['size'] + 7 ) * 1.3 ),
229
+ 'ts_color' => ( $atts['ts_color'] === 'light' ) ? su_adjust_lightness( $atts['background'], 50 ) : su_adjust_lightness( $atts['background'], -40 ),
230
'ts_pos' => ( $atts['ts_pos'] !== null ) ? $shadows[ $atts['ts_pos'] ] : $shadows['none'],
231
);
232
243
$a_rules = array(
244
'color' => $atts['color'],
245
'background-color' => $atts['background'],
246
+ 'border-color' => su_adjust_lightness( $atts['background'], -20 ),
247
'border-radius' => $radius,
248
'-moz-border-radius' => $radius,
249
'-webkit-border-radius' => $radius,
255
'padding' => ( $atts['icon'] ) ? round( ( $atts['size'] ) / 2 + 4 ) . 'px ' . round( $atts['size'] * 2 + 10 ) . 'px' : '0px ' . round( $atts['size'] * 2 + 10 ) . 'px',
256
'font-size' => $styles['size'] . 'px',
257
'line-height' => ( $atts['icon'] ) ? round( $styles['size'] * 1.5 ) . 'px' : round( $styles['size'] * 2 ) . 'px',
258
+ 'border-color' => su_adjust_lightness( $atts['background'], 30 ),
259
'border-radius' => $radius,
260
'-moz-border-radius' => $radius,
261
'-webkit-border-radius' => $radius,
includes/shortcodes/image-carousel.php CHANGED
@@ -349,7 +349,7 @@ function su_shortcode_image_carousel( $atts = null, $content = null ) {
349
su_query_asset( 'css', 'su-shortcodes' );
350
351
$script = sprintf(
352
- '<script id="%1$s_script">if(window.SUImageCarousel){setTimeout(function() {window.SUImageCarousel.initGallery(document.getElementById("%1$s"))}, 0);}var %1$s_script=document.getElementById("%1$s_script");%s_script.parentNode.removeChild(%1$s_script);</script>',
353
esc_js( $uniqid )
354
);
355
349
su_query_asset( 'css', 'su-shortcodes' );
350
351
$script = sprintf(
352
+ '<script id="%1$s_script">if(window.SUImageCarousel){setTimeout(function() {window.SUImageCarousel.initGallery(document.getElementById("%1$s"))}, 0);}var %1$s_script=document.getElementById("%1$s_script");if(%1$s_script){%s_script.parentNode.removeChild(%1$s_script);}</script>',
353
esc_js( $uniqid )
354
);
355
includes/upgrade/5.2.0.php CHANGED
@@ -14,7 +14,7 @@ if ( false === get_option( 'su_option_enable_shortcodes_in' ) ) {
14
15
add_option(
16
'su_option_enable_shortcodes_in',
17
- array( 'category_description', 'widget_text' )
18
);
19
20
}
14
15
add_option(
16
'su_option_enable_shortcodes_in',
17
+ array( 'term_description', 'widget_text' )
18
);
19
20
}
includes/upgrade/5.6.0.php ADDED
@@ -0,0 +1,25 @@
1
+ <?php
2
+
3
+ /**
4
+ * 1. Replace `category_description` with `term_description`
5
+ * in the `su_option_enable_shortcodes_in` option
6
+ */
7
+
8
+ $old_value = get_option( 'su_option_enable_shortcodes_in' );
9
+ $new_value = array();
10
+
11
+ if ( is_array( $old_value ) ) {
12
+
13
+ foreach ( $old_value as $item ) {
14
+
15
+ if ( 'category_description' === $item ) {
16
+ $item = 'term_description';
17
+ }
18
+
19
+ $new_value[] = $item;
20
+
21
+ }
22
+
23
+ }
24
+
25
+ update_option( 'su_option_enable_shortcodes_in', $new_value );
readme.txt CHANGED
@@ -151,6 +151,19 @@ For help with premium add-ons, please [open new support ticket](https://getshort
151
152
== Changelog ==
153
154
= 5.5.0 =
155
156
**What's new**
151
152
== Changelog ==
153
154
+ = 5.6.0 =
155
+
156
+ **What's new**
157
+
158
+ - Shortcodes can now be enabled not only in Category descriptions, but in any Term description. See `Enable shortcodes in` option at plugin settings page
159
+
160
+ **Fixes**
161
+
162
+ - Fixed WP-Rocket compatibility issue, `[su_image_carousel]` didn't work on Android Chrome. [Forum topic](https://wordpress.org/support/topic/issues-with-wp-rocket-2/)
163
+ - Fixed issue with `<span>` tags in the `[su_tabs]` shortcode. [Forum topic](https://wordpress.org/support/topic/element-on-next-line-on-mobiles/)
164
+ - Fixed issue with ghost-style button colors
165
+
166
+
167
= 5.5.0 =
168
169
**What's new**
shortcodes-ultimate.php CHANGED
@@ -2,7 +2,7 @@
2
/**
3
* Plugin Name: Shortcodes Ultimate
4
* Plugin URI: https://getshortcodes.com/
5
- * Version: 5.5.0
6
* Author: Vladimir Anokhin
7
* Author URI: https://vanokhin.com/
8
* Description: A comprehensive collection of visual components for WordPress
@@ -15,7 +15,7 @@
15
* Define plugin constants.
16
*/
17
define( 'SU_PLUGIN_FILE', __FILE__ );
18
- define( 'SU_PLUGIN_VERSION', '5.5.0' );
19
20
/**
21
* Load dependencies.
2
/**
3
* Plugin Name: Shortcodes Ultimate
4
* Plugin URI: https://getshortcodes.com/
5
+ * Version: 5.6.0
6
* Author: Vladimir Anokhin
7
* Author URI: https://vanokhin.com/
8
* Description: A comprehensive collection of visual components for WordPress
15
* Define plugin constants.
16
*/
17
define( 'SU_PLUGIN_FILE', __FILE__ );
18
+ define( 'SU_PLUGIN_VERSION', '5.6.0' );
19
20
/**
21
* Load dependencies.
templates/README.txt ADDED
@@ -0,0 +1,5 @@
1
+ Do not edit templates in the plugin folder, since all your changes will be lost after plugin update.
2
+
3
+ Read the following article to learn how to edit default templates or create a custom one:
4
+
5
+ https://getshortcodes.com/docs/posts/#built-in-templates