Version Description
- November 27th 2017 =
Download this release
Release Info
Developer | LiveComposer |
Plugin | Page Builder: Live Composer – drag and drop website builder (visual front end site editor) |
Version | 1.3.9 |
Comparing to | |
See all releases |
Code changes from version 1.3.8.1 to 1.3.9
- ds-live-composer.php +4 -3
- images/extensions/acfsupport/index.php +1 -0
- images/extensions/acfsupport/thumbnail.png +0 -0
- images/extensions/animations/index.php +1 -0
- images/extensions/animations/thumbnail.png +0 -0
- images/extensions/beforeafter/index.php +1 -0
- images/extensions/beforeafter/thumbnail.png +0 -0
- images/extensions/contentwidth/index.php +1 -0
- images/extensions/contentwidth/thumbnail.png +0 -0
- images/extensions/cptsupport/index.php +1 -0
- images/extensions/cptsupport/thumbnail.png +0 -0
- images/extensions/gallery/index.php +1 -0
- images/extensions/gallery/thumbnail.png +0 -0
- images/extensions/googlemaps/index.php +1 -0
- images/extensions/googlemaps/thumbnail.png +0 -0
- images/extensions/index.php +1 -0
- images/extensions/lineicons/index.php +1 -0
- images/extensions/lineicons/thumbnail.png +0 -0
- images/extensions/menu/index.php +1 -0
- images/extensions/menu/thumbnail.png +0 -0
- images/extensions/prevnextpost/index.php +1 -0
- images/extensions/prevnextpost/thumbnail.png +0 -0
- images/extensions/sliders/index.php +1 -0
- images/extensions/sliders/thumbnail.png +0 -0
- images/extensions/video/index.php +1 -0
- images/extensions/video/thumbnail.png +0 -0
- images/icon-cpt.png +0 -0
- images/icon-designs.png +0 -0
- images/icon-graph.png +0 -0
- images/icon-illustrations.png +0 -0
- images/icon-mailchimp.png +0 -0
- images/icon-menu.png +0 -0
- images/icon-ninja.png +0 -0
- images/icon-payments.png +0 -0
- images/icon-plugins.png +0 -0
- images/icon-shoppingcart.png +0 -0
- images/icon-slider.png +0 -0
- images/icon-social.png +0 -0
- images/icon-support.png +0 -0
- images/lc-acf.png +0 -0
- images/lc-designs.png +0 -0
- images/lc-extension-acfintegration.png +0 -0
- images/lc-extension-cpt.png +0 -0
- images/lc-extension-megamenu.png +0 -0
- images/lc-extension-sliders.png +0 -0
- images/lc-extension-woo.png +0 -0
- images/lc-menu.png +0 -0
- images/lc-mink-extensions.png +0 -0
- images/lc-ninja.png +0 -0
- images/lc-placeholder.png +0 -0
- images/lc-seo.png +0 -0
- images/lc-slider.png +0 -0
- images/lc-social.png +0 -0
- images/lc-support.png +0 -0
- images/lc-woo-bg.png +0 -0
- includes/ajax.php +47 -13
- includes/css-generation.php +3 -3
- includes/display-functions.php +3 -1
- includes/editor-messages.php +2 -1
- includes/other.php +1 -1
- includes/plugin-options-framework/css/main.css +530 -229
- includes/plugin-options-framework/css/main.min.css +1 -1
- includes/plugin-options-framework/inc/init.php +24 -28
- includes/plugin-options-framework/js/main.js +45 -24
- includes/plugin-options-framework/js/main.min.js +1 -1
- includes/plugin-options-framework/tab-designs.php +0 -2
- includes/plugin-options-framework/tab-docs.php +5 -3
- includes/plugin-options-framework/tab-extend.php +405 -0
- includes/plugin-options-framework/tab-extensions.php +225 -72
- includes/plugin-options-framework/tab-seo.php +0 -107
- includes/plugin-options-framework/tab-themes.php +27 -33
- includes/plugin-options-framework/tab-woo.php +79 -0
- includes/plugin-updates/admin-license-manager.js +128 -0
- includes/plugin-updates/lc-license-manager.class.php +645 -0
- includes/plugin-updates/lc-plugins-updater.class.php +487 -0
- includes/scripts.php +1 -1
- js/builder.all.min.js +1 -1
- js/builder/builder.editor.messages.js +1 -2
- readme.txt +20 -6
ds-live-composer.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
6 |
* Author: Live Composer Team
|
7 |
-
* Version: 1.3.
|
8 |
* Author URI: https://livecomposerplugin.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -41,7 +41,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
|
|
41 |
* Constants
|
42 |
*/
|
43 |
|
44 |
-
define( 'DS_LIVE_COMPOSER_VER', '1.3.
|
45 |
|
46 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
47 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
@@ -137,6 +137,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
|
|
137 |
include DS_LIVE_COMPOSER_ABS . '/includes/upgrade.class.php';
|
138 |
include DS_LIVE_COMPOSER_ABS . '/includes/editor-messages.php';
|
139 |
include DS_LIVE_COMPOSER_ABS . '/includes/class-dslc-cache.php'; // Simple HTML/CSS caching class.
|
|
|
140 |
|
141 |
$cap_page = dslc_get_option( 'lc_min_capability_page', 'dslc_plugin_options_access_control' );
|
142 |
if ( ! $cap_page ) { $cap_page = 'publish_posts';
|
@@ -220,4 +221,4 @@ function lc_welcome( $plugin ) {
|
|
220 |
}
|
221 |
|
222 |
}
|
223 |
-
add_action( 'activated_plugin', 'lc_welcome' );
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
6 |
* Author: Live Composer Team
|
7 |
+
* Version: 1.3.9
|
8 |
* Author URI: https://livecomposerplugin.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
41 |
* Constants
|
42 |
*/
|
43 |
|
44 |
+
define( 'DS_LIVE_COMPOSER_VER', '1.3.9' );
|
45 |
|
46 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
47 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
137 |
include DS_LIVE_COMPOSER_ABS . '/includes/upgrade.class.php';
|
138 |
include DS_LIVE_COMPOSER_ABS . '/includes/editor-messages.php';
|
139 |
include DS_LIVE_COMPOSER_ABS . '/includes/class-dslc-cache.php'; // Simple HTML/CSS caching class.
|
140 |
+
include DS_LIVE_COMPOSER_ABS . '/includes/plugin-updates/lc-license-manager.class.php';
|
141 |
|
142 |
$cap_page = dslc_get_option( 'lc_min_capability_page', 'dslc_plugin_options_access_control' );
|
143 |
if ( ! $cap_page ) { $cap_page = 'publish_posts';
|
221 |
}
|
222 |
|
223 |
}
|
224 |
+
add_action( 'activated_plugin', 'lc_welcome' );
|
images/extensions/acfsupport/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/acfsupport/thumbnail.png
ADDED
Binary file
|
images/extensions/animations/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/animations/thumbnail.png
ADDED
Binary file
|
images/extensions/beforeafter/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/beforeafter/thumbnail.png
ADDED
Binary file
|
images/extensions/contentwidth/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/contentwidth/thumbnail.png
ADDED
Binary file
|
images/extensions/cptsupport/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/cptsupport/thumbnail.png
ADDED
Binary file
|
images/extensions/gallery/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/gallery/thumbnail.png
ADDED
Binary file
|
images/extensions/googlemaps/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/googlemaps/thumbnail.png
ADDED
Binary file
|
images/extensions/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/lineicons/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/lineicons/thumbnail.png
ADDED
Binary file
|
images/extensions/menu/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/menu/thumbnail.png
ADDED
Binary file
|
images/extensions/prevnextpost/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/prevnextpost/thumbnail.png
ADDED
Binary file
|
images/extensions/sliders/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/sliders/thumbnail.png
ADDED
Binary file
|
images/extensions/video/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
images/extensions/video/thumbnail.png
ADDED
Binary file
|
images/icon-cpt.png
ADDED
Binary file
|
images/icon-designs.png
ADDED
Binary file
|
images/icon-graph.png
ADDED
Binary file
|
images/icon-illustrations.png
ADDED
Binary file
|
images/icon-mailchimp.png
ADDED
Binary file
|
images/icon-menu.png
ADDED
Binary file
|
images/icon-ninja.png
ADDED
Binary file
|
images/icon-payments.png
ADDED
Binary file
|
images/icon-plugins.png
ADDED
Binary file
|
images/icon-shoppingcart.png
ADDED
Binary file
|
images/icon-slider.png
ADDED
Binary file
|
images/icon-social.png
ADDED
Binary file
|
images/icon-support.png
ADDED
Binary file
|
images/lc-acf.png
ADDED
Binary file
|
images/lc-designs.png
ADDED
Binary file
|
images/lc-extension-acfintegration.png
ADDED
Binary file
|
images/lc-extension-cpt.png
ADDED
Binary file
|
images/lc-extension-megamenu.png
ADDED
Binary file
|
images/lc-extension-sliders.png
ADDED
Binary file
|
images/lc-extension-woo.png
ADDED
Binary file
|
images/lc-menu.png
ADDED
Binary file
|
images/lc-mink-extensions.png
ADDED
Binary file
|
images/lc-ninja.png
ADDED
Binary file
|
images/lc-placeholder.png
ADDED
Binary file
|
images/lc-seo.png
ADDED
Binary file
|
images/lc-slider.png
ADDED
Binary file
|
images/lc-social.png
ADDED
Binary file
|
images/lc-support.png
ADDED
Binary file
|
images/lc-woo-bg.png
ADDED
Binary file
|
includes/ajax.php
CHANGED
@@ -753,19 +753,6 @@ function dslc_ajax_hidden_panel() {
|
|
753 |
}
|
754 |
} add_action( 'wp_ajax_dslc-ajax-hidden-panel', 'dslc_ajax_hidden_panel' );
|
755 |
|
756 |
-
/**
|
757 |
-
* Ajax set hidden ( tab seo )
|
758 |
-
*/
|
759 |
-
function dslc_ajax_hidden_tab_seo() {
|
760 |
-
|
761 |
-
if ( is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
|
762 |
-
|
763 |
-
update_option( 'dslc_tab_seo_hidden', true );
|
764 |
-
|
765 |
-
exit;
|
766 |
-
}
|
767 |
-
} add_action( 'wp_ajax_dslc-ajax-hidden-tab-seo', 'dslc_ajax_hidden_tab_seo' );
|
768 |
-
|
769 |
/**
|
770 |
* Ajax Clear Cache (Plugin Settings Tab).
|
771 |
*/
|
@@ -781,3 +768,50 @@ function dslc_ajax_clear_cache() {
|
|
781 |
exit;
|
782 |
}
|
783 |
} add_action( 'wp_ajax_dslc_ajax_clear_cache', 'dslc_ajax_clear_cache' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
753 |
}
|
754 |
} add_action( 'wp_ajax_dslc-ajax-hidden-panel', 'dslc_ajax_hidden_panel' );
|
755 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
756 |
/**
|
757 |
* Ajax Clear Cache (Plugin Settings Tab).
|
758 |
*/
|
768 |
exit;
|
769 |
}
|
770 |
} add_action( 'wp_ajax_dslc_ajax_clear_cache', 'dslc_ajax_clear_cache' );
|
771 |
+
|
772 |
+
/**
|
773 |
+
* Enable/Disable Premium Extension.
|
774 |
+
*/
|
775 |
+
|
776 |
+
function dslc_ajax_toggle_extension( $atts ) {
|
777 |
+
|
778 |
+
// Allowed to do this?
|
779 |
+
if ( is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY_SAVE ) ):
|
780 |
+
|
781 |
+
// The array we'll pass back to the AJAX call.
|
782 |
+
$response = false;
|
783 |
+
$extension_id = false;
|
784 |
+
|
785 |
+
// The composer code.
|
786 |
+
if ( isset( $_POST['extension'] ) ) {
|
787 |
+
$extension_id = sanitize_key( $_POST['extension'] );
|
788 |
+
}
|
789 |
+
|
790 |
+
if ( $extension_id ) {
|
791 |
+
// Send an action with request to toggle extension status.
|
792 |
+
do_action( 'dslc_toggle_extension', $extension_id );
|
793 |
+
|
794 |
+
// Check if status changed?
|
795 |
+
$extensions = array();
|
796 |
+
$extensions = apply_filters( 'dslc_extensions_meta', $extensions );
|
797 |
+
|
798 |
+
foreach ($extensions as $id => $extension) {
|
799 |
+
if ( $id === $extension_id ) {
|
800 |
+
if ( $extension['active'] ) {
|
801 |
+
$response = 'active';
|
802 |
+
} else {
|
803 |
+
$response = 'inactive';
|
804 |
+
}
|
805 |
+
}
|
806 |
+
}
|
807 |
+
}
|
808 |
+
|
809 |
+
// Return response.
|
810 |
+
echo $response;
|
811 |
+
|
812 |
+
// Au revoir.
|
813 |
+
wp_die();
|
814 |
+
// exit;
|
815 |
+
|
816 |
+
endif; // End if is_user_logged_in()...
|
817 |
+
} add_action( 'wp_ajax_dslc-ajax-toggle-extension', 'dslc_ajax_toggle_extension' );
|
includes/css-generation.php
CHANGED
@@ -102,10 +102,10 @@ function dslc_custom_css( $dslc_code = '' ) {
|
|
102 |
// Filter $lc_width ( for devs ).
|
103 |
$lc_width = apply_filters( 'dslc_content_width', $lc_width );
|
104 |
|
105 |
-
|
|
|
106 |
|
107 |
-
|
108 |
-
$code_to_render = array();
|
109 |
|
110 |
global $post;
|
111 |
|
102 |
// Filter $lc_width ( for devs ).
|
103 |
$lc_width = apply_filters( 'dslc_content_width', $lc_width );
|
104 |
|
105 |
+
$template_id = false;
|
106 |
+
$code_to_render = array();
|
107 |
|
108 |
+
if ( ! $dslc_code ) {
|
|
|
109 |
|
110 |
global $post;
|
111 |
|
includes/display-functions.php
CHANGED
@@ -988,7 +988,9 @@ function dslc_json_decode( $raw_code, $ignore_migration = false ) {
|
|
988 |
|
989 |
// Add a marker indicating that this module
|
990 |
// was imported from shortcode format.
|
991 |
-
$decoded
|
|
|
|
|
992 |
|
993 |
// Preset is always being stored in base64 format,
|
994 |
// so we need to ignore code version parameter as it's not relevant.
|
988 |
|
989 |
// Add a marker indicating that this module
|
990 |
// was imported from shortcode format.
|
991 |
+
if ( is_array( $decoded ) ) {
|
992 |
+
$decoded['code_version'] = 1;
|
993 |
+
}
|
994 |
|
995 |
// Preset is always being stored in base64 format,
|
996 |
// so we need to ignore code version parameter as it's not relevant.
|
includes/editor-messages.php
CHANGED
@@ -150,7 +150,8 @@ class LC_Editor_Messages {
|
|
150 |
function_exists( 'sklc_addon_prnep_register_module' ) ||
|
151 |
function_exists( 'sklc_ppcw_options' ) ||
|
152 |
function_exists( 'lcwoo_plugin_init' ) ||
|
153 |
-
class_exists( 'LC_Before_After_Image' )
|
|
|
154 |
) {
|
155 |
return true;
|
156 |
} else {
|
150 |
function_exists( 'sklc_addon_prnep_register_module' ) ||
|
151 |
function_exists( 'sklc_ppcw_options' ) ||
|
152 |
function_exists( 'lcwoo_plugin_init' ) ||
|
153 |
+
class_exists( 'LC_Before_After_Image' ) ||
|
154 |
+
class_exists( 'LC_Extensions_Core' )
|
155 |
) {
|
156 |
return true;
|
157 |
} else {
|
includes/other.php
CHANGED
@@ -28,7 +28,7 @@ function dslc_plugin_action_links( $links ) {
|
|
28 |
array_unshift( $links, $themes_link );
|
29 |
|
30 |
// Addons link
|
31 |
-
$addons_link = '<a href="https://livecomposerplugin.com/
|
32 |
array_unshift( $links, $addons_link );
|
33 |
|
34 |
// Support link
|
28 |
array_unshift( $links, $themes_link );
|
29 |
|
30 |
// Addons link
|
31 |
+
$addons_link = '<a href="https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=plugins-list&utm_campaign=addons_link" target="_blank">Extensions</a>';
|
32 |
array_unshift( $links, $addons_link );
|
33 |
|
34 |
// Support link
|
includes/plugin-options-framework/css/main.css
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
.dslc-clear-cache {
|
2 |
color: #D54E21;
|
3 |
margin-left: 12px;
|
@@ -196,12 +197,27 @@
|
|
196 |
border: solid 1px #FCB6AC;
|
197 |
}
|
198 |
|
199 |
-
|
200 |
#share-buttons span.dslc_social_text {
|
201 |
margin-left: 10px;
|
202 |
font-size: 15px;
|
203 |
}
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
/**
|
206 |
* ----------------------------------------------------------------------
|
207 |
* New Panel Styles for the LC options seciton
|
@@ -213,10 +229,67 @@
|
|
213 |
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
214 |
font-size: 13px;
|
215 |
line-height: 2.1em;
|
216 |
-
margin:
|
217 |
overflow: auto;
|
218 |
padding: 36px 3% 23px 3%;
|
219 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
}
|
221 |
|
222 |
.dslc-panel h2 {
|
@@ -226,11 +299,41 @@
|
|
226 |
margin: 0;
|
227 |
}
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
.dslc-panel h3 {
|
230 |
font-size: 16px;
|
231 |
margin: 1.33em 0 0;
|
232 |
}
|
233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
.dslc-panel h3 .dashicons{
|
235 |
color: #82878c;
|
236 |
font-size: 170%;
|
@@ -278,6 +381,140 @@
|
|
278 |
.dslc-panel p {
|
279 |
color: #72777c;
|
280 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
.dslc-panel a {
|
282 |
text-decoration: none;
|
283 |
}
|
@@ -318,6 +555,10 @@
|
|
318 |
content: "\f301";
|
319 |
}
|
320 |
|
|
|
|
|
|
|
|
|
321 |
.dslc-panel .dslc-panel-facebook:before {
|
322 |
content: "\f304";
|
323 |
}
|
@@ -330,132 +571,94 @@
|
|
330 |
content: "\f529";
|
331 |
}
|
332 |
|
333 |
-
|
334 |
-
|
335 |
-
* Panel Tab Seo
|
336 |
-
*/
|
337 |
-
|
338 |
-
.dslc-panel-seo {
|
339 |
-
background: #2E97E0 url(../../../images/seo-tab-bg.png) no-repeat;
|
340 |
-
box-shadow: none;
|
341 |
-
border: 0;
|
342 |
-
padding: 36px 5%;
|
343 |
-
background-position: right bottom;
|
344 |
-
background-size: 70%;
|
345 |
}
|
346 |
|
347 |
-
.dslc-panel-seo.showing-notice {
|
348 |
-
background: #2E97E0;
|
349 |
-
}
|
350 |
|
351 |
-
.
|
352 |
-
|
|
|
|
|
353 |
}
|
354 |
|
355 |
-
.
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
border: 1px solid #fff;
|
361 |
-
padding: 2px 16px;
|
362 |
-
float: right;
|
363 |
-
border-radius: 5px;
|
364 |
-
font-weight: 300;
|
365 |
-
opacity: .5;
|
366 |
-
margin-top: 20px;
|
367 |
}
|
368 |
|
369 |
-
.
|
370 |
-
|
371 |
-
|
372 |
-
background
|
373 |
-
|
374 |
-
border: 2px solid #b2ff2a;
|
375 |
}
|
376 |
|
377 |
-
.
|
378 |
-
|
379 |
-
max-width: 500px;
|
380 |
-
text-align: left;
|
381 |
}
|
382 |
|
383 |
-
.
|
384 |
-
|
385 |
-
|
386 |
-
text-align: center;
|
387 |
}
|
388 |
|
389 |
-
.dslc-panel-
|
390 |
-
color:
|
391 |
-
font-size: 36px;
|
392 |
-
line-height: 1;
|
393 |
-
margin-bottom: 25px;
|
394 |
-
font-weight: 300;
|
395 |
}
|
396 |
|
397 |
-
.dslc-panel-seo .about-description {
|
398 |
-
color: #32373c;
|
399 |
-
font-size: 18px;
|
400 |
-
}
|
401 |
|
402 |
-
|
403 |
-
|
404 |
-
font-size: 16px;
|
405 |
-
letter-spacing: 1px;
|
406 |
-
line-height: 1.55;
|
407 |
-
margin-top: -25px;
|
408 |
}
|
409 |
|
410 |
-
.
|
411 |
-
|
412 |
-
text-decoration: underline;
|
413 |
}
|
414 |
|
415 |
-
|
416 |
-
|
417 |
}
|
418 |
|
419 |
-
#dslc-seo-search label {
|
420 |
-
font-size: 17px;
|
421 |
-
font-weight: 300;
|
422 |
-
color: #fff;
|
423 |
-
margin-bottom: 4px;
|
424 |
-
display: inline-block;
|
425 |
-
}
|
426 |
|
427 |
-
|
428 |
-
|
429 |
-
height: 46px;
|
430 |
-
line-height: 1;
|
431 |
-
padding: 10px 17px;
|
432 |
-
width: 60%;
|
433 |
-
border: 0;
|
434 |
-
border-radius: 5px;
|
435 |
-
margin-bottom: 20px;
|
436 |
}
|
437 |
|
438 |
-
#dslc-seo-search button[type="submit"] {
|
439 |
-
font-size: 16px;
|
440 |
-
line-height: 1;
|
441 |
-
padding: 20px 40px;
|
442 |
-
border: 0;
|
443 |
-
border-radius: 5px;
|
444 |
-
margin-top: 5px;
|
445 |
-
margin-bottom: 20px;
|
446 |
|
447 |
-
|
448 |
-
|
|
|
449 |
|
450 |
-
|
451 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
}
|
453 |
|
454 |
-
|
455 |
-
|
456 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
}
|
458 |
|
|
|
459 |
/**
|
460 |
* ----------------------------------------------------------------------
|
461 |
* New LC is Coming Panel
|
@@ -608,19 +811,22 @@ display: inline-block;
|
|
608 |
/*border-bottom-left-radius: 0;*/
|
609 |
}
|
610 |
|
|
|
|
|
|
|
|
|
|
|
611 |
#new-products-coming h2 {
|
612 |
-
|
613 |
color: #fff;
|
614 |
text-align: left;
|
615 |
-
width: 34%;
|
616 |
margin: 24px 0 0;
|
617 |
-
display: inline-block;
|
618 |
line-height: 1;
|
619 |
vertical-align: top;
|
620 |
}
|
621 |
|
622 |
#new-products-coming h3 {
|
623 |
-
|
624 |
margin-top: 0;
|
625 |
margin-bottom: 7px;
|
626 |
font-size: 21px;
|
@@ -791,8 +997,8 @@ display: inline-block;
|
|
791 |
margin: 0 0 20px;
|
792 |
}
|
793 |
.extension-browser .extension {
|
794 |
-
border: 1px solid #ddd;
|
795 |
-
box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.1);
|
796 |
box-sizing: border-box;
|
797 |
cursor: pointer;
|
798 |
float: left;
|
@@ -804,18 +1010,199 @@ display: inline-block;
|
|
804 |
margin: 0 3% 4% 0;
|
805 |
width: 30%;
|
806 |
}
|
|
|
807 |
.extension-browser .extension:nth-child(3n) {
|
808 |
margin-right: 0;
|
809 |
}
|
810 |
.extension-browser .extension:hover, .extension-browser .extension:focus {
|
811 |
cursor: default;
|
812 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
813 |
.extension-browser .extension .extension-name {
|
814 |
background: rgba(255, 255, 255, 0.65) none repeat scroll 0 0;
|
815 |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) inset;
|
816 |
-
font-size:
|
817 |
font-weight: 600;
|
818 |
-
height: 18px;
|
819 |
margin: 0;
|
820 |
overflow: hidden;
|
821 |
padding: 15px;
|
@@ -831,16 +1218,26 @@ display: inline-block;
|
|
831 |
opacity: 0.5;
|
832 |
text-transform: uppercase;
|
833 |
vertical-align: top;
|
|
|
834 |
}
|
835 |
|
836 |
-
.extension-browser .extension .extension-name .
|
837 |
-
color: #
|
838 |
-
display: inline-block;
|
839 |
position: absolute;
|
840 |
-
right:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
841 |
}
|
842 |
|
843 |
-
.extension-browser .extension .extension-name .
|
844 |
opacity: .9;
|
845 |
}
|
846 |
|
@@ -848,7 +1245,7 @@ display: inline-block;
|
|
848 |
background: rgba(244, 244, 244, 0.7) none repeat scroll 0 0;
|
849 |
border-left: 1px solid rgba(0, 0, 0, 0.05);
|
850 |
bottom: 0;
|
851 |
-
height:
|
852 |
opacity: 0;
|
853 |
padding: 9px 10px 0;
|
854 |
position: absolute;
|
@@ -887,26 +1284,32 @@ display: inline-block;
|
|
887 |
.extension-browser .extension:hover .extension-screenshot, .extension-browser .extension:focus .extension-screenshot {
|
888 |
background: #fff none repeat scroll 0 0;
|
889 |
}
|
890 |
-
.extension-browser.rendered .extension:hover .extension-screenshot img, .extension-browser.rendered .extension:focus .extension-screenshot img {
|
891 |
opacity: 0.4;
|
892 |
-
}
|
893 |
.extension-browser .extension .more-details {
|
894 |
-
background: rgba(
|
895 |
-
|
896 |
-
|
897 |
-
font-
|
898 |
-
|
899 |
-
|
900 |
opacity: 0;
|
901 |
-
padding:
|
|
|
902 |
position: absolute;
|
903 |
-
right:
|
904 |
text-align: center;
|
|
|
905 |
text-decoration: none;
|
906 |
-
|
907 |
-
|
908 |
transition: opacity 0.1s ease-in-out 0s;
|
|
|
909 |
}
|
|
|
|
|
|
|
910 |
.extension-browser .extension:focus {
|
911 |
border-color: #5b9dd9;
|
912 |
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
|
@@ -983,86 +1386,9 @@ display: inline-block;
|
|
983 |
color: inherit;
|
984 |
text-decoration: none;
|
985 |
}
|
986 |
-
.extension-browser .extension.add-new-extension {
|
987 |
-
border: medium none;
|
988 |
-
box-shadow: none;
|
989 |
-
}
|
990 |
-
.extension-browser .extension.add-new-extension a {
|
991 |
-
display: block;
|
992 |
-
position: relative;
|
993 |
-
text-decoration: none;
|
994 |
-
z-index: 1;
|
995 |
-
}
|
996 |
-
.extension-browser .extension.add-new-extension a::after {
|
997 |
-
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
|
998 |
-
border: 5px dashed rgba(0, 0, 0, 0.1);
|
999 |
-
bottom: 0;
|
1000 |
-
box-sizing: border-box;
|
1001 |
-
content: "";
|
1002 |
-
display: block;
|
1003 |
-
left: 0;
|
1004 |
-
padding: 0;
|
1005 |
-
position: absolute;
|
1006 |
-
right: 0;
|
1007 |
-
text-shadow: none;
|
1008 |
-
top: 0;
|
1009 |
-
}
|
1010 |
-
.extension-browser .extension.add-new-extension span::after {
|
1011 |
-
background: rgba(153, 153, 153, 0.1) none repeat scroll 0 0;
|
1012 |
-
border-radius: 50%;
|
1013 |
-
color: rgb(153, 153, 153);
|
1014 |
-
content: "\f106";
|
1015 |
-
display: inline-block;
|
1016 |
-
font: 74px/115px dashicons;
|
1017 |
-
height: 100px;
|
1018 |
-
left: 50%;
|
1019 |
-
margin-left: -50px;
|
1020 |
-
padding: 0;
|
1021 |
-
position: absolute;
|
1022 |
-
text-align: center;
|
1023 |
-
text-indent: -4px;
|
1024 |
-
text-shadow: none;
|
1025 |
-
top: 30%;
|
1026 |
-
vertical-align: middle;
|
1027 |
-
width: 100px;
|
1028 |
-
z-index: 4;
|
1029 |
-
}
|
1030 |
|
1031 |
-
.extension-browser .extension.add-new-extension.add-new-theme span::after {
|
1032 |
-
content: "\f100";
|
1033 |
-
}
|
1034 |
|
1035 |
-
|
1036 |
-
text-indent: 4px;
|
1037 |
-
}
|
1038 |
-
.extension-browser .extension.add-new-extension a:hover .extension-screenshot, .extension-browser .extension.add-new-extension a:focus .extension-screenshot {
|
1039 |
-
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
|
1040 |
-
}
|
1041 |
-
.extension-browser .extension.add-new-extension a:hover span::after, .extension-browser .extension.add-new-extension a:focus span::after {
|
1042 |
-
background: #fff none repeat scroll 0 0;
|
1043 |
-
color: #0073aa;
|
1044 |
-
}
|
1045 |
-
.extension-browser .extension.add-new-extension a:hover::after, .extension-browser .extension.add-new-extension a:focus::after {
|
1046 |
-
background: #0073aa none repeat scroll 0 0;
|
1047 |
-
border-color: transparent;
|
1048 |
-
color: #fff;
|
1049 |
-
content: "";
|
1050 |
-
}
|
1051 |
-
.extension-browser .extension.add-new-extension .extension-name {
|
1052 |
-
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
|
1053 |
-
box-shadow: none;
|
1054 |
-
font-weight: 400;
|
1055 |
-
margin-top: -18px;
|
1056 |
-
padding-bottom: 48px;
|
1057 |
-
padding-top: 0;
|
1058 |
-
position: relative;
|
1059 |
-
text-align: center;
|
1060 |
-
top: 0;
|
1061 |
-
}
|
1062 |
-
.extension-browser .extension.add-new-extension a:hover .extension-name, .extension-browser .extension.add-new-extension a:focus .extension-name {
|
1063 |
-
color: #fff;
|
1064 |
-
z-index: 2;
|
1065 |
-
}
|
1066 |
.extension-overlay .extension-backdrop {
|
1067 |
background: rgba(238, 238, 238, 0.9) none repeat scroll 0 0;
|
1068 |
bottom: 0;
|
@@ -1402,21 +1728,7 @@ body.folded .extension-overlay .extension-wrap {
|
|
1402 |
width: 1450px;
|
1403 |
}
|
1404 |
}
|
1405 |
-
|
1406 |
-
.extension-browser .extension {
|
1407 |
-
margin: 0 3% 3% 0;
|
1408 |
-
width: 22.7%;
|
1409 |
-
}
|
1410 |
-
.extension-browser .extension .extension-screenshot::after {
|
1411 |
-
padding-top: 75%;
|
1412 |
-
}
|
1413 |
-
.extension-browser .extension:nth-child(3n) {
|
1414 |
-
margin-right: 3%;
|
1415 |
-
}
|
1416 |
-
.extension-browser .extension:nth-child(4n) {
|
1417 |
-
margin-right: 0;
|
1418 |
-
}
|
1419 |
-
}
|
1420 |
@media only screen and (max-width: 1120px) {
|
1421 |
.extension-browser .extension {
|
1422 |
margin-right: 0;
|
@@ -1521,15 +1833,7 @@ body.folded .extension-overlay .extension-wrap, .extension-overlay .extension-wr
|
|
1521 |
top: 0;
|
1522 |
width: 100%;
|
1523 |
}
|
1524 |
-
|
1525 |
-
font: 60px/90px dashicons;
|
1526 |
-
height: 80px;
|
1527 |
-
left: 50%;
|
1528 |
-
margin-left: -40px;
|
1529 |
-
text-indent: 0;
|
1530 |
-
top: 30%;
|
1531 |
-
width: 80px;
|
1532 |
-
}
|
1533 |
.single-extension .extension-wrap {
|
1534 |
margin: 0 -12px 0 -10px;
|
1535 |
padding: 10px;
|
@@ -1622,9 +1926,6 @@ body.no-results p.no-extensions {
|
|
1622 |
body.show-upload-extension p.no-extensions {
|
1623 |
display: none !important;
|
1624 |
}
|
1625 |
-
.extension-install-php .add-new-extension {
|
1626 |
-
display: none !important;
|
1627 |
-
}
|
1628 |
@media only screen and (max-width: 1120px) {
|
1629 |
.upload-extension .wp-upload-form {
|
1630 |
margin: 20px 0;
|
1 |
+
|
2 |
.dslc-clear-cache {
|
3 |
color: #D54E21;
|
4 |
margin-left: 12px;
|
197 |
border: solid 1px #FCB6AC;
|
198 |
}
|
199 |
|
|
|
200 |
#share-buttons span.dslc_social_text {
|
201 |
margin-left: 10px;
|
202 |
font-size: 15px;
|
203 |
}
|
204 |
|
205 |
+
/**
|
206 |
+
* Tabs in LC
|
207 |
+
*/
|
208 |
+
|
209 |
+
.dslc-settigns-tabs .nav-tab {
|
210 |
+
padding-right: 15px;
|
211 |
+
padding-left: 15px;
|
212 |
+
font-size: 15px;
|
213 |
+
font-weight: normal;
|
214 |
+
}
|
215 |
+
|
216 |
+
|
217 |
+
#lc-settings-tabs, #lc-settings-tabs * {
|
218 |
+
box-sizing: border-box;
|
219 |
+
}
|
220 |
+
|
221 |
/**
|
222 |
* ----------------------------------------------------------------------
|
223 |
* New Panel Styles for the LC options seciton
|
229 |
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
230 |
font-size: 13px;
|
231 |
line-height: 2.1em;
|
232 |
+
margin: 20px 0;
|
233 |
overflow: auto;
|
234 |
padding: 36px 3% 23px 3%;
|
235 |
+
position: relative;
|
236 |
+
}
|
237 |
+
|
238 |
+
.dslc-panel.no-top-margin {
|
239 |
+
margin-top: -21px;
|
240 |
+
border-top: none;
|
241 |
+
}
|
242 |
+
|
243 |
+
.lc-panel-intro .lc-panel-cta {
|
244 |
+
margin-top: 30px;
|
245 |
+
}
|
246 |
+
|
247 |
+
.lc-panel-cta {
|
248 |
+
/* margin-top: 3em; */
|
249 |
+
/* margin-bottom: 3em; */
|
250 |
+
margin-bottom: 0;
|
251 |
+
min-height: 140px;
|
252 |
+
}
|
253 |
+
|
254 |
+
.lc-align-center {
|
255 |
+
text-align: center;
|
256 |
+
}
|
257 |
+
|
258 |
+
.lc-wrap.lc-centered-panels {
|
259 |
+
max-width: 760px;
|
260 |
+
margin-left: auto;
|
261 |
+
margin-right: auto;
|
262 |
+
}
|
263 |
+
.lc-wrap.lc-centered-panels.lc-wider-panel {
|
264 |
+
max-width: 860px;
|
265 |
+
}
|
266 |
+
|
267 |
+
.dslc-panel.padding-medium{
|
268 |
+
padding: 36px 9% 36px 9%;
|
269 |
+
}
|
270 |
+
|
271 |
+
.dslc-panel hr {
|
272 |
+
margin: 3em 0;
|
273 |
+
}
|
274 |
+
|
275 |
+
|
276 |
+
|
277 |
+
.lc-panel-icon-hero {
|
278 |
+
color: #9EA3A8;
|
279 |
+
margin: 40px 0 -10px;
|
280 |
+
text-align: center;
|
281 |
+
}
|
282 |
+
|
283 |
+
.dashicons.orange {
|
284 |
+
color: #D54E21;
|
285 |
+
}
|
286 |
+
|
287 |
+
|
288 |
+
.lc-panel-icon-hero .dashicons {
|
289 |
+
font-size: 80px;
|
290 |
+
line-height: 1;
|
291 |
+
width: auto;
|
292 |
+
height: auto;
|
293 |
}
|
294 |
|
295 |
.dslc-panel h2 {
|
299 |
margin: 0;
|
300 |
}
|
301 |
|
302 |
+
.dslc-panel h2.lc-huge {
|
303 |
+
margin: 40px 0 .6em;
|
304 |
+
font-size: 3.3em;
|
305 |
+
line-height: 1.2;
|
306 |
+
font-weight: 300;
|
307 |
+
text-align: center;
|
308 |
+
}
|
309 |
+
|
310 |
+
.dslc-panel.lc-dark-panel h2,
|
311 |
+
.dslc-panel.lc-dark-panel h3,
|
312 |
+
.dslc-panel.lc-dark-panel .lc-column-list {
|
313 |
+
color: #fff;
|
314 |
+
}
|
315 |
+
|
316 |
+
.dslc-panel.lc-dark-panel .lc-column-list .dashicons {
|
317 |
+
color: rgba(255, 255, 255, 0.65);
|
318 |
+
}
|
319 |
+
|
320 |
.dslc-panel h3 {
|
321 |
font-size: 16px;
|
322 |
margin: 1.33em 0 0;
|
323 |
}
|
324 |
|
325 |
+
.dslc-panel h3.lc-huge {
|
326 |
+
margin: 40px 0 .6em;
|
327 |
+
font-size: 2.4em;
|
328 |
+
line-height: 1.2;
|
329 |
+
font-weight: 300;
|
330 |
+
}
|
331 |
+
|
332 |
+
.dslc-panel h3.lc-huge.margin-top-half {
|
333 |
+
margin-top: 20px;
|
334 |
+
}
|
335 |
+
|
336 |
+
|
337 |
.dslc-panel h3 .dashicons{
|
338 |
color: #82878c;
|
339 |
font-size: 170%;
|
381 |
.dslc-panel p {
|
382 |
color: #72777c;
|
383 |
}
|
384 |
+
|
385 |
+
.dslc-panel.lc-dark-panel p {
|
386 |
+
color: rgba(255, 255, 255, 0.6);
|
387 |
+
}
|
388 |
+
|
389 |
+
.dslc-panel .lc-larger-text {
|
390 |
+
font-size: 1.2em;
|
391 |
+
}
|
392 |
+
|
393 |
+
body .dslc-panel.lc-panel-cta {
|
394 |
+
padding-top: 10px;
|
395 |
+
padding-bottom: 10px;
|
396 |
+
}
|
397 |
+
|
398 |
+
body .dslc-panel.lc-border-top {
|
399 |
+
border-top: 1px solid rgba(211, 211, 211, 0.45);
|
400 |
+
}
|
401 |
+
|
402 |
+
body .lc-panel-cta .button.button-hero {
|
403 |
+
font-size: 16px;
|
404 |
+
}
|
405 |
+
|
406 |
+
|
407 |
+
.dslc-panel .lc-description,
|
408 |
+
.dslc-panel .lc-feature-description{
|
409 |
+
/* text-align: center; */
|
410 |
+
font-size: 1.5em;
|
411 |
+
font-weight: 300;
|
412 |
+
line-height: 1.4;
|
413 |
+
margin-bottom: 2em;
|
414 |
+
color: #23282d;
|
415 |
+
}
|
416 |
+
|
417 |
+
.dslc-panel .lc-feature-description{
|
418 |
+
margin: 0;
|
419 |
+
font-size: 1.4em;
|
420 |
+
}
|
421 |
+
|
422 |
+
.dslc-panel img {
|
423 |
+
max-width: 100%;
|
424 |
+
margin-bottom: 0;
|
425 |
+
}
|
426 |
+
|
427 |
+
.dslc-panel.lc-dark-panel p.lc-description {
|
428 |
+
color: rgba(255, 255, 255, 1);
|
429 |
+
}
|
430 |
+
|
431 |
+
.lc-premium-features,
|
432 |
+
.lc-divided-panels {
|
433 |
+
display: flex;
|
434 |
+
justify-content: space-between;
|
435 |
+
flex-wrap: wrap;
|
436 |
+
}
|
437 |
+
|
438 |
+
.lc-premium-feature {
|
439 |
+
cursor: pointer;
|
440 |
+
}
|
441 |
+
|
442 |
+
.lc-premium-feature:hover {
|
443 |
+
box-shadow: 0px 1px 3px 2px rgba(0,0,0,0.1), 0px 1px 23px 2px rgba(0,0,0,0.1);
|
444 |
+
}
|
445 |
+
|
446 |
+
.lc-premium-feature-screenshot {
|
447 |
+
line-height: 0; /* Removes unwanted spacing bellow the image */
|
448 |
+
text-align: center;
|
449 |
+
min-height: 100px;
|
450 |
+
}
|
451 |
+
|
452 |
+
.lc-premium-feature-screenshot img {
|
453 |
+
max-width: 80px;
|
454 |
+
}
|
455 |
+
|
456 |
+
.lc-divided-panels {
|
457 |
+
align-items: center;
|
458 |
+
}
|
459 |
+
|
460 |
+
.lc-panel-half {
|
461 |
+
max-width: 50%;
|
462 |
+
}
|
463 |
+
|
464 |
+
.lc-panel-third {
|
465 |
+
max-width: 33%;
|
466 |
+
}
|
467 |
+
|
468 |
+
.lc-image-column {
|
469 |
+
padding-left: 30px;
|
470 |
+
}
|
471 |
+
|
472 |
+
.lc-image-column img {
|
473 |
+
margin-top: 20px;
|
474 |
+
right: -10px;
|
475 |
+
position: relative;
|
476 |
+
}
|
477 |
+
|
478 |
+
.lc-column-list {
|
479 |
+
|
480 |
+
}
|
481 |
+
|
482 |
+
.lc-column-list li {
|
483 |
+
display: inline-block;
|
484 |
+
width: 49%;
|
485 |
+
margin-bottom: 12px;
|
486 |
+
font-size: 1.2em;
|
487 |
+
font-weight: 300;
|
488 |
+
}
|
489 |
+
|
490 |
+
.lc-column-list li .dashicons {
|
491 |
+
margin-top: 6px;
|
492 |
+
margin-right: 10px;
|
493 |
+
}
|
494 |
+
|
495 |
+
.lc-premium-features > div,
|
496 |
+
.lc-premium-features > a {
|
497 |
+
max-width: 190px;
|
498 |
+
min-width: 180px;
|
499 |
+
background: white;
|
500 |
+
border-radius: 4px;
|
501 |
+
overflow: hidden;
|
502 |
+
margin-bottom: 20px;
|
503 |
+
padding-top: 20px;
|
504 |
+
padding-bottom: 20px;
|
505 |
+
|
506 |
+
transition: all .3s ease-out;
|
507 |
+
}
|
508 |
+
|
509 |
+
#wpbody-content .lc-premium-feature-description {
|
510 |
+
color: #23282D;
|
511 |
+
padding: 10px;
|
512 |
+
margin: 0;
|
513 |
+
text-align: center;
|
514 |
+
font-size: 1.2em;
|
515 |
+
line-height: 1.4;
|
516 |
+
}
|
517 |
+
|
518 |
.dslc-panel a {
|
519 |
text-decoration: none;
|
520 |
}
|
555 |
content: "\f301";
|
556 |
}
|
557 |
|
558 |
+
.dslc-panel .dslc-panel-github:before {
|
559 |
+
content: "\f308";
|
560 |
+
}
|
561 |
+
|
562 |
.dslc-panel .dslc-panel-facebook:before {
|
563 |
content: "\f304";
|
564 |
}
|
571 |
content: "\f529";
|
572 |
}
|
573 |
|
574 |
+
.dslc-panel .dslc-panel-heart:before {
|
575 |
+
content: "\f487";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
}
|
577 |
|
|
|
|
|
|
|
578 |
|
579 |
+
.lc-panel-woo {
|
580 |
+
background-color: #A55095;
|
581 |
+
background-repeat: no-repeat;
|
582 |
+
background-size: contain;
|
583 |
}
|
584 |
|
585 |
+
.lc-panel-ninjaforms {
|
586 |
+
background-color: #FFFFFF;
|
587 |
+
background-repeat: no-repeat;
|
588 |
+
background-size: 310px;
|
589 |
+
background-position: 90% bottom;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
590 |
}
|
591 |
|
592 |
+
.lc-panel-socialshare {
|
593 |
+
background-color: #FFFFFF;
|
594 |
+
background-repeat: no-repeat;
|
595 |
+
background-size: 310px;
|
596 |
+
background-position: 90% bottom;
|
|
|
597 |
}
|
598 |
|
599 |
+
.lc-panel-acf {
|
600 |
+
background-color: #26E6B9;
|
|
|
|
|
601 |
}
|
602 |
|
603 |
+
.lc-panel-acf p,
|
604 |
+
.lc-panel-acf li{
|
605 |
+
color: rgba( 0, 0, 0, 0.7 )
|
|
|
606 |
}
|
607 |
|
608 |
+
.dslc-panel.lc-panel-acf li .dashicons {
|
609 |
+
color: rgba( 0, 0, 0, 0.4 )
|
|
|
|
|
|
|
|
|
610 |
}
|
611 |
|
|
|
|
|
|
|
|
|
612 |
|
613 |
+
#lc-settings-tabs .lc-panel-designs {
|
614 |
+
padding-bottom: 320px;
|
|
|
|
|
|
|
|
|
615 |
}
|
616 |
|
617 |
+
.lc-text-center {
|
618 |
+
text-align: center;
|
|
|
619 |
}
|
620 |
|
621 |
+
.lc-text-right {
|
622 |
+
text-align: center;
|
623 |
}
|
624 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
625 |
|
626 |
+
.lc-tab-woo .promo-code {
|
627 |
+
margin-top: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
628 |
}
|
629 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
|
631 |
+
/**
|
632 |
+
* Tab Extend
|
633 |
+
*/
|
634 |
|
635 |
+
/* .dslc-tab-extend { */
|
636 |
+
/* margin: 0; */
|
637 |
+
/* padding: 0; */
|
638 |
+
/* max-width: 100%; */
|
639 |
+
/* } */
|
640 |
+
|
641 |
+
.dslc-tab-extend .headline-feature {
|
642 |
+
max-width: 1100px;
|
643 |
+
margin: 0 auto;
|
644 |
}
|
645 |
|
646 |
+
.dslc-tab-extend .feature-section {
|
647 |
+
max-width: 1100px;
|
648 |
+
margin: 0 auto;
|
649 |
+
}
|
650 |
+
|
651 |
+
.dslc-tab-extend .feature-section p {
|
652 |
+
margin-right: 0;
|
653 |
+
margin-left: 0;
|
654 |
+
}
|
655 |
+
|
656 |
+
.dslc-tab-extend a[name] {
|
657 |
+
font-size: 0;
|
658 |
+
line-height: 0;
|
659 |
}
|
660 |
|
661 |
+
|
662 |
/**
|
663 |
* ----------------------------------------------------------------------
|
664 |
* New LC is Coming Panel
|
811 |
/*border-bottom-left-radius: 0;*/
|
812 |
}
|
813 |
|
814 |
+
#new-products-coming .dslc-panel-header {
|
815 |
+
width: 34%;
|
816 |
+
display: inline-block;
|
817 |
+
}
|
818 |
+
|
819 |
#new-products-coming h2 {
|
820 |
+
font-size: 27px;
|
821 |
color: #fff;
|
822 |
text-align: left;
|
|
|
823 |
margin: 24px 0 0;
|
|
|
824 |
line-height: 1;
|
825 |
vertical-align: top;
|
826 |
}
|
827 |
|
828 |
#new-products-coming h3 {
|
829 |
+
color: #fff;
|
830 |
margin-top: 0;
|
831 |
margin-bottom: 7px;
|
832 |
font-size: 21px;
|
997 |
margin: 0 0 20px;
|
998 |
}
|
999 |
.extension-browser .extension {
|
1000 |
+
/* border: 1px solid #ddd; */
|
1001 |
+
box-shadow: 1px 2px 1px 0px rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
|
1002 |
box-sizing: border-box;
|
1003 |
cursor: pointer;
|
1004 |
float: left;
|
1010 |
margin: 0 3% 4% 0;
|
1011 |
width: 30%;
|
1012 |
}
|
1013 |
+
|
1014 |
.extension-browser .extension:nth-child(3n) {
|
1015 |
margin-right: 0;
|
1016 |
}
|
1017 |
.extension-browser .extension:hover, .extension-browser .extension:focus {
|
1018 |
cursor: default;
|
1019 |
}
|
1020 |
+
|
1021 |
+
|
1022 |
+
.extension-browser .extension[data-extension-status="active"] [data-show-if="active"],
|
1023 |
+
.extension-browser .extension[data-extension-status="inactive"] [data-show-if="inactive"],
|
1024 |
+
.extension-browser .extension[data-extension-status="pending"] [data-show-if="pending"],
|
1025 |
+
.extension-browser .extension[data-extension-status="demo"] [data-show-if="demo"] {
|
1026 |
+
display: inline-block;
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
.extension-browser .extension[data-extension-status="inactive"] [data-show-if="active"],
|
1030 |
+
.extension-browser .extension[data-extension-status="active"] [data-show-if="inactive"],
|
1031 |
+
.extension-browser .extension[data-extension-status="inactive"] [data-show-if="pending"],
|
1032 |
+
.extension-browser .extension[data-extension-status="active"] [data-show-if="pending"],
|
1033 |
+
.extension-browser .extension[data-extension-status="inactive"] [data-show-if="demo"],
|
1034 |
+
.extension-browser .extension[data-extension-status="active"] [data-show-if="demo"],
|
1035 |
+
.extension-browser .extension[data-extension-status="pending"] [data-show-if="demo"],
|
1036 |
+
.extension-browser .extension[data-extension-status="demo"] [data-show-if="pending"],
|
1037 |
+
.extension-browser .extension[data-extension-status="demo"] [data-show-if="active"] {
|
1038 |
+
display: none;
|
1039 |
+
}
|
1040 |
+
|
1041 |
+
.extension-browser .extension[data-extension-status="demo"] .extension-actions [data-show-if="inactive"] {
|
1042 |
+
display: none;
|
1043 |
+
}
|
1044 |
+
|
1045 |
+
.extension-browser .extension[data-extension-status="pending"] [data-show-if="active"],
|
1046 |
+
.extension-browser .extension[data-extension-status="pending"] [data-show-if="inactive"] {
|
1047 |
+
display: none;
|
1048 |
+
}
|
1049 |
+
|
1050 |
+
.lc-tab-heading {
|
1051 |
+
margin-top: 30px;
|
1052 |
+
margin-bottom: 40px;
|
1053 |
+
justify-content: space-between;
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
.lc-tab-heading .lc-license-status-button{
|
1057 |
+
margin-top: 10px;
|
1058 |
+
float: right;
|
1059 |
+
}
|
1060 |
+
|
1061 |
+
.lc-tab-heading .lc-license-status-button .dashicons {
|
1062 |
+
margin-top: 3px;
|
1063 |
+
color: #3ca23c;
|
1064 |
+
}
|
1065 |
+
|
1066 |
+
.lc-admin-message {
|
1067 |
+
position: fixed;
|
1068 |
+
z-index: 999;
|
1069 |
+
bottom: 0;
|
1070 |
+
right: 0;
|
1071 |
+
background: rgba(35, 40, 45, 0.93);
|
1072 |
+
color: #eee;
|
1073 |
+
max-width: 230px;
|
1074 |
+
padding: 24px 24px 24px 48px;
|
1075 |
+
border-radius: 7px;
|
1076 |
+
margin: 12px;
|
1077 |
+
}
|
1078 |
+
|
1079 |
+
.lc-admin-message .dashicons {
|
1080 |
+
position: absolute;
|
1081 |
+
left: 18px;
|
1082 |
+
color: #9EA3A8;
|
1083 |
+
}
|
1084 |
+
|
1085 |
+
#lc-settings-tabs .wp-heading-inline {
|
1086 |
+
font-size: 27px;
|
1087 |
+
line-height: 1;
|
1088 |
+
font-weight: 300;
|
1089 |
+
margin: 0;
|
1090 |
+
}
|
1091 |
+
|
1092 |
+
#wpbody-content .lc-panel-non-active-plugin {
|
1093 |
+
font-size: 15px;
|
1094 |
+
padding: 25px;
|
1095 |
+
line-height: 20px;
|
1096 |
+
background: #f7f7f7;
|
1097 |
+
margin-bottom: -21px;
|
1098 |
+
}
|
1099 |
+
|
1100 |
+
.lc-license-block .dashicons-admin-network {
|
1101 |
+
position: absolute;
|
1102 |
+
margin-left: 13px;
|
1103 |
+
margin-top: 13px;
|
1104 |
+
opacity: .7;
|
1105 |
+
}
|
1106 |
+
|
1107 |
+
.lc-license-field {
|
1108 |
+
display: block;
|
1109 |
+
padding: 13px 10px 13px 38px;
|
1110 |
+
font-size: 15px;
|
1111 |
+
border-radius: 3px;
|
1112 |
+
max-width: 100%;
|
1113 |
+
min-width: 340px;
|
1114 |
+
}
|
1115 |
+
|
1116 |
+
.lc-panel-non-active-plugin .button {
|
1117 |
+
position: absolute;
|
1118 |
+
margin-left: 20px;
|
1119 |
+
margin-top: -4px;
|
1120 |
+
}
|
1121 |
+
|
1122 |
+
.lc-admin-tab-content .button .dashicons-update {
|
1123 |
+
position: relative;
|
1124 |
+
bottom: -3px;
|
1125 |
+
}
|
1126 |
+
|
1127 |
+
.lc-admin-tab-content .button.button-hero .dashicons-update {
|
1128 |
+
bottom: -12px;
|
1129 |
+
}
|
1130 |
+
|
1131 |
+
.lc-admin-tab-content .dashicons-update {
|
1132 |
+
-webkit-animation: lcext-loading-spinner 2s linear infinite;
|
1133 |
+
animation: lcext-loading-spinner 2s linear infinite;
|
1134 |
+
}
|
1135 |
+
|
1136 |
+
.lc-panel-license strong {
|
1137 |
+
color:#23282D;
|
1138 |
+
font-weight: 400;
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
div[data-license-status="invalid"] div[data-show-if-license="valid"],
|
1142 |
+
div[data-license-status="valid"] div[data-show-if-license="invalid"] {
|
1143 |
+
display: none;
|
1144 |
+
}
|
1145 |
+
|
1146 |
+
div[data-license-status="valid"] div[data-show-if-license="valid"],
|
1147 |
+
div[data-license-status="invalid"] div[data-show-if-license="invalid"] {
|
1148 |
+
display: flex;
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
@-webkit-keyframes lcext-loading-spinner {
|
1152 |
+
100% {
|
1153 |
+
-webkit-transform: rotate(360deg);
|
1154 |
+
transform: rotate(360deg);
|
1155 |
+
}
|
1156 |
+
}
|
1157 |
+
|
1158 |
+
@keyframes lcext-loading-spinner {
|
1159 |
+
100% {
|
1160 |
+
-webkit-transform: rotate(360deg);
|
1161 |
+
transform: rotate(360deg);
|
1162 |
+
}
|
1163 |
+
}
|
1164 |
+
|
1165 |
+
|
1166 |
+
.lc-tab-extensions .dslc-panel {
|
1167 |
+
margin-bottom: 30px;
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
body .dslc-panel .lc-license-block .button.button-hero {
|
1171 |
+
font-size: 16px;
|
1172 |
+
margin-top: 14px;
|
1173 |
+
}
|
1174 |
+
|
1175 |
+
.promo-code {
|
1176 |
+
margin-top: 20px;
|
1177 |
+
font-size: 12px;
|
1178 |
+
display: inline-block;
|
1179 |
+
opacity: .75;
|
1180 |
+
}
|
1181 |
+
|
1182 |
+
.promo-code:hover {
|
1183 |
+
opacity: 1;
|
1184 |
+
}
|
1185 |
+
|
1186 |
+
.promo-code strong {
|
1187 |
+
padding: 1px 8px;
|
1188 |
+
display: inline-block;
|
1189 |
+
border: 2px dotted rgba(0, 0, 0, 0.14);
|
1190 |
+
border-radius: 6px;
|
1191 |
+
margin-right: 2px;
|
1192 |
+
}
|
1193 |
+
|
1194 |
+
.promo-code:hover strong {
|
1195 |
+
color: #C84B29;
|
1196 |
+
}
|
1197 |
+
|
1198 |
+
|
1199 |
+
|
1200 |
.extension-browser .extension .extension-name {
|
1201 |
background: rgba(255, 255, 255, 0.65) none repeat scroll 0 0;
|
1202 |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) inset;
|
1203 |
+
font-size: 14px;
|
1204 |
font-weight: 600;
|
1205 |
+
/* height: 18px; */
|
1206 |
margin: 0;
|
1207 |
overflow: hidden;
|
1208 |
padding: 15px;
|
1218 |
opacity: 0.5;
|
1219 |
text-transform: uppercase;
|
1220 |
vertical-align: top;
|
1221 |
+
letter-spacing: .3px;
|
1222 |
}
|
1223 |
|
1224 |
+
.extension-browser .extension .extension-name .status {
|
1225 |
+
color: #C84B29;
|
1226 |
+
/* display: inline-block; */
|
1227 |
position: absolute;
|
1228 |
+
right: 14px;
|
1229 |
+
font-weight: normal;
|
1230 |
+
|
1231 |
+
background: rgba(250, 250, 250, 0.86);
|
1232 |
+
border-radius: 6px;
|
1233 |
+
box-shadow: 0 0 10px 5px rgba(250, 250, 250, 0.86);
|
1234 |
+
}
|
1235 |
+
|
1236 |
+
.extension-browser .extension .extension-name .status[data-show-if="active"] {
|
1237 |
+
color: #0073aa;
|
1238 |
}
|
1239 |
|
1240 |
+
.extension-browser .extension .extension-name .status .dashicons {
|
1241 |
opacity: .9;
|
1242 |
}
|
1243 |
|
1245 |
background: rgba(244, 244, 244, 0.7) none repeat scroll 0 0;
|
1246 |
border-left: 1px solid rgba(0, 0, 0, 0.05);
|
1247 |
bottom: 0;
|
1248 |
+
height: 47px;
|
1249 |
opacity: 0;
|
1250 |
padding: 9px 10px 0;
|
1251 |
position: absolute;
|
1284 |
.extension-browser .extension:hover .extension-screenshot, .extension-browser .extension:focus .extension-screenshot {
|
1285 |
background: #fff none repeat scroll 0 0;
|
1286 |
}
|
1287 |
+
/* .extension-browser.rendered .extension:hover .extension-screenshot img, .extension-browser.rendered .extension:focus .extension-screenshot img {
|
1288 |
opacity: 0.4;
|
1289 |
+
} */
|
1290 |
.extension-browser .extension .more-details {
|
1291 |
+
background: rgba(241, 241, 241, 0.9) none repeat scroll 0 0;
|
1292 |
+
color: #33322f;
|
1293 |
+
font-size: 14px;
|
1294 |
+
font-weight: normal;
|
1295 |
+
left: 0;
|
1296 |
+
display: flex;
|
1297 |
opacity: 0;
|
1298 |
+
padding: 20px;
|
1299 |
+
align-items: center;
|
1300 |
position: absolute;
|
1301 |
+
right: 0;
|
1302 |
text-align: center;
|
1303 |
+
margin: 0;
|
1304 |
text-decoration: none;
|
1305 |
+
top: 0;
|
1306 |
+
bottom: 0px;
|
1307 |
transition: opacity 0.1s ease-in-out 0s;
|
1308 |
+
cursor: help;
|
1309 |
}
|
1310 |
+
|
1311 |
+
|
1312 |
+
|
1313 |
.extension-browser .extension:focus {
|
1314 |
border-color: #5b9dd9;
|
1315 |
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
|
1386 |
color: inherit;
|
1387 |
text-decoration: none;
|
1388 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1389 |
|
|
|
|
|
|
|
1390 |
|
1391 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1392 |
.extension-overlay .extension-backdrop {
|
1393 |
background: rgba(238, 238, 238, 0.9) none repeat scroll 0 0;
|
1394 |
bottom: 0;
|
1728 |
width: 1450px;
|
1729 |
}
|
1730 |
}
|
1731 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1732 |
@media only screen and (max-width: 1120px) {
|
1733 |
.extension-browser .extension {
|
1734 |
margin-right: 0;
|
1833 |
top: 0;
|
1834 |
width: 100%;
|
1835 |
}
|
1836 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1837 |
.single-extension .extension-wrap {
|
1838 |
margin: 0 -12px 0 -10px;
|
1839 |
padding: 10px;
|
1926 |
body.show-upload-extension p.no-extensions {
|
1927 |
display: none !important;
|
1928 |
}
|
|
|
|
|
|
|
1929 |
@media only screen and (max-width: 1120px) {
|
1930 |
.upload-extension .wp-upload-form {
|
1931 |
margin: 20px 0;
|
includes/plugin-options-framework/css/main.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.dslc-panel a,.dslc-subsection-title a{text-decoration:none}.dslc-clear-cache{color:#D54E21;margin-left:12px;vertical-align:middle}.dslc-clear-cache .dashicons{font-size:16px;width:16px;height:16px;margin-top:7px}.dslc-settigns-notice{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:10px 12px;margin-top:16px}.dslc-settigns-notice-heading{margin-left:4px;margin-right:20px}.dslc-settigns-notice.red .dashicons,.dslc-settigns-notice.red .dslc-settigns-notice-heading{color:#d86c48}.dslc-settigns-notice .dashicons{vertical-align:text-bottom}#dslc-main-title{min-height:50px;padding-left:10px;padding-top:26px;width:50%}#dslc-main-title .dslc-ver{font-size:17px;font-weight:300;opacity:.4}.dslc-subsection-title{font-size:21px;font-weight:400;margin-bottom:40px;margin-top:30px}.dslc-tab-heading{margin-bottom:30px!important;margin-top:20px!important}.dslca-plugin-opts-notification{margin-top:20px;border-left:4px solid #5184bd;background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:15px 10px}.dslca-plugin-opts-list{width:300px;margin-bottom:10px}.dslca-plugin-opts-list-item{display:block;padding:7px 10px;border:1px solid rgba(0,0,0,.2);border-radius:3px;margin-bottom:5px;position:relative;font-weight:700}.dslca-plugin-opts-list-delete-hook{position:absolute;right:7px;top:6px;font-size:.9em;font-weight:400;font-style:italic}.dslca-plugin-opts-list-error{display:none;color:#db7171;margin-top:15px;font-weight:700}.lc-wrap{padding-left:10px;overflow:hidden}.lc-wrap .clear{clear:both;padding-bottom:40px;border-bottom:1px solid #ccc;margin-bottom:15px}.changelog,.lc-social,.lc-subscribe{width:45%;float:left;margin-right:50px}.lc-wrap h3{margin:1.25em 0 .6em;font-size:1.25em;line-height:1.5em}.lc-wrap h4{margin:1.4em 0 .6em;font-size:1em}.lc-wrap p{line-height:1.6em;font-size:14px}.activecampaign_form input[type=text]{border-color:#dcdddd;color:#000;border-width:1px;border-style:solid;border-radius:4px;font-size:14px;font-weight:300;margin:0 22px 10px 0;padding:8px 12px;width:97%;max-width:290px}.activecampaign_form button.button-primary{padding:3px 12px;height:auto}.activecampaign_form .add_thank_you:before{content:"\f147";display:inline-block;font-family:dashicons;font-size:22px;padding-right:3px;vertical-align:top;padding-top:1px;color:#54c13f}.activecampaign_form .add_thank_you{font-size:15px;display:block;position:relative;top:-130px}.activecampaign_form ._error{display:table;max-width:550px;padding:14px 18px;background:rgba(255,0,0,.09);border-radius:3px;margin-top:10px;border:1px solid #FCB6AC}#share-buttons span.dslc_social_text{margin-left:10px;font-size:15px}.dslc-panel{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:13px;line-height:2.1em;margin:16px 0;overflow:auto;padding:36px 3% 23px;position:relative}.dslc-panel h2{font-size:21px;font-weight:400;line-height:1.2;margin:0}.dslc-panel h3{font-size:16px;margin:1.33em 0 0}.dslc-panel h3 .dashicons{color:#82878c;font-size:170%;margin-right:12px}.dslc-panel .dslc-panel-column-container{clear:both;position:relative}.dslc-panel .dslc-panel-column-container:after{display:table;content:'';clear:both}.dslc-panel .dslc-panel-column{float:left;min-width:200px;width:30%;padding-right:4.5%}.dslc-panel .dslc-panel-column-container .dslc-panel-column:last-child{padding-right:0}.ie8 .dslc-panel .dslc-panel-column{min-width:230px}.dslc-panel-column p.hide-if-no-customize{margin-top:10px}.dslc-panel-column p{color:#444;margin-top:7px}.dslc-panel li{font-size:14px}.dslc-panel p{color:#72777c}.dslc-panel .about-description{font-size:16px;margin:0}.dslc-panel-content{margin-left:13px;max-width:1500px}.dslc-panel .dslc-panel-column ul{margin:.8em 1em 1em 0}.dslc-panel .dslc-panel-column li{line-height:16px;list-style-type:none;padding:0 0 8px}.dslc-panel .dslc-panel-icon{background:0 0!important}.dslc-panel .dslc-panel-icon:before,.dslc-panel li .dashicons{-moz-osx-font-smoothing:grayscale;color:#82878c;display:inline-block;font:20px/1 dashicons;padding:0 10px 0 0;position:relative;text-decoration:none!important;vertical-align:top;top:-2px}.dslc-panel .dslc-panel-twitter:before{content:"\f301"}.dslc-panel .dslc-panel-facebook:before{content:"\f304"}.dslc-panel .dslc-panel-facebook-page:before{content:"\f305"}.dslc-panel .dslc-panel-show-work:before{content:"\f529"}.dslc-panel-seo{background:url(../../../images/seo-tab-bg.png) right bottom no-repeat #2E97E0;box-shadow:none;border:0;padding:36px 5%;background-size:70%}.dslc-panel-seo.showing-notice{background:#2E97E0}.dslc-panel-seo.showing-notice .dslc-tab-seo-hide{display:none}.dslc-panel-seo .dslc-tab-seo-hide{color:#fff;font-size:11px;letter-spacing:3px;text-transform:uppercase;border:1px solid #fff;padding:2px 16px;float:right;border-radius:5px;font-weight:300;opacity:.5;margin-top:20px}.dslc-panel-seo .dslc-tab-seo-hide:hover{opacity:1;cursor:pointer;background:#b2ff2a;color:#2D400B;border:2px solid #b2ff2a}.dslc-panel-seo .dslc-panel-content{margin:30px 0 0 40px;max-width:500px;text-align:left}.dslc-panel-seo.showing-notice .dslc-panel-content{margin:20px 0 0 -10px;max-width:none;text-align:center}.dslc-panel-seo h2{color:#fff;font-size:36px;line-height:1;margin-bottom:25px;font-weight:300}.dslc-panel-seo .about-description{color:#32373c;font-size:18px}.dslc-panel-seo .dslc-notice{color:#fff;font-size:16px;letter-spacing:1px;line-height:1.55;margin-top:-25px}.dslc-panel-seo .dslc-notice a{color:#fff;text-decoration:underline}#dslc-seo-search{padding-top:20px}#dslc-seo-search label{font-size:17px;font-weight:300;color:#fff;margin-bottom:4px;display:inline-block}#dslc-seo-search input[type=text]{font-size:16px;height:46px;line-height:1;padding:10px 17px;width:60%;border:0;border-radius:5px;margin-bottom:20px}#dslc-seo-search button[type=submit]{font-size:16px;line-height:1;padding:20px 40px;border:0;border-radius:5px;margin-top:5px;margin-bottom:20px;letter-spacing:3px;text-transform:uppercase;background:#9FE02C;color:#2D400B}#dslc-seo-search button[type=submit]:hover{cursor:pointer;background:#b2ff2a}#new-lc-coming{background:#4AC496;border-color:#47a380 #35b484 #35b484;color:#fff;margin-top:-17px}#new-lc-coming h2{color:#fff;margin-top:16px;width:50%;margin-left:100px}#new-lc-coming h3{color:#2E3432}#new-lc-coming h3 .dashicons{color:#279168}#new-lc-coming p{color:#1F523F}#new-lc-coming hr{margin-top:30px;border-color:#3fb085 #4ac496 #6dcfaa}#new-lc-coming .button-hero{background:#2fab7c;border-color:#34a077;box-shadow:0 2px 0 #26805d;font-size:18px;height:auto;left:64%;padding:4px 26px;position:absolute;text-shadow:none;top:37px}#new-lc-coming .button-hero .dashicons{display:inline-block;font-size:150%;margin-right:14px;vertical-align:text-top}#new-lc-coming .button-hero:active{box-shadow:0 3px 0 #26805d inset}#new-lc-coming p.about-description{color:#a0e4ca;line-height:1.3;width:50%;margin-left:100px}#new-lc-coming .mink-illustration{position:absolute;top:28px;width:80px}#new-products-coming{border-color:#46b3e4 #237fbd #237fbd;color:#fff;margin-bottom:-17px;border-radius:4px 4px 0 0;border-top:none;padding-bottom:40px;position:relative;background:#2E97E0}#new-products-coming .label,#new-products-coming .price{border-radius:5px;letter-spacing:1px;font-size:11px;line-height:1;display:inline-block;text-transform:uppercase}#new-products-coming:before{position:absolute;background:url(../../../images/livecomposer-pattern.png) right -139px no-repeat;background-size:113%;opacity:.15;content:'';left:0;top:0;right:0;bottom:0}.dslc-panel-content{z-index:1;position:relative}#new-products-coming .label{color:rgba(255,255,255,.62);padding:7px 0;margin-top:20px}#new-products-coming .price{padding:7px 11px}#new-products-coming .price.original{padding-left:0;margin-right:10px}#new-products-coming .price.promo{background:#9fe02c;color:#2f4606}#new-products-coming h2{font-size:27px;color:#fff;text-align:left;width:34%;margin:24px 0 0;display:inline-block;line-height:1;vertical-align:top}#new-products-coming h3{color:#fff;margin-top:0;margin-bottom:7px;font-size:21px;line-height:1.2}#new-products-coming h4{color:#fff;margin-top:0;margin-bottom:20px;font-weight:400;font-size:16px;line-height:1.3;opacity:.7}#new-products-coming h3 .dashicons{color:rgba(236,236,236,.57)}#new-products-coming p{color:rgba(0,0,0,.65);margin:0 0 20px;min-height:50px}#new-products-coming hr{margin-top:20px;border-color:rgba(0,0,0,.16) transparent rgba(255,255,255,.2);opacity:.3}#new-products-coming .button-hero{background:#9FE02C;border-color:#a8ea32;box-shadow:0 2px 0 #2c8ac5;font-size:18px;line-height:20px;height:auto;color:#2d400b;padding:16px 26px 16px 56px;vertical-align:top;margin:10px 0 0;position:relative;text-shadow:none;display:inline-block;max-width:30%;white-space:normal}#new-products-coming .button-hero .dashicons{font-size:150%;left:18px;vertical-align:text-top;position:absolute;top:50%;margin-top:-14px}#new-products-coming .button-hero:active{box-shadow:0 3px 0 #26805d inset}#new-products-coming p.about-description{color:rgba(2,2,2,.6);line-height:1.3;width:28%;margin:20px 6% 0 0;display:inline-block;vertical-align:top}#new-products-coming .mink-illustration{position:absolute;bottom:-1px;width:100px}.extension-browser .extensions{clear:both}.extensions-php .wrap h1{float:left;margin-bottom:15px}.network-admin.extensions-php .wrap h1{margin-bottom:0}.extensions-php .wrap h1 .button{margin-left:20px}.extensions-php .wp-filter-search{font-size:16px;font-weight:300;left:20px;line-height:1.5;margin:0;position:relative;top:-2px;width:280px}.extensions-php div.error,.extensions-php div.notice,.extensions-php div.updated{clear:both;margin:0 0 20px}.extension-browser .extension{border:1px solid #ddd;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-sizing:border-box;cursor:pointer;float:left;margin:0 4% 4% 0;position:relative;width:30.6%}.ie8 .extension-browser .extension{margin:0 3% 4% 0;width:30%}.extension-browser .extension:nth-child(3n){margin-right:0}.extension-browser .extension:focus,.extension-browser .extension:hover{cursor:default}.extension-browser .extension .extension-name{background:rgba(255,255,255,.65);box-shadow:0 1px 0 rgba(0,0,0,.1) inset;font-size:15px;font-weight:600;height:18px;margin:0;overflow:hidden;padding:15px;text-overflow:ellipsis;white-space:nowrap}.extension-browser .extension .extension-name em{font-size:75%;font-style:normal;font-weight:400;margin-right:3px;opacity:.5;text-transform:uppercase;vertical-align:top}.extension-browser .extension .extension-name .price{color:#0073aa;display:inline-block;position:absolute;right:20px}.extension-browser .extension .extension-name .price .dashicons{opacity:.9}.extension-browser .extension .extension-actions{background:rgba(244,244,244,.7);border-left:1px solid rgba(0,0,0,.05);bottom:0;height:38px;opacity:0;padding:9px 10px 0;position:absolute;right:0;transition:opacity .1s ease-in-out 0s}.extension-browser .extension.focus .extension-actions,.extension-browser .extension:focus .extension-actions,.extension-browser .extension:hover .extension-actions{opacity:1}.extension-browser .extension .extension-actions .button-primary{margin-right:3px}.extension-browser .extension .extension-actions .button-secondary{float:none;margin-left:3px}.extension-browser .extension .extension-screenshot{display:block;overflow:hidden;position:relative;transition:opacity .2s ease-in-out 0s}.extension-browser .extension .extension-screenshot::after{content:"";display:block;padding-top:65.6667%}.extension-browser .extension .extension-screenshot img{height:auto;left:0;position:absolute;top:0;transition:opacity .2s ease-in-out 0s;width:100%}.extension-browser .extension:focus .extension-screenshot,.extension-browser .extension:hover .extension-screenshot{background:#fff}.extension-browser.rendered .extension:focus .extension-screenshot img,.extension-browser.rendered .extension:hover .extension-screenshot img{opacity:.4}.extension-browser .extension .more-details{background:rgba(0,0,0,.7);border-radius:3px;color:#fff;font-size:15px;font-weight:600;left:25%;opacity:0;padding:15px 12px;position:absolute;right:25%;text-align:center;text-decoration:none;text-shadow:0 1px 0 rgba(0,0,0,.6);top:35%;transition:opacity .1s ease-in-out 0s}.extension-browser .extension:focus .more-details,.extension-browser.rendered .extension:focus .more-details,.extension-browser.rendered .extension:hover .more-details{opacity:1}.extension-browser .extension:focus{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.extension-browser .extension.active:focus .extension-actions{display:block}.extension-browser .extension .extension-installed,.extension-browser .extension .extension-update{background:rgba(213,78,33,.95);border-bottom:1px solid rgba(0,0,0,.25);color:#fff;display:block;font-size:13px;font-weight:400;height:48px;left:0;line-height:48px;overflow:hidden;padding:0 10px;position:absolute;right:0;top:0}.extension-browser .extension .extension-installed::before,.extension-browser .extension .extension-update::before{content:"";display:inline-block;font:20px/1 dashicons;margin:0 6px 0 0;opacity:.8;position:relative;top:5px}.extension-browser .extension.active .extension-name{background:#23282d;box-shadow:0 1px 1px rgba(0,0,0,.5) inset;color:#fff;font-weight:300;padding-right:110px}.extension-browser .customize-control .extension.active .extension-name{padding-right:15px}.extension-browser .extension.active .extension-name span{font-weight:600}.extension-browser .extension.active .extension-actions{background:rgba(49,49,49,.7);border-left:medium none;opacity:1}.extension-browser .extension.active .extension-actions .button-primary{margin-right:0}.extension-browser .extension .extension-author{background:#23282d;bottom:56px;color:#eee;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute}.extension-browser .extension.display-author .extension-author{display:block}.extension-browser .extension.display-author .extension-author a{color:inherit;text-decoration:none}.extension-browser .extension.add-new-extension{border:none;box-shadow:none}.extension-browser .extension.add-new-extension a{display:block;position:relative;text-decoration:none;z-index:1}.extension-browser .extension.add-new-extension a::after{background:rgba(0,0,0,0);border:5px dashed rgba(0,0,0,.1);bottom:0;box-sizing:border-box;content:"";display:block;left:0;padding:0;position:absolute;right:0;text-shadow:none;top:0}.extension-browser .extension.add-new-extension span::after{background:rgba(153,153,153,.1);border-radius:50%;color:#999;content:"\f106";display:inline-block;font:74px/115px dashicons;height:100px;left:50%;margin-left:-50px;padding:0;position:absolute;text-align:center;text-indent:-4px;text-shadow:none;top:30%;vertical-align:middle;width:100px;z-index:4}.extension-browser .extension.add-new-extension.add-new-theme span::after{content:"\f100"}.rtl .extension-browser .extension.add-new-extension span::after{text-indent:4px}.extension-browser .extension.add-new-extension a:focus .extension-screenshot,.extension-browser .extension.add-new-extension a:hover .extension-screenshot{background:rgba(0,0,0,0)}.extension-browser .extension.add-new-extension a:focus span::after,.extension-browser .extension.add-new-extension a:hover span::after{background:#fff;color:#0073aa}.extension-browser .extension.add-new-extension a:focus::after,.extension-browser .extension.add-new-extension a:hover::after{background:#0073aa;border-color:transparent;color:#fff;content:""}.extension-browser .extension.add-new-extension .extension-name{background:rgba(0,0,0,0);box-shadow:none;font-weight:400;margin-top:-18px;padding-bottom:48px;padding-top:0;position:relative;text-align:center;top:0}.extension-browser .extension.add-new-extension a:focus .extension-name,.extension-browser .extension.add-new-extension a:hover .extension-name{color:#fff;z-index:2}.extension-overlay .extension-backdrop{background:rgba(238,238,238,.9);bottom:0;left:-20px;position:absolute;right:0;top:0;z-index:10000}.extension-overlay .extension-header .close,.extension-overlay .extension-header .left,.extension-overlay .extension-header .right{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background-color:transparent;cursor:pointer;height:48px;text-align:center;transition:color .1s ease-in-out 0s,background .1s ease-in-out 0s;border-image:none}.extension-overlay .extension-header{border-bottom:1px solid #ddd;height:48px;left:0;position:absolute;right:0;top:0}.extension-overlay .extension-header button{padding:0}.extension-overlay .extension-header .close{border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color #ddd;border-style:none none none solid;border-width:0 0 0 1px;float:right;width:50px}.extension-overlay .extension-header .close::before{color:#72777c;content:"";display:inline-block;font:22px/50px dashicons!important}.extension-overlay .extension-header .left,.extension-overlay .extension-header .right{border-color:-moz-use-text-color #ddd -moz-use-text-color -moz-use-text-color;border-style:none solid none none;border-width:0 1px 0 0;color:#72777c;float:left;width:54px}.extension-overlay .extension-header .close:focus,.extension-overlay .extension-header .close:hover,.extension-overlay .extension-header .left:focus,.extension-overlay .extension-header .left:hover,.extension-overlay .extension-header .right:focus,.extension-overlay .extension-header .right:hover{background:#ddd;border-color:#ccc;color:#000}.extension-overlay .extension-header .close:focus::before,.extension-overlay .extension-header .close:hover::before{color:#000}.extension-overlay .extension-header .close:focus,.extension-overlay .extension-header .left:focus,.extension-overlay .extension-header .right:focus{box-shadow:none;outline:0}.extension-overlay .extension-header .left.disabled,.extension-overlay .extension-header .left.disabled:hover,.extension-overlay .extension-header .right.disabled,.extension-overlay .extension-header .right.disabled:hover{background:inherit;color:#ccc;cursor:inherit}.extension-overlay .extension-header .left::before,.extension-overlay .extension-header .right::before{display:inline;font:20px/50px dashicons!important}.customize-support .extension-overlay .extension-actions a[href="extensions.php?page=custom-header"],.customize-support .extension-overlay .extension-actions a[href="extensions.php?page=custom-background"],.extension-overlay .extension-actions .active-extension,.extension-overlay.active .extension-actions .inactive-extension{display:none}.extension-overlay .extension-header .left::before{content:""}.extension-overlay .extension-header .right::before{content:""}.extension-overlay .extension-wrap{background:#fff;bottom:3%;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);box-sizing:border-box;clear:both;left:190px;position:fixed;right:30px;top:9%;z-index:10000}body.folded .extension-overlay .extension-wrap{left:70px}.extension-overlay .extension-about{bottom:57px;left:0;overflow:auto;padding:2% 4%;position:absolute;right:0;top:49px}.extension-overlay .extension-actions{background:#f3f3f3;border-top:1px solid #eee;bottom:0;box-sizing:border-box;left:0;padding:10px 25px 5px;position:absolute;right:0;text-align:center;z-index:30}.ie8 .extension-overlay .extension-actions{border:1px solid #eee}.extension-overlay .extension-actions a{margin-bottom:5px;margin-right:5px}.broken-extensions a.delete-extension,.extension-overlay .extension-actions .delete-extension{background:0 0;border-color:transparent;box-shadow:none;color:#a00;text-decoration:none}.extension-overlay .extension-actions .delete-extension{bottom:5px;position:absolute;right:10px}.broken-extensions a.delete-extension:focus,.broken-extensions a.delete-extension:hover,.extension-overlay .extension-actions .delete-extension:focus,.extension-overlay .extension-actions .delete-extension:hover{background:#d54e21;border-color:#d54e21;color:#fff}.extension-overlay .extension-actions .inactive-extension,.extension-overlay.active .extension-actions .active-extension{display:block}.extension-overlay .extension-screenshots{float:left;margin:0 30px 0 0;max-width:880px;text-align:center;width:55%}.extension-overlay .screenshot{border:1px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;overflow:hidden;position:relative}.extension-overlay .screenshot::after{content:"";display:block;padding-top:75%}.extension-overlay .screenshot img{height:auto;left:0;position:absolute;top:0;width:100%}.extension-overlay.small-screenshot .extension-screenshots{position:absolute;width:302px}.extension-overlay.small-screenshot .extension-info{margin-left:350px;width:auto}.extension-overlay .screenshot.thumb{background:#ccc;border:1px solid #eee;cursor:pointer;display:inline-block;float:none;height:80px;margin:10px 5px 0;width:140px}.extension-overlay .screenshot.thumb::after{content:"";display:block;padding-top:100%}.extension-overlay .screenshot.thumb img{cursor:pointer;height:auto;left:0;position:absolute;top:0;width:100%}.extension-overlay .screenshot.selected{background:0 0;border:2px solid #00a0d2}.extension-overlay .screenshot.selected img{opacity:.8}.extension-browser .extension .extension-screenshot.blank,.extension-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.extension-overlay .extension-info{float:left;width:40%}.extension-overlay .current-label{-moz-user-select:none;background:#32373c;border-radius:2px;color:#fff;display:inline-block;font-size:11px;margin:0 0 -10px;padding:2px 8px}.extension-overlay .extension-name{color:#23282d;font-size:32px;font-weight:100;line-height:1.3;margin:10px 0 0}.extension-overlay .extension-version{color:#72777c;display:inline-block;float:none;font-size:13px;font-weight:400;margin-left:10px}.extension-overlay .extension-author{color:#72777c;font-size:16px;font-weight:400;line-height:inherit;margin:15px 0 25px}.extension-overlay .extension-author a{text-decoration:none}.extension-overlay .extension-description{color:#555;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.extension-overlay .extension-tags{border-top:3px solid #eee;color:#82878c;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.extension-overlay .extension-tags span{color:#444;font-weight:700;margin-right:5px}.extension-overlay .parent-extension{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:#f7fcfe;border-color:#eee #eee #eee #00a0d2;border-image:none;border-style:solid;border-width:1px 1px 1px 4px;font-size:14px;font-weight:400;margin-top:30px;padding:10px 10px 10px 20px}.extension-overlay .parent-extension strong{font-weight:700}.single-extension .extension,.single-extension .extension-overlay .extension-backdrop,.single-extension .extension-overlay .extension-header{display:none}.single-extension .extension-overlay .extension-wrap{bottom:auto;clear:both;left:auto;min-height:330px;position:relative;right:auto;top:auto;z-index:10}.single-extension .extension-overlay .extension-about{padding:30px 30px 70px;position:static}.single-extension .extension-overlay .extension-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .extension-browser .extension{margin:0 3% 3% 0;width:17.6%}#wpwrap .extension-browser .extension:nth-child(3n),#wpwrap .extension-browser .extension:nth-child(4n){margin-right:3%}#wpwrap .extension-browser .extension:nth-child(5n){margin-right:0}}@media only screen and (min-width:1680px){.extension-overlay .extension-wrap{margin:0 auto;width:1450px}}@media only screen and (min-width:1640px){.extension-browser .extension{margin:0 3% 3% 0;width:22.7%}.extension-browser .extension .extension-screenshot::after{padding-top:75%}.extension-browser .extension:nth-child(3n){margin-right:3%}.extension-browser .extension:nth-child(4n){margin-right:0}}@media only screen and (max-width:1120px){.extension-browser .extension{margin-right:0;width:47.5%}.extension-browser .extension:nth-child(2n){margin-right:0}.extension-browser .extension:nth-child(2n+1){margin-right:5%}}@media only screen and (max-width:900px){.extension-overlay .extension-wrap{left:65px}}@media only screen and (max-width:780px){.extension-browser .extension.active .extension-name span,.extension:focus .more-details,.extension:focus:not(.active) .extension-actions,.extension:hover .more-details,.extension:hover:not(.active) .extension-actions{display:none}.extension-overlay .extension-wrap,body.folded .extension-overlay .extension-wrap{border:none;bottom:0;left:0;padding:70px 20px 20px;position:fixed;right:0;top:0;z-index:100000}.extension-overlay .extension-screenshots{width:40%}.extension-overlay .extension-info{width:50%}.single-extension .extension-wrap{padding:10px}.extension-browser .extension .extension-actions{padding:5px 10px 4px}.extension-overlay.small-screenshot .extension-screenshots{float:none;max-width:302px;position:static}.extension-overlay.small-screenshot .extension-info{margin-left:0;width:auto}.extension-browser.rendered .extension:focus .extension-screenshot img,.extension-browser.rendered .extension:hover .extension-screenshot img{opacity:1}}@media only screen and (max-width:480px){.extension-browser .extension{margin-right:0;width:100%}.extension-browser .extension:nth-child(2n),.extension-browser .extension:nth-child(3n){margin-right:0}}@media only screen and (max-width:650px){.extension-overlay .extension-description,.extension-overlay .extension-update{margin-left:0}.extension-overlay .extension-actions .delete-extension{bottom:auto;position:relative;right:auto}.extension-overlay .extension-actions .inactive-extension{display:inline}.extension-overlay .extension-screenshots{float:none;width:100%}.extension-overlay .extension-info{width:100%}.extension-overlay .extension-author{margin:5px 0 15px}.extension-overlay .current-label{font-size:13px;margin-top:10px}.extensions-php .wp-filter-search{clear:both;float:none;left:0;margin:10px 0;max-width:280px;right:0;top:0;width:100%}.extension-browser .extension.add-new-extension span::after{font:60px/90px dashicons;height:80px;left:50%;margin-left:-40px;text-indent:0;top:30%;width:80px}.single-extension .extension-wrap{margin:0 -12px 0 -10px;padding:10px}.single-extension .extension-overlay .extension-about{overflow:visible;padding:10px}.single-extension .current-label{display:none}.single-extension .extension-overlay .extension-actions{position:static}}.broken-extensions{clear:both}.broken-extensions table{border-spacing:3px;padding:3px;text-align:left;width:50%}.extension-browser .extension .extension-installed{background:#0073aa}.extension-browser .extension .extension-installed::before{content:""}.extension-browser .extension.is-installed .extension-actions .button-primary{display:none!important}.extension-install-php .wp-filter{padding:0 20px}.extension-install-php a.browse-extensions,.extension-install-php a.upload{cursor:pointer}.extension-install-php a.browse-extensions,.extension-install-php.show-upload-extension a.upload{display:none}.extension-install-php.show-upload-extension a.browse-extensions{display:inline}.upload-extension,.upload-plugin{box-sizing:border-box;display:none;margin:0;overflow:hidden;padding:0;position:relative;top:10px;width:100%}.wp-full-overlay,.wp-full-overlay-sidebar{position:fixed;height:100%;bottom:0;left:0}.upload-plugin,body.show-upload-extension .upload-extension{display:block}.upload-extension .wp-upload-form,.upload-plugin .wp-upload-form{background:#fafafa;border:1px solid #e5e5e5;margin:30px auto;max-width:380px;padding:30px}.upload-extension .install-help,.upload-plugin .install-help{color:#555d66;font-size:18px;font-style:normal;margin:0;padding:40px 0 0;text-align:center}body.show-upload-extension .upload-extension+.wp-filter,body.show-upload-extension .upload-extension+.wp-filter+.extension-browser{display:none}p.no-extensions{clear:both;color:#666;display:none;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center}body.no-results p.no-extensions{display:block}.extension-install-php .add-new-extension,body.show-upload-extension p.no-extensions{display:none!important}@media only screen and (max-width:1120px){.upload-extension .wp-upload-form{margin:20px 0;max-width:100%}.upload-extension .install-help{font-size:15px;padding:20px 0 0;text-align:left}}.extension-details .extension-rating{line-height:23px}.extension-details .star-rating{display:inline}.extension-details .no-rating,.extension-details .num-ratings{color:#72777c;font-size:11px}.extension-details .no-rating{display:block;line-height:20px}.appearance_page_custom-header #headimg{border:1px solid #ddd;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:left;margin:0 20px 20px 0}.appearance_page_custom-header .random-header{clear:both;margin:0 20px 20px 0;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-right:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{border:1px solid #ddd;min-height:100px}div#custom-background-image img{max-height:300px;max-width:400px}body.full-overlay-active{overflow:hidden}.wp-full-overlay{min-width:0;overflow:visible;right:0;top:0;z-index:500000}.wp-full-overlay-sidebar{background:#eee;border-right:medium none;box-sizing:border-box;margin:0;padding:0;top:0;width:300px;z-index:10}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-left:0!important}.wp-full-overlay.expanded{margin-left:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible;margin-left:-300px}.wp-full-overlay-sidebar::after{bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:3px;z-index:1000}.wp-full-overlay-main{bottom:0;height:100%;left:0;position:absolute;right:0;top:0}.wp-full-overlay-sidebar .wp-full-overlay-header{border-top:medium none;box-shadow:none;height:45px;left:0;line-height:45px;margin:0;padding:0 15px;position:absolute;right:0;z-index:10}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{border-bottom:medium none;border-top:medium none;bottom:0;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:45px;left:0;overflow:auto;position:absolute;right:0;top:45px}.extension-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.extension-install-overlay .close-full-overlay,.extension-install-overlay .next-extension,.extension-install-overlay .previous-extension{background:#eee;border-right:1px solid #ddd;color:#444;cursor:pointer;display:block;float:left;height:45px;padding-right:2px;position:relative;text-decoration:none;transition:color .1s ease-in-out 0s,background .1s ease-in-out 0s;width:45px}.extension-install-overlay .close-full-overlay:focus,.extension-install-overlay .close-full-overlay:hover,.extension-install-overlay .next-extension:focus,.extension-install-overlay .next-extension:hover,.extension-install-overlay .previous-extension:focus,.extension-install-overlay .previous-extension:hover{background:#ddd;border-color:#ccc;box-shadow:none;color:#000;outline:0}.extension-install-overlay .close-full-overlay::before{content:"";font:22px/1 dashicons;left:13px;position:relative;top:7px}.extension-install-overlay .previous-extension::before{content:"";font:20px/1 dashicons;left:14px;position:relative;top:6px}.extension-install-overlay .next-extension::before{content:"";font:20px/1 dashicons;left:13px;position:relative;top:6px}.extension-install-overlay .next-extension.disabled,.extension-install-overlay .next-extension.disabled:focus,.extension-install-overlay .next-extension.disabled:hover,.extension-install-overlay .previous-extension.disabled,.extension-install-overlay .previous-extension.disabled:focus,.extension-install-overlay .previous-extension.disabled:hover{background:#eee;color:#b4b9be;cursor:default;pointer-events:none}.wp-core-ui .wp-full-overlay .collapse-sidebar{background-color:transparent!important;border:none!important;border-radius:0!important;bottom:8px;box-shadow:none!important;color:#656a6f;left:10px;line-height:1;outline:0;padding:0;position:fixed}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#0073aa}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;line-height:20px;vertical-align:middle}.wp-full-overlay .collapse-sidebar-arrow{border-radius:50%;height:20px;margin:0 2px;overflow:hidden;width:20px}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-full-overlay .collapse-sidebar-label{margin-left:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow::before{-moz-osx-font-smoothing:grayscale;background:#eee;content:"";display:block;font:20px/1 dashicons;padding:0}.rtl .wp-full-overlay .collapse-sidebar-arrow::before,.wp-full-overlay.collapsed .collapse-sidebar-arrow::before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow::before{transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-duration:.2s;transition-property:left,right,top,bottom,width,margin}.wp-full-overlay{background:#191e23}.wp-full-overlay-main{background-color:#f1f1f1}.expanded .wp-full-overlay-footer{border-top:1px solid #ddd;bottom:0;height:45px;left:0;position:fixed;width:300px}.wp-full-overlay-footer .devices{float:right}.wp-full-overlay-footer .devices button{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:0 0;border-color:transparent -moz-use-text-color;border-image:none;border-style:solid none;border-width:1px medium 4px;box-shadow:none;cursor:pointer;height:45px;margin:0 0 0 -4px;padding:0 3px;transition:background .1s ease-in-out 0s}.wp-full-overlay-footer .devices button::before{color:#656a6f;display:inline-block;font:20px/30px dashicons;margin:3px 0;padding:4px 8px;vertical-align:top}.collapsed .wp-full-overlay-footer .devices button::before,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}.wp-full-overlay-footer .devices button.active{border-bottom-color:#191e23}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0;border-bottom-color:#0073aa}.wp-full-overlay-footer .devices button.active::before,.wp-full-overlay-footer .devices button:focus::before,.wp-full-overlay-footer .devices button:hover::before{color:#191e23}.wp-full-overlay-footer .devices .preview-desktop::before{content:""}.wp-full-overlay-footer .devices .preview-tablet::before{content:""}.wp-full-overlay-footer .devices .preview-mobile::before{content:""}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.preview-mobile .wp-full-overlay-main{height:480px;left:50%;margin:auto 0 auto -160px;max-height:100%;max-width:100%;width:320px}.preview-tablet .wp-full-overlay-main{height:1080px;left:50%;margin:auto 0 auto -360px;max-height:100%;max-width:100%;width:720px}#customize-container{background:#fff;bottom:0;display:none;height:100%;left:0;overflow:visible;position:fixed;right:0;top:0;z-index:500000}.customize-active #customize-container{display:block}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.extension-install-overlay iframe{height:100%;transition:opacity .3s ease 0s;width:100%;z-index:20}#customize-controls{margin-top:0}.extension-install-overlay{display:none}.extension-install-overlay.single-extension{display:block}.install-extension-info{display:none;padding:10px 20px 60px}.single-extension .install-extension-info{padding-top:15px}.extension-install-overlay .install-extension-info{display:block}.install-extension-info .extension-install{float:right;margin-top:18px}.install-extension-info .extension-name{font-size:16px;line-height:24px;margin-bottom:0;margin-top:0}.install-extension-info .extension-screenshot{border:1px solid #ccc;margin:15px 0;width:258px}.install-extension-info .extension-details{overflow:hidden}.extension-details .extension-version{margin:15px 0}.extension-details .extension-description{color:#72777c;float:left;line-height:20px;max-width:100%}.extension-install-overlay .wp-full-overlay-header .extension-install{float:right;line-height:26px;margin:8px 10px 0 0}.extension-install-overlay .wp-full-overlay-sidebar{background:#eee;border-right:1px solid #ddd}.extension-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.extension-install-overlay .wp-full-overlay-main{background-color:#f1f1f1;position:absolute;z-index:0}.customize-loading #customize-container{background-color:#f1f1f1}#customize-preview.wp-full-overlay-main::before,.customize-loading #customize-container::before,.extension-install-overlay .wp-full-overlay-main::before{background:url(../images/spinner.gif) center center/20px 20px no-repeat;content:"";display:block;height:20px;left:50%;margin:-10px 0 0 -10px;position:absolute;top:50%;transform:translateZ(0);width:20px;z-index:-1}#customize-preview.wp-full-overlay-main.iframe-ready::before,.extension-install-overlay.iframe-ready .wp-full-overlay-main::before{background-image:none}@media print,not all,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-preview.wp-full-overlay-main::before,.customize-loading #customize-container::before,.extension-install-overlay .wp-full-overlay-main::before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-extension .action-links .delete-extension{clear:both;float:none;margin:0;padding:0}.available-extension .action-links .delete-extension a{padding:0}.broken-extensions table{width:100%}.extension-install-overlay .wp-full-overlay-header .extension-install{line-height:normal;margin-top:6px}}.docs-search-form button .dashicons{opacity:.75;vertical-align:text-bottom}.docs-search-form .search-query{border-radius:3px;height:46px;padding:10px 17px}#dslc-docssearch{padding:30px 0 20px}#dslc-docssearch .search-query{min-width:64%}#dslc-headersearch{position:absolute;right:40px;top:30px}#dslc-headersearch .hssearch{padding:0 16px!important}.dslc-settigns-tabs .nav-tab .tag{background:#d54e21;border-radius:4px;color:#fff;display:inline-block;font-size:10px;letter-spacing:.5px;line-height:1;margin-left:5px;padding:4px 6px;text-transform:uppercase;opacity:.8}.dslc-scroll-back{margin-left:-90px;margin-top:44px;position:absolute;text-decoration:none;text-transform:uppercase}.dslc-scroll-back .dashicons{font-size:17px}#dslc-settings-column{clear:both;display:inline;float:left;margin-left:-300px;padding-top:0;width:281px}.dslc-settings-form .dslc-panel{padding:40px;margin-top:10px;max-width:640px}.dslc-settings-form .dslc-panel h2{margin-bottom:30px}.dslc-panel.dslc-hide-panel{display:none}.dslc-submenu-section{border-bottom:1px solid #ddd;margin:0}.dslc-submenu-section:hover{background:#f5f5f5;color:#23282d}.dslc-submenu-section a{-moz-user-select:none;border-left:1px solid #ddd;border-right:1px solid #ddd;margin:0;padding:12px 15px 15px;position:relative;font-size:14px;line-height:21px;font-weight:700;color:#23282D!important;text-decoration:none;display:block}.dslc-submenu-section .dashicons{margin-bottom:-1px;margin-right:6px;margin-top:1px;opacity:.4}#dslc-setings-liquid{float:left;margin-top:3px;min-width:100%}#dslc-settings-frame{margin-left:300px;margin-top:23px}.dslc-icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}a .dslc-icon-spin{display:inline-block;text-decoration:none}@-moz-keyframes spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}
|
1 |
+
.dslc-panel a,.dslc-subsection-title a{text-decoration:none}.dslc-clear-cache{color:#D54E21;margin-left:12px;vertical-align:middle}.dslc-clear-cache .dashicons{font-size:16px;width:16px;height:16px;margin-top:7px}.dslc-settigns-notice{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:10px 12px;margin-top:16px}.dslc-settigns-notice-heading{margin-left:4px;margin-right:20px}.dslc-settigns-notice.red .dashicons,.dslc-settigns-notice.red .dslc-settigns-notice-heading{color:#d86c48}.dslc-settigns-notice .dashicons{vertical-align:text-bottom}#dslc-main-title{min-height:50px;padding-left:10px;padding-top:26px;width:50%}#dslc-main-title .dslc-ver{font-size:17px;font-weight:300;opacity:.4}.dslc-subsection-title{font-size:21px;font-weight:400;margin-bottom:40px;margin-top:30px}.dslc-tab-heading{margin-bottom:30px!important;margin-top:20px!important}.dslca-plugin-opts-notification{margin-top:20px;border-left:4px solid #5184bd;background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:15px 10px}.dslca-plugin-opts-list{width:300px;margin-bottom:10px}.dslca-plugin-opts-list-item{display:block;padding:7px 10px;border:1px solid rgba(0,0,0,.2);border-radius:3px;margin-bottom:5px;position:relative;font-weight:700}.dslca-plugin-opts-list-delete-hook{position:absolute;right:7px;top:6px;font-size:.9em;font-weight:400;font-style:italic}.dslca-plugin-opts-list-error{display:none;color:#db7171;margin-top:15px;font-weight:700}.lc-wrap{padding-left:10px;overflow:hidden}.lc-wrap .clear{clear:both;padding-bottom:40px;border-bottom:1px solid #ccc;margin-bottom:15px}.changelog,.lc-social,.lc-subscribe{width:45%;float:left;margin-right:50px}.lc-wrap h3{margin:1.25em 0 .6em;font-size:1.25em;line-height:1.5em}.lc-wrap h4{margin:1.4em 0 .6em;font-size:1em}.lc-wrap p{line-height:1.6em;font-size:14px}.activecampaign_form input[type=text]{border-color:#dcdddd;color:#000;border-width:1px;border-style:solid;border-radius:4px;font-size:14px;font-weight:300;margin:0 22px 10px 0;padding:8px 12px;width:97%;max-width:290px}.activecampaign_form button.button-primary{padding:3px 12px;height:auto}.activecampaign_form .add_thank_you:before{content:"\f147";display:inline-block;font-family:dashicons;font-size:22px;padding-right:3px;vertical-align:top;padding-top:1px;color:#54c13f}.activecampaign_form .add_thank_you{font-size:15px;display:block;position:relative;top:-130px}.activecampaign_form ._error{display:table;max-width:550px;padding:14px 18px;background:rgba(255,0,0,.09);border-radius:3px;margin-top:10px;border:1px solid #FCB6AC}#share-buttons span.dslc_social_text{margin-left:10px;font-size:15px}.dslc-settigns-tabs .nav-tab{padding-right:15px;padding-left:15px;font-size:15px;font-weight:400}#lc-settings-tabs,#lc-settings-tabs *{box-sizing:border-box}.dslc-panel{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:13px;line-height:2.1em;margin:20px 0;overflow:auto;padding:36px 3% 23px;position:relative}.dslc-panel.no-top-margin{margin-top:-21px;border-top:none}.lc-panel-intro .lc-panel-cta{margin-top:30px}.lc-panel-cta{margin-bottom:0;min-height:140px}.lc-align-center{text-align:center}.lc-wrap.lc-centered-panels{max-width:760px;margin-left:auto;margin-right:auto}.lc-wrap.lc-centered-panels.lc-wider-panel{max-width:860px}.dslc-panel.padding-medium{padding:36px 9%}.dslc-panel hr{margin:3em 0}.lc-panel-icon-hero{color:#9EA3A8;margin:40px 0 -10px;text-align:center}.dashicons.orange{color:#D54E21}.lc-panel-icon-hero .dashicons{font-size:80px;line-height:1;width:auto;height:auto}.dslc-panel h2{font-size:21px;font-weight:400;line-height:1.2;margin:0}.dslc-panel h2.lc-huge{margin:40px 0 .6em;font-size:3.3em;line-height:1.2;font-weight:300;text-align:center}.dslc-panel.lc-dark-panel .lc-column-list,.dslc-panel.lc-dark-panel h2,.dslc-panel.lc-dark-panel h3{color:#fff}.dslc-panel.lc-dark-panel .lc-column-list .dashicons{color:rgba(255,255,255,.65)}.dslc-panel h3{font-size:16px;margin:1.33em 0 0}.dslc-panel h3.lc-huge{margin:40px 0 .6em;font-size:2.4em;line-height:1.2;font-weight:300}.dslc-panel h3.lc-huge.margin-top-half{margin-top:20px}.dslc-panel h3 .dashicons{color:#82878c;font-size:170%;margin-right:12px}.dslc-panel .dslc-panel-column-container{clear:both;position:relative}.dslc-panel .dslc-panel-column-container:after{display:table;content:'';clear:both}.dslc-panel .dslc-panel-column{float:left;min-width:200px;width:30%;padding-right:4.5%}.dslc-panel .dslc-panel-column-container .dslc-panel-column:last-child{padding-right:0}.ie8 .dslc-panel .dslc-panel-column{min-width:230px}.dslc-panel-column p.hide-if-no-customize{margin-top:10px}.dslc-panel-column p{color:#444;margin-top:7px}.dslc-panel li{font-size:14px}.dslc-panel p{color:#72777c}.dslc-panel.lc-dark-panel p{color:rgba(255,255,255,.6)}.dslc-panel .lc-larger-text{font-size:1.2em}body .dslc-panel.lc-panel-cta{padding-top:10px;padding-bottom:10px}body .dslc-panel.lc-border-top{border-top:1px solid rgba(211,211,211,.45)}body .lc-panel-cta .button.button-hero{font-size:16px}.dslc-panel .lc-description,.dslc-panel .lc-feature-description{font-size:1.5em;font-weight:300;line-height:1.4;margin-bottom:2em;color:#23282d}.dslc-panel .lc-feature-description{margin:0;font-size:1.4em}.dslc-panel img{max-width:100%;margin-bottom:0}.dslc-panel.lc-dark-panel p.lc-description{color:rgba(255,255,255,1)}.lc-divided-panels,.lc-premium-features{display:flex;justify-content:space-between;flex-wrap:wrap}.lc-premium-feature{cursor:pointer}.lc-premium-feature:hover{box-shadow:0 1px 3px 2px rgba(0,0,0,.1),0 1px 23px 2px rgba(0,0,0,.1)}.lc-premium-feature-screenshot{line-height:0;text-align:center;min-height:100px}.lc-premium-feature-screenshot img{max-width:80px}.lc-divided-panels{align-items:center}.lc-panel-half{max-width:50%}.lc-panel-third{max-width:33%}.lc-image-column{padding-left:30px}.lc-image-column img{margin-top:20px;right:-10px;position:relative}.lc-column-list li{display:inline-block;width:49%;margin-bottom:12px;font-size:1.2em;font-weight:300}.lc-column-list li .dashicons{margin-top:6px;margin-right:10px}.lc-premium-features>a,.lc-premium-features>div{max-width:190px;min-width:180px;background:#fff;border-radius:4px;overflow:hidden;margin-bottom:20px;padding-top:20px;padding-bottom:20px;transition:all .3s ease-out}#wpbody-content .lc-premium-feature-description{color:#23282D;padding:10px;margin:0;text-align:center;font-size:1.2em;line-height:1.4}.dslc-panel .about-description{font-size:16px;margin:0}.dslc-panel-content{margin-left:13px;max-width:1500px}.dslc-panel .dslc-panel-column ul{margin:.8em 1em 1em 0}.dslc-panel .dslc-panel-column li{line-height:16px;list-style-type:none;padding:0 0 8px}.dslc-panel .dslc-panel-icon{background:0 0!important}.dslc-panel .dslc-panel-icon:before,.dslc-panel li .dashicons{-moz-osx-font-smoothing:grayscale;color:#82878c;display:inline-block;font:20px/1 dashicons;padding:0 10px 0 0;position:relative;text-decoration:none!important;vertical-align:top;top:-2px}.dslc-panel .dslc-panel-twitter:before{content:"\f301"}.dslc-panel .dslc-panel-github:before{content:"\f308"}.dslc-panel .dslc-panel-facebook:before{content:"\f304"}.dslc-panel .dslc-panel-facebook-page:before{content:"\f305"}.dslc-panel .dslc-panel-show-work:before{content:"\f529"}.dslc-panel .dslc-panel-heart:before{content:"\f487"}.lc-panel-woo{background-color:#A55095;background-repeat:no-repeat;background-size:contain}.lc-panel-ninjaforms,.lc-panel-socialshare{background-color:#FFF;background-repeat:no-repeat;background-size:310px;background-position:90% bottom}.lc-panel-acf{background-color:#26E6B9}.lc-panel-acf li,.lc-panel-acf p{color:rgba(0,0,0,.7)}.dslc-panel.lc-panel-acf li .dashicons{color:rgba(0,0,0,.4)}#lc-settings-tabs .lc-panel-designs{padding-bottom:320px}.lc-text-center,.lc-text-right{text-align:center}.lc-tab-woo .promo-code{margin-top:0}.dslc-tab-extend .feature-section,.dslc-tab-extend .headline-feature{max-width:1100px;margin:0 auto}.dslc-tab-extend .feature-section p{margin-right:0;margin-left:0}.dslc-tab-extend a[name]{font-size:0;line-height:0}#new-lc-coming{background:#4AC496;border-color:#47a380 #35b484 #35b484;color:#fff;margin-top:-17px}#new-lc-coming h2{color:#fff;margin-top:16px;width:50%;margin-left:100px}#new-lc-coming h3{color:#2E3432}#new-lc-coming h3 .dashicons{color:#279168}#new-lc-coming p{color:#1F523F}#new-lc-coming hr{margin-top:30px;border-color:#3fb085 #4ac496 #6dcfaa}#new-lc-coming .button-hero{background:#2fab7c;border-color:#34a077;box-shadow:0 2px 0 #26805d;font-size:18px;height:auto;left:64%;padding:4px 26px;position:absolute;text-shadow:none;top:37px}#new-lc-coming .button-hero .dashicons{display:inline-block;font-size:150%;margin-right:14px;vertical-align:text-top}#new-lc-coming .button-hero:active{box-shadow:0 3px 0 #26805d inset}#new-lc-coming p.about-description{color:#a0e4ca;line-height:1.3;width:50%;margin-left:100px}#new-lc-coming .mink-illustration{position:absolute;top:28px;width:80px}#new-products-coming{border-color:#46b3e4 #237fbd #237fbd;color:#fff;margin-bottom:-17px;border-radius:4px 4px 0 0;border-top:none;padding-bottom:40px;position:relative;background:#2E97E0}#new-products-coming .label,#new-products-coming .price{border-radius:5px;letter-spacing:1px;font-size:11px;line-height:1;display:inline-block;text-transform:uppercase}#new-products-coming:before{position:absolute;background:url(../../../images/livecomposer-pattern.png) right -139px no-repeat;background-size:113%;opacity:.15;content:'';left:0;top:0;right:0;bottom:0}.dslc-panel-content{z-index:1;position:relative}#new-products-coming .label{color:rgba(255,255,255,.62);padding:7px 0;margin-top:20px}#new-products-coming .price{padding:7px 11px}#new-products-coming .price.original{padding-left:0;margin-right:10px}#new-products-coming .price.promo{background:#9fe02c;color:#2f4606}#new-products-coming .dslc-panel-header{width:34%;display:inline-block}#new-products-coming h2{font-size:27px;color:#fff;text-align:left;margin:24px 0 0;line-height:1;vertical-align:top}#new-products-coming h3{color:#fff;margin-top:0;margin-bottom:7px;font-size:21px;line-height:1.2}#new-products-coming h4{color:#fff;margin-top:0;margin-bottom:20px;font-weight:400;font-size:16px;line-height:1.3;opacity:.7}#new-products-coming h3 .dashicons{color:rgba(236,236,236,.57)}#new-products-coming p{color:rgba(0,0,0,.65);margin:0 0 20px;min-height:50px}#new-products-coming hr{margin-top:20px;border-color:rgba(0,0,0,.16) transparent rgba(255,255,255,.2);opacity:.3}#new-products-coming .button-hero{background:#9FE02C;border-color:#a8ea32;box-shadow:0 2px 0 #2c8ac5;font-size:18px;line-height:20px;height:auto;color:#2d400b;padding:16px 26px 16px 56px;vertical-align:top;margin:10px 0 0;position:relative;text-shadow:none;display:inline-block;max-width:30%;white-space:normal}#new-products-coming .button-hero .dashicons{font-size:150%;left:18px;vertical-align:text-top;position:absolute;top:50%;margin-top:-14px}#new-products-coming .button-hero:active{box-shadow:0 3px 0 #26805d inset}#new-products-coming p.about-description{color:rgba(2,2,2,.6);line-height:1.3;width:28%;margin:20px 6% 0 0;display:inline-block;vertical-align:top}#new-products-coming .mink-illustration{position:absolute;bottom:-1px;width:100px}.extension-browser .extensions{clear:both}.extensions-php .wrap h1{float:left;margin-bottom:15px}.network-admin.extensions-php .wrap h1{margin-bottom:0}.extensions-php .wrap h1 .button{margin-left:20px}.extensions-php .wp-filter-search{font-size:16px;font-weight:300;left:20px;line-height:1.5;margin:0;position:relative;top:-2px;width:280px}.extensions-php div.error,.extensions-php div.notice,.extensions-php div.updated{clear:both;margin:0 0 20px}.extension-browser .extension{box-shadow:1px 2px 1px 0 rgba(0,0,0,.1),0 1px 1px -1px rgba(0,0,0,.1);box-sizing:border-box;cursor:pointer;float:left;margin:0 4% 4% 0;position:relative;width:30.6%}.ie8 .extension-browser .extension{margin:0 3% 4% 0;width:30%}.extension-browser .extension:nth-child(3n){margin-right:0}.extension-browser .extension:focus,.extension-browser .extension:hover{cursor:default}.extension-browser .extension[data-extension-status=inactive] [data-show-if=inactive],.extension-browser .extension[data-extension-status=pending] [data-show-if=pending],.extension-browser .extension[data-extension-status=demo] [data-show-if=demo],.extension-browser .extension[data-extension-status=active] [data-show-if=active]{display:inline-block}.extension-browser .extension[data-extension-status=inactive] [data-show-if=pending],.extension-browser .extension[data-extension-status=inactive] [data-show-if=demo],.extension-browser .extension[data-extension-status=inactive] [data-show-if=active],.extension-browser .extension[data-extension-status=pending] [data-show-if=inactive],.extension-browser .extension[data-extension-status=pending] [data-show-if=demo],.extension-browser .extension[data-extension-status=pending] [data-show-if=active],.extension-browser .extension[data-extension-status=demo] .extension-actions [data-show-if=inactive],.extension-browser .extension[data-extension-status=demo] [data-show-if=pending],.extension-browser .extension[data-extension-status=demo] [data-show-if=active],.extension-browser .extension[data-extension-status=active] [data-show-if=inactive],.extension-browser .extension[data-extension-status=active] [data-show-if=pending],.extension-browser .extension[data-extension-status=active] [data-show-if=demo]{display:none}.lc-tab-heading{margin-top:30px;margin-bottom:40px;justify-content:space-between}.lc-tab-heading .lc-license-status-button{margin-top:10px;float:right}.lc-tab-heading .lc-license-status-button .dashicons{margin-top:3px;color:#3ca23c}.lc-admin-message{position:fixed;z-index:999;bottom:0;right:0;background:rgba(35,40,45,.93);color:#eee;max-width:230px;padding:24px 24px 24px 48px;border-radius:7px;margin:12px}.lc-admin-message .dashicons{position:absolute;left:18px;color:#9EA3A8}#lc-settings-tabs .wp-heading-inline{font-size:27px;line-height:1;font-weight:300;margin:0}#wpbody-content .lc-panel-non-active-plugin{font-size:15px;padding:25px;line-height:20px;background:#f7f7f7;margin-bottom:-21px}.lc-license-block .dashicons-admin-network{position:absolute;margin-left:13px;margin-top:13px;opacity:.7}.lc-license-field{display:block;padding:13px 10px 13px 38px;font-size:15px;border-radius:3px;max-width:100%;min-width:340px}.lc-panel-non-active-plugin .button{position:absolute;margin-left:20px;margin-top:-4px}.lc-admin-tab-content .button .dashicons-update{position:relative;bottom:-3px}.lc-admin-tab-content .button.button-hero .dashicons-update{bottom:-12px}.lc-admin-tab-content .dashicons-update{-webkit-animation:lcext-loading-spinner 2s linear infinite;animation:lcext-loading-spinner 2s linear infinite}.lc-panel-license strong{color:#23282D;font-weight:400}div[data-license-status=invalid] div[data-show-if-license=valid],div[data-license-status=valid] div[data-show-if-license=invalid]{display:none}div[data-license-status=invalid] div[data-show-if-license=invalid],div[data-license-status=valid] div[data-show-if-license=valid]{display:flex}@-webkit-keyframes lcext-loading-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes lcext-loading-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.lc-tab-extensions .dslc-panel{margin-bottom:30px}body .dslc-panel .lc-license-block .button.button-hero{font-size:16px;margin-top:14px}.promo-code{margin-top:20px;font-size:12px;display:inline-block;opacity:.75}.promo-code:hover{opacity:1}.promo-code strong{padding:1px 8px;display:inline-block;border:2px dotted rgba(0,0,0,.14);border-radius:6px;margin-right:2px}.promo-code:hover strong{color:#C84B29}.extension-browser .extension .extension-name{background:rgba(255,255,255,.65);box-shadow:0 1px 0 rgba(0,0,0,.1) inset;font-size:14px;font-weight:600;margin:0;overflow:hidden;padding:15px;text-overflow:ellipsis;white-space:nowrap}.extension-browser .extension .extension-name em{font-size:75%;font-style:normal;font-weight:400;margin-right:3px;opacity:.5;text-transform:uppercase;vertical-align:top;letter-spacing:.3px}.extension-browser .extension .extension-name .status{color:#C84B29;position:absolute;right:14px;font-weight:400;background:rgba(250,250,250,.86);border-radius:6px;box-shadow:0 0 10px 5px rgba(250,250,250,.86)}.extension-browser .extension .extension-name .status[data-show-if=active]{color:#0073aa}.extension-browser .extension .extension-name .status .dashicons{opacity:.9}.extension-browser .extension .extension-actions{background:rgba(244,244,244,.7);border-left:1px solid rgba(0,0,0,.05);bottom:0;height:47px;opacity:0;padding:9px 10px 0;position:absolute;right:0;transition:opacity .1s ease-in-out 0s}.extension-browser .extension.focus .extension-actions,.extension-browser .extension:focus .extension-actions,.extension-browser .extension:hover .extension-actions{opacity:1}.extension-browser .extension .extension-actions .button-primary{margin-right:3px}.extension-browser .extension .extension-actions .button-secondary{float:none;margin-left:3px}.extension-browser .extension .extension-screenshot{display:block;overflow:hidden;position:relative;transition:opacity .2s ease-in-out 0s}.extension-browser .extension .extension-screenshot::after{content:"";display:block;padding-top:65.6667%}.extension-browser .extension .extension-screenshot img{height:auto;left:0;position:absolute;top:0;transition:opacity .2s ease-in-out 0s;width:100%}.extension-browser .extension:focus .extension-screenshot,.extension-browser .extension:hover .extension-screenshot{background:#fff}.extension-browser .extension .more-details{background:rgba(241,241,241,.9);color:#33322f;font-size:14px;font-weight:400;left:0;display:flex;opacity:0;padding:20px;align-items:center;position:absolute;right:0;text-align:center;margin:0;text-decoration:none;top:0;bottom:0;transition:opacity .1s ease-in-out 0s;cursor:help}.extension-browser .extension:focus .more-details,.extension-browser.rendered .extension:focus .more-details,.extension-browser.rendered .extension:hover .more-details{opacity:1}.extension-browser .extension:focus{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.extension-browser .extension.active:focus .extension-actions{display:block}.extension-browser .extension .extension-installed,.extension-browser .extension .extension-update{background:rgba(213,78,33,.95);border-bottom:1px solid rgba(0,0,0,.25);color:#fff;display:block;font-size:13px;font-weight:400;height:48px;left:0;line-height:48px;overflow:hidden;padding:0 10px;position:absolute;right:0;top:0}.extension-browser .extension .extension-installed::before,.extension-browser .extension .extension-update::before{content:"";display:inline-block;font:20px/1 dashicons;margin:0 6px 0 0;opacity:.8;position:relative;top:5px}.extension-browser .extension.active .extension-name{background:#23282d;box-shadow:0 1px 1px rgba(0,0,0,.5) inset;color:#fff;font-weight:300;padding-right:110px}.extension-browser .customize-control .extension.active .extension-name{padding-right:15px}.extension-browser .extension.active .extension-name span{font-weight:600}.extension-browser .extension.active .extension-actions{background:rgba(49,49,49,.7);border-left:medium none;opacity:1}.extension-browser .extension.active .extension-actions .button-primary{margin-right:0}.extension-browser .extension .extension-author{background:#23282d;bottom:56px;color:#eee;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute}.extension-browser .extension.display-author .extension-author{display:block}.extension-browser .extension.display-author .extension-author a{color:inherit;text-decoration:none}.extension-overlay .extension-backdrop{background:rgba(238,238,238,.9);bottom:0;left:-20px;position:absolute;right:0;top:0;z-index:10000}.extension-overlay .extension-header .close,.extension-overlay .extension-header .left,.extension-overlay .extension-header .right{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background-color:transparent;cursor:pointer;height:48px;text-align:center;transition:color .1s ease-in-out 0s,background .1s ease-in-out 0s;border-image:none}.extension-overlay .extension-header{border-bottom:1px solid #ddd;height:48px;left:0;position:absolute;right:0;top:0}.extension-overlay .extension-header button{padding:0}.extension-overlay .extension-header .close{border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color #ddd;border-style:none none none solid;border-width:0 0 0 1px;float:right;width:50px}.extension-overlay .extension-header .close::before{color:#72777c;content:"";display:inline-block;font:22px/50px dashicons!important}.extension-overlay .extension-header .left,.extension-overlay .extension-header .right{border-color:-moz-use-text-color #ddd -moz-use-text-color -moz-use-text-color;border-style:none solid none none;border-width:0 1px 0 0;color:#72777c;float:left;width:54px}.extension-overlay .extension-header .close:focus,.extension-overlay .extension-header .close:hover,.extension-overlay .extension-header .left:focus,.extension-overlay .extension-header .left:hover,.extension-overlay .extension-header .right:focus,.extension-overlay .extension-header .right:hover{background:#ddd;border-color:#ccc;color:#000}.extension-overlay .extension-header .close:focus::before,.extension-overlay .extension-header .close:hover::before{color:#000}.extension-overlay .extension-header .close:focus,.extension-overlay .extension-header .left:focus,.extension-overlay .extension-header .right:focus{box-shadow:none;outline:0}.extension-overlay .extension-header .left.disabled,.extension-overlay .extension-header .left.disabled:hover,.extension-overlay .extension-header .right.disabled,.extension-overlay .extension-header .right.disabled:hover{background:inherit;color:#ccc;cursor:inherit}.extension-overlay .extension-header .left::before,.extension-overlay .extension-header .right::before{display:inline;font:20px/50px dashicons!important}.customize-support .extension-overlay .extension-actions a[href="extensions.php?page=custom-header"],.customize-support .extension-overlay .extension-actions a[href="extensions.php?page=custom-background"],.extension-overlay .extension-actions .active-extension,.extension-overlay.active .extension-actions .inactive-extension{display:none}.extension-overlay .extension-header .left::before{content:""}.extension-overlay .extension-header .right::before{content:""}.extension-overlay .extension-wrap{background:#fff;bottom:3%;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);box-sizing:border-box;clear:both;left:190px;position:fixed;right:30px;top:9%;z-index:10000}body.folded .extension-overlay .extension-wrap{left:70px}.extension-overlay .extension-about{bottom:57px;left:0;overflow:auto;padding:2% 4%;position:absolute;right:0;top:49px}.extension-overlay .extension-actions{background:#f3f3f3;border-top:1px solid #eee;bottom:0;box-sizing:border-box;left:0;padding:10px 25px 5px;position:absolute;right:0;text-align:center;z-index:30}.ie8 .extension-overlay .extension-actions{border:1px solid #eee}.extension-overlay .extension-actions a{margin-bottom:5px;margin-right:5px}.broken-extensions a.delete-extension,.extension-overlay .extension-actions .delete-extension{background:0 0;border-color:transparent;box-shadow:none;color:#a00;text-decoration:none}.extension-overlay .extension-actions .delete-extension{bottom:5px;position:absolute;right:10px}.broken-extensions a.delete-extension:focus,.broken-extensions a.delete-extension:hover,.extension-overlay .extension-actions .delete-extension:focus,.extension-overlay .extension-actions .delete-extension:hover{background:#d54e21;border-color:#d54e21;color:#fff}.extension-overlay .extension-actions .inactive-extension,.extension-overlay.active .extension-actions .active-extension{display:block}.extension-overlay .extension-screenshots{float:left;margin:0 30px 0 0;max-width:880px;text-align:center;width:55%}.extension-overlay .screenshot{border:1px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;overflow:hidden;position:relative}.extension-overlay .screenshot::after{content:"";display:block;padding-top:75%}.extension-overlay .screenshot img{height:auto;left:0;position:absolute;top:0;width:100%}.extension-overlay.small-screenshot .extension-screenshots{position:absolute;width:302px}.extension-overlay.small-screenshot .extension-info{margin-left:350px;width:auto}.extension-overlay .screenshot.thumb{background:#ccc;border:1px solid #eee;cursor:pointer;display:inline-block;float:none;height:80px;margin:10px 5px 0;width:140px}.extension-overlay .screenshot.thumb::after{content:"";display:block;padding-top:100%}.extension-overlay .screenshot.thumb img{cursor:pointer;height:auto;left:0;position:absolute;top:0;width:100%}.extension-overlay .screenshot.selected{background:0 0;border:2px solid #00a0d2}.extension-overlay .screenshot.selected img{opacity:.8}.extension-browser .extension .extension-screenshot.blank,.extension-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.extension-overlay .extension-info{float:left;width:40%}.extension-overlay .current-label{-moz-user-select:none;background:#32373c;border-radius:2px;color:#fff;display:inline-block;font-size:11px;margin:0 0 -10px;padding:2px 8px}.extension-overlay .extension-name{color:#23282d;font-size:32px;font-weight:100;line-height:1.3;margin:10px 0 0}.extension-overlay .extension-version{color:#72777c;display:inline-block;float:none;font-size:13px;font-weight:400;margin-left:10px}.extension-overlay .extension-author{color:#72777c;font-size:16px;font-weight:400;line-height:inherit;margin:15px 0 25px}.extension-overlay .extension-author a{text-decoration:none}.extension-overlay .extension-description{color:#555;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.extension-overlay .extension-tags{border-top:3px solid #eee;color:#82878c;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.extension-overlay .extension-tags span{color:#444;font-weight:700;margin-right:5px}.extension-overlay .parent-extension{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:#f7fcfe;border-color:#eee #eee #eee #00a0d2;border-image:none;border-style:solid;border-width:1px 1px 1px 4px;font-size:14px;font-weight:400;margin-top:30px;padding:10px 10px 10px 20px}.extension-overlay .parent-extension strong{font-weight:700}.single-extension .extension,.single-extension .extension-overlay .extension-backdrop,.single-extension .extension-overlay .extension-header{display:none}.single-extension .extension-overlay .extension-wrap{bottom:auto;clear:both;left:auto;min-height:330px;position:relative;right:auto;top:auto;z-index:10}.single-extension .extension-overlay .extension-about{padding:30px 30px 70px;position:static}.single-extension .extension-overlay .extension-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .extension-browser .extension{margin:0 3% 3% 0;width:17.6%}#wpwrap .extension-browser .extension:nth-child(3n),#wpwrap .extension-browser .extension:nth-child(4n){margin-right:3%}#wpwrap .extension-browser .extension:nth-child(5n){margin-right:0}}@media only screen and (min-width:1680px){.extension-overlay .extension-wrap{margin:0 auto;width:1450px}}@media only screen and (max-width:1120px){.extension-browser .extension{margin-right:0;width:47.5%}.extension-browser .extension:nth-child(2n){margin-right:0}.extension-browser .extension:nth-child(2n+1){margin-right:5%}}@media only screen and (max-width:900px){.extension-overlay .extension-wrap{left:65px}}@media only screen and (max-width:780px){.extension-browser .extension.active .extension-name span,.extension:focus .more-details,.extension:focus:not(.active) .extension-actions,.extension:hover .more-details,.extension:hover:not(.active) .extension-actions{display:none}.extension-overlay .extension-wrap,body.folded .extension-overlay .extension-wrap{border:none;bottom:0;left:0;padding:70px 20px 20px;position:fixed;right:0;top:0;z-index:100000}.extension-overlay .extension-screenshots{width:40%}.extension-overlay .extension-info{width:50%}.single-extension .extension-wrap{padding:10px}.extension-browser .extension .extension-actions{padding:5px 10px 4px}.extension-overlay.small-screenshot .extension-screenshots{float:none;max-width:302px;position:static}.extension-overlay.small-screenshot .extension-info{margin-left:0;width:auto}.extension-browser.rendered .extension:focus .extension-screenshot img,.extension-browser.rendered .extension:hover .extension-screenshot img{opacity:1}}@media only screen and (max-width:480px){.extension-browser .extension{margin-right:0;width:100%}.extension-browser .extension:nth-child(2n),.extension-browser .extension:nth-child(3n){margin-right:0}}@media only screen and (max-width:650px){.extension-overlay .extension-description,.extension-overlay .extension-update{margin-left:0}.extension-overlay .extension-actions .delete-extension{bottom:auto;position:relative;right:auto}.extension-overlay .extension-actions .inactive-extension{display:inline}.extension-overlay .extension-screenshots{float:none;width:100%}.extension-overlay .extension-info{width:100%}.extension-overlay .extension-author{margin:5px 0 15px}.extension-overlay .current-label{font-size:13px;margin-top:10px}.extensions-php .wp-filter-search{clear:both;float:none;left:0;margin:10px 0;max-width:280px;right:0;top:0;width:100%}.single-extension .extension-wrap{margin:0 -12px 0 -10px;padding:10px}.single-extension .extension-overlay .extension-about{overflow:visible;padding:10px}.single-extension .current-label{display:none}.single-extension .extension-overlay .extension-actions{position:static}}.broken-extensions{clear:both}.broken-extensions table{border-spacing:3px;padding:3px;text-align:left;width:50%}.extension-browser .extension .extension-installed{background:#0073aa}.extension-browser .extension .extension-installed::before{content:""}.extension-browser .extension.is-installed .extension-actions .button-primary{display:none!important}.extension-install-php .wp-filter{padding:0 20px}.extension-install-php a.browse-extensions,.extension-install-php a.upload{cursor:pointer}.extension-install-php a.browse-extensions,.extension-install-php.show-upload-extension a.upload{display:none}.extension-install-php.show-upload-extension a.browse-extensions{display:inline}.upload-extension,.upload-plugin{box-sizing:border-box;display:none;margin:0;overflow:hidden;padding:0;position:relative;top:10px;width:100%}.wp-full-overlay,.wp-full-overlay-sidebar{position:fixed;height:100%;bottom:0;left:0}.upload-plugin,body.show-upload-extension .upload-extension{display:block}.upload-extension .wp-upload-form,.upload-plugin .wp-upload-form{background:#fafafa;border:1px solid #e5e5e5;margin:30px auto;max-width:380px;padding:30px}.upload-extension .install-help,.upload-plugin .install-help{color:#555d66;font-size:18px;font-style:normal;margin:0;padding:40px 0 0;text-align:center}body.show-upload-extension .upload-extension+.wp-filter,body.show-upload-extension .upload-extension+.wp-filter+.extension-browser{display:none}p.no-extensions{clear:both;color:#666;display:none;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center}body.no-results p.no-extensions{display:block}body.show-upload-extension p.no-extensions{display:none!important}@media only screen and (max-width:1120px){.upload-extension .wp-upload-form{margin:20px 0;max-width:100%}.upload-extension .install-help{font-size:15px;padding:20px 0 0;text-align:left}}.extension-details .extension-rating{line-height:23px}.extension-details .star-rating{display:inline}.extension-details .no-rating,.extension-details .num-ratings{color:#72777c;font-size:11px}.extension-details .no-rating{display:block;line-height:20px}.appearance_page_custom-header #headimg{border:1px solid #ddd;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:left;margin:0 20px 20px 0}.appearance_page_custom-header .random-header{clear:both;margin:0 20px 20px 0;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-right:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{border:1px solid #ddd;min-height:100px}div#custom-background-image img{max-height:300px;max-width:400px}body.full-overlay-active{overflow:hidden}.wp-full-overlay{min-width:0;overflow:visible;right:0;top:0;z-index:500000}.wp-full-overlay-sidebar{background:#eee;border-right:medium none;box-sizing:border-box;margin:0;padding:0;top:0;width:300px;z-index:10}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-left:0!important}.wp-full-overlay.expanded{margin-left:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible;margin-left:-300px}.wp-full-overlay-sidebar::after{bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:3px;z-index:1000}.wp-full-overlay-main{bottom:0;height:100%;left:0;position:absolute;right:0;top:0}.wp-full-overlay-sidebar .wp-full-overlay-header{border-top:medium none;box-shadow:none;height:45px;left:0;line-height:45px;margin:0;padding:0 15px;position:absolute;right:0;z-index:10}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{border-bottom:medium none;border-top:medium none;bottom:0;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:45px;left:0;overflow:auto;position:absolute;right:0;top:45px}.extension-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.extension-install-overlay .close-full-overlay,.extension-install-overlay .next-extension,.extension-install-overlay .previous-extension{background:#eee;border-right:1px solid #ddd;color:#444;cursor:pointer;display:block;float:left;height:45px;padding-right:2px;position:relative;text-decoration:none;transition:color .1s ease-in-out 0s,background .1s ease-in-out 0s;width:45px}.extension-install-overlay .close-full-overlay:focus,.extension-install-overlay .close-full-overlay:hover,.extension-install-overlay .next-extension:focus,.extension-install-overlay .next-extension:hover,.extension-install-overlay .previous-extension:focus,.extension-install-overlay .previous-extension:hover{background:#ddd;border-color:#ccc;box-shadow:none;color:#000;outline:0}.extension-install-overlay .close-full-overlay::before{content:"";font:22px/1 dashicons;left:13px;position:relative;top:7px}.extension-install-overlay .previous-extension::before{content:"";font:20px/1 dashicons;left:14px;position:relative;top:6px}.extension-install-overlay .next-extension::before{content:"";font:20px/1 dashicons;left:13px;position:relative;top:6px}.extension-install-overlay .next-extension.disabled,.extension-install-overlay .next-extension.disabled:focus,.extension-install-overlay .next-extension.disabled:hover,.extension-install-overlay .previous-extension.disabled,.extension-install-overlay .previous-extension.disabled:focus,.extension-install-overlay .previous-extension.disabled:hover{background:#eee;color:#b4b9be;cursor:default;pointer-events:none}.wp-core-ui .wp-full-overlay .collapse-sidebar{background-color:transparent!important;border:none!important;border-radius:0!important;bottom:8px;box-shadow:none!important;color:#656a6f;left:10px;line-height:1;outline:0;padding:0;position:fixed}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#0073aa}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;line-height:20px;vertical-align:middle}.wp-full-overlay .collapse-sidebar-arrow{border-radius:50%;height:20px;margin:0 2px;overflow:hidden;width:20px}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-full-overlay .collapse-sidebar-label{margin-left:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow::before{-moz-osx-font-smoothing:grayscale;background:#eee;content:"";display:block;font:20px/1 dashicons;padding:0}.rtl .wp-full-overlay .collapse-sidebar-arrow::before,.wp-full-overlay.collapsed .collapse-sidebar-arrow::before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow::before{transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-duration:.2s;transition-property:left,right,top,bottom,width,margin}.wp-full-overlay{background:#191e23}.wp-full-overlay-main{background-color:#f1f1f1}.expanded .wp-full-overlay-footer{border-top:1px solid #ddd;bottom:0;height:45px;left:0;position:fixed;width:300px}.wp-full-overlay-footer .devices{float:right}.wp-full-overlay-footer .devices button{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:0 0;border-color:transparent -moz-use-text-color;border-image:none;border-style:solid none;border-width:1px medium 4px;box-shadow:none;cursor:pointer;height:45px;margin:0 0 0 -4px;padding:0 3px;transition:background .1s ease-in-out 0s}.wp-full-overlay-footer .devices button::before{color:#656a6f;display:inline-block;font:20px/30px dashicons;margin:3px 0;padding:4px 8px;vertical-align:top}.collapsed .wp-full-overlay-footer .devices button::before,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}.wp-full-overlay-footer .devices button.active{border-bottom-color:#191e23}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0;border-bottom-color:#0073aa}.wp-full-overlay-footer .devices button.active::before,.wp-full-overlay-footer .devices button:focus::before,.wp-full-overlay-footer .devices button:hover::before{color:#191e23}.wp-full-overlay-footer .devices .preview-desktop::before{content:""}.wp-full-overlay-footer .devices .preview-tablet::before{content:""}.wp-full-overlay-footer .devices .preview-mobile::before{content:""}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.preview-mobile .wp-full-overlay-main{height:480px;left:50%;margin:auto 0 auto -160px;max-height:100%;max-width:100%;width:320px}.preview-tablet .wp-full-overlay-main{height:1080px;left:50%;margin:auto 0 auto -360px;max-height:100%;max-width:100%;width:720px}#customize-container{background:#fff;bottom:0;display:none;height:100%;left:0;overflow:visible;position:fixed;right:0;top:0;z-index:500000}.customize-active #customize-container{display:block}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.extension-install-overlay iframe{height:100%;transition:opacity .3s ease 0s;width:100%;z-index:20}#customize-controls{margin-top:0}.extension-install-overlay{display:none}.extension-install-overlay.single-extension{display:block}.install-extension-info{display:none;padding:10px 20px 60px}.single-extension .install-extension-info{padding-top:15px}.extension-install-overlay .install-extension-info{display:block}.install-extension-info .extension-install{float:right;margin-top:18px}.install-extension-info .extension-name{font-size:16px;line-height:24px;margin-bottom:0;margin-top:0}.install-extension-info .extension-screenshot{border:1px solid #ccc;margin:15px 0;width:258px}.install-extension-info .extension-details{overflow:hidden}.extension-details .extension-version{margin:15px 0}.extension-details .extension-description{color:#72777c;float:left;line-height:20px;max-width:100%}.extension-install-overlay .wp-full-overlay-header .extension-install{float:right;line-height:26px;margin:8px 10px 0 0}.extension-install-overlay .wp-full-overlay-sidebar{background:#eee;border-right:1px solid #ddd}.extension-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.extension-install-overlay .wp-full-overlay-main{background-color:#f1f1f1;position:absolute;z-index:0}.customize-loading #customize-container{background-color:#f1f1f1}#customize-preview.wp-full-overlay-main::before,.customize-loading #customize-container::before,.extension-install-overlay .wp-full-overlay-main::before{background:url(../images/spinner.gif) center center/20px 20px no-repeat;content:"";display:block;height:20px;left:50%;margin:-10px 0 0 -10px;position:absolute;top:50%;transform:translateZ(0);width:20px;z-index:-1}#customize-preview.wp-full-overlay-main.iframe-ready::before,.extension-install-overlay.iframe-ready .wp-full-overlay-main::before{background-image:none}@media print,not all,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-preview.wp-full-overlay-main::before,.customize-loading #customize-container::before,.extension-install-overlay .wp-full-overlay-main::before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-extension .action-links .delete-extension{clear:both;float:none;margin:0;padding:0}.available-extension .action-links .delete-extension a{padding:0}.broken-extensions table{width:100%}.extension-install-overlay .wp-full-overlay-header .extension-install{line-height:normal;margin-top:6px}}.docs-search-form button .dashicons{opacity:.75;vertical-align:text-bottom}.docs-search-form .search-query{border-radius:3px;height:46px;padding:10px 17px}#dslc-docssearch{padding:30px 0 20px}#dslc-docssearch .search-query{min-width:64%}#dslc-headersearch{position:absolute;right:40px;top:30px}#dslc-headersearch .hssearch{padding:0 16px!important}.dslc-settigns-tabs .nav-tab .tag{background:#d54e21;border-radius:4px;color:#fff;display:inline-block;font-size:10px;letter-spacing:.5px;line-height:1;margin-left:5px;padding:4px 6px;text-transform:uppercase;opacity:.8}.dslc-scroll-back{margin-left:-90px;margin-top:44px;position:absolute;text-decoration:none;text-transform:uppercase}.dslc-scroll-back .dashicons{font-size:17px}#dslc-settings-column{clear:both;display:inline;float:left;margin-left:-300px;padding-top:0;width:281px}.dslc-settings-form .dslc-panel{padding:40px;margin-top:10px;max-width:640px}.dslc-settings-form .dslc-panel h2{margin-bottom:30px}.dslc-panel.dslc-hide-panel{display:none}.dslc-submenu-section{border-bottom:1px solid #ddd;margin:0}.dslc-submenu-section:hover{background:#f5f5f5;color:#23282d}.dslc-submenu-section a{-moz-user-select:none;border-left:1px solid #ddd;border-right:1px solid #ddd;margin:0;padding:12px 15px 15px;position:relative;font-size:14px;line-height:21px;font-weight:700;color:#23282D!important;text-decoration:none;display:block}.dslc-submenu-section .dashicons{margin-bottom:-1px;margin-right:6px;margin-top:1px;opacity:.4}#dslc-setings-liquid{float:left;margin-top:3px;min-width:100%}#dslc-settings-frame{margin-left:300px;margin-top:23px}.dslc-icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}a .dslc-icon-spin{display:inline-block;text-decoration:none}@-moz-keyframes spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}
|
includes/plugin-options-framework/inc/init.php
CHANGED
@@ -65,7 +65,7 @@ function dslc_plugin_options_display( $tab = '' ) {
|
|
65 |
|
66 |
?>
|
67 |
<style>
|
68 |
-
#
|
69 |
</style>
|
70 |
<div class="wrap">
|
71 |
<h2 id="dslc-main-title">Live Composer <span class="dslc-ver"><?php echo esc_html( DS_LIVE_COMPOSER_VER ); ?></span></h2>
|
@@ -81,44 +81,46 @@ function dslc_plugin_options_display( $tab = '' ) {
|
|
81 |
settings_errors();
|
82 |
|
83 |
$anchor = sanitize_text_field( @$_GET['anchor'] );
|
84 |
-
$anchor = '' !== $anchor ? $anchor : '
|
85 |
-
|
86 |
-
// Tab Seo.
|
87 |
-
include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-seo.php';
|
88 |
-
$tab_seo = new LC_Settings_Tab_Seo();
|
89 |
|
90 |
?>
|
91 |
<a name="dslc-top"></a>
|
92 |
<h2 class="nav-tab-wrapper dslc-settigns-tabs" id="dslc-tabs">
|
93 |
-
<a href="#" data-nav-to="
|
94 |
<a href="#" data-nav-to="tab-settings" class="nav-tab <?php echo 'dslc_settings' === $anchor ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Settings', 'live-composer-page-builder' ) ?></a>
|
95 |
-
<a href="#" data-nav-to="tab-extensions" class="nav-tab <?php echo 'dslc_extensions' === $anchor ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'Extensions', 'live-composer-page-builder' ) . ' <span class="tag">' . esc_html__( '
|
96 |
-
<a href="#" data-nav-to="tab-
|
97 |
-
<a href="#" data-nav-to="tab-
|
|
|
98 |
<a href="#" data-nav-to="tab-docs" class="nav-tab <?php echo 'dslc_docs' === $anchor ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Docs & Support', 'live-composer-page-builder' ) ?></a>
|
99 |
-
<?php if ( ! $tab_seo->get_hidden() ) { ?>
|
100 |
-
<a href="#" data-nav-to="tab-seo" class="nav-tab <?php echo 'dslc_seo' === $anchor ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Site SEO', 'live-composer-page-builder' ) ?></a>
|
101 |
-
<?php } ?>
|
102 |
</h2>
|
103 |
|
104 |
|
105 |
-
<div id="
|
|
|
|
|
|
|
|
|
106 |
<!-- Getting Started Tab -->
|
107 |
-
|
108 |
-
|
|
|
109 |
</div>
|
|
|
110 |
<!-- Settings tab -->
|
111 |
<div class="tab" <?php if ( $anchor == 'dslc_settings' ) echo 'style="display:block"'; ; ?> id="tab-for-tab-settings">
|
112 |
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-settings.php'; ?>
|
113 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
<!-- Themes tab -->
|
115 |
<div class="tab" id="tab-for-tab-themes">
|
116 |
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-themes.php'; ?>
|
117 |
</div>
|
118 |
-
<!-- Extensions tab -->
|
119 |
-
<div class="tab" id="tab-for-tab-extensions">
|
120 |
-
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-extensions.php'; ?>
|
121 |
-
</div>
|
122 |
<!-- Designs tab -->
|
123 |
<div class="tab" id="tab-for-tab-designs">
|
124 |
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-designs.php'; ?>
|
@@ -127,12 +129,6 @@ function dslc_plugin_options_display( $tab = '' ) {
|
|
127 |
<div class="tab" id="tab-for-tab-docs">
|
128 |
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-docs.php'; ?>
|
129 |
</div>
|
130 |
-
<!-- Site Seo tab -->
|
131 |
-
<?php if ( ! $tab_seo->get_hidden() ) { ?>
|
132 |
-
<div class="tab" id="tab-for-tab-seo">
|
133 |
-
<?php echo $tab_seo->print_tab_seo(); ?>
|
134 |
-
</div>
|
135 |
-
<?php } ?>
|
136 |
</div>
|
137 |
</div><!-- /.wrap -->
|
138 |
<script>
|
@@ -140,12 +136,12 @@ function dslc_plugin_options_display( $tab = '' ) {
|
|
140 |
jQuery(".nav-tab-wrapper > a").on('click', function() {
|
141 |
if ($(this).data('nav-to') != null ) {
|
142 |
|
143 |
-
$("#
|
144 |
$(".nav-tab-active").removeClass('nav-tab-active');
|
145 |
$("#tab-for-" + $(this).data('nav-to')).show();
|
146 |
$(this).addClass('nav-tab-active')
|
147 |
|
148 |
-
var refer = $("#
|
149 |
refer.val( '<?php echo admin_url( 'admin.php?page=dslc_plugin_options&anchor=dslc_settings&settings-updated=true' ); ?>' );
|
150 |
|
151 |
return false;
|
65 |
|
66 |
?>
|
67 |
<style>
|
68 |
+
#lc-settings-tabs .tab{display: none}
|
69 |
</style>
|
70 |
<div class="wrap">
|
71 |
<h2 id="dslc-main-title">Live Composer <span class="dslc-ver"><?php echo esc_html( DS_LIVE_COMPOSER_VER ); ?></span></h2>
|
81 |
settings_errors();
|
82 |
|
83 |
$anchor = sanitize_text_field( @$_GET['anchor'] );
|
84 |
+
$anchor = '' !== $anchor ? $anchor : 'dslc_extensions';
|
|
|
|
|
|
|
|
|
85 |
|
86 |
?>
|
87 |
<a name="dslc-top"></a>
|
88 |
<h2 class="nav-tab-wrapper dslc-settigns-tabs" id="dslc-tabs">
|
89 |
+
<!-- <a href="#" data-nav-to="tab-extend" class="nav-tab <?php echo 'tab-extend' === $anchor ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Extend', 'live-composer-page-builder' ) ?></a> -->
|
90 |
<a href="#" data-nav-to="tab-settings" class="nav-tab <?php echo 'dslc_settings' === $anchor ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Settings', 'live-composer-page-builder' ) ?></a>
|
91 |
+
<a href="#" data-nav-to="tab-extensions" class="nav-tab <?php echo 'dslc_extensions' === $anchor ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'Extensions', 'live-composer-page-builder' ) . ' <span class="tag">' . esc_html__( 'New', 'live-composer-page-builder' ) . '</span>'; ?></a>
|
92 |
+
<a href="#" data-nav-to="tab-woo" class="nav-tab <?php echo 'dslc_woo' === $anchor ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'WooCommerce', 'live-composer-page-builder' ) . ' <span class="tag">' . esc_html__( 'New', 'live-composer-page-builder' ) . '</span>'; ?></a>
|
93 |
+
<!-- <a href="#" data-nav-to="tab-themes" class="nav-tab <?php echo 'dslc_themes' === $anchor ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'Themes', 'live-composer-page-builder' ) . ' <span class="tag">' . esc_html__( 'Free', 'live-composer-page-builder' ) . '</span>'; ?></a> -->
|
94 |
+
<!-- <a href="#" data-nav-to="tab-designs" class="nav-tab <?php echo 'dslc_designs' === $anchor ? 'nav-tab-active' : ''; ?>"><?php echo esc_html__( 'Designs', 'live-composer-page-builder' ) . ' <span class="tag">' . esc_html__( 'New', 'live-composer-page-builder' ) . '</span>'; ?></a> -->
|
95 |
<a href="#" data-nav-to="tab-docs" class="nav-tab <?php echo 'dslc_docs' === $anchor ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Docs & Support', 'live-composer-page-builder' ) ?></a>
|
|
|
|
|
|
|
96 |
</h2>
|
97 |
|
98 |
|
99 |
+
<div id="lc-settings-tabs">
|
100 |
+
<!-- Extensions tab -->
|
101 |
+
<div class="tab" id="tab-for-tab-extensions" <?php if ( $anchor != 'dslc_settings' ) echo 'style="display:block"'; ; ?>>
|
102 |
+
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-extensions.php'; ?>
|
103 |
+
</div>
|
104 |
<!-- Getting Started Tab -->
|
105 |
+
<?php /*
|
106 |
+
<div class="tab" <?php if ( $anchor != 'dslc_settings' ) echo 'style="display:block"'; ; ?> id="tab-for-tab-extend">
|
107 |
+
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-extend.php'; ?>
|
108 |
</div>
|
109 |
+
*/ ?>
|
110 |
<!-- Settings tab -->
|
111 |
<div class="tab" <?php if ( $anchor == 'dslc_settings' ) echo 'style="display:block"'; ; ?> id="tab-for-tab-settings">
|
112 |
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-settings.php'; ?>
|
113 |
</div>
|
114 |
+
|
115 |
+
<!-- Woo tab -->
|
116 |
+
<div class="tab" id="tab-for-tab-woo">
|
117 |
+
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-woo.php'; ?>
|
118 |
+
</div>
|
119 |
+
|
120 |
<!-- Themes tab -->
|
121 |
<div class="tab" id="tab-for-tab-themes">
|
122 |
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-themes.php'; ?>
|
123 |
</div>
|
|
|
|
|
|
|
|
|
124 |
<!-- Designs tab -->
|
125 |
<div class="tab" id="tab-for-tab-designs">
|
126 |
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-designs.php'; ?>
|
129 |
<div class="tab" id="tab-for-tab-docs">
|
130 |
<?php include DS_LIVE_COMPOSER_ABS . '/includes/plugin-options-framework/tab-docs.php'; ?>
|
131 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
</div>
|
133 |
</div><!-- /.wrap -->
|
134 |
<script>
|
136 |
jQuery(".nav-tab-wrapper > a").on('click', function() {
|
137 |
if ($(this).data('nav-to') != null ) {
|
138 |
|
139 |
+
$("#lc-settings-tabs .tab").hide();
|
140 |
$(".nav-tab-active").removeClass('nav-tab-active');
|
141 |
$("#tab-for-" + $(this).data('nav-to')).show();
|
142 |
$(this).addClass('nav-tab-active')
|
143 |
|
144 |
+
var refer = $("#lc-settings-tabsjstabs").find("input[name='_wp_http_referer']");
|
145 |
refer.val( '<?php echo admin_url( 'admin.php?page=dslc_plugin_options&anchor=dslc_settings&settings-updated=true' ); ?>' );
|
146 |
|
147 |
return false;
|
includes/plugin-options-framework/js/main.js
CHANGED
@@ -291,33 +291,54 @@ jQuery(document).ready(function(){
|
|
291 |
|
292 |
}
|
293 |
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
});
|
|
|
319 |
});
|
320 |
|
|
|
|
|
321 |
function dslc_clear_cache(e) {
|
322 |
e.preventDefault();
|
323 |
|
291 |
|
292 |
}
|
293 |
|
294 |
+
/**
|
295 |
+
* Enable/Disable premium extension via AJAX call.
|
296 |
+
*/
|
297 |
+
jQuery(document).on('click', '.lc-toggle-extension', function (e) {
|
298 |
+
e.preventDefault();
|
299 |
+
$extensionId = e.target.getAttribute('data-id');
|
300 |
+
|
301 |
+
var parentEl = jQuery(e.target).closest('.extension');
|
302 |
+
|
303 |
+
if (parentEl[0] !== undefined) {
|
304 |
+
parentEl = parentEl[0];
|
305 |
+
} else {
|
306 |
+
console.error('Can\'t find extension parent for the clicked ellement.')
|
307 |
+
return false;
|
308 |
+
}
|
309 |
+
|
310 |
+
var extensionStatus = parentEl.getAttribute('data-extension-status');
|
311 |
+
|
312 |
+
parentEl.setAttribute('data-extension-status', 'pending');
|
313 |
+
|
314 |
+
jQuery.ajax({
|
315 |
+
type: "POST",
|
316 |
+
data: {
|
317 |
+
security: dslcajax,
|
318 |
+
action: 'dslc-ajax-toggle-extension',
|
319 |
+
extension: $extensionId
|
320 |
+
},
|
321 |
+
url: ajaxurl,
|
322 |
+
}).done(function (response) {
|
323 |
+
console.log("response:"); console.log(response);
|
324 |
+
if (response) {
|
325 |
+
// Update DIV attribute with a new status.
|
326 |
+
parentEl.setAttribute('data-extension-status', response);
|
327 |
+
} else {
|
328 |
+
// Get back initial status on error.
|
329 |
+
parentEl.setAttribute('data-extension-status', extensionStatus);
|
330 |
+
}
|
331 |
+
}).fail(function (response) {
|
332 |
+
// Get back initial status on error.
|
333 |
+
parentEl.setAttribute('data-extension-status', extensionStatus);
|
334 |
+
})
|
335 |
+
|
336 |
});
|
337 |
+
|
338 |
});
|
339 |
|
340 |
+
|
341 |
+
|
342 |
function dslc_clear_cache(e) {
|
343 |
e.preventDefault();
|
344 |
|
includes/plugin-options-framework/js/main.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(){jQuery("#lc_caching_engine").after(' <a href="#" class="dslc-clear-cache" onclick="dslc_clear_cache(event)"><span class="dashicons dashicons-trash"></span> clear cache</a>');function a(a){var b,c=jQuery(".dslca-plugin-opts-list-code",a),d="",e=false;var f=[];jQuery(".dslca-plugin-opts-list-item",a).each(function(){if(jQuery.inArray(jQuery(this).find(".dslca-plugin-opts-list-title").text(),f)!==-1){e=true}else{f.push(jQuery(this).find(".dslca-plugin-opts-list-title").text())}});if(e){jQuery(".dslca-plugin-opts-list-error").show()}else{jQuery(".dslca-plugin-opts-list-error").hide()}jQuery(".dslca-plugin-opts-list-item",a).each(function(){b=jQuery(this).find(".dslca-plugin-opts-list-title").text();b=b.replace(/([^a-z0-9 ]+)/gi,"");jQuery(this).find(".dslca-plugin-opts-list-title").text(b);d+=b.trim()+","});c.val(d)}jQuery(".dslca-plugin-opts-list-add-hook").click(function(b){b.preventDefault();var c=jQuery(this).closest(".dslca-plugin-opts-list-wrap");var d=c.find(".dslca-plugin-opts-list");jQuery('<div class="dslca-plugin-opts-list-item"><span class="dslca-plugin-opts-list-title" contenteditable="true">Click to edit</span><a href="#" class="dslca-plugin-opts-list-delete-hook">delete</a></div>').appendTo(d);a(c)});jQuery(document).on("click",".dslca-plugin-opts-list-delete-hook",function(b){b.preventDefault();var c=jQuery(this).closest(".dslca-plugin-opts-list-wrap");var d=jQuery(this).closest(".dslca-plugin-opts-list-item");d.remove();a(c)});jQuery(document).on("blur",".dslca-plugin-opts-list-title",function(){var b=jQuery(this).closest(".dslca-plugin-opts-list-wrap");a(b)});jQuery(document).on("keypress",".dslca-plugin-opts-list-title",function(a){if(a.keyCode==13){jQuery(this).trigger("blur");a.preventDefault()}});jQuery(".activecampaign_form").submit(function(){var a=jQuery("#dslc_activecampaign_email").val();var b=jQuery("#dslc_activecampaign_name").val();jQuery.ajax({type:"POST",data:{email:a,name:b,security:dslcajax,action:"dslc_activecampaign"},url:ajaxurl})});if(jQuery(".activecampaign_form").length){window._show_thank_you=function(a,b){var c=document.getElementById("_form_"+a+"_"),d=c.getElementsByClassName("_form-thank-you")[0];c.getElementsByClassName("_form-content")[0].style.visibility="hidden";d.innerHTML=b;d.classList.add("add_thank_you")};window._show_error=function(a,b,c){var d=document.getElementById("_form_"+a+"_"),e=document.createElement("div"),f=d.getElementsByTagName("button")[0];e.innerHTML=b;e.className="_error-inner _form_error _no_arrow";var g=document.createElement("div");g.className="_form-inner";g.appendChild(e);f.parentNode.insertBefore(g,f);if(c){var h=document.createElement("div");h.className="_error-html";h.innerHTML=c;e.appendChild(h)}};window._load_script=function(a,b){var c=document.getElementsByTagName("head")[0],d=document.createElement("script"),e=false;d.type="text/javascript";d.src=a;if(b){d.onload=d.onreadystatechange=function(){if(!e&&(!this.readyState||this.readyState=="complete")){e=true;b()}}}c.appendChild(d)};(function(){var a=function(a){var b=document.cookie.match(new RegExp("(^|; )"+a+"=([^;]+)"));return b?b[2]:null};var b=function(a,b){var c=new Date;var d=c.getTime();var e=d+1e3*60*60*24*365;c.setTime(e);document.cookie=a+"="+b+"; expires="+c+";path=/"};var c=function(a,b,c){if(a.addEventListener){a.addEventListener(b,c)}else{var d=a["on"+b];a["on"+b]=function(){d.apply(this,arguments);c.apply(this,arguments)}}};var d=false;var e=document.getElementById("_form_11_");var f=e.querySelectorAll("input, select"),g=[],h=false;var i=function(){for(var a=0;a<g.length;a++){g[a].tip.parentNode.removeChild(g[a].tip)}g=[]};var j=function(a){for(var b=0;b<g.length;b++){if(g[b].elem===a){g[b].tip.parentNode.removeChild(g[b].tip);g.splice(b,1);return}}};var k=function(a,b){var c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f={};if(a.type!="radio"&&a.type!="checkbox"){c.className="_error";d.className="_error-arrow";e.className="_error-inner";e.innerHTML=b;c.appendChild(d);c.appendChild(e);a.parentNode.appendChild(c)}else{c.className="_error-inner _no_arrow";c.innerHTML=b;a.parentNode.insertBefore(c,a);f.no_arrow=true}f.tip=c;f.elem=a;g.push(f);return f};var l=function(a){var b=a.elem.getBoundingClientRect();var c=document.documentElement,d=b.top-((window.pageYOffset||c.scrollTop)-(c.clientTop||0));if(d<40){a.tip.className=a.tip.className.replace(/ ?(_above|_below) ?/g,"")+" _below"}else{a.tip.className=a.tip.className.replace(/ ?(_above|_below) ?/g,"")+" _above"}};var m=function(){if(d)return;for(var a=0;a<g.length;a++){if(!g[a].no_arrow)l(g[a])}};var n=function(a,b){var c=null,d=a.value,e=true;b?j(a):false;if(a.type!="checkbox")a.className=a.className.replace(/ ?_has_error ?/g,"");if(a.getAttribute("required")!==null){if(d===undefined||d===null||d===""){a.className=a.className+" _has_error";e=false;c=k(a,"This field is required.")}}if(e&&a.name=="email"){if(!d.match(/^[\+_a-z0-9-'&=]+(\.[\+_a-z0-9-']+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i)){a.className=a.className+" _has_error";e=false;c=k(a,"Enter a valid email address.")}}c?l(c):false;return e};var o=function(a){return a.name=="email"||a.getAttribute("required")!==null||(a.className?/date_field/.test(a.className):false)};var p=function(a){var b=e.getElementsByClassName("_form_error")[0],d=true;b?b.parentNode.removeChild(b):false;if(!h){h=true;for(var g=0,j=f.length;g<j;g++){var k=f[g];if(o(k)){if(k.type=="text"){c(k,"input",function(){n(this,true)})}}}}i();for(var g=0,j=f.length;g<j;g++){var l=f[g];if(o(l)){n(l)?true:d=false}}if(!d&&a){a.preventDefault()}m();return d};c(window,"resize",m);c(window,"scroll",m);var q=function(a){a.preventDefault();if(p()){var b=serialize(document.getElementById("_form_11_"));_load_script("https://lumbermandesigns.activehosted.com/proc.php?"+b+"&jsonp=true")}return false};c(e,"submit",q);_load_script("//d3rxaij56vjege.cloudfront.net/form-serialize/0.3/serialize.min.js")})()}jQuery(document).on("click",".
|
1 |
+
jQuery(document).ready(function(){jQuery("#lc_caching_engine").after(' <a href="#" class="dslc-clear-cache" onclick="dslc_clear_cache(event)"><span class="dashicons dashicons-trash"></span> clear cache</a>');function a(a){var b,c=jQuery(".dslca-plugin-opts-list-code",a),d="",e=false;var f=[];jQuery(".dslca-plugin-opts-list-item",a).each(function(){if(jQuery.inArray(jQuery(this).find(".dslca-plugin-opts-list-title").text(),f)!==-1){e=true}else{f.push(jQuery(this).find(".dslca-plugin-opts-list-title").text())}});if(e){jQuery(".dslca-plugin-opts-list-error").show()}else{jQuery(".dslca-plugin-opts-list-error").hide()}jQuery(".dslca-plugin-opts-list-item",a).each(function(){b=jQuery(this).find(".dslca-plugin-opts-list-title").text();b=b.replace(/([^a-z0-9 ]+)/gi,"");jQuery(this).find(".dslca-plugin-opts-list-title").text(b);d+=b.trim()+","});c.val(d)}jQuery(".dslca-plugin-opts-list-add-hook").click(function(b){b.preventDefault();var c=jQuery(this).closest(".dslca-plugin-opts-list-wrap");var d=c.find(".dslca-plugin-opts-list");jQuery('<div class="dslca-plugin-opts-list-item"><span class="dslca-plugin-opts-list-title" contenteditable="true">Click to edit</span><a href="#" class="dslca-plugin-opts-list-delete-hook">delete</a></div>').appendTo(d);a(c)});jQuery(document).on("click",".dslca-plugin-opts-list-delete-hook",function(b){b.preventDefault();var c=jQuery(this).closest(".dslca-plugin-opts-list-wrap");var d=jQuery(this).closest(".dslca-plugin-opts-list-item");d.remove();a(c)});jQuery(document).on("blur",".dslca-plugin-opts-list-title",function(){var b=jQuery(this).closest(".dslca-plugin-opts-list-wrap");a(b)});jQuery(document).on("keypress",".dslca-plugin-opts-list-title",function(a){if(a.keyCode==13){jQuery(this).trigger("blur");a.preventDefault()}});jQuery(".activecampaign_form").submit(function(){var a=jQuery("#dslc_activecampaign_email").val();var b=jQuery("#dslc_activecampaign_name").val();jQuery.ajax({type:"POST",data:{email:a,name:b,security:dslcajax,action:"dslc_activecampaign"},url:ajaxurl})});if(jQuery(".activecampaign_form").length){window._show_thank_you=function(a,b){var c=document.getElementById("_form_"+a+"_"),d=c.getElementsByClassName("_form-thank-you")[0];c.getElementsByClassName("_form-content")[0].style.visibility="hidden";d.innerHTML=b;d.classList.add("add_thank_you")};window._show_error=function(a,b,c){var d=document.getElementById("_form_"+a+"_"),e=document.createElement("div"),f=d.getElementsByTagName("button")[0];e.innerHTML=b;e.className="_error-inner _form_error _no_arrow";var g=document.createElement("div");g.className="_form-inner";g.appendChild(e);f.parentNode.insertBefore(g,f);if(c){var h=document.createElement("div");h.className="_error-html";h.innerHTML=c;e.appendChild(h)}};window._load_script=function(a,b){var c=document.getElementsByTagName("head")[0],d=document.createElement("script"),e=false;d.type="text/javascript";d.src=a;if(b){d.onload=d.onreadystatechange=function(){if(!e&&(!this.readyState||this.readyState=="complete")){e=true;b()}}}c.appendChild(d)};(function(){var a=function(a){var b=document.cookie.match(new RegExp("(^|; )"+a+"=([^;]+)"));return b?b[2]:null};var b=function(a,b){var c=new Date;var d=c.getTime();var e=d+1e3*60*60*24*365;c.setTime(e);document.cookie=a+"="+b+"; expires="+c+";path=/"};var c=function(a,b,c){if(a.addEventListener){a.addEventListener(b,c)}else{var d=a["on"+b];a["on"+b]=function(){d.apply(this,arguments);c.apply(this,arguments)}}};var d=false;var e=document.getElementById("_form_11_");var f=e.querySelectorAll("input, select"),g=[],h=false;var i=function(){for(var a=0;a<g.length;a++){g[a].tip.parentNode.removeChild(g[a].tip)}g=[]};var j=function(a){for(var b=0;b<g.length;b++){if(g[b].elem===a){g[b].tip.parentNode.removeChild(g[b].tip);g.splice(b,1);return}}};var k=function(a,b){var c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f={};if(a.type!="radio"&&a.type!="checkbox"){c.className="_error";d.className="_error-arrow";e.className="_error-inner";e.innerHTML=b;c.appendChild(d);c.appendChild(e);a.parentNode.appendChild(c)}else{c.className="_error-inner _no_arrow";c.innerHTML=b;a.parentNode.insertBefore(c,a);f.no_arrow=true}f.tip=c;f.elem=a;g.push(f);return f};var l=function(a){var b=a.elem.getBoundingClientRect();var c=document.documentElement,d=b.top-((window.pageYOffset||c.scrollTop)-(c.clientTop||0));if(d<40){a.tip.className=a.tip.className.replace(/ ?(_above|_below) ?/g,"")+" _below"}else{a.tip.className=a.tip.className.replace(/ ?(_above|_below) ?/g,"")+" _above"}};var m=function(){if(d)return;for(var a=0;a<g.length;a++){if(!g[a].no_arrow)l(g[a])}};var n=function(a,b){var c=null,d=a.value,e=true;b?j(a):false;if(a.type!="checkbox")a.className=a.className.replace(/ ?_has_error ?/g,"");if(a.getAttribute("required")!==null){if(d===undefined||d===null||d===""){a.className=a.className+" _has_error";e=false;c=k(a,"This field is required.")}}if(e&&a.name=="email"){if(!d.match(/^[\+_a-z0-9-'&=]+(\.[\+_a-z0-9-']+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i)){a.className=a.className+" _has_error";e=false;c=k(a,"Enter a valid email address.")}}c?l(c):false;return e};var o=function(a){return a.name=="email"||a.getAttribute("required")!==null||(a.className?/date_field/.test(a.className):false)};var p=function(a){var b=e.getElementsByClassName("_form_error")[0],d=true;b?b.parentNode.removeChild(b):false;if(!h){h=true;for(var g=0,j=f.length;g<j;g++){var k=f[g];if(o(k)){if(k.type=="text"){c(k,"input",function(){n(this,true)})}}}}i();for(var g=0,j=f.length;g<j;g++){var l=f[g];if(o(l)){n(l)?true:d=false}}if(!d&&a){a.preventDefault()}m();return d};c(window,"resize",m);c(window,"scroll",m);var q=function(a){a.preventDefault();if(p()){var b=serialize(document.getElementById("_form_11_"));_load_script("https://lumbermandesigns.activehosted.com/proc.php?"+b+"&jsonp=true")}return false};c(e,"submit",q);_load_script("//d3rxaij56vjege.cloudfront.net/form-serialize/0.3/serialize.min.js")})()}jQuery(document).on("click",".lc-toggle-extension",function(a){a.preventDefault();$extensionId=a.target.getAttribute("data-id");var b=jQuery(a.target).closest(".extension");if(b[0]!==undefined){b=b[0]}else{console.error("Can't find extension parent for the clicked ellement.");return false}var c=b.getAttribute("data-extension-status");b.setAttribute("data-extension-status","pending");jQuery.ajax({type:"POST",data:{security:dslcajax,action:"dslc-ajax-toggle-extension",extension:$extensionId},url:ajaxurl}).done(function(a){console.log("response:");console.log(a);if(a){b.setAttribute("data-extension-status",a)}else{b.setAttribute("data-extension-status",c)}}).fail(function(a){b.setAttribute("data-extension-status",c)})})});function dslc_clear_cache(a){a.preventDefault();jQuery(".dslc-clear-cache .dashicons").removeClass("dashicons-trash").addClass("dashicons-update dashicon-spin");jQuery.ajax({type:"POST",data:{security:dslcajax,action:"dslc_ajax_clear_cache"},url:ajaxurl}).done(function(){jQuery(".dslc-clear-cache").css("color","green");jQuery(".dslc-clear-cache").text("done");jQuery(".dslc-clear-cache").prepend('<span class="dashicons dashicons-yes"></span> ')})}
|
includes/plugin-options-framework/tab-designs.php
CHANGED
@@ -59,8 +59,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
59 |
</div>
|
60 |
<!-- <div class="extension-update">Update Available</div> -->
|
61 |
</div>
|
62 |
-
|
63 |
-
<!-- <div class="extension add-new-extension"><a href="//livecomposerplugin.com/add-ons/?utm_source=wp-admin&utm_medium=designs-tab&utm_campaign=more-designs" target="_blank"><div class="extension-screenshot"><span></span></div><h2 class="extension-name">More Add-Ons Available</h2></a></div></div> -->
|
64 |
</div>
|
65 |
</div><?php /* extensions browser */ ?>
|
66 |
|
59 |
</div>
|
60 |
<!-- <div class="extension-update">Update Available</div> -->
|
61 |
</div>
|
|
|
|
|
62 |
</div>
|
63 |
</div><?php /* extensions browser */ ?>
|
64 |
|
includes/plugin-options-framework/tab-docs.php
CHANGED
@@ -25,7 +25,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
25 |
|
26 |
</div>
|
27 |
<div class="dslc-panel-column">
|
28 |
-
<h3><a href="//livecomposer.help/collection/96-extensions-development" target="_blank"><span class="dashicons dashicons-admin-generic"></span> <?php _e( "Developer
|
29 |
<p><?php _e( 'If you\'re a developer who is interested in building custom modules for Live Composer give a check at the developer documentation.', 'live-composer-page-builder' ); ?></p>
|
30 |
<?php /*
|
31 |
<ul>
|
@@ -36,10 +36,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
36 |
?>
|
37 |
</div>
|
38 |
<div class="dslc-panel-column dslc-panel-last">
|
39 |
-
<h3><a href="//livecomposerplugin.com/support/support-request/?utm_source=wp-admin&utm_medium=documentation-block&utm_campaign=free-support-header" target="_blank"><span class="dashicons dashicons-format-chat"></span> <?php _e( "Free Support", 'live-composer-page-builder' ); ?></a></h3>
|
40 |
<p><?php _e( 'If you run into any bugs or issues do let us know.', 'live-composer-page-builder' ); ?></p>
|
41 |
<ul>
|
42 |
-
<li><a class="dslc-panel-icon dslc-panel-
|
|
|
|
|
43 |
</ul>
|
44 |
</div>
|
45 |
</div>
|
25 |
|
26 |
</div>
|
27 |
<div class="dslc-panel-column">
|
28 |
+
<h3><a href="//livecomposer.help/collection/96-extensions-development" target="_blank"><span class="dashicons dashicons-admin-generic"></span> <?php _e( "Developer Docs", 'live-composer-page-builder' ); ?></a></h3>
|
29 |
<p><?php _e( 'If you\'re a developer who is interested in building custom modules for Live Composer give a check at the developer documentation.', 'live-composer-page-builder' ); ?></p>
|
30 |
<?php /*
|
31 |
<ul>
|
36 |
?>
|
37 |
</div>
|
38 |
<div class="dslc-panel-column dslc-panel-last">
|
39 |
+
<h3><a href="//livecomposerplugin.com/support/support-request/?utm_source=wp-admin&utm_medium=documentation-block&utm_campaign=free-support-header" target="_blank"><span class="dashicons dashicons-format-chat"></span> <?php _e( "Free & Premium Support", 'live-composer-page-builder' ); ?></a></h3>
|
40 |
<p><?php _e( 'If you run into any bugs or issues do let us know.', 'live-composer-page-builder' ); ?></p>
|
41 |
<ul>
|
42 |
+
<li><a class="dslc-panel-icon dslc-panel-github" href="https://github.com/live-composer/live-composer-page-builder/issues" traget="_blank"><?php _e( 'Report a bug (not support!)', 'live-composer-page-builder' ); ?></a></li>
|
43 |
+
<li><a class="dslc-panel-icon dslc-panel-facebook" href="//www.facebook.com/groups/livecomposer/" traget="_blank"><?php _e( 'Free advice from other users', 'live-composer-page-builder' ); ?></a></li>
|
44 |
+
<li><a class="dslc-panel-icon dslc-panel-show-work" href="//www.facebook.com/groups/livecomposer/" traget="_blank"><?php _e( 'Premium support (buyers only)', 'live-composer-page-builder' ); ?></a></li>
|
45 |
</ul>
|
46 |
</div>
|
47 |
</div>
|
includes/plugin-options-framework/tab-extend.php
ADDED
@@ -0,0 +1,405 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Prevent direct access to the file.
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
header( 'HTTP/1.0 403 Forbidden' );
|
5 |
+
exit;
|
6 |
+
}
|
7 |
+
?>
|
8 |
+
|
9 |
+
<div class="wrap lc-wrap dslc-tab-extend lc-centered-panels">
|
10 |
+
|
11 |
+
<div class="dslc-panel lc-panel-intro padding-medium">
|
12 |
+
<p class="lc-panel-icon-hero"><span class="dashicons dashicons-dashboard orange"></span></p>
|
13 |
+
<h2 class="lc-huge"><?php _e( 'Unleash the power hidden in Live Composer', 'live-composer-page-builder' ); ?></h2>
|
14 |
+
<p class="lc-description lc-align-center"><?php _e( 'Combine Live Composer with our <strong>official premium theme</strong>. It comes bundled with premium plugins and design resources to get your WordPress development to a whole new level.', 'live-composer-page-builder'); ?></p>
|
15 |
+
|
16 |
+
<div class="lc-premium-features">
|
17 |
+
<a href="#woo" class="lc-premium-feature" tabindex="0" >
|
18 |
+
<div class="lc-premium-feature-screenshot">
|
19 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-shoppingcart.png">
|
20 |
+
</div>
|
21 |
+
<p class="lc-premium-feature-description"><?php _e( 'WooCommerce Integration', 'live-composer-page-builder' ); ?></p>
|
22 |
+
</a>
|
23 |
+
|
24 |
+
<a href="#plugins" class="lc-premium-feature" tabindex="0" >
|
25 |
+
<div class="lc-premium-feature-screenshot">
|
26 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-plugins.png">
|
27 |
+
</div>
|
28 |
+
<p class="lc-premium-feature-description"><?php _e( 'Ten Additional Premium Modules', 'live-composer-page-builder' ); ?></p>
|
29 |
+
</a>
|
30 |
+
|
31 |
+
<a href="#acf" class="lc-premium-feature" tabindex="0" >
|
32 |
+
<div class="lc-premium-feature-screenshot">
|
33 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-cpt.png">
|
34 |
+
</div>
|
35 |
+
<p class="lc-premium-feature-description"><?php _e( 'Custom Post Types & ACF Integration', 'live-composer-page-builder' ); ?></p>
|
36 |
+
</a>
|
37 |
+
|
38 |
+
<a href="#slider" class="lc-premium-feature" tabindex="0" >
|
39 |
+
<div class="lc-premium-feature-screenshot">
|
40 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-slider.png">
|
41 |
+
</div>
|
42 |
+
|
43 |
+
<p class="lc-premium-feature-description"><?php _e( 'Premium Slider with Pro Animations ', 'live-composer-page-builder' ); ?></p>
|
44 |
+
</a>
|
45 |
+
|
46 |
+
<a href="#ranking" class="lc-premium-feature" tabindex="0" >
|
47 |
+
<div class="lc-premium-feature-screenshot">
|
48 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-graph.png">
|
49 |
+
</div>
|
50 |
+
|
51 |
+
<p class="lc-premium-feature-description"><?php _e( 'Automated SEO Position Tracker', 'live-composer-page-builder' ); ?></p>
|
52 |
+
</a>
|
53 |
+
|
54 |
+
<a href="#menu" class="lc-premium-feature" tabindex="0" >
|
55 |
+
<div class="lc-premium-feature-screenshot">
|
56 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-menu.png">
|
57 |
+
</div>
|
58 |
+
|
59 |
+
<p class="lc-premium-feature-description"><?php _e( 'Responsive Mega Menu Module', 'live-composer-page-builder' ); ?></p>
|
60 |
+
</a>
|
61 |
+
|
62 |
+
<a href="#ninja" class="lc-premium-feature" tabindex="0" >
|
63 |
+
<div class="lc-premium-feature-screenshot">
|
64 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-ninja.png">
|
65 |
+
</div>
|
66 |
+
|
67 |
+
<p class="lc-premium-feature-description"><?php _e( 'Ninja Forms Integration', 'live-composer-page-builder' ); ?></p>
|
68 |
+
</a>
|
69 |
+
|
70 |
+
<a href="#ninja" class="lc-premium-feature" tabindex="0" >
|
71 |
+
<div class="lc-premium-feature-screenshot">
|
72 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-mailchimp.png">
|
73 |
+
</div>
|
74 |
+
|
75 |
+
<p class="lc-premium-feature-description"><?php _e( 'MailChimp Extension for Ninja Forms', 'live-composer-page-builder' ); ?></p>
|
76 |
+
</a>
|
77 |
+
|
78 |
+
<a href="#ninja" class="lc-premium-feature" tabindex="0" >
|
79 |
+
<div class="lc-premium-feature-screenshot">
|
80 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-payments.png">
|
81 |
+
</div>
|
82 |
+
|
83 |
+
<p class="lc-premium-feature-description"><?php _e( 'PayPal Payments for Ninja Forms', 'live-composer-page-builder' ); ?></p>
|
84 |
+
</a>
|
85 |
+
|
86 |
+
|
87 |
+
<a href="#designs" class="lc-premium-feature" tabindex="0" >
|
88 |
+
<div class="lc-premium-feature-screenshot">
|
89 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-designs.png">
|
90 |
+
</div>
|
91 |
+
|
92 |
+
<p class="lc-premium-feature-description"><?php _e( '30+ Ready-To-Use Page Designs', 'live-composer-page-builder' ); ?></p>
|
93 |
+
</a>
|
94 |
+
|
95 |
+
|
96 |
+
<a href="#social" class="lc-premium-feature" tabindex="0" >
|
97 |
+
<div class="lc-premium-feature-screenshot">
|
98 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-social.png">
|
99 |
+
</div>
|
100 |
+
|
101 |
+
<p class="lc-premium-feature-description"><?php _e( 'Extensive Social Sharing Plugin', 'live-composer-page-builder' ); ?></p>
|
102 |
+
</a>
|
103 |
+
|
104 |
+
<a href="#support" class="lc-premium-feature" tabindex="0" >
|
105 |
+
<div class="lc-premium-feature-screenshot">
|
106 |
+
<img src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/icon-support.png">
|
107 |
+
</div>
|
108 |
+
|
109 |
+
<p class="lc-premium-feature-description"><?php _e( 'Same Day Premium Support', 'live-composer-page-builder' ); ?></p>
|
110 |
+
</a>
|
111 |
+
</div>
|
112 |
+
|
113 |
+
<p class="lc-panel-cta lc-align-center"><a href="#" class="button button-primary button-hero">Get Official Live Composer Theme</a></p>
|
114 |
+
</div>
|
115 |
+
|
116 |
+
<a name="woo"> </a>
|
117 |
+
<div class="dslc-panel lc-divided-panels lc-panel-woo lc-dark-panel padding-medium"
|
118 |
+
style="background-image:url(<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-woo-bg.png)" >
|
119 |
+
<div class="lc-text-center">
|
120 |
+
<p class="lc-panel-icon-hero"><span class="dashicons dashicons-cart"></span></p>
|
121 |
+
<h3 class="lc-huge"><?php _e( 'WooCommerce Integration', 'live-composer-page-builder' ); ?></h3>
|
122 |
+
<p class="lc-description"><?php _e( 'Now you can fully customize your WooCommerce website without any coding. Visually adjust designs or create from scratch product pages using our drag & drop builder.' , 'live-composer-page-builder'); ?></p>
|
123 |
+
</div>
|
124 |
+
<ul class="lc-column-list" style="padding-left:10%;">
|
125 |
+
<li><span class="dashicons dashicons-yes"></span> +22 Woo Modules</li>
|
126 |
+
<li><span class="dashicons dashicons-yes"></span> Design Product Pages</li>
|
127 |
+
<li><span class="dashicons dashicons-yes"></span> Design Product Listings</li>
|
128 |
+
<li><span class="dashicons dashicons-yes"></span> Customize Shopping Cart</li>
|
129 |
+
<li><span class="dashicons dashicons-yes"></span> Customize Checkout Form</li>
|
130 |
+
<li><span class="dashicons dashicons-yes"></span> Customize Account Section</li>
|
131 |
+
</ul>
|
132 |
+
<!-- <div class="lc-text-center" style="width:100%;">
|
133 |
+
<p><a href="#" class="button button-primary button-hero">Get Official Live Coposer Theme</a></p>
|
134 |
+
</div> -->
|
135 |
+
</div>
|
136 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin">
|
137 |
+
<div class="lc-panel-half">
|
138 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
139 |
+
</div>
|
140 |
+
<div class="lc-panel-half">
|
141 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
142 |
+
</div>
|
143 |
+
</div>
|
144 |
+
|
145 |
+
|
146 |
+
<a name="plugins"> </a>
|
147 |
+
<div class="dslc-panel lc-divided-panels padding-medium">
|
148 |
+
<div class="lc-panel-half">
|
149 |
+
<h3 class="lc-huge margin-top-half"><?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?></h3>
|
150 |
+
<p class="lc-larger-text"><?php _e( 'Our official theme comes bundled with premium modules to extend design & development possibilities.' , 'live-composer-page-builder'); ?></p>
|
151 |
+
<!-- <p><a href="#" class="button button-primary button-hero">Get Official Live Coposer Theme</a></p> -->
|
152 |
+
</div>
|
153 |
+
<div class="lc-panel-half lc-image-column">
|
154 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-mink-extensions.png">
|
155 |
+
</div>
|
156 |
+
|
157 |
+
<ul class="lc-column-list">
|
158 |
+
<li><span class="dashicons dashicons-video-alt3"></span> YouTube/Vimeo Video Embed</li>
|
159 |
+
<li><span class="dashicons dashicons-images-alt2"></span> Gallery Images Grid</li>
|
160 |
+
<li><span class="dashicons dashicons-location"></span> Google Maps Module</li>
|
161 |
+
<li><span class="dashicons dashicons-image-flip-horizontal"></span> Before/After Image</li>
|
162 |
+
<li><span class="dashicons dashicons-carrot"></span> Additional Icons</li>
|
163 |
+
<li><span class="dashicons dashicons-images-alt"></span> +47 Element Animations</li>
|
164 |
+
<li><span class="dashicons dashicons-leftright"></span> Prev./Next Post Links</li>
|
165 |
+
<li><span class="dashicons dashicons-slides"></span> Per Page Content Width</li>
|
166 |
+
</ul>
|
167 |
+
</div>
|
168 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin lc-border-top">
|
169 |
+
<div class="lc-panel-half">
|
170 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
171 |
+
</div>
|
172 |
+
<div class="lc-panel-half">
|
173 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
|
177 |
+
|
178 |
+
|
179 |
+
<a name="acf"> </a>
|
180 |
+
<div class="dslc-panel lc-panel-acf lc-divided-panels padding-medium">
|
181 |
+
<div class="lc-panel-half">
|
182 |
+
<h3 class="lc-huge"><?php _e( 'Custom Post Types and Advanced Custom Fields Integration', 'live-composer-page-builder' ); ?></h3>
|
183 |
+
<p class="lc-larger-text"><?php _e( 'Collect PayPal payments or subscribe your visitors to MailChimp using any Ninja Form instance on your website.' , 'live-composer-page-builder'); ?><br /><br /></p>
|
184 |
+
<!-- <p><a href="#" class="button button-primary button-hero">Get Official Live Coposer Theme</a></p> -->
|
185 |
+
</div>
|
186 |
+
<div class="lc-panel-half lc-image-column">
|
187 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>images/lc-acf.png">
|
188 |
+
</div>
|
189 |
+
|
190 |
+
<ul class="lc-column-list">
|
191 |
+
<li><span class="dashicons dashicons-video-alt3"></span> Video Embed</li>
|
192 |
+
<li><span class="dashicons dashicons-images-alt2"></span> Gallery Images Grid</li>
|
193 |
+
<li><span class="dashicons dashicons-location"></span> Google Maps</li>
|
194 |
+
<li><span class="dashicons dashicons-image-flip-horizontal"></span> Before/After Image</li>
|
195 |
+
<li><span class="dashicons dashicons-carrot"></span> Additional Icons</li>
|
196 |
+
<li><span class="dashicons dashicons-images-alt"></span> +47 Element Animations</li>
|
197 |
+
<li><span class="dashicons dashicons-leftright"></span> Prev./Next Post Links</li>
|
198 |
+
<li><span class="dashicons dashicons-slides"></span> Per Page Content Width</li>
|
199 |
+
</ul>
|
200 |
+
</div>
|
201 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin">
|
202 |
+
<div class="lc-panel-half">
|
203 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
204 |
+
</div>
|
205 |
+
<div class="lc-panel-half">
|
206 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
|
210 |
+
|
211 |
+
|
212 |
+
<a name="slider"> </a>
|
213 |
+
<div class="dslc-panel lc-divided-panels padding-medium">
|
214 |
+
<div class="lc-panel-half">
|
215 |
+
<h3 class="lc-huge"><?php _e( 'Premium Slider Included', 'live-composer-page-builder' ); ?></h3>
|
216 |
+
<p class="lc-larger-text"><?php _e( 'Combine Live Composer with a theme that was created form scratch speccially for Live Composer. ' , 'live-composer-page-builder'); ?></p>
|
217 |
+
<!-- <p><a href="#" class="button button-primary button-hero">Get Official Live Coposer Theme</a></p> -->
|
218 |
+
</div>
|
219 |
+
<div class="lc-panel-half lc-image-column">
|
220 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-slider.png">
|
221 |
+
</div>
|
222 |
+
|
223 |
+
<ul class="lc-column-list">
|
224 |
+
<li><span class="dashicons dashicons-video-alt3"></span> Video Embed</li>
|
225 |
+
<li><span class="dashicons dashicons-images-alt2"></span> Gallery Images Grid</li>
|
226 |
+
<li><span class="dashicons dashicons-location"></span> Google Maps</li>
|
227 |
+
<li><span class="dashicons dashicons-image-flip-horizontal"></span> Before/After Image</li>
|
228 |
+
<li><span class="dashicons dashicons-carrot"></span> Additional Icons</li>
|
229 |
+
<li><span class="dashicons dashicons-images-alt"></span> +47 Element Animations</li>
|
230 |
+
<li><span class="dashicons dashicons-leftright"></span> Prev./Next Post Links</li>
|
231 |
+
<li><span class="dashicons dashicons-slides"></span> Per Page Content Width</li>
|
232 |
+
</ul>
|
233 |
+
</div>
|
234 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin lc-border-top">
|
235 |
+
<div class="lc-panel-half">
|
236 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
237 |
+
</div>
|
238 |
+
<div class="lc-panel-half">
|
239 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
240 |
+
</div>
|
241 |
+
</div>
|
242 |
+
|
243 |
+
|
244 |
+
<a name="ranking"> </a>
|
245 |
+
<div class="dslc-panel lc-divided-panels lc-panel- padding-medium"
|
246 |
+
style="background:#f7f7f9 no-repeat url(<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-seo.png) top center / contain" >
|
247 |
+
<div class="lc-text-center">
|
248 |
+
<p class="lc-panel-icon-hero"><span class="dashicons dashicons-awards"></span></p>
|
249 |
+
<h3 class="lc-huge"><?php _e( 'Professional SEO Tools Included', 'live-composer-page-builder' ); ?></h3>
|
250 |
+
<p class="lc-description"><?php _e( 'Get your game to a whole new level. Combine Live Composer with a theme that was created form scratch speccially for Live Composer. ' , 'live-composer-page-builder'); ?></p>
|
251 |
+
</div>
|
252 |
+
<ul class="lc-column-list" >
|
253 |
+
<li><span class="dashicons dashicons-yes"></span> 30 Professionally Designed Pages</li>
|
254 |
+
<li><span class="dashicons dashicons-yes"></span> 20 Premium Flat Design Illustrations</li>
|
255 |
+
<li><span class="dashicons dashicons-yes"></span> Ready-To-Use SEO Content</li>
|
256 |
+
<li><span class="dashicons dashicons-yes"></span> Premium Line Icons Set</li>
|
257 |
+
</ul>
|
258 |
+
</div>
|
259 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin">
|
260 |
+
<div class="lc-panel-half">
|
261 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
262 |
+
</div>
|
263 |
+
<div class="lc-panel-half">
|
264 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
265 |
+
</div>
|
266 |
+
</div>
|
267 |
+
|
268 |
+
|
269 |
+
|
270 |
+
<a name="menu"> </a>
|
271 |
+
<div class="dslc-panel lc-divided-panels padding-medium">
|
272 |
+
<div class="lc-panel-half">
|
273 |
+
<h3 class="lc-huge"><?php _e( 'Responsive Mega Menu', 'live-composer-page-builder' ); ?></h3>
|
274 |
+
<p class="lc-larger-text"><?php _e( 'Combine Live Composer with a theme that was created form scratch speccially for Live Composer. ' , 'live-composer-page-builder'); ?></p>
|
275 |
+
<!-- <p><a href="#" class="button button-primary button-hero">Get Official Live Coposer Theme</a></p> -->
|
276 |
+
</div>
|
277 |
+
<div class="lc-panel-half lc-image-column">
|
278 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-menu.png">
|
279 |
+
</div>
|
280 |
+
|
281 |
+
<ul class="lc-column-list">
|
282 |
+
<li><span class="dashicons dashicons-video-alt3"></span> Video Embed</li>
|
283 |
+
<li><span class="dashicons dashicons-images-alt2"></span> Gallery Images Grid</li>
|
284 |
+
<li><span class="dashicons dashicons-location"></span> Google Maps</li>
|
285 |
+
<li><span class="dashicons dashicons-image-flip-horizontal"></span> Before/After Image</li>
|
286 |
+
<li><span class="dashicons dashicons-carrot"></span> Additional Icons</li>
|
287 |
+
<li><span class="dashicons dashicons-images-alt"></span> +47 Element Animations</li>
|
288 |
+
<li><span class="dashicons dashicons-leftright"></span> Prev./Next Post Links</li>
|
289 |
+
<li><span class="dashicons dashicons-slides"></span> Per Page Content Width</li>
|
290 |
+
</ul>
|
291 |
+
</div>
|
292 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin lc-border-top">
|
293 |
+
<div class="lc-panel-half">
|
294 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
295 |
+
</div>
|
296 |
+
<div class="lc-panel-half">
|
297 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
298 |
+
</div>
|
299 |
+
</div>
|
300 |
+
|
301 |
+
|
302 |
+
<a name="ninja"> </a>
|
303 |
+
<div class="dslc-panel lc-panel-ninjaforms lc-divided-panels padding-medium"
|
304 |
+
style="background-image:url(<?php echo DS_LIVE_COMPOSER_URL; ?>images/lc-ninja.png);">
|
305 |
+
<div class="lc-panel-half">
|
306 |
+
<h3 class="lc-huge"><?php _e( 'Advanced Ninja Form Integrations ', 'live-composer-page-builder' ); ?></h3>
|
307 |
+
<p class="lc-larger-text"><?php _e( 'Collect PayPal payments or subscribe your visitors to MailChimp using any Ninja Form instance on your website.' , 'live-composer-page-builder'); ?><br /><br /></p>
|
308 |
+
|
309 |
+
<ul class="lc-column-list">
|
310 |
+
<li><span class="dashicons dashicons-video-alt3"></span> Video Embed</li>
|
311 |
+
<li><span class="dashicons dashicons-images-alt2"></span> Gallery Images Grid</li>
|
312 |
+
<li><span class="dashicons dashicons-location"></span> Google Maps</li>
|
313 |
+
</ul>
|
314 |
+
<!-- <p><a href="#" class="button button-primary button-hero">Get Official Live Coposer Theme</a></p> -->
|
315 |
+
</div>
|
316 |
+
<!-- <div class="lc-panel-half lc-image-column">
|
317 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>images/lc-ninja.png">
|
318 |
+
</div> -->
|
319 |
+
</div>
|
320 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin lc-border-top">
|
321 |
+
<div class="lc-panel-half">
|
322 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
323 |
+
</div>
|
324 |
+
<div class="lc-panel-half">
|
325 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
326 |
+
</div>
|
327 |
+
</div>
|
328 |
+
|
329 |
+
|
330 |
+
|
331 |
+
<a name="designs"> </a>
|
332 |
+
<div class="dslc-panel lc-divided-panels lc-panel-designs lc-dark-panel padding-medium"
|
333 |
+
style="background:#323750 no-repeat url(<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-designs.png) bottom center / 90%" >
|
334 |
+
<div class="lc-text-center">
|
335 |
+
<p class="lc-panel-icon-hero"><span class="dashicons dashicons-art"></span></p>
|
336 |
+
<h3 class="lc-huge"><?php _e( 'Premium Design Resources', 'live-composer-page-builder' ); ?></h3>
|
337 |
+
<p class="lc-description"><?php _e( 'Get your game to a whole new level. Combine Live Composer with a theme that was created form scratch speccially for Live Composer. ' , 'live-composer-page-builder'); ?></p>
|
338 |
+
</div>
|
339 |
+
<ul class="lc-column-list" >
|
340 |
+
<li><span class="dashicons dashicons-yes"></span> 30 Professionally Designed Pages</li>
|
341 |
+
<li><span class="dashicons dashicons-yes"></span> 20 Premium Flat Design Illustrations</li>
|
342 |
+
<li><span class="dashicons dashicons-yes"></span> Ready-To-Use SEO Content</li>
|
343 |
+
<li><span class="dashicons dashicons-yes"></span> Premium Line Icons Set</li>
|
344 |
+
</ul>
|
345 |
+
<div class="lc-text-center" style="width:100%;">
|
346 |
+
<p><a href="#" class="button button-primary button-hero">Get Official Live Coposer Theme</a></p>
|
347 |
+
</div>
|
348 |
+
</div>
|
349 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin">
|
350 |
+
<div class="lc-panel-half">
|
351 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
352 |
+
</div>
|
353 |
+
<div class="lc-panel-half">
|
354 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
355 |
+
</div>
|
356 |
+
</div>
|
357 |
+
|
358 |
+
<a name="social"> </a>
|
359 |
+
<div class="dslc-panel lc-panel-socialshare lc-divided-panels padding-medium"
|
360 |
+
style="background-image:url(<?php echo DS_LIVE_COMPOSER_URL; ?>images/lc-social.png);">
|
361 |
+
<div class="lc-panel-half">
|
362 |
+
<h3 class="lc-huge"><?php _e( 'Social Share Plugin', 'live-composer-page-builder' ); ?></h3>
|
363 |
+
<p class="lc-larger-text"><?php _e( 'Collect PayPal payments or subscribe your visitors to MailChimp using any Ninja Form instance on your website.' , 'live-composer-page-builder'); ?><br /><br /></p>
|
364 |
+
|
365 |
+
<ul class="lc-column-list">
|
366 |
+
<li><span class="dashicons dashicons-video-alt3"></span> Video Embed</li>
|
367 |
+
<li><span class="dashicons dashicons-images-alt2"></span> Gallery Images Grid</li>
|
368 |
+
<li><span class="dashicons dashicons-location"></span> Google Maps</li>
|
369 |
+
</ul>
|
370 |
+
<!-- <p><a href="#" class="button button-primary button-hero">Get Official Live Coposer Theme</a></p> -->
|
371 |
+
</div>
|
372 |
+
<!-- <div class="lc-panel-half lc-image-column">
|
373 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>images/lc-ninja.png">
|
374 |
+
</div> -->
|
375 |
+
</div>
|
376 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin lc-border-top">
|
377 |
+
<div class="lc-panel-half">
|
378 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
379 |
+
</div>
|
380 |
+
<div class="lc-panel-half">
|
381 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
382 |
+
</div>
|
383 |
+
</div>
|
384 |
+
|
385 |
+
|
386 |
+
<a name="support"> </a>
|
387 |
+
<div class="dslc-panel lc-divided-panels padding-medium">
|
388 |
+
<div class="lc-panel-half">
|
389 |
+
<h3 class="lc-huge"><?php _e( 'Premium Same Day Support', 'live-composer-page-builder' ); ?></h3>
|
390 |
+
<p class="lc-larger-text"><?php _e( 'Get your game to a whole new level. Combine Live Composer with a theme that was created form scratch speccially for Live Composer. ' , 'live-composer-page-builder'); ?></p>
|
391 |
+
</div>
|
392 |
+
<div class="lc-panel-half lc-image-column">
|
393 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-support.png">
|
394 |
+
</div>
|
395 |
+
</div>
|
396 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels padding-medium no-top-margin lc-border-top">
|
397 |
+
<div class="lc-panel-half">
|
398 |
+
<p class="lc-feature-description"><?php _e( 'This feature is part of our official premium theme package.' , 'live-composer-page-builder'); ?></p>
|
399 |
+
</div>
|
400 |
+
<div class="lc-panel-half">
|
401 |
+
<p><a href="#" class="button button-primary button-hero">Get It Now</a></p>
|
402 |
+
</div>
|
403 |
+
</div>
|
404 |
+
|
405 |
+
</div>
|
includes/plugin-options-framework/tab-extensions.php
CHANGED
@@ -4,100 +4,253 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
header( 'HTTP/1.0 403 Forbidden' );
|
5 |
exit;
|
6 |
}
|
7 |
-
?>
|
8 |
-
<div class="wrap lc-wrap">
|
9 |
|
10 |
-
|
|
|
|
|
11 |
|
12 |
-
|
13 |
-
|
|
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
<img alt="Video Embed" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-extension-videoembed.png">
|
19 |
-
</div>
|
20 |
|
21 |
-
|
|
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
<a href="//livecomposerplugin.com/downloads/video-embed/?utm_source=wp-admin&utm_medium=extension-tab&utm_campaign=video-embed" target="_blank" class="button button-secondary activate">Details</a>
|
26 |
-
<a href="//livecomposerplugin.com/downloads/video-embed/?utm_source=wp-admin&utm_medium=extension-tab&utm_campaign=video-embed" target="_blank" class="button button-primary load-customize hide-if-no-customize">Free Download</a>
|
27 |
-
</div>
|
28 |
|
29 |
-
|
30 |
-
|
|
|
|
|
31 |
|
32 |
-
|
33 |
-
<div class="extension" tabindex="0" >
|
34 |
-
<div class="extension-screenshot">
|
35 |
-
<img alt="Animations+" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-extension-animations.png">
|
36 |
-
</div>
|
37 |
|
38 |
-
|
|
|
|
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
</div>
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
</div>
|
54 |
|
55 |
-
|
|
|
|
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
<!-- <div class="extension-update">Update Available</div> -->
|
63 |
-
</div>
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
<div class="extension-screenshot">
|
69 |
-
<img alt="Gallery Images Grid" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-extension-gallery.png">
|
70 |
-
</div>
|
71 |
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
<a href="//livecomposerplugin.com/downloads/gallery-images-grid/?utm_source=wp-admin&utm_medium=extension-tab&utm_campaign=gallery" target="_blank" class="button button-secondary activate">Details</a>
|
77 |
-
<a href="//livecomposerplugin.com/downloads/gallery-images-grid/?utm_source=wp-admin&utm_medium=extension-tab&utm_campaign=gallery" target="_blank" class="button button-primary load-customize hide-if-no-customize">Download</a>
|
78 |
-
</div>
|
79 |
-
<!-- <div class="extension-update">Update Available</div> -->
|
80 |
-
</div>
|
81 |
|
82 |
-
|
83 |
-
<div class="extension" tabindex="0" >
|
84 |
-
<div class="extension-screenshot">
|
85 |
-
<img alt="Google Maps" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-extension-googlemaps.png">
|
86 |
-
</div>
|
87 |
|
88 |
-
|
|
|
|
|
|
|
89 |
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
-
|
|
|
|
|
99 |
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
|
|
|
|
|
|
102 |
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
header( 'HTTP/1.0 403 Forbidden' );
|
5 |
exit;
|
6 |
}
|
|
|
|
|
7 |
|
8 |
+
function dslc_sort_by_rank($a, $b) {
|
9 |
+
$a_rank = 0;
|
10 |
+
$b_rank = 0;
|
11 |
|
12 |
+
if ( isset( $a['rank'] ) ) {
|
13 |
+
$a_rank = $a['rank'];
|
14 |
+
}
|
15 |
|
16 |
+
if ( isset( $b['rank'] ) ) {
|
17 |
+
$b_rank = $b['rank'];
|
18 |
+
}
|
|
|
|
|
19 |
|
20 |
+
return $a_rank - $b_rank;
|
21 |
+
}
|
22 |
|
23 |
+
$extensions = array();
|
24 |
+
$extensions = apply_filters( 'dslc_extensions_meta', $extensions );
|
|
|
|
|
|
|
25 |
|
26 |
+
$today_day = strtoupper( strftime( "%A",time() ) );
|
27 |
+
|
28 |
+
?>
|
29 |
+
<div class="wrap lc-admin-tab-content lc-wrap lc-centered-panels lc-wider-panel lc-tab-extensions">
|
30 |
|
31 |
+
<!-- <h2 class="dslc-tab-heading">Extend Live Composer with <a href="https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=extension-tab&utm_campaign=section-title" target="_blank">Free Extensions</a></h2> -->
|
|
|
|
|
|
|
|
|
32 |
|
33 |
+
<?php
|
34 |
+
// Get list of all plugin (active and inactive).
|
35 |
+
$all_plugins = get_plugins();
|
36 |
|
37 |
+
// ACTIVATE NOTICE: Check if plugin is already installed but not active.
|
38 |
+
if ( array_key_exists( 'lc-extensions/lc-extensions.php', $all_plugins ) && is_plugin_inactive( 'lc-extensions/lc-extensions.php' ) ) : ?>
|
39 |
+
<div class="dslc-panel lc-panel-non-active-plugin">
|
40 |
+
<span class="dashicons dashicons-warning" style="color:#D76D50; margin-right:8px;"></span> <?php _e( 'Looks like <strong>Live Composer – Premium Extensions</strong> plugin installed, but not active.', 'live-composer-page-builder' ); ?>
|
41 |
+
<a href="#" class="button button-primary lc-activate-plugin" data-plugin="lc-extensions" data-action-nonce="<?php echo wp_create_nonce( 'dslc-ajax-activate-plugin-lc-extensions' ) ?>">Activate It Now</a>
|
42 |
+
</div>
|
43 |
+
<?php endif;
|
44 |
|
45 |
+
// AD PANEL: If there is no extensions, show ad panel.
|
46 |
+
if ( empty( $extensions ) ) : ?>
|
47 |
+
<div class="dslc-panel lc-divided-panels padding-medium">
|
48 |
+
<div class="lc-panel-half">
|
49 |
+
<h3 class="lc-huge margin-top-half"><?php _e( 'Advanced, time-saving features for professional website development', 'live-composer-page-builder' ); ?></h3>
|
50 |
+
<p class="lc-larger-text"><?php _e( 'Build feature-reach websites faster with our premium extensions. All add-ons are packed into a single plugin for easy management and updates.' , 'live-composer-page-builder'); ?></p>
|
51 |
+
<p><a href="https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=extension-tab&utm_campaign=intro-block" class="button button-primary button-hero" target="_blank">Buy Today For 15% OFF</a> <br /><span class="promo-code">Promo code: <strong>HAPPY-<?php echo $today_day; ?></strong></span></p>
|
52 |
</div>
|
53 |
+
<div class="lc-panel-half lc-image-column">
|
54 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-mink-extensions.png">
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
<?php endif;
|
58 |
|
59 |
+
// LICENSE PANEL: If extension is active.
|
60 |
+
if ( $extensions && is_plugin_active( 'lc-extensions/lc-extensions.php' ) ) {
|
61 |
+
$license_manager = new LC_License_Manager;
|
62 |
+
$license_status = $license_manager->get_license_status('lc-extensions');
|
|
|
63 |
|
64 |
+
if ( 'valid' !== $license_status ) {
|
65 |
+
$license_status = 'invalid';
|
66 |
+
}
|
67 |
|
68 |
+
echo '<div data-license-status="' . $license_status . '">';
|
69 |
+
// Top license block (shows when issues or no license set).
|
70 |
+
echo '<div data-show-if-license="invalid">';
|
71 |
+
echo $license_manager->render_license_block('lc-extensions');
|
72 |
+
echo '</div>';
|
|
|
|
|
73 |
|
74 |
+
// Tab heading (shows only when there is no problem with license).
|
75 |
+
echo '<div class="lc-tab-heading" data-show-if-license="valid">';
|
76 |
+
echo '<h1 class="wp-heading-inline">' . __('Premium Extensions', 'live-composer-page-builder') . ' <span class="title-count theme-count">' . count( $extensions ) . '</span> </h1>';
|
77 |
+
echo '<a href="#lc-license-block" class="button lc-license-status-button"><span class="dashicons dashicons-yes"></span> License is acitve</a>';
|
78 |
+
echo '</div>';
|
79 |
+
echo '</div>';
|
80 |
|
81 |
+
}
|
82 |
+
?>
|
|
|
|
|
|
|
83 |
|
84 |
+
<div class="extension-browser rendered">
|
85 |
+
<div class="extensions wp-clearfix">
|
86 |
+
<?php
|
87 |
+
if ( empty( $extensions ) ) :
|
88 |
+
$extensions = array(
|
89 |
+
'acfsupport' => array(
|
90 |
+
'title' => 'ACF Support',
|
91 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/acfsupport/thumbnail.png',
|
92 |
+
'details' => 'https://livecomposerplugin.com/downloads/acf-support/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=acf-support',
|
93 |
+
'description' => 'Output any content from custom fields on pages, posts or templates created with Live Composer page builder.',
|
94 |
+
'rank' => 10,
|
95 |
+
'demo' => true,
|
96 |
+
),
|
97 |
+
'animations' => array(
|
98 |
+
'title' => 'Additinal Animations',
|
99 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/animations/thumbnail.png',
|
100 |
+
'details' => 'https://livecomposerplugin.com/downloads/additional-animations/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=aditional-animations',
|
101 |
+
'description' => '47 additional animations for Live Composer modules. Extension adds new options into Styling > Animation > On Load Animation. Animate any module with advanced effects when a page gets loaded.',
|
102 |
+
'rank' => 38,
|
103 |
+
'demo' => true,
|
104 |
+
),
|
105 |
+
'beforeafter' => array(
|
106 |
+
'title' => 'Before/After Image',
|
107 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/beforeafter/thumbnail.png',
|
108 |
+
'details' => 'https://livecomposerplugin.com/downloads/beforeafter-image-slider-add-on/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=before-after-slider',
|
109 |
+
'description' => 'The best way to highlight visual differences between two images/photos. Useful for redesign projects and architects.',
|
110 |
+
'rank' => 40,
|
111 |
+
'demo' => true,
|
112 |
+
),
|
113 |
+
'contentwidth' => array(
|
114 |
+
'title' => 'Custom Page Content Width',
|
115 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/contentwidth/thumbnail.png',
|
116 |
+
'details' => 'https://livecomposerplugin.com/downloads/per-page-content-width-add-on/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=content-width',
|
117 |
+
'description' => 'Allows different widths of the Live Composer content area to be set on different pages/templates.',
|
118 |
+
'rank' => 48,
|
119 |
+
'demo' => true,
|
120 |
+
),
|
121 |
+
'cptsupport' => array(
|
122 |
+
'title' => 'CPT Support',
|
123 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/cptsupport/thumbnail.png',
|
124 |
+
'details' => 'https://livecomposerplugin.com/downloads/cpt-support/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=cpt-support',
|
125 |
+
'description' => 'This extension adds full support for Custom Post Types. You can create shared LC templates for any CPT or disable page builder completely for any Custom Post Type on your website.',
|
126 |
+
'rank' => 11,
|
127 |
+
'demo' => true,
|
128 |
+
),
|
129 |
+
'gallery' => array(
|
130 |
+
'title' => 'Image Gallery Grid',
|
131 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/gallery/thumbnail.png',
|
132 |
+
'details' => 'https://livecomposerplugin.com/downloads/gallery-images-grid/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=gallery-module',
|
133 |
+
'description' => 'Display the images from your galleries and projects on any page (as images grid or carousel). The extension adds a new module.',
|
134 |
+
'rank' => 30,
|
135 |
+
'demo' => true,
|
136 |
+
),
|
137 |
+
'googlemaps' => array(
|
138 |
+
'title' => 'Google Maps Module',
|
139 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/googlemaps/thumbnail.png',
|
140 |
+
'details' => 'https://livecomposerplugin.com/downloads/google-maps-add-on/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=google-maps',
|
141 |
+
'description' => 'Fast and easy way to display a Google map on your Live Composer powered website. The extension adds a new module.',
|
142 |
+
'rank' => 20,
|
143 |
+
'demo' => true,
|
144 |
+
),
|
145 |
+
'lineicons' => array(
|
146 |
+
'title' => 'Linecons Icons',
|
147 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/lineicons/thumbnail.png',
|
148 |
+
'details' => 'https://livecomposerplugin.com/downloads/linecons-icons-add-on/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=lineicons',
|
149 |
+
'description' => 'This add-on adds 48 additional icons that will be available in the icon options for all modules that have icons option.',
|
150 |
+
'rank' => 35,
|
151 |
+
'demo' => true,
|
152 |
+
),
|
153 |
+
'menu' => array(
|
154 |
+
'title' => 'Mega Menu',
|
155 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/menu/thumbnail.png',
|
156 |
+
'details' => 'https://livecomposerplugin.com/downloads/mega-menu/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=mega-menu',
|
157 |
+
'description' => 'Adds Mega Menu module with advanced and fully customizable design options. Now you can create multicolumn menus with custom icons and responsive mobile menu.',
|
158 |
+
'rank' => 15,
|
159 |
+
'demo' => true,
|
160 |
+
),
|
161 |
+
'prevnextpost' => array(
|
162 |
+
'title' => 'Previous & Next Posts Links',
|
163 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/prevnextpost/thumbnail.png',
|
164 |
+
'details' => 'https://livecomposerplugin.com/downloads/previousnext-post-links-add-on/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=prev-next-links',
|
165 |
+
'description' => 'This add-on for Live Composer is a new module that shows links to previous and next post (adjacent to the currently shown one). It works for the custom post types as well, not just blog posts.',
|
166 |
+
'rank' => 45,
|
167 |
+
'demo' => true,
|
168 |
+
),
|
169 |
+
'sliders' => array(
|
170 |
+
'title' => 'Sliders Integration',
|
171 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/sliders/thumbnail.png',
|
172 |
+
'details' => 'https://livecomposerplugin.com/downloads/sliders-integration/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=sliders-integration',
|
173 |
+
'description' => 'Creates modules for third-party slider plugins. Drag and drop slider module on the page instead of dealing with shortcodes.',
|
174 |
+
'rank' => 25,
|
175 |
+
'demo' => true,
|
176 |
+
),
|
177 |
+
'video' => array(
|
178 |
+
'title' => 'Video Embed Module',
|
179 |
+
'thumbnail' => DS_LIVE_COMPOSER_URL . 'images/extensions/video/thumbnail.png',
|
180 |
+
'details' => 'https://livecomposerplugin.com/downloads/video-embed/?utm_source=lcproext&utm_medium=extensions-list&utm_campaign=video-module',
|
181 |
+
'description' => 'Easily embed videos from various sources ( YouTube, Vimeo, Hulu, Vine... ) using drag and drop. The extension adds a new module. No need to mess with shortcodes or iframes to place video on your page.',
|
182 |
+
'rank' => 28,
|
183 |
+
'demo' => true,
|
184 |
+
),
|
185 |
+
);
|
186 |
+
endif; // If empty.
|
187 |
|
188 |
+
// Sort extensions by the rank field. 100 - last / 0 - first.
|
189 |
+
uasort( $extensions, 'dslc_sort_by_rank' );
|
|
|
|
|
|
|
|
|
|
|
190 |
|
191 |
+
foreach ( $extensions as $extension_id => $extension ) {
|
|
|
|
|
|
|
|
|
192 |
|
193 |
+
$extension_thumbnail = DS_LIVE_COMPOSER_URL . 'images/lc-placeholder.png';
|
194 |
+
if ( isset( $extension['thumbnail'] ) && !empty( $extension['thumbnail'] ) ) {
|
195 |
+
$extension_thumbnail = $extension['thumbnail'];
|
196 |
+
}
|
197 |
|
198 |
+
$extensions_status_att = 'inactive';
|
199 |
+
|
200 |
+
if ( isset( $extension['active'] ) && $extension['active'] ) {
|
201 |
+
$extensions_status_att = 'active';
|
202 |
+
}
|
203 |
+
|
204 |
+
if ( isset( $extension['demo'] ) && $extension['demo'] ) {
|
205 |
+
$extensions_status_att = 'demo';
|
206 |
+
}
|
207 |
+
?>
|
208 |
+
<div class="extension <?php echo 'extension-' . $extension_id?>" data-extension-status="<?php echo $extensions_status_att; ?>" tabindex="0" >
|
209 |
+
<div class="extension-screenshot">
|
210 |
+
<img alt="<?php echo $extension['title']; ?>" src="<?php echo $extension_thumbnail; ?>">
|
211 |
+
<p class="more-details"><?php echo $extension['description']; ?></p>
|
212 |
+
</div>
|
213 |
+
|
214 |
+
<h2 class="extension-name"><?php echo $extension['title']; ?>
|
215 |
+
<span class="status" data-show-if="active"><span class="dashicons dashicons-yes"></span> active</span>
|
216 |
+
<span class="status" data-show-if="inactive"><span class="dashicons dashicons-no-alt"></span> inactive</span>
|
217 |
+
<span class="status" data-show-if="pending"><span class="dashicons dashicons-update"></span></span>
|
218 |
+
</h2>
|
219 |
+
|
220 |
+
<div class="extension-actions">
|
221 |
+
<a href="<?php echo $extension['details']; ?>?utm_source=wp-admin&utm_medium=extension-tab&utm_campaign=<?php echo $extension_id; ?>" target="_blank" class="button button-secondary activate">More Details</a>
|
222 |
|
223 |
+
<a href="#" class="button button-primary lc-toggle-extension" data-show-if="active" data-id="<?php echo $extension_id; ?>">Deactivate</a>
|
224 |
+
<a href="#" class="button button-primary lc-toggle-extension" data-show-if="inactive" data-id="<?php echo $extension_id; ?>">Activate</a>
|
225 |
+
<a href="#" class="button button-primary" data-show-if="pending" onclick="return false;"><span class="dashicons dashicons-update"></span></a>
|
226 |
|
227 |
+
<a href="//livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=extension-tab&utm_campaign=<?php echo $extension_id; ?>" target="_blank" class="button button-primary" data-show-if="demo">Buy to activate</a>
|
228 |
+
</div>
|
229 |
+
</div>
|
230 |
+
<?php
|
231 |
+
}
|
232 |
+
?>
|
233 |
+
</div>
|
234 |
+
</div><?php /* extensions browser */ ?>
|
235 |
+
|
236 |
+
<?php
|
237 |
+
// LICENSE PANEL: If extension is active.
|
238 |
+
if ( $extensions && is_plugin_active( 'lc-extensions/lc-extensions.php' ) ) {
|
239 |
+
$license_manager = new LC_License_Manager;
|
240 |
+
$license_status = $license_manager->get_license_status('lc-extensions');
|
241 |
|
242 |
+
if ( 'valid' !== $license_status ) {
|
243 |
+
$license_status = 'invalid';
|
244 |
+
}
|
245 |
|
246 |
+
// Bottom license block.
|
247 |
+
echo '<div data-license-status="' . $license_status . '">';
|
248 |
+
echo '<a name="lc-license-block"></a>';
|
249 |
+
// Output license block on the bottom when no issues with license detected.
|
250 |
+
echo '<div data-show-if-license="valid">';
|
251 |
+
echo $license_manager->render_license_block('lc-extensions');
|
252 |
+
echo '</div>';
|
253 |
+
echo '</div>';
|
254 |
+
}
|
255 |
+
?>
|
256 |
+
</div>
|
includes/plugin-options-framework/tab-seo.php
DELETED
@@ -1,107 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Editor Messages
|
4 |
-
*
|
5 |
-
* @package LiveComposer
|
6 |
-
*/
|
7 |
-
|
8 |
-
// Prevent direct access to the file.
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
-
header( 'HTTP/1.0 403 Forbidden' );
|
11 |
-
exit;
|
12 |
-
}
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Main Tab_Seo Class.
|
16 |
-
*/
|
17 |
-
class LC_Settings_Tab_Seo {
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Premium user
|
21 |
-
*
|
22 |
-
* @var bool
|
23 |
-
*/
|
24 |
-
public $premium_user = false;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* Construct
|
28 |
-
*/
|
29 |
-
public function __construct() {
|
30 |
-
|
31 |
-
if ( $this->is_premium_user() ) {
|
32 |
-
$this->premium_user = true;
|
33 |
-
}
|
34 |
-
|
35 |
-
add_action( 'wp_ajax_dslc-set-hidden-tab-seo', array( $this, 'ajax_set_hidden_tab_seo' ) );
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Our addon active
|
40 |
-
*/
|
41 |
-
public function is_addon_active() {
|
42 |
-
|
43 |
-
if ( function_exists( 'lc_gallery_grid_module_init' ) ||
|
44 |
-
function_exists( 'lcgooglemaps_plugin_init' ) ||
|
45 |
-
function_exists( 'sklc_linecons_alter_icons' ) ||
|
46 |
-
function_exists( 'sklc_addon_anim_filter' ) ||
|
47 |
-
function_exists( 'lc_video_embed_module_init' ) ||
|
48 |
-
function_exists( 'sklc_addon_prnep_register_module' ) ||
|
49 |
-
function_exists( 'sklc_ppcw_options' ) ||
|
50 |
-
function_exists( 'lcwoo_plugin_init' ) ||
|
51 |
-
class_exists( 'LC_Before_After_Image' )
|
52 |
-
) {
|
53 |
-
return true;
|
54 |
-
} else {
|
55 |
-
return false;
|
56 |
-
}
|
57 |
-
}
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Premium User
|
61 |
-
*/
|
62 |
-
public function is_premium_user() {
|
63 |
-
|
64 |
-
if ( true == get_option( 'dslc_premium_user' ) ) {
|
65 |
-
return true;
|
66 |
-
} else {
|
67 |
-
if ( true == $this->is_addon_active() ) {
|
68 |
-
update_option( 'dslc_premium_user', true );
|
69 |
-
return true;
|
70 |
-
} else {
|
71 |
-
return false;
|
72 |
-
}
|
73 |
-
}
|
74 |
-
}
|
75 |
-
|
76 |
-
/**
|
77 |
-
* Get hidden ( panel )
|
78 |
-
*/
|
79 |
-
public function get_hidden() {
|
80 |
-
return get_option( 'dslc_tab_seo_hidden', false );
|
81 |
-
}
|
82 |
-
|
83 |
-
/**
|
84 |
-
* Display the tab of seo
|
85 |
-
*/
|
86 |
-
public function print_tab_seo() {
|
87 |
-
?>
|
88 |
-
<div class="wrap lc-wrap">
|
89 |
-
<div class="dslc-panel dslc-panel-seo">
|
90 |
-
<a href="#" data-can-hide="<?php echo $this->premium_user; ?>" class="dslc-tab-seo-hide"><?php echo __( 'Hide this', 'live-composer-page-builder' ); ?></a>
|
91 |
-
<div class="dslc-panel-content">
|
92 |
-
<h2><?php _e( "Do you want more traffic?", 'live-composer-page-builder' ); ?></h2>
|
93 |
-
<p class="about-description"><?php _e( "Don't pay SEO, pay only for results! <br>Enter your domain to see exactly how you can start ranking your site today", 'live-composer-page-builder' ); ?></p>
|
94 |
-
<form id="dslc-seo-search" action="https://www.rankpay.com/keywords" method="post" target="_blank">
|
95 |
-
<input type="hidden" value="2579" name="pid">
|
96 |
-
<label>Your domain:</label><br>
|
97 |
-
<input type="text" value="<?php echo get_home_url(); ?>" name="preload_domain"><br>
|
98 |
-
<label>Target keyword:</label><br>
|
99 |
-
<input type="text" value="" name="preload_keyword"><br>
|
100 |
-
<button type="submit">Get Pricing</button>
|
101 |
-
</form>
|
102 |
-
</div>
|
103 |
-
</div>
|
104 |
-
</div>
|
105 |
-
<?php
|
106 |
-
}
|
107 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/plugin-options-framework/tab-themes.php
CHANGED
@@ -8,46 +8,40 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
|
9 |
<div class="wrap lc-wrap">
|
10 |
|
11 |
-
<h2 class="dslc-tab-heading">Customize Everything With Our <a href="https://livecomposerplugin.com/themes/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=section-title" target="_blank">Free Themes</a></h2>
|
12 |
|
13 |
-
<div class="extension-browser rendered">
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
|
21 |
-
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
|
30 |
-
</div>
|
31 |
-
|
32 |
-
<div class="extension" tabindex="0" >
|
33 |
-
<div class="extension-screenshot">
|
34 |
-
<img alt="" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-theme-orao.png">
|
35 |
</div>
|
36 |
|
37 |
-
<
|
|
|
|
|
|
|
38 |
|
39 |
-
|
40 |
-
<div class="extension-actions">
|
41 |
-
<a href="//livecomposerplugin.com/downloads/orao-theme/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=orao" target="_blank" class="button button-secondary activate">Details</a>
|
42 |
-
<a href="//livecomposerplugin.com/downloads/orao-theme/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=orao" target="_blank" class="button button-primary load-customize hide-if-no-customize">Free Download</a>
|
43 |
-
</div>
|
44 |
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
46 |
</div>
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
</div><?php /* extensions browser */ ?>
|
51 |
-
|
52 |
-
|
53 |
-
</div>
|
8 |
|
9 |
<div class="wrap lc-wrap">
|
10 |
|
11 |
+
<h2 class="dslc-tab-heading">Customize Everything With Our <a href="https://livecomposerplugin.com/themes/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=section-title" target="_blank">Free Themes</a></h2>
|
12 |
|
13 |
+
<div class="extension-browser rendered">
|
14 |
+
<div class="extensions wp-clearfix">
|
15 |
|
16 |
+
<div class="extension" tabindex="0" >
|
17 |
+
<div class="extension-screenshot">
|
18 |
+
<img alt="" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-theme-blank.png">
|
19 |
+
</div>
|
20 |
|
21 |
+
<a href="//livecomposerplugin.com/downloads/blank-theme/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=blank" target="_blank" class="more-details">More Details</a>
|
22 |
|
23 |
+
<h2 class="extension-name"><em>Theme:</em> BLANK Theme <span class="price"><span class="dashicons dashicons-cart"></span> Free</span></h2>
|
24 |
+
<div class="extension-actions">
|
25 |
+
<a href="//livecomposerplugin.com/downloads/blank-theme/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=blank" target="_blank" class="button button-secondary activate">Details</a>
|
26 |
+
<a href="//livecomposerplugin.com/downloads/blank-theme/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=blank" target="_blank" class="button button-primary load-customize hide-if-no-customize">Free Download</a>
|
27 |
+
</div>
|
28 |
|
29 |
+
<!-- <div class="extension-update">Update Available</div> -->
|
|
|
|
|
|
|
|
|
|
|
30 |
</div>
|
31 |
|
32 |
+
<div class="extension" tabindex="0" >
|
33 |
+
<div class="extension-screenshot">
|
34 |
+
<img alt="" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-theme-orao.png">
|
35 |
+
</div>
|
36 |
|
37 |
+
<a href="//livecomposerplugin.com/downloads/orao-theme/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=orao" target="_blank" class="more-details">More Details</a>
|
|
|
|
|
|
|
|
|
38 |
|
39 |
+
<h2 class="extension-name"><em>Theme:</em> Orao Creative <span class="price"><span class="dashicons dashicons-cart"></span> Free</span></h2>
|
40 |
+
<div class="extension-actions">
|
41 |
+
<a href="//livecomposerplugin.com/downloads/orao-theme/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=orao" target="_blank" class="button button-secondary activate">Details</a>
|
42 |
+
<a href="//livecomposerplugin.com/downloads/orao-theme/?utm_source=wp-admin&utm_medium=theme-tab&utm_campaign=orao" target="_blank" class="button button-primary load-customize hide-if-no-customize">Free Download</a>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
</div>
|
46 |
+
</div><?php /* extensions browser */ ?>
|
47 |
+
</div>
|
|
|
|
|
|
|
|
|
|
includes/plugin-options-framework/tab-woo.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Prevent direct access to the file.
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
header( 'HTTP/1.0 403 Forbidden' );
|
5 |
+
exit;
|
6 |
+
}
|
7 |
+
?>
|
8 |
+
<div class="wrap lc-wrap lc-centered-panels lc-wider-panel lc-tab-woo lc-admin-tab-content">
|
9 |
+
|
10 |
+
<?php
|
11 |
+
// Get list of all plugin (active and inactive).
|
12 |
+
$all_plugins = get_plugins();
|
13 |
+
|
14 |
+
// ACTIVATE NOTICE: Check if plugin is already installed but not active.
|
15 |
+
if ( array_key_exists( 'lc-woo-integration/lc-woo-integration.php', $all_plugins ) && is_plugin_inactive( 'lc-woo-integration/lc-woo-integration.php' ) ) : ?>
|
16 |
+
<div class="dslc-panel lc-panel-non-active-plugin">
|
17 |
+
<span class="dashicons dashicons-warning" style="color:#D76D50; margin-right:8px;"></span> <?php _e( 'Looks like <strong>WooCommerce Integration for Live Composer</strong> plugin installed, but not active.', 'live-composer-page-builder' ); ?>
|
18 |
+
<a href="#" class="button button-primary lc-activate-plugin" data-plugin="lc-woo-integration" data-action-nonce="<?php echo wp_create_nonce( 'dslc-ajax-activate-plugin-lc-woo-integration' ) ?>">Activate It Now</a>
|
19 |
+
</div>
|
20 |
+
<?php endif;
|
21 |
+
|
22 |
+
// AD PANEL: If WooIntegration is inactive.
|
23 |
+
if ( is_plugin_inactive( 'lc-woo-integration/lc-woo-integration.php' ) ) : ?>
|
24 |
+
<div class="dslc-panel lc-divided-panels lc-panel-woo lc-dark-panel padding-medium"
|
25 |
+
style="background-image:url(<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-woo-bg.png)" >
|
26 |
+
<div class="lc-text-center">
|
27 |
+
<p class="lc-panel-icon-hero"><span class="dashicons dashicons-cart"></span></p>
|
28 |
+
<h3 class="lc-huge"><?php _e( 'WooCommerce Integration', 'live-composer-page-builder' ); ?></h3>
|
29 |
+
<p class="lc-description"><?php _e( 'Now you can fully customize your WooCommerce website without any coding. Visually adjust designs or create from scratch product pages using our drag & drop builder.' , 'live-composer-page-builder'); ?></p>
|
30 |
+
</div>
|
31 |
+
<ul class="lc-column-list" style="padding-left:10%;">
|
32 |
+
<li><span class="dashicons dashicons-yes"></span> +22 Woo Modules</li>
|
33 |
+
<li><span class="dashicons dashicons-yes"></span> Design Product Pages</li>
|
34 |
+
<li><span class="dashicons dashicons-yes"></span> Design Product Listings</li>
|
35 |
+
<li><span class="dashicons dashicons-yes"></span> Customize Shopping Cart</li>
|
36 |
+
<li><span class="dashicons dashicons-yes"></span> Customize Checkout Form</li>
|
37 |
+
<li><span class="dashicons dashicons-yes"></span> Customize Account Section</li>
|
38 |
+
</ul>
|
39 |
+
</div>
|
40 |
+
<div class="dslc-panel lc-panel-cta lc-divided-panels no-top-margin">
|
41 |
+
<div class="lc-panel-third">
|
42 |
+
<p><?php _e( '30 Days Money Back Guarantee' , 'live-composer-page-builder'); ?></p>
|
43 |
+
</div>
|
44 |
+
<div class="lc-panel-third">
|
45 |
+
<p><a href="https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=woo-tab&utm_campaign=intro-block" class="button button-primary button-hero" target="_blank">Buy Today For 15% OFF</a></p>
|
46 |
+
</div>
|
47 |
+
|
48 |
+
<div class="lc-panel-third lc-text-right">
|
49 |
+
<p><span class="promo-code">Promo code: <strong>HAPPY-<?php echo $today_day; ?></strong></span></p>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
<?php endif;
|
53 |
+
|
54 |
+
// LICENSE PANEL: If extension is active.
|
55 |
+
if ( is_plugin_active( 'lc-woo-integration/lc-woo-integration.php' ) ) {
|
56 |
+
$license_manager = new LC_License_Manager;
|
57 |
+
$license_status = $license_manager->get_license_status('lc-woo-integration');
|
58 |
+
|
59 |
+
if ( 'valid' !== $license_status ) {
|
60 |
+
$license_status = 'invalid';
|
61 |
+
}
|
62 |
+
|
63 |
+
echo '<div data-license-status="' . $license_status . '">';
|
64 |
+
// Top license block (shows when issues or no license set).
|
65 |
+
// echo '<div data-show-if-license="invalid">';
|
66 |
+
echo $license_manager->render_license_block('lc-woo-integration');
|
67 |
+
// echo '</div>';
|
68 |
+
|
69 |
+
// Tab heading (shows only when there is no problem with license).
|
70 |
+
// echo '<div class="lc-tab-heading" data-show-if-license="valid">';
|
71 |
+
// echo '<h1 class="wp-heading-inline">' . __('Premium Extensions', 'live-composer-page-builder') . ' <span class="title-count theme-count">' . count( $extensions ) . '</span> </h1>';
|
72 |
+
// echo '<a href="#lc-license-block" class="button lc-license-status-button"><span class="dashicons dashicons-yes"></span> License is acitve</a>';
|
73 |
+
// echo '</div>';
|
74 |
+
echo '</div>';
|
75 |
+
|
76 |
+
}
|
77 |
+
?>
|
78 |
+
|
79 |
+
</div>
|
includes/plugin-updates/admin-license-manager.js
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Soft scroll on "License is active" button.
|
3 |
+
*/
|
4 |
+
jQuery(document).on('click', '.lc-license-status-button', function (e) {
|
5 |
+
e.preventDefault();
|
6 |
+
|
7 |
+
jQuery('html, body').animate({
|
8 |
+
scrollTop: jQuery('a[name="lc-license-block"]').offset().top
|
9 |
+
}, 1000);
|
10 |
+
});
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Activate premium extension plugin.
|
14 |
+
*/
|
15 |
+
jQuery(document).on('click', '.lc-activate-plugin', function (e) {
|
16 |
+
e.preventDefault();
|
17 |
+
|
18 |
+
var pluginToActivate = jQuery(e.target).attr('data-plugin');
|
19 |
+
if (undefined === pluginToActivate || !pluginToActivate) return false;
|
20 |
+
|
21 |
+
jQuery(e.target).html('<span class="dashicons dashicons-update"></span>');
|
22 |
+
|
23 |
+
jQuery.ajax({
|
24 |
+
type: "POST",
|
25 |
+
data: {
|
26 |
+
security: e.target.getAttribute('data-action-nonce'),
|
27 |
+
action: 'dslc-ajax-activate-plugin',
|
28 |
+
plugin: pluginToActivate,
|
29 |
+
},
|
30 |
+
url: ajaxurl,
|
31 |
+
}).done(function (response) {
|
32 |
+
location.reload();
|
33 |
+
})
|
34 |
+
});
|
35 |
+
|
36 |
+
/**
|
37 |
+
* A very simple message popup. Used to show updated status of the license.
|
38 |
+
*/
|
39 |
+
var showPopupMessage = function (message, style, delay) {
|
40 |
+
|
41 |
+
console.log('showPopupMessage');
|
42 |
+
|
43 |
+
if (undefined === message) return;
|
44 |
+
if (undefined === style || '' === style) var style = 'normal';
|
45 |
+
if (undefined === delay) var delay = 4000;
|
46 |
+
|
47 |
+
|
48 |
+
var icon = '<span class="dashicons dashicons-info"></span>';
|
49 |
+
|
50 |
+
if ('warning' === style) {
|
51 |
+
icon = '<span class="dashicons dashicons-warning" style="color:#D96F53"></span>';
|
52 |
+
}
|
53 |
+
|
54 |
+
jQuery('body').append('<div class="lc-admin-message" style="display:none">' + icon + message + '</div>');
|
55 |
+
jQuery(".lc-admin-message").slideDown("slow", function () {
|
56 |
+
// Animation complete.
|
57 |
+
});
|
58 |
+
|
59 |
+
var hide_message = function () {
|
60 |
+
jQuery(".lc-admin-message").slideUp("slow", function () {
|
61 |
+
// Animation complete.
|
62 |
+
jQuery(".lc-admin-message").remove();
|
63 |
+
});
|
64 |
+
};
|
65 |
+
|
66 |
+
window.setTimeout(hide_message, delay);
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Activate plugin license.
|
71 |
+
*/
|
72 |
+
jQuery(document).on('click', '.lc-toggle-license', function (e) {
|
73 |
+
e.preventDefault();
|
74 |
+
|
75 |
+
var buttonLabelBackup = jQuery(e.target).html();
|
76 |
+
var actionType = e.target.getAttribute('data-action-type');
|
77 |
+
var lincenseField = jQuery(e.target).closest('.lc-license-block').find('.lc-license-field');
|
78 |
+
|
79 |
+
jQuery(e.target).html('<span class="dashicons dashicons-update"></span>');
|
80 |
+
|
81 |
+
if ( 'activate' !== actionType && 'deactivate' !== actionType ) {
|
82 |
+
return;
|
83 |
+
}
|
84 |
+
|
85 |
+
if ( lincenseField[0] !== undefined ) {
|
86 |
+
lincenseField = lincenseField[0];
|
87 |
+
} else {
|
88 |
+
console.error('Can\'t find extension parent for the clicked element.')
|
89 |
+
return false;
|
90 |
+
}
|
91 |
+
|
92 |
+
var pluginId = lincenseField.getAttribute('data-plugin-id');
|
93 |
+
var licenseKey = lincenseField.value;
|
94 |
+
|
95 |
+
jQuery.ajax({
|
96 |
+
type: "POST",
|
97 |
+
data: {
|
98 |
+
security: e.target.getAttribute('data-action-nonce'),
|
99 |
+
action: 'dslc-ajax-toggle-license',
|
100 |
+
plugin: pluginId,
|
101 |
+
license: licenseKey,
|
102 |
+
todo: actionType,
|
103 |
+
},
|
104 |
+
url: ajaxurl,
|
105 |
+
}).done(function (response) {
|
106 |
+
|
107 |
+
jQuery(e.target).html(buttonLabelBackup);
|
108 |
+
|
109 |
+
var messageStyle = '';
|
110 |
+
if ( response.success === false ) {
|
111 |
+
messageStyle = 'warning';
|
112 |
+
}
|
113 |
+
|
114 |
+
showPopupMessage( response['message'], messageStyle );
|
115 |
+
|
116 |
+
// Softly scroll to the top.
|
117 |
+
jQuery('html, body').animate({
|
118 |
+
scrollTop: 0
|
119 |
+
}, 700);
|
120 |
+
|
121 |
+
if (response.status === "valid") {
|
122 |
+
jQuery('[data-license-status]').attr('data-license-status', 'valid');
|
123 |
+
} else {
|
124 |
+
jQuery('[data-license-status]').attr('data-license-status', 'invalid');
|
125 |
+
}
|
126 |
+
})
|
127 |
+
|
128 |
+
});
|
includes/plugin-updates/lc-license-manager.class.php
ADDED
@@ -0,0 +1,645 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit; // Exit if accessed directly.
|
4 |
+
}
|
5 |
+
|
6 |
+
|
7 |
+
if ( ! class_exists( 'LC_License_Manager' ) ):
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Core Class
|
11 |
+
*/
|
12 |
+
class LC_License_Manager {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Path to this module dir.
|
16 |
+
*
|
17 |
+
* @var string
|
18 |
+
*/
|
19 |
+
private $abspath;
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Was this class ever instantiated?
|
23 |
+
*
|
24 |
+
* @var bool
|
25 |
+
*/
|
26 |
+
public static $initiated = false;
|
27 |
+
|
28 |
+
/**
|
29 |
+
* All the data we know about module licenses.
|
30 |
+
*
|
31 |
+
* @var array
|
32 |
+
*/
|
33 |
+
public static $licenses = array();
|
34 |
+
|
35 |
+
public static $store_url = 'https://livecomposerplugin.com';
|
36 |
+
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Do all the required job on core object creation.
|
40 |
+
*/
|
41 |
+
function __construct( $plugin_data=false ) {
|
42 |
+
// Actions that needs to be lunched only once.
|
43 |
+
if ( ! self::$initiated ) {
|
44 |
+
$this->abspath = __DIR__;
|
45 |
+
$this->set_license_from_db();
|
46 |
+
$this->require_files();
|
47 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'load_admin_scripts' ) );
|
48 |
+
add_action( 'admin_init', array( $this, 'setup_plugin_updater' ), 10 );
|
49 |
+
// add_action( 'wp_ajax_dslc-ajax-activate-license', array( $this, 'ajax_activate_license' ) );
|
50 |
+
add_action( 'wp_ajax_dslc-ajax-toggle-license', array( $this, 'ajax_toggle_license' ) );
|
51 |
+
add_action( 'wp_ajax_dslc-ajax-activate-plugin', array( $this, 'activate_installed_plugin' ) );
|
52 |
+
add_action( 'current_screen', array( $this, 'initiate_license_check' ), 0 );
|
53 |
+
self::$initiated = true;
|
54 |
+
}
|
55 |
+
|
56 |
+
if ( $plugin_data ) {
|
57 |
+
$this->register_licensed_plugin( $plugin_data );
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Load JS/CSS for this module.
|
63 |
+
*/
|
64 |
+
public function load_admin_scripts( $hook ){
|
65 |
+
/* If current screen is Live Composer options page */
|
66 |
+
if ( 'toplevel_page_dslc_plugin_options' === $hook) {
|
67 |
+
wp_enqueue_script( 'dslc-licensemanager-js-admin', DS_LIVE_COMPOSER_URL . 'includes/plugin-updates/admin-license-manager.js', array( 'jquery' ), DS_LIVE_COMPOSER_VER );
|
68 |
+
// wp_enqueue_style( 'dslc-plugin-options-css-admin', DS_LIVE_COMPOSER_URL . 'includes/plugin-options-framework/css/main' . $min_suffix . '.css', array(), DS_LIVE_COMPOSER_VER );
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Register plugin that needs license and automatic updates.
|
74 |
+
*/
|
75 |
+
public function register_licensed_plugin( $plugin_data ) {
|
76 |
+
$plugin_slug = false;
|
77 |
+
$item_id = false;
|
78 |
+
$plugin_version = 0;
|
79 |
+
$plugin_author = '';
|
80 |
+
$plugin_file = '';
|
81 |
+
|
82 |
+
if ( isset( $plugin_data['slug'] ) ) {
|
83 |
+
$plugin_slug = $plugin_data['slug'];
|
84 |
+
} else {
|
85 |
+
return;
|
86 |
+
}
|
87 |
+
|
88 |
+
if ( isset( $plugin_data['product_id'] ) ) {
|
89 |
+
$item_id = $plugin_data['product_id'];
|
90 |
+
} else {
|
91 |
+
return;
|
92 |
+
}
|
93 |
+
|
94 |
+
if ( isset( $plugin_data['file'] ) ) {
|
95 |
+
$plugin_file = $plugin_data['file'];
|
96 |
+
} else {
|
97 |
+
return;
|
98 |
+
}
|
99 |
+
|
100 |
+
if ( isset( $plugin_data['version'] ) ) {
|
101 |
+
$plugin_version = $plugin_data['version'];
|
102 |
+
} else {
|
103 |
+
return;
|
104 |
+
}
|
105 |
+
|
106 |
+
if ( isset( $plugin_data['author'] ) ) {
|
107 |
+
$plugin_author = $plugin_data['author'];
|
108 |
+
} else {
|
109 |
+
return;
|
110 |
+
}
|
111 |
+
|
112 |
+
self::$licenses[ $plugin_slug ]['version'] = $plugin_version;
|
113 |
+
self::$licenses[ $plugin_slug ]['author'] = $plugin_author;
|
114 |
+
self::$licenses[ $plugin_slug ]['item_id'] = $item_id;
|
115 |
+
self::$licenses[ $plugin_slug ]['plugin_file'] = $plugin_file;
|
116 |
+
|
117 |
+
if ( ! isset( self::$licenses[ $plugin_slug ]['license'] ) ) {
|
118 |
+
self::$licenses[ $plugin_slug ]['license'] = '';
|
119 |
+
}
|
120 |
+
|
121 |
+
if ( ! isset( self::$licenses[ $plugin_slug ]['status'] ) ) {
|
122 |
+
self::$licenses[ $plugin_slug ]['status'] = '';
|
123 |
+
}
|
124 |
+
|
125 |
+
if ( ! isset( self::$licenses[ $plugin_slug ]['expires'] ) ) {
|
126 |
+
self::$licenses[ $plugin_slug ]['expires'] = '';
|
127 |
+
}
|
128 |
+
|
129 |
+
if ( ! isset( self::$licenses[ $plugin_slug ]['updated'] ) ) {
|
130 |
+
self::$licenses[ $plugin_slug ]['updated'] = '';
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Setup the updater.
|
136 |
+
*/
|
137 |
+
public function setup_plugin_updater() {
|
138 |
+
|
139 |
+
foreach ( self::$licenses as $slug => $data ) {
|
140 |
+
if ( ! isset( $data['plugin_file'] ) ||
|
141 |
+
! isset( $data['version'] ) ||
|
142 |
+
! isset( $data['item_id'] ) ||
|
143 |
+
! isset( $data['author'] ) ) return;
|
144 |
+
|
145 |
+
// Setup the updater.
|
146 |
+
$edd_updater = new LC_Plugins_Updater(
|
147 |
+
self::$store_url,
|
148 |
+
$data['plugin_file'],
|
149 |
+
array(
|
150 |
+
'version' => $data['version'],
|
151 |
+
'license' => $data['license'],
|
152 |
+
'item_id' => $data['item_id'], // Product ID.
|
153 |
+
'author' => $data['author'],
|
154 |
+
'url' => home_url(),
|
155 |
+
)
|
156 |
+
);
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
public function set_license_from_db() {
|
161 |
+
// Retrieve our license key from the DB.
|
162 |
+
$licenses = get_option( 'dslc_licenses', array() );
|
163 |
+
|
164 |
+
if ( ! is_array( $licenses ) ) {
|
165 |
+
update_option( 'dslc_licenses', array() );
|
166 |
+
return;
|
167 |
+
}
|
168 |
+
|
169 |
+
foreach ( $licenses as $slug => $data) {
|
170 |
+
|
171 |
+
if ( isset( $data['status'] ) ) {
|
172 |
+
self::$licenses[ $slug ]['status'] = $data['status'];
|
173 |
+
}
|
174 |
+
|
175 |
+
if ( isset( $data['license'] ) ) {
|
176 |
+
self::$licenses[ $slug ]['license'] = $data['license'];
|
177 |
+
}
|
178 |
+
|
179 |
+
if ( isset( $data['expires'] ) ) {
|
180 |
+
self::$licenses[ $slug ]['expires'] = $data['expires'];
|
181 |
+
}
|
182 |
+
|
183 |
+
if ( isset( $data['updated'] ) ) {
|
184 |
+
self::$licenses[ $slug ]['updated'] = $data['updated'];
|
185 |
+
}
|
186 |
+
}
|
187 |
+
}
|
188 |
+
|
189 |
+
public function update_license_in_db() {
|
190 |
+
$data_to_save = array();
|
191 |
+
|
192 |
+
foreach ( self::$licenses as $slug => $data ) {
|
193 |
+
if ( isset( $data['status'] ) ) {
|
194 |
+
$data_to_save[ $slug ]['status'] = $data['status'];
|
195 |
+
}
|
196 |
+
|
197 |
+
if ( isset( $data['license'] ) ) {
|
198 |
+
$data_to_save[ $slug ]['license'] = $data['license'];
|
199 |
+
}
|
200 |
+
|
201 |
+
if ( isset( $data['expires'] ) ) {
|
202 |
+
$data_to_save[ $slug ]['expires'] = $data['expires'];
|
203 |
+
}
|
204 |
+
|
205 |
+
$data_to_save[ $slug ]['updated'] = current_time( 'timestamp' );
|
206 |
+
}
|
207 |
+
|
208 |
+
update_option( 'dslc_licenses', $data_to_save );
|
209 |
+
}
|
210 |
+
|
211 |
+
public function get_license_data( $plugin_slug ) {
|
212 |
+
if ( ! empty( $plugin_slug ) && isset( self::$licenses[ $plugin_slug ] ) ) {
|
213 |
+
return self::$licenses[ $plugin_slug ];
|
214 |
+
} else {
|
215 |
+
return false;
|
216 |
+
}
|
217 |
+
}
|
218 |
+
|
219 |
+
public function get_license_key( $plugin_slug ) {
|
220 |
+
$data = $this->get_license_data( $plugin_slug );
|
221 |
+
if ( $data && isset( $data['license'] ) ) {
|
222 |
+
return $data['license'];
|
223 |
+
} else {
|
224 |
+
return false;
|
225 |
+
}
|
226 |
+
}
|
227 |
+
|
228 |
+
public function get_license_status( $plugin_slug ) {
|
229 |
+
$data = $this->get_license_data( $plugin_slug );
|
230 |
+
if ( $data && isset( $data['status'] ) ) {
|
231 |
+
return $data['status'];
|
232 |
+
} else {
|
233 |
+
return 'inactive';
|
234 |
+
}
|
235 |
+
}
|
236 |
+
|
237 |
+
public function get_license_expires( $plugin_slug ) {
|
238 |
+
$data = $this->get_license_data( $plugin_slug );
|
239 |
+
if ( $data && isset( $data['expires'] ) ) {
|
240 |
+
return date_i18n( get_option( 'date_format' ), strtotime( $data['expires'], current_time( 'timestamp' ) ) );
|
241 |
+
} else {
|
242 |
+
return false;
|
243 |
+
}
|
244 |
+
}
|
245 |
+
|
246 |
+
/**
|
247 |
+
* Ajax call for activating license.
|
248 |
+
*/
|
249 |
+
public function ajax_toggle_license( $atts ) {
|
250 |
+
// Allowed to do this?
|
251 |
+
if ( is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY_SAVE ) ):
|
252 |
+
|
253 |
+
// The array we'll pass back to the AJAX call.
|
254 |
+
$response = array();
|
255 |
+
$plugin = false;
|
256 |
+
$license = false;
|
257 |
+
$action = false;
|
258 |
+
|
259 |
+
if ( isset( $_POST['plugin'] ) ) {
|
260 |
+
$plugin = sanitize_key( $_POST['plugin'] );
|
261 |
+
}
|
262 |
+
|
263 |
+
if ( isset( $_POST['license'] ) ) {
|
264 |
+
$license = sanitize_key( $_POST['license'] );
|
265 |
+
}
|
266 |
+
|
267 |
+
if ( isset( $_POST['todo'] ) ) {
|
268 |
+
$action = sanitize_key( $_POST['todo'] );
|
269 |
+
}
|
270 |
+
|
271 |
+
// Check Nonce.
|
272 |
+
if ( wp_verify_nonce( sanitize_key( $_POST['security'] ), 'dslc-ajax-activate-license-for-plugin-' . $plugin ) ) {
|
273 |
+
|
274 |
+
// Do the job.
|
275 |
+
if ( $plugin && $license ) {
|
276 |
+
$response = array();
|
277 |
+
$response = $this->toggle_license( $plugin, $license, $action );
|
278 |
+
}
|
279 |
+
|
280 |
+
} else {
|
281 |
+
$response['message'] = 'Error with WP authentification. Try to reload this page.';
|
282 |
+
$response['success'] = false;
|
283 |
+
}
|
284 |
+
|
285 |
+
// Encode response.
|
286 |
+
$response_json = wp_json_encode( $response );
|
287 |
+
|
288 |
+
// Send back the response.
|
289 |
+
header( 'Content-Type: application/json' );
|
290 |
+
echo $response_json;
|
291 |
+
|
292 |
+
// Au revoir.
|
293 |
+
wp_die();
|
294 |
+
// exit;
|
295 |
+
|
296 |
+
endif; // End if is_user_logged_in()...
|
297 |
+
}
|
298 |
+
|
299 |
+
public function toggle_license( $plugin = false, $license = false, $action = false ) {
|
300 |
+
|
301 |
+
|
302 |
+
$status = false;
|
303 |
+
$plugin = esc_attr( $plugin );
|
304 |
+
$license = esc_attr( $license );
|
305 |
+
$action = esc_attr( $action );
|
306 |
+
|
307 |
+
if ( ! $plugin || ! $license || ! $action ) return false;
|
308 |
+
|
309 |
+
$license = trim( $license );
|
310 |
+
|
311 |
+
$item_id = false;
|
312 |
+
|
313 |
+
if ( isset( self::$licenses[ $plugin ] ) &&
|
314 |
+
isset( self::$licenses[ $plugin ]['item_id'] ) ) {
|
315 |
+
$item_id = self::$licenses[ $plugin ]['item_id'];
|
316 |
+
} else {
|
317 |
+
$combined_response['message'] = 'Error: missing item_id parameter.';
|
318 |
+
$combined_response['status'] = false;
|
319 |
+
}
|
320 |
+
|
321 |
+
if ( 'activate' === $action ) {
|
322 |
+
$action = 'activate_license';
|
323 |
+
} elseif ( 'deactivate' === $action ) {
|
324 |
+
$action = 'deactivate_license';
|
325 |
+
}
|
326 |
+
|
327 |
+
// Data to send in our API request.
|
328 |
+
$api_params = array(
|
329 |
+
'edd_action' => $action,
|
330 |
+
'license' => $license,
|
331 |
+
'item_id' => $item_id, // Product id in EDD.
|
332 |
+
'url' => home_url(),
|
333 |
+
);
|
334 |
+
|
335 |
+
// Call the custom API.
|
336 |
+
$response = wp_remote_post( self::$store_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
|
337 |
+
|
338 |
+
// Make sure the response came back okay.
|
339 |
+
if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
|
340 |
+
|
341 |
+
if ( is_wp_error( $response ) ) {
|
342 |
+
$message = $response->get_error_message();
|
343 |
+
} else {
|
344 |
+
$message = __( 'An error occurred, please try again.' );
|
345 |
+
}
|
346 |
+
|
347 |
+
} else {
|
348 |
+
|
349 |
+
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
350 |
+
|
351 |
+
if ( false === $license_data->success ) {
|
352 |
+
|
353 |
+
switch ( $license_data->error ) {
|
354 |
+
|
355 |
+
case 'expired' :
|
356 |
+
|
357 |
+
$message = sprintf(
|
358 |
+
__( 'Your license key expired on %s.' ),
|
359 |
+
date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )
|
360 |
+
);
|
361 |
+
break;
|
362 |
+
|
363 |
+
case 'revoked' :
|
364 |
+
|
365 |
+
$message = __( 'Your license key has been disabled.' );
|
366 |
+
break;
|
367 |
+
|
368 |
+
case 'missing' :
|
369 |
+
|
370 |
+
$message = __( 'Invalid license.' );
|
371 |
+
break;
|
372 |
+
|
373 |
+
case 'invalid' :
|
374 |
+
case 'site_inactive' :
|
375 |
+
|
376 |
+
$message = __( 'Your license is not active for this URL.' );
|
377 |
+
break;
|
378 |
+
|
379 |
+
case 'item_name_mismatch' :
|
380 |
+
|
381 |
+
$message = sprintf( __( 'This appears to be an invalid license key for %s.' ), EDD_SAMPLE_ITEM_NAME );
|
382 |
+
break;
|
383 |
+
|
384 |
+
case 'no_activations_left':
|
385 |
+
|
386 |
+
$message = __( 'Your license key has reached its activation limit.' );
|
387 |
+
break;
|
388 |
+
|
389 |
+
default :
|
390 |
+
|
391 |
+
$message = __( 'An error occurred, please try again.' );
|
392 |
+
break;
|
393 |
+
}
|
394 |
+
}
|
395 |
+
}
|
396 |
+
|
397 |
+
// Success.
|
398 |
+
if ( empty( $message ) ) {
|
399 |
+
|
400 |
+
if ( 'activate_license' === $action ) {
|
401 |
+
$message = __( 'License activated. Expiration date: ' ) . date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) );
|
402 |
+
$status = true; // True - license activated successfully.
|
403 |
+
} elseif ( 'deactivate_license' === $action ) {
|
404 |
+
$message = __( 'License deactivated.' );
|
405 |
+
$status = false; // True - license activated successfully.
|
406 |
+
}
|
407 |
+
}
|
408 |
+
|
409 |
+
// Update license data.
|
410 |
+
$this->set_license_key( $plugin, $license );
|
411 |
+
$this->set_license_status( $plugin, $license_data->license ); // Will be "valid", "invalid", "deactivated".
|
412 |
+
if ( 'valid' === $license_data->license ) {
|
413 |
+
$this->set_license_expires( $plugin, $license_data->expires );
|
414 |
+
} else {
|
415 |
+
$this->set_license_expires( $plugin, false );
|
416 |
+
}
|
417 |
+
|
418 |
+
$combined_response['message'] = $message;
|
419 |
+
$combined_response['status'] = $license_data->license;
|
420 |
+
$combined_response['success'] = $license_data->success;
|
421 |
+
return $combined_response;
|
422 |
+
}
|
423 |
+
|
424 |
+
public function set_license_key( $plugin, $license_key ) {
|
425 |
+
$license_key = trim( esc_attr( $license_key ) );
|
426 |
+
self::$licenses[ $plugin ]['license'] = $license_key;
|
427 |
+
|
428 |
+
$this->update_license_in_db();
|
429 |
+
}
|
430 |
+
|
431 |
+
public function set_license_status( $plugin, $license_status ) {
|
432 |
+
$license_status = trim( esc_attr( $license_status ) );
|
433 |
+
self::$licenses[ $plugin ]['status'] = $license_status;
|
434 |
+
|
435 |
+
$this->update_license_in_db();
|
436 |
+
}
|
437 |
+
|
438 |
+
public function set_license_expires( $plugin, $license_expires ) {
|
439 |
+
$license_expires = trim( esc_attr( $license_expires ) );
|
440 |
+
self::$licenses[ $plugin ]['expires'] = $license_expires;
|
441 |
+
|
442 |
+
$this->update_license_in_db();
|
443 |
+
}
|
444 |
+
|
445 |
+
/**
|
446 |
+
* Initiate plugin license verification if user visits
|
447 |
+
* plugin listings or plugin update pages.
|
448 |
+
* Perform one check per week max.
|
449 |
+
* Once lincense check per time max.
|
450 |
+
*/
|
451 |
+
public function initiate_license_check() {
|
452 |
+
|
453 |
+
$screen = get_current_screen();
|
454 |
+
// Do not proceed if it's not plugins of updates pages.
|
455 |
+
if ( 'plugins' !== $screen->id && 'update-core' !== $screen->id ) {
|
456 |
+
return;
|
457 |
+
}
|
458 |
+
|
459 |
+
$plugin_to_check = false;
|
460 |
+
|
461 |
+
foreach ( self::$licenses as $slug => $data) {
|
462 |
+
$check_this_plugin = true;
|
463 |
+
|
464 |
+
// Do not continue if last checked less than 7 days ago.
|
465 |
+
if ( ! empty( $data['updated'] ) && strtotime( $data['updated'] ) > strtotime('-7 days') ) {
|
466 |
+
$check_this_plugin = false;
|
467 |
+
}
|
468 |
+
|
469 |
+
if ( $check_this_plugin || empty( $data['updated'] ) ) {
|
470 |
+
$plugin_to_check = $slug;
|
471 |
+
break;
|
472 |
+
}
|
473 |
+
}
|
474 |
+
|
475 |
+
if ( $plugin_to_check ) {
|
476 |
+
$this->license_check( $plugin_to_check );
|
477 |
+
}
|
478 |
+
}
|
479 |
+
|
480 |
+
/**
|
481 |
+
* Check if license key is valid.
|
482 |
+
*
|
483 |
+
* @access public
|
484 |
+
* @return void
|
485 |
+
*/
|
486 |
+
public function license_check( $plugin = false ) {
|
487 |
+
|
488 |
+
if ( ! $plugin ||
|
489 |
+
! isset( self::$licenses[ $plugin ] ) ||
|
490 |
+
! isset( self::$licenses[ $plugin ]['license'] ) ||
|
491 |
+
! isset( self::$licenses[ $plugin ]['item_id'] ) ) {
|
492 |
+
return;
|
493 |
+
}
|
494 |
+
|
495 |
+
// Data to send in our API request.
|
496 |
+
$api_params = array(
|
497 |
+
'edd_action'=> 'check_license',
|
498 |
+
'license' => self::$licenses[ $plugin ]['license'],
|
499 |
+
'item_id' => self::$licenses[ $plugin ]['item_id'],
|
500 |
+
'url' => home_url(),
|
501 |
+
);
|
502 |
+
|
503 |
+
// Call the API.
|
504 |
+
$response = wp_remote_post(
|
505 |
+
self::$store_url,
|
506 |
+
array(
|
507 |
+
'timeout' => 15,
|
508 |
+
'sslverify' => false,
|
509 |
+
'body' => $api_params,
|
510 |
+
)
|
511 |
+
);
|
512 |
+
|
513 |
+
// Verify response.
|
514 |
+
if ( is_wp_error( $response ) ) {
|
515 |
+
return false;
|
516 |
+
}
|
517 |
+
|
518 |
+
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
519 |
+
|
520 |
+
// Update local licende data.
|
521 |
+
$this->set_license_status( $plugin, $license_data->license );
|
522 |
+
|
523 |
+
if ( 'invalid' !== $license_data->license ) {
|
524 |
+
$this->set_license_expires( $plugin, $license_data->expires );
|
525 |
+
} else {
|
526 |
+
$this->set_license_expires( $plugin, false );
|
527 |
+
}
|
528 |
+
}
|
529 |
+
|
530 |
+
/**
|
531 |
+
* Required actions on plugin bootstrap.
|
532 |
+
*
|
533 |
+
* @return void
|
534 |
+
*/
|
535 |
+
public function require_files() {
|
536 |
+
// Load EDD custom updater.
|
537 |
+
require_once $this->abspath . '/lc-plugins-updater.class.php';
|
538 |
+
}
|
539 |
+
|
540 |
+
/**
|
541 |
+
* Setup the updater.
|
542 |
+
*/
|
543 |
+
public function render_license_block( $plugin ) {
|
544 |
+
|
545 |
+
if ( empty( $plugin ) ) {
|
546 |
+
return;
|
547 |
+
}
|
548 |
+
|
549 |
+
$license_status = $this->get_license_status( $plugin );
|
550 |
+
$license_key = $this->get_license_key( $plugin );
|
551 |
+
$license_expires = $this->get_license_expires( $plugin );
|
552 |
+
|
553 |
+
$license_block_variants = array(
|
554 |
+
'invalid' => array(
|
555 |
+
'text_header' => __( 'Please enter your license to activate the plugin', 'live-composer-page-builder' ),
|
556 |
+
'text_body' => __( 'Thanks for buying our plugin, to activate all the features, please enter your license key bellow (<a href="https://livecomposerplugin.com/your-account/license/" target="_blank">get your lincese key here</a>):', 'live-composer-page-builder' ),
|
557 |
+
'text_button' => __( 'Activate', 'live-composer-page-builder' ),
|
558 |
+
'button_action' => 'activate',
|
559 |
+
),
|
560 |
+
'valid' => array(
|
561 |
+
'text_header' => __( 'License is active', 'live-composer-page-builder' ),
|
562 |
+
'text_body' => __( 'Thank you for buying our product. <br />Your license is active and valid. <br />It will expire on ', 'live-composer-page-builder' ) . '<strong>' . $license_expires . '</strong>',
|
563 |
+
'text_button' => __( 'Deactivate', 'live-composer-page-builder' ),
|
564 |
+
'button_action' => 'deactivate',
|
565 |
+
),
|
566 |
+
);
|
567 |
+
// deactivated
|
568 |
+
|
569 |
+
foreach ( $license_block_variants as $staus => $strings ) : ?>
|
570 |
+
<div class="dslc-panel lc-panel-license lc-divided-panels padding-medium" data-show-if-license="<?php echo $staus; ?>">
|
571 |
+
<div class="lc-panel-half">
|
572 |
+
<h3 class="lc-huge margin-top-half"><?php echo esc_html( $strings['text_header'] ); ?></h3>
|
573 |
+
<p class="lc-larger-text"><?php echo $strings['text_body']; ?></p>
|
574 |
+
<p class="lc-license-block">
|
575 |
+
<span class="dashicons dashicons-admin-network"></span>
|
576 |
+
<input
|
577 |
+
type="text"
|
578 |
+
class="lc-license-field"
|
579 |
+
placeholder="Your license key here"
|
580 |
+
value="<?php echo $license_key; ?>"
|
581 |
+
data-plugin-id="<?php echo $plugin; ?>" />
|
582 |
+
<a href="#"
|
583 |
+
class="button button-primary button-hero lc-toggle-license"
|
584 |
+
data-action-type="<?php echo $strings['button_action']; ?>"
|
585 |
+
data-action-nonce="<?php echo wp_create_nonce( 'dslc-ajax-activate-license-for-plugin-' . $plugin ) ?>"
|
586 |
+
><?php echo esc_html( $strings['text_button'] ); ?></a>
|
587 |
+
<span class="lc-license-status"></span>
|
588 |
+
</p>
|
589 |
+
</div>
|
590 |
+
<div class="lc-panel-half lc-image-column">
|
591 |
+
<?php if ( 'lc-extensions' === $plugin ) : ?>
|
592 |
+
<img alt="<?php _e( 'Additional Premium Modules', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-mink-extensions.png">
|
593 |
+
<?php elseif ( 'lc-woo-integration' === $plugin ) : ?>
|
594 |
+
<img alt="<?php _e( 'WooCommerce Integration', 'live-composer-page-builder' ); ?>" src="<?php echo DS_LIVE_COMPOSER_URL; ?>/images/lc-extension-woo.png">
|
595 |
+
<?php endif;?>
|
596 |
+
</div>
|
597 |
+
</div>
|
598 |
+
<?php
|
599 |
+
endforeach;
|
600 |
+
}
|
601 |
+
|
602 |
+
/**
|
603 |
+
* Ajax call for activating license.
|
604 |
+
*/
|
605 |
+
public function activate_installed_plugin( $atts ) {
|
606 |
+
// Allowed to do this?
|
607 |
+
if ( is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY_SAVE ) ):
|
608 |
+
|
609 |
+
// The array we'll pass back to the AJAX call.
|
610 |
+
$response = false;
|
611 |
+
$plugin = false;
|
612 |
+
|
613 |
+
if ( isset( $_POST['plugin'] ) ) {
|
614 |
+
$plugin = sanitize_key( $_POST['plugin'] );
|
615 |
+
}
|
616 |
+
|
617 |
+
// Check Nonce.
|
618 |
+
if ( wp_verify_nonce( sanitize_key( $_POST['security'] ), 'dslc-ajax-activate-plugin-' . $plugin ) ) {
|
619 |
+
|
620 |
+
$result = activate_plugin( $plugin . '/' . $plugin . '.php' );
|
621 |
+
|
622 |
+
if ( ! is_wp_error( $result ) ) {
|
623 |
+
$response = true;
|
624 |
+
}
|
625 |
+
|
626 |
+
} else {
|
627 |
+
$response['message'] = 'Error with WP authentification. Try to reload this page.';
|
628 |
+
$response['success'] = false;
|
629 |
+
}
|
630 |
+
|
631 |
+
// Return response.
|
632 |
+
echo $response;
|
633 |
+
|
634 |
+
// Au revoir.
|
635 |
+
wp_die();
|
636 |
+
// exit;
|
637 |
+
|
638 |
+
endif; // End if is_user_logged_in()...
|
639 |
+
}
|
640 |
+
}
|
641 |
+
|
642 |
+
endif; // if ( ! class_exists( 'LC_License_Manager' ) ).
|
643 |
+
|
644 |
+
// Start License Manager.
|
645 |
+
$lc_license_manager = new LC_License_Manager;
|
includes/plugin-updates/lc-plugins-updater.class.php
ADDED
@@ -0,0 +1,487 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Exit if accessed directly
|
4 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Allows plugins to use their own update API.
|
8 |
+
*
|
9 |
+
* @author Easy Digital Downloads
|
10 |
+
* @version 1.6.15
|
11 |
+
*/
|
12 |
+
class LC_Plugins_Updater {
|
13 |
+
|
14 |
+
private $api_url = '';
|
15 |
+
private $api_data = array();
|
16 |
+
private $name = '';
|
17 |
+
private $slug = '';
|
18 |
+
private $version = '';
|
19 |
+
private $wp_override = false;
|
20 |
+
private $cache_key = '';
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Class constructor.
|
24 |
+
*
|
25 |
+
* @uses plugin_basename()
|
26 |
+
* @uses hook()
|
27 |
+
*
|
28 |
+
* @param string $_api_url The URL pointing to the custom API endpoint.
|
29 |
+
* @param string $_plugin_file Path to the plugin file.
|
30 |
+
* @param array $_api_data Optional data to send with API calls.
|
31 |
+
*/
|
32 |
+
public function __construct( $_api_url, $_plugin_file, $_api_data = null ) {
|
33 |
+
|
34 |
+
global $edd_plugin_data;
|
35 |
+
|
36 |
+
$this->api_url = trailingslashit( $_api_url );
|
37 |
+
$this->api_data = $_api_data;
|
38 |
+
$this->name = plugin_basename( $_plugin_file );
|
39 |
+
$this->slug = basename( $_plugin_file, '.php' );
|
40 |
+
$this->version = $_api_data['version'];
|
41 |
+
$this->wp_override = isset( $_api_data['wp_override'] ) ? (bool) $_api_data['wp_override'] : false;
|
42 |
+
$this->beta = ! empty( $this->api_data['beta'] ) ? true : false;
|
43 |
+
$this->cache_key = 'edd_sl_' . md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
|
44 |
+
|
45 |
+
$edd_plugin_data[ $this->slug ] = $this->api_data;
|
46 |
+
|
47 |
+
// Set up hooks.
|
48 |
+
$this->init();
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Set up WordPress filters to hook into WP's update process.
|
54 |
+
*
|
55 |
+
* @uses add_filter()
|
56 |
+
*
|
57 |
+
* @return void
|
58 |
+
*/
|
59 |
+
public function init() {
|
60 |
+
|
61 |
+
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
|
62 |
+
add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 );
|
63 |
+
remove_action( 'after_plugin_row_' . $this->name, 'wp_plugin_update_row', 10 );
|
64 |
+
add_action( 'after_plugin_row_' . $this->name, array( $this, 'show_update_notification' ), 10, 2 );
|
65 |
+
add_action( 'admin_init', array( $this, 'show_changelog' ) );
|
66 |
+
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Check for Updates at the defined API endpoint and modify the update array.
|
71 |
+
*
|
72 |
+
* This function dives into the update API just when WordPress creates its update array,
|
73 |
+
* then adds a custom API call and injects the custom plugin data retrieved from the API.
|
74 |
+
* It is reassembled from parts of the native WordPress plugin update code.
|
75 |
+
* See wp-includes/update.php line 121 for the original wp_update_plugins() function.
|
76 |
+
*
|
77 |
+
* @uses api_request()
|
78 |
+
*
|
79 |
+
* @param array $_transient_data Update array build by WordPress.
|
80 |
+
* @return array Modified update array with custom plugin data.
|
81 |
+
*/
|
82 |
+
public function check_update( $_transient_data ) {
|
83 |
+
|
84 |
+
global $pagenow;
|
85 |
+
|
86 |
+
if ( ! is_object( $_transient_data ) ) {
|
87 |
+
$_transient_data = new stdClass;
|
88 |
+
}
|
89 |
+
|
90 |
+
if ( 'plugins.php' == $pagenow && is_multisite() ) {
|
91 |
+
return $_transient_data;
|
92 |
+
}
|
93 |
+
|
94 |
+
if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $this->name ] ) && false === $this->wp_override ) {
|
95 |
+
return $_transient_data;
|
96 |
+
}
|
97 |
+
|
98 |
+
$version_info = $this->get_cached_version_info();
|
99 |
+
|
100 |
+
if ( false === $version_info ) {
|
101 |
+
$version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug, 'beta' => $this->beta ) );
|
102 |
+
|
103 |
+
$this->set_version_info_cache( $version_info );
|
104 |
+
|
105 |
+
}
|
106 |
+
|
107 |
+
if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) {
|
108 |
+
|
109 |
+
if ( version_compare( $this->version, $version_info->new_version, '<' ) ) {
|
110 |
+
|
111 |
+
$_transient_data->response[ $this->name ] = $version_info;
|
112 |
+
|
113 |
+
}
|
114 |
+
|
115 |
+
$_transient_data->last_checked = current_time( 'timestamp' );
|
116 |
+
$_transient_data->checked[ $this->name ] = $this->version;
|
117 |
+
|
118 |
+
}
|
119 |
+
|
120 |
+
return $_transient_data;
|
121 |
+
}
|
122 |
+
|
123 |
+
/**
|
124 |
+
* show update nofication row -- needed for multisite subsites, because WP won't tell you otherwise!
|
125 |
+
*
|
126 |
+
* @param string $file
|
127 |
+
* @param array $plugin
|
128 |
+
*/
|
129 |
+
public function show_update_notification( $file, $plugin ) {
|
130 |
+
|
131 |
+
if ( is_network_admin() ) {
|
132 |
+
return;
|
133 |
+
}
|
134 |
+
|
135 |
+
if( ! current_user_can( 'update_plugins' ) ) {
|
136 |
+
return;
|
137 |
+
}
|
138 |
+
|
139 |
+
if( ! is_multisite() ) {
|
140 |
+
return;
|
141 |
+
}
|
142 |
+
|
143 |
+
if ( $this->name != $file ) {
|
144 |
+
return;
|
145 |
+
}
|
146 |
+
|
147 |
+
// Remove our filter on the site transient
|
148 |
+
remove_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ), 10 );
|
149 |
+
|
150 |
+
$update_cache = get_site_transient( 'update_plugins' );
|
151 |
+
|
152 |
+
$update_cache = is_object( $update_cache ) ? $update_cache : new stdClass();
|
153 |
+
|
154 |
+
if ( empty( $update_cache->response ) || empty( $update_cache->response[ $this->name ] ) ) {
|
155 |
+
|
156 |
+
$version_info = $this->get_cached_version_info();
|
157 |
+
|
158 |
+
if ( false === $version_info ) {
|
159 |
+
$version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug, 'beta' => $this->beta ) );
|
160 |
+
|
161 |
+
$this->set_version_info_cache( $version_info );
|
162 |
+
}
|
163 |
+
|
164 |
+
if ( ! is_object( $version_info ) ) {
|
165 |
+
return;
|
166 |
+
}
|
167 |
+
|
168 |
+
if ( version_compare( $this->version, $version_info->new_version, '<' ) ) {
|
169 |
+
|
170 |
+
$update_cache->response[ $this->name ] = $version_info;
|
171 |
+
|
172 |
+
}
|
173 |
+
|
174 |
+
$update_cache->last_checked = current_time( 'timestamp' );
|
175 |
+
$update_cache->checked[ $this->name ] = $this->version;
|
176 |
+
|
177 |
+
set_site_transient( 'update_plugins', $update_cache );
|
178 |
+
|
179 |
+
} else {
|
180 |
+
|
181 |
+
$version_info = $update_cache->response[ $this->name ];
|
182 |
+
|
183 |
+
}
|
184 |
+
|
185 |
+
// Restore our filter
|
186 |
+
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
|
187 |
+
|
188 |
+
if ( ! empty( $update_cache->response[ $this->name ] ) && version_compare( $this->version, $version_info->new_version, '<' ) ) {
|
189 |
+
|
190 |
+
// build a plugin list row, with update notification
|
191 |
+
$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
|
192 |
+
# <tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
|
193 |
+
echo '<tr class="plugin-update-tr" id="' . $this->slug . '-update" data-slug="' . $this->slug . '" data-plugin="' . $this->slug . '/' . $file . '">';
|
194 |
+
echo '<td colspan="3" class="plugin-update colspanchange">';
|
195 |
+
echo '<div class="update-message notice inline notice-warning notice-alt">';
|
196 |
+
|
197 |
+
$changelog_link = self_admin_url( 'index.php?edd_sl_action=view_plugin_changelog&plugin=' . $this->name . '&slug=' . $this->slug . '&TB_iframe=true&width=772&height=911' );
|
198 |
+
|
199 |
+
if ( empty( $version_info->download_link ) ) {
|
200 |
+
printf(
|
201 |
+
__( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s.', 'easy-digital-downloads' ),
|
202 |
+
esc_html( $version_info->name ),
|
203 |
+
'<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
|
204 |
+
esc_html( $version_info->new_version ),
|
205 |
+
'</a>'
|
206 |
+
);
|
207 |
+
} else {
|
208 |
+
printf(
|
209 |
+
__( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s.', 'easy-digital-downloads' ),
|
210 |
+
esc_html( $version_info->name ),
|
211 |
+
'<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
|
212 |
+
esc_html( $version_info->new_version ),
|
213 |
+
'</a>',
|
214 |
+
'<a href="' . esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $this->name, 'upgrade-plugin_' . $this->name ) ) .'">',
|
215 |
+
'</a>'
|
216 |
+
);
|
217 |
+
}
|
218 |
+
|
219 |
+
do_action( "in_plugin_update_message-{$file}", $plugin, $version_info );
|
220 |
+
|
221 |
+
echo '</div></td></tr>';
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
+
/**
|
226 |
+
* Updates information on the "View version x.x details" page with custom data.
|
227 |
+
*
|
228 |
+
* @uses api_request()
|
229 |
+
*
|
230 |
+
* @param mixed $_data
|
231 |
+
* @param string $_action
|
232 |
+
* @param object $_args
|
233 |
+
* @return object $_data
|
234 |
+
*/
|
235 |
+
public function plugins_api_filter( $_data, $_action = '', $_args = null ) {
|
236 |
+
|
237 |
+
if ( $_action != 'plugin_information' ) {
|
238 |
+
return $_data;
|
239 |
+
}
|
240 |
+
|
241 |
+
if ( ! isset( $_args->slug ) || ( $_args->slug != $this->slug ) ) {
|
242 |
+
return $_data;
|
243 |
+
}
|
244 |
+
|
245 |
+
$to_send = array(
|
246 |
+
'slug' => $this->slug,
|
247 |
+
'is_ssl' => is_ssl(),
|
248 |
+
'fields' => array(
|
249 |
+
'banners' => array(),
|
250 |
+
'reviews' => false
|
251 |
+
)
|
252 |
+
);
|
253 |
+
|
254 |
+
$cache_key = 'edd_api_request_' . md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
|
255 |
+
|
256 |
+
// Get the transient where we store the api request for this plugin for 24 hours
|
257 |
+
$edd_api_request_transient = $this->get_cached_version_info( $cache_key );
|
258 |
+
|
259 |
+
//If we have no transient-saved value, run the API, set a fresh transient with the API value, and return that value too right now.
|
260 |
+
if ( empty( $edd_api_request_transient ) ) {
|
261 |
+
|
262 |
+
$api_response = $this->api_request( 'plugin_information', $to_send );
|
263 |
+
|
264 |
+
// Expires in 3 hours
|
265 |
+
$this->set_version_info_cache( $api_response, $cache_key );
|
266 |
+
|
267 |
+
if ( false !== $api_response ) {
|
268 |
+
$_data = $api_response;
|
269 |
+
}
|
270 |
+
|
271 |
+
} else {
|
272 |
+
$_data = $edd_api_request_transient;
|
273 |
+
}
|
274 |
+
|
275 |
+
// Convert sections into an associative array, since we're getting an object, but Core expects an array.
|
276 |
+
if ( isset( $_data->sections ) && ! is_array( $_data->sections ) ) {
|
277 |
+
$new_sections = array();
|
278 |
+
foreach ( $_data->sections as $key => $value ) {
|
279 |
+
$new_sections[ $key ] = $value;
|
280 |
+
}
|
281 |
+
|
282 |
+
$_data->sections = $new_sections;
|
283 |
+
}
|
284 |
+
|
285 |
+
// Convert banners into an associative array, since we're getting an object, but Core expects an array.
|
286 |
+
if ( isset( $_data->banners ) && ! is_array( $_data->banners ) ) {
|
287 |
+
$new_banners = array();
|
288 |
+
foreach ( $_data->banners as $key => $value ) {
|
289 |
+
$new_banners[ $key ] = $value;
|
290 |
+
}
|
291 |
+
|
292 |
+
$_data->banners = $new_banners;
|
293 |
+
}
|
294 |
+
|
295 |
+
return $_data;
|
296 |
+
}
|
297 |
+
|
298 |
+
/**
|
299 |
+
* Disable SSL verification in order to prevent download update failures
|
300 |
+
*
|
301 |
+
* @param array $args
|
302 |
+
* @param string $url
|
303 |
+
* @return object $array
|
304 |
+
*/
|
305 |
+
public function http_request_args( $args, $url ) {
|
306 |
+
|
307 |
+
$verify_ssl = $this->verify_ssl();
|
308 |
+
if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
|
309 |
+
$args['sslverify'] = $verify_ssl;
|
310 |
+
}
|
311 |
+
return $args;
|
312 |
+
|
313 |
+
}
|
314 |
+
|
315 |
+
/**
|
316 |
+
* Calls the API and, if successfull, returns the object delivered by the API.
|
317 |
+
*
|
318 |
+
* @uses get_bloginfo()
|
319 |
+
* @uses wp_remote_post()
|
320 |
+
* @uses is_wp_error()
|
321 |
+
*
|
322 |
+
* @param string $_action The requested action.
|
323 |
+
* @param array $_data Parameters for the API action.
|
324 |
+
* @return false|object
|
325 |
+
*/
|
326 |
+
private function api_request( $_action, $_data ) {
|
327 |
+
|
328 |
+
global $wp_version;
|
329 |
+
|
330 |
+
$data = array_merge( $this->api_data, $_data );
|
331 |
+
|
332 |
+
if ( $data['slug'] != $this->slug ) {
|
333 |
+
return;
|
334 |
+
}
|
335 |
+
|
336 |
+
if( $this->api_url == trailingslashit (home_url() ) ) {
|
337 |
+
return false; // Don't allow a plugin to ping itself
|
338 |
+
}
|
339 |
+
|
340 |
+
$api_params = array(
|
341 |
+
'edd_action' => 'get_version',
|
342 |
+
'license' => ! empty( $data['license'] ) ? $data['license'] : '',
|
343 |
+
'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
|
344 |
+
'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
|
345 |
+
'version' => isset( $data['version'] ) ? $data['version'] : false,
|
346 |
+
'slug' => $data['slug'],
|
347 |
+
'author' => $data['author'],
|
348 |
+
'url' => home_url(),
|
349 |
+
'beta' => ! empty( $data['beta'] ),
|
350 |
+
);
|
351 |
+
|
352 |
+
$verify_ssl = $this->verify_ssl();
|
353 |
+
$request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
|
354 |
+
|
355 |
+
if ( ! is_wp_error( $request ) ) {
|
356 |
+
$request = json_decode( wp_remote_retrieve_body( $request ) );
|
357 |
+
}
|
358 |
+
|
359 |
+
if ( $request && isset( $request->sections ) ) {
|
360 |
+
$request->sections = maybe_unserialize( $request->sections );
|
361 |
+
} else {
|
362 |
+
$request = false;
|
363 |
+
}
|
364 |
+
|
365 |
+
if ( $request && isset( $request->banners ) ) {
|
366 |
+
$request->banners = maybe_unserialize( $request->banners );
|
367 |
+
}
|
368 |
+
|
369 |
+
if( ! empty( $request->sections ) ) {
|
370 |
+
foreach( $request->sections as $key => $section ) {
|
371 |
+
$request->$key = (array) $section;
|
372 |
+
}
|
373 |
+
}
|
374 |
+
|
375 |
+
return $request;
|
376 |
+
}
|
377 |
+
|
378 |
+
public function show_changelog() {
|
379 |
+
|
380 |
+
global $edd_plugin_data;
|
381 |
+
|
382 |
+
if( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' != $_REQUEST['edd_sl_action'] ) {
|
383 |
+
return;
|
384 |
+
}
|
385 |
+
|
386 |
+
if( empty( $_REQUEST['plugin'] ) ) {
|
387 |
+
return;
|
388 |
+
}
|
389 |
+
|
390 |
+
if( empty( $_REQUEST['slug'] ) ) {
|
391 |
+
return;
|
392 |
+
}
|
393 |
+
|
394 |
+
if( ! current_user_can( 'update_plugins' ) ) {
|
395 |
+
wp_die( __( 'You do not have permission to install plugin updates', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) );
|
396 |
+
}
|
397 |
+
|
398 |
+
$data = $edd_plugin_data[ $_REQUEST['slug'] ];
|
399 |
+
$beta = ! empty( $data['beta'] ) ? true : false;
|
400 |
+
$cache_key = md5( 'edd_plugin_' . sanitize_key( $_REQUEST['plugin'] ) . '_' . $beta . '_version_info' );
|
401 |
+
$version_info = $this->get_cached_version_info( $cache_key );
|
402 |
+
|
403 |
+
if( false === $version_info ) {
|
404 |
+
|
405 |
+
$api_params = array(
|
406 |
+
'edd_action' => 'get_version',
|
407 |
+
'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
|
408 |
+
'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
|
409 |
+
'slug' => $_REQUEST['slug'],
|
410 |
+
'author' => $data['author'],
|
411 |
+
'url' => home_url(),
|
412 |
+
'beta' => ! empty( $data['beta'] )
|
413 |
+
);
|
414 |
+
|
415 |
+
$verify_ssl = $this->verify_ssl();
|
416 |
+
$request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
|
417 |
+
|
418 |
+
if ( ! is_wp_error( $request ) ) {
|
419 |
+
$version_info = json_decode( wp_remote_retrieve_body( $request ) );
|
420 |
+
}
|
421 |
+
|
422 |
+
|
423 |
+
if ( ! empty( $version_info ) && isset( $version_info->sections ) ) {
|
424 |
+
$version_info->sections = maybe_unserialize( $version_info->sections );
|
425 |
+
} else {
|
426 |
+
$version_info = false;
|
427 |
+
}
|
428 |
+
|
429 |
+
if( ! empty( $version_info ) ) {
|
430 |
+
foreach( $version_info->sections as $key => $section ) {
|
431 |
+
$version_info->$key = (array) $section;
|
432 |
+
}
|
433 |
+
}
|
434 |
+
|
435 |
+
$this->set_version_info_cache( $version_info, $cache_key );
|
436 |
+
|
437 |
+
}
|
438 |
+
|
439 |
+
if( ! empty( $version_info ) && isset( $version_info->sections['changelog'] ) ) {
|
440 |
+
echo '<div style="background:#fff;padding:10px;">' . $version_info->sections['changelog'] . '</div>';
|
441 |
+
}
|
442 |
+
|
443 |
+
exit;
|
444 |
+
}
|
445 |
+
|
446 |
+
public function get_cached_version_info( $cache_key = '' ) {
|
447 |
+
|
448 |
+
if( empty( $cache_key ) ) {
|
449 |
+
$cache_key = $this->cache_key;
|
450 |
+
}
|
451 |
+
|
452 |
+
$cache = get_option( $cache_key );
|
453 |
+
|
454 |
+
if( empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) {
|
455 |
+
return false; // Cache is expired
|
456 |
+
}
|
457 |
+
|
458 |
+
return json_decode( $cache['value'] );
|
459 |
+
|
460 |
+
}
|
461 |
+
|
462 |
+
public function set_version_info_cache( $value = '', $cache_key = '' ) {
|
463 |
+
|
464 |
+
if( empty( $cache_key ) ) {
|
465 |
+
$cache_key = $this->cache_key;
|
466 |
+
}
|
467 |
+
|
468 |
+
$data = array(
|
469 |
+
'timeout' => strtotime( '+3 hours', current_time( 'timestamp' ) ),
|
470 |
+
'value' => json_encode( $value )
|
471 |
+
);
|
472 |
+
|
473 |
+
update_option( $cache_key, $data, 'no' );
|
474 |
+
|
475 |
+
}
|
476 |
+
|
477 |
+
/**
|
478 |
+
* Returns if the SSL of the store should be verified.
|
479 |
+
*
|
480 |
+
* @since 1.6.13
|
481 |
+
* @return bool
|
482 |
+
*/
|
483 |
+
private function verify_ssl() {
|
484 |
+
return (bool) apply_filters( 'edd_sl_api_request_verify_ssl', true, $this );
|
485 |
+
}
|
486 |
+
|
487 |
+
}
|
includes/scripts.php
CHANGED
@@ -169,7 +169,7 @@ final class DSLC_Scripts {
|
|
169 |
}
|
170 |
|
171 |
if ( false !== strpos( $hook, 'dslc_plugin_options' ) ||
|
172 |
-
false !== strpos( $hook, '
|
173 |
'dslc_plugin_options' === get_admin_page_parent() ) {
|
174 |
|
175 |
$current_screen = 'dslc-options';
|
169 |
}
|
170 |
|
171 |
if ( false !== strpos( $hook, 'dslc_plugin_options' ) ||
|
172 |
+
false !== strpos( $hook, 'tab-extend' ) ||
|
173 |
'dslc_plugin_options' === get_admin_page_parent() ) {
|
174 |
|
175 |
$current_screen = 'dslc-options';
|
js/builder.all.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
"use strict";function dslc_ui_animations(){if(dslcDebug)console.log("dslc_ui_animations");jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered")}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<190)jQuery(".dslca-module-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){}});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<130)jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){}})}jQuery(document).ready(function(){dslc_ui_animations()});"use strict";function dslc_save_composer(){if(dslcDebug)console.log("dslc_save_composer");dslc_generate_code();dslca_gen_content_for_search();var a=jQuery("#dslca-code").val(),b=jQuery("#dslca-content-for-search").val(),c=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:c,dslc_code:a,dslc_content_for_search:b},timeout:3e4}).done(function(a){if(a.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250);jQuery("body").append('<iframe class="lbmn-cache-iframe" id="lbmn-cache-iframe-'+c+'" src="'+DSLCSiteData.siteurl+"/?p="+c+'" ></iframe>');jQuery(".lbmn-cache-iframe").each(function(a,b){jQuery(b).load(function(){jQuery(b).remove()})})}else{alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+a.status)}}).fail(function(a){if(a.statusText=="timeout"){alert("The request timed out after 30 seconds. Server do not respond in time. Please try again.")}else{alert("Something went wrong. Please try again. Error Code: "+a.statusText)}}).always(function(a){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok");jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){if(dslcDebug)console.log("dslc_save_draft_composer");var a=jQuery("#dslca-code").val(),b=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:b,dslc_code:a},function(a){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save");if(a.status=="success"){jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again.")}jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){if(dslcDebug)console.log("dslc_generate_code");var a="",b,c="",d="",e=12,f=12,g=0,h=0,i,j,k,l,m,n="",o;jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-module-front",this).length){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content",this).hide()}else{jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300)}});jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){m=jQuery(this);o=dslc_generate_section_code(m);m.find(".dslca-section-code").val(o);d=d+o+","});d=d.slice(0,-1);d="["+d+"]";jQuery("#dslca-code").val(d);jQuery("#dslca-export-code").val(d)}function dslc_generate_section_code(a){if(dslcDebug)console.log("dslc_generate_section_code");var b="",c,d="",e="",f=12,g=12,h=0,i=0,j,k,l,m,n,o="",p="",q;n=a;if(jQuery(".dslc-modules-area",n).length){n.removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{n.removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");i=0;p=n.find(".dslca-section-code").val();q=JSON.parse(p);o="";jQuery(".dslca-modules-section-settings input",n).each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();o=o+b+'="'+c+'" ';q[b]=c});if(undefined!==q["give_new_id"]){delete q["give_new_id"]}q["content"]=[];jQuery(".dslc-modules-area",n).each(function(){h=0;k=jQuery(this);j=parseInt(k.data("size"));l="no";m="no";i+=j;jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");if(i==g){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");i=0;l="yes"}else if(i>g){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");i=j;m="yes"}if(i==j){m="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}var a='{"element_type":"module_area","last":"'+l+'","first":"'+m+'","size":"'+j+'"}';a=JSON.parse(a);if(undefined!==a["give_new_id"]){delete a["give_new_id"]}a.content=[];jQuery(".dslc-module-front",k).each(function(){var d=jQuery(this);c=parseInt(d[0].getAttribute("data-dslc-module-size"));var e="no";var g="no";jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");h+=c;if(h==f){jQuery(this).addClass("dslc-last-col");jQuery(this).next(".dslc-module-front").addClass("dslc-first-col");h=0;e="yes";g="yes"}else if(h>f){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");h=c;g="yes"}if(h==c){g="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}try{b=d[0].querySelector(".dslca-module-code").value}catch(i){console.info("No DSLC code found in module: "+d[0].getAttribute("id"))}if(""!==b){var j=JSON.parse(b);j.last=e;jQuery.each(j,function(a,b){if(false===b||""===b){delete j[a]}if("give_new_id"===a){delete j[a]}});d[0].querySelector(".dslca-module-code").value=JSON.stringify(j);a["content"].push(j)}b=""});q["content"].push(a)});var r=JSON.stringify(q);return r}jQuery(document).ready(function(a){a(document).on("click",".dslca-save-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_composer()}});a(document).on("click",".dslca-save-draft-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_draft_composer()}})});function dslca_gen_content_for_search(){if(dslcDebug)console.log("dslca_gen_content_for_search");var a=document.getElementById("dslca-content-for-search");if(null===a){return}var b=a.value;var c="";var d=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");if(undefined!==d){Array.prototype.forEach.call(d,function(a,b){var d;if(a.getAttribute("data-exportable-content")!==""){var e=a.getAttribute("data-exportable-content");d="<"+e+">"+a.innerHTML+"</"+e+">"}else{d=a.innerHTML}if(d!==null){c+=d.replace(/\s+/g," ").trim()+"\n"}})}a.value=c;if(b!==c){dslc_show_publish_button()}}var massagesTicker=jQuery("#editor-messages").newsTicker({row_height:40,max_rows:2,speed:900,direction:"up",duration:12e3,autostart:1,pauseOnHover:1,start:function(){jQuery("#editor-messages").css("opacity","1")}});jQuery(document).ready(function(a){a(document).on("click",".dslc-editor-messages-hide",function(b){var c=a(".dslc-editor-messages-hide").data("can-hide");if(c=="1"){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-hidden-panel"});a(".dslc-editor-messages-section").css("display","none");a(".dslca-container").removeClass("active-message-panel")}else{a("#editor-messages").html('<div class="dslc-notice"><a href="https://livecomposerplugin.com/add-ons/?utm_source=editing-sreen&utm_medium=editor-messages&utm_campaign=add-ons" target="_blank">You can hide this panel once you have any of our premium add-ons installed.</a></div>')}});if(a("div.dslc-editor-messages-section").length){a(".dslc-editor-messages-section").css("display","block");a(".dslca-container").addClass("active-message-panel")}});"use strict";var dslcRegularFontsArray=DSLCFonts.regular;var dslcGoogleFontsArray=DSLCFonts.google;var dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray);var dslcIconsCurrentSet=DSLCIcons.fontawesome;var dslcDebug=false;var LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}};(function(){LiveComposer.Builder.Flags={windowScroller:false,panelOpened:false,generate_code_after_row_changed:true};LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(a){if(a===undefined){return}if(isNaN(this.postponed_actions_queue[a])){this.postponed_actions_queue[a]=0}this.postponed_actions_queue[a]+=1},release_postponed_actions:function(){var a=this;jQuery.each(this.postponed_actions_queue,function(b,c){if(1<c){a.postponed_actions_queue[b]-=1}else if(1==c){window[b]();a.postponed_actions_queue[b]-=1}})}};LiveComposer.Builder.Helpers.insertModule=function(a,b){var c=jQuery(a),b=jQuery(b);var d=[];c.find("script").each(function(){d.push(this.innerHTML);this.parentNode.removeChild(this)});b.after(c).remove();d.forEach(function(a){var b=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");b.innerHTML=a;b.type="text/javascript";LiveComposer.Builder.PreviewAreaDocument[0].getElementById(c[0].id).appendChild(b)});d=null;b=null;return c}})();"use strict";LiveComposer.Builder.UI.CModalWindow=function(a){if(typeof a!="object"||this.instancesExists===true)return false;var b=this;var c='<div class="dslca-prompt-modal dslca-prompt-modal-active">'+'<div class="dslca-prompt-modal-content"><div class="dslca-prompt-modal-msg">'+'<span class="dslca-prompt-modal-title">'+a.title+"</span>"+'<span class="dslca-prompt-modal-descr">'+a.content+"</span></div>";var d="";if(a.confirm||a.cancel){d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.confirm_title?a.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove">'+"</span>"+(a.cancel_title?a.cancel_title:"Cancel")+"</span></div>"}else{d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.ok_title?a.ok_title:"OK")+"</a></div>"}c+=d+"</div>";c=jQuery(c);if(typeof a.confirm!="function")a.confirm=function(){};if(typeof a.cancel!="function")a.cancel=function(){};c.find(".dslca-prompt-modal-confirm-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){a.confirm();b.instancesExists=false;jQuery(this).remove()});return false});c.find(".dslca-prompt-modal-cancel-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){jQuery(this).remove();b.instancesExists=false;a.cancel()});return false});c.hide();jQuery("body").append(c);c.css({opacity:0}).show().animate({opacity:1},400);c.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400);this.instancesExists=true};"use strict";function dslc_show_modal(a,b){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_show_modal");if(jQuery(".dslca-modal:visible").length){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}var b=jQuery(b);var c=jQuery(".dslca-container").height();b.outerHide({clbk:function(){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}});var d=jQuery(a).position(),e=b.outerWidth()/2-a.outerWidth()/2,f=d.left-e;b.css({left:f});jQuery(".dslca-prompt-modal-custom").insertAfter(b);if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeIn()}b.addClass("dslca-modal-open").show()}function dslc_hide_modal(a,b){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_hide_modal");console.log("dslc_hide_modal");var b=jQuery(b);b.outerHide("destroy");b.hide();if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeOut()}b.removeClass("dslca-modal-open")}jQuery(document).ready(function(a){a(document).on("click",".dslca-open-modal-hook",function(a){a.preventDefault();var b=jQuery(this).data("modal");dslc_show_modal(jQuery(this),b)});jQuery(document).on("click",".dslca-close-modal-hook",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-action-disabled")){var b=jQuery(this).data("modal");dslc_hide_modal(jQuery(this),b)}})});function dslc_js_confirm(a,b,c){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_js_confirm");jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").data("id",a);jQuery(".dslca-prompt-modal").data("target",c);jQuery(".dslca-prompt-modal-msg").html(b);jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400);jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_js_confirm_close");jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide();jQuery(".dslca-prompt-modal-cancel-hook").show();jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)});jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_modal_keypress_events(a){if(a.which==13){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-confirm-hook").trigger("click")}}else if(a.which==27){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")}}}jQuery(document).ready(function(a){a(document).on("click",".dslca-prompt-modal-cancel-hook",function(a){a.preventDefault();var b=jQuery(".dslca-prompt-modal").data("id");var c=jQuery(".dslca-prompt-modal").data("target");if(b=="edit_in_progress"){dslc_module_options_cancel_changes(function(){c.trigger("click")})}else if(b=="delete_module"){}dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")});a(document).on("click",".dslca-prompt-modal-confirm-hook",function(b){b.preventDefault();var c=jQuery(".dslca-prompt-modal").data("id");var d=jQuery(".dslca-prompt-modal").data("target");var e=true;if(c=="edit_in_progress"){dslc_module_options_confirm_changes(function(){d.trigger("click")})}else if(c=="disable_lc"){window.location=d}else if("delete_module"===c){var f=d.closest(".dslc-module-front");dslc_delete_module(f)}else if("delete_modules_area"===c){var g=d.closest(".dslc-modules-area");var h=g.closest(".dslc-modules-section-inner");dslc_modules_area_delete(g)}else if(c=="delete_modules_section"){dslc_row_delete(d.closest(".dslc-modules-section"))}else if(c=="export_modules_section"){}else if(c=="import_modules_section"){dslc_row_import(a(".dslca-prompt-modal textarea").val());a(".dslca-prompt-modal-confirm-hook span").css({opacity:0});a(".dslca-prompt-modal-confirm-hook .dslca-loading").show();e=false}if(e)dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")})});jQuery.fn.outerHide=function(a){var b=jQuery;a=a?a:{};var c=this;if("destroy"==a){b(document).unbind("click.outer_hide");return false}b(document).bind("click.outer_hide",function(d){if(b(d.target).closest(c).length==0&&d.target!=c&&b.inArray(b(d.target)[0],b(a.clickObj))==-1&&b(c).css("display")!="none"){if(a.clbk){a.clbk()}else{b(c).hide()}}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_module_copy(a(this).closest(".dslc-module-front"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-module-hook",function(c){c.preventDefault();if(!b())return false;var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var a=jQuery(d).closest(".dslc-module-front");dslc_delete_module(a)}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-edit-hook, .dslc-module-front > div:not(.dslca-module-manage)",function(b){if(dslcDebug)console.log("dslca-module-edit-hook");b.preventDefault();var c=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var d=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||c>0||d>0){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0]!=jQuery(this).closest(".dslc-module-front")[0]){LiveComposer.Builder.UI.shakePanelConfirmButton()}return false}var e=a(this).closest(".dslc-module-front"),f=e.data("dslc-module-id");a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");e.addClass("dslca-module-being-edited");dslc_module_options_show(f);jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("module-editing-in-progress")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){jQuery(".dslca-change-width-module-options",this).toggle();a(this).closest(".dslc-module-front").toggleClass("dslca-change-width-active")}});LiveComposer.Builder.PreviewAreaDocument.on("mouseleave",".dslca-change-width-module-options",function(b){jQuery(this).hide();a(this).closest(".dslc-module-front").removeClass("dslca-change-width-active")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-get-defaults-hook",function(){var b=jQuery(this).closest(".dslc-module-front");var c=dslc_dm_get_defaults(b);var d='<span class="dslca-prompt-modal-title">Module Defaults</span>'+'<span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span>'+"<textarea></textarea><br><br>";a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK');dslc_js_confirm("dev_mode_get_default",d,b)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-refresh-module-hook",function(a){jQuery(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"});jQuery(this).closest(".dslc-module-front").addClass("dslca-module-being-edited");dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-wysiwyg-actions-edit-hook",function(){var a=jQuery(this).parent().siblings(".dslca-editable-content");var b=a.closest(".dslc-module-front");if(b.hasClass("dslc-module-handle-like-accordion")){LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(b.find(".dslc-accordion"));var c=b.find('.dslca-module-option-front[data-id="accordion_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-accordion-item").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(b.hasClass("dslc-module-handle-like-tabs")){LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(b.find(".dslc-tabs"));var c=b.find('.dslca-module-option-front[data-id="tabs_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-tabs-tab-content").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else{var f=b.find('.dslca-module-option-front[data-id="'+a.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}if(f.includes("%")){f=f.replace(/%\(\(%/g,"[");f=f.replace(/%\)\)%/g,"]");f=f.replace(/%\(%/g,"[");f=f.replace(/%\)%/g,"]");f=f.replace(/%\{%/g,"[");f=f.replace(/%\}%/g,"]")}if(typeof tinymce!="undefined"){var g=tinymce.get("dslcawpeditor");if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){g.setContent(f,{format:"html"})}else{jQuery("textarea#dslcawpeditor").val(f)}if(!b.hasClass("dslca-module-being-edited")){b.find(".dslca-module-edit-hook").trigger("click")}jQuery(".dslca-wp-editor").show();a.addClass("dslca-wysiwyg-active");jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else{console.info("Live Composer: TinyMCE is undefined.")}});LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){dslc_editable_content_gen_code(jQuery(this))}}).on("paste",".dslca-editable-content:not(.inline-editor)",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){var a=jQuery(this);setTimeout(function(){if(a.data("type")=="simple"){a.html(a.text())}dslc_editable_content_gen_code(a)},100)}}).on("focus",".dslca-editable-content",function(){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length>0&&!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).trigger("blur")}}).on("keyup",".dslca-editable-content",function(){if(jQuery(this).data("type")=="simple"){jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}})});function dslc_module_delete(a){if(dslcDebug)console.log("dslc_delete_module");a.addClass("dslca-module-being-deleted");if(a.hasClass("dslca-module-being-edited")){dslc_show_section(".dslca-modules")}setTimeout(function(){a.remove();dslc_generate_code();dslc_show_publish_button()},1e3);a.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){a.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(a){if(dslcDebug)console.log("dslc_copy_module");jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");var b=a[0].cloneNode(true);jQuery(b).appendTo(a.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).addClass("dslca-module-being-edited");dslc_module_new_id(b);dslc_generate_code();jQuery(b).css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300);dslc_show_publish_button()}function dslc_module_new_id(a){var b=LiveComposer.Utils.get_unique_id();var c=a.getAttribute("id");a.setAttribute("data-module-id",b);a.setAttribute("id","dslc-module-"+b);var d=a.getElementsByTagName("style")[0];var e=d.textContent;d.setAttribute("id","#css-for-dslc-module-"+b);e=e.split(c).join("dslc-module-"+b);d.textContent=e;LiveComposer.Utils.update_module_property_raw(a,"module_instance_id",b)}function dslc_module_width_set(a,b){if(dslcDebug)console.log("dslc_module_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c);a[0].setAttribute("data-dslc-module-size",b);LiveComposer.Utils.update_module_property_raw(a[0],"dslc_m_size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();dslc_generate_code();dslc_show_publish_button()}function dslc_module_options_show(a){if(dslcDebug)console.log("dslc_module_options_show");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=jQuery(".dslca-module-options-front textarea",b),d=jQuery(".dslca-header").data("default-section"),e=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(e);var f={};f["action"]="dslc-ajax-display-module-options";f["dslc"]="active";f["dslc_module_id"]=a;f["dslc_post_id"]=jQuery(".dslca-container").data("data-post-id");f.dslc_url_vars=LiveComposer.Utils.get_page_params();c.each(function(){var a=jQuery(this),b=a.data("id"),c=a.val();if(c.includes("%")){c=c.replace(/%\(\(%/g,"[");c=c.replace(/%\)\)%/g,"]");c=c.replace(/%\(%/g,"[");c=c.replace(/%\)%/g,"]");c=c.replace(/%\{%/g,"[");c=c.replace(/%\}%/g,"]")}f[b]=c});jQuery(".dslca-wp-editor-actions").hide();jQuery(".dslca-wp-editor-notification").show();dslc_hide_publish_button();LiveComposer.Builder.UI.initInlineEditors();var g=jQuery(".dslca-module-options-front",b).children().clone();LiveComposer.Builder.moduleBackup=g;LiveComposer.Builder.Flags.panelOpened=true;e.show();e.addClass("show");jQuery.post(DSLCAjax.ajaxurl,f,function(a){e.remove();dslc_show_section(".dslca-module-edit");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html(a.output)}else{jQuery(".dslca-module-edit-options-inner").html(a.output)}jQuery(".dslca-module-edit-options-tabs").html(a.output_tabs);var b=[];jQuery(".dslca-module-edit-options-inner .dslca-module-edit-option").each(function(){var a=jQuery(this).data("section");if(b.indexOf(a)==-1){b.push(a)}});var c=b.length;for(var f=0;f<c;f++){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+b[f]+'"]').show()}if(jQuery('.dslca-module-edit-option[data-section="'+d+'"]').length){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').show();jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').trigger("click")}else{jQuery(".dslca-header .dslca-options-filter-hook:first").hide();jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")}jQuery(".dslca-module-edit-actions").show();jQuery(".dslca-wp-editor-notification").hide();jQuery(".dslca-wp-editor-actions").show();jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery(".dslca-row-edit-actions").hide();LiveComposer.Builder.UI.loadOptionsDeps()})}function dslc_module_output_default(a,b){if(dslcDebug)console.log("dslc_module_output_default");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:a,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:true},function(a){b(a)})}function dslc_module_output_altered(a){if(dslcDebug)console.log("dslc_module_output_altered");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=b.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",b),e=b.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");if(b.hasClass("dslca-preload-preset"))f["dslc_preload_preset"]="enabled";else f["dslc_preload_preset"]="disabled";b.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});f.dslc_url_vars=LiveComposer.Utils.get_page_params();jQuery.post(DSLCAjax.ajaxurl,f,function(c){var d=LiveComposer.Builder.Helpers.insertModule(c.output,b);d.addClass("dslca-module-being-edited");c=null;d=null;LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();var e=new Event("dslc_module_output_altered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(e);if(a){a(c)}})}function dslc_module_output_reload(a,b){if(dslcDebug)console.log("dslc_module_output_reload");b=typeof b!=="undefined"?b:false;var c=a.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",a),e=a.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");f["dslc_preload_preset"]="enabled";a.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});a.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>');jQuery.post(DSLCAjax.ajaxurl,f,function(c){a.after(c.output).next().addClass("dslca-module-being-edited");a.remove();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(b){b(c)}jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})}function dslc_delete_module(a){dslc_module_delete(a)}function dslc_copy_module(a){dslc_module_copy(a)}function dslc_display_module_options(a){dslc_module_options_show(a)}function dslc_get_module_output(a,b){dslc_module_output_default(a,b)}function dslc_preview_change(a){dslc_module_output_altered(a)}function dslc_reload_module(a,b){dslc_module_output_reload(a,b)}"use strict";LiveComposer.Builder.Elements.CModuleArea=function(a){var b=this;this.section=jQuery(a).closest(".dslc-modules-section");this.elem=a;this.observer=new mqMutationObserver(a,function(){var c=b.elem.classList;if(a.querySelectorAll(".dslc-module-front").length==0){c.add("dslc-modules-area-empty");c.remove("dslc-modules-area-not-empty")}else{c.remove("dslc-modules-area-empty");c.add("dslc-modules-area-not-empty")}},{childList:true});this.sortable=Sortable.create(a,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML);
|
2 |
},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(a){a.oldIndex;a.newIndex;a.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(a){var c=a.item;a.from;if(jQuery(c).data("id")=="DSLC_M_A"){dslc_modules_area_add(jQuery(b.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner"));c.remove()}},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;if(jQuery(".dslc-modules-area-empty").find(".dslc-module-front").length>0){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})}}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){function a(){var a=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(a).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)})}var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};if(!jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length&&!jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length){dslc_row_add(a())}else{a()}LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area");dslc_copy_modules_area(c)}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty");if(!c){var d=jQuery(this);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){var a=d.closest(".dslc-modules-area");dslc_modules_area_delete(a)}})}else{var e=jQuery(this).closest(".dslc-modules-area");dslc_delete_modules_area(e)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){if(jQuery(".dslca-change-width-modules-area-options:visible",this).length){jQuery(".dslca-change-width-modules-area-options",this).hide()}else{jQuery(".dslca-change-width-modules-area-options",this).show()}}});LiveComposer.Builder.PreviewAreaDocument.on("mouseleave",".dslca-change-width-modules-area-options",function(a){jQuery(this).hide()});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(a){a.preventDefault();if(!b())return false;dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});function dslc_modules_area_add(a){if(dslcDebug)console.log("dslc_add_modules_area");var b='<div class="dslc-modules-area dslc-col dslc-12-col dslc-modules-area-empty " data-size="12">'+'<div class="dslca-modules-area-manage"> <div class="dslca-modules-area-manage-inner">'+'<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy">'+'</span></span> <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" >'+'<span class="dslca-icon dslc-icon-move"></span></span>'+'<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >'+'<span class="dslca-icon dslc-icon-columns"></span> <div class="dslca-change-width-modules-area-options">'+'<span>Container Width</span><span data-size="1">1/12</span><span data-size="2">2/12</span>'+'<span data-size="3">3/12</span><span data-size="4">4/12</span> <span data-size="5">5/12</span><span data-size="6">6/12</span>'+'<span data-size="7">7/12</span><span data-size="8">8/12</span> <span data-size="9">9/12</span><span data-size="10">10/12</span>'+'<span data-size="11">11/12</span><span data-size="12">12/12</span> </div> </span>'+'<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span> </div> </div>'+"</div>";jQuery(b).appendTo(a).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var c=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(c).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)});dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()}function dslc_modules_area_delete(a){if(dslcDebug)console.log("dslc_delete_modules_area");var b=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),c=false;a.addClass("dslca-modules-area-being-deleted");if(b.find(".dslc-modules-area").length<2){c=true}if(a.find(".dslca-module-being-edited").length){jQuery(".dslca-header .dslca-options-filter-hook",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-module-edit-actions",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-header .dslca-go-to-section-hook",LiveComposer.Builder.PreviewAreaDocument).show();dslc_show_section(".dslca-modules")}setTimeout(function(){if(c){var d=a.closest(".dslc-modules-section-inner");if(2<=a.closest("#dslc-main").find(".dslc-modules-section").length){dslc_row_delete(a.closest(".dslc-modules-section"))}else{a.remove();dslc_modules_area_add(b)}}a.remove();dslc_generate_code();dslc_show_publish_button()},900);a.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){a.remove();dslc_generate_code();dslc_show_publish_button()})}function dslc_modules_area_copy(a){if(dslcDebug)console.log("dslc_copy_modules_area");var b,c=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner");var d=a.clone().appendTo(c);new LiveComposer.Builder.Elements.CModuleArea(d[0]);d.find(".dslca-modules-area-manage").trigger("mouseleave");d.data("size",a.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_generate_code();a.animate({opacity:1},300)});dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()}function dslc_modules_area_width_set(a,b){if(dslcDebug)console.log("dslc_modules_area_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c).data("size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();if(LiveComposer.Builder.Flags.panelOpened){return false}dslc_generate_code();dslc_show_publish_button()}LiveComposer.Builder.moduleareas_init=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CModuleArea(this)}})};function dslc_add_modules_area(a){dslc_modules_area_add(a)}function dslc_delete_modules_area(a){dslc_modules_area_delete(a)}function dslc_copy_modules_area(a){dslc_modules_area_copy(a)}"use strict";function dslc_update_preset(){if(dslcDebug)console.log("dslc_update_preset");var a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),b=a.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),c=a.find(".dslca-module-code").val(),d=a.data("dslc-module-id");if("none"!==b&&""!==b){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:b,dslc_preset_code:c,dslc_module_id:d},function(b){if(b.preset_setting=="enabled"){jQuery(".dslc-module-front:not(#"+a.attr("id")+')[data-dslc-module-id="'+a.data("dslc-module-id")+'"][data-dslc-preset="'+a.data("dslc-preset")+'"]',LiveComposer.Builder.PreviewAreaDocument).each(function(){dslc_module_output_reload(jQuery(this))})}})}}jQuery(document).ready(function(a){a(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(b){if(b.which==13){var c=a(this).val(),d=c.toLowerCase().replace(/\s/g,"-");a("body").addClass("dslca-new-preset-added");a('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+d+'">'+d+"</option>").val(d).trigger("change");a(this).val("")}});a(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(b){a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")})});"use strict";LiveComposer.Builder.Elements.CRow=function(a){var b=this;this.elem=a;var c=jQuery(a).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0];jQuery(a).droppable({drop:function(a,b){var c=jQuery(this).find(".dslc-modules-section-inner");var d=b.draggable.data("id");if(d=="DSLC_M_A"){dslc_modules_area_add(c)}}});this.sortable=jQuery(c).sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:true,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(a,b){var c=b.placeholder.closest(".dslc-modules-section");jQuery(c).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty");c.siblings(".dslc-modules-section").each(function(){if(jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}})},remove:function(){jQuery(b.elem).find(".dslc-modules-area").length==0&&dslc_modules_area_add(jQuery(c))},update:function(a,b){dslc_generate_code();dslc_show_publish_button()},start:function(a,b){b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>");if(!jQuery(b.item).hasClass("dslc-12-col")){b.placeholder.width(b.item.width()-10)}else{b.placeholder.width(b.item.width()).css({margin:0})}jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress");jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(a,b){LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(a,b){}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new LiveComposer.Builder.Elements.CRow(this)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(c){if(!b())return false;c.preventDefault();var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){dslc_row_delete(a(d).closest(".dslc-modules-section"))}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){dslc_row_import(jQuery(".dslca-prompt-modal textarea").val());jQuery(".dslca-prompt-modal-confirm-hook span").css({opacity:0});jQuery(".dslca-prompt-modal-confirm-hook .dslca-loading").show()},confirm_title:DSLCString.str_import})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-export-modules-section-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>"+"["+dslc_generate_section_code(a(this).closest(".dslc-modules-section"))+"]"+"</textarea></span>"})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_row_copy(jQuery(this).closest(".dslc-modules-section"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(c){c.preventDefault();if(!b())return false;var d=a(this);if(!a(this).hasClass("dslca-action-disabled")){d.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin");dslc_row_add(function(){d.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-edit-modules-section-hook",function(){if(!b())return false;var c=this;var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||d>0||e>0)return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_row_edit(a(this).closest(".dslc-modules-section"))}jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})});function dslc_row_add(a){if(dslcDebug)console.log("dslc_row_add");a=typeof a!=="undefined"?a:false;var b=jQuery.Deferred();var c=sessionStorage;var d=jQuery();var e=c.getItem("cache-dslc-ajax-add-modules-section");if(null===e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(e){c.setItem("cache-dslc-ajax-add-modules-section",e.output);d=dslc_row_after_add(e.output);if(a){a()}return b})}else{d=dslc_row_after_add(e);if(a){a()}return b}}function dslc_row_after_add(a){var b=jQuery(a);b.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main"));dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button();new LiveComposer.Builder.Elements.CRow(b);new LiveComposer.Builder.Elements.CModuleArea(b.find(".dslc-modules-area").eq(0)[0]);b.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col");return b}function dslc_row_delete(a){if(dslcDebug)console.log("dslc_row_delete");if(a.find(".dslca-module-being-edited")){jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_section(".dslca-modules")}a.trigger("mouseleave").remove();dslc_generate_code();dslc_show_publish_button()}function dslc_row_edit(a){if(dslcDebug)console.log("dslc_row_edit");var b,c;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made");a.addClass("dslca-modules-section-being-edited");jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show();jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-row-edit-actions").show();jQuery(".dslca-modules-section-edit-field").each(function(){if("type"===jQuery(this).data("id")){if(""===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()||"wrapped"===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()){jQuery('select[data-id="type"]').val("wrapper").change()}}if(jQuery(this).data("id")=="border-top"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("top")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-right"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("right")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-bottom"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("bottom")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-left"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("left")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox")){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf(jQuery(this).data("val"))>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else{jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val());if(jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var a=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":a.val()});jQuery(this).css({"background-color":a.val()})}}});jQuery(".dslca-modules-section-edit-field-upload").each(function(){var a=jQuery(this).closest(".dslca-modules-section-edit-option");if(jQuery(this).val()&&jQuery(this).val()!=="disabled"){jQuery(".dslca-modules-section-edit-field-image-add-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).show()}else{jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-add-hook",a).show()}});dslc_show_section(".dslca-modules-section-edit");LiveComposer.Builder.Flags.panelOpened=true;dslc_hide_publish_button()}function dslc_row_edit_cancel(a){if(dslcDebug)console.log("dslc_row_cancel_changes");a=typeof a!=="undefined"?a:false;LiveComposer.Builder.Flags.generate_code_after_row_changed=false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).val(jQuery(this).data("def"));jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")});LiveComposer.Builder.Flags.generate_code_after_row_changed=true;dslc_generate_code();dslc_show_publish_button();dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button;jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_edit_confirm(a){if(dslcDebug)console.log("dslc_confirm_row_changes");a=typeof a!=="undefined"?a:false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())});dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");dslc_generate_code();dslc_show_publish_button();if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_copy(a){if(dslcDebug)console.log("dslc_row_copy");var b,c,d;c=a.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument));c[0].removeAttribute("data-jsinit");c.find(".dslc-modules-area").each(function(){var b=jQuery(this).index();jQuery(this).data("size",a.find(".dslc-modules-area:eq( "+b+" )").data("size"));this.removeAttribute("data-jsinit")});new LiveComposer.Builder.Elements.CRow(c);c.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_generate_code();dslc_drag_and_drop();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");a.animate({opacity:1},300);dslc_show_publish_button()});dslc_section_new_id(c[0])}function dslc_section_new_id(a){if(dslcDebug)console.log("dslc_section_new_id");var b=LiveComposer.Utils.get_unique_id();a.setAttribute("data-section-id",b);LiveComposer.Utils.update_section_property_raw(a,"section_instance_id",b)}function dslc_row_import(a){if(dslcDebug)console.log("dslc_row_import");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:a},function(a){dslc_js_confirm_close();jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(a){dslc_row_delete(a)}function dslc_edit_modules_section(a){dslc_row_edit(a)}function dslc_copy_modules_section(a){dslc_row_copy(a)}function dslc_import_modules_section(a){dslc_row_import(a)}jQuery(document).ready(function(a){a(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)});a(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)})});LiveComposer.Builder.rows_init=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CRow(this)}})};jQuery(document).ready(function(a){var b=function(a){var b=.75;var c=500;var d=100;var e=jQuery(".dslca-section-scroller",a);var f=jQuery(".dslca-section-scroller-inner",a)[0];e.on("wheel",function(a){g(a.originalEvent.deltaY||a.originalEvent.deltaX);return false});function g(a){if(a<0){a=-d}else{a=d}a=a*b;var c=e.find(".dslca-section-scroller-content").width();var g=e.width();if(c<=g)return false;var h=c-g+10;a=parseInt(f.style.left||0)-a;a=a>=0?0:a;a=a<=-h?-h:a;f.style.left=a+"px"}jQuery(".dslca-section-scroller-prev",a).click(function(a){a.preventDefault();g(-c)});jQuery(".dslca-section-scroller-next",a).click(function(a){a.preventDefault();g(c)});jQuery(window).load(function(){jQuery(window).resize(function(){g(0)})})};b(jQuery(".dslca-section.dslca-modules"));b(jQuery(".dslca-section.dslca-templates-load"))});jQuery(document).ready(function(a){LiveComposer.Builder.UI.initPreviewAreaScroller=function(){var a=5;var b=6;LiveComposer.Builder.Flags.windowScroller=false;jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(a){LiveComposer.Builder.UI.stopScroller()});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter dragover",".lc-scroll-bottom-area",function(c){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(c){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(a){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{});clearInterval(LiveComposer.Builder.Flags.windowScroller);LiveComposer.Builder.Flags.windowScroller=false};jQuery("#scroller-stopper").on("dragover",function(){LiveComposer.Builder.UI.stopScroller()})});"use strict";LiveComposer.Builder.Elements.CSectionsContainer=function(a){var b=this;this.sortable=jQuery(a).sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"intersect",cursorAt:{bottom:10},axis:"y",scroll:true,scrollSensitivity:140,scrollSpeed:5,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(a,b){dslc_show_publish_button()},start:function(a,b){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>");jQuery(".dslc-content").sortable("refreshPositions")},stop:function(a,b){dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")}});jQuery(document).on("LC.sortableOff",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).ready(function(a){dslc_module_options_tooltip();dslc_module_options_font();dslc_module_options_icon();dslc_module_options_icon_returnid();dslc_module_options_text_align();dslc_module_options_checkbox();dslc_module_options_box_shadow();dslc_module_options_text_shadow();var b="";b+=".dslca-module-edit-field-colorpicker";
|
3 |
b+=", .dslca-modules-section-edit-field-colorpicker";b+=", .dslca-module-edit-option-box-shadow-color";b+=", .dslca-module-edit-option-text-shadow-color";jQuery(document).on("click",b,function(){dslc_module_options_color(this);var a=jQuery(this).closest(".dslca-color-option");var b=jQuery(".dslca-module-edit-options-inner");var c=a.find(".wp-picker-holder");var d=a.offset();var e=d.left+15;var f=window.innerWidth;var g=260;if(f<e+g){e=f-g}c.css("left",e+"px");jQuery(b).on("scroll",function(b){d=a.offset();var e=d.left+15;var f=window.innerWidth;var g=260;if(f<e+g){e=f-g}c.css("left",e+"px")})});jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-module-edit-form").submit(function(a){a.preventDefault();dslc_module_output_altered()});a(document).on("click",".dslca-module-edit-options-tab-hook",function(b){b.preventDefault();dslc_module_options_tab_filter(a(this))});a(document).on("click",".dslca-options-filter-hook",function(b){b.preventDefault();var c=jQuery(".dslca-options-filter-hook.dslca-active").data("section");var d=jQuery(this).data("section");a(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");a(this).addClass("dslca-active");dslc_module_options_section_filter(d);if(c=="responsive"){jQuery(".dslca-container-loader").show();LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()});jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")}if(d=="responsive"){jQuery("#page-builder-preview-area").resizable()}});jQuery(document).on("click",".dslca-module-edit-save",function(a){a.preventDefault();dslc_module_options_confirm_changes(function(){LiveComposer.Builder.UI.initInlineEditors({withRemove:true});LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-cancel",function(a){a.preventDefault();dslc_module_options_cancel_changes(function(){LiveComposer.Builder.UI.initInlineEditors({withRemove:true});LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()})});(function(){var a=jQuery;var b=LiveComposer.Builder;LiveComposer.Builder.Helpers.colorpickers=[];LiveComposer.Builder.UI.initInlineEditors=function(a){a=a||{};if(a.withRemove==true){try{LiveComposer.Builder.PreviewAreaWindow.tinyMCE.remove()}catch(b){console.info("No tinyMCE code found. Error code: 10181116.")}}LiveComposer.Builder.PreviewAreaWindow.tinyMCE.init({selector:".inline-editor.dslca-editable-content",editor_deselector:"mce-content-body",menubar:false,inline:true,plugins:"wordpress wplink lists paste",paste_as_text:true,paste_block_drop:true,style_formats:[{title:"Paragraph",format:"p"},{title:"Header 1",format:"h1"},{title:"Header 2",format:"h2"},{title:"Header 3",format:"h3"},{title:"Header 4",format:"h4"},{title:"Header 5",format:"h5"},{title:"Header 6",format:"h6"}],toolbar:"styleselect | bold italic blockquote | removeformat | bullist numlist "})};LiveComposer.Builder.UI.clearUtils=function(){if(dslcDebug)console.log("LiveComposer.Builder.UI.clearUtils");LiveComposer.Builder.UI.clearColorPickers();if(undefined!==LiveComposer.Builder.moduleBackup){LiveComposer.Builder.moduleBackup.remove()}jQuery(".temp-styles-for-module",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery(".mce-tinymce",LiveComposer.Builder.PreviewAreaDocument).hide()};LiveComposer.Builder.UI.clearColorPickers=function(){if(Array.isArray(b.Helpers.colorpickers)){b.Helpers.colorpickers.forEach(function(a){if(!jQuery(a).hasClass("dslca-modules-section-edit-field")){jQuery(a).remove()}});b.Helpers.colorpickers=[]}jQuery("body").off("click.wpcolorpicker")};LiveComposer.Builder.Helpers.depsHandlers=[];LiveComposer.Builder.UI.loadOptionsDeps=function(){var b=this;a(".dslca-module-edit-option").each(function(){var b=this;var c=true;try{var d=JSON.parse(LiveComposer.Utils.b64_to_utf8(a(this).data("dep")))}catch(e){c=false}if(c){var f=function(){var b=this;var c={};if((b.type=="radio"||b.type=="checkbox")&&d[b.value]==undefined){return false}if(b.type=="checkbox"&&d[b.value]!=undefined){c[b.value]=d[b.value]}else{c=d}Object.keys(c).forEach(function(d){c[d].split(",").forEach(function(c){var e=a(".dslca-module-edit-option-"+c.trim()).closest(".dslca-module-edit-option");var f=true;if(b.type=="radio"||b.type=="checkbox"){f=a(b).is(":checked")}if(b.value==d&&f){e.show()}else{e.hide()}})})};a(document).on("change dslc-init-deps",'.dslca-module-edit-option *[data-id="'+a(this).data("id")+'"]',f);LiveComposer.Builder.Helpers.depsHandlers.push(f)}});a(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")};LiveComposer.Builder.UI.unloadOptionsDeps=function(){LiveComposer.Builder.Helpers.depsHandlers.forEach(function(b){a(document).unbind("change",b);a(document).unbind("dslc-init-deps",b)});LiveComposer.Builder.Helpers.depsHandlers=[]};LiveComposer.Builder.Helpers.processInlineStyleTag=function(a){if(typeof a!="object")return false;var b="",c="";if(a.context.closest(".dslca-module-edit-option").data("tab")=="tablet_responsive"){b="@media only screen and (max-width: 1024px) and (min-width: 768px) {";c="}"}else if(a.context.closest(".dslca-module-edit-option").data("tab")=="phone_responsive"){b="@media only screen and (max-width: 767px) {";c="}"}a.styleContent=b+a.styleContent+c;var d=b+a.rule+a.elems;d=d.replace(/ /gi,"");if(LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d)==null){var e=document.createElement("style");e.innerHTML=a.styleContent;e.id=d;e.className="temp-styles-for-module";LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(e)}else{LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d).innerHTML=a.styleContent}};LiveComposer.Builder.UI.shakePanelConfirmButton=function(){jQuery(".dslca-module-edit-save").addClass("lc-shake-effect active");setTimeout(function(){jQuery(".dslca-module-edit-save").removeClass("lc-shake-effect active")},1e3)}})();function dslc_module_options_section_filter(a){if(dslcDebug)console.log("dslc_module_options_section_filter");jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-section="'+a+'"]').show();dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(a){if(dslcDebug)console.log("dslc_module_options_tab_filter");var b=jQuery(".dslca-options-filter-hook.dslca-active").data("section");a=typeof a!=="undefined"?a:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]:first');var c=a.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active");a.addClass("dslca-active");jQuery(".dslca-module-edit-options-tabs").show();jQuery(".dslca-module-edit-options-tab-hook").hide();jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]').show();if(c){jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-tab="'+c+'"]').show();dslc_module_options_hideshow_tabs();if(jQuery(".dslca-module-edit-options-tab-hook:visible").length<2){jQuery(".dslca-module-edit-options-tabs").hide()}else{jQuery(".dslca-module-edit-options-tabs").show()}dslc_disable_responsive_view();if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-tablet");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-phone");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"||c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})}}}function dslc_module_options_hideshow_tabs(){if(dslcDebug)console.log("dslc_module_options_hideshow_tabs");var a=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(a=="styling"){var b=jQuery(".dslca-module-edit"),c=true,d=true,e=true,f=true,g=true,h=true,i=true,j=true,k=true,l=true,m=true,n=true,o=true,p=true,q=true,r=true,s=true,t=true,u=true,v=true,w=true,x=true,y=true,z=true,A=true,B=true;if(!jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked"))c=false;if(!jQuery('.dslca-module-edit-field[value="filters"]').is(":checked"))d=false;if(!jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked"))e=false;if(!jQuery('.dslca-module-edit-field[value="circles"]').is(":checked"))f=false;if(jQuery('.dslca-module-edit-field[data-id="type"]').val()!="carousel"){e=false;f=false}if(jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()=="disabled"){g=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")){h=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")){i=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")){j=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")){k=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")){l=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")){m=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")){o=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")){n=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")){p=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")){q=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")){r=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")){s=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")){t=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")){u=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")){v=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")){w=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")){x=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")){y=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")){z=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")){A=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(":checked")){B=false}if(c)jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide();if(d)jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide();if(e)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide();if(f)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide();if(g)jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide();if(h)jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide();if(i)jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide();if(j)jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide();if(k)jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide();if(l)jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide();if(m)jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide();if(o)jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide();if(n)jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide();if(p)jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide();if(r)jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide();if(q)jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide();if(s)jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide();if(t)jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide();if(u)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide();if(v)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide();if(w||x)jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide();if(y)jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide();if(z)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide();if(A)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide();if(B)jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Text_Simple"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_TP_Content"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Html"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Shortcode"){var C=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),D=C.find("select").val();if(D=="enabled"){jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"});jQuery(".dslca-module-edit-option[data-tab]").css("visibility","visible");jQuery(".dslca-module-edit-options-tabs").show()}else{jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"});jQuery(".dslca-module-control-group.dslca-module-edit-option").css("visibility","hidden");jQuery(".dslca-module-edit-options-tabs").hide();C.css({visibility:"visible"})}}}else{jQuery(".dslca-module-edit-options-tabs").show()}if(jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","visible")}if(jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","visible")}jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(a){if(dslcDebug)console.log("dslc_module_options_confirm_changes");a=typeof a!=="undefined"?a:false;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}else{jQuery("body").addClass("dslca-module-saving-in-progress");dslc_module_output_altered(function(){dslc_update_preset();dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery("body").removeClass("dslca-module-saving-in-progress");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(a){a()}})}dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_cancel_changes(a){if(dslcDebug)console.log("dslc_module_options_cancel_changes");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",b).html("").append(LiveComposer.Builder.moduleBackup);dslc_module_output_altered(function(){dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(a){a()}});dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button();LiveComposer.Builder.UI.clearUtils()}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()});jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-ttip"),b=a.find(".dslca-module-edit-field-ttip-inner"),c=jQuery(this),d,e;e=c.parent();if(e.parent().hasClass("dslca-modules-section-edit-option")){d=c.closest(".dslca-modules-section-edit-option").find(".dslca-module-edit-field-ttip-content").html()}else{d=c.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html()}if(a.is(":visible")){jQuery(".dslca-module-edit-field-ttip").hide()}else{b.html(d);var f=c.offset();var g=a.outerHeight();var h=a.outerWidth();var i=f.left-h/2+6;var j="50%";if(i<0){j=h/2+i+"px";i=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:f.top-g-20,left:i});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+j+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-icon-ttip");var b=jQuery(this);if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-ttip").hide()}else{var c=b.offset();var d=a.outerHeight();var e=a.outerWidth();var f=c.left-e/2+6;var g="50%";if(f<0){g=e/2+f+"px";f=0}jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:c.top-d-20,left:f});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+g+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d+1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d-1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");if(e<0){e=dslcAllFontsArray.length-1}c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("keyup",".dslca-module-edit-field-font",function(a){var b,c,d,e=false,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){jQuery(".dslca-module-edit-field-font-prev",c).click()}if(a.which==40){jQuery(".dslca-module-edit-field-font-next",c).click()}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val();var g=[];var h=new RegExp("^"+d,"i");var i=dslcAllFontsArray.length;var j=0;do{if(h.test(dslcAllFontsArray[j])){if(!e){var e=dslcAllFontsArray[j]}}j++}while(j<i);if(!e){f=d;jQuery(".dslca-module-edit-field-font-suggest",c).hide()}else{f=e;jQuery(".dslca-module-edit-field-font-suggest",c).show()}jQuery(".dslca-module-edit-field-font-suggest",c).text(f);if(f.length){b.val(f.substring(0,b.val().length))}}});jQuery(document).on("keypress",".dslca-module-edit-field-font",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-font-suggest",c).text("")}})}function dslc_list_icon(a,b){var c=jQuery(a).closest(".dslca-module-edit-option-icon");var d=jQuery(".dslca-module-edit-field-icon",c);var e=dslcIconsCurrentSet.indexOf(d.val());if(b=="previous"){var f=e-1}else{var f=e+1}jQuery(".dslca-module-edit-field-icon-suggest",c).text("");if(f<0){f=dslcIconsCurrentSet.length-1}d.val(dslcIconsCurrentSet[f]).trigger("change")}function dslc_module_options_icon(){jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(a){var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){dslc_list_icon(b,"previous")}if(a.which==40){dslc_list_icon(b,"next")}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val().toLowerCase();b.val(d);e=jQuery.grep(dslcIconsCurrentSet,function(a,b){return a.indexOf(d)==0});f=e[0];jQuery(".dslca-module-edit-field-icon-suggest",c).text(f)}});jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-icon-suggest",c).text("")}})}function dslc_module_options_icon_returnid(){jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(a){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")});jQuery(document).on("click",".dslca-modal-icons .icon-item",function(a){var b=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(b).change();dslc_hide_modal("",jQuery(".dslca-modal:visible"));jQuery("input.icon-modal-active").removeClass("icon-modal-active")})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var a=jQuery(this),b=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),c=a.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");b.removeClass("dslca-active");a.addClass("dslca-active");d.val(c).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var a=jQuery(this);var b=a.siblings('input[type="checkbox"]');if(b.prop("checked")){b.prop("checked",false);a.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}else{b.prop("checked",true);a.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}b.change()})}function dslc_module_options_box_shadow(){if(dslcDebug)console.log("dslc_module_options_box_shadow");jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, "+".dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread,"+" .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-box-shadow-hor").val(),d=a.find(".dslca-module-edit-option-box-shadow-ver").val(),e=a.find(".dslca-module-edit-option-box-shadow-blur").val(),f=a.find(".dslca-module-edit-option-box-shadow-spread").val(),g=a.find(".dslca-module-edit-option-box-shadow-color").val(),h=a.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");if(h){h=" inset"}else{h=""}var i=c+"px "+d+"px "+e+"px "+f+"px "+g+h;b.val(i).trigger("change")})}function dslc_module_options_text_shadow(){if(dslcDebug)console.log("dslc_module_options_text_shadow");jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver,"+".dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-text-shadow-hor").val(),d=a.find(".dslca-module-edit-option-text-shadow-ver").val(),e=a.find(".dslca-module-edit-option-text-shadow-blur").val(),f=a.find(".dslca-module-edit-option-text-shadow-color").val();var g=c+"px "+d+"px "+e+"px "+f;b.val(g).trigger("change")})}function dslc_module_options_color(a){if(dslcDebug)console.log("dslc_module_options_color");var b,c,d,e,f,g,h;var i=[],j,k;var l="dslcColors-"+document.domain;if(undefined!==localStorage[l]){j=JSON.parse(localStorage[l]);i=j}if(1>i.length){i.push("#78b")}if(2>i.length){i.push("#ab0")}if(3>i.length){i.push("#de3")}i.push("#fff");i.push("#000");i.push("rgba(0,0,0,0)");var m=a;jQuery(m).each(function(){var a=jQuery(this).closest(".dslca-color-option");var j=jQuery(this);h=jQuery(this).val();j.wpColorPicker({mode:"hsl",palettes:i,change:function(a,h){b=j;var i=j.wpColorPicker("color");if(i==null){e=""}else{e=i}b.val(e).trigger("change");b.css("background",e);c=b.data("affect-on-change-el");d=b.data("affect-on-change-rule");if(null!=c){jQuery(c,".dslca-module-being-edited").css(d,e)}f=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);g=b.data("id");jQuery('.dslca-module-option-front[data-id="'+g+'"]',f).val(e);f.addClass("dslca-module-change-made")}});var k=a.find(".wp-picker-holder .iris-picker");k.append('<button type="button" class="dslca-colorpicker-apply">Apply</button>');var m=a.find(".dslca-colorpicker-apply");j.wpColorPicker("open");jQuery(m).on("click",function(){if("#fff"!==e&&"#ffffff"!==e&&"#000"!==e&&"#000000"!==e&&"rgba(0,0,0,0)"!==e){if(undefined===localStorage[l]){var a=[e];localStorage[l]=JSON.stringify(a)}else{var a=JSON.parse(localStorage[l]);if(a.indexOf(e)==-1){a.unshift(e);if(3<a.length){a.pop()}}localStorage[l]=JSON.stringify(a)}}j.wpColorPicker("close")});LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))})}function dslc_module_options_numeric(a){if(dslcDebug)console.log("dslc_module_options_numeric");var b=a;jQuery(b).each(function(){var a=jQuery(this);if(0===jQuery(".dslca-module-edit-field-slider",a).length){a.append('<div class="dslca-module-edit-field-slider"></div>')}var b=true;if(a.hasClass("dslca-modules-section-edit-option")){b=false}else{b=true}if(b){var c=a.find(".dslca-module-edit-field")}else{var c=a.find(".dslca-modules-section-edit-field")}if(a.hasClass("dslca-modules-section-edit-option")){var c=a.find(".dslca-modules-section-edit-field")}else{var c=a.find(".dslca-module-edit-field")}var d="",e=a.find(".dslca-module-edit-field-slider"),f=parseFloat(c.val()),g=parseFloat(c.data("max")),h=parseFloat(c.data("min")),i=parseFloat(c.data("increment")),j=g,k=h;var l=false;if(undefined!==c.data("onlypositive")&&1===c.data("onlypositive")){l=true}if(f>=g){g=f*2}if(!l&&f<=h){h=f*2}e.slider({min:h,max:g,step:i,value:c.val(),slide:function(a,b){c.val(b.value+d);c.trigger("change")},change:function(b,c){if(c.value>=g||c.value<=h){e.slider("destroy");dslc_module_options_numeric(a)}}});e.show();jQuery(a).on("mouseleave",function(){if(undefined!==e.slider("instance")){jQuery(e).slider("destroy")}e.remove()});if(c[0].classList.contains("slider-initiated"))return;
|
4 |
c[0].classList.add("slider-initiated");c.on("keyup",function(a){if(undefined===a){return false}if(a.shiftKey){if(a.keyCode==38){this.value=(parseInt(this.value)||0)+9;c.trigger("change")}if(a.keyCode==40){this.value=parseInt(this.value)+0-9;c.trigger("change")}}if(a.keyCode==8||a.keyCode==45){c.trigger("change")}if(a.keyCode>=48&&a.keyCode<=57||a.keyCode>=96&&a.keyCode<=105){c.trigger("change")}var b=a.which?a.which:a.keyCode;if((b>=48&&b<=57||b>=96&&b<=105)&&a.keyCode!=8&&a.keyCode!=39&&a.keyCode!=37&&a.keyCode!=46){return false}});c.on("change",function(a){if(l&&this.value<0){this.value=0}var c;if(b){c=jQuery(a.target.closest(".dslca-module-edit-option-slider"))}else{c=jQuery(a.target.closest(".dslca-modules-section-edit-option-slider"))}var d=c.find(".dslca-module-edit-field-slider");if(undefined!==d.slider("instance")){d.slider("value",this.value)}if(b){var e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);e.addClass("dslca-module-change-made")}});return false})}function dslc_disable_responsive_view(){jQuery("html").removeClass("dslc-responsive-preview");jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function dslc_filter_module_options(a){dslc_module_options_section_filter(a)}function dslc_show_module_options_tab(a){dslc_module_options_tab_filter(a)}function dslc_confirm_changes(a){dslc_module_options_confirm_changes(a)}function dslc_cancel_changes(a){dslc_module_options_cancel_changes(a)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}"use strict";function dslc_template_load(a){if(dslcDebug)console.log("dslc_load_template");var b,c;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:a},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_import(){if(dslcDebug)console.log("dslc_import_template");var a,b;jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0});jQuery(".dslca-modal-templates-import .dslca-loading").show();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);jQuery(".dslca-modal-templates-import .dslca-loading").hide();jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1});dslc_hide_modal("",".dslca-modal-templates-import");LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_save(){if(dslcDebug)console.log("dslc_save_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(a){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(a){if(dslcDebug)console.log("dslc_delete_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:a},function(b){jQuery('.dslca-template[data-id="'+a+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(a){dslc_template_load(a)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(a){dslc_template_delete(a)}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-template",function(a){a.preventDefault();dslc_template_load(jQuery(this).data("id"))});a(".dslca-template-import-form").submit(function(a){a.preventDefault();dslc_template_import()});a(".dslca-template-save-form").submit(function(a){a.preventDefault();dslc_template_save()});a(document).on("click",".dslca-delete-template-hook",function(b){b.stopPropagation();dslc_template_delete(a(this).data("id"))})});"use strict";window.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};jQuery(document).on("click",".dslca-show-js-error-hook",function(a){a.preventDefault();var b=document.getElementById("dslca-js-errors-report");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:'<a href="https://livecomposerplugin.com/support/support-request/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> Open Support Ticket</a>',content:'<span class="dslca-error-report">'+b.value+"</span>"})}});jQuery(document).ready(function(a){jQuery("#page-builder-frame")[0].contentWindow.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};dslca_update_report_log();jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress");jQuery(".dslca-invisible-overlay").hide();jQuery(".dslca-section").eq(0).show();window.previewAreaTinyMCELoaded=function(){var a=this;LiveComposer.Builder.PreviewAreaWindow=this;LiveComposer.Builder.PreviewAreaDocument=jQuery(this.document);jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove();LiveComposer.Builder.UI.initInlineEditors();dslc_fix_contenteditable();var b=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new LiveComposer.Builder.Elements.CSectionsContainer(b);jQuery(document).trigger("editorFrameLoaded");dslc_drag_and_drop();dslc_generate_code();dslc_keypress_events();LiveComposer.Builder.UI.initPreviewAreaScroller()}});jQuery(document).on("click",".dslca-currently-editing",function(){var a=false,b=false,c;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#5890e5"}else if(jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#eabba9"}if(a){b=a.offset().top-100;if(b<0){b=0}var d=[];jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:b},300,function(){a.removeAttr("style")})}});jQuery(window).keypress(function(a){if((a.metaKey||a.ctrlKey)&&a.keyCode==83){dslc_ajax_save_composer();a.preventDefault();return false}});jQuery(document).on("click",".dslca-hide-composer-hook",function(a){a.preventDefault();dslc_hide_composer()});jQuery(document).on("click",".dslca-show-composer-hook",function(a){a.preventDefault();dslc_show_composer()});jQuery(document).on("click",".dslca-go-to-modules-hook",function(a){a.preventDefault();dslc_show_section(".dslca-modules")});jQuery(document).on("click",".dslca-go-to-section-hook",function(a){a.preventDefault();if(jQuery(this).hasClass("dslca-active")){return}var b=jQuery(this).data("section");dslc_show_section(b);if(jQuery(this).hasClass("dslca-go-to-section-modules")||jQuery(this).hasClass("dslca-go-to-section-templates")){jQuery(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}});jQuery(document).on("click",".dslca-close-composer-hook",function(a){a.preventDefault();var b=jQuery(this).attr("href");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=b}})}});jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()});jQuery(document).on("click",".dslca-section-title",function(a){a.stopPropagation();if(jQuery(".dslca-section-title-filter",this).length){dslc_generate_filters();jQuery(".dslca-section-title-filter-options").slideToggle(300)}});jQuery(document).on("click",".dslca-section-title-filter-options a",function(a){a.preventDefault();a.stopPropagation();var b=jQuery(this).data("origin");var c=jQuery(this).closest(".dslca-section");if(c.hasClass("dslca-templates-load")){jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}else{jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}jQuery(".dslca-section-scroller-inner").css({left:0});dslc_filter_origin(b,c);jQuery(".dslca-section-title-filter-options").slideToggle(300)});function dslc_hide_composer(){if(dslcDebug)console.log("dslc_hide_composer");jQuery(".dslca-hide-composer-hook").hide();jQuery(".dslca-show-composer-hook").show();jQuery("body").addClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:jQuery(".dslca-container").outerHeight()*-1});jQuery(".dslca-header").hide()}function dslc_show_composer(){if(dslcDebug)console.log("dslc_show_composer");jQuery(".dslca-show-composer-hook").hide();jQuery(".dslca-hide-composer-hook").show();jQuery("body").removeClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:0});jQuery(".dslca-header").show()}function dslc_show_publish_button(){if(dslcDebug)console.log("dslc_show_publish_button");jQuery(".dslca-save-composer").show().addClass("dslca-init-animation");jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_hide_publish_button(){if(dslcDebug)console.log("dslc_hide_publish_button");jQuery(".dslca-save-composer").hide();jQuery(".dslca-save-draft-composer").hide()}function dslc_show_section(a){if(dslcDebug)console.log("dslc_show_section");var b=jQuery(a).data("title"),c=jQuery(a).data("bg");jQuery(".dslca-container").css({bottom:-500});jQuery(".dslca-section").hide();jQuery(a).show();if(a==".dslca-module-edit"){jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element")}else if(a==".dslca-modules-section-edit"){jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row")}else{jQuery(".dslca-currently-editing").hide().find("strong").text("")}dslc_module_options_tab_filter();jQuery(".dslca-container").css({bottom:0});jQuery(a).find("input.dslca-module-edit-field-colorpicker").each(function(a){jQuery(this).css("background",jQuery(this).val())})}function dslc_generate_filters(){if(dslcDebug)console.log("dslc_generate_filters");var a,b=[],c='<a html="#" data-origin="">Show All</a>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){a=jQuery(this);if(jQuery.inArray(a.data("origin"),b)==-1){b.push(a.data("origin"));c+='<a href="#" data-origin="'+a.data("origin")+'">'+a.data("origin")+"</a>"}});jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(c).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(a,b){if(dslcDebug)console.log("dslc_filter_origin");jQuery(".dslca-origin",b).attr("data-display-module","false");jQuery('.dslca-origin[data-origin="'+a+'"]',b).attr("data-display-module","true");if(a==""){jQuery(".dslca-origin",b).attr("data-display-module","true");jQuery(".dslca-origin.dslca-exclude",b).attr("data-display-module","false")}}function dslc_drag_and_drop(){if(dslcDebug)console.log("dslc_drag_and_drop");var a,b,c,d;var e=jQuery(".dslca-modules .dslca-section-scroller-content");if(e.length==0){e=[document.createElement("div")]}var f=Sortable.create(e[0],{sort:false,group:{name:"modules",pull:"clone",put:false},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("#dslc-header").addClass("dslca-header-low-z-index")},onEnd:function(a){a.oldIndex;a.newIndex;var e=a.item;a.preventDefault();if(jQuery(e).closest(".dslca-section-scroller-content").length>0)return false;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered");b=jQuery(e.parentNode);c=e.dataset.id;dslc_generate_code();if(c=="DSLC_M_A"||jQuery("body").hasClass("dslca-module-drop-in-progress")||b.closest("#dslc-header").length||b.closest("#dslc-footer").length){}else{jQuery("body").addClass("dslca-module-drop-in-progress");dslc_module_output_default(c,function(a){d=a.output;var c=LiveComposer.Builder.Helpers.insertModule(d,jQuery(".dslca-module",b));setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();jQuery("body").removeClass("dslca-module-drop-in-progress")},700);jQuery(".dslca-no-content-primary",b).css({opacity:1});jQuery(".dslca-modules-area-manage",b).css({visibility:"visible"});LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.UI.initInlineEditors()});jQuery(e).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin");jQuery(".dslca-no-content-primary",b).css({opacity:0});jQuery(".dslca-modules-area-manage",b).css({visibility:"hidden"})}LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("#dslc-header").removeClass("dslca-header-low-z-index")},onAdd:function(a){var b=a.item;a.from},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){a.preventDefault()},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;jQuery(a.to).addClass("dslca-options-hovered")}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_fix_contenteditable(){LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",false)});LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",true)})}function dslc_toogle_control(a){if(a===undefined)a=false;if(!a)return;var b=jQuery(".dslca-module-edit-option-"+a);var c=b.find(".dslca-module-edit-field");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var e=d[0].id;var f="";if("tablet_responsive"===b.data("tab")){f="body.dslc-res-tablet "}else if("phone_responsive"===b.data("tab")){f="body.dslc-res-phone "}var g=c.data("affect-on-change-el");if(g===undefined)return;var h=g.split(",");g="";for(var i=0;i<h.length;i++){if(i>0){g+=", "}g+=f+"#"+e+" "+h[i]}var j=c.data("affect-on-change-rule").replace(/ /g,"");var k=j.split(",");var l;var m=c.data("ext");b.toggleClass("dslca-option-off");if(b.hasClass("dslca-option-off")){l=dslc_get_control_value(a);c.data("val-bckp",l);for(var i=0;i<k.length;i++){jQuery(g,LiveComposer.Builder.PreviewAreaDocument).css(k[i],"");disable_css_rule(g,k[i],e)}c.val("").trigger("change")}else{c.val(c.data("val-bckp")).trigger("change");l=dslc_get_control_value(a);l=dslc_combine_value_and_extension(l,m||"");for(var i=0;i<k.length;i++){var n=g+"{"+k[i]+": "+l+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:b,rule:k[i],elems:g.replace(new RegExp("#"+e,"gi"),"").trim(),styleContent:n})}}}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(a){a.preventDefault();var b=jQuery(a.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(b)});jQuery(document).on("mousedown",".dslca-module-edit-option",function(b){var c=a(".dslc-control-toggle");if(!c.is(b.target)&&c.has(b.target).length===0){if(jQuery(b.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")){var d=a(b.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(d)}}})});function disable_css_rule(a,b,c){var d;var e="css-for-"+c;var f=document.getElementById("page-builder-frame").contentWindow.document.getElementById(e);a=a.replace(/\s\s+/g," ");if(f){f=f.sheet;if(f["rules"]){d="rules"}else if(f["cssRules"]){d="cssRules"}else{}for(var g=0;g<f[d].length;g++){if(f[d][g].selectorText==a){if(f[d][g].style[b]){f[d][g].style[b]="";break}}}}}function dslc_combine_value_and_extension(a,b){if(""===a||null===a){return a}if(a.indexOf(b)==-1){a=a+b}return a}function dslc_get_control_value(a){var b=jQuery(".dslca-module-edit-option-"+a);var c="text";var d=b.find(".dslca-module-edit-field");var e;e=d.val();return e}function dslc_keypress_events(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(a){dslc_modal_keypress_events(a);dslc_disable_backspace_navigation(a);dslc_notice_on_refresh(a);dslc_save_page(a)})}function dslc_disable_backspace_navigation(a){var b=false;if(a.keyCode===8){var c=a.srcElement||a.target;if(c.tagName.toUpperCase()==="INPUT"&&(c.type.toUpperCase()==="TEXT"||c.type.toUpperCase()==="PASSWORD"||c.type.toUpperCase()==="NUMBER"||c.type.toUpperCase()==="FILE")||c.tagName.toUpperCase()==="TEXTAREA"||jQuery(c).hasClass("dslca-editable-content")||jQuery(c).hasClass("dslc-tabs-nav-hook-title")||jQuery(c).hasClass("dslc-accordion-title")){b=c.readOnly||c.disabled}else{b=true}}if(b){a.preventDefault()}}function dslc_notice_on_refresh(a){if(a.which==116||a.which===82&&a.metaKey){if(jQuery(".dslca-save-composer-hook").offsetParent!==null||jQuery(".dslca-module-edit-save").offsetParent!==null){a.preventDefault();LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}})}}}function dslc_save_page(a){if(a.which==83&&(a.metaKey||a.ctrlKey)){if(jQuery(".dslca-save-composer-hook").css("display")=="block"){dslc_save_composer();a.preventDefault();return false}}}function dslca_generate_error_report(a,b,c,d){var e="JavaScript error detected in a third-party plugin";if(b.match("wp-content/plugins/live-composer-page-builder/js")!=null){e="Live Composer returned JS error"}var f="";f+='<br /><strong style="color:#E55F5F;">'+e+"</strong><br />";f+=a+'<br /> File "'+b+'", line '+c+", char "+d+"<br />";if("undefined"!==typeof Storage){localStorage.setItem("js_errors_report",f)}}function dslca_update_report_log(){var a=document.getElementById("dslca-js-errors-report");var b=localStorage.getItem("js_errors_report");if(null!==b){a.value=b;localStorage.removeItem("js_errors_report");document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")}}jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=a("div[data-hf]",LiveComposer.Builder.PreviewAreaDocument);var c="";b.each(function(b,d){var e=a(d).data("editing-link");var f=a(d).data("editing-type");var g=a(d).data("editing-label");var h=a(d).data("editing-sublabel");c+='<div class="dslc-hf-block-overlay"><a target="_blank" href="'+e+'" class="dslc-hf-block-overlay-button dslca-link">'+g+"</a>";if(h!==undefined){c+=' <span class="dslc-hf-block-overlay-text">'+h+"</span>"}c+="</div>";var i=document.createElement("div");i.innerHTML=c;d.append(i)})});"use strict";LiveComposer.Utils={addslashes:function(a){a=a.replace(/\\/g,"\\\\");a=a.replace(/\'/g,"\\'");a=a.replace(/\"/g,'\\"');a=a.replace(/\0/g,"\\0");return a},basename:function(a){return a.split(/[\\\/]/).pop()},msieversion:function(){var a=window.navigator.userAgent;var b=a.indexOf("MSIE ");if(b>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return parseInt(a.substring(b+5,a.indexOf(".",b)))}else{return false}},checkParams:function(a){if(!Array.isArray(a)){throw"Param is not array"}var b={integer:function(a){return isNaN(parseInt(a))},"float":function(a){return isNaN(parseFloat(a))},string:function(a){return a!=null&&a!=undefined&&typeof a=="string"},array:function(a){return Array.isArray(a)},object:function(a){return typeof a=="object"}};a.map(function(a){if(!b[a[1]](a[0])){throw"Param "+a[0]+" is not "+a[1]}})},utf8_to_b64:function(a){return window.btoa(unescape(encodeURIComponent(a)))},b64_to_utf8:function(a){return decodeURIComponent(escape(window.atob(a)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function a(b,c){c=c.split("=");b[c[0]]=c[1];return b},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},update_module_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-module-code")[0];var e=a.querySelector('.dslca-module-option-front[data-id="'+b+'"]');var f=d.value;f=JSON.parse(f);f[b]=c;f=JSON.stringify(f);d.value=f;d.innerHTML=f;e.value=c;e.innerHTML=c},update_section_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-section-code")[0];var e=a.querySelector('.dslca-modules-section-settings input[data-id="'+b+'"]');var f=d.value;f=JSON.parse(f);f[b]=c;f=JSON.stringify(f);d.value=f;d.innerHTML=f;e.setAttribute("value",c);e.setAttribute("data-def",c)},publish:function(a,b){b=b?b:{};this.checkParams([[a,"string"],[b,"object"]]);jQuery(document).trigger({type:a,message:{details:b}});LiveComposer.Builder.PreviewAreaWindow.dslca_publish_event(a,b)}};"use strict";function dslc_dm_get_defaults(a){if(dslcDebug)console.log("dslc_dm_get_defaults");var b=a.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:b},function(a){jQuery(".dslca-prompt-modal textarea").val(a.output)})}function dslc_editable_content_gen_code(a){if(dslcDebug)console.log("dslc_editable_content_gen_code");if(undefined===a){return false}var b,c,d;b=a.closest(".dslc-module-front");c=a.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");d=a.data("id");jQuery('.dslca-module-option-front[data-id="'+d+'"]',b).val(c)}function dslc_filter_textarea(a){if(dslcDebug)console.log("dslc_filter_textarea");if(undefined===a){return false}var b;b=a.trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");return b}window.onbeforeunload=function(){return};jQuery(document).ready(function(a){jQuery(document).on("change",".dslca-modules-section-edit-field",function(){var b,c,d,e,f,g,h,i,j,k,l;b=a(this);c=b.data("id");f=b.val();g=f;h=f+b.data("ext");i=b.data("css-rule");d=a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);k=d;j=a('.dslca-modules-section-settings input[data-id="'+c+'"]',d);d.addClass("dslca-modules-section-change-made");if(b.hasClass("dslca-modules-section-edit-field-upload")){if(f&&f.length){f=a('.dslca-modules-section-settings input[data-id="dslca-img-url"]',d).val()}}if(i=="background-image"){f='url("'+f+'")';LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}if(c=="bg_image_attachment"){d.removeClass("dslc-init-parallax")}if(c=="border-top"||c=="border-right"||c=="border-bottom"||c=="border-left"){var m=a('.dslca-modules-section-settings input[data-id="border_style"]').val();j=a('.dslca-modules-section-settings input[data-id="border"]',d);g="";var n=b.closest(".dslca-modules-section-edit-option-checkbox-wrapper");n.find(".dslca-modules-section-edit-field-checkbox").each(function(){if(a(this).is(":checked")){if(a(this).data("id")=="border-top"){g+="top "}else if(a(this).data("id")=="border-right"){g+="right "}else if(a(this).data("id")=="border-bottom"){g+="bottom "}else if(a(this).data("id")=="border-left"){g+="left "}}});if(b.is(":checked")){if(b.data("id")=="border-top"){d.css({"border-top-style":m})}else if(b.data("id")=="border-right"){d.css({"border-right-style":m})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":m})}else if(b.data("id")=="border-left"){d.css({"border-left-style":m})}}else{if(b.data("id")=="border-top"){d.css({"border-top-style":"hidden"})}else if(b.data("id")=="border-right"){d.css({"border-right-style":"hidden"})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":"hidden"})}else if(b.data("id")=="border-left"){d.css({"border-left-style":"hidden"})}}}else if(b.hasClass("dslca-modules-section-edit-field-checkbox")){var o=a(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox");var p="";o.each(function(){if(a(this).prop("checked")){p+=a(this).data("val")+" "}});var g=p;if(b.data("id")=="show_on"){if(p.indexOf("desktop")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop")}if(p.indexOf("tablet")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet")}if(p.indexOf("phone")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")}}}else if(c=="bg_image_attachment"&&f=="parallax"||c=="type"){if(c=="bg_image_attachment"){d.addClass("dslc-init-parallax");LiveComposer.Builder.PreviewAreaWindow.dslc_parallax()}else if(c=="type"){if(f=="full"){d.addClass("dslc-full")}else{d.removeClass("dslc-full")}LiveComposer.Builder.PreviewAreaWindow.dslc_masonry()}}else if(c=="columns_spacing"){if(f=="nospacing"){d.addClass("dslc-no-columns-spacing")}else{d.removeClass("dslc-no-columns-spacing")}}else if(c=="custom_class"){}else if(c=="custom_id"){}else if(c=="bg_video"){jQuery(".dslc-bg-video video",d).remove();if(f&&f.length){var q=f;q=q.replace(".webm","");q=q.replace(".mp4","");jQuery(".dslc-bg-video-inner",d).html('<video><source type="video/mp4" src="'+q+'.mp4" /><source type="video/webm" src="'+q+'.webm" /></video>');LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if(c=="bg_image_thumb"){if(g=="enabled"){if(jQuery("#dslca-post-data-thumb").length){var r="url('"+jQuery("#dslca-post-data-thumb").val()+"')";k.css(i,r)}}else if(g=="disabled"){k.css(i,"none")}}else{if(b.data("css-element")){k=jQuery(b.data("css-element"),d)}i=i.replace(/ /g,"").split(",");var s;if(null!=b.data("ext")){s=h}else{s=f}for(var t=0;t<i.length;t++){k.css(i[t],s)}}j.val(g);if(!LiveComposer.Builder.Flags.generate_code_after_row_changed)return false});jQuery(document).on("blur",".dslc-editable-area",function(b){var c=a(this).closest(".dslc-module-front");var d=a(this).data("dslc-option-id");var e=a(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+d+'"]',c).val(e);dslc_module_output_altered()});jQuery(document).on("change",".dslca-module-edit-field",function(){if(dslcDebug)console.log("on change event for .dslca-module-edit-field");var b="",c="",d=jQuery(this),e=d.data("id"),f=d.closest(".dslca-module-edit-option"),g=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),h=g.data("dslc-module-id"),i=jQuery(".dslca-module-options-front textarea",g);g.addClass("dslca-module-change-made");if(f.hasClass("dslca-module-edit-option-select")||f.hasClass("dslca-module-edit-option-checkbox")){dslc_module_options_hideshow_tabs()}if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")=="active"){if(f.find(".dslca-module-edit-option-checkbox-wrapper").length){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(a(this).prop("checked")){b=b+jQuery(this).val()+" "}})}else if(d.hasClass("dslca-module-edit-option-radio")){var b=jQuery(".dslca-module-edit-field:checked",d).val()}else{var b=d.val();if(e=="orientation"&&b=="horizontal"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("40").trigger("change")}else if(e=="orientation"&&b=="vertical"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("100").trigger("change")}}b=dslc_filter_textarea(b);jQuery('.dslca-module-options-front textarea[data-id="'+e+'"]',g).val(b);jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made");if(e=="css_load_preset"&&!jQuery("body").hasClass("dslca-new-preset-added")){dslc_module_options_show(h);jQuery(".dslca-container-loader").hide()}else{jQuery(".dslca-container-loader").hide()}jQuery("body").removeClass("dslca-new-preset-added");LiveComposer.Utils.publish("LC.moduleChange",{moduleId:h,optionID:e,optionVal:d.val()})})}else{if(d.hasClass("dslca-module-edit-field-font")){var l=d.val();l=l+":400,100,200,300,500,600,700,800,900";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;var q=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);if(d.val().length&&dslcGoogleFontsArray.indexOf(d.val())!==-1){document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[l]},active:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var c=m.split(",");var e="#"+q[0].id+" "+c.join(", #"+q[0].id+" ")+" {"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:e})},inactive:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}})}else{setTimeout(function(){if(jQuery(".dslca-font-loading.dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var a=m.split(",");var b="#"+q[0].id+" "+a.join(", #"+q[0].id+" ")+" {"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:b})},100)}}else if(d.hasClass("dslca-module-edit-field-checkbox")){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(jQuery(this).prop("checked")){b=b+"solid ";c=c+a(this).val()+" "}else{b=b+"none "}})}if(!d.hasClass("dslca-module-edit-field-font")&&d.data("affect-on-change-el")!=null&&d.data("affect-on-change-rule")!=null){var r=d.data("ext")||"";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");
|
1 |
+
"use strict";function dslc_ui_animations(){if(dslcDebug)console.log("dslc_ui_animations");jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered")}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<190)jQuery(".dslca-module-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){}});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<130)jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){}})}jQuery(document).ready(function(){dslc_ui_animations()});"use strict";function dslc_save_composer(){if(dslcDebug)console.log("dslc_save_composer");dslc_generate_code();dslca_gen_content_for_search();var a=jQuery("#dslca-code").val(),b=jQuery("#dslca-content-for-search").val(),c=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:c,dslc_code:a,dslc_content_for_search:b},timeout:3e4}).done(function(a){if(a.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250);jQuery("body").append('<iframe class="lbmn-cache-iframe" id="lbmn-cache-iframe-'+c+'" src="'+DSLCSiteData.siteurl+"/?p="+c+'" ></iframe>');jQuery(".lbmn-cache-iframe").each(function(a,b){jQuery(b).load(function(){jQuery(b).remove()})})}else{alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+a.status)}}).fail(function(a){if(a.statusText=="timeout"){alert("The request timed out after 30 seconds. Server do not respond in time. Please try again.")}else{alert("Something went wrong. Please try again. Error Code: "+a.statusText)}}).always(function(a){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok");jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){if(dslcDebug)console.log("dslc_save_draft_composer");var a=jQuery("#dslca-code").val(),b=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:b,dslc_code:a},function(a){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save");if(a.status=="success"){jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again.")}jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){if(dslcDebug)console.log("dslc_generate_code");var a="",b,c="",d="",e=12,f=12,g=0,h=0,i,j,k,l,m,n="",o;jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-module-front",this).length){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content",this).hide()}else{jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300)}});jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){m=jQuery(this);o=dslc_generate_section_code(m);m.find(".dslca-section-code").val(o);d=d+o+","});d=d.slice(0,-1);d="["+d+"]";jQuery("#dslca-code").val(d);jQuery("#dslca-export-code").val(d)}function dslc_generate_section_code(a){if(dslcDebug)console.log("dslc_generate_section_code");var b="",c,d="",e="",f=12,g=12,h=0,i=0,j,k,l,m,n,o="",p="",q;n=a;if(jQuery(".dslc-modules-area",n).length){n.removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{n.removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");i=0;p=n.find(".dslca-section-code").val();q=JSON.parse(p);o="";jQuery(".dslca-modules-section-settings input",n).each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();o=o+b+'="'+c+'" ';q[b]=c});if(undefined!==q["give_new_id"]){delete q["give_new_id"]}q["content"]=[];jQuery(".dslc-modules-area",n).each(function(){h=0;k=jQuery(this);j=parseInt(k.data("size"));l="no";m="no";i+=j;jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");if(i==g){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");i=0;l="yes"}else if(i>g){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");i=j;m="yes"}if(i==j){m="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}var a='{"element_type":"module_area","last":"'+l+'","first":"'+m+'","size":"'+j+'"}';a=JSON.parse(a);if(undefined!==a["give_new_id"]){delete a["give_new_id"]}a.content=[];jQuery(".dslc-module-front",k).each(function(){var d=jQuery(this);c=parseInt(d[0].getAttribute("data-dslc-module-size"));var e="no";var g="no";jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");h+=c;if(h==f){jQuery(this).addClass("dslc-last-col");jQuery(this).next(".dslc-module-front").addClass("dslc-first-col");h=0;e="yes";g="yes"}else if(h>f){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");h=c;g="yes"}if(h==c){g="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}try{b=d[0].querySelector(".dslca-module-code").value}catch(i){console.info("No DSLC code found in module: "+d[0].getAttribute("id"))}if(""!==b){var j=JSON.parse(b);j.last=e;jQuery.each(j,function(a,b){if(false===b||""===b){delete j[a]}if("give_new_id"===a){delete j[a]}});d[0].querySelector(".dslca-module-code").value=JSON.stringify(j);a["content"].push(j)}b=""});q["content"].push(a)});var r=JSON.stringify(q);return r}jQuery(document).ready(function(a){a(document).on("click",".dslca-save-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_composer()}});a(document).on("click",".dslca-save-draft-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_draft_composer()}})});function dslca_gen_content_for_search(){if(dslcDebug)console.log("dslca_gen_content_for_search");var a=document.getElementById("dslca-content-for-search");if(null===a){return}var b=a.value;var c="";var d=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");if(undefined!==d){Array.prototype.forEach.call(d,function(a,b){var d;if(a.getAttribute("data-exportable-content")!==""){var e=a.getAttribute("data-exportable-content");d="<"+e+">"+a.innerHTML+"</"+e+">"}else{d=a.innerHTML}if(d!==null){c+=d.replace(/\s+/g," ").trim()+"\n"}})}a.value=c;if(b!==c){dslc_show_publish_button()}}var massagesTicker=jQuery("#editor-messages").newsTicker({row_height:40,max_rows:2,speed:900,direction:"up",duration:12e3,autostart:1,pauseOnHover:1,start:function(){jQuery("#editor-messages").css("opacity","1")}});jQuery(document).ready(function(a){a(document).on("click",".dslc-editor-messages-hide",function(b){var c=a(".dslc-editor-messages-hide").data("can-hide");if(c=="1"){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-hidden-panel"});a(".dslc-editor-messages-section").css("display","none");a(".dslca-container").removeClass("active-message-panel")}else{a("#editor-messages").html('<div class="dslc-notice"><a href="https://livecomposerplugin.com/downloads/extensions/?utm_source=editing-sreen&utm_medium=editor-messages&utm_campaign=add-ons" target="_blank">You can hide this panel once you have any of our premium extensions installed.</a></div>')}});if(a("div.dslc-editor-messages-section").length){a(".dslc-editor-messages-section").css("display","block");a(".dslca-container").addClass("active-message-panel")}});"use strict";var dslcRegularFontsArray=DSLCFonts.regular;var dslcGoogleFontsArray=DSLCFonts.google;var dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray);var dslcIconsCurrentSet=DSLCIcons.fontawesome;var dslcDebug=false;var LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}};(function(){LiveComposer.Builder.Flags={windowScroller:false,panelOpened:false,generate_code_after_row_changed:true};LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(a){if(a===undefined){return}if(isNaN(this.postponed_actions_queue[a])){this.postponed_actions_queue[a]=0}this.postponed_actions_queue[a]+=1},release_postponed_actions:function(){var a=this;jQuery.each(this.postponed_actions_queue,function(b,c){if(1<c){a.postponed_actions_queue[b]-=1}else if(1==c){window[b]();a.postponed_actions_queue[b]-=1}})}};LiveComposer.Builder.Helpers.insertModule=function(a,b){var c=jQuery(a),b=jQuery(b);var d=[];c.find("script").each(function(){d.push(this.innerHTML);this.parentNode.removeChild(this)});b.after(c).remove();d.forEach(function(a){var b=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");b.innerHTML=a;b.type="text/javascript";LiveComposer.Builder.PreviewAreaDocument[0].getElementById(c[0].id).appendChild(b)});d=null;b=null;return c}})();"use strict";LiveComposer.Builder.UI.CModalWindow=function(a){if(typeof a!="object"||this.instancesExists===true)return false;var b=this;var c='<div class="dslca-prompt-modal dslca-prompt-modal-active">'+'<div class="dslca-prompt-modal-content"><div class="dslca-prompt-modal-msg">'+'<span class="dslca-prompt-modal-title">'+a.title+"</span>"+'<span class="dslca-prompt-modal-descr">'+a.content+"</span></div>";var d="";if(a.confirm||a.cancel){d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.confirm_title?a.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove">'+"</span>"+(a.cancel_title?a.cancel_title:"Cancel")+"</span></div>"}else{d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.ok_title?a.ok_title:"OK")+"</a></div>"}c+=d+"</div>";c=jQuery(c);if(typeof a.confirm!="function")a.confirm=function(){};if(typeof a.cancel!="function")a.cancel=function(){};c.find(".dslca-prompt-modal-confirm-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){a.confirm();b.instancesExists=false;jQuery(this).remove()});return false});c.find(".dslca-prompt-modal-cancel-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){jQuery(this).remove();b.instancesExists=false;a.cancel()});return false});c.hide();jQuery("body").append(c);c.css({opacity:0}).show().animate({opacity:1},400);c.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400);this.instancesExists=true};"use strict";function dslc_show_modal(a,b){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_show_modal");if(jQuery(".dslca-modal:visible").length){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}var b=jQuery(b);var c=jQuery(".dslca-container").height();b.outerHide({clbk:function(){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}});var d=jQuery(a).position(),e=b.outerWidth()/2-a.outerWidth()/2,f=d.left-e;b.css({left:f});jQuery(".dslca-prompt-modal-custom").insertAfter(b);if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeIn()}b.addClass("dslca-modal-open").show()}function dslc_hide_modal(a,b){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_hide_modal");console.log("dslc_hide_modal");var b=jQuery(b);b.outerHide("destroy");b.hide();if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeOut()}b.removeClass("dslca-modal-open")}jQuery(document).ready(function(a){a(document).on("click",".dslca-open-modal-hook",function(a){a.preventDefault();var b=jQuery(this).data("modal");dslc_show_modal(jQuery(this),b)});jQuery(document).on("click",".dslca-close-modal-hook",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-action-disabled")){var b=jQuery(this).data("modal");dslc_hide_modal(jQuery(this),b)}})});function dslc_js_confirm(a,b,c){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_js_confirm");jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").data("id",a);jQuery(".dslca-prompt-modal").data("target",c);jQuery(".dslca-prompt-modal-msg").html(b);jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400);jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_js_confirm_close");jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide();jQuery(".dslca-prompt-modal-cancel-hook").show();jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)});jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_modal_keypress_events(a){if(a.which==13){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-confirm-hook").trigger("click")}}else if(a.which==27){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")}}}jQuery(document).ready(function(a){a(document).on("click",".dslca-prompt-modal-cancel-hook",function(a){a.preventDefault();var b=jQuery(".dslca-prompt-modal").data("id");var c=jQuery(".dslca-prompt-modal").data("target");if(b=="edit_in_progress"){dslc_module_options_cancel_changes(function(){c.trigger("click")})}else if(b=="delete_module"){}dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")});a(document).on("click",".dslca-prompt-modal-confirm-hook",function(b){b.preventDefault();var c=jQuery(".dslca-prompt-modal").data("id");var d=jQuery(".dslca-prompt-modal").data("target");var e=true;if(c=="edit_in_progress"){dslc_module_options_confirm_changes(function(){d.trigger("click")})}else if(c=="disable_lc"){window.location=d}else if("delete_module"===c){var f=d.closest(".dslc-module-front");dslc_delete_module(f)}else if("delete_modules_area"===c){var g=d.closest(".dslc-modules-area");var h=g.closest(".dslc-modules-section-inner");dslc_modules_area_delete(g)}else if(c=="delete_modules_section"){dslc_row_delete(d.closest(".dslc-modules-section"))}else if(c=="export_modules_section"){}else if(c=="import_modules_section"){dslc_row_import(a(".dslca-prompt-modal textarea").val());a(".dslca-prompt-modal-confirm-hook span").css({opacity:0});a(".dslca-prompt-modal-confirm-hook .dslca-loading").show();e=false}if(e)dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")})});jQuery.fn.outerHide=function(a){var b=jQuery;a=a?a:{};var c=this;if("destroy"==a){b(document).unbind("click.outer_hide");return false}b(document).bind("click.outer_hide",function(d){if(b(d.target).closest(c).length==0&&d.target!=c&&b.inArray(b(d.target)[0],b(a.clickObj))==-1&&b(c).css("display")!="none"){if(a.clbk){a.clbk()}else{b(c).hide()}}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_module_copy(a(this).closest(".dslc-module-front"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-module-hook",function(c){c.preventDefault();if(!b())return false;var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var a=jQuery(d).closest(".dslc-module-front");dslc_delete_module(a)}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-edit-hook, .dslc-module-front > div:not(.dslca-module-manage)",function(b){if(dslcDebug)console.log("dslca-module-edit-hook");b.preventDefault();var c=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var d=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||c>0||d>0){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0]!=jQuery(this).closest(".dslc-module-front")[0]){LiveComposer.Builder.UI.shakePanelConfirmButton()}return false}var e=a(this).closest(".dslc-module-front"),f=e.data("dslc-module-id");a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");e.addClass("dslca-module-being-edited");dslc_module_options_show(f);jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("module-editing-in-progress")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){jQuery(".dslca-change-width-module-options",this).toggle();a(this).closest(".dslc-module-front").toggleClass("dslca-change-width-active")}});LiveComposer.Builder.PreviewAreaDocument.on("mouseleave",".dslca-change-width-module-options",function(b){jQuery(this).hide();a(this).closest(".dslc-module-front").removeClass("dslca-change-width-active")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-get-defaults-hook",function(){var b=jQuery(this).closest(".dslc-module-front");var c=dslc_dm_get_defaults(b);var d='<span class="dslca-prompt-modal-title">Module Defaults</span>'+'<span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span>'+"<textarea></textarea><br><br>";a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK');dslc_js_confirm("dev_mode_get_default",d,b)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-refresh-module-hook",function(a){jQuery(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"});jQuery(this).closest(".dslc-module-front").addClass("dslca-module-being-edited");dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-wysiwyg-actions-edit-hook",function(){var a=jQuery(this).parent().siblings(".dslca-editable-content");var b=a.closest(".dslc-module-front");if(b.hasClass("dslc-module-handle-like-accordion")){LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(b.find(".dslc-accordion"));var c=b.find('.dslca-module-option-front[data-id="accordion_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-accordion-item").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(b.hasClass("dslc-module-handle-like-tabs")){LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(b.find(".dslc-tabs"));var c=b.find('.dslca-module-option-front[data-id="tabs_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-tabs-tab-content").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else{var f=b.find('.dslca-module-option-front[data-id="'+a.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}if(f.includes("%")){f=f.replace(/%\(\(%/g,"[");f=f.replace(/%\)\)%/g,"]");f=f.replace(/%\(%/g,"[");f=f.replace(/%\)%/g,"]");f=f.replace(/%\{%/g,"[");f=f.replace(/%\}%/g,"]")}if(typeof tinymce!="undefined"){var g=tinymce.get("dslcawpeditor");if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){g.setContent(f,{format:"html"})}else{jQuery("textarea#dslcawpeditor").val(f)}if(!b.hasClass("dslca-module-being-edited")){b.find(".dslca-module-edit-hook").trigger("click")}jQuery(".dslca-wp-editor").show();a.addClass("dslca-wysiwyg-active");jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else{console.info("Live Composer: TinyMCE is undefined.")}});LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){dslc_editable_content_gen_code(jQuery(this))}}).on("paste",".dslca-editable-content:not(.inline-editor)",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){var a=jQuery(this);setTimeout(function(){if(a.data("type")=="simple"){a.html(a.text())}dslc_editable_content_gen_code(a)},100)}}).on("focus",".dslca-editable-content",function(){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length>0&&!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).trigger("blur")}}).on("keyup",".dslca-editable-content",function(){if(jQuery(this).data("type")=="simple"){jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}})});function dslc_module_delete(a){if(dslcDebug)console.log("dslc_delete_module");a.addClass("dslca-module-being-deleted");if(a.hasClass("dslca-module-being-edited")){dslc_show_section(".dslca-modules")}setTimeout(function(){a.remove();dslc_generate_code();dslc_show_publish_button()},1e3);a.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){a.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(a){if(dslcDebug)console.log("dslc_copy_module");jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");var b=a[0].cloneNode(true);jQuery(b).appendTo(a.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).addClass("dslca-module-being-edited");dslc_module_new_id(b);dslc_generate_code();jQuery(b).css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300);dslc_show_publish_button()}function dslc_module_new_id(a){var b=LiveComposer.Utils.get_unique_id();var c=a.getAttribute("id");a.setAttribute("data-module-id",b);a.setAttribute("id","dslc-module-"+b);var d=a.getElementsByTagName("style")[0];var e=d.textContent;d.setAttribute("id","#css-for-dslc-module-"+b);e=e.split(c).join("dslc-module-"+b);d.textContent=e;LiveComposer.Utils.update_module_property_raw(a,"module_instance_id",b)}function dslc_module_width_set(a,b){if(dslcDebug)console.log("dslc_module_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c);a[0].setAttribute("data-dslc-module-size",b);LiveComposer.Utils.update_module_property_raw(a[0],"dslc_m_size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();dslc_generate_code();dslc_show_publish_button()}function dslc_module_options_show(a){if(dslcDebug)console.log("dslc_module_options_show");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=jQuery(".dslca-module-options-front textarea",b),d=jQuery(".dslca-header").data("default-section"),e=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(e);var f={};f["action"]="dslc-ajax-display-module-options";f["dslc"]="active";f["dslc_module_id"]=a;f["dslc_post_id"]=jQuery(".dslca-container").data("data-post-id");f.dslc_url_vars=LiveComposer.Utils.get_page_params();c.each(function(){var a=jQuery(this),b=a.data("id"),c=a.val();if(c.includes("%")){c=c.replace(/%\(\(%/g,"[");c=c.replace(/%\)\)%/g,"]");c=c.replace(/%\(%/g,"[");c=c.replace(/%\)%/g,"]");c=c.replace(/%\{%/g,"[");c=c.replace(/%\}%/g,"]")}f[b]=c});jQuery(".dslca-wp-editor-actions").hide();jQuery(".dslca-wp-editor-notification").show();dslc_hide_publish_button();LiveComposer.Builder.UI.initInlineEditors();var g=jQuery(".dslca-module-options-front",b).children().clone();LiveComposer.Builder.moduleBackup=g;LiveComposer.Builder.Flags.panelOpened=true;e.show();e.addClass("show");jQuery.post(DSLCAjax.ajaxurl,f,function(a){e.remove();dslc_show_section(".dslca-module-edit");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html(a.output)}else{jQuery(".dslca-module-edit-options-inner").html(a.output)}jQuery(".dslca-module-edit-options-tabs").html(a.output_tabs);var b=[];jQuery(".dslca-module-edit-options-inner .dslca-module-edit-option").each(function(){var a=jQuery(this).data("section");if(b.indexOf(a)==-1){b.push(a)}});var c=b.length;for(var f=0;f<c;f++){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+b[f]+'"]').show()}if(jQuery('.dslca-module-edit-option[data-section="'+d+'"]').length){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').show();jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').trigger("click")}else{jQuery(".dslca-header .dslca-options-filter-hook:first").hide();jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")}jQuery(".dslca-module-edit-actions").show();jQuery(".dslca-wp-editor-notification").hide();jQuery(".dslca-wp-editor-actions").show();jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery(".dslca-row-edit-actions").hide();LiveComposer.Builder.UI.loadOptionsDeps()})}function dslc_module_output_default(a,b){if(dslcDebug)console.log("dslc_module_output_default");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:a,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:true},function(a){b(a)})}function dslc_module_output_altered(a){if(dslcDebug)console.log("dslc_module_output_altered");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=b.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",b),e=b.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");if(b.hasClass("dslca-preload-preset"))f["dslc_preload_preset"]="enabled";else f["dslc_preload_preset"]="disabled";b.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});f.dslc_url_vars=LiveComposer.Utils.get_page_params();jQuery.post(DSLCAjax.ajaxurl,f,function(c){var d=LiveComposer.Builder.Helpers.insertModule(c.output,b);d.addClass("dslca-module-being-edited");c=null;d=null;LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();var e=new Event("dslc_module_output_altered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(e);if(a){a(c)}})}function dslc_module_output_reload(a,b){if(dslcDebug)console.log("dslc_module_output_reload");b=typeof b!=="undefined"?b:false;var c=a.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",a),e=a.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");f["dslc_preload_preset"]="enabled";a.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});a.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>');jQuery.post(DSLCAjax.ajaxurl,f,function(c){a.after(c.output).next().addClass("dslca-module-being-edited");a.remove();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(b){b(c)}jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})}function dslc_delete_module(a){dslc_module_delete(a)}function dslc_copy_module(a){dslc_module_copy(a)}function dslc_display_module_options(a){dslc_module_options_show(a)}function dslc_get_module_output(a,b){dslc_module_output_default(a,b)}function dslc_preview_change(a){dslc_module_output_altered(a)}function dslc_reload_module(a,b){dslc_module_output_reload(a,b)}"use strict";LiveComposer.Builder.Elements.CModuleArea=function(a){var b=this;this.section=jQuery(a).closest(".dslc-modules-section");this.elem=a;this.observer=new mqMutationObserver(a,function(){var c=b.elem.classList;if(a.querySelectorAll(".dslc-module-front").length==0){c.add("dslc-modules-area-empty");c.remove("dslc-modules-area-not-empty")}else{c.remove("dslc-modules-area-empty");c.add("dslc-modules-area-not-empty")}},{childList:true});this.sortable=Sortable.create(a,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML);
|
2 |
},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(a){a.oldIndex;a.newIndex;a.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(a){var c=a.item;a.from;if(jQuery(c).data("id")=="DSLC_M_A"){dslc_modules_area_add(jQuery(b.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner"));c.remove()}},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;if(jQuery(".dslc-modules-area-empty").find(".dslc-module-front").length>0){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})}}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){function a(){var a=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(a).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)})}var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};if(!jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length&&!jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length){dslc_row_add(a())}else{a()}LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area");dslc_copy_modules_area(c)}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty");if(!c){var d=jQuery(this);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){var a=d.closest(".dslc-modules-area");dslc_modules_area_delete(a)}})}else{var e=jQuery(this).closest(".dslc-modules-area");dslc_delete_modules_area(e)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){if(jQuery(".dslca-change-width-modules-area-options:visible",this).length){jQuery(".dslca-change-width-modules-area-options",this).hide()}else{jQuery(".dslca-change-width-modules-area-options",this).show()}}});LiveComposer.Builder.PreviewAreaDocument.on("mouseleave",".dslca-change-width-modules-area-options",function(a){jQuery(this).hide()});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(a){a.preventDefault();if(!b())return false;dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});function dslc_modules_area_add(a){if(dslcDebug)console.log("dslc_add_modules_area");var b='<div class="dslc-modules-area dslc-col dslc-12-col dslc-modules-area-empty " data-size="12">'+'<div class="dslca-modules-area-manage"> <div class="dslca-modules-area-manage-inner">'+'<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy">'+'</span></span> <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" >'+'<span class="dslca-icon dslc-icon-move"></span></span>'+'<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >'+'<span class="dslca-icon dslc-icon-columns"></span> <div class="dslca-change-width-modules-area-options">'+'<span>Container Width</span><span data-size="1">1/12</span><span data-size="2">2/12</span>'+'<span data-size="3">3/12</span><span data-size="4">4/12</span> <span data-size="5">5/12</span><span data-size="6">6/12</span>'+'<span data-size="7">7/12</span><span data-size="8">8/12</span> <span data-size="9">9/12</span><span data-size="10">10/12</span>'+'<span data-size="11">11/12</span><span data-size="12">12/12</span> </div> </span>'+'<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span> </div> </div>'+"</div>";jQuery(b).appendTo(a).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var c=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(c).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)});dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()}function dslc_modules_area_delete(a){if(dslcDebug)console.log("dslc_delete_modules_area");var b=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),c=false;a.addClass("dslca-modules-area-being-deleted");if(b.find(".dslc-modules-area").length<2){c=true}if(a.find(".dslca-module-being-edited").length){jQuery(".dslca-header .dslca-options-filter-hook",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-module-edit-actions",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-header .dslca-go-to-section-hook",LiveComposer.Builder.PreviewAreaDocument).show();dslc_show_section(".dslca-modules")}setTimeout(function(){if(c){var d=a.closest(".dslc-modules-section-inner");if(2<=a.closest("#dslc-main").find(".dslc-modules-section").length){dslc_row_delete(a.closest(".dslc-modules-section"))}else{a.remove();dslc_modules_area_add(b)}}a.remove();dslc_generate_code();dslc_show_publish_button()},900);a.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){a.remove();dslc_generate_code();dslc_show_publish_button()})}function dslc_modules_area_copy(a){if(dslcDebug)console.log("dslc_copy_modules_area");var b,c=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner");var d=a.clone().appendTo(c);new LiveComposer.Builder.Elements.CModuleArea(d[0]);d.find(".dslca-modules-area-manage").trigger("mouseleave");d.data("size",a.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_generate_code();a.animate({opacity:1},300)});dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()}function dslc_modules_area_width_set(a,b){if(dslcDebug)console.log("dslc_modules_area_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c).data("size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();if(LiveComposer.Builder.Flags.panelOpened){return false}dslc_generate_code();dslc_show_publish_button()}LiveComposer.Builder.moduleareas_init=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CModuleArea(this)}})};function dslc_add_modules_area(a){dslc_modules_area_add(a)}function dslc_delete_modules_area(a){dslc_modules_area_delete(a)}function dslc_copy_modules_area(a){dslc_modules_area_copy(a)}"use strict";function dslc_update_preset(){if(dslcDebug)console.log("dslc_update_preset");var a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),b=a.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),c=a.find(".dslca-module-code").val(),d=a.data("dslc-module-id");if("none"!==b&&""!==b){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:b,dslc_preset_code:c,dslc_module_id:d},function(b){if(b.preset_setting=="enabled"){jQuery(".dslc-module-front:not(#"+a.attr("id")+')[data-dslc-module-id="'+a.data("dslc-module-id")+'"][data-dslc-preset="'+a.data("dslc-preset")+'"]',LiveComposer.Builder.PreviewAreaDocument).each(function(){dslc_module_output_reload(jQuery(this))})}})}}jQuery(document).ready(function(a){a(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(b){if(b.which==13){var c=a(this).val(),d=c.toLowerCase().replace(/\s/g,"-");a("body").addClass("dslca-new-preset-added");a('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+d+'">'+d+"</option>").val(d).trigger("change");a(this).val("")}});a(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(b){a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")})});"use strict";LiveComposer.Builder.Elements.CRow=function(a){var b=this;this.elem=a;var c=jQuery(a).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0];jQuery(a).droppable({drop:function(a,b){var c=jQuery(this).find(".dslc-modules-section-inner");var d=b.draggable.data("id");if(d=="DSLC_M_A"){dslc_modules_area_add(c)}}});this.sortable=jQuery(c).sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:true,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(a,b){var c=b.placeholder.closest(".dslc-modules-section");jQuery(c).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty");c.siblings(".dslc-modules-section").each(function(){if(jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}})},remove:function(){jQuery(b.elem).find(".dslc-modules-area").length==0&&dslc_modules_area_add(jQuery(c))},update:function(a,b){dslc_generate_code();dslc_show_publish_button()},start:function(a,b){b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>");if(!jQuery(b.item).hasClass("dslc-12-col")){b.placeholder.width(b.item.width()-10)}else{b.placeholder.width(b.item.width()).css({margin:0})}jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress");jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(a,b){LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(a,b){}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new LiveComposer.Builder.Elements.CRow(this)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(c){if(!b())return false;c.preventDefault();var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){dslc_row_delete(a(d).closest(".dslc-modules-section"))}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){dslc_row_import(jQuery(".dslca-prompt-modal textarea").val());jQuery(".dslca-prompt-modal-confirm-hook span").css({opacity:0});jQuery(".dslca-prompt-modal-confirm-hook .dslca-loading").show()},confirm_title:DSLCString.str_import})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-export-modules-section-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>"+"["+dslc_generate_section_code(a(this).closest(".dslc-modules-section"))+"]"+"</textarea></span>"})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_row_copy(jQuery(this).closest(".dslc-modules-section"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(c){c.preventDefault();if(!b())return false;var d=a(this);if(!a(this).hasClass("dslca-action-disabled")){d.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin");dslc_row_add(function(){d.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-edit-modules-section-hook",function(){if(!b())return false;var c=this;var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||d>0||e>0)return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_row_edit(a(this).closest(".dslc-modules-section"))}jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})});function dslc_row_add(a){if(dslcDebug)console.log("dslc_row_add");a=typeof a!=="undefined"?a:false;var b=jQuery.Deferred();var c=sessionStorage;var d=jQuery();var e=c.getItem("cache-dslc-ajax-add-modules-section");if(null===e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(e){c.setItem("cache-dslc-ajax-add-modules-section",e.output);d=dslc_row_after_add(e.output);if(a){a()}return b})}else{d=dslc_row_after_add(e);if(a){a()}return b}}function dslc_row_after_add(a){var b=jQuery(a);b.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main"));dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button();new LiveComposer.Builder.Elements.CRow(b);new LiveComposer.Builder.Elements.CModuleArea(b.find(".dslc-modules-area").eq(0)[0]);b.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col");return b}function dslc_row_delete(a){if(dslcDebug)console.log("dslc_row_delete");if(a.find(".dslca-module-being-edited")){jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_section(".dslca-modules")}a.trigger("mouseleave").remove();dslc_generate_code();dslc_show_publish_button()}function dslc_row_edit(a){if(dslcDebug)console.log("dslc_row_edit");var b,c;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made");a.addClass("dslca-modules-section-being-edited");jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show();jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-row-edit-actions").show();jQuery(".dslca-modules-section-edit-field").each(function(){if("type"===jQuery(this).data("id")){if(""===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()||"wrapped"===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()){jQuery('select[data-id="type"]').val("wrapper").change()}}if(jQuery(this).data("id")=="border-top"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("top")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-right"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("right")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-bottom"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("bottom")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-left"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("left")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox")){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf(jQuery(this).data("val"))>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else{jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val());if(jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var a=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":a.val()});jQuery(this).css({"background-color":a.val()})}}});jQuery(".dslca-modules-section-edit-field-upload").each(function(){var a=jQuery(this).closest(".dslca-modules-section-edit-option");if(jQuery(this).val()&&jQuery(this).val()!=="disabled"){jQuery(".dslca-modules-section-edit-field-image-add-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).show()}else{jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-add-hook",a).show()}});dslc_show_section(".dslca-modules-section-edit");LiveComposer.Builder.Flags.panelOpened=true;dslc_hide_publish_button()}function dslc_row_edit_cancel(a){if(dslcDebug)console.log("dslc_row_cancel_changes");a=typeof a!=="undefined"?a:false;LiveComposer.Builder.Flags.generate_code_after_row_changed=false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).val(jQuery(this).data("def"));jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")});LiveComposer.Builder.Flags.generate_code_after_row_changed=true;dslc_generate_code();dslc_show_publish_button();dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button;jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_edit_confirm(a){if(dslcDebug)console.log("dslc_confirm_row_changes");a=typeof a!=="undefined"?a:false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())});dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");dslc_generate_code();dslc_show_publish_button();if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_copy(a){if(dslcDebug)console.log("dslc_row_copy");var b,c,d;c=a.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument));c[0].removeAttribute("data-jsinit");c.find(".dslc-modules-area").each(function(){var b=jQuery(this).index();jQuery(this).data("size",a.find(".dslc-modules-area:eq( "+b+" )").data("size"));this.removeAttribute("data-jsinit")});new LiveComposer.Builder.Elements.CRow(c);c.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_generate_code();dslc_drag_and_drop();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");a.animate({opacity:1},300);dslc_show_publish_button()});dslc_section_new_id(c[0])}function dslc_section_new_id(a){if(dslcDebug)console.log("dslc_section_new_id");var b=LiveComposer.Utils.get_unique_id();a.setAttribute("data-section-id",b);LiveComposer.Utils.update_section_property_raw(a,"section_instance_id",b)}function dslc_row_import(a){if(dslcDebug)console.log("dslc_row_import");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:a},function(a){dslc_js_confirm_close();jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(a){dslc_row_delete(a)}function dslc_edit_modules_section(a){dslc_row_edit(a)}function dslc_copy_modules_section(a){dslc_row_copy(a)}function dslc_import_modules_section(a){dslc_row_import(a)}jQuery(document).ready(function(a){a(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)});a(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)})});LiveComposer.Builder.rows_init=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CRow(this)}})};jQuery(document).ready(function(a){var b=function(a){var b=.75;var c=500;var d=100;var e=jQuery(".dslca-section-scroller",a);var f=jQuery(".dslca-section-scroller-inner",a)[0];e.on("wheel",function(a){g(a.originalEvent.deltaY||a.originalEvent.deltaX);return false});function g(a){if(a<0){a=-d}else{a=d}a=a*b;var c=e.find(".dslca-section-scroller-content").width();var g=e.width();if(c<=g)return false;var h=c-g+10;a=parseInt(f.style.left||0)-a;a=a>=0?0:a;a=a<=-h?-h:a;f.style.left=a+"px"}jQuery(".dslca-section-scroller-prev",a).click(function(a){a.preventDefault();g(-c)});jQuery(".dslca-section-scroller-next",a).click(function(a){a.preventDefault();g(c)});jQuery(window).load(function(){jQuery(window).resize(function(){g(0)})})};b(jQuery(".dslca-section.dslca-modules"));b(jQuery(".dslca-section.dslca-templates-load"))});jQuery(document).ready(function(a){LiveComposer.Builder.UI.initPreviewAreaScroller=function(){var a=5;var b=6;LiveComposer.Builder.Flags.windowScroller=false;jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(a){LiveComposer.Builder.UI.stopScroller()});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter dragover",".lc-scroll-bottom-area",function(c){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(c){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(a){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{});clearInterval(LiveComposer.Builder.Flags.windowScroller);LiveComposer.Builder.Flags.windowScroller=false};jQuery("#scroller-stopper").on("dragover",function(){LiveComposer.Builder.UI.stopScroller()})});"use strict";LiveComposer.Builder.Elements.CSectionsContainer=function(a){var b=this;this.sortable=jQuery(a).sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"intersect",cursorAt:{bottom:10},axis:"y",scroll:true,scrollSensitivity:140,scrollSpeed:5,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(a,b){dslc_show_publish_button()},start:function(a,b){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>");jQuery(".dslc-content").sortable("refreshPositions")},stop:function(a,b){dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")}});jQuery(document).on("LC.sortableOff",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).ready(function(a){dslc_module_options_tooltip();dslc_module_options_font();dslc_module_options_icon();dslc_module_options_icon_returnid();dslc_module_options_text_align();dslc_module_options_checkbox();dslc_module_options_box_shadow();dslc_module_options_text_shadow();var b="";b+=".dslca-module-edit-field-colorpicker";
|
3 |
b+=", .dslca-modules-section-edit-field-colorpicker";b+=", .dslca-module-edit-option-box-shadow-color";b+=", .dslca-module-edit-option-text-shadow-color";jQuery(document).on("click",b,function(){dslc_module_options_color(this);var a=jQuery(this).closest(".dslca-color-option");var b=jQuery(".dslca-module-edit-options-inner");var c=a.find(".wp-picker-holder");var d=a.offset();var e=d.left+15;var f=window.innerWidth;var g=260;if(f<e+g){e=f-g}c.css("left",e+"px");jQuery(b).on("scroll",function(b){d=a.offset();var e=d.left+15;var f=window.innerWidth;var g=260;if(f<e+g){e=f-g}c.css("left",e+"px")})});jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-module-edit-form").submit(function(a){a.preventDefault();dslc_module_output_altered()});a(document).on("click",".dslca-module-edit-options-tab-hook",function(b){b.preventDefault();dslc_module_options_tab_filter(a(this))});a(document).on("click",".dslca-options-filter-hook",function(b){b.preventDefault();var c=jQuery(".dslca-options-filter-hook.dslca-active").data("section");var d=jQuery(this).data("section");a(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");a(this).addClass("dslca-active");dslc_module_options_section_filter(d);if(c=="responsive"){jQuery(".dslca-container-loader").show();LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()});jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")}if(d=="responsive"){jQuery("#page-builder-preview-area").resizable()}});jQuery(document).on("click",".dslca-module-edit-save",function(a){a.preventDefault();dslc_module_options_confirm_changes(function(){LiveComposer.Builder.UI.initInlineEditors({withRemove:true});LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-cancel",function(a){a.preventDefault();dslc_module_options_cancel_changes(function(){LiveComposer.Builder.UI.initInlineEditors({withRemove:true});LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()})});(function(){var a=jQuery;var b=LiveComposer.Builder;LiveComposer.Builder.Helpers.colorpickers=[];LiveComposer.Builder.UI.initInlineEditors=function(a){a=a||{};if(a.withRemove==true){try{LiveComposer.Builder.PreviewAreaWindow.tinyMCE.remove()}catch(b){console.info("No tinyMCE code found. Error code: 10181116.")}}LiveComposer.Builder.PreviewAreaWindow.tinyMCE.init({selector:".inline-editor.dslca-editable-content",editor_deselector:"mce-content-body",menubar:false,inline:true,plugins:"wordpress wplink lists paste",paste_as_text:true,paste_block_drop:true,style_formats:[{title:"Paragraph",format:"p"},{title:"Header 1",format:"h1"},{title:"Header 2",format:"h2"},{title:"Header 3",format:"h3"},{title:"Header 4",format:"h4"},{title:"Header 5",format:"h5"},{title:"Header 6",format:"h6"}],toolbar:"styleselect | bold italic blockquote | removeformat | bullist numlist "})};LiveComposer.Builder.UI.clearUtils=function(){if(dslcDebug)console.log("LiveComposer.Builder.UI.clearUtils");LiveComposer.Builder.UI.clearColorPickers();if(undefined!==LiveComposer.Builder.moduleBackup){LiveComposer.Builder.moduleBackup.remove()}jQuery(".temp-styles-for-module",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery(".mce-tinymce",LiveComposer.Builder.PreviewAreaDocument).hide()};LiveComposer.Builder.UI.clearColorPickers=function(){if(Array.isArray(b.Helpers.colorpickers)){b.Helpers.colorpickers.forEach(function(a){if(!jQuery(a).hasClass("dslca-modules-section-edit-field")){jQuery(a).remove()}});b.Helpers.colorpickers=[]}jQuery("body").off("click.wpcolorpicker")};LiveComposer.Builder.Helpers.depsHandlers=[];LiveComposer.Builder.UI.loadOptionsDeps=function(){var b=this;a(".dslca-module-edit-option").each(function(){var b=this;var c=true;try{var d=JSON.parse(LiveComposer.Utils.b64_to_utf8(a(this).data("dep")))}catch(e){c=false}if(c){var f=function(){var b=this;var c={};if((b.type=="radio"||b.type=="checkbox")&&d[b.value]==undefined){return false}if(b.type=="checkbox"&&d[b.value]!=undefined){c[b.value]=d[b.value]}else{c=d}Object.keys(c).forEach(function(d){c[d].split(",").forEach(function(c){var e=a(".dslca-module-edit-option-"+c.trim()).closest(".dslca-module-edit-option");var f=true;if(b.type=="radio"||b.type=="checkbox"){f=a(b).is(":checked")}if(b.value==d&&f){e.show()}else{e.hide()}})})};a(document).on("change dslc-init-deps",'.dslca-module-edit-option *[data-id="'+a(this).data("id")+'"]',f);LiveComposer.Builder.Helpers.depsHandlers.push(f)}});a(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")};LiveComposer.Builder.UI.unloadOptionsDeps=function(){LiveComposer.Builder.Helpers.depsHandlers.forEach(function(b){a(document).unbind("change",b);a(document).unbind("dslc-init-deps",b)});LiveComposer.Builder.Helpers.depsHandlers=[]};LiveComposer.Builder.Helpers.processInlineStyleTag=function(a){if(typeof a!="object")return false;var b="",c="";if(a.context.closest(".dslca-module-edit-option").data("tab")=="tablet_responsive"){b="@media only screen and (max-width: 1024px) and (min-width: 768px) {";c="}"}else if(a.context.closest(".dslca-module-edit-option").data("tab")=="phone_responsive"){b="@media only screen and (max-width: 767px) {";c="}"}a.styleContent=b+a.styleContent+c;var d=b+a.rule+a.elems;d=d.replace(/ /gi,"");if(LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d)==null){var e=document.createElement("style");e.innerHTML=a.styleContent;e.id=d;e.className="temp-styles-for-module";LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(e)}else{LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d).innerHTML=a.styleContent}};LiveComposer.Builder.UI.shakePanelConfirmButton=function(){jQuery(".dslca-module-edit-save").addClass("lc-shake-effect active");setTimeout(function(){jQuery(".dslca-module-edit-save").removeClass("lc-shake-effect active")},1e3)}})();function dslc_module_options_section_filter(a){if(dslcDebug)console.log("dslc_module_options_section_filter");jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-section="'+a+'"]').show();dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(a){if(dslcDebug)console.log("dslc_module_options_tab_filter");var b=jQuery(".dslca-options-filter-hook.dslca-active").data("section");a=typeof a!=="undefined"?a:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]:first');var c=a.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active");a.addClass("dslca-active");jQuery(".dslca-module-edit-options-tabs").show();jQuery(".dslca-module-edit-options-tab-hook").hide();jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]').show();if(c){jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-tab="'+c+'"]').show();dslc_module_options_hideshow_tabs();if(jQuery(".dslca-module-edit-options-tab-hook:visible").length<2){jQuery(".dslca-module-edit-options-tabs").hide()}else{jQuery(".dslca-module-edit-options-tabs").show()}dslc_disable_responsive_view();if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-tablet");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-phone");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"||c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})}}}function dslc_module_options_hideshow_tabs(){if(dslcDebug)console.log("dslc_module_options_hideshow_tabs");var a=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(a=="styling"){var b=jQuery(".dslca-module-edit"),c=true,d=true,e=true,f=true,g=true,h=true,i=true,j=true,k=true,l=true,m=true,n=true,o=true,p=true,q=true,r=true,s=true,t=true,u=true,v=true,w=true,x=true,y=true,z=true,A=true,B=true;if(!jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked"))c=false;if(!jQuery('.dslca-module-edit-field[value="filters"]').is(":checked"))d=false;if(!jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked"))e=false;if(!jQuery('.dslca-module-edit-field[value="circles"]').is(":checked"))f=false;if(jQuery('.dslca-module-edit-field[data-id="type"]').val()!="carousel"){e=false;f=false}if(jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()=="disabled"){g=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")){h=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")){i=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")){j=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")){k=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")){l=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")){m=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")){o=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")){n=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")){p=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")){q=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")){r=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")){s=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")){t=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")){u=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")){v=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")){w=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")){x=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")){y=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")){z=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")){A=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(":checked")){B=false}if(c)jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide();if(d)jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide();if(e)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide();if(f)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide();if(g)jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide();if(h)jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide();if(i)jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide();if(j)jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide();if(k)jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide();if(l)jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide();if(m)jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide();if(o)jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide();if(n)jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide();if(p)jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide();if(r)jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide();if(q)jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide();if(s)jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide();if(t)jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide();if(u)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide();if(v)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide();if(w||x)jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide();if(y)jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide();if(z)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide();if(A)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide();if(B)jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Text_Simple"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_TP_Content"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Html"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Shortcode"){var C=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),D=C.find("select").val();if(D=="enabled"){jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"});jQuery(".dslca-module-edit-option[data-tab]").css("visibility","visible");jQuery(".dslca-module-edit-options-tabs").show()}else{jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"});jQuery(".dslca-module-control-group.dslca-module-edit-option").css("visibility","hidden");jQuery(".dslca-module-edit-options-tabs").hide();C.css({visibility:"visible"})}}}else{jQuery(".dslca-module-edit-options-tabs").show()}if(jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","visible")}if(jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","visible")}jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(a){if(dslcDebug)console.log("dslc_module_options_confirm_changes");a=typeof a!=="undefined"?a:false;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}else{jQuery("body").addClass("dslca-module-saving-in-progress");dslc_module_output_altered(function(){dslc_update_preset();dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery("body").removeClass("dslca-module-saving-in-progress");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(a){a()}})}dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_cancel_changes(a){if(dslcDebug)console.log("dslc_module_options_cancel_changes");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",b).html("").append(LiveComposer.Builder.moduleBackup);dslc_module_output_altered(function(){dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(a){a()}});dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button();LiveComposer.Builder.UI.clearUtils()}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()});jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-ttip"),b=a.find(".dslca-module-edit-field-ttip-inner"),c=jQuery(this),d,e;e=c.parent();if(e.parent().hasClass("dslca-modules-section-edit-option")){d=c.closest(".dslca-modules-section-edit-option").find(".dslca-module-edit-field-ttip-content").html()}else{d=c.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html()}if(a.is(":visible")){jQuery(".dslca-module-edit-field-ttip").hide()}else{b.html(d);var f=c.offset();var g=a.outerHeight();var h=a.outerWidth();var i=f.left-h/2+6;var j="50%";if(i<0){j=h/2+i+"px";i=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:f.top-g-20,left:i});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+j+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-icon-ttip");var b=jQuery(this);if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-ttip").hide()}else{var c=b.offset();var d=a.outerHeight();var e=a.outerWidth();var f=c.left-e/2+6;var g="50%";if(f<0){g=e/2+f+"px";f=0}jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:c.top-d-20,left:f});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+g+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d+1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d-1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");if(e<0){e=dslcAllFontsArray.length-1}c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("keyup",".dslca-module-edit-field-font",function(a){var b,c,d,e=false,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){jQuery(".dslca-module-edit-field-font-prev",c).click()}if(a.which==40){jQuery(".dslca-module-edit-field-font-next",c).click()}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val();var g=[];var h=new RegExp("^"+d,"i");var i=dslcAllFontsArray.length;var j=0;do{if(h.test(dslcAllFontsArray[j])){if(!e){var e=dslcAllFontsArray[j]}}j++}while(j<i);if(!e){f=d;jQuery(".dslca-module-edit-field-font-suggest",c).hide()}else{f=e;jQuery(".dslca-module-edit-field-font-suggest",c).show()}jQuery(".dslca-module-edit-field-font-suggest",c).text(f);if(f.length){b.val(f.substring(0,b.val().length))}}});jQuery(document).on("keypress",".dslca-module-edit-field-font",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-font-suggest",c).text("")}})}function dslc_list_icon(a,b){var c=jQuery(a).closest(".dslca-module-edit-option-icon");var d=jQuery(".dslca-module-edit-field-icon",c);var e=dslcIconsCurrentSet.indexOf(d.val());if(b=="previous"){var f=e-1}else{var f=e+1}jQuery(".dslca-module-edit-field-icon-suggest",c).text("");if(f<0){f=dslcIconsCurrentSet.length-1}d.val(dslcIconsCurrentSet[f]).trigger("change")}function dslc_module_options_icon(){jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(a){var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){dslc_list_icon(b,"previous")}if(a.which==40){dslc_list_icon(b,"next")}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val().toLowerCase();b.val(d);e=jQuery.grep(dslcIconsCurrentSet,function(a,b){return a.indexOf(d)==0});f=e[0];jQuery(".dslca-module-edit-field-icon-suggest",c).text(f)}});jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-icon-suggest",c).text("")}})}function dslc_module_options_icon_returnid(){jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(a){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")});jQuery(document).on("click",".dslca-modal-icons .icon-item",function(a){var b=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(b).change();dslc_hide_modal("",jQuery(".dslca-modal:visible"));jQuery("input.icon-modal-active").removeClass("icon-modal-active")})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var a=jQuery(this),b=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),c=a.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");b.removeClass("dslca-active");a.addClass("dslca-active");d.val(c).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var a=jQuery(this);var b=a.siblings('input[type="checkbox"]');if(b.prop("checked")){b.prop("checked",false);a.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}else{b.prop("checked",true);a.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}b.change()})}function dslc_module_options_box_shadow(){if(dslcDebug)console.log("dslc_module_options_box_shadow");jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, "+".dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread,"+" .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-box-shadow-hor").val(),d=a.find(".dslca-module-edit-option-box-shadow-ver").val(),e=a.find(".dslca-module-edit-option-box-shadow-blur").val(),f=a.find(".dslca-module-edit-option-box-shadow-spread").val(),g=a.find(".dslca-module-edit-option-box-shadow-color").val(),h=a.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");if(h){h=" inset"}else{h=""}var i=c+"px "+d+"px "+e+"px "+f+"px "+g+h;b.val(i).trigger("change")})}function dslc_module_options_text_shadow(){if(dslcDebug)console.log("dslc_module_options_text_shadow");jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver,"+".dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-text-shadow-hor").val(),d=a.find(".dslca-module-edit-option-text-shadow-ver").val(),e=a.find(".dslca-module-edit-option-text-shadow-blur").val(),f=a.find(".dslca-module-edit-option-text-shadow-color").val();var g=c+"px "+d+"px "+e+"px "+f;b.val(g).trigger("change")})}function dslc_module_options_color(a){if(dslcDebug)console.log("dslc_module_options_color");var b,c,d,e,f,g,h;var i=[],j,k;var l="dslcColors-"+document.domain;if(undefined!==localStorage[l]){j=JSON.parse(localStorage[l]);i=j}if(1>i.length){i.push("#78b")}if(2>i.length){i.push("#ab0")}if(3>i.length){i.push("#de3")}i.push("#fff");i.push("#000");i.push("rgba(0,0,0,0)");var m=a;jQuery(m).each(function(){var a=jQuery(this).closest(".dslca-color-option");var j=jQuery(this);h=jQuery(this).val();j.wpColorPicker({mode:"hsl",palettes:i,change:function(a,h){b=j;var i=j.wpColorPicker("color");if(i==null){e=""}else{e=i}b.val(e).trigger("change");b.css("background",e);c=b.data("affect-on-change-el");d=b.data("affect-on-change-rule");if(null!=c){jQuery(c,".dslca-module-being-edited").css(d,e)}f=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);g=b.data("id");jQuery('.dslca-module-option-front[data-id="'+g+'"]',f).val(e);f.addClass("dslca-module-change-made")}});var k=a.find(".wp-picker-holder .iris-picker");k.append('<button type="button" class="dslca-colorpicker-apply">Apply</button>');var m=a.find(".dslca-colorpicker-apply");j.wpColorPicker("open");jQuery(m).on("click",function(){if("#fff"!==e&&"#ffffff"!==e&&"#000"!==e&&"#000000"!==e&&"rgba(0,0,0,0)"!==e){if(undefined===localStorage[l]){var a=[e];localStorage[l]=JSON.stringify(a)}else{var a=JSON.parse(localStorage[l]);if(a.indexOf(e)==-1){a.unshift(e);if(3<a.length){a.pop()}}localStorage[l]=JSON.stringify(a)}}j.wpColorPicker("close")});LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))})}function dslc_module_options_numeric(a){if(dslcDebug)console.log("dslc_module_options_numeric");var b=a;jQuery(b).each(function(){var a=jQuery(this);if(0===jQuery(".dslca-module-edit-field-slider",a).length){a.append('<div class="dslca-module-edit-field-slider"></div>')}var b=true;if(a.hasClass("dslca-modules-section-edit-option")){b=false}else{b=true}if(b){var c=a.find(".dslca-module-edit-field")}else{var c=a.find(".dslca-modules-section-edit-field")}if(a.hasClass("dslca-modules-section-edit-option")){var c=a.find(".dslca-modules-section-edit-field")}else{var c=a.find(".dslca-module-edit-field")}var d="",e=a.find(".dslca-module-edit-field-slider"),f=parseFloat(c.val()),g=parseFloat(c.data("max")),h=parseFloat(c.data("min")),i=parseFloat(c.data("increment")),j=g,k=h;var l=false;if(undefined!==c.data("onlypositive")&&1===c.data("onlypositive")){l=true}if(f>=g){g=f*2}if(!l&&f<=h){h=f*2}e.slider({min:h,max:g,step:i,value:c.val(),slide:function(a,b){c.val(b.value+d);c.trigger("change")},change:function(b,c){if(c.value>=g||c.value<=h){e.slider("destroy");dslc_module_options_numeric(a)}}});e.show();jQuery(a).on("mouseleave",function(){if(undefined!==e.slider("instance")){jQuery(e).slider("destroy")}e.remove()});if(c[0].classList.contains("slider-initiated"))return;
|
4 |
c[0].classList.add("slider-initiated");c.on("keyup",function(a){if(undefined===a){return false}if(a.shiftKey){if(a.keyCode==38){this.value=(parseInt(this.value)||0)+9;c.trigger("change")}if(a.keyCode==40){this.value=parseInt(this.value)+0-9;c.trigger("change")}}if(a.keyCode==8||a.keyCode==45){c.trigger("change")}if(a.keyCode>=48&&a.keyCode<=57||a.keyCode>=96&&a.keyCode<=105){c.trigger("change")}var b=a.which?a.which:a.keyCode;if((b>=48&&b<=57||b>=96&&b<=105)&&a.keyCode!=8&&a.keyCode!=39&&a.keyCode!=37&&a.keyCode!=46){return false}});c.on("change",function(a){if(l&&this.value<0){this.value=0}var c;if(b){c=jQuery(a.target.closest(".dslca-module-edit-option-slider"))}else{c=jQuery(a.target.closest(".dslca-modules-section-edit-option-slider"))}var d=c.find(".dslca-module-edit-field-slider");if(undefined!==d.slider("instance")){d.slider("value",this.value)}if(b){var e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);e.addClass("dslca-module-change-made")}});return false})}function dslc_disable_responsive_view(){jQuery("html").removeClass("dslc-responsive-preview");jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function dslc_filter_module_options(a){dslc_module_options_section_filter(a)}function dslc_show_module_options_tab(a){dslc_module_options_tab_filter(a)}function dslc_confirm_changes(a){dslc_module_options_confirm_changes(a)}function dslc_cancel_changes(a){dslc_module_options_cancel_changes(a)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}"use strict";function dslc_template_load(a){if(dslcDebug)console.log("dslc_load_template");var b,c;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:a},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_import(){if(dslcDebug)console.log("dslc_import_template");var a,b;jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0});jQuery(".dslca-modal-templates-import .dslca-loading").show();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);jQuery(".dslca-modal-templates-import .dslca-loading").hide();jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1});dslc_hide_modal("",".dslca-modal-templates-import");LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_save(){if(dslcDebug)console.log("dslc_save_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(a){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(a){if(dslcDebug)console.log("dslc_delete_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:a},function(b){jQuery('.dslca-template[data-id="'+a+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(a){dslc_template_load(a)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(a){dslc_template_delete(a)}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-template",function(a){a.preventDefault();dslc_template_load(jQuery(this).data("id"))});a(".dslca-template-import-form").submit(function(a){a.preventDefault();dslc_template_import()});a(".dslca-template-save-form").submit(function(a){a.preventDefault();dslc_template_save()});a(document).on("click",".dslca-delete-template-hook",function(b){b.stopPropagation();dslc_template_delete(a(this).data("id"))})});"use strict";window.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};jQuery(document).on("click",".dslca-show-js-error-hook",function(a){a.preventDefault();var b=document.getElementById("dslca-js-errors-report");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:'<a href="https://livecomposerplugin.com/support/support-request/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> Open Support Ticket</a>',content:'<span class="dslca-error-report">'+b.value+"</span>"})}});jQuery(document).ready(function(a){jQuery("#page-builder-frame")[0].contentWindow.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};dslca_update_report_log();jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress");jQuery(".dslca-invisible-overlay").hide();jQuery(".dslca-section").eq(0).show();window.previewAreaTinyMCELoaded=function(){var a=this;LiveComposer.Builder.PreviewAreaWindow=this;LiveComposer.Builder.PreviewAreaDocument=jQuery(this.document);jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove();LiveComposer.Builder.UI.initInlineEditors();dslc_fix_contenteditable();var b=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new LiveComposer.Builder.Elements.CSectionsContainer(b);jQuery(document).trigger("editorFrameLoaded");dslc_drag_and_drop();dslc_generate_code();dslc_keypress_events();LiveComposer.Builder.UI.initPreviewAreaScroller()}});jQuery(document).on("click",".dslca-currently-editing",function(){var a=false,b=false,c;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#5890e5"}else if(jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#eabba9"}if(a){b=a.offset().top-100;if(b<0){b=0}var d=[];jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:b},300,function(){a.removeAttr("style")})}});jQuery(window).keypress(function(a){if((a.metaKey||a.ctrlKey)&&a.keyCode==83){dslc_ajax_save_composer();a.preventDefault();return false}});jQuery(document).on("click",".dslca-hide-composer-hook",function(a){a.preventDefault();dslc_hide_composer()});jQuery(document).on("click",".dslca-show-composer-hook",function(a){a.preventDefault();dslc_show_composer()});jQuery(document).on("click",".dslca-go-to-modules-hook",function(a){a.preventDefault();dslc_show_section(".dslca-modules")});jQuery(document).on("click",".dslca-go-to-section-hook",function(a){a.preventDefault();if(jQuery(this).hasClass("dslca-active")){return}var b=jQuery(this).data("section");dslc_show_section(b);if(jQuery(this).hasClass("dslca-go-to-section-modules")||jQuery(this).hasClass("dslca-go-to-section-templates")){jQuery(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}});jQuery(document).on("click",".dslca-close-composer-hook",function(a){a.preventDefault();var b=jQuery(this).attr("href");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=b}})}});jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()});jQuery(document).on("click",".dslca-section-title",function(a){a.stopPropagation();if(jQuery(".dslca-section-title-filter",this).length){dslc_generate_filters();jQuery(".dslca-section-title-filter-options").slideToggle(300)}});jQuery(document).on("click",".dslca-section-title-filter-options a",function(a){a.preventDefault();a.stopPropagation();var b=jQuery(this).data("origin");var c=jQuery(this).closest(".dslca-section");if(c.hasClass("dslca-templates-load")){jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}else{jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}jQuery(".dslca-section-scroller-inner").css({left:0});dslc_filter_origin(b,c);jQuery(".dslca-section-title-filter-options").slideToggle(300)});function dslc_hide_composer(){if(dslcDebug)console.log("dslc_hide_composer");jQuery(".dslca-hide-composer-hook").hide();jQuery(".dslca-show-composer-hook").show();jQuery("body").addClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:jQuery(".dslca-container").outerHeight()*-1});jQuery(".dslca-header").hide()}function dslc_show_composer(){if(dslcDebug)console.log("dslc_show_composer");jQuery(".dslca-show-composer-hook").hide();jQuery(".dslca-hide-composer-hook").show();jQuery("body").removeClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:0});jQuery(".dslca-header").show()}function dslc_show_publish_button(){if(dslcDebug)console.log("dslc_show_publish_button");jQuery(".dslca-save-composer").show().addClass("dslca-init-animation");jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_hide_publish_button(){if(dslcDebug)console.log("dslc_hide_publish_button");jQuery(".dslca-save-composer").hide();jQuery(".dslca-save-draft-composer").hide()}function dslc_show_section(a){if(dslcDebug)console.log("dslc_show_section");var b=jQuery(a).data("title"),c=jQuery(a).data("bg");jQuery(".dslca-container").css({bottom:-500});jQuery(".dslca-section").hide();jQuery(a).show();if(a==".dslca-module-edit"){jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element")}else if(a==".dslca-modules-section-edit"){jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row")}else{jQuery(".dslca-currently-editing").hide().find("strong").text("")}dslc_module_options_tab_filter();jQuery(".dslca-container").css({bottom:0});jQuery(a).find("input.dslca-module-edit-field-colorpicker").each(function(a){jQuery(this).css("background",jQuery(this).val())})}function dslc_generate_filters(){if(dslcDebug)console.log("dslc_generate_filters");var a,b=[],c='<a html="#" data-origin="">Show All</a>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){a=jQuery(this);if(jQuery.inArray(a.data("origin"),b)==-1){b.push(a.data("origin"));c+='<a href="#" data-origin="'+a.data("origin")+'">'+a.data("origin")+"</a>"}});jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(c).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(a,b){if(dslcDebug)console.log("dslc_filter_origin");jQuery(".dslca-origin",b).attr("data-display-module","false");jQuery('.dslca-origin[data-origin="'+a+'"]',b).attr("data-display-module","true");if(a==""){jQuery(".dslca-origin",b).attr("data-display-module","true");jQuery(".dslca-origin.dslca-exclude",b).attr("data-display-module","false")}}function dslc_drag_and_drop(){if(dslcDebug)console.log("dslc_drag_and_drop");var a,b,c,d;var e=jQuery(".dslca-modules .dslca-section-scroller-content");if(e.length==0){e=[document.createElement("div")]}var f=Sortable.create(e[0],{sort:false,group:{name:"modules",pull:"clone",put:false},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("#dslc-header").addClass("dslca-header-low-z-index")},onEnd:function(a){a.oldIndex;a.newIndex;var e=a.item;a.preventDefault();if(jQuery(e).closest(".dslca-section-scroller-content").length>0)return false;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered");b=jQuery(e.parentNode);c=e.dataset.id;dslc_generate_code();if(c=="DSLC_M_A"||jQuery("body").hasClass("dslca-module-drop-in-progress")||b.closest("#dslc-header").length||b.closest("#dslc-footer").length){}else{jQuery("body").addClass("dslca-module-drop-in-progress");dslc_module_output_default(c,function(a){d=a.output;var c=LiveComposer.Builder.Helpers.insertModule(d,jQuery(".dslca-module",b));setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();jQuery("body").removeClass("dslca-module-drop-in-progress")},700);jQuery(".dslca-no-content-primary",b).css({opacity:1});jQuery(".dslca-modules-area-manage",b).css({visibility:"visible"});LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.UI.initInlineEditors()});jQuery(e).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin");jQuery(".dslca-no-content-primary",b).css({opacity:0});jQuery(".dslca-modules-area-manage",b).css({visibility:"hidden"})}LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("#dslc-header").removeClass("dslca-header-low-z-index")},onAdd:function(a){var b=a.item;a.from},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){a.preventDefault()},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;jQuery(a.to).addClass("dslca-options-hovered")}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_fix_contenteditable(){LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",false)});LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",true)})}function dslc_toogle_control(a){if(a===undefined)a=false;if(!a)return;var b=jQuery(".dslca-module-edit-option-"+a);var c=b.find(".dslca-module-edit-field");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var e=d[0].id;var f="";if("tablet_responsive"===b.data("tab")){f="body.dslc-res-tablet "}else if("phone_responsive"===b.data("tab")){f="body.dslc-res-phone "}var g=c.data("affect-on-change-el");if(g===undefined)return;var h=g.split(",");g="";for(var i=0;i<h.length;i++){if(i>0){g+=", "}g+=f+"#"+e+" "+h[i]}var j=c.data("affect-on-change-rule").replace(/ /g,"");var k=j.split(",");var l;var m=c.data("ext");b.toggleClass("dslca-option-off");if(b.hasClass("dslca-option-off")){l=dslc_get_control_value(a);c.data("val-bckp",l);for(var i=0;i<k.length;i++){jQuery(g,LiveComposer.Builder.PreviewAreaDocument).css(k[i],"");disable_css_rule(g,k[i],e)}c.val("").trigger("change")}else{c.val(c.data("val-bckp")).trigger("change");l=dslc_get_control_value(a);l=dslc_combine_value_and_extension(l,m||"");for(var i=0;i<k.length;i++){var n=g+"{"+k[i]+": "+l+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:b,rule:k[i],elems:g.replace(new RegExp("#"+e,"gi"),"").trim(),styleContent:n})}}}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(a){a.preventDefault();var b=jQuery(a.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(b)});jQuery(document).on("mousedown",".dslca-module-edit-option",function(b){var c=a(".dslc-control-toggle");if(!c.is(b.target)&&c.has(b.target).length===0){if(jQuery(b.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")){var d=a(b.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(d)}}})});function disable_css_rule(a,b,c){var d;var e="css-for-"+c;var f=document.getElementById("page-builder-frame").contentWindow.document.getElementById(e);a=a.replace(/\s\s+/g," ");if(f){f=f.sheet;if(f["rules"]){d="rules"}else if(f["cssRules"]){d="cssRules"}else{}for(var g=0;g<f[d].length;g++){if(f[d][g].selectorText==a){if(f[d][g].style[b]){f[d][g].style[b]="";break}}}}}function dslc_combine_value_and_extension(a,b){if(""===a||null===a){return a}if(a.indexOf(b)==-1){a=a+b}return a}function dslc_get_control_value(a){var b=jQuery(".dslca-module-edit-option-"+a);var c="text";var d=b.find(".dslca-module-edit-field");var e;e=d.val();return e}function dslc_keypress_events(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(a){dslc_modal_keypress_events(a);dslc_disable_backspace_navigation(a);dslc_notice_on_refresh(a);dslc_save_page(a)})}function dslc_disable_backspace_navigation(a){var b=false;if(a.keyCode===8){var c=a.srcElement||a.target;if(c.tagName.toUpperCase()==="INPUT"&&(c.type.toUpperCase()==="TEXT"||c.type.toUpperCase()==="PASSWORD"||c.type.toUpperCase()==="NUMBER"||c.type.toUpperCase()==="FILE")||c.tagName.toUpperCase()==="TEXTAREA"||jQuery(c).hasClass("dslca-editable-content")||jQuery(c).hasClass("dslc-tabs-nav-hook-title")||jQuery(c).hasClass("dslc-accordion-title")){b=c.readOnly||c.disabled}else{b=true}}if(b){a.preventDefault()}}function dslc_notice_on_refresh(a){if(a.which==116||a.which===82&&a.metaKey){if(jQuery(".dslca-save-composer-hook").offsetParent!==null||jQuery(".dslca-module-edit-save").offsetParent!==null){a.preventDefault();LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}})}}}function dslc_save_page(a){if(a.which==83&&(a.metaKey||a.ctrlKey)){if(jQuery(".dslca-save-composer-hook").css("display")=="block"){dslc_save_composer();a.preventDefault();return false}}}function dslca_generate_error_report(a,b,c,d){var e="JavaScript error detected in a third-party plugin";if(b.match("wp-content/plugins/live-composer-page-builder/js")!=null){e="Live Composer returned JS error"}var f="";f+='<br /><strong style="color:#E55F5F;">'+e+"</strong><br />";f+=a+'<br /> File "'+b+'", line '+c+", char "+d+"<br />";if("undefined"!==typeof Storage){localStorage.setItem("js_errors_report",f)}}function dslca_update_report_log(){var a=document.getElementById("dslca-js-errors-report");var b=localStorage.getItem("js_errors_report");if(null!==b){a.value=b;localStorage.removeItem("js_errors_report");document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")}}jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=a("div[data-hf]",LiveComposer.Builder.PreviewAreaDocument);var c="";b.each(function(b,d){var e=a(d).data("editing-link");var f=a(d).data("editing-type");var g=a(d).data("editing-label");var h=a(d).data("editing-sublabel");c+='<div class="dslc-hf-block-overlay"><a target="_blank" href="'+e+'" class="dslc-hf-block-overlay-button dslca-link">'+g+"</a>";if(h!==undefined){c+=' <span class="dslc-hf-block-overlay-text">'+h+"</span>"}c+="</div>";var i=document.createElement("div");i.innerHTML=c;d.append(i)})});"use strict";LiveComposer.Utils={addslashes:function(a){a=a.replace(/\\/g,"\\\\");a=a.replace(/\'/g,"\\'");a=a.replace(/\"/g,'\\"');a=a.replace(/\0/g,"\\0");return a},basename:function(a){return a.split(/[\\\/]/).pop()},msieversion:function(){var a=window.navigator.userAgent;var b=a.indexOf("MSIE ");if(b>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return parseInt(a.substring(b+5,a.indexOf(".",b)))}else{return false}},checkParams:function(a){if(!Array.isArray(a)){throw"Param is not array"}var b={integer:function(a){return isNaN(parseInt(a))},"float":function(a){return isNaN(parseFloat(a))},string:function(a){return a!=null&&a!=undefined&&typeof a=="string"},array:function(a){return Array.isArray(a)},object:function(a){return typeof a=="object"}};a.map(function(a){if(!b[a[1]](a[0])){throw"Param "+a[0]+" is not "+a[1]}})},utf8_to_b64:function(a){return window.btoa(unescape(encodeURIComponent(a)))},b64_to_utf8:function(a){return decodeURIComponent(escape(window.atob(a)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function a(b,c){c=c.split("=");b[c[0]]=c[1];return b},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},update_module_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-module-code")[0];var e=a.querySelector('.dslca-module-option-front[data-id="'+b+'"]');var f=d.value;f=JSON.parse(f);f[b]=c;f=JSON.stringify(f);d.value=f;d.innerHTML=f;e.value=c;e.innerHTML=c},update_section_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-section-code")[0];var e=a.querySelector('.dslca-modules-section-settings input[data-id="'+b+'"]');var f=d.value;f=JSON.parse(f);f[b]=c;f=JSON.stringify(f);d.value=f;d.innerHTML=f;e.setAttribute("value",c);e.setAttribute("data-def",c)},publish:function(a,b){b=b?b:{};this.checkParams([[a,"string"],[b,"object"]]);jQuery(document).trigger({type:a,message:{details:b}});LiveComposer.Builder.PreviewAreaWindow.dslca_publish_event(a,b)}};"use strict";function dslc_dm_get_defaults(a){if(dslcDebug)console.log("dslc_dm_get_defaults");var b=a.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:b},function(a){jQuery(".dslca-prompt-modal textarea").val(a.output)})}function dslc_editable_content_gen_code(a){if(dslcDebug)console.log("dslc_editable_content_gen_code");if(undefined===a){return false}var b,c,d;b=a.closest(".dslc-module-front");c=a.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");d=a.data("id");jQuery('.dslca-module-option-front[data-id="'+d+'"]',b).val(c)}function dslc_filter_textarea(a){if(dslcDebug)console.log("dslc_filter_textarea");if(undefined===a){return false}var b;b=a.trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");return b}window.onbeforeunload=function(){return};jQuery(document).ready(function(a){jQuery(document).on("change",".dslca-modules-section-edit-field",function(){var b,c,d,e,f,g,h,i,j,k,l;b=a(this);c=b.data("id");f=b.val();g=f;h=f+b.data("ext");i=b.data("css-rule");d=a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);k=d;j=a('.dslca-modules-section-settings input[data-id="'+c+'"]',d);d.addClass("dslca-modules-section-change-made");if(b.hasClass("dslca-modules-section-edit-field-upload")){if(f&&f.length){f=a('.dslca-modules-section-settings input[data-id="dslca-img-url"]',d).val()}}if(i=="background-image"){f='url("'+f+'")';LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}if(c=="bg_image_attachment"){d.removeClass("dslc-init-parallax")}if(c=="border-top"||c=="border-right"||c=="border-bottom"||c=="border-left"){var m=a('.dslca-modules-section-settings input[data-id="border_style"]').val();j=a('.dslca-modules-section-settings input[data-id="border"]',d);g="";var n=b.closest(".dslca-modules-section-edit-option-checkbox-wrapper");n.find(".dslca-modules-section-edit-field-checkbox").each(function(){if(a(this).is(":checked")){if(a(this).data("id")=="border-top"){g+="top "}else if(a(this).data("id")=="border-right"){g+="right "}else if(a(this).data("id")=="border-bottom"){g+="bottom "}else if(a(this).data("id")=="border-left"){g+="left "}}});if(b.is(":checked")){if(b.data("id")=="border-top"){d.css({"border-top-style":m})}else if(b.data("id")=="border-right"){d.css({"border-right-style":m})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":m})}else if(b.data("id")=="border-left"){d.css({"border-left-style":m})}}else{if(b.data("id")=="border-top"){d.css({"border-top-style":"hidden"})}else if(b.data("id")=="border-right"){d.css({"border-right-style":"hidden"})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":"hidden"})}else if(b.data("id")=="border-left"){d.css({"border-left-style":"hidden"})}}}else if(b.hasClass("dslca-modules-section-edit-field-checkbox")){var o=a(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox");var p="";o.each(function(){if(a(this).prop("checked")){p+=a(this).data("val")+" "}});var g=p;if(b.data("id")=="show_on"){if(p.indexOf("desktop")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop")}if(p.indexOf("tablet")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet")}if(p.indexOf("phone")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")}}}else if(c=="bg_image_attachment"&&f=="parallax"||c=="type"){if(c=="bg_image_attachment"){d.addClass("dslc-init-parallax");LiveComposer.Builder.PreviewAreaWindow.dslc_parallax()}else if(c=="type"){if(f=="full"){d.addClass("dslc-full")}else{d.removeClass("dslc-full")}LiveComposer.Builder.PreviewAreaWindow.dslc_masonry()}}else if(c=="columns_spacing"){if(f=="nospacing"){d.addClass("dslc-no-columns-spacing")}else{d.removeClass("dslc-no-columns-spacing")}}else if(c=="custom_class"){}else if(c=="custom_id"){}else if(c=="bg_video"){jQuery(".dslc-bg-video video",d).remove();if(f&&f.length){var q=f;q=q.replace(".webm","");q=q.replace(".mp4","");jQuery(".dslc-bg-video-inner",d).html('<video><source type="video/mp4" src="'+q+'.mp4" /><source type="video/webm" src="'+q+'.webm" /></video>');LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if(c=="bg_image_thumb"){if(g=="enabled"){if(jQuery("#dslca-post-data-thumb").length){var r="url('"+jQuery("#dslca-post-data-thumb").val()+"')";k.css(i,r)}}else if(g=="disabled"){k.css(i,"none")}}else{if(b.data("css-element")){k=jQuery(b.data("css-element"),d)}i=i.replace(/ /g,"").split(",");var s;if(null!=b.data("ext")){s=h}else{s=f}for(var t=0;t<i.length;t++){k.css(i[t],s)}}j.val(g);if(!LiveComposer.Builder.Flags.generate_code_after_row_changed)return false});jQuery(document).on("blur",".dslc-editable-area",function(b){var c=a(this).closest(".dslc-module-front");var d=a(this).data("dslc-option-id");var e=a(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+d+'"]',c).val(e);dslc_module_output_altered()});jQuery(document).on("change",".dslca-module-edit-field",function(){if(dslcDebug)console.log("on change event for .dslca-module-edit-field");var b="",c="",d=jQuery(this),e=d.data("id"),f=d.closest(".dslca-module-edit-option"),g=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),h=g.data("dslc-module-id"),i=jQuery(".dslca-module-options-front textarea",g);g.addClass("dslca-module-change-made");if(f.hasClass("dslca-module-edit-option-select")||f.hasClass("dslca-module-edit-option-checkbox")){dslc_module_options_hideshow_tabs()}if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")=="active"){if(f.find(".dslca-module-edit-option-checkbox-wrapper").length){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(a(this).prop("checked")){b=b+jQuery(this).val()+" "}})}else if(d.hasClass("dslca-module-edit-option-radio")){var b=jQuery(".dslca-module-edit-field:checked",d).val()}else{var b=d.val();if(e=="orientation"&&b=="horizontal"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("40").trigger("change")}else if(e=="orientation"&&b=="vertical"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("100").trigger("change")}}b=dslc_filter_textarea(b);jQuery('.dslca-module-options-front textarea[data-id="'+e+'"]',g).val(b);jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made");if(e=="css_load_preset"&&!jQuery("body").hasClass("dslca-new-preset-added")){dslc_module_options_show(h);jQuery(".dslca-container-loader").hide()}else{jQuery(".dslca-container-loader").hide()}jQuery("body").removeClass("dslca-new-preset-added");LiveComposer.Utils.publish("LC.moduleChange",{moduleId:h,optionID:e,optionVal:d.val()})})}else{if(d.hasClass("dslca-module-edit-field-font")){var l=d.val();l=l+":400,100,200,300,500,600,700,800,900";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;var q=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);if(d.val().length&&dslcGoogleFontsArray.indexOf(d.val())!==-1){document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[l]},active:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var c=m.split(",");var e="#"+q[0].id+" "+c.join(", #"+q[0].id+" ")+" {"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:e})},inactive:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}})}else{setTimeout(function(){if(jQuery(".dslca-font-loading.dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var a=m.split(",");var b="#"+q[0].id+" "+a.join(", #"+q[0].id+" ")+" {"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:b})},100)}}else if(d.hasClass("dslca-module-edit-field-checkbox")){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(jQuery(this).prop("checked")){b=b+"solid ";c=c+a(this).val()+" "}else{b=b+"none "}})}if(!d.hasClass("dslca-module-edit-field-font")&&d.data("affect-on-change-el")!=null&&d.data("affect-on-change-rule")!=null){var r=d.data("ext")||"";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");
|
js/builder/builder.editor.messages.js
CHANGED
@@ -22,7 +22,6 @@ jQuery(document).ready(function($){
|
|
22 |
var hide_panel = $('.dslc-editor-messages-hide').data('can-hide');
|
23 |
|
24 |
if ( hide_panel == '1' ) {
|
25 |
-
|
26 |
jQuery.post(
|
27 |
|
28 |
DSLCAjax.ajaxurl,
|
@@ -34,7 +33,7 @@ jQuery(document).ready(function($){
|
|
34 |
$('.dslc-editor-messages-section').css('display', 'none');
|
35 |
$('.dslca-container').removeClass( "active-message-panel" );
|
36 |
} else {
|
37 |
-
$('#editor-messages').html('<div class="dslc-notice"><a href="https://livecomposerplugin.com/
|
38 |
}
|
39 |
});
|
40 |
|
22 |
var hide_panel = $('.dslc-editor-messages-hide').data('can-hide');
|
23 |
|
24 |
if ( hide_panel == '1' ) {
|
|
|
25 |
jQuery.post(
|
26 |
|
27 |
DSLCAjax.ajaxurl,
|
33 |
$('.dslc-editor-messages-section').css('display', 'none');
|
34 |
$('.dslca-container').removeClass( "active-message-panel" );
|
35 |
} else {
|
36 |
+
$('#editor-messages').html('<div class="dslc-notice"><a href="https://livecomposerplugin.com/downloads/extensions/?utm_source=editing-sreen&utm_medium=editor-messages&utm_campaign=add-ons" target="_blank">You can hide this panel once you have any of our premium extensions installed.</a></div>');
|
37 |
}
|
38 |
});
|
39 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: LiveComposer
|
|
3 |
Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.3.
|
7 |
License: GPLv3
|
8 |
|
9 |
Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
@@ -73,10 +73,24 @@ In most of the cases, this is because the homepage is not a real WordPress page,
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
-
|
77 |
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
= 1.3.8.1 - November 16th 2017 =
|
82 |
|
@@ -276,7 +290,7 @@ If have problems with the cache, you can disable the Live Composer caching featu
|
|
276 |
* Issue [#623](https://github.com/livecomposer/live-composer-page-builder/issues/623): Issue with INFOBOX module in IE11
|
277 |
|
278 |
= New: =
|
279 |
-
* Issue [#638](https://github.com/livecomposer/live-composer-page-builder/issues/638): New SEO tab in the plugin settings to check how much it will cost to promote website in Google for particular keywords (you can hide this tab if you have/had any of our premium
|
280 |
* Issue [#545](https://github.com/livecomposer/live-composer-page-builder/issues/545): Added Arabic, Thai and all other non-English languages available in Google Fonts directory.
|
281 |
* Issue [#650](https://github.com/livecomposer/live-composer-page-builder/issues/650): Developers now can add info popup for controls in the section settings
|
282 |
|
@@ -332,7 +346,7 @@ If have problems with the cache, you can disable the Live Composer caching featu
|
|
332 |
|
333 |
= Bug fixes: =
|
334 |
|
335 |
-
* Issue [#630](https://github.com/livecomposer/live-composer-page-builder/issues/630): Custom setting panels in WP Admin now render properly settings for
|
336 |
* Issue [#591](https://github.com/livecomposer/live-composer-page-builder/issues/591): Module presets: Heading URL should not be copied in style presets between modules.
|
337 |
* Issue [#584](https://github.com/livecomposer/live-composer-page-builder/issues/584): Module presets: Problem with styling presets and default values (Social Links Module + Presets)
|
338 |
* Issue [#621](https://github.com/livecomposer/live-composer-page-builder/issues/621): Module Gallery slider: The "Display the pictures from" feature are limited to few options.
|
3 |
Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.3.9
|
7 |
License: GPLv3
|
8 |
|
9 |
Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= Merry Christmas & Happy New Year =
|
77 |
|
78 |
+
[Peace](https://livecomposerplugin.com/peace) · [Pace](https://livecomposerplugin.com/peace) · [Paix](https://livecomposerplugin.com/peace) · [Paz](https://livecomposerplugin.com/peace) · [Pokój](https://livecomposerplugin.com/peace) · [Мир](https://livecomposerplugin.com/peace) · [Mír](https://livecomposerplugin.com/peace) · [Mier](https://livecomposerplugin.com/peace) · [Frieden](https://livecomposerplugin.com/peace) · [Fred](https://livecomposerplugin.com/peace) · [Vrede](https://livecomposerplugin.com/peace) · [Barış](https://livecomposerplugin.com/peace) · [Béke](https://livecomposerplugin.com/peace) · [Kedamaian](https://livecomposerplugin.com/peace) · [Hasîtî](https://livecomposerplugin.com/peace) · [Ειρήνη](https://livecomposerplugin.com/peace) · [和平](https://livecomposerplugin.com/peace) · [平和](https://livecomposerplugin.com/peace) · [שָׁלוֹם](https://livecomposerplugin.com/peace) · [سلام](https://livecomposerplugin.com/peace) · [สันติภาพ](https://livecomposerplugin.com/peace) · [शान्ति](https://livecomposerplugin.com/peace)
|
79 |
+
|
80 |
+
- - - - - - - - - - - - - - - - - -
|
81 |
+
|
82 |
+
* 🐛 [Please, report any bugs on GitHub](https://github.com/livecomposer/live-composer-page-builder/issues/)
|
83 |
+
* ⌛ [You can download any previous version here](https://github.com/live-composer/live-composer-page-builder/releases)
|
84 |
+
|
85 |
+
- - - - - - - - - - - - - - - - - -
|
86 |
+
|
87 |
+
= 1.3.9 - November 27th 2017 =
|
88 |
+
|
89 |
+
= Bug Fixes: =
|
90 |
+
* Issue [#836](https://github.com/live-composer/live-composer-page-builder/issues/836): Fixed: PHP 7.1 Compatibility
|
91 |
+
|
92 |
+
= Improved: =
|
93 |
+
* This update mainly has inner code changes to make it possible to extend Live Composer functionality with module packs. This update is required for latest versions of [Extensions Pack](https://livecomposerplugin.com/downloads/extensions/) and [WooCommerce Integration](https://livecomposerplugin.com/downloads/woocommerce-page-builder/) plugins to work properly.
|
94 |
|
95 |
= 1.3.8.1 - November 16th 2017 =
|
96 |
|
290 |
* Issue [#623](https://github.com/livecomposer/live-composer-page-builder/issues/623): Issue with INFOBOX module in IE11
|
291 |
|
292 |
= New: =
|
293 |
+
* Issue [#638](https://github.com/livecomposer/live-composer-page-builder/issues/638): New SEO tab in the plugin settings to check how much it will cost to promote website in Google for particular keywords (you can hide this tab if you have/had any of our premium extensions installed).
|
294 |
* Issue [#545](https://github.com/livecomposer/live-composer-page-builder/issues/545): Added Arabic, Thai and all other non-English languages available in Google Fonts directory.
|
295 |
* Issue [#650](https://github.com/livecomposer/live-composer-page-builder/issues/650): Developers now can add info popup for controls in the section settings
|
296 |
|
346 |
|
347 |
= Bug fixes: =
|
348 |
|
349 |
+
* Issue [#630](https://github.com/livecomposer/live-composer-page-builder/issues/630): Custom setting panels in WP Admin now render properly settings for extensions (used by developers who create extensions for Live Composer)
|
350 |
* Issue [#591](https://github.com/livecomposer/live-composer-page-builder/issues/591): Module presets: Heading URL should not be copied in style presets between modules.
|
351 |
* Issue [#584](https://github.com/livecomposer/live-composer-page-builder/issues/584): Module presets: Problem with styling presets and default values (Social Links Module + Presets)
|
352 |
* Issue [#621](https://github.com/livecomposer/live-composer-page-builder/issues/621): Module Gallery slider: The "Display the pictures from" feature are limited to few options.
|