Shortcodes Ultimate - Version 5.5.0

Version Description

What's new

  • New option outline for [su_image_carousel] which allows disabling carousel outline (when it gets focus)
  • New option mobile for [su_tabs] which allows disabling tab stacking on mobile devices
  • New option texttrack for [su_vimeo] which allows enabling video subtitles

Improvements

  • [su_youtube_advanced] is now always served through https
  • [su_image_carousel]: improved compatibility with various themes
  • [su_image_carousel]: the gallery can now be loaded through AJAX
  • [su_image_carousel]: improved keyboard navigation
  • Insert Shortcode window will now remain open if the dark background clicked

Fixes

  • Fixed [su_image_carousel] issue with empty image captions (with whitespace)
  • Fixed [su_image_carousel] issue where images weren't shown when crop is disabled
Download this release

Release Info

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

Code changes from version 5.4.1 to 5.5.0

Files changed (51) hide show
  1. admin/class-shortcodes-ultimate-admin-addons.php +15 -64
  2. admin/class-shortcodes-ultimate-admin-settings.php +3 -4
  3. admin/class-shortcodes-ultimate-admin-shortcodes.php +6 -1
  4. admin/css/addons.css +1 -0
  5. admin/css/admin.css +0 -1
  6. admin/css/available-shortcodes.css +1 -0
  7. admin/css/rtl-admin.css +0 -0
  8. admin/css/settings.css +1 -0
  9. admin/images/addons/bundle.png +0 -0
  10. admin/images/addons/extra.png +0 -0
  11. admin/images/addons/maker.png +0 -0
  12. admin/images/addons/skins.png +0 -0
  13. admin/partials/pages/addons.php +19 -11
  14. admin/partials/pages/settings.php +7 -2
  15. inc/core/assets.php +15 -15
  16. inc/core/generator.php +8 -2
  17. includes/config/addon-ids.php +0 -3
  18. includes/config/addons.php +36 -0
  19. includes/css/rtl-shortcodes.css +1 -98
  20. includes/css/shortcodes.css +1 -1
  21. includes/css/shortcodes.full.css +50 -18
  22. includes/functions-galleries.php +1 -1
  23. includes/functions-helpers.php +3 -3
  24. includes/js/generator/index.js +1 -1
  25. includes/js/shortcodes/index.js +1 -1
  26. includes/shortcodes/audio.php +1 -1
  27. includes/shortcodes/button.php +3 -7
  28. includes/shortcodes/custom-gallery.php +78 -66
  29. includes/shortcodes/image-carousel.php +22 -2
  30. includes/shortcodes/tabs.php +15 -1
  31. includes/shortcodes/video.php +1 -1
  32. includes/shortcodes/vimeo.php +15 -8
  33. includes/shortcodes/youtube-advanced.php +5 -12
  34. readme.txt +22 -0
  35. shortcodes-ultimate.php +2 -2
  36. {includes/css → vendor/animatecss}/animate.css +0 -0
  37. {includes/js → vendor}/chartjs/chart.js +0 -0
  38. includes/css/flickity.min.css → vendor/flickity/flickity.css +0 -0
  39. includes/js/flickity/flickity.pkgd.min.js → vendor/flickity/flickity.js +0 -0
  40. {includes/js → vendor}/jplayer/jplayer.js +0 -0
  41. {includes/js → vendor}/jplayer/jplayer.swf +0 -0
  42. includes/js/inview/inview.js → vendor/jquery-inview/jquery-inview.js +0 -0
  43. {includes/css → vendor/magnific-popup}/magnific-popup.css +0 -0
  44. {includes/js → vendor}/magnific-popup/magnific-popup.js +0 -0
  45. {includes/css → vendor/owl-carousel}/owl-carousel.css +0 -0
  46. {includes/js → vendor}/owl-carousel/owl-carousel.js +0 -0
  47. {includes/css → vendor/qtip}/qtip.css +0 -0
  48. {includes/js → vendor}/qtip/qtip.js +0 -0
  49. {includes/css → vendor/simpleslider}/simpleslider.css +0 -0
  50. {includes/js → vendor}/simpleslider/simpleslider.js +0 -0
  51. {includes/js → vendor}/swiper/swiper.js +0 -0
admin/class-shortcodes-ultimate-admin-addons.php CHANGED
@@ -10,30 +10,6 @@
10
  */
11
  final class Shortcodes_Ultimate_Admin_Addons extends Shortcodes_Ultimate_Admin {
12
 
13
- private $api_url;
14
- private $plugin_addons;
15
- private $transient_name;
16
- private $transient_timeout;
17
-
18
- /**
19
- * Initialize the class and set its properties.
20
- *
21
- * @since 5.0.0
22
- * @param string $plugin_file The path of the main plugin file
23
- * @param string $plugin_version The current version of the plugin
24
- */
25
- public function __construct( $plugin_file, $plugin_version, $plugin_prefix ) {
26
-
27
- parent::__construct( $plugin_file, $plugin_version, $plugin_prefix );
28
-
29
- $this->api_url = 'https://getshortcodes.com/api/v1/add-ons/';
30
- $this->addons = array();
31
- $this->transient_name = 'su_addons';
32
- $this->transient_timeout = 3 * DAY_IN_SECONDS;
33
-
34
- }
35
-
36
-
37
  /**
38
  * Add menu page.
39
  *
@@ -69,11 +45,13 @@ final class Shortcodes_Ultimate_Admin_Addons extends Shortcodes_Ultimate_Admin {
69
  return;
70
  }
71
 
72
- $screen->add_help_tab( array(
 
73
  'id' => 'shortcodes-ultimate-addons',
74
  'title' => __( 'Add-ons', 'shortcodes-ultimate' ),
75
  'content' => $this->get_template( 'admin/partials/help/addons' ),
76
- ) );
 
77
 
78
  $screen->set_help_sidebar( $this->get_template( 'admin/partials/help/sidebar' ) );
79
 
@@ -91,7 +69,12 @@ final class Shortcodes_Ultimate_Admin_Addons extends Shortcodes_Ultimate_Admin {
91
  return;
92
  }
93
 
94
- wp_enqueue_style( 'shortcodes-ultimate-admin', $this->plugin_url . 'admin/css/admin.css', array(), $this->plugin_version );
 
 
 
 
 
95
 
96
  }
97
 
@@ -104,48 +87,16 @@ final class Shortcodes_Ultimate_Admin_Addons extends Shortcodes_Ultimate_Admin {
104
  */
105
  public function get_addons() {
106
 
107
- if ( empty( $this->addons ) ) {
108
- $this->addons = $this->load_addons();
109
- }
110
 
111
- return apply_filters( 'su/admin/addons', $this->addons );
112
 
113
- }
 
114
 
115
- /**
116
- * Load the collection of plugin add-ons from remote API.
117
- *
118
- * @since 5.0.0
119
- * @access private
120
- * @return array The plugin add-ons collection.
121
- */
122
- private function load_addons() {
123
-
124
- $transient = get_transient( $this->transient_name );
125
-
126
- if ( ! empty( $transient ) ) {
127
- return $transient;
128
  }
129
 
130
- $response = wp_remote_get(
131
- $this->api_url,
132
- array( 'timeout' => 10, 'sslverify' => false, )
133
- );
134
- $response = json_decode( wp_remote_retrieve_body( $response ), true );
135
-
136
- if ( empty( $response[0]['id'] ) ) {
137
- return array();
138
- }
139
-
140
- $this->addons = array();
141
-
142
- foreach ( $response as $item ) {
143
- $this->addons[ $item['id'] ] = $item;
144
- }
145
-
146
- set_transient( $this->transient_name, $this->addons, $this->transient_timeout );
147
-
148
- return $this->addons;
149
 
150
  }
151
 
10
  */
11
  final class Shortcodes_Ultimate_Admin_Addons extends Shortcodes_Ultimate_Admin {
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  /**
14
  * Add menu page.
15
  *
45
  return;
46
  }
47
 
48
+ $screen->add_help_tab(
49
+ array(
50
  'id' => 'shortcodes-ultimate-addons',
51
  'title' => __( 'Add-ons', 'shortcodes-ultimate' ),
52
  'content' => $this->get_template( 'admin/partials/help/addons' ),
53
+ )
54
+ );
55
 
56
  $screen->set_help_sidebar( $this->get_template( 'admin/partials/help/sidebar' ) );
57
 
69
  return;
70
  }
71
 
72
+ wp_enqueue_style(
73
+ 'shortcodes-ultimate-admin-addons',
74
+ plugins_url( 'css/addons.css', __FILE__ ),
75
+ array(),
76
+ filemtime( plugin_dir_path( __FILE__ ) . 'css/addons.css' )
77
+ );
78
 
79
  }
80
 
87
  */
88
  public function get_addons() {
89
 
90
+ $addons = (array) su_get_config( 'addons', array() );
 
 
91
 
92
+ foreach ( $addons as $index => $addon ) {
93
 
94
+ $addon_id = sanitize_key( $addons[ $index ]['id'] );
95
+ $addons[ $index ]['image'] = plugins_url( "images/addons/{$addon_id}.png", __FILE__ );
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  }
98
 
99
+ return $addons;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  }
102
 
admin/class-shortcodes-ultimate-admin-settings.php CHANGED
@@ -137,11 +137,10 @@ final class Shortcodes_Ultimate_Admin_Settings extends Shortcodes_Ultimate_Admin
137
  wp_enqueue_code_editor( array( 'type' => 'text/css' ) );
138
 
139
  wp_enqueue_style(
140
- 'shortcodes-ultimate-admin',
141
- plugins_url( 'css/admin.css', __FILE__ ),
142
  array( 'su-icons' ),
143
- filemtime( plugin_dir_path( __FILE__ ) . 'css/admin.css' ),
144
- 'all'
145
  );
146
 
147
  }
137
  wp_enqueue_code_editor( array( 'type' => 'text/css' ) );
138
 
139
  wp_enqueue_style(
140
+ 'shortcodes-ultimate-admin-settings',
141
+ plugins_url( 'css/settings.css', __FILE__ ),
142
  array( 'su-icons' ),
143
+ filemtime( plugin_dir_path( __FILE__ ) . 'css/settings.css' )
 
144
  );
145
 
146
  }
admin/class-shortcodes-ultimate-admin-shortcodes.php CHANGED
@@ -77,7 +77,12 @@ final class Shortcodes_Ultimate_Admin_Shortcodes extends Shortcodes_Ultimate_Adm
77
  return;
78
  }
79
 
80
- wp_enqueue_style( 'shortcodes-ultimate-admin', $this->plugin_url . 'admin/css/admin.css', array( 'su-icons' ), $this->plugin_version );
 
 
 
 
 
81
 
82
  }
83
 
77
  return;
78
  }
79
 
80
+ wp_enqueue_style(
81
+ 'shortcodes-ultimate-admin-available-shortcodes',
82
+ plugins_url( 'css/available-shortcodes.css', __FILE__ ),
83
+ array( 'su-icons' ),
84
+ filemtime( plugin_dir_path( __FILE__ ) . 'css/available-shortcodes.css' )
85
+ );
86
 
87
  }
88
 
admin/css/addons.css ADDED
@@ -0,0 +1 @@
 
1
+ .su-admin-addons-list{display:-webkit-box;display:flex;flex-wrap:wrap;margin-top:22px}.su-admin-addons-item{position:relative;-webkit-box-flex:0;flex:0 0 300px;box-sizing:border-box;margin:0 22px 22px 0;padding:33px 22px;max-width:100%;border-radius:5px;background:white;background:-webkit-gradient(linear, left top, left bottom, from(white), color-stop(30%, white), to(#f7f7f7));background:-webkit-linear-gradient(top, white 0%, white 30%, #f7f7f7 100%);background:linear-gradient(to bottom, white 0%, white 30%, #f7f7f7 100%);box-shadow:0 1px 2px rgba(0,0,0,0.1);-webkit-transition:box-shadow 0.2s ease, -webkit-transform 0.2s ease;transition:box-shadow 0.2s ease, -webkit-transform 0.2s ease;transition:transform 0.2s ease, box-shadow 0.2s ease;transition:transform 0.2s ease, box-shadow 0.2s ease, -webkit-transform 0.2s ease}.su-admin-addons-item:hover{background:white;box-shadow:0 0 12px rgba(0,0,0,0.15);-webkit-transform:scale(1.03);transform:scale(1.03)}.su-admin-addons-item:hover .su-admin-addons-item-image{-webkit-transform:scale(1.05);transform:scale(1.05)}.su-admin-addons-item-content{text-align:center}.su-admin-addons-item-image{margin:0 0 22px;padding:0;width:80px;height:80px;border:none;-webkit-transition:-webkit-transform 0.2s ease;transition:-webkit-transform 0.2s ease;transition:transform 0.2s ease;transition:transform 0.2s ease, -webkit-transform 0.2s ease;-o-object-fit:cover;object-fit:cover}.su-admin-addons-item-title{margin:0 0 11px;color:#0073aa;font-size:1.05rem;line-height:1}.su-admin-addons-item-description{margin:0 0 22px;color:#777;font-size:0.9rem;line-height:1.2}.su-admin-addons-item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;left:0;width:100%;height:100%;text-indent:-999%}
admin/css/admin.css DELETED
@@ -1 +0,0 @@
1
- .su-admin-shortcodes .wp-filter{padding-left:20px}.su-admin-shortcodes-list-not-found{margin:0;padding:100px 0;text-align:center;color:#666;font-size:18px;font-style:normal}.su-admin-shortcodes-list-item{float:left;width:150px;margin:0 22px 22px 0;text-decoration:none}.su-admin-shortcodes-list-item-image{display:block;width:120px;height:120px;padding:15px;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;height:18px;margin:8px 0;line-height:18px;overflow:hidden;text-align:center;text-transform:capitalize}.su-admin-shortcodes-single{padding-top:20px}.su-admin-shortcodes-single-section{max-width:840px;margin-bottom:30px}.su-admin-shortcodes-single-back span{font-size:1.25em;margin-right:0.3em;vertical-align:middle}.su-admin-shortcodes-single-description{overflow:hidden}.su-admin-shortcodes-single-description>span{float:left;display:block;width:60px;height:60px;margin:0 1.3em 0 0;padding:10px;background:#fff}.su-admin-shortcodes-single-description h2{height:20px;margin:5px 0 10px;font-size:1.3em;line-height:20px}.su-admin-shortcodes-single-description p{display:block;height:40px;margin:0;overflow:hidden;font-size:13px;line-height:20px}.su-admin-shortcodes-single-preview-content{background:#fff;padding:2em}.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}.su-admin-settings-details{margin:1.33em 0}.su-admin-settings-details summary{font-weight:600;cursor:pointer}.su-admin-settings-details>article{margin-top:1.33em}.su-admin-settings .CodeMirror{height:auto}.su-admin-settings .CodeMirror .CodeMirror-scroll{min-height:100px;max-height:80vh}.su-admin-addons-list{padding-top:12px}.su-admin-addons-item{float:left;width:280px;margin:0 22px 22px 0;background:#fff;background:-webkit-gradient(linear, left top, left bottom, from(#f5f5f5), color-stop(20%, #fff), color-stop(80%, #fff), to(#f5f5f5));background:-webkit-linear-gradient(top, #f5f5f5, #fff 20%, #fff 80%, #f5f5f5);background:linear-gradient(to bottom, #f5f5f5, #fff 20%, #fff 80%, #f5f5f5);overflow:hidden;border-radius:5px;text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,0.1);-webkit-transition:all 0.2s ease;transition:all 0.2s ease}.su-admin-addons-item:hover{box-shadow:0 0 12px rgba(0,0,0,0.15);-webkit-transform:scale(1.03);transform:scale(1.03)}.su-admin-addons-item-image{display:block;width:280px;height:120px;margin:0;padding:0;border:none;border-top-right-radius:4px;border-top-left-radius:4px}.su-admin-addons-item-info,.su-admin-addons-item-title,.su-admin-addons-item-description{display:block}.su-admin-addons-item-info{padding:20px}.su-admin-addons-item-title{height:16px;margin-bottom:16px;line-height:16px;font-size:16px;color:#0073aa}.su-admin-addons-item-description{height:60px;margin-bottom:16px;line-height:20px;overflow:hidden;font-size:12px;color:#777}.su-admin-addons-item-button{font-size:12px}
 
admin/css/available-shortcodes.css ADDED
@@ -0,0 +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}
admin/css/rtl-admin.css DELETED
File without changes
admin/css/settings.css ADDED
@@ -0,0 +1 @@
 
1
+ .su-admin-settings-details{margin:1.33em 0}.su-admin-settings-details summary{font-weight:600;cursor:pointer}.su-admin-settings-details>article{margin-top:1.33em}.su-admin-settings .CodeMirror{height:auto}.su-admin-settings .CodeMirror .CodeMirror-scroll{min-height:100px;max-height:80vh}
admin/images/addons/bundle.png ADDED
Binary file
admin/images/addons/extra.png ADDED
Binary file
admin/images/addons/maker.png ADDED
Binary file
admin/images/addons/skins.png ADDED
Binary file
admin/partials/pages/addons.php CHANGED
@@ -1,4 +1,5 @@
1
- <?php defined( 'ABSPATH' ) or exit; ?>
 
2
  <?php $addons = $this->get_addons(); ?>
3
 
4
  <div id="su_admin_addons" class="wrap su-admin-addons wp-clearfix">
@@ -9,19 +10,26 @@
9
 
10
  <?php if ( empty( $addons ) ) : ?>
11
 
12
- <p><a href="https://getshortcodes.com/add-ons/" target="_blank" class="button button-primary"><?php _e( 'Premium add-ons', 'shortcodes-ultimate' ); ?></a></p>
 
 
13
 
14
  <?php else : ?>
15
 
16
- <?php foreach( $addons as $addon ) : ?>
17
- <a href="<?php echo esc_attr( $addon['permalink'] ); ?>" class="su-admin-addons-item" target="_blank">
18
- <img src="<?php echo esc_attr( $addon['images']['medium'] ); ?>" srcset="<?php echo esc_attr( $addon['images']['medium'] ); ?> 1x, <?php echo esc_attr( $addon['images']['full'] ); ?> 2x" class="su-admin-addons-item-image">
19
- <span class="su-admin-addons-item-info">
20
- <span class="su-admin-addons-item-title"><?php echo esc_html( $addon['name'] ); ?></span>
21
- <span class="su-admin-addons-item-description"><?php echo esc_html( $addon['description'] ); ?></span>
22
- <span class="su-admin-addons-item-button button"><?php _e( 'Learn more', 'shortcodes-ultimate' ); ?></span>
23
- </span>
24
- </a>
 
 
 
 
 
25
  <?php endforeach; ?>
26
 
27
  <?php endif; ?>
1
+ <?php defined( 'ABSPATH' ) || exit; ?>
2
+
3
  <?php $addons = $this->get_addons(); ?>
4
 
5
  <div id="su_admin_addons" class="wrap su-admin-addons wp-clearfix">
10
 
11
  <?php if ( empty( $addons ) ) : ?>
12
 
13
+ <p>
14
+ <a href="https://getshortcodes.com/add-ons/" target="_blank" class="button button-primary"><?php esc_html_e( 'Premium Add-ons', 'shortcodes-ultimate' ); ?> →</a>
15
+ </p>
16
 
17
  <?php else : ?>
18
 
19
+ <?php foreach ( $addons as $addon ) : ?>
20
+
21
+ <div class="su-admin-addons-item">
22
+ <div class="su-admin-addons-item-content">
23
+ <img src="<?php echo esc_attr( $addon['image'] ); ?>" alt="" class="su-admin-addons-item-image">
24
+ <h2 class="su-admin-addons-item-title"><?php echo esc_html( $addon['title'] ); ?></h2>
25
+ <p class="su-admin-addons-item-description"><?php echo esc_html( $addon['description'] ); ?></p>
26
+ <div class="su-admin-addons-item-action" aria-hidden="true">
27
+ <span class="button"><?php esc_html_e( 'Learn more', 'shortcodes-ultimate' ); ?></span>
28
+ </div>
29
+ </div>
30
+ <a href="<?php echo esc_attr( $addon['permalink'] ); ?>" target="_blank" rel="noopener" class="su-admin-addons-item-overlay"><?php esc_html_e( 'Learn more about', 'shortcodes-ultimate' ); ?> <?php echo esc_html( $addon['title'] ); ?></a>
31
+ </div>
32
+
33
  <?php endforeach; ?>
34
 
35
  <?php endif; ?>
admin/partials/pages/settings.php CHANGED
@@ -11,8 +11,13 @@
11
  <?php if ( isset( $_GET['advanced'] ) ) : ?>
12
 
13
  <div class="notice notice-warning">
14
- <p><strong><?php esc_html_e( 'Warning!', 'shortcodes-ultimate' ); ?></strong><br><?php esc_html_e( 'You are editing advanced settings. Do not edit these settings if you do not understand their purpose.', 'shortcodes-ultimate' ); ?></p>
15
- <p><a href="<?php echo esc_attr( $this->get_component_url() ); ?>">&larr; <?php esc_html_e( 'Return to main settings', 'shortcodes-ultimate' ); ?></a></p>
 
 
 
 
 
16
  </div>
17
 
18
  <?php settings_fields( $this->plugin_prefix . 'advanced-settings' ); ?>
11
  <?php if ( isset( $_GET['advanced'] ) ) : ?>
12
 
13
  <div class="notice notice-warning">
14
+ <p>
15
+ <strong><?php esc_html_e( 'Warning!', 'shortcodes-ultimate' ); ?></strong><br>
16
+ <?php esc_html_e( 'You are editing advanced settings. Do NOT modify anything in here unless you know what you are doing.', 'shortcodes-ultimate' ); ?>
17
+ </p>
18
+ <p>
19
+ <a href="<?php echo esc_attr( $this->get_component_url() ); ?>">&larr; <?php esc_html_e( 'Return to main settings', 'shortcodes-ultimate' ); ?></a>
20
+ </p>
21
  </div>
22
 
23
  <?php settings_fields( $this->plugin_prefix . 'advanced-settings' ); ?>
inc/core/assets.php CHANGED
@@ -40,42 +40,42 @@ class Su_Assets {
40
  */
41
  public static function register() {
42
  // Chart.js
43
- wp_register_script( 'chartjs', plugins_url( 'includes/js/chartjs/chart.js', SU_PLUGIN_FILE ), false, '0.2', true );
44
  // SimpleSlider
45
- wp_register_script( 'simpleslider', plugins_url( 'includes/js/simpleslider/simpleslider.js', SU_PLUGIN_FILE ), array( 'jquery' ), '1.0.0', true );
46
- wp_register_style( 'simpleslider', plugins_url( 'includes/css/simpleslider.css', SU_PLUGIN_FILE ), false, '1.0.0', 'all' );
47
  // Owl Carousel
48
- wp_register_script( 'owl-carousel', plugins_url( 'includes/js/owl-carousel/owl-carousel.js', SU_PLUGIN_FILE ), array( 'jquery' ), '2.3.4', true );
49
- wp_register_style( 'owl-carousel', plugins_url( 'includes/css/owl-carousel.css', SU_PLUGIN_FILE ), false, '2.3.4', 'all' );
50
  // Animate.css
51
- wp_register_style( 'animate', plugins_url( 'includes/css/animate.css', SU_PLUGIN_FILE ), false, '3.1.1', 'all' );
52
  // InView
53
- wp_register_script( 'jquery-inview', plugins_url( 'includes/js/inview/inview.js', SU_PLUGIN_FILE ), array( 'jquery' ), '1.1.2', true );
54
  // qTip
55
- wp_register_style( 'qtip', plugins_url( 'includes/css/qtip.css', SU_PLUGIN_FILE ), false, '2.1.1', 'all' );
56
- wp_register_script( 'qtip', plugins_url( 'includes/js/qtip/qtip.js', SU_PLUGIN_FILE ), array( 'jquery' ), '2.1.1', true );
57
  // Magnific Popup
58
- wp_register_style( 'magnific-popup', plugins_url( 'includes/css/magnific-popup.css', SU_PLUGIN_FILE ), false, '1.1.0', 'all' );
59
- wp_register_script( 'magnific-popup', plugins_url( 'includes/js/magnific-popup/magnific-popup.js', SU_PLUGIN_FILE ), array( 'jquery' ), '1.1.0', true );
60
  // Swiper
61
- wp_register_script( 'swiper', plugins_url( 'includes/js/swiper/swiper.js', SU_PLUGIN_FILE ), array( 'jquery' ), '2.6.1', true );
62
  // Flickity
63
  wp_register_script(
64
  'flickity',
65
- plugins_url( 'includes/js/flickity/flickity.pkgd.min.js', SU_PLUGIN_FILE ),
66
  array(),
67
  '2.2.1',
68
  true
69
  );
70
  wp_register_style(
71
  'flickity',
72
- plugins_url( 'includes/css/flickity.min.css', SU_PLUGIN_FILE ),
73
  array(),
74
  '2.2.1',
75
  'all'
76
  );
77
  // jPlayer
78
- wp_register_script( 'jplayer', plugins_url( 'includes/js/jplayer/jplayer.js', SU_PLUGIN_FILE ), array( 'jquery' ), '2.4.0', true );
79
  // Generator
80
  wp_register_style( 'su-generator', plugins_url( 'admin/css/generator.css', SU_PLUGIN_FILE ), array( 'farbtastic', 'magnific-popup', 'simpleslider' ), SU_PLUGIN_VERSION, 'all' );
81
  wp_register_script( 'su-generator', plugins_url( 'includes/js/generator/index.js', SU_PLUGIN_FILE ), array( 'farbtastic', 'magnific-popup', 'simpleslider' ), SU_PLUGIN_VERSION, true );
40
  */
41
  public static function register() {
42
  // Chart.js
43
+ wp_register_script( 'chartjs', plugins_url( 'vendor/chartjs/chart.js', SU_PLUGIN_FILE ), false, '0.2', true );
44
  // SimpleSlider
45
+ wp_register_script( 'simpleslider', plugins_url( 'vendor/simpleslider/simpleslider.js', SU_PLUGIN_FILE ), array( 'jquery' ), '1.0.0', true );
46
+ wp_register_style( 'simpleslider', plugins_url( 'vendor/simpleslider/simpleslider.css', SU_PLUGIN_FILE ), false, '1.0.0', 'all' );
47
  // Owl Carousel
48
+ wp_register_script( 'owl-carousel', plugins_url( 'vendor/owl-carousel/owl-carousel.js', SU_PLUGIN_FILE ), array( 'jquery' ), '2.3.4', true );
49
+ wp_register_style( 'owl-carousel', plugins_url( 'vendor/owl-carousel/owl-carousel.css', SU_PLUGIN_FILE ), false, '2.3.4', 'all' );
50
  // Animate.css
51
+ wp_register_style( 'animate', plugins_url( 'vendor/animatecss/animate.css', SU_PLUGIN_FILE ), false, '3.1.1', 'all' );
52
  // InView
53
+ wp_register_script( 'jquery-inview', plugins_url( 'vendor/jquery-inview/jquery-inview.js', SU_PLUGIN_FILE ), array( 'jquery' ), '1.1.2', true );
54
  // qTip
55
+ wp_register_style( 'qtip', plugins_url( 'vendor/qtip/qtip.css', SU_PLUGIN_FILE ), false, '2.1.1', 'all' );
56
+ wp_register_script( 'qtip', plugins_url( 'vendor/qtip/qtip.js', SU_PLUGIN_FILE ), array( 'jquery' ), '2.1.1', true );
57
  // Magnific Popup
58
+ wp_register_style( 'magnific-popup', plugins_url( 'vendor/magnific-popup/magnific-popup.css', SU_PLUGIN_FILE ), false, '1.1.0', 'all' );
59
+ wp_register_script( 'magnific-popup', plugins_url( 'vendor/magnific-popup/magnific-popup.js', SU_PLUGIN_FILE ), array( 'jquery' ), '1.1.0', true );
60
  // Swiper
61
+ wp_register_script( 'swiper', plugins_url( 'vendor/swiper/swiper.js', SU_PLUGIN_FILE ), array( 'jquery' ), '2.6.1', true );
62
  // Flickity
63
  wp_register_script(
64
  'flickity',
65
+ plugins_url( 'vendor/flickity/flickity.js', SU_PLUGIN_FILE ),
66
  array(),
67
  '2.2.1',
68
  true
69
  );
70
  wp_register_style(
71
  'flickity',
72
+ plugins_url( 'vendor/flickity/flickity.css', SU_PLUGIN_FILE ),
73
  array(),
74
  '2.2.1',
75
  'all'
76
  );
77
  // jPlayer
78
+ wp_register_script( 'jplayer', plugins_url( 'vendor/jplayer/jplayer.js', SU_PLUGIN_FILE ), array( 'jquery' ), '2.4.0', true );
79
  // Generator
80
  wp_register_style( 'su-generator', plugins_url( 'admin/css/generator.css', SU_PLUGIN_FILE ), array( 'farbtastic', 'magnific-popup', 'simpleslider' ), SU_PLUGIN_VERSION, 'all' );
81
  wp_register_script( 'su-generator', plugins_url( 'includes/js/generator/index.js', SU_PLUGIN_FILE ), array( 'farbtastic', 'magnific-popup', 'simpleslider' ), SU_PLUGIN_VERSION, true );
inc/core/generator.php CHANGED
@@ -552,9 +552,15 @@ class Su_Generator {
552
  */
553
  public static function is_addons_active() {
554
 
555
- foreach ( su_get_config( 'addon-ids' ) as $addon ) {
556
 
557
- if ( ! did_action( "su/{$addon}/ready" ) ) {
 
 
 
 
 
 
558
  return false;
559
  }
560
 
552
  */
553
  public static function is_addons_active() {
554
 
555
+ foreach ( su_get_config( 'addons' ) as $addon ) {
556
 
557
+ if ( isset( $addon['is_bundle'] ) && $addon['is_bundle'] ) {
558
+ continue;
559
+ }
560
+
561
+ $addon_id = sanitize_key( $addon['id'] );
562
+
563
+ if ( ! did_action( "su/{$addon_id}/ready" ) ) {
564
  return false;
565
  }
566
 
includes/config/addon-ids.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
-
3
- return array( 'skins', 'maker', 'extra' );
 
 
 
includes/config/addons.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ return apply_filters(
4
+ 'su/data/addons',
5
+ array(
6
+ array(
7
+ 'id' => 'bundle',
8
+ 'slug' => 'add-ons-bundle',
9
+ 'title' => __( 'Add-ons Bundle', 'shortcodes-ultimate' ),
10
+ 'description' => __( 'Three-in-one, best price, simple', 'shortcodes-ultimate' ),
11
+ 'permalink' => 'https://getshortcodes.com/add-ons/add-ons-bundle/',
12
+ 'is_bundle' => true,
13
+ ),
14
+ array(
15
+ 'id' => 'extra',
16
+ 'slug' => 'additional-shortcodes',
17
+ 'title' => __( 'Extra Shortcodes', 'shortcodes-ultimate' ),
18
+ 'description' => __( 'A set of 15 additional shortcodes', 'shortcodes-ultimate' ),
19
+ 'permalink' => 'https://getshortcodes.com/add-ons/extra-shortcodes/',
20
+ ),
21
+ array(
22
+ 'id' => 'maker',
23
+ 'slug' => 'shortcode-creator',
24
+ 'title' => __( 'Shortcode Creator', 'shortcodes-ultimate' ),
25
+ 'description' => __( 'Create your own shortcodes', 'shortcodes-ultimate' ),
26
+ 'permalink' => 'https://getshortcodes.com/add-ons/shortcode-creator/',
27
+ ),
28
+ array(
29
+ 'id' => 'skins',
30
+ 'slug' => 'additional-skins',
31
+ 'title' => __( 'Additional Skins', 'shortcodes-ultimate' ),
32
+ 'description' => __( 'Add more style to your shortcodes', 'shortcodes-ultimate' ),
33
+ 'permalink' => 'https://getshortcodes.com/add-ons/additional-skins/',
34
+ ),
35
+ )
36
+ );
includes/css/rtl-shortcodes.css CHANGED
@@ -1,98 +1 @@
1
- /*** Shortcodes Ultimate - RTL support - front ***/
2
-
3
- /* Tabs + Tab
4
- ---------------------------------------------------------------*/
5
-
6
- .su-tabs-nav span {
7
- margin-right: 0;
8
- margin-left: 3px;
9
- }
10
- .su-tabs-vertical .su-tabs-nav {
11
- float: right;
12
- }
13
- .su-tabs-vertical .su-tabs-panes {
14
- float: right;
15
- }
16
- .su-tabs-vertical .su-tabs-nav span {
17
- margin-left: 0;
18
- }
19
- @media only screen and (max-width: 768px) {
20
- .su-tabs-vertical .su-tabs-nav,
21
- .su-tabs-vertical .su-tabs-panes {
22
- float: none;
23
- }
24
- }
25
-
26
- /* Spoiler + Accordion
27
- ---------------------------------------------------------------*/
28
-
29
- .su-spoiler-title {
30
- padding: 7px 34px 7px 7px;
31
- }
32
- .su-spoiler-icon {
33
- right: 7px;
34
- }
35
- .su-spoiler-style-default > .su-spoiler-title {
36
- padding-right: 27px;
37
- padding-left: 0;
38
- }
39
- .su-spoiler-style-default > .su-spoiler-title > .su-spoiler-icon { right: 0; }
40
-
41
- /* Quote
42
- ---------------------------------------------------------------*/
43
-
44
- .su-quote .su-quote-cite {
45
- text-align: left;
46
- }
47
-
48
- /* Row + Column
49
- ---------------------------------------------------------------*/
50
-
51
- .su-column {
52
- margin: 0 0 0 4%;
53
- float: right;
54
- }
55
- .su-column-last { margin-left: 0; }
56
- .su-row .su-column { margin: 0 4% 0 0; }
57
- .su-row .su-column.su-column-size-1-1 { margin-left: 0; margin-right: 0; }
58
- .su-row .su-column:first-child { margin-right: 0; }
59
- @media only screen {
60
- [class*="su-column"] + [class*="su-column"]:last-child { float: left; }
61
- }
62
-
63
- /* Service
64
- ---------------------------------------------------------------*/
65
-
66
- .su-service-title img,
67
- .su-service-title i {
68
- left: auto;
69
- right: 0;
70
- }
71
-
72
- /* Label
73
- ---------------------------------------------------------------*/
74
-
75
- .su-label {
76
- margin-right: 0;
77
- margin-left: 0.3em;
78
- }
79
-
80
- /* Dropcap
81
- ---------------------------------------------------------------*/
82
-
83
- .su-dropcap {
84
- float: right;
85
- margin: 0.2em 0 0.2em 0.5em;
86
- }
87
-
88
- /* List
89
- ---------------------------------------------------------------*/
90
-
91
- .su-list ul li {
92
- padding: 4px 2em 4px 0 !important;
93
- }
94
- .su-list ul li > img,
95
- .su-list ul li i {
96
- left: auto;
97
- right: 0;
98
- }
1
+ .su-tabs-nav span{margin-right:0;margin-left:3px}.su-tabs-vertical .su-tabs-nav{float:right}.su-tabs-vertical .su-tabs-panes{float:right}.su-tabs-vertical .su-tabs-nav span{margin-left:0}@media only screen and (max-width: 768px){.su-tabs-vertical .su-tabs-nav,.su-tabs-vertical .su-tabs-panes{float:none}}.su-spoiler-title{padding:7px 34px 7px 7px}.su-spoiler-icon{right:7px}.su-spoiler-style-default>.su-spoiler-title{padding-right:27px;padding-left:0}.su-spoiler-style-default>.su-spoiler-title>.su-spoiler-icon{right:0}.su-quote .su-quote-cite{text-align:left}.su-column{margin:0 0 0 4%;float:right}.su-column-last{margin-left:0}.su-row .su-column{margin:0 4% 0 0}.su-row .su-column.su-column-size-1-1{margin-left:0;margin-right:0}.su-row .su-column:first-child{margin-right:0}@media only screen{[class*="su-column"]+[class*="su-column"]:last-child{float:left}}.su-service-title img,.su-service-title i{left:auto;right:0}.su-label{margin-right:0;margin-left:0.3em}.su-dropcap{float:right;margin:0.2em 0 0.2em 0.5em}.su-list ul li{padding:4px 2em 4px 0 !important}.su-list ul li>img,.su-list ul li i{left:auto;right:0}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:focus{outline:1px dotted currentColor}.su-image-carousel-item{width:100%;box-sizing:border-box}.su-image-carousel-item-content{position:relative}.su-image-carousel-item-content a,.su-image-carousel-item-content img{display:block;width:100%;height:auto;margin:0;padding:0;box-sizing:border-box;box-shadow:none;text-decoration:none;border:none;border-radius:0}.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-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-top:-22px;opacity:0;outline:none;-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-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;font-size:13px;min-height:40px;line-height:20px;border-top-left-radius:3px;border-top-right-radius:3px;color:#333;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;font-size:13px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background:#fff;color:#333}.su-tabs-pane:not(.su-tabs-pane-open){height:0 !important;overflow:hidden !important;padding:0 !important;min-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-nav span{display:block}.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}}.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 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
@@ -1022,24 +1022,24 @@
1022
  margin-bottom: 0;
1023
  }
1024
 
1025
- .su-image-carousel:focus {
1026
- outline: 1px dotted currentColor;
1027
- }
1028
-
1029
  .su-image-carousel-item {
1030
  width: 100%;
1031
  box-sizing: border-box;
1032
  }
1033
 
1034
- .su-image-carousel-item-content {
1035
  position: relative;
1036
  }
1037
 
1038
- .su-image-carousel-item-content a,
1039
- .su-image-carousel-item-content img {
 
 
 
 
1040
  display: block;
1041
  width: 100%;
1042
- height: auto;
1043
  margin: 0;
1044
  padding: 0;
1045
  box-sizing: border-box;
@@ -1049,7 +1049,14 @@
1049
  border-radius: 0;
1050
  }
1051
 
1052
- .su-image-carousel-item-content span {
 
 
 
 
 
 
 
1053
  position: absolute;
1054
  display: block;
1055
  font-size: 0.9em;
@@ -1059,7 +1066,7 @@
1059
  word-wrap: break-word;
1060
  }
1061
 
1062
- .su-image-carousel-item-content span:empty {
1063
  display: none;
1064
  }
1065
 
@@ -1249,9 +1256,11 @@
1249
  display: block;
1250
  width: 44px;
1251
  height: 44px;
1252
- margin-top: -22px;
 
1253
  opacity: 0;
1254
  outline: none;
 
1255
  -webkit-transform: none;
1256
  transform: none;
1257
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
@@ -1463,6 +1472,21 @@
1463
  z-index: 102004 !important;
1464
  }
1465
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1466
  .su-label {
1467
  display: inline;
1468
  margin-right: 0.3em;
@@ -2394,12 +2418,12 @@
2394
  display: inline-block;
2395
  margin-right: 3px;
2396
  padding: 10px 15px;
2397
- font-size: 13px;
2398
  min-height: 40px;
2399
- line-height: 20px;
2400
  border-top-left-radius: 3px;
2401
  border-top-right-radius: 3px;
2402
  color: #333;
 
 
2403
  cursor: pointer;
2404
  -webkit-transition: all 0.2s;
2405
  transition: all 0.2s;
@@ -2425,18 +2449,18 @@
2425
 
2426
  .su-tabs-pane {
2427
  padding: 15px;
2428
- font-size: 13px;
2429
  border-bottom-right-radius: 3px;
2430
  border-bottom-left-radius: 3px;
2431
  background: #fff;
2432
  color: #333;
 
2433
  }
2434
 
2435
  .su-tabs-pane:not(.su-tabs-pane-open) {
2436
- height: 0 !important;
2437
  overflow: hidden !important;
2438
  padding: 0 !important;
2439
  min-height: 0 !important;
 
2440
  border: none !important;
2441
  }
2442
 
@@ -2476,9 +2500,6 @@
2476
  }
2477
 
2478
  @media only screen and (max-width: 768px) {
2479
- .su-tabs-nav span {
2480
- display: block;
2481
- }
2482
  .su-tabs-vertical {
2483
  -webkit-box-orient: vertical;
2484
  -webkit-box-direction: normal;
@@ -2494,6 +2515,17 @@
2494
  .su-tabs-vertical .su-tabs-panes .su-tabs-pane {
2495
  border-radius: 3px;
2496
  }
 
 
 
 
 
 
 
 
 
 
 
2497
  }
2498
 
2499
  .qtip.su-qtip {
1022
  margin-bottom: 0;
1023
  }
1024
 
 
 
 
 
1025
  .su-image-carousel-item {
1026
  width: 100%;
1027
  box-sizing: border-box;
1028
  }
1029
 
1030
+ .su-image-carousel .su-image-carousel-item-content {
1031
  position: relative;
1032
  }
1033
 
1034
+ .su-image-carousel .su-image-carousel-item-content a,
1035
+ .su-image-carousel .su-image-carousel-item-content a:hover,
1036
+ .su-image-carousel .su-image-carousel-item-content a:focus,
1037
+ .su-image-carousel .su-image-carousel-item-content a:visited,
1038
+ .su-image-carousel .su-image-carousel-item-content a:active,
1039
+ .su-image-carousel .su-image-carousel-item-content img {
1040
  display: block;
1041
  width: 100%;
1042
+ height: 100%;
1043
  margin: 0;
1044
  padding: 0;
1045
  box-sizing: border-box;
1049
  border-radius: 0;
1050
  }
1051
 
1052
+ .su-image-carousel .su-image-carousel-item-content a::before,
1053
+ .su-image-carousel .su-image-carousel-item-content a::after,
1054
+ .su-image-carousel .su-image-carousel-item-content img::before,
1055
+ .su-image-carousel .su-image-carousel-item-content img::after {
1056
+ display: none;
1057
+ }
1058
+
1059
+ .su-image-carousel .su-image-carousel-item-content span {
1060
  position: absolute;
1061
  display: block;
1062
  font-size: 0.9em;
1066
  word-wrap: break-word;
1067
  }
1068
 
1069
+ .su-image-carousel .su-image-carousel-item-content span:empty {
1070
  display: none;
1071
  }
1072
 
1256
  display: block;
1257
  width: 44px;
1258
  height: 44px;
1259
+ margin: -22px 0 0;
1260
+ padding: 0;
1261
  opacity: 0;
1262
  outline: none;
1263
+ border-radius: 50%;
1264
  -webkit-transform: none;
1265
  transform: none;
1266
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
1472
  z-index: 102004 !important;
1473
  }
1474
 
1475
+ .su-image-carousel-has-outline button.flickity-prev-next-button:focus,
1476
+ .su-image-carousel-has-outline .su-image-carousel-item-content a:focus img {
1477
+ outline-width: 2px;
1478
+ outline-style: solid;
1479
+ outline-color: Highlight;
1480
+ }
1481
+
1482
+ @media (-webkit-min-device-pixel-ratio: 0) {
1483
+ .su-image-carousel-has-outline button.flickity-prev-next-button:focus,
1484
+ .su-image-carousel-has-outline .su-image-carousel-item-content a:focus {
1485
+ outline-color: -webkit-focus-ring-color;
1486
+ outline-style: auto;
1487
+ }
1488
+ }
1489
+
1490
  .su-label {
1491
  display: inline;
1492
  margin-right: 0.3em;
2418
  display: inline-block;
2419
  margin-right: 3px;
2420
  padding: 10px 15px;
 
2421
  min-height: 40px;
 
2422
  border-top-left-radius: 3px;
2423
  border-top-right-radius: 3px;
2424
  color: #333;
2425
+ font-size: 13px;
2426
+ line-height: 20px;
2427
  cursor: pointer;
2428
  -webkit-transition: all 0.2s;
2429
  transition: all 0.2s;
2449
 
2450
  .su-tabs-pane {
2451
  padding: 15px;
 
2452
  border-bottom-right-radius: 3px;
2453
  border-bottom-left-radius: 3px;
2454
  background: #fff;
2455
  color: #333;
2456
+ font-size: 13px;
2457
  }
2458
 
2459
  .su-tabs-pane:not(.su-tabs-pane-open) {
 
2460
  overflow: hidden !important;
2461
  padding: 0 !important;
2462
  min-height: 0 !important;
2463
+ height: 0 !important;
2464
  border: none !important;
2465
  }
2466
 
2500
  }
2501
 
2502
  @media only screen and (max-width: 768px) {
 
 
 
2503
  .su-tabs-vertical {
2504
  -webkit-box-orient: vertical;
2505
  -webkit-box-direction: normal;
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 {
2522
+ display: -webkit-box;
2523
+ display: flex;
2524
+ -webkit-box-align: end;
2525
+ align-items: flex-end;
2526
+ white-space: nowrap;
2527
+ overflow-x: auto;
2528
+ }
2529
  }
2530
 
2531
  .qtip.su-qtip {
includes/functions-galleries.php CHANGED
@@ -282,7 +282,7 @@ function su_get_gallery_slides( $source, $args = array() ) {
282
 
283
  $slide = array(
284
  'attachment_id' => $attachment_id,
285
- 'caption' => wp_get_attachment_caption( $attachment_id ),
286
  );
287
 
288
  switch ( $args['link'] ) {
282
 
283
  $slide = array(
284
  'attachment_id' => $attachment_id,
285
+ 'caption' => trim( wp_get_attachment_caption( $attachment_id ) ),
286
  );
287
 
288
  switch ( $args['link'] ) {
includes/functions-helpers.php CHANGED
@@ -45,7 +45,7 @@ function su_get_plugin_version() {
45
  * @param string $key
46
  * @return mixed Config data if found, False otherwise.
47
  */
48
- function su_get_config( $key = null ) {
49
 
50
  static $config = array();
51
 
@@ -53,7 +53,7 @@ function su_get_config( $key = null ) {
53
  empty( $key ) ||
54
  preg_match( '/^(?!-)[a-z0-9-_]+(?<!-)(\/(?!-)[a-z0-9-_]+(?<!-))*$/', $key ) !== 1
55
  ) {
56
- return false;
57
  }
58
 
59
  if ( isset( $config[ $key ] ) ) {
@@ -63,7 +63,7 @@ function su_get_config( $key = null ) {
63
  $config_file = su_get_plugin_path() . 'includes/config/' . $key . '.php';
64
 
65
  if ( ! file_exists( $config_file ) ) {
66
- return false;
67
  }
68
 
69
  $config[ $key ] = include $config_file;
45
  * @param string $key
46
  * @return mixed Config data if found, False otherwise.
47
  */
48
+ function su_get_config( $key = null, $default = false ) {
49
 
50
  static $config = array();
51
 
53
  empty( $key ) ||
54
  preg_match( '/^(?!-)[a-z0-9-_]+(?<!-)(\/(?!-)[a-z0-9-_]+(?<!-))*$/', $key ) !== 1
55
  ) {
56
+ return $default;
57
  }
58
 
59
  if ( isset( $config[ $key ] ) ) {
63
  $config_file = su_get_plugin_path() . 'includes/config/' . $key . '.php';
64
 
65
  if ( ! file_exists( $config_file ) ) {
66
+ return $default;
67
  }
68
 
69
  $config[ $key ] = include $config_file;
includes/js/generator/index.js CHANGED
@@ -1 +1 @@
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"),u=d("#su-generator-choices"),c=u.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)c.css({opacity:1}).removeClass("su-generator-choice-first");else{var r=new RegExp(t,"gi");c.css({opacity:.2}),c.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(),u.show(),c.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"),u.show(),c.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")),c.css({opacity:.2}).removeClass("su-generator-choice-first"),c.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?(c.removeClass("su-generator-choice-first"),d(this).addClass("su-generator-choice-first"),s=999):r.length>s&&(c.removeClass("su-generator-choice-first"),d(this).addClass("su-generator-choice-first"),s=r.length))}),""===n&&c.removeClass("su-generator-choice-first")}}),c.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(),u.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=[];u.find("span").each(function(e){n[e]=d(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),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"),u=r.find(".su-generator-isp-images"),c=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()}),u.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();u.find("em").remove(),d.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=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,mainClass:"su-generator-mfp",items:{src:"#su-generator"},callbacks:{}};n.callbacks.open=function(){r?c.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(),u.show(),c.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 _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);
includes/js/shortcodes/index.js CHANGED
@@ -1 +1 @@
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"),o=t.data("poster"),n={width:a.width(),height:a.height()};a.jPlayer({ready:function(e){a.jPlayer("setMedia",{mp4:i,flv:i,poster:o}),"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:n,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"),o=t.parent(".su-tabs-nav").children("span"),n=t.parents(".su-tabs").find(".su-tabs-pane"),l=n.eq(i).find(".su-gmap:not(.su-gmap-reloaded)");if(s)return!1;n.removeClass("su-tabs-pane-open").eq(i).addClass("su-tabs-pane-open"),o.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")}),jQuery(document).ready(function(a){var s={MFPItems:{}};s.MFPL10n=SUShortcodesL10n.magnificPopup,s.initGalleries=function(){document.querySelectorAll(".su-image-carousel-has-lightbox").forEach(function(e,a){e.addEventListener("click",s.onGalleryClick);var t=e.querySelectorAll(".su-image-carousel-item-content > a");s.MFPItems[a]=[],t.forEach(function(e,t){e.setAttribute("data-gallery",a),e.setAttribute("data-index",t),s.MFPItems[a].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})})},s.onGalleryClick=function(e){var t=s.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()});if(t){e.preventDefault();var a=parseInt(t.getAttribute("data-gallery"),10),i=parseInt(t.getAttribute("data-index"),10);s.openMagnificPopup(a,i)}},s.openMagnificPopup=function(e,t){a.magnificPopup.open({items:s.MFPItems[e],type:"image",mainClass:"mfp-img-mobile su-image-carousel-mfp",gallery:{enabled:!0,navigateByImgClick:!0,preload:[1,1],tPrev:s.MFPL10n.prev,tNext:s.MFPL10n.next,tCounter:s.MFPL10n.counter},tClose:s.MFPL10n.close,tLoading:s.MFPL10n.loading},t)},s.closest=function(e,t){return e&&(t(e)?e:s.closest(e.parentNode,t))},s.initGalleries()});
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()});
includes/shortcodes/audio.php CHANGED
@@ -76,6 +76,6 @@ function su_shortcode_audio( $atts = null, $content = null ) {
76
  su_query_asset( 'js', 'jplayer' );
77
  su_query_asset( 'js', 'su-shortcodes' );
78
 
79
- return '<div class="su-audio' . su_get_css_class( $atts ) . '" data-id="' . $id . '" data-audio="' . $atts['url'] . '" data-swf="' . plugins_url( 'includes/js/jplayer/jplayer.swf', SU_PLUGIN_FILE ) . '" data-autoplay="' . $atts['autoplay'] . '" data-loop="' . $atts['loop'] . '" style="' . $width . '"><div id="' . $id . '" class="jp-jplayer"></div><div id="' . $id . '_container" class="jp-audio"><div class="jp-type-single"><div class="jp-gui jp-interface"><div class="jp-controls"><span class="jp-play"></span><span class="jp-pause"></span><span class="jp-stop"></span><span class="jp-mute"></span><span class="jp-unmute"></span><span class="jp-volume-max"></span></div><div class="jp-progress"><div class="jp-seek-bar"><div class="jp-play-bar"></div></div></div><div class="jp-volume-bar"><div class="jp-volume-bar-value"></div></div><div class="jp-current-time"></div><div class="jp-duration"></div></div><div class="jp-title">' . $atts['title'] . '</div></div></div></div>';
80
 
81
  }
76
  su_query_asset( 'js', 'jplayer' );
77
  su_query_asset( 'js', 'su-shortcodes' );
78
 
79
+ return '<div class="su-audio' . su_get_css_class( $atts ) . '" data-id="' . $id . '" data-audio="' . $atts['url'] . '" data-swf="' . plugins_url( 'vendor/jplayer/jplayer.swf', SU_PLUGIN_FILE ) . '" data-autoplay="' . $atts['autoplay'] . '" data-loop="' . $atts['loop'] . '" style="' . $width . '"><div id="' . $id . '" class="jp-jplayer"></div><div id="' . $id . '_container" class="jp-audio"><div class="jp-type-single"><div class="jp-gui jp-interface"><div class="jp-controls"><span class="jp-play"></span><span class="jp-pause"></span><span class="jp-stop"></span><span class="jp-mute"></span><span class="jp-unmute"></span><span class="jp-volume-max"></span></div><div class="jp-progress"><div class="jp-seek-bar"><div class="jp-play-bar"></div></div></div><div class="jp-volume-bar"><div class="jp-volume-bar-value"></div></div><div class="jp-current-time"></div><div class="jp-duration"></div></div><div class="jp-title">' . $atts['title'] . '</div></div></div></div>';
80
 
81
  }
includes/shortcodes/button.php CHANGED
@@ -361,13 +361,9 @@ function su_shortcode_button( $atts = null, $content = null ) {
361
  ? ' onClick="' . $atts['onclick'] . '"'
362
  : '';
363
 
364
- // Prepend `noopener` to the rel attribute value
365
- if ( 'blank' === $atts['target'] ) {
366
-
367
- $atts['rel'] = $atts['rel']
368
- ? 'noopener noreferrer ' . esc_attr( $atts['rel'] )
369
- : 'noopener noreferrer';
370
-
371
  }
372
 
373
  // Prepare download attribute
361
  ? ' onClick="' . $atts['onclick'] . '"'
362
  : '';
363
 
364
+ // Set rel attribute to `noopener noreferrer` if it's empty and target=blank
365
+ if ( 'blank' === $atts['target'] && '' === $atts['rel'] ) {
366
+ $atts['rel'] = 'noopener noreferrer';
 
 
 
 
367
  }
368
 
369
  // Prepare download attribute
includes/shortcodes/custom-gallery.php CHANGED
@@ -1,93 +1,98 @@
1
  <?php
2
 
3
- su_add_shortcode( array(
4
- 'id' => 'custom_gallery',
 
5
  'callback' => 'su_shortcode_custom_gallery',
6
- 'image' => su_get_plugin_url() . 'admin/images/shortcodes/custom_gallery.svg',
7
- 'name' => __( 'Gallery', 'shortcodes-ultimate' ),
8
- 'type' => 'single',
9
- 'group' => 'gallery',
10
- 'atts' => array(
11
  'source' => array(
12
  'type' => 'image_source',
13
  'default' => 'none',
14
  'name' => __( 'Source', 'shortcodes-ultimate' ),
15
- 'desc' => __( 'Choose images source. You can use images from Media library or retrieve it from posts (thumbnails) posted under specified blog category. You can also pick any custom taxonomy', 'shortcodes-ultimate' )
16
  ),
17
- 'limit' => array(
18
- 'type' => 'slider',
19
- 'min' => -1,
20
- 'max' => 100,
21
- 'step' => 1,
22
  'default' => 20,
23
- 'name' => __( 'Limit', 'shortcodes-ultimate' ),
24
- 'desc' => __( 'Maximum number of image source posts (for recent posts, category and custom taxonomy)', 'shortcodes-ultimate' )
25
  ),
26
- 'link' => array(
27
- 'type' => 'select',
28
- 'values' => array(
29
  'none' => __( 'None', 'shortcodes-ultimate' ),
30
  'image' => __( 'Full-size image', 'shortcodes-ultimate' ),
31
  'lightbox' => __( 'Lightbox', 'shortcodes-ultimate' ),
32
  'custom' => __( 'Slide link (added in media editor)', 'shortcodes-ultimate' ),
33
  'attachment' => __( 'Attachment page', 'shortcodes-ultimate' ),
34
- 'post' => __( 'Post permalink', 'shortcodes-ultimate' )
35
  ),
36
  'default' => 'none',
37
- 'name' => __( 'Links', 'shortcodes-ultimate' ),
38
- 'desc' => __( 'Select which links will be used for images in this gallery', 'shortcodes-ultimate' )
39
  ),
40
  'target' => array(
41
- 'type' => 'select',
42
- 'values' => array(
43
- 'self' => __( 'Open in same tab', 'shortcodes-ultimate' ),
44
- 'blank' => __( 'Open in new tab', 'shortcodes-ultimate' )
45
  ),
46
  'default' => 'self',
47
- 'name' => __( 'Links target', 'shortcodes-ultimate' ),
48
- 'desc' => __( 'Open links in', 'shortcodes-ultimate' )
49
  ),
50
- 'width' => array(
51
- 'type' => 'slider',
52
- 'min' => 10,
53
- 'max' => 1600,
54
- 'step' => 10,
55
  'default' => 90,
56
- 'name' => __( 'Width', 'shortcodes-ultimate' ), 'desc' => __( 'Single item width (in pixels)', 'shortcodes-ultimate' )
 
57
  ),
58
  'height' => array(
59
- 'type' => 'slider',
60
- 'min' => 10,
61
- 'max' => 1600,
62
- 'step' => 10,
63
  'default' => 90,
64
- 'name' => __( 'Height', 'shortcodes-ultimate' ), 'desc' => __( 'Single item height (in pixels)', 'shortcodes-ultimate' )
 
65
  ),
66
- 'title' => array(
67
- 'type' => 'select',
68
- 'values' => array(
69
- 'never' => __( 'Never', 'shortcodes-ultimate' ),
70
- 'hover' => __( 'On mouse over', 'shortcodes-ultimate' ),
71
- 'always' => __( 'Always', 'shortcodes-ultimate' )
72
  ),
73
  'default' => 'hover',
74
- 'name' => __( 'Show titles', 'shortcodes-ultimate' ),
75
- 'desc' => __( 'Title display mode', 'shortcodes-ultimate' )
76
  ),
77
- 'class' => array(
78
- 'type' => 'extra_css_class',
79
- 'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
80
- 'desc' => __( 'Additional CSS class name(s) separated by space(s)', 'shortcodes-ultimate' ),
81
  'default' => '',
82
  ),
83
  ),
84
- 'desc' => __( 'Customizable image gallery', 'shortcodes-ultimate' ),
85
- 'icon' => 'picture-o',
86
- ) );
 
87
 
88
  function su_shortcode_custom_gallery( $atts = null, $content = null ) {
89
  $return = '';
90
- $atts = shortcode_atts( array(
 
91
  'source' => 'none',
92
  'limit' => 20,
93
  'gallery' => null, // Dep. 4.4.0
@@ -96,12 +101,11 @@ function su_shortcode_custom_gallery( $atts = null, $content = null ) {
96
  'height' => 90,
97
  'title' => 'hover',
98
  'target' => 'self',
99
- 'class' => ''
100
- ), $atts, 'custom_gallery' );
101
-
102
- // TODO: `category` source support was removed in `su_parse_images_source()` (5)
103
- // Add: `$atts['source'] = str_replace( 'category:', 'taxonomy:category/', $atts['source'] );`
104
- // Also remove category source from generator
105
 
106
  $slides = su_get_slides( $atts );
107
  $slides = apply_filters( 'su/shortcode/custom_gallery/slides', $slides, $atts );
@@ -109,9 +113,11 @@ function su_shortcode_custom_gallery( $atts = null, $content = null ) {
109
  // Loop slides
110
  if ( count( $slides ) ) {
111
  // Prepare links target
112
- $atts['target'] = ( $atts['target'] === 'yes' || $atts['target'] === 'blank' ) ? ' target="_blank"' : '';
113
  // Add lightbox class
114
- if ( $atts['link'] === 'lightbox' ) $atts['class'] .= ' su-lightbox-gallery';
 
 
115
  // Open gallery
116
  $return = '<div class="su-custom-gallery su-custom-gallery-title-' . $atts['title'] . su_get_css_class( $atts ) . '">';
117
  // Create slides
@@ -123,9 +129,13 @@ function su_shortcode_custom_gallery( $atts = null, $content = null ) {
123
  // Open slide
124
  $return .= '<div class="su-custom-gallery-slide">';
125
  // Slide content with link
126
- if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '"' . $atts['target'] . ' title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>';
 
 
127
  // Slide content without link
128
- else $return .= '<a><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>';
 
 
129
  // Close slide
130
  $return .= '</div>';
131
  }
@@ -134,7 +144,7 @@ function su_shortcode_custom_gallery( $atts = null, $content = null ) {
134
  // Close gallery
135
  $return .= '</div>';
136
  // Add lightbox assets
137
- if ( $atts['link'] === 'lightbox' ) {
138
  su_query_asset( 'css', 'magnific-popup' );
139
  su_query_asset( 'js', 'jquery' );
140
  su_query_asset( 'js', 'magnific-popup' );
@@ -143,6 +153,8 @@ function su_shortcode_custom_gallery( $atts = null, $content = null ) {
143
  su_query_asset( 'css', 'su-shortcodes' );
144
  }
145
  // Slides not found
146
- else $return = su_error_message( 'Custom Gallery', __( 'images not found', 'shortcodes-ultimate' ) );
 
 
147
  return $return;
148
  }
1
  <?php
2
 
3
+ su_add_shortcode(
4
+ array(
5
+ 'id' => 'custom_gallery',
6
  'callback' => 'su_shortcode_custom_gallery',
7
+ 'image' => su_get_plugin_url() . 'admin/images/shortcodes/custom_gallery.svg',
8
+ 'name' => __( 'Gallery', 'shortcodes-ultimate' ),
9
+ 'type' => 'single',
10
+ 'group' => 'gallery',
11
+ 'atts' => array(
12
  'source' => array(
13
  'type' => 'image_source',
14
  'default' => 'none',
15
  'name' => __( 'Source', 'shortcodes-ultimate' ),
16
+ 'desc' => __( 'Choose images source. You can use images from Media library or retrieve it from posts (thumbnails) posted under specified blog category. You can also pick any custom taxonomy', 'shortcodes-ultimate' ),
17
  ),
18
+ 'limit' => array(
19
+ 'type' => 'slider',
20
+ 'min' => -1,
21
+ 'max' => 100,
22
+ 'step' => 1,
23
  'default' => 20,
24
+ 'name' => __( 'Limit', 'shortcodes-ultimate' ),
25
+ 'desc' => __( 'Maximum number of image source posts (for recent posts, category and custom taxonomy)', 'shortcodes-ultimate' ),
26
  ),
27
+ 'link' => array(
28
+ 'type' => 'select',
29
+ 'values' => array(
30
  'none' => __( 'None', 'shortcodes-ultimate' ),
31
  'image' => __( 'Full-size image', 'shortcodes-ultimate' ),
32
  'lightbox' => __( 'Lightbox', 'shortcodes-ultimate' ),
33
  'custom' => __( 'Slide link (added in media editor)', 'shortcodes-ultimate' ),
34
  'attachment' => __( 'Attachment page', 'shortcodes-ultimate' ),
35
+ 'post' => __( 'Post permalink', 'shortcodes-ultimate' ),
36
  ),
37
  'default' => 'none',
38
+ 'name' => __( 'Links', 'shortcodes-ultimate' ),
39
+ 'desc' => __( 'Select which links will be used for images in this gallery', 'shortcodes-ultimate' ),
40
  ),
41
  'target' => array(
42
+ 'type' => 'select',
43
+ 'values' => array(
44
+ 'self' => __( 'Open in same tab', 'shortcodes-ultimate' ),
45
+ 'blank' => __( 'Open in new tab', 'shortcodes-ultimate' ),
46
  ),
47
  'default' => 'self',
48
+ 'name' => __( 'Links target', 'shortcodes-ultimate' ),
49
+ 'desc' => __( 'Open links in', 'shortcodes-ultimate' ),
50
  ),
51
+ 'width' => array(
52
+ 'type' => 'slider',
53
+ 'min' => 10,
54
+ 'max' => 1600,
55
+ 'step' => 10,
56
  'default' => 90,
57
+ 'name' => __( 'Width', 'shortcodes-ultimate' ),
58
+ 'desc' => __( 'Single item width (in pixels)', 'shortcodes-ultimate' ),
59
  ),
60
  'height' => array(
61
+ 'type' => 'slider',
62
+ 'min' => 10,
63
+ 'max' => 1600,
64
+ 'step' => 10,
65
  'default' => 90,
66
+ 'name' => __( 'Height', 'shortcodes-ultimate' ),
67
+ 'desc' => __( 'Single item height (in pixels)', 'shortcodes-ultimate' ),
68
  ),
69
+ 'title' => array(
70
+ 'type' => 'select',
71
+ 'values' => array(
72
+ 'never' => __( 'Never', 'shortcodes-ultimate' ),
73
+ 'hover' => __( 'On mouse over', 'shortcodes-ultimate' ),
74
+ 'always' => __( 'Always', 'shortcodes-ultimate' ),
75
  ),
76
  'default' => 'hover',
77
+ 'name' => __( 'Show titles', 'shortcodes-ultimate' ),
78
+ 'desc' => __( 'Title display mode', 'shortcodes-ultimate' ),
79
  ),
80
+ 'class' => array(
81
+ 'type' => 'extra_css_class',
82
+ 'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
83
+ 'desc' => __( 'Additional CSS class name(s) separated by space(s)', 'shortcodes-ultimate' ),
84
  'default' => '',
85
  ),
86
  ),
87
+ 'desc' => __( 'Customizable image gallery', 'shortcodes-ultimate' ),
88
+ 'icon' => 'picture-o',
89
+ )
90
+ );
91
 
92
  function su_shortcode_custom_gallery( $atts = null, $content = null ) {
93
  $return = '';
94
+ $atts = shortcode_atts(
95
+ array(
96
  'source' => 'none',
97
  'limit' => 20,
98
  'gallery' => null, // Dep. 4.4.0
101
  'height' => 90,
102
  'title' => 'hover',
103
  'target' => 'self',
104
+ 'class' => '',
105
+ ),
106
+ $atts,
107
+ 'custom_gallery'
108
+ );
 
109
 
110
  $slides = su_get_slides( $atts );
111
  $slides = apply_filters( 'su/shortcode/custom_gallery/slides', $slides, $atts );
113
  // Loop slides
114
  if ( count( $slides ) ) {
115
  // Prepare links target
116
+ $atts['target'] = ( 'yes' === $atts['target'] || 'blank' === $atts['target'] ) ? ' target="_blank"' : '';
117
  // Add lightbox class
118
+ if ( 'lightbox' === $atts['link'] ) {
119
+ $atts['class'] .= ' su-lightbox-gallery';
120
+ }
121
  // Open gallery
122
  $return = '<div class="su-custom-gallery su-custom-gallery-title-' . $atts['title'] . su_get_css_class( $atts ) . '">';
123
  // Create slides
129
  // Open slide
130
  $return .= '<div class="su-custom-gallery-slide">';
131
  // Slide content with link
132
+ if ( $slide['link'] ) {
133
+ $return .= '<a href="' . $slide['link'] . '"' . $atts['target'] . ' title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>';
134
+ }
135
  // Slide content without link
136
+ else {
137
+ $return .= '<a><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>';
138
+ }
139
  // Close slide
140
  $return .= '</div>';
141
  }
144
  // Close gallery
145
  $return .= '</div>';
146
  // Add lightbox assets
147
+ if ( 'lightbox' === $atts['link'] ) {
148
  su_query_asset( 'css', 'magnific-popup' );
149
  su_query_asset( 'js', 'jquery' );
150
  su_query_asset( 'js', 'magnific-popup' );
153
  su_query_asset( 'css', 'su-shortcodes' );
154
  }
155
  // Slides not found
156
+ else {
157
+ $return = su_error_message( 'Custom Gallery', __( 'images not found', 'shortcodes-ultimate' ) );
158
+ }
159
  return $return;
160
  }
includes/shortcodes/image-carousel.php CHANGED
@@ -176,6 +176,12 @@ su_add_shortcode(
176
  'name' => __( 'Images size (quality)', 'shortcodes-ultimate' ),
177
  'desc' => __( 'This option controls the size of carousel slide images. This option only affects image quality, not the actual slide size.', 'shortcodes-ultimate' ),
178
  ),
 
 
 
 
 
 
179
  'class' => array(
180
  'type' => 'extra_css_class',
181
  'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
@@ -283,6 +289,10 @@ function su_shortcode_image_carousel( $atts = null, $content = null ) {
283
  $atts['class'] .= ' su-image-carousel-has-lightbox';
284
  }
285
 
 
 
 
 
286
  if ( 'yes' === $atts['adaptive'] ) {
287
  $atts['class'] .= ' su-image-carousel-adaptive';
288
  }
@@ -309,6 +319,7 @@ function su_shortcode_image_carousel( $atts = null, $content = null ) {
309
  'prevNextButtons' => 'yes' === $atts['arrows'],
310
  'pageDots' => 'yes' === $atts['dots'],
311
  'autoPlay' => $atts['autoplay'] > 0 ? $atts['autoplay'] * 1000 : false,
 
312
  // Disable 'contain' if slides have variable height
313
  // @see: https://github.com/metafizzy/flickity/issues/554
314
  'contain' => 'none' !== $atts['crop'],
@@ -319,6 +330,8 @@ function su_shortcode_image_carousel( $atts = null, $content = null ) {
319
  $flickity['friction'] = $transitions[ $atts['speed'] ][1];
320
  }
321
 
 
 
322
  $flickity = apply_filters(
323
  'su/shortcode/image_carousel/flickity',
324
  $flickity,
@@ -335,12 +348,19 @@ function su_shortcode_image_carousel( $atts = null, $content = null ) {
335
  su_query_asset( 'css', 'flickity' );
336
  su_query_asset( 'css', 'su-shortcodes' );
337
 
 
 
 
 
 
338
  return sprintf(
339
- '<div class="su-image-carousel %1$s" style="%2$s" data-flickity=\'%3$s\'>%4$s</div>',
340
  esc_attr( su_get_css_class( $atts ) ),
341
  esc_attr( implode( ';', $styles ) ),
342
  wp_json_encode( $flickity ),
343
- implode( $items )
 
 
344
  );
345
 
346
  }
176
  'name' => __( 'Images size (quality)', 'shortcodes-ultimate' ),
177
  'desc' => __( 'This option controls the size of carousel slide images. This option only affects image quality, not the actual slide size.', 'shortcodes-ultimate' ),
178
  ),
179
+ 'outline' => array(
180
+ 'type' => 'bool',
181
+ 'default' => 'yes',
182
+ 'name' => __( 'Outline on focus', 'shortcodes-ultimate' ),
183
+ 'desc' => __( 'This option enables outline when carousel gets focus. The outline improves keyboard navigation.', 'shortcodes-ultimate' ),
184
+ ),
185
  'class' => array(
186
  'type' => 'extra_css_class',
187
  'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
289
  $atts['class'] .= ' su-image-carousel-has-lightbox';
290
  }
291
 
292
+ if ( 'yes' === $atts['outline'] ) {
293
+ $atts['class'] .= ' su-image-carousel-has-outline';
294
+ }
295
+
296
  if ( 'yes' === $atts['adaptive'] ) {
297
  $atts['class'] .= ' su-image-carousel-adaptive';
298
  }
319
  'prevNextButtons' => 'yes' === $atts['arrows'],
320
  'pageDots' => 'yes' === $atts['dots'],
321
  'autoPlay' => $atts['autoplay'] > 0 ? $atts['autoplay'] * 1000 : false,
322
+ 'imagesLoaded' => true,
323
  // Disable 'contain' if slides have variable height
324
  // @see: https://github.com/metafizzy/flickity/issues/554
325
  'contain' => 'none' !== $atts['crop'],
330
  $flickity['friction'] = $transitions[ $atts['speed'] ][1];
331
  }
332
 
333
+ $uniqid = uniqid( 'su_image_carousel_' );
334
+
335
  $flickity = apply_filters(
336
  'su/shortcode/image_carousel/flickity',
337
  $flickity,
348
  su_query_asset( 'css', 'flickity' );
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
+
356
  return sprintf(
357
+ '<div class="su-image-carousel %1$s" style="%2$s" data-flickity-options=\'%3$s\' id="%4$s">%5$s</div>%6$s',
358
  esc_attr( su_get_css_class( $atts ) ),
359
  esc_attr( implode( ';', $styles ) ),
360
  wp_json_encode( $flickity ),
361
+ esc_attr( $uniqid ),
362
+ implode( $items ),
363
+ $script
364
  );
365
 
366
  }
includes/shortcodes/tabs.php CHANGED
@@ -36,6 +36,17 @@ su_add_shortcode(
36
  'name' => __( 'Vertical', 'shortcodes-ultimate' ),
37
  'desc' => __( 'Align tabs vertically', 'shortcodes-ultimate' ),
38
  ),
 
 
 
 
 
 
 
 
 
 
 
39
  'class' => array(
40
  'type' => 'extra_css_class',
41
  'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
@@ -117,6 +128,7 @@ function su_shortcode_tabs( $atts = null, $content = null ) {
117
  'active' => 1,
118
  'vertical' => 'no',
119
  'style' => 'default', // 3.x
 
120
  'class' => '',
121
  ),
122
  $atts,
@@ -152,7 +164,9 @@ function su_shortcode_tabs( $atts = null, $content = null ) {
152
 
153
  }
154
 
155
- $output = '<div class="su-tabs su-tabs-style-' . $atts['style'] . su_get_css_class( $atts ) . '" data-active="' . (string) $atts['active'] . '"><div class="su-tabs-nav">' . implode( '', $tabs ) . '</div><div class="su-tabs-panes">' . implode( "\n", $panes ) . '</div></div>';
 
 
156
 
157
  // Reset tabs
158
  $shortcodes_ultimate_global_tabs = array();
36
  'name' => __( 'Vertical', 'shortcodes-ultimate' ),
37
  'desc' => __( 'Align tabs vertically', 'shortcodes-ultimate' ),
38
  ),
39
+ 'mobile' => array(
40
+ 'type' => 'select',
41
+ 'values' => array(
42
+ 'stack' => __( 'Stack – tab handles will stack vertically', 'shortcodes-ultimate' ),
43
+ 'desktop' => __( 'Desktop – tabs will be displayed as on the desktop', 'shortcodes-ultimate' ),
44
+ 'scroll' => __( 'Scroll – tab bar will be scrollable horizontally', 'shortcodes-ultimate' ),
45
+ ),
46
+ 'default' => 'stack',
47
+ 'name' => __( 'Appearance on mobile devices', 'shortcodes-ultimate' ),
48
+ 'desc' => __( 'This option controls how shortcode will look and function on mobile devices.', 'shortcodes-ultimate' ),
49
+ ),
50
  'class' => array(
51
  'type' => 'extra_css_class',
52
  'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
128
  'active' => 1,
129
  'vertical' => 'no',
130
  'style' => 'default', // 3.x
131
+ 'mobile' => 'stack',
132
  'class' => '',
133
  ),
134
  $atts,
164
 
165
  }
166
 
167
+ $atts['mobile'] = sanitize_key( $atts['mobile'] );
168
+
169
+ $output = '<div class="su-tabs su-tabs-style-' . $atts['style'] . ' su-tabs-mobile-' . $atts['mobile'] . su_get_css_class( $atts ) . '" data-active="' . (string) $atts['active'] . '"><div class="su-tabs-nav">' . implode( '', $tabs ) . '</div><div class="su-tabs-panes">' . implode( "\n", $panes ) . '</div></div>';
170
 
171
  // Reset tabs
172
  $shortcodes_ultimate_global_tabs = array();
includes/shortcodes/video.php CHANGED
@@ -109,6 +109,6 @@ function su_shortcode_video( $atts = null, $content = null ) {
109
  su_query_asset( 'js', 'jplayer' );
110
  su_query_asset( 'js', 'su-shortcodes' );
111
 
112
- return '<div style="width:' . $atts['width'] . 'px"><div id="' . $id . '" class="su-video jp-video su-video-controls-' . $atts['controls'] . su_get_css_class( $atts ) . '" data-id="' . $id . '" data-video="' . $atts['url'] . '" data-swf="' . plugins_url( 'includes/js/jplayer/jplayer.swf', SU_PLUGIN_FILE ) . '" data-autoplay="' . $atts['autoplay'] . '" data-loop="' . $atts['loop'] . '" data-poster="' . $atts['poster'] . '"><div id="' . $id . '_player" class="jp-jplayer" style="width:' . $atts['width'] . 'px;height:' . $atts['height'] . 'px"></div>' . $title . '<div class="jp-start jp-play"></div><div class="jp-gui"><div class="jp-interface"><div class="jp-progress"><div class="jp-seek-bar"><div class="jp-play-bar"></div></div></div><div class="jp-current-time"></div><div class="jp-duration"></div><div class="jp-controls-holder"><span class="jp-play"></span><span class="jp-pause"></span><span class="jp-mute"></span><span class="jp-unmute"></span><span class="jp-full-screen"></span><span class="jp-restore-screen"></span><div class="jp-volume-bar"><div class="jp-volume-bar-value"></div></div></div></div></div></div></div>';
113
 
114
  }
109
  su_query_asset( 'js', 'jplayer' );
110
  su_query_asset( 'js', 'su-shortcodes' );
111
 
112
+ return '<div style="width:' . $atts['width'] . 'px"><div id="' . $id . '" class="su-video jp-video su-video-controls-' . $atts['controls'] . su_get_css_class( $atts ) . '" data-id="' . $id . '" data-video="' . $atts['url'] . '" data-swf="' . plugins_url( 'vendor/jplayer/jplayer.swf', SU_PLUGIN_FILE ) . '" data-autoplay="' . $atts['autoplay'] . '" data-loop="' . $atts['loop'] . '" data-poster="' . $atts['poster'] . '"><div id="' . $id . '_player" class="jp-jplayer" style="width:' . $atts['width'] . 'px;height:' . $atts['height'] . 'px"></div>' . $title . '<div class="jp-start jp-play"></div><div class="jp-gui"><div class="jp-interface"><div class="jp-progress"><div class="jp-seek-bar"><div class="jp-play-bar"></div></div></div><div class="jp-current-time"></div><div class="jp-duration"></div><div class="jp-controls-holder"><span class="jp-play"></span><span class="jp-pause"></span><span class="jp-mute"></span><span class="jp-unmute"></span><span class="jp-full-screen"></span><span class="jp-restore-screen"></span><div class="jp-volume-bar"><div class="jp-volume-bar-value"></div></div></div></div></div></div></div>';
113
 
114
  }
includes/shortcodes/vimeo.php CHANGED
@@ -61,6 +61,11 @@ su_add_shortcode(
61
  'desc' => __( 'A brief description of the embedded content (used by screenreaders)', 'shortcodes-ultimate' ),
62
  'default' => '',
63
  ),
 
 
 
 
 
64
  'class' => array(
65
  'type' => 'extra_css_class',
66
  'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
@@ -86,6 +91,7 @@ function su_shortcode_vimeo( $atts = null, $content = null ) {
86
  'mute' => 'no',
87
  'responsive' => 'yes',
88
  'title' => '',
 
89
  'class' => '',
90
  ),
91
  $atts,
@@ -107,17 +113,18 @@ function su_shortcode_vimeo( $atts = null, $content = null ) {
107
  }
108
 
109
  $url_params = array(
110
- 'title' => 0,
111
- 'byline' => 0,
112
- 'portrait' => 0,
113
- 'color' => 'ffffff',
114
- 'autoplay' => 'yes' === $atts['autoplay'] ? 1 : 0,
115
- 'dnt' => 'yes' === $atts['dnt'] ? 1 : 0,
116
- 'muted' => 'yes' === $atts['mute'] ? 1 : 0,
 
117
  );
118
 
119
  su_query_asset( 'css', 'su-shortcodes' );
120
 
121
- return '<div class="su-vimeo su-u-responsive-media-' . $atts['responsive'] . su_get_css_class( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="//player.vimeo.com/video/' . $video_id . '?' . http_build_query( $url_params ) . '" frameborder="0" allowfullscreen="true" title="' . esc_attr( $atts['title'] ) . '"></iframe></div>';
122
 
123
  }
61
  'desc' => __( 'A brief description of the embedded content (used by screenreaders)', 'shortcodes-ultimate' ),
62
  'default' => '',
63
  ),
64
+ 'texttrack' => array(
65
+ 'name' => __( 'Subtitles', 'shortcodes-ultimate' ),
66
+ 'desc' => __( 'Use language code as the value to enable subtitles. Example values: en, es', 'shortcodes-ultimate' ),
67
+ 'default' => '',
68
+ ),
69
  'class' => array(
70
  'type' => 'extra_css_class',
71
  'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
91
  'mute' => 'no',
92
  'responsive' => 'yes',
93
  'title' => '',
94
+ 'texttrack' => '',
95
  'class' => '',
96
  ),
97
  $atts,
113
  }
114
 
115
  $url_params = array(
116
+ 'title' => 0,
117
+ 'byline' => 0,
118
+ 'portrait' => 0,
119
+ 'color' => 'ffffff',
120
+ 'autoplay' => 'yes' === $atts['autoplay'] ? 1 : 0,
121
+ 'dnt' => 'yes' === $atts['dnt'] ? 1 : 0,
122
+ 'muted' => 'yes' === $atts['mute'] ? 1 : 0,
123
+ 'texttrack' => $atts['texttrack'],
124
  );
125
 
126
  su_query_asset( 'css', 'su-shortcodes' );
127
 
128
+ return '<div class="su-vimeo su-u-responsive-media-' . $atts['responsive'] . su_get_css_class( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="//player.vimeo.com/video/' . $video_id . '?' . esc_attr( http_build_query( $url_params ) ) . '" frameborder="0" allow="autoplay; fullscreen" allowfullscreen title="' . esc_attr( $atts['title'] ) . '"></iframe></div>';
129
 
130
  }
includes/shortcodes/youtube-advanced.php CHANGED
@@ -112,12 +112,6 @@ su_add_shortcode(
112
  'name' => __( 'Theme', 'shortcodes-ultimate' ),
113
  'desc' => __( 'This parameter indicates whether the embedded player will display player controls (like a play button or volume control) within a dark or light control bar', 'shortcodes-ultimate' ),
114
  ),
115
- 'https' => array(
116
- 'type' => 'bool',
117
- 'default' => 'no',
118
- 'name' => __( 'Force HTTPS', 'shortcodes-ultimate' ),
119
- 'desc' => __( 'Use HTTPS in player iframe', 'shortcodes-ultimate' ),
120
- ),
121
  'wmode' => array(
122
  'default' => '',
123
  'name' => __( 'WMode', 'shortcodes-ultimate' ),
@@ -167,7 +161,6 @@ function su_shortcode_youtube_advanced( $atts = null, $content = null ) {
167
  'rel' => 'yes',
168
  'showinfo' => 'yes',
169
  'theme' => 'dark',
170
- 'https' => 'no',
171
  'wmode' => '',
172
  'playsinline' => 'no',
173
  'title' => '',
@@ -191,6 +184,10 @@ function su_shortcode_youtube_advanced( $atts = null, $content = null ) {
191
  return su_error_message( 'YouTube Advanced', __( 'please specify correct url', 'shortcodes-ultimate' ) );
192
  }
193
 
 
 
 
 
194
  $url_params = array();
195
  $yt_options = array(
196
  'autohide',
@@ -218,16 +215,12 @@ function su_shortcode_youtube_advanced( $atts = null, $content = null ) {
218
 
219
  $url_params = http_build_query( $url_params );
220
 
221
- $protocol = 'yes' === $atts['https']
222
- ? 'https'
223
- : 'http';
224
-
225
  $domain = strpos( $atts['url'], 'youtube-nocookie.com' ) !== false
226
  ? 'www.youtube-nocookie.com'
227
  : 'www.youtube.com';
228
 
229
  su_query_asset( 'css', 'su-shortcodes' );
230
 
231
- return '<div class="su-youtube su-u-responsive-media-' . $atts['responsive'] . su_get_css_class( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="' . $protocol . '://' . $domain . '/embed/' . $video_id . '?' . $url_params . '" frameborder="0" allowfullscreen="true" title="' . esc_attr( $atts['title'] ) . '"></iframe></div>';
232
 
233
  }
112
  'name' => __( 'Theme', 'shortcodes-ultimate' ),
113
  'desc' => __( 'This parameter indicates whether the embedded player will display player controls (like a play button or volume control) within a dark or light control bar', 'shortcodes-ultimate' ),
114
  ),
 
 
 
 
 
 
115
  'wmode' => array(
116
  'default' => '',
117
  'name' => __( 'WMode', 'shortcodes-ultimate' ),
161
  'rel' => 'yes',
162
  'showinfo' => 'yes',
163
  'theme' => 'dark',
 
164
  'wmode' => '',
165
  'playsinline' => 'no',
166
  'title' => '',
184
  return su_error_message( 'YouTube Advanced', __( 'please specify correct url', 'shortcodes-ultimate' ) );
185
  }
186
 
187
+ if ( 'alt' === $atts['controls'] ) {
188
+ $atts['controls'] = 'yes';
189
+ }
190
+
191
  $url_params = array();
192
  $yt_options = array(
193
  'autohide',
215
 
216
  $url_params = http_build_query( $url_params );
217
 
 
 
 
 
218
  $domain = strpos( $atts['url'], 'youtube-nocookie.com' ) !== false
219
  ? 'www.youtube-nocookie.com'
220
  : 'www.youtube.com';
221
 
222
  su_query_asset( 'css', 'su-shortcodes' );
223
 
224
+ return '<div class="su-youtube su-u-responsive-media-' . $atts['responsive'] . su_get_css_class( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="https://' . $domain . '/embed/' . $video_id . '?' . $url_params . '" frameborder="0" allowfullscreen="true" title="' . esc_attr( $atts['title'] ) . '"></iframe></div>';
225
 
226
  }
readme.txt CHANGED
@@ -151,6 +151,28 @@ For help with premium add-ons, please [open new support ticket](https://getshort
151
 
152
  == Changelog ==
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  = 5.4.1 =
155
 
156
  This update fix various issues related to version 5.4.0
151
 
152
  == Changelog ==
153
 
154
+ = 5.5.0 =
155
+
156
+ **What's new**
157
+
158
+ - New option `outline` for `[su_image_carousel]` which allows disabling carousel outline (when it gets focus)
159
+ - New option `mobile` for `[su_tabs]` which allows disabling tab stacking on mobile devices
160
+ - New option `texttrack` for `[su_vimeo]` which allows enabling video subtitles
161
+
162
+ **Improvements**
163
+
164
+ - `[su_youtube_advanced]` is now always served through https
165
+ - `[su_image_carousel]`: improved compatibility with various themes
166
+ - `[su_image_carousel]`: the gallery can now be loaded through AJAX
167
+ - `[su_image_carousel]`: improved keyboard navigation
168
+ - Insert Shortcode window will now remain open if the dark background clicked
169
+
170
+ **Fixes**
171
+
172
+ - Fixed `[su_image_carousel]` issue with empty image captions (with whitespace)
173
+ - Fixed `[su_image_carousel]` issue where images weren't shown when crop is disabled
174
+
175
+
176
  = 5.4.1 =
177
 
178
  This update fix various issues related to version 5.4.0
shortcodes-ultimate.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Shortcodes Ultimate
4
  * Plugin URI: https://getshortcodes.com/
5
- * Version: 5.4.1
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.4.1' );
19
 
20
  /**
21
  * Load dependencies.
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
  * Define plugin constants.
16
  */
17
  define( 'SU_PLUGIN_FILE', __FILE__ );
18
+ define( 'SU_PLUGIN_VERSION', '5.5.0' );
19
 
20
  /**
21
  * Load dependencies.
{includes/css → vendor/animatecss}/animate.css RENAMED
File without changes
{includes/js → vendor}/chartjs/chart.js RENAMED
File without changes
includes/css/flickity.min.css → vendor/flickity/flickity.css RENAMED
File without changes
includes/js/flickity/flickity.pkgd.min.js → vendor/flickity/flickity.js RENAMED
File without changes
{includes/js → vendor}/jplayer/jplayer.js RENAMED
File without changes
{includes/js → vendor}/jplayer/jplayer.swf RENAMED
File without changes
includes/js/inview/inview.js → vendor/jquery-inview/jquery-inview.js RENAMED
File without changes
{includes/css → vendor/magnific-popup}/magnific-popup.css RENAMED
File without changes
{includes/js → vendor}/magnific-popup/magnific-popup.js RENAMED
File without changes
{includes/css → vendor/owl-carousel}/owl-carousel.css RENAMED
File without changes
{includes/js → vendor}/owl-carousel/owl-carousel.js RENAMED
File without changes
{includes/css → vendor/qtip}/qtip.css RENAMED
File without changes
{includes/js → vendor}/qtip/qtip.js RENAMED
File without changes
{includes/css → vendor/simpleslider}/simpleslider.css RENAMED
File without changes
{includes/js → vendor}/simpleslider/simpleslider.js RENAMED
File without changes
{includes/js → vendor}/swiper/swiper.js RENAMED
File without changes