Version Description
Download this release
Release Info
Developer | pross |
Plugin | WordPress Page Builder – Beaver Builder |
Version | 1.10.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.10.7 to 1.10.8.3
- changelog.txt +60 -0
- classes/class-fl-builder-admin-settings.php +22 -0
- classes/class-fl-builder-admin.php +2 -2
- classes/class-fl-builder-color.php +11 -0
- classes/class-fl-builder-debug.php +323 -0
- classes/class-fl-builder-export.php +5 -0
- classes/class-fl-builder-fonts.php +31 -3161
- classes/class-fl-builder-icons.php +5 -0
- classes/class-fl-builder-loader.php +2 -1
- classes/class-fl-builder-model.php +15 -7
- classes/class-fl-builder-photo.php +1 -7
- classes/class-fl-builder-service-sendinblue.php +2 -2
- classes/class-fl-builder.php +39 -1
- css/fl-builder-layout.css +23 -22
- fl-builder.php +1 -1
- img/no-image.png +0 -0
- includes/admin-settings-tools.php +33 -6
- includes/admin-settings-upgrade.php +1 -1
- includes/admin-settings-welcome.php +1 -1
- includes/compatibility.php +33 -0
- includes/field-code.php +14 -7
- includes/module.php +8 -2
- includes/settings.php +4 -2
- includes/template-selector.php +2 -2
- includes/ui-js-config.php +1 -1
- includes/ui-panel.php +1 -1
- includes/updater-config.php +1 -1
- includes/vendor/sendinblue/Mailin.php +4 -4
- js/fl-builder-export.js +13 -12
- js/fl-builder-responsive-editing.js +80 -80
- js/fl-builder.js +40 -2
- js/fl-builder.min.js +6 -6
- js/fl-lightbox.js +66 -65
- json/fonts.json +4663 -0
- languages/cs_CZ.mo +0 -0
- languages/da_DK.mo +0 -0
- languages/de_DE.mo +0 -0
- languages/el.mo +0 -0
- languages/en_GB.mo +0 -0
- languages/es_ES.mo +0 -0
- languages/es_MX.mo +0 -0
- languages/fa_IR.mo +0 -0
- languages/fi.mo +0 -0
- languages/fr_CA.mo +0 -0
- languages/fr_FR.mo +0 -0
- languages/he_IL.mo +0 -0
- languages/hr.mo +0 -0
- languages/hu_HU.mo +0 -0
- languages/id_ID.mo +0 -0
- languages/it_IT.mo +0 -0
- languages/mr.mo +0 -0
- languages/nb_NO.mo +0 -0
- languages/nl_NL.mo +0 -0
- languages/pl_PL.mo +0 -0
- languages/pt_BR.mo +0 -0
- languages/pt_PT.mo +0 -0
- languages/ru_RU.mo +0 -0
- languages/sk_SK.mo +0 -0
- languages/sl_SI.mo +0 -0
- languages/sv_SE.mo +0 -0
- languages/tl.mo +0 -0
- languages/tr_TR.mo +0 -0
- languages/uk.mo +0 -0
- languages/vi.mo +0 -0
- languages/zh_CN.mo +0 -0
- languages/zh_TW.mo +0 -0
- modules/widget/includes/frontend.php +6 -0
- readme.txt +2 -2
changelog.txt
CHANGED
@@ -1,3 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<h4>1.10.7 8/08/2017</h4>
|
2 |
<p><strong>Enhancements</strong></p>
|
3 |
<ul>
|
1 |
+
<h4>1.10.8.3 09/29/17</h4>
|
2 |
+
<p><strong>Bug Fixes</strong></p>
|
3 |
+
<ul>
|
4 |
+
<li>Fixed a minor security issue with <code>fl_builder_export_templates_data</code> action.</li>
|
5 |
+
</ul>
|
6 |
+
|
7 |
+
<h4>1.10.8.2 09/12/2017</h4>
|
8 |
+
<p><strong>Enhancements</strong></p>
|
9 |
+
<ul>
|
10 |
+
<li>Update language files.</li>
|
11 |
+
<li>Make module frontend filterable.</li>
|
12 |
+
<li>New filters <code>fl_builder_module_frontend_custom_{slug}</code>, <code>fl_builder_module_frontend_file</code>.</li>
|
13 |
+
</ul>
|
14 |
+
<p><strong>Bug Fixes</strong></p>
|
15 |
+
<ul>
|
16 |
+
<li>Fixed fatal error in debug class if bb-theme is not available.</li>
|
17 |
+
<li>Fixed issue with media uploads if file extension is uppercase.</li>
|
18 |
+
<li>Fixed an issue with Posts Module load more button.</li>
|
19 |
+
</ul>
|
20 |
+
|
21 |
+
<h4>1.10.8.1 09/07/2017</h4>
|
22 |
+
<p><strong>Bug Fixes</strong></p>
|
23 |
+
<ul>
|
24 |
+
<li>Fixed a PHP 5.2 issue. Debug class using PHP 5.3 and above code.</li>
|
25 |
+
</ul>
|
26 |
+
|
27 |
+
<h4>1.10.8 09/06/2017</h4>
|
28 |
+
<p><strong>Enhancements</strong></p>
|
29 |
+
<ul>
|
30 |
+
<li>Added new debug setting in WP admin. Once enabled it allows support staff to see basic server info.</li>
|
31 |
+
<li>Introduce <code>fl_builder_ace_options</code> filter. Allows aces editor options to be filtered.</li>
|
32 |
+
<li>Introduce <code>fl_get_wp_widgets_exclude</code> filter.</li>
|
33 |
+
<li>Added new reCAPTCHA theme to subscribe module.</li>
|
34 |
+
<li>Added nav arrow style options for Post Carousel, Post Slider and Content Slider.</li>
|
35 |
+
<li>Added option Load More Button as another Pagination Style in Post Grid module.</li>
|
36 |
+
<li>Introduce <code>FLBuilder::default_image_html()</code> if no image exists.</li>
|
37 |
+
<li>Google Fonts are now updated whenever we push an update automagically.</li>
|
38 |
+
<li>Updated translation files.</li>
|
39 |
+
</ul>
|
40 |
+
<p><strong>Bug Fixes</strong></p>
|
41 |
+
<ul>
|
42 |
+
<li>Remove WP HTML widget from available widgets in builder.</li>
|
43 |
+
<li>Fixed missing module info when the call_module_delete method is called in FLBuilderModel.</li>
|
44 |
+
<li>Fixed duplicate template id when cloning post using Duplicate posts plugin.</li>
|
45 |
+
<li>Fixed a PHP warning if a settings form contains no tabs.</li>
|
46 |
+
<li>Fixed a PHP warning if a widget is registered non CamelCase.</li>
|
47 |
+
<li>Fixed issue with SendinBlue API, namespace class in case other plugins use same library.</li>
|
48 |
+
<li>Fixed AJAX save issue if no icons are enabled.</li>
|
49 |
+
<li>Fixed Menu Module. Mobile menu was not rendering between 993px and 1007px.</li>
|
50 |
+
<li>Fixed image/video upload validation issues.</li>
|
51 |
+
<li>Fixed a SiteGround Staging issue with thumbnails.</li>
|
52 |
+
<li>Fixed Menu Module. If a page has same ID as a category and both are in a menu, both had current-menu-item class.</li>
|
53 |
+
</ul>
|
54 |
+
|
55 |
+
<h4>1.10.7.1 8/11/2017</h4>
|
56 |
+
<p><strong>Bug Fixes</strong></p>
|
57 |
+
<ul>
|
58 |
+
<li>Fixed malformed From header in Contact Form Module.</li>
|
59 |
+
</ul>
|
60 |
+
|
61 |
<h4>1.10.7 8/08/2017</h4>
|
62 |
<p><strong>Enhancements</strong></p>
|
63 |
<ul>
|
classes/class-fl-builder-admin-settings.php
CHANGED
@@ -344,6 +344,7 @@ final class FLBuilderAdminSettings {
|
|
344 |
self::save_enabled_icons();
|
345 |
self::save_user_access();
|
346 |
self::clear_cache();
|
|
|
347 |
self::uninstall();
|
348 |
|
349 |
// Let extensions hook into saving.
|
@@ -561,6 +562,27 @@ final class FLBuilderAdminSettings {
|
|
561 |
}
|
562 |
}
|
563 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
564 |
/**
|
565 |
* Clears the builder cache for all sites on a network.
|
566 |
*
|
344 |
self::save_enabled_icons();
|
345 |
self::save_user_access();
|
346 |
self::clear_cache();
|
347 |
+
self::debug();
|
348 |
self::uninstall();
|
349 |
|
350 |
// Let extensions hook into saving.
|
562 |
}
|
563 |
}
|
564 |
|
565 |
+
/**
|
566 |
+
* Enable/disable debug
|
567 |
+
*
|
568 |
+
* @since 1.10.7
|
569 |
+
* @access private
|
570 |
+
* @return void
|
571 |
+
*/
|
572 |
+
static private function debug() {
|
573 |
+
if ( ! current_user_can( 'delete_users' ) ) {
|
574 |
+
return;
|
575 |
+
} elseif ( isset( $_POST['fl-debug-nonce'] ) && wp_verify_nonce( $_POST['fl-debug-nonce'], 'debug' ) ) {
|
576 |
+
$debugmode = get_option( 'fl_debug_mode', false );
|
577 |
+
|
578 |
+
if ( ! $debugmode ) {
|
579 |
+
update_option( 'fl_debug_mode', md5( rand() ) );
|
580 |
+
} else {
|
581 |
+
delete_option( 'fl_debug_mode' );
|
582 |
+
}
|
583 |
+
}
|
584 |
+
}
|
585 |
+
|
586 |
/**
|
587 |
* Clears the builder cache for all sites on a network.
|
588 |
*
|
classes/class-fl-builder-admin.php
CHANGED
@@ -50,7 +50,7 @@ final class FLBuilderAdmin {
|
|
50 |
|
51 |
// Check for multisite.
|
52 |
if ( is_multisite() ) {
|
53 |
-
$url = FLBuilderModel::
|
54 |
'utm_medium' => 'bb-pro',
|
55 |
'utm_source' => 'plugins-admin-page',
|
56 |
'utm_campaign' => 'no-multisite-support',
|
@@ -177,7 +177,7 @@ final class FLBuilderAdmin {
|
|
177 |
*/
|
178 |
static public function render_plugin_action_links( $actions ) {
|
179 |
if ( FL_BUILDER_LITE === true ) {
|
180 |
-
$url = FLBuilderModel::
|
181 |
'utm_medium' => 'bb-lite',
|
182 |
'utm_source' => 'plugins-admin-page',
|
183 |
'utm_campaign' => 'plugins-admin-upgrade',
|
50 |
|
51 |
// Check for multisite.
|
52 |
if ( is_multisite() ) {
|
53 |
+
$url = FLBuilderModel::get_upgrade_url( array(
|
54 |
'utm_medium' => 'bb-pro',
|
55 |
'utm_source' => 'plugins-admin-page',
|
56 |
'utm_campaign' => 'no-multisite-support',
|
177 |
*/
|
178 |
static public function render_plugin_action_links( $actions ) {
|
179 |
if ( FL_BUILDER_LITE === true ) {
|
180 |
+
$url = FLBuilderModel::get_upgrade_url( array(
|
181 |
'utm_medium' => 'bb-lite',
|
182 |
'utm_source' => 'plugins-admin-page',
|
183 |
'utm_campaign' => 'plugins-admin-upgrade',
|
classes/class-fl-builder-color.php
CHANGED
@@ -59,4 +59,15 @@ final class FLBuilderColor {
|
|
59 |
|
60 |
return $r_hex . $g_hex . $b_hex;
|
61 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
59 |
|
60 |
return $r_hex . $g_hex . $b_hex;
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Returns RGB or hex color value.
|
65 |
+
*
|
66 |
+
* @since 1.10.8
|
67 |
+
* @param string $color A color to check.
|
68 |
+
* @return string
|
69 |
+
*/
|
70 |
+
static public function hex_or_rgb( $color ) {
|
71 |
+
return strpos( $color, 'rgb' ) !== false ? $color : '#' . $color;
|
72 |
+
}
|
73 |
}
|
classes/class-fl-builder-debug.php
ADDED
@@ -0,0 +1,323 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
final class FL_Debug {
|
4 |
+
|
5 |
+
static private $tests = array();
|
6 |
+
|
7 |
+
public static function init() {
|
8 |
+
if ( isset( $_GET['fldebug'] ) && get_option( 'fl_debug_mode', false ) === $_GET['fldebug'] ) {
|
9 |
+
self::prepare_tests();
|
10 |
+
self::display_tests();
|
11 |
+
}
|
12 |
+
}
|
13 |
+
private static function display_tests() {
|
14 |
+
|
15 |
+
header( 'Content-Type:text/plain' );
|
16 |
+
|
17 |
+
foreach ( (array) self::$tests as $test ) {
|
18 |
+
echo self::display( $test );
|
19 |
+
}
|
20 |
+
die();
|
21 |
+
}
|
22 |
+
|
23 |
+
private static function display( $test ) {
|
24 |
+
|
25 |
+
if ( is_array( $test['data'] ) ) {
|
26 |
+
$test['data'] = implode( "\n", $test['data'] );
|
27 |
+
}
|
28 |
+
return sprintf( "%s\n%s\n\n", $test['name'], $test['data'] );
|
29 |
+
}
|
30 |
+
|
31 |
+
private static function register( $slug, $args ) {
|
32 |
+
self::$tests[ $slug ] = $args;
|
33 |
+
}
|
34 |
+
|
35 |
+
private static function formatbytes( $size, $precision = 2 ) {
|
36 |
+
$base = log( $size, 1024 );
|
37 |
+
$suffixes = array( '', 'K', 'M', 'G', 'T' );
|
38 |
+
|
39 |
+
return round( pow( 1024, $base - floor( $base ) ), $precision ) . $suffixes[ floor( $base ) ];
|
40 |
+
}
|
41 |
+
|
42 |
+
private static function get_plugins() {
|
43 |
+
|
44 |
+
$plugins = array();
|
45 |
+
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
46 |
+
require_once( ABSPATH . 'wp-admin/includes/update.php' );
|
47 |
+
|
48 |
+
$plugins_data = get_plugins();
|
49 |
+
|
50 |
+
foreach ( $plugins_data as $plugin_path => $plugin ) {
|
51 |
+
$plugins[] = sprintf( '%s - version %s by %s. [%s]', $plugin['Name'], $plugin['Version'], $plugin['Author'], ( is_plugin_active( $plugin_path ) ? __( 'Enabled' ) : __( 'Disabled' ) ) );
|
52 |
+
}
|
53 |
+
return $plugins;
|
54 |
+
}
|
55 |
+
|
56 |
+
private static function get_mu_plugins() {
|
57 |
+
$plugins_data = get_mu_plugins();
|
58 |
+
$plugins = array();
|
59 |
+
|
60 |
+
foreach ( $plugins_data as $plugin_path => $plugin ) {
|
61 |
+
$plugins[] = sprintf( '%s version %s by %s', $plugin['Name'], $plugin['Version'], $plugin['Author'] );
|
62 |
+
}
|
63 |
+
return $plugins;
|
64 |
+
}
|
65 |
+
|
66 |
+
private static function safe_ini_get( $ini ) {
|
67 |
+
return @ini_get( $ini ); // @codingStandardsIgnoreLine
|
68 |
+
}
|
69 |
+
|
70 |
+
private static function divider() {
|
71 |
+
return '----------------------------------------------';
|
72 |
+
}
|
73 |
+
|
74 |
+
private static function prepare_tests() {
|
75 |
+
|
76 |
+
global $wpdb, $wp_version;
|
77 |
+
|
78 |
+
$args = array(
|
79 |
+
'name' => 'WordPress',
|
80 |
+
'data' => self::divider(),
|
81 |
+
);
|
82 |
+
self::register( 'wp', $args );
|
83 |
+
|
84 |
+
$args = array(
|
85 |
+
'name' => 'WordPress Address',
|
86 |
+
'data' => get_option( 'siteurl' ),
|
87 |
+
);
|
88 |
+
self::register( 'wp_url', $args );
|
89 |
+
|
90 |
+
$args = array(
|
91 |
+
'name' => 'Site Address',
|
92 |
+
'data' => get_option( 'home' ),
|
93 |
+
);
|
94 |
+
self::register( 'site_url', $args );
|
95 |
+
|
96 |
+
$args = array(
|
97 |
+
'name' => 'WP Version',
|
98 |
+
'data' => $wp_version,
|
99 |
+
);
|
100 |
+
self::register( 'wp_version', $args );
|
101 |
+
|
102 |
+
$args = array(
|
103 |
+
'name' => 'WP Debug',
|
104 |
+
'data' => defined( 'WP_DEBUG' ) && WP_DEBUG ? 'Yes' : 'No',
|
105 |
+
);
|
106 |
+
self::register( 'wp_debug', $args );
|
107 |
+
|
108 |
+
$args = array(
|
109 |
+
'name' => 'SSL Enabled',
|
110 |
+
'data' => is_ssl() ? 'Yes' : 'No',
|
111 |
+
);
|
112 |
+
self::register( 'wp_ssl', $args );
|
113 |
+
|
114 |
+
$args = array(
|
115 |
+
'name' => 'Language',
|
116 |
+
'data' => get_locale(),
|
117 |
+
);
|
118 |
+
self::register( 'lang', $args );
|
119 |
+
|
120 |
+
$args = array(
|
121 |
+
'name' => 'Multisite',
|
122 |
+
'data' => is_multisite() ? 'Yes' : 'No',
|
123 |
+
);
|
124 |
+
self::register( 'is_multi', $args );
|
125 |
+
|
126 |
+
$theme = wp_get_theme();
|
127 |
+
$args = array(
|
128 |
+
'name' => 'Active Theme',
|
129 |
+
'data' => array(
|
130 |
+
sprintf( '%s - v%s', $theme->get( 'Name' ), $theme->get( 'Version' ) ),
|
131 |
+
sprintf( 'Parent Theme: %s', ( $theme->get( 'Template' ) ) ? $theme->get( 'Template' ) : 'Not a child theme' ),
|
132 |
+
),
|
133 |
+
);
|
134 |
+
self::register( 'active_theme', $args );
|
135 |
+
|
136 |
+
$args = array(
|
137 |
+
'name' => 'WordPress memory limit',
|
138 |
+
'data' => WP_MAX_MEMORY_LIMIT,
|
139 |
+
);
|
140 |
+
self::register( 'wp_max_mem', $args );
|
141 |
+
|
142 |
+
$args = array(
|
143 |
+
'name' => 'Plugins',
|
144 |
+
'data' => self::divider(),
|
145 |
+
);
|
146 |
+
self::register( 'wp_plugins', $args );
|
147 |
+
|
148 |
+
$args = array(
|
149 |
+
'name' => 'Must-Use Plugins',
|
150 |
+
'data' => self::get_mu_plugins(),
|
151 |
+
);
|
152 |
+
self::register( 'mu_plugins', $args );
|
153 |
+
|
154 |
+
$args = array(
|
155 |
+
'name' => 'Plugins',
|
156 |
+
'data' => self::get_plugins(),
|
157 |
+
);
|
158 |
+
self::register( 'wp_plugins', $args );
|
159 |
+
|
160 |
+
$args = array(
|
161 |
+
'name' => 'PHP',
|
162 |
+
'data' => self::divider(),
|
163 |
+
);
|
164 |
+
self::register( 'php', $args );
|
165 |
+
|
166 |
+
$args = array(
|
167 |
+
'name' => 'PHP SAPI',
|
168 |
+
'data' => php_sapi_name(),
|
169 |
+
);
|
170 |
+
self::register( 'php_sapi', $args );
|
171 |
+
|
172 |
+
$args = array(
|
173 |
+
'name' => 'PHP Memory Limit',
|
174 |
+
'data' => self::safe_ini_get( 'memory_limit' ),
|
175 |
+
);
|
176 |
+
self::register( 'php_mem_limit', $args );
|
177 |
+
|
178 |
+
$args = array(
|
179 |
+
'name' => 'PHP Version',
|
180 |
+
'data' => phpversion(),
|
181 |
+
);
|
182 |
+
self::register( 'php_ver', $args );
|
183 |
+
|
184 |
+
$args = array(
|
185 |
+
'name' => 'Post Max Size',
|
186 |
+
'data' => self::safe_ini_get( 'post_max_size' ),
|
187 |
+
);
|
188 |
+
self::register( 'post_max', $args );
|
189 |
+
|
190 |
+
$args = array(
|
191 |
+
'name' => 'PHP Max Input Vars',
|
192 |
+
'data' => self::safe_ini_get( 'max_input_vars' ),
|
193 |
+
);
|
194 |
+
self::register( 'post_max_input', $args );
|
195 |
+
|
196 |
+
$args = array(
|
197 |
+
'name' => 'PHP Max Execution Time',
|
198 |
+
'data' => self::safe_ini_get( 'max_execution_time' ),
|
199 |
+
);
|
200 |
+
self::register( 'post_max_time', $args );
|
201 |
+
|
202 |
+
$args = array(
|
203 |
+
'name' => 'Max Upload Size',
|
204 |
+
'data' => self::formatbytes( wp_max_upload_size() ),
|
205 |
+
);
|
206 |
+
self::register( 'post_max_upload', $args );
|
207 |
+
|
208 |
+
$curl = ( function_exists( 'curl_version' ) ) ? curl_version() : false;
|
209 |
+
$args = array(
|
210 |
+
'name' => 'Curl',
|
211 |
+
'data' => ( $curl ) ? sprintf( '%s - %s', $curl['version'], $curl['ssl_version'] ) : 'Not Enabled.',
|
212 |
+
);
|
213 |
+
self::register( 'curl', $args );
|
214 |
+
|
215 |
+
$args = array(
|
216 |
+
'name' => 'BB Products',
|
217 |
+
'data' => self::divider(),
|
218 |
+
);
|
219 |
+
self::register( 'bb', $args );
|
220 |
+
|
221 |
+
$args = array(
|
222 |
+
'name' => 'Beaver Builder',
|
223 |
+
'data' => FL_BUILDER_VERSION,
|
224 |
+
);
|
225 |
+
self::register( 'bb_version', $args );
|
226 |
+
|
227 |
+
$args = array(
|
228 |
+
'name' => 'Beaver Themer',
|
229 |
+
'data' => ( defined( 'FL_THEME_BUILDER_VERSION' ) ) ? FL_THEME_BUILDER_VERSION : 'Not active/installed.',
|
230 |
+
);
|
231 |
+
self::register( 'themer_version', $args );
|
232 |
+
|
233 |
+
$args = array(
|
234 |
+
'name' => 'Beaver Theme',
|
235 |
+
'data' => ( defined( 'FL_THEME_VERSION' ) ) ? FL_THEME_VERSION : 'Not active/installed.',
|
236 |
+
);
|
237 |
+
self::register( 'theme_version', $args );
|
238 |
+
|
239 |
+
$args = array(
|
240 |
+
'name' => 'Cache Folders',
|
241 |
+
'data' => self::divider(),
|
242 |
+
);
|
243 |
+
self::register( 'cache_folders', $args );
|
244 |
+
|
245 |
+
$cache = FLBuilderModel::get_cache_dir();
|
246 |
+
|
247 |
+
$args = array(
|
248 |
+
'name' => 'Beaver Builder Path',
|
249 |
+
'data' => $cache['path'],
|
250 |
+
);
|
251 |
+
self::register( 'bb_cache_path', $args );
|
252 |
+
|
253 |
+
$args = array(
|
254 |
+
'name' => 'Beaver Builder Path writable',
|
255 |
+
'data' => ( is_writable( $cache['path'] ) ) ? 'Yes' : 'No',
|
256 |
+
);
|
257 |
+
self::register( 'bb_cache_path_writable', $args );
|
258 |
+
|
259 |
+
if ( class_exists( 'FLCustomizer' ) ) {
|
260 |
+
$cache = FLCustomizer::get_cache_dir();
|
261 |
+
|
262 |
+
$args = array(
|
263 |
+
'name' => 'Beaver Theme Path',
|
264 |
+
'data' => $cache['path'],
|
265 |
+
);
|
266 |
+
self::register( 'bb_theme_cache_path', $args );
|
267 |
+
|
268 |
+
$args = array(
|
269 |
+
'name' => 'Beaver Theme Path writable',
|
270 |
+
'data' => ( is_writable( $cache['path'] ) ) ? 'Yes' : 'No',
|
271 |
+
);
|
272 |
+
self::register( 'bb_theme_cache_path_writable', $args );
|
273 |
+
}
|
274 |
+
|
275 |
+
$args = array(
|
276 |
+
'name' => 'Licence',
|
277 |
+
'data' => self::divider(),
|
278 |
+
);
|
279 |
+
self::register( 'licence', $args );
|
280 |
+
|
281 |
+
$subscription = FLUpdater::get_subscription_info();
|
282 |
+
$args = array(
|
283 |
+
'name' => 'Beaver Builder Licence',
|
284 |
+
'data' => ( $subscription->active ) ? 'Active' : 'Not Active',
|
285 |
+
);
|
286 |
+
self::register( 'bb_sub', $args );
|
287 |
+
|
288 |
+
if ( isset( $subscription->error ) ) {
|
289 |
+
$args = array(
|
290 |
+
'name' => 'Licence Error',
|
291 |
+
'data' => $subscription->error,
|
292 |
+
);
|
293 |
+
self::register( 'bb_sub_err', $args );
|
294 |
+
}
|
295 |
+
|
296 |
+
if ( isset( $subscription->domain ) ) {
|
297 |
+
$args = array(
|
298 |
+
'name' => 'Domain Active',
|
299 |
+
'data' => ( '1' == $subscription->domain->active ) ? 'Yes' : 'No',
|
300 |
+
);
|
301 |
+
self::register( 'bb_sub_domain', $args );
|
302 |
+
}
|
303 |
+
|
304 |
+
$args = array(
|
305 |
+
'name' => 'Server',
|
306 |
+
'data' => self::divider(),
|
307 |
+
);
|
308 |
+
self::register( 'serv', $args );
|
309 |
+
|
310 |
+
$args = array(
|
311 |
+
'name' => 'MySQL Version',
|
312 |
+
'data' => ( ! empty( $wpdb->is_mysql ) ? $wpdb->db_version() : 'Unknown' ),
|
313 |
+
);
|
314 |
+
self::register( 'mysql_version', $args );
|
315 |
+
|
316 |
+
$args = array(
|
317 |
+
'name' => 'Server Info',
|
318 |
+
'data' => $_SERVER['SERVER_SOFTWARE'],
|
319 |
+
);
|
320 |
+
self::register( 'server', $args );
|
321 |
+
}
|
322 |
+
}
|
323 |
+
add_action( 'init', array( 'FL_Debug', 'init' ) );
|
classes/class-fl-builder-export.php
CHANGED
@@ -33,6 +33,8 @@ final class FLBuilderExport {
|
|
33 |
|
34 |
wp_enqueue_style( 'fl-builder-export', FL_BUILDER_URL . 'css/fl-builder-export.css', array(), FL_BUILDER_VERSION );
|
35 |
wp_enqueue_script( 'fl-builder-export', FL_BUILDER_URL . 'js/fl-builder-export.js', array(), FL_BUILDER_VERSION, true );
|
|
|
|
|
36 |
}
|
37 |
|
38 |
/**
|
@@ -53,6 +55,9 @@ final class FLBuilderExport {
|
|
53 |
* @return void
|
54 |
*/
|
55 |
static public function templates_data() {
|
|
|
|
|
|
|
56 |
$type = isset( $_POST['type'] ) ? sanitize_text_field( $_POST['type'] ) : 'fl-builder-template';
|
57 |
$data = array();
|
58 |
$query = new WP_Query( array(
|
33 |
|
34 |
wp_enqueue_style( 'fl-builder-export', FL_BUILDER_URL . 'css/fl-builder-export.css', array(), FL_BUILDER_VERSION );
|
35 |
wp_enqueue_script( 'fl-builder-export', FL_BUILDER_URL . 'js/fl-builder-export.js', array(), FL_BUILDER_VERSION, true );
|
36 |
+
|
37 |
+
wp_localize_script( 'fl-builder-export', 'fl_builder_export_nonce', wp_create_nonce( 'fl_builder_export_nonce' ) );
|
38 |
}
|
39 |
|
40 |
/**
|
55 |
* @return void
|
56 |
*/
|
57 |
static public function templates_data() {
|
58 |
+
|
59 |
+
check_admin_referer( 'fl_builder_export_nonce' );
|
60 |
+
|
61 |
$type = isset( $_POST['type'] ) ? sanitize_text_field( $_POST['type'] ) : 'fl-builder-template';
|
62 |
$data = array();
|
63 |
$query = new WP_Query( array(
|
classes/class-fl-builder-fonts.php
CHANGED
@@ -31,7 +31,7 @@ final class FLBuilderFonts {
|
|
31 |
static public function js() {
|
32 |
$default = json_encode( apply_filters( 'fl_builder_font_families_default', FLBuilderFontFamilies::$default ) );
|
33 |
$system = json_encode( apply_filters( 'fl_builder_font_families_system', FLBuilderFontFamilies::$system ) );
|
34 |
-
$google = json_encode( apply_filters( 'fl_builder_font_families_google', FLBuilderFontFamilies
|
35 |
|
36 |
echo 'var FLBuilderFontFamilies = { default: ' . $default . ', system: ' . $system . ', google: ' . $google . ' };';
|
37 |
}
|
@@ -45,7 +45,7 @@ final class FLBuilderFonts {
|
|
45 |
*/
|
46 |
static public function display_select_font( $font ) {
|
47 |
$system_fonts = apply_filters( 'fl_builder_font_families_system', FLBuilderFontFamilies::$system );
|
48 |
-
$google_fonts = apply_filters( 'fl_builder_font_families_google', FLBuilderFontFamilies
|
49 |
|
50 |
echo '<option value="Default" ' . selected( 'Default', $font ) . '>' . __( 'Default', 'fl-builder' ) . '</option>';
|
51 |
echo '<optgroup label="System">';
|
@@ -74,7 +74,7 @@ final class FLBuilderFonts {
|
|
74 |
echo '<option value="default">' . __( 'Default', 'fl-builder' ) . '</option>';
|
75 |
} else {
|
76 |
$system_fonts = apply_filters( 'fl_builder_font_families_system', FLBuilderFontFamilies::$system );
|
77 |
-
$google_fonts = apply_filters( 'fl_builder_font_families_google', FLBuilderFontFamilies
|
78 |
|
79 |
if ( array_key_exists( $font, $system_fonts ) ) {
|
80 |
foreach ( $system_fonts[ $font ]['weights'] as $variant ) {
|
@@ -371,6 +371,34 @@ FLBuilderFonts::init();
|
|
371 |
*/
|
372 |
final class FLBuilderFontFamilies {
|
373 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
static public $default = array(
|
375 |
'Default' => array(
|
376 |
'default'
|
@@ -432,3162 +460,4 @@ final class FLBuilderFontFamilies {
|
|
432 |
),
|
433 |
);
|
434 |
|
435 |
-
/**
|
436 |
-
* Array with Google Fonts.
|
437 |
-
* @var array
|
438 |
-
*/
|
439 |
-
// @codingStandardsIgnoreStart
|
440 |
-
static public $google = array(
|
441 |
-
"ABeeZee" => array(
|
442 |
-
"regular",
|
443 |
-
),
|
444 |
-
"Abel" => array(
|
445 |
-
"regular",
|
446 |
-
),
|
447 |
-
"Abhaya Libre" => array(
|
448 |
-
"regular",
|
449 |
-
"500",
|
450 |
-
"600",
|
451 |
-
"700",
|
452 |
-
"800",
|
453 |
-
),
|
454 |
-
"Abril Fatface" => array(
|
455 |
-
"regular",
|
456 |
-
),
|
457 |
-
"Aclonica" => array(
|
458 |
-
"regular",
|
459 |
-
),
|
460 |
-
"Acme" => array(
|
461 |
-
"regular",
|
462 |
-
),
|
463 |
-
"Actor" => array(
|
464 |
-
"regular",
|
465 |
-
),
|
466 |
-
"Adamina" => array(
|
467 |
-
"regular",
|
468 |
-
),
|
469 |
-
"Advent Pro" => array(
|
470 |
-
"100",
|
471 |
-
"200",
|
472 |
-
"300",
|
473 |
-
"regular",
|
474 |
-
"500",
|
475 |
-
"600",
|
476 |
-
"700",
|
477 |
-
),
|
478 |
-
"Aguafina Script" => array(
|
479 |
-
"regular",
|
480 |
-
),
|
481 |
-
"Akronim" => array(
|
482 |
-
"regular",
|
483 |
-
),
|
484 |
-
"Aladin" => array(
|
485 |
-
"regular",
|
486 |
-
),
|
487 |
-
"Aldrich" => array(
|
488 |
-
"regular",
|
489 |
-
),
|
490 |
-
"Alef" => array(
|
491 |
-
"regular",
|
492 |
-
"700",
|
493 |
-
),
|
494 |
-
"Alegreya" => array(
|
495 |
-
"regular",
|
496 |
-
"700",
|
497 |
-
"900",
|
498 |
-
),
|
499 |
-
"Alegreya SC" => array(
|
500 |
-
"regular",
|
501 |
-
"700",
|
502 |
-
"900",
|
503 |
-
),
|
504 |
-
"Alegreya Sans" => array(
|
505 |
-
"100",
|
506 |
-
"300",
|
507 |
-
"regular",
|
508 |
-
"500",
|
509 |
-
"700",
|
510 |
-
"800",
|
511 |
-
"900",
|
512 |
-
),
|
513 |
-
"Alegreya Sans SC" => array(
|
514 |
-
"100",
|
515 |
-
"300",
|
516 |
-
"regular",
|
517 |
-
"500",
|
518 |
-
"700",
|
519 |
-
"800",
|
520 |
-
"900",
|
521 |
-
),
|
522 |
-
"Alex Brush" => array(
|
523 |
-
"regular",
|
524 |
-
),
|
525 |
-
"Alfa Slab One" => array(
|
526 |
-
"regular",
|
527 |
-
),
|
528 |
-
"Alice" => array(
|
529 |
-
"regular",
|
530 |
-
),
|
531 |
-
"Alike" => array(
|
532 |
-
"regular",
|
533 |
-
),
|
534 |
-
"Alike Angular" => array(
|
535 |
-
"regular",
|
536 |
-
),
|
537 |
-
"Allan" => array(
|
538 |
-
"regular",
|
539 |
-
"700",
|
540 |
-
),
|
541 |
-
"Allerta" => array(
|
542 |
-
"regular",
|
543 |
-
),
|
544 |
-
"Allerta Stencil" => array(
|
545 |
-
"regular",
|
546 |
-
),
|
547 |
-
"Allura" => array(
|
548 |
-
"regular",
|
549 |
-
),
|
550 |
-
"Almendra" => array(
|
551 |
-
"regular",
|
552 |
-
"700",
|
553 |
-
),
|
554 |
-
"Almendra Display" => array(
|
555 |
-
"regular",
|
556 |
-
),
|
557 |
-
"Almendra SC" => array(
|
558 |
-
"regular",
|
559 |
-
),
|
560 |
-
"Amarante" => array(
|
561 |
-
"regular",
|
562 |
-
),
|
563 |
-
"Amaranth" => array(
|
564 |
-
"regular",
|
565 |
-
"700",
|
566 |
-
),
|
567 |
-
"Amatic SC" => array(
|
568 |
-
"regular",
|
569 |
-
"700",
|
570 |
-
),
|
571 |
-
"Amatica SC" => array(
|
572 |
-
"regular",
|
573 |
-
"700",
|
574 |
-
),
|
575 |
-
"Amethysta" => array(
|
576 |
-
"regular",
|
577 |
-
),
|
578 |
-
"Amiko" => array(
|
579 |
-
"regular",
|
580 |
-
"600",
|
581 |
-
"700",
|
582 |
-
),
|
583 |
-
"Amiri" => array(
|
584 |
-
"regular",
|
585 |
-
"700",
|
586 |
-
),
|
587 |
-
"Amita" => array(
|
588 |
-
"regular",
|
589 |
-
"700",
|
590 |
-
),
|
591 |
-
"Anaheim" => array(
|
592 |
-
"regular",
|
593 |
-
),
|
594 |
-
"Andada" => array(
|
595 |
-
"regular",
|
596 |
-
),
|
597 |
-
"Andika" => array(
|
598 |
-
"regular",
|
599 |
-
),
|
600 |
-
"Angkor" => array(
|
601 |
-
"regular",
|
602 |
-
),
|
603 |
-
"Annie Use Your Telescope" => array(
|
604 |
-
"regular",
|
605 |
-
),
|
606 |
-
"Anonymous Pro" => array(
|
607 |
-
"regular",
|
608 |
-
"700",
|
609 |
-
),
|
610 |
-
"Antic" => array(
|
611 |
-
"regular",
|
612 |
-
),
|
613 |
-
"Antic Didone" => array(
|
614 |
-
"regular",
|
615 |
-
),
|
616 |
-
"Antic Slab" => array(
|
617 |
-
"regular",
|
618 |
-
),
|
619 |
-
"Anton" => array(
|
620 |
-
"regular",
|
621 |
-
),
|
622 |
-
"Arapey" => array(
|
623 |
-
"regular",
|
624 |
-
),
|
625 |
-
"Arbutus" => array(
|
626 |
-
"regular",
|
627 |
-
),
|
628 |
-
"Arbutus Slab" => array(
|
629 |
-
"regular",
|
630 |
-
),
|
631 |
-
"Architects Daughter" => array(
|
632 |
-
"regular",
|
633 |
-
),
|
634 |
-
"Archivo Black" => array(
|
635 |
-
"regular",
|
636 |
-
),
|
637 |
-
"Archivo Narrow" => array(
|
638 |
-
"regular",
|
639 |
-
"700",
|
640 |
-
),
|
641 |
-
"Aref Ruqaa" => array(
|
642 |
-
"regular",
|
643 |
-
"700",
|
644 |
-
),
|
645 |
-
"Arima Madurai" => array(
|
646 |
-
"100",
|
647 |
-
"200",
|
648 |
-
"300",
|
649 |
-
"regular",
|
650 |
-
"500",
|
651 |
-
"700",
|
652 |
-
"800",
|
653 |
-
"900",
|
654 |
-
),
|
655 |
-
"Arimo" => array(
|
656 |
-
"regular",
|
657 |
-
"700",
|
658 |
-
),
|
659 |
-
"Arizonia" => array(
|
660 |
-
"regular",
|
661 |
-
),
|
662 |
-
"Armata" => array(
|
663 |
-
"regular",
|
664 |
-
),
|
665 |
-
"Arsenal" => array(
|
666 |
-
"regular",
|
667 |
-
"700",
|
668 |
-
),
|
669 |
-
"Artifika" => array(
|
670 |
-
"regular",
|
671 |
-
),
|
672 |
-
"Arvo" => array(
|
673 |
-
"regular",
|
674 |
-
"700",
|
675 |
-
),
|
676 |
-
"Arya" => array(
|
677 |
-
"regular",
|
678 |
-
"700",
|
679 |
-
),
|
680 |
-
"Asap" => array(
|
681 |
-
"regular",
|
682 |
-
"500",
|
683 |
-
"700",
|
684 |
-
),
|
685 |
-
"Asar" => array(
|
686 |
-
"regular",
|
687 |
-
),
|
688 |
-
"Asset" => array(
|
689 |
-
"regular",
|
690 |
-
),
|
691 |
-
"Assistant" => array(
|
692 |
-
"200",
|
693 |
-
"300",
|
694 |
-
"regular",
|
695 |
-
"600",
|
696 |
-
"700",
|
697 |
-
"800",
|
698 |
-
),
|
699 |
-
"Astloch" => array(
|
700 |
-
"regular",
|
701 |
-
"700",
|
702 |
-
),
|
703 |
-
"Asul" => array(
|
704 |
-
"regular",
|
705 |
-
"700",
|
706 |
-
),
|
707 |
-
"Athiti" => array(
|
708 |
-
"200",
|
709 |
-
"300",
|
710 |
-
"regular",
|
711 |
-
"500",
|
712 |
-
"600",
|
713 |
-
"700",
|
714 |
-
),
|
715 |
-
"Atma" => array(
|
716 |
-
"300",
|
717 |
-
"regular",
|
718 |
-
"500",
|
719 |
-
"600",
|
720 |
-
"700",
|
721 |
-
),
|
722 |
-
"Atomic Age" => array(
|
723 |
-
"regular",
|
724 |
-
),
|
725 |
-
"Aubrey" => array(
|
726 |
-
"regular",
|
727 |
-
),
|
728 |
-
"Audiowide" => array(
|
729 |
-
"regular",
|
730 |
-
),
|
731 |
-
"Autour One" => array(
|
732 |
-
"regular",
|
733 |
-
),
|
734 |
-
"Average" => array(
|
735 |
-
"regular",
|
736 |
-
),
|
737 |
-
"Average Sans" => array(
|
738 |
-
"regular",
|
739 |
-
),
|
740 |
-
"Averia Gruesa Libre" => array(
|
741 |
-
"regular",
|
742 |
-
),
|
743 |
-
"Averia Libre" => array(
|
744 |
-
"300",
|
745 |
-
"regular",
|
746 |
-
"700",
|
747 |
-
),
|
748 |
-
"Averia Sans Libre" => array(
|
749 |
-
"300",
|
750 |
-
"regular",
|
751 |
-
"700",
|
752 |
-
),
|
753 |
-
"Averia Serif Libre" => array(
|
754 |
-
"300",
|
755 |
-
"regular",
|
756 |
-
"700",
|
757 |
-
),
|
758 |
-
"Bad Script" => array(
|
759 |
-
"regular",
|
760 |
-
),
|
761 |
-
"Bahiana" => array(
|
762 |
-
"regular",
|
763 |
-
),
|
764 |
-
"Baloo" => array(
|
765 |
-
"regular",
|
766 |
-
),
|
767 |
-
"Baloo Bhai" => array(
|
768 |
-
"regular",
|
769 |
-
),
|
770 |
-
"Baloo Bhaina" => array(
|
771 |
-
"regular",
|
772 |
-
),
|
773 |
-
"Baloo Chettan" => array(
|
774 |
-
"regular",
|
775 |
-
),
|
776 |
-
"Baloo Da" => array(
|
777 |
-
"regular",
|
778 |
-
),
|
779 |
-
"Baloo Paaji" => array(
|
780 |
-
"regular",
|
781 |
-
),
|
782 |
-
"Baloo Tamma" => array(
|
783 |
-
"regular",
|
784 |
-
),
|
785 |
-
"Baloo Thambi" => array(
|
786 |
-
"regular",
|
787 |
-
),
|
788 |
-
"Balthazar" => array(
|
789 |
-
"regular",
|
790 |
-
),
|
791 |
-
"Bangers" => array(
|
792 |
-
"regular",
|
793 |
-
),
|
794 |
-
"Barrio" => array(
|
795 |
-
"regular",
|
796 |
-
),
|
797 |
-
"Basic" => array(
|
798 |
-
"regular",
|
799 |
-
),
|
800 |
-
"Battambang" => array(
|
801 |
-
"regular",
|
802 |
-
"700",
|
803 |
-
),
|
804 |
-
"Baumans" => array(
|
805 |
-
"regular",
|
806 |
-
),
|
807 |
-
"Bayon" => array(
|
808 |
-
"regular",
|
809 |
-
),
|
810 |
-
"Belgrano" => array(
|
811 |
-
"regular",
|
812 |
-
),
|
813 |
-
"Belleza" => array(
|
814 |
-
"regular",
|
815 |
-
),
|
816 |
-
"BenchNine" => array(
|
817 |
-
"300",
|
818 |
-
"regular",
|
819 |
-
"700",
|
820 |
-
),
|
821 |
-
"Bentham" => array(
|
822 |
-
"regular",
|
823 |
-
),
|
824 |
-
"Berkshire Swash" => array(
|
825 |
-
"regular",
|
826 |
-
),
|
827 |
-
"Bevan" => array(
|
828 |
-
"regular",
|
829 |
-
),
|
830 |
-
"Bigelow Rules" => array(
|
831 |
-
"regular",
|
832 |
-
),
|
833 |
-
"Bigshot One" => array(
|
834 |
-
"regular",
|
835 |
-
),
|
836 |
-
"Bilbo" => array(
|
837 |
-
"regular",
|
838 |
-
),
|
839 |
-
"Bilbo Swash Caps" => array(
|
840 |
-
"regular",
|
841 |
-
),
|
842 |
-
"BioRhyme" => array(
|
843 |
-
"200",
|
844 |
-
"300",
|
845 |
-
"regular",
|
846 |
-
"700",
|
847 |
-
"800",
|
848 |
-
),
|
849 |
-
"BioRhyme Expanded" => array(
|
850 |
-
"200",
|
851 |
-
"300",
|
852 |
-
"regular",
|
853 |
-
"700",
|
854 |
-
"800",
|
855 |
-
),
|
856 |
-
"Biryani" => array(
|
857 |
-
"200",
|
858 |
-
"300",
|
859 |
-
"regular",
|
860 |
-
"600",
|
861 |
-
"700",
|
862 |
-
"800",
|
863 |
-
"900",
|
864 |
-
),
|
865 |
-
"Bitter" => array(
|
866 |
-
"regular",
|
867 |
-
"700",
|
868 |
-
),
|
869 |
-
"Black Ops One" => array(
|
870 |
-
"regular",
|
871 |
-
),
|
872 |
-
"Bokor" => array(
|
873 |
-
"regular",
|
874 |
-
),
|
875 |
-
"Bonbon" => array(
|
876 |
-
"regular",
|
877 |
-
),
|
878 |
-
"Boogaloo" => array(
|
879 |
-
"regular",
|
880 |
-
),
|
881 |
-
"Bowlby One" => array(
|
882 |
-
"regular",
|
883 |
-
),
|
884 |
-
"Bowlby One SC" => array(
|
885 |
-
"regular",
|
886 |
-
),
|
887 |
-
"Brawler" => array(
|
888 |
-
"regular",
|
889 |
-
),
|
890 |
-
"Bree Serif" => array(
|
891 |
-
"regular",
|
892 |
-
),
|
893 |
-
"Bubblegum Sans" => array(
|
894 |
-
"regular",
|
895 |
-
),
|
896 |
-
"Bubbler One" => array(
|
897 |
-
"regular",
|
898 |
-
),
|
899 |
-
"Buda" => array(
|
900 |
-
"300",
|
901 |
-
),
|
902 |
-
"Buenard" => array(
|
903 |
-
"regular",
|
904 |
-
"700",
|
905 |
-
),
|
906 |
-
"Bungee" => array(
|
907 |
-
"regular",
|
908 |
-
),
|
909 |
-
"Bungee Hairline" => array(
|
910 |
-
"regular",
|
911 |
-
),
|
912 |
-
"Bungee Inline" => array(
|
913 |
-
"regular",
|
914 |
-
),
|
915 |
-
"Bungee Outline" => array(
|
916 |
-
"regular",
|
917 |
-
),
|
918 |
-
"Bungee Shade" => array(
|
919 |
-
"regular",
|
920 |
-
),
|
921 |
-
"Butcherman" => array(
|
922 |
-
"regular",
|
923 |
-
),
|
924 |
-
"Butterfly Kids" => array(
|
925 |
-
"regular",
|
926 |
-
),
|
927 |
-
"Cabin" => array(
|
928 |
-
"regular",
|
929 |
-
"500",
|
930 |
-
"600",
|
931 |
-
"700",
|
932 |
-
),
|
933 |
-
"Cabin Condensed" => array(
|
934 |
-
"regular",
|
935 |
-
"500",
|
936 |
-
"600",
|
937 |
-
"700",
|
938 |
-
),
|
939 |
-
"Cabin Sketch" => array(
|
940 |
-
"regular",
|
941 |
-
"700",
|
942 |
-
),
|
943 |
-
"Caesar Dressing" => array(
|
944 |
-
"regular",
|
945 |
-
),
|
946 |
-
"Cagliostro" => array(
|
947 |
-
"regular",
|
948 |
-
),
|
949 |
-
"Cairo" => array(
|
950 |
-
"200",
|
951 |
-
"300",
|
952 |
-
"regular",
|
953 |
-
"600",
|
954 |
-
"700",
|
955 |
-
"900",
|
956 |
-
),
|
957 |
-
"Calligraffitti" => array(
|
958 |
-
"regular",
|
959 |
-
),
|
960 |
-
"Cambay" => array(
|
961 |
-
"regular",
|
962 |
-
"700",
|
963 |
-
),
|
964 |
-
"Cambo" => array(
|
965 |
-
"regular",
|
966 |
-
),
|
967 |
-
"Candal" => array(
|
968 |
-
"regular",
|
969 |
-
),
|
970 |
-
"Cantarell" => array(
|
971 |
-
"regular",
|
972 |
-
"700",
|
973 |
-
),
|
974 |
-
"Cantata One" => array(
|
975 |
-
"regular",
|
976 |
-
),
|
977 |
-
"Cantora One" => array(
|
978 |
-
"regular",
|
979 |
-
),
|
980 |
-
"Capriola" => array(
|
981 |
-
"regular",
|
982 |
-
),
|
983 |
-
"Cardo" => array(
|
984 |
-
"regular",
|
985 |
-
"700",
|
986 |
-
),
|
987 |
-
"Carme" => array(
|
988 |
-
"regular",
|
989 |
-
),
|
990 |
-
"Carrois Gothic" => array(
|
991 |
-
"regular",
|
992 |
-
),
|
993 |
-
"Carrois Gothic SC" => array(
|
994 |
-
"regular",
|
995 |
-
),
|
996 |
-
"Carter One" => array(
|
997 |
-
"regular",
|
998 |
-
),
|
999 |
-
"Catamaran" => array(
|
1000 |
-
"100",
|
1001 |
-
"200",
|
1002 |
-
"300",
|
1003 |
-
"regular",
|
1004 |
-
"500",
|
1005 |
-
"600",
|
1006 |
-
"700",
|
1007 |
-
"800",
|
1008 |
-
"900",
|
1009 |
-
),
|
1010 |
-
"Caudex" => array(
|
1011 |
-
"regular",
|
1012 |
-
"700",
|
1013 |
-
),
|
1014 |
-
"Caveat" => array(
|
1015 |
-
"regular",
|
1016 |
-
"700",
|
1017 |
-
),
|
1018 |
-
"Caveat Brush" => array(
|
1019 |
-
"regular",
|
1020 |
-
),
|
1021 |
-
"Cedarville Cursive" => array(
|
1022 |
-
"regular",
|
1023 |
-
),
|
1024 |
-
"Ceviche One" => array(
|
1025 |
-
"regular",
|
1026 |
-
),
|
1027 |
-
"Changa" => array(
|
1028 |
-
"200",
|
1029 |
-
"300",
|
1030 |
-
"regular",
|
1031 |
-
"500",
|
1032 |
-
"600",
|
1033 |
-
"700",
|
1034 |
-
"800",
|
1035 |
-
),
|
1036 |
-
"Changa One" => array(
|
1037 |
-
"regular",
|
1038 |
-
),
|
1039 |
-
"Chango" => array(
|
1040 |
-
"regular",
|
1041 |
-
),
|
1042 |
-
"Chathura" => array(
|
1043 |
-
"100",
|
1044 |
-
"300",
|
1045 |
-
"regular",
|
1046 |
-
"700",
|
1047 |
-
"800",
|
1048 |
-
),
|
1049 |
-
"Chau Philomene One" => array(
|
1050 |
-
"regular",
|
1051 |
-
),
|
1052 |
-
"Chela One" => array(
|
1053 |
-
"regular",
|
1054 |
-
),
|
1055 |
-
"Chelsea Market" => array(
|
1056 |
-
"regular",
|
1057 |
-
),
|
1058 |
-
"Chenla" => array(
|
1059 |
-
"regular",
|
1060 |
-
),
|
1061 |
-
"Cherry Cream Soda" => array(
|
1062 |
-
"regular",
|
1063 |
-
),
|
1064 |
-
"Cherry Swash" => array(
|
1065 |
-
"regular",
|
1066 |
-
"700",
|
1067 |
-
),
|
1068 |
-
"Chewy" => array(
|
1069 |
-
"regular",
|
1070 |
-
),
|
1071 |
-
"Chicle" => array(
|
1072 |
-
"regular",
|
1073 |
-
),
|
1074 |
-
"Chivo" => array(
|
1075 |
-
"300",
|
1076 |
-
"regular",
|
1077 |
-
"700",
|
1078 |
-
"900",
|
1079 |
-
),
|
1080 |
-
"Chonburi" => array(
|
1081 |
-
"regular",
|
1082 |
-
),
|
1083 |
-
"Cinzel" => array(
|
1084 |
-
"regular",
|
1085 |
-
"700",
|
1086 |
-
"900",
|
1087 |
-
),
|
1088 |
-
"Cinzel Decorative" => array(
|
1089 |
-
"regular",
|
1090 |
-
"700",
|
1091 |
-
"900",
|
1092 |
-
),
|
1093 |
-
"Clicker Script" => array(
|
1094 |
-
"regular",
|
1095 |
-
),
|
1096 |
-
"Coda" => array(
|
1097 |
-
"regular",
|
1098 |
-
"800",
|
1099 |
-
),
|
1100 |
-
"Coda Caption" => array(
|
1101 |
-
"800",
|
1102 |
-
),
|
1103 |
-
"Codystar" => array(
|
1104 |
-
"300",
|
1105 |
-
"regular",
|
1106 |
-
),
|
1107 |
-
"Coiny" => array(
|
1108 |
-
"regular",
|
1109 |
-
),
|
1110 |
-
"Combo" => array(
|
1111 |
-
"regular",
|
1112 |
-
),
|
1113 |
-
"Comfortaa" => array(
|
1114 |
-
"300",
|
1115 |
-
"regular",
|
1116 |
-
"700",
|
1117 |
-
),
|
1118 |
-
"Coming Soon" => array(
|
1119 |
-
"regular",
|
1120 |
-
),
|
1121 |
-
"Concert One" => array(
|
1122 |
-
"regular",
|
1123 |
-
),
|
1124 |
-
"Condiment" => array(
|
1125 |
-
"regular",
|
1126 |
-
),
|
1127 |
-
"Content" => array(
|
1128 |
-
"regular",
|
1129 |
-
"700",
|
1130 |
-
),
|
1131 |
-
"Contrail One" => array(
|
1132 |
-
"regular",
|
1133 |
-
),
|
1134 |
-
"Convergence" => array(
|
1135 |
-
"regular",
|
1136 |
-
),
|
1137 |
-
"Cookie" => array(
|
1138 |
-
"regular",
|
1139 |
-
),
|
1140 |
-
"Copse" => array(
|
1141 |
-
"regular",
|
1142 |
-
),
|
1143 |
-
"Corben" => array(
|
1144 |
-
"regular",
|
1145 |
-
"700",
|
1146 |
-
),
|
1147 |
-
"Cormorant" => array(
|
1148 |
-
"300",
|
1149 |
-
"regular",
|
1150 |
-
"500",
|
1151 |
-
"600",
|
1152 |
-
"700",
|
1153 |
-
),
|
1154 |
-
"Cormorant Garamond" => array(
|
1155 |
-
"300",
|
1156 |
-
"regular",
|
1157 |
-
"500",
|
1158 |
-
"600",
|
1159 |
-
"700",
|
1160 |
-
),
|
1161 |
-
"Cormorant Infant" => array(
|
1162 |
-
"300",
|
1163 |
-
"regular",
|
1164 |
-
"500",
|
1165 |
-
"600",
|
1166 |
-
"700",
|
1167 |
-
),
|
1168 |
-
"Cormorant SC" => array(
|
1169 |
-
"300",
|
1170 |
-
"regular",
|
1171 |
-
"500",
|
1172 |
-
"600",
|
1173 |
-
"700",
|
1174 |
-
),
|
1175 |
-
"Cormorant Unicase" => array(
|
1176 |
-
"300",
|
1177 |
-
"regular",
|
1178 |
-
"500",
|
1179 |
-
"600",
|
1180 |
-
"700",
|
1181 |
-
),
|
1182 |
-
"Cormorant Upright" => array(
|
1183 |
-
"300",
|
1184 |
-
"regular",
|
1185 |
-
"500",
|
1186 |
-
"600",
|
1187 |
-
"700",
|
1188 |
-
),
|
1189 |
-
"Courgette" => array(
|
1190 |
-
"regular",
|
1191 |
-
),
|
1192 |
-
"Cousine" => array(
|
1193 |
-
"regular",
|
1194 |
-
"700",
|
1195 |
-
),
|
1196 |
-
"Coustard" => array(
|
1197 |
-
"regular",
|
1198 |
-
"900",
|
1199 |
-
),
|
1200 |
-
"Covered By Your Grace" => array(
|
1201 |
-
"regular",
|
1202 |
-
),
|
1203 |
-
"Crafty Girls" => array(
|
1204 |
-
"regular",
|
1205 |
-
),
|
1206 |
-
"Creepster" => array(
|
1207 |
-
"regular",
|
1208 |
-
),
|
1209 |
-
"Crete Round" => array(
|
1210 |
-
"regular",
|
1211 |
-
),
|
1212 |
-
"Crimson Text" => array(
|
1213 |
-
"regular",
|
1214 |
-
"600",
|
1215 |
-
"700",
|
1216 |
-
),
|
1217 |
-
"Croissant One" => array(
|
1218 |
-
"regular",
|
1219 |
-
),
|
1220 |
-
"Crushed" => array(
|
1221 |
-
"regular",
|
1222 |
-
),
|
1223 |
-
"Cuprum" => array(
|
1224 |
-
"regular",
|
1225 |
-
"700",
|
1226 |
-
),
|
1227 |
-
"Cutive" => array(
|
1228 |
-
"regular",
|
1229 |
-
),
|
1230 |
-
"Cutive Mono" => array(
|
1231 |
-
"regular",
|
1232 |
-
),
|
1233 |
-
"Damion" => array(
|
1234 |
-
"regular",
|
1235 |
-
),
|
1236 |
-
"Dancing Script" => array(
|
1237 |
-
"regular",
|
1238 |
-
"700",
|
1239 |
-
),
|
1240 |
-
"Dangrek" => array(
|
1241 |
-
"regular",
|
1242 |
-
),
|
1243 |
-
"David Libre" => array(
|
1244 |
-
"regular",
|
1245 |
-
"500",
|
1246 |
-
"700",
|
1247 |
-
),
|
1248 |
-
"Dawning of a New Day" => array(
|
1249 |
-
"regular",
|
1250 |
-
),
|
1251 |
-
"Days One" => array(
|
1252 |
-
"regular",
|
1253 |
-
),
|
1254 |
-
"Dekko" => array(
|
1255 |
-
"regular",
|
1256 |
-
),
|
1257 |
-
"Delius" => array(
|
1258 |
-
"regular",
|
1259 |
-
),
|
1260 |
-
"Delius Swash Caps" => array(
|
1261 |
-
"regular",
|
1262 |
-
),
|
1263 |
-
"Delius Unicase" => array(
|
1264 |
-
"regular",
|
1265 |
-
"700",
|
1266 |
-
),
|
1267 |
-
"Della Respira" => array(
|
1268 |
-
"regular",
|
1269 |
-
),
|
1270 |
-
"Denk One" => array(
|
1271 |
-
"regular",
|
1272 |
-
),
|
1273 |
-
"Devonshire" => array(
|
1274 |
-
"regular",
|
1275 |
-
),
|
1276 |
-
"Dhurjati" => array(
|
1277 |
-
"regular",
|
1278 |
-
),
|
1279 |
-
"Didact Gothic" => array(
|
1280 |
-
"regular",
|
1281 |
-
),
|
1282 |
-
"Diplomata" => array(
|
1283 |
-
"regular",
|
1284 |
-
),
|
1285 |
-
"Diplomata SC" => array(
|
1286 |
-
"regular",
|
1287 |
-
),
|
1288 |
-
"Domine" => array(
|
1289 |
-
"regular",
|
1290 |
-
"700",
|
1291 |
-
),
|
1292 |
-
"Donegal One" => array(
|
1293 |
-
"regular",
|
1294 |
-
),
|
1295 |
-
"Doppio One" => array(
|
1296 |
-
"regular",
|
1297 |
-
),
|
1298 |
-
"Dorsa" => array(
|
1299 |
-
"regular",
|
1300 |
-
),
|
1301 |
-
"Dosis" => array(
|
1302 |
-
"200",
|
1303 |
-
"300",
|
1304 |
-
"regular",
|
1305 |
-
"500",
|
1306 |
-
"600",
|
1307 |
-
"700",
|
1308 |
-
"800",
|
1309 |
-
),
|
1310 |
-
"Dr Sugiyama" => array(
|
1311 |
-
"regular",
|
1312 |
-
),
|
1313 |
-
"Droid Sans" => array(
|
1314 |
-
"regular",
|
1315 |
-
"700",
|
1316 |
-
),
|
1317 |
-
"Droid Sans Mono" => array(
|
1318 |
-
"regular",
|
1319 |
-
),
|
1320 |
-
"Droid Serif" => array(
|
1321 |
-
"regular",
|
1322 |
-
"700",
|
1323 |
-
),
|
1324 |
-
"Duru Sans" => array(
|
1325 |
-
"regular",
|
1326 |
-
),
|
1327 |
-
"Dynalight" => array(
|
1328 |
-
"regular",
|
1329 |
-
),
|
1330 |
-
"EB Garamond" => array(
|
1331 |
-
"regular",
|
1332 |
-
),
|
1333 |
-
"Eagle Lake" => array(
|
1334 |
-
"regular",
|
1335 |
-
),
|
1336 |
-
"Eater" => array(
|
1337 |
-
"regular",
|
1338 |
-
),
|
1339 |
-
"Economica" => array(
|
1340 |
-
"regular",
|
1341 |
-
"700",
|
1342 |
-
),
|
1343 |
-
"Eczar" => array(
|
1344 |
-
"regular",
|
1345 |
-
"500",
|
1346 |
-
"600",
|
1347 |
-
"700",
|
1348 |
-
"800",
|
1349 |
-
),
|
1350 |
-
"Ek Mukta" => array(
|
1351 |
-
"200",
|
1352 |
-
"300",
|
1353 |
-
"regular",
|
1354 |
-
"500",
|
1355 |
-
"600",
|
1356 |
-
"700",
|
1357 |
-
"800",
|
1358 |
-
),
|
1359 |
-
"El Messiri" => array(
|
1360 |
-
"regular",
|
1361 |
-
"500",
|
1362 |
-
"600",
|
1363 |
-
"700",
|
1364 |
-
),
|
1365 |
-
"Electrolize" => array(
|
1366 |
-
"regular",
|
1367 |
-
),
|
1368 |
-
"Elsie" => array(
|
1369 |
-
"regular",
|
1370 |
-
"900",
|
1371 |
-
),
|
1372 |
-
"Elsie Swash Caps" => array(
|
1373 |
-
"regular",
|
1374 |
-
"900",
|
1375 |
-
),
|
1376 |
-
"Emblema One" => array(
|
1377 |
-
"regular",
|
1378 |
-
),
|
1379 |
-
"Emilys Candy" => array(
|
1380 |
-
"regular",
|
1381 |
-
),
|
1382 |
-
"Engagement" => array(
|
1383 |
-
"regular",
|
1384 |
-
),
|
1385 |
-
"Englebert" => array(
|
1386 |
-
"regular",
|
1387 |
-
),
|
1388 |
-
"Enriqueta" => array(
|
1389 |
-
"regular",
|
1390 |
-
"700",
|
1391 |
-
),
|
1392 |
-
"Erica One" => array(
|
1393 |
-
"regular",
|
1394 |
-
),
|
1395 |
-
"Esteban" => array(
|
1396 |
-
"regular",
|
1397 |
-
),
|
1398 |
-
"Euphoria Script" => array(
|
1399 |
-
"regular",
|
1400 |
-
),
|
1401 |
-
"Ewert" => array(
|
1402 |
-
"regular",
|
1403 |
-
),
|
1404 |
-
"Exo" => array(
|
1405 |
-
"100",
|
1406 |
-
"200",
|
1407 |
-
"300",
|
1408 |
-
"regular",
|
1409 |
-
"500",
|
1410 |
-
"600",
|
1411 |
-
"700",
|
1412 |
-
"800",
|
1413 |
-
"900",
|
1414 |
-
),
|
1415 |
-
"Exo 2" => array(
|
1416 |
-
"100",
|
1417 |
-
"200",
|
1418 |
-
"300",
|
1419 |
-
"regular",
|
1420 |
-
"500",
|
1421 |
-
"600",
|
1422 |
-
"700",
|
1423 |
-
"800",
|
1424 |
-
"900",
|
1425 |
-
),
|
1426 |
-
"Expletus Sans" => array(
|
1427 |
-
"regular",
|
1428 |
-
"500",
|
1429 |
-
"600",
|
1430 |
-
"700",
|
1431 |
-
),
|
1432 |
-
"Fanwood Text" => array(
|
1433 |
-
"regular",
|
1434 |
-
),
|
1435 |
-
"Farsan" => array(
|
1436 |
-
"regular",
|
1437 |
-
),
|
1438 |
-
"Fascinate" => array(
|
1439 |
-
"regular",
|
1440 |
-
),
|
1441 |
-
"Fascinate Inline" => array(
|
1442 |
-
"regular",
|
1443 |
-
),
|
1444 |
-
"Faster One" => array(
|
1445 |
-
"regular",
|
1446 |
-
),
|
1447 |
-
"Fasthand" => array(
|
1448 |
-
"regular",
|
1449 |
-
),
|
1450 |
-
"Fauna One" => array(
|
1451 |
-
"regular",
|
1452 |
-
),
|
1453 |
-
"Federant" => array(
|
1454 |
-
"regular",
|
1455 |
-
),
|
1456 |
-
"Federo" => array(
|
1457 |
-
"regular",
|
1458 |
-
),
|
1459 |
-
"Felipa" => array(
|
1460 |
-
"regular",
|
1461 |
-
),
|
1462 |
-
"Fenix" => array(
|
1463 |
-
"regular",
|
1464 |
-
),
|
1465 |
-
"Finger Paint" => array(
|
1466 |
-
"regular",
|
1467 |
-
),
|
1468 |
-
"Fira Mono" => array(
|
1469 |
-
"regular",
|
1470 |
-
"500",
|
1471 |
-
"700",
|
1472 |
-
),
|
1473 |
-
"Fira Sans" => array(
|
1474 |
-
"100",
|
1475 |
-
"200",
|
1476 |
-
"300",
|
1477 |
-
"regular",
|
1478 |
-
"500",
|
1479 |
-
"600",
|
1480 |
-
"700",
|
1481 |
-
"800",
|
1482 |
-
"900",
|
1483 |
-
),
|
1484 |
-
"Fira Sans Condensed" => array(
|
1485 |
-
"100",
|
1486 |
-
"200",
|
1487 |
-
"300",
|
1488 |
-
"regular",
|
1489 |
-
"500",
|
1490 |
-
"600",
|
1491 |
-
"700",
|
1492 |
-
"800",
|
1493 |
-
"900",
|
1494 |
-
),
|
1495 |
-
"Fira Sans Extra Condensed" => array(
|
1496 |
-
"100",
|
1497 |
-
"200",
|
1498 |
-
"300",
|
1499 |
-
"regular",
|
1500 |
-
"500",
|
1501 |
-
"600",
|
1502 |
-
"700",
|
1503 |
-
"800",
|
1504 |
-
"900",
|
1505 |
-
),
|
1506 |
-
"Fjalla One" => array(
|
1507 |
-
"regular",
|
1508 |
-
),
|
1509 |
-
"Fjord One" => array(
|
1510 |
-
"regular",
|
1511 |
-
),
|
1512 |
-
"Flamenco" => array(
|
1513 |
-
"300",
|
1514 |
-
"regular",
|
1515 |
-
),
|
1516 |
-
"Flavors" => array(
|
1517 |
-
"regular",
|
1518 |
-
),
|
1519 |
-
"Fondamento" => array(
|
1520 |
-
"regular",
|
1521 |
-
),
|
1522 |
-
"Fontdiner Swanky" => array(
|
1523 |
-
"regular",
|
1524 |
-
),
|
1525 |
-
"Forum" => array(
|
1526 |
-
"regular",
|
1527 |
-
),
|
1528 |
-
"Francois One" => array(
|
1529 |
-
"regular",
|
1530 |
-
),
|
1531 |
-
"Frank Ruhl Libre" => array(
|
1532 |
-
"300",
|
1533 |
-
"regular",
|
1534 |
-
"500",
|
1535 |
-
"700",
|
1536 |
-
"900",
|
1537 |
-
),
|
1538 |
-
"Freckle Face" => array(
|
1539 |
-
"regular",
|
1540 |
-
),
|
1541 |
-
"Fredericka the Great" => array(
|
1542 |
-
"regular",
|
1543 |
-
),
|
1544 |
-
"Fredoka One" => array(
|
1545 |
-
"regular",
|
1546 |
-
),
|
1547 |
-
"Freehand" => array(
|
1548 |
-
"regular",
|
1549 |
-
),
|
1550 |
-
"Fresca" => array(
|
1551 |
-
"regular",
|
1552 |
-
),
|
1553 |
-
"Frijole" => array(
|
1554 |
-
"regular",
|
1555 |
-
),
|
1556 |
-
"Fruktur" => array(
|
1557 |
-
"regular",
|
1558 |
-
),
|
1559 |
-
"Fugaz One" => array(
|
1560 |
-
"regular",
|
1561 |
-
),
|
1562 |
-
"GFS Didot" => array(
|
1563 |
-
"regular",
|
1564 |
-
),
|
1565 |
-
"GFS Neohellenic" => array(
|
1566 |
-
"regular",
|
1567 |
-
"700",
|
1568 |
-
),
|
1569 |
-
"Gabriela" => array(
|
1570 |
-
"regular",
|
1571 |
-
),
|
1572 |
-
"Gafata" => array(
|
1573 |
-
"regular",
|
1574 |
-
),
|
1575 |
-
"Galada" => array(
|
1576 |
-
"regular",
|
1577 |
-
),
|
1578 |
-
"Galdeano" => array(
|
1579 |
-
"regular",
|
1580 |
-
),
|
1581 |
-
"Galindo" => array(
|
1582 |
-
"regular",
|
1583 |
-
),
|
1584 |
-
"Gentium Basic" => array(
|
1585 |
-
"regular",
|
1586 |
-
"700",
|
1587 |
-
),
|
1588 |
-
"Gentium Book Basic" => array(
|
1589 |
-
"regular",
|
1590 |
-
"700",
|
1591 |
-
),
|
1592 |
-
"Geo" => array(
|
1593 |
-
"regular",
|
1594 |
-
),
|
1595 |
-
"Geostar" => array(
|
1596 |
-
"regular",
|
1597 |
-
),
|
1598 |
-
"Geostar Fill" => array(
|
1599 |
-
"regular",
|
1600 |
-
),
|
1601 |
-
"Germania One" => array(
|
1602 |
-
"regular",
|
1603 |
-
),
|
1604 |
-
"Gidugu" => array(
|
1605 |
-
"regular",
|
1606 |
-
),
|
1607 |
-
"Gilda Display" => array(
|
1608 |
-
"regular",
|
1609 |
-
),
|
1610 |
-
"Give You Glory" => array(
|
1611 |
-
"regular",
|
1612 |
-
),
|
1613 |
-
"Glass Antiqua" => array(
|
1614 |
-
"regular",
|
1615 |
-
),
|
1616 |
-
"Glegoo" => array(
|
1617 |
-
"regular",
|
1618 |
-
"700",
|
1619 |
-
),
|
1620 |
-
"Gloria Hallelujah" => array(
|
1621 |
-
"regular",
|
1622 |
-
),
|
1623 |
-
"Goblin One" => array(
|
1624 |
-
"regular",
|
1625 |
-
),
|
1626 |
-
"Gochi Hand" => array(
|
1627 |
-
"regular",
|
1628 |
-
),
|
1629 |
-
"Gorditas" => array(
|
1630 |
-
"regular",
|
1631 |
-
"700",
|
1632 |
-
),
|
1633 |
-
"Goudy Bookletter 1911" => array(
|
1634 |
-
"regular",
|
1635 |
-
),
|
1636 |
-
"Graduate" => array(
|
1637 |
-
"regular",
|
1638 |
-
),
|
1639 |
-
"Grand Hotel" => array(
|
1640 |
-
"regular",
|
1641 |
-
),
|
1642 |
-
"Gravitas One" => array(
|
1643 |
-
"regular",
|
1644 |
-
),
|
1645 |
-
"Great Vibes" => array(
|
1646 |
-
"regular",
|
1647 |
-
),
|
1648 |
-
"Griffy" => array(
|
1649 |
-
"regular",
|
1650 |
-
),
|
1651 |
-
"Gruppo" => array(
|
1652 |
-
"regular",
|
1653 |
-
),
|
1654 |
-
"Gudea" => array(
|
1655 |
-
"regular",
|
1656 |
-
"700",
|
1657 |
-
),
|
1658 |
-
"Gurajada" => array(
|
1659 |
-
"regular",
|
1660 |
-
),
|
1661 |
-
"Habibi" => array(
|
1662 |
-
"regular",
|
1663 |
-
),
|
1664 |
-
"Halant" => array(
|
1665 |
-
"300",
|
1666 |
-
"regular",
|
1667 |
-
"500",
|
1668 |
-
"600",
|
1669 |
-
"700",
|
1670 |
-
),
|
1671 |
-
"Hammersmith One" => array(
|
1672 |
-
"regular",
|
1673 |
-
),
|
1674 |
-
"Hanalei" => array(
|
1675 |
-
"regular",
|
1676 |
-
),
|
1677 |
-
"Hanalei Fill" => array(
|
1678 |
-
"regular",
|
1679 |
-
),
|
1680 |
-
"Handlee" => array(
|
1681 |
-
"regular",
|
1682 |
-
),
|
1683 |
-
"Hanuman" => array(
|
1684 |
-
"regular",
|
1685 |
-
"700",
|
1686 |
-
),
|
1687 |
-
"Happy Monkey" => array(
|
1688 |
-
"regular",
|
1689 |
-
),
|
1690 |
-
"Harmattan" => array(
|
1691 |
-
"regular",
|
1692 |
-
),
|
1693 |
-
"Headland One" => array(
|
1694 |
-
"regular",
|
1695 |
-
),
|
1696 |
-
"Heebo" => array(
|
1697 |
-
"100",
|
1698 |
-
"300",
|
1699 |
-
"regular",
|
1700 |
-
"500",
|
1701 |
-
"700",
|
1702 |
-
"800",
|
1703 |
-
"900",
|
1704 |
-
),
|
1705 |
-
"Henny Penny" => array(
|
1706 |
-
"regular",
|
1707 |
-
),
|
1708 |
-
"Herr Von Muellerhoff" => array(
|
1709 |
-
"regular",
|
1710 |
-
),
|
1711 |
-
"Hind" => array(
|
1712 |
-
"300",
|
1713 |
-
"regular",
|
1714 |
-
"500",
|
1715 |
-
"600",
|
1716 |
-
"700",
|
1717 |
-
),
|
1718 |
-
"Hind Guntur" => array(
|
1719 |
-
"300",
|
1720 |
-
"regular",
|
1721 |
-
"500",
|
1722 |
-
"600",
|
1723 |
-
"700",
|
1724 |
-
),
|
1725 |
-
"Hind Madurai" => array(
|
1726 |
-
"300",
|
1727 |
-
"regular",
|
1728 |
-
"500",
|
1729 |
-
"600",
|
1730 |
-
"700",
|
1731 |
-
),
|
1732 |
-
"Hind Siliguri" => array(
|
1733 |
-
"300",
|
1734 |
-
"regular",
|
1735 |
-
"500",
|
1736 |
-
"600",
|
1737 |
-
"700",
|
1738 |
-
),
|
1739 |
-
"Hind Vadodara" => array(
|
1740 |
-
"300",
|
1741 |
-
"regular",
|
1742 |
-
"500",
|
1743 |
-
"600",
|
1744 |
-
"700",
|
1745 |
-
),
|
1746 |
-
"Holtwood One SC" => array(
|
1747 |
-
"regular",
|
1748 |
-
),
|
1749 |
-
"Homemade Apple" => array(
|
1750 |
-
"regular",
|
1751 |
-
),
|
1752 |
-
"Homenaje" => array(
|
1753 |
-
"regular",
|
1754 |
-
),
|
1755 |
-
"IM Fell DW Pica" => array(
|
1756 |
-
"regular",
|
1757 |
-
),
|
1758 |
-
"IM Fell DW Pica SC" => array(
|
1759 |
-
"regular",
|
1760 |
-
),
|
1761 |
-
"IM Fell Double Pica" => array(
|
1762 |
-
"regular",
|
1763 |
-
),
|
1764 |
-
"IM Fell Double Pica SC" => array(
|
1765 |
-
"regular",
|
1766 |
-
),
|
1767 |
-
"IM Fell English" => array(
|
1768 |
-
"regular",
|
1769 |
-
),
|
1770 |
-
"IM Fell English SC" => array(
|
1771 |
-
"regular",
|
1772 |
-
),
|
1773 |
-
"IM Fell French Canon" => array(
|
1774 |
-
"regular",
|
1775 |
-
),
|
1776 |
-
"IM Fell French Canon SC" => array(
|
1777 |
-
"regular",
|
1778 |
-
),
|
1779 |
-
"IM Fell Great Primer" => array(
|
1780 |
-
"regular",
|
1781 |
-
),
|
1782 |
-
"IM Fell Great Primer SC" => array(
|
1783 |
-
"regular",
|
1784 |
-
),
|
1785 |
-
"Iceberg" => array(
|
1786 |
-
"regular",
|
1787 |
-
),
|
1788 |
-
"Iceland" => array(
|
1789 |
-
"regular",
|
1790 |
-
),
|
1791 |
-
"Imprima" => array(
|
1792 |
-
"regular",
|
1793 |
-
),
|
1794 |
-
"Inconsolata" => array(
|
1795 |
-
"regular",
|
1796 |
-
"700",
|
1797 |
-
),
|
1798 |
-
"Inder" => array(
|
1799 |
-
"regular",
|
1800 |
-
),
|
1801 |
-
"Indie Flower" => array(
|
1802 |
-
"regular",
|
1803 |
-
),
|
1804 |
-
"Inika" => array(
|
1805 |
-
"regular",
|
1806 |
-
"700",
|
1807 |
-
),
|
1808 |
-
"Inknut Antiqua" => array(
|
1809 |
-
"300",
|
1810 |
-
"regular",
|
1811 |
-
"500",
|
1812 |
-
"600",
|
1813 |
-
"700",
|
1814 |
-
"800",
|
1815 |
-
"900",
|
1816 |
-
),
|
1817 |
-
"Irish Grover" => array(
|
1818 |
-
"regular",
|
1819 |
-
),
|
1820 |
-
"Istok Web" => array(
|
1821 |
-
"regular",
|
1822 |
-
"700",
|
1823 |
-
),
|
1824 |
-
"Italiana" => array(
|
1825 |
-
"regular",
|
1826 |
-
),
|
1827 |
-
"Italianno" => array(
|
1828 |
-
"regular",
|
1829 |
-
),
|
1830 |
-
"Itim" => array(
|
1831 |
-
"regular",
|
1832 |
-
),
|
1833 |
-
"Jacques Francois" => array(
|
1834 |
-
"regular",
|
1835 |
-
),
|
1836 |
-
"Jacques Francois Shadow" => array(
|
1837 |
-
"regular",
|
1838 |
-
),
|
1839 |
-
"Jaldi" => array(
|
1840 |
-
"regular",
|
1841 |
-
"700",
|
1842 |
-
),
|
1843 |
-
"Jim Nightshade" => array(
|
1844 |
-
"regular",
|
1845 |
-
),
|
1846 |
-
"Jockey One" => array(
|
1847 |
-
"regular",
|
1848 |
-
),
|
1849 |
-
"Jolly Lodger" => array(
|
1850 |
-
"regular",
|
1851 |
-
),
|
1852 |
-
"Jomhuria" => array(
|
1853 |
-
"regular",
|
1854 |
-
),
|
1855 |
-
"Josefin Sans" => array(
|
1856 |
-
"100",
|
1857 |
-
"300",
|
1858 |
-
"regular",
|
1859 |
-
"600",
|
1860 |
-
"700",
|
1861 |
-
),
|
1862 |
-
"Josefin Slab" => array(
|
1863 |
-
"100",
|
1864 |
-
"300",
|
1865 |
-
"regular",
|
1866 |
-
"600",
|
1867 |
-
"700",
|
1868 |
-
),
|
1869 |
-
"Joti One" => array(
|
1870 |
-
"regular",
|
1871 |
-
),
|
1872 |
-
"Judson" => array(
|
1873 |
-
"regular",
|
1874 |
-
"700",
|
1875 |
-
),
|
1876 |
-
"Julee" => array(
|
1877 |
-
"regular",
|
1878 |
-
),
|
1879 |
-
"Julius Sans One" => array(
|
1880 |
-
"regular",
|
1881 |
-
),
|
1882 |
-
"Junge" => array(
|
1883 |
-
"regular",
|
1884 |
-
),
|
1885 |
-
"Jura" => array(
|
1886 |
-
"300",
|
1887 |
-
"regular",
|
1888 |
-
"500",
|
1889 |
-
"600",
|
1890 |
-
),
|
1891 |
-
"Just Another Hand" => array(
|
1892 |
-
"regular",
|
1893 |
-
),
|
1894 |
-
"Just Me Again Down Here" => array(
|
1895 |
-
"regular",
|
1896 |
-
),
|
1897 |
-
"Kadwa" => array(
|
1898 |
-
"regular",
|
1899 |
-
"700",
|
1900 |
-
),
|
1901 |
-
"Kalam" => array(
|
1902 |
-
"300",
|
1903 |
-
"regular",
|
1904 |
-
"700",
|
1905 |
-
),
|
1906 |
-
"Kameron" => array(
|
1907 |
-
"regular",
|
1908 |
-
"700",
|
1909 |
-
),
|
1910 |
-
"Kanit" => array(
|
1911 |
-
"100",
|
1912 |
-
"200",
|
1913 |
-
"300",
|
1914 |
-
"regular",
|
1915 |
-
"500",
|
1916 |
-
"600",
|
1917 |
-
"700",
|
1918 |
-
"800",
|
1919 |
-
"900",
|
1920 |
-
),
|
1921 |
-
"Kantumruy" => array(
|
1922 |
-
"300",
|
1923 |
-
"regular",
|
1924 |
-
"700",
|
1925 |
-
),
|
1926 |
-
"Karla" => array(
|
1927 |
-
"regular",
|
1928 |
-
"700",
|
1929 |
-
),
|
1930 |
-
"Karma" => array(
|
1931 |
-
"300",
|
1932 |
-
"regular",
|
1933 |
-
"500",
|
1934 |
-
"600",
|
1935 |
-
"700",
|
1936 |
-
),
|
1937 |
-
"Katibeh" => array(
|
1938 |
-
"regular",
|
1939 |
-
),
|
1940 |
-
"Kaushan Script" => array(
|
1941 |
-
"regular",
|
1942 |
-
),
|
1943 |
-
"Kavivanar" => array(
|
1944 |
-
"regular",
|
1945 |
-
),
|
1946 |
-
"Kavoon" => array(
|
1947 |
-
"regular",
|
1948 |
-
),
|
1949 |
-
"Kdam Thmor" => array(
|
1950 |
-
"regular",
|
1951 |
-
),
|
1952 |
-
"Keania One" => array(
|
1953 |
-
"regular",
|
1954 |
-
),
|
1955 |
-
"Kelly Slab" => array(
|
1956 |
-
"regular",
|
1957 |
-
),
|
1958 |
-
"Kenia" => array(
|
1959 |
-
"regular",
|
1960 |
-
),
|
1961 |
-
"Khand" => array(
|
1962 |
-
"300",
|
1963 |
-
"regular",
|
1964 |
-
"500",
|
1965 |
-
"600",
|
1966 |
-
"700",
|
1967 |
-
),
|
1968 |
-
"Khmer" => array(
|
1969 |
-
"regular",
|
1970 |
-
),
|
1971 |
-
"Khula" => array(
|
1972 |
-
"300",
|
1973 |
-
"regular",
|
1974 |
-
"600",
|
1975 |
-
"700",
|
1976 |
-
"800",
|
1977 |
-
),
|
1978 |
-
"Kite One" => array(
|
1979 |
-
"regular",
|
1980 |
-
),
|
1981 |
-
"Knewave" => array(
|
1982 |
-
"regular",
|
1983 |
-
),
|
1984 |
-
"Kotta One" => array(
|
1985 |
-
"regular",
|
1986 |
-
),
|
1987 |
-
"Koulen" => array(
|
1988 |
-
"regular",
|
1989 |
-
),
|
1990 |
-
"Kranky" => array(
|
1991 |
-
"regular",
|
1992 |
-
),
|
1993 |
-
"Kreon" => array(
|
1994 |
-
"300",
|
1995 |
-
"regular",
|
1996 |
-
"700",
|
1997 |
-
),
|
1998 |
-
"Kristi" => array(
|
1999 |
-
"regular",
|
2000 |
-
),
|
2001 |
-
"Krona One" => array(
|
2002 |
-
"regular",
|
2003 |
-
),
|
2004 |
-
"Kumar One" => array(
|
2005 |
-
"regular",
|
2006 |
-
),
|
2007 |
-
"Kumar One Outline" => array(
|
2008 |
-
"regular",
|
2009 |
-
),
|
2010 |
-
"Kurale" => array(
|
2011 |
-
"regular",
|
2012 |
-
),
|
2013 |
-
"La Belle Aurore" => array(
|
2014 |
-
"regular",
|
2015 |
-
),
|
2016 |
-
"Laila" => array(
|
2017 |
-
"300",
|
2018 |
-
"regular",
|
2019 |
-
"500",
|
2020 |
-
"600",
|
2021 |
-
"700",
|
2022 |
-
),
|
2023 |
-
"Lakki Reddy" => array(
|
2024 |
-
"regular",
|
2025 |
-
),
|
2026 |
-
"Lalezar" => array(
|
2027 |
-
"regular",
|
2028 |
-
),
|
2029 |
-
"Lancelot" => array(
|
2030 |
-
"regular",
|
2031 |
-
),
|
2032 |
-
"Lateef" => array(
|
2033 |
-
"regular",
|
2034 |
-
),
|
2035 |
-
"Lato" => array(
|
2036 |
-
"100",
|
2037 |
-
"300",
|
2038 |
-
"regular",
|
2039 |
-
"700",
|
2040 |
-
"900",
|
2041 |
-
),
|
2042 |
-
"League Script" => array(
|
2043 |
-
"regular",
|
2044 |
-
),
|
2045 |
-
"Leckerli One" => array(
|
2046 |
-
"regular",
|
2047 |
-
),
|
2048 |
-
"Ledger" => array(
|
2049 |
-
"regular",
|
2050 |
-
),
|
2051 |
-
"Lekton" => array(
|
2052 |
-
"regular",
|
2053 |
-
"700",
|
2054 |
-
),
|
2055 |
-
"Lemon" => array(
|
2056 |
-
"regular",
|
2057 |
-
),
|
2058 |
-
"Lemonada" => array(
|
2059 |
-
"300",
|
2060 |
-
"regular",
|
2061 |
-
"600",
|
2062 |
-
"700",
|
2063 |
-
),
|
2064 |
-
"Libre Baskerville" => array(
|
2065 |
-
"regular",
|
2066 |
-
"700",
|
2067 |
-
),
|
2068 |
-
"Libre Franklin" => array(
|
2069 |
-
"100",
|
2070 |
-
"200",
|
2071 |
-
"300",
|
2072 |
-
"regular",
|
2073 |
-
"500",
|
2074 |
-
"600",
|
2075 |
-
"700",
|
2076 |
-
"800",
|
2077 |
-
"900",
|
2078 |
-
),
|
2079 |
-
"Life Savers" => array(
|
2080 |
-
"regular",
|
2081 |
-
"700",
|
2082 |
-
),
|
2083 |
-
"Lilita One" => array(
|
2084 |
-
"regular",
|
2085 |
-
),
|
2086 |
-
"Lily Script One" => array(
|
2087 |
-
"regular",
|
2088 |
-
),
|
2089 |
-
"Limelight" => array(
|
2090 |
-
"regular",
|
2091 |
-
),
|
2092 |
-
"Linden Hill" => array(
|
2093 |
-
"regular",
|
2094 |
-
),
|
2095 |
-
"Lobster" => array(
|
2096 |
-
"regular",
|
2097 |
-
),
|
2098 |
-
"Lobster Two" => array(
|
2099 |
-
"regular",
|
2100 |
-
"700",
|
2101 |
-
),
|
2102 |
-
"Londrina Outline" => array(
|
2103 |
-
"regular",
|
2104 |
-
),
|
2105 |
-
"Londrina Shadow" => array(
|
2106 |
-
"regular",
|
2107 |
-
),
|
2108 |
-
"Londrina Sketch" => array(
|
2109 |
-
"regular",
|
2110 |
-
),
|
2111 |
-
"Londrina Solid" => array(
|
2112 |
-
"regular",
|
2113 |
-
),
|
2114 |
-
"Lora" => array(
|
2115 |
-
"regular",
|
2116 |
-
"700",
|
2117 |
-
),
|
2118 |
-
"Love Ya Like A Sister" => array(
|
2119 |
-
"regular",
|
2120 |
-
),
|
2121 |
-
"Loved by the King" => array(
|
2122 |
-
"regular",
|
2123 |
-
),
|
2124 |
-
"Lovers Quarrel" => array(
|
2125 |
-
"regular",
|
2126 |
-
),
|
2127 |
-
"Luckiest Guy" => array(
|
2128 |
-
"regular",
|
2129 |
-
),
|
2130 |
-
"Lusitana" => array(
|
2131 |
-
"regular",
|
2132 |
-
"700",
|
2133 |
-
),
|
2134 |
-
"Lustria" => array(
|
2135 |
-
"regular",
|
2136 |
-
),
|
2137 |
-
"Macondo" => array(
|
2138 |
-
"regular",
|
2139 |
-
),
|
2140 |
-
"Macondo Swash Caps" => array(
|
2141 |
-
"regular",
|
2142 |
-
),
|
2143 |
-
"Mada" => array(
|
2144 |
-
"300",
|
2145 |
-
"regular",
|
2146 |
-
"500",
|
2147 |
-
"900",
|
2148 |
-
),
|
2149 |
-
"Magra" => array(
|
2150 |
-
"regular",
|
2151 |
-
"700",
|
2152 |
-
),
|
2153 |
-
"Maiden Orange" => array(
|
2154 |
-
"regular",
|
2155 |
-
),
|
2156 |
-
"Maitree" => array(
|
2157 |
-
"200",
|
2158 |
-
"300",
|
2159 |
-
"regular",
|
2160 |
-
"500",
|
2161 |
-
"600",
|
2162 |
-
"700",
|
2163 |
-
),
|
2164 |
-
"Mako" => array(
|
2165 |
-
"regular",
|
2166 |
-
),
|
2167 |
-
"Mallanna" => array(
|
2168 |
-
"regular",
|
2169 |
-
),
|
2170 |
-
"Mandali" => array(
|
2171 |
-
"regular",
|
2172 |
-
),
|
2173 |
-
"Marcellus" => array(
|
2174 |
-
"regular",
|
2175 |
-
),
|
2176 |
-
"Marcellus SC" => array(
|
2177 |
-
"regular",
|
2178 |
-
),
|
2179 |
-
"Marck Script" => array(
|
2180 |
-
"regular",
|
2181 |
-
),
|
2182 |
-
"Margarine" => array(
|
2183 |
-
"regular",
|
2184 |
-
),
|
2185 |
-
"Marko One" => array(
|
2186 |
-
"regular",
|
2187 |
-
),
|
2188 |
-
"Marmelad" => array(
|
2189 |
-
"regular",
|
2190 |
-
),
|
2191 |
-
"Martel" => array(
|
2192 |
-
"200",
|
2193 |
-
"300",
|
2194 |
-
"regular",
|
2195 |
-
"600",
|
2196 |
-
"700",
|
2197 |
-
"800",
|
2198 |
-
"900",
|
2199 |
-
),
|
2200 |
-
"Martel Sans" => array(
|
2201 |
-
"200",
|
2202 |
-
"300",
|
2203 |
-
"regular",
|
2204 |
-
"600",
|
2205 |
-
"700",
|
2206 |
-
"800",
|
2207 |
-
"900",
|
2208 |
-
),
|
2209 |
-
"Marvel" => array(
|
2210 |
-
"regular",
|
2211 |
-
"700",
|
2212 |
-
),
|
2213 |
-
"Mate" => array(
|
2214 |
-
"regular",
|
2215 |
-
),
|
2216 |
-
"Mate SC" => array(
|
2217 |
-
"regular",
|
2218 |
-
),
|
2219 |
-
"Maven Pro" => array(
|
2220 |
-
"regular",
|
2221 |
-
"500",
|
2222 |
-
"700",
|
2223 |
-
"900",
|
2224 |
-
),
|
2225 |
-
"McLaren" => array(
|
2226 |
-
"regular",
|
2227 |
-
),
|
2228 |
-
"Meddon" => array(
|
2229 |
-
"regular",
|
2230 |
-
),
|
2231 |
-
"MedievalSharp" => array(
|
2232 |
-
"regular",
|
2233 |
-
),
|
2234 |
-
"Medula One" => array(
|
2235 |
-
"regular",
|
2236 |
-
),
|
2237 |
-
"Meera Inimai" => array(
|
2238 |
-
"regular",
|
2239 |
-
),
|
2240 |
-
"Megrim" => array(
|
2241 |
-
"regular",
|
2242 |
-
),
|
2243 |
-
"Meie Script" => array(
|
2244 |
-
"regular",
|
2245 |
-
),
|
2246 |
-
"Merienda" => array(
|
2247 |
-
"regular",
|
2248 |
-
"700",
|
2249 |
-
),
|
2250 |
-
"Merienda One" => array(
|
2251 |
-
"regular",
|
2252 |
-
),
|
2253 |
-
"Merriweather" => array(
|
2254 |
-
"300",
|
2255 |
-
"regular",
|
2256 |
-
"700",
|
2257 |
-
"900",
|
2258 |
-
),
|
2259 |
-
"Merriweather Sans" => array(
|
2260 |
-
"300",
|
2261 |
-
"regular",
|
2262 |
-
"700",
|
2263 |
-
"800",
|
2264 |
-
),
|
2265 |
-
"Metal" => array(
|
2266 |
-
"regular",
|
2267 |
-
),
|
2268 |
-
"Metal Mania" => array(
|
2269 |
-
"regular",
|
2270 |
-
),
|
2271 |
-
"Metamorphous" => array(
|
2272 |
-
"regular",
|
2273 |
-
),
|
2274 |
-
"Metrophobic" => array(
|
2275 |
-
"regular",
|
2276 |
-
),
|
2277 |
-
"Michroma" => array(
|
2278 |
-
"regular",
|
2279 |
-
),
|
2280 |
-
"Milonga" => array(
|
2281 |
-
"regular",
|
2282 |
-
),
|
2283 |
-
"Miltonian" => array(
|
2284 |
-
"regular",
|
2285 |
-
),
|
2286 |
-
"Miltonian Tattoo" => array(
|
2287 |
-
"regular",
|
2288 |
-
),
|
2289 |
-
"Miniver" => array(
|
2290 |
-
"regular",
|
2291 |
-
),
|
2292 |
-
"Miriam Libre" => array(
|
2293 |
-
"regular",
|
2294 |
-
"700",
|
2295 |
-
),
|
2296 |
-
"Mirza" => array(
|
2297 |
-
"regular",
|
2298 |
-
"500",
|
2299 |
-
"600",
|
2300 |
-
"700",
|
2301 |
-
),
|
2302 |
-
"Miss Fajardose" => array(
|
2303 |
-
"regular",
|
2304 |
-
),
|
2305 |
-
"Mitr" => array(
|
2306 |
-
"200",
|
2307 |
-
"300",
|
2308 |
-
"regular",
|
2309 |
-
"500",
|
2310 |
-
"600",
|
2311 |
-
"700",
|
2312 |
-
),
|
2313 |
-
"Modak" => array(
|
2314 |
-
"regular",
|
2315 |
-
),
|
2316 |
-
"Modern Antiqua" => array(
|
2317 |
-
"regular",
|
2318 |
-
),
|
2319 |
-
"Mogra" => array(
|
2320 |
-
"regular",
|
2321 |
-
),
|
2322 |
-
"Molengo" => array(
|
2323 |
-
"regular",
|
2324 |
-
),
|
2325 |
-
"Molle" => array(),
|
2326 |
-
"Monda" => array(
|
2327 |
-
"regular",
|
2328 |
-
"700",
|
2329 |
-
),
|
2330 |
-
"Monofett" => array(
|
2331 |
-
"regular",
|
2332 |
-
),
|
2333 |
-
"Monoton" => array(
|
2334 |
-
"regular",
|
2335 |
-
),
|
2336 |
-
"Monsieur La Doulaise" => array(
|
2337 |
-
"regular",
|
2338 |
-
),
|
2339 |
-
"Montaga" => array(
|
2340 |
-
"regular",
|
2341 |
-
),
|
2342 |
-
"Montez" => array(
|
2343 |
-
"regular",
|
2344 |
-
),
|
2345 |
-
"Montserrat" => array(
|
2346 |
-
"100",
|
2347 |
-
"200",
|
2348 |
-
"300",
|
2349 |
-
"regular",
|
2350 |
-
"500",
|
2351 |
-
"600",
|
2352 |
-
"700",
|
2353 |
-
"800",
|
2354 |
-
"900",
|
2355 |
-
),
|
2356 |
-
"Montserrat Alternates" => array(
|
2357 |
-
"100",
|
2358 |
-
"200",
|
2359 |
-
"300",
|
2360 |
-
"regular",
|
2361 |
-
"500",
|
2362 |
-
"600",
|
2363 |
-
"700",
|
2364 |
-
"800",
|
2365 |
-
"900",
|
2366 |
-
),
|
2367 |
-
"Montserrat Subrayada" => array(
|
2368 |
-
"regular",
|
2369 |
-
"700",
|
2370 |
-
),
|
2371 |
-
"Moul" => array(
|
2372 |
-
"regular",
|
2373 |
-
),
|
2374 |
-
"Moulpali" => array(
|
2375 |
-
"regular",
|
2376 |
-
),
|
2377 |
-
"Mountains of Christmas" => array(
|
2378 |
-
"regular",
|
2379 |
-
"700",
|
2380 |
-
),
|
2381 |
-
"Mouse Memoirs" => array(
|
2382 |
-
"regular",
|
2383 |
-
),
|
2384 |
-
"Mr Bedfort" => array(
|
2385 |
-
"regular",
|
2386 |
-
),
|
2387 |
-
"Mr Dafoe" => array(
|
2388 |
-
"regular",
|
2389 |
-
),
|
2390 |
-
"Mr De Haviland" => array(
|
2391 |
-
"regular",
|
2392 |
-
),
|
2393 |
-
"Mrs Saint Delafield" => array(
|
2394 |
-
"regular",
|
2395 |
-
),
|
2396 |
-
"Mrs Sheppards" => array(
|
2397 |
-
"regular",
|
2398 |
-
),
|
2399 |
-
"Mukta Vaani" => array(
|
2400 |
-
"200",
|
2401 |
-
"300",
|
2402 |
-
"regular",
|
2403 |
-
"500",
|
2404 |
-
"600",
|
2405 |
-
"700",
|
2406 |
-
"800",
|
2407 |
-
),
|
2408 |
-
"Muli" => array(
|
2409 |
-
"200",
|
2410 |
-
"300",
|
2411 |
-
"regular",
|
2412 |
-
"600",
|
2413 |
-
"700",
|
2414 |
-
"800",
|
2415 |
-
"900",
|
2416 |
-
),
|
2417 |
-
"Mystery Quest" => array(
|
2418 |
-
"regular",
|
2419 |
-
),
|
2420 |
-
"NTR" => array(
|
2421 |
-
"regular",
|
2422 |
-
),
|
2423 |
-
"Neucha" => array(
|
2424 |
-
"regular",
|
2425 |
-
),
|
2426 |
-
"Neuton" => array(
|
2427 |
-
"200",
|
2428 |
-
"300",
|
2429 |
-
"regular",
|
2430 |
-
"700",
|
2431 |
-
"800",
|
2432 |
-
),
|
2433 |
-
"New Rocker" => array(
|
2434 |
-
"regular",
|
2435 |
-
),
|
2436 |
-
"News Cycle" => array(
|
2437 |
-
"regular",
|
2438 |
-
"700",
|
2439 |
-
),
|
2440 |
-
"Niconne" => array(
|
2441 |
-
"regular",
|
2442 |
-
),
|
2443 |
-
"Nixie One" => array(
|
2444 |
-
"regular",
|
2445 |
-
),
|
2446 |
-
"Nobile" => array(
|
2447 |
-
"regular",
|
2448 |
-
"700",
|
2449 |
-
),
|
2450 |
-
"Nokora" => array(
|
2451 |
-
"regular",
|
2452 |
-
"700",
|
2453 |
-
),
|
2454 |
-
"Norican" => array(
|
2455 |
-
"regular",
|
2456 |
-
),
|
2457 |
-
"Nosifer" => array(
|
2458 |
-
"regular",
|
2459 |
-
),
|
2460 |
-
"Nothing You Could Do" => array(
|
2461 |
-
"regular",
|
2462 |
-
),
|
2463 |
-
"Noticia Text" => array(
|
2464 |
-
"regular",
|
2465 |
-
"700",
|
2466 |
-
),
|
2467 |
-
"Noto Sans" => array(
|
2468 |
-
"regular",
|
2469 |
-
"700",
|
2470 |
-
),
|
2471 |
-
"Noto Serif" => array(
|
2472 |
-
"regular",
|
2473 |
-
"700",
|
2474 |
-
),
|
2475 |
-
"Nova Cut" => array(
|
2476 |
-
"regular",
|
2477 |
-
),
|
2478 |
-
"Nova Flat" => array(
|
2479 |
-
"regular",
|
2480 |
-
),
|
2481 |
-
"Nova Mono" => array(
|
2482 |
-
"regular",
|
2483 |
-
),
|
2484 |
-
"Nova Oval" => array(
|
2485 |
-
"regular",
|
2486 |
-
),
|
2487 |
-
"Nova Round" => array(
|
2488 |
-
"regular",
|
2489 |
-
),
|
2490 |
-
"Nova Script" => array(
|
2491 |
-
"regular",
|
2492 |
-
),
|
2493 |
-
"Nova Slim" => array(
|
2494 |
-
"regular",
|
2495 |
-
),
|
2496 |
-
"Nova Square" => array(
|
2497 |
-
"regular",
|
2498 |
-
),
|
2499 |
-
"Numans" => array(
|
2500 |
-
"regular",
|
2501 |
-
),
|
2502 |
-
"Nunito" => array(
|
2503 |
-
"200",
|
2504 |
-
"300",
|
2505 |
-
"regular",
|
2506 |
-
"600",
|
2507 |
-
"700",
|
2508 |
-
"800",
|
2509 |
-
"900",
|
2510 |
-
),
|
2511 |
-
"Nunito Sans" => array(
|
2512 |
-
"200",
|
2513 |
-
"300",
|
2514 |
-
"regular",
|
2515 |
-
"600",
|
2516 |
-
"700",
|
2517 |
-
"800",
|
2518 |
-
"900",
|
2519 |
-
),
|
2520 |
-
"Odor Mean Chey" => array(
|
2521 |
-
"regular",
|
2522 |
-
),
|
2523 |
-
"Offside" => array(
|
2524 |
-
"regular",
|
2525 |
-
),
|
2526 |
-
"Old Standard TT" => array(
|
2527 |
-
"regular",
|
2528 |
-
"700",
|
2529 |
-
),
|
2530 |
-
"Oldenburg" => array(
|
2531 |
-
"regular",
|
2532 |
-
),
|
2533 |
-
"Oleo Script" => array(
|
2534 |
-
"regular",
|
2535 |
-
"700",
|
2536 |
-
),
|
2537 |
-
"Oleo Script Swash Caps" => array(
|
2538 |
-
"regular",
|
2539 |
-
"700",
|
2540 |
-
),
|
2541 |
-
"Open Sans" => array(
|
2542 |
-
"300",
|
2543 |
-
"regular",
|
2544 |
-
"600",
|
2545 |
-
"700",
|
2546 |
-
"800",
|
2547 |
-
),
|
2548 |
-
"Open Sans Condensed" => array(
|
2549 |
-
"300",
|
2550 |
-
"700",
|
2551 |
-
),
|
2552 |
-
"Oranienbaum" => array(
|
2553 |
-
"regular",
|
2554 |
-
),
|
2555 |
-
"Orbitron" => array(
|
2556 |
-
"regular",
|
2557 |
-
"500",
|
2558 |
-
"700",
|
2559 |
-
"900",
|
2560 |
-
),
|
2561 |
-
"Oregano" => array(
|
2562 |
-
"regular",
|
2563 |
-
),
|
2564 |
-
"Orienta" => array(
|
2565 |
-
"regular",
|
2566 |
-
),
|
2567 |
-
"Original Surfer" => array(
|
2568 |
-
"regular",
|
2569 |
-
),
|
2570 |
-
"Oswald" => array(
|
2571 |
-
"200",
|
2572 |
-
"300",
|
2573 |
-
"regular",
|
2574 |
-
"500",
|
2575 |
-
"600",
|
2576 |
-
"700",
|
2577 |
-
),
|
2578 |
-
"Over the Rainbow" => array(
|
2579 |
-
"regular",
|
2580 |
-
),
|
2581 |
-
"Overlock" => array(
|
2582 |
-
"regular",
|
2583 |
-
"700",
|
2584 |
-
"900",
|
2585 |
-
),
|
2586 |
-
"Overlock SC" => array(
|
2587 |
-
"regular",
|
2588 |
-
),
|
2589 |
-
"Overpass" => array(
|
2590 |
-
"100",
|
2591 |
-
"200",
|
2592 |
-
"300",
|
2593 |
-
"regular",
|
2594 |
-
"600",
|
2595 |
-
"700",
|
2596 |
-
"800",
|
2597 |
-
"900",
|
2598 |
-
),
|
2599 |
-
"Overpass Mono" => array(
|
2600 |
-
"300",
|
2601 |
-
"regular",
|
2602 |
-
"600",
|
2603 |
-
"700",
|
2604 |
-
),
|
2605 |
-
"Ovo" => array(
|
2606 |
-
"regular",
|
2607 |
-
),
|
2608 |
-
"Oxygen" => array(
|
2609 |
-
"300",
|
2610 |
-
"regular",
|
2611 |
-
"700",
|
2612 |
-
),
|
2613 |
-
"Oxygen Mono" => array(
|
2614 |
-
"regular",
|
2615 |
-
),
|
2616 |
-
"PT Mono" => array(
|
2617 |
-
"regular",
|
2618 |
-
),
|
2619 |
-
"PT Sans" => array(
|
2620 |
-
"regular",
|
2621 |
-
"700",
|
2622 |
-
),
|
2623 |
-
"PT Sans Caption" => array(
|
2624 |
-
"regular",
|
2625 |
-
"700",
|
2626 |
-
),
|
2627 |
-
"PT Sans Narrow" => array(
|
2628 |
-
"regular",
|
2629 |
-
"700",
|
2630 |
-
),
|
2631 |
-
"PT Serif" => array(
|
2632 |
-
"regular",
|
2633 |
-
"700",
|
2634 |
-
),
|
2635 |
-
"PT Serif Caption" => array(
|
2636 |
-
"regular",
|
2637 |
-
),
|
2638 |
-
"Pacifico" => array(
|
2639 |
-
"regular",
|
2640 |
-
),
|
2641 |
-
"Padauk" => array(
|
2642 |
-
"regular",
|
2643 |
-
"700",
|
2644 |
-
),
|
2645 |
-
"Palanquin" => array(
|
2646 |
-
"100",
|
2647 |
-
"200",
|
2648 |
-
"300",
|
2649 |
-
"regular",
|
2650 |
-
"500",
|
2651 |
-
"600",
|
2652 |
-
"700",
|
2653 |
-
),
|
2654 |
-
"Palanquin Dark" => array(
|
2655 |
-
"regular",
|
2656 |
-
"500",
|
2657 |
-
"600",
|
2658 |
-
"700",
|
2659 |
-
),
|
2660 |
-
"Pangolin" => array(
|
2661 |
-
"regular",
|
2662 |
-
),
|
2663 |
-
"Paprika" => array(
|
2664 |
-
"regular",
|
2665 |
-
),
|
2666 |
-
"Parisienne" => array(
|
2667 |
-
"regular",
|
2668 |
-
),
|
2669 |
-
"Passero One" => array(
|
2670 |
-
"regular",
|
2671 |
-
),
|
2672 |
-
"Passion One" => array(
|
2673 |
-
"regular",
|
2674 |
-
"700",
|
2675 |
-
"900",
|
2676 |
-
),
|
2677 |
-
"Pathway Gothic One" => array(
|
2678 |
-
"regular",
|
2679 |
-
),
|
2680 |
-
"Patrick Hand" => array(
|
2681 |
-
"regular",
|
2682 |
-
),
|
2683 |
-
"Patrick Hand SC" => array(
|
2684 |
-
"regular",
|
2685 |
-
),
|
2686 |
-
"Pattaya" => array(
|
2687 |
-
"regular",
|
2688 |
-
),
|
2689 |
-
"Patua One" => array(
|
2690 |
-
"regular",
|
2691 |
-
),
|
2692 |
-
"Pavanam" => array(
|
2693 |
-
"regular",
|
2694 |
-
),
|
2695 |
-
"Paytone One" => array(
|
2696 |
-
"regular",
|
2697 |
-
),
|
2698 |
-
"Peddana" => array(
|
2699 |
-
"regular",
|
2700 |
-
),
|
2701 |
-
"Peralta" => array(
|
2702 |
-
"regular",
|
2703 |
-
),
|
2704 |
-
"Permanent Marker" => array(
|
2705 |
-
"regular",
|
2706 |
-
),
|
2707 |
-
"Petit Formal Script" => array(
|
2708 |
-
"regular",
|
2709 |
-
),
|
2710 |
-
"Petrona" => array(
|
2711 |
-
"regular",
|
2712 |
-
),
|
2713 |
-
"Philosopher" => array(
|
2714 |
-
"regular",
|
2715 |
-
"700",
|
2716 |
-
),
|
2717 |
-
"Piedra" => array(
|
2718 |
-
"regular",
|
2719 |
-
),
|
2720 |
-
"Pinyon Script" => array(
|
2721 |
-
"regular",
|
2722 |
-
),
|
2723 |
-
"Pirata One" => array(
|
2724 |
-
"regular",
|
2725 |
-
),
|
2726 |
-
"Plaster" => array(
|
2727 |
-
"regular",
|
2728 |
-
),
|
2729 |
-
"Play" => array(
|
2730 |
-
"regular",
|
2731 |
-
"700",
|
2732 |
-
),
|
2733 |
-
"Playball" => array(
|
2734 |
-
"regular",
|
2735 |
-
),
|
2736 |
-
"Playfair Display" => array(
|
2737 |
-
"regular",
|
2738 |
-
"700",
|
2739 |
-
"900",
|
2740 |
-
),
|
2741 |
-
"Playfair Display SC" => array(
|
2742 |
-
"regular",
|
2743 |
-
"700",
|
2744 |
-
"900",
|
2745 |
-
),
|
2746 |
-
"Podkova" => array(
|
2747 |
-
"regular",
|
2748 |
-
"500",
|
2749 |
-
"600",
|
2750 |
-
"700",
|
2751 |
-
"800",
|
2752 |
-
),
|
2753 |
-
"Poiret One" => array(
|
2754 |
-
"regular",
|
2755 |
-
),
|
2756 |
-
"Poller One" => array(
|
2757 |
-
"regular",
|
2758 |
-
),
|
2759 |
-
"Poly" => array(
|
2760 |
-
"regular",
|
2761 |
-
),
|
2762 |
-
"Pompiere" => array(
|
2763 |
-
"regular",
|
2764 |
-
),
|
2765 |
-
"Pontano Sans" => array(
|
2766 |
-
"regular",
|
2767 |
-
),
|
2768 |
-
"Poppins" => array(
|
2769 |
-
"300",
|
2770 |
-
"regular",
|
2771 |
-
"500",
|
2772 |
-
"600",
|
2773 |
-
"700",
|
2774 |
-
),
|
2775 |
-
"Port Lligat Sans" => array(
|
2776 |
-
"regular",
|
2777 |
-
),
|
2778 |
-
"Port Lligat Slab" => array(
|
2779 |
-
"regular",
|
2780 |
-
),
|
2781 |
-
"Pragati Narrow" => array(
|
2782 |
-
"regular",
|
2783 |
-
"700",
|
2784 |
-
),
|
2785 |
-
"Prata" => array(
|
2786 |
-
"regular",
|
2787 |
-
),
|
2788 |
-
"Preahvihear" => array(
|
2789 |
-
"regular",
|
2790 |
-
),
|
2791 |
-
"Press Start 2P" => array(
|
2792 |
-
"regular",
|
2793 |
-
),
|
2794 |
-
"Pridi" => array(
|
2795 |
-
"200",
|
2796 |
-
"300",
|
2797 |
-
"regular",
|
2798 |
-
"500",
|
2799 |
-
"600",
|
2800 |
-
"700",
|
2801 |
-
),
|
2802 |
-
"Princess Sofia" => array(
|
2803 |
-
"regular",
|
2804 |
-
),
|
2805 |
-
"Prociono" => array(
|
2806 |
-
"regular",
|
2807 |
-
),
|
2808 |
-
"Prompt" => array(
|
2809 |
-
"100",
|
2810 |
-
"200",
|
2811 |
-
"300",
|
2812 |
-
"regular",
|
2813 |
-
"500",
|
2814 |
-
"600",
|
2815 |
-
"700",
|
2816 |
-
"800",
|
2817 |
-
"900",
|
2818 |
-
),
|
2819 |
-
"Prosto One" => array(
|
2820 |
-
"regular",
|
2821 |
-
),
|
2822 |
-
"Proza Libre" => array(
|
2823 |
-
"regular",
|
2824 |
-
"500",
|
2825 |
-
"600",
|
2826 |
-
"700",
|
2827 |
-
"800",
|
2828 |
-
),
|
2829 |
-
"Puritan" => array(
|
2830 |
-
"regular",
|
2831 |
-
"700",
|
2832 |
-
),
|
2833 |
-
"Purple Purse" => array(
|
2834 |
-
"regular",
|
2835 |
-
),
|
2836 |
-
"Quando" => array(
|
2837 |
-
"regular",
|
2838 |
-
),
|
2839 |
-
"Quantico" => array(
|
2840 |
-
"regular",
|
2841 |
-
"700",
|
2842 |
-
),
|
2843 |
-
"Quattrocento" => array(
|
2844 |
-
"regular",
|
2845 |
-
"700",
|
2846 |
-
),
|
2847 |
-
"Quattrocento Sans" => array(
|
2848 |
-
"regular",
|
2849 |
-
"700",
|
2850 |
-
),
|
2851 |
-
"Questrial" => array(
|
2852 |
-
"regular",
|
2853 |
-
),
|
2854 |
-
"Quicksand" => array(
|
2855 |
-
"300",
|
2856 |
-
"regular",
|
2857 |
-
"500",
|
2858 |
-
"700",
|
2859 |
-
),
|
2860 |
-
"Quintessential" => array(
|
2861 |
-
"regular",
|
2862 |
-
),
|
2863 |
-
"Qwigley" => array(
|
2864 |
-
"regular",
|
2865 |
-
),
|
2866 |
-
"Racing Sans One" => array(
|
2867 |
-
"regular",
|
2868 |
-
),
|
2869 |
-
"Radley" => array(
|
2870 |
-
"regular",
|
2871 |
-
),
|
2872 |
-
"Rajdhani" => array(
|
2873 |
-
"300",
|
2874 |
-
"regular",
|
2875 |
-
"500",
|
2876 |
-
"600",
|
2877 |
-
"700",
|
2878 |
-
),
|
2879 |
-
"Rakkas" => array(
|
2880 |
-
"regular",
|
2881 |
-
),
|
2882 |
-
"Raleway" => array(
|
2883 |
-
"100",
|
2884 |
-
"200",
|
2885 |
-
"300",
|
2886 |
-
"regular",
|
2887 |
-
"500",
|
2888 |
-
"600",
|
2889 |
-
"700",
|
2890 |
-
"800",
|
2891 |
-
"900",
|
2892 |
-
),
|
2893 |
-
"Raleway Dots" => array(
|
2894 |
-
"regular",
|
2895 |
-
),
|
2896 |
-
"Ramabhadra" => array(
|
2897 |
-
"regular",
|
2898 |
-
),
|
2899 |
-
"Ramaraja" => array(
|
2900 |
-
"regular",
|
2901 |
-
),
|
2902 |
-
"Rambla" => array(
|
2903 |
-
"regular",
|
2904 |
-
"700",
|
2905 |
-
),
|
2906 |
-
"Rammetto One" => array(
|
2907 |
-
"regular",
|
2908 |
-
),
|
2909 |
-
"Ranchers" => array(
|
2910 |
-
"regular",
|
2911 |
-
),
|
2912 |
-
"Rancho" => array(
|
2913 |
-
"regular",
|
2914 |
-
),
|
2915 |
-
"Ranga" => array(
|
2916 |
-
"regular",
|
2917 |
-
"700",
|
2918 |
-
),
|
2919 |
-
"Rasa" => array(
|
2920 |
-
"300",
|
2921 |
-
"regular",
|
2922 |
-
"500",
|
2923 |
-
"600",
|
2924 |
-
"700",
|
2925 |
-
),
|
2926 |
-
"Rationale" => array(
|
2927 |
-
"regular",
|
2928 |
-
),
|
2929 |
-
"Ravi Prakash" => array(
|
2930 |
-
"regular",
|
2931 |
-
),
|
2932 |
-
"Redressed" => array(
|
2933 |
-
"regular",
|
2934 |
-
),
|
2935 |
-
"Reem Kufi" => array(
|
2936 |
-
"regular",
|
2937 |
-
),
|
2938 |
-
"Reenie Beanie" => array(
|
2939 |
-
"regular",
|
2940 |
-
),
|
2941 |
-
"Revalia" => array(
|
2942 |
-
"regular",
|
2943 |
-
),
|
2944 |
-
"Rhodium Libre" => array(
|
2945 |
-
"regular",
|
2946 |
-
),
|
2947 |
-
"Ribeye" => array(
|
2948 |
-
"regular",
|
2949 |
-
),
|
2950 |
-
"Ribeye Marrow" => array(
|
2951 |
-
"regular",
|
2952 |
-
),
|
2953 |
-
"Righteous" => array(
|
2954 |
-
"regular",
|
2955 |
-
),
|
2956 |
-
"Risque" => array(
|
2957 |
-
"regular",
|
2958 |
-
),
|
2959 |
-
"Roboto" => array(
|
2960 |
-
"100",
|
2961 |
-
"300",
|
2962 |
-
"regular",
|
2963 |
-
"500",
|
2964 |
-
"700",
|
2965 |
-
"900",
|
2966 |
-
),
|
2967 |
-
"Roboto Condensed" => array(
|
2968 |
-
"300",
|
2969 |
-
"regular",
|
2970 |
-
"700",
|
2971 |
-
),
|
2972 |
-
"Roboto Mono" => array(
|
2973 |
-
"100",
|
2974 |
-
"300",
|
2975 |
-
"regular",
|
2976 |
-
"500",
|
2977 |
-
"700",
|
2978 |
-
),
|
2979 |
-
"Roboto Slab" => array(
|
2980 |
-
"100",
|
2981 |
-
"300",
|
2982 |
-
"regular",
|
2983 |
-
"700",
|
2984 |
-
),
|
2985 |
-
"Rochester" => array(
|
2986 |
-
"regular",
|
2987 |
-
),
|
2988 |
-
"Rock Salt" => array(
|
2989 |
-
"regular",
|
2990 |
-
),
|
2991 |
-
"Rokkitt" => array(
|
2992 |
-
"100",
|
2993 |
-
"200",
|
2994 |
-
"300",
|
2995 |
-
"regular",
|
2996 |
-
"500",
|
2997 |
-
"600",
|
2998 |
-
"700",
|
2999 |
-
"800",
|
3000 |
-
"900",
|
3001 |
-
),
|
3002 |
-
"Romanesco" => array(
|
3003 |
-
"regular",
|
3004 |
-
),
|
3005 |
-
"Ropa Sans" => array(
|
3006 |
-
"regular",
|
3007 |
-
),
|
3008 |
-
"Rosario" => array(
|
3009 |
-
"regular",
|
3010 |
-
"700",
|
3011 |
-
),
|
3012 |
-
"Rosarivo" => array(
|
3013 |
-
"regular",
|
3014 |
-
),
|
3015 |
-
"Rouge Script" => array(
|
3016 |
-
"regular",
|
3017 |
-
),
|
3018 |
-
"Rozha One" => array(
|
3019 |
-
"regular",
|
3020 |
-
),
|
3021 |
-
"Rubik" => array(
|
3022 |
-
"300",
|
3023 |
-
"regular",
|
3024 |
-
"500",
|
3025 |
-
"700",
|
3026 |
-
"900",
|
3027 |
-
),
|
3028 |
-
"Rubik Mono One" => array(
|
3029 |
-
"regular",
|
3030 |
-
),
|
3031 |
-
"Ruda" => array(
|
3032 |
-
"regular",
|
3033 |
-
"700",
|
3034 |
-
"900",
|
3035 |
-
),
|
3036 |
-
"Rufina" => array(
|
3037 |
-
"regular",
|
3038 |
-
"700",
|
3039 |
-
),
|
3040 |
-
"Ruge Boogie" => array(
|
3041 |
-
"regular",
|
3042 |
-
),
|
3043 |
-
"Ruluko" => array(
|
3044 |
-
"regular",
|
3045 |
-
),
|
3046 |
-
"Rum Raisin" => array(
|
3047 |
-
"regular",
|
3048 |
-
),
|
3049 |
-
"Ruslan Display" => array(
|
3050 |
-
"regular",
|
3051 |
-
),
|
3052 |
-
"Russo One" => array(
|
3053 |
-
"regular",
|
3054 |
-
),
|
3055 |
-
"Ruthie" => array(
|
3056 |
-
"regular",
|
3057 |
-
),
|
3058 |
-
"Rye" => array(
|
3059 |
-
"regular",
|
3060 |
-
),
|
3061 |
-
"Sacramento" => array(
|
3062 |
-
"regular",
|
3063 |
-
),
|
3064 |
-
"Sahitya" => array(
|
3065 |
-
"regular",
|
3066 |
-
"700",
|
3067 |
-
),
|
3068 |
-
"Sail" => array(
|
3069 |
-
"regular",
|
3070 |
-
),
|
3071 |
-
"Salsa" => array(
|
3072 |
-
"regular",
|
3073 |
-
),
|
3074 |
-
"Sanchez" => array(
|
3075 |
-
"regular",
|
3076 |
-
),
|
3077 |
-
"Sancreek" => array(
|
3078 |
-
"regular",
|
3079 |
-
),
|
3080 |
-
"Sansita" => array(
|
3081 |
-
"regular",
|
3082 |
-
"700",
|
3083 |
-
"800",
|
3084 |
-
"900",
|
3085 |
-
),
|
3086 |
-
"Sarala" => array(
|
3087 |
-
"regular",
|
3088 |
-
"700",
|
3089 |
-
),
|
3090 |
-
"Sarina" => array(
|
3091 |
-
"regular",
|
3092 |
-
),
|
3093 |
-
"Sarpanch" => array(
|
3094 |
-
"regular",
|
3095 |
-
"500",
|
3096 |
-
"600",
|
3097 |
-
"700",
|
3098 |
-
"800",
|
3099 |
-
"900",
|
3100 |
-
),
|
3101 |
-
"Satisfy" => array(
|
3102 |
-
"regular",
|
3103 |
-
),
|
3104 |
-
"Scada" => array(
|
3105 |
-
"regular",
|
3106 |
-
"700",
|
3107 |
-
),
|
3108 |
-
"Scheherazade" => array(
|
3109 |
-
"regular",
|
3110 |
-
"700",
|
3111 |
-
),
|
3112 |
-
"Schoolbell" => array(
|
3113 |
-
"regular",
|
3114 |
-
),
|
3115 |
-
"Scope One" => array(
|
3116 |
-
"regular",
|
3117 |
-
),
|
3118 |
-
"Seaweed Script" => array(
|
3119 |
-
"regular",
|
3120 |
-
),
|
3121 |
-
"Secular One" => array(
|
3122 |
-
"regular",
|
3123 |
-
),
|
3124 |
-
"Sevillana" => array(
|
3125 |
-
"regular",
|
3126 |
-
),
|
3127 |
-
"Seymour One" => array(
|
3128 |
-
"regular",
|
3129 |
-
),
|
3130 |
-
"Shadows Into Light" => array(
|
3131 |
-
"regular",
|
3132 |
-
),
|
3133 |
-
"Shadows Into Light Two" => array(
|
3134 |
-
"regular",
|
3135 |
-
),
|
3136 |
-
"Shanti" => array(
|
3137 |
-
"regular",
|
3138 |
-
),
|
3139 |
-
"Share" => array(
|
3140 |
-
"regular",
|
3141 |
-
"700",
|
3142 |
-
),
|
3143 |
-
"Share Tech" => array(
|
3144 |
-
"regular",
|
3145 |
-
),
|
3146 |
-
"Share Tech Mono" => array(
|
3147 |
-
"regular",
|
3148 |
-
),
|
3149 |
-
"Shojumaru" => array(
|
3150 |
-
"regular",
|
3151 |
-
),
|
3152 |
-
"Short Stack" => array(
|
3153 |
-
"regular",
|
3154 |
-
),
|
3155 |
-
"Shrikhand" => array(
|
3156 |
-
"regular",
|
3157 |
-
),
|
3158 |
-
"Siemreap" => array(
|
3159 |
-
"regular",
|
3160 |
-
),
|
3161 |
-
"Sigmar One" => array(
|
3162 |
-
"regular",
|
3163 |
-
),
|
3164 |
-
"Signika" => array(
|
3165 |
-
"300",
|
3166 |
-
"regular",
|
3167 |
-
"600",
|
3168 |
-
"700",
|
3169 |
-
),
|
3170 |
-
"Signika Negative" => array(
|
3171 |
-
"300",
|
3172 |
-
"regular",
|
3173 |
-
"600",
|
3174 |
-
"700",
|
3175 |
-
),
|
3176 |
-
"Simonetta" => array(
|
3177 |
-
"regular",
|
3178 |
-
"900",
|
3179 |
-
),
|
3180 |
-
"Sintony" => array(
|
3181 |
-
"regular",
|
3182 |
-
"700",
|
3183 |
-
),
|
3184 |
-
"Sirin Stencil" => array(
|
3185 |
-
"regular",
|
3186 |
-
),
|
3187 |
-
"Six Caps" => array(
|
3188 |
-
"regular",
|
3189 |
-
),
|
3190 |
-
"Skranji" => array(
|
3191 |
-
"regular",
|
3192 |
-
"700",
|
3193 |
-
),
|
3194 |
-
"Slabo 13px" => array(
|
3195 |
-
"regular",
|
3196 |
-
),
|
3197 |
-
"Slabo 27px" => array(
|
3198 |
-
"regular",
|
3199 |
-
),
|
3200 |
-
"Slackey" => array(
|
3201 |
-
"regular",
|
3202 |
-
),
|
3203 |
-
"Smokum" => array(
|
3204 |
-
"regular",
|
3205 |
-
),
|
3206 |
-
"Smythe" => array(
|
3207 |
-
"regular",
|
3208 |
-
),
|
3209 |
-
"Sniglet" => array(
|
3210 |
-
"regular",
|
3211 |
-
"800",
|
3212 |
-
),
|
3213 |
-
"Snippet" => array(
|
3214 |
-
"regular",
|
3215 |
-
),
|
3216 |
-
"Snowburst One" => array(
|
3217 |
-
"regular",
|
3218 |
-
),
|
3219 |
-
"Sofadi One" => array(
|
3220 |
-
"regular",
|
3221 |
-
),
|
3222 |
-
"Sofia" => array(
|
3223 |
-
"regular",
|
3224 |
-
),
|
3225 |
-
"Sonsie One" => array(
|
3226 |
-
"regular",
|
3227 |
-
),
|
3228 |
-
"Sorts Mill Goudy" => array(
|
3229 |
-
"regular",
|
3230 |
-
),
|
3231 |
-
"Source Code Pro" => array(
|
3232 |
-
"200",
|
3233 |
-
"300",
|
3234 |
-
"regular",
|
3235 |
-
"500",
|
3236 |
-
"600",
|
3237 |
-
"700",
|
3238 |
-
"900",
|
3239 |
-
),
|
3240 |
-
"Source Sans Pro" => array(
|
3241 |
-
"200",
|
3242 |
-
"300",
|
3243 |
-
"regular",
|
3244 |
-
"600",
|
3245 |
-
"700",
|
3246 |
-
"900",
|
3247 |
-
),
|
3248 |
-
"Source Serif Pro" => array(
|
3249 |
-
"regular",
|
3250 |
-
"600",
|
3251 |
-
"700",
|
3252 |
-
),
|
3253 |
-
"Space Mono" => array(
|
3254 |
-
"regular",
|
3255 |
-
"700",
|
3256 |
-
),
|
3257 |
-
"Special Elite" => array(
|
3258 |
-
"regular",
|
3259 |
-
),
|
3260 |
-
"Spicy Rice" => array(
|
3261 |
-
"regular",
|
3262 |
-
),
|
3263 |
-
"Spinnaker" => array(
|
3264 |
-
"regular",
|
3265 |
-
),
|
3266 |
-
"Spirax" => array(
|
3267 |
-
"regular",
|
3268 |
-
),
|
3269 |
-
"Squada One" => array(
|
3270 |
-
"regular",
|
3271 |
-
),
|
3272 |
-
"Sree Krushnadevaraya" => array(
|
3273 |
-
"regular",
|
3274 |
-
),
|
3275 |
-
"Sriracha" => array(
|
3276 |
-
"regular",
|
3277 |
-
),
|
3278 |
-
"Stalemate" => array(
|
3279 |
-
"regular",
|
3280 |
-
),
|
3281 |
-
"Stalinist One" => array(
|
3282 |
-
"regular",
|
3283 |
-
),
|
3284 |
-
"Stardos Stencil" => array(
|
3285 |
-
"regular",
|
3286 |
-
"700",
|
3287 |
-
),
|
3288 |
-
"Stint Ultra Condensed" => array(
|
3289 |
-
"regular",
|
3290 |
-
),
|
3291 |
-
"Stint Ultra Expanded" => array(
|
3292 |
-
"regular",
|
3293 |
-
),
|
3294 |
-
"Stoke" => array(
|
3295 |
-
"300",
|
3296 |
-
"regular",
|
3297 |
-
),
|
3298 |
-
"Strait" => array(
|
3299 |
-
"regular",
|
3300 |
-
),
|
3301 |
-
"Sue Ellen Francisco" => array(
|
3302 |
-
"regular",
|
3303 |
-
),
|
3304 |
-
"Suez One" => array(
|
3305 |
-
"regular",
|
3306 |
-
),
|
3307 |
-
"Sumana" => array(
|
3308 |
-
"regular",
|
3309 |
-
"700",
|
3310 |
-
),
|
3311 |
-
"Sunshiney" => array(
|
3312 |
-
"regular",
|
3313 |
-
),
|
3314 |
-
"Supermercado One" => array(
|
3315 |
-
"regular",
|
3316 |
-
),
|
3317 |
-
"Sura" => array(
|
3318 |
-
"regular",
|
3319 |
-
"700",
|
3320 |
-
),
|
3321 |
-
"Suranna" => array(
|
3322 |
-
"regular",
|
3323 |
-
),
|
3324 |
-
"Suravaram" => array(
|
3325 |
-
"regular",
|
3326 |
-
),
|
3327 |
-
"Suwannaphum" => array(
|
3328 |
-
"regular",
|
3329 |
-
),
|
3330 |
-
"Swanky and Moo Moo" => array(
|
3331 |
-
"regular",
|
3332 |
-
),
|
3333 |
-
"Syncopate" => array(
|
3334 |
-
"regular",
|
3335 |
-
"700",
|
3336 |
-
),
|
3337 |
-
"Tangerine" => array(
|
3338 |
-
"regular",
|
3339 |
-
"700",
|
3340 |
-
),
|
3341 |
-
"Taprom" => array(
|
3342 |
-
"regular",
|
3343 |
-
),
|
3344 |
-
"Tauri" => array(
|
3345 |
-
"regular",
|
3346 |
-
),
|
3347 |
-
"Taviraj" => array(
|
3348 |
-
"100",
|
3349 |
-
"200",
|
3350 |
-
"300",
|
3351 |
-
"regular",
|
3352 |
-
"500",
|
3353 |
-
"600",
|
3354 |
-
"700",
|
3355 |
-
"800",
|
3356 |
-
"900",
|
3357 |
-
),
|
3358 |
-
"Teko" => array(
|
3359 |
-
"300",
|
3360 |
-
"regular",
|
3361 |
-
"500",
|
3362 |
-
"600",
|
3363 |
-
"700",
|
3364 |
-
),
|
3365 |
-
"Telex" => array(
|
3366 |
-
"regular",
|
3367 |
-
),
|
3368 |
-
"Tenali Ramakrishna" => array(
|
3369 |
-
"regular",
|
3370 |
-
),
|
3371 |
-
"Tenor Sans" => array(
|
3372 |
-
"regular",
|
3373 |
-
),
|
3374 |
-
"Text Me One" => array(
|
3375 |
-
"regular",
|
3376 |
-
),
|
3377 |
-
"The Girl Next Door" => array(
|
3378 |
-
"regular",
|
3379 |
-
),
|
3380 |
-
"Tienne" => array(
|
3381 |
-
"regular",
|
3382 |
-
"700",
|
3383 |
-
"900",
|
3384 |
-
),
|
3385 |
-
"Tillana" => array(
|
3386 |
-
"regular",
|
3387 |
-
"500",
|
3388 |
-
"600",
|
3389 |
-
"700",
|
3390 |
-
"800",
|
3391 |
-
),
|
3392 |
-
"Timmana" => array(
|
3393 |
-
"regular",
|
3394 |
-
),
|
3395 |
-
"Tinos" => array(
|
3396 |
-
"regular",
|
3397 |
-
"700",
|
3398 |
-
),
|
3399 |
-
"Titan One" => array(
|
3400 |
-
"regular",
|
3401 |
-
),
|
3402 |
-
"Titillium Web" => array(
|
3403 |
-
"200",
|
3404 |
-
"300",
|
3405 |
-
"regular",
|
3406 |
-
"600",
|
3407 |
-
"700",
|
3408 |
-
"900",
|
3409 |
-
),
|
3410 |
-
"Trade Winds" => array(
|
3411 |
-
"regular",
|
3412 |
-
),
|
3413 |
-
"Trirong" => array(
|
3414 |
-
"100",
|
3415 |
-
"200",
|
3416 |
-
"300",
|
3417 |
-
"regular",
|
3418 |
-
"500",
|
3419 |
-
"600",
|
3420 |
-
"700",
|
3421 |
-
"800",
|
3422 |
-
"900",
|
3423 |
-
),
|
3424 |
-
"Trocchi" => array(
|
3425 |
-
"regular",
|
3426 |
-
),
|
3427 |
-
"Trochut" => array(
|
3428 |
-
"regular",
|
3429 |
-
"700",
|
3430 |
-
),
|
3431 |
-
"Trykker" => array(
|
3432 |
-
"regular",
|
3433 |
-
),
|
3434 |
-
"Tulpen One" => array(
|
3435 |
-
"regular",
|
3436 |
-
),
|
3437 |
-
"Ubuntu" => array(
|
3438 |
-
"300",
|
3439 |
-
"regular",
|
3440 |
-
"500",
|
3441 |
-
"700",
|
3442 |
-
),
|
3443 |
-
"Ubuntu Condensed" => array(
|
3444 |
-
"regular",
|
3445 |
-
),
|
3446 |
-
"Ubuntu Mono" => array(
|
3447 |
-
"regular",
|
3448 |
-
"700",
|
3449 |
-
),
|
3450 |
-
"Ultra" => array(
|
3451 |
-
"regular",
|
3452 |
-
),
|
3453 |
-
"Uncial Antiqua" => array(
|
3454 |
-
"regular",
|
3455 |
-
),
|
3456 |
-
"Underdog" => array(
|
3457 |
-
"regular",
|
3458 |
-
),
|
3459 |
-
"Unica One" => array(
|
3460 |
-
"regular",
|
3461 |
-
),
|
3462 |
-
"UnifrakturCook" => array(
|
3463 |
-
"700",
|
3464 |
-
),
|
3465 |
-
"UnifrakturMaguntia" => array(
|
3466 |
-
"regular",
|
3467 |
-
),
|
3468 |
-
"Unkempt" => array(
|
3469 |
-
"regular",
|
3470 |
-
"700",
|
3471 |
-
),
|
3472 |
-
"Unlock" => array(
|
3473 |
-
"regular",
|
3474 |
-
),
|
3475 |
-
"Unna" => array(
|
3476 |
-
"regular",
|
3477 |
-
"700",
|
3478 |
-
),
|
3479 |
-
"VT323" => array(
|
3480 |
-
"regular",
|
3481 |
-
),
|
3482 |
-
"Vampiro One" => array(
|
3483 |
-
"regular",
|
3484 |
-
),
|
3485 |
-
"Varela" => array(
|
3486 |
-
"regular",
|
3487 |
-
),
|
3488 |
-
"Varela Round" => array(
|
3489 |
-
"regular",
|
3490 |
-
),
|
3491 |
-
"Vast Shadow" => array(
|
3492 |
-
"regular",
|
3493 |
-
),
|
3494 |
-
"Vesper Libre" => array(
|
3495 |
-
"regular",
|
3496 |
-
"500",
|
3497 |
-
"700",
|
3498 |
-
"900",
|
3499 |
-
),
|
3500 |
-
"Vibur" => array(
|
3501 |
-
"regular",
|
3502 |
-
),
|
3503 |
-
"Vidaloka" => array(
|
3504 |
-
"regular",
|
3505 |
-
),
|
3506 |
-
"Viga" => array(
|
3507 |
-
"regular",
|
3508 |
-
),
|
3509 |
-
"Voces" => array(
|
3510 |
-
"regular",
|
3511 |
-
),
|
3512 |
-
"Volkhov" => array(
|
3513 |
-
"regular",
|
3514 |
-
"700",
|
3515 |
-
),
|
3516 |
-
"Vollkorn" => array(
|
3517 |
-
"regular",
|
3518 |
-
"700",
|
3519 |
-
),
|
3520 |
-
"Voltaire" => array(
|
3521 |
-
"regular",
|
3522 |
-
),
|
3523 |
-
"Waiting for the Sunrise" => array(
|
3524 |
-
"regular",
|
3525 |
-
),
|
3526 |
-
"Wallpoet" => array(
|
3527 |
-
"regular",
|
3528 |
-
),
|
3529 |
-
"Walter Turncoat" => array(
|
3530 |
-
"regular",
|
3531 |
-
),
|
3532 |
-
"Warnes" => array(
|
3533 |
-
"regular",
|
3534 |
-
),
|
3535 |
-
"Wellfleet" => array(
|
3536 |
-
"regular",
|
3537 |
-
),
|
3538 |
-
"Wendy One" => array(
|
3539 |
-
"regular",
|
3540 |
-
),
|
3541 |
-
"Wire One" => array(
|
3542 |
-
"regular",
|
3543 |
-
),
|
3544 |
-
"Work Sans" => array(
|
3545 |
-
"100",
|
3546 |
-
"200",
|
3547 |
-
"300",
|
3548 |
-
"regular",
|
3549 |
-
"500",
|
3550 |
-
"600",
|
3551 |
-
"700",
|
3552 |
-
"800",
|
3553 |
-
"900",
|
3554 |
-
),
|
3555 |
-
"Yanone Kaffeesatz" => array(
|
3556 |
-
"200",
|
3557 |
-
"300",
|
3558 |
-
"regular",
|
3559 |
-
"700",
|
3560 |
-
),
|
3561 |
-
"Yantramanav" => array(
|
3562 |
-
"100",
|
3563 |
-
"300",
|
3564 |
-
"regular",
|
3565 |
-
"500",
|
3566 |
-
"700",
|
3567 |
-
"900",
|
3568 |
-
),
|
3569 |
-
"Yatra One" => array(
|
3570 |
-
"regular",
|
3571 |
-
),
|
3572 |
-
"Yellowtail" => array(
|
3573 |
-
"regular",
|
3574 |
-
),
|
3575 |
-
"Yeseva One" => array(
|
3576 |
-
"regular",
|
3577 |
-
),
|
3578 |
-
"Yesteryear" => array(
|
3579 |
-
"regular",
|
3580 |
-
),
|
3581 |
-
"Yrsa" => array(
|
3582 |
-
"300",
|
3583 |
-
"regular",
|
3584 |
-
"500",
|
3585 |
-
"600",
|
3586 |
-
"700",
|
3587 |
-
),
|
3588 |
-
"Zeyada" => array(
|
3589 |
-
"regular",
|
3590 |
-
),
|
3591 |
-
);
|
3592 |
-
// @codingStandardsIgnoreEnd
|
3593 |
}
|
31 |
static public function js() {
|
32 |
$default = json_encode( apply_filters( 'fl_builder_font_families_default', FLBuilderFontFamilies::$default ) );
|
33 |
$system = json_encode( apply_filters( 'fl_builder_font_families_system', FLBuilderFontFamilies::$system ) );
|
34 |
+
$google = json_encode( apply_filters( 'fl_builder_font_families_google', FLBuilderFontFamilies::google() ) );
|
35 |
|
36 |
echo 'var FLBuilderFontFamilies = { default: ' . $default . ', system: ' . $system . ', google: ' . $google . ' };';
|
37 |
}
|
45 |
*/
|
46 |
static public function display_select_font( $font ) {
|
47 |
$system_fonts = apply_filters( 'fl_builder_font_families_system', FLBuilderFontFamilies::$system );
|
48 |
+
$google_fonts = apply_filters( 'fl_builder_font_families_google', FLBuilderFontFamilies::google() );
|
49 |
|
50 |
echo '<option value="Default" ' . selected( 'Default', $font ) . '>' . __( 'Default', 'fl-builder' ) . '</option>';
|
51 |
echo '<optgroup label="System">';
|
74 |
echo '<option value="default">' . __( 'Default', 'fl-builder' ) . '</option>';
|
75 |
} else {
|
76 |
$system_fonts = apply_filters( 'fl_builder_font_families_system', FLBuilderFontFamilies::$system );
|
77 |
+
$google_fonts = apply_filters( 'fl_builder_font_families_google', FLBuilderFontFamilies::google() );
|
78 |
|
79 |
if ( array_key_exists( $font, $system_fonts ) ) {
|
80 |
foreach ( $system_fonts[ $font ]['weights'] as $variant ) {
|
371 |
*/
|
372 |
final class FLBuilderFontFamilies {
|
373 |
|
374 |
+
/**
|
375 |
+
* Parse fonts.json to get all possible Google fonts.
|
376 |
+
* @since 1.10.7
|
377 |
+
* @return array
|
378 |
+
*/
|
379 |
+
static function google() {
|
380 |
+
|
381 |
+
$fonts = array();
|
382 |
+
$json = (array) json_decode( file_get_contents( FL_BUILDER_DIR . 'json/fonts.json' ), true );
|
383 |
+
|
384 |
+
foreach ( $json as $k => $font ) {
|
385 |
+
|
386 |
+
$name = key( $font );
|
387 |
+
|
388 |
+
foreach ( $font[ $name ] as $key => $variant ) {
|
389 |
+
if ( stristr( $variant, 'italic' ) ) {
|
390 |
+
unset( $font[ $name ][ $key ] );
|
391 |
+
}
|
392 |
+
if ( 'regular' == $variant ) {
|
393 |
+
$font[ $name ][ $key ] = '400';
|
394 |
+
}
|
395 |
+
}
|
396 |
+
|
397 |
+
$fonts[ $name ] = $font[ $name ];
|
398 |
+
}
|
399 |
+
return $fonts;
|
400 |
+
}
|
401 |
+
|
402 |
static public $default = array(
|
403 |
'Default' => array(
|
404 |
'default'
|
460 |
),
|
461 |
);
|
462 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
}
|
classes/class-fl-builder-icons.php
CHANGED
@@ -150,6 +150,11 @@ final class FLBuilderIcons {
|
|
150 |
}
|
151 |
}
|
152 |
|
|
|
|
|
|
|
|
|
|
|
153 |
// Loop through core sets and add icons.
|
154 |
foreach ( self::$sets as $set_key => $set_data ) {
|
155 |
if ( 'core' == $set_data['type'] ) {
|
150 |
}
|
151 |
}
|
152 |
|
153 |
+
// if there are no registered sets stop here.
|
154 |
+
if ( ! is_array( self::$sets ) ) {
|
155 |
+
return;
|
156 |
+
}
|
157 |
+
|
158 |
// Loop through core sets and add icons.
|
159 |
foreach ( self::$sets as $set_key => $set_data ) {
|
160 |
if ( 'core' == $set_data['type'] ) {
|
classes/class-fl-builder-loader.php
CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
|
|
43 |
* @return void
|
44 |
*/
|
45 |
static private function define_constants() {
|
46 |
-
define( 'FL_BUILDER_VERSION', '1.10.
|
47 |
define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
|
48 |
define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
|
49 |
define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
|
@@ -75,6 +75,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
|
|
75 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-export.php';
|
76 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-extensions.php';
|
77 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-fonts.php';
|
|
|
78 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-icons.php';
|
79 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-import.php';
|
80 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-loop.php';
|
43 |
* @return void
|
44 |
*/
|
45 |
static private function define_constants() {
|
46 |
+
define( 'FL_BUILDER_VERSION', '1.10.8.3' );
|
47 |
define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
|
48 |
define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
|
49 |
define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
|
75 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-export.php';
|
76 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-extensions.php';
|
77 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-fonts.php';
|
78 |
+
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-debug.php';
|
79 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-icons.php';
|
80 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-import.php';
|
81 |
require_once FL_BUILDER_DIR . 'classes/class-fl-builder-loop.php';
|
classes/class-fl-builder-model.php
CHANGED
@@ -207,7 +207,11 @@ final class FLBuilderModel {
|
|
207 |
$post = get_post( $post_id );
|
208 |
}
|
209 |
|
210 |
-
|
|
|
|
|
|
|
|
|
211 |
}
|
212 |
|
213 |
/**
|
@@ -1400,6 +1404,8 @@ final class FLBuilderModel {
|
|
1400 |
if ( 'module' == $node->type && isset( self::$modules[ $node->settings->type ] ) ) {
|
1401 |
$class = get_class( self::$modules[ $node->settings->type ] );
|
1402 |
$instance = new $class();
|
|
|
|
|
1403 |
$instance->settings = $node->settings;
|
1404 |
$instance->delete();
|
1405 |
$instance->remove();
|
@@ -2844,12 +2850,13 @@ final class FLBuilderModel {
|
|
2844 |
*/
|
2845 |
static public function process_module_settings( $module, $new_settings ) {
|
2846 |
// Get a new node instance to work with.
|
2847 |
-
$class
|
2848 |
-
$instance
|
2849 |
-
$instance->node
|
|
|
|
|
2850 |
|
2851 |
// Run node delete to clear any cache.
|
2852 |
-
$instance->settings = $module->settings;
|
2853 |
$instance->delete();
|
2854 |
|
2855 |
// Run node update.
|
@@ -2918,12 +2925,13 @@ final class FLBuilderModel {
|
|
2918 |
$widgets = array();
|
2919 |
|
2920 |
// These are known widgets that won't work in the builder.
|
2921 |
-
$exclude = array(
|
2922 |
'WP_Widget_Media_Audio',
|
2923 |
'WP_Widget_Media_Image',
|
2924 |
'WP_Widget_Media_Video',
|
2925 |
'WP_Widget_Text',
|
2926 |
-
|
|
|
2927 |
|
2928 |
foreach ( $wp_widget_factory->widgets as $class => $widget ) {
|
2929 |
if ( in_array( $class, $exclude ) ) {
|
207 |
$post = get_post( $post_id );
|
208 |
}
|
209 |
|
210 |
+
preg_match( '/(https?)/', get_bloginfo( 'url' ), $matches );
|
211 |
+
|
212 |
+
$scheme = ( isset( $matches[1] ) ) ? $matches[1] : false;
|
213 |
+
|
214 |
+
return set_url_scheme( add_query_arg( 'fl_builder', '', get_permalink( $post->ID ) ), $scheme );
|
215 |
}
|
216 |
|
217 |
/**
|
1404 |
if ( 'module' == $node->type && isset( self::$modules[ $node->settings->type ] ) ) {
|
1405 |
$class = get_class( self::$modules[ $node->settings->type ] );
|
1406 |
$instance = new $class();
|
1407 |
+
$instance->node = $node->node;
|
1408 |
+
$instance->parent = $node->parent;
|
1409 |
$instance->settings = $node->settings;
|
1410 |
$instance->delete();
|
1411 |
$instance->remove();
|
2850 |
*/
|
2851 |
static public function process_module_settings( $module, $new_settings ) {
|
2852 |
// Get a new node instance to work with.
|
2853 |
+
$class = get_class( self::$modules[ $module->settings->type ] );
|
2854 |
+
$instance = new $class();
|
2855 |
+
$instance->node = $module->node;
|
2856 |
+
$instance->parent = $module->parent;
|
2857 |
+
$instance->settings = $module->settings;
|
2858 |
|
2859 |
// Run node delete to clear any cache.
|
|
|
2860 |
$instance->delete();
|
2861 |
|
2862 |
// Run node update.
|
2925 |
$widgets = array();
|
2926 |
|
2927 |
// These are known widgets that won't work in the builder.
|
2928 |
+
$exclude = apply_filters( 'fl_get_wp_widgets_exclude', array(
|
2929 |
'WP_Widget_Media_Audio',
|
2930 |
'WP_Widget_Media_Image',
|
2931 |
'WP_Widget_Media_Video',
|
2932 |
'WP_Widget_Text',
|
2933 |
+
'WP_Widget_Custom_HTML',
|
2934 |
+
) );
|
2935 |
|
2936 |
foreach ( $wp_widget_factory->widgets as $class => $widget ) {
|
2937 |
if ( in_array( $class, $exclude ) ) {
|
classes/class-fl-builder-photo.php
CHANGED
@@ -99,19 +99,13 @@ final class FLBuilderPhoto {
|
|
99 |
'thumbnail' => _x( 'Thumbnail', 'Image size.', 'fl-builder' ),
|
100 |
);
|
101 |
|
102 |
-
// Check the selected value without the protocol so we get a match if
|
103 |
-
// a site has switched to HTTPS since selecting this photo (#641).
|
104 |
-
$selected = str_replace( array( 'http://', 'https://' ), '', $selected );
|
105 |
-
|
106 |
foreach ( $photo->sizes as $key => $val ) {
|
107 |
|
108 |
if ( ! isset( $titles[ $key ] ) ) {
|
109 |
$titles[ $key ] = ucwords( str_replace( array( '_', '-' ), ' ', $key ) );
|
110 |
}
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
echo '<option value="' . $val->url . '" ' . selected( $selected, $check ) . '>' . $titles[ $key ] . ' - ' . $val->width . ' x ' . $val->height . '</option>';
|
115 |
}
|
116 |
}
|
117 |
}
|
99 |
'thumbnail' => _x( 'Thumbnail', 'Image size.', 'fl-builder' ),
|
100 |
);
|
101 |
|
|
|
|
|
|
|
|
|
102 |
foreach ( $photo->sizes as $key => $val ) {
|
103 |
|
104 |
if ( ! isset( $titles[ $key ] ) ) {
|
105 |
$titles[ $key ] = ucwords( str_replace( array( '_', '-' ), ' ', $key ) );
|
106 |
}
|
107 |
|
108 |
+
echo '<option value="' . $val->url . '" ' . selected( basename( $selected ), basename( $val->url ) ) . '>' . $titles[ $key ] . ' - ' . $val->width . ' x ' . $val->height . '</option>';
|
|
|
|
|
109 |
}
|
110 |
}
|
111 |
}
|
classes/class-fl-builder-service-sendinblue.php
CHANGED
@@ -33,11 +33,11 @@ final class FLBuilderServiceSendinBlue extends FLBuilderService {
|
|
33 |
if ( $this->api_instance ) {
|
34 |
return $this->api_instance;
|
35 |
}
|
36 |
-
if ( ! class_exists( '
|
37 |
require_once FL_BUILDER_DIR . 'includes/vendor/sendinblue/Mailin.php';
|
38 |
}
|
39 |
|
40 |
-
$this->api_instance = new
|
41 |
|
42 |
return $this->api_instance;
|
43 |
}
|
33 |
if ( $this->api_instance ) {
|
34 |
return $this->api_instance;
|
35 |
}
|
36 |
+
if ( ! class_exists( 'Mailin_Rest' ) ) {
|
37 |
require_once FL_BUILDER_DIR . 'includes/vendor/sendinblue/Mailin.php';
|
38 |
}
|
39 |
|
40 |
+
$this->api_instance = new Mailin_Rest( 'https://api.sendinblue.com/v2.0', $access_key );
|
41 |
|
42 |
return $this->api_instance;
|
43 |
}
|
classes/class-fl-builder.php
CHANGED
@@ -51,7 +51,7 @@ final class FLBuilder {
|
|
51 |
add_action( 'wp_enqueue_scripts', __CLASS__ . '::register_layout_styles_scripts' );
|
52 |
add_action( 'wp_enqueue_scripts', __CLASS__ . '::enqueue_ui_styles_scripts', 11 );
|
53 |
add_action( 'wp_enqueue_scripts', __CLASS__ . '::enqueue_all_layouts_styles_scripts' );
|
54 |
-
add_action( 'wp_head',
|
55 |
add_action( 'admin_bar_menu', __CLASS__ . '::admin_bar_menu', 999 );
|
56 |
add_action( 'wp_footer', __CLASS__ . '::include_jquery' );
|
57 |
add_action( 'wp_footer', __CLASS__ . '::render_ui' );
|
@@ -68,6 +68,7 @@ final class FLBuilder {
|
|
68 |
add_filter( 'mce_external_plugins', __CLASS__ . '::editor_external_plugins', 9999 );
|
69 |
add_filter( 'tiny_mce_before_init', __CLASS__ . '::editor_font_sizes' );
|
70 |
add_filter( 'the_content', __CLASS__ . '::render_content' );
|
|
|
71 |
}
|
72 |
|
73 |
/**
|
@@ -2771,6 +2772,43 @@ final class FLBuilder {
|
|
2771 |
}
|
2772 |
}
|
2773 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2774 |
/**
|
2775 |
* @since 1.0
|
2776 |
* @deprecated 1.7.4
|
51 |
add_action( 'wp_enqueue_scripts', __CLASS__ . '::register_layout_styles_scripts' );
|
52 |
add_action( 'wp_enqueue_scripts', __CLASS__ . '::enqueue_ui_styles_scripts', 11 );
|
53 |
add_action( 'wp_enqueue_scripts', __CLASS__ . '::enqueue_all_layouts_styles_scripts' );
|
54 |
+
add_action( 'wp_head', __CLASS__ . '::render_custom_css_for_editing', 999 );
|
55 |
add_action( 'admin_bar_menu', __CLASS__ . '::admin_bar_menu', 999 );
|
56 |
add_action( 'wp_footer', __CLASS__ . '::include_jquery' );
|
57 |
add_action( 'wp_footer', __CLASS__ . '::render_ui' );
|
68 |
add_filter( 'mce_external_plugins', __CLASS__ . '::editor_external_plugins', 9999 );
|
69 |
add_filter( 'tiny_mce_before_init', __CLASS__ . '::editor_font_sizes' );
|
70 |
add_filter( 'the_content', __CLASS__ . '::render_content' );
|
71 |
+
add_filter( 'wp_handle_upload_prefilter', __CLASS__ . '::wp_handle_upload_prefilter_filter' );
|
72 |
}
|
73 |
|
74 |
/**
|
2772 |
}
|
2773 |
}
|
2774 |
|
2775 |
+
/**
|
2776 |
+
* Filter WP uploads and check filetype is valid for photo and video modules.
|
2777 |
+
* @since 1.10.8
|
2778 |
+
*/
|
2779 |
+
static public function wp_handle_upload_prefilter_filter( $file ) {
|
2780 |
+
|
2781 |
+
$type = isset( $_POST['fl_upload_type'] ) ? $_POST['fl_upload_type'] : false;
|
2782 |
+
|
2783 |
+
$ext = pathinfo( $file['name'], PATHINFO_EXTENSION );
|
2784 |
+
|
2785 |
+
$regex = array(
|
2786 |
+
'photo' => '#(jpe?g|png|gif|bmp|tiff?)#i',
|
2787 |
+
'video' => '#(mp4|m4v|webm)#i',
|
2788 |
+
);
|
2789 |
+
|
2790 |
+
if ( ! $type ) {
|
2791 |
+
return $file;
|
2792 |
+
}
|
2793 |
+
|
2794 |
+
$regex = apply_filters( 'fl_module_upload_regex', $regex, $type, $ext, $file );
|
2795 |
+
|
2796 |
+
if ( ! preg_match( $regex[ $type ], $ext ) ) {
|
2797 |
+
$file['error'] = sprintf( __( 'The uploaded file is not a valid %s extension.', 'fl-builder' ), $type );
|
2798 |
+
}
|
2799 |
+
|
2800 |
+
return $file;
|
2801 |
+
}
|
2802 |
+
|
2803 |
+
/**
|
2804 |
+
* Default HTML for no image.
|
2805 |
+
* @since 1.10.8
|
2806 |
+
* @return string
|
2807 |
+
*/
|
2808 |
+
static public function default_image_html( $classes ) {
|
2809 |
+
return sprintf( '<img src="%s" class="%s" />', FL_BUILDER_URL . 'img/no-image.png', $classes );
|
2810 |
+
}
|
2811 |
+
|
2812 |
/**
|
2813 |
* @since 1.0
|
2814 |
* @deprecated 1.7.4
|
css/fl-builder-layout.css
CHANGED
@@ -174,9 +174,9 @@
|
|
174 |
display: -webkit-box;
|
175 |
display: -webkit-flex;
|
176 |
display: -ms-flexbox;
|
177 |
-
display: flex;
|
178 |
min-height: 100vh;
|
179 |
-
|
180 |
}
|
181 |
.fl-row-full-height .fl-row-content {
|
182 |
-webkit-box-flex: 1 1 auto;
|
@@ -213,7 +213,7 @@
|
|
213 |
margin: 0 auto;
|
214 |
}
|
215 |
|
216 |
-
.fl-builder-ie-11 .fl-row-full-height.fl-row-align-center .fl-col-group:not(.fl-col-group-equal-height) {
|
217 |
display: flex;
|
218 |
align-items: center;
|
219 |
justify-content: center;
|
@@ -384,7 +384,7 @@
|
|
384 |
|
385 |
.fl-module img {
|
386 |
max-width: 100%;
|
387 |
-
}
|
388 |
|
389 |
/* Module Templates
|
390 |
------------------------------------------------------ */
|
@@ -552,7 +552,8 @@
|
|
552 |
/* Pagination
|
553 |
------------------------------------------------------ */
|
554 |
|
555 |
-
.fl-builder-pagination
|
|
|
556 |
padding: 40px 0;
|
557 |
}
|
558 |
.fl-builder-pagination ul.page-numbers {
|
@@ -616,8 +617,8 @@
|
|
616 |
------------------------------------------------------ */
|
617 |
|
618 |
.mfp-wrap button.mfp-arrow,
|
619 |
-
.mfp-wrap button.mfp-arrow:active,
|
620 |
-
.mfp-wrap button.mfp-arrow:hover,
|
621 |
.mfp-wrap button.mfp-arrow:focus {
|
622 |
background: transparent !important;
|
623 |
border: none !important;
|
@@ -699,15 +700,15 @@ img.mfp-img {
|
|
699 |
}
|
700 |
@keyframes fl-fade-in {
|
701 |
0% { opacity: 0; }
|
702 |
-
100% { opacity: 1; }
|
703 |
}
|
704 |
@-webkit-keyframes fl-fade-in {
|
705 |
0% { opacity: 0; }
|
706 |
-
100% { opacity: 1; }
|
707 |
}
|
708 |
@-moz-keyframes fl-fade-in {
|
709 |
0% { opacity: 0; }
|
710 |
-
100% { opacity: 1; }
|
711 |
}
|
712 |
|
713 |
/* Slide Left */
|
@@ -717,15 +718,15 @@ img.mfp-img {
|
|
717 |
-moz-animation: fl-slide-left 1s ease-out;
|
718 |
}
|
719 |
@keyframes fl-slide-left {
|
720 |
-
0% { opacity: 0; transform: translateX(10%); }
|
721 |
100% { opacity: 1; transform: translateX(0%); }
|
722 |
}
|
723 |
@-webkit-keyframes fl-slide-left {
|
724 |
-
0% { opacity: 0; -webkit-transform: translateX(10%); }
|
725 |
100% { opacity: 1; -webkit-transform: translateX(0%); }
|
726 |
}
|
727 |
@-moz-keyframes fl-slide-left {
|
728 |
-
0% { opacity: 0; -moz-transform: translateX(10%); }
|
729 |
100% { opacity: 1; -moz-transform: translateX(0%); }
|
730 |
}
|
731 |
|
@@ -736,15 +737,15 @@ img.mfp-img {
|
|
736 |
-moz-animation: fl-slide-right 1s ease-out;
|
737 |
}
|
738 |
@keyframes fl-slide-right {
|
739 |
-
0% { opacity: 0; transform: translateX(-10%); }
|
740 |
100% { opacity: 1; transform: translateX(0%); }
|
741 |
}
|
742 |
@-webkit-keyframes fl-slide-right {
|
743 |
-
0% { opacity: 0; -webkit-transform: translateX(-10%); }
|
744 |
100% { opacity: 1; -webkit-transform: translateX(0%); }
|
745 |
}
|
746 |
@-moz-keyframes fl-slide-right {
|
747 |
-
0% { opacity: 0; -moz-transform: translateX(-10%); }
|
748 |
100% { opacity: 1; -moz-transform: translateX(0%); }
|
749 |
}
|
750 |
|
@@ -755,15 +756,15 @@ img.mfp-img {
|
|
755 |
-moz-animation: fl-slide-up 1s ease-out;
|
756 |
}
|
757 |
@keyframes fl-slide-up {
|
758 |
-
0% { opacity: 0; transform: translateY(10%); }
|
759 |
100% { opacity: 1; transform: translateY(0%); }
|
760 |
}
|
761 |
@-webkit-keyframes fl-slide-up {
|
762 |
-
0% { opacity: 0; -webkit-transform: translateY(10%); }
|
763 |
100% { opacity: 1; -webkit-transform: translateY(0%); }
|
764 |
}
|
765 |
@-moz-keyframes fl-slide-up {
|
766 |
-
0% { opacity: 0; -moz-transform: translateY(10%); }
|
767 |
100% { opacity: 1; -moz-transform: translateY(0%); }
|
768 |
}
|
769 |
|
@@ -774,15 +775,15 @@ img.mfp-img {
|
|
774 |
-moz-animation: fl-slide-down 1s ease-out;
|
775 |
}
|
776 |
@keyframes fl-slide-down {
|
777 |
-
0% { opacity: 0; transform: translateY(-10%); }
|
778 |
100% { opacity: 1; transform: translateY(0%); }
|
779 |
}
|
780 |
@-webkit-keyframes fl-slide-down {
|
781 |
-
0% { opacity: 0; -webkit-transform: translateY(-10%); }
|
782 |
100% { opacity: 1; -webkit-transform: translateY(0%); }
|
783 |
}
|
784 |
@-moz-keyframes fl-slide-down {
|
785 |
-
0% { opacity: 0; -moz-transform: translateY(-10%); }
|
786 |
100% { opacity: 1; -moz-transform: translateY(0%); }
|
787 |
}
|
788 |
|
174 |
display: -webkit-box;
|
175 |
display: -webkit-flex;
|
176 |
display: -ms-flexbox;
|
177 |
+
display: flex;
|
178 |
min-height: 100vh;
|
179 |
+
|
180 |
}
|
181 |
.fl-row-full-height .fl-row-content {
|
182 |
-webkit-box-flex: 1 1 auto;
|
213 |
margin: 0 auto;
|
214 |
}
|
215 |
|
216 |
+
.fl-builder-ie-11 .fl-row-full-height.fl-row-align-center .fl-col-group:not(.fl-col-group-equal-height) {
|
217 |
display: flex;
|
218 |
align-items: center;
|
219 |
justify-content: center;
|
384 |
|
385 |
.fl-module img {
|
386 |
max-width: 100%;
|
387 |
+
}
|
388 |
|
389 |
/* Module Templates
|
390 |
------------------------------------------------------ */
|
552 |
/* Pagination
|
553 |
------------------------------------------------------ */
|
554 |
|
555 |
+
.fl-builder-pagination,
|
556 |
+
.fl-builder-pagination-load-more {
|
557 |
padding: 40px 0;
|
558 |
}
|
559 |
.fl-builder-pagination ul.page-numbers {
|
617 |
------------------------------------------------------ */
|
618 |
|
619 |
.mfp-wrap button.mfp-arrow,
|
620 |
+
.mfp-wrap button.mfp-arrow:active,
|
621 |
+
.mfp-wrap button.mfp-arrow:hover,
|
622 |
.mfp-wrap button.mfp-arrow:focus {
|
623 |
background: transparent !important;
|
624 |
border: none !important;
|
700 |
}
|
701 |
@keyframes fl-fade-in {
|
702 |
0% { opacity: 0; }
|
703 |
+
100% { opacity: 1; }
|
704 |
}
|
705 |
@-webkit-keyframes fl-fade-in {
|
706 |
0% { opacity: 0; }
|
707 |
+
100% { opacity: 1; }
|
708 |
}
|
709 |
@-moz-keyframes fl-fade-in {
|
710 |
0% { opacity: 0; }
|
711 |
+
100% { opacity: 1; }
|
712 |
}
|
713 |
|
714 |
/* Slide Left */
|
718 |
-moz-animation: fl-slide-left 1s ease-out;
|
719 |
}
|
720 |
@keyframes fl-slide-left {
|
721 |
+
0% { opacity: 0; transform: translateX(10%); }
|
722 |
100% { opacity: 1; transform: translateX(0%); }
|
723 |
}
|
724 |
@-webkit-keyframes fl-slide-left {
|
725 |
+
0% { opacity: 0; -webkit-transform: translateX(10%); }
|
726 |
100% { opacity: 1; -webkit-transform: translateX(0%); }
|
727 |
}
|
728 |
@-moz-keyframes fl-slide-left {
|
729 |
+
0% { opacity: 0; -moz-transform: translateX(10%); }
|
730 |
100% { opacity: 1; -moz-transform: translateX(0%); }
|
731 |
}
|
732 |
|
737 |
-moz-animation: fl-slide-right 1s ease-out;
|
738 |
}
|
739 |
@keyframes fl-slide-right {
|
740 |
+
0% { opacity: 0; transform: translateX(-10%); }
|
741 |
100% { opacity: 1; transform: translateX(0%); }
|
742 |
}
|
743 |
@-webkit-keyframes fl-slide-right {
|
744 |
+
0% { opacity: 0; -webkit-transform: translateX(-10%); }
|
745 |
100% { opacity: 1; -webkit-transform: translateX(0%); }
|
746 |
}
|
747 |
@-moz-keyframes fl-slide-right {
|
748 |
+
0% { opacity: 0; -moz-transform: translateX(-10%); }
|
749 |
100% { opacity: 1; -moz-transform: translateX(0%); }
|
750 |
}
|
751 |
|
756 |
-moz-animation: fl-slide-up 1s ease-out;
|
757 |
}
|
758 |
@keyframes fl-slide-up {
|
759 |
+
0% { opacity: 0; transform: translateY(10%); }
|
760 |
100% { opacity: 1; transform: translateY(0%); }
|
761 |
}
|
762 |
@-webkit-keyframes fl-slide-up {
|
763 |
+
0% { opacity: 0; -webkit-transform: translateY(10%); }
|
764 |
100% { opacity: 1; -webkit-transform: translateY(0%); }
|
765 |
}
|
766 |
@-moz-keyframes fl-slide-up {
|
767 |
+
0% { opacity: 0; -moz-transform: translateY(10%); }
|
768 |
100% { opacity: 1; -moz-transform: translateY(0%); }
|
769 |
}
|
770 |
|
775 |
-moz-animation: fl-slide-down 1s ease-out;
|
776 |
}
|
777 |
@keyframes fl-slide-down {
|
778 |
+
0% { opacity: 0; transform: translateY(-10%); }
|
779 |
100% { opacity: 1; transform: translateY(0%); }
|
780 |
}
|
781 |
@-webkit-keyframes fl-slide-down {
|
782 |
+
0% { opacity: 0; -webkit-transform: translateY(-10%); }
|
783 |
100% { opacity: 1; -webkit-transform: translateY(0%); }
|
784 |
}
|
785 |
@-moz-keyframes fl-slide-down {
|
786 |
+
0% { opacity: 0; -moz-transform: translateY(-10%); }
|
787 |
100% { opacity: 1; -moz-transform: translateY(0%); }
|
788 |
}
|
789 |
|
fl-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Beaver Builder Plugin (Lite Version)
|
4 |
* Plugin URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-uri
|
5 |
* Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
|
6 |
-
* Version: 1.10.
|
7 |
* Author: The Beaver Builder Team
|
8 |
* Author URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-author
|
9 |
* Copyright: (c) 2014 Beaver Builder
|
3 |
* Plugin Name: Beaver Builder Plugin (Lite Version)
|
4 |
* Plugin URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-uri
|
5 |
* Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
|
6 |
+
* Version: 1.10.8.3
|
7 |
* Author: The Beaver Builder Team
|
8 |
* Author URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-author
|
9 |
* Copyright: (c) 2014 Beaver Builder
|
img/no-image.png
ADDED
Binary file
|
includes/admin-settings-tools.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
<h3 class="fl-settings-form-header"><?php _e( 'Cache', 'fl-builder' ); ?></h3>
|
4 |
|
5 |
-
<form id="cache-form" action="<?php FLBuilderAdminSettings::render_form_action( '
|
6 |
<div class="fl-settings-form-content">
|
7 |
<p><?php _e( 'A CSS and JavaScript file is dynamically generated and cached each time you create a new layout. Sometimes the cache needs to be refreshed when you migrate your site to another server or update to the latest version. If you are running into any issues, please try clearing the cache by clicking the button below.', 'fl-builder' ); ?></p>
|
8 |
<?php if ( is_network_admin() ) : ?>
|
@@ -10,7 +10,7 @@
|
|
10 |
<?php elseif ( ! is_network_admin() && is_multisite() ) : ?>
|
11 |
<p><strong><?php _e( 'NOTE:', 'fl-builder' ); ?></strong> <?php _e( 'This only applies to this site. Please visit the Network Admin Settings to clear the cache for all sites on the network.', 'fl-builder' ); ?></p>
|
12 |
<?php endif; ?>
|
13 |
-
|
14 |
</div>
|
15 |
<p class="submit">
|
16 |
<input type="submit" name="update" class="button-primary" value="<?php esc_attr_e( 'Clear Cache', 'fl-builder' ); ?>" />
|
@@ -18,10 +18,37 @@
|
|
18 |
</p>
|
19 |
</form>
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
<?php if ( is_network_admin() || ! self::multisite_support() ) : ?>
|
22 |
-
|
23 |
<hr />
|
24 |
-
|
25 |
<h3 class="fl-settings-form-header"><?php _e( 'Uninstall', 'fl-builder' ); ?></h3>
|
26 |
|
27 |
<div class="fl-settings-form-content">
|
@@ -30,14 +57,14 @@
|
|
30 |
<?php if ( is_multisite() ) : ?>
|
31 |
<p><strong><?php _e( 'NOTE:', 'fl-builder' ); ?></strong> <?php _e( 'This applies to all sites on the network.', 'fl-builder' ); ?></p>
|
32 |
<?php endif; ?>
|
33 |
-
<form id="uninstall-form" action="<?php FLBuilderAdminSettings::render_form_action( '
|
34 |
<p class="submit">
|
35 |
<input type="submit" name="uninstall-submit" class="button button-primary" value="<?php _e( 'Uninstall', 'fl-builder' ); ?>">
|
36 |
<?php wp_nonce_field( 'uninstall', 'fl-uninstall' ); ?>
|
37 |
</p>
|
38 |
</form>
|
39 |
</div>
|
40 |
-
|
41 |
<?php endif; ?>
|
42 |
|
43 |
</div>
|
2 |
|
3 |
<h3 class="fl-settings-form-header"><?php _e( 'Cache', 'fl-builder' ); ?></h3>
|
4 |
|
5 |
+
<form id="cache-form" action="<?php FLBuilderAdminSettings::render_form_action( 'tools' ); ?>" method="post">
|
6 |
<div class="fl-settings-form-content">
|
7 |
<p><?php _e( 'A CSS and JavaScript file is dynamically generated and cached each time you create a new layout. Sometimes the cache needs to be refreshed when you migrate your site to another server or update to the latest version. If you are running into any issues, please try clearing the cache by clicking the button below.', 'fl-builder' ); ?></p>
|
8 |
<?php if ( is_network_admin() ) : ?>
|
10 |
<?php elseif ( ! is_network_admin() && is_multisite() ) : ?>
|
11 |
<p><strong><?php _e( 'NOTE:', 'fl-builder' ); ?></strong> <?php _e( 'This only applies to this site. Please visit the Network Admin Settings to clear the cache for all sites on the network.', 'fl-builder' ); ?></p>
|
12 |
<?php endif; ?>
|
13 |
+
|
14 |
</div>
|
15 |
<p class="submit">
|
16 |
<input type="submit" name="update" class="button-primary" value="<?php esc_attr_e( 'Clear Cache', 'fl-builder' ); ?>" />
|
18 |
</p>
|
19 |
</form>
|
20 |
|
21 |
+
<hr />
|
22 |
+
<?php $debug = get_option( 'fl_debug_mode', false ); ?>
|
23 |
+
<?php $header = ( $debug ) ? __( 'Debug Mode Enabled', 'fl-builder' ) : __( 'Debug Mode Disabled', 'fl-builder' ); ?>
|
24 |
+
<h3 class="fl-settings-form-header"><?php echo $header ?></h3>
|
25 |
+
|
26 |
+
<form id="cache-form" action="<?php FLBuilderAdminSettings::render_form_action( 'tools' ); ?>" method="post">
|
27 |
+
<div class="fl-settings-form-content">
|
28 |
+
<?php if ( ! $debug ) : ?>
|
29 |
+
<p><?php _e( 'Enable debug mode to generate a unique support url.', 'fl-builder' ); ?></p>
|
30 |
+
<?php else : ?>
|
31 |
+
<p><?php _e( 'Copy this unique support URL and send it to Support as directed.', 'fl-builder' ); ?></p>
|
32 |
+
<?php endif; ?>
|
33 |
+
<?php if ( $debug ) :
|
34 |
+
$url = add_query_arg( array(
|
35 |
+
'fldebug' => $debug,
|
36 |
+
), site_url() );
|
37 |
+
?>
|
38 |
+
<p><?php printf( '<code>%s</code>', $url ); ?></p>
|
39 |
+
|
40 |
+
<?php endif; ?>
|
41 |
+
</div>
|
42 |
+
<p class="submit">
|
43 |
+
<input type="submit" name="update" class="button-primary" value="<?php echo ( $debug ) ? esc_attr__( 'Disable Debug Mode', 'fl-builder' ) : esc_attr__( 'Enable Debug Mode', 'fl-builder' ); ?>" />
|
44 |
+
<?php wp_nonce_field( 'debug', 'fl-debug-nonce' ); ?>
|
45 |
+
</p>
|
46 |
+
</form>
|
47 |
+
|
48 |
<?php if ( is_network_admin() || ! self::multisite_support() ) : ?>
|
49 |
+
|
50 |
<hr />
|
51 |
+
|
52 |
<h3 class="fl-settings-form-header"><?php _e( 'Uninstall', 'fl-builder' ); ?></h3>
|
53 |
|
54 |
<div class="fl-settings-form-content">
|
57 |
<?php if ( is_multisite() ) : ?>
|
58 |
<p><strong><?php _e( 'NOTE:', 'fl-builder' ); ?></strong> <?php _e( 'This applies to all sites on the network.', 'fl-builder' ); ?></p>
|
59 |
<?php endif; ?>
|
60 |
+
<form id="uninstall-form" action="<?php FLBuilderAdminSettings::render_form_action( 'tools' ); ?>" method="post">
|
61 |
<p class="submit">
|
62 |
<input type="submit" name="uninstall-submit" class="button button-primary" value="<?php _e( 'Uninstall', 'fl-builder' ); ?>">
|
63 |
<?php wp_nonce_field( 'uninstall', 'fl-uninstall' ); ?>
|
64 |
</p>
|
65 |
</form>
|
66 |
</div>
|
67 |
+
|
68 |
<?php endif; ?>
|
69 |
|
70 |
</div>
|
includes/admin-settings-upgrade.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
|
17 |
<p><?php _e( 'Come by the Beaver Builder Homepage to learn more about what our premium features can do for you!', 'fl-builder' ); ?></p>
|
18 |
|
19 |
-
<input type="button" class="button button-primary" value="<?php _e( 'Learn More', 'fl-builder' ); ?>" onclick="window.open('<?php echo FLBuilderModel::
|
20 |
'utm_medium' => 'bb-lite',
|
21 |
'utm_source' => 'upgrade-settings-page',
|
22 |
'utm_campaign' => 'settings-upgrade-button',
|
16 |
|
17 |
<p><?php _e( 'Come by the Beaver Builder Homepage to learn more about what our premium features can do for you!', 'fl-builder' ); ?></p>
|
18 |
|
19 |
+
<input type="button" class="button button-primary" value="<?php _e( 'Learn More', 'fl-builder' ); ?>" onclick="window.open('<?php echo FLBuilderModel::get_upgrade_url( array(
|
20 |
'utm_medium' => 'bb-lite',
|
21 |
'utm_source' => 'upgrade-settings-page',
|
22 |
'utm_campaign' => 'settings-upgrade-button',
|
includes/admin-settings-welcome.php
CHANGED
@@ -10,7 +10,7 @@ function fl_welcome_utm( $campaign ) {
|
|
10 |
|
11 |
$blog_post_url = FLBuilderModel::get_store_url( 'beaver-builder-1-9-shasta', fl_welcome_utm( 'settings-welcome-blog-post' ) );
|
12 |
$change_logs_url = FLBuilderModel::get_store_url( 'change-logs', fl_welcome_utm( 'settings-welcome-change-logs' ) );
|
13 |
-
$upgrade_url = FLBuilderModel::
|
14 |
$support_url = FLBuilderModel::get_store_url( 'beaver-builder-support', fl_welcome_utm( 'settings-welcome-support' ) );
|
15 |
$faqs_url = FLBuilderModel::get_store_url( 'frequently-asked-questions', fl_welcome_utm( 'settings-welcome-faqs' ) );
|
16 |
$forums_url = FLBuilderModel::get_store_url( 'support', fl_welcome_utm( 'settings-welcome-forums' ) );
|
10 |
|
11 |
$blog_post_url = FLBuilderModel::get_store_url( 'beaver-builder-1-9-shasta', fl_welcome_utm( 'settings-welcome-blog-post' ) );
|
12 |
$change_logs_url = FLBuilderModel::get_store_url( 'change-logs', fl_welcome_utm( 'settings-welcome-change-logs' ) );
|
13 |
+
$upgrade_url = FLBuilderModel::get_upgrade_url( fl_welcome_utm( 'settings-welcome-upgrade' ) );
|
14 |
$support_url = FLBuilderModel::get_store_url( 'beaver-builder-support', fl_welcome_utm( 'settings-welcome-support' ) );
|
15 |
$faqs_url = FLBuilderModel::get_store_url( 'frequently-asked-questions', fl_welcome_utm( 'settings-welcome-faqs' ) );
|
16 |
$forums_url = FLBuilderModel::get_store_url( 'support', fl_welcome_utm( 'settings-welcome-forums' ) );
|
includes/compatibility.php
CHANGED
@@ -215,3 +215,36 @@ function fl_builder_render_module_content_filter( $contents, $module ) {
|
|
215 |
}
|
216 |
|
217 |
add_filter( 'fl_builder_render_module_content', 'fl_builder_render_module_content_filter', 10, 2 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
}
|
216 |
|
217 |
add_filter( 'fl_builder_render_module_content', 'fl_builder_render_module_content_filter', 10, 2 );
|
218 |
+
|
219 |
+
/**
|
220 |
+
* Duplicate posts plugin fixes when cloning BB template.
|
221 |
+
*
|
222 |
+
* @since 1.10.8
|
223 |
+
* @param int $meta_id The newly added meta ID
|
224 |
+
* @param int $object_id ID of the object metadata is for.
|
225 |
+
* @param string $meta_key Metadata key
|
226 |
+
* @param string $meta_value Metadata value
|
227 |
+
* @return void
|
228 |
+
*/
|
229 |
+
function fl_builder_template_meta_add( $meta_id, $object_id, $meta_key, $meta_value ) {
|
230 |
+
global $pagenow;
|
231 |
+
|
232 |
+
if ( 'admin.php' != $pagenow ) {
|
233 |
+
return;
|
234 |
+
}
|
235 |
+
|
236 |
+
if ( ! isset( $_REQUEST['action'] ) || 'duplicate_post_save_as_new_post' != $_REQUEST['action'] ) {
|
237 |
+
return;
|
238 |
+
}
|
239 |
+
|
240 |
+
$post_type = get_post_type( $object_id );
|
241 |
+
if ( 'fl-builder-template' != $post_type || '_fl_builder_template_id' != $meta_key ) {
|
242 |
+
return;
|
243 |
+
}
|
244 |
+
|
245 |
+
// Generate new template ID;
|
246 |
+
$template_id = FLBuilderModel::generate_node_id();
|
247 |
+
|
248 |
+
update_post_meta( $object_id, '_fl_builder_template_id', $template_id );
|
249 |
+
}
|
250 |
+
add_action( 'added_post_meta', 'fl_builder_template_meta_add', 10, 4 );
|
includes/field-code.php
CHANGED
@@ -3,6 +3,15 @@
|
|
3 |
|
4 |
$editor_id = 'flcode' . time() . '_' . $name;
|
5 |
$value = is_array( $value ) ? htmlspecialchars( json_encode( $value ) ) : htmlspecialchars( $value );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
?>
|
8 |
<textarea id="<?php echo $editor_id; ?>" name="<?php echo $name; ?>" data-editor="<?php echo $field['editor']; ?>" <?php if ( isset( $field['class'] ) ) { echo ' class="' . $field['class'] . '"';
|
@@ -31,13 +40,11 @@
|
|
31 |
editor.getSession().setUseWrapMode(true);
|
32 |
<?php endif; ?>
|
33 |
|
34 |
-
editor.setOptions({
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
showFoldWidgets: false
|
40 |
-
});
|
41 |
|
42 |
editor.getSession().on('change', function(e) {
|
43 |
textarea.val(editor.getSession().getValue()).trigger('change');
|
3 |
|
4 |
$editor_id = 'flcode' . time() . '_' . $name;
|
5 |
$value = is_array( $value ) ? htmlspecialchars( json_encode( $value ) ) : htmlspecialchars( $value );
|
6 |
+
$editor_defaults = array(
|
7 |
+
'enableBasicAutocompletion' => 'true',
|
8 |
+
'enableLiveAutocompletion' => 'true',
|
9 |
+
'enableSnippets' => 'false',
|
10 |
+
'showLineNumbers' => 'false',
|
11 |
+
'showFoldWidgets' => 'false',
|
12 |
+
);
|
13 |
+
|
14 |
+
$editor_opts = wp_parse_args( apply_filters( 'fl_builder_ace_options', $editor_defaults ), $editor_defaults );
|
15 |
|
16 |
?>
|
17 |
<textarea id="<?php echo $editor_id; ?>" name="<?php echo $name; ?>" data-editor="<?php echo $field['editor']; ?>" <?php if ( isset( $field['class'] ) ) { echo ' class="' . $field['class'] . '"';
|
40 |
editor.getSession().setUseWrapMode(true);
|
41 |
<?php endif; ?>
|
42 |
|
43 |
+
editor.setOptions( {
|
44 |
+
<?php foreach ( $editor_opts as $opt => $val ) {
|
45 |
+
printf( "%s:%s,\n", $opt, $val );
|
46 |
+
} ?>
|
47 |
+
} );
|
|
|
|
|
48 |
|
49 |
editor.getSession().on('change', function(e) {
|
50 |
textarea.val(editor.getSession().getValue()).trigger('change');
|
includes/module.php
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
<div<?php FLBuilder::render_module_attributes( $module ); ?>>
|
2 |
<div class="fl-module-content fl-node-content">
|
3 |
-
<?php
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
$out = ob_get_clean();
|
7 |
|
1 |
<div<?php FLBuilder::render_module_attributes( $module ); ?>>
|
2 |
<div class="fl-module-content fl-node-content">
|
3 |
+
<?php
|
4 |
+
ob_start();
|
5 |
+
|
6 |
+
if ( has_filter( 'fl_builder_module_frontend_custom_' . $module->slug ) ) {
|
7 |
+
echo apply_filters( 'fl_builder_module_frontend_custom_' . $module->slug, (array) $module->settings, $module );
|
8 |
+
} else {
|
9 |
+
include apply_filters( 'fl_builder_module_frontend_file', $module->dir . 'includes/frontend.php', $module );
|
10 |
+
}
|
11 |
|
12 |
$out = ob_get_clean();
|
13 |
|
includes/settings.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<div class="fl-lightbox-controls"><i class="fa fa-expand"></i></div>
|
11 |
<?php endif; ?>
|
12 |
</div>
|
13 |
-
<?php if ( count( $form['tabs'] ) > 1 ) : ?>
|
14 |
<div class="fl-builder-settings-tabs">
|
15 |
<?php $i = 0; foreach ( $form['tabs'] as $id => $tab ) : ?>
|
16 |
<a href="#fl-builder-settings-tab-<?php echo $id; ?>"<?php if ( 0 == $i ) { echo ' class="fl-active"';} ?>><?php echo $tab['title']; ?></a>
|
@@ -20,6 +20,7 @@ endforeach; ?>
|
|
20 |
<?php endif; ?>
|
21 |
<div class="fl-builder-settings-fields fl-nanoscroller">
|
22 |
<div class="fl-nanoscroller-content">
|
|
|
23 |
<?php $i = 0; foreach ( $form['tabs'] as $id => $tab ) : // Tabs ?>
|
24 |
<div id="fl-builder-settings-tab-<?php echo $id; ?>" class="fl-builder-settings-tab <?php if ( 0 == $i ) { echo 'fl-active';} ?>">
|
25 |
|
@@ -69,7 +70,8 @@ endforeach; ?>
|
|
69 |
|
70 |
</div>
|
71 |
<?php $i++;
|
72 |
-
endforeach;
|
|
|
73 |
</div>
|
74 |
</div>
|
75 |
<div class="fl-lightbox-footer">
|
10 |
<div class="fl-lightbox-controls"><i class="fa fa-expand"></i></div>
|
11 |
<?php endif; ?>
|
12 |
</div>
|
13 |
+
<?php if ( isset( $form['tabs'] ) && count( $form['tabs'] ) > 1 ) : ?>
|
14 |
<div class="fl-builder-settings-tabs">
|
15 |
<?php $i = 0; foreach ( $form['tabs'] as $id => $tab ) : ?>
|
16 |
<a href="#fl-builder-settings-tab-<?php echo $id; ?>"<?php if ( 0 == $i ) { echo ' class="fl-active"';} ?>><?php echo $tab['title']; ?></a>
|
20 |
<?php endif; ?>
|
21 |
<div class="fl-builder-settings-fields fl-nanoscroller">
|
22 |
<div class="fl-nanoscroller-content">
|
23 |
+
<?php if ( isset( $form['tabs'] ) && count( $form['tabs'] ) > 0 ) : ?>
|
24 |
<?php $i = 0; foreach ( $form['tabs'] as $id => $tab ) : // Tabs ?>
|
25 |
<div id="fl-builder-settings-tab-<?php echo $id; ?>" class="fl-builder-settings-tab <?php if ( 0 == $i ) { echo 'fl-active';} ?>">
|
26 |
|
70 |
|
71 |
</div>
|
72 |
<?php $i++;
|
73 |
+
endforeach;
|
74 |
+
endif; ?>
|
75 |
</div>
|
76 |
</div>
|
77 |
<div class="fl-lightbox-footer">
|
includes/template-selector.php
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
<?php if ( FLBuilderModel::has_templates() ) : ?>
|
22 |
<div class="fl-builder-settings-message fl-builder-templates-cta">
|
23 |
<p><?php _e( 'Save and reuse your layouts or kick-start your creativity with even more professionally designed templates.', 'fl-builder' ); ?></p>
|
24 |
-
<a class="fl-builder-upgrade-button fl-builder-button" href="<?php echo FLBuilderModel::
|
25 |
'utm_medium' => 'bb-lite',
|
26 |
'utm_source' => 'builder-ui',
|
27 |
'utm_campaign' => 'templates-cta',
|
@@ -30,7 +30,7 @@
|
|
30 |
<?php else : ?>
|
31 |
<div class="fl-builder-settings-message fl-builder-templates-cta">
|
32 |
<p><?php _e( 'Save and reuse your layouts or kick-start your creativity with dozens of professionally designed templates.', 'fl-builder' ); ?></p>
|
33 |
-
<a class="fl-builder-upgrade-button fl-builder-button" href="<?php echo FLBuilderModel::
|
34 |
'utm_medium' => 'bb-lite',
|
35 |
'utm_source' => 'builder-ui',
|
36 |
'utm_campaign' => 'templates-cta',
|
21 |
<?php if ( FLBuilderModel::has_templates() ) : ?>
|
22 |
<div class="fl-builder-settings-message fl-builder-templates-cta">
|
23 |
<p><?php _e( 'Save and reuse your layouts or kick-start your creativity with even more professionally designed templates.', 'fl-builder' ); ?></p>
|
24 |
+
<a class="fl-builder-upgrade-button fl-builder-button" href="<?php echo FLBuilderModel::get_upgrade_url( array(
|
25 |
'utm_medium' => 'bb-lite',
|
26 |
'utm_source' => 'builder-ui',
|
27 |
'utm_campaign' => 'templates-cta',
|
30 |
<?php else : ?>
|
31 |
<div class="fl-builder-settings-message fl-builder-templates-cta">
|
32 |
<p><?php _e( 'Save and reuse your layouts or kick-start your creativity with dozens of professionally designed templates.', 'fl-builder' ); ?></p>
|
33 |
+
<a class="fl-builder-upgrade-button fl-builder-button" href="<?php echo FLBuilderModel::get_upgrade_url( array(
|
34 |
'utm_medium' => 'bb-lite',
|
35 |
'utm_source' => 'builder-ui',
|
36 |
'utm_campaign' => 'templates-cta',
|
includes/ui-js-config.php
CHANGED
@@ -23,7 +23,7 @@ echo 'FLBuilderConfig = ' . json_encode( apply_filters('fl_builder_ui_js_config'
|
|
23 |
'postStatus' => get_post_status(),
|
24 |
'postType' => get_post_type(),
|
25 |
'simpleUi' => $simple_ui ? true : false,
|
26 |
-
'upgradeUrl' => FLBuilderModel::
|
27 |
'utm_medium' => ( true === FL_BUILDER_LITE ? 'bb-lite' : 'bb-demo' ),
|
28 |
'utm_source' => 'builder-ui',
|
29 |
'utm_campaign' => ( true === FL_BUILDER_LITE ? 'top-panel-cta' : 'demo-cta' ),
|
23 |
'postStatus' => get_post_status(),
|
24 |
'postType' => get_post_type(),
|
25 |
'simpleUi' => $simple_ui ? true : false,
|
26 |
+
'upgradeUrl' => FLBuilderModel::get_upgrade_url( array(
|
27 |
'utm_medium' => ( true === FL_BUILDER_LITE ? 'bb-lite' : 'bb-demo' ),
|
28 |
'utm_source' => 'builder-ui',
|
29 |
'utm_campaign' => ( true === FL_BUILDER_LITE ? 'top-panel-cta' : 'demo-cta' ),
|
includes/ui-panel.php
CHANGED
@@ -58,7 +58,7 @@
|
|
58 |
|
59 |
<?php if ( true === FL_BUILDER_LITE ) : ?>
|
60 |
<div class="fl-builder-modules-cta">
|
61 |
-
<a href="#" onclick="window.open('<?php echo FLBuilderModel::
|
62 |
'utm_medium' => 'bb-lite',
|
63 |
'utm_source' => 'builder-ui',
|
64 |
'utm_campaign' => 'modules-panel-cta',
|
58 |
|
59 |
<?php if ( true === FL_BUILDER_LITE ) : ?>
|
60 |
<div class="fl-builder-modules-cta">
|
61 |
+
<a href="#" onclick="window.open('<?php echo FLBuilderModel::get_upgrade_url( array(
|
62 |
'utm_medium' => 'bb-lite',
|
63 |
'utm_source' => 'builder-ui',
|
64 |
'utm_campaign' => 'modules-panel-cta',
|
includes/updater-config.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
if ( class_exists( 'FLUpdater' ) ) {
|
4 |
FLUpdater::add_product(array(
|
5 |
'name' => 'Beaver Builder Plugin (Lite Version)',
|
6 |
-
'version' => '1.10.
|
7 |
'slug' => 'bb-plugin',
|
8 |
'type' => 'plugin',
|
9 |
));
|
3 |
if ( class_exists( 'FLUpdater' ) ) {
|
4 |
FLUpdater::add_product(array(
|
5 |
'name' => 'Beaver Builder Plugin (Lite Version)',
|
6 |
+
'version' => '1.10.8.3',
|
7 |
'slug' => 'bb-plugin',
|
8 |
'type' => 'plugin',
|
9 |
));
|
includes/vendor/sendinblue/Mailin.php
CHANGED
@@ -2,15 +2,15 @@
|
|
2 |
|
3 |
/**
|
4 |
* Mailin REST client
|
5 |
-
*/
|
6 |
-
class
|
7 |
{
|
8 |
public $api_key;
|
9 |
public $base_url;
|
10 |
public $curl_opts = array();
|
11 |
public function __construct($base_url,$api_key)
|
12 |
{
|
13 |
-
if(!function_exists('curl_init'))
|
14 |
{
|
15 |
throw new Exception('Mailin requires CURL module');
|
16 |
}
|
@@ -47,7 +47,7 @@ class Mailin
|
|
47 |
public function get($resource,$input)
|
48 |
{
|
49 |
return $this->do_request($resource,"GET",$input);
|
50 |
-
}
|
51 |
public function put($resource,$input)
|
52 |
{
|
53 |
return $this->do_request($resource,"PUT",$input);
|
2 |
|
3 |
/**
|
4 |
* Mailin REST client
|
5 |
+
*/
|
6 |
+
class Mailin_Rest
|
7 |
{
|
8 |
public $api_key;
|
9 |
public $base_url;
|
10 |
public $curl_opts = array();
|
11 |
public function __construct($base_url,$api_key)
|
12 |
{
|
13 |
+
if(!function_exists('curl_init'))
|
14 |
{
|
15 |
throw new Exception('Mailin requires CURL module');
|
16 |
}
|
47 |
public function get($resource,$input)
|
48 |
{
|
49 |
return $this->do_request($resource,"GET",$input);
|
50 |
+
}
|
51 |
public function put($resource,$input)
|
52 |
{
|
53 |
return $this->do_request($resource,"PUT",$input);
|
js/fl-builder-export.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @class FLBuilderExport
|
6 |
*/
|
7 |
FLBuilderExport = {
|
8 |
-
|
9 |
/**
|
10 |
* Initializes custom exports for the builder.
|
11 |
*
|
@@ -19,7 +19,7 @@
|
|
19 |
$( '#export-filters input[value=fl-theme-layout]' ).on( 'change', FLBuilderExport._showTemplateFilters );
|
20 |
$( '#fl-builder-template-export-select' ).on( 'change', FLBuilderExport._templateSelectChange );
|
21 |
},
|
22 |
-
|
23 |
/**
|
24 |
* Shows the template filters when the template radio
|
25 |
* button is clicked.
|
@@ -31,13 +31,13 @@
|
|
31 |
_showTemplateFilters: function()
|
32 |
{
|
33 |
var filters = $( '#fl-builder-template-filters' );
|
34 |
-
|
35 |
filters.find( 'select' ).val( 'all' );
|
36 |
$( this ).closest( 'p' ).after( filters );
|
37 |
$( '#fl-builder-template-export-posts' ).hide();
|
38 |
filters.slideDown();
|
39 |
},
|
40 |
-
|
41 |
/**
|
42 |
* Called when the template select is changed and shows
|
43 |
* all templates to select from when the value is set
|
@@ -52,24 +52,25 @@
|
|
52 |
var filter = $( '#fl-builder-template-filters' ),
|
53 |
posts = $( '#fl-builder-template-export-posts' ),
|
54 |
spinner = filter.find( '.spinner' );
|
55 |
-
|
56 |
if ( 'all' == $( this ).val() ) {
|
57 |
spinner.removeClass( 'is-active' );
|
58 |
posts.hide();
|
59 |
}
|
60 |
else {
|
61 |
-
|
62 |
posts.empty();
|
63 |
posts.show();
|
64 |
spinner.addClass( 'is-active' );
|
65 |
-
|
66 |
$.post( ajaxurl, {
|
67 |
action: 'fl_builder_export_templates_data',
|
68 |
-
type: $( 'input[name=content]:checked' ).val()
|
|
|
69 |
}, FLBuilderExport._templateDataLoaded );
|
70 |
}
|
71 |
},
|
72 |
-
|
73 |
/**
|
74 |
* Called when the template data is loaded.
|
75 |
*
|
@@ -84,15 +85,15 @@
|
|
84 |
spinner = filter.find( '.spinner' ),
|
85 |
data = JSON.parse( response ),
|
86 |
i = 0;
|
87 |
-
|
88 |
for ( i in data ) {
|
89 |
posts.append( '<p><label><input type="checkbox" name="fl-builder-export-template[]" value="' + data[ i ].id + '" /> ' + data[ i ].title + '</label></p>' );
|
90 |
}
|
91 |
-
|
92 |
spinner.removeClass( 'is-active' );
|
93 |
}
|
94 |
};
|
95 |
|
96 |
$( FLBuilderExport._init );
|
97 |
|
98 |
-
} )( jQuery );
|
5 |
* @class FLBuilderExport
|
6 |
*/
|
7 |
FLBuilderExport = {
|
8 |
+
|
9 |
/**
|
10 |
* Initializes custom exports for the builder.
|
11 |
*
|
19 |
$( '#export-filters input[value=fl-theme-layout]' ).on( 'change', FLBuilderExport._showTemplateFilters );
|
20 |
$( '#fl-builder-template-export-select' ).on( 'change', FLBuilderExport._templateSelectChange );
|
21 |
},
|
22 |
+
|
23 |
/**
|
24 |
* Shows the template filters when the template radio
|
25 |
* button is clicked.
|
31 |
_showTemplateFilters: function()
|
32 |
{
|
33 |
var filters = $( '#fl-builder-template-filters' );
|
34 |
+
|
35 |
filters.find( 'select' ).val( 'all' );
|
36 |
$( this ).closest( 'p' ).after( filters );
|
37 |
$( '#fl-builder-template-export-posts' ).hide();
|
38 |
filters.slideDown();
|
39 |
},
|
40 |
+
|
41 |
/**
|
42 |
* Called when the template select is changed and shows
|
43 |
* all templates to select from when the value is set
|
52 |
var filter = $( '#fl-builder-template-filters' ),
|
53 |
posts = $( '#fl-builder-template-export-posts' ),
|
54 |
spinner = filter.find( '.spinner' );
|
55 |
+
|
56 |
if ( 'all' == $( this ).val() ) {
|
57 |
spinner.removeClass( 'is-active' );
|
58 |
posts.hide();
|
59 |
}
|
60 |
else {
|
61 |
+
|
62 |
posts.empty();
|
63 |
posts.show();
|
64 |
spinner.addClass( 'is-active' );
|
65 |
+
|
66 |
$.post( ajaxurl, {
|
67 |
action: 'fl_builder_export_templates_data',
|
68 |
+
type: $( 'input[name=content]:checked' ).val(),
|
69 |
+
_wpnonce: window.fl_builder_export_nonce
|
70 |
}, FLBuilderExport._templateDataLoaded );
|
71 |
}
|
72 |
},
|
73 |
+
|
74 |
/**
|
75 |
* Called when the template data is loaded.
|
76 |
*
|
85 |
spinner = filter.find( '.spinner' ),
|
86 |
data = JSON.parse( response ),
|
87 |
i = 0;
|
88 |
+
|
89 |
for ( i in data ) {
|
90 |
posts.append( '<p><label><input type="checkbox" name="fl-builder-export-template[]" value="' + data[ i ].id + '" /> ' + data[ i ].title + '</label></p>' );
|
91 |
}
|
92 |
+
|
93 |
spinner.removeClass( 'is-active' );
|
94 |
}
|
95 |
};
|
96 |
|
97 |
$( FLBuilderExport._init );
|
98 |
|
99 |
+
} )( jQuery );
|
js/fl-builder-responsive-editing.js
CHANGED
@@ -2,21 +2,21 @@
|
|
2 |
|
3 |
/**
|
4 |
* Helper for handling responsive editing logic.
|
5 |
-
*
|
6 |
* @since 1.9
|
7 |
* @class FLBuilderResponsiveEditing
|
8 |
*/
|
9 |
FLBuilderResponsiveEditing = {
|
10 |
-
|
11 |
/**
|
12 |
-
* The current editing mode we're in.
|
13 |
*
|
14 |
* @since 1.9
|
15 |
* @private
|
16 |
* @property {FLBuilderPreview} _mode
|
17 |
*/
|
18 |
_mode: 'default',
|
19 |
-
|
20 |
/**
|
21 |
* Refreshes the media queries for the responsive preview
|
22 |
* if necessary.
|
@@ -27,7 +27,7 @@
|
|
27 |
refreshPreview: function()
|
28 |
{
|
29 |
var width;
|
30 |
-
|
31 |
if ( ! $( '.fl-responsive-preview' ).length || 'default' == this._mode ) {
|
32 |
return;
|
33 |
}
|
@@ -39,10 +39,10 @@
|
|
39 |
width = FLBuilderConfig.global.medium_breakpoint >= 769 ? 769 : FLBuilderConfig.global.medium_breakpoint;
|
40 |
FLBuilderSimulateMediaQuery.update( width );
|
41 |
}
|
42 |
-
|
43 |
FLBuilder._resizeLayout();
|
44 |
},
|
45 |
-
|
46 |
/**
|
47 |
* Initializes responsive editing.
|
48 |
*
|
@@ -55,7 +55,7 @@
|
|
55 |
this._bind();
|
56 |
this._initMediaQueries();
|
57 |
},
|
58 |
-
|
59 |
/**
|
60 |
* Bind events.
|
61 |
*
|
@@ -68,10 +68,10 @@
|
|
68 |
FLBuilder.addHook( 'responsive-editing-switched', this._previewSpacingFields );
|
69 |
FLBuilder.addHook( 'settings-form-init', this._initSettingsForms );
|
70 |
FLBuilder.addHook( 'settings-lightbox-closed', this._clearPreview );
|
71 |
-
|
72 |
$( 'body' ).delegate( '.fl-field-responsive-toggle', 'click', this._settingToggleClicked );
|
73 |
},
|
74 |
-
|
75 |
/**
|
76 |
* Initializes faux media queries.
|
77 |
*
|
@@ -88,7 +88,7 @@
|
|
88 |
'/wp-includes/',
|
89 |
'/wp-admin/'
|
90 |
] );
|
91 |
-
|
92 |
// Reparse stylesheets that match these paths on each update.
|
93 |
FLBuilderSimulateMediaQuery.reparse( [
|
94 |
FLBuilderConfig.postId + '-layout-draft.css?',
|
@@ -97,7 +97,7 @@
|
|
97 |
FLBuilderConfig.postId + '-layout-preview-partial.css?'
|
98 |
] );
|
99 |
},
|
100 |
-
|
101 |
/**
|
102 |
* Switches to either mobile, tablet or desktop editing.
|
103 |
*
|
@@ -113,17 +113,17 @@
|
|
113 |
mask = $( '.fl-responsive-preview-mask' ),
|
114 |
placeholder = $( '.fl-content-placeholder' ),
|
115 |
width = null;
|
116 |
-
|
117 |
// Save the new mode.
|
118 |
FLBuilderResponsiveEditing._mode = mode;
|
119 |
-
|
120 |
// Setup the preview.
|
121 |
if ( 'default' == mode ) {
|
122 |
-
|
123 |
if ( 0 === placeholder.length ) {
|
124 |
return;
|
125 |
}
|
126 |
-
|
127 |
placeholder.after( content );
|
128 |
placeholder.remove();
|
129 |
preview.remove();
|
@@ -139,7 +139,7 @@
|
|
139 |
preview.removeClass( 'fl-preview-responsive fl-preview-medium' );
|
140 |
preview.addClass( 'fl-preview-' + mode );
|
141 |
}
|
142 |
-
|
143 |
// Set the content width and apply media queries.
|
144 |
if ( 'responsive' == mode ) {
|
145 |
width = FLBuilderConfig.global.responsive_breakpoint >= 320 ? 320 : FLBuilderConfig.global.responsive_breakpoint;
|
@@ -155,17 +155,17 @@
|
|
155 |
content.width( '' );
|
156 |
FLBuilderSimulateMediaQuery.update( null, callback );
|
157 |
}
|
158 |
-
|
159 |
// Set the content background color.
|
160 |
this._setContentBackgroundColor();
|
161 |
-
|
162 |
// Resize the layout.
|
163 |
FLBuilder._resizeLayout();
|
164 |
-
|
165 |
// Broadcast the switch.
|
166 |
FLBuilder.triggerHook( 'responsive-editing-switched', mode );
|
167 |
},
|
168 |
-
|
169 |
/**
|
170 |
* Sets the background color for the builder content
|
171 |
* in a responsive preview.
|
@@ -183,25 +183,25 @@
|
|
183 |
parent = null,
|
184 |
color = '#fff',
|
185 |
i = 0;
|
186 |
-
|
187 |
if ( 0 === preview.length ) {
|
188 |
content.css( 'background-color', '' );
|
189 |
}
|
190 |
else {
|
191 |
-
|
192 |
for( ; i < parents.length; i++ ) {
|
193 |
-
|
194 |
color = parents.eq( i ).css( 'background-color' );
|
195 |
-
|
196 |
if ( color != 'rgba(0, 0, 0, 0)' ) {
|
197 |
break;
|
198 |
}
|
199 |
}
|
200 |
-
|
201 |
content.css( 'background-color', color );
|
202 |
}
|
203 |
},
|
204 |
-
|
205 |
/**
|
206 |
* Switches to the given mode and scrolls to an
|
207 |
* active node if one is present.
|
@@ -214,16 +214,16 @@
|
|
214 |
{
|
215 |
var nodeId = $( '.fl-builder-settings' ).data( 'node' ),
|
216 |
element = undefined === nodeId ? undefined : $( '.fl-node-' + nodeId );
|
217 |
-
|
218 |
FLBuilderResponsiveEditing._switchTo( mode, function() {
|
219 |
-
|
220 |
if ( undefined !== element && element ) {
|
221 |
-
|
222 |
setTimeout( function(){
|
223 |
-
|
224 |
var win = $( window ),
|
225 |
content = $( '.fl-responsive-preview-content' );
|
226 |
-
|
227 |
if ( ! content.length || win.height() < content.height() ) {
|
228 |
$( 'html, body' ).animate( {
|
229 |
scrollTop: element.offset().top - 100
|
@@ -232,12 +232,12 @@
|
|
232 |
else {
|
233 |
scrollTo( 0, 0 );
|
234 |
}
|
235 |
-
|
236 |
}, 250 );
|
237 |
}
|
238 |
} );
|
239 |
},
|
240 |
-
|
241 |
/**
|
242 |
* Clears the responsive editing preview and reverts
|
243 |
* to the default view.
|
@@ -250,7 +250,7 @@
|
|
250 |
{
|
251 |
FLBuilderResponsiveEditing._switchToAndScroll( 'default' );
|
252 |
},
|
253 |
-
|
254 |
/**
|
255 |
* Callback for when the responsive toggle of a setting
|
256 |
* is clicked.
|
@@ -263,7 +263,7 @@
|
|
263 |
{
|
264 |
var toggle = $( this ),
|
265 |
mode = toggle.data( 'mode' );
|
266 |
-
|
267 |
if ( 'default' == mode ) {
|
268 |
mode = 'medium';
|
269 |
}
|
@@ -273,12 +273,12 @@
|
|
273 |
else {
|
274 |
mode = 'default';
|
275 |
}
|
276 |
-
|
277 |
FLBuilderResponsiveEditing._switchAllSettingsTo( mode );
|
278 |
-
|
279 |
toggle.siblings( '.fl-field-responsive-setting:visible' ).find( 'input' ).focus();
|
280 |
},
|
281 |
-
|
282 |
/**
|
283 |
* Switches all responsive settings in a settings form
|
284 |
* to the given mode.
|
@@ -291,10 +291,10 @@
|
|
291 |
_switchAllSettingsTo: function( mode )
|
292 |
{
|
293 |
var className = 'dashicons-desktop dashicons-tablet dashicons-smartphone';
|
294 |
-
|
295 |
$( '.fl-field-responsive-toggle' ).removeClass( className );
|
296 |
$( '.fl-field-responsive-setting' ).hide();
|
297 |
-
|
298 |
if ( 'default' == mode ) {
|
299 |
className = 'dashicons-desktop';
|
300 |
}
|
@@ -304,13 +304,13 @@
|
|
304 |
else {
|
305 |
className = 'dashicons-smartphone';
|
306 |
}
|
307 |
-
|
308 |
$( '.fl-field-responsive-toggle' ).addClass( className ).data( 'mode', mode );
|
309 |
$( '.fl-field-responsive-setting-' + mode ).css( 'display', 'inline-block' );
|
310 |
-
|
311 |
FLBuilderResponsiveEditing._switchToAndScroll( mode );
|
312 |
},
|
313 |
-
|
314 |
/**
|
315 |
* Initializes responsive settings in settings forms.
|
316 |
*
|
@@ -321,9 +321,9 @@
|
|
321 |
_initSettingsForms: function()
|
322 |
{
|
323 |
var self = FLBuilderResponsiveEditing;
|
324 |
-
|
325 |
if ( Number( FLBuilderConfig.global.responsive_enabled ) ) {
|
326 |
-
|
327 |
self._initFields( 'unit', 'input', 'keyup', self._spacingFieldKeyup, [
|
328 |
'margin_top',
|
329 |
'margin_bottom',
|
@@ -334,13 +334,13 @@
|
|
334 |
'padding_left',
|
335 |
'padding_right'
|
336 |
] );
|
337 |
-
|
338 |
self._initFields( 'unit', 'input', 'keyup', self._textFieldKeyup );
|
339 |
}
|
340 |
-
|
341 |
self._switchAllSettingsTo( self._mode );
|
342 |
},
|
343 |
-
|
344 |
/**
|
345 |
* Initializes responsive logic for fields when
|
346 |
* an event occurs.
|
@@ -361,12 +361,12 @@
|
|
361 |
field = null,
|
362 |
name = null,
|
363 |
i = 0;
|
364 |
-
|
365 |
for ( ; i < fields.length; i++ ) {
|
366 |
-
|
367 |
field = fields.eq( i );
|
368 |
name = field.attr( 'id' ).replace( 'fl-field-', '' );
|
369 |
-
|
370 |
if ( 'object' == typeof names && $.inArray( name, names ) < 0 ) {
|
371 |
continue;
|
372 |
}
|
@@ -376,7 +376,7 @@
|
|
376 |
if ( undefined !== field.attr( 'data-responsive-init' ) ) {
|
377 |
continue;
|
378 |
}
|
379 |
-
|
380 |
field.find( '.fl-field-responsive-setting-default ' + selector ).on( event, callback );
|
381 |
field.find( '.fl-field-responsive-setting-medium ' + selector ).on( event, callback );
|
382 |
field.find( '.fl-field-responsive-setting-responsive ' + selector ).on( event, callback );
|
@@ -384,7 +384,7 @@
|
|
384 |
field.attr( 'data-responsive-init', 1 );
|
385 |
}
|
386 |
},
|
387 |
-
|
388 |
/**
|
389 |
* Returns the fields object for an element.
|
390 |
*
|
@@ -398,14 +398,14 @@
|
|
398 |
_getFields: function( element, selector )
|
399 |
{
|
400 |
var field = $( element ).closest( '.fl-field' );
|
401 |
-
|
402 |
return {
|
403 |
'default' : field.find( '.fl-field-responsive-setting-default ' + selector ),
|
404 |
'medium' : field.find( '.fl-field-responsive-setting-medium ' + selector ),
|
405 |
'responsive' : field.find( '.fl-field-responsive-setting-responsive ' + selector )
|
406 |
};
|
407 |
},
|
408 |
-
|
409 |
/**
|
410 |
* Callback for the keyup event on a text field.
|
411 |
*
|
@@ -419,7 +419,7 @@
|
|
419 |
defaultPlaceholder = fields.default.attr( 'placeholder' ),
|
420 |
defaultValue = fields.default.val(),
|
421 |
mediumValue = fields.medium.val();
|
422 |
-
|
423 |
// Medium placeholder
|
424 |
if ( '' == defaultValue ) {
|
425 |
fields.medium.attr( 'placeholder', ( undefined === defaultPlaceholder ? '' : defaultPlaceholder ) );
|
@@ -427,7 +427,7 @@
|
|
427 |
else {
|
428 |
fields.medium.attr( 'placeholder', defaultValue );
|
429 |
}
|
430 |
-
|
431 |
// Responsive placeholder
|
432 |
if ( '' == mediumValue ) {
|
433 |
fields.responsive.attr( 'placeholder', fields.medium.attr( 'placeholder' ) );
|
@@ -436,7 +436,7 @@
|
|
436 |
fields.responsive.attr( 'placeholder', mediumValue );
|
437 |
}
|
438 |
},
|
439 |
-
|
440 |
/**
|
441 |
* Callback for the keyup event on a spacing field.
|
442 |
*
|
@@ -462,7 +462,7 @@
|
|
462 |
responsiveGlobalVal = null,
|
463 |
moduleGlobalVal = null,
|
464 |
moduleResponsiveVal = null;
|
465 |
-
|
466 |
// Get the node type
|
467 |
if ( form.hasClass( 'fl-builder-row-settings' ) ) {
|
468 |
type = 'row';
|
@@ -473,7 +473,7 @@
|
|
473 |
else if ( form.hasClass( 'fl-builder-module-settings' ) ) {
|
474 |
type = 'module';
|
475 |
}
|
476 |
-
|
477 |
// Spoof global column defaults.
|
478 |
$.extend( config, {
|
479 |
col_margins : 0,
|
@@ -483,16 +483,16 @@
|
|
483 |
col_padding_medium : '',
|
484 |
col_padding_responsive : ''
|
485 |
} );
|
486 |
-
|
487 |
// Set the global values
|
488 |
configPrefix = type + '_' + field + ( 'margin' == field ? 's' : '' );
|
489 |
defaultGlobalVal = config[ configPrefix ];
|
490 |
mediumGlobalVal = config[ configPrefix + '_medium' ];
|
491 |
responsiveGlobalVal = config[ configPrefix + '_responsive' ];
|
492 |
-
|
493 |
// Medium value
|
494 |
if ( '' == mediumGlobalVal ) {
|
495 |
-
|
496 |
if ( '' != defaultVal ) {
|
497 |
fields.medium.attr( 'placeholder', defaultVal );
|
498 |
}
|
@@ -500,15 +500,15 @@
|
|
500 |
fields.medium.attr( 'placeholder', defaultGlobalVal );
|
501 |
}
|
502 |
}
|
503 |
-
|
504 |
// Responsive value
|
505 |
if ( '' == responsiveGlobalVal ) {
|
506 |
-
|
507 |
if ( 'module' == type && Number( config.auto_spacing ) ) {
|
508 |
-
|
509 |
moduleGlobalVal = '' == mediumGlobalVal ? Number( defaultGlobalVal ) : mediumGlobalVal;
|
510 |
moduleResponsiveVal = '' == mediumVal ? Number( defaultVal ) : mediumVal;
|
511 |
-
|
512 |
if ( '' != moduleResponsiveVal && ( moduleResponsiveVal > moduleGlobalVal || moduleResponsiveVal < 0 ) ) {
|
513 |
fields.responsive.attr( 'placeholder', moduleGlobalVal );
|
514 |
}
|
@@ -519,8 +519,8 @@
|
|
519 |
fields.responsive.attr( 'placeholder', moduleGlobalVal );
|
520 |
}
|
521 |
}
|
522 |
-
else if ( ! Number( config.auto_spacing ) || ( 'padding' == field && 'top|bottom'.indexOf( dimension ) > -1 ) ) {
|
523 |
-
|
524 |
if ( '' != mediumVal ) {
|
525 |
fields.responsive.attr( 'placeholder', mediumVal );
|
526 |
}
|
@@ -536,9 +536,9 @@
|
|
536 |
}
|
537 |
}
|
538 |
},
|
539 |
-
|
540 |
/**
|
541 |
-
* Callback for when the responsive preview changes
|
542 |
* to live preview CSS for spacing fields.
|
543 |
*
|
544 |
* @since 1.9
|
@@ -549,25 +549,25 @@
|
|
549 |
{
|
550 |
var mode = FLBuilderResponsiveEditing._mode,
|
551 |
form = $( '.fl-builder-settings' );
|
552 |
-
|
553 |
if ( 0 === form.length || undefined === form.attr( 'data-node' ) ) {
|
554 |
return;
|
555 |
}
|
556 |
-
|
557 |
form.find( '.fl-field' ).has( '.fl-field-responsive-setting' ).each( function() {
|
558 |
-
|
559 |
var fields = FLBuilderResponsiveEditing._getFields( this, 'input' ),
|
560 |
preview = fields.responsive.closest( '.fl-field' ).data( 'preview' );
|
561 |
-
|
562 |
if ( 'refresh' == preview.type ) {
|
563 |
return;
|
564 |
}
|
565 |
-
|
566 |
fields[ mode ].trigger( 'keyup' );
|
567 |
} );
|
568 |
},
|
569 |
};
|
570 |
-
|
571 |
$( function() { FLBuilderResponsiveEditing._init() } );
|
572 |
-
|
573 |
-
} )( jQuery );
|
2 |
|
3 |
/**
|
4 |
* Helper for handling responsive editing logic.
|
5 |
+
*
|
6 |
* @since 1.9
|
7 |
* @class FLBuilderResponsiveEditing
|
8 |
*/
|
9 |
FLBuilderResponsiveEditing = {
|
10 |
+
|
11 |
/**
|
12 |
+
* The current editing mode we're in.
|
13 |
*
|
14 |
* @since 1.9
|
15 |
* @private
|
16 |
* @property {FLBuilderPreview} _mode
|
17 |
*/
|
18 |
_mode: 'default',
|
19 |
+
|
20 |
/**
|
21 |
* Refreshes the media queries for the responsive preview
|
22 |
* if necessary.
|
27 |
refreshPreview: function()
|
28 |
{
|
29 |
var width;
|
30 |
+
|
31 |
if ( ! $( '.fl-responsive-preview' ).length || 'default' == this._mode ) {
|
32 |
return;
|
33 |
}
|
39 |
width = FLBuilderConfig.global.medium_breakpoint >= 769 ? 769 : FLBuilderConfig.global.medium_breakpoint;
|
40 |
FLBuilderSimulateMediaQuery.update( width );
|
41 |
}
|
42 |
+
|
43 |
FLBuilder._resizeLayout();
|
44 |
},
|
45 |
+
|
46 |
/**
|
47 |
* Initializes responsive editing.
|
48 |
*
|
55 |
this._bind();
|
56 |
this._initMediaQueries();
|
57 |
},
|
58 |
+
|
59 |
/**
|
60 |
* Bind events.
|
61 |
*
|
68 |
FLBuilder.addHook( 'responsive-editing-switched', this._previewSpacingFields );
|
69 |
FLBuilder.addHook( 'settings-form-init', this._initSettingsForms );
|
70 |
FLBuilder.addHook( 'settings-lightbox-closed', this._clearPreview );
|
71 |
+
|
72 |
$( 'body' ).delegate( '.fl-field-responsive-toggle', 'click', this._settingToggleClicked );
|
73 |
},
|
74 |
+
|
75 |
/**
|
76 |
* Initializes faux media queries.
|
77 |
*
|
88 |
'/wp-includes/',
|
89 |
'/wp-admin/'
|
90 |
] );
|
91 |
+
|
92 |
// Reparse stylesheets that match these paths on each update.
|
93 |
FLBuilderSimulateMediaQuery.reparse( [
|
94 |
FLBuilderConfig.postId + '-layout-draft.css?',
|
97 |
FLBuilderConfig.postId + '-layout-preview-partial.css?'
|
98 |
] );
|
99 |
},
|
100 |
+
|
101 |
/**
|
102 |
* Switches to either mobile, tablet or desktop editing.
|
103 |
*
|
113 |
mask = $( '.fl-responsive-preview-mask' ),
|
114 |
placeholder = $( '.fl-content-placeholder' ),
|
115 |
width = null;
|
116 |
+
|
117 |
// Save the new mode.
|
118 |
FLBuilderResponsiveEditing._mode = mode;
|
119 |
+
|
120 |
// Setup the preview.
|
121 |
if ( 'default' == mode ) {
|
122 |
+
|
123 |
if ( 0 === placeholder.length ) {
|
124 |
return;
|
125 |
}
|
126 |
+
|
127 |
placeholder.after( content );
|
128 |
placeholder.remove();
|
129 |
preview.remove();
|
139 |
preview.removeClass( 'fl-preview-responsive fl-preview-medium' );
|
140 |
preview.addClass( 'fl-preview-' + mode );
|
141 |
}
|
142 |
+
|
143 |
// Set the content width and apply media queries.
|
144 |
if ( 'responsive' == mode ) {
|
145 |
width = FLBuilderConfig.global.responsive_breakpoint >= 320 ? 320 : FLBuilderConfig.global.responsive_breakpoint;
|
155 |
content.width( '' );
|
156 |
FLBuilderSimulateMediaQuery.update( null, callback );
|
157 |
}
|
158 |
+
|
159 |
// Set the content background color.
|
160 |
this._setContentBackgroundColor();
|
161 |
+
|
162 |
// Resize the layout.
|
163 |
FLBuilder._resizeLayout();
|
164 |
+
|
165 |
// Broadcast the switch.
|
166 |
FLBuilder.triggerHook( 'responsive-editing-switched', mode );
|
167 |
},
|
168 |
+
|
169 |
/**
|
170 |
* Sets the background color for the builder content
|
171 |
* in a responsive preview.
|
183 |
parent = null,
|
184 |
color = '#fff',
|
185 |
i = 0;
|
186 |
+
|
187 |
if ( 0 === preview.length ) {
|
188 |
content.css( 'background-color', '' );
|
189 |
}
|
190 |
else {
|
191 |
+
|
192 |
for( ; i < parents.length; i++ ) {
|
193 |
+
|
194 |
color = parents.eq( i ).css( 'background-color' );
|
195 |
+
|
196 |
if ( color != 'rgba(0, 0, 0, 0)' ) {
|
197 |
break;
|
198 |
}
|
199 |
}
|
200 |
+
|
201 |
content.css( 'background-color', color );
|
202 |
}
|
203 |
},
|
204 |
+
|
205 |
/**
|
206 |
* Switches to the given mode and scrolls to an
|
207 |
* active node if one is present.
|
214 |
{
|
215 |
var nodeId = $( '.fl-builder-settings' ).data( 'node' ),
|
216 |
element = undefined === nodeId ? undefined : $( '.fl-node-' + nodeId );
|
217 |
+
|
218 |
FLBuilderResponsiveEditing._switchTo( mode, function() {
|
219 |
+
|
220 |
if ( undefined !== element && element ) {
|
221 |
+
|
222 |
setTimeout( function(){
|
223 |
+
|
224 |
var win = $( window ),
|
225 |
content = $( '.fl-responsive-preview-content' );
|
226 |
+
|
227 |
if ( ! content.length || win.height() < content.height() ) {
|
228 |
$( 'html, body' ).animate( {
|
229 |
scrollTop: element.offset().top - 100
|
232 |
else {
|
233 |
scrollTo( 0, 0 );
|
234 |
}
|
235 |
+
|
236 |
}, 250 );
|
237 |
}
|
238 |
} );
|
239 |
},
|
240 |
+
|
241 |
/**
|
242 |
* Clears the responsive editing preview and reverts
|
243 |
* to the default view.
|
250 |
{
|
251 |
FLBuilderResponsiveEditing._switchToAndScroll( 'default' );
|
252 |
},
|
253 |
+
|
254 |
/**
|
255 |
* Callback for when the responsive toggle of a setting
|
256 |
* is clicked.
|
263 |
{
|
264 |
var toggle = $( this ),
|
265 |
mode = toggle.data( 'mode' );
|
266 |
+
|
267 |
if ( 'default' == mode ) {
|
268 |
mode = 'medium';
|
269 |
}
|
273 |
else {
|
274 |
mode = 'default';
|
275 |
}
|
276 |
+
|
277 |
FLBuilderResponsiveEditing._switchAllSettingsTo( mode );
|
278 |
+
|
279 |
toggle.siblings( '.fl-field-responsive-setting:visible' ).find( 'input' ).focus();
|
280 |
},
|
281 |
+
|
282 |
/**
|
283 |
* Switches all responsive settings in a settings form
|
284 |
* to the given mode.
|
291 |
_switchAllSettingsTo: function( mode )
|
292 |
{
|
293 |
var className = 'dashicons-desktop dashicons-tablet dashicons-smartphone';
|
294 |
+
|
295 |
$( '.fl-field-responsive-toggle' ).removeClass( className );
|
296 |
$( '.fl-field-responsive-setting' ).hide();
|
297 |
+
|
298 |
if ( 'default' == mode ) {
|
299 |
className = 'dashicons-desktop';
|
300 |
}
|
304 |
else {
|
305 |
className = 'dashicons-smartphone';
|
306 |
}
|
307 |
+
|
308 |
$( '.fl-field-responsive-toggle' ).addClass( className ).data( 'mode', mode );
|
309 |
$( '.fl-field-responsive-setting-' + mode ).css( 'display', 'inline-block' );
|
310 |
+
|
311 |
FLBuilderResponsiveEditing._switchToAndScroll( mode );
|
312 |
},
|
313 |
+
|
314 |
/**
|
315 |
* Initializes responsive settings in settings forms.
|
316 |
*
|
321 |
_initSettingsForms: function()
|
322 |
{
|
323 |
var self = FLBuilderResponsiveEditing;
|
324 |
+
|
325 |
if ( Number( FLBuilderConfig.global.responsive_enabled ) ) {
|
326 |
+
|
327 |
self._initFields( 'unit', 'input', 'keyup', self._spacingFieldKeyup, [
|
328 |
'margin_top',
|
329 |
'margin_bottom',
|
334 |
'padding_left',
|
335 |
'padding_right'
|
336 |
] );
|
337 |
+
|
338 |
self._initFields( 'unit', 'input', 'keyup', self._textFieldKeyup );
|
339 |
}
|
340 |
+
|
341 |
self._switchAllSettingsTo( self._mode );
|
342 |
},
|
343 |
+
|
344 |
/**
|
345 |
* Initializes responsive logic for fields when
|
346 |
* an event occurs.
|
361 |
field = null,
|
362 |
name = null,
|
363 |
i = 0;
|
364 |
+
|
365 |
for ( ; i < fields.length; i++ ) {
|
366 |
+
|
367 |
field = fields.eq( i );
|
368 |
name = field.attr( 'id' ).replace( 'fl-field-', '' );
|
369 |
+
|
370 |
if ( 'object' == typeof names && $.inArray( name, names ) < 0 ) {
|
371 |
continue;
|
372 |
}
|
376 |
if ( undefined !== field.attr( 'data-responsive-init' ) ) {
|
377 |
continue;
|
378 |
}
|
379 |
+
|
380 |
field.find( '.fl-field-responsive-setting-default ' + selector ).on( event, callback );
|
381 |
field.find( '.fl-field-responsive-setting-medium ' + selector ).on( event, callback );
|
382 |
field.find( '.fl-field-responsive-setting-responsive ' + selector ).on( event, callback );
|
384 |
field.attr( 'data-responsive-init', 1 );
|
385 |
}
|
386 |
},
|
387 |
+
|
388 |
/**
|
389 |
* Returns the fields object for an element.
|
390 |
*
|
398 |
_getFields: function( element, selector )
|
399 |
{
|
400 |
var field = $( element ).closest( '.fl-field' );
|
401 |
+
|
402 |
return {
|
403 |
'default' : field.find( '.fl-field-responsive-setting-default ' + selector ),
|
404 |
'medium' : field.find( '.fl-field-responsive-setting-medium ' + selector ),
|
405 |
'responsive' : field.find( '.fl-field-responsive-setting-responsive ' + selector )
|
406 |
};
|
407 |
},
|
408 |
+
|
409 |
/**
|
410 |
* Callback for the keyup event on a text field.
|
411 |
*
|
419 |
defaultPlaceholder = fields.default.attr( 'placeholder' ),
|
420 |
defaultValue = fields.default.val(),
|
421 |
mediumValue = fields.medium.val();
|
422 |
+
|
423 |
// Medium placeholder
|
424 |
if ( '' == defaultValue ) {
|
425 |
fields.medium.attr( 'placeholder', ( undefined === defaultPlaceholder ? '' : defaultPlaceholder ) );
|
427 |
else {
|
428 |
fields.medium.attr( 'placeholder', defaultValue );
|
429 |
}
|
430 |
+
|
431 |
// Responsive placeholder
|
432 |
if ( '' == mediumValue ) {
|
433 |
fields.responsive.attr( 'placeholder', fields.medium.attr( 'placeholder' ) );
|
436 |
fields.responsive.attr( 'placeholder', mediumValue );
|
437 |
}
|
438 |
},
|
439 |
+
|
440 |
/**
|
441 |
* Callback for the keyup event on a spacing field.
|
442 |
*
|
462 |
responsiveGlobalVal = null,
|
463 |
moduleGlobalVal = null,
|
464 |
moduleResponsiveVal = null;
|
465 |
+
|
466 |
// Get the node type
|
467 |
if ( form.hasClass( 'fl-builder-row-settings' ) ) {
|
468 |
type = 'row';
|
473 |
else if ( form.hasClass( 'fl-builder-module-settings' ) ) {
|
474 |
type = 'module';
|
475 |
}
|
476 |
+
|
477 |
// Spoof global column defaults.
|
478 |
$.extend( config, {
|
479 |
col_margins : 0,
|
483 |
col_padding_medium : '',
|
484 |
col_padding_responsive : ''
|
485 |
} );
|
486 |
+
|
487 |
// Set the global values
|
488 |
configPrefix = type + '_' + field + ( 'margin' == field ? 's' : '' );
|
489 |
defaultGlobalVal = config[ configPrefix ];
|
490 |
mediumGlobalVal = config[ configPrefix + '_medium' ];
|
491 |
responsiveGlobalVal = config[ configPrefix + '_responsive' ];
|
492 |
+
|
493 |
// Medium value
|
494 |
if ( '' == mediumGlobalVal ) {
|
495 |
+
|
496 |
if ( '' != defaultVal ) {
|
497 |
fields.medium.attr( 'placeholder', defaultVal );
|
498 |
}
|
500 |
fields.medium.attr( 'placeholder', defaultGlobalVal );
|
501 |
}
|
502 |
}
|
503 |
+
|
504 |
// Responsive value
|
505 |
if ( '' == responsiveGlobalVal ) {
|
506 |
+
|
507 |
if ( 'module' == type && Number( config.auto_spacing ) ) {
|
508 |
+
|
509 |
moduleGlobalVal = '' == mediumGlobalVal ? Number( defaultGlobalVal ) : mediumGlobalVal;
|
510 |
moduleResponsiveVal = '' == mediumVal ? Number( defaultVal ) : mediumVal;
|
511 |
+
|
512 |
if ( '' != moduleResponsiveVal && ( moduleResponsiveVal > moduleGlobalVal || moduleResponsiveVal < 0 ) ) {
|
513 |
fields.responsive.attr( 'placeholder', moduleGlobalVal );
|
514 |
}
|
519 |
fields.responsive.attr( 'placeholder', moduleGlobalVal );
|
520 |
}
|
521 |
}
|
522 |
+
else if ( ! Number( config.auto_spacing ) || ( 'padding' == field && 'top|bottom'.indexOf( dimension ) > -1 ) ) {
|
523 |
+
|
524 |
if ( '' != mediumVal ) {
|
525 |
fields.responsive.attr( 'placeholder', mediumVal );
|
526 |
}
|
536 |
}
|
537 |
}
|
538 |
},
|
539 |
+
|
540 |
/**
|
541 |
+
* Callback for when the responsive preview changes
|
542 |
* to live preview CSS for spacing fields.
|
543 |
*
|
544 |
* @since 1.9
|
549 |
{
|
550 |
var mode = FLBuilderResponsiveEditing._mode,
|
551 |
form = $( '.fl-builder-settings' );
|
552 |
+
|
553 |
if ( 0 === form.length || undefined === form.attr( 'data-node' ) ) {
|
554 |
return;
|
555 |
}
|
556 |
+
|
557 |
form.find( '.fl-field' ).has( '.fl-field-responsive-setting' ).each( function() {
|
558 |
+
|
559 |
var fields = FLBuilderResponsiveEditing._getFields( this, 'input' ),
|
560 |
preview = fields.responsive.closest( '.fl-field' ).data( 'preview' );
|
561 |
+
|
562 |
if ( 'refresh' == preview.type ) {
|
563 |
return;
|
564 |
}
|
565 |
+
|
566 |
fields[ mode ].trigger( 'keyup' );
|
567 |
} );
|
568 |
},
|
569 |
};
|
570 |
+
|
571 |
$( function() { FLBuilderResponsiveEditing._init() } );
|
572 |
+
|
573 |
+
} )( jQuery );
|
js/fl-builder.js
CHANGED
@@ -452,6 +452,7 @@
|
|
452 |
});
|
453 |
|
454 |
FLBuilder._lightbox.on('close', FLBuilder._lightboxClosed);
|
|
|
455 |
|
456 |
/* Actions lightbox */
|
457 |
FLBuilder._actionsLightbox = new FLLightbox({
|
@@ -6220,6 +6221,8 @@
|
|
6220 |
library : { type : 'image' },
|
6221 |
multiple: false
|
6222 |
});
|
|
|
|
|
6223 |
}
|
6224 |
},
|
6225 |
|
@@ -6521,6 +6524,9 @@
|
|
6521 |
library : { type : 'video' },
|
6522 |
multiple: false
|
6523 |
});
|
|
|
|
|
|
|
6524 |
}
|
6525 |
|
6526 |
FLBuilder._singleVideoSelector.once('select', $.proxy(FLBuilder._singleVideoSelected, this));
|
@@ -7033,6 +7039,28 @@
|
|
7033 |
tinyMCEPreInit.mceInit[ id ] = newEditor;
|
7034 |
},
|
7035 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7036 |
/**
|
7037 |
* Updates all editor fields within a settings form.
|
7038 |
*
|
@@ -7460,8 +7488,18 @@
|
|
7460 |
*/
|
7461 |
_btoa: function(str) {
|
7462 |
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
|
7463 |
-
|
7464 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7465 |
},
|
7466 |
|
7467 |
/* Lightboxes
|
452 |
});
|
453 |
|
454 |
FLBuilder._lightbox.on('close', FLBuilder._lightboxClosed);
|
455 |
+
FLBuilder._lightbox.on('beforeClose', FLBuilder._destroyEditorFields);
|
456 |
|
457 |
/* Actions lightbox */
|
458 |
FLBuilder._actionsLightbox = new FLLightbox({
|
6221 |
library : { type : 'image' },
|
6222 |
multiple: false
|
6223 |
});
|
6224 |
+
FLBuilder._singlePhotoSelector.on( 'open', FLBuilder._wpmedia_reset_errors );
|
6225 |
+
_wpPluploadSettings['defaults']['multipart_params']['fl_upload_type']= 'photo';
|
6226 |
}
|
6227 |
},
|
6228 |
|
6524 |
library : { type : 'video' },
|
6525 |
multiple: false
|
6526 |
});
|
6527 |
+
|
6528 |
+
FLBuilder._singleVideoSelector.on( 'open', FLBuilder._wpmedia_reset_errors );
|
6529 |
+
_wpPluploadSettings['defaults']['multipart_params']['fl_upload_type']= 'video';
|
6530 |
}
|
6531 |
|
6532 |
FLBuilder._singleVideoSelector.once('select', $.proxy(FLBuilder._singleVideoSelected, this));
|
7039 |
tinyMCEPreInit.mceInit[ id ] = newEditor;
|
7040 |
},
|
7041 |
|
7042 |
+
/**
|
7043 |
+
* Destroy all TinyMCE editors.
|
7044 |
+
*
|
7045 |
+
* @since 1.10.8
|
7046 |
+
* @method _destroyEditorFields
|
7047 |
+
*/
|
7048 |
+
_destroyEditorFields: function()
|
7049 |
+
{
|
7050 |
+
var i, id;
|
7051 |
+
|
7052 |
+
if ( 'undefined' === typeof tinymce ) {
|
7053 |
+
return;
|
7054 |
+
}
|
7055 |
+
|
7056 |
+
for ( i = tinymce.editors.length - 1; i > -1 ; i-- ) {
|
7057 |
+
tinyMCE.execCommand( 'mceRemoveEditor', true, tinymce.editors[ i ].id );
|
7058 |
+
}
|
7059 |
+
|
7060 |
+
$( '.wplink-autocomplete' ).remove();
|
7061 |
+
$( '.ui-helper-hidden-accessible' ).remove();
|
7062 |
+
},
|
7063 |
+
|
7064 |
/**
|
7065 |
* Updates all editor fields within a settings form.
|
7066 |
*
|
7488 |
*/
|
7489 |
_btoa: function(str) {
|
7490 |
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
|
7491 |
+
return String.fromCharCode('0x' + p1);
|
7492 |
+
}));
|
7493 |
+
},
|
7494 |
+
|
7495 |
+
/**
|
7496 |
+
* @since 1.10.8
|
7497 |
+
* @access private
|
7498 |
+
* @method _wpmedia_reset_errors
|
7499 |
+
*/
|
7500 |
+
_wpmedia_reset_errors: function() {
|
7501 |
+
$('.upload-error').remove()
|
7502 |
+
$('.media-uploader-status' ).removeClass( 'errors' ).hide()
|
7503 |
},
|
7504 |
|
7505 |
/* Lightboxes
|
js/fl-builder.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(e){FLLightbox=function(e){this._init(e),this._render(),this._bind()},FLLightbox.closeParent=function(t){var l=e(t).closest(".fl-lightbox-wrap").attr("data-instance-id");FLLightbox._instances[l].close()},FLLightbox._instances={},FLLightbox.prototype={_id:null,_node:null,_visible:!1,_resizeTimer:null,_draggable:!1,_defaults:{className:"",destroyOnClose:!1},open:function(e){this._node.find(".fl-lightbox").attr("style",""),this._node.show(),this._visible=!0,"undefined"!=typeof e?this.setContent(e):this._resize(),this.trigger("open")},close:function(){this._node.hide(),this._visible=!1,this.trigger("close"),this._defaults.destroyOnClose&&this.destroy()},setContent:function(e){this._node.find(".fl-lightbox-content").html(e),this._resize()},empty:function(){this._node.find(".fl-lightbox-content").empty(),this._node.find(".fl-lightbox").removeClass("fl-lightbox-expanded")},on:function(e,t){this._node.on(e,t)},off:function(e){this._node.off(e)},trigger:function(e,t){this._node.trigger(e,t)},draggable:function(e){var t=this._node.find(".fl-lightbox-mask"),l=this._node.find(".fl-lightbox");e="undefined"!=typeof e&&e,this._draggable&&l.draggable("destroy"),e?(this._unbind(),this._draggable=!0,t.hide(),l.draggable({cursor:"move",handle:e.handle||""})):(t.show(),this._bind(),this._draggable=!1),this._resize()},destroy:function(){e(window).off("resize.fl-lightbox-"+this._id),this._node.empty(),this._node.remove(),FLLightbox._instances[this._id]="undefined";try{delete FLLightbox._instances[this._id]}catch(t){}},renderResize:function(t){if("undefined"!=typeof t){var l=this._getActiveNode();if(lightbox=l.find(".fl-lightbox"),boxFields=lightbox.find(".fl-builder-settings-fields"),win=e(window),winHeight=win.height(),winWidth=win.width(),boxHeaderHeight=lightbox.find(".fl-lightbox-header").height(),boxTabsHeight=lightbox.find(".fl-builder-settings-tabs").height(),boxFooterHeight=lightbox.find(".fl-lightbox-footer").height(),boxFieldHeight=winHeight-(boxHeaderHeight+boxTabsHeight+boxFooterHeight+103),editor="undefined"!=typeof tinymce&&tinymce.EditorManager.activeEditor?tinymce:null,editorId=editor?editor.EditorManager.activeEditor.id:"flhiddeneditor",editorIframeEl=lightbox.find("#"+editorId+"_ifr"),editorTextarea=lightbox.find("#"+editorId),codeField=lightbox.find(".fl-code-field .ace_editor"),"expand"==t||"window_resize"==t){if("window_resize"==t&&!lightbox.hasClass("fl-lightbox-expanded"))return!1;boxFields.css("height",boxFieldHeight+"px"),"expand"==t&&(lightbox.addClass("fl-lightbox-expanded"),lightbox.draggable("disable")),editorIframeEl.length>0&&editorIframeEl.css("height",boxFieldHeight-145+"px"),editorTextarea.length>0&&editorTextarea.css("height",boxFieldHeight-145+"px"),codeField.length>0&&codeField.css("height",boxFieldHeight-60+"px")}else setTimeout(e.proxy(this._resize,this),250),lightbox.removeClass("fl-lightbox-expanded"),boxFields.removeAttr("style"),null!==editorId&&(editorIframeEl.css("height","232px"),editorTextarea.css("height","232px")),codeField.length>0&&codeField.css("height","360px"),lightbox.draggable("enable")}},_init:function(t){var l=0,i=null;for(i in FLLightbox._instances)l++;this._defaults=e.extend({},this._defaults,t),this._id=(new Date).getTime()+l,FLLightbox._instances[this._id]=this},_render:function(){this._node=e('<div class="fl-lightbox-wrap" data-instance-id="'+this._id+'"><div class="fl-lightbox-mask"></div><div class="fl-lightbox"><div class="fl-lightbox-content-wrap"><div class="fl-lightbox-content"></div></div></div></div>'),this._node.addClass(this._defaults.className),e("body").append(this._node)},_bind:function(){e(window).on("resize.fl-lightbox-"+this._id,e.proxy(this._delayedResize,this))},_unbind:function(){e(window).off("resize.fl-lightbox-"+this._id)},_delayedResize:function(){clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(e.proxy(this._resize,this),250),this.renderResize("window_resize")},_resize:function(){if(this._visible){var t=this._node.find(".fl-lightbox"),l=t.height(),i=t.width(),o=e(window),s=o.height(),r=o.width(),n="0px",a=(r-i)/2-30+"px";t.css({margin:"0px",top:"auto",left:"auto"}),s-80>l&&(n=(s-l)/2-40+"px"),this._draggable?(t.css("top",n),t.css("left",FLBuilderConfig.isRtl?"-"+a:a)):(t.css("margin-top",n),t.css("margin-left","auto"),t.css("margin-right","auto"))}},_onKeypress:function(e){27==e.which&&this._visible&&this.close()},_getActiveNode:function(){var t=this._node;return e.each(FLLightbox._instances,function(l,i){e(i._node).is(":visible")&&(t=e(i._node))}),t}}}(jQuery),function(e){FLBuilder={preview:null,_actionsLightbox:null,_addModuleAfterNodeRender:null,_colResizeData:null,_colResizing:!1,_contentClass:!1,_dragEnabled:!1,_dragging:!1,_dragInitialScrollTop:0,_exitUrl:null,_layout:null,_layoutSettingsCSSCache:null,_layoutSettingsCSSTimeout:null,_lightbox:null,_lightboxScrollbarTimeout:null,_loadedModuleAssets:[],_moduleHelpers:{},_multiplePhotoSelector:null,_newColGroupParent:null,_newColGroupPosition:0,_newModuleParent:null,_newModulePosition:0,_newRowPosition:0,_selectedTemplateId:null,_selectedTemplateType:null,_singlePhotoSelector:null,_singleVideoSelector:null,_multipleAudiosSelector:null,_init:function(){FLBuilder._initJQueryReadyFix(),FLBuilder._initGlobalErrorHandling(),FLBuilder._initPostLock(),FLBuilder._initClassNames(),FLBuilder._initMediaUploader(),FLBuilder._initOverflowFix(),FLBuilder._initScrollbars(),FLBuilder._initLightboxes(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._initStrings(),FLBuilder._initTipTips(),FLBuilder._bindEvents(),FLBuilder._bindOverlayEvents(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._showTourOrTemplates()},_initJQueryReadyFix:function(){FLBuilderConfig.debug||(jQuery.fn.oldReady=jQuery.fn.ready,jQuery.fn.ready=function(e){return jQuery.fn.oldReady(function(){try{"function"==typeof e&&e()}catch(t){FLBuilder.logError(t)}})})},_initGlobalErrorHandling:function(){FLBuilderConfig.debug||(window.onerror=function(e,t,l,i,o){return FLBuilder.logGlobalError(e,t,l,i,o),!0})},_initPostLock:function(){"undefined"!=typeof wp.heartbeat&&(wp.heartbeat.interval(30),wp.heartbeat.enqueue("fl_builder_post_lock",{post_id:FLBuilderConfig.postId}))},_initClassNames:function(){e("html").addClass("fl-builder-edit"),e("body").addClass("fl-builder"),FLBuilderConfig.simpleUi&&e("body").addClass("fl-builder-simple"),FLBuilder._contentClass=".fl-builder-content-"+FLBuilderConfig.postId,e(FLBuilder._contentClass).addClass("fl-builder-content-editing")},_initMediaUploader:function(){wp.media.model.settings.post.id=FLBuilderConfig.postId},_initOverflowFix:function(){e(FLBuilder._contentClass).parents().css("overflow","visible")},_initScrollbars:function(){e(".fl-nanoscroller").nanoScroller({alwaysVisible:!0,preventPageScrolling:!0,paneClass:"fl-nanoscroller-pane",sliderClass:"fl-nanoscroller-slider",contentClass:"fl-nanoscroller-content"})},_initLightboxes:function(){FLBuilder._lightbox=new FLLightbox({className:"fl-builder-lightbox fl-builder-settings-lightbox"}),FLBuilder._lightbox.on("close",FLBuilder._lightboxClosed),FLBuilder._actionsLightbox=new FLLightbox({className:"fl-builder-actions-lightbox"})},_initSortables:function(){var t={appendTo:"body",cursor:"move",cursorAt:{left:60,top:20},distance:1,helper:FLBuilder._blockDragHelper,start:FLBuilder._blockDragStart,sort:FLBuilder._blockDragSort,change:FLBuilder._blockDragChange,stop:FLBuilder._blockDragStop,placeholder:"fl-builder-drop-zone",tolerance:"intersect"},l="",i="";i="row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-col-content":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-node-global) .fl-col-content",l=FLBuilderConfig.nestedColumns?i:"row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target",e(".fl-builder-rows").sortable(e.extend({},t,{connectWith:l,items:".fl-builder-block-row",stop:FLBuilder._rowDragStop})),e(".fl-builder-row-templates").sortable(e.extend({},t,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-row-template",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-rows").sortable(e.extend({},t,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-saved-row",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-modules, .fl-builder-widgets").sortable(e.extend({},t,{connectWith:i,items:".fl-builder-block-module",stop:FLBuilder._moduleDragStop})),e(".fl-builder-module-templates").sortable(e.extend({},t,{connectWith:i,items:".fl-builder-block-module-template",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-modules").sortable(e.extend({},t,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:i,items:".fl-builder-block-saved-module",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-row-sortable-proxy").sortable(e.extend({},t,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",helper:FLBuilder._rowDragHelper,start:FLBuilder._rowDragStart,stop:FLBuilder._rowDragStop})),e(".fl-col-sortable-proxy").sortable(e.extend({},t,{connectWith:i,helper:FLBuilder._colDragHelper,start:FLBuilder._colDragStart,stop:FLBuilder._colDragStop})),e(FLBuilder._contentClass+" .fl-col-content").sortable(e.extend({},t,{connectWith:i,handle:".fl-module-overlay .fl-block-overlay-actions .fl-block-move",helper:FLBuilder._moduleDragHelper,items:".fl-module, .fl-col-group",start:FLBuilder._moduleDragStart,stop:FLBuilder._moduleDragStop})),e(FLBuilder._contentClass+" .fl-row-drop-target").sortable(t),e(FLBuilder._contentClass+" .fl-col-group-drop-target").sortable(t),e(FLBuilder._contentClass+" .fl-col-drop-target").sortable(t)},_initStrings:function(){e.validator.messages.required=FLBuilderStrings.validateRequiredMessage},_bindEvents:function(){e("a").on("click",FLBuilder._preventDefault),e(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),e(document).on("heartbeat-tick",FLBuilder._initPostLock),e(window).on("beforeunload",FLBuilder._warnBeforeUnload),e("body").delegate(".fl-builder-has-submenu","click",FLBuilder._submenuParentClicked),e("body").delegate(".fl-builder-has-submenu a","click",FLBuilder._submenuChildClicked),e("body").delegate(".fl-builder-submenu","mouseenter",FLBuilder._submenuMouseenter),e("body").delegate(".fl-builder-submenu","mouseleave",FLBuilder._submenuMouseleave),e("body").delegate(".fl-builder-submenu .fl-builder-has-submenu","mouseenter",FLBuilder._submenuNestedParentMouseenter),e(".fl-builder-tools-button").on("click",FLBuilder._toolsClicked),e(".fl-builder-done-button").on("click",FLBuilder._doneClicked),e(".fl-builder-add-content-button").on("click",FLBuilder._showPanel),e(".fl-builder-templates-button").on("click",FLBuilder._changeTemplateClicked),e(".fl-builder-buy-button").on("click",FLBuilder._upgradeClicked),e(".fl-builder-upgrade-button").on("click",FLBuilder._upgradeClicked),e(".fl-builder-help-button").on("click",FLBuilder._helpButtonClicked),e(".fl-builder-panel-actions .fl-builder-panel-close").on("click",FLBuilder._closePanel),e(".fl-builder-blocks-section-title").on("click",FLBuilder._blockSectionTitleClicked),e("body").delegate(".fl-builder-node-template-actions","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-edit","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-delete","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-edit","click",FLBuilder._editNodeTemplateClicked),e("body").delegate(".fl-builder-node-template-delete","click",FLBuilder._deleteNodeTemplateClicked),e("body").delegate(".fl-builder-block","mousedown",FLBuilder._blockDragInit),e("body").on("mouseup",FLBuilder._blockDragCancel),e("body").delegate(".fl-builder-actions .fl-builder-cancel-button","click",FLBuilder._cancelButtonClicked),e("body").delegate(".fl-lightbox-controls .fa","click",FLBuilder._resizeLightbox),e("body").delegate(".fl-builder-save-actions .fl-builder-publish-button","click",FLBuilder._publishButtonClicked),e("body").delegate(".fl-builder-save-actions .fl-builder-draft-button","click",FLBuilder._draftButtonClicked),e("body").delegate(".fl-builder-save-actions .fl-builder-discard-button","click",FLBuilder._discardButtonClicked),e("body").delegate(".fl-builder-save-user-template-button","click",FLBuilder._saveUserTemplateClicked),e("body").delegate(".fl-builder-duplicate-layout-button","click",FLBuilder._duplicateLayoutClicked),e("body").delegate(".fl-builder-layout-settings-button","click",FLBuilder._layoutSettingsClicked),e("body").delegate(".fl-builder-layout-settings .fl-builder-settings-save","click",FLBuilder._saveLayoutSettingsClicked),e("body").delegate(".fl-builder-layout-settings .fl-builder-settings-cancel","click",FLBuilder._cancelLayoutSettingsClicked),e("body").delegate(".fl-builder-global-settings-button","click",FLBuilder._globalSettingsClicked),e("body").delegate(".fl-builder-global-settings .fl-builder-settings-save","click",FLBuilder._saveGlobalSettingsClicked),e("body").delegate(".fl-builder-global-settings .fl-builder-settings-cancel","click",FLBuilder._cancelLayoutSettingsClicked),e("body").delegate(".fl-template-category-select","change",FLBuilder._templateCategoryChanged),e("body").delegate(".fl-template-preview","click",FLBuilder._templateClicked),e("body").delegate(".fl-user-template","click",FLBuilder._userTemplateClicked),e("body").delegate(".fl-user-template-edit","click",FLBuilder._editUserTemplateClicked),e("body").delegate(".fl-user-template-delete","click",FLBuilder._deleteUserTemplateClicked),e("body").delegate(".fl-builder-template-replace-button","click",FLBuilder._templateReplaceClicked),e("body").delegate(".fl-builder-template-append-button","click",FLBuilder._templateAppendClicked),e("body").delegate(".fl-builder-template-actions .fl-builder-cancel-button","click",FLBuilder._templateCancelClicked),e("body").delegate(".fl-builder-user-template-settings .fl-builder-settings-save","click",FLBuilder._saveUserTemplateSettings),e("body").delegate(".fl-builder-help-tour-button","click",FLBuilder._startHelpTour),e("body").delegate(".fl-builder-help-video-button","click",FLBuilder._watchVideoClicked),e("body").delegate(".fl-builder-knowledge-base-button","click",FLBuilder._viewKnowledgeBaseClicked),e("body").delegate(".fl-builder-forums-button","click",FLBuilder._visitForumsClicked),e("body").delegate(".fl-builder-no-tour-button","click",FLBuilder._noTourButtonClicked),e("body").delegate(".fl-builder-yes-tour-button","click",FLBuilder._yesTourButtonClicked),e("body").delegate(".fl-builder-alert-close","click",FLBuilder._alertClose),e("body").delegate(".fl-row-overlay .fl-block-remove","click",FLBuilder._deleteRowClicked),e("body").delegate(".fl-row-overlay .fl-block-copy","click",FLBuilder._rowCopyClicked),e("body").delegate(".fl-row-overlay .fl-block-move","mousedown",FLBuilder._rowDragInit),e("body").delegate(".fl-row-overlay .fl-block-settings","click",FLBuilder._rowSettingsClicked),e("body").delegate(".fl-row-overlay","click",FLBuilder._rowSettingsClicked),e("body").delegate(".fl-builder-row-settings .fl-builder-settings-save","click",FLBuilder._saveSettings),e("body").delegate(".fl-col-overlay .fl-block-move","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-col-overlay .fl-block-remove","click",FLBuilder._deleteColClicked),e("body").delegate(".fl-col-overlay","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-builder-col-settings .fl-builder-settings-save","click",FLBuilder._saveSettings),e("body").delegate(".fl-block-col-submenu .fl-block-col-move","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-submenu .fl-block-col-edit","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-block-col-submenu .fl-block-col-delete","click",FLBuilder._deleteColClicked),e("body").delegate(".fl-block-col-submenu .fl-block-col-reset","click",FLBuilder._resetColumnWidthsClicked),e("body").delegate(".fl-block-col-submenu li","mouseenter",FLBuilder._showColHighlightGuide),e("body").delegate(".fl-block-col-submenu li","mouseleave",FLBuilder._removeColHighlightGuides),e("body").delegate(".fl-block-col-submenu .fl-block-col-move-parent","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-submenu .fl-block-col-edit-parent","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-module-overlay .fl-block-remove","click",FLBuilder._deleteModuleClicked),e("body").delegate(".fl-module-overlay .fl-block-copy","click",FLBuilder._moduleCopyClicked),e("body").delegate(".fl-module-overlay .fl-block-move","mousedown",FLBuilder._blockDragInit),e("body").delegate(".fl-module-overlay .fl-block-settings","click",FLBuilder._moduleSettingsClicked),e("body").delegate(".fl-module-overlay","click",FLBuilder._moduleSettingsClicked),e("body").delegate(".fl-builder-module-settings .fl-builder-settings-save","click",FLBuilder._saveModuleClicked),e("body").delegate(".fl-builder-settings-save-as","click",FLBuilder._showNodeTemplateSettings),e("body").delegate(".fl-builder-node-template-settings .fl-builder-settings-save","click",FLBuilder._saveNodeTemplate),e("body").delegate(".fl-builder-settings-tabs a","click",FLBuilder._settingsTabClicked),e("body").delegate(".fl-builder-settings-cancel","click",FLBuilder._settingsCancelClicked),e("body").delegate(".fl-help-tooltip-icon","mouseover",FLBuilder._showHelpTooltip),e("body").delegate(".fl-help-tooltip-icon","mouseout",FLBuilder._hideHelpTooltip),e("body").delegate(".fl-builder-field-add","click",FLBuilder._addFieldClicked),e("body").delegate(".fl-builder-field-copy","click",FLBuilder._copyFieldClicked),e("body").delegate(".fl-builder-field-delete","click",FLBuilder._deleteFieldClicked),e("body").delegate(".fl-builder-settings-fields select","change",FLBuilder._settingsSelectChanged),e("body").delegate(".fl-photo-field .fl-photo-select","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-edit","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-replace","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-remove","click",FLBuilder._singlePhotoRemoved),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-select","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-edit","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-add","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-video-field .fl-video-select","click",FLBuilder._selectSingleVideo),e("body").delegate(".fl-video-field .fl-video-replace","click",FLBuilder._selectSingleVideo),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-select","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-edit","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-add","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-icon-field .fl-icon-select","click",FLBuilder._selectIcon),e("body").delegate(".fl-icon-field .fl-icon-replace","click",FLBuilder._selectIcon),e("body").delegate(".fl-icon-field .fl-icon-remove","click",FLBuilder._removeIcon),e("body").delegate(".fl-form-field .fl-form-field-edit","click",FLBuilder._formFieldClicked),e("body").delegate(".fl-form-field-settings .fl-builder-settings-save","click",FLBuilder._saveFormFieldClicked),e("body").delegate(".fl-layout-field-option","click",FLBuilder._layoutFieldClicked),e("body").delegate(".fl-link-field-select","click",FLBuilder._linkFieldSelectClicked),e("body").delegate(".fl-link-field-search-cancel","click",FLBuilder._linkFieldSelectCancelClicked),e("body").delegate(".fl-loop-data-source-select select[name=data_source]","change",FLBuilder._loopDataSourceChange),e("body").delegate(".fl-custom-query select[name=post_type]","change",FLBuilder._customQueryPostTypeChange),e("body").delegate(".fl-select-add-value","change",FLBuilder._textFieldAddValueSelectChange)},_bindOverlayEvents:function(){var t=e(FLBuilder._contentClass);t.delegate(".fl-row","mouseenter",FLBuilder._rowMouseenter),t.delegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),t.delegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),t.delegate(".fl-col","mouseenter",FLBuilder._colMouseenter),t.delegate(".fl-col","mouseleave",FLBuilder._colMouseleave),t.delegate(".fl-module","mouseenter",FLBuilder._moduleMouseenter),t.delegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_destroyOverlayEvents:function(){var t=e(FLBuilder._contentClass);t.undelegate(".fl-row","mouseenter",FLBuilder._rowMouseenter),t.undelegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),t.undelegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),t.undelegate(".fl-col","mouseenter",FLBuilder._colMouseenter),t.undelegate(".fl-col","mouseleave",FLBuilder._colMouseleave),t.undelegate(".fl-module","mouseenter",FLBuilder._moduleMouseenter),t.undelegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_preventDefault:function(e){e.preventDefault()},_stopPropagation:function(e){e.stopPropagation()},_headerLinkClicked:function(t){var l=e(this),i=l.attr("href");this.hash||(t.preventDefault(),FLBuilderConfig.isUserTemplate||(FLBuilder._exitUrl=i.indexOf("?")>-1?i:i+"?fl_builder",FLBuilder._doneClicked()))},_warnBeforeUnload:function(){var t=e(".fl-builder-row-settings").length>0,l=e(".fl-builder-col-settings").length>0,i=e(".fl-builder-module-settings").length>0;if(t||l||i)return FLBuilderStrings.unloadWarning},_initTipTips:function(){e(".fl-tip:not(.fl-has-tip)").each(function(){var t=e(this);t.addClass("fl-has-tip"),void 0==t.attr("data-title")&&t.attr("data-title",t.attr("title"))}).tipTip({defaultPosition:"top",delay:1500})},_hideTipTips:function(){e("#tiptip_holder").stop().remove()},_submenuParentClicked:function(t){var l=e(this),i=l.find(".fl-builder-submenu");l.hasClass("fl-builder-submenu-open")?(l.removeClass("fl-builder-submenu-open"),l.removeClass("fl-builder-submenu-right")):(l.offset().left+i.width()>e(window).width()&&l.addClass("fl-builder-submenu-right"),l.addClass("fl-builder-submenu-open")),FLBuilder._hideTipTips(),t.preventDefault(),t.stopPropagation()},_submenuChildClicked:function(t){var l=e(this).parents(".fl-builder-has-submenu");l.parents(".fl-builder-has-submenu").length||l.removeClass("fl-builder-submenu-open")},_submenuMouseenter:function(t){var l=e(this),i=l.data("timeout");"undefined"!=typeof i&&clearTimeout(i)},_submenuMouseleave:function(t){var l=e(this),i=setTimeout(function(){l.closest(".fl-builder-has-submenu").removeClass("fl-builder-submenu-open")},500);l.data("timeout",i)},_submenuNestedParentMouseenter:function(t){var l=e(this),i=l.find(".fl-builder-submenu");l.width()+l.offset().left+i.width()>e(window).width()&&l.addClass("fl-builder-submenu-right")},_closeAllSubmenus:function(){e(".fl-builder-submenu-open").removeClass("fl-builder-submenu-open")},_toolsClicked:function(){var e=[],t=FLBuilderConfig.lite,l=FLBuilderConfig.enabledTemplates,i="row"==FLBuilderConfig.userTemplateType,o="module"==FLBuilderConfig.userTemplateType;t||i||o||"enabled"!=l&&"user"!=l||(e[10]={key:"save-user-template",label:FLBuilderStrings.saveTemplate}),FLBuilderConfig.isUserTemplate?"undefined"!=typeof window.opener&&window.opener||(e[20]={key:"duplicate-layout",label:FLBuilderStrings.duplicateLayout}):e[20]={key:"duplicate-layout",label:FLBuilderStrings.duplicateLayout},e[30]={key:"layout-settings",label:FLBuilderStrings.editLayoutSettings},e[40]={key:"global-settings",label:FLBuilderStrings.editGlobalSettings},FLBuilder._showActionsLightbox({className:"fl-builder-tools-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_doneClicked:function(){var e=[],t=FLBuilderStrings.publish;"publish"==FLBuilderConfig.postStatus||FLBuilderConfig.userCanPublish||(t=FLBuilderStrings.submitForReview),e[10]={key:"publish",label:t},e[20]={key:"draft",label:FLBuilderStrings.draft},e[30]={key:"discard",label:FLBuilderStrings.discard},FLBuilder._showActionsLightbox({className:"fl-builder-save-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_upgradeClicked:function(){window.open(FLBuilderConfig.upgradeUrl)},_helpButtonClicked:function(){var e={};FLBuilderConfig.help.tour&&(e[10]={key:"help-tour",label:FLBuilderStrings.takeHelpTour}),FLBuilderConfig.help.video&&(e[20]={key:"help-video",label:FLBuilderStrings.watchHelpVideo}),FLBuilderConfig.help.knowledge_base&&(e[30]={key:"knowledge-base",label:FLBuilderStrings.viewKnowledgeBase}),FLBuilderConfig.help.forums&&(e[40]={key:"forums",label:FLBuilderStrings.visitForums}),FLBuilder._showActionsLightbox({className:"fl-builder-help-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_closePanel:function(){e(".fl-builder-panel").stop(!0,!0).animate({right:"-350px"},500,function(){e(this).hide()}),e(".fl-builder-bar .fl-builder-add-content-button").stop(!0,!0).fadeIn(),FLBuilder.triggerHook("hideContentPanel")},_showPanel:function(){e(".fl-builder-bar .fl-builder-add-content-button").stop(!0,!0).fadeOut(),e(".fl-builder-panel").stop(!0,!0).show().animate({right:"0"},500),FLBuilder.triggerHook("showContentPanel")},_blockSectionTitleClicked:function(){var t=e(this),l=t.parent();l.hasClass("fl-active")?l.removeClass("fl-active"):(e(".fl-builder-blocks-section").removeClass("fl-active"),l.addClass("fl-active")),FLBuilder._initScrollbars()},_publishButtonClicked:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_layout"},FLBuilder._exit),FLBuilder._actionsLightbox.close()},_draftButtonClicked:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_draft"},FLBuilder._exit),FLBuilder._actionsLightbox.close()},_discardButtonClicked:function(){var e=confirm(FLBuilderStrings.discardMessage);e&&(FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"clear_draft_layout"},FLBuilder._exit),FLBuilder._actionsLightbox.close())},_cancelButtonClicked:function(){FLBuilder._exitUrl=null,FLBuilder._actionsLightbox.close()},_exit:function(){var e=window.location.href;FLBuilderConfig.isUserTemplate&&"undefined"!=typeof window.opener&&window.opener?("undefined"!=typeof window.opener.FLBuilder&&window.opener.FLBuilder._updateLayout(),window.close()):(FLBuilder._exitUrl?e=FLBuilder._exitUrl:(e=e.replace("?fl_builder&","?"),e=e.replace("?fl_builder",""),e=e.replace("&fl_builder","")),window.location.href=e)},_duplicateLayoutClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"duplicate_post"},FLBuilder._duplicateLayoutComplete)},_duplicateLayoutComplete:function(e){var t=FLBuilderConfig.adminUrl;window.location.href=t+"post.php?post="+e+"&action=edit"},_layoutSettingsClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._showLightbox(),FLBuilder._closePanel(),FLBuilder.ajax({action:"render_layout_settings"},FLBuilder._layoutSettingsLoaded)},_layoutSettingsLoaded:function(e){var t=JSON.parse(e);FLBuilder._setSettingsFormContent(t.html),FLBuilder._layoutSettingsInitCSS()},_layoutSettingsInitCSS:function(){var t=e(".fl-builder-settings #fl-field-css textarea:not(.ace_text-input)");t.on("change",FLBuilder._layoutSettingsCSSChanged),FLBuilder._layoutSettingsCSSCache=t.val()},_layoutSettingsCSSChanged:function(){FLBuilder._layoutSettingsCSSTimeout&&clearTimeout(FLBuilder._layoutSettingsCSSTimeout),FLBuilder._layoutSettingsCSSTimeout=setTimeout(e.proxy(FLBuilder._layoutSettingsCSSDoChange,this),600)},_layoutSettingsCSSDoChange:function(){var t=e(".fl-builder-settings"),l=e(this),i=l.parents("#fl-field-css");i.find(".ace_error").length>0||(t.hasClass("fl-builder-layout-settings")?e("#fl-builder-layout-css").html(l.val()):e("#fl-builder-global-css").html(l.val()),FLBuilder._layoutSettingsCSSTimeout=null)},_saveLayoutSettingsClicked:function(){for(var t=e(this).closest(".fl-builder-settings"),l=t.serializeArray(),i={},o=0;o<l.length;o++)i[l[o].name]=l[o].value;FLBuilder.showAjaxLoader(),FLBuilder._lightbox.close(),FLBuilder._layoutSettingsCSSCache=null,FLBuilder.ajax({action:"save_layout_settings",settings:i},FLBuilder._updateLayout)},_cancelLayoutSettingsClicked:function(){var t=e(".fl-builder-settings");t.hasClass("fl-builder-layout-settings")?e("#fl-builder-layout-css").html(FLBuilder._layoutSettingsCSSCache):e("#fl-builder-global-css").html(FLBuilder._layoutSettingsCSSCache),FLBuilder._layoutSettingsCSSCache=null},_globalSettingsClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_global_settings"},FLBuilder._globalSettingsLoaded)},_globalSettingsLoaded:function(e){var t=JSON.parse(e);FLBuilder._setSettingsFormContent(t.html),FLBuilder._layoutSettingsInitCSS(),FLBuilder._initSettingsValidation({row_width:{required:!0,number:!0},responsive_breakpoint:{required:!0,number:!0},medium_breakpoint:{required:!0,number:!0}})},_saveGlobalSettingsClicked:function(){var t=e(this).closest(".fl-builder-settings"),l=t.validate().form(),i=FLBuilder._getSettings(t);l&&(FLBuilder.showAjaxLoader(),FLBuilder._layoutSettingsCSSCache=null,FLBuilder.ajax({action:"save_global_settings",settings:i},FLBuilder._saveGlobalSettingsComplete),FLBuilder._lightbox.close())},_saveGlobalSettingsComplete:function(e){FLBuilderConfig.global=JSON.parse(e),FLBuilder._updateLayout()},_initTemplateSelector:function(){var t=e(FLBuilder._contentClass).find(".fl-row");0===t.length&&FLBuilder._showTemplateSelector()},_changeTemplateClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._showTemplateSelector()},_showTemplateSelector:function(){FLBuilderConfig.simpleUi||"row"!=FLBuilderConfig.userTemplateType&&"module"!=FLBuilderConfig.userTemplateType&&"disabled"!=FLBuilderConfig.enabledTemplates&&0!==e(".fl-builder-templates-button").length&&(FLBuilder._showLightbox(!1),FLBuilder.ajax({action:"render_template_selector"},FLBuilder._templateSelectorLoaded))},_templateSelectorLoaded:function(t){var l=JSON.parse(t),i=null,o=null;FLBuilder._setLightboxContent(l.html),i=e(".fl-template-category-select"),tabs=e(".fl-builder-settings-tab"),userTemplatesTab=e("#fl-builder-settings-tab-yours"),o=e(".fl-user-template"),("user"==FLBuilderConfig.enabledTemplates||o.length>0||userTemplatesTab.length>0&&1==tabs.length)&&(i.val("fl-builder-settings-tab-yours"),e(".fl-builder-settings-tab").removeClass("fl-active"),e("#fl-builder-settings-tab-yours").addClass("fl-active")),0===o.length&&e(".fl-user-templates-message").show(),e("body").trigger("fl-builder.template-selector-loaded")},_templateCategoryChanged:function(){e(".fl-template-selector .fl-builder-settings-tab").hide(),e("#"+e(this).val()).show()},_templateClicked:function(){var t=e(this),l=t.closest(".fl-template-preview").attr("data-id");e(FLBuilder._contentClass).children(".fl-row").length>0?0==l?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate(0,!1,"core")):(FLBuilder._selectedTemplateId=l,FLBuilder._selectedTemplateType="core",FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(l,!1,"core")},_showTemplateActions:function(){var e=[];e[10]={key:"template-replace",label:FLBuilderStrings.templateReplace},e[20]={key:"template-append",label:FLBuilderStrings.templateAppend},FLBuilder._showActionsLightbox({
|
2 |
-
className:"fl-builder-template-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_templateReplaceClicked:function(){confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._actionsLightbox.close(),FLBuilder._applyTemplate(FLBuilder._selectedTemplateId,!1,FLBuilder._selectedTemplateType))},_templateAppendClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._applyTemplate(FLBuilder._selectedTemplateId,!0,FLBuilder._selectedTemplateType)},_templateCancelClicked:function(){FLBuilder._lightbox._node.show()},_applyTemplate:function(e,t,l){t="undefined"!=typeof t&&t?"1":"0",l="undefined"==typeof l?"core":l,FLBuilder._lightbox.close(),FLBuilder.showAjaxLoader(),"core"==l?FLBuilder.ajax({action:"apply_template",template_id:e,append:t},FLBuilder._updateLayout):FLBuilder.ajax({action:"apply_user_template",template_id:e,append:t},FLBuilder._updateTemplateLayout)},_updateTemplateLayout:function(t){var l=JSON.parse(t);null!==l&&e("#fl-builder-layout-css").html(l.layout_css),FLBuilder._updateLayout()},_saveUserTemplateClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._showLightbox(!1),FLBuilder.ajax({action:"render_user_template_settings"},FLBuilder._userTemplateSettingsLoaded)},_userTemplateSettingsLoaded:function(e){var t=JSON.parse(e);FLBuilder._setSettingsFormContent(t.html),FLBuilder._initSettingsValidation({name:{required:!0}})},_saveUserTemplateSettings:function(){var t=e(this).closest(".fl-builder-settings"),l=t.validate().form(),i=FLBuilder._getSettings(t);l&&(FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_user_template",settings:i},FLBuilder._saveUserTemplateSettingsComplete),FLBuilder._lightbox.close())},_saveUserTemplateSettingsComplete:function(){FLBuilder.alert(FLBuilderStrings.templateSaved)},_userTemplateClicked:function(){var t=e(this).attr("data-id");e(FLBuilder._contentClass).children(".fl-row").length>0?"blank"==t?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate("blank",!1,"user")):(FLBuilder._selectedTemplateId=t,FLBuilder._selectedTemplateType="user",FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(t,!1,"user")},_editUserTemplateClicked:function(t){t.preventDefault(),t.stopPropagation(),window.open(e(this).attr("href"))},_deleteUserTemplateClicked:function(t){var l=e(this).closest(".fl-user-template"),i=l.attr("data-id"),o=e(".fl-user-template[data-id="+i+"]"),s=null;confirm(FLBuilderStrings.deleteTemplate)&&(FLBuilder.ajax({action:"delete_user_template",template_id:i}),o.fadeOut(function(){l=e(this),s=l.closest(".fl-user-template-category"),l.remove(),0===s.find(".fl-user-template").length&&s.remove(),1===e(".fl-user-template").length&&(e(".fl-user-templates").hide(),e(".fl-user-templates-message").show())})),t.stopPropagation()},_watchVideoClicked:function(){var e=wp.template("fl-video-lightbox");FLBuilder._actionsLightbox.close(),FLBuilder._lightbox.open(e({video:FLBuilderConfig.help.video_embed}))},_viewKnowledgeBaseClicked:function(){FLBuilder._actionsLightbox.close(),window.open(FLBuilderConfig.help.knowledge_base_url)},_visitForumsClicked:function(){FLBuilder._actionsLightbox.close(),window.open(FLBuilderConfig.help.forums_url)},_showTourOrTemplates:function(){FLBuilderConfig.simpleUi||FLBuilderConfig.isUserTemplate||(FLBuilderConfig.help.tour&&FLBuilderConfig.newUser?FLBuilder._showTourLightbox():FLBuilder._initTemplateSelector())},_showTourLightbox:function(){var e=wp.template("fl-tour-lightbox");FLBuilder._actionsLightbox.open(e())},_noTourButtonClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._initTemplateSelector()},_yesTourButtonClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilderTour.start()},_startHelpTour:function(){FLBuilder._actionsLightbox.close(),FLBuilderTour.start()},_setupEmptyLayout:function(){var t=e(FLBuilder._contentClass);FLBuilderConfig.isUserTemplate&&"module"==FLBuilderConfig.userTemplateType||(t.removeClass("fl-builder-empty"),t.find(".fl-builder-empty-message").remove(),0===t.children(".fl-row").length&&(t.addClass("fl-builder-empty"),t.append('<span class="fl-builder-empty-message">'+FLBuilderStrings.emptyMessage+"</span>"),FLBuilder._initSortables()))},_updateLayout:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"render_layout"},FLBuilder._renderLayout)},_renderLayout:function(e,t){FLBuilder._layout=new FLBuilderAJAXLayout(e,t)},_renderLayoutComplete:function(){FLBuilder._layout&&(FLBuilder._layout._complete(),FLBuilder._layout=null)},_resizeLayout:function(){e(window).trigger("resize"),"undefined"!=typeof YUI&&YUI().use("node-event-simulate",function(e){e.one(window).simulate("resize")})},_initMediaElements:function(){var t={};"undefined"!=typeof e.fn.mediaelementplayer&&("undefined"!=typeof _wpmejsSettings&&(t.pluginPath=_wpmejsSettings.pluginPath),e(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").mediaelementplayer(t))},_initDropTargets:function(){var t="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",l=e(FLBuilder._contentClass+" .fl-row"),i=null,o=e(FLBuilder._contentClass+" .fl-row"+t).find(".fl-col-group"),s=null,r=null,n=0;for(e(".fl-col-drop-target").remove(),e(".fl-col-group-drop-target").remove(),e(".fl-row-drop-target").remove(),e(FLBuilder._contentClass).append('<div class="fl-drop-target fl-row-drop-target"></div>'),l.prepend('<div class="fl-drop-target fl-row-drop-target"></div>'),l.append('<div class="fl-drop-target fl-drop-target-last fl-row-drop-target fl-row-drop-target-last"></div>');n<l.length;n++)i=l.eq(n),0===i.find(".fl-col-group").length&&i.find(".fl-row-content").prepend('<div class="fl-drop-target fl-col-group-drop-target"></div>');for(n=0;n<o.length;n++)s=o.eq(n),r=s.find("> .fl-col"),s.hasClass("fl-col-group-nested")||(s.append('<div class="fl-drop-target fl-col-group-drop-target"></div>'),s.append('<div class="fl-drop-target fl-drop-target-last fl-col-group-drop-target fl-col-group-drop-target-last"></div>')),r.append('<div class="fl-drop-target fl-col-drop-target"></div>'),r.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')},_blockDragHelper:function(e,t){var l=t.clone();return t.clone().insertAfter(t),l.addClass("fl-builder-block-drag-helper"),l},_blockDragInit:function(t){var l=e(t.currentTarget),i=null,o=e(window).scrollTop(),s=0;FLBuilder._dragEnabled=!0,FLBuilder._dragInitialScrollTop=o,l.closest("[data-node]").length>0?(i=l.closest("[data-node]"),i.addClass("fl-node-drag-init")):l.hasClass("fl-builder-block")&&e(".fl-row").each(function(){null===i&&e(this).offset().top-o>0&&(i=e(this))}),null!==i&&(s=i.offset().top-o),FLBuilder._highlightRowsAndColsForDrag(l),FLBuilder._adjustColHeightsForDrag(),FLBuilder._disableGlobalRows(),FLBuilder._closePanel(),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays(),FLBuilder._initSortables(),e("body").addClass("fl-builder-dragging"),e(".fl-builder-empty-message").hide(),e(".fl-sortable-disabled").removeClass("fl-sortable-disabled"),s>0&&scrollTo(0,i.offset().top-s)},_blockDragStart:function(t,l){FLBuilder._dragging=!0,e(".fl-node-drag-init").removeClass("fl-node-drag-init")},_blockDragSort:function(t,l){var i=l.placeholder.parent(),o=FLBuilderStrings.insert;FLBuilder._blockPreventSort(l.item,i)||(i.hasClass("fl-col-content")?o=l.item.hasClass("fl-builder-block-row")?l.item.find(".fl-builder-block-title").text():l.item.hasClass("fl-col-sortable-proxy-item")?FLBuilderStrings.column:l.item.hasClass("fl-builder-block-module")?l.item.find(".fl-builder-block-title").text():l.item.hasClass("fl-builder-block-saved-module")||l.item.hasClass("fl-builder-block-module-template")?l.item.find(".fl-builder-block-title").text():l.item.attr("data-name"):i.hasClass("fl-col-drop-target")?o="":i.hasClass("fl-col-group-drop-target")?o="":i.hasClass("fl-row-drop-target")&&(o=l.item.hasClass("fl-builder-block-row")?l.item.find(".fl-builder-block-title").text():l.item.hasClass("fl-builder-block-saved-row")?l.item.find(".fl-builder-block-title").text():l.item.hasClass("fl-row-sortable-proxy-item")?FLBuilderStrings.row:FLBuilderStrings.newRow),l.placeholder.html(o),l.item.hasClass("fl-node-global")||l.item.hasClass("fl-builder-block-global")||e(".fl-node-dragging").hasClass("fl-node-global")?l.placeholder.addClass("fl-builder-drop-zone-global"):l.placeholder.removeClass("fl-builder-drop-zone-global"))},_blockDragChange:function(e,t){t.placeholder.hide(),t.placeholder.fadeIn(100)},_blockPreventSort:function(t,l){var i=!1,o=t.hasClass("fl-builder-block-row"),s=t.hasClass("fl-col-sortable-proxy-item"),r=l.hasClass("fl-col-content"),n=l.hasClass("fl-col-drop-target"),a=l.parents(".fl-col-group:not(.fl-col-group-nested)"),d=l.parents(".fl-col-group-nested");return(o||s)&&r&&d.length>0&&(i=!0),r&&!l.find(".fl-module, .fl-col").length&&(o&&"1-col"==t.data("cols")?i=!0:s&&(i=!0)),o&&r&&e.inArray(t.data("cols"),["5-cols","6-cols"])>-1&&(i=!0),s&&e(".fl-node-dragging").find(".fl-col-group-nested").length>0&&(r||n&&d.length>0)&&(i=!0),n&&a.length>0&&0===d.length&&a.find("> .fl-col:visible").length>11&&(i=!0),n&&d.length>0&&d.find(".fl-col:visible").length>3&&(i=!0),i&&l.addClass("fl-sortable-disabled"),i},_blockDragStop:function(t,l){var i=e(window).scrollTop(),o=l.item.parent(),s=null;o.hasClass("fl-drop-target")&&o.closest("[data-node]").length?(o=o.closest("[data-node]"),s=o.offset().top-i):s=o.offset().top-i,o.hasClass("fl-builder-blocks-section-content")&&FLBuilder._showPanel(),FLBuilder._dragEnabled=!1,FLBuilder._dragging=!1,FLBuilder._bindOverlayEvents(),FLBuilder._highlightEmptyCols(),FLBuilder._enableGlobalRows(),FLBuilder._setupEmptyLayout(),e("body").removeClass("fl-builder-dragging"),scrollTo(0,o.offset().top-s)},_blockDragCancel:function(){FLBuilder._dragEnabled&&!FLBuilder._dragging&&(FLBuilder._dragEnabled=!1,FLBuilder._dragging=!1,FLBuilder._bindOverlayEvents(),FLBuilder._highlightEmptyCols(),FLBuilder._enableGlobalRows(),FLBuilder._setupEmptyLayout(),e("body").removeClass("fl-builder-dragging"),e(".fl-node-drag-init").removeClass("fl-node-drag-init"),e(".fl-node-dragging").removeClass("fl-node-dragging"),scrollTo(0,FLBuilder._dragInitialScrollTop))},_reorderNode:function(e,t){FLBuilder.ajax({action:"reorder_node",node_id:e,position:t})},_moveNode:function(e,t,l){FLBuilder.ajax({action:"move_node",new_parent:e,node_id:t,position:l})},_removeAllOverlays:function(){FLBuilder._removeRowOverlays(),FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._removeModuleOverlays(),FLBuilder._hideTipTips()},_appendOverlay:function(e,t){var l=0,i=null,o=e.hasClass("fl-row"),s=o?e.find("> .fl-row-content-wrap"):e.find("> .fl-node-content"),r={top:parseInt(s.css("margin-top"),10),bottom:parseInt(s.css("margin-bottom"),10)};return e.append(t),e.addClass("fl-block-overlay-active"),FLBuilder._initTipTips(),i=e.find("> .fl-block-overlay"),r.top<0&&(l=parseInt(i.css("top"),10),l=isNaN(l)?0:l,i.css("top",r.top+l+"px")),r.bottom<0&&(l=parseInt(i.css("bottom"),10),l=isNaN(l)?0:l,i.css("bottom",r.bottom+l+"px")),i},_buildOverlayOverflowMenu:function(e){var t=e.find(".fl-block-overlay-actions"),l=t.data("original"),i=0,o=null,s=0,r=null,n=0,a=[],d=[],u=[],c=wp.template("fl-overlay-overflow-menu");for(void 0!=l&&(t.after(l),t.remove(),t=l),t.data("original",t.clone()),i=t[0].getBoundingClientRect().width,o=t.find(" > i, > span.fl-builder-has-submenu");n<o.length;n++)r=o.eq(n),s+=r.outerWidth(),s>i?(d.push(r),r.remove()):a.push(r);if(d.length>0){for(d.unshift(a.pop().remove()),n=0;n<d.length;n++)d[n].is(".fl-builder-has-submenu")?u.push({type:"submenu",label:d[n].find(".fa").data("title"),submenu:d[n].find(".fl-builder-submenu")[0].outerHTML}):u.push({type:"action",label:d[n].data("title"),className:d[n].removeClass(function(e,t){return t.replace(/fl-block-([^\s]+)/,"")}).attr("class")});t.append(c(u)),FLBuilder._initTipTips()}},_removeRowOverlays:function(){e(".fl-row").removeClass("fl-block-overlay-active"),e(".fl-row-overlay").remove(),e(".fl-module").removeClass("fl-module-adjust-height")},_disableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&e(".fl-row.fl-node-global").addClass("fl-node-disabled")},_enableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&e(".fl-node-disabled").removeClass("fl-node-disabled")},_rowMouseenter:function(){var t=e(this),l=t.offset().top,i=null,o=null,s=wp.template("fl-row-overlay");t.closest(".fl-builder-node-loading").length||t.hasClass("fl-block-overlay-active")||(o=FLBuilder._appendOverlay(t,s({global:t.hasClass("fl-node-global"),node:t.attr("data-node")})),t.find(".fl-node-content:visible").each(function(){var t=e(this).offset().top;i=null===i||i>t?t:i}),null!==i&&i<l&&o.css("top",i-l-30+"px"),o.offset().top<43&&o.addClass("fl-row-overlay-header-bottom"),t.find(".fl-module").each(function(){var t=e(this);t.outerHeight(!0)<20&&t.addClass("fl-module-adjust-height")}))},_rowMouseleave:function(t){var l=e(t.toElement)||e(t.relatedTarget),i=l.hasClass("fl-row-overlay"),o=l.closest(".fl-row-overlay").length>0,s=l.is("#tiptip_holder"),r=l.closest("#tiptip_holder").length>0;i||o||s||r||FLBuilder._removeRowOverlays()},_rowDragHelper:function(){return e('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.row+"</div>")},_rowDragInit:function(t){var l=e(t.target),i=e(".fl-row-sortable-proxy-item"),o=l.closest(".fl-row");o.addClass("fl-node-dragging"),FLBuilder._blockDragInit(t),t.target=i[0],i.trigger(t)},_rowDragStart:function(t,l){var i=e(FLBuilder._contentClass+" .fl-row"),o=e(".fl-node-dragging");1===i.length&&e(FLBuilder._contentClass).addClass("fl-builder-empty"),o.hide(),FLBuilder._blockDragStart(t,l)},_rowDragStop:function(t,l){var i=l.item,o=i.parent(),s=null,r=null,n=0;if(FLBuilder._blockDragStop(t,l),o.hasClass("fl-builder-rows"))return void i.remove();if(o.hasClass("fl-row-sortable-proxy"))return void e(".fl-node-dragging").removeClass("fl-node-dragging").show();if(i.hasClass("fl-builder-block")){if(o.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();o.hasClass("fl-col-content")?FLBuilder._addColGroup(i.closest(".fl-col").attr("data-node"),i.attr("data-cols"),o.find("> .fl-module, .fl-col-group, .fl-builder-block").index(i)):o.hasClass("fl-col-drop-target")?FLBuilder._addCols(o.closest(".fl-col"),o.hasClass("fl-col-drop-target-last")?"after":"before",i.attr("data-cols"),o.closest(".fl-col-group-nested").length>0):o.hasClass("fl-col-group-drop-target")?(r=i.closest(".fl-col-group"),n=i.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(r),FLBuilder._addColGroup(i.closest(".fl-row").attr("data-node"),i.attr("data-cols"),o.hasClass("fl-drop-target-last")?n+1:n)):(s=i.closest(".fl-row"),n=s.length?e(FLBuilder._contentClass+" .fl-row").index(s):0,FLBuilder._addRow(i.attr("data-cols"),o.hasClass("fl-drop-target-last")?n+1:n)),i.remove(),FLBuilder._showPanel(),e(".fl-builder-modules").siblings(".fl-builder-blocks-section-title").eq(0).trigger("click")}else s=e(".fl-node-dragging").removeClass("fl-node-dragging").show(),o.parent().hasClass("fl-builder-content")||(o.hasClass("fl-drop-target-last")?o.parent().after(s):o.parent().before(s),FLBuilder._reorderNode(s.attr("data-node"),s.index())),e(".fl-row-sortable-proxy").append(l.item)},_addRow:function(t,l){FLBuilder._showNodeLoadingPlaceholder(e(FLBuilder._contentClass),l),FLBuilder._newRowPosition=l,FLBuilder.ajax({action:"render_new_row",cols:t,position:l},FLBuilder._addRowComplete)},_addRowComplete:function(t){var l=JSON.parse(t),i=e(FLBuilder._contentClass),o=e(l.html).data("node"),s=FLBuilder._addModuleAfterNodeRender;l.nodeParent=i,l.nodePosition=FLBuilder._newRowPosition,FLBuilder._renderLayout(l,function(){null!==s&&(e(".fl-node-"+o+" .fl-col-content").append(s),FLBuilder._reorderModule(s),FLBuilder._addModuleAfterNodeRender=null),FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+o))})},_deleteRowClicked:function(t){var l=e(this).closest(".fl-row"),i=null;l.find(".fl-module").length?(i=confirm(FLBuilderStrings.deleteRowMessage),i&&FLBuilder._deleteRow(l)):FLBuilder._deleteRow(l),FLBuilder._removeAllOverlays(),t.stopPropagation()},_deleteRow:function(e){FLBuilder.ajax({action:"delete_node",node_id:e.attr("data-node")}),e.empty(),e.remove(),FLBuilder._setupEmptyLayout(),FLBuilder._removeRowOverlays()},_rowCopyClicked:function(t){var l=e(this).closest(".fl-row"),i=l.attr("data-node"),o=e(FLBuilder._contentClass+" .fl-row").index(l)+1,s=l.clone();s.addClass("fl-builder-node-clone"),s.attr("data-node",i+"-clone"),s.find(".fl-block-overlay").remove(),l.after(s),FLBuilder._showNodeLoading(i+"-clone"),FLBuilder._newRowPosition=o,FLBuilder.ajax({action:"copy_row",node_id:i},FLBuilder._rowCopyComplete),t.stopPropagation()},_rowCopyComplete:function(t){var l=JSON.parse(t);l.nodeParent=e(FLBuilder._contentClass),l.nodePosition=FLBuilder._newRowPosition,FLBuilder._renderLayout(l,function(){l.nodeParent.find(".fl-builder-node-loading").eq(0).remove()})},_rowSettingsClicked:function(t){var l=e(this),i=l.closest(".fl-row").attr("data-node"),o=l.closest(".fl-block-overlay-global").length>0;o&&"row"!=FLBuilderConfig.userTemplateType?FLBuilderConfig.userCanEditGlobalTemplates&&window.open(e('.fl-row[data-node="'+i+'"]').attr("data-template-url")):l.hasClass("fl-block-settings")&&(FLBuilder._closePanel(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_row_settings",node_id:i},FLBuilder._rowSettingsLoaded)),t.stopPropagation()},_rowSettingsLoaded:function(e){var t=JSON.parse(e);FLBuilder._setSettingsFormContent(t.settings),FLBuilder.preview=new FLBuilderPreview({type:"row",state:t.state})},_highlightEmptyCols:function(){var t="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",l=(e(FLBuilder._contentClass+" .fl-row"+t),e(FLBuilder._contentClass+" .fl-col"+t));e(".fl-row-highlight").removeClass("fl-row-highlight"),l.removeClass("fl-col-highlight").find(".fl-col-content").css("height",""),l.each(function(){var t=e(this);0===t.find(".fl-module, .fl-col").length&&t.addClass("fl-col-highlight")})},_highlightRowsAndColsForDrag:function(t){var l="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)";e(FLBuilder._contentClass+" .fl-row").addClass("fl-row-highlight"),t.closest(".fl-row-overlay").length||e(FLBuilder._contentClass+" .fl-col"+l).addClass("fl-col-highlight")},_adjustColHeightsForDrag:function(){var t="row"==FLBuilderConfig.userTemplateType?"":".fl-row:not(.fl-node-global) ",l=e(FLBuilder._contentClass),i=l.find(t+".fl-col-group:not(.fl-col-group-nested) > .fl-col > .fl-col-content"),o=l.find(t+".fl-col-group-nested .fl-col-content"),s=0;for(e(".fl-node-drag-init").hide();s<o.length;s++)FLBuilder._adjustColHeightForDrag(o.eq(s));for(s=0;s<i.length;s++)FLBuilder._adjustColHeightForDrag(i.eq(s));e(".fl-node-drag-init").show()},_adjustColHeightForDrag:function(e){e.find(".fl-module:visible, .fl-col:visible").length&&e.height(e.height()+45)},_showColHighlightGuide:function(){var t=e(this),l=t.find("a"),i=t.closest(".fl-col"),o=i.parents(".fl-col"),s=e('<div class="fl-col-highlight-guide"></div>'),r=null,n=t.closest(".fl-block-overlay").offset().top;(l.hasClass("fl-block-col-move-parent")||l.hasClass("fl-block-col-edit-parent"))&&(i=o),i.hasClass("fl-col-highlight")||(i.find("> .fl-col-content").append(s),i.addClass("fl-col-has-highlight-guide"),r=s.offset().top,r>n&&s.css("top",n-r+4+"px"))},_removeColHighlightGuides:function(){e(".fl-col-has-highlight-guide").removeClass("fl-col-has-highlight-guide"),e(".fl-col-highlight-guide").remove()},_colMouseenter:function(){var t=e(this),l=t.closest(".fl-col-group"),i=l.hasClass("fl-col-group-has-child-loading"),o=t.hasClass("fl-node-global"),s=t.parents(".fl-node-global").length>0,r=t.closest(".fl-col-group").find("> .fl-col").length,n=l.find("> .fl-col").index(t),a=0===n,d=r===n+1,u=t.find(".fl-col").length>0,c=t.parents(".fl-col"),f=c.closest(".fl-col-group"),h=c.length>0,p=h?f.find("> .fl-col").length:0,g=f.find("> .fl-col").index(c),_=!!h&&0===g,m=!!h&&p===g+1,b=t.find("> .fl-col-content").width(),v=wp.template("fl-col-overlay"),L=null;FLBuilderConfig.simpleUi||o&&s&&"row"!=FLBuilderConfig.userTemplateType||t.find(".fl-module, .fl-builder-node-loading-placeholder").length>0||t.find(".fl-col").length>0||t.closest(".fl-builder-node-loading").length||(t.hasClass("fl-block-overlay-active")||(FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),L=FLBuilder._appendOverlay(t,v({global:o,groupLoading:i,numCols:r,first:a,last:d,hasChildCols:u,hasParentCol:h,parentFirst:_,parentLast:m,numParentCols:p,contentWidth:b})),FLBuilder._buildOverlayOverflowMenu(L),FLBuilder._initColDragResizing()),e("body").addClass("fl-block-overlay-muted"))},_colMouseleave:function(t){var l=e(this),i=e(t.toElement)||e(t.relatedTarget),o=l.find(".fl-module").length>0,s=i.is("#tiptip_holder"),r=i.closest("#tiptip_holder").length>0;s||r||o||(FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides())},_removeColOverlays:function(){var t=e(".fl-col");t.removeClass("fl-block-overlay-active"),t.find(".fl-col-overlay").remove(),e("body").removeClass("fl-block-overlay-muted")},_colDragHelper:function(){return e('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.column+"</div>")},_colDragInit:function(t){var l=e(t.target),i=e(".fl-col-sortable-proxy-item"),o=l.closest(".fl-col");l.hasClass("fl-block-col-move-parent")&&(o=o.parents(".fl-col")),o.addClass("fl-node-dragging"),FLBuilder._blockDragInit(t),FLBuilder._removeColHighlightGuides(),t.target=i[0],i.trigger(t)},_colDragStart:function(t,l){var i=e(".fl-node-dragging");i.hide(),FLBuilder._resetColumnWidths(i.parent()),FLBuilder._blockDragStart(t,l)},_colDragStop:function(t,l){FLBuilder._blockDragStop(t,l);var i=e(".fl-node-dragging").removeClass("fl-node-dragging").show(),o=i.attr("data-node"),s=l.item.parent(),r=i.parent(),n=r.attr("data-node");newGroup=s.closest(".fl-col-group"),newGroupId=newGroup.attr("data-node"),newRow=s.closest(".fl-row"),position=0,s.hasClass("fl-sortable-disabled")?FLBuilder._resetColumnWidths(r):s.hasClass("fl-col-sortable-proxy")?FLBuilder._resetColumnWidths(r):s.hasClass("fl-col-content")?(i.remove(),0===r.find(".fl-col").length&&r.remove(),position=s.find("> .fl-module, .fl-col-group, .fl-col-sortable-proxy-item").index(l.item),FLBuilder._addColGroup(s.closest(".fl-col").attr("data-node"),o,position)):s.hasClass("fl-col-drop-target")?(s.hasClass("fl-col-drop-target-last")?s.parent().after(i):s.parent().before(i),FLBuilder._resetColumnWidths(newGroup),n==newGroupId?FLBuilder.ajax({action:"reorder_col",node_id:o,position:i.index()}):FLBuilder.ajax({action:"move_col",node_id:o,new_parent:newGroupId,position:i.index(),resize:[n,newGroupId]}),FLBuilder._resizeLayout()):s.hasClass("fl-col-group-drop-target")?(i.remove(),0===r.find(".fl-col").length&&r.remove(),position=newRow.find(".fl-row-content > .fl-col-group").index(newGroup),position=s.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addColGroup(newRow.attr("data-node"),o,position)):s.hasClass("fl-row-drop-target")&&(i.remove(),position=s.closest(".fl-builder-content").find(".fl-row").index(newRow),position=s.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addRow(o,position)),0===r.find(".fl-col").length&&r.remove(),e(".fl-col-sortable-proxy").append(l.item),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables()},_colSettingsClicked:function(t){var l=e(this),i=l.closest(".fl-col"),o=null;FLBuilder._colResizing||(o=l.hasClass("fl-block-col-edit-parent")?i.parents(".fl-col").data("node"):i.attr("data-node"),FLBuilder._closePanel(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_column_settings",node_id:o},FLBuilder._colSettingsLoaded),t.stopPropagation())},_colSettingsLoaded:function(t){var l=JSON.parse(t),i=null,o=null,s=null,r=null;FLBuilder._setSettingsFormContent(l.settings),i=e(".fl-builder-col-settings"),o=i.data("node"),s=e('.fl-col[data-node="'+o+'"]'),r=s.find("> .fl-col-content"),0===s.siblings(".fl-col").length?e(i).find("#fl-builder-settings-section-general").css("display","none"):r.width()<=40&&e("#fl-field-size").hide(),FLBuilder.preview=new FLBuilderPreview({type:"col",state:l.state})},_deleteColClicked:function(t){var l=e(this),i=l.closest(".fl-col"),o=i.closest(".fl-col-group"),s=i.parents(".fl-col"),r=s.length>0,n=s.find("> .fl-col-content > .fl-module, > .fl-col-content > .fl-col-group"),a=i.siblings(".fl-col"),d=!0;i.find(".fl-module").length>0&&(d=confirm(FLBuilderStrings.deleteColumnMessage)),r&&1===n.length&&(0===a.length?i=s:1!==a.length||a.find(".fl-module").length||(i=o)),d&&(FLBuilder._deleteCol(i),FLBuilder._removeAllOverlays(),FLBuilder._highlightEmptyCols()),t.stopPropagation()},_deleteCol:function(e){var t=e.closest(".fl-row"),l=e.closest(".fl-col-group"),i=0;e.remove(),rowCols=t.find(".fl-row-content > .fl-col-group > .fl-col"),groupCols=l.find(" > .fl-col"),0===rowCols.length&&"row"!=FLBuilderConfig.userTemplateType?FLBuilder._deleteRow(t):(0===groupCols.length?l.remove():(i=6===groupCols.length?16.65:7===groupCols.length?14.28:Math.round(100/groupCols.length*100)/100,groupCols.css("width",i+"%")),FLBuilder.ajax({action:"delete_col",node_id:e.attr("data-node"),new_width:i}),FLBuilder._initDropTargets(),FLBuilder._initSortables())},_addCols:function(e,t,l,i){var o=e.closest(".fl-col-group"),s=o.find(".fl-col").index(e);l="undefined"==typeof l?"1-col":l,i="undefined"!=typeof i&&i,"after"==t&&s++,FLBuilder._showNodeLoadingPlaceholder(o,s),FLBuilder._removeAllOverlays(),FLBuilder.ajax({action:"render_new_columns",node_id:e.attr("data-node"),insert:t,type:l,nested:i?1:0},FLBuilder._addColsComplete)},_addColsComplete:function(t){var l=JSON.parse(t),i=null,o=FLBuilder._addModuleAfterNodeRender;FLBuilder._renderLayout(l,function(){null!==o&&(e('[data-node="'+o.module.data("node")+'"]').remove(),i=e('[data-node="'+o.colId+'"]'),"after"==o.position?i.next().find(".fl-col-content").append(o.module):i.prev().find(".fl-col-content").append(o.module),FLBuilder._reorderModule(o.module),FLBuilder._addModuleAfterNodeRender=null)})},_addColGroup:function(t,l,i){var o=e(".fl-node-"+t);FLBuilder._newColGroupPosition=i,o.hasClass("fl-col")?FLBuilder._newColGroupParent=o.find(" > .fl-col-content"):FLBuilder._newColGroupParent=o.find(".fl-row-content"),FLBuilder._showNodeLoadingPlaceholder(FLBuilder._newColGroupParent,i),FLBuilder.ajax({action:"render_new_column_group",cols:l,node_id:t,position:i},FLBuilder._addColGroupComplete)},_addColGroupComplete:function(t){var l=JSON.parse(t),i=e(l.html),o=i.data("node"),s=i.find(".fl-col").data("node"),r=FLBuilder._addModuleAfterNodeRender;l.nodeParent=FLBuilder._newColGroupParent,l.nodePosition=FLBuilder._newColGroupPosition,FLBuilder._renderLayout(l,function(){l.nodeParent.hasClass("fl-col-content")&&l.nodeParent.parents(".fl-col").addClass("fl-col-has-cols"),null!==r&&(e(".fl-node-"+s+" .fl-col-content").append(r),FLBuilder._reorderModule(r),FLBuilder._addModuleAfterNodeRender=null),FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+o))})},_initColDragResizing:function(){e(".fl-block-col-resize").draggable({axis:"x",start:FLBuilder._colDragResizeStart,drag:FLBuilder._colDragResize,stop:FLBuilder._colDragResizeStop})},_colDragResizeStart:function(t,l){var i=e(l.helper),o="",s=i.hasClass("fl-block-col-resize-parent"),r=s?i.closest(".fl-col").parents(".fl-col"):null,n=s?r.parents(".fl-col-group"):i.closest(".fl-col-group"),a=n.find("> .fl-col"),d=s?r:i.closest(".fl-col"),u=null,c=100,f=0;for(i.hasClass("fl-block-col-resize-e")?(o="e",u=d.nextAll(".fl-col").first()):(o="w",u=d.prevAll(".fl-col").first());f<a.length;f++)a.eq(f).data("node")!=d.data("node")&&a.eq(f).data("node")!=u.data("node")&&(c-=parseFloat(a.eq(f)[0].style.width));FLBuilder._colResizeData={handle:i,feedbackLeft:i.find(".fl-block-col-resize-feedback-left"),feedbackRight:i.find(".fl-block-col-resize-feedback-right"),direction:o,groupWidth:n.outerWidth(),col:d,colWidth:parseFloat(d[0].style.width)/100,sibling:u,offset:l.position.left,availWidth:c},FLBuilder._colResizing=!0,e("body").addClass("fl-builder-col-resizing"),FLBuilder._closePanel(),FLBuilder._destroyOverlayEvents(),FLBuilder.triggerHook("col-resize-start")},_colDragResize:function(e,t){var l=FLBuilder._colResizeData,i=(l.offset-t.position.left)/l.groupWidth,o="e"==l.direction?100*(l.colWidth-i):100*(l.colWidth+i),s=Math.round(100*o)/100,r=l.availWidth-o,n=Math.round(100*r)/100,a=8,d=Math.round(100*(l.availWidth-a))/100;s<a?(s=a,n=d):n<a&&(s=d,n=a),"e"==l.direction?(l.feedbackLeft.html(s.toFixed(1)+"%").show(),l.feedbackRight.html(n.toFixed(1)+"%").show()):(l.feedbackLeft.html(n.toFixed(1)+"%").show(),l.feedbackRight.html(s.toFixed(1)+"%").show()),l.col.css("width",s+"%"),l.sibling.css("width",n+"%"),FLBuilder.triggerHook("col-resize-drag")},_colDragResizeStop:function(t,l){var i=FLBuilder._colResizeData,o=FLBuilder._colResizeData.handle.closest(".fl-block-overlay");FLBuilder._colResizeData.feedbackLeft.hide(),FLBuilder._colResizeData.feedbackRight.hide(),FLBuilder.ajax({action:"resize_cols",col_id:i.col.data("node"),col_width:parseFloat(i.col[0].style.width),sibling_id:i.sibling.data("node"),sibling_width:parseFloat(i.sibling[0].style.width)}),FLBuilder._buildOverlayOverflowMenu(o),FLBuilder._colResizeData=null,e("body").removeClass("fl-builder-col-resizing"),FLBuilder._bindOverlayEvents(),setTimeout(function(){FLBuilder._colResizing=!1},50),FLBuilder.triggerHook("col-resize-stop")},_resetColumnWidthsClicked:function(t){var l=e(this).parents(".fl-col-group").last(),i=[l.data("node")],o=l.find(".fl-col-group"),s=0;for(FLBuilder._resetColumnWidths(l);s<o.length;s++)FLBuilder._resetColumnWidths(o.eq(s)),i.push(o.eq(s).data("node"));FLBuilder.ajax({action:"reset_col_widths",group_id:i}),FLBuilder.triggerHook("col-reset-widths"),FLBuilder._closeAllSubmenus(),t.stopPropagation()},_resetColumnWidths:function(e){var t=e.find(" > .fl-col:visible"),l=0;l=6===t.length?16.65:7===t.length?14.28:Math.round(100/t.length*100)/100,t.css("width",l+"%")},_moduleMouseenter:function(){var t=e(this),l=t.attr("data-name"),i=t.hasClass("fl-node-global"),o=t.parents(".fl-node-global").length>0,s=t.parents(".fl-col-group").last(),r=s.hasClass("fl-col-group-has-child-loading"),n=t.closest(".fl-col-group").find("> .fl-col").length,a=t.closest(".fl-col"),d=0===a.index(),u=n===a.index()+1,c=a.parents(".fl-col"),f=c.length>0,h=f?c.closest(".fl-col-group").find("> .fl-col").length:0,p=!!f&&0===c.index(),g=!!f&&h===c.index()+1,_=a.find("> .fl-col-content").width(),m=wp.template("fl-module-overlay"),b=null;FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),i&&o&&"row"!=FLBuilderConfig.userTemplateType||t.closest(".fl-builder-node-loading").length||(t.hasClass("fl-block-overlay-active")||(b=FLBuilder._appendOverlay(t,m({global:i,moduleName:l,groupLoading:r,numCols:n,colFirst:d,colLast:u,hasParentCol:f,numParentCols:h,parentFirst:p,parentLast:g,contentWidth:_})),FLBuilder._buildOverlayOverflowMenu(b),FLBuilder._initColDragResizing()),e("body").addClass("fl-block-overlay-muted"))},_moduleMouseleave:function(t){var l=(e(this),e(t.toElement)||e(t.relatedTarget)),i=l.is("#tiptip_holder"),o=l.closest("#tiptip_holder").length>0;i||o||(FLBuilder._removeModuleOverlays(),FLBuilder._removeColHighlightGuides())},_removeModuleOverlays:function(){var t=e(".fl-module");t.removeClass("fl-block-overlay-active"),t.find(".fl-module-overlay").remove(),e("body").removeClass("fl-block-overlay-muted")},_moduleDragHelper:function(t,l){return e('<div class="fl-builder-block-drag-helper">'+l.attr("data-name")+"</div>")},_moduleDragStart:function(t,l){e(l.item).data("original-position",l.item.index()),FLBuilder._blockDragStart(t,l)},_moduleDragStop:function(t,l){FLBuilder._blockDragStop(t,l);var i=l.item,o=i.parent(),s=null,r=0,n=0;if(o.hasClass("fl-builder-modules")||o.hasClass("fl-builder-widgets"))return void i.remove();if(i.hasClass("fl-builder-block")){
|
3 |
-
if(o.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();o.hasClass("fl-row-drop-target")?(o=i.closest(".fl-builder-content"),n=0,s=i.closest(".fl-row"),r=o.find(".fl-row").index(s)):o.hasClass("fl-col-group-drop-target")?(o=i.closest(".fl-row-content"),n=o.closest(".fl-row").attr("data-node"),s=i.closest(".fl-col-group"),r=o.find(" > .fl-col-group").index(s)):o.hasClass("fl-col-drop-target")?(o=i.closest(".fl-col-group"),n=o.attr("data-node"),s=i.closest(".fl-col"),r=o.find(" > .fl-col").index(s)):(r=o.find("> .fl-module, .fl-col-group, .fl-builder-block").index(i),n=i.closest(".fl-col").attr("data-node")),i.closest(".fl-drop-target-last").length&&(r+=1),FLBuilder._addModule(o,n,i.attr("data-type"),r,i.attr("data-widget"),i.attr("data-alias")),i.remove()}else{if(o.hasClass("fl-sortable-disabled"))return e(t.target).append(l.item),e(t.target).children().eq(l.item.data("original-position")).before(l.item),void FLBuilder._highlightEmptyCols();o.hasClass("fl-row-drop-target")?(s=i.closest(".fl-row"),r=i.closest(".fl-builder-content").children(".fl-row").index(s),r=i.closest(".fl-drop-target-last").length?r+1:r,FLBuilder._addModuleAfterNodeRender=i,FLBuilder._addRow("1-col",r),i.remove()):o.hasClass("fl-col-group-drop-target")?(s=i.closest(".fl-col-group"),r=i.closest(".fl-row-content ").find(" > .fl-col-group").index(s),r=i.closest(".fl-drop-target-last").length?r+1:r,FLBuilder._addModuleAfterNodeRender=i,FLBuilder._addColGroup(i.closest(".fl-row").attr("data-node"),"1-col",r),i.remove()):o.hasClass("fl-col-drop-target")?(s=i.closest(".fl-col"),r=i.closest(".fl-col-drop-target-last").length?"after":"before",FLBuilder._addModuleAfterNodeRender={module:i,colId:s.data("node"),position:r},FLBuilder._addCols(s,r,"1-col",i.closest(".fl-col-group-nested").length>0),i.remove()):FLBuilder._reorderModule(i)}FLBuilder._resizeLayout()},_reorderModule:function(e){var t=e.closest(".fl-col").attr("data-node"),l=e.attr("data-parent"),i=e.attr("data-node"),o=e.index();t==l?FLBuilder._reorderNode(i,o):(e.attr("data-parent",t),FLBuilder._moveNode(t,i,o))},_deleteModuleClicked:function(t){var l=e(this).closest(".fl-module"),i=confirm(FLBuilderStrings.deleteModuleMessage);i&&(FLBuilder._deleteModule(l),FLBuilder._removeAllOverlays()),t.stopPropagation()},_deleteModule:function(e){var t=e.closest(".fl-row");FLBuilder.ajax({action:"delete_node",node_id:e.attr("data-node")}),e.empty(),e.remove(),t.removeClass("fl-block-overlay-muted"),FLBuilder._highlightEmptyCols(),FLBuilder._removeAllOverlays()},_moduleCopyClicked:function(t){var l=e(this).closest(".fl-module");nodeId=l.attr("data-node"),position=l.index()+1,clone=l.clone(),clone.addClass("fl-builder-node-clone"),clone.attr("data-node",nodeId+"-clone"),clone.find(".fl-block-overlay").remove(),l.after(clone),FLBuilder._showNodeLoading(nodeId+"-clone"),FLBuilder._newModuleParent=l.parent(),FLBuilder._newModulePosition=position,FLBuilder.ajax({action:"copy_module",node_id:nodeId},FLBuilder._moduleCopyComplete),t.stopPropagation()},_moduleCopyComplete:function(e){var t=JSON.parse(e);t.nodeParent=FLBuilder._newModuleParent,t.nodePosition=FLBuilder._newModulePosition,FLBuilder._renderLayout(t,function(){t.nodeParent.find(".fl-builder-node-loading").eq(0).remove()})},_moduleSettingsClicked:function(t){var l=e(this),i=l.closest(".fl-module").attr("data-node"),o=l.closest(".fl-col").attr("data-node"),s=l.closest(".fl-module").attr("data-type"),r=l.closest(".fl-block-overlay-global").length>0;t.stopPropagation(),FLBuilder._colResizing||r&&!FLBuilderConfig.userCanEditGlobalTemplates||FLBuilder._showModuleSettings(i,o,s)},_showModuleSettings:function(e,t,l){FLBuilder._closePanel(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_module_settings",node_id:e,type:l,parent_id:t},FLBuilder._moduleSettingsLoaded)},_moduleSettingsLoaded:function(t){var l=JSON.parse(t),i=e("<div>"+l.settings+"</div>"),o=i.find("link.fl-builder-settings-css"),s=i.find("script.fl-builder-settings-js"),r=i.find(".fl-builder-settings"),n=r.attr("data-type"),a=null,d=null,u=null;e.inArray(n,FLBuilder._loadedModuleAssets)>-1?(o.remove(),s.remove()):(e("head").append(o),e("head").append(s),FLBuilder._loadedModuleAssets.push(n)),FLBuilder._setSettingsFormContent(i),"undefined"!=typeof l.layout&&(a=l.layout,a.nodeParent=FLBuilder._newModuleParent,a.nodePosition=FLBuilder._newModulePosition),"undefined"!=typeof l.state&&(d=l.state),FLBuilder.preview=new FLBuilderPreview({type:"module",layout:a,state:d}),u=FLBuilder._moduleHelpers[n],"undefined"!=typeof u&&(FLBuilder._initSettingsValidation(u.rules),u.init())},_saveModuleClicked:function(){var t=e(this).closest(".fl-builder-settings"),l=t.attr("data-type"),i=(t.attr("data-node"),FLBuilder._moduleHelpers[l]),o=!0;"undefined"!=typeof i&&(t.find("label.error").remove(),t.validate().hideErrors(),o=t.validate().form(),o&&(o=i.submit())),o?(FLBuilder._saveSettings(),FLBuilder._lightbox.close()):FLBuilder._toggleSettingsTabErrors()},_addModule:function(e,t,l,i,o,s){FLBuilder._showNodeLoadingPlaceholder(e,i),e.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=e,FLBuilder._newModulePosition=i),FLBuilder.ajax({action:"render_new_module",parent_id:t,type:l,position:i,node_preview:1,widget:"undefined"==typeof o?"":o,alias:"undefined"==typeof s?"":s},FLBuilder._addModuleComplete)},_addModuleComplete:function(t){FLBuilder._showLightbox(),FLBuilder._moduleSettingsLoaded(t),e(".fl-builder-module-settings").data("new-module","1")},registerModuleHelper:function(t,l){var i={rules:{},init:function(){},submit:function(){return!0},preview:function(){}};FLBuilder._moduleHelpers[t]=e.extend({},i,l)},_registerModuleHelper:function(e,t){FLBuilder.registerModuleHelper(e,t)},_showNodeTemplateSettings:function(t){var l=e(".fl-builder-settings-lightbox .fl-builder-settings");FLBuilder._saveSettings(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_node_template_settings",node_id:l.attr("data-node")},FLBuilder._nodeTemplateSettingsLoaded)},_nodeTemplateSettingsLoaded:function(t){var l=JSON.parse(t);FLBuilder._showLightbox(!1),FLBuilder._setSettingsFormContent(l.html),FLBuilder._initSettingsValidation({name:{required:!0}}),FLBuilderConfig.userCanEditGlobalTemplates||e("#fl-field-global").hide()},_saveNodeTemplate:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.validate().form();l&&(FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_node_template",node_id:t.attr("data-node"),settings:FLBuilder._getSettings(t)},FLBuilder._saveNodeTemplateComplete),FLBuilder._lightbox.close())},_saveNodeTemplateComplete:function(t){var l=JSON.parse(t),i=e(".fl-builder-saved-"+l.type+"s"),o=i.find(".fl-builder-block"),s=null,r="",n=l.name.toLowerCase(),a=0,d=wp.template("fl-node-template-block");if("row"==l.type?FLBuilder.alert(FLBuilderStrings.rowTemplateSaved):"module"==l.type&&FLBuilder.alert(FLBuilderStrings.moduleTemplateSaved),l.layout&&FLBuilder._renderLayout(l.layout),0===o.length)i.append(d(l));else for(;a<o.length;a++){if(s=o.eq(a),r=s.text().toLowerCase().trim(),0===a&&n<r){i.prepend(d(l));break}if(n<r){s.before(d(l));break}if(o.length-1===a){i.append(d(l));break}}i.find(".fl-builder-block-no-node-templates").remove()},_nodeTemplateDragStop:function(t,l){FLBuilder._blockDragStop(t,l);var i=l.item,o=i.parent(),s=null,r=0,n=null,a="",d=null;if(i.hasClass("fl-builder-block-saved-row")||i.hasClass("fl-builder-block-row-template"))n=i.closest(".fl-row"),r=n.length?e(FLBuilder._contentClass+" .fl-row").index(n):0,r=o.hasClass("fl-drop-target-last")?r+1:r,s=null,a="render_new_row",d=FLBuilder._addRowComplete,FLBuilder._newRowPosition=r,FLBuilder._showNodeLoadingPlaceholder(e(FLBuilder._contentClass),r);else if(i.hasClass("fl-builder-block-saved-module")||i.hasClass("fl-builder-block-module-template")){if(a="render_new_module",d=FLBuilder._addModuleComplete,o.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();o.hasClass("fl-row-drop-target")?(o=i.closest(".fl-builder-content"),s=0,r=o.find(".fl-row").index(i.closest(".fl-row"))):o.hasClass("fl-col-group-drop-target")?(o=i.closest(".fl-row-content"),s=o.closest(".fl-row").attr("data-node"),r=o.find(" > .fl-col-group").index(i.closest(".fl-col-group"))):o.hasClass("fl-col-drop-target")?(o=i.closest(".fl-col-group"),r=o.children(".fl-col").index(i.closest(".fl-col")),s=o.attr("data-node")):(r=o.children(".fl-module, .fl-builder-block").index(i),s=i.closest(".fl-col").attr("data-node")),i.closest(".fl-drop-target-last").length&&(r+=1),o.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=o,FLBuilder._newModulePosition=r),FLBuilder._showNodeLoadingPlaceholder(o,r)}FLBuilder.ajax({action:a,template_id:i.attr("data-id"),template_type:i.attr("data-type"),parent_id:s,position:r},d),i.remove()},_editNodeTemplateClicked:function(t){t.preventDefault(),t.stopPropagation(),window.open(e(this).attr("href"))},_deleteNodeTemplateClicked:function(t){var l=e(t.target),i=l.closest(".fl-builder-blocks-section"),o=i.find(".fl-builder-blocks-section-content"),s=o.find(".fl-builder-block"),r=l.closest(".fl-builder-block"),n=r.hasClass("fl-builder-block-global"),a=n?FLBuilder._updateLayout:void 0,d=n?FLBuilderStrings.deleteGlobalTemplate:FLBuilderStrings.deleteTemplate;confirm(d)&&(r.remove(),1===s.length&&(r.hasClass("fl-builder-block-saved-row")?o.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedRows+"</span>"):o.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedModules+"</span>")),r.hasClass("fl-builder-block-global")&&FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"delete_node_template",template_id:r.attr("data-id")},a))},_initSettingsForms:function(){FLBuilder._initColorPickers(),FLBuilder._initSelectFields(),FLBuilder._initMultipleFields(),FLBuilder._initAutoSuggestFields(),FLBuilder._initLinkFields(),FLBuilder._initFontFields(),FLBuilder._initOrderingFields(),FLBuilder.triggerHook("settings-form-init")},_setSettingsFormContent:function(e){FLBuilder._setLightboxContent(e),FLBuilder._initSettingsForms()},_settingsTabClicked:function(t){var l=e(this),i=l.closest(".fl-builder-settings"),o=l.attr("href").split("#").pop();i.find(".fl-builder-settings-tab").removeClass("fl-active"),i.find("#"+o).addClass("fl-active"),i.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),e(this).addClass("fl-active"),t.preventDefault()},_settingsCancelClicked:function(t){var l=e(".fl-builder-lightbox[data-parent]"),i=e(".fl-builder-module-settings"),o=null,s=null,r=null,n=null;return l.length>0?void FLBuilder._closeNestedSettings():(i.length>0&&"undefined"!=typeof i.data("new-module")?(o=e(FLBuilder.preview.state.html),s=e(".fl-node-"+i.data("node")),r=s.closest(".fl-col"),n=o.find(".fl-node-"+r.data("node")),n.length>0?FLBuilder._deleteModule(s):FLBuilder._deleteCol(r)):FLBuilder.preview&&FLBuilder.preview.revert(),FLBuilder.preview=null,void FLLightbox.closeParent(this))},_initSettingsValidation:function(t,l){var i=e(".fl-builder-settings").last();i.validate({ignore:".fl-ignore-validation",rules:t,messages:l,errorPlacement:FLBuilder._settingsErrorPlacement})},_settingsErrorPlacement:function(e,t){e.appendTo(t.parent())},_toggleSettingsTabErrors:function(){for(var t=e(".fl-builder-settings:visible"),l=t.find(".fl-builder-settings-tab"),i=null,o=null,s=0;s<l.length;s++)i=l.eq(s),o=i.find("label.error"),tabLink=t.find(".fl-builder-settings-tabs a[href*="+i.attr("id")+"]"),tabLink.find(".fl-error-icon").remove(),tabLink.removeClass("error"),o.length>0&&(tabLink.append('<span class="fl-error-icon"></span>'),tabLink.addClass("error"))},_getSettings:function(t){FLBuilder._updateEditorFields();var l=t.serializeArray(),i=0,o=0,s="",r="",n="",a=[],d=[],u={};for(i=0;i<l.length;i++)if(s=l[i].value.replace(/\r/gm,""),!(l[i].name.indexOf("flrich")>-1))if(l[i].name.indexOf("[")>-1){for(r=l[i].name.replace(/\[(.*)\]/,""),n=l[i].name.replace(r,""),a=[],d=n.match(/\[[^\]]*\]/g),o=0;o<d.length;o++)"[]"!=d[o]&&a.push(d[o].replace(/\[|\]/g,""));n.match(/\[\]\[[^\]]*\]\[[^\]]+\]/)?("undefined"==typeof u[r]&&(u[r]={}),"undefined"==typeof u[r][a[0]]&&(u[r][a[0]]={}),"undefined"==typeof u[r][a[0]][a[1]]&&(u[r][a[0]][a[1]]={}),u[r][a[0]][a[1]]=s):n.match(/\[\]\[[^\]]*\]\[\]/)?("undefined"==typeof u[r]&&(u[r]={}),"undefined"==typeof u[r][a[0]]&&(u[r][a[0]]=[]),u[r][a[0]].push(s)):n.match(/\[\]\[[^\]]*\]/)?("undefined"==typeof u[r]&&(u[r]={}),u[r][a[0]]=s):n.match(/\[\]/)&&("undefined"==typeof u[r]&&(u[r]=[]),u[r].push(s))}else u[l[i].name]=s;for(n in u)if("undefined"!=typeof u["as_values_"+n]){u[n]=e.grep(u["as_values_"+n].split(","),function(e){return""!==e}).join(",");try{delete u["as_values_"+n]}catch(c){}}return u},_saveSettings:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.attr("data-node"),i=FLBuilder._getSettings(t);FLBuilder._showNodeLoading(l),FLBuilder.ajax({action:"save_settings",node_id:l,settings:i},FLBuilder._saveSettingsComplete),FLBuilder._lightbox.close()},_saveSettingsComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.preview&&(FLBuilder.preview.clear(),FLBuilder.preview=null)})},_openNestedSettings:function(t){t=e.extend({className:"fl-builder-lightbox",destroyOnClose:!0},t);var l=e(".fl-lightbox-wrap:visible"),i=l.find(".fl-lightbox"),o=new FLLightbox(t),s=o._node,r=s.find(".fl-lightbox");return l.hide(),s.attr("data-parent",l.attr("data-instance-id")),o.open('<div class="fl-builder-lightbox-loading"></div>'),o.draggable({handle:".fl-lightbox-header"}),r.css({left:i.css("left"),top:i.css("top")}),o},_closeNestedSettings:function(){var t=e(".fl-builder-lightbox[data-parent]:visible"),l=t.find(".fl-lightbox"),i=t.attr("data-instance-id"),o=FLLightbox._instances[i],s=t.attr("data-parent"),r=e('[data-instance-id="'+s+'"]'),n=r.find(".fl-lightbox"),a=r.find("form");l.css("height","auto"),l.find(".fl-lightbox-content").html('<div class="fl-builder-lightbox-loading"></div>'),o.on("close",function(){r.show(),r.find("label.error").remove(),a.validate().hideErrors(),FLBuilder._toggleSettingsTabErrors(),n.css({left:l.css("left"),top:l.css("top")})}),setTimeout(function(){o.close()},250)},_showHelpTooltip:function(){e(this).siblings(".fl-help-tooltip-text").fadeIn()},_hideHelpTooltip:function(){e(this).siblings(".fl-help-tooltip-text").fadeOut()},_initAutoSuggestFields:function(){e(".fl-builder-settings:visible .fl-suggest-field").each(FLBuilder._initAutoSuggestField)},_initAutoSuggestField:function(){var t=e(this);t.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:t.data("action"),fl_as_action_data:t.data("action-data"),_wpnonce:FLBuilderConfig.ajaxNonce}),e.extend({},{asHtmlID:t.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:3,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,preFill:t.data("value"),queryParam:"fl_as_query",afterSelectionAdd:FLBuilder._updateAutoSuggestField,afterSelectionRemove:FLBuilder._updateAutoSuggestField,selectionLimit:t.data("limit")},t.data("args")))},_updateAutoSuggestField:function(t,l,i){e(this).siblings(".as-values").val(i.join(",")).trigger("change")},_initMultipleFields:function(){for(var t=e(".fl-builder-settings:visible .fl-builder-field-multiples"),l=null,i=null,o=0,s=FLBuilderConfig.isRtl?{left:10}:{right:10};o<t.length;o++)l=t.eq(o),i=l.find(".fl-builder-field-multiple"),1===i.length?i.eq(0).find(".fl-builder-field-actions").addClass("fl-builder-field-actions-single"):i.find(".fl-builder-field-actions").removeClass("fl-builder-field-actions-single");e(".fl-builder-field-multiples").sortable({items:".fl-builder-field-multiple",cursor:"move",cursorAt:s,distance:5,opacity:.5,helper:FLBuilder._fieldDragHelper,placeholder:"fl-builder-field-dd-zone",stop:FLBuilder._fieldDragStop,tolerance:"pointer"})},_addFieldClicked:function(){var t=e(this),l=t.attr("data-field"),i=t.closest("tr").siblings("tr[data-field="+l+"]").last(),o=i.clone(),s=parseInt(i.find("label span.fl-builder-field-index").html(),10)+1;o.find("th label span.fl-builder-field-index").html(s),o.find(".fl-form-field-preview-text").html(""),o.find("input, textarea, select").val(""),i.after(o),FLBuilder._initMultipleFields()},_copyFieldClicked:function(){var t=e(this),l=t.closest("tr"),i=l.clone(),o=parseInt(l.find("label span.fl-builder-field-index").html(),10)+1;i.find("th label span.fl-builder-field-index").html(o),l.after(i),FLBuilder._renumberFields(l.parent()),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview()},_deleteFieldClicked:function(){var t=e(this).closest("tr"),l=t.parent(),i=confirm(FLBuilderStrings.deleteFieldMessage);i&&(t.remove(),FLBuilder._renumberFields(l),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview())},_renumberFields:function(e){for(var t=e.find(".fl-builder-field-multiple"),l=0;l<t.length;l++)t.eq(l).find("th label span.fl-builder-field-index").html(l+1)},_fieldDragHelper:function(){return e('<div class="fl-builder-field-dd-helper"></div>')},_fieldDragStop:function(e,t){FLBuilder._renumberFields(t.item.parent()),FLBuilder.preview.delayPreview()},_initSelectFields:function(){e(".fl-builder-settings:visible").find(".fl-builder-settings-fields select").trigger("change")},_settingsSelectChanged:function(){var t=e(this),l=t.attr("data-toggle"),i=t.attr("data-hide"),o=t.attr("data-trigger"),s=t.val(),r=0;if("undefined"!=typeof l){l=JSON.parse(l);for(r in l)FLBuilder._settingsSelectToggle(l[r].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(l[r].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l[r].tabs,"hide","a[href*=fl-builder-settings-tab-","]");"undefined"!=typeof l[s]&&(FLBuilder._settingsSelectToggle(l[s].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(l[s].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l[s].tabs,"show","a[href*=fl-builder-settings-tab-","]"))}if("undefined"!=typeof i&&(i=JSON.parse(i),"undefined"!=typeof i[s]&&(FLBuilder._settingsSelectToggle(i[s].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(i[s].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(i[s].tabs,"hide","a[href*=fl-builder-settings-tab-","]"))),"undefined"!=typeof o&&(o=JSON.parse(o),"undefined"!=typeof o[s]&&"undefined"!=typeof o[s].fields))for(r=0;r<o[s].fields.length;r++)e("#fl-field-"+o[s].fields[r]).find("select").trigger("change")},_settingsSelectToggle:function(t,l,i,o){var s=0;if(o="undefined"==typeof o?"":o,"undefined"!=typeof t)for(;s<t.length;s++)e(".fl-builder-settings:visible").find(i+t[s]+o)[l](),e(i+t[s]+o).parent().find('.fl-field[data-type="code"]').each(function(){e(this).data("editor").resize()})},_initColorPickers:function(){var t=FLBuilderConfig.colorPresets?FLBuilderConfig.colorPresets:[];FLBuilder.colorPicker=new FLBuilderColorPicker({mode:"hsv",elements:".fl-color-picker .fl-color-picker-value",presets:t,labels:{colorPresets:FLBuilderStrings.colorPresets,colorPicker:FLBuilderStrings.colorPicker,placeholder:FLBuilderStrings.placeholder,removePresetConfirm:FLBuilderStrings.removePresetConfirm,noneColorSelected:FLBuilderStrings.noneColorSelected,alreadySaved:FLBuilderStrings.alreadySaved,noPresets:FLBuilderStrings.noPresets,presetAdded:FLBuilderStrings.presetAdded}}),e(FLBuilder.colorPicker).on("presetRemoved presetAdded",function(e,t){FLBuilder.ajax({action:"save_color_presets",presets:t.presets})})},_initSinglePhotoSelector:function(){null===FLBuilder._singlePhotoSelector&&(FLBuilder._singlePhotoSelector=wp.media({title:FLBuilderStrings.selectPhoto,button:{text:FLBuilderStrings.selectPhoto},library:{type:"image"},multiple:!1}))},_selectSinglePhoto:function(){FLBuilder._initSinglePhotoSelector(),FLBuilder._singlePhotoSelector.once("open",e.proxy(FLBuilder._singlePhotoOpened,this)),FLBuilder._singlePhotoSelector.once("select",e.proxy(FLBuilder._singlePhotoSelected,this)),FLBuilder._singlePhotoSelector.open()},_singlePhotoOpened:function(){var t=FLBuilder._singlePhotoSelector.state().get("selection"),l=e(this).closest(".fl-photo-field"),i=l.find("input[type=hidden]"),o=i.val(),s=null;e(this).hasClass("fl-photo-replace")?(t.reset(),l.addClass("fl-photo-empty"),i.val("")):""!==o?(s=wp.media.attachment(o),s.fetch(),t.add(s?[s]:[])):t.reset()},_singlePhotoSelected:function(){var t=FLBuilder._singlePhotoSelector.state().get("selection").first().toJSON(),l=e(this).closest(".fl-photo-field"),i=l.find("input[type=hidden]"),o=l.find(".fl-photo-preview img"),s=l.find("select");i.val(t.id),o.attr("src",FLBuilder._getPhotoSrc(t)),l.removeClass("fl-photo-empty"),l.find("label.error").remove(),s.show(),s.html(FLBuilder._getPhotoSizeOptions(t)),s.trigger("change")},_singlePhotoRemoved:function(){FLBuilder._initSinglePhotoSelector();var t=FLBuilder._singlePhotoSelector.state(),l="undefined"!=typeof t?t.get("selection"):null,i=e(this).closest(".fl-photo-field"),o=i.find("input[type=hidden]"),s=i.find("select");l&&l.reset(),i.addClass("fl-photo-empty"),o.val(""),s.html('<option value="" selected></option>'),s.trigger("change")},_getPhotoSrc:function(e){return"undefined"==typeof e.sizes?e.url:"undefined"!=typeof e.sizes.thumbnail?e.sizes.thumbnail.url:e.sizes.full.url},_getPhotoSizeOptions:function(e){var t="",l=null,i=null,o="",s={full:FLBuilderStrings.fullSize,large:FLBuilderStrings.large,medium:FLBuilderStrings.medium,thumbnail:FLBuilderStrings.thumbnail};if("undefined"==typeof e.sizes)t+='<option value="'+e.url+'">'+FLBuilderStrings.fullSize+"</option>";else for(l in e.sizes)o="undefined"!=typeof s[l]?s[l]+" - ":"undefined"!=typeof FLBuilderConfig.customImageSizeTitles[l]?FLBuilderConfig.customImageSizeTitles[l]+" - ":"",i="full"==l?' selected="selected"':"",t+='<option value="'+e.sizes[l].url+'"'+i+">"+o+e.sizes[l].width+" x "+e.sizes[l].height+"</option>";return t},_selectMultiplePhotos:function(){var t=e(this).closest(".fl-multiple-photos-field"),l=t.find("input[type=hidden]"),i=l.val(),o=""===i?"":JSON.parse(i),s=wp.media.gallery.defaults.id,r='[gallery ids="-1"]',n=null,a=null,d=null,u=null,c=[];if("object"==typeof o){for(u in o)c.push(o[u]);r='[gallery ids="'+c.join()+'"]'}n=wp.shortcode.next("gallery",r).shortcode,_.isUndefined(n.get("id"))&&!_.isUndefined(s)&&n.set("id",s),a=wp.media.gallery.attachments(n),d=new wp.media.model.Selection(a.models,{props:a.props.toJSON(),multiple:!0}),d.gallery=a.gallery,d.more().done(function(){d.length||FLBuilder._multiplePhotoSelector.setState("gallery-library"),d.props.set({query:!1}),d.unmirror(),d.props.unset("orderby")}),FLBuilder._multiplePhotoSelector&&FLBuilder._multiplePhotoSelector.dispose(),FLBuilder._multiplePhotoSelector=wp.media({frame:"post",state:e(this).hasClass("fl-multiple-photos-edit")?"gallery-edit":"gallery-library",title:wp.media.view.l10n.editGalleryTitle,editing:!0,multiple:!0,selection:d}).open(),e(FLBuilder._multiplePhotoSelector.views.view.el).addClass("fl-multiple-photos-lightbox"),FLBuilder._multiplePhotoSelector.once("update",e.proxy(FLBuilder._multiplePhotosSelected,this))},_multiplePhotosSelected:function(t){for(var l=e(this).closest(".fl-multiple-photos-field"),i=l.find("input[type=hidden]"),o=l.find(".fl-multiple-photos-count"),s=[],r=0;r<t.models.length;r++)s.push(t.models[r].id);1==s.length?o.html("1 "+FLBuilderStrings.photoSelected):o.html(s.length+" "+FLBuilderStrings.photosSelected),l.removeClass("fl-multiple-photos-empty"),l.find("label.error").remove(),i.val(JSON.stringify(s)).trigger("change")},_selectSingleVideo:function(){null===FLBuilder._singleVideoSelector&&(FLBuilder._singleVideoSelector=wp.media({title:FLBuilderStrings.selectVideo,button:{text:FLBuilderStrings.selectVideo},library:{type:"video"},multiple:!1})),FLBuilder._singleVideoSelector.once("select",e.proxy(FLBuilder._singleVideoSelected,this)),FLBuilder._singleVideoSelector.open()},_singleVideoSelected:function(){var t=FLBuilder._singleVideoSelector.state().get("selection").first().toJSON(),l=e(this).closest(".fl-video-field"),i=l.find(".fl-video-preview-img img"),o=l.find(".fl-video-preview-filename"),s=l.find("input[type=hidden]");i.attr("src",t.icon),o.html(t.filename),l.removeClass("fl-video-empty"),l.find("label.error").remove(),s.val(t.id).trigger("change")},_selectMultipleAudios:function(){var t=e(this).closest(".fl-multiple-audios-field"),l=t.find("input[type=hidden]"),i=l.val(),o=""==i?'[playlist ids="-1"]':'[playlist ids="'+JSON.parse(i).join()+'"]',s=wp.shortcode.next("playlist",o).shortcode,r=wp.media.playlist.defaults.id,n=null,a=null;_.isUndefined(s.get("id"))&&!_.isUndefined(r)&&s.set("id",r),n=wp.media.playlist.attachments(s),a=new wp.media.model.Selection(n.models,{props:n.props.toJSON(),multiple:!0}),a.playlist=n.playlist,a.more().done(function(){a.props.set({query:!1}),a.unmirror(),a.props.unset("orderby")}),FLBuilder._multipleAudiosSelector&&FLBuilder._multipleAudiosSelector.dispose(),FLBuilder._multipleAudiosSelector=wp.media({frame:"post",state:e(this).hasClass("fl-multiple-audios-edit")?"playlist-edit":"playlist-library",title:wp.media.view.l10n.editPlaylistTitle,editing:!0,multiple:!0,selection:a}).open(),FLBuilder._multipleAudiosSelector.content.get("view").sidebar.unset("playlist"),FLBuilder._multipleAudiosSelector.on("content:render:browse",function(e){e&&e.sidebar.on("ready",function(){e.sidebar.unset("playlist")})}),FLBuilder._multipleAudiosSelector.once("update",e.proxy(FLBuilder._multipleAudiosSelected,this))},_multipleAudiosSelected:function(t){for(var l=e(this).closest(".fl-multiple-audios-field"),i=l.find(".fl-multiple-audios-count"),o=l.find("input[type=hidden]"),s=[],r=0;r<t.models.length;r++)s.push(t.models[r].id);1==s.length?i.html("1 "+FLBuilderStrings.audioSelected):i.html(s.length+" "+FLBuilderStrings.audiosSelected),o.val(JSON.stringify(s)).trigger("change"),l.removeClass("fl-multiple-audios-empty"),l.find("label.error").remove()},_selectIcon:function(){var e=this;FLIconSelector.open(function(t){FLBuilder._iconSelected.apply(e,[t])})},_iconSelected:function(t){var l=e(this).closest(".fl-icon-field"),i=l.find("input[type=hidden]"),o=l.find("i"),s=o.attr("data-icon");i.val(t).trigger("change"),o.removeClass(s),o.addClass(t),o.attr("data-icon",t),l.removeClass("fl-icon-empty"),l.find("label.error").remove()},_removeIcon:function(){var t=e(this).closest(".fl-icon-field"),l=t.find("input[type=hidden]"),i=t.find("i");l.val("").trigger("change"),i.removeClass(),i.attr("data-icon",""),t.addClass("fl-icon-empty")},_formFieldClicked:function(){var t=e(this),l=t.closest(".fl-builder-settings"),i=t.attr("data-type"),o=t.siblings("input").val(),s=FLBuilder._moduleHelpers[i],r=FLBuilder._openNestedSettings({className:"fl-builder-lightbox fl-form-field-settings"});t.attr("id","fl-"+r._node.attr("data-instance-id")),FLBuilder.ajax({action:"render_settings_form",node_id:l.attr("data-node"),node_settings:FLBuilder._getSettings(l),type:i,settings:o.replace(/'/g,"'")},function(e){var t=JSON.parse(e);r._node.find(".fl-lightbox-content").html(t.html),r._node.find("form.fl-builder-settings").attr("data-type",i),FLBuilder._initSettingsForms(),"undefined"!=typeof s&&(FLBuilder._initSettingsValidation(s.rules),s.init())})},_saveFormFieldClicked:function(){var t=e(this).closest(".fl-builder-settings"),l=e(this).closest(".fl-lightbox-wrap").attr("data-instance-id"),i=t.attr("data-type"),o=FLBuilder._getSettings(t),s={},r=FLBuilder._moduleHelpers[i],n=e(".fl-builder-settings #fl-"+l),a=n.parent().attr("data-preview-text"),d=o[a],u=e('select[name="'+a+'"]'),c=document.createElement("div"),f=!0;return u.length>0&&(d=u.find('option[value="'+o[a]+'"]').text()),"undefined"!=typeof r&&(t.find("label.error").remove(),t.validate().hideErrors(),f=t.validate().form(),f&&(f=r.submit())),f?("undefined"!=typeof a&&"undefined"!=typeof d&&(d.indexOf("fa fa-")>-1?d='<i class="'+d+'"></i>':d.length>35&&(c.innerHTML=d,d=(c.textContent||c.innerText||"").replace(/^(.{35}[^\s]*).*/,"$1")+"..."),n.siblings(".fl-form-field-preview-text").html(d)),s=n.siblings("input").val().replace(/'/g,"'"),""!=s&&(o=e.extend(JSON.parse(s),o)),n.siblings("input").val(JSON.stringify(o)).trigger("change"),FLBuilder._closeNestedSettings(),!0):(FLBuilder._toggleSettingsTabErrors(),!1)},_layoutFieldClicked:function(){var t=e(this);t.siblings().removeClass("fl-layout-field-option-selected"),t.addClass("fl-layout-field-option-selected"),t.siblings("input").val(t.attr("data-value"))},_initLinkFields:function(){e(".fl-builder-settings:visible .fl-link-field").each(FLBuilder._initLinkField)},_initLinkField:function(){var t=e(this),l=t.find(".fl-link-field-search-input");l.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:"fl_as_links",_wpnonce:FLBuilderConfig.ajaxNonce}),{asHtmlID:l.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:3,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,queryParam:"fl_as_query",selectionLimit:1,afterSelectionAdd:FLBuilder._updateLinkField})},_updateLinkField:function(e,t,l){var i=e.closest(".fl-link-field"),o=i.find(".fl-link-field-search"),s=i.find(".fl-link-field-search-input"),r=i.find(".fl-link-field-input");r.val(t.value).trigger("keyup"),s.autoSuggest("remove",t.value),o.hide()},_linkFieldSelectClicked:function(){e(this).parent().find(".fl-link-field-search").show()},_linkFieldSelectCancelClicked:function(){e(this).parent().hide()},_initFontFields:function(){e(".fl-builder-settings:visible .fl-font-field").each(FLBuilder._initFontField)},_initFontField:function(){var t=e(this),l=t.find(".fl-font-field-font");l.on("change",function(){FLBuilder._getFontWeights(l)})},_getFontWeights:function(t){var l=t.next(".fl-font-field-weight"),i=t.val(),o={"default":"Default",regular:"Regular",100:"Thin 100",200:"Extra-Light 200",300:"Light 300",400:"Normal 400",500:"Medium 500",600:"Semi-Bold 600",700:"Bold 700",800:"Extra-Bold 800",900:"Ultra-Bold 900"},s={};l.html(""),s="undefined"!=typeof FLBuilderFontFamilies.system[i]?FLBuilderFontFamilies.system[i].weights:"undefined"!=typeof FLBuilderFontFamilies.google[i]?FLBuilderFontFamilies.google[i]:FLBuilderFontFamilies["default"][i],e.each(s,function(e,t){l.append('<option value="'+t+'">'+o[t]+"</option>")})},initEditorField:function(e){var t=tinyMCEPreInit.mceInit.flhiddeneditor;t.elements=e,tinyMCEPreInit.mceInit[e]=t},_updateEditorFields:function(){var t=e(".fl-builder-settings:visible textarea.wp-editor-area");t.each(FLBuilder._updateEditorField)},_updateEditorField:function(){var t=e(this),l=t.closest(".fl-editor-field"),i=(t.closest(".fl-builder-settings"),t.closest(".wp-editor-wrap")),o=t.attr("id"),s=l.attr("id"),r="undefined"!=typeof tinyMCE&&tinyMCE.get(o),n=t.siblings('textarea[name="'+s+'"]'),a=l.data("wpautop");0===n.length&&(n=e('<textarea name="'+s+'"></textarea>').hide(),t.after(n)),a?r&&i.hasClass("tmce-active")?n.val(r.getContent()):"undefined"!=typeof switchEditors?n.val(switchEditors.wpautop(t.val())):n.val(t.val()):(r&&i.hasClass("tmce-active")&&r.save(),n.val(t.val()))},_loopDataSourceChange:function(){var t=e(this).val();e(".fl-loop-data-source").hide(),e('.fl-loop-data-source[data-source="'+t+'"]').show()},_customQueryPostTypeChange:function(){var t=e(this).val();e(".fl-custom-query-filter").hide(),e(".fl-custom-query-"+t+"-filter").show()},_initOrderingFields:function(){e(".fl-builder-settings:visible .fl-ordering-field-options").each(FLBuilder._initOrderingField)},_initOrderingField:function(){e(this).sortable({items:".fl-ordering-field-option",containment:"parent",tolerance:"pointer",stop:FLBuilder._updateOrderingField})},_updateOrderingField:function(t){var l=e(t.target),i=l.siblings("input[type=hidden]"),o=[];l.find(".fl-ordering-field-option").each(function(){o.push(e(this).attr("data-key"))}),i.val(JSON.stringify(o)).trigger("change")},_textFieldAddValueSelectChange:function(){
|
4 |
-
var t=e(this),l=e('input[name="'+t.data("target")+'"]'),i=l.val(),o=t.val(),s="";-1==i.indexOf(o)&&(s=(i.trim()+" "+o.trim()).trim(),l.val(s).trigger("change").trigger("keyup")),t.val("")},ajax:function(t,l){var i;for(i in t)"undefined"==typeof t[i]&&(t[i]=null);return t._wpnonce=FLBuilderConfig.ajaxNonce,t.post_id=FLBuilderConfig.postId,t.fl_builder=1,t.fl_action=t.action,"undefined"!=typeof t.settings&&(t.settings=FLBuilder._ajaxModSecFix(t.settings)),"undefined"!=typeof t.node_settings&&(t.node_settings=FLBuilder._ajaxModSecFix(t.node_settings)),t={fl_builder_data:t},e.post(FLBuilder._ajaxUrl(),t,function(e){FLBuilder._ajaxComplete(),"undefined"!=typeof l&&l.call(this,e)})},_ajaxComplete:function(){FLBuilder.hideAjaxLoader()},_ajaxUrl:function(e){var t=window.location.href.split("#").shift(),l=null;if("undefined"!=typeof e)for(l in e)t+=t.indexOf("?")>-1?"&":"?",t+=l+"="+e[l];return t},showAjaxLoader:function(){0===e(".fl-builder-lightbox-loading").length&&e(".fl-builder-loading").show()},hideAjaxLoader:function(){e(".fl-builder-loading").hide()},_showNodeLoading:function(t){var l=e('[data-node="'+t+'"]');l.addClass("fl-builder-node-loading")},_showNodeLoadingPlaceholder:function(t,l){var i=e('<div class="fl-builder-node-loading-placeholder"></div>');t.hasClass("fl-builder-content")?siblings=t.find(".fl-row"):t.hasClass("fl-row-content")?siblings=t.find(" > .fl-col-group"):t.hasClass("fl-col-group")?(t.addClass("fl-col-group-has-child-loading"),siblings=t.find(" > .fl-col")):siblings=t.find(" > .fl-col-group, > .fl-module"),0===siblings.length||siblings.length==l?t.append(i):siblings.eq(l).before(i)},_removeNodeLoadingPlaceholder:function(e){var t=e.prev(".fl-builder-node-loading-placeholder"),l=e.next(".fl-builder-node-loading-placeholder");t.length?t.remove():l.remove()},_ajaxModSecFix:function(e){var t;if(FLBuilderConfig.modSecFix&&"undefined"!=typeof btoa)if("string"==typeof e)e=FLBuilder._btoa(e);else for(t in e)"string"==typeof e[t]?e[t]=FLBuilder._btoa(e[t]):"object"==typeof e[t]&&(e[t]=FLBuilder._ajaxModSecFix(e[t]));return e},_btoa:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},_showLightbox:function(e){e="undefined"==typeof e||e,FLBuilder._lightbox.open('<div class="fl-builder-lightbox-loading"></div>'),e?FLBuilder._lightbox.draggable({handle:".fl-lightbox-header"}):FLBuilder._lightbox.draggable(!1),FLBuilder._removeAllOverlays(),FLBuilder._initLightboxScrollbars()},_setLightboxContent:function(e){FLBuilder._lightbox.setContent(e)},_initLightboxScrollbars:function(){FLBuilder._initScrollbars(),FLBuilder._lightboxScrollbarTimeout=setTimeout(FLBuilder._initLightboxScrollbars,500)},_lightboxClosed:function(){FLBuilder.triggerHook("settings-lightbox-closed"),FLBuilder._lightbox.empty(),clearTimeout(FLBuilder._lightboxScrollbarTimeout)},_showActionsLightbox:function(e){var t=wp.template("fl-actions-lightbox");FLBuilder.triggerHook("actions-lightbox-settings",e),FLBuilder._actionsLightbox.open(t(e))},_resizeLightbox:function(){var t=e(this),l=t.hasClass("fa-expand")?"expand":"contract";FLBuilder._lightbox.renderResize(l),e(this).toggleClass("fa-expand").toggleClass("fa-compress")},alert:function(e){var t=new FLLightbox({className:"fl-builder-lightbox fl-builder-alert-lightbox",destroyOnClose:!0}),l=wp.template("fl-alert-lightbox");t.open(l({message:e}))},_alertClose:function(){FLLightbox.closeParent(this)},confirm:function(t){var l={message:"",ok:function(){},cancel:function(){},strings:{ok:FLBuilderStrings.ok,cancel:FLBuilderStrings.cancel}},i=e.extend({},l,"undefined"==typeof t?{}:t);lightbox=new FLLightbox({className:"fl-builder-lightbox fl-builder-confirm-lightbox fl-builder-alert-lightbox",destroyOnClose:!0}),template=wp.template("fl-confirm-lightbox"),lightbox.open(template(i)),lightbox._node.find(".fl-builder-confirm-ok").on("click",i.ok),lightbox._node.find(".fl-builder-confirm-cancel").on("click",i.cancel)},triggerHook:function(t,l){e("body").trigger("fl-builder."+t,l)},addHook:function(t,l){e("body").on("fl-builder."+t,l)},removeHook:function(t,l){e("body").off("fl-builder."+t,l)},log:function(e){"undefined"!=typeof window.console&&"undefined"!=typeof window.console.log&&console.log(e)},logError:function(e){var t=null;"undefined"!=typeof e&&("undefined"!=typeof e.stack?t=e.stack:"undefined"!=typeof e.message&&(t=e.message),t&&(FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(t),FLBuilder.log("************************************************************************")))},logGlobalError:function(e,t,l,i,o){FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(FLBuilderStrings.globalErrorMessage.replace("{message}",e).replace("{line}",l).replace("{file}",t)),"undefined"!=typeof o&&"undefined"!=typeof o.stack&&(FLBuilder.log(o.stack),FLBuilder.log("************************************************************************"))}},e(function(){FLBuilder._init()})}(jQuery),function(e){FLBuilderAJAXLayout=function(t,l){this._data=e.extend({},this._defaults,"string"==typeof t?JSON.parse(t):t),this._callback=l,this._post=FLBuilderConfig.postId,this._head=e("head").eq(0),this._body=e("body").eq(0),this._data.css&&(this._loader=e('<img src="'+this._data.css+'" />'),this._oldCss=e('link[href*="/cache/'+this._post+'"]'),this._newCss=e('<link rel="stylesheet" id="fl-builder-layout-'+this._post+'-css" href="'+this._data.css+'" />')),this._data.partial?(this._data.js&&(this._oldJs=e("#fl-builder-partial-refresh-js"),this._newJs=e('<script type="text/javascript" id="fl-builder-partial-refresh-js">'+this._data.js+"</script>")),this._data.nodeId&&(this._data.oldNodeId?(this._oldScriptsStyles=e('.fl-builder-node-scripts-styles[data-node="'+this._data.oldNodeId+'"]'),this._content=e(".fl-node-"+this._data.oldNodeId)):(this._oldScriptsStyles=e('.fl-builder-node-scripts-styles[data-node="'+this._data.nodeId+'"]'),this._content=e(".fl-node-"+this._data.nodeId).eq(0)))):(this._oldJs=e('script[src*="/cache/'+this._post+'"]'),this._newJs=e('<script src="'+this._data.js+'"></script>'),this._oldScriptsStyles=e(".fl-builder-layout-scripts-styles"),this._content=e(FLBuilder._contentClass)),this._init()},FLBuilderAJAXLayout.prototype={_defaults:{partial:!1,nodeId:null,nodeType:null,nodeParent:null,nodePosition:null,oldNodeId:null,html:null,scriptsStyles:null,css:null,js:null},_data:null,_callback:function(){},_post:null,_head:null,_body:null,_loader:null,_oldCss:null,_newCss:null,_oldJs:null,_newJs:null,_oldScriptsStyles:null,_content:null,_init:function(){this._body.height(this._body.height()),this._loader?(this._loader.on("error",e.proxy(this._loadNewCSSComplete,this)),this._body.append(this._loader)):this._finish()},_loadNewCSSComplete:function(){this._loader.remove(),this._oldCss.length>0?this._oldCss.after(this._newCss):this._head.append(this._newCss),setTimeout(e.proxy(this._finish,this),250)},_finish:function(){this._removeOldContentAndAssets(),this._cleanNewHTML(),this._cleanNewAssets(),this._addNewHTML(),this._addNewScriptsStyles(),this._addNewJS(),e(FLBuilder._contentClass).trigger("fl-builder.layout-rendered"),FLBuilder.hideAjaxLoader(),"undefined"!=typeof this._callback&&this._callback()},_removeOldContentAndAssets:function(){this._content&&this._content.empty(),this._oldCss&&this._oldCss.remove(),this._oldJs&&this._oldJs.remove(),this._oldScriptsStyles&&this._oldScriptsStyles.remove()},_cleanNewHTML:function(){if(this._data.scriptsStyles){var t=e("<div>"+this._data.html+"</div>"),l="fl-row",i=this._data.scriptsStyles,o="";this._data.partial&&(l="column-group"==this._data.nodeType?"fl-col-group":"column"==this._data.nodeType?"fl-col":"fl-"+this._data.nodeType),t.find("> *, script").each(function(){e(this).hasClass(l)||(o=e(this).remove(),i+=o[0].outerHTML)}),""!==i&&(i=this._data.partial?'<div class="fl-builder-node-scripts-styles" data-node="'+this._data.nodeId+'">'+i+"<div>":'<div class="fl-builder-node-scripts-styles">'+i+"<div>"),this._data.html=t.html(),this._data.scriptsStyles=i}},_addNewHTML:function(){var t;this._data.partial?this._data.nodeParent?(t=this._data.nodeParent.hasClass("fl-builder-content")?this._data.nodeParent.find(".fl-row"):this._data.nodeParent.hasClass("fl-row-content")?this._data.nodeParent.find(" > .fl-col-group"):this._data.nodeParent.find(" > .fl-col-group, > .fl-module"),t=t.filter(":not(.fl-builder-node-clone)"),0===t.length||t.length==this._data.nodePosition?this._data.nodeParent.append(this._data.html):t.eq(this._data.nodePosition).before(this._data.html),this._data.nodeId&&FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+this._data.nodeId))):(this._content.after(this._data.html),this._content.remove()):this._content.append(this._data.html)},_cleanNewAssets:function(){var t=this;this._data.html=this._removeDuplicateAssets(this._data.html),this._data.scriptsStyles&&""!==this._data.scriptsStyles&&(this._data.scriptsStyles=this._removeDuplicateAssets(this._data.scriptsStyles)),this._data.partial?e(".fl-builder-node-scripts-styles").each(function(){t._data.html.indexOf("fl-node-"+e(this).data("node"))>-1&&e(this).remove()}):(e("#fl-builder-partial-refresh-js").remove(),e(".fl-builder-node-scripts-styles").remove())},_removeDuplicateAssets:function(t){var l=e("<div>"+t+"</div>"),i="",o=null,s="",r=null,n=window.location,a=n.protocol+"//"+n.hostname+(n.port?":"+n.port:"");return l.find("script").each(function(){i=e(this).attr("src"),"undefined"!=typeof i&&(i=i.replace(a,""),o=e('script[src*="'+i+'"]'),o.length>0&&e(this).remove())}),l.find("link").each(function(){s=e(this).attr("href"),"undefined"!=typeof s&&(s=s.replace(a,""),r=e('link[href*="'+s+'"]'),r.length>0&&e(this).remove())}),l.html()},_addNewScriptsStyles:function(){this._data.scriptsStyles&&""!==this._data.scriptsStyles&&this._body.append(this._data.scriptsStyles)},_addNewJS:function(){setTimeout(e.proxy(function(){this._newJs&&this._head.append(this._newJs)},this),50)},_complete:function(){FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._resizeLayout(),FLBuilder._initMediaElements(),FLBuilderLayout.init(),FLBuilderResponsiveEditing.refreshPreview(),this._body.height("auto")}}}(jQuery),function(e){FLBuilderPreview=function(t){this.type=t.type,"undefined"!=t.state&&t.state?this.state=t.state:this._saveState(),"undefined"!=t.layout&&t.layout?FLBuilder._renderLayout(t.layout,e.proxy(this._init,this)):this._init()},FLBuilderPreview._fontsList={},FLBuilderPreview.prototype={type:"",nodeId:null,classes:{},elements:{},state:null,_savedSettings:null,_styleSheet:null,_styleSheetMedium:null,_styleSheetResponsive:null,_timeout:null,_loaderTimeout:null,_lastClassName:null,_xhr:null,_init:function(){switch(this.nodeId=e(".fl-builder-settings").data("node"),this._saveSettings(),this._initElementsAndClasses(),this._createSheets(),this._initResponsivePreviews(),this._initDefaultFieldPreviews(),this.type){case"row":this._initRow();break;case"col":this._initColumn();break;case"module":this._initModule()}},_saveSettings:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings");this._savedSettings=FLBuilder._getSettings(t)},_settingsHaveChanged:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=FLBuilder._getSettings(t);return JSON.stringify(this._savedSettings)!=JSON.stringify(l)},_initElementsAndClasses:function(){var t;t="row"==this.type?".fl-row-content-wrap":".fl-"+this.type+"-content",e.extend(this.classes,{settings:".fl-builder-"+this.type+"-settings",settingsHeader:".fl-builder-"+this.type+"-settings .fl-lightbox-header",node:FLBuilder._contentClass+" .fl-node-"+this.nodeId,content:FLBuilder._contentClass+" .fl-node-"+this.nodeId+" > "+t}),e.extend(this.elements,{settings:e(this.classes.settings),settingsHeader:e(this.classes.settingsHeader),node:e(this.classes.node),content:e(this.classes.content)})},_createSheets:function(){this._styleSheet||(this._styleSheet=new FLStyleSheet({id:"fl-builder-preview"})),this._styleSheetMedium||(this._styleSheetMedium=new FLStyleSheet({id:"fl-builder-preview-medium"})),this._styleSheetResponsive||(this._styleSheetResponsive=new FLStyleSheet({id:"fl-builder-preview-responsive"}))},_destroySheets:function(){this._styleSheet&&(this._styleSheet.destroy(),this._styleSheet=null),this._styleSheetMedium&&(this._styleSheetMedium.destroy(),this._styleSheetMedium=null),this._styleSheetResponsive&&(this._styleSheetResponsive.destroy(),this._styleSheetResponsive=null)},updateCSSRule:function(e,t,l){this._styleSheet.updateRule(e,t,l)},delay:function(e,t){this._cancelDelay(),this._timeout=setTimeout(t,e)},_cancelDelay:function(){null!==this._timeout&&clearTimeout(this._timeout)},hexToRgb:function(e){var t=parseInt(e,16),l=t>>16&255,i=t>>8&255,o=255&t;return[l,i,o]},parseFloat:function(e){return isNaN(parseFloat(e))?0:parseFloat(e)},_initResponsivePreviews:function(){FLBuilder.addHook("responsive-editing-switched",e.proxy(this._responsiveEditingSwitched,this))},_destroyResponsivePreviews:function(){FLBuilder.removeHook("responsive-editing-switched")},_responsiveEditingSwitched:function(e,t){"default"==t?(this._styleSheetMedium.disable(),this._styleSheetResponsive.disable()):"medium"==t?(this._styleSheetMedium.enable(),this._styleSheetResponsive.disable()):"responsive"==t&&(this._styleSheetMedium.disable(),this._styleSheetResponsive.enable())},updateResponsiveCSSRule:function(e,t,l){var i=FLBuilderResponsiveEditing._mode,o="default"==i?"":i.charAt(0).toUpperCase()+i.slice(1);this["_styleSheet"+o].updateRule(e,t,l)},_saveState:function(){var t=FLBuilderConfig.postId,l=e('link[href*="/cache/'+t+'"]').attr("href"),i=e('script[src*="/cache/'+t+'"]').attr("src"),o=e(FLBuilder._contentClass).html();this.state={css:l,js:i,html:o}},preview:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.attr("data-node"),i=FLBuilder._getSettings(t);this._cancelPreview(),this._xhr=FLBuilder.ajax({action:"render_layout",node_id:l,node_preview:i},e.proxy(this._renderPreview,this))},delayPreview:function(t){var l="undefined"==typeof t?[]:e(t.target).closest("tr").find("th"),i=e(".fl-builder-widget-settings .fl-builder-settings-title"),o=e(".fl-builder-settings .fl-lightbox-header"),s=FLBuilderLayoutConfig.paths.pluginUrl+"img/ajax-loader-small.svg",r=e('<img class="fl-builder-preview-loader" src="'+s+'" />');this.delay(1e3,e.proxy(this.preview,this)),this._loaderTimeout=setTimeout(function(){e(".fl-builder-preview-loader").remove(),l.length>0?l.append(r):i.length>0?i.append(r):o.length>0&&o.append(r)},1500)},_cancelPreview:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)},_renderPreview:function(t){this._xhr=null,FLBuilder._renderLayout(t,e.proxy(this._renderPreviewComplete,this))},_renderPreviewComplete:function(){this._destroySheets(),this._createSheets(),this._initElementsAndClasses(),null!==this._loaderTimeout&&clearTimeout(this._loaderTimeout),e(".fl-builder-preview-loader").remove(),e(FLBuilder._contentClass).trigger("fl-builder.preview-rendered")},revert:function(){this.clear(),FLBuilder._renderLayout(this.state)},clear:function(){this._cancelDelay(),this._cancelPreview(),this._destroySheets(),this._destroyResponsivePreviews()},_initNodeTextColor:function(){e.extend(this.elements,{textColor:e(this.classes.settings+" input[name=text_color]"),linkColor:e(this.classes.settings+" input[name=link_color]"),hoverColor:e(this.classes.settings+" input[name=hover_color]"),headingColor:e(this.classes.settings+" input[name=heading_color]")}),this.elements.textColor.on("change",e.proxy(this._textColorChange,this)),this.elements.linkColor.on("change",e.proxy(this._textColorChange,this)),this.elements.hoverColor.on("change",e.proxy(this._textColorChange,this)),this.elements.headingColor.on("change",e.proxy(this._textColorChange,this))},_textColorChange:function(t){var l=this.elements.textColor.val(),i=this.elements.linkColor.val(),o=this.elements.hoverColor.val(),s=this.elements.headingColor.val();i=""===i?l:i,o=""===o?l:o,s=""===s?l:s,this.delay(100,e.proxy(function(){""===l?this.updateCSSRule(this.classes.node,"color","inherit"):this.updateCSSRule(this.classes.node,"color","#"+l),""===i?this.updateCSSRule(this.classes.node+" a","color","inherit"):this.updateCSSRule(this.classes.node+" a","color","#"+i),""===o?this.updateCSSRule(this.classes.node+" a:hover","color","inherit"):this.updateCSSRule(this.classes.node+" a:hover","color","#"+o),""===s?(this.updateCSSRule(this.classes.node+" h1","color","inherit"),this.updateCSSRule(this.classes.node+" h2","color","inherit"),this.updateCSSRule(this.classes.node+" h3","color","inherit"),this.updateCSSRule(this.classes.node+" h4","color","inherit"),this.updateCSSRule(this.classes.node+" h5","color","inherit"),this.updateCSSRule(this.classes.node+" h6","color","inherit"),this.updateCSSRule(this.classes.node+" h1 a","color","inherit"),this.updateCSSRule(this.classes.node+" h2 a","color","inherit"),this.updateCSSRule(this.classes.node+" h3 a","color","inherit"),this.updateCSSRule(this.classes.node+" h4 a","color","inherit"),this.updateCSSRule(this.classes.node+" h5 a","color","inherit"),this.updateCSSRule(this.classes.node+" h6 a","color","inherit")):(this.updateCSSRule(this.classes.node+" h1","color","#"+s),this.updateCSSRule(this.classes.node+" h2","color","#"+s),this.updateCSSRule(this.classes.node+" h3","color","#"+s),this.updateCSSRule(this.classes.node+" h4","color","#"+s),this.updateCSSRule(this.classes.node+" h5","color","#"+s),this.updateCSSRule(this.classes.node+" h6","color","#"+s),this.updateCSSRule(this.classes.node+" h1 a","color","#"+s),this.updateCSSRule(this.classes.node+" h2 a","color","#"+s),this.updateCSSRule(this.classes.node+" h3 a","color","#"+s),this.updateCSSRule(this.classes.node+" h4 a","color","#"+s),this.updateCSSRule(this.classes.node+" h5 a","color","#"+s),this.updateCSSRule(this.classes.node+" h6 a","color","#"+s))},this))},_initNodeBg:function(){e.extend(this.elements,{bgType:e(this.classes.settings+" select[name=bg_type]"),bgColor:e(this.classes.settings+" input[name=bg_color]"),bgColorPicker:e(this.classes.settings+" .fl-picker-bg_color"),bgOpacity:e(this.classes.settings+" input[name=bg_opacity]"),bgImageSrc:e(this.classes.settings+" select[name=bg_image_src]"),bgRepeat:e(this.classes.settings+" select[name=bg_repeat]"),bgPosition:e(this.classes.settings+" select[name=bg_position]"),bgAttachment:e(this.classes.settings+" select[name=bg_attachment]"),bgSize:e(this.classes.settings+" select[name=bg_size]"),bgVideoSource:e(this.classes.settings+" select[name=bg_video_source]"),bgVideo:e(this.classes.settings+" input[name=bg_video]"),bgVideoServiceUrl:e(this.classes.settings+" input[name=bg_video_service_url]"),bgVideoFallbackSrc:e(this.classes.settings+" select[name=bg_video_fallback_src]"),bgSlideshowSource:e(this.classes.settings+" select[name=ss_source]"),bgSlideshowPhotos:e(this.classes.settings+" input[name=ss_photos]"),bgSlideshowFeedUrl:e(this.classes.settings+" input[name=ss_feed_url]"),bgSlideshowSpeed:e(this.classes.settings+" input[name=ss_speed]"),bgSlideshowTrans:e(this.classes.settings+" select[name=ss_transition]"),bgSlideshowTransSpeed:e(this.classes.settings+" input[name=ss_transitionDuration]"),bgParallaxImageSrc:e(this.classes.settings+" select[name=bg_parallax_image_src]"),bgOverlayColor:e(this.classes.settings+" input[name=bg_overlay_color]"),bgOverlayOpacity:e(this.classes.settings+" input[name=bg_overlay_opacity]")}),this.elements.bgType.on("change",e.proxy(this._bgTypeChange,this)),this.elements.bgColor.on("change",e.proxy(this._bgColorChange,this)),this.elements.bgOpacity.on("keyup",e.proxy(this._bgOpacityChange,this)),this.elements.bgImageSrc.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgRepeat.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgPosition.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgAttachment.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgSize.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgVideoServiceUrl.on("change",e.proxy(this._bgVideoChange,this)),this.elements.bgSlideshowSource.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowPhotos.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowFeedUrl.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowSpeed.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTrans.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTransSpeed.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgParallaxImageSrc.on("change",e.proxy(this._bgParallaxChange,this)),this.elements.bgOverlayColor.on("change",e.proxy(this._bgOverlayChange,this)),this.elements.bgOverlayOpacity.on("keyup",e.proxy(this._bgOverlayChange,this))},_bgTypeChange:function(e){var t=this.elements.bgType.val();this.elements.node.removeClass("fl-row-bg-video"),this.elements.node.removeClass("fl-row-bg-slideshow"),this.elements.node.removeClass("fl-row-bg-parallax"),this.elements.node.find(".fl-bg-video").remove(),this.elements.node.find(".fl-bg-slideshow").remove(),this.elements.content.css("background-image",""),this.updateCSSRule(this.classes.content,{"background-color":"transparent","background-image":"none"}),"none"==t?this._bgOverlayClear():"color"==t?(this.elements.bgColor.trigger("change"),this._bgOverlayClear()):"photo"==t?(this.elements.bgColor.trigger("change"),this.elements.bgImageSrc.trigger("change")):"video"==t?(this.elements.bgColor.trigger("change"),this._bgVideoChange()):"slideshow"==t?(this.elements.bgColor.trigger("change"),this._bgSlideshowChange()):"parallax"==t&&(this.elements.bgColor.trigger("change"),this.elements.bgParallaxImageSrc.trigger("change"))},_bgColorChange:function(t){var l,i,o;""===this.elements.bgColor.val()||isNaN(this.elements.bgOpacity.val())?this.updateCSSRule(this.classes.content,"background-color","transparent"):(l=this.hexToRgb(this.elements.bgColor.val()),i=this.parseFloat(this.elements.bgOpacity.val())/100,o="rgba("+l.join()+", "+i+")",this.delay(100,e.proxy(function(){this.updateCSSRule(this.classes.content,"background-color",o)},this)))},_bgOpacityChange:function(e){this.elements.bgColor.trigger("change")},_bgPhotoChange:function(e){this.elements.bgImageSrc.val()?this.updateCSSRule(this.classes.content,{"background-image":"url("+this.elements.bgImageSrc.val()+")","background-repeat":this.elements.bgRepeat.val(),"background-position":this.elements.bgPosition.val(),"background-attachment":this.elements.bgAttachment.val(),"background-size":this.elements.bgSize.val()}):this.updateCSSRule(this.classes.content,{"background-image":"none"})},_bgVideoChange:function(t){var l=this.elements,i=l.bgVideoSource.val(),o=l.bgVideo.val(),s=l.bgVideoServiceUrl.val(),r="https://www.youtube.com/iframe_api",n="https://player.vimeo.com/api/player.js",a=e("<script>");"video_service"==i&&""!=s?(/^(?:(?:(?:https?:)?\/\/)?(?:www.)?(?:youtu(?:be.com|.be))\/(?:watch\?v\=|v\/|embed\/)?([\w\-]+))/i.test(s)&&e('script[src*="youtube.com"').length<1?a.attr("src",r):/^(http\:\/\/|https\:\/\/)?(www\.)?(vimeo\.com\/)([0-9]+)$/.test(s)&&e('script[src*="vimeo.com"').length<1&&a.attr("src",n),a.attr("type","text/javascript").appendTo("head"),this.delay(500,e.proxy(this.preview,this))):""!=o&&this.preview()},_bgSlideshowChange:function(t){var l=this.elements,i=l.bgSlideshowSource.val(),o=l.bgSlideshowPhotos.val(),s=l.bgSlideshowFeedUrl.val(),r=l.bgSlideshowSpeed.val(),n=l.bgSlideshowTransSpeed.val();"wordpress"==i&&""===o||"smugmug"==i&&""===s||isNaN(parseInt(r))||isNaN(parseInt(n))||this.delay(500,e.proxy(this.preview,this))},_bgParallaxChange:function(e){this.elements.bgParallaxImageSrc.val()&&this.updateCSSRule(this.classes.content,{"background-image":"url("+this.elements.bgParallaxImageSrc.val()+")","background-repeat":"no-repeat","background-position":"center center","background-attachment":"fixed","background-size":"cover"})},_bgOverlayChange:function(t){var l,i,o;""===this.elements.bgOverlayColor.val()||isNaN(this.elements.bgOverlayOpacity.val())?(this.elements.node.removeClass("fl-row-bg-overlay"),this.elements.node.removeClass("fl-col-bg-overlay"),this.updateCSSRule(this.classes.content+":after","background-color","transparent")):(l=this.hexToRgb(this.elements.bgOverlayColor.val()),i=this.parseFloat(this.elements.bgOverlayOpacity.val())/100,o="rgba("+l.join()+", "+i+")",this.delay(100,e.proxy(function(){this.elements.node.hasClass("fl-col")?this.elements.node.addClass("fl-col-bg-overlay"):this.elements.node.addClass("fl-row-bg-overlay"),this.updateCSSRule(this.classes.content+":after","background-color",o)},this)))},_bgOverlayClear:function(e){this.elements.bgOverlayColor.prev(".fl-color-picker-clear").trigger("click")},_initNodeBorder:function(){e.extend(this.elements,{borderType:e(this.classes.settings+" select[name=border_type]"),borderColor:e(this.classes.settings+" input[name=border_color]"),borderColorPicker:e(this.classes.settings+" .fl-picker-border_color"),borderOpacity:e(this.classes.settings+" input[name=border_opacity]")}),this.elements.borderType.on("change",e.proxy(this._borderTypeChange,this)),this.elements.borderColor.on("change",e.proxy(this._borderColorChange,this)),this.elements.borderOpacity.on("keyup",e.proxy(this._borderOpacityChange,this))},_borderTypeChange:function(e){var t=this.elements.borderType.val();this.updateCSSRule(this.classes.content,{"border-style":""===t?"none":t}),this.elements.borderColor.trigger("change"),this.elements.borderTop.trigger("keyup")},_borderColorChange:function(t){var l,i,o;""===this.elements.borderColor.val()||isNaN(this.elements.borderOpacity.val())?this.updateCSSRule(this.classes.content,"border-color","transparent"):(l=this.hexToRgb(this.elements.borderColor.val()),i=parseInt(this.elements.borderOpacity.val())/100,o="rgba("+l.join()+", "+i+")",this.delay(100,e.proxy(function(){this.updateCSSRule(this.classes.content,"border-color",o)},this)))},_borderOpacityChange:function(e){this.elements.borderColor.trigger("change")},_initNodeClassName:function(){e.extend(this.elements,{className:e(this.classes.settings+" input[name=class]")}),this.elements.className.on("keyup",e.proxy(this._classNameChange,this)),this._lastClassName=this.elements.className.val()},_classNameChange:function(e){var t=this.elements.className.val();null!==this._lastClassName&&this.elements.node.removeClass(this._lastClassName),this.elements.node.addClass(t),this._lastClassName=t},_initResponsiveDimensions:function(t){var l={},i=["Top","Bottom","Left","Right"],o=["","Medium","Responsive"],s=this.classes.settings,r="",n="",a=null,d=null;for(a=0;a<i.length;a++)for(d=0;d<o.length;d++)r=t+i[a]+o[d],n=t+"_"+i[a].toLowerCase(),""!=o[d]&&(n+="_"+o[d].toLowerCase()),l[r]=e(s+" input[name="+n+"]"),l[r].on("keyup",e.proxy(this._responsiveDimensionChange,this,t));e.extend(this.elements,l)},_getDimensions:function(e){for(var t=FLBuilderResponsiveEditing._mode,l=["Top","Bottom","Left","Right"],i="default"==t?"":t.charAt(0).toUpperCase()+t.slice(1),o={},s=0;s<l.length;s++)o[l[s].toLowerCase()]=this.elements[e+l[s]+i].val();return this._normalizeDimensionValues(o,e)},_responsiveDimensionChange:function(t){var l=this._getDimensions(t),i={},o="border"==t;e.each(l,function(e,l){i[t+"-"+e+(o?"-width":"")]=l}),this.updateResponsiveCSSRule(this.classes.content,i),this._positionAbsoluteBgs()},_normalizeDimensionValues:function(t,l){var i=this,o=FLBuilderResponsiveEditing._mode,s="default"==o?"":o.charAt(0).toUpperCase()+o.slice(1),l=l.split("-");return"undefined"==typeof l[1]?l[1]="":l[1]=l[1].charAt(0).toUpperCase()+l[1].slice(1),e.map(t,function(e,o){if(e=e.toLowerCase().replace(/[^a-z0-9%.\-]/g,""),""===e){var r=l[0]+o.charAt(0).toUpperCase()+o.slice(1)+l[1]+s,n=i.elements[r].attr("placeholder");n&&(e=n)}null===e||""===e||isNaN(e)||(e=parseFloat(e)+"px"),t[o]=e}),t},_positionAbsoluteBgs:function(){var t=this.elements.node.find(".fl-bg-slideshow"),l=this.elements.node.find(".fl-bg-video"),i=null,o=null,s={top:0,bottom:0,left:0,right:0};(t.length>0||l.length>0)&&(i=this._getDimensions("margin"),o=this._getDimensions("border"),e.map(s,function(e,t){i[t]&&o[t]?s[t]="calc("+i[t]+"+"+o[t]+")":i[t]?s[t]=i[t]:o[t]&&(s[t]=o[t])}),t.length>0&&(this.updateCSSRule(this.classes.node+" .fl-bg-slideshow",s),FLBuilder._resizeLayout()),l.length>0&&this.updateCSSRule(this.classes.node+" .fl-bg-video",s))},_initRow:function(){e.extend(this.elements,{width:e(this.classes.settings+" select[name=width]"),contentWidth:e(this.classes.settings+" select[name=content_width]"),height:e(this.classes.settings+" select[name=full_height]"),align:e(this.classes.settings+" select[name=content_alignment]")}),this.elements.width.on("change",e.proxy(this._rowWidthChange,this)),this.elements.contentWidth.on("change",e.proxy(this._rowContentWidthChange,this)),this.elements.height.on("change",e.proxy(this._rowHeightChange,this)),this.elements.align.on("change",e.proxy(this._rowHeightChange,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeBorder(),this._initResponsiveDimensions("border"),this._initResponsiveDimensions("margin"),this._initResponsiveDimensions("padding")},_rowWidthChange:function(e){var t=this.elements.node;"full"==this.elements.width.val()?(t.removeClass("fl-row-fixed-width"),t.addClass("fl-row-full-width")):(t.removeClass("fl-row-full-width"),t.addClass("fl-row-fixed-width"))},_rowHeightChange:function(e){var t=this.elements.node;t.removeClass("fl-row-align-top"),t.removeClass("fl-row-align-center"),t.removeClass("fl-row-align-bottom"),"full"==this.elements.height.val()?(t.addClass("fl-row-full-height"),t.addClass("fl-row-align-"+this.elements.align.val())):t.removeClass("fl-row-full-height")},_rowContentWidthChange:function(e){var t=this.elements.content.find(".fl-row-content");"full"==this.elements.contentWidth.val()?(t.removeClass("fl-row-fixed-width"),t.addClass("fl-row-full-width")):(t.removeClass("fl-row-full-width"),t.addClass("fl-row-fixed-width"))},_initColumn:function(){e.extend(this.elements,{size:e(this.classes.settings+" input[name=size]"),columnHeight:e(this.classes.settings+" select[name=equal_height]"),columnAlign:e(this.classes.settings+" select[name=content_alignment]"),responsiveOrder:e(this.classes.settings+" select[name=responsive_order]")}),this.elements.size.on("keyup",e.proxy(this._colSizeChange,this)),this.elements.columnHeight.on("change",e.proxy(this._colHeightChange,this)),this.elements.columnAlign.on("change",e.proxy(this._colHeightChange,this)),this.elements.responsiveOrder.on("change",e.proxy(this._colResponsiveOrder,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeBorder(),this._initResponsiveDimensions("border"),this._initResponsiveDimensions("margin"),this._initResponsiveDimensions("padding")},_colSizeChange:function(){var t=8,l=100-t,i=parseFloat(this.elements.size.val()),o=this.elements.node.prev(".fl-col"),s=this.elements.node.next(".fl-col"),r=0===s.length?o:s,n=this.elements.node.siblings(".fl-col"),a=0;0===n.length||isNaN(i)||(n.each(function(){e(this).data("node")!=r.data("node")&&(l-=parseFloat(e(this)[0].style.width),a+=parseFloat(e(this)[0].style.width))}),i<t&&(i=t),i>l&&(i=l),r.css("width",100-a-i+"%"),this.elements.node.css("width",i+"%"))},_colHeightChange:function(){var e=this.elements.node.parent(".fl-col-group");e.removeClass("fl-col-group-align-top"),e.removeClass("fl-col-group-align-center"),e.removeClass("fl-col-group-align-bottom"),"yes"==this.elements.columnHeight.val()?(e.addClass("fl-col-group-equal-height"),e.addClass("fl-col-group-align-"+this.elements.columnAlign.val())):e.removeClass("fl-col-group-equal-height")},_colResponsiveOrder:function(){var e=this.elements.node.parent(".fl-col-group");
|
5 |
-
"reversed"==this.elements.responsiveOrder.val()?e.addClass("fl-col-group-responsive-reversed"):e.removeClass("fl-col-group-responsive-reversed")},_initModule:function(){this._initNodeClassName(),this._initResponsiveDimensions("margin")},_initDefaultFieldPreviews:function(){for(var e=this.elements.settings.find(".fl-field"),t=null,l=null,i=0;i<e.length;i++)t=e.eq(i),l=t.data("preview"),"refresh"==l.type&&this._initFieldRefreshPreview(t),"text"==l.type&&this._initFieldTextPreview(t),"css"==l.type&&this._initFieldCSSPreview(t),"widget"==l.type&&this._initFieldWidgetPreview(t),"font"==l.type&&this._initFieldFontPreview(t)},_initFieldRefreshPreview:function(t){var l=t.data("type"),i=t.data("preview"),o=e.proxy(this.delayPreview,this);switch(l){case"text":t.find("input[type=text]").on("keyup",o);break;case"textarea":t.find("textarea").on("keyup",o);break;case"select":t.find("select").on("change",o);break;case"color":t.find(".fl-color-picker-value").on("change",o);break;case"photo":t.find("select").on("change",o);break;case"multiple-photos":t.find("input").on("change",o);break;case"photo-sizes":t.find("select").on("change",o);break;case"video":t.find("input").on("change",o);break;case"multiple-audios":t.find("input").on("change",o);break;case"icon":t.find("input").on("change",o);break;case"form":t.delegate("input","change",o);break;case"editor":this._addTextEditorCallback(t,i);break;case"code":t.find("textarea").on("change",o);break;case"post-type":t.find("select").on("change",o);break;case"suggest":t.find(".as-values").on("change",o),t.find("select").on("change",o);break;case"unit":t.find("input[type=number]").on("keyup",o);break;case"ordering":t.find("input[type=hidden]").on("change",o)}},_initFieldTextPreview:function(t){var l=t.data("type"),i=t.data("preview"),o=e.proxy(this._previewText,this,i);switch(l){case"text":t.find("input[type=text]").on("keyup",o);break;case"unit":t.find("input[type=number]").on("keyup",o);break;case"textarea":t.find("textarea").on("keyup",o);break;case"code":t.find("textarea").on("change",o);break;case"editor":this._addTextEditorCallback(t,i)}},_previewText:function(t,l){var i=this.elements.node.find(t.selector),o=e("<div>"+e(l.target).val()+"</div>");i.length>0&&(o.find("script").remove(),i.html(o.html()))},_previewTextEditor:function(t,l,i){var o=this.elements.node.find(t.selector),s="undefined"!=typeof tinyMCE?tinyMCE.get(l):null,r=e("#"+l),n="";o.length>0&&(n=e(s&&"none"==r.css("display")?"<div>"+s.getContent()+"</div>":"undefined"==typeof switchEditors||"undefined"==typeof switchEditors.wpautop?"<div>"+r.val()+"</div>":"<div>"+switchEditors.wpautop(r.val())+"</div>"),n.find("script").remove(),o.html(n.html()))},_addTextEditorCallback:function(t,l){var i=t.find("textarea.wp-editor-area").attr("id"),o=null;if("refresh"==l.type)o=e.proxy(this.delayPreview,this);else{if("text"!=l.type)return;o=e.proxy(this._previewTextEditor,this,l,i)}e("#"+i).on("keyup",o),"undefined"!=typeof tinyMCE&&(editor=tinyMCE.get(i),editor.on("change",o),editor.on("keyup",o))},_initFieldFontPreview:function(t){var l=t.data("type"),i=t.data("preview");i.id=t.attr("id");var o=e.proxy(this._previewFont,this,i);"font"==l&&t.find(".fl-font-field").on("change","select",o)},_previewFont:function(t,l){var i=e(l.delegateTarget),o=i.find(".fl-font-field-font"),s=e(o).find(":selected"),r=s.parent().attr("label"),n=i.find(".fl-font-field-weight"),a=t.id+"-"+this.nodeId,d=this._getPreviewSelector(this.classes.node,t.selector);"Google"==r&&this._buildFontStylesheet(a,o.val(),n.val()),"Default"==o.val()?(this.updateCSSRule(d,"font-family",""),this.updateCSSRule(d,"font-weight","")):(this.updateCSSRule(d,"font-family",o.val()),this.updateCSSRule(d,"font-weight",n.val()))},_buildFontStylesheet:function(t,l,i){var o=FLBuilderConfig.googleFontsUrl,s="",r={},n={};r[l]=[i],FLBuilderPreview._fontsList[t]=r,Object.keys(FLBuilderPreview._fontsList).forEach(function(e){var t=FLBuilderPreview._fontsList[e];Object.keys(t).forEach(function(e){var l=t[e];n[e]=n[e]||[],l=l.filter(function(t){return n[e].indexOf(t)<0}),n[e]=n[e].concat(l)})}),e.each(n,function(e,t){s+=e+":"+t.join()+"|"}),s=o+s.slice(0,-1).replace(" ","+"),e("#fl-builder-google-fonts-preview").length<1?e("<link>").attr("id","fl-builder-google-fonts-preview").attr("type","text/css").attr("rel","stylesheet").attr("href",s).appendTo("head"):e("#fl-builder-google-fonts-preview").attr("href",s)},_initFieldCSSPreview:function(e){var t=e.data("preview"),l=null;if("undefined"!=typeof t.rules)for(l in t.rules)this._initFieldCSSPreviewCallback(e,t.rules[l]);else this._initFieldCSSPreviewCallback(e,t)},_initFieldCSSPreviewCallback:function(t,l){switch(t.data("type")){case"text":t.find("input[type=text]").on("keyup",e.proxy(this._previewCSS,this,l));break;case"unit":t.find("input[type=number]").on("keyup",e.proxy(this._previewCSS,this,l));break;case"select":t.find("select").on("change",e.proxy(this._previewCSS,this,l));break;case"color":t.find(".fl-color-picker-value").on("change",e.proxy(this._previewColor,this,l))}},_previewCSS:function(t,l){var i=this._getPreviewSelector(this.classes.node,t.selector),o=t.property,s="undefined"==typeof t.unit?"":t.unit,r=e(l.target),n=r.val();"%"==s?n=parseInt(n)/100:""!==n&&(n+=s),r.closest(".fl-field-responsive-setting").length?this.updateResponsiveCSSRule(i,o,n):this.updateCSSRule(i,o,n)},_previewColor:function(t,l){var i=this._getPreviewSelector(this.classes.node,t.selector),o=e(l.target),s=o.val(),r=""===s?"inherit":"#"+s;/^rgb/.test(s.replace(/\s+/g,""))&&(r=s),o.closest(".fl-field-responsive-setting").length?this.updateResponsiveCSSRule(i,t.property,r):this.updateCSSRule(i,t.property,r)},_initFieldWidgetPreview:function(t){var l=e.proxy(this.delayPreview,this);t.find("input").on("keyup",l),t.find("input[type=checkbox]").on("click",l),t.find("textarea").on("keyup",l),t.find("select").on("change",l)},_getPreviewSelector:function(e,t){for(var l="",i=t.split(","),o=0;o<i.length;o++)l+=e+" "+i[o],o!=i.length-1&&(l+=", ");return l}}}(jQuery),function(e){var t={ignored:[],reparsed:[],width:null,callback:null,sheets:{},styles:[],queue:[],emPxValue:null,regex:{media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+[^\}]+\}/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)\}$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},ignore:function(e){Array.prototype.push.apply(this.ignored,e)},reparse:function(e){Array.prototype.push.apply(this.reparsed,e)},update:function(e,t){this.width=void 0===e?null:e,this.callback=void 0===t?null:t,l.update(),this.queueSheets()?this.runQueue():this.applyStyles()},queueSheets:function(){for(var t=e("head"),l=t.find("link"),i=null,o=null,s=null,r=null,n=!1,a=0,d=0;a<l.length;a++)if(i=l[a],o=i.href,s=i.media,r=i.rel&&"stylesheet"===i.rel.toLowerCase(),n=!1,o&&r){for(d=0;d<this.ignored.length;d++)if(o.indexOf(this.ignored[d])>-1){n=!0;break}if(n)continue;for(d=0;d<this.reparsed.length;d++)if(o.indexOf(this.reparsed[d])>-1){this.sheets[o]=null;break}void 0!==this.sheets[o]&&this.sheets[o]||this.queue.push({link:l.eq(a),href:o,media:s})}return this.queue.length},runQueue:function(){var t;this.queue.length?(t=this.queue.shift(),e.get(t.href,e.proxy(function(e){this.parse(e,t),this.runQueue()},this))):this.applyStyles()},parse:function(e,t){var l=this.regex,i=e.replace(l.comments,"").replace(l.keyframes,"").match(l.media),o=i&&i.length||0,s=!o&&t.media,r=null,n=null,a=null,d="",u=0,c=0;for(i?d=e.replace(l.media,""):s&&"all"!=t.media?o=1:d=e,this.sheets[t.href]={link:t.link,href:t.href,link:t.link,all:d,queries:[]},u=0;u<o;u++)for(s?(r=t.media,e=this.convertURLs(e,t.href)):(r=i[u].match(l.findStyles)&&RegExp.$1,e=RegExp.$2&&this.convertURLs(RegExp.$2,t.href)),n=r.split(","),c=0;c<n.length;c++)r=n[c],a=r.split("(")[0].match(l.only)&&RegExp.$2,"print"!=a&&(r.replace(l.minmaxwh,"").match(l.other)||this.sheets[t.href].queries.push({minw:r.match(l.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(l.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),styles:e}))},applyStyles:function(){var t=e("head"),l=null,i=null,o=null,s=null,r=null,n=null,a=null,d=null,u=!1;this.clearStyles();for(s in this.sheets)if(l="",i=e("<style></style>"),o=this.sheets[s],o.queries.length&&this.width){for(l+=o.all,n=0;n<o.queries.length;n++)r=o.queries[n],a=r.minw,d=r.maxw,u=!1,a&&(a=parseFloat(a)*(a.indexOf("em")>-1?this.getEmPxValue():1),this.width>=a&&(l+=r.styles,u=!0)),d&&!u&&(d=parseFloat(d)*(d.indexOf("em")>-1?this.getEmPxValue():1),this.width<=d&&(l+=r.styles));this.styles.push(i),t.append(i),i.html(l),o.link.remove()}},clearStyles:function(){var t=e("head"),l=null,i=this.styles.slice(0);this.styles=[];for(l in this.sheets)this.sheets[l].link.parent().length||t.append(this.sheets[l].link);setTimeout(function(){for(var e=0;e<i.length;e++)i[e].empty(),i[e].remove()},50)},convertURLs:function(e,t){return t=t.substring(0,t.lastIndexOf("/")),t.length&&(t+="/"),e.replace(this.regex.urls,"$1"+t+"$2$3")},getEmPxValue:function(){if(this.emPxValue)return this.emPxValue;var e=null,t=window.document,l=t.documentElement,i=t.body,o=t.createElement("div"),s=l.style.fontSize,r=i&&i.style.fontSize,n=!1;return o.style.cssText="position:absolute;font-size:1em;width:1em",i||(i=n=t.createElement("body"),i.style.background="none"),l.style.fontSize="100%",i.style.fontSize="100%",i.appendChild(o),n&&l.insertBefore(i,l.firstChild),e=parseFloat(o.offsetWidth),n?l.removeChild(i):i.removeChild(o),l.style.fontSize=s,r?i.style.fontSize=r:i.style.fontSize="",this.emPxValue=e,e}},l={_functions:null,update:function(){var e;if(!this._functions){this._functions={};for(e in i)this._functions[e]=jQuery.fn[e]}if(t.width)for(e in i)jQuery.fn[e]=i[e];else for(e in this._functions)jQuery.fn[e]=this._functions[e]}},i={width:function(i){return void 0!=i?l._functions.width.call(this,i):e.isWindow(this[0])?t.width:l._functions.width.call(this)}};FLBuilderSimulateMediaQuery={ignore:function(e){t.ignore(e)},reparse:function(e){t.reparse(e)},update:function(e,l){t.update(e,l)}}}(jQuery),function(e){FLBuilderResponsiveEditing={_mode:"default",refreshPreview:function(){var t;e(".fl-responsive-preview").length&&"default"!=this._mode&&("responsive"==this._mode?(t=FLBuilderConfig.global.responsive_breakpoint>=320?320:FLBuilderConfig.global.responsive_breakpoint,FLBuilderSimulateMediaQuery.update(t)):"medium"==this._mode&&(t=FLBuilderConfig.global.medium_breakpoint>=769?769:FLBuilderConfig.global.medium_breakpoint,FLBuilderSimulateMediaQuery.update(t)),FLBuilder._resizeLayout())},_init:function(){this._bind(),this._initMediaQueries()},_bind:function(){FLBuilder.addHook("responsive-editing-switched",this._previewSpacingFields),FLBuilder.addHook("settings-form-init",this._initSettingsForms),FLBuilder.addHook("settings-lightbox-closed",this._clearPreview),e("body").delegate(".fl-field-responsive-toggle","click",this._settingToggleClicked)},_initMediaQueries:function(){FLBuilderSimulateMediaQuery.ignore([FLBuilderConfig.pluginUrl,"fl-theme-builder","/wp-includes/","/wp-admin/"]),FLBuilderSimulateMediaQuery.reparse([FLBuilderConfig.postId+"-layout-draft.css?",FLBuilderConfig.postId+"-layout-draft-partial.css?",FLBuilderConfig.postId+"-layout-preview.css?",FLBuilderConfig.postId+"-layout-preview-partial.css?"])},_switchTo:function(t,l){var i=e("body"),o=e(FLBuilder._contentClass),s=e(".fl-responsive-preview"),r=e(".fl-responsive-preview-mask"),n=e(".fl-content-placeholder"),a=null;if(FLBuilderResponsiveEditing._mode=t,"default"==t){if(0===n.length)return;n.after(o),n.remove(),s.remove(),r.remove()}else 0===s.length?(o.after('<div class="fl-content-placeholder"></div>'),i.prepend(wp.template("fl-responsive-preview")()),e(".fl-responsive-preview").addClass("fl-preview-"+t),e(".fl-responsive-preview-content").append(o)):(s.removeClass("fl-preview-responsive fl-preview-medium"),s.addClass("fl-preview-"+t));"responsive"==t?(a=FLBuilderConfig.global.responsive_breakpoint>=320?320:FLBuilderConfig.global.responsive_breakpoint,o.width(a),FLBuilderSimulateMediaQuery.update(a,l)):"medium"==t?(a=FLBuilderConfig.global.medium_breakpoint>=769?769:FLBuilderConfig.global.medium_breakpoint,o.width(a),FLBuilderSimulateMediaQuery.update(a,l)):(o.width(""),FLBuilderSimulateMediaQuery.update(null,l)),this._setContentBackgroundColor(),FLBuilder._resizeLayout(),FLBuilder.triggerHook("responsive-editing-switched",t)},_setContentBackgroundColor:function(){var t=e(FLBuilder._contentClass),l=e(".fl-responsive-preview"),i=e(".fl-content-placeholder"),o=i.parents(),s="#fff",r=0;if(0===l.length)t.css("background-color","");else{for(;r<o.length&&(s=o.eq(r).css("background-color"),"rgba(0, 0, 0, 0)"==s);r++);t.css("background-color",s)}},_switchToAndScroll:function(t){var l=e(".fl-builder-settings").data("node"),i=void 0===l?void 0:e(".fl-node-"+l);FLBuilderResponsiveEditing._switchTo(t,function(){void 0!==i&&i&&setTimeout(function(){var t=e(window),l=e(".fl-responsive-preview-content");!l.length||t.height()<l.height()?e("html, body").animate({scrollTop:i.offset().top-100},250):scrollTo(0,0)},250)})},_clearPreview:function(){FLBuilderResponsiveEditing._switchToAndScroll("default")},_settingToggleClicked:function(){var t=e(this),l=t.data("mode");l="default"==l?"medium":"medium"==l?"responsive":"default",FLBuilderResponsiveEditing._switchAllSettingsTo(l),t.siblings(".fl-field-responsive-setting:visible").find("input").focus()},_switchAllSettingsTo:function(t){var l="dashicons-desktop dashicons-tablet dashicons-smartphone";e(".fl-field-responsive-toggle").removeClass(l),e(".fl-field-responsive-setting").hide(),l="default"==t?"dashicons-desktop":"medium"==t?"dashicons-tablet":"dashicons-smartphone",e(".fl-field-responsive-toggle").addClass(l).data("mode",t),e(".fl-field-responsive-setting-"+t).css("display","inline-block"),FLBuilderResponsiveEditing._switchToAndScroll(t)},_initSettingsForms:function(){var e=FLBuilderResponsiveEditing;Number(FLBuilderConfig.global.responsive_enabled)&&(e._initFields("unit","input","keyup",e._spacingFieldKeyup,["margin_top","margin_bottom","margin_left","margin_right","padding_top","padding_bottom","padding_left","padding_right"]),e._initFields("unit","input","keyup",e._textFieldKeyup)),e._switchAllSettingsTo(e._mode)},_initFields:function(t,l,i,o,s){for(var r=e(".fl-builder-settings"),n=r.find(".fl-field").has(".fl-field-responsive-setting"),a=null,d=null,u=0;u<n.length;u++)a=n.eq(u),d=a.attr("id").replace("fl-field-",""),"object"==typeof s&&e.inArray(d,s)<0||t==a.attr("data-type")&&void 0===a.attr("data-responsive-init")&&(a.find(".fl-field-responsive-setting-default "+l).on(i,o),a.find(".fl-field-responsive-setting-medium "+l).on(i,o),a.find(".fl-field-responsive-setting-responsive "+l).on(i,o),a.find(".fl-field-responsive-setting-default "+l).trigger(i),a.attr("data-responsive-init",1))},_getFields:function(t,l){var i=e(t).closest(".fl-field");return{"default":i.find(".fl-field-responsive-setting-default "+l),medium:i.find(".fl-field-responsive-setting-medium "+l),responsive:i.find(".fl-field-responsive-setting-responsive "+l)}},_textFieldKeyup:function(){var e=FLBuilderResponsiveEditing._getFields(this,"input"),t=e["default"].attr("placeholder"),l=e["default"].val(),i=e.medium.val();""==l?e.medium.attr("placeholder",void 0===t?"":t):e.medium.attr("placeholder",l),""==i?e.responsive.attr("placeholder",e.medium.attr("placeholder")):e.responsive.attr("placeholder",i)},_spacingFieldKeyup:function(){var t=e(".fl-builder-settings"),l="row",i=e(this).closest(".fl-field").attr("id").replace("fl-field-","").split("_"),o=i[0],s=i[1],r=FLBuilderResponsiveEditing._getFields(this,"input"),n=FLBuilderConfig.global,a=null,d=r["default"].val(),u=null,c=r.medium.val(),f=null,h=(r.responsive.val(),null),p=null,g=null;t.hasClass("fl-builder-row-settings")?l="row":t.hasClass("fl-builder-col-settings")?l="col":t.hasClass("fl-builder-module-settings")&&(l="module"),e.extend(n,{col_margins:0,col_margins_medium:"",col_margins_responsive:"",col_padding:0,col_padding_medium:"",col_padding_responsive:""}),a=l+"_"+o+("margin"==o?"s":""),u=n[a],f=n[a+"_medium"],h=n[a+"_responsive"],""==f&&(""!=d?r.medium.attr("placeholder",d):""!=u&&r.medium.attr("placeholder",u)),""==h&&("module"==l&&Number(n.auto_spacing)?(p=""==f?Number(u):f,g=""==c?Number(d):c,""!=g&&(g>p||g<0)?r.responsive.attr("placeholder",p):""!=g?r.responsive.attr("placeholder",g):r.responsive.attr("placeholder",p)):(!Number(n.auto_spacing)||"padding"==o&&"top|bottom".indexOf(s)>-1)&&(""!=c?r.responsive.attr("placeholder",c):""!=f?r.responsive.attr("placeholder",f):""!=d?r.responsive.attr("placeholder",d):""!=u&&r.responsive.attr("placeholder",u)))},_previewSpacingFields:function(){var t=FLBuilderResponsiveEditing._mode,l=e(".fl-builder-settings");0!==l.length&&void 0!==l.attr("data-node")&&l.find(".fl-field").has(".fl-field-responsive-setting").each(function(){var e=FLBuilderResponsiveEditing._getFields(this,"input"),l=e.responsive.closest(".fl-field").data("preview");"refresh"!=l.type&&e[t].trigger("keyup")})}},e(function(){FLBuilderResponsiveEditing._init()})}(jQuery),function(e){var t={init:function(){var t=e("body");t.delegate(".fl-builder-service-select","change",this._serviceChange),t.delegate(".fl-builder-service-connect-button","click",this._connectClicked),t.delegate(".fl-builder-service-account-select","change",this._accountChange),t.delegate(".fl-builder-service-account-delete","click",this._accountDeleteClicked),t.delegate(".fl-builder-campaign-monitor-client-select","change",this._campaignMonitorClientChange),t.delegate(".fl-builder-mailchimp-list-select","change",this._mailChimpListChange),t.delegate(".fl-builder-activecampaign-list_type-select","change",this._activeCampaignChange)},_startSettingsLoading:function(t){var l=e(".fl-builder-settings"),i=t.closest(".fl-builder-service-settings"),o=e(".fl-builder-service-error");l.append('<div class="fl-builder-loading"></div>'),i.addClass("fl-builder-service-settings-loading"),o.remove()},_finishSettingsLoading:function(){var t=e(".fl-builder-settings"),l=e(".fl-builder-service-settings-loading");t.find(".fl-builder-loading").remove(),l.removeClass("fl-builder-service-settings-loading")},_serviceChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this),o=i.closest("tr"),s=i.val();o.siblings("tr.fl-builder-service-account-row").remove(),o.siblings("tr.fl-builder-service-connect-row").remove(),o.siblings("tr.fl-builder-service-field-row").remove(),e(".fl-builder-service-error").remove(),""!==s&&(t._startSettingsLoading(i),FLBuilder.ajax({action:"render_service_settings",node_id:l,service:s},t._serviceChangeComplete))},_serviceChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-select-row");s.after(i.html),t._addAccountDelete(o),t._finishSettingsLoading()},_connectClicked:function(){for(var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-connect-row"),r=i.find(".fl-builder-service-connect-input"),n=null,a=null,d=0,u={action:"connect_service",node_id:l,service:o.val(),fields:{}};d<r.length;d++)n=r.eq(d),a=n.attr("name"),u.fields[a]=n.val();s.hide(),t._startSettingsLoading(o),FLBuilder.ajax(u,t._connectComplete)},_connectComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-select-row"),r=o.find(".fl-builder-service-select"),n=o.find(".fl-builder-service-account-row"),a=o.find(".fl-builder-service-account-select"),d=o.find(".fl-builder-service-connect-row");i.error?(d.show(),0===a.length?r.after('<div class="fl-builder-service-error">'+i.error+"</div>"):a.after('<div class="fl-builder-service-error">'+i.error+"</div>")):(d.remove(),n.remove(),s.after(i.html)),t._addAccountDelete(o),t._finishSettingsLoading()},_accountChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-account-select"),r=i.find(".fl-builder-service-connect-row"),n=i.find("tr.fl-builder-service-field-row"),a=e(".fl-builder-service-error"),d=s.val(),u=null;r.remove(),n.remove(),a.remove(),"add_new_account"==d?u={action:"render_service_settings",node_id:l,service:o.val(),add_new:!0}:""!==d&&(u={action:"render_service_fields",node_id:l,service:o.val(),account:d}),u&&(t._startSettingsLoading(o),FLBuilder.ajax(u,t._accountChangeComplete)),t._addAccountDelete(i)},_accountChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-account-row");s.after(i.html),t._finishSettingsLoading()},_addAccountDelete:function(e){var t=e.find(".fl-builder-service-account-select");t.length>0&&(e.find(".fl-builder-service-account-delete").remove(),""!==t.val()&&"add_new_account"!=t.val()&&t.after('<a href="javascript:void(0);" class="fl-builder-service-account-delete">'+FLBuilderStrings.deleteAccount+"</a>"))},_accountDeleteClicked:function(){var l=e(this).closest(".fl-builder-service-settings"),i=l.find(".fl-builder-service-select"),o=l.find(".fl-builder-service-account-select");confirm(FLBuilderStrings.deleteAccountWarning)&&(FLBuilder.ajax({action:"delete_service_account",service:i.val(),account:o.val()},t._accountDeleteComplete),t._startSettingsLoading(o))},_accountDeleteComplete:function(){var l=e(".fl-builder-service-settings-loading"),i=l.find(".fl-builder-service-select");t._finishSettingsLoading(),i.trigger("change")},_campaignMonitorClientChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-account-select"),r=e(this),n=i.find(".fl-builder-service-list-select"),a=r.val();0!==n.length&&n.closest("tr").remove(),""!==a&&(t._startSettingsLoading(o),FLBuilder.ajax({action:"render_service_fields",node_id:l,service:o.val(),account:s.val(),client:a},t._campaignMonitorClientChangeComplete))},_campaignMonitorClientChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-campaign-monitor-client-select");s.closest("tr").after(i.html),t._finishSettingsLoading()},_mailChimpListChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-account-select"),r=i.find(".fl-builder-service-list-select");e(".fl-builder-mailchimp-group-select").closest("tr").remove(),""!==r.val()&&(t._startSettingsLoading(o),FLBuilder.ajax({action:"render_service_fields",node_id:l,service:o.val(),account:s.val(),list_id:r.val()},t._mailChimpListChangeComplete))},_mailChimpListChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-list-select");s.closest("tr").after(i.html),t._finishSettingsLoading()},_activeCampaignChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-account-select"),r=i.find(".fl-builder-service-list-select");list_type=i.find('select[name="list_type"]'),0!==r.length&&r.closest("tr").remove(),""!==list_type.val()&&(t._startSettingsLoading(o),FLBuilder.ajax({action:"render_service_fields",node_id:l,service:o.val(),account:s.val(),list_type:list_type.val()},t._activeCampaignTypeChangeComplete))},_activeCampaignTypeChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-field-row");s.after(i.html),t._finishSettingsLoading()}};e(function(){t.init()})}(jQuery),function(e){FLBuilderTour={_tour:null,start:function(){FLBuilderTour._tour?FLBuilderTour._tour.restart():(FLBuilderTour._tour=new Tour(FLBuilderTour._config()),FLBuilderTour._tour.init()),FLBuilderTour._tour.start()},_config:function(){var t={storage:!1,onStart:FLBuilderTour._onStart,onPrev:FLBuilderTour._onPrev,onNext:FLBuilderTour._onNext,onEnd:FLBuilderTour._onEnd,template:'<div class="popover" role="tooltip"> <i class="fa fa-times" data-role="end"></i> <div class="arrow"></div> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation clearfix"> <button class="fl-builder-button fl-builder-button-primary fl-builder-tour-next" data-role="next">'+FLBuilderStrings.tourNext+"</button> </div> </div>",steps:[{animation:!1,element:".fl-builder-bar",placement:"bottom",title:FLBuilderStrings.tourTemplatesTitle,content:FLBuilderStrings.tourTemplates,onShown:function(){0===e(".fl-template-selector").length?(e(".popover[class*=tour-]").css("visibility","hidden"),FLBuilder._showTemplateSelector()):FLBuilderTour._templateSelectorLoaded()}},{animation:!1,element:"#fl-builder-blocks-rows .fl-builder-blocks-section-title",placement:"left",title:FLBuilderStrings.tourAddRowsTitle,content:FLBuilderStrings.tourAddRows,onShow:function(){FLBuilderTour._dimSection("body"),FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._showPanel(),e(".fl-template-selector .fl-builder-settings-cancel").trigger("click"),e("#fl-builder-blocks-rows .fl-builder-blocks-section-title").trigger("click")}},{animation:!1,element:"#fl-builder-blocks-basic .fl-builder-blocks-section-title",placement:"left",title:FLBuilderStrings.tourAddContentTitle,content:FLBuilderStrings.tourAddContent,onShow:function(){FLBuilderTour._dimSection("body"),FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._showPanel(),e("#fl-builder-blocks-basic .fl-builder-blocks-section-title").trigger("click"),e(".fl-row").eq(0).trigger("mouseleave"),e(".fl-module").eq(0).trigger("mouseleave")}},{animation:!1,element:".fl-row:first-of-type",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),e(".fl-row").eq(0).trigger("mouseenter"),e(".fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-row:first-of-type .fl-module-overlay .fl-block-overlay-actions",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent2,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),e(".fl-row").eq(0).trigger("mouseenter"),e(".fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-builder-add-content-button",placement:"bottom",title:FLBuilderStrings.tourAddContentButtonTitle,content:FLBuilderStrings.tourAddContentButton,onShow:function(){FLBuilderTour._dimSection("body"),e(".fl-row").eq(0).trigger("mouseleave"),e(".fl-module").eq(0).trigger("mouseleave")}},{animation:!1,element:".fl-builder-templates-button",placement:"bottom",title:FLBuilderStrings.tourTemplatesButtonTitle,content:FLBuilderStrings.tourTemplatesButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,element:".fl-builder-tools-button",placement:"bottom",title:FLBuilderStrings.tourToolsButtonTitle,content:FLBuilderStrings.tourToolsButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,element:".fl-builder-done-button",placement:"bottom",title:FLBuilderStrings.tourDoneButtonTitle,content:FLBuilderStrings.tourDoneButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,orphan:!0,backdrop:!0,title:FLBuilderStrings.tourFinishedTitle,content:FLBuilderStrings.tourFinished,template:'<div class="popover" role="tooltip"> <div class="arrow"></div> <i class="fa fa-times" data-role="end"></i> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation clearfix"> <button class="fl-builder-button fl-builder-button-primary fl-builder-tour-next" data-role="end">'+FLBuilderStrings.tourEnd+"</button> </div> </div>"}]};return FLBuilderConfig.lite?t.steps.shift():"disabled"==FLBuilderConfig.enabledTemplates?t.steps.shift():"fl-builder-template"==FLBuilderConfig.postType&&t.steps.shift(),t},_onStart:function(){var t=e("body");t.append('<div class="fl-builder-tour-mask"></div>'),t.on("fl-builder.template-selector-loaded",FLBuilderTour._templateSelectorLoaded),0===e(".fl-row").length&&"module"!=FLBuilderConfig.userTemplateType&&(e(".fl-builder-content").append('<div class="fl-builder-tour-demo-content fl-row fl-row-fixed-width fl-row-bg-none"> <div class="fl-row-content-wrap"> <div class="fl-row-content fl-row-fixed-width fl-node-content"> <div class="fl-col-group"> <div class="fl-col" style="width:100%"> <div class="fl-col-content fl-node-content"> <div class="fl-module fl-module-rich-text" data-type="rich-text" data-name="Text Editor"> <div class="fl-module-content fl-node-content"> <div class="fl-rich-text"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus pellentesque ut lorem non cursus. Sed mauris nunc, porttitor iaculis lorem a, sollicitudin lacinia sapien. Proin euismod orci lacus, et sollicitudin leo posuere ac. In hac habitasse platea dictumst. Maecenas elit magna, consequat in turpis suscipit, ultrices rhoncus arcu. Phasellus finibus sapien nec elit tempus venenatis. Maecenas tincidunt sapien non libero maximus, in aliquam felis tincidunt. Mauris mollis ultricies facilisis. Duis condimentum dignissim tortor sit amet facilisis. Aenean gravida lacus eu risus molestie egestas. Donec ut dolor dictum, fringilla metus malesuada, viverra nunc. Maecenas ut purus ac justo aliquet lacinia. Cras vestibulum elementum tincidunt. Maecenas mattis tortor neque, consectetur dignissim neque tempor nec.</p></div> </div> </div> </div> </div> </div> </div> </div> </div>'),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols())},_onPrev:function(){e(".fl-builder-tour-dimmed").remove()},_onNext:function(){e(".fl-builder-tour-dimmed").remove()},_onEnd:function(){e("body").off("fl-builder.template-selector-loaded"),e(".fl-builder-tour-mask").remove(),e(".fl-builder-tour-dimmed").remove(),e(".fl-builder-tour-demo-content").remove(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._showPanel(),FLBuilder._initTemplateSelector()},_dimSection:function(t){e(t).find(".fl-builder-tour-dimmed").remove(),e(t).append('<div class="fl-builder-tour-dimmed"></div>')},_templateSelectorLoaded:function(){var t=e(".fl-builder-settings-lightbox .fl-lightbox-header"),l=t.height(),i=t.offset().top+75;e(".popover[class*=tour-]").css({top:i+l+"px",visibility:"visible"})}}}(jQuery);var FLBuilderColorPicker;!function(e,t){function l(){var t,l,i="backgroundImage";f?h="filter":(t=e('<div id="iris-gradtest" />'),l="linear-gradient(top,#fff,#000)",e.each(p,function(e,o){if(t.css(i,o+l),t.css(i).match("gradient"))return h=e,!1}),h===!1&&(t.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),t.css(this.bgImageString).match("gradient")&&(h="webkit")),t.remove())}function i(t,l){return t="top"===t?"top":"left",l=e.isArray(l)?l:Array.prototype.slice.call(arguments,1),"webkit"===h?s(t,l):p[h]+"linear-gradient("+t+", "+l.join(", ")+")"}function o(t,l){var i,o,s,n,a,d,u,c,f;t="top"===t?"top":"left",l=e.isArray(l)?l:Array.prototype.slice.call(arguments,1),i="top"===t?0:1,o=e(this),s=l.length-1,n="filter",a=1===i?"left":"top",d=1===i?"right":"bottom",u=1===i?"height":"width",c='<div class="iris-ie-gradient-shim" style="position:absolute;'+u+":100%;"+a+":%start%;"+d+":%end%;"+n+':%filter%;" data-color:"%color%"></div>',f="","static"===o.css("position")&&o.css({position:"relative"}),l=r(l),e.each(l,function(e,t){var o,r,n;return e!==s&&(o=l[e+1],void(t.stop!==o.stop&&(r=100-parseFloat(o.stop)+"%",t.octoHex=new Color(t.color).toIEOctoHex(),
|
6 |
-
o.octoHex=new Color(o.color).toIEOctoHex(),n="progid:DXImageTransform.Microsoft.Gradient(GradientType="+i+", StartColorStr='"+t.octoHex+"', EndColorStr='"+o.octoHex+"')",f+=c.replace("%start%",t.stop).replace("%end%",r).replace("%filter%",n))))}),o.find(".iris-ie-gradient-shim").remove(),e(f).prependTo(o)}function s(t,l){var i=[];return t="top"===t?"0% 0%,0% 100%,":"0% 100%,100% 100%,",l=r(l),e.each(l,function(e,t){i.push("color-stop("+parseFloat(t.stop)/100+", "+t.color+")")}),"-webkit-gradient(linear,"+t+i.join(",")+")"}function r(t){var l=[],i=[],o=[],s=t.length-1;return e.each(t,function(e,t){var o=t,s=!1,r=t.match(/1?[0-9]{1,2}%$/);r&&(o=t.replace(/\s?1?[0-9]{1,2}%$/,""),s=r.shift()),l.push(o),i.push(s)}),i[0]===!1&&(i[0]="0%"),i[s]===!1&&(i[s]="100%"),i=n(i),e.each(i,function(e){o[e]={color:l[e],stop:i[e]}}),o}function n(t){var l,i,o,s,r=0,a=t.length-1,d=0,u=!1;if(t.length<=2||e.inArray(!1,t)<0)return t;for(;d<t.length-1;)u||t[d]!==!1?u&&t[d]!==!1&&(a=d,d=t.length):(r=d-1,u=!0),d++;for(i=a-r,s=parseInt(t[r].replace("%"),10),l=(parseFloat(t[a].replace("%"))-s)/i,d=r+1,o=1;d<a;)t[d]=s+o*l+"%",o++,d++;return n(t)}var a=[],d=navigator.userAgent.toLowerCase(),u="Microsoft Internet Explorer"===navigator.appName,c=u?parseFloat(d.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,f=u&&c<10,h=!1,p=["-moz-","-webkit-","-o-","-ms-"];flBuilderParseColorValue=function(e){var t=e.replace(/\s+/g,""),l=t.indexOf("rgba")!==-1?parseFloat(100*t.replace(/^.*,(.+)\)/,"$1")):100,i=l<100;return{value:t,alpha:l,rgba:i}},e.fn.flBuilderColorPickerGradient=function(){var t=arguments;return this.each(function(){f?o.apply(this,t):e(this).css("backgroundImage",i.apply(this,t))})},e.fn.flBuilderColorPickerRaninbowGradient=function(t,l){var i,o,s,r;for(t=t||"top",i=e.extend({},{s:100,l:50},l),o="hsl(%h%,"+i.s+"%,"+i.l+"%)",s=0,r=[];s<=360;)r.push(o.replace("%h%",s)),s+=30;return this.each(function(){e(this).flBuilderColorPickerGradient(t,r)})},FLBuilderColorPicker=function(t){this._html='<div class="fl-color-picker-ui"><div class="iris-picker"><div class="iris-picker-inner"><div class="iris-square"><a class="iris-square-value" href="#"><span class="iris-square-handle ui-slider-handle"></span></a><div class="iris-square-inner iris-square-horiz"></div><div class="iris-square-inner iris-square-vert"></div></div><div class="iris-slider iris-strip"><div class="iris-slider-offset"></div></div></div></div></div>';var l={elements:null,color:"",mode:"hsl",controls:{horiz:"s",vert:"l",strip:"h"},target:!1,width:200,presets:[],labels:{colorPresets:"Color Presets",colorPicker:"Color Picker",placeholder:"Paste color here...",removePresetConfirm:"Are you sure?",noneColorSelected:"None color selected.",alreadySaved:"%s is already a saved preset.",noPresets:"Add a color preset first.",presetAdded:"%s added to presets!"}};this.options=e.extend({},l,t),(f===!1||f===!0&&c>7)&&this._init()},FLBuilderColorPicker.prototype={_html:"",_color:"",_currentElement:"",_inited:!1,_defaultHSLControls:{horiz:"s",vert:"l",strip:"h"},_defaultHSVControls:{horiz:"h",vert:"v",strip:"s"},_scale:{h:360,s:100,l:100,v:100},_init:function(){var t=this;e(t.options.elements);this._color=new Color("#ff0000").setHSpace(t.options.mode),a=this.options.presets,h===!1&&l(),e("html").hasClass("fl-color-picker-init")?t.picker=e(".fl-color-picker-ui"):t.picker=e(this._html).appendTo("body"),u?9===c?t.picker.addClass("iris-ie-9"):c<=8&&t.picker.addClass("iris-ie-lt9"):d.indexOf("compatible")<0&&d.indexOf("khtml")<0&&d.match(/mozilla/)&&t.picker.addClass("iris-mozilla"),t.controls={square:t.picker.find(".iris-square"),squareDrag:t.picker.find(".iris-square-value"),horiz:t.picker.find(".iris-square-horiz"),vert:t.picker.find(".iris-square-vert"),strip:t.picker.find(".iris-strip"),stripSlider:t.picker.find(".iris-strip .iris-slider-offset")},"hsv"===t.options.mode&&t._has("l",t.options.controls)?t.options.controls=t._defaultHSVControls:"hsl"===t.options.mode&&t._has("v",t.options.controls)&&(t.options.controls=t._defaultHSLControls),t.hue=t._color.h(),this._setTemplates(),this._ui=e(".fl-color-picker-ui"),this._iris=e(".iris-picker"),this._wrapper=e("body"),e("html").hasClass("fl-color-picker-init")||this._ui.prepend(this._hexHtml).append(this._presetsHtml),t.element=this._ui.find(".fl-color-picker-input"),t._initControls(),t.active="external",t._change(),t._addInputListeners(t.element),this._buildUI(),this._prepareColorFields(),this._pickerControls(),this._presetsControls(),this._buildAlphaUI(),e("html").addClass("fl-color-picker-init")},_prepareColorFields:function(){var t=this;e(".fl-color-picker-value").each(function(){var l=e(this),i=l.val(),o=l.parent().find(".fl-color-picker-color"),s=flBuilderParseColorValue(i),r="";if(i){if(o.hasClass("fl-color-picker-alpha-enabled")&&s.rgba)r=l.val().toString();else if(!o.hasClass("fl-color-picker-alpha-enabled")&&s.rgba){var n=i.replace("rgba","rgb");n=n.substr(0,n.lastIndexOf(","))+")",t._color._alpha=1,r=n,l.val(n)}else r="#"+l.val().toString();o.css({backgroundColor:r})}})},_setTemplates:function(){this._alphaHtml='<div class="fl-alpha-wrap"><div class="fl-alpha-slider"></div><div class="fl-alpha-slider-offset"></div><div class="fl-alpha-text"></div></div>',this._presetsHtml='<div class="fl-color-picker-presets"><div class="fl-color-picker-presets-toggle"><div class="fl-color-picker-presets-open-label fl-color-picker-active">'+this.options.labels.colorPresets+' <span class="fl-color-picker-icon-arrow-up"></span></div><div class="fl-color-picker-presets-close-label">'+this.options.labels.colorPicker+' <span class="fl-color-picker-icon-arrow-down"></span></div></div><ul class="fl-color-picker-presets-list"></ul></div>',this._hexHtml='<input type="text" class="fl-color-picker-input" maxlength="7" placeholder="'+this.options.labels.placeholder+'"><div class="fl-color-picker-preset-add"></div>',this._presetsTpl='<li class="fl-color-picker-preset"><span class="fl-color-picker-preset-color"></span> <span class="fl-color-picker-preset-label"></span> <span class="fl-color-picker-preset-remove fl-color-picker-icon-remove"></span></li>',this._noPresetsTpl='<li class="fl-color-picker-no-preset"><span class="fl-color-picker-preset-label">'+this.options.labels.noPresets+"</span></li>"},_has:function(t,l){var i=!1;return e.each(l,function(e,l){if(t===l)return i=!0,!1}),i},_buildUI:function(){var t=this;t._presetsList=this._ui.find(".fl-color-picker-presets-list"),t._presetsList.html(""),this.options.presets.length>0?e.each(this.options.presets,function(e,l){t._addPresetView(l)}):t._presetsList.append(this._noPresetsTpl)},_addPresetView:function(t){var l=this._presetsList.find(".fl-color-picker-no-preset");l.length>0&&l.remove();var i=e(this._presetsTpl),o=Color(t);i.attr("data-color",t).find(".fl-color-picker-preset-color").css({backgroundColor:o.toString()}).end().find(".fl-color-picker-preset-label").html(o.toString()),this._presetsList.append(i)},_addPresetFeedback:function(){this._ui.append('<div class="fl-color-picker-added"><div class="fl-color-picker-added-text"><div class="fl-color-picker-icon-check"></div> "'+this.options.labels.presetAdded.replace("%s",this._color.toString())+'"</div></div>'),this._ui.find(".fl-color-picker-added").hide().fadeIn(200).delay(2e3).fadeOut(200,function(){e(this).remove()})},_pickerControls:function(){var t=this;this._wrapper.on("click",".fl-color-picker-color",function(){var l=e(this);t._currentElement=l.parent().find(".fl-color-picker-value"),t._ui.position({my:"left top",at:"left bottom",of:l,collision:"flipfit",using:function(e,l){t._togglePicker(e)}})}).on("click",".fl-color-picker-clear",function(){var l=e(this);t._currentElement=l.parent().find(".fl-color-picker-value"),l.prev(".fl-color-picker-color").css({backgroundColor:"transparent"}).addClass("fl-color-picker-empty"),t._setColor(""),t.element.val(""),t._currentElement.val("").trigger("change")}),e(document).on("mousedown",function(t){0===e(t.target).closest(".fl-color-picker-ui").length&&e(".fl-color-picker-ui.fl-color-picker-active").removeClass("fl-color-picker-active")})},_presetsControls:function(){var t=this,l=t._ui.find(".fl-color-picker-preset-add"),i=t._ui.find(".fl-color-picker-presets"),o=i.find(".fl-color-picker-presets-open-label"),s=i.find(".fl-color-picker-presets-close-label"),r=i.find(".fl-color-picker-presets-list");l.off("click").on("click",function(){t._addPreset(t.element.val())}),r.css({height:t.element.innerHeight()+t._iris.innerHeight()+14+"px"}).hide(),i.off("click").on("click",".fl-color-picker-presets-toggle",function(){o.toggleClass("fl-color-picker-active"),s.toggleClass("fl-color-picker-active"),r.slideToggle(500)}).on("click",".fl-color-picker-preset",function(l){var i=new Color(e(this).data("color").toString());t._setColor(i),t._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:i.toString()}).removeClass("fl-color-picker-empty"),o.toggleClass("fl-color-picker-active"),s.toggleClass("fl-color-picker-active"),r.slideToggle(500)}).on("click",".fl-color-picker-preset-remove",function(l){l.stopPropagation(),t._removePreset(e(this).parent().data("color"))})},_removePreset:function(t){if(confirm(this.options.labels.removePresetConfirm)){var l=t.toString(),i=a.indexOf(l);i>-1&&(a.splice(i,1),this.options.presets=a,this._presetsList.find('.fl-color-picker-preset[data-color="'+l+'"]').slideUp(function(){e(this).remove()})),a.length<1&&this._presetsList.append(this._noPresetsTpl),e(this).trigger("presetRemoved",{presets:a})}},_addPreset:function(t){var l=t.toString().replace(/^#/,"");""===l?alert(this.options.labels.noneColorSelected):a.indexOf(l)>-1?alert(this.options.labels.alreadySaved.replace("%s","#"+l)):(this._addPresetView(l),this._addPresetFeedback(),a.push(l),this.options.presets=a,e(this).trigger("presetAdded",{presets:a}))},_togglePicker:function(e){var t=this;this._ui.hasClass("fl-color-picker-active")?(this._ui.removeClass("fl-color-picker-active"),e&&setTimeout(function(){t._ui.css(e),t._ui.addClass("fl-color-picker-active"),t._setColor(t._currentElement.val())},200)):(e&&t._ui.css(e),setTimeout(function(){t._ui.addClass("fl-color-picker-active"),t._setColor(t._currentElement.val())},200))},_paint:function(){var e=this;e._paintDimension("right","strip"),e._paintDimension("top","vert"),e._paintDimension("left","horiz")},_paintDimension:function(e,t){var l,i=this,o=i._color,s=i.options.mode,r=i._getHSpaceColor(),n=i.controls[t],a=i.options.controls;if(t!==i.active&&("square"!==i.active||"strip"===t))switch(a[t]){case"h":if("hsv"===s){switch(r=o.clone(),t){case"horiz":r[a.vert](100);break;case"vert":r[a.horiz](100);break;case"strip":r.setHSpace("hsl")}l=r.toHsl()}else l="strip"===t?{s:r.s,l:r.l}:{s:100,l:r.l};n.flBuilderColorPickerRaninbowGradient(e,l);break;case"s":"hsv"===s?"vert"===t?l=[o.clone().a(0).s(0).toCSS("rgba"),o.clone().a(1).s(0).toCSS("rgba")]:"strip"===t?l=[o.clone().s(100).toCSS("hsl"),o.clone().s(0).toCSS("hsl")]:"horiz"===t&&(l=["#fff","hsl("+r.h+",100%,50%)"]):l="vert"===t&&"h"===i.options.controls.horiz?["hsla(0, 0%, "+r.l+"%, 0)","hsla(0, 0%, "+r.l+"%, 1)"]:["hsl("+r.h+",0%,50%)","hsl("+r.h+",100%,50%)"],n.flBuilderColorPickerGradient(e,l);break;case"l":l="strip"===t?["hsl("+r.h+",100%,100%)","hsl("+r.h+", "+r.s+"%,50%)","hsl("+r.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],n.flBuilderColorPickerGradient(e,l);break;case"v":l="strip"===t?[o.clone().v(100).toCSS(),o.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],n.flBuilderColorPickerGradient(e,l)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_dimensions:function(e){var t,l=this,i=l.options,o=l.controls,s=o.square,r=l.picker.find(".iris-strip"),n="77.5%",a="12%",d=20,u=i.border?i.width-d:i.width;if(e&&(s.css("width",""),r.css("width",""),l.picker.css({width:"",height:""})),n=u*(parseFloat(n)/100),a=u*(parseFloat(a)/100),t=i.border?n+d:n,s.width(n).height(n),r.height(n).width(a),l.picker.css({width:i.width,height:t}),!i.palettes)return l.picker.css("paddingBottom","")},_addInputListeners:function(e){var t=this,l=100,i=function(l){var i=new Color(e.val()),o=e.val().replace(/^#/,"");if(e.removeClass("iris-error"),i.error)""!==o&&e.addClass("iris-error");else if(i.toString()!==t._color.toString())if("keyup"===l.type){if(o.match(/^[0-9a-fA-F]{3}$/))return;t._setColor(o),t._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:Color(o).toString()}).removeClass("fl-color-picker-empty"),t._currentElement.val(o).trigger("change")}else if("paste"===l.type)return o=l.originalEvent.clipboardData.getData("text").replace(/^#/,""),hex=Color(o).toString(),t._setColor(o),e.val(hex),t._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:hex}).removeClass("fl-color-picker-empty"),t._currentElement.val(o).trigger("change"),!1};e.on("change",i).on("keyup",t._debounce(i,l))},_initControls:function(){var t=this,l=t.controls,i=l.square,o=t.options.controls,s=t._scale[o.strip];l.stripSlider.slider({orientation:"horizontal",max:s,slide:function(e,l){t.active="strip","h"===o.strip&&(l.value=s-l.value),t._color[o.strip](l.value),t._change.apply(t,arguments)}}),l.squareDrag.draggable({containment:l.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(e,l){t._squareDrag(e,l)},start:function(){i.addClass("iris-dragging"),e(this).addClass("ui-state-focus")},stop:function(){i.removeClass("iris-dragging"),e(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(l){var i="ui-state-focus";l.preventDefault(),"mousedown"===l.type?(t.picker.find("."+i).removeClass(i).blur(),e(this).addClass(i).focus()):e(this).removeClass(i)}).on("keydown",function(e){var i=l.square,o=l.squareDrag,s=o.position(),r=2;switch(e.altKey&&(r*=10),e.keyCode){case 37:s.left-=r;break;case 38:s.top-=r;break;case 39:s.left+=r;break;case 40:s.top+=r;break;default:return!0}s.left=Math.max(0,Math.min(s.left,i.width())),s.top=Math.max(0,Math.min(s.top,i.height())),o.css(s),t._squareDrag(e,{position:s}),e.preventDefault()}),i.mousedown(function(l){var i,o;1===l.which&&e(l.target).is("div")&&(i=t.controls.square.offset(),o={top:l.pageY-i.top,left:l.pageX-i.left},l.preventDefault(),t._squareDrag(l,{position:o}),l.target=t.controls.squareDrag.get(0),t.controls.squareDrag.css(o).trigger(l))})},_squareDrag:function(e,t){var l=this,i=l.options.controls,o=l._squareDimensions(),s=Math.round((o.h-t.position.top)/o.h*l._scale[i.vert]),r=l._scale[i.horiz]-Math.round((o.w-t.position.left)/o.w*l._scale[i.horiz]);l._color[i.horiz](r)[i.vert](s),l.active="square",l._change.apply(l,arguments)},_setColor:function(e){var t,l,i=this,o=i.options.color;i.options.color=e,e=""+e,t=e.replace(/^#/,""),l=new Color(e).setHSpace(i.options.mode),l.error?i.options.color=o:(i._color=l,i.options.color=i._color.toString(),i.active="external",i._change())},_squareDimensions:function(e){var l,i,o=this.controls.square;return e!==t&&o.data("dimensions")?o.data("dimensions"):(i=this.controls.squareDrag,l={w:o.width(),h:o.height()},o.data("dimensions",l),l)},_isNonHueControl:function(e,t){return"square"===e&&"h"===this.options.controls.strip||"external"!==t&&("h"!==t||"strip"!==e)},_change:function(){var t=this,l=t.controls,i=t._getHSpaceColor(),o=["square","strip"],s=t.options.controls,r=s[t.active]||"external",n=t.hue;"strip"===t.active?o=[]:"external"!==t.active&&o.pop(),e.each(o,function(e,o){var r,n,a;if(o!==t.active)switch(o){case"strip":r="h"===s.strip?t._scale[s.strip]-i[s.strip]:i[s.strip],l.stripSlider.slider("value",r);break;case"square":n=t._squareDimensions(),a={left:i[s.horiz]/t._scale[s.horiz]*n.w,top:n.h-i[s.vert]/t._scale[s.vert]*n.h},t.controls.squareDrag.css(a)}}),i.h!==n&&t._isNonHueControl(t.active,r)&&t._color.h(n),t.hue=t._color.h(),t.options.color=t._color.toString(),t.element.is(":input")&&!t._color.error&&(t.element.removeClass("iris-error"),t.element.val()!==t._color.toString()&&(t.element.val(t._color.toString()),this._currentElement&&(this._currentElement.val(t._color.toString().replace(/^#/,"")).parent().find(".fl-color-picker-color").css({backgroundColor:t._color.toString()}).removeClass("fl-color-picker-empty"),t._wrapper.find(".fl-alpha-slider-offset").css("background-color",t._color.toString()),this._currentElement.trigger("change")))),t._paint(),t._inited=!0,t.active=!1},_debounce:function(e,t,l){var i,o;return function(){var s,r,n=this,a=arguments;return s=function(){i=null,l||(o=e.apply(n,a))},r=l&&!i,clearTimeout(i),i=setTimeout(s,t),r&&(o=e.apply(n,a)),o}},_buildAlphaUI:function(){var t=this;t._wrapper.on("click",".fl-color-picker-color",function(){var l=e(this);t._currentElement.val();l.hasClass("fl-color-picker-alpha-enabled")?(t._ui.find(".fl-alpha-wrap").length<=0&&e(t._alphaHtml).insertAfter(t._iris),t.picker.addClass("fl-color-alpha-enabled"),t._pickerAlphaControls()):t._ui.find(".fl-alpha-wrap").remove()})},_pickerAlphaControls:function(){var e=this,t=e._currentElement,l=flBuilderParseColorValue(t.val()),i=parseFloat(l.alpha/100),o=e._wrapper,s=e._ui,r=s.find(".fl-alpha-wrap"),n=r.find(".fl-alpha-slider"),a=r.find(".fl-alpha-text"),d=r.find(".fl-alpha-slider-offset");alphaHandle=r.find(".ui-slider-handle"),a.text(i<1?i:""),n.slider({orientation:"vertical",slide:function(t,l){var i=parseFloat(l.value/100);e._color._alpha=i,a.text(i<1?i:""),e._change.apply(e,arguments)},create:function(){d.css({backgroundColor:l.value}),o.on("click",".fl-color-picker-clear",function(){e._color._alpha=1,a.text(""),n.slider("value",100).trigger("slide")})},value:l.alpha,step:1,min:1,max:100})}}}(jQuery),function(e,t){var l=function(e,t){return this instanceof l?this._init(e,t):new l(e,t)};l.fn=l.prototype={_color:0,_alpha:1,error:!1,_hsl:{h:0,s:0,l:0},_hsv:{h:0,s:0,v:0},_hSpace:"hsl",_init:function(e){var l="noop";switch(typeof e){case"object":return e.a!==t&&this.a(e.a),l=e.r!==t?"fromRgb":e.l!==t?"fromHsl":e.v!==t?"fromHsv":l,this[l](e);case"string":return this.fromCSS(e);case"number":return this.fromInt(parseInt(e,10))}return this},_error:function(){return this.error=!0,this},clone:function(){for(var e=new l(this.toInt()),t=["_alpha","_hSpace","_hsl","_hsv","error"],i=t.length-1;i>=0;i--)e[t[i]]=this[t[i]];return e},setHSpace:function(e){return this._hSpace="hsv"===e?e:"hsl",this},noop:function(){return this},fromCSS:function(e){var t,l=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,e=e.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,""),e.match(l)&&e.match(/\)$/)){if(t=e.replace(/(\s|%)/g,"").replace(l,"").replace(/,?\);?$/,"").split(","),t.length<3)return this._error();if(4===t.length&&(this.a(parseFloat(t.pop())),this.error))return this;for(var i=t.length-1;i>=0;i--)if(t[i]=parseInt(t[i],10),isNaN(t[i]))return this._error();return e.match(/^rgb/)?this.fromRgb({r:t[0],g:t[1],b:t[2]}):e.match(/^hsv/)?this.fromHsv({h:t[0],s:t[1],v:t[2]}):this.fromHsl({h:t[0],s:t[1],l:t[2]})}return this.fromHex(e)},fromRgb:function(e,l){return"object"!=typeof e||e.r===t||e.g===t||e.b===t?this._error():(this.error=!1,this.fromInt(parseInt((e.r<<16)+(e.g<<8)+e.b,10),l))},fromHex:function(e){return e=e.replace(/^#/,"").replace(/^0x/,""),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),this.error=!/^[0-9A-F]{6}$/i.test(e),this.fromInt(parseInt(e,16))},fromHsl:function(e){var l,i,o,s,r,n,a,d;return"object"!=typeof e||e.h===t||e.s===t||e.l===t?this._error():(this._hsl=e,this._hSpace="hsl",n=e.h/360,a=e.s/100,d=e.l/100,0===a?l=i=o=d:(s=d<.5?d*(1+a):d+a-d*a,r=2*d-s,l=this.hue2rgb(r,s,n+1/3),i=this.hue2rgb(r,s,n),o=this.hue2rgb(r,s,n-1/3)),this.fromRgb({r:255*l,g:255*i,b:255*o},!0))},fromHsv:function(e){var l,i,o,s,r,n,a,d,u,c,f;if("object"!=typeof e||e.h===t||e.s===t||e.v===t)return this._error();switch(this._hsv=e,this._hSpace="hsv",l=e.h/360,i=e.s/100,o=e.v/100,a=Math.floor(6*l),d=6*l-a,u=o*(1-i),c=o*(1-d*i),f=o*(1-(1-d)*i),a%6){case 0:s=o,r=f,n=u;break;case 1:s=c,r=o,n=u;break;case 2:s=u,r=o,n=f;break;case 3:s=u,r=c,n=o;break;case 4:s=f,r=u,n=o;break;case 5:s=o,r=u,n=c}return this.fromRgb({r:255*s,g:255*r,b:255*n},!0)},fromInt:function(e,l){return this._color=parseInt(e,10),isNaN(this._color)&&(this._color=0),this._color>16777215?this._color=16777215:this._color<0&&(this._color=0),l===t&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(e,t,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?e+6*(t-e)*l:l<.5?t:l<2/3?e+(t-e)*(2/3-l)*6:e},toString:function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var t=6-e.length-1;t>=0;t--)e="0"+e;return"#"+e},toCSS:function(e,t){switch(e=e||"hex",t=parseFloat(t||this._alpha),e){case"rgb":case"rgba":var l=this.toRgb();return t<1?"rgba( "+l.r+", "+l.g+", "+l.b+", "+t+" )":"rgb( "+l.r+", "+l.g+", "+l.b+" )";case"hsl":case"hsla":var i=this.toHsl();return t<1?"hsla( "+i.h+", "+i.s+"%, "+i.l+"%, "+t+" )":"hsl( "+i.h+", "+i.s+"%, "+i.l+"% )";default:return this.toString()}},toRgb:function(){return{r:255&this._color>>16,g:255&this._color>>8,b:255&this._color}},toHsl:function(){var e,t,l=this.toRgb(),i=l.r/255,o=l.g/255,s=l.b/255,r=Math.max(i,o,s),n=Math.min(i,o,s),a=(r+n)/2;if(r===n)e=t=0;else{var d=r-n;switch(t=a>.5?d/(2-r-n):d/(r+n),r){case i:e=(o-s)/d+(o<s?6:0);break;case o:e=(s-i)/d+2;break;case s:e=(i-o)/d+4}e/=6}return e=Math.round(360*e),0===e&&this._hsl.h!==e&&(e=this._hsl.h),t=Math.round(100*t),0===t&&this._hsl.s&&(t=this._hsl.s),{h:e,s:t,l:Math.round(100*a)}},toHsv:function(){var e,t,l=this.toRgb(),i=l.r/255,o=l.g/255,s=l.b/255,r=Math.max(i,o,s),n=Math.min(i,o,s),a=r,d=r-n;if(t=0===r?0:d/r,r===n)e=t=0;else{switch(r){case i:e=(o-s)/d+(o<s?6:0);break;case o:e=(s-i)/d+2;break;case s:e=(i-o)/d+4}e/=6}return e=Math.round(360*e),0===e&&this._hsv.h!==e&&(e=this._hsv.h),t=Math.round(100*t),0===t&&this._hsv.s&&(t=this._hsv.s),{h:e,s:t,v:Math.round(100*a)}},toInt:function(){return this._color},toIEOctoHex:function(){var e=this.toString(),t=parseInt(255*this._alpha,10).toString(16);return 1===t.length&&(t="0"+t),"#"+t+e.replace(/^#/,"")},toLuminosity:function(){var e=this.toRgb();return.2126*Math.pow(e.r/255,2.2)+.7152*Math.pow(e.g/255,2.2)+.0722*Math.pow(e.b/255,2.2)},getDistanceLuminosityFrom:function(e){if(!(e instanceof l))throw"getDistanceLuminosityFrom requires a Color object";var t=this.toLuminosity(),i=e.toLuminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},getMaxContrastColor:function(){var e=this.toLuminosity(),t=e>=.5?"000000":"ffffff";return new l(t)},getReadableContrastingColor:function(e,i){if(!(e instanceof l))return this;var o=i===t?5:i,s=e.getDistanceLuminosityFrom(this),r=e.getMaxContrastColor(),n=r.getDistanceLuminosityFrom(e);if(n<=o)return r;if(s>=o)return this;for(var a=0===r.toInt()?-1:1;s<o&&(this.l(a,!0),s=this.getDistanceLuminosityFrom(e),0!==this._color&&16777215!==this._color););return this},a:function(e){if(e===t)return this._alpha;var l=parseFloat(e);return isNaN(l)?this._error():(this._alpha=l,this)},darken:function(e){return e=e||5,this.l(-e,!0)},lighten:function(e){return e=e||5,this.l(e,!0)},saturate:function(e){return e=e||15,this.s(e,!0)},desaturate:function(e){return e=e||15,this.s(-e,!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(e){e=e||1;var t=180+30*e;return this.h(t,!0)},getAnalog:function(e){e=e||1;var t=30*e;return this.h(t,!0)},getTetrad:function(e){e=e||1;var t=60*e;return this.h(t,!0)},getTriad:function(e){e=e||1;var t=120*e;return this.h(t,!0)},_partial:function(e){var l=i[e];return function(i,o){var s=this._spaceFunc("to",l.space);return i===t?s[e]:(o===!0&&(i=s[e]+i),l.mod&&(i%=l.mod),l.range&&(i=i<l.range[0]?l.range[0]:i>l.range[1]?l.range[1]:i),s[e]=i,this._spaceFunc("from",l.space,s))}},_spaceFunc:function(e,t,l){var i=t||this._hSpace,o=e+i.charAt(0).toUpperCase()+i.substr(1);return this[o](l)}};var i={h:{mod:360},s:{range:[0,100]},l:{space:"hsl",range:[0,100]},v:{space:"hsv",range:[0,100]},r:{space:"rgb",range:[0,255]},g:{space:"rgb",range:[0,255]},b:{space:"rgb",range:[0,255]}};for(var o in i)i.hasOwnProperty(o)&&(l.fn[o]=l.fn._partial(o));"object"==typeof exports?module.exports=l:e.Color=l}(this),function(e){FLIconSelector={_content:null,_lightbox:null,_rendered:!1,_filterText:"",open:function(e){FLIconSelector._rendered||FLIconSelector._render(),null===FLIconSelector._content?(FLIconSelector._lightbox.open('<div class="fl-builder-lightbox-loading"></div>'),FLBuilder.ajax({action:"render_icon_selector"},FLIconSelector._getContentComplete)):FLIconSelector._lightbox.open(),FLIconSelector._lightbox.on("icon-selected",function(t,l){FLIconSelector._lightbox.off("icon-selected"),FLIconSelector._lightbox.close(),e(l)})},_render:function(){FLIconSelector._lightbox=new FLLightbox({className:"fl-icon-selector"}),FLIconSelector._rendered=!0},_getContentComplete:function(t){var l=JSON.parse(t);FLIconSelector._content=l.html,FLIconSelector._lightbox.setContent(l.html),e(".fl-icons-filter-select").on("change",FLIconSelector._filter),e(".fl-icons-filter-text").on("keyup",FLIconSelector._filter),e(".fl-icons-list i").on("click",FLIconSelector._select),e(".fl-icon-selector-cancel").on("click",e.proxy(FLIconSelector._lightbox.close,FLIconSelector._lightbox))},_filter:function(){var t=e(".fl-icons-filter-select").val(),l=e(".fl-icons-filter-text").val();"all"==t?e(".fl-icons-section").show():(e(".fl-icons-section").hide(),e(".fl-"+t).show()),FLIconSelector._filterText=l,""!==l?e(".fl-icons-list i").each(FLIconSelector._filterIcon):e(".fl-icons-list i").show()},_filterIcon:function(){var t=e(this);-1==t.attr("class").indexOf(FLIconSelector._filterText)?t.hide():t.show()},_select:function(){var t=e(this).attr("class");FLIconSelector._lightbox.trigger("icon-selected",t)}}}(jQuery),function(e){FLStyleSheet=function(t){"object"==typeof t&&e.extend(this,t),this._createSheet()},FLStyleSheet.prototype={id:null,_sheet:null,_sheetElement:null,updateRule:function(e,t,l){for(var i=this._sheet.cssRules?this._sheet.cssRules:this._sheet.rules,o=null,s=0;s<i.length;s++)i[s].selectorText.toLowerCase()==e.toLowerCase()&&(o=i[s]);if(o)if("object"==typeof t)for(s in t)o.style[this._toCamelCase(s)]=t[s];else o.style[this._toCamelCase(t)]=l;else this.addRule(e,t,l)},addRule:function(e,t,l){var i="",o="";if("object"==typeof t)for(o in t)i+=o+":"+t[o]+";";else i=t+":"+l+";";this._sheet.insertRule?this._sheet.insertRule(e+" { "+i+" }",this._sheet.cssRules.length):this._sheet.addRule(e,i)},destroy:function(){this._sheetElement&&(this._sheetElement.remove(),this._sheetElement=null),this._sheet&&(this._sheet=null)},disable:function(){this._sheet.disabled=!0},enable:function(){this._sheet.disabled=!1},_createSheet:function(){var t=this.id?' id="'+this.id+'"':"";this._sheet||(this._sheetElement=e('<style type="text/css"'+t+"></style>"),e("body").append(this._sheetElement),this._sheet=this._sheetElement[0].sheet)},_toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}}}(jQuery);
|
1 |
+
!function(e){FLLightbox=function(e){this._init(e),this._render(),this._bind()},FLLightbox.closeParent=function(t){var l=e(t).closest(".fl-lightbox-wrap").attr("data-instance-id");FLLightbox._instances[l].close()},FLLightbox._instances={},FLLightbox.prototype={_id:null,_node:null,_visible:!1,_resizeTimer:null,_draggable:!1,_defaults:{className:"",destroyOnClose:!1},open:function(e){this._node.find(".fl-lightbox").attr("style",""),this._node.show(),this._visible=!0,"undefined"!=typeof e?this.setContent(e):this._resize(),this.trigger("open")},close:function(){this.trigger("beforeClose"),this._node.hide(),this._visible=!1,this.trigger("close"),this._defaults.destroyOnClose&&this.destroy()},setContent:function(e){this._node.find(".fl-lightbox-content").html(e),this._resize()},empty:function(){this._node.find(".fl-lightbox-content").empty(),this._node.find(".fl-lightbox").removeClass("fl-lightbox-expanded")},on:function(e,t){this._node.on(e,t)},off:function(e){this._node.off(e)},trigger:function(e,t){this._node.trigger(e,t)},draggable:function(e){var t=this._node.find(".fl-lightbox-mask"),l=this._node.find(".fl-lightbox");e="undefined"!=typeof e&&e,this._draggable&&l.draggable("destroy"),e?(this._unbind(),this._draggable=!0,t.hide(),l.draggable({cursor:"move",handle:e.handle||""})):(t.show(),this._bind(),this._draggable=!1),this._resize()},destroy:function(){e(window).off("resize.fl-lightbox-"+this._id),this._node.empty(),this._node.remove(),FLLightbox._instances[this._id]="undefined";try{delete FLLightbox._instances[this._id]}catch(t){}},renderResize:function(t){if("undefined"!=typeof t){var l=this._getActiveNode();if(lightbox=l.find(".fl-lightbox"),boxFields=lightbox.find(".fl-builder-settings-fields"),win=e(window),winHeight=win.height(),winWidth=win.width(),boxHeaderHeight=lightbox.find(".fl-lightbox-header").height(),boxTabsHeight=lightbox.find(".fl-builder-settings-tabs").height(),boxFooterHeight=lightbox.find(".fl-lightbox-footer").height(),boxFieldHeight=winHeight-(boxHeaderHeight+boxTabsHeight+boxFooterHeight+103),editor="undefined"!=typeof tinymce&&tinymce.EditorManager.activeEditor?tinymce:null,editorId=editor?editor.EditorManager.activeEditor.id:"flhiddeneditor",editorIframeEl=lightbox.find("#"+editorId+"_ifr"),editorTextarea=lightbox.find("#"+editorId),codeField=lightbox.find(".fl-code-field .ace_editor"),"expand"==t||"window_resize"==t){if("window_resize"==t&&!lightbox.hasClass("fl-lightbox-expanded"))return!1;boxFields.css("height",boxFieldHeight+"px"),"expand"==t&&(lightbox.addClass("fl-lightbox-expanded"),lightbox.draggable("disable")),editorIframeEl.length>0&&editorIframeEl.css("height",boxFieldHeight-145+"px"),editorTextarea.length>0&&editorTextarea.css("height",boxFieldHeight-145+"px"),codeField.length>0&&codeField.css("height",boxFieldHeight-60+"px")}else setTimeout(e.proxy(this._resize,this),250),lightbox.removeClass("fl-lightbox-expanded"),boxFields.removeAttr("style"),null!==editorId&&(editorIframeEl.css("height","232px"),editorTextarea.css("height","232px")),codeField.length>0&&codeField.css("height","360px"),lightbox.draggable("enable")}},_init:function(t){var l=0,i=null;for(i in FLLightbox._instances)l++;this._defaults=e.extend({},this._defaults,t),this._id=(new Date).getTime()+l,FLLightbox._instances[this._id]=this},_render:function(){this._node=e('<div class="fl-lightbox-wrap" data-instance-id="'+this._id+'"><div class="fl-lightbox-mask"></div><div class="fl-lightbox"><div class="fl-lightbox-content-wrap"><div class="fl-lightbox-content"></div></div></div></div>'),this._node.addClass(this._defaults.className),e("body").append(this._node)},_bind:function(){e(window).on("resize.fl-lightbox-"+this._id,e.proxy(this._delayedResize,this))},_unbind:function(){e(window).off("resize.fl-lightbox-"+this._id)},_delayedResize:function(){clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(e.proxy(this._resize,this),250),this.renderResize("window_resize")},_resize:function(){if(this._visible){var t=this._node.find(".fl-lightbox"),l=t.height(),i=t.width(),o=e(window),s=o.height(),r=o.width(),n="0px",a=(r-i)/2-30+"px";t.css({margin:"0px",top:"auto",left:"auto"}),s-80>l&&(n=(s-l)/2-40+"px"),this._draggable?(t.css("top",n),t.css("left",FLBuilderConfig.isRtl?"-"+a:a)):(t.css("margin-top",n),t.css("margin-left","auto"),t.css("margin-right","auto"))}},_onKeypress:function(e){27==e.which&&this._visible&&this.close()},_getActiveNode:function(){var t=this._node;return e.each(FLLightbox._instances,function(l,i){e(i._node).is(":visible")&&(t=e(i._node))}),t}}}(jQuery),function(e){FLBuilder={preview:null,_actionsLightbox:null,_addModuleAfterNodeRender:null,_colResizeData:null,_colResizing:!1,_contentClass:!1,_dragEnabled:!1,_dragging:!1,_dragInitialScrollTop:0,_exitUrl:null,_layout:null,_layoutSettingsCSSCache:null,_layoutSettingsCSSTimeout:null,_lightbox:null,_lightboxScrollbarTimeout:null,_loadedModuleAssets:[],_moduleHelpers:{},_multiplePhotoSelector:null,_newColGroupParent:null,_newColGroupPosition:0,_newModuleParent:null,_newModulePosition:0,_newRowPosition:0,_selectedTemplateId:null,_selectedTemplateType:null,_singlePhotoSelector:null,_singleVideoSelector:null,_multipleAudiosSelector:null,_init:function(){FLBuilder._initJQueryReadyFix(),FLBuilder._initGlobalErrorHandling(),FLBuilder._initPostLock(),FLBuilder._initClassNames(),FLBuilder._initMediaUploader(),FLBuilder._initOverflowFix(),FLBuilder._initScrollbars(),FLBuilder._initLightboxes(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._initStrings(),FLBuilder._initTipTips(),FLBuilder._bindEvents(),FLBuilder._bindOverlayEvents(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._showTourOrTemplates()},_initJQueryReadyFix:function(){FLBuilderConfig.debug||(jQuery.fn.oldReady=jQuery.fn.ready,jQuery.fn.ready=function(e){return jQuery.fn.oldReady(function(){try{"function"==typeof e&&e()}catch(t){FLBuilder.logError(t)}})})},_initGlobalErrorHandling:function(){FLBuilderConfig.debug||(window.onerror=function(e,t,l,i,o){return FLBuilder.logGlobalError(e,t,l,i,o),!0})},_initPostLock:function(){"undefined"!=typeof wp.heartbeat&&(wp.heartbeat.interval(30),wp.heartbeat.enqueue("fl_builder_post_lock",{post_id:FLBuilderConfig.postId}))},_initClassNames:function(){e("html").addClass("fl-builder-edit"),e("body").addClass("fl-builder"),FLBuilderConfig.simpleUi&&e("body").addClass("fl-builder-simple"),FLBuilder._contentClass=".fl-builder-content-"+FLBuilderConfig.postId,e(FLBuilder._contentClass).addClass("fl-builder-content-editing")},_initMediaUploader:function(){wp.media.model.settings.post.id=FLBuilderConfig.postId},_initOverflowFix:function(){e(FLBuilder._contentClass).parents().css("overflow","visible")},_initScrollbars:function(){e(".fl-nanoscroller").nanoScroller({alwaysVisible:!0,preventPageScrolling:!0,paneClass:"fl-nanoscroller-pane",sliderClass:"fl-nanoscroller-slider",contentClass:"fl-nanoscroller-content"})},_initLightboxes:function(){FLBuilder._lightbox=new FLLightbox({className:"fl-builder-lightbox fl-builder-settings-lightbox"}),FLBuilder._lightbox.on("close",FLBuilder._lightboxClosed),FLBuilder._lightbox.on("beforeClose",FLBuilder._destroyEditorFields),FLBuilder._actionsLightbox=new FLLightbox({className:"fl-builder-actions-lightbox"})},_initSortables:function(){var t={appendTo:"body",cursor:"move",cursorAt:{left:60,top:20},distance:1,helper:FLBuilder._blockDragHelper,start:FLBuilder._blockDragStart,sort:FLBuilder._blockDragSort,change:FLBuilder._blockDragChange,stop:FLBuilder._blockDragStop,placeholder:"fl-builder-drop-zone",tolerance:"intersect"},l="",i="";i="row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-col-content":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-node-global) .fl-col-content",l=FLBuilderConfig.nestedColumns?i:"row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target",e(".fl-builder-rows").sortable(e.extend({},t,{connectWith:l,items:".fl-builder-block-row",stop:FLBuilder._rowDragStop})),e(".fl-builder-row-templates").sortable(e.extend({},t,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-row-template",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-rows").sortable(e.extend({},t,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-saved-row",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-modules, .fl-builder-widgets").sortable(e.extend({},t,{connectWith:i,items:".fl-builder-block-module",stop:FLBuilder._moduleDragStop})),e(".fl-builder-module-templates").sortable(e.extend({},t,{connectWith:i,items:".fl-builder-block-module-template",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-modules").sortable(e.extend({},t,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:i,items:".fl-builder-block-saved-module",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-row-sortable-proxy").sortable(e.extend({},t,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",helper:FLBuilder._rowDragHelper,start:FLBuilder._rowDragStart,stop:FLBuilder._rowDragStop})),e(".fl-col-sortable-proxy").sortable(e.extend({},t,{connectWith:i,helper:FLBuilder._colDragHelper,start:FLBuilder._colDragStart,stop:FLBuilder._colDragStop})),e(FLBuilder._contentClass+" .fl-col-content").sortable(e.extend({},t,{connectWith:i,handle:".fl-module-overlay .fl-block-overlay-actions .fl-block-move",helper:FLBuilder._moduleDragHelper,items:".fl-module, .fl-col-group",start:FLBuilder._moduleDragStart,stop:FLBuilder._moduleDragStop})),e(FLBuilder._contentClass+" .fl-row-drop-target").sortable(t),e(FLBuilder._contentClass+" .fl-col-group-drop-target").sortable(t),e(FLBuilder._contentClass+" .fl-col-drop-target").sortable(t)},_initStrings:function(){e.validator.messages.required=FLBuilderStrings.validateRequiredMessage},_bindEvents:function(){e("a").on("click",FLBuilder._preventDefault),e(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),e(document).on("heartbeat-tick",FLBuilder._initPostLock),e(window).on("beforeunload",FLBuilder._warnBeforeUnload),e("body").delegate(".fl-builder-has-submenu","click",FLBuilder._submenuParentClicked),e("body").delegate(".fl-builder-has-submenu a","click",FLBuilder._submenuChildClicked),e("body").delegate(".fl-builder-submenu","mouseenter",FLBuilder._submenuMouseenter),e("body").delegate(".fl-builder-submenu","mouseleave",FLBuilder._submenuMouseleave),e("body").delegate(".fl-builder-submenu .fl-builder-has-submenu","mouseenter",FLBuilder._submenuNestedParentMouseenter),e(".fl-builder-tools-button").on("click",FLBuilder._toolsClicked),e(".fl-builder-done-button").on("click",FLBuilder._doneClicked),e(".fl-builder-add-content-button").on("click",FLBuilder._showPanel),e(".fl-builder-templates-button").on("click",FLBuilder._changeTemplateClicked),e(".fl-builder-buy-button").on("click",FLBuilder._upgradeClicked),e(".fl-builder-upgrade-button").on("click",FLBuilder._upgradeClicked),e(".fl-builder-help-button").on("click",FLBuilder._helpButtonClicked),e(".fl-builder-panel-actions .fl-builder-panel-close").on("click",FLBuilder._closePanel),e(".fl-builder-blocks-section-title").on("click",FLBuilder._blockSectionTitleClicked),e("body").delegate(".fl-builder-node-template-actions","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-edit","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-delete","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-edit","click",FLBuilder._editNodeTemplateClicked),e("body").delegate(".fl-builder-node-template-delete","click",FLBuilder._deleteNodeTemplateClicked),e("body").delegate(".fl-builder-block","mousedown",FLBuilder._blockDragInit),e("body").on("mouseup",FLBuilder._blockDragCancel),e("body").delegate(".fl-builder-actions .fl-builder-cancel-button","click",FLBuilder._cancelButtonClicked),e("body").delegate(".fl-lightbox-controls .fa","click",FLBuilder._resizeLightbox),e("body").delegate(".fl-builder-save-actions .fl-builder-publish-button","click",FLBuilder._publishButtonClicked),e("body").delegate(".fl-builder-save-actions .fl-builder-draft-button","click",FLBuilder._draftButtonClicked),e("body").delegate(".fl-builder-save-actions .fl-builder-discard-button","click",FLBuilder._discardButtonClicked),e("body").delegate(".fl-builder-save-user-template-button","click",FLBuilder._saveUserTemplateClicked),e("body").delegate(".fl-builder-duplicate-layout-button","click",FLBuilder._duplicateLayoutClicked),e("body").delegate(".fl-builder-layout-settings-button","click",FLBuilder._layoutSettingsClicked),e("body").delegate(".fl-builder-layout-settings .fl-builder-settings-save","click",FLBuilder._saveLayoutSettingsClicked),e("body").delegate(".fl-builder-layout-settings .fl-builder-settings-cancel","click",FLBuilder._cancelLayoutSettingsClicked),e("body").delegate(".fl-builder-global-settings-button","click",FLBuilder._globalSettingsClicked),e("body").delegate(".fl-builder-global-settings .fl-builder-settings-save","click",FLBuilder._saveGlobalSettingsClicked),e("body").delegate(".fl-builder-global-settings .fl-builder-settings-cancel","click",FLBuilder._cancelLayoutSettingsClicked),e("body").delegate(".fl-template-category-select","change",FLBuilder._templateCategoryChanged),e("body").delegate(".fl-template-preview","click",FLBuilder._templateClicked),e("body").delegate(".fl-user-template","click",FLBuilder._userTemplateClicked),e("body").delegate(".fl-user-template-edit","click",FLBuilder._editUserTemplateClicked),e("body").delegate(".fl-user-template-delete","click",FLBuilder._deleteUserTemplateClicked),e("body").delegate(".fl-builder-template-replace-button","click",FLBuilder._templateReplaceClicked),e("body").delegate(".fl-builder-template-append-button","click",FLBuilder._templateAppendClicked),e("body").delegate(".fl-builder-template-actions .fl-builder-cancel-button","click",FLBuilder._templateCancelClicked),e("body").delegate(".fl-builder-user-template-settings .fl-builder-settings-save","click",FLBuilder._saveUserTemplateSettings),e("body").delegate(".fl-builder-help-tour-button","click",FLBuilder._startHelpTour),e("body").delegate(".fl-builder-help-video-button","click",FLBuilder._watchVideoClicked),e("body").delegate(".fl-builder-knowledge-base-button","click",FLBuilder._viewKnowledgeBaseClicked),e("body").delegate(".fl-builder-forums-button","click",FLBuilder._visitForumsClicked),e("body").delegate(".fl-builder-no-tour-button","click",FLBuilder._noTourButtonClicked),e("body").delegate(".fl-builder-yes-tour-button","click",FLBuilder._yesTourButtonClicked),e("body").delegate(".fl-builder-alert-close","click",FLBuilder._alertClose),e("body").delegate(".fl-row-overlay .fl-block-remove","click",FLBuilder._deleteRowClicked),e("body").delegate(".fl-row-overlay .fl-block-copy","click",FLBuilder._rowCopyClicked),e("body").delegate(".fl-row-overlay .fl-block-move","mousedown",FLBuilder._rowDragInit),e("body").delegate(".fl-row-overlay .fl-block-settings","click",FLBuilder._rowSettingsClicked),e("body").delegate(".fl-row-overlay","click",FLBuilder._rowSettingsClicked),e("body").delegate(".fl-builder-row-settings .fl-builder-settings-save","click",FLBuilder._saveSettings),e("body").delegate(".fl-col-overlay .fl-block-move","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-col-overlay .fl-block-remove","click",FLBuilder._deleteColClicked),e("body").delegate(".fl-col-overlay","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-builder-col-settings .fl-builder-settings-save","click",FLBuilder._saveSettings),e("body").delegate(".fl-block-col-submenu .fl-block-col-move","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-submenu .fl-block-col-edit","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-block-col-submenu .fl-block-col-delete","click",FLBuilder._deleteColClicked),e("body").delegate(".fl-block-col-submenu .fl-block-col-reset","click",FLBuilder._resetColumnWidthsClicked),e("body").delegate(".fl-block-col-submenu li","mouseenter",FLBuilder._showColHighlightGuide),e("body").delegate(".fl-block-col-submenu li","mouseleave",FLBuilder._removeColHighlightGuides),e("body").delegate(".fl-block-col-submenu .fl-block-col-move-parent","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-submenu .fl-block-col-edit-parent","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-module-overlay .fl-block-remove","click",FLBuilder._deleteModuleClicked),e("body").delegate(".fl-module-overlay .fl-block-copy","click",FLBuilder._moduleCopyClicked),e("body").delegate(".fl-module-overlay .fl-block-move","mousedown",FLBuilder._blockDragInit),e("body").delegate(".fl-module-overlay .fl-block-settings","click",FLBuilder._moduleSettingsClicked),e("body").delegate(".fl-module-overlay","click",FLBuilder._moduleSettingsClicked),e("body").delegate(".fl-builder-module-settings .fl-builder-settings-save","click",FLBuilder._saveModuleClicked),e("body").delegate(".fl-builder-settings-save-as","click",FLBuilder._showNodeTemplateSettings),e("body").delegate(".fl-builder-node-template-settings .fl-builder-settings-save","click",FLBuilder._saveNodeTemplate),e("body").delegate(".fl-builder-settings-tabs a","click",FLBuilder._settingsTabClicked),e("body").delegate(".fl-builder-settings-cancel","click",FLBuilder._settingsCancelClicked),e("body").delegate(".fl-help-tooltip-icon","mouseover",FLBuilder._showHelpTooltip),e("body").delegate(".fl-help-tooltip-icon","mouseout",FLBuilder._hideHelpTooltip),e("body").delegate(".fl-builder-field-add","click",FLBuilder._addFieldClicked),e("body").delegate(".fl-builder-field-copy","click",FLBuilder._copyFieldClicked),e("body").delegate(".fl-builder-field-delete","click",FLBuilder._deleteFieldClicked),e("body").delegate(".fl-builder-settings-fields select","change",FLBuilder._settingsSelectChanged),e("body").delegate(".fl-photo-field .fl-photo-select","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-edit","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-replace","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-remove","click",FLBuilder._singlePhotoRemoved),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-select","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-edit","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-add","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-video-field .fl-video-select","click",FLBuilder._selectSingleVideo),e("body").delegate(".fl-video-field .fl-video-replace","click",FLBuilder._selectSingleVideo),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-select","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-edit","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-add","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-icon-field .fl-icon-select","click",FLBuilder._selectIcon),e("body").delegate(".fl-icon-field .fl-icon-replace","click",FLBuilder._selectIcon),e("body").delegate(".fl-icon-field .fl-icon-remove","click",FLBuilder._removeIcon),e("body").delegate(".fl-form-field .fl-form-field-edit","click",FLBuilder._formFieldClicked),e("body").delegate(".fl-form-field-settings .fl-builder-settings-save","click",FLBuilder._saveFormFieldClicked),e("body").delegate(".fl-layout-field-option","click",FLBuilder._layoutFieldClicked),e("body").delegate(".fl-link-field-select","click",FLBuilder._linkFieldSelectClicked),e("body").delegate(".fl-link-field-search-cancel","click",FLBuilder._linkFieldSelectCancelClicked),e("body").delegate(".fl-loop-data-source-select select[name=data_source]","change",FLBuilder._loopDataSourceChange),e("body").delegate(".fl-custom-query select[name=post_type]","change",FLBuilder._customQueryPostTypeChange),e("body").delegate(".fl-select-add-value","change",FLBuilder._textFieldAddValueSelectChange)},_bindOverlayEvents:function(){var t=e(FLBuilder._contentClass);t.delegate(".fl-row","mouseenter",FLBuilder._rowMouseenter),t.delegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),t.delegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),t.delegate(".fl-col","mouseenter",FLBuilder._colMouseenter),t.delegate(".fl-col","mouseleave",FLBuilder._colMouseleave),t.delegate(".fl-module","mouseenter",FLBuilder._moduleMouseenter),t.delegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_destroyOverlayEvents:function(){var t=e(FLBuilder._contentClass);t.undelegate(".fl-row","mouseenter",FLBuilder._rowMouseenter),t.undelegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),t.undelegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),t.undelegate(".fl-col","mouseenter",FLBuilder._colMouseenter),t.undelegate(".fl-col","mouseleave",FLBuilder._colMouseleave),t.undelegate(".fl-module","mouseenter",FLBuilder._moduleMouseenter),t.undelegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_preventDefault:function(e){e.preventDefault()},_stopPropagation:function(e){e.stopPropagation()},_headerLinkClicked:function(t){var l=e(this),i=l.attr("href");this.hash||(t.preventDefault(),FLBuilderConfig.isUserTemplate||(FLBuilder._exitUrl=i.indexOf("?")>-1?i:i+"?fl_builder",FLBuilder._doneClicked()))},_warnBeforeUnload:function(){var t=e(".fl-builder-row-settings").length>0,l=e(".fl-builder-col-settings").length>0,i=e(".fl-builder-module-settings").length>0;if(t||l||i)return FLBuilderStrings.unloadWarning},_initTipTips:function(){e(".fl-tip:not(.fl-has-tip)").each(function(){var t=e(this);t.addClass("fl-has-tip"),void 0==t.attr("data-title")&&t.attr("data-title",t.attr("title"))}).tipTip({defaultPosition:"top",delay:1500})},_hideTipTips:function(){e("#tiptip_holder").stop().remove()},_submenuParentClicked:function(t){var l=e(this),i=l.find(".fl-builder-submenu");l.hasClass("fl-builder-submenu-open")?(l.removeClass("fl-builder-submenu-open"),l.removeClass("fl-builder-submenu-right")):(l.offset().left+i.width()>e(window).width()&&l.addClass("fl-builder-submenu-right"),l.addClass("fl-builder-submenu-open")),FLBuilder._hideTipTips(),t.preventDefault(),t.stopPropagation()},_submenuChildClicked:function(t){var l=e(this).parents(".fl-builder-has-submenu");l.parents(".fl-builder-has-submenu").length||l.removeClass("fl-builder-submenu-open")},_submenuMouseenter:function(t){var l=e(this),i=l.data("timeout");"undefined"!=typeof i&&clearTimeout(i)},_submenuMouseleave:function(t){var l=e(this),i=setTimeout(function(){l.closest(".fl-builder-has-submenu").removeClass("fl-builder-submenu-open")},500);l.data("timeout",i)},_submenuNestedParentMouseenter:function(t){var l=e(this),i=l.find(".fl-builder-submenu");l.width()+l.offset().left+i.width()>e(window).width()&&l.addClass("fl-builder-submenu-right")},_closeAllSubmenus:function(){e(".fl-builder-submenu-open").removeClass("fl-builder-submenu-open")},_toolsClicked:function(){var e=[],t=FLBuilderConfig.lite,l=FLBuilderConfig.enabledTemplates,i="row"==FLBuilderConfig.userTemplateType,o="module"==FLBuilderConfig.userTemplateType;t||i||o||"enabled"!=l&&"user"!=l||(e[10]={key:"save-user-template",label:FLBuilderStrings.saveTemplate}),FLBuilderConfig.isUserTemplate?"undefined"!=typeof window.opener&&window.opener||(e[20]={key:"duplicate-layout",label:FLBuilderStrings.duplicateLayout}):e[20]={key:"duplicate-layout",label:FLBuilderStrings.duplicateLayout},e[30]={key:"layout-settings",label:FLBuilderStrings.editLayoutSettings},e[40]={key:"global-settings",label:FLBuilderStrings.editGlobalSettings},FLBuilder._showActionsLightbox({className:"fl-builder-tools-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_doneClicked:function(){var e=[],t=FLBuilderStrings.publish;"publish"==FLBuilderConfig.postStatus||FLBuilderConfig.userCanPublish||(t=FLBuilderStrings.submitForReview),e[10]={key:"publish",label:t},e[20]={key:"draft",label:FLBuilderStrings.draft},e[30]={key:"discard",label:FLBuilderStrings.discard},FLBuilder._showActionsLightbox({className:"fl-builder-save-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_upgradeClicked:function(){window.open(FLBuilderConfig.upgradeUrl)},_helpButtonClicked:function(){var e={};FLBuilderConfig.help.tour&&(e[10]={key:"help-tour",label:FLBuilderStrings.takeHelpTour}),FLBuilderConfig.help.video&&(e[20]={key:"help-video",label:FLBuilderStrings.watchHelpVideo}),FLBuilderConfig.help.knowledge_base&&(e[30]={key:"knowledge-base",label:FLBuilderStrings.viewKnowledgeBase}),FLBuilderConfig.help.forums&&(e[40]={key:"forums",label:FLBuilderStrings.visitForums}),FLBuilder._showActionsLightbox({className:"fl-builder-help-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_closePanel:function(){e(".fl-builder-panel").stop(!0,!0).animate({right:"-350px"},500,function(){e(this).hide()}),e(".fl-builder-bar .fl-builder-add-content-button").stop(!0,!0).fadeIn(),FLBuilder.triggerHook("hideContentPanel")},_showPanel:function(){e(".fl-builder-bar .fl-builder-add-content-button").stop(!0,!0).fadeOut(),e(".fl-builder-panel").stop(!0,!0).show().animate({right:"0"},500),FLBuilder.triggerHook("showContentPanel")},_blockSectionTitleClicked:function(){var t=e(this),l=t.parent();l.hasClass("fl-active")?l.removeClass("fl-active"):(e(".fl-builder-blocks-section").removeClass("fl-active"),l.addClass("fl-active")),FLBuilder._initScrollbars()},_publishButtonClicked:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_layout"},FLBuilder._exit),FLBuilder._actionsLightbox.close()},_draftButtonClicked:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_draft"},FLBuilder._exit),FLBuilder._actionsLightbox.close()},_discardButtonClicked:function(){var e=confirm(FLBuilderStrings.discardMessage);e&&(FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"clear_draft_layout"},FLBuilder._exit),FLBuilder._actionsLightbox.close())},_cancelButtonClicked:function(){FLBuilder._exitUrl=null,FLBuilder._actionsLightbox.close()},_exit:function(){var e=window.location.href;FLBuilderConfig.isUserTemplate&&"undefined"!=typeof window.opener&&window.opener?("undefined"!=typeof window.opener.FLBuilder&&window.opener.FLBuilder._updateLayout(),window.close()):(FLBuilder._exitUrl?e=FLBuilder._exitUrl:(e=e.replace("?fl_builder&","?"),e=e.replace("?fl_builder",""),e=e.replace("&fl_builder","")),window.location.href=e)},_duplicateLayoutClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"duplicate_post"},FLBuilder._duplicateLayoutComplete)},_duplicateLayoutComplete:function(e){var t=FLBuilderConfig.adminUrl;window.location.href=t+"post.php?post="+e+"&action=edit"},_layoutSettingsClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._showLightbox(),FLBuilder._closePanel(),FLBuilder.ajax({action:"render_layout_settings"},FLBuilder._layoutSettingsLoaded)},_layoutSettingsLoaded:function(e){var t=JSON.parse(e);FLBuilder._setSettingsFormContent(t.html),FLBuilder._layoutSettingsInitCSS()},_layoutSettingsInitCSS:function(){var t=e(".fl-builder-settings #fl-field-css textarea:not(.ace_text-input)");t.on("change",FLBuilder._layoutSettingsCSSChanged),FLBuilder._layoutSettingsCSSCache=t.val()},_layoutSettingsCSSChanged:function(){FLBuilder._layoutSettingsCSSTimeout&&clearTimeout(FLBuilder._layoutSettingsCSSTimeout),FLBuilder._layoutSettingsCSSTimeout=setTimeout(e.proxy(FLBuilder._layoutSettingsCSSDoChange,this),600)},_layoutSettingsCSSDoChange:function(){var t=e(".fl-builder-settings"),l=e(this),i=l.parents("#fl-field-css");i.find(".ace_error").length>0||(t.hasClass("fl-builder-layout-settings")?e("#fl-builder-layout-css").html(l.val()):e("#fl-builder-global-css").html(l.val()),FLBuilder._layoutSettingsCSSTimeout=null)},_saveLayoutSettingsClicked:function(){for(var t=e(this).closest(".fl-builder-settings"),l=t.serializeArray(),i={},o=0;o<l.length;o++)i[l[o].name]=l[o].value;FLBuilder.showAjaxLoader(),FLBuilder._lightbox.close(),FLBuilder._layoutSettingsCSSCache=null,FLBuilder.ajax({action:"save_layout_settings",settings:i},FLBuilder._updateLayout)},_cancelLayoutSettingsClicked:function(){var t=e(".fl-builder-settings");t.hasClass("fl-builder-layout-settings")?e("#fl-builder-layout-css").html(FLBuilder._layoutSettingsCSSCache):e("#fl-builder-global-css").html(FLBuilder._layoutSettingsCSSCache),FLBuilder._layoutSettingsCSSCache=null},_globalSettingsClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_global_settings"},FLBuilder._globalSettingsLoaded)},_globalSettingsLoaded:function(e){var t=JSON.parse(e);FLBuilder._setSettingsFormContent(t.html),FLBuilder._layoutSettingsInitCSS(),FLBuilder._initSettingsValidation({row_width:{required:!0,number:!0},responsive_breakpoint:{required:!0,number:!0},medium_breakpoint:{required:!0,number:!0}})},_saveGlobalSettingsClicked:function(){var t=e(this).closest(".fl-builder-settings"),l=t.validate().form(),i=FLBuilder._getSettings(t);l&&(FLBuilder.showAjaxLoader(),FLBuilder._layoutSettingsCSSCache=null,FLBuilder.ajax({action:"save_global_settings",settings:i},FLBuilder._saveGlobalSettingsComplete),FLBuilder._lightbox.close())},_saveGlobalSettingsComplete:function(e){FLBuilderConfig.global=JSON.parse(e),FLBuilder._updateLayout()},_initTemplateSelector:function(){var t=e(FLBuilder._contentClass).find(".fl-row");0===t.length&&FLBuilder._showTemplateSelector()},_changeTemplateClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._showTemplateSelector()},_showTemplateSelector:function(){FLBuilderConfig.simpleUi||"row"!=FLBuilderConfig.userTemplateType&&"module"!=FLBuilderConfig.userTemplateType&&"disabled"!=FLBuilderConfig.enabledTemplates&&0!==e(".fl-builder-templates-button").length&&(FLBuilder._showLightbox(!1),FLBuilder.ajax({action:"render_template_selector"},FLBuilder._templateSelectorLoaded))},_templateSelectorLoaded:function(t){var l=JSON.parse(t),i=null,o=null;FLBuilder._setLightboxContent(l.html),i=e(".fl-template-category-select"),tabs=e(".fl-builder-settings-tab"),userTemplatesTab=e("#fl-builder-settings-tab-yours"),o=e(".fl-user-template"),("user"==FLBuilderConfig.enabledTemplates||o.length>0||userTemplatesTab.length>0&&1==tabs.length)&&(i.val("fl-builder-settings-tab-yours"),e(".fl-builder-settings-tab").removeClass("fl-active"),e("#fl-builder-settings-tab-yours").addClass("fl-active")),0===o.length&&e(".fl-user-templates-message").show(),e("body").trigger("fl-builder.template-selector-loaded")},_templateCategoryChanged:function(){e(".fl-template-selector .fl-builder-settings-tab").hide(),e("#"+e(this).val()).show()},_templateClicked:function(){var t=e(this),l=t.closest(".fl-template-preview").attr("data-id");e(FLBuilder._contentClass).children(".fl-row").length>0?0==l?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate(0,!1,"core")):(FLBuilder._selectedTemplateId=l,FLBuilder._selectedTemplateType="core",FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(l,!1,"core")},_showTemplateActions:function(){var e=[];e[10]={key:"template-replace",label:FLBuilderStrings.templateReplace
|
2 |
+
},e[20]={key:"template-append",label:FLBuilderStrings.templateAppend},FLBuilder._showActionsLightbox({className:"fl-builder-template-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_templateReplaceClicked:function(){confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._actionsLightbox.close(),FLBuilder._applyTemplate(FLBuilder._selectedTemplateId,!1,FLBuilder._selectedTemplateType))},_templateAppendClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._applyTemplate(FLBuilder._selectedTemplateId,!0,FLBuilder._selectedTemplateType)},_templateCancelClicked:function(){FLBuilder._lightbox._node.show()},_applyTemplate:function(e,t,l){t="undefined"!=typeof t&&t?"1":"0",l="undefined"==typeof l?"core":l,FLBuilder._lightbox.close(),FLBuilder.showAjaxLoader(),"core"==l?FLBuilder.ajax({action:"apply_template",template_id:e,append:t},FLBuilder._updateLayout):FLBuilder.ajax({action:"apply_user_template",template_id:e,append:t},FLBuilder._updateTemplateLayout)},_updateTemplateLayout:function(t){var l=JSON.parse(t);null!==l&&e("#fl-builder-layout-css").html(l.layout_css),FLBuilder._updateLayout()},_saveUserTemplateClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._showLightbox(!1),FLBuilder.ajax({action:"render_user_template_settings"},FLBuilder._userTemplateSettingsLoaded)},_userTemplateSettingsLoaded:function(e){var t=JSON.parse(e);FLBuilder._setSettingsFormContent(t.html),FLBuilder._initSettingsValidation({name:{required:!0}})},_saveUserTemplateSettings:function(){var t=e(this).closest(".fl-builder-settings"),l=t.validate().form(),i=FLBuilder._getSettings(t);l&&(FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_user_template",settings:i},FLBuilder._saveUserTemplateSettingsComplete),FLBuilder._lightbox.close())},_saveUserTemplateSettingsComplete:function(){FLBuilder.alert(FLBuilderStrings.templateSaved)},_userTemplateClicked:function(){var t=e(this).attr("data-id");e(FLBuilder._contentClass).children(".fl-row").length>0?"blank"==t?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate("blank",!1,"user")):(FLBuilder._selectedTemplateId=t,FLBuilder._selectedTemplateType="user",FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(t,!1,"user")},_editUserTemplateClicked:function(t){t.preventDefault(),t.stopPropagation(),window.open(e(this).attr("href"))},_deleteUserTemplateClicked:function(t){var l=e(this).closest(".fl-user-template"),i=l.attr("data-id"),o=e(".fl-user-template[data-id="+i+"]"),s=null;confirm(FLBuilderStrings.deleteTemplate)&&(FLBuilder.ajax({action:"delete_user_template",template_id:i}),o.fadeOut(function(){l=e(this),s=l.closest(".fl-user-template-category"),l.remove(),0===s.find(".fl-user-template").length&&s.remove(),1===e(".fl-user-template").length&&(e(".fl-user-templates").hide(),e(".fl-user-templates-message").show())})),t.stopPropagation()},_watchVideoClicked:function(){var e=wp.template("fl-video-lightbox");FLBuilder._actionsLightbox.close(),FLBuilder._lightbox.open(e({video:FLBuilderConfig.help.video_embed}))},_viewKnowledgeBaseClicked:function(){FLBuilder._actionsLightbox.close(),window.open(FLBuilderConfig.help.knowledge_base_url)},_visitForumsClicked:function(){FLBuilder._actionsLightbox.close(),window.open(FLBuilderConfig.help.forums_url)},_showTourOrTemplates:function(){FLBuilderConfig.simpleUi||FLBuilderConfig.isUserTemplate||(FLBuilderConfig.help.tour&&FLBuilderConfig.newUser?FLBuilder._showTourLightbox():FLBuilder._initTemplateSelector())},_showTourLightbox:function(){var e=wp.template("fl-tour-lightbox");FLBuilder._actionsLightbox.open(e())},_noTourButtonClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._initTemplateSelector()},_yesTourButtonClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilderTour.start()},_startHelpTour:function(){FLBuilder._actionsLightbox.close(),FLBuilderTour.start()},_setupEmptyLayout:function(){var t=e(FLBuilder._contentClass);FLBuilderConfig.isUserTemplate&&"module"==FLBuilderConfig.userTemplateType||(t.removeClass("fl-builder-empty"),t.find(".fl-builder-empty-message").remove(),0===t.children(".fl-row").length&&(t.addClass("fl-builder-empty"),t.append('<span class="fl-builder-empty-message">'+FLBuilderStrings.emptyMessage+"</span>"),FLBuilder._initSortables()))},_updateLayout:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"render_layout"},FLBuilder._renderLayout)},_renderLayout:function(e,t){FLBuilder._layout=new FLBuilderAJAXLayout(e,t)},_renderLayoutComplete:function(){FLBuilder._layout&&(FLBuilder._layout._complete(),FLBuilder._layout=null)},_resizeLayout:function(){e(window).trigger("resize"),"undefined"!=typeof YUI&&YUI().use("node-event-simulate",function(e){e.one(window).simulate("resize")})},_initMediaElements:function(){var t={};"undefined"!=typeof e.fn.mediaelementplayer&&("undefined"!=typeof _wpmejsSettings&&(t.pluginPath=_wpmejsSettings.pluginPath),e(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").mediaelementplayer(t))},_initDropTargets:function(){var t="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",l=e(FLBuilder._contentClass+" .fl-row"),i=null,o=e(FLBuilder._contentClass+" .fl-row"+t).find(".fl-col-group"),s=null,r=null,n=0;for(e(".fl-col-drop-target").remove(),e(".fl-col-group-drop-target").remove(),e(".fl-row-drop-target").remove(),e(FLBuilder._contentClass).append('<div class="fl-drop-target fl-row-drop-target"></div>'),l.prepend('<div class="fl-drop-target fl-row-drop-target"></div>'),l.append('<div class="fl-drop-target fl-drop-target-last fl-row-drop-target fl-row-drop-target-last"></div>');n<l.length;n++)i=l.eq(n),0===i.find(".fl-col-group").length&&i.find(".fl-row-content").prepend('<div class="fl-drop-target fl-col-group-drop-target"></div>');for(n=0;n<o.length;n++)s=o.eq(n),r=s.find("> .fl-col"),s.hasClass("fl-col-group-nested")||(s.append('<div class="fl-drop-target fl-col-group-drop-target"></div>'),s.append('<div class="fl-drop-target fl-drop-target-last fl-col-group-drop-target fl-col-group-drop-target-last"></div>')),r.append('<div class="fl-drop-target fl-col-drop-target"></div>'),r.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')},_blockDragHelper:function(e,t){var l=t.clone();return t.clone().insertAfter(t),l.addClass("fl-builder-block-drag-helper"),l},_blockDragInit:function(t){var l=e(t.currentTarget),i=null,o=e(window).scrollTop(),s=0;FLBuilder._dragEnabled=!0,FLBuilder._dragInitialScrollTop=o,l.closest("[data-node]").length>0?(i=l.closest("[data-node]"),i.addClass("fl-node-drag-init")):l.hasClass("fl-builder-block")&&e(".fl-row").each(function(){null===i&&e(this).offset().top-o>0&&(i=e(this))}),null!==i&&(s=i.offset().top-o),FLBuilder._highlightRowsAndColsForDrag(l),FLBuilder._adjustColHeightsForDrag(),FLBuilder._disableGlobalRows(),FLBuilder._closePanel(),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays(),FLBuilder._initSortables(),e("body").addClass("fl-builder-dragging"),e(".fl-builder-empty-message").hide(),e(".fl-sortable-disabled").removeClass("fl-sortable-disabled"),s>0&&scrollTo(0,i.offset().top-s)},_blockDragStart:function(t,l){FLBuilder._dragging=!0,e(".fl-node-drag-init").removeClass("fl-node-drag-init")},_blockDragSort:function(t,l){var i=l.placeholder.parent(),o=FLBuilderStrings.insert;FLBuilder._blockPreventSort(l.item,i)||(i.hasClass("fl-col-content")?o=l.item.hasClass("fl-builder-block-row")?l.item.find(".fl-builder-block-title").text():l.item.hasClass("fl-col-sortable-proxy-item")?FLBuilderStrings.column:l.item.hasClass("fl-builder-block-module")?l.item.find(".fl-builder-block-title").text():l.item.hasClass("fl-builder-block-saved-module")||l.item.hasClass("fl-builder-block-module-template")?l.item.find(".fl-builder-block-title").text():l.item.attr("data-name"):i.hasClass("fl-col-drop-target")?o="":i.hasClass("fl-col-group-drop-target")?o="":i.hasClass("fl-row-drop-target")&&(o=l.item.hasClass("fl-builder-block-row")?l.item.find(".fl-builder-block-title").text():l.item.hasClass("fl-builder-block-saved-row")?l.item.find(".fl-builder-block-title").text():l.item.hasClass("fl-row-sortable-proxy-item")?FLBuilderStrings.row:FLBuilderStrings.newRow),l.placeholder.html(o),l.item.hasClass("fl-node-global")||l.item.hasClass("fl-builder-block-global")||e(".fl-node-dragging").hasClass("fl-node-global")?l.placeholder.addClass("fl-builder-drop-zone-global"):l.placeholder.removeClass("fl-builder-drop-zone-global"))},_blockDragChange:function(e,t){t.placeholder.hide(),t.placeholder.fadeIn(100)},_blockPreventSort:function(t,l){var i=!1,o=t.hasClass("fl-builder-block-row"),s=t.hasClass("fl-col-sortable-proxy-item"),r=l.hasClass("fl-col-content"),n=l.hasClass("fl-col-drop-target"),a=l.parents(".fl-col-group:not(.fl-col-group-nested)"),d=l.parents(".fl-col-group-nested");return(o||s)&&r&&d.length>0&&(i=!0),r&&!l.find(".fl-module, .fl-col").length&&(o&&"1-col"==t.data("cols")?i=!0:s&&(i=!0)),o&&r&&e.inArray(t.data("cols"),["5-cols","6-cols"])>-1&&(i=!0),s&&e(".fl-node-dragging").find(".fl-col-group-nested").length>0&&(r||n&&d.length>0)&&(i=!0),n&&a.length>0&&0===d.length&&a.find("> .fl-col:visible").length>11&&(i=!0),n&&d.length>0&&d.find(".fl-col:visible").length>3&&(i=!0),i&&l.addClass("fl-sortable-disabled"),i},_blockDragStop:function(t,l){var i=e(window).scrollTop(),o=l.item.parent(),s=null;o.hasClass("fl-drop-target")&&o.closest("[data-node]").length?(o=o.closest("[data-node]"),s=o.offset().top-i):s=o.offset().top-i,o.hasClass("fl-builder-blocks-section-content")&&FLBuilder._showPanel(),FLBuilder._dragEnabled=!1,FLBuilder._dragging=!1,FLBuilder._bindOverlayEvents(),FLBuilder._highlightEmptyCols(),FLBuilder._enableGlobalRows(),FLBuilder._setupEmptyLayout(),e("body").removeClass("fl-builder-dragging"),scrollTo(0,o.offset().top-s)},_blockDragCancel:function(){FLBuilder._dragEnabled&&!FLBuilder._dragging&&(FLBuilder._dragEnabled=!1,FLBuilder._dragging=!1,FLBuilder._bindOverlayEvents(),FLBuilder._highlightEmptyCols(),FLBuilder._enableGlobalRows(),FLBuilder._setupEmptyLayout(),e("body").removeClass("fl-builder-dragging"),e(".fl-node-drag-init").removeClass("fl-node-drag-init"),e(".fl-node-dragging").removeClass("fl-node-dragging"),scrollTo(0,FLBuilder._dragInitialScrollTop))},_reorderNode:function(e,t){FLBuilder.ajax({action:"reorder_node",node_id:e,position:t})},_moveNode:function(e,t,l){FLBuilder.ajax({action:"move_node",new_parent:e,node_id:t,position:l})},_removeAllOverlays:function(){FLBuilder._removeRowOverlays(),FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._removeModuleOverlays(),FLBuilder._hideTipTips()},_appendOverlay:function(e,t){var l=0,i=null,o=e.hasClass("fl-row"),s=o?e.find("> .fl-row-content-wrap"):e.find("> .fl-node-content"),r={top:parseInt(s.css("margin-top"),10),bottom:parseInt(s.css("margin-bottom"),10)};return e.append(t),e.addClass("fl-block-overlay-active"),FLBuilder._initTipTips(),i=e.find("> .fl-block-overlay"),r.top<0&&(l=parseInt(i.css("top"),10),l=isNaN(l)?0:l,i.css("top",r.top+l+"px")),r.bottom<0&&(l=parseInt(i.css("bottom"),10),l=isNaN(l)?0:l,i.css("bottom",r.bottom+l+"px")),i},_buildOverlayOverflowMenu:function(e){var t=e.find(".fl-block-overlay-actions"),l=t.data("original"),i=0,o=null,s=0,r=null,n=0,a=[],d=[],u=[],c=wp.template("fl-overlay-overflow-menu");for(void 0!=l&&(t.after(l),t.remove(),t=l),t.data("original",t.clone()),i=t[0].getBoundingClientRect().width,o=t.find(" > i, > span.fl-builder-has-submenu");n<o.length;n++)r=o.eq(n),s+=r.outerWidth(),s>i?(d.push(r),r.remove()):a.push(r);if(d.length>0){for(d.unshift(a.pop().remove()),n=0;n<d.length;n++)d[n].is(".fl-builder-has-submenu")?u.push({type:"submenu",label:d[n].find(".fa").data("title"),submenu:d[n].find(".fl-builder-submenu")[0].outerHTML}):u.push({type:"action",label:d[n].data("title"),className:d[n].removeClass(function(e,t){return t.replace(/fl-block-([^\s]+)/,"")}).attr("class")});t.append(c(u)),FLBuilder._initTipTips()}},_removeRowOverlays:function(){e(".fl-row").removeClass("fl-block-overlay-active"),e(".fl-row-overlay").remove(),e(".fl-module").removeClass("fl-module-adjust-height")},_disableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&e(".fl-row.fl-node-global").addClass("fl-node-disabled")},_enableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&e(".fl-node-disabled").removeClass("fl-node-disabled")},_rowMouseenter:function(){var t=e(this),l=t.offset().top,i=null,o=null,s=wp.template("fl-row-overlay");t.closest(".fl-builder-node-loading").length||t.hasClass("fl-block-overlay-active")||(o=FLBuilder._appendOverlay(t,s({global:t.hasClass("fl-node-global"),node:t.attr("data-node")})),t.find(".fl-node-content:visible").each(function(){var t=e(this).offset().top;i=null===i||i>t?t:i}),null!==i&&i<l&&o.css("top",i-l-30+"px"),o.offset().top<43&&o.addClass("fl-row-overlay-header-bottom"),t.find(".fl-module").each(function(){var t=e(this);t.outerHeight(!0)<20&&t.addClass("fl-module-adjust-height")}))},_rowMouseleave:function(t){var l=e(t.toElement)||e(t.relatedTarget),i=l.hasClass("fl-row-overlay"),o=l.closest(".fl-row-overlay").length>0,s=l.is("#tiptip_holder"),r=l.closest("#tiptip_holder").length>0;i||o||s||r||FLBuilder._removeRowOverlays()},_rowDragHelper:function(){return e('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.row+"</div>")},_rowDragInit:function(t){var l=e(t.target),i=e(".fl-row-sortable-proxy-item"),o=l.closest(".fl-row");o.addClass("fl-node-dragging"),FLBuilder._blockDragInit(t),t.target=i[0],i.trigger(t)},_rowDragStart:function(t,l){var i=e(FLBuilder._contentClass+" .fl-row"),o=e(".fl-node-dragging");1===i.length&&e(FLBuilder._contentClass).addClass("fl-builder-empty"),o.hide(),FLBuilder._blockDragStart(t,l)},_rowDragStop:function(t,l){var i=l.item,o=i.parent(),s=null,r=null,n=0;if(FLBuilder._blockDragStop(t,l),o.hasClass("fl-builder-rows"))return void i.remove();if(o.hasClass("fl-row-sortable-proxy"))return void e(".fl-node-dragging").removeClass("fl-node-dragging").show();if(i.hasClass("fl-builder-block")){if(o.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();o.hasClass("fl-col-content")?FLBuilder._addColGroup(i.closest(".fl-col").attr("data-node"),i.attr("data-cols"),o.find("> .fl-module, .fl-col-group, .fl-builder-block").index(i)):o.hasClass("fl-col-drop-target")?FLBuilder._addCols(o.closest(".fl-col"),o.hasClass("fl-col-drop-target-last")?"after":"before",i.attr("data-cols"),o.closest(".fl-col-group-nested").length>0):o.hasClass("fl-col-group-drop-target")?(r=i.closest(".fl-col-group"),n=i.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(r),FLBuilder._addColGroup(i.closest(".fl-row").attr("data-node"),i.attr("data-cols"),o.hasClass("fl-drop-target-last")?n+1:n)):(s=i.closest(".fl-row"),n=s.length?e(FLBuilder._contentClass+" .fl-row").index(s):0,FLBuilder._addRow(i.attr("data-cols"),o.hasClass("fl-drop-target-last")?n+1:n)),i.remove(),FLBuilder._showPanel(),e(".fl-builder-modules").siblings(".fl-builder-blocks-section-title").eq(0).trigger("click")}else s=e(".fl-node-dragging").removeClass("fl-node-dragging").show(),o.parent().hasClass("fl-builder-content")||(o.hasClass("fl-drop-target-last")?o.parent().after(s):o.parent().before(s),FLBuilder._reorderNode(s.attr("data-node"),s.index())),e(".fl-row-sortable-proxy").append(l.item)},_addRow:function(t,l){FLBuilder._showNodeLoadingPlaceholder(e(FLBuilder._contentClass),l),FLBuilder._newRowPosition=l,FLBuilder.ajax({action:"render_new_row",cols:t,position:l},FLBuilder._addRowComplete)},_addRowComplete:function(t){var l=JSON.parse(t),i=e(FLBuilder._contentClass),o=e(l.html).data("node"),s=FLBuilder._addModuleAfterNodeRender;l.nodeParent=i,l.nodePosition=FLBuilder._newRowPosition,FLBuilder._renderLayout(l,function(){null!==s&&(e(".fl-node-"+o+" .fl-col-content").append(s),FLBuilder._reorderModule(s),FLBuilder._addModuleAfterNodeRender=null),FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+o))})},_deleteRowClicked:function(t){var l=e(this).closest(".fl-row"),i=null;l.find(".fl-module").length?(i=confirm(FLBuilderStrings.deleteRowMessage),i&&FLBuilder._deleteRow(l)):FLBuilder._deleteRow(l),FLBuilder._removeAllOverlays(),t.stopPropagation()},_deleteRow:function(e){FLBuilder.ajax({action:"delete_node",node_id:e.attr("data-node")}),e.empty(),e.remove(),FLBuilder._setupEmptyLayout(),FLBuilder._removeRowOverlays()},_rowCopyClicked:function(t){var l=e(this).closest(".fl-row"),i=l.attr("data-node"),o=e(FLBuilder._contentClass+" .fl-row").index(l)+1,s=l.clone();s.addClass("fl-builder-node-clone"),s.attr("data-node",i+"-clone"),s.find(".fl-block-overlay").remove(),l.after(s),FLBuilder._showNodeLoading(i+"-clone"),FLBuilder._newRowPosition=o,FLBuilder.ajax({action:"copy_row",node_id:i},FLBuilder._rowCopyComplete),t.stopPropagation()},_rowCopyComplete:function(t){var l=JSON.parse(t);l.nodeParent=e(FLBuilder._contentClass),l.nodePosition=FLBuilder._newRowPosition,FLBuilder._renderLayout(l,function(){l.nodeParent.find(".fl-builder-node-loading").eq(0).remove()})},_rowSettingsClicked:function(t){var l=e(this),i=l.closest(".fl-row").attr("data-node"),o=l.closest(".fl-block-overlay-global").length>0;o&&"row"!=FLBuilderConfig.userTemplateType?FLBuilderConfig.userCanEditGlobalTemplates&&window.open(e('.fl-row[data-node="'+i+'"]').attr("data-template-url")):l.hasClass("fl-block-settings")&&(FLBuilder._closePanel(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_row_settings",node_id:i},FLBuilder._rowSettingsLoaded)),t.stopPropagation()},_rowSettingsLoaded:function(e){var t=JSON.parse(e);FLBuilder._setSettingsFormContent(t.settings),FLBuilder.preview=new FLBuilderPreview({type:"row",state:t.state})},_highlightEmptyCols:function(){var t="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",l=(e(FLBuilder._contentClass+" .fl-row"+t),e(FLBuilder._contentClass+" .fl-col"+t));e(".fl-row-highlight").removeClass("fl-row-highlight"),l.removeClass("fl-col-highlight").find(".fl-col-content").css("height",""),l.each(function(){var t=e(this);0===t.find(".fl-module, .fl-col").length&&t.addClass("fl-col-highlight")})},_highlightRowsAndColsForDrag:function(t){var l="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)";e(FLBuilder._contentClass+" .fl-row").addClass("fl-row-highlight"),t.closest(".fl-row-overlay").length||e(FLBuilder._contentClass+" .fl-col"+l).addClass("fl-col-highlight")},_adjustColHeightsForDrag:function(){var t="row"==FLBuilderConfig.userTemplateType?"":".fl-row:not(.fl-node-global) ",l=e(FLBuilder._contentClass),i=l.find(t+".fl-col-group:not(.fl-col-group-nested) > .fl-col > .fl-col-content"),o=l.find(t+".fl-col-group-nested .fl-col-content"),s=0;for(e(".fl-node-drag-init").hide();s<o.length;s++)FLBuilder._adjustColHeightForDrag(o.eq(s));for(s=0;s<i.length;s++)FLBuilder._adjustColHeightForDrag(i.eq(s));e(".fl-node-drag-init").show()},_adjustColHeightForDrag:function(e){e.find(".fl-module:visible, .fl-col:visible").length&&e.height(e.height()+45)},_showColHighlightGuide:function(){var t=e(this),l=t.find("a"),i=t.closest(".fl-col"),o=i.parents(".fl-col"),s=e('<div class="fl-col-highlight-guide"></div>'),r=null,n=t.closest(".fl-block-overlay").offset().top;(l.hasClass("fl-block-col-move-parent")||l.hasClass("fl-block-col-edit-parent"))&&(i=o),i.hasClass("fl-col-highlight")||(i.find("> .fl-col-content").append(s),i.addClass("fl-col-has-highlight-guide"),r=s.offset().top,r>n&&s.css("top",n-r+4+"px"))},_removeColHighlightGuides:function(){e(".fl-col-has-highlight-guide").removeClass("fl-col-has-highlight-guide"),e(".fl-col-highlight-guide").remove()},_colMouseenter:function(){var t=e(this),l=t.closest(".fl-col-group"),i=l.hasClass("fl-col-group-has-child-loading"),o=t.hasClass("fl-node-global"),s=t.parents(".fl-node-global").length>0,r=t.closest(".fl-col-group").find("> .fl-col").length,n=l.find("> .fl-col").index(t),a=0===n,d=r===n+1,u=t.find(".fl-col").length>0,c=t.parents(".fl-col"),f=c.closest(".fl-col-group"),h=c.length>0,p=h?f.find("> .fl-col").length:0,g=f.find("> .fl-col").index(c),_=!!h&&0===g,m=!!h&&p===g+1,b=t.find("> .fl-col-content").width(),v=wp.template("fl-col-overlay"),L=null;FLBuilderConfig.simpleUi||o&&s&&"row"!=FLBuilderConfig.userTemplateType||t.find(".fl-module, .fl-builder-node-loading-placeholder").length>0||t.find(".fl-col").length>0||t.closest(".fl-builder-node-loading").length||(t.hasClass("fl-block-overlay-active")||(FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),L=FLBuilder._appendOverlay(t,v({global:o,groupLoading:i,numCols:r,first:a,last:d,hasChildCols:u,hasParentCol:h,parentFirst:_,parentLast:m,numParentCols:p,contentWidth:b})),FLBuilder._buildOverlayOverflowMenu(L),FLBuilder._initColDragResizing()),e("body").addClass("fl-block-overlay-muted"))},_colMouseleave:function(t){var l=e(this),i=e(t.toElement)||e(t.relatedTarget),o=l.find(".fl-module").length>0,s=i.is("#tiptip_holder"),r=i.closest("#tiptip_holder").length>0;s||r||o||(FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides())},_removeColOverlays:function(){var t=e(".fl-col");t.removeClass("fl-block-overlay-active"),t.find(".fl-col-overlay").remove(),e("body").removeClass("fl-block-overlay-muted")},_colDragHelper:function(){return e('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.column+"</div>")},_colDragInit:function(t){var l=e(t.target),i=e(".fl-col-sortable-proxy-item"),o=l.closest(".fl-col");l.hasClass("fl-block-col-move-parent")&&(o=o.parents(".fl-col")),o.addClass("fl-node-dragging"),FLBuilder._blockDragInit(t),FLBuilder._removeColHighlightGuides(),t.target=i[0],i.trigger(t)},_colDragStart:function(t,l){var i=e(".fl-node-dragging");i.hide(),FLBuilder._resetColumnWidths(i.parent()),FLBuilder._blockDragStart(t,l)},_colDragStop:function(t,l){FLBuilder._blockDragStop(t,l);var i=e(".fl-node-dragging").removeClass("fl-node-dragging").show(),o=i.attr("data-node"),s=l.item.parent(),r=i.parent(),n=r.attr("data-node");newGroup=s.closest(".fl-col-group"),newGroupId=newGroup.attr("data-node"),newRow=s.closest(".fl-row"),position=0,s.hasClass("fl-sortable-disabled")?FLBuilder._resetColumnWidths(r):s.hasClass("fl-col-sortable-proxy")?FLBuilder._resetColumnWidths(r):s.hasClass("fl-col-content")?(i.remove(),0===r.find(".fl-col").length&&r.remove(),position=s.find("> .fl-module, .fl-col-group, .fl-col-sortable-proxy-item").index(l.item),FLBuilder._addColGroup(s.closest(".fl-col").attr("data-node"),o,position)):s.hasClass("fl-col-drop-target")?(s.hasClass("fl-col-drop-target-last")?s.parent().after(i):s.parent().before(i),FLBuilder._resetColumnWidths(newGroup),n==newGroupId?FLBuilder.ajax({action:"reorder_col",node_id:o,position:i.index()}):FLBuilder.ajax({action:"move_col",node_id:o,new_parent:newGroupId,position:i.index(),resize:[n,newGroupId]}),FLBuilder._resizeLayout()):s.hasClass("fl-col-group-drop-target")?(i.remove(),0===r.find(".fl-col").length&&r.remove(),position=newRow.find(".fl-row-content > .fl-col-group").index(newGroup),position=s.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addColGroup(newRow.attr("data-node"),o,position)):s.hasClass("fl-row-drop-target")&&(i.remove(),position=s.closest(".fl-builder-content").find(".fl-row").index(newRow),position=s.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addRow(o,position)),0===r.find(".fl-col").length&&r.remove(),e(".fl-col-sortable-proxy").append(l.item),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables()},_colSettingsClicked:function(t){var l=e(this),i=l.closest(".fl-col"),o=null;FLBuilder._colResizing||(o=l.hasClass("fl-block-col-edit-parent")?i.parents(".fl-col").data("node"):i.attr("data-node"),FLBuilder._closePanel(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_column_settings",node_id:o},FLBuilder._colSettingsLoaded),t.stopPropagation())},_colSettingsLoaded:function(t){var l=JSON.parse(t),i=null,o=null,s=null,r=null;FLBuilder._setSettingsFormContent(l.settings),i=e(".fl-builder-col-settings"),o=i.data("node"),s=e('.fl-col[data-node="'+o+'"]'),r=s.find("> .fl-col-content"),0===s.siblings(".fl-col").length?e(i).find("#fl-builder-settings-section-general").css("display","none"):r.width()<=40&&e("#fl-field-size").hide(),FLBuilder.preview=new FLBuilderPreview({type:"col",state:l.state})},_deleteColClicked:function(t){var l=e(this),i=l.closest(".fl-col"),o=i.closest(".fl-col-group"),s=i.parents(".fl-col"),r=s.length>0,n=s.find("> .fl-col-content > .fl-module, > .fl-col-content > .fl-col-group"),a=i.siblings(".fl-col"),d=!0;i.find(".fl-module").length>0&&(d=confirm(FLBuilderStrings.deleteColumnMessage)),r&&1===n.length&&(0===a.length?i=s:1!==a.length||a.find(".fl-module").length||(i=o)),d&&(FLBuilder._deleteCol(i),FLBuilder._removeAllOverlays(),FLBuilder._highlightEmptyCols()),t.stopPropagation()},_deleteCol:function(e){var t=e.closest(".fl-row"),l=e.closest(".fl-col-group"),i=0;e.remove(),rowCols=t.find(".fl-row-content > .fl-col-group > .fl-col"),groupCols=l.find(" > .fl-col"),0===rowCols.length&&"row"!=FLBuilderConfig.userTemplateType?FLBuilder._deleteRow(t):(0===groupCols.length?l.remove():(i=6===groupCols.length?16.65:7===groupCols.length?14.28:Math.round(100/groupCols.length*100)/100,groupCols.css("width",i+"%")),FLBuilder.ajax({action:"delete_col",node_id:e.attr("data-node"),new_width:i}),FLBuilder._initDropTargets(),FLBuilder._initSortables())},_addCols:function(e,t,l,i){var o=e.closest(".fl-col-group"),s=o.find(".fl-col").index(e);l="undefined"==typeof l?"1-col":l,i="undefined"!=typeof i&&i,"after"==t&&s++,FLBuilder._showNodeLoadingPlaceholder(o,s),FLBuilder._removeAllOverlays(),FLBuilder.ajax({action:"render_new_columns",node_id:e.attr("data-node"),insert:t,type:l,nested:i?1:0},FLBuilder._addColsComplete)},_addColsComplete:function(t){var l=JSON.parse(t),i=null,o=FLBuilder._addModuleAfterNodeRender;FLBuilder._renderLayout(l,function(){null!==o&&(e('[data-node="'+o.module.data("node")+'"]').remove(),i=e('[data-node="'+o.colId+'"]'),"after"==o.position?i.next().find(".fl-col-content").append(o.module):i.prev().find(".fl-col-content").append(o.module),FLBuilder._reorderModule(o.module),FLBuilder._addModuleAfterNodeRender=null)})},_addColGroup:function(t,l,i){var o=e(".fl-node-"+t);FLBuilder._newColGroupPosition=i,o.hasClass("fl-col")?FLBuilder._newColGroupParent=o.find(" > .fl-col-content"):FLBuilder._newColGroupParent=o.find(".fl-row-content"),FLBuilder._showNodeLoadingPlaceholder(FLBuilder._newColGroupParent,i),FLBuilder.ajax({action:"render_new_column_group",cols:l,node_id:t,position:i},FLBuilder._addColGroupComplete)},_addColGroupComplete:function(t){var l=JSON.parse(t),i=e(l.html),o=i.data("node"),s=i.find(".fl-col").data("node"),r=FLBuilder._addModuleAfterNodeRender;l.nodeParent=FLBuilder._newColGroupParent,l.nodePosition=FLBuilder._newColGroupPosition,FLBuilder._renderLayout(l,function(){l.nodeParent.hasClass("fl-col-content")&&l.nodeParent.parents(".fl-col").addClass("fl-col-has-cols"),null!==r&&(e(".fl-node-"+s+" .fl-col-content").append(r),FLBuilder._reorderModule(r),FLBuilder._addModuleAfterNodeRender=null),FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+o))})},_initColDragResizing:function(){e(".fl-block-col-resize").draggable({axis:"x",start:FLBuilder._colDragResizeStart,drag:FLBuilder._colDragResize,stop:FLBuilder._colDragResizeStop})},_colDragResizeStart:function(t,l){var i=e(l.helper),o="",s=i.hasClass("fl-block-col-resize-parent"),r=s?i.closest(".fl-col").parents(".fl-col"):null,n=s?r.parents(".fl-col-group"):i.closest(".fl-col-group"),a=n.find("> .fl-col"),d=s?r:i.closest(".fl-col"),u=null,c=100,f=0;for(i.hasClass("fl-block-col-resize-e")?(o="e",u=d.nextAll(".fl-col").first()):(o="w",u=d.prevAll(".fl-col").first());f<a.length;f++)a.eq(f).data("node")!=d.data("node")&&a.eq(f).data("node")!=u.data("node")&&(c-=parseFloat(a.eq(f)[0].style.width));FLBuilder._colResizeData={handle:i,feedbackLeft:i.find(".fl-block-col-resize-feedback-left"),feedbackRight:i.find(".fl-block-col-resize-feedback-right"),direction:o,groupWidth:n.outerWidth(),col:d,colWidth:parseFloat(d[0].style.width)/100,sibling:u,offset:l.position.left,availWidth:c},FLBuilder._colResizing=!0,e("body").addClass("fl-builder-col-resizing"),FLBuilder._closePanel(),FLBuilder._destroyOverlayEvents(),FLBuilder.triggerHook("col-resize-start")},_colDragResize:function(e,t){var l=FLBuilder._colResizeData,i=(l.offset-t.position.left)/l.groupWidth,o="e"==l.direction?100*(l.colWidth-i):100*(l.colWidth+i),s=Math.round(100*o)/100,r=l.availWidth-o,n=Math.round(100*r)/100,a=8,d=Math.round(100*(l.availWidth-a))/100;s<a?(s=a,n=d):n<a&&(s=d,n=a),"e"==l.direction?(l.feedbackLeft.html(s.toFixed(1)+"%").show(),l.feedbackRight.html(n.toFixed(1)+"%").show()):(l.feedbackLeft.html(n.toFixed(1)+"%").show(),l.feedbackRight.html(s.toFixed(1)+"%").show()),l.col.css("width",s+"%"),l.sibling.css("width",n+"%"),FLBuilder.triggerHook("col-resize-drag")},_colDragResizeStop:function(t,l){var i=FLBuilder._colResizeData,o=FLBuilder._colResizeData.handle.closest(".fl-block-overlay");FLBuilder._colResizeData.feedbackLeft.hide(),FLBuilder._colResizeData.feedbackRight.hide(),FLBuilder.ajax({action:"resize_cols",col_id:i.col.data("node"),col_width:parseFloat(i.col[0].style.width),sibling_id:i.sibling.data("node"),sibling_width:parseFloat(i.sibling[0].style.width)}),FLBuilder._buildOverlayOverflowMenu(o),FLBuilder._colResizeData=null,e("body").removeClass("fl-builder-col-resizing"),FLBuilder._bindOverlayEvents(),setTimeout(function(){FLBuilder._colResizing=!1},50),FLBuilder.triggerHook("col-resize-stop")},_resetColumnWidthsClicked:function(t){var l=e(this).parents(".fl-col-group").last(),i=[l.data("node")],o=l.find(".fl-col-group"),s=0;for(FLBuilder._resetColumnWidths(l);s<o.length;s++)FLBuilder._resetColumnWidths(o.eq(s)),i.push(o.eq(s).data("node"));FLBuilder.ajax({action:"reset_col_widths",group_id:i}),FLBuilder.triggerHook("col-reset-widths"),FLBuilder._closeAllSubmenus(),t.stopPropagation()},_resetColumnWidths:function(e){var t=e.find(" > .fl-col:visible"),l=0;l=6===t.length?16.65:7===t.length?14.28:Math.round(100/t.length*100)/100,t.css("width",l+"%")},_moduleMouseenter:function(){var t=e(this),l=t.attr("data-name"),i=t.hasClass("fl-node-global"),o=t.parents(".fl-node-global").length>0,s=t.parents(".fl-col-group").last(),r=s.hasClass("fl-col-group-has-child-loading"),n=t.closest(".fl-col-group").find("> .fl-col").length,a=t.closest(".fl-col"),d=0===a.index(),u=n===a.index()+1,c=a.parents(".fl-col"),f=c.length>0,h=f?c.closest(".fl-col-group").find("> .fl-col").length:0,p=!!f&&0===c.index(),g=!!f&&h===c.index()+1,_=a.find("> .fl-col-content").width(),m=wp.template("fl-module-overlay"),b=null;FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),i&&o&&"row"!=FLBuilderConfig.userTemplateType||t.closest(".fl-builder-node-loading").length||(t.hasClass("fl-block-overlay-active")||(b=FLBuilder._appendOverlay(t,m({global:i,moduleName:l,groupLoading:r,numCols:n,colFirst:d,colLast:u,hasParentCol:f,numParentCols:h,parentFirst:p,parentLast:g,contentWidth:_})),FLBuilder._buildOverlayOverflowMenu(b),FLBuilder._initColDragResizing()),e("body").addClass("fl-block-overlay-muted"))},_moduleMouseleave:function(t){var l=(e(this),e(t.toElement)||e(t.relatedTarget)),i=l.is("#tiptip_holder"),o=l.closest("#tiptip_holder").length>0;i||o||(FLBuilder._removeModuleOverlays(),FLBuilder._removeColHighlightGuides())},_removeModuleOverlays:function(){var t=e(".fl-module");t.removeClass("fl-block-overlay-active"),t.find(".fl-module-overlay").remove(),e("body").removeClass("fl-block-overlay-muted")},_moduleDragHelper:function(t,l){return e('<div class="fl-builder-block-drag-helper">'+l.attr("data-name")+"</div>")},_moduleDragStart:function(t,l){e(l.item).data("original-position",l.item.index()),FLBuilder._blockDragStart(t,l)},_moduleDragStop:function(t,l){FLBuilder._blockDragStop(t,l);var i=l.item,o=i.parent(),s=null,r=0,n=0;if(o.hasClass("fl-builder-modules")||o.hasClass("fl-builder-widgets"))return void i.remove();
|
3 |
+
if(i.hasClass("fl-builder-block")){if(o.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();o.hasClass("fl-row-drop-target")?(o=i.closest(".fl-builder-content"),n=0,s=i.closest(".fl-row"),r=o.find(".fl-row").index(s)):o.hasClass("fl-col-group-drop-target")?(o=i.closest(".fl-row-content"),n=o.closest(".fl-row").attr("data-node"),s=i.closest(".fl-col-group"),r=o.find(" > .fl-col-group").index(s)):o.hasClass("fl-col-drop-target")?(o=i.closest(".fl-col-group"),n=o.attr("data-node"),s=i.closest(".fl-col"),r=o.find(" > .fl-col").index(s)):(r=o.find("> .fl-module, .fl-col-group, .fl-builder-block").index(i),n=i.closest(".fl-col").attr("data-node")),i.closest(".fl-drop-target-last").length&&(r+=1),FLBuilder._addModule(o,n,i.attr("data-type"),r,i.attr("data-widget"),i.attr("data-alias")),i.remove()}else{if(o.hasClass("fl-sortable-disabled"))return e(t.target).append(l.item),e(t.target).children().eq(l.item.data("original-position")).before(l.item),void FLBuilder._highlightEmptyCols();o.hasClass("fl-row-drop-target")?(s=i.closest(".fl-row"),r=i.closest(".fl-builder-content").children(".fl-row").index(s),r=i.closest(".fl-drop-target-last").length?r+1:r,FLBuilder._addModuleAfterNodeRender=i,FLBuilder._addRow("1-col",r),i.remove()):o.hasClass("fl-col-group-drop-target")?(s=i.closest(".fl-col-group"),r=i.closest(".fl-row-content ").find(" > .fl-col-group").index(s),r=i.closest(".fl-drop-target-last").length?r+1:r,FLBuilder._addModuleAfterNodeRender=i,FLBuilder._addColGroup(i.closest(".fl-row").attr("data-node"),"1-col",r),i.remove()):o.hasClass("fl-col-drop-target")?(s=i.closest(".fl-col"),r=i.closest(".fl-col-drop-target-last").length?"after":"before",FLBuilder._addModuleAfterNodeRender={module:i,colId:s.data("node"),position:r},FLBuilder._addCols(s,r,"1-col",i.closest(".fl-col-group-nested").length>0),i.remove()):FLBuilder._reorderModule(i)}FLBuilder._resizeLayout()},_reorderModule:function(e){var t=e.closest(".fl-col").attr("data-node"),l=e.attr("data-parent"),i=e.attr("data-node"),o=e.index();t==l?FLBuilder._reorderNode(i,o):(e.attr("data-parent",t),FLBuilder._moveNode(t,i,o))},_deleteModuleClicked:function(t){var l=e(this).closest(".fl-module"),i=confirm(FLBuilderStrings.deleteModuleMessage);i&&(FLBuilder._deleteModule(l),FLBuilder._removeAllOverlays()),t.stopPropagation()},_deleteModule:function(e){var t=e.closest(".fl-row");FLBuilder.ajax({action:"delete_node",node_id:e.attr("data-node")}),e.empty(),e.remove(),t.removeClass("fl-block-overlay-muted"),FLBuilder._highlightEmptyCols(),FLBuilder._removeAllOverlays()},_moduleCopyClicked:function(t){var l=e(this).closest(".fl-module");nodeId=l.attr("data-node"),position=l.index()+1,clone=l.clone(),clone.addClass("fl-builder-node-clone"),clone.attr("data-node",nodeId+"-clone"),clone.find(".fl-block-overlay").remove(),l.after(clone),FLBuilder._showNodeLoading(nodeId+"-clone"),FLBuilder._newModuleParent=l.parent(),FLBuilder._newModulePosition=position,FLBuilder.ajax({action:"copy_module",node_id:nodeId},FLBuilder._moduleCopyComplete),t.stopPropagation()},_moduleCopyComplete:function(e){var t=JSON.parse(e);t.nodeParent=FLBuilder._newModuleParent,t.nodePosition=FLBuilder._newModulePosition,FLBuilder._renderLayout(t,function(){t.nodeParent.find(".fl-builder-node-loading").eq(0).remove()})},_moduleSettingsClicked:function(t){var l=e(this),i=l.closest(".fl-module").attr("data-node"),o=l.closest(".fl-col").attr("data-node"),s=l.closest(".fl-module").attr("data-type"),r=l.closest(".fl-block-overlay-global").length>0;t.stopPropagation(),FLBuilder._colResizing||r&&!FLBuilderConfig.userCanEditGlobalTemplates||FLBuilder._showModuleSettings(i,o,s)},_showModuleSettings:function(e,t,l){FLBuilder._closePanel(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_module_settings",node_id:e,type:l,parent_id:t},FLBuilder._moduleSettingsLoaded)},_moduleSettingsLoaded:function(t){var l=JSON.parse(t),i=e("<div>"+l.settings+"</div>"),o=i.find("link.fl-builder-settings-css"),s=i.find("script.fl-builder-settings-js"),r=i.find(".fl-builder-settings"),n=r.attr("data-type"),a=null,d=null,u=null;e.inArray(n,FLBuilder._loadedModuleAssets)>-1?(o.remove(),s.remove()):(e("head").append(o),e("head").append(s),FLBuilder._loadedModuleAssets.push(n)),FLBuilder._setSettingsFormContent(i),"undefined"!=typeof l.layout&&(a=l.layout,a.nodeParent=FLBuilder._newModuleParent,a.nodePosition=FLBuilder._newModulePosition),"undefined"!=typeof l.state&&(d=l.state),FLBuilder.preview=new FLBuilderPreview({type:"module",layout:a,state:d}),u=FLBuilder._moduleHelpers[n],"undefined"!=typeof u&&(FLBuilder._initSettingsValidation(u.rules),u.init())},_saveModuleClicked:function(){var t=e(this).closest(".fl-builder-settings"),l=t.attr("data-type"),i=(t.attr("data-node"),FLBuilder._moduleHelpers[l]),o=!0;"undefined"!=typeof i&&(t.find("label.error").remove(),t.validate().hideErrors(),o=t.validate().form(),o&&(o=i.submit())),o?(FLBuilder._saveSettings(),FLBuilder._lightbox.close()):FLBuilder._toggleSettingsTabErrors()},_addModule:function(e,t,l,i,o,s){FLBuilder._showNodeLoadingPlaceholder(e,i),e.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=e,FLBuilder._newModulePosition=i),FLBuilder.ajax({action:"render_new_module",parent_id:t,type:l,position:i,node_preview:1,widget:"undefined"==typeof o?"":o,alias:"undefined"==typeof s?"":s},FLBuilder._addModuleComplete)},_addModuleComplete:function(t){FLBuilder._showLightbox(),FLBuilder._moduleSettingsLoaded(t),e(".fl-builder-module-settings").data("new-module","1")},registerModuleHelper:function(t,l){var i={rules:{},init:function(){},submit:function(){return!0},preview:function(){}};FLBuilder._moduleHelpers[t]=e.extend({},i,l)},_registerModuleHelper:function(e,t){FLBuilder.registerModuleHelper(e,t)},_showNodeTemplateSettings:function(t){var l=e(".fl-builder-settings-lightbox .fl-builder-settings");FLBuilder._saveSettings(),FLBuilder._showLightbox(),FLBuilder.ajax({action:"render_node_template_settings",node_id:l.attr("data-node")},FLBuilder._nodeTemplateSettingsLoaded)},_nodeTemplateSettingsLoaded:function(t){var l=JSON.parse(t);FLBuilder._showLightbox(!1),FLBuilder._setSettingsFormContent(l.html),FLBuilder._initSettingsValidation({name:{required:!0}}),FLBuilderConfig.userCanEditGlobalTemplates||e("#fl-field-global").hide()},_saveNodeTemplate:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.validate().form();l&&(FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_node_template",node_id:t.attr("data-node"),settings:FLBuilder._getSettings(t)},FLBuilder._saveNodeTemplateComplete),FLBuilder._lightbox.close())},_saveNodeTemplateComplete:function(t){var l=JSON.parse(t),i=e(".fl-builder-saved-"+l.type+"s"),o=i.find(".fl-builder-block"),s=null,r="",n=l.name.toLowerCase(),a=0,d=wp.template("fl-node-template-block");if("row"==l.type?FLBuilder.alert(FLBuilderStrings.rowTemplateSaved):"module"==l.type&&FLBuilder.alert(FLBuilderStrings.moduleTemplateSaved),l.layout&&FLBuilder._renderLayout(l.layout),0===o.length)i.append(d(l));else for(;a<o.length;a++){if(s=o.eq(a),r=s.text().toLowerCase().trim(),0===a&&n<r){i.prepend(d(l));break}if(n<r){s.before(d(l));break}if(o.length-1===a){i.append(d(l));break}}i.find(".fl-builder-block-no-node-templates").remove()},_nodeTemplateDragStop:function(t,l){FLBuilder._blockDragStop(t,l);var i=l.item,o=i.parent(),s=null,r=0,n=null,a="",d=null;if(i.hasClass("fl-builder-block-saved-row")||i.hasClass("fl-builder-block-row-template"))n=i.closest(".fl-row"),r=n.length?e(FLBuilder._contentClass+" .fl-row").index(n):0,r=o.hasClass("fl-drop-target-last")?r+1:r,s=null,a="render_new_row",d=FLBuilder._addRowComplete,FLBuilder._newRowPosition=r,FLBuilder._showNodeLoadingPlaceholder(e(FLBuilder._contentClass),r);else if(i.hasClass("fl-builder-block-saved-module")||i.hasClass("fl-builder-block-module-template")){if(a="render_new_module",d=FLBuilder._addModuleComplete,o.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();o.hasClass("fl-row-drop-target")?(o=i.closest(".fl-builder-content"),s=0,r=o.find(".fl-row").index(i.closest(".fl-row"))):o.hasClass("fl-col-group-drop-target")?(o=i.closest(".fl-row-content"),s=o.closest(".fl-row").attr("data-node"),r=o.find(" > .fl-col-group").index(i.closest(".fl-col-group"))):o.hasClass("fl-col-drop-target")?(o=i.closest(".fl-col-group"),r=o.children(".fl-col").index(i.closest(".fl-col")),s=o.attr("data-node")):(r=o.children(".fl-module, .fl-builder-block").index(i),s=i.closest(".fl-col").attr("data-node")),i.closest(".fl-drop-target-last").length&&(r+=1),o.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=o,FLBuilder._newModulePosition=r),FLBuilder._showNodeLoadingPlaceholder(o,r)}FLBuilder.ajax({action:a,template_id:i.attr("data-id"),template_type:i.attr("data-type"),parent_id:s,position:r},d),i.remove()},_editNodeTemplateClicked:function(t){t.preventDefault(),t.stopPropagation(),window.open(e(this).attr("href"))},_deleteNodeTemplateClicked:function(t){var l=e(t.target),i=l.closest(".fl-builder-blocks-section"),o=i.find(".fl-builder-blocks-section-content"),s=o.find(".fl-builder-block"),r=l.closest(".fl-builder-block"),n=r.hasClass("fl-builder-block-global"),a=n?FLBuilder._updateLayout:void 0,d=n?FLBuilderStrings.deleteGlobalTemplate:FLBuilderStrings.deleteTemplate;confirm(d)&&(r.remove(),1===s.length&&(r.hasClass("fl-builder-block-saved-row")?o.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedRows+"</span>"):o.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedModules+"</span>")),r.hasClass("fl-builder-block-global")&&FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"delete_node_template",template_id:r.attr("data-id")},a))},_initSettingsForms:function(){FLBuilder._initColorPickers(),FLBuilder._initSelectFields(),FLBuilder._initMultipleFields(),FLBuilder._initAutoSuggestFields(),FLBuilder._initLinkFields(),FLBuilder._initFontFields(),FLBuilder._initOrderingFields(),FLBuilder.triggerHook("settings-form-init")},_setSettingsFormContent:function(e){FLBuilder._setLightboxContent(e),FLBuilder._initSettingsForms()},_settingsTabClicked:function(t){var l=e(this),i=l.closest(".fl-builder-settings"),o=l.attr("href").split("#").pop();i.find(".fl-builder-settings-tab").removeClass("fl-active"),i.find("#"+o).addClass("fl-active"),i.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),e(this).addClass("fl-active"),t.preventDefault()},_settingsCancelClicked:function(t){var l=e(".fl-builder-lightbox[data-parent]"),i=e(".fl-builder-module-settings"),o=null,s=null,r=null,n=null;return l.length>0?void FLBuilder._closeNestedSettings():(i.length>0&&"undefined"!=typeof i.data("new-module")?(o=e(FLBuilder.preview.state.html),s=e(".fl-node-"+i.data("node")),r=s.closest(".fl-col"),n=o.find(".fl-node-"+r.data("node")),n.length>0?FLBuilder._deleteModule(s):FLBuilder._deleteCol(r)):FLBuilder.preview&&FLBuilder.preview.revert(),FLBuilder.preview=null,void FLLightbox.closeParent(this))},_initSettingsValidation:function(t,l){var i=e(".fl-builder-settings").last();i.validate({ignore:".fl-ignore-validation",rules:t,messages:l,errorPlacement:FLBuilder._settingsErrorPlacement})},_settingsErrorPlacement:function(e,t){e.appendTo(t.parent())},_toggleSettingsTabErrors:function(){for(var t=e(".fl-builder-settings:visible"),l=t.find(".fl-builder-settings-tab"),i=null,o=null,s=0;s<l.length;s++)i=l.eq(s),o=i.find("label.error"),tabLink=t.find(".fl-builder-settings-tabs a[href*="+i.attr("id")+"]"),tabLink.find(".fl-error-icon").remove(),tabLink.removeClass("error"),o.length>0&&(tabLink.append('<span class="fl-error-icon"></span>'),tabLink.addClass("error"))},_getSettings:function(t){FLBuilder._updateEditorFields();var l=t.serializeArray(),i=0,o=0,s="",r="",n="",a=[],d=[],u={};for(i=0;i<l.length;i++)if(s=l[i].value.replace(/\r/gm,""),!(l[i].name.indexOf("flrich")>-1))if(l[i].name.indexOf("[")>-1){for(r=l[i].name.replace(/\[(.*)\]/,""),n=l[i].name.replace(r,""),a=[],d=n.match(/\[[^\]]*\]/g),o=0;o<d.length;o++)"[]"!=d[o]&&a.push(d[o].replace(/\[|\]/g,""));n.match(/\[\]\[[^\]]*\]\[[^\]]+\]/)?("undefined"==typeof u[r]&&(u[r]={}),"undefined"==typeof u[r][a[0]]&&(u[r][a[0]]={}),"undefined"==typeof u[r][a[0]][a[1]]&&(u[r][a[0]][a[1]]={}),u[r][a[0]][a[1]]=s):n.match(/\[\]\[[^\]]*\]\[\]/)?("undefined"==typeof u[r]&&(u[r]={}),"undefined"==typeof u[r][a[0]]&&(u[r][a[0]]=[]),u[r][a[0]].push(s)):n.match(/\[\]\[[^\]]*\]/)?("undefined"==typeof u[r]&&(u[r]={}),u[r][a[0]]=s):n.match(/\[\]/)&&("undefined"==typeof u[r]&&(u[r]=[]),u[r].push(s))}else u[l[i].name]=s;for(n in u)if("undefined"!=typeof u["as_values_"+n]){u[n]=e.grep(u["as_values_"+n].split(","),function(e){return""!==e}).join(",");try{delete u["as_values_"+n]}catch(c){}}return u},_saveSettings:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.attr("data-node"),i=FLBuilder._getSettings(t);FLBuilder._showNodeLoading(l),FLBuilder.ajax({action:"save_settings",node_id:l,settings:i},FLBuilder._saveSettingsComplete),FLBuilder._lightbox.close()},_saveSettingsComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.preview&&(FLBuilder.preview.clear(),FLBuilder.preview=null)})},_openNestedSettings:function(t){t=e.extend({className:"fl-builder-lightbox",destroyOnClose:!0},t);var l=e(".fl-lightbox-wrap:visible"),i=l.find(".fl-lightbox"),o=new FLLightbox(t),s=o._node,r=s.find(".fl-lightbox");return l.hide(),s.attr("data-parent",l.attr("data-instance-id")),o.open('<div class="fl-builder-lightbox-loading"></div>'),o.draggable({handle:".fl-lightbox-header"}),r.css({left:i.css("left"),top:i.css("top")}),o},_closeNestedSettings:function(){var t=e(".fl-builder-lightbox[data-parent]:visible"),l=t.find(".fl-lightbox"),i=t.attr("data-instance-id"),o=FLLightbox._instances[i],s=t.attr("data-parent"),r=e('[data-instance-id="'+s+'"]'),n=r.find(".fl-lightbox"),a=r.find("form");l.css("height","auto"),l.find(".fl-lightbox-content").html('<div class="fl-builder-lightbox-loading"></div>'),o.on("close",function(){r.show(),r.find("label.error").remove(),a.validate().hideErrors(),FLBuilder._toggleSettingsTabErrors(),n.css({left:l.css("left"),top:l.css("top")})}),setTimeout(function(){o.close()},250)},_showHelpTooltip:function(){e(this).siblings(".fl-help-tooltip-text").fadeIn()},_hideHelpTooltip:function(){e(this).siblings(".fl-help-tooltip-text").fadeOut()},_initAutoSuggestFields:function(){e(".fl-builder-settings:visible .fl-suggest-field").each(FLBuilder._initAutoSuggestField)},_initAutoSuggestField:function(){var t=e(this);t.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:t.data("action"),fl_as_action_data:t.data("action-data"),_wpnonce:FLBuilderConfig.ajaxNonce}),e.extend({},{asHtmlID:t.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:3,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,preFill:t.data("value"),queryParam:"fl_as_query",afterSelectionAdd:FLBuilder._updateAutoSuggestField,afterSelectionRemove:FLBuilder._updateAutoSuggestField,selectionLimit:t.data("limit")},t.data("args")))},_updateAutoSuggestField:function(t,l,i){e(this).siblings(".as-values").val(i.join(",")).trigger("change")},_initMultipleFields:function(){for(var t=e(".fl-builder-settings:visible .fl-builder-field-multiples"),l=null,i=null,o=0,s=FLBuilderConfig.isRtl?{left:10}:{right:10};o<t.length;o++)l=t.eq(o),i=l.find(".fl-builder-field-multiple"),1===i.length?i.eq(0).find(".fl-builder-field-actions").addClass("fl-builder-field-actions-single"):i.find(".fl-builder-field-actions").removeClass("fl-builder-field-actions-single");e(".fl-builder-field-multiples").sortable({items:".fl-builder-field-multiple",cursor:"move",cursorAt:s,distance:5,opacity:.5,helper:FLBuilder._fieldDragHelper,placeholder:"fl-builder-field-dd-zone",stop:FLBuilder._fieldDragStop,tolerance:"pointer"})},_addFieldClicked:function(){var t=e(this),l=t.attr("data-field"),i=t.closest("tr").siblings("tr[data-field="+l+"]").last(),o=i.clone(),s=parseInt(i.find("label span.fl-builder-field-index").html(),10)+1;o.find("th label span.fl-builder-field-index").html(s),o.find(".fl-form-field-preview-text").html(""),o.find("input, textarea, select").val(""),i.after(o),FLBuilder._initMultipleFields()},_copyFieldClicked:function(){var t=e(this),l=t.closest("tr"),i=l.clone(),o=parseInt(l.find("label span.fl-builder-field-index").html(),10)+1;i.find("th label span.fl-builder-field-index").html(o),l.after(i),FLBuilder._renumberFields(l.parent()),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview()},_deleteFieldClicked:function(){var t=e(this).closest("tr"),l=t.parent(),i=confirm(FLBuilderStrings.deleteFieldMessage);i&&(t.remove(),FLBuilder._renumberFields(l),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview())},_renumberFields:function(e){for(var t=e.find(".fl-builder-field-multiple"),l=0;l<t.length;l++)t.eq(l).find("th label span.fl-builder-field-index").html(l+1)},_fieldDragHelper:function(){return e('<div class="fl-builder-field-dd-helper"></div>')},_fieldDragStop:function(e,t){FLBuilder._renumberFields(t.item.parent()),FLBuilder.preview.delayPreview()},_initSelectFields:function(){e(".fl-builder-settings:visible").find(".fl-builder-settings-fields select").trigger("change")},_settingsSelectChanged:function(){var t=e(this),l=t.attr("data-toggle"),i=t.attr("data-hide"),o=t.attr("data-trigger"),s=t.val(),r=0;if("undefined"!=typeof l){l=JSON.parse(l);for(r in l)FLBuilder._settingsSelectToggle(l[r].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(l[r].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l[r].tabs,"hide","a[href*=fl-builder-settings-tab-","]");"undefined"!=typeof l[s]&&(FLBuilder._settingsSelectToggle(l[s].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(l[s].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l[s].tabs,"show","a[href*=fl-builder-settings-tab-","]"))}if("undefined"!=typeof i&&(i=JSON.parse(i),"undefined"!=typeof i[s]&&(FLBuilder._settingsSelectToggle(i[s].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(i[s].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(i[s].tabs,"hide","a[href*=fl-builder-settings-tab-","]"))),"undefined"!=typeof o&&(o=JSON.parse(o),"undefined"!=typeof o[s]&&"undefined"!=typeof o[s].fields))for(r=0;r<o[s].fields.length;r++)e("#fl-field-"+o[s].fields[r]).find("select").trigger("change")},_settingsSelectToggle:function(t,l,i,o){var s=0;if(o="undefined"==typeof o?"":o,"undefined"!=typeof t)for(;s<t.length;s++)e(".fl-builder-settings:visible").find(i+t[s]+o)[l](),e(i+t[s]+o).parent().find('.fl-field[data-type="code"]').each(function(){e(this).data("editor").resize()})},_initColorPickers:function(){var t=FLBuilderConfig.colorPresets?FLBuilderConfig.colorPresets:[];FLBuilder.colorPicker=new FLBuilderColorPicker({mode:"hsv",elements:".fl-color-picker .fl-color-picker-value",presets:t,labels:{colorPresets:FLBuilderStrings.colorPresets,colorPicker:FLBuilderStrings.colorPicker,placeholder:FLBuilderStrings.placeholder,removePresetConfirm:FLBuilderStrings.removePresetConfirm,noneColorSelected:FLBuilderStrings.noneColorSelected,alreadySaved:FLBuilderStrings.alreadySaved,noPresets:FLBuilderStrings.noPresets,presetAdded:FLBuilderStrings.presetAdded}}),e(FLBuilder.colorPicker).on("presetRemoved presetAdded",function(e,t){FLBuilder.ajax({action:"save_color_presets",presets:t.presets})})},_initSinglePhotoSelector:function(){null===FLBuilder._singlePhotoSelector&&(FLBuilder._singlePhotoSelector=wp.media({title:FLBuilderStrings.selectPhoto,button:{text:FLBuilderStrings.selectPhoto},library:{type:"image"},multiple:!1}),FLBuilder._singlePhotoSelector.on("open",FLBuilder._wpmedia_reset_errors),_wpPluploadSettings.defaults.multipart_params.fl_upload_type="photo")},_selectSinglePhoto:function(){FLBuilder._initSinglePhotoSelector(),FLBuilder._singlePhotoSelector.once("open",e.proxy(FLBuilder._singlePhotoOpened,this)),FLBuilder._singlePhotoSelector.once("select",e.proxy(FLBuilder._singlePhotoSelected,this)),FLBuilder._singlePhotoSelector.open()},_singlePhotoOpened:function(){var t=FLBuilder._singlePhotoSelector.state().get("selection"),l=e(this).closest(".fl-photo-field"),i=l.find("input[type=hidden]"),o=i.val(),s=null;e(this).hasClass("fl-photo-replace")?(t.reset(),l.addClass("fl-photo-empty"),i.val("")):""!==o?(s=wp.media.attachment(o),s.fetch(),t.add(s?[s]:[])):t.reset()},_singlePhotoSelected:function(){var t=FLBuilder._singlePhotoSelector.state().get("selection").first().toJSON(),l=e(this).closest(".fl-photo-field"),i=l.find("input[type=hidden]"),o=l.find(".fl-photo-preview img"),s=l.find("select");i.val(t.id),o.attr("src",FLBuilder._getPhotoSrc(t)),l.removeClass("fl-photo-empty"),l.find("label.error").remove(),s.show(),s.html(FLBuilder._getPhotoSizeOptions(t)),s.trigger("change")},_singlePhotoRemoved:function(){FLBuilder._initSinglePhotoSelector();var t=FLBuilder._singlePhotoSelector.state(),l="undefined"!=typeof t?t.get("selection"):null,i=e(this).closest(".fl-photo-field"),o=i.find("input[type=hidden]"),s=i.find("select");l&&l.reset(),i.addClass("fl-photo-empty"),o.val(""),s.html('<option value="" selected></option>'),s.trigger("change")},_getPhotoSrc:function(e){return"undefined"==typeof e.sizes?e.url:"undefined"!=typeof e.sizes.thumbnail?e.sizes.thumbnail.url:e.sizes.full.url},_getPhotoSizeOptions:function(e){var t="",l=null,i=null,o="",s={full:FLBuilderStrings.fullSize,large:FLBuilderStrings.large,medium:FLBuilderStrings.medium,thumbnail:FLBuilderStrings.thumbnail};if("undefined"==typeof e.sizes)t+='<option value="'+e.url+'">'+FLBuilderStrings.fullSize+"</option>";else for(l in e.sizes)o="undefined"!=typeof s[l]?s[l]+" - ":"undefined"!=typeof FLBuilderConfig.customImageSizeTitles[l]?FLBuilderConfig.customImageSizeTitles[l]+" - ":"",i="full"==l?' selected="selected"':"",t+='<option value="'+e.sizes[l].url+'"'+i+">"+o+e.sizes[l].width+" x "+e.sizes[l].height+"</option>";return t},_selectMultiplePhotos:function(){var t=e(this).closest(".fl-multiple-photos-field"),l=t.find("input[type=hidden]"),i=l.val(),o=""===i?"":JSON.parse(i),s=wp.media.gallery.defaults.id,r='[gallery ids="-1"]',n=null,a=null,d=null,u=null,c=[];if("object"==typeof o){for(u in o)c.push(o[u]);r='[gallery ids="'+c.join()+'"]'}n=wp.shortcode.next("gallery",r).shortcode,_.isUndefined(n.get("id"))&&!_.isUndefined(s)&&n.set("id",s),a=wp.media.gallery.attachments(n),d=new wp.media.model.Selection(a.models,{props:a.props.toJSON(),multiple:!0}),d.gallery=a.gallery,d.more().done(function(){d.length||FLBuilder._multiplePhotoSelector.setState("gallery-library"),d.props.set({query:!1}),d.unmirror(),d.props.unset("orderby")}),FLBuilder._multiplePhotoSelector&&FLBuilder._multiplePhotoSelector.dispose(),FLBuilder._multiplePhotoSelector=wp.media({frame:"post",state:e(this).hasClass("fl-multiple-photos-edit")?"gallery-edit":"gallery-library",title:wp.media.view.l10n.editGalleryTitle,editing:!0,multiple:!0,selection:d}).open(),e(FLBuilder._multiplePhotoSelector.views.view.el).addClass("fl-multiple-photos-lightbox"),FLBuilder._multiplePhotoSelector.once("update",e.proxy(FLBuilder._multiplePhotosSelected,this))},_multiplePhotosSelected:function(t){for(var l=e(this).closest(".fl-multiple-photos-field"),i=l.find("input[type=hidden]"),o=l.find(".fl-multiple-photos-count"),s=[],r=0;r<t.models.length;r++)s.push(t.models[r].id);1==s.length?o.html("1 "+FLBuilderStrings.photoSelected):o.html(s.length+" "+FLBuilderStrings.photosSelected),l.removeClass("fl-multiple-photos-empty"),l.find("label.error").remove(),i.val(JSON.stringify(s)).trigger("change")},_selectSingleVideo:function(){null===FLBuilder._singleVideoSelector&&(FLBuilder._singleVideoSelector=wp.media({title:FLBuilderStrings.selectVideo,button:{text:FLBuilderStrings.selectVideo},library:{type:"video"},multiple:!1}),FLBuilder._singleVideoSelector.on("open",FLBuilder._wpmedia_reset_errors),_wpPluploadSettings.defaults.multipart_params.fl_upload_type="video"),FLBuilder._singleVideoSelector.once("select",e.proxy(FLBuilder._singleVideoSelected,this)),FLBuilder._singleVideoSelector.open()},_singleVideoSelected:function(){var t=FLBuilder._singleVideoSelector.state().get("selection").first().toJSON(),l=e(this).closest(".fl-video-field"),i=l.find(".fl-video-preview-img img"),o=l.find(".fl-video-preview-filename"),s=l.find("input[type=hidden]");i.attr("src",t.icon),o.html(t.filename),l.removeClass("fl-video-empty"),l.find("label.error").remove(),s.val(t.id).trigger("change")},_selectMultipleAudios:function(){var t=e(this).closest(".fl-multiple-audios-field"),l=t.find("input[type=hidden]"),i=l.val(),o=""==i?'[playlist ids="-1"]':'[playlist ids="'+JSON.parse(i).join()+'"]',s=wp.shortcode.next("playlist",o).shortcode,r=wp.media.playlist.defaults.id,n=null,a=null;_.isUndefined(s.get("id"))&&!_.isUndefined(r)&&s.set("id",r),n=wp.media.playlist.attachments(s),a=new wp.media.model.Selection(n.models,{props:n.props.toJSON(),multiple:!0}),a.playlist=n.playlist,a.more().done(function(){a.props.set({query:!1}),a.unmirror(),a.props.unset("orderby")}),FLBuilder._multipleAudiosSelector&&FLBuilder._multipleAudiosSelector.dispose(),FLBuilder._multipleAudiosSelector=wp.media({frame:"post",state:e(this).hasClass("fl-multiple-audios-edit")?"playlist-edit":"playlist-library",title:wp.media.view.l10n.editPlaylistTitle,editing:!0,multiple:!0,selection:a}).open(),FLBuilder._multipleAudiosSelector.content.get("view").sidebar.unset("playlist"),FLBuilder._multipleAudiosSelector.on("content:render:browse",function(e){e&&e.sidebar.on("ready",function(){e.sidebar.unset("playlist")})}),FLBuilder._multipleAudiosSelector.once("update",e.proxy(FLBuilder._multipleAudiosSelected,this))},_multipleAudiosSelected:function(t){for(var l=e(this).closest(".fl-multiple-audios-field"),i=l.find(".fl-multiple-audios-count"),o=l.find("input[type=hidden]"),s=[],r=0;r<t.models.length;r++)s.push(t.models[r].id);1==s.length?i.html("1 "+FLBuilderStrings.audioSelected):i.html(s.length+" "+FLBuilderStrings.audiosSelected),o.val(JSON.stringify(s)).trigger("change"),l.removeClass("fl-multiple-audios-empty"),l.find("label.error").remove()},_selectIcon:function(){var e=this;FLIconSelector.open(function(t){FLBuilder._iconSelected.apply(e,[t])})},_iconSelected:function(t){var l=e(this).closest(".fl-icon-field"),i=l.find("input[type=hidden]"),o=l.find("i"),s=o.attr("data-icon");i.val(t).trigger("change"),o.removeClass(s),o.addClass(t),o.attr("data-icon",t),l.removeClass("fl-icon-empty"),l.find("label.error").remove()},_removeIcon:function(){var t=e(this).closest(".fl-icon-field"),l=t.find("input[type=hidden]"),i=t.find("i");l.val("").trigger("change"),i.removeClass(),i.attr("data-icon",""),t.addClass("fl-icon-empty")},_formFieldClicked:function(){var t=e(this),l=t.closest(".fl-builder-settings"),i=t.attr("data-type"),o=t.siblings("input").val(),s=FLBuilder._moduleHelpers[i],r=FLBuilder._openNestedSettings({className:"fl-builder-lightbox fl-form-field-settings"});t.attr("id","fl-"+r._node.attr("data-instance-id")),FLBuilder.ajax({action:"render_settings_form",node_id:l.attr("data-node"),node_settings:FLBuilder._getSettings(l),type:i,settings:o.replace(/'/g,"'")},function(e){var t=JSON.parse(e);r._node.find(".fl-lightbox-content").html(t.html),r._node.find("form.fl-builder-settings").attr("data-type",i),FLBuilder._initSettingsForms(),"undefined"!=typeof s&&(FLBuilder._initSettingsValidation(s.rules),s.init())})},_saveFormFieldClicked:function(){var t=e(this).closest(".fl-builder-settings"),l=e(this).closest(".fl-lightbox-wrap").attr("data-instance-id"),i=t.attr("data-type"),o=FLBuilder._getSettings(t),s={},r=FLBuilder._moduleHelpers[i],n=e(".fl-builder-settings #fl-"+l),a=n.parent().attr("data-preview-text"),d=o[a],u=e('select[name="'+a+'"]'),c=document.createElement("div"),f=!0;return u.length>0&&(d=u.find('option[value="'+o[a]+'"]').text()),"undefined"!=typeof r&&(t.find("label.error").remove(),t.validate().hideErrors(),f=t.validate().form(),f&&(f=r.submit())),f?("undefined"!=typeof a&&"undefined"!=typeof d&&(d.indexOf("fa fa-")>-1?d='<i class="'+d+'"></i>':d.length>35&&(c.innerHTML=d,d=(c.textContent||c.innerText||"").replace(/^(.{35}[^\s]*).*/,"$1")+"..."),n.siblings(".fl-form-field-preview-text").html(d)),s=n.siblings("input").val().replace(/'/g,"'"),""!=s&&(o=e.extend(JSON.parse(s),o)),n.siblings("input").val(JSON.stringify(o)).trigger("change"),FLBuilder._closeNestedSettings(),!0):(FLBuilder._toggleSettingsTabErrors(),!1)},_layoutFieldClicked:function(){var t=e(this);t.siblings().removeClass("fl-layout-field-option-selected"),t.addClass("fl-layout-field-option-selected"),t.siblings("input").val(t.attr("data-value"))},_initLinkFields:function(){e(".fl-builder-settings:visible .fl-link-field").each(FLBuilder._initLinkField)},_initLinkField:function(){var t=e(this),l=t.find(".fl-link-field-search-input");l.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:"fl_as_links",_wpnonce:FLBuilderConfig.ajaxNonce}),{asHtmlID:l.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:3,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,queryParam:"fl_as_query",selectionLimit:1,afterSelectionAdd:FLBuilder._updateLinkField})},_updateLinkField:function(e,t,l){var i=e.closest(".fl-link-field"),o=i.find(".fl-link-field-search"),s=i.find(".fl-link-field-search-input"),r=i.find(".fl-link-field-input");r.val(t.value).trigger("keyup"),s.autoSuggest("remove",t.value),o.hide()},_linkFieldSelectClicked:function(){e(this).parent().find(".fl-link-field-search").show()},_linkFieldSelectCancelClicked:function(){e(this).parent().hide()},_initFontFields:function(){e(".fl-builder-settings:visible .fl-font-field").each(FLBuilder._initFontField)},_initFontField:function(){var t=e(this),l=t.find(".fl-font-field-font");l.on("change",function(){FLBuilder._getFontWeights(l)})},_getFontWeights:function(t){var l=t.next(".fl-font-field-weight"),i=t.val(),o={"default":"Default",regular:"Regular",100:"Thin 100",200:"Extra-Light 200",300:"Light 300",400:"Normal 400",500:"Medium 500",600:"Semi-Bold 600",700:"Bold 700",800:"Extra-Bold 800",900:"Ultra-Bold 900"},s={};l.html(""),s="undefined"!=typeof FLBuilderFontFamilies.system[i]?FLBuilderFontFamilies.system[i].weights:"undefined"!=typeof FLBuilderFontFamilies.google[i]?FLBuilderFontFamilies.google[i]:FLBuilderFontFamilies["default"][i],e.each(s,function(e,t){l.append('<option value="'+t+'">'+o[t]+"</option>")})},initEditorField:function(e){var t=tinyMCEPreInit.mceInit.flhiddeneditor;t.elements=e,tinyMCEPreInit.mceInit[e]=t},_destroyEditorFields:function(){var t;if("undefined"!=typeof tinymce){for(t=tinymce.editors.length-1;t>-1;t--)tinyMCE.execCommand("mceRemoveEditor",!0,tinymce.editors[t].id);e(".wplink-autocomplete").remove(),e(".ui-helper-hidden-accessible").remove()}},_updateEditorFields:function(){var t=e(".fl-builder-settings:visible textarea.wp-editor-area");t.each(FLBuilder._updateEditorField)},_updateEditorField:function(){var t=e(this),l=t.closest(".fl-editor-field"),i=(t.closest(".fl-builder-settings"),t.closest(".wp-editor-wrap")),o=t.attr("id"),s=l.attr("id"),r="undefined"!=typeof tinyMCE&&tinyMCE.get(o),n=t.siblings('textarea[name="'+s+'"]'),a=l.data("wpautop");0===n.length&&(n=e('<textarea name="'+s+'"></textarea>').hide(),t.after(n)),a?r&&i.hasClass("tmce-active")?n.val(r.getContent()):"undefined"!=typeof switchEditors?n.val(switchEditors.wpautop(t.val())):n.val(t.val()):(r&&i.hasClass("tmce-active")&&r.save(),n.val(t.val()))},_loopDataSourceChange:function(){var t=e(this).val();e(".fl-loop-data-source").hide(),e('.fl-loop-data-source[data-source="'+t+'"]').show()},_customQueryPostTypeChange:function(){var t=e(this).val();e(".fl-custom-query-filter").hide(),
|
4 |
+
e(".fl-custom-query-"+t+"-filter").show()},_initOrderingFields:function(){e(".fl-builder-settings:visible .fl-ordering-field-options").each(FLBuilder._initOrderingField)},_initOrderingField:function(){e(this).sortable({items:".fl-ordering-field-option",containment:"parent",tolerance:"pointer",stop:FLBuilder._updateOrderingField})},_updateOrderingField:function(t){var l=e(t.target),i=l.siblings("input[type=hidden]"),o=[];l.find(".fl-ordering-field-option").each(function(){o.push(e(this).attr("data-key"))}),i.val(JSON.stringify(o)).trigger("change")},_textFieldAddValueSelectChange:function(){var t=e(this),l=e('input[name="'+t.data("target")+'"]'),i=l.val(),o=t.val(),s="";-1==i.indexOf(o)&&(s=(i.trim()+" "+o.trim()).trim(),l.val(s).trigger("change").trigger("keyup")),t.val("")},ajax:function(t,l){var i;for(i in t)"undefined"==typeof t[i]&&(t[i]=null);return t._wpnonce=FLBuilderConfig.ajaxNonce,t.post_id=FLBuilderConfig.postId,t.fl_builder=1,t.fl_action=t.action,"undefined"!=typeof t.settings&&(t.settings=FLBuilder._ajaxModSecFix(t.settings)),"undefined"!=typeof t.node_settings&&(t.node_settings=FLBuilder._ajaxModSecFix(t.node_settings)),t={fl_builder_data:t},e.post(FLBuilder._ajaxUrl(),t,function(e){FLBuilder._ajaxComplete(),"undefined"!=typeof l&&l.call(this,e)})},_ajaxComplete:function(){FLBuilder.hideAjaxLoader()},_ajaxUrl:function(e){var t=window.location.href.split("#").shift(),l=null;if("undefined"!=typeof e)for(l in e)t+=t.indexOf("?")>-1?"&":"?",t+=l+"="+e[l];return t},showAjaxLoader:function(){0===e(".fl-builder-lightbox-loading").length&&e(".fl-builder-loading").show()},hideAjaxLoader:function(){e(".fl-builder-loading").hide()},_showNodeLoading:function(t){var l=e('[data-node="'+t+'"]');l.addClass("fl-builder-node-loading")},_showNodeLoadingPlaceholder:function(t,l){var i=e('<div class="fl-builder-node-loading-placeholder"></div>');t.hasClass("fl-builder-content")?siblings=t.find(".fl-row"):t.hasClass("fl-row-content")?siblings=t.find(" > .fl-col-group"):t.hasClass("fl-col-group")?(t.addClass("fl-col-group-has-child-loading"),siblings=t.find(" > .fl-col")):siblings=t.find(" > .fl-col-group, > .fl-module"),0===siblings.length||siblings.length==l?t.append(i):siblings.eq(l).before(i)},_removeNodeLoadingPlaceholder:function(e){var t=e.prev(".fl-builder-node-loading-placeholder"),l=e.next(".fl-builder-node-loading-placeholder");t.length?t.remove():l.remove()},_ajaxModSecFix:function(e){var t;if(FLBuilderConfig.modSecFix&&"undefined"!=typeof btoa)if("string"==typeof e)e=FLBuilder._btoa(e);else for(t in e)"string"==typeof e[t]?e[t]=FLBuilder._btoa(e[t]):"object"==typeof e[t]&&(e[t]=FLBuilder._ajaxModSecFix(e[t]));return e},_btoa:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},_wpmedia_reset_errors:function(){e(".upload-error").remove(),e(".media-uploader-status").removeClass("errors").hide()},_showLightbox:function(e){e="undefined"==typeof e||e,FLBuilder._lightbox.open('<div class="fl-builder-lightbox-loading"></div>'),e?FLBuilder._lightbox.draggable({handle:".fl-lightbox-header"}):FLBuilder._lightbox.draggable(!1),FLBuilder._removeAllOverlays(),FLBuilder._initLightboxScrollbars()},_setLightboxContent:function(e){FLBuilder._lightbox.setContent(e)},_initLightboxScrollbars:function(){FLBuilder._initScrollbars(),FLBuilder._lightboxScrollbarTimeout=setTimeout(FLBuilder._initLightboxScrollbars,500)},_lightboxClosed:function(){FLBuilder.triggerHook("settings-lightbox-closed"),FLBuilder._lightbox.empty(),clearTimeout(FLBuilder._lightboxScrollbarTimeout)},_showActionsLightbox:function(e){var t=wp.template("fl-actions-lightbox");FLBuilder.triggerHook("actions-lightbox-settings",e),FLBuilder._actionsLightbox.open(t(e))},_resizeLightbox:function(){var t=e(this),l=t.hasClass("fa-expand")?"expand":"contract";FLBuilder._lightbox.renderResize(l),e(this).toggleClass("fa-expand").toggleClass("fa-compress")},alert:function(e){var t=new FLLightbox({className:"fl-builder-lightbox fl-builder-alert-lightbox",destroyOnClose:!0}),l=wp.template("fl-alert-lightbox");t.open(l({message:e}))},_alertClose:function(){FLLightbox.closeParent(this)},confirm:function(t){var l={message:"",ok:function(){},cancel:function(){},strings:{ok:FLBuilderStrings.ok,cancel:FLBuilderStrings.cancel}},i=e.extend({},l,"undefined"==typeof t?{}:t);lightbox=new FLLightbox({className:"fl-builder-lightbox fl-builder-confirm-lightbox fl-builder-alert-lightbox",destroyOnClose:!0}),template=wp.template("fl-confirm-lightbox"),lightbox.open(template(i)),lightbox._node.find(".fl-builder-confirm-ok").on("click",i.ok),lightbox._node.find(".fl-builder-confirm-cancel").on("click",i.cancel)},triggerHook:function(t,l){e("body").trigger("fl-builder."+t,l)},addHook:function(t,l){e("body").on("fl-builder."+t,l)},removeHook:function(t,l){e("body").off("fl-builder."+t,l)},log:function(e){"undefined"!=typeof window.console&&"undefined"!=typeof window.console.log&&console.log(e)},logError:function(e){var t=null;"undefined"!=typeof e&&("undefined"!=typeof e.stack?t=e.stack:"undefined"!=typeof e.message&&(t=e.message),t&&(FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(t),FLBuilder.log("************************************************************************")))},logGlobalError:function(e,t,l,i,o){FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(FLBuilderStrings.globalErrorMessage.replace("{message}",e).replace("{line}",l).replace("{file}",t)),"undefined"!=typeof o&&"undefined"!=typeof o.stack&&(FLBuilder.log(o.stack),FLBuilder.log("************************************************************************"))}},e(function(){FLBuilder._init()})}(jQuery),function(e){FLBuilderAJAXLayout=function(t,l){this._data=e.extend({},this._defaults,"string"==typeof t?JSON.parse(t):t),this._callback=l,this._post=FLBuilderConfig.postId,this._head=e("head").eq(0),this._body=e("body").eq(0),this._data.css&&(this._loader=e('<img src="'+this._data.css+'" />'),this._oldCss=e('link[href*="/cache/'+this._post+'"]'),this._newCss=e('<link rel="stylesheet" id="fl-builder-layout-'+this._post+'-css" href="'+this._data.css+'" />')),this._data.partial?(this._data.js&&(this._oldJs=e("#fl-builder-partial-refresh-js"),this._newJs=e('<script type="text/javascript" id="fl-builder-partial-refresh-js">'+this._data.js+"</script>")),this._data.nodeId&&(this._data.oldNodeId?(this._oldScriptsStyles=e('.fl-builder-node-scripts-styles[data-node="'+this._data.oldNodeId+'"]'),this._content=e(".fl-node-"+this._data.oldNodeId)):(this._oldScriptsStyles=e('.fl-builder-node-scripts-styles[data-node="'+this._data.nodeId+'"]'),this._content=e(".fl-node-"+this._data.nodeId).eq(0)))):(this._oldJs=e('script[src*="/cache/'+this._post+'"]'),this._newJs=e('<script src="'+this._data.js+'"></script>'),this._oldScriptsStyles=e(".fl-builder-layout-scripts-styles"),this._content=e(FLBuilder._contentClass)),this._init()},FLBuilderAJAXLayout.prototype={_defaults:{partial:!1,nodeId:null,nodeType:null,nodeParent:null,nodePosition:null,oldNodeId:null,html:null,scriptsStyles:null,css:null,js:null},_data:null,_callback:function(){},_post:null,_head:null,_body:null,_loader:null,_oldCss:null,_newCss:null,_oldJs:null,_newJs:null,_oldScriptsStyles:null,_content:null,_init:function(){this._body.height(this._body.height()),this._loader?(this._loader.on("error",e.proxy(this._loadNewCSSComplete,this)),this._body.append(this._loader)):this._finish()},_loadNewCSSComplete:function(){this._loader.remove(),this._oldCss.length>0?this._oldCss.after(this._newCss):this._head.append(this._newCss),setTimeout(e.proxy(this._finish,this),250)},_finish:function(){this._removeOldContentAndAssets(),this._cleanNewHTML(),this._cleanNewAssets(),this._addNewHTML(),this._addNewScriptsStyles(),this._addNewJS(),e(FLBuilder._contentClass).trigger("fl-builder.layout-rendered"),FLBuilder.hideAjaxLoader(),"undefined"!=typeof this._callback&&this._callback()},_removeOldContentAndAssets:function(){this._content&&this._content.empty(),this._oldCss&&this._oldCss.remove(),this._oldJs&&this._oldJs.remove(),this._oldScriptsStyles&&this._oldScriptsStyles.remove()},_cleanNewHTML:function(){if(this._data.scriptsStyles){var t=e("<div>"+this._data.html+"</div>"),l="fl-row",i=this._data.scriptsStyles,o="";this._data.partial&&(l="column-group"==this._data.nodeType?"fl-col-group":"column"==this._data.nodeType?"fl-col":"fl-"+this._data.nodeType),t.find("> *, script").each(function(){e(this).hasClass(l)||(o=e(this).remove(),i+=o[0].outerHTML)}),""!==i&&(i=this._data.partial?'<div class="fl-builder-node-scripts-styles" data-node="'+this._data.nodeId+'">'+i+"<div>":'<div class="fl-builder-node-scripts-styles">'+i+"<div>"),this._data.html=t.html(),this._data.scriptsStyles=i}},_addNewHTML:function(){var t;this._data.partial?this._data.nodeParent?(t=this._data.nodeParent.hasClass("fl-builder-content")?this._data.nodeParent.find(".fl-row"):this._data.nodeParent.hasClass("fl-row-content")?this._data.nodeParent.find(" > .fl-col-group"):this._data.nodeParent.find(" > .fl-col-group, > .fl-module"),t=t.filter(":not(.fl-builder-node-clone)"),0===t.length||t.length==this._data.nodePosition?this._data.nodeParent.append(this._data.html):t.eq(this._data.nodePosition).before(this._data.html),this._data.nodeId&&FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+this._data.nodeId))):(this._content.after(this._data.html),this._content.remove()):this._content.append(this._data.html)},_cleanNewAssets:function(){var t=this;this._data.html=this._removeDuplicateAssets(this._data.html),this._data.scriptsStyles&&""!==this._data.scriptsStyles&&(this._data.scriptsStyles=this._removeDuplicateAssets(this._data.scriptsStyles)),this._data.partial?e(".fl-builder-node-scripts-styles").each(function(){t._data.html.indexOf("fl-node-"+e(this).data("node"))>-1&&e(this).remove()}):(e("#fl-builder-partial-refresh-js").remove(),e(".fl-builder-node-scripts-styles").remove())},_removeDuplicateAssets:function(t){var l=e("<div>"+t+"</div>"),i="",o=null,s="",r=null,n=window.location,a=n.protocol+"//"+n.hostname+(n.port?":"+n.port:"");return l.find("script").each(function(){i=e(this).attr("src"),"undefined"!=typeof i&&(i=i.replace(a,""),o=e('script[src*="'+i+'"]'),o.length>0&&e(this).remove())}),l.find("link").each(function(){s=e(this).attr("href"),"undefined"!=typeof s&&(s=s.replace(a,""),r=e('link[href*="'+s+'"]'),r.length>0&&e(this).remove())}),l.html()},_addNewScriptsStyles:function(){this._data.scriptsStyles&&""!==this._data.scriptsStyles&&this._body.append(this._data.scriptsStyles)},_addNewJS:function(){setTimeout(e.proxy(function(){this._newJs&&this._head.append(this._newJs)},this),50)},_complete:function(){FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._resizeLayout(),FLBuilder._initMediaElements(),FLBuilderLayout.init(),FLBuilderResponsiveEditing.refreshPreview(),this._body.height("auto")}}}(jQuery),function(e){FLBuilderPreview=function(t){this.type=t.type,"undefined"!=t.state&&t.state?this.state=t.state:this._saveState(),"undefined"!=t.layout&&t.layout?FLBuilder._renderLayout(t.layout,e.proxy(this._init,this)):this._init()},FLBuilderPreview._fontsList={},FLBuilderPreview.prototype={type:"",nodeId:null,classes:{},elements:{},state:null,_savedSettings:null,_styleSheet:null,_styleSheetMedium:null,_styleSheetResponsive:null,_timeout:null,_loaderTimeout:null,_lastClassName:null,_xhr:null,_init:function(){switch(this.nodeId=e(".fl-builder-settings").data("node"),this._saveSettings(),this._initElementsAndClasses(),this._createSheets(),this._initResponsivePreviews(),this._initDefaultFieldPreviews(),this.type){case"row":this._initRow();break;case"col":this._initColumn();break;case"module":this._initModule()}},_saveSettings:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings");this._savedSettings=FLBuilder._getSettings(t)},_settingsHaveChanged:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=FLBuilder._getSettings(t);return JSON.stringify(this._savedSettings)!=JSON.stringify(l)},_initElementsAndClasses:function(){var t;t="row"==this.type?".fl-row-content-wrap":".fl-"+this.type+"-content",e.extend(this.classes,{settings:".fl-builder-"+this.type+"-settings",settingsHeader:".fl-builder-"+this.type+"-settings .fl-lightbox-header",node:FLBuilder._contentClass+" .fl-node-"+this.nodeId,content:FLBuilder._contentClass+" .fl-node-"+this.nodeId+" > "+t}),e.extend(this.elements,{settings:e(this.classes.settings),settingsHeader:e(this.classes.settingsHeader),node:e(this.classes.node),content:e(this.classes.content)})},_createSheets:function(){this._styleSheet||(this._styleSheet=new FLStyleSheet({id:"fl-builder-preview"})),this._styleSheetMedium||(this._styleSheetMedium=new FLStyleSheet({id:"fl-builder-preview-medium"})),this._styleSheetResponsive||(this._styleSheetResponsive=new FLStyleSheet({id:"fl-builder-preview-responsive"}))},_destroySheets:function(){this._styleSheet&&(this._styleSheet.destroy(),this._styleSheet=null),this._styleSheetMedium&&(this._styleSheetMedium.destroy(),this._styleSheetMedium=null),this._styleSheetResponsive&&(this._styleSheetResponsive.destroy(),this._styleSheetResponsive=null)},updateCSSRule:function(e,t,l){this._styleSheet.updateRule(e,t,l)},delay:function(e,t){this._cancelDelay(),this._timeout=setTimeout(t,e)},_cancelDelay:function(){null!==this._timeout&&clearTimeout(this._timeout)},hexToRgb:function(e){var t=parseInt(e,16),l=t>>16&255,i=t>>8&255,o=255&t;return[l,i,o]},parseFloat:function(e){return isNaN(parseFloat(e))?0:parseFloat(e)},_initResponsivePreviews:function(){FLBuilder.addHook("responsive-editing-switched",e.proxy(this._responsiveEditingSwitched,this))},_destroyResponsivePreviews:function(){FLBuilder.removeHook("responsive-editing-switched")},_responsiveEditingSwitched:function(e,t){"default"==t?(this._styleSheetMedium.disable(),this._styleSheetResponsive.disable()):"medium"==t?(this._styleSheetMedium.enable(),this._styleSheetResponsive.disable()):"responsive"==t&&(this._styleSheetMedium.disable(),this._styleSheetResponsive.enable())},updateResponsiveCSSRule:function(e,t,l){var i=FLBuilderResponsiveEditing._mode,o="default"==i?"":i.charAt(0).toUpperCase()+i.slice(1);this["_styleSheet"+o].updateRule(e,t,l)},_saveState:function(){var t=FLBuilderConfig.postId,l=e('link[href*="/cache/'+t+'"]').attr("href"),i=e('script[src*="/cache/'+t+'"]').attr("src"),o=e(FLBuilder._contentClass).html();this.state={css:l,js:i,html:o}},preview:function(){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.attr("data-node"),i=FLBuilder._getSettings(t);this._cancelPreview(),this._xhr=FLBuilder.ajax({action:"render_layout",node_id:l,node_preview:i},e.proxy(this._renderPreview,this))},delayPreview:function(t){var l="undefined"==typeof t?[]:e(t.target).closest("tr").find("th"),i=e(".fl-builder-widget-settings .fl-builder-settings-title"),o=e(".fl-builder-settings .fl-lightbox-header"),s=FLBuilderLayoutConfig.paths.pluginUrl+"img/ajax-loader-small.svg",r=e('<img class="fl-builder-preview-loader" src="'+s+'" />');this.delay(1e3,e.proxy(this.preview,this)),this._loaderTimeout=setTimeout(function(){e(".fl-builder-preview-loader").remove(),l.length>0?l.append(r):i.length>0?i.append(r):o.length>0&&o.append(r)},1500)},_cancelPreview:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)},_renderPreview:function(t){this._xhr=null,FLBuilder._renderLayout(t,e.proxy(this._renderPreviewComplete,this))},_renderPreviewComplete:function(){this._destroySheets(),this._createSheets(),this._initElementsAndClasses(),null!==this._loaderTimeout&&clearTimeout(this._loaderTimeout),e(".fl-builder-preview-loader").remove(),e(FLBuilder._contentClass).trigger("fl-builder.preview-rendered")},revert:function(){this.clear(),FLBuilder._renderLayout(this.state)},clear:function(){this._cancelDelay(),this._cancelPreview(),this._destroySheets(),this._destroyResponsivePreviews()},_initNodeTextColor:function(){e.extend(this.elements,{textColor:e(this.classes.settings+" input[name=text_color]"),linkColor:e(this.classes.settings+" input[name=link_color]"),hoverColor:e(this.classes.settings+" input[name=hover_color]"),headingColor:e(this.classes.settings+" input[name=heading_color]")}),this.elements.textColor.on("change",e.proxy(this._textColorChange,this)),this.elements.linkColor.on("change",e.proxy(this._textColorChange,this)),this.elements.hoverColor.on("change",e.proxy(this._textColorChange,this)),this.elements.headingColor.on("change",e.proxy(this._textColorChange,this))},_textColorChange:function(t){var l=this.elements.textColor.val(),i=this.elements.linkColor.val(),o=this.elements.hoverColor.val(),s=this.elements.headingColor.val();i=""===i?l:i,o=""===o?l:o,s=""===s?l:s,this.delay(100,e.proxy(function(){""===l?this.updateCSSRule(this.classes.node,"color","inherit"):this.updateCSSRule(this.classes.node,"color","#"+l),""===i?this.updateCSSRule(this.classes.node+" a","color","inherit"):this.updateCSSRule(this.classes.node+" a","color","#"+i),""===o?this.updateCSSRule(this.classes.node+" a:hover","color","inherit"):this.updateCSSRule(this.classes.node+" a:hover","color","#"+o),""===s?(this.updateCSSRule(this.classes.node+" h1","color","inherit"),this.updateCSSRule(this.classes.node+" h2","color","inherit"),this.updateCSSRule(this.classes.node+" h3","color","inherit"),this.updateCSSRule(this.classes.node+" h4","color","inherit"),this.updateCSSRule(this.classes.node+" h5","color","inherit"),this.updateCSSRule(this.classes.node+" h6","color","inherit"),this.updateCSSRule(this.classes.node+" h1 a","color","inherit"),this.updateCSSRule(this.classes.node+" h2 a","color","inherit"),this.updateCSSRule(this.classes.node+" h3 a","color","inherit"),this.updateCSSRule(this.classes.node+" h4 a","color","inherit"),this.updateCSSRule(this.classes.node+" h5 a","color","inherit"),this.updateCSSRule(this.classes.node+" h6 a","color","inherit")):(this.updateCSSRule(this.classes.node+" h1","color","#"+s),this.updateCSSRule(this.classes.node+" h2","color","#"+s),this.updateCSSRule(this.classes.node+" h3","color","#"+s),this.updateCSSRule(this.classes.node+" h4","color","#"+s),this.updateCSSRule(this.classes.node+" h5","color","#"+s),this.updateCSSRule(this.classes.node+" h6","color","#"+s),this.updateCSSRule(this.classes.node+" h1 a","color","#"+s),this.updateCSSRule(this.classes.node+" h2 a","color","#"+s),this.updateCSSRule(this.classes.node+" h3 a","color","#"+s),this.updateCSSRule(this.classes.node+" h4 a","color","#"+s),this.updateCSSRule(this.classes.node+" h5 a","color","#"+s),this.updateCSSRule(this.classes.node+" h6 a","color","#"+s))},this))},_initNodeBg:function(){e.extend(this.elements,{bgType:e(this.classes.settings+" select[name=bg_type]"),bgColor:e(this.classes.settings+" input[name=bg_color]"),bgColorPicker:e(this.classes.settings+" .fl-picker-bg_color"),bgOpacity:e(this.classes.settings+" input[name=bg_opacity]"),bgImageSrc:e(this.classes.settings+" select[name=bg_image_src]"),bgRepeat:e(this.classes.settings+" select[name=bg_repeat]"),bgPosition:e(this.classes.settings+" select[name=bg_position]"),bgAttachment:e(this.classes.settings+" select[name=bg_attachment]"),bgSize:e(this.classes.settings+" select[name=bg_size]"),bgVideoSource:e(this.classes.settings+" select[name=bg_video_source]"),bgVideo:e(this.classes.settings+" input[name=bg_video]"),bgVideoServiceUrl:e(this.classes.settings+" input[name=bg_video_service_url]"),bgVideoFallbackSrc:e(this.classes.settings+" select[name=bg_video_fallback_src]"),bgSlideshowSource:e(this.classes.settings+" select[name=ss_source]"),bgSlideshowPhotos:e(this.classes.settings+" input[name=ss_photos]"),bgSlideshowFeedUrl:e(this.classes.settings+" input[name=ss_feed_url]"),bgSlideshowSpeed:e(this.classes.settings+" input[name=ss_speed]"),bgSlideshowTrans:e(this.classes.settings+" select[name=ss_transition]"),bgSlideshowTransSpeed:e(this.classes.settings+" input[name=ss_transitionDuration]"),bgParallaxImageSrc:e(this.classes.settings+" select[name=bg_parallax_image_src]"),bgOverlayColor:e(this.classes.settings+" input[name=bg_overlay_color]"),bgOverlayOpacity:e(this.classes.settings+" input[name=bg_overlay_opacity]")}),this.elements.bgType.on("change",e.proxy(this._bgTypeChange,this)),this.elements.bgColor.on("change",e.proxy(this._bgColorChange,this)),this.elements.bgOpacity.on("keyup",e.proxy(this._bgOpacityChange,this)),this.elements.bgImageSrc.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgRepeat.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgPosition.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgAttachment.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgSize.on("change",e.proxy(this._bgPhotoChange,this)),this.elements.bgVideoServiceUrl.on("change",e.proxy(this._bgVideoChange,this)),this.elements.bgSlideshowSource.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowPhotos.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowFeedUrl.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowSpeed.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTrans.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTransSpeed.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgParallaxImageSrc.on("change",e.proxy(this._bgParallaxChange,this)),this.elements.bgOverlayColor.on("change",e.proxy(this._bgOverlayChange,this)),this.elements.bgOverlayOpacity.on("keyup",e.proxy(this._bgOverlayChange,this))},_bgTypeChange:function(e){var t=this.elements.bgType.val();this.elements.node.removeClass("fl-row-bg-video"),this.elements.node.removeClass("fl-row-bg-slideshow"),this.elements.node.removeClass("fl-row-bg-parallax"),this.elements.node.find(".fl-bg-video").remove(),this.elements.node.find(".fl-bg-slideshow").remove(),this.elements.content.css("background-image",""),this.updateCSSRule(this.classes.content,{"background-color":"transparent","background-image":"none"}),"none"==t?this._bgOverlayClear():"color"==t?(this.elements.bgColor.trigger("change"),this._bgOverlayClear()):"photo"==t?(this.elements.bgColor.trigger("change"),this.elements.bgImageSrc.trigger("change")):"video"==t?(this.elements.bgColor.trigger("change"),this._bgVideoChange()):"slideshow"==t?(this.elements.bgColor.trigger("change"),this._bgSlideshowChange()):"parallax"==t&&(this.elements.bgColor.trigger("change"),this.elements.bgParallaxImageSrc.trigger("change"))},_bgColorChange:function(t){var l,i,o;""===this.elements.bgColor.val()||isNaN(this.elements.bgOpacity.val())?this.updateCSSRule(this.classes.content,"background-color","transparent"):(l=this.hexToRgb(this.elements.bgColor.val()),i=this.parseFloat(this.elements.bgOpacity.val())/100,o="rgba("+l.join()+", "+i+")",this.delay(100,e.proxy(function(){this.updateCSSRule(this.classes.content,"background-color",o)},this)))},_bgOpacityChange:function(e){this.elements.bgColor.trigger("change")},_bgPhotoChange:function(e){this.elements.bgImageSrc.val()?this.updateCSSRule(this.classes.content,{"background-image":"url("+this.elements.bgImageSrc.val()+")","background-repeat":this.elements.bgRepeat.val(),"background-position":this.elements.bgPosition.val(),"background-attachment":this.elements.bgAttachment.val(),"background-size":this.elements.bgSize.val()}):this.updateCSSRule(this.classes.content,{"background-image":"none"})},_bgVideoChange:function(t){var l=this.elements,i=l.bgVideoSource.val(),o=l.bgVideo.val(),s=l.bgVideoServiceUrl.val(),r="https://www.youtube.com/iframe_api",n="https://player.vimeo.com/api/player.js",a=e("<script>");"video_service"==i&&""!=s?(/^(?:(?:(?:https?:)?\/\/)?(?:www.)?(?:youtu(?:be.com|.be))\/(?:watch\?v\=|v\/|embed\/)?([\w\-]+))/i.test(s)&&e('script[src*="youtube.com"').length<1?a.attr("src",r):/^(http\:\/\/|https\:\/\/)?(www\.)?(vimeo\.com\/)([0-9]+)$/.test(s)&&e('script[src*="vimeo.com"').length<1&&a.attr("src",n),a.attr("type","text/javascript").appendTo("head"),this.delay(500,e.proxy(this.preview,this))):""!=o&&this.preview()},_bgSlideshowChange:function(t){var l=this.elements,i=l.bgSlideshowSource.val(),o=l.bgSlideshowPhotos.val(),s=l.bgSlideshowFeedUrl.val(),r=l.bgSlideshowSpeed.val(),n=l.bgSlideshowTransSpeed.val();"wordpress"==i&&""===o||"smugmug"==i&&""===s||isNaN(parseInt(r))||isNaN(parseInt(n))||this.delay(500,e.proxy(this.preview,this))},_bgParallaxChange:function(e){this.elements.bgParallaxImageSrc.val()&&this.updateCSSRule(this.classes.content,{"background-image":"url("+this.elements.bgParallaxImageSrc.val()+")","background-repeat":"no-repeat","background-position":"center center","background-attachment":"fixed","background-size":"cover"})},_bgOverlayChange:function(t){var l,i,o;""===this.elements.bgOverlayColor.val()||isNaN(this.elements.bgOverlayOpacity.val())?(this.elements.node.removeClass("fl-row-bg-overlay"),this.elements.node.removeClass("fl-col-bg-overlay"),this.updateCSSRule(this.classes.content+":after","background-color","transparent")):(l=this.hexToRgb(this.elements.bgOverlayColor.val()),i=this.parseFloat(this.elements.bgOverlayOpacity.val())/100,o="rgba("+l.join()+", "+i+")",this.delay(100,e.proxy(function(){this.elements.node.hasClass("fl-col")?this.elements.node.addClass("fl-col-bg-overlay"):this.elements.node.addClass("fl-row-bg-overlay"),this.updateCSSRule(this.classes.content+":after","background-color",o)},this)))},_bgOverlayClear:function(e){this.elements.bgOverlayColor.prev(".fl-color-picker-clear").trigger("click")},_initNodeBorder:function(){e.extend(this.elements,{borderType:e(this.classes.settings+" select[name=border_type]"),borderColor:e(this.classes.settings+" input[name=border_color]"),borderColorPicker:e(this.classes.settings+" .fl-picker-border_color"),borderOpacity:e(this.classes.settings+" input[name=border_opacity]")}),this.elements.borderType.on("change",e.proxy(this._borderTypeChange,this)),this.elements.borderColor.on("change",e.proxy(this._borderColorChange,this)),this.elements.borderOpacity.on("keyup",e.proxy(this._borderOpacityChange,this))},_borderTypeChange:function(e){var t=this.elements.borderType.val();this.updateCSSRule(this.classes.content,{"border-style":""===t?"none":t}),this.elements.borderColor.trigger("change"),this.elements.borderTop.trigger("keyup")},_borderColorChange:function(t){var l,i,o;""===this.elements.borderColor.val()||isNaN(this.elements.borderOpacity.val())?this.updateCSSRule(this.classes.content,"border-color","transparent"):(l=this.hexToRgb(this.elements.borderColor.val()),i=parseInt(this.elements.borderOpacity.val())/100,o="rgba("+l.join()+", "+i+")",this.delay(100,e.proxy(function(){this.updateCSSRule(this.classes.content,"border-color",o)},this)))},_borderOpacityChange:function(e){this.elements.borderColor.trigger("change")},_initNodeClassName:function(){e.extend(this.elements,{className:e(this.classes.settings+" input[name=class]")}),this.elements.className.on("keyup",e.proxy(this._classNameChange,this)),this._lastClassName=this.elements.className.val()},_classNameChange:function(e){var t=this.elements.className.val();null!==this._lastClassName&&this.elements.node.removeClass(this._lastClassName),this.elements.node.addClass(t),this._lastClassName=t},_initResponsiveDimensions:function(t){var l={},i=["Top","Bottom","Left","Right"],o=["","Medium","Responsive"],s=this.classes.settings,r="",n="",a=null,d=null;for(a=0;a<i.length;a++)for(d=0;d<o.length;d++)r=t+i[a]+o[d],n=t+"_"+i[a].toLowerCase(),""!=o[d]&&(n+="_"+o[d].toLowerCase()),l[r]=e(s+" input[name="+n+"]"),l[r].on("keyup",e.proxy(this._responsiveDimensionChange,this,t));e.extend(this.elements,l)},_getDimensions:function(e){for(var t=FLBuilderResponsiveEditing._mode,l=["Top","Bottom","Left","Right"],i="default"==t?"":t.charAt(0).toUpperCase()+t.slice(1),o={},s=0;s<l.length;s++)o[l[s].toLowerCase()]=this.elements[e+l[s]+i].val();return this._normalizeDimensionValues(o,e)},_responsiveDimensionChange:function(t){var l=this._getDimensions(t),i={},o="border"==t;e.each(l,function(e,l){i[t+"-"+e+(o?"-width":"")]=l}),this.updateResponsiveCSSRule(this.classes.content,i),this._positionAbsoluteBgs()},_normalizeDimensionValues:function(t,l){var i=this,o=FLBuilderResponsiveEditing._mode,s="default"==o?"":o.charAt(0).toUpperCase()+o.slice(1),l=l.split("-");return"undefined"==typeof l[1]?l[1]="":l[1]=l[1].charAt(0).toUpperCase()+l[1].slice(1),e.map(t,function(e,o){if(e=e.toLowerCase().replace(/[^a-z0-9%.\-]/g,""),""===e){var r=l[0]+o.charAt(0).toUpperCase()+o.slice(1)+l[1]+s,n=i.elements[r].attr("placeholder");n&&(e=n)}null===e||""===e||isNaN(e)||(e=parseFloat(e)+"px"),t[o]=e}),t},_positionAbsoluteBgs:function(){var t=this.elements.node.find(".fl-bg-slideshow"),l=this.elements.node.find(".fl-bg-video"),i=null,o=null,s={top:0,bottom:0,left:0,right:0};(t.length>0||l.length>0)&&(i=this._getDimensions("margin"),o=this._getDimensions("border"),e.map(s,function(e,t){i[t]&&o[t]?s[t]="calc("+i[t]+"+"+o[t]+")":i[t]?s[t]=i[t]:o[t]&&(s[t]=o[t])}),t.length>0&&(this.updateCSSRule(this.classes.node+" .fl-bg-slideshow",s),FLBuilder._resizeLayout()),l.length>0&&this.updateCSSRule(this.classes.node+" .fl-bg-video",s))},_initRow:function(){e.extend(this.elements,{width:e(this.classes.settings+" select[name=width]"),contentWidth:e(this.classes.settings+" select[name=content_width]"),height:e(this.classes.settings+" select[name=full_height]"),align:e(this.classes.settings+" select[name=content_alignment]")}),this.elements.width.on("change",e.proxy(this._rowWidthChange,this)),this.elements.contentWidth.on("change",e.proxy(this._rowContentWidthChange,this)),this.elements.height.on("change",e.proxy(this._rowHeightChange,this)),this.elements.align.on("change",e.proxy(this._rowHeightChange,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeBorder(),this._initResponsiveDimensions("border"),this._initResponsiveDimensions("margin"),this._initResponsiveDimensions("padding")},_rowWidthChange:function(e){var t=this.elements.node;"full"==this.elements.width.val()?(t.removeClass("fl-row-fixed-width"),t.addClass("fl-row-full-width")):(t.removeClass("fl-row-full-width"),t.addClass("fl-row-fixed-width"))},_rowHeightChange:function(e){var t=this.elements.node;t.removeClass("fl-row-align-top"),t.removeClass("fl-row-align-center"),t.removeClass("fl-row-align-bottom"),"full"==this.elements.height.val()?(t.addClass("fl-row-full-height"),t.addClass("fl-row-align-"+this.elements.align.val())):t.removeClass("fl-row-full-height")},_rowContentWidthChange:function(e){var t=this.elements.content.find(".fl-row-content");"full"==this.elements.contentWidth.val()?(t.removeClass("fl-row-fixed-width"),t.addClass("fl-row-full-width")):(t.removeClass("fl-row-full-width"),t.addClass("fl-row-fixed-width"))},_initColumn:function(){e.extend(this.elements,{size:e(this.classes.settings+" input[name=size]"),columnHeight:e(this.classes.settings+" select[name=equal_height]"),columnAlign:e(this.classes.settings+" select[name=content_alignment]"),responsiveOrder:e(this.classes.settings+" select[name=responsive_order]")}),this.elements.size.on("keyup",e.proxy(this._colSizeChange,this)),this.elements.columnHeight.on("change",e.proxy(this._colHeightChange,this)),this.elements.columnAlign.on("change",e.proxy(this._colHeightChange,this)),this.elements.responsiveOrder.on("change",e.proxy(this._colResponsiveOrder,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeBorder(),this._initResponsiveDimensions("border"),this._initResponsiveDimensions("margin"),this._initResponsiveDimensions("padding")},_colSizeChange:function(){var t=8,l=100-t,i=parseFloat(this.elements.size.val()),o=this.elements.node.prev(".fl-col"),s=this.elements.node.next(".fl-col"),r=0===s.length?o:s,n=this.elements.node.siblings(".fl-col"),a=0;
|
5 |
+
0===n.length||isNaN(i)||(n.each(function(){e(this).data("node")!=r.data("node")&&(l-=parseFloat(e(this)[0].style.width),a+=parseFloat(e(this)[0].style.width))}),i<t&&(i=t),i>l&&(i=l),r.css("width",100-a-i+"%"),this.elements.node.css("width",i+"%"))},_colHeightChange:function(){var e=this.elements.node.parent(".fl-col-group");e.removeClass("fl-col-group-align-top"),e.removeClass("fl-col-group-align-center"),e.removeClass("fl-col-group-align-bottom"),"yes"==this.elements.columnHeight.val()?(e.addClass("fl-col-group-equal-height"),e.addClass("fl-col-group-align-"+this.elements.columnAlign.val())):e.removeClass("fl-col-group-equal-height")},_colResponsiveOrder:function(){var e=this.elements.node.parent(".fl-col-group");"reversed"==this.elements.responsiveOrder.val()?e.addClass("fl-col-group-responsive-reversed"):e.removeClass("fl-col-group-responsive-reversed")},_initModule:function(){this._initNodeClassName(),this._initResponsiveDimensions("margin")},_initDefaultFieldPreviews:function(){for(var e=this.elements.settings.find(".fl-field"),t=null,l=null,i=0;i<e.length;i++)t=e.eq(i),l=t.data("preview"),"refresh"==l.type&&this._initFieldRefreshPreview(t),"text"==l.type&&this._initFieldTextPreview(t),"css"==l.type&&this._initFieldCSSPreview(t),"widget"==l.type&&this._initFieldWidgetPreview(t),"font"==l.type&&this._initFieldFontPreview(t)},_initFieldRefreshPreview:function(t){var l=t.data("type"),i=t.data("preview"),o=e.proxy(this.delayPreview,this);switch(l){case"text":t.find("input[type=text]").on("keyup",o);break;case"textarea":t.find("textarea").on("keyup",o);break;case"select":t.find("select").on("change",o);break;case"color":t.find(".fl-color-picker-value").on("change",o);break;case"photo":t.find("select").on("change",o);break;case"multiple-photos":t.find("input").on("change",o);break;case"photo-sizes":t.find("select").on("change",o);break;case"video":t.find("input").on("change",o);break;case"multiple-audios":t.find("input").on("change",o);break;case"icon":t.find("input").on("change",o);break;case"form":t.delegate("input","change",o);break;case"editor":this._addTextEditorCallback(t,i);break;case"code":t.find("textarea").on("change",o);break;case"post-type":t.find("select").on("change",o);break;case"suggest":t.find(".as-values").on("change",o),t.find("select").on("change",o);break;case"unit":t.find("input[type=number]").on("keyup",o);break;case"ordering":t.find("input[type=hidden]").on("change",o)}},_initFieldTextPreview:function(t){var l=t.data("type"),i=t.data("preview"),o=e.proxy(this._previewText,this,i);switch(l){case"text":t.find("input[type=text]").on("keyup",o);break;case"unit":t.find("input[type=number]").on("keyup",o);break;case"textarea":t.find("textarea").on("keyup",o);break;case"code":t.find("textarea").on("change",o);break;case"editor":this._addTextEditorCallback(t,i)}},_previewText:function(t,l){var i=this.elements.node.find(t.selector),o=e("<div>"+e(l.target).val()+"</div>");i.length>0&&(o.find("script").remove(),i.html(o.html()))},_previewTextEditor:function(t,l,i){var o=this.elements.node.find(t.selector),s="undefined"!=typeof tinyMCE?tinyMCE.get(l):null,r=e("#"+l),n="";o.length>0&&(n=e(s&&"none"==r.css("display")?"<div>"+s.getContent()+"</div>":"undefined"==typeof switchEditors||"undefined"==typeof switchEditors.wpautop?"<div>"+r.val()+"</div>":"<div>"+switchEditors.wpautop(r.val())+"</div>"),n.find("script").remove(),o.html(n.html()))},_addTextEditorCallback:function(t,l){var i=t.find("textarea.wp-editor-area").attr("id"),o=null;if("refresh"==l.type)o=e.proxy(this.delayPreview,this);else{if("text"!=l.type)return;o=e.proxy(this._previewTextEditor,this,l,i)}e("#"+i).on("keyup",o),"undefined"!=typeof tinyMCE&&(editor=tinyMCE.get(i),editor.on("change",o),editor.on("keyup",o))},_initFieldFontPreview:function(t){var l=t.data("type"),i=t.data("preview");i.id=t.attr("id");var o=e.proxy(this._previewFont,this,i);"font"==l&&t.find(".fl-font-field").on("change","select",o)},_previewFont:function(t,l){var i=e(l.delegateTarget),o=i.find(".fl-font-field-font"),s=e(o).find(":selected"),r=s.parent().attr("label"),n=i.find(".fl-font-field-weight"),a=t.id+"-"+this.nodeId,d=this._getPreviewSelector(this.classes.node,t.selector);"Google"==r&&this._buildFontStylesheet(a,o.val(),n.val()),"Default"==o.val()?(this.updateCSSRule(d,"font-family",""),this.updateCSSRule(d,"font-weight","")):(this.updateCSSRule(d,"font-family",o.val()),this.updateCSSRule(d,"font-weight",n.val()))},_buildFontStylesheet:function(t,l,i){var o=FLBuilderConfig.googleFontsUrl,s="",r={},n={};r[l]=[i],FLBuilderPreview._fontsList[t]=r,Object.keys(FLBuilderPreview._fontsList).forEach(function(e){var t=FLBuilderPreview._fontsList[e];Object.keys(t).forEach(function(e){var l=t[e];n[e]=n[e]||[],l=l.filter(function(t){return n[e].indexOf(t)<0}),n[e]=n[e].concat(l)})}),e.each(n,function(e,t){s+=e+":"+t.join()+"|"}),s=o+s.slice(0,-1).replace(" ","+"),e("#fl-builder-google-fonts-preview").length<1?e("<link>").attr("id","fl-builder-google-fonts-preview").attr("type","text/css").attr("rel","stylesheet").attr("href",s).appendTo("head"):e("#fl-builder-google-fonts-preview").attr("href",s)},_initFieldCSSPreview:function(e){var t=e.data("preview"),l=null;if("undefined"!=typeof t.rules)for(l in t.rules)this._initFieldCSSPreviewCallback(e,t.rules[l]);else this._initFieldCSSPreviewCallback(e,t)},_initFieldCSSPreviewCallback:function(t,l){switch(t.data("type")){case"text":t.find("input[type=text]").on("keyup",e.proxy(this._previewCSS,this,l));break;case"unit":t.find("input[type=number]").on("keyup",e.proxy(this._previewCSS,this,l));break;case"select":t.find("select").on("change",e.proxy(this._previewCSS,this,l));break;case"color":t.find(".fl-color-picker-value").on("change",e.proxy(this._previewColor,this,l))}},_previewCSS:function(t,l){var i=this._getPreviewSelector(this.classes.node,t.selector),o=t.property,s="undefined"==typeof t.unit?"":t.unit,r=e(l.target),n=r.val();"%"==s?n=parseInt(n)/100:""!==n&&(n+=s),r.closest(".fl-field-responsive-setting").length?this.updateResponsiveCSSRule(i,o,n):this.updateCSSRule(i,o,n)},_previewColor:function(t,l){var i=this._getPreviewSelector(this.classes.node,t.selector),o=e(l.target),s=o.val(),r=""===s?"inherit":"#"+s;/^rgb/.test(s.replace(/\s+/g,""))&&(r=s),o.closest(".fl-field-responsive-setting").length?this.updateResponsiveCSSRule(i,t.property,r):this.updateCSSRule(i,t.property,r)},_initFieldWidgetPreview:function(t){var l=e.proxy(this.delayPreview,this);t.find("input").on("keyup",l),t.find("input[type=checkbox]").on("click",l),t.find("textarea").on("keyup",l),t.find("select").on("change",l)},_getPreviewSelector:function(e,t){for(var l="",i=t.split(","),o=0;o<i.length;o++)l+=e+" "+i[o],o!=i.length-1&&(l+=", ");return l}}}(jQuery),function(e){var t={ignored:[],reparsed:[],width:null,callback:null,sheets:{},styles:[],queue:[],emPxValue:null,regex:{media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+[^\}]+\}/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)\}$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},ignore:function(e){Array.prototype.push.apply(this.ignored,e)},reparse:function(e){Array.prototype.push.apply(this.reparsed,e)},update:function(e,t){this.width=void 0===e?null:e,this.callback=void 0===t?null:t,l.update(),this.queueSheets()?this.runQueue():this.applyStyles()},queueSheets:function(){for(var t=e("head"),l=t.find("link"),i=null,o=null,s=null,r=null,n=!1,a=0,d=0;a<l.length;a++)if(i=l[a],o=i.href,s=i.media,r=i.rel&&"stylesheet"===i.rel.toLowerCase(),n=!1,o&&r){for(d=0;d<this.ignored.length;d++)if(o.indexOf(this.ignored[d])>-1){n=!0;break}if(n)continue;for(d=0;d<this.reparsed.length;d++)if(o.indexOf(this.reparsed[d])>-1){this.sheets[o]=null;break}void 0!==this.sheets[o]&&this.sheets[o]||this.queue.push({link:l.eq(a),href:o,media:s})}return this.queue.length},runQueue:function(){var t;this.queue.length?(t=this.queue.shift(),e.get(t.href,e.proxy(function(e){this.parse(e,t),this.runQueue()},this))):this.applyStyles()},parse:function(e,t){var l=this.regex,i=e.replace(l.comments,"").replace(l.keyframes,"").match(l.media),o=i&&i.length||0,s=!o&&t.media,r=null,n=null,a=null,d="",u=0,c=0;for(i?d=e.replace(l.media,""):s&&"all"!=t.media?o=1:d=e,this.sheets[t.href]={link:t.link,href:t.href,link:t.link,all:d,queries:[]},u=0;u<o;u++)for(s?(r=t.media,e=this.convertURLs(e,t.href)):(r=i[u].match(l.findStyles)&&RegExp.$1,e=RegExp.$2&&this.convertURLs(RegExp.$2,t.href)),n=r.split(","),c=0;c<n.length;c++)r=n[c],a=r.split("(")[0].match(l.only)&&RegExp.$2,"print"!=a&&(r.replace(l.minmaxwh,"").match(l.other)||this.sheets[t.href].queries.push({minw:r.match(l.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(l.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),styles:e}))},applyStyles:function(){var t=e("head"),l=null,i=null,o=null,s=null,r=null,n=null,a=null,d=null,u=!1;this.clearStyles();for(s in this.sheets)if(l="",i=e("<style></style>"),o=this.sheets[s],o.queries.length&&this.width){for(l+=o.all,n=0;n<o.queries.length;n++)r=o.queries[n],a=r.minw,d=r.maxw,u=!1,a&&(a=parseFloat(a)*(a.indexOf("em")>-1?this.getEmPxValue():1),this.width>=a&&(l+=r.styles,u=!0)),d&&!u&&(d=parseFloat(d)*(d.indexOf("em")>-1?this.getEmPxValue():1),this.width<=d&&(l+=r.styles));this.styles.push(i),t.append(i),i.html(l),o.link.remove()}},clearStyles:function(){var t=e("head"),l=null,i=this.styles.slice(0);this.styles=[];for(l in this.sheets)this.sheets[l].link.parent().length||t.append(this.sheets[l].link);setTimeout(function(){for(var e=0;e<i.length;e++)i[e].empty(),i[e].remove()},50)},convertURLs:function(e,t){return t=t.substring(0,t.lastIndexOf("/")),t.length&&(t+="/"),e.replace(this.regex.urls,"$1"+t+"$2$3")},getEmPxValue:function(){if(this.emPxValue)return this.emPxValue;var e=null,t=window.document,l=t.documentElement,i=t.body,o=t.createElement("div"),s=l.style.fontSize,r=i&&i.style.fontSize,n=!1;return o.style.cssText="position:absolute;font-size:1em;width:1em",i||(i=n=t.createElement("body"),i.style.background="none"),l.style.fontSize="100%",i.style.fontSize="100%",i.appendChild(o),n&&l.insertBefore(i,l.firstChild),e=parseFloat(o.offsetWidth),n?l.removeChild(i):i.removeChild(o),l.style.fontSize=s,r?i.style.fontSize=r:i.style.fontSize="",this.emPxValue=e,e}},l={_functions:null,update:function(){var e;if(!this._functions){this._functions={};for(e in i)this._functions[e]=jQuery.fn[e]}if(t.width)for(e in i)jQuery.fn[e]=i[e];else for(e in this._functions)jQuery.fn[e]=this._functions[e]}},i={width:function(i){return void 0!=i?l._functions.width.call(this,i):e.isWindow(this[0])?t.width:l._functions.width.call(this)}};FLBuilderSimulateMediaQuery={ignore:function(e){t.ignore(e)},reparse:function(e){t.reparse(e)},update:function(e,l){t.update(e,l)}}}(jQuery),function(e){FLBuilderResponsiveEditing={_mode:"default",refreshPreview:function(){var t;e(".fl-responsive-preview").length&&"default"!=this._mode&&("responsive"==this._mode?(t=FLBuilderConfig.global.responsive_breakpoint>=320?320:FLBuilderConfig.global.responsive_breakpoint,FLBuilderSimulateMediaQuery.update(t)):"medium"==this._mode&&(t=FLBuilderConfig.global.medium_breakpoint>=769?769:FLBuilderConfig.global.medium_breakpoint,FLBuilderSimulateMediaQuery.update(t)),FLBuilder._resizeLayout())},_init:function(){this._bind(),this._initMediaQueries()},_bind:function(){FLBuilder.addHook("responsive-editing-switched",this._previewSpacingFields),FLBuilder.addHook("settings-form-init",this._initSettingsForms),FLBuilder.addHook("settings-lightbox-closed",this._clearPreview),e("body").delegate(".fl-field-responsive-toggle","click",this._settingToggleClicked)},_initMediaQueries:function(){FLBuilderSimulateMediaQuery.ignore([FLBuilderConfig.pluginUrl,"fl-theme-builder","/wp-includes/","/wp-admin/"]),FLBuilderSimulateMediaQuery.reparse([FLBuilderConfig.postId+"-layout-draft.css?",FLBuilderConfig.postId+"-layout-draft-partial.css?",FLBuilderConfig.postId+"-layout-preview.css?",FLBuilderConfig.postId+"-layout-preview-partial.css?"])},_switchTo:function(t,l){var i=e("body"),o=e(FLBuilder._contentClass),s=e(".fl-responsive-preview"),r=e(".fl-responsive-preview-mask"),n=e(".fl-content-placeholder"),a=null;if(FLBuilderResponsiveEditing._mode=t,"default"==t){if(0===n.length)return;n.after(o),n.remove(),s.remove(),r.remove()}else 0===s.length?(o.after('<div class="fl-content-placeholder"></div>'),i.prepend(wp.template("fl-responsive-preview")()),e(".fl-responsive-preview").addClass("fl-preview-"+t),e(".fl-responsive-preview-content").append(o)):(s.removeClass("fl-preview-responsive fl-preview-medium"),s.addClass("fl-preview-"+t));"responsive"==t?(a=FLBuilderConfig.global.responsive_breakpoint>=320?320:FLBuilderConfig.global.responsive_breakpoint,o.width(a),FLBuilderSimulateMediaQuery.update(a,l)):"medium"==t?(a=FLBuilderConfig.global.medium_breakpoint>=769?769:FLBuilderConfig.global.medium_breakpoint,o.width(a),FLBuilderSimulateMediaQuery.update(a,l)):(o.width(""),FLBuilderSimulateMediaQuery.update(null,l)),this._setContentBackgroundColor(),FLBuilder._resizeLayout(),FLBuilder.triggerHook("responsive-editing-switched",t)},_setContentBackgroundColor:function(){var t=e(FLBuilder._contentClass),l=e(".fl-responsive-preview"),i=e(".fl-content-placeholder"),o=i.parents(),s="#fff",r=0;if(0===l.length)t.css("background-color","");else{for(;r<o.length&&(s=o.eq(r).css("background-color"),"rgba(0, 0, 0, 0)"==s);r++);t.css("background-color",s)}},_switchToAndScroll:function(t){var l=e(".fl-builder-settings").data("node"),i=void 0===l?void 0:e(".fl-node-"+l);FLBuilderResponsiveEditing._switchTo(t,function(){void 0!==i&&i&&setTimeout(function(){var t=e(window),l=e(".fl-responsive-preview-content");!l.length||t.height()<l.height()?e("html, body").animate({scrollTop:i.offset().top-100},250):scrollTo(0,0)},250)})},_clearPreview:function(){FLBuilderResponsiveEditing._switchToAndScroll("default")},_settingToggleClicked:function(){var t=e(this),l=t.data("mode");l="default"==l?"medium":"medium"==l?"responsive":"default",FLBuilderResponsiveEditing._switchAllSettingsTo(l),t.siblings(".fl-field-responsive-setting:visible").find("input").focus()},_switchAllSettingsTo:function(t){var l="dashicons-desktop dashicons-tablet dashicons-smartphone";e(".fl-field-responsive-toggle").removeClass(l),e(".fl-field-responsive-setting").hide(),l="default"==t?"dashicons-desktop":"medium"==t?"dashicons-tablet":"dashicons-smartphone",e(".fl-field-responsive-toggle").addClass(l).data("mode",t),e(".fl-field-responsive-setting-"+t).css("display","inline-block"),FLBuilderResponsiveEditing._switchToAndScroll(t)},_initSettingsForms:function(){var e=FLBuilderResponsiveEditing;Number(FLBuilderConfig.global.responsive_enabled)&&(e._initFields("unit","input","keyup",e._spacingFieldKeyup,["margin_top","margin_bottom","margin_left","margin_right","padding_top","padding_bottom","padding_left","padding_right"]),e._initFields("unit","input","keyup",e._textFieldKeyup)),e._switchAllSettingsTo(e._mode)},_initFields:function(t,l,i,o,s){for(var r=e(".fl-builder-settings"),n=r.find(".fl-field").has(".fl-field-responsive-setting"),a=null,d=null,u=0;u<n.length;u++)a=n.eq(u),d=a.attr("id").replace("fl-field-",""),"object"==typeof s&&e.inArray(d,s)<0||t==a.attr("data-type")&&void 0===a.attr("data-responsive-init")&&(a.find(".fl-field-responsive-setting-default "+l).on(i,o),a.find(".fl-field-responsive-setting-medium "+l).on(i,o),a.find(".fl-field-responsive-setting-responsive "+l).on(i,o),a.find(".fl-field-responsive-setting-default "+l).trigger(i),a.attr("data-responsive-init",1))},_getFields:function(t,l){var i=e(t).closest(".fl-field");return{"default":i.find(".fl-field-responsive-setting-default "+l),medium:i.find(".fl-field-responsive-setting-medium "+l),responsive:i.find(".fl-field-responsive-setting-responsive "+l)}},_textFieldKeyup:function(){var e=FLBuilderResponsiveEditing._getFields(this,"input"),t=e["default"].attr("placeholder"),l=e["default"].val(),i=e.medium.val();""==l?e.medium.attr("placeholder",void 0===t?"":t):e.medium.attr("placeholder",l),""==i?e.responsive.attr("placeholder",e.medium.attr("placeholder")):e.responsive.attr("placeholder",i)},_spacingFieldKeyup:function(){var t=e(".fl-builder-settings"),l="row",i=e(this).closest(".fl-field").attr("id").replace("fl-field-","").split("_"),o=i[0],s=i[1],r=FLBuilderResponsiveEditing._getFields(this,"input"),n=FLBuilderConfig.global,a=null,d=r["default"].val(),u=null,c=r.medium.val(),f=null,h=(r.responsive.val(),null),p=null,g=null;t.hasClass("fl-builder-row-settings")?l="row":t.hasClass("fl-builder-col-settings")?l="col":t.hasClass("fl-builder-module-settings")&&(l="module"),e.extend(n,{col_margins:0,col_margins_medium:"",col_margins_responsive:"",col_padding:0,col_padding_medium:"",col_padding_responsive:""}),a=l+"_"+o+("margin"==o?"s":""),u=n[a],f=n[a+"_medium"],h=n[a+"_responsive"],""==f&&(""!=d?r.medium.attr("placeholder",d):""!=u&&r.medium.attr("placeholder",u)),""==h&&("module"==l&&Number(n.auto_spacing)?(p=""==f?Number(u):f,g=""==c?Number(d):c,""!=g&&(g>p||g<0)?r.responsive.attr("placeholder",p):""!=g?r.responsive.attr("placeholder",g):r.responsive.attr("placeholder",p)):(!Number(n.auto_spacing)||"padding"==o&&"top|bottom".indexOf(s)>-1)&&(""!=c?r.responsive.attr("placeholder",c):""!=f?r.responsive.attr("placeholder",f):""!=d?r.responsive.attr("placeholder",d):""!=u&&r.responsive.attr("placeholder",u)))},_previewSpacingFields:function(){var t=FLBuilderResponsiveEditing._mode,l=e(".fl-builder-settings");0!==l.length&&void 0!==l.attr("data-node")&&l.find(".fl-field").has(".fl-field-responsive-setting").each(function(){var e=FLBuilderResponsiveEditing._getFields(this,"input"),l=e.responsive.closest(".fl-field").data("preview");"refresh"!=l.type&&e[t].trigger("keyup")})}},e(function(){FLBuilderResponsiveEditing._init()})}(jQuery),function(e){var t={init:function(){var t=e("body");t.delegate(".fl-builder-service-select","change",this._serviceChange),t.delegate(".fl-builder-service-connect-button","click",this._connectClicked),t.delegate(".fl-builder-service-account-select","change",this._accountChange),t.delegate(".fl-builder-service-account-delete","click",this._accountDeleteClicked),t.delegate(".fl-builder-campaign-monitor-client-select","change",this._campaignMonitorClientChange),t.delegate(".fl-builder-mailchimp-list-select","change",this._mailChimpListChange),t.delegate(".fl-builder-activecampaign-list_type-select","change",this._activeCampaignChange)},_startSettingsLoading:function(t){var l=e(".fl-builder-settings"),i=t.closest(".fl-builder-service-settings"),o=e(".fl-builder-service-error");l.append('<div class="fl-builder-loading"></div>'),i.addClass("fl-builder-service-settings-loading"),o.remove()},_finishSettingsLoading:function(){var t=e(".fl-builder-settings"),l=e(".fl-builder-service-settings-loading");t.find(".fl-builder-loading").remove(),l.removeClass("fl-builder-service-settings-loading")},_serviceChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this),o=i.closest("tr"),s=i.val();o.siblings("tr.fl-builder-service-account-row").remove(),o.siblings("tr.fl-builder-service-connect-row").remove(),o.siblings("tr.fl-builder-service-field-row").remove(),e(".fl-builder-service-error").remove(),""!==s&&(t._startSettingsLoading(i),FLBuilder.ajax({action:"render_service_settings",node_id:l,service:s},t._serviceChangeComplete))},_serviceChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-select-row");s.after(i.html),t._addAccountDelete(o),t._finishSettingsLoading()},_connectClicked:function(){for(var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-connect-row"),r=i.find(".fl-builder-service-connect-input"),n=null,a=null,d=0,u={action:"connect_service",node_id:l,service:o.val(),fields:{}};d<r.length;d++)n=r.eq(d),a=n.attr("name"),u.fields[a]=n.val();s.hide(),t._startSettingsLoading(o),FLBuilder.ajax(u,t._connectComplete)},_connectComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-select-row"),r=o.find(".fl-builder-service-select"),n=o.find(".fl-builder-service-account-row"),a=o.find(".fl-builder-service-account-select"),d=o.find(".fl-builder-service-connect-row");i.error?(d.show(),0===a.length?r.after('<div class="fl-builder-service-error">'+i.error+"</div>"):a.after('<div class="fl-builder-service-error">'+i.error+"</div>")):(d.remove(),n.remove(),s.after(i.html)),t._addAccountDelete(o),t._finishSettingsLoading()},_accountChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-account-select"),r=i.find(".fl-builder-service-connect-row"),n=i.find("tr.fl-builder-service-field-row"),a=e(".fl-builder-service-error"),d=s.val(),u=null;r.remove(),n.remove(),a.remove(),"add_new_account"==d?u={action:"render_service_settings",node_id:l,service:o.val(),add_new:!0}:""!==d&&(u={action:"render_service_fields",node_id:l,service:o.val(),account:d}),u&&(t._startSettingsLoading(o),FLBuilder.ajax(u,t._accountChangeComplete)),t._addAccountDelete(i)},_accountChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-account-row");s.after(i.html),t._finishSettingsLoading()},_addAccountDelete:function(e){var t=e.find(".fl-builder-service-account-select");t.length>0&&(e.find(".fl-builder-service-account-delete").remove(),""!==t.val()&&"add_new_account"!=t.val()&&t.after('<a href="javascript:void(0);" class="fl-builder-service-account-delete">'+FLBuilderStrings.deleteAccount+"</a>"))},_accountDeleteClicked:function(){var l=e(this).closest(".fl-builder-service-settings"),i=l.find(".fl-builder-service-select"),o=l.find(".fl-builder-service-account-select");confirm(FLBuilderStrings.deleteAccountWarning)&&(FLBuilder.ajax({action:"delete_service_account",service:i.val(),account:o.val()},t._accountDeleteComplete),t._startSettingsLoading(o))},_accountDeleteComplete:function(){var l=e(".fl-builder-service-settings-loading"),i=l.find(".fl-builder-service-select");t._finishSettingsLoading(),i.trigger("change")},_campaignMonitorClientChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-account-select"),r=e(this),n=i.find(".fl-builder-service-list-select"),a=r.val();0!==n.length&&n.closest("tr").remove(),""!==a&&(t._startSettingsLoading(o),FLBuilder.ajax({action:"render_service_fields",node_id:l,service:o.val(),account:s.val(),client:a},t._campaignMonitorClientChangeComplete))},_campaignMonitorClientChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-campaign-monitor-client-select");s.closest("tr").after(i.html),t._finishSettingsLoading()},_mailChimpListChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-account-select"),r=i.find(".fl-builder-service-list-select");e(".fl-builder-mailchimp-group-select").closest("tr").remove(),""!==r.val()&&(t._startSettingsLoading(o),FLBuilder.ajax({action:"render_service_fields",node_id:l,service:o.val(),account:s.val(),list_id:r.val()},t._mailChimpListChangeComplete))},_mailChimpListChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-list-select");s.closest("tr").after(i.html),t._finishSettingsLoading()},_activeCampaignChange:function(){var l=e(".fl-builder-settings").data("node"),i=e(this).closest(".fl-builder-service-settings"),o=i.find(".fl-builder-service-select"),s=i.find(".fl-builder-service-account-select"),r=i.find(".fl-builder-service-list-select");list_type=i.find('select[name="list_type"]'),0!==r.length&&r.closest("tr").remove(),""!==list_type.val()&&(t._startSettingsLoading(o),FLBuilder.ajax({action:"render_service_fields",node_id:l,service:o.val(),account:s.val(),list_type:list_type.val()},t._activeCampaignTypeChangeComplete))},_activeCampaignTypeChangeComplete:function(l){var i=JSON.parse(l),o=e(".fl-builder-service-settings-loading"),s=o.find(".fl-builder-service-field-row");s.after(i.html),t._finishSettingsLoading()}};e(function(){t.init()})}(jQuery),function(e){FLBuilderTour={_tour:null,start:function(){FLBuilderTour._tour?FLBuilderTour._tour.restart():(FLBuilderTour._tour=new Tour(FLBuilderTour._config()),FLBuilderTour._tour.init()),FLBuilderTour._tour.start()},_config:function(){var t={storage:!1,onStart:FLBuilderTour._onStart,onPrev:FLBuilderTour._onPrev,onNext:FLBuilderTour._onNext,onEnd:FLBuilderTour._onEnd,template:'<div class="popover" role="tooltip"> <i class="fa fa-times" data-role="end"></i> <div class="arrow"></div> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation clearfix"> <button class="fl-builder-button fl-builder-button-primary fl-builder-tour-next" data-role="next">'+FLBuilderStrings.tourNext+"</button> </div> </div>",steps:[{animation:!1,element:".fl-builder-bar",placement:"bottom",title:FLBuilderStrings.tourTemplatesTitle,content:FLBuilderStrings.tourTemplates,onShown:function(){0===e(".fl-template-selector").length?(e(".popover[class*=tour-]").css("visibility","hidden"),FLBuilder._showTemplateSelector()):FLBuilderTour._templateSelectorLoaded()}},{animation:!1,element:"#fl-builder-blocks-rows .fl-builder-blocks-section-title",placement:"left",title:FLBuilderStrings.tourAddRowsTitle,content:FLBuilderStrings.tourAddRows,onShow:function(){FLBuilderTour._dimSection("body"),FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._showPanel(),e(".fl-template-selector .fl-builder-settings-cancel").trigger("click"),e("#fl-builder-blocks-rows .fl-builder-blocks-section-title").trigger("click")}},{animation:!1,element:"#fl-builder-blocks-basic .fl-builder-blocks-section-title",placement:"left",title:FLBuilderStrings.tourAddContentTitle,content:FLBuilderStrings.tourAddContent,onShow:function(){FLBuilderTour._dimSection("body"),FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._showPanel(),e("#fl-builder-blocks-basic .fl-builder-blocks-section-title").trigger("click"),e(".fl-row").eq(0).trigger("mouseleave"),e(".fl-module").eq(0).trigger("mouseleave")}},{animation:!1,element:".fl-row:first-of-type",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),e(".fl-row").eq(0).trigger("mouseenter"),e(".fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-row:first-of-type .fl-module-overlay .fl-block-overlay-actions",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent2,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),e(".fl-row").eq(0).trigger("mouseenter"),e(".fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-builder-add-content-button",placement:"bottom",title:FLBuilderStrings.tourAddContentButtonTitle,content:FLBuilderStrings.tourAddContentButton,onShow:function(){FLBuilderTour._dimSection("body"),e(".fl-row").eq(0).trigger("mouseleave"),e(".fl-module").eq(0).trigger("mouseleave")}},{animation:!1,element:".fl-builder-templates-button",placement:"bottom",title:FLBuilderStrings.tourTemplatesButtonTitle,content:FLBuilderStrings.tourTemplatesButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,element:".fl-builder-tools-button",placement:"bottom",title:FLBuilderStrings.tourToolsButtonTitle,content:FLBuilderStrings.tourToolsButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,element:".fl-builder-done-button",placement:"bottom",title:FLBuilderStrings.tourDoneButtonTitle,content:FLBuilderStrings.tourDoneButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,orphan:!0,backdrop:!0,title:FLBuilderStrings.tourFinishedTitle,content:FLBuilderStrings.tourFinished,template:'<div class="popover" role="tooltip"> <div class="arrow"></div> <i class="fa fa-times" data-role="end"></i> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation clearfix"> <button class="fl-builder-button fl-builder-button-primary fl-builder-tour-next" data-role="end">'+FLBuilderStrings.tourEnd+"</button> </div> </div>"}]};return FLBuilderConfig.lite?t.steps.shift():"disabled"==FLBuilderConfig.enabledTemplates?t.steps.shift():"fl-builder-template"==FLBuilderConfig.postType&&t.steps.shift(),t},_onStart:function(){var t=e("body");t.append('<div class="fl-builder-tour-mask"></div>'),t.on("fl-builder.template-selector-loaded",FLBuilderTour._templateSelectorLoaded),0===e(".fl-row").length&&"module"!=FLBuilderConfig.userTemplateType&&(e(".fl-builder-content").append('<div class="fl-builder-tour-demo-content fl-row fl-row-fixed-width fl-row-bg-none"> <div class="fl-row-content-wrap"> <div class="fl-row-content fl-row-fixed-width fl-node-content"> <div class="fl-col-group"> <div class="fl-col" style="width:100%"> <div class="fl-col-content fl-node-content"> <div class="fl-module fl-module-rich-text" data-type="rich-text" data-name="Text Editor"> <div class="fl-module-content fl-node-content"> <div class="fl-rich-text"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus pellentesque ut lorem non cursus. Sed mauris nunc, porttitor iaculis lorem a, sollicitudin lacinia sapien. Proin euismod orci lacus, et sollicitudin leo posuere ac. In hac habitasse platea dictumst. Maecenas elit magna, consequat in turpis suscipit, ultrices rhoncus arcu. Phasellus finibus sapien nec elit tempus venenatis. Maecenas tincidunt sapien non libero maximus, in aliquam felis tincidunt. Mauris mollis ultricies facilisis. Duis condimentum dignissim tortor sit amet facilisis. Aenean gravida lacus eu risus molestie egestas. Donec ut dolor dictum, fringilla metus malesuada, viverra nunc. Maecenas ut purus ac justo aliquet lacinia. Cras vestibulum elementum tincidunt. Maecenas mattis tortor neque, consectetur dignissim neque tempor nec.</p></div> </div> </div> </div> </div> </div> </div> </div> </div>'),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols())},_onPrev:function(){e(".fl-builder-tour-dimmed").remove()},_onNext:function(){e(".fl-builder-tour-dimmed").remove()},_onEnd:function(){e("body").off("fl-builder.template-selector-loaded"),e(".fl-builder-tour-mask").remove(),e(".fl-builder-tour-dimmed").remove(),e(".fl-builder-tour-demo-content").remove(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._showPanel(),FLBuilder._initTemplateSelector()},_dimSection:function(t){e(t).find(".fl-builder-tour-dimmed").remove(),e(t).append('<div class="fl-builder-tour-dimmed"></div>')},_templateSelectorLoaded:function(){var t=e(".fl-builder-settings-lightbox .fl-lightbox-header"),l=t.height(),i=t.offset().top+75;e(".popover[class*=tour-]").css({top:i+l+"px",visibility:"visible"})}}}(jQuery);var FLBuilderColorPicker;!function(e,t){function l(){var t,l,i="backgroundImage";f?h="filter":(t=e('<div id="iris-gradtest" />'),l="linear-gradient(top,#fff,#000)",e.each(p,function(e,o){if(t.css(i,o+l),t.css(i).match("gradient"))return h=e,!1}),h===!1&&(t.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),t.css(this.bgImageString).match("gradient")&&(h="webkit")),t.remove())}function i(t,l){return t="top"===t?"top":"left",
|
6 |
+
l=e.isArray(l)?l:Array.prototype.slice.call(arguments,1),"webkit"===h?s(t,l):p[h]+"linear-gradient("+t+", "+l.join(", ")+")"}function o(t,l){var i,o,s,n,a,d,u,c,f;t="top"===t?"top":"left",l=e.isArray(l)?l:Array.prototype.slice.call(arguments,1),i="top"===t?0:1,o=e(this),s=l.length-1,n="filter",a=1===i?"left":"top",d=1===i?"right":"bottom",u=1===i?"height":"width",c='<div class="iris-ie-gradient-shim" style="position:absolute;'+u+":100%;"+a+":%start%;"+d+":%end%;"+n+':%filter%;" data-color:"%color%"></div>',f="","static"===o.css("position")&&o.css({position:"relative"}),l=r(l),e.each(l,function(e,t){var o,r,n;return e!==s&&(o=l[e+1],void(t.stop!==o.stop&&(r=100-parseFloat(o.stop)+"%",t.octoHex=new Color(t.color).toIEOctoHex(),o.octoHex=new Color(o.color).toIEOctoHex(),n="progid:DXImageTransform.Microsoft.Gradient(GradientType="+i+", StartColorStr='"+t.octoHex+"', EndColorStr='"+o.octoHex+"')",f+=c.replace("%start%",t.stop).replace("%end%",r).replace("%filter%",n))))}),o.find(".iris-ie-gradient-shim").remove(),e(f).prependTo(o)}function s(t,l){var i=[];return t="top"===t?"0% 0%,0% 100%,":"0% 100%,100% 100%,",l=r(l),e.each(l,function(e,t){i.push("color-stop("+parseFloat(t.stop)/100+", "+t.color+")")}),"-webkit-gradient(linear,"+t+i.join(",")+")"}function r(t){var l=[],i=[],o=[],s=t.length-1;return e.each(t,function(e,t){var o=t,s=!1,r=t.match(/1?[0-9]{1,2}%$/);r&&(o=t.replace(/\s?1?[0-9]{1,2}%$/,""),s=r.shift()),l.push(o),i.push(s)}),i[0]===!1&&(i[0]="0%"),i[s]===!1&&(i[s]="100%"),i=n(i),e.each(i,function(e){o[e]={color:l[e],stop:i[e]}}),o}function n(t){var l,i,o,s,r=0,a=t.length-1,d=0,u=!1;if(t.length<=2||e.inArray(!1,t)<0)return t;for(;d<t.length-1;)u||t[d]!==!1?u&&t[d]!==!1&&(a=d,d=t.length):(r=d-1,u=!0),d++;for(i=a-r,s=parseInt(t[r].replace("%"),10),l=(parseFloat(t[a].replace("%"))-s)/i,d=r+1,o=1;d<a;)t[d]=s+o*l+"%",o++,d++;return n(t)}var a=[],d=navigator.userAgent.toLowerCase(),u="Microsoft Internet Explorer"===navigator.appName,c=u?parseFloat(d.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,f=u&&c<10,h=!1,p=["-moz-","-webkit-","-o-","-ms-"];flBuilderParseColorValue=function(e){var t=e.replace(/\s+/g,""),l=t.indexOf("rgba")!==-1?parseFloat(100*t.replace(/^.*,(.+)\)/,"$1")):100,i=l<100;return{value:t,alpha:l,rgba:i}},e.fn.flBuilderColorPickerGradient=function(){var t=arguments;return this.each(function(){f?o.apply(this,t):e(this).css("backgroundImage",i.apply(this,t))})},e.fn.flBuilderColorPickerRaninbowGradient=function(t,l){var i,o,s,r;for(t=t||"top",i=e.extend({},{s:100,l:50},l),o="hsl(%h%,"+i.s+"%,"+i.l+"%)",s=0,r=[];s<=360;)r.push(o.replace("%h%",s)),s+=30;return this.each(function(){e(this).flBuilderColorPickerGradient(t,r)})},FLBuilderColorPicker=function(t){this._html='<div class="fl-color-picker-ui"><div class="iris-picker"><div class="iris-picker-inner"><div class="iris-square"><a class="iris-square-value" href="#"><span class="iris-square-handle ui-slider-handle"></span></a><div class="iris-square-inner iris-square-horiz"></div><div class="iris-square-inner iris-square-vert"></div></div><div class="iris-slider iris-strip"><div class="iris-slider-offset"></div></div></div></div></div>';var l={elements:null,color:"",mode:"hsl",controls:{horiz:"s",vert:"l",strip:"h"},target:!1,width:200,presets:[],labels:{colorPresets:"Color Presets",colorPicker:"Color Picker",placeholder:"Paste color here...",removePresetConfirm:"Are you sure?",noneColorSelected:"None color selected.",alreadySaved:"%s is already a saved preset.",noPresets:"Add a color preset first.",presetAdded:"%s added to presets!"}};this.options=e.extend({},l,t),(f===!1||f===!0&&c>7)&&this._init()},FLBuilderColorPicker.prototype={_html:"",_color:"",_currentElement:"",_inited:!1,_defaultHSLControls:{horiz:"s",vert:"l",strip:"h"},_defaultHSVControls:{horiz:"h",vert:"v",strip:"s"},_scale:{h:360,s:100,l:100,v:100},_init:function(){var t=this;e(t.options.elements);this._color=new Color("#ff0000").setHSpace(t.options.mode),a=this.options.presets,h===!1&&l(),e("html").hasClass("fl-color-picker-init")?t.picker=e(".fl-color-picker-ui"):t.picker=e(this._html).appendTo("body"),u?9===c?t.picker.addClass("iris-ie-9"):c<=8&&t.picker.addClass("iris-ie-lt9"):d.indexOf("compatible")<0&&d.indexOf("khtml")<0&&d.match(/mozilla/)&&t.picker.addClass("iris-mozilla"),t.controls={square:t.picker.find(".iris-square"),squareDrag:t.picker.find(".iris-square-value"),horiz:t.picker.find(".iris-square-horiz"),vert:t.picker.find(".iris-square-vert"),strip:t.picker.find(".iris-strip"),stripSlider:t.picker.find(".iris-strip .iris-slider-offset")},"hsv"===t.options.mode&&t._has("l",t.options.controls)?t.options.controls=t._defaultHSVControls:"hsl"===t.options.mode&&t._has("v",t.options.controls)&&(t.options.controls=t._defaultHSLControls),t.hue=t._color.h(),this._setTemplates(),this._ui=e(".fl-color-picker-ui"),this._iris=e(".iris-picker"),this._wrapper=e("body"),e("html").hasClass("fl-color-picker-init")||this._ui.prepend(this._hexHtml).append(this._presetsHtml),t.element=this._ui.find(".fl-color-picker-input"),t._initControls(),t.active="external",t._change(),t._addInputListeners(t.element),this._buildUI(),this._prepareColorFields(),this._pickerControls(),this._presetsControls(),this._buildAlphaUI(),e("html").addClass("fl-color-picker-init")},_prepareColorFields:function(){var t=this;e(".fl-color-picker-value").each(function(){var l=e(this),i=l.val(),o=l.parent().find(".fl-color-picker-color"),s=flBuilderParseColorValue(i),r="";if(i){if(o.hasClass("fl-color-picker-alpha-enabled")&&s.rgba)r=l.val().toString();else if(!o.hasClass("fl-color-picker-alpha-enabled")&&s.rgba){var n=i.replace("rgba","rgb");n=n.substr(0,n.lastIndexOf(","))+")",t._color._alpha=1,r=n,l.val(n)}else r="#"+l.val().toString();o.css({backgroundColor:r})}})},_setTemplates:function(){this._alphaHtml='<div class="fl-alpha-wrap"><div class="fl-alpha-slider"></div><div class="fl-alpha-slider-offset"></div><div class="fl-alpha-text"></div></div>',this._presetsHtml='<div class="fl-color-picker-presets"><div class="fl-color-picker-presets-toggle"><div class="fl-color-picker-presets-open-label fl-color-picker-active">'+this.options.labels.colorPresets+' <span class="fl-color-picker-icon-arrow-up"></span></div><div class="fl-color-picker-presets-close-label">'+this.options.labels.colorPicker+' <span class="fl-color-picker-icon-arrow-down"></span></div></div><ul class="fl-color-picker-presets-list"></ul></div>',this._hexHtml='<input type="text" class="fl-color-picker-input" maxlength="7" placeholder="'+this.options.labels.placeholder+'"><div class="fl-color-picker-preset-add"></div>',this._presetsTpl='<li class="fl-color-picker-preset"><span class="fl-color-picker-preset-color"></span> <span class="fl-color-picker-preset-label"></span> <span class="fl-color-picker-preset-remove fl-color-picker-icon-remove"></span></li>',this._noPresetsTpl='<li class="fl-color-picker-no-preset"><span class="fl-color-picker-preset-label">'+this.options.labels.noPresets+"</span></li>"},_has:function(t,l){var i=!1;return e.each(l,function(e,l){if(t===l)return i=!0,!1}),i},_buildUI:function(){var t=this;t._presetsList=this._ui.find(".fl-color-picker-presets-list"),t._presetsList.html(""),this.options.presets.length>0?e.each(this.options.presets,function(e,l){t._addPresetView(l)}):t._presetsList.append(this._noPresetsTpl)},_addPresetView:function(t){var l=this._presetsList.find(".fl-color-picker-no-preset");l.length>0&&l.remove();var i=e(this._presetsTpl),o=Color(t);i.attr("data-color",t).find(".fl-color-picker-preset-color").css({backgroundColor:o.toString()}).end().find(".fl-color-picker-preset-label").html(o.toString()),this._presetsList.append(i)},_addPresetFeedback:function(){this._ui.append('<div class="fl-color-picker-added"><div class="fl-color-picker-added-text"><div class="fl-color-picker-icon-check"></div> "'+this.options.labels.presetAdded.replace("%s",this._color.toString())+'"</div></div>'),this._ui.find(".fl-color-picker-added").hide().fadeIn(200).delay(2e3).fadeOut(200,function(){e(this).remove()})},_pickerControls:function(){var t=this;this._wrapper.on("click",".fl-color-picker-color",function(){var l=e(this);t._currentElement=l.parent().find(".fl-color-picker-value"),t._ui.position({my:"left top",at:"left bottom",of:l,collision:"flipfit",using:function(e,l){t._togglePicker(e)}})}).on("click",".fl-color-picker-clear",function(){var l=e(this);t._currentElement=l.parent().find(".fl-color-picker-value"),l.prev(".fl-color-picker-color").css({backgroundColor:"transparent"}).addClass("fl-color-picker-empty"),t._setColor(""),t.element.val(""),t._currentElement.val("").trigger("change")}),e(document).on("mousedown",function(t){0===e(t.target).closest(".fl-color-picker-ui").length&&e(".fl-color-picker-ui.fl-color-picker-active").removeClass("fl-color-picker-active")})},_presetsControls:function(){var t=this,l=t._ui.find(".fl-color-picker-preset-add"),i=t._ui.find(".fl-color-picker-presets"),o=i.find(".fl-color-picker-presets-open-label"),s=i.find(".fl-color-picker-presets-close-label"),r=i.find(".fl-color-picker-presets-list");l.off("click").on("click",function(){t._addPreset(t.element.val())}),r.css({height:t.element.innerHeight()+t._iris.innerHeight()+14+"px"}).hide(),i.off("click").on("click",".fl-color-picker-presets-toggle",function(){o.toggleClass("fl-color-picker-active"),s.toggleClass("fl-color-picker-active"),r.slideToggle(500)}).on("click",".fl-color-picker-preset",function(l){var i=new Color(e(this).data("color").toString());t._setColor(i),t._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:i.toString()}).removeClass("fl-color-picker-empty"),o.toggleClass("fl-color-picker-active"),s.toggleClass("fl-color-picker-active"),r.slideToggle(500)}).on("click",".fl-color-picker-preset-remove",function(l){l.stopPropagation(),t._removePreset(e(this).parent().data("color"))})},_removePreset:function(t){if(confirm(this.options.labels.removePresetConfirm)){var l=t.toString(),i=a.indexOf(l);i>-1&&(a.splice(i,1),this.options.presets=a,this._presetsList.find('.fl-color-picker-preset[data-color="'+l+'"]').slideUp(function(){e(this).remove()})),a.length<1&&this._presetsList.append(this._noPresetsTpl),e(this).trigger("presetRemoved",{presets:a})}},_addPreset:function(t){var l=t.toString().replace(/^#/,"");""===l?alert(this.options.labels.noneColorSelected):a.indexOf(l)>-1?alert(this.options.labels.alreadySaved.replace("%s","#"+l)):(this._addPresetView(l),this._addPresetFeedback(),a.push(l),this.options.presets=a,e(this).trigger("presetAdded",{presets:a}))},_togglePicker:function(e){var t=this;this._ui.hasClass("fl-color-picker-active")?(this._ui.removeClass("fl-color-picker-active"),e&&setTimeout(function(){t._ui.css(e),t._ui.addClass("fl-color-picker-active"),t._setColor(t._currentElement.val())},200)):(e&&t._ui.css(e),setTimeout(function(){t._ui.addClass("fl-color-picker-active"),t._setColor(t._currentElement.val())},200))},_paint:function(){var e=this;e._paintDimension("right","strip"),e._paintDimension("top","vert"),e._paintDimension("left","horiz")},_paintDimension:function(e,t){var l,i=this,o=i._color,s=i.options.mode,r=i._getHSpaceColor(),n=i.controls[t],a=i.options.controls;if(t!==i.active&&("square"!==i.active||"strip"===t))switch(a[t]){case"h":if("hsv"===s){switch(r=o.clone(),t){case"horiz":r[a.vert](100);break;case"vert":r[a.horiz](100);break;case"strip":r.setHSpace("hsl")}l=r.toHsl()}else l="strip"===t?{s:r.s,l:r.l}:{s:100,l:r.l};n.flBuilderColorPickerRaninbowGradient(e,l);break;case"s":"hsv"===s?"vert"===t?l=[o.clone().a(0).s(0).toCSS("rgba"),o.clone().a(1).s(0).toCSS("rgba")]:"strip"===t?l=[o.clone().s(100).toCSS("hsl"),o.clone().s(0).toCSS("hsl")]:"horiz"===t&&(l=["#fff","hsl("+r.h+",100%,50%)"]):l="vert"===t&&"h"===i.options.controls.horiz?["hsla(0, 0%, "+r.l+"%, 0)","hsla(0, 0%, "+r.l+"%, 1)"]:["hsl("+r.h+",0%,50%)","hsl("+r.h+",100%,50%)"],n.flBuilderColorPickerGradient(e,l);break;case"l":l="strip"===t?["hsl("+r.h+",100%,100%)","hsl("+r.h+", "+r.s+"%,50%)","hsl("+r.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],n.flBuilderColorPickerGradient(e,l);break;case"v":l="strip"===t?[o.clone().v(100).toCSS(),o.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],n.flBuilderColorPickerGradient(e,l)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_dimensions:function(e){var t,l=this,i=l.options,o=l.controls,s=o.square,r=l.picker.find(".iris-strip"),n="77.5%",a="12%",d=20,u=i.border?i.width-d:i.width;if(e&&(s.css("width",""),r.css("width",""),l.picker.css({width:"",height:""})),n=u*(parseFloat(n)/100),a=u*(parseFloat(a)/100),t=i.border?n+d:n,s.width(n).height(n),r.height(n).width(a),l.picker.css({width:i.width,height:t}),!i.palettes)return l.picker.css("paddingBottom","")},_addInputListeners:function(e){var t=this,l=100,i=function(l){var i=new Color(e.val()),o=e.val().replace(/^#/,"");if(e.removeClass("iris-error"),i.error)""!==o&&e.addClass("iris-error");else if(i.toString()!==t._color.toString())if("keyup"===l.type){if(o.match(/^[0-9a-fA-F]{3}$/))return;t._setColor(o),t._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:Color(o).toString()}).removeClass("fl-color-picker-empty"),t._currentElement.val(o).trigger("change")}else if("paste"===l.type)return o=l.originalEvent.clipboardData.getData("text").replace(/^#/,""),hex=Color(o).toString(),t._setColor(o),e.val(hex),t._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:hex}).removeClass("fl-color-picker-empty"),t._currentElement.val(o).trigger("change"),!1};e.on("change",i).on("keyup",t._debounce(i,l))},_initControls:function(){var t=this,l=t.controls,i=l.square,o=t.options.controls,s=t._scale[o.strip];l.stripSlider.slider({orientation:"horizontal",max:s,slide:function(e,l){t.active="strip","h"===o.strip&&(l.value=s-l.value),t._color[o.strip](l.value),t._change.apply(t,arguments)}}),l.squareDrag.draggable({containment:l.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(e,l){t._squareDrag(e,l)},start:function(){i.addClass("iris-dragging"),e(this).addClass("ui-state-focus")},stop:function(){i.removeClass("iris-dragging"),e(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(l){var i="ui-state-focus";l.preventDefault(),"mousedown"===l.type?(t.picker.find("."+i).removeClass(i).blur(),e(this).addClass(i).focus()):e(this).removeClass(i)}).on("keydown",function(e){var i=l.square,o=l.squareDrag,s=o.position(),r=2;switch(e.altKey&&(r*=10),e.keyCode){case 37:s.left-=r;break;case 38:s.top-=r;break;case 39:s.left+=r;break;case 40:s.top+=r;break;default:return!0}s.left=Math.max(0,Math.min(s.left,i.width())),s.top=Math.max(0,Math.min(s.top,i.height())),o.css(s),t._squareDrag(e,{position:s}),e.preventDefault()}),i.mousedown(function(l){var i,o;1===l.which&&e(l.target).is("div")&&(i=t.controls.square.offset(),o={top:l.pageY-i.top,left:l.pageX-i.left},l.preventDefault(),t._squareDrag(l,{position:o}),l.target=t.controls.squareDrag.get(0),t.controls.squareDrag.css(o).trigger(l))})},_squareDrag:function(e,t){var l=this,i=l.options.controls,o=l._squareDimensions(),s=Math.round((o.h-t.position.top)/o.h*l._scale[i.vert]),r=l._scale[i.horiz]-Math.round((o.w-t.position.left)/o.w*l._scale[i.horiz]);l._color[i.horiz](r)[i.vert](s),l.active="square",l._change.apply(l,arguments)},_setColor:function(e){var t,l,i=this,o=i.options.color;i.options.color=e,e=""+e,t=e.replace(/^#/,""),l=new Color(e).setHSpace(i.options.mode),l.error?i.options.color=o:(i._color=l,i.options.color=i._color.toString(),i.active="external",i._change())},_squareDimensions:function(e){var l,i,o=this.controls.square;return e!==t&&o.data("dimensions")?o.data("dimensions"):(i=this.controls.squareDrag,l={w:o.width(),h:o.height()},o.data("dimensions",l),l)},_isNonHueControl:function(e,t){return"square"===e&&"h"===this.options.controls.strip||"external"!==t&&("h"!==t||"strip"!==e)},_change:function(){var t=this,l=t.controls,i=t._getHSpaceColor(),o=["square","strip"],s=t.options.controls,r=s[t.active]||"external",n=t.hue;"strip"===t.active?o=[]:"external"!==t.active&&o.pop(),e.each(o,function(e,o){var r,n,a;if(o!==t.active)switch(o){case"strip":r="h"===s.strip?t._scale[s.strip]-i[s.strip]:i[s.strip],l.stripSlider.slider("value",r);break;case"square":n=t._squareDimensions(),a={left:i[s.horiz]/t._scale[s.horiz]*n.w,top:n.h-i[s.vert]/t._scale[s.vert]*n.h},t.controls.squareDrag.css(a)}}),i.h!==n&&t._isNonHueControl(t.active,r)&&t._color.h(n),t.hue=t._color.h(),t.options.color=t._color.toString(),t.element.is(":input")&&!t._color.error&&(t.element.removeClass("iris-error"),t.element.val()!==t._color.toString()&&(t.element.val(t._color.toString()),this._currentElement&&(this._currentElement.val(t._color.toString().replace(/^#/,"")).parent().find(".fl-color-picker-color").css({backgroundColor:t._color.toString()}).removeClass("fl-color-picker-empty"),t._wrapper.find(".fl-alpha-slider-offset").css("background-color",t._color.toString()),this._currentElement.trigger("change")))),t._paint(),t._inited=!0,t.active=!1},_debounce:function(e,t,l){var i,o;return function(){var s,r,n=this,a=arguments;return s=function(){i=null,l||(o=e.apply(n,a))},r=l&&!i,clearTimeout(i),i=setTimeout(s,t),r&&(o=e.apply(n,a)),o}},_buildAlphaUI:function(){var t=this;t._wrapper.on("click",".fl-color-picker-color",function(){var l=e(this);t._currentElement.val();l.hasClass("fl-color-picker-alpha-enabled")?(t._ui.find(".fl-alpha-wrap").length<=0&&e(t._alphaHtml).insertAfter(t._iris),t.picker.addClass("fl-color-alpha-enabled"),t._pickerAlphaControls()):t._ui.find(".fl-alpha-wrap").remove()})},_pickerAlphaControls:function(){var e=this,t=e._currentElement,l=flBuilderParseColorValue(t.val()),i=parseFloat(l.alpha/100),o=e._wrapper,s=e._ui,r=s.find(".fl-alpha-wrap"),n=r.find(".fl-alpha-slider"),a=r.find(".fl-alpha-text"),d=r.find(".fl-alpha-slider-offset");alphaHandle=r.find(".ui-slider-handle"),a.text(i<1?i:""),n.slider({orientation:"vertical",slide:function(t,l){var i=parseFloat(l.value/100);e._color._alpha=i,a.text(i<1?i:""),e._change.apply(e,arguments)},create:function(){d.css({backgroundColor:l.value}),o.on("click",".fl-color-picker-clear",function(){e._color._alpha=1,a.text(""),n.slider("value",100).trigger("slide")})},value:l.alpha,step:1,min:1,max:100})}}}(jQuery),function(e,t){var l=function(e,t){return this instanceof l?this._init(e,t):new l(e,t)};l.fn=l.prototype={_color:0,_alpha:1,error:!1,_hsl:{h:0,s:0,l:0},_hsv:{h:0,s:0,v:0},_hSpace:"hsl",_init:function(e){var l="noop";switch(typeof e){case"object":return e.a!==t&&this.a(e.a),l=e.r!==t?"fromRgb":e.l!==t?"fromHsl":e.v!==t?"fromHsv":l,this[l](e);case"string":return this.fromCSS(e);case"number":return this.fromInt(parseInt(e,10))}return this},_error:function(){return this.error=!0,this},clone:function(){for(var e=new l(this.toInt()),t=["_alpha","_hSpace","_hsl","_hsv","error"],i=t.length-1;i>=0;i--)e[t[i]]=this[t[i]];return e},setHSpace:function(e){return this._hSpace="hsv"===e?e:"hsl",this},noop:function(){return this},fromCSS:function(e){var t,l=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,e=e.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,""),e.match(l)&&e.match(/\)$/)){if(t=e.replace(/(\s|%)/g,"").replace(l,"").replace(/,?\);?$/,"").split(","),t.length<3)return this._error();if(4===t.length&&(this.a(parseFloat(t.pop())),this.error))return this;for(var i=t.length-1;i>=0;i--)if(t[i]=parseInt(t[i],10),isNaN(t[i]))return this._error();return e.match(/^rgb/)?this.fromRgb({r:t[0],g:t[1],b:t[2]}):e.match(/^hsv/)?this.fromHsv({h:t[0],s:t[1],v:t[2]}):this.fromHsl({h:t[0],s:t[1],l:t[2]})}return this.fromHex(e)},fromRgb:function(e,l){return"object"!=typeof e||e.r===t||e.g===t||e.b===t?this._error():(this.error=!1,this.fromInt(parseInt((e.r<<16)+(e.g<<8)+e.b,10),l))},fromHex:function(e){return e=e.replace(/^#/,"").replace(/^0x/,""),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),this.error=!/^[0-9A-F]{6}$/i.test(e),this.fromInt(parseInt(e,16))},fromHsl:function(e){var l,i,o,s,r,n,a,d;return"object"!=typeof e||e.h===t||e.s===t||e.l===t?this._error():(this._hsl=e,this._hSpace="hsl",n=e.h/360,a=e.s/100,d=e.l/100,0===a?l=i=o=d:(s=d<.5?d*(1+a):d+a-d*a,r=2*d-s,l=this.hue2rgb(r,s,n+1/3),i=this.hue2rgb(r,s,n),o=this.hue2rgb(r,s,n-1/3)),this.fromRgb({r:255*l,g:255*i,b:255*o},!0))},fromHsv:function(e){var l,i,o,s,r,n,a,d,u,c,f;if("object"!=typeof e||e.h===t||e.s===t||e.v===t)return this._error();switch(this._hsv=e,this._hSpace="hsv",l=e.h/360,i=e.s/100,o=e.v/100,a=Math.floor(6*l),d=6*l-a,u=o*(1-i),c=o*(1-d*i),f=o*(1-(1-d)*i),a%6){case 0:s=o,r=f,n=u;break;case 1:s=c,r=o,n=u;break;case 2:s=u,r=o,n=f;break;case 3:s=u,r=c,n=o;break;case 4:s=f,r=u,n=o;break;case 5:s=o,r=u,n=c}return this.fromRgb({r:255*s,g:255*r,b:255*n},!0)},fromInt:function(e,l){return this._color=parseInt(e,10),isNaN(this._color)&&(this._color=0),this._color>16777215?this._color=16777215:this._color<0&&(this._color=0),l===t&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(e,t,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?e+6*(t-e)*l:l<.5?t:l<2/3?e+(t-e)*(2/3-l)*6:e},toString:function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var t=6-e.length-1;t>=0;t--)e="0"+e;return"#"+e},toCSS:function(e,t){switch(e=e||"hex",t=parseFloat(t||this._alpha),e){case"rgb":case"rgba":var l=this.toRgb();return t<1?"rgba( "+l.r+", "+l.g+", "+l.b+", "+t+" )":"rgb( "+l.r+", "+l.g+", "+l.b+" )";case"hsl":case"hsla":var i=this.toHsl();return t<1?"hsla( "+i.h+", "+i.s+"%, "+i.l+"%, "+t+" )":"hsl( "+i.h+", "+i.s+"%, "+i.l+"% )";default:return this.toString()}},toRgb:function(){return{r:255&this._color>>16,g:255&this._color>>8,b:255&this._color}},toHsl:function(){var e,t,l=this.toRgb(),i=l.r/255,o=l.g/255,s=l.b/255,r=Math.max(i,o,s),n=Math.min(i,o,s),a=(r+n)/2;if(r===n)e=t=0;else{var d=r-n;switch(t=a>.5?d/(2-r-n):d/(r+n),r){case i:e=(o-s)/d+(o<s?6:0);break;case o:e=(s-i)/d+2;break;case s:e=(i-o)/d+4}e/=6}return e=Math.round(360*e),0===e&&this._hsl.h!==e&&(e=this._hsl.h),t=Math.round(100*t),0===t&&this._hsl.s&&(t=this._hsl.s),{h:e,s:t,l:Math.round(100*a)}},toHsv:function(){var e,t,l=this.toRgb(),i=l.r/255,o=l.g/255,s=l.b/255,r=Math.max(i,o,s),n=Math.min(i,o,s),a=r,d=r-n;if(t=0===r?0:d/r,r===n)e=t=0;else{switch(r){case i:e=(o-s)/d+(o<s?6:0);break;case o:e=(s-i)/d+2;break;case s:e=(i-o)/d+4}e/=6}return e=Math.round(360*e),0===e&&this._hsv.h!==e&&(e=this._hsv.h),t=Math.round(100*t),0===t&&this._hsv.s&&(t=this._hsv.s),{h:e,s:t,v:Math.round(100*a)}},toInt:function(){return this._color},toIEOctoHex:function(){var e=this.toString(),t=parseInt(255*this._alpha,10).toString(16);return 1===t.length&&(t="0"+t),"#"+t+e.replace(/^#/,"")},toLuminosity:function(){var e=this.toRgb();return.2126*Math.pow(e.r/255,2.2)+.7152*Math.pow(e.g/255,2.2)+.0722*Math.pow(e.b/255,2.2)},getDistanceLuminosityFrom:function(e){if(!(e instanceof l))throw"getDistanceLuminosityFrom requires a Color object";var t=this.toLuminosity(),i=e.toLuminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},getMaxContrastColor:function(){var e=this.toLuminosity(),t=e>=.5?"000000":"ffffff";return new l(t)},getReadableContrastingColor:function(e,i){if(!(e instanceof l))return this;var o=i===t?5:i,s=e.getDistanceLuminosityFrom(this),r=e.getMaxContrastColor(),n=r.getDistanceLuminosityFrom(e);if(n<=o)return r;if(s>=o)return this;for(var a=0===r.toInt()?-1:1;s<o&&(this.l(a,!0),s=this.getDistanceLuminosityFrom(e),0!==this._color&&16777215!==this._color););return this},a:function(e){if(e===t)return this._alpha;var l=parseFloat(e);return isNaN(l)?this._error():(this._alpha=l,this)},darken:function(e){return e=e||5,this.l(-e,!0)},lighten:function(e){return e=e||5,this.l(e,!0)},saturate:function(e){return e=e||15,this.s(e,!0)},desaturate:function(e){return e=e||15,this.s(-e,!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(e){e=e||1;var t=180+30*e;return this.h(t,!0)},getAnalog:function(e){e=e||1;var t=30*e;return this.h(t,!0)},getTetrad:function(e){e=e||1;var t=60*e;return this.h(t,!0)},getTriad:function(e){e=e||1;var t=120*e;return this.h(t,!0)},_partial:function(e){var l=i[e];return function(i,o){var s=this._spaceFunc("to",l.space);return i===t?s[e]:(o===!0&&(i=s[e]+i),l.mod&&(i%=l.mod),l.range&&(i=i<l.range[0]?l.range[0]:i>l.range[1]?l.range[1]:i),s[e]=i,this._spaceFunc("from",l.space,s))}},_spaceFunc:function(e,t,l){var i=t||this._hSpace,o=e+i.charAt(0).toUpperCase()+i.substr(1);return this[o](l)}};var i={h:{mod:360},s:{range:[0,100]},l:{space:"hsl",range:[0,100]},v:{space:"hsv",range:[0,100]},r:{space:"rgb",range:[0,255]},g:{space:"rgb",range:[0,255]},b:{space:"rgb",range:[0,255]}};for(var o in i)i.hasOwnProperty(o)&&(l.fn[o]=l.fn._partial(o));"object"==typeof exports?module.exports=l:e.Color=l}(this),function(e){FLIconSelector={_content:null,_lightbox:null,_rendered:!1,_filterText:"",open:function(e){FLIconSelector._rendered||FLIconSelector._render(),null===FLIconSelector._content?(FLIconSelector._lightbox.open('<div class="fl-builder-lightbox-loading"></div>'),FLBuilder.ajax({action:"render_icon_selector"},FLIconSelector._getContentComplete)):FLIconSelector._lightbox.open(),FLIconSelector._lightbox.on("icon-selected",function(t,l){FLIconSelector._lightbox.off("icon-selected"),FLIconSelector._lightbox.close(),e(l)})},_render:function(){FLIconSelector._lightbox=new FLLightbox({className:"fl-icon-selector"}),FLIconSelector._rendered=!0},_getContentComplete:function(t){var l=JSON.parse(t);FLIconSelector._content=l.html,FLIconSelector._lightbox.setContent(l.html),e(".fl-icons-filter-select").on("change",FLIconSelector._filter),e(".fl-icons-filter-text").on("keyup",FLIconSelector._filter),e(".fl-icons-list i").on("click",FLIconSelector._select),e(".fl-icon-selector-cancel").on("click",e.proxy(FLIconSelector._lightbox.close,FLIconSelector._lightbox))},_filter:function(){var t=e(".fl-icons-filter-select").val(),l=e(".fl-icons-filter-text").val();"all"==t?e(".fl-icons-section").show():(e(".fl-icons-section").hide(),e(".fl-"+t).show()),FLIconSelector._filterText=l,""!==l?e(".fl-icons-list i").each(FLIconSelector._filterIcon):e(".fl-icons-list i").show()},_filterIcon:function(){var t=e(this);-1==t.attr("class").indexOf(FLIconSelector._filterText)?t.hide():t.show()},_select:function(){var t=e(this).attr("class");FLIconSelector._lightbox.trigger("icon-selected",t)}}}(jQuery),function(e){FLStyleSheet=function(t){"object"==typeof t&&e.extend(this,t),this._createSheet()},FLStyleSheet.prototype={id:null,_sheet:null,_sheetElement:null,updateRule:function(e,t,l){for(var i=this._sheet.cssRules?this._sheet.cssRules:this._sheet.rules,o=null,s=0;s<i.length;s++)i[s].selectorText.toLowerCase()==e.toLowerCase()&&(o=i[s]);if(o)if("object"==typeof t)for(s in t)o.style[this._toCamelCase(s)]=t[s];else o.style[this._toCamelCase(t)]=l;else this.addRule(e,t,l)},addRule:function(e,t,l){var i="",o="";if("object"==typeof t)for(o in t)i+=o+":"+t[o]+";";else i=t+":"+l+";";this._sheet.insertRule?this._sheet.insertRule(e+" { "+i+" }",this._sheet.cssRules.length):this._sheet.addRule(e,i)},destroy:function(){this._sheetElement&&(this._sheetElement.remove(),this._sheetElement=null),this._sheet&&(this._sheet=null)},disable:function(){this._sheet.disabled=!0},enable:function(){this._sheet.disabled=!1},_createSheet:function(){var t=this.id?' id="'+this.id+'"':"";this._sheet||(this._sheetElement=e('<style type="text/css"'+t+"></style>"),e("body").append(this._sheetElement),this._sheet=this._sheetElement[0].sheet)},_toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}}}(jQuery);
|
js/fl-lightbox.js
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
this._render();
|
13 |
this._bind();
|
14 |
};
|
15 |
-
|
16 |
/**
|
17 |
* Closes the lightbox of a child element that
|
18 |
* is passed to this method.
|
@@ -21,14 +21,14 @@
|
|
21 |
* @static
|
22 |
* @method closeParent
|
23 |
* @param {Object} child An HTML element or jQuery reference to an element.
|
24 |
-
*/
|
25 |
FLLightbox.closeParent = function(child)
|
26 |
{
|
27 |
var instanceId = $(child).closest('.fl-lightbox-wrap').attr('data-instance-id');
|
28 |
-
|
29 |
FLLightbox._instances[instanceId].close();
|
30 |
};
|
31 |
-
|
32 |
/**
|
33 |
* An object that stores a reference to each
|
34 |
* lightbox instance that is created.
|
@@ -37,7 +37,7 @@
|
|
37 |
* @static
|
38 |
* @access private
|
39 |
* @property {Object} _instances
|
40 |
-
*/
|
41 |
FLLightbox._instances = {};
|
42 |
|
43 |
/**
|
@@ -45,7 +45,7 @@
|
|
45 |
*
|
46 |
* @since 1.0
|
47 |
* @property {Object} prototype
|
48 |
-
*/
|
49 |
FLLightbox.prototype = {
|
50 |
|
51 |
/**
|
@@ -55,27 +55,27 @@
|
|
55 |
* @since 1.0
|
56 |
* @access private
|
57 |
* @property {String} _id
|
58 |
-
*/
|
59 |
_id: null,
|
60 |
-
|
61 |
/**
|
62 |
* A jQuery reference to the main wrapper div.
|
63 |
*
|
64 |
* @since 1.0
|
65 |
* @access private
|
66 |
* @property {Object} _node
|
67 |
-
*/
|
68 |
_node: null,
|
69 |
-
|
70 |
/**
|
71 |
* Flag for whether the lightbox is visible or not.
|
72 |
*
|
73 |
* @since 1.0
|
74 |
* @access private
|
75 |
* @property {Boolean} _visible
|
76 |
-
*/
|
77 |
_visible: false,
|
78 |
-
|
79 |
/**
|
80 |
* A timeout used to throttle the resize event.
|
81 |
*
|
@@ -84,9 +84,9 @@
|
|
84 |
* @property {Object} _resizeTimer
|
85 |
*/
|
86 |
_resizeTimer: null,
|
87 |
-
|
88 |
/**
|
89 |
-
* A flag for whether this instance should be
|
90 |
* draggable or not.
|
91 |
*
|
92 |
* @since 1.0
|
@@ -94,7 +94,7 @@
|
|
94 |
* @property {Boolean} _draggable
|
95 |
*/
|
96 |
_draggable: false,
|
97 |
-
|
98 |
/**
|
99 |
* Default config object.
|
100 |
*
|
@@ -108,9 +108,9 @@
|
|
108 |
className: '',
|
109 |
destroyOnClose: false
|
110 |
},
|
111 |
-
|
112 |
/**
|
113 |
-
* Opens the lightbox. You can pass new content to this method.
|
114 |
* If no content is passed, the previous content will be shown.
|
115 |
*
|
116 |
* @since 1.0
|
@@ -122,17 +122,17 @@
|
|
122 |
this._node.find('.fl-lightbox').attr( 'style', '' );
|
123 |
this._node.show();
|
124 |
this._visible = true;
|
125 |
-
|
126 |
if(typeof content !== 'undefined') {
|
127 |
this.setContent(content);
|
128 |
}
|
129 |
else {
|
130 |
this._resize();
|
131 |
}
|
132 |
-
|
133 |
this.trigger('open');
|
134 |
},
|
135 |
-
|
136 |
/**
|
137 |
* Closes the lightbox.
|
138 |
*
|
@@ -141,15 +141,16 @@
|
|
141 |
*/
|
142 |
close: function()
|
143 |
{
|
|
|
144 |
this._node.hide();
|
145 |
this._visible = false;
|
146 |
this.trigger('close');
|
147 |
-
|
148 |
if(this._defaults.destroyOnClose) {
|
149 |
this.destroy();
|
150 |
}
|
151 |
},
|
152 |
-
|
153 |
/**
|
154 |
* Adds HTML content to the lightbox replacing any
|
155 |
* previously added content.
|
@@ -163,7 +164,7 @@
|
|
163 |
this._node.find('.fl-lightbox-content').html(content);
|
164 |
this._resize();
|
165 |
},
|
166 |
-
|
167 |
/**
|
168 |
* Uses the jQuery empty function to remove lightbox
|
169 |
* content and any related events.
|
@@ -176,7 +177,7 @@
|
|
176 |
this._node.find('.fl-lightbox-content').empty();
|
177 |
this._node.find('.fl-lightbox').removeClass('fl-lightbox-expanded');
|
178 |
},
|
179 |
-
|
180 |
/**
|
181 |
* Bind an event to the lightbox.
|
182 |
*
|
@@ -189,7 +190,7 @@
|
|
189 |
{
|
190 |
this._node.on(event, callback);
|
191 |
},
|
192 |
-
|
193 |
/**
|
194 |
* Unbind an event from the lightbox.
|
195 |
*
|
@@ -201,7 +202,7 @@
|
|
201 |
{
|
202 |
this._node.off(event);
|
203 |
},
|
204 |
-
|
205 |
/**
|
206 |
* Trigger an event on the lightbox.
|
207 |
*
|
@@ -214,7 +215,7 @@
|
|
214 |
{
|
215 |
this._node.trigger(event, params);
|
216 |
},
|
217 |
-
|
218 |
/**
|
219 |
* Enable or disable dragging for the lightbox.
|
220 |
*
|
@@ -226,19 +227,19 @@
|
|
226 |
{
|
227 |
var mask = this._node.find('.fl-lightbox-mask'),
|
228 |
lightbox = this._node.find('.fl-lightbox');
|
229 |
-
|
230 |
toggle = typeof toggle === 'undefined' ? false : toggle;
|
231 |
-
|
232 |
if(this._draggable) {
|
233 |
lightbox.draggable('destroy');
|
234 |
}
|
235 |
|
236 |
if(toggle) {
|
237 |
-
|
238 |
this._unbind();
|
239 |
this._draggable = true;
|
240 |
mask.hide();
|
241 |
-
|
242 |
lightbox.draggable({
|
243 |
cursor: 'move',
|
244 |
handle: toggle.handle || ''
|
@@ -252,7 +253,7 @@
|
|
252 |
|
253 |
this._resize();
|
254 |
},
|
255 |
-
|
256 |
/**
|
257 |
* Destroy the lightbox by removing all elements, events
|
258 |
* and object references.
|
@@ -263,22 +264,22 @@
|
|
263 |
destroy: function()
|
264 |
{
|
265 |
$(window).off('resize.fl-lightbox-' + this._id);
|
266 |
-
|
267 |
this._node.empty();
|
268 |
this._node.remove();
|
269 |
-
|
270 |
FLLightbox._instances[this._id] = 'undefined';
|
271 |
try{ delete FLLightbox._instances[this._id]; } catch(e){}
|
272 |
},
|
273 |
|
274 |
/**
|
275 |
* Render the expand/contract of lightbox
|
276 |
-
*
|
277 |
* @method renderResize
|
278 |
-
* @param {String}
|
279 |
*/
|
280 |
renderResize: function(method)
|
281 |
-
{
|
282 |
if(typeof method !== 'undefined') {
|
283 |
var activeNode = this._getActiveNode();
|
284 |
lightbox = activeNode.find('.fl-lightbox'),
|
@@ -300,13 +301,13 @@
|
|
300 |
if(method == 'window_resize' && !lightbox.hasClass('fl-lightbox-expanded')) {
|
301 |
return false;
|
302 |
}
|
303 |
-
|
304 |
boxFields.css('height', boxFieldHeight + 'px');
|
305 |
-
|
306 |
if(method == 'expand') {
|
307 |
-
lightbox.addClass('fl-lightbox-expanded');
|
308 |
lightbox.draggable('disable');
|
309 |
-
}
|
310 |
|
311 |
if(editorIframeEl.length > 0) {
|
312 |
editorIframeEl.css('height', (boxFieldHeight - 145) + 'px');
|
@@ -319,7 +320,7 @@
|
|
319 |
if(codeField.length > 0) {
|
320 |
codeField.css('height', (boxFieldHeight - 60) + 'px');
|
321 |
}
|
322 |
-
|
323 |
}
|
324 |
else {
|
325 |
// Contract lightbox
|
@@ -327,7 +328,7 @@
|
|
327 |
|
328 |
lightbox.removeClass('fl-lightbox-expanded');
|
329 |
boxFields.removeAttr('style');
|
330 |
-
|
331 |
if(editorId !== null) {
|
332 |
editorIframeEl.css('height', '232px');
|
333 |
editorTextarea.css('height', '232px');
|
@@ -338,10 +339,10 @@
|
|
338 |
}
|
339 |
|
340 |
lightbox.draggable('enable');
|
341 |
-
}
|
342 |
-
}
|
343 |
},
|
344 |
-
|
345 |
/**
|
346 |
* Initialize this lightbox instance.
|
347 |
*
|
@@ -354,16 +355,16 @@
|
|
354 |
{
|
355 |
var i = 0,
|
356 |
prop = null;
|
357 |
-
|
358 |
for(prop in FLLightbox._instances) {
|
359 |
i++;
|
360 |
}
|
361 |
-
|
362 |
this._defaults = $.extend({}, this._defaults, settings);
|
363 |
this._id = new Date().getTime() + i;
|
364 |
FLLightbox._instances[this._id] = this;
|
365 |
},
|
366 |
-
|
367 |
/**
|
368 |
* Renders the main wrapper.
|
369 |
*
|
@@ -374,12 +375,12 @@
|
|
374 |
_render: function()
|
375 |
{
|
376 |
this._node = $('<div class="fl-lightbox-wrap" data-instance-id="'+ this._id +'"><div class="fl-lightbox-mask"></div><div class="fl-lightbox"><div class="fl-lightbox-content-wrap"><div class="fl-lightbox-content"></div></div></div></div>');
|
377 |
-
|
378 |
this._node.addClass(this._defaults.className);
|
379 |
-
|
380 |
$('body').append(this._node);
|
381 |
},
|
382 |
-
|
383 |
/**
|
384 |
* Binds events for this instance.
|
385 |
*
|
@@ -391,7 +392,7 @@
|
|
391 |
{
|
392 |
$(window).on('resize.fl-lightbox-' + this._id, $.proxy(this._delayedResize, this));
|
393 |
},
|
394 |
-
|
395 |
/**
|
396 |
* Unbinds events for this instance.
|
397 |
*
|
@@ -403,7 +404,7 @@
|
|
403 |
{
|
404 |
$(window).off('resize.fl-lightbox-' + this._id);
|
405 |
},
|
406 |
-
|
407 |
/**
|
408 |
* Resizes the lightbox after a delay.
|
409 |
*
|
@@ -414,12 +415,12 @@
|
|
414 |
_delayedResize: function()
|
415 |
{
|
416 |
clearTimeout(this._resizeTimer);
|
417 |
-
|
418 |
this._resizeTimer = setTimeout($.proxy(this._resize, this), 250);
|
419 |
-
|
420 |
this.renderResize('window_resize');
|
421 |
},
|
422 |
-
|
423 |
/**
|
424 |
* Resizes the lightbox.
|
425 |
*
|
@@ -430,7 +431,7 @@
|
|
430 |
_resize: function()
|
431 |
{
|
432 |
if(this._visible) {
|
433 |
-
|
434 |
var lightbox = this._node.find('.fl-lightbox'),
|
435 |
boxHeight = lightbox.height(),
|
436 |
boxWidth = lightbox.width(),
|
@@ -439,19 +440,19 @@
|
|
439 |
winWidth = win.width(),
|
440 |
top = '0px',
|
441 |
left = ((winWidth - boxWidth)/2 - 30) + 'px';
|
442 |
-
|
443 |
// Zero out margins and position.
|
444 |
lightbox.css({
|
445 |
'margin' : '0px',
|
446 |
'top' : 'auto',
|
447 |
'left' : 'auto'
|
448 |
});
|
449 |
-
|
450 |
-
// Get the top position.
|
451 |
if(winHeight - 80 > boxHeight) {
|
452 |
top = ((winHeight - boxHeight)/2 - 40) + 'px';
|
453 |
}
|
454 |
-
|
455 |
// Set the positions.
|
456 |
if(this._draggable) {
|
457 |
lightbox.css('top', top);
|
@@ -464,9 +465,9 @@
|
|
464 |
}
|
465 |
}
|
466 |
},
|
467 |
-
|
468 |
/**
|
469 |
-
* Closes the lightbox when the esc key is pressed.
|
470 |
* Currently not in use.
|
471 |
*
|
472 |
* @since 1.0
|
@@ -503,4 +504,4 @@
|
|
503 |
}
|
504 |
};
|
505 |
|
506 |
-
})(jQuery);
|
12 |
this._render();
|
13 |
this._bind();
|
14 |
};
|
15 |
+
|
16 |
/**
|
17 |
* Closes the lightbox of a child element that
|
18 |
* is passed to this method.
|
21 |
* @static
|
22 |
* @method closeParent
|
23 |
* @param {Object} child An HTML element or jQuery reference to an element.
|
24 |
+
*/
|
25 |
FLLightbox.closeParent = function(child)
|
26 |
{
|
27 |
var instanceId = $(child).closest('.fl-lightbox-wrap').attr('data-instance-id');
|
28 |
+
|
29 |
FLLightbox._instances[instanceId].close();
|
30 |
};
|
31 |
+
|
32 |
/**
|
33 |
* An object that stores a reference to each
|
34 |
* lightbox instance that is created.
|
37 |
* @static
|
38 |
* @access private
|
39 |
* @property {Object} _instances
|
40 |
+
*/
|
41 |
FLLightbox._instances = {};
|
42 |
|
43 |
/**
|
45 |
*
|
46 |
* @since 1.0
|
47 |
* @property {Object} prototype
|
48 |
+
*/
|
49 |
FLLightbox.prototype = {
|
50 |
|
51 |
/**
|
55 |
* @since 1.0
|
56 |
* @access private
|
57 |
* @property {String} _id
|
58 |
+
*/
|
59 |
_id: null,
|
60 |
+
|
61 |
/**
|
62 |
* A jQuery reference to the main wrapper div.
|
63 |
*
|
64 |
* @since 1.0
|
65 |
* @access private
|
66 |
* @property {Object} _node
|
67 |
+
*/
|
68 |
_node: null,
|
69 |
+
|
70 |
/**
|
71 |
* Flag for whether the lightbox is visible or not.
|
72 |
*
|
73 |
* @since 1.0
|
74 |
* @access private
|
75 |
* @property {Boolean} _visible
|
76 |
+
*/
|
77 |
_visible: false,
|
78 |
+
|
79 |
/**
|
80 |
* A timeout used to throttle the resize event.
|
81 |
*
|
84 |
* @property {Object} _resizeTimer
|
85 |
*/
|
86 |
_resizeTimer: null,
|
87 |
+
|
88 |
/**
|
89 |
+
* A flag for whether this instance should be
|
90 |
* draggable or not.
|
91 |
*
|
92 |
* @since 1.0
|
94 |
* @property {Boolean} _draggable
|
95 |
*/
|
96 |
_draggable: false,
|
97 |
+
|
98 |
/**
|
99 |
* Default config object.
|
100 |
*
|
108 |
className: '',
|
109 |
destroyOnClose: false
|
110 |
},
|
111 |
+
|
112 |
/**
|
113 |
+
* Opens the lightbox. You can pass new content to this method.
|
114 |
* If no content is passed, the previous content will be shown.
|
115 |
*
|
116 |
* @since 1.0
|
122 |
this._node.find('.fl-lightbox').attr( 'style', '' );
|
123 |
this._node.show();
|
124 |
this._visible = true;
|
125 |
+
|
126 |
if(typeof content !== 'undefined') {
|
127 |
this.setContent(content);
|
128 |
}
|
129 |
else {
|
130 |
this._resize();
|
131 |
}
|
132 |
+
|
133 |
this.trigger('open');
|
134 |
},
|
135 |
+
|
136 |
/**
|
137 |
* Closes the lightbox.
|
138 |
*
|
141 |
*/
|
142 |
close: function()
|
143 |
{
|
144 |
+
this.trigger('beforeClose');
|
145 |
this._node.hide();
|
146 |
this._visible = false;
|
147 |
this.trigger('close');
|
148 |
+
|
149 |
if(this._defaults.destroyOnClose) {
|
150 |
this.destroy();
|
151 |
}
|
152 |
},
|
153 |
+
|
154 |
/**
|
155 |
* Adds HTML content to the lightbox replacing any
|
156 |
* previously added content.
|
164 |
this._node.find('.fl-lightbox-content').html(content);
|
165 |
this._resize();
|
166 |
},
|
167 |
+
|
168 |
/**
|
169 |
* Uses the jQuery empty function to remove lightbox
|
170 |
* content and any related events.
|
177 |
this._node.find('.fl-lightbox-content').empty();
|
178 |
this._node.find('.fl-lightbox').removeClass('fl-lightbox-expanded');
|
179 |
},
|
180 |
+
|
181 |
/**
|
182 |
* Bind an event to the lightbox.
|
183 |
*
|
190 |
{
|
191 |
this._node.on(event, callback);
|
192 |
},
|
193 |
+
|
194 |
/**
|
195 |
* Unbind an event from the lightbox.
|
196 |
*
|
202 |
{
|
203 |
this._node.off(event);
|
204 |
},
|
205 |
+
|
206 |
/**
|
207 |
* Trigger an event on the lightbox.
|
208 |
*
|
215 |
{
|
216 |
this._node.trigger(event, params);
|
217 |
},
|
218 |
+
|
219 |
/**
|
220 |
* Enable or disable dragging for the lightbox.
|
221 |
*
|
227 |
{
|
228 |
var mask = this._node.find('.fl-lightbox-mask'),
|
229 |
lightbox = this._node.find('.fl-lightbox');
|
230 |
+
|
231 |
toggle = typeof toggle === 'undefined' ? false : toggle;
|
232 |
+
|
233 |
if(this._draggable) {
|
234 |
lightbox.draggable('destroy');
|
235 |
}
|
236 |
|
237 |
if(toggle) {
|
238 |
+
|
239 |
this._unbind();
|
240 |
this._draggable = true;
|
241 |
mask.hide();
|
242 |
+
|
243 |
lightbox.draggable({
|
244 |
cursor: 'move',
|
245 |
handle: toggle.handle || ''
|
253 |
|
254 |
this._resize();
|
255 |
},
|
256 |
+
|
257 |
/**
|
258 |
* Destroy the lightbox by removing all elements, events
|
259 |
* and object references.
|
264 |
destroy: function()
|
265 |
{
|
266 |
$(window).off('resize.fl-lightbox-' + this._id);
|
267 |
+
|
268 |
this._node.empty();
|
269 |
this._node.remove();
|
270 |
+
|
271 |
FLLightbox._instances[this._id] = 'undefined';
|
272 |
try{ delete FLLightbox._instances[this._id]; } catch(e){}
|
273 |
},
|
274 |
|
275 |
/**
|
276 |
* Render the expand/contract of lightbox
|
277 |
+
*
|
278 |
* @method renderResize
|
279 |
+
* @param {String}
|
280 |
*/
|
281 |
renderResize: function(method)
|
282 |
+
{
|
283 |
if(typeof method !== 'undefined') {
|
284 |
var activeNode = this._getActiveNode();
|
285 |
lightbox = activeNode.find('.fl-lightbox'),
|
301 |
if(method == 'window_resize' && !lightbox.hasClass('fl-lightbox-expanded')) {
|
302 |
return false;
|
303 |
}
|
304 |
+
|
305 |
boxFields.css('height', boxFieldHeight + 'px');
|
306 |
+
|
307 |
if(method == 'expand') {
|
308 |
+
lightbox.addClass('fl-lightbox-expanded');
|
309 |
lightbox.draggable('disable');
|
310 |
+
}
|
311 |
|
312 |
if(editorIframeEl.length > 0) {
|
313 |
editorIframeEl.css('height', (boxFieldHeight - 145) + 'px');
|
320 |
if(codeField.length > 0) {
|
321 |
codeField.css('height', (boxFieldHeight - 60) + 'px');
|
322 |
}
|
323 |
+
|
324 |
}
|
325 |
else {
|
326 |
// Contract lightbox
|
328 |
|
329 |
lightbox.removeClass('fl-lightbox-expanded');
|
330 |
boxFields.removeAttr('style');
|
331 |
+
|
332 |
if(editorId !== null) {
|
333 |
editorIframeEl.css('height', '232px');
|
334 |
editorTextarea.css('height', '232px');
|
339 |
}
|
340 |
|
341 |
lightbox.draggable('enable');
|
342 |
+
}
|
343 |
+
}
|
344 |
},
|
345 |
+
|
346 |
/**
|
347 |
* Initialize this lightbox instance.
|
348 |
*
|
355 |
{
|
356 |
var i = 0,
|
357 |
prop = null;
|
358 |
+
|
359 |
for(prop in FLLightbox._instances) {
|
360 |
i++;
|
361 |
}
|
362 |
+
|
363 |
this._defaults = $.extend({}, this._defaults, settings);
|
364 |
this._id = new Date().getTime() + i;
|
365 |
FLLightbox._instances[this._id] = this;
|
366 |
},
|
367 |
+
|
368 |
/**
|
369 |
* Renders the main wrapper.
|
370 |
*
|
375 |
_render: function()
|
376 |
{
|
377 |
this._node = $('<div class="fl-lightbox-wrap" data-instance-id="'+ this._id +'"><div class="fl-lightbox-mask"></div><div class="fl-lightbox"><div class="fl-lightbox-content-wrap"><div class="fl-lightbox-content"></div></div></div></div>');
|
378 |
+
|
379 |
this._node.addClass(this._defaults.className);
|
380 |
+
|
381 |
$('body').append(this._node);
|
382 |
},
|
383 |
+
|
384 |
/**
|
385 |
* Binds events for this instance.
|
386 |
*
|
392 |
{
|
393 |
$(window).on('resize.fl-lightbox-' + this._id, $.proxy(this._delayedResize, this));
|
394 |
},
|
395 |
+
|
396 |
/**
|
397 |
* Unbinds events for this instance.
|
398 |
*
|
404 |
{
|
405 |
$(window).off('resize.fl-lightbox-' + this._id);
|
406 |
},
|
407 |
+
|
408 |
/**
|
409 |
* Resizes the lightbox after a delay.
|
410 |
*
|
415 |
_delayedResize: function()
|
416 |
{
|
417 |
clearTimeout(this._resizeTimer);
|
418 |
+
|
419 |
this._resizeTimer = setTimeout($.proxy(this._resize, this), 250);
|
420 |
+
|
421 |
this.renderResize('window_resize');
|
422 |
},
|
423 |
+
|
424 |
/**
|
425 |
* Resizes the lightbox.
|
426 |
*
|
431 |
_resize: function()
|
432 |
{
|
433 |
if(this._visible) {
|
434 |
+
|
435 |
var lightbox = this._node.find('.fl-lightbox'),
|
436 |
boxHeight = lightbox.height(),
|
437 |
boxWidth = lightbox.width(),
|
440 |
winWidth = win.width(),
|
441 |
top = '0px',
|
442 |
left = ((winWidth - boxWidth)/2 - 30) + 'px';
|
443 |
+
|
444 |
// Zero out margins and position.
|
445 |
lightbox.css({
|
446 |
'margin' : '0px',
|
447 |
'top' : 'auto',
|
448 |
'left' : 'auto'
|
449 |
});
|
450 |
+
|
451 |
+
// Get the top position.
|
452 |
if(winHeight - 80 > boxHeight) {
|
453 |
top = ((winHeight - boxHeight)/2 - 40) + 'px';
|
454 |
}
|
455 |
+
|
456 |
// Set the positions.
|
457 |
if(this._draggable) {
|
458 |
lightbox.css('top', top);
|
465 |
}
|
466 |
}
|
467 |
},
|
468 |
+
|
469 |
/**
|
470 |
+
* Closes the lightbox when the esc key is pressed.
|
471 |
* Currently not in use.
|
472 |
*
|
473 |
* @since 1.0
|
504 |
}
|
505 |
};
|
506 |
|
507 |
+
})(jQuery);
|
json/fonts.json
ADDED
@@ -0,0 +1,4663 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[{
|
2 |
+
"ABeeZee": [
|
3 |
+
"regular",
|
4 |
+
"italic"
|
5 |
+
]
|
6 |
+
}, {
|
7 |
+
"Abel": [
|
8 |
+
"regular"
|
9 |
+
]
|
10 |
+
}, {
|
11 |
+
"Abhaya Libre": [
|
12 |
+
"regular",
|
13 |
+
"500",
|
14 |
+
"600",
|
15 |
+
"700",
|
16 |
+
"800"
|
17 |
+
]
|
18 |
+
}, {
|
19 |
+
"Abril Fatface": [
|
20 |
+
"regular"
|
21 |
+
]
|
22 |
+
}, {
|
23 |
+
"Aclonica": [
|
24 |
+
"regular"
|
25 |
+
]
|
26 |
+
}, {
|
27 |
+
"Acme": [
|
28 |
+
"regular"
|
29 |
+
]
|
30 |
+
}, {
|
31 |
+
"Actor": [
|
32 |
+
"regular"
|
33 |
+
]
|
34 |
+
}, {
|
35 |
+
"Adamina": [
|
36 |
+
"regular"
|
37 |
+
]
|
38 |
+
}, {
|
39 |
+
"Advent Pro": [
|
40 |
+
"100",
|
41 |
+
"200",
|
42 |
+
"300",
|
43 |
+
"regular",
|
44 |
+
"500",
|
45 |
+
"600",
|
46 |
+
"700"
|
47 |
+
]
|
48 |
+
}, {
|
49 |
+
"Aguafina Script": [
|
50 |
+
"regular"
|
51 |
+
]
|
52 |
+
}, {
|
53 |
+
"Akronim": [
|
54 |
+
"regular"
|
55 |
+
]
|
56 |
+
}, {
|
57 |
+
"Aladin": [
|
58 |
+
"regular"
|
59 |
+
]
|
60 |
+
}, {
|
61 |
+
"Aldrich": [
|
62 |
+
"regular"
|
63 |
+
]
|
64 |
+
}, {
|
65 |
+
"Alef": [
|
66 |
+
"regular",
|
67 |
+
"700"
|
68 |
+
]
|
69 |
+
}, {
|
70 |
+
"Alegreya": [
|
71 |
+
"regular",
|
72 |
+
"italic",
|
73 |
+
"700",
|
74 |
+
"700italic",
|
75 |
+
"900",
|
76 |
+
"900italic"
|
77 |
+
]
|
78 |
+
}, {
|
79 |
+
"Alegreya SC": [
|
80 |
+
"regular",
|
81 |
+
"italic",
|
82 |
+
"700",
|
83 |
+
"700italic",
|
84 |
+
"900",
|
85 |
+
"900italic"
|
86 |
+
]
|
87 |
+
}, {
|
88 |
+
"Alegreya Sans": [
|
89 |
+
"100",
|
90 |
+
"100italic",
|
91 |
+
"300",
|
92 |
+
"300italic",
|
93 |
+
"regular",
|
94 |
+
"italic",
|
95 |
+
"500",
|
96 |
+
"500italic",
|
97 |
+
"700",
|
98 |
+
"700italic",
|
99 |
+
"800",
|
100 |
+
"800italic",
|
101 |
+
"900",
|
102 |
+
"900italic"
|
103 |
+
]
|
104 |
+
}, {
|
105 |
+
"Alegreya Sans SC": [
|
106 |
+
"100",
|
107 |
+
"100italic",
|
108 |
+
"300",
|
109 |
+
"300italic",
|
110 |
+
"regular",
|
111 |
+
"italic",
|
112 |
+
"500",
|
113 |
+
"500italic",
|
114 |
+
"700",
|
115 |
+
"700italic",
|
116 |
+
"800",
|
117 |
+
"800italic",
|
118 |
+
"900",
|
119 |
+
"900italic"
|
120 |
+
]
|
121 |
+
}, {
|
122 |
+
"Alex Brush": [
|
123 |
+
"regular"
|
124 |
+
]
|
125 |
+
}, {
|
126 |
+
"Alfa Slab One": [
|
127 |
+
"regular"
|
128 |
+
]
|
129 |
+
}, {
|
130 |
+
"Alice": [
|
131 |
+
"regular"
|
132 |
+
]
|
133 |
+
}, {
|
134 |
+
"Alike": [
|
135 |
+
"regular"
|
136 |
+
]
|
137 |
+
}, {
|
138 |
+
"Alike Angular": [
|
139 |
+
"regular"
|
140 |
+
]
|
141 |
+
}, {
|
142 |
+
"Allan": [
|
143 |
+
"regular",
|
144 |
+
"700"
|
145 |
+
]
|
146 |
+
}, {
|
147 |
+
"Allerta": [
|
148 |
+
"regular"
|
149 |
+
]
|
150 |
+
}, {
|
151 |
+
"Allerta Stencil": [
|
152 |
+
"regular"
|
153 |
+
]
|
154 |
+
}, {
|
155 |
+
"Allura": [
|
156 |
+
"regular"
|
157 |
+
]
|
158 |
+
}, {
|
159 |
+
"Almendra": [
|
160 |
+
"regular",
|
161 |
+
"italic",
|
162 |
+
"700",
|
163 |
+
"700italic"
|
164 |
+
]
|
165 |
+
}, {
|
166 |
+
"Almendra Display": [
|
167 |
+
"regular"
|
168 |
+
]
|
169 |
+
}, {
|
170 |
+
"Almendra SC": [
|
171 |
+
"regular"
|
172 |
+
]
|
173 |
+
}, {
|
174 |
+
"Amarante": [
|
175 |
+
"regular"
|
176 |
+
]
|
177 |
+
}, {
|
178 |
+
"Amaranth": [
|
179 |
+
"regular",
|
180 |
+
"italic",
|
181 |
+
"700",
|
182 |
+
"700italic"
|
183 |
+
]
|
184 |
+
}, {
|
185 |
+
"Amatic SC": [
|
186 |
+
"regular",
|
187 |
+
"700"
|
188 |
+
]
|
189 |
+
}, {
|
190 |
+
"Amatica SC": [
|
191 |
+
"regular",
|
192 |
+
"700"
|
193 |
+
]
|
194 |
+
}, {
|
195 |
+
"Amethysta": [
|
196 |
+
"regular"
|
197 |
+
]
|
198 |
+
}, {
|
199 |
+
"Amiko": [
|
200 |
+
"regular",
|
201 |
+
"600",
|
202 |
+
"700"
|
203 |
+
]
|
204 |
+
}, {
|
205 |
+
"Amiri": [
|
206 |
+
"regular",
|
207 |
+
"italic",
|
208 |
+
"700",
|
209 |
+
"700italic"
|
210 |
+
]
|
211 |
+
}, {
|
212 |
+
"Amita": [
|
213 |
+
"regular",
|
214 |
+
"700"
|
215 |
+
]
|
216 |
+
}, {
|
217 |
+
"Anaheim": [
|
218 |
+
"regular"
|
219 |
+
]
|
220 |
+
}, {
|
221 |
+
"Andada": [
|
222 |
+
"regular"
|
223 |
+
]
|
224 |
+
}, {
|
225 |
+
"Andika": [
|
226 |
+
"regular"
|
227 |
+
]
|
228 |
+
}, {
|
229 |
+
"Angkor": [
|
230 |
+
"regular"
|
231 |
+
]
|
232 |
+
}, {
|
233 |
+
"Annie Use Your Telescope": [
|
234 |
+
"regular"
|
235 |
+
]
|
236 |
+
}, {
|
237 |
+
"Anonymous Pro": [
|
238 |
+
"regular",
|
239 |
+
"italic",
|
240 |
+
"700",
|
241 |
+
"700italic"
|
242 |
+
]
|
243 |
+
}, {
|
244 |
+
"Antic": [
|
245 |
+
"regular"
|
246 |
+
]
|
247 |
+
}, {
|
248 |
+
"Antic Didone": [
|
249 |
+
"regular"
|
250 |
+
]
|
251 |
+
}, {
|
252 |
+
"Antic Slab": [
|
253 |
+
"regular"
|
254 |
+
]
|
255 |
+
}, {
|
256 |
+
"Anton": [
|
257 |
+
"regular"
|
258 |
+
]
|
259 |
+
}, {
|
260 |
+
"Arapey": [
|
261 |
+
"regular",
|
262 |
+
"italic"
|
263 |
+
]
|
264 |
+
}, {
|
265 |
+
"Arbutus": [
|
266 |
+
"regular"
|
267 |
+
]
|
268 |
+
}, {
|
269 |
+
"Arbutus Slab": [
|
270 |
+
"regular"
|
271 |
+
]
|
272 |
+
}, {
|
273 |
+
"Architects Daughter": [
|
274 |
+
"regular"
|
275 |
+
]
|
276 |
+
}, {
|
277 |
+
"Archivo": [
|
278 |
+
"regular",
|
279 |
+
"italic",
|
280 |
+
"500",
|
281 |
+
"500italic",
|
282 |
+
"600",
|
283 |
+
"600italic",
|
284 |
+
"700",
|
285 |
+
"700italic"
|
286 |
+
]
|
287 |
+
}, {
|
288 |
+
"Archivo Black": [
|
289 |
+
"regular"
|
290 |
+
]
|
291 |
+
}, {
|
292 |
+
"Archivo Narrow": [
|
293 |
+
"regular",
|
294 |
+
"italic",
|
295 |
+
"500",
|
296 |
+
"500italic",
|
297 |
+
"600",
|
298 |
+
"600italic",
|
299 |
+
"700",
|
300 |
+
"700italic"
|
301 |
+
]
|
302 |
+
}, {
|
303 |
+
"Aref Ruqaa": [
|
304 |
+
"regular",
|
305 |
+
"700"
|
306 |
+
]
|
307 |
+
}, {
|
308 |
+
"Arima Madurai": [
|
309 |
+
"100",
|
310 |
+
"200",
|
311 |
+
"300",
|
312 |
+
"regular",
|
313 |
+
"500",
|
314 |
+
"700",
|
315 |
+
"800",
|
316 |
+
"900"
|
317 |
+
]
|
318 |
+
}, {
|
319 |
+
"Arimo": [
|
320 |
+
"regular",
|
321 |
+
"italic",
|
322 |
+
"700",
|
323 |
+
"700italic"
|
324 |
+
]
|
325 |
+
}, {
|
326 |
+
"Arizonia": [
|
327 |
+
"regular"
|
328 |
+
]
|
329 |
+
}, {
|
330 |
+
"Armata": [
|
331 |
+
"regular"
|
332 |
+
]
|
333 |
+
}, {
|
334 |
+
"Arsenal": [
|
335 |
+
"regular",
|
336 |
+
"italic",
|
337 |
+
"700",
|
338 |
+
"700italic"
|
339 |
+
]
|
340 |
+
}, {
|
341 |
+
"Artifika": [
|
342 |
+
"regular"
|
343 |
+
]
|
344 |
+
}, {
|
345 |
+
"Arvo": [
|
346 |
+
"regular",
|
347 |
+
"italic",
|
348 |
+
"700",
|
349 |
+
"700italic"
|
350 |
+
]
|
351 |
+
}, {
|
352 |
+
"Arya": [
|
353 |
+
"regular",
|
354 |
+
"700"
|
355 |
+
]
|
356 |
+
}, {
|
357 |
+
"Asap": [
|
358 |
+
"regular",
|
359 |
+
"italic",
|
360 |
+
"500",
|
361 |
+
"500italic",
|
362 |
+
"600",
|
363 |
+
"600italic",
|
364 |
+
"700",
|
365 |
+
"700italic"
|
366 |
+
]
|
367 |
+
}, {
|
368 |
+
"Asap Condensed": [
|
369 |
+
"regular",
|
370 |
+
"italic",
|
371 |
+
"500",
|
372 |
+
"500italic",
|
373 |
+
"600",
|
374 |
+
"600italic",
|
375 |
+
"700",
|
376 |
+
"700italic"
|
377 |
+
]
|
378 |
+
}, {
|
379 |
+
"Asar": [
|
380 |
+
"regular"
|
381 |
+
]
|
382 |
+
}, {
|
383 |
+
"Asset": [
|
384 |
+
"regular"
|
385 |
+
]
|
386 |
+
}, {
|
387 |
+
"Assistant": [
|
388 |
+
"200",
|
389 |
+
"300",
|
390 |
+
"regular",
|
391 |
+
"600",
|
392 |
+
"700",
|
393 |
+
"800"
|
394 |
+
]
|
395 |
+
}, {
|
396 |
+
"Astloch": [
|
397 |
+
"regular",
|
398 |
+
"700"
|
399 |
+
]
|
400 |
+
}, {
|
401 |
+
"Asul": [
|
402 |
+
"regular",
|
403 |
+
"700"
|
404 |
+
]
|
405 |
+
}, {
|
406 |
+
"Athiti": [
|
407 |
+
"200",
|
408 |
+
"300",
|
409 |
+
"regular",
|
410 |
+
"500",
|
411 |
+
"600",
|
412 |
+
"700"
|
413 |
+
]
|
414 |
+
}, {
|
415 |
+
"Atma": [
|
416 |
+
"300",
|
417 |
+
"regular",
|
418 |
+
"500",
|
419 |
+
"600",
|
420 |
+
"700"
|
421 |
+
]
|
422 |
+
}, {
|
423 |
+
"Atomic Age": [
|
424 |
+
"regular"
|
425 |
+
]
|
426 |
+
}, {
|
427 |
+
"Aubrey": [
|
428 |
+
"regular"
|
429 |
+
]
|
430 |
+
}, {
|
431 |
+
"Audiowide": [
|
432 |
+
"regular"
|
433 |
+
]
|
434 |
+
}, {
|
435 |
+
"Autour One": [
|
436 |
+
"regular"
|
437 |
+
]
|
438 |
+
}, {
|
439 |
+
"Average": [
|
440 |
+
"regular"
|
441 |
+
]
|
442 |
+
}, {
|
443 |
+
"Average Sans": [
|
444 |
+
"regular"
|
445 |
+
]
|
446 |
+
}, {
|
447 |
+
"Averia Gruesa Libre": [
|
448 |
+
"regular"
|
449 |
+
]
|
450 |
+
}, {
|
451 |
+
"Averia Libre": [
|
452 |
+
"300",
|
453 |
+
"300italic",
|
454 |
+
"regular",
|
455 |
+
"italic",
|
456 |
+
"700",
|
457 |
+
"700italic"
|
458 |
+
]
|
459 |
+
}, {
|
460 |
+
"Averia Sans Libre": [
|
461 |
+
"300",
|
462 |
+
"300italic",
|
463 |
+
"regular",
|
464 |
+
"italic",
|
465 |
+
"700",
|
466 |
+
"700italic"
|
467 |
+
]
|
468 |
+
}, {
|
469 |
+
"Averia Serif Libre": [
|
470 |
+
"300",
|
471 |
+
"300italic",
|
472 |
+
"regular",
|
473 |
+
"italic",
|
474 |
+
"700",
|
475 |
+
"700italic"
|
476 |
+
]
|
477 |
+
}, {
|
478 |
+
"Bad Script": [
|
479 |
+
"regular"
|
480 |
+
]
|
481 |
+
}, {
|
482 |
+
"Bahiana": [
|
483 |
+
"regular"
|
484 |
+
]
|
485 |
+
}, {
|
486 |
+
"Baloo": [
|
487 |
+
"regular"
|
488 |
+
]
|
489 |
+
}, {
|
490 |
+
"Baloo Bhai": [
|
491 |
+
"regular"
|
492 |
+
]
|
493 |
+
}, {
|
494 |
+
"Baloo Bhaijaan": [
|
495 |
+
"regular"
|
496 |
+
]
|
497 |
+
}, {
|
498 |
+
"Baloo Bhaina": [
|
499 |
+
"regular"
|
500 |
+
]
|
501 |
+
}, {
|
502 |
+
"Baloo Chettan": [
|
503 |
+
"regular"
|
504 |
+
]
|
505 |
+
}, {
|
506 |
+
"Baloo Da": [
|
507 |
+
"regular"
|
508 |
+
]
|
509 |
+
}, {
|
510 |
+
"Baloo Paaji": [
|
511 |
+
"regular"
|
512 |
+
]
|
513 |
+
}, {
|
514 |
+
"Baloo Tamma": [
|
515 |
+
"regular"
|
516 |
+
]
|
517 |
+
}, {
|
518 |
+
"Baloo Tammudu": [
|
519 |
+
"regular"
|
520 |
+
]
|
521 |
+
}, {
|
522 |
+
"Baloo Thambi": [
|
523 |
+
"regular"
|
524 |
+
]
|
525 |
+
}, {
|
526 |
+
"Balthazar": [
|
527 |
+
"regular"
|
528 |
+
]
|
529 |
+
}, {
|
530 |
+
"Bangers": [
|
531 |
+
"regular"
|
532 |
+
]
|
533 |
+
}, {
|
534 |
+
"Barrio": [
|
535 |
+
"regular"
|
536 |
+
]
|
537 |
+
}, {
|
538 |
+
"Basic": [
|
539 |
+
"regular"
|
540 |
+
]
|
541 |
+
}, {
|
542 |
+
"Battambang": [
|
543 |
+
"regular",
|
544 |
+
"700"
|
545 |
+
]
|
546 |
+
}, {
|
547 |
+
"Baumans": [
|
548 |
+
"regular"
|
549 |
+
]
|
550 |
+
}, {
|
551 |
+
"Bayon": [
|
552 |
+
"regular"
|
553 |
+
]
|
554 |
+
}, {
|
555 |
+
"Belgrano": [
|
556 |
+
"regular"
|
557 |
+
]
|
558 |
+
}, {
|
559 |
+
"Bellefair": [
|
560 |
+
"regular"
|
561 |
+
]
|
562 |
+
}, {
|
563 |
+
"Belleza": [
|
564 |
+
"regular"
|
565 |
+
]
|
566 |
+
}, {
|
567 |
+
"BenchNine": [
|
568 |
+
"300",
|
569 |
+
"regular",
|
570 |
+
"700"
|
571 |
+
]
|
572 |
+
}, {
|
573 |
+
"Bentham": [
|
574 |
+
"regular"
|
575 |
+
]
|
576 |
+
}, {
|
577 |
+
"Berkshire Swash": [
|
578 |
+
"regular"
|
579 |
+
]
|
580 |
+
}, {
|
581 |
+
"Bevan": [
|
582 |
+
"regular"
|
583 |
+
]
|
584 |
+
}, {
|
585 |
+
"Bigelow Rules": [
|
586 |
+
"regular"
|
587 |
+
]
|
588 |
+
}, {
|
589 |
+
"Bigshot One": [
|
590 |
+
"regular"
|
591 |
+
]
|
592 |
+
}, {
|
593 |
+
"Bilbo": [
|
594 |
+
"regular"
|
595 |
+
]
|
596 |
+
}, {
|
597 |
+
"Bilbo Swash Caps": [
|
598 |
+
"regular"
|
599 |
+
]
|
600 |
+
}, {
|
601 |
+
"BioRhyme": [
|
602 |
+
"200",
|
603 |
+
"300",
|
604 |
+
"regular",
|
605 |
+
"700",
|
606 |
+
"800"
|
607 |
+
]
|
608 |
+
}, {
|
609 |
+
"BioRhyme Expanded": [
|
610 |
+
"200",
|
611 |
+
"300",
|
612 |
+
"regular",
|
613 |
+
"700",
|
614 |
+
"800"
|
615 |
+
]
|
616 |
+
}, {
|
617 |
+
"Biryani": [
|
618 |
+
"200",
|
619 |
+
"300",
|
620 |
+
"regular",
|
621 |
+
"600",
|
622 |
+
"700",
|
623 |
+
"800",
|
624 |
+
"900"
|
625 |
+
]
|
626 |
+
}, {
|
627 |
+
"Bitter": [
|
628 |
+
"regular",
|
629 |
+
"italic",
|
630 |
+
"700"
|
631 |
+
]
|
632 |
+
}, {
|
633 |
+
"Black Ops One": [
|
634 |
+
"regular"
|
635 |
+
]
|
636 |
+
}, {
|
637 |
+
"Bokor": [
|
638 |
+
"regular"
|
639 |
+
]
|
640 |
+
}, {
|
641 |
+
"Bonbon": [
|
642 |
+
"regular"
|
643 |
+
]
|
644 |
+
}, {
|
645 |
+
"Boogaloo": [
|
646 |
+
"regular"
|
647 |
+
]
|
648 |
+
}, {
|
649 |
+
"Bowlby One": [
|
650 |
+
"regular"
|
651 |
+
]
|
652 |
+
}, {
|
653 |
+
"Bowlby One SC": [
|
654 |
+
"regular"
|
655 |
+
]
|
656 |
+
}, {
|
657 |
+
"Brawler": [
|
658 |
+
"regular"
|
659 |
+
]
|
660 |
+
}, {
|
661 |
+
"Bree Serif": [
|
662 |
+
"regular"
|
663 |
+
]
|
664 |
+
}, {
|
665 |
+
"Bubblegum Sans": [
|
666 |
+
"regular"
|
667 |
+
]
|
668 |
+
}, {
|
669 |
+
"Bubbler One": [
|
670 |
+
"regular"
|
671 |
+
]
|
672 |
+
}, {
|
673 |
+
"Buda": [
|
674 |
+
"300"
|
675 |
+
]
|
676 |
+
}, {
|
677 |
+
"Buenard": [
|
678 |
+
"regular",
|
679 |
+
"700"
|
680 |
+
]
|
681 |
+
}, {
|
682 |
+
"Bungee": [
|
683 |
+
"regular"
|
684 |
+
]
|
685 |
+
}, {
|
686 |
+
"Bungee Hairline": [
|
687 |
+
"regular"
|
688 |
+
]
|
689 |
+
}, {
|
690 |
+
"Bungee Inline": [
|
691 |
+
"regular"
|
692 |
+
]
|
693 |
+
}, {
|
694 |
+
"Bungee Outline": [
|
695 |
+
"regular"
|
696 |
+
]
|
697 |
+
}, {
|
698 |
+
"Bungee Shade": [
|
699 |
+
"regular"
|
700 |
+
]
|
701 |
+
}, {
|
702 |
+
"Butcherman": [
|
703 |
+
"regular"
|
704 |
+
]
|
705 |
+
}, {
|
706 |
+
"Butterfly Kids": [
|
707 |
+
"regular"
|
708 |
+
]
|
709 |
+
}, {
|
710 |
+
"Cabin": [
|
711 |
+
"regular",
|
712 |
+
"italic",
|
713 |
+
"500",
|
714 |
+
"500italic",
|
715 |
+
"600",
|
716 |
+
"600italic",
|
717 |
+
"700",
|
718 |
+
"700italic"
|
719 |
+
]
|
720 |
+
}, {
|
721 |
+
"Cabin Condensed": [
|
722 |
+
"regular",
|
723 |
+
"500",
|
724 |
+
"600",
|
725 |
+
"700"
|
726 |
+
]
|
727 |
+
}, {
|
728 |
+
"Cabin Sketch": [
|
729 |
+
"regular",
|
730 |
+
"700"
|
731 |
+
]
|
732 |
+
}, {
|
733 |
+
"Caesar Dressing": [
|
734 |
+
"regular"
|
735 |
+
]
|
736 |
+
}, {
|
737 |
+
"Cagliostro": [
|
738 |
+
"regular"
|
739 |
+
]
|
740 |
+
}, {
|
741 |
+
"Cairo": [
|
742 |
+
"200",
|
743 |
+
"300",
|
744 |
+
"regular",
|
745 |
+
"600",
|
746 |
+
"700",
|
747 |
+
"900"
|
748 |
+
]
|
749 |
+
}, {
|
750 |
+
"Calligraffitti": [
|
751 |
+
"regular"
|
752 |
+
]
|
753 |
+
}, {
|
754 |
+
"Cambay": [
|
755 |
+
"regular",
|
756 |
+
"italic",
|
757 |
+
"700",
|
758 |
+
"700italic"
|
759 |
+
]
|
760 |
+
}, {
|
761 |
+
"Cambo": [
|
762 |
+
"regular"
|
763 |
+
]
|
764 |
+
}, {
|
765 |
+
"Candal": [
|
766 |
+
"regular"
|
767 |
+
]
|
768 |
+
}, {
|
769 |
+
"Cantarell": [
|
770 |
+
"regular",
|
771 |
+
"italic",
|
772 |
+
"700",
|
773 |
+
"700italic"
|
774 |
+
]
|
775 |
+
}, {
|
776 |
+
"Cantata One": [
|
777 |
+
"regular"
|
778 |
+
]
|
779 |
+
}, {
|
780 |
+
"Cantora One": [
|
781 |
+
"regular"
|
782 |
+
]
|
783 |
+
}, {
|
784 |
+
"Capriola": [
|
785 |
+
"regular"
|
786 |
+
]
|
787 |
+
}, {
|
788 |
+
"Cardo": [
|
789 |
+
"regular",
|
790 |
+
"italic",
|
791 |
+
"700"
|
792 |
+
]
|
793 |
+
}, {
|
794 |
+
"Carme": [
|
795 |
+
"regular"
|
796 |
+
]
|
797 |
+
}, {
|
798 |
+
"Carrois Gothic": [
|
799 |
+
"regular"
|
800 |
+
]
|
801 |
+
}, {
|
802 |
+
"Carrois Gothic SC": [
|
803 |
+
"regular"
|
804 |
+
]
|
805 |
+
}, {
|
806 |
+
"Carter One": [
|
807 |
+
"regular"
|
808 |
+
]
|
809 |
+
}, {
|
810 |
+
"Catamaran": [
|
811 |
+
"100",
|
812 |
+
"200",
|
813 |
+
"300",
|
814 |
+
"regular",
|
815 |
+
"500",
|
816 |
+
"600",
|
817 |
+
"700",
|
818 |
+
"800",
|
819 |
+
"900"
|
820 |
+
]
|
821 |
+
}, {
|
822 |
+
"Caudex": [
|
823 |
+
"regular",
|
824 |
+
"italic",
|
825 |
+
"700",
|
826 |
+
"700italic"
|
827 |
+
]
|
828 |
+
}, {
|
829 |
+
"Caveat": [
|
830 |
+
"regular",
|
831 |
+
"700"
|
832 |
+
]
|
833 |
+
}, {
|
834 |
+
"Caveat Brush": [
|
835 |
+
"regular"
|
836 |
+
]
|
837 |
+
}, {
|
838 |
+
"Cedarville Cursive": [
|
839 |
+
"regular"
|
840 |
+
]
|
841 |
+
}, {
|
842 |
+
"Ceviche One": [
|
843 |
+
"regular"
|
844 |
+
]
|
845 |
+
}, {
|
846 |
+
"Changa": [
|
847 |
+
"200",
|
848 |
+
"300",
|
849 |
+
"regular",
|
850 |
+
"500",
|
851 |
+
"600",
|
852 |
+
"700",
|
853 |
+
"800"
|
854 |
+
]
|
855 |
+
}, {
|
856 |
+
"Changa One": [
|
857 |
+
"regular",
|
858 |
+
"italic"
|
859 |
+
]
|
860 |
+
}, {
|
861 |
+
"Chango": [
|
862 |
+
"regular"
|
863 |
+
]
|
864 |
+
}, {
|
865 |
+
"Chathura": [
|
866 |
+
"100",
|
867 |
+
"300",
|
868 |
+
"regular",
|
869 |
+
"700",
|
870 |
+
"800"
|
871 |
+
]
|
872 |
+
}, {
|
873 |
+
"Chau Philomene One": [
|
874 |
+
"regular",
|
875 |
+
"italic"
|
876 |
+
]
|
877 |
+
}, {
|
878 |
+
"Chela One": [
|
879 |
+
"regular"
|
880 |
+
]
|
881 |
+
}, {
|
882 |
+
"Chelsea Market": [
|
883 |
+
"regular"
|
884 |
+
]
|
885 |
+
}, {
|
886 |
+
"Chenla": [
|
887 |
+
"regular"
|
888 |
+
]
|
889 |
+
}, {
|
890 |
+
"Cherry Cream Soda": [
|
891 |
+
"regular"
|
892 |
+
]
|
893 |
+
}, {
|
894 |
+
"Cherry Swash": [
|
895 |
+
"regular",
|
896 |
+
"700"
|
897 |
+
]
|
898 |
+
}, {
|
899 |
+
"Chewy": [
|
900 |
+
"regular"
|
901 |
+
]
|
902 |
+
}, {
|
903 |
+
"Chicle": [
|
904 |
+
"regular"
|
905 |
+
]
|
906 |
+
}, {
|
907 |
+
"Chivo": [
|
908 |
+
"300",
|
909 |
+
"300italic",
|
910 |
+
"regular",
|
911 |
+
"italic",
|
912 |
+
"700",
|
913 |
+
"700italic",
|
914 |
+
"900",
|
915 |
+
"900italic"
|
916 |
+
]
|
917 |
+
}, {
|
918 |
+
"Chonburi": [
|
919 |
+
"regular"
|
920 |
+
]
|
921 |
+
}, {
|
922 |
+
"Cinzel": [
|
923 |
+
"regular",
|
924 |
+
"700",
|
925 |
+
"900"
|
926 |
+
]
|
927 |
+
}, {
|
928 |
+
"Cinzel Decorative": [
|
929 |
+
"regular",
|
930 |
+
"700",
|
931 |
+
"900"
|
932 |
+
]
|
933 |
+
}, {
|
934 |
+
"Clicker Script": [
|
935 |
+
"regular"
|
936 |
+
]
|
937 |
+
}, {
|
938 |
+
"Coda": [
|
939 |
+
"regular",
|
940 |
+
"800"
|
941 |
+
]
|
942 |
+
}, {
|
943 |
+
"Coda Caption": [
|
944 |
+
"800"
|
945 |
+
]
|
946 |
+
}, {
|
947 |
+
"Codystar": [
|
948 |
+
"300",
|
949 |
+
"regular"
|
950 |
+
]
|
951 |
+
}, {
|
952 |
+
"Coiny": [
|
953 |
+
"regular"
|
954 |
+
]
|
955 |
+
}, {
|
956 |
+
"Combo": [
|
957 |
+
"regular"
|
958 |
+
]
|
959 |
+
}, {
|
960 |
+
"Comfortaa": [
|
961 |
+
"300",
|
962 |
+
"regular",
|
963 |
+
"700"
|
964 |
+
]
|
965 |
+
}, {
|
966 |
+
"Coming Soon": [
|
967 |
+
"regular"
|
968 |
+
]
|
969 |
+
}, {
|
970 |
+
"Concert One": [
|
971 |
+
"regular"
|
972 |
+
]
|
973 |
+
}, {
|
974 |
+
"Condiment": [
|
975 |
+
"regular"
|
976 |
+
]
|
977 |
+
}, {
|
978 |
+
"Content": [
|
979 |
+
"regular",
|
980 |
+
"700"
|
981 |
+
]
|
982 |
+
}, {
|
983 |
+
"Contrail One": [
|
984 |
+
"regular"
|
985 |
+
]
|
986 |
+
}, {
|
987 |
+
"Convergence": [
|
988 |
+
"regular"
|
989 |
+
]
|
990 |
+
}, {
|
991 |
+
"Cookie": [
|
992 |
+
"regular"
|
993 |
+
]
|
994 |
+
}, {
|
995 |
+
"Copse": [
|
996 |
+
"regular"
|
997 |
+
]
|
998 |
+
}, {
|
999 |
+
"Corben": [
|
1000 |
+
"regular",
|
1001 |
+
"700"
|
1002 |
+
]
|
1003 |
+
}, {
|
1004 |
+
"Cormorant": [
|
1005 |
+
"300",
|
1006 |
+
"300italic",
|
1007 |
+
"regular",
|
1008 |
+
"italic",
|
1009 |
+
"500",
|
1010 |
+
"500italic",
|
1011 |
+
"600",
|
1012 |
+
"600italic",
|
1013 |
+
"700",
|
1014 |
+
"700italic"
|
1015 |
+
]
|
1016 |
+
}, {
|
1017 |
+
"Cormorant Garamond": [
|
1018 |
+
"300",
|
1019 |
+
"300italic",
|
1020 |
+
"regular",
|
1021 |
+
"italic",
|
1022 |
+
"500",
|
1023 |
+
"500italic",
|
1024 |
+
"600",
|
1025 |
+
"600italic",
|
1026 |
+
"700",
|
1027 |
+
"700italic"
|
1028 |
+
]
|
1029 |
+
}, {
|
1030 |
+
"Cormorant Infant": [
|
1031 |
+
"300",
|
1032 |
+
"300italic",
|
1033 |
+
"regular",
|
1034 |
+
"italic",
|
1035 |
+
"500",
|
1036 |
+
"500italic",
|
1037 |
+
"600",
|
1038 |
+
"600italic",
|
1039 |
+
"700",
|
1040 |
+
"700italic"
|
1041 |
+
]
|
1042 |
+
}, {
|
1043 |
+
"Cormorant SC": [
|
1044 |
+
"300",
|
1045 |
+
"regular",
|
1046 |
+
"500",
|
1047 |
+
"600",
|
1048 |
+
"700"
|
1049 |
+
]
|
1050 |
+
}, {
|
1051 |
+
"Cormorant Unicase": [
|
1052 |
+
"300",
|
1053 |
+
"regular",
|
1054 |
+
"500",
|
1055 |
+
"600",
|
1056 |
+
"700"
|
1057 |
+
]
|
1058 |
+
}, {
|
1059 |
+
"Cormorant Upright": [
|
1060 |
+
"300",
|
1061 |
+
"regular",
|
1062 |
+
"500",
|
1063 |
+
"600",
|
1064 |
+
"700"
|
1065 |
+
]
|
1066 |
+
}, {
|
1067 |
+
"Courgette": [
|
1068 |
+
"regular"
|
1069 |
+
]
|
1070 |
+
}, {
|
1071 |
+
"Cousine": [
|
1072 |
+
"regular",
|
1073 |
+
"italic",
|
1074 |
+
"700",
|
1075 |
+
"700italic"
|
1076 |
+
]
|
1077 |
+
}, {
|
1078 |
+
"Coustard": [
|
1079 |
+
"regular",
|
1080 |
+
"900"
|
1081 |
+
]
|
1082 |
+
}, {
|
1083 |
+
"Covered By Your Grace": [
|
1084 |
+
"regular"
|
1085 |
+
]
|
1086 |
+
}, {
|
1087 |
+
"Crafty Girls": [
|
1088 |
+
"regular"
|
1089 |
+
]
|
1090 |
+
}, {
|
1091 |
+
"Creepster": [
|
1092 |
+
"regular"
|
1093 |
+
]
|
1094 |
+
}, {
|
1095 |
+
"Crete Round": [
|
1096 |
+
"regular",
|
1097 |
+
"italic"
|
1098 |
+
]
|
1099 |
+
}, {
|
1100 |
+
"Crimson Text": [
|
1101 |
+
"regular",
|
1102 |
+
"italic",
|
1103 |
+
"600",
|
1104 |
+
"600italic",
|
1105 |
+
"700",
|
1106 |
+
"700italic"
|
1107 |
+
]
|
1108 |
+
}, {
|
1109 |
+
"Croissant One": [
|
1110 |
+
"regular"
|
1111 |
+
]
|
1112 |
+
}, {
|
1113 |
+
"Crushed": [
|
1114 |
+
"regular"
|
1115 |
+
]
|
1116 |
+
}, {
|
1117 |
+
"Cuprum": [
|
1118 |
+
"regular",
|
1119 |
+
"italic",
|
1120 |
+
"700",
|
1121 |
+
"700italic"
|
1122 |
+
]
|
1123 |
+
}, {
|
1124 |
+
"Cutive": [
|
1125 |
+
"regular"
|
1126 |
+
]
|
1127 |
+
}, {
|
1128 |
+
"Cutive Mono": [
|
1129 |
+
"regular"
|
1130 |
+
]
|
1131 |
+
}, {
|
1132 |
+
"Damion": [
|
1133 |
+
"regular"
|
1134 |
+
]
|
1135 |
+
}, {
|
1136 |
+
"Dancing Script": [
|
1137 |
+
"regular",
|
1138 |
+
"700"
|
1139 |
+
]
|
1140 |
+
}, {
|
1141 |
+
"Dangrek": [
|
1142 |
+
"regular"
|
1143 |
+
]
|
1144 |
+
}, {
|
1145 |
+
"David Libre": [
|
1146 |
+
"regular",
|
1147 |
+
"500",
|
1148 |
+
"700"
|
1149 |
+
]
|
1150 |
+
}, {
|
1151 |
+
"Dawning of a New Day": [
|
1152 |
+
"regular"
|
1153 |
+
]
|
1154 |
+
}, {
|
1155 |
+
"Days One": [
|
1156 |
+
"regular"
|
1157 |
+
]
|
1158 |
+
}, {
|
1159 |
+
"Dekko": [
|
1160 |
+
"regular"
|
1161 |
+
]
|
1162 |
+
}, {
|
1163 |
+
"Delius": [
|
1164 |
+
"regular"
|
1165 |
+
]
|
1166 |
+
}, {
|
1167 |
+
"Delius Swash Caps": [
|
1168 |
+
"regular"
|
1169 |
+
]
|
1170 |
+
}, {
|
1171 |
+
"Delius Unicase": [
|
1172 |
+
"regular",
|
1173 |
+
"700"
|
1174 |
+
]
|
1175 |
+
}, {
|
1176 |
+
"Della Respira": [
|
1177 |
+
"regular"
|
1178 |
+
]
|
1179 |
+
}, {
|
1180 |
+
"Denk One": [
|
1181 |
+
"regular"
|
1182 |
+
]
|
1183 |
+
}, {
|
1184 |
+
"Devonshire": [
|
1185 |
+
"regular"
|
1186 |
+
]
|
1187 |
+
}, {
|
1188 |
+
"Dhurjati": [
|
1189 |
+
"regular"
|
1190 |
+
]
|
1191 |
+
}, {
|
1192 |
+
"Didact Gothic": [
|
1193 |
+
"regular"
|
1194 |
+
]
|
1195 |
+
}, {
|
1196 |
+
"Diplomata": [
|
1197 |
+
"regular"
|
1198 |
+
]
|
1199 |
+
}, {
|
1200 |
+
"Diplomata SC": [
|
1201 |
+
"regular"
|
1202 |
+
]
|
1203 |
+
}, {
|
1204 |
+
"Domine": [
|
1205 |
+
"regular",
|
1206 |
+
"700"
|
1207 |
+
]
|
1208 |
+
}, {
|
1209 |
+
"Donegal One": [
|
1210 |
+
"regular"
|
1211 |
+
]
|
1212 |
+
}, {
|
1213 |
+
"Doppio One": [
|
1214 |
+
"regular"
|
1215 |
+
]
|
1216 |
+
}, {
|
1217 |
+
"Dorsa": [
|
1218 |
+
"regular"
|
1219 |
+
]
|
1220 |
+
}, {
|
1221 |
+
"Dosis": [
|
1222 |
+
"200",
|
1223 |
+
"300",
|
1224 |
+
"regular",
|
1225 |
+
"500",
|
1226 |
+
"600",
|
1227 |
+
"700",
|
1228 |
+
"800"
|
1229 |
+
]
|
1230 |
+
}, {
|
1231 |
+
"Dr Sugiyama": [
|
1232 |
+
"regular"
|
1233 |
+
]
|
1234 |
+
}, {
|
1235 |
+
"Droid Sans": [
|
1236 |
+
"regular",
|
1237 |
+
"700"
|
1238 |
+
]
|
1239 |
+
}, {
|
1240 |
+
"Droid Sans Mono": [
|
1241 |
+
"regular"
|
1242 |
+
]
|
1243 |
+
}, {
|
1244 |
+
"Droid Serif": [
|
1245 |
+
"regular",
|
1246 |
+
"italic",
|
1247 |
+
"700",
|
1248 |
+
"700italic"
|
1249 |
+
]
|
1250 |
+
}, {
|
1251 |
+
"Duru Sans": [
|
1252 |
+
"regular"
|
1253 |
+
]
|
1254 |
+
}, {
|
1255 |
+
"Dynalight": [
|
1256 |
+
"regular"
|
1257 |
+
]
|
1258 |
+
}, {
|
1259 |
+
"EB Garamond": [
|
1260 |
+
"regular"
|
1261 |
+
]
|
1262 |
+
}, {
|
1263 |
+
"Eagle Lake": [
|
1264 |
+
"regular"
|
1265 |
+
]
|
1266 |
+
}, {
|
1267 |
+
"Eater": [
|
1268 |
+
"regular"
|
1269 |
+
]
|
1270 |
+
}, {
|
1271 |
+
"Economica": [
|
1272 |
+
"regular",
|
1273 |
+
"italic",
|
1274 |
+
"700",
|
1275 |
+
"700italic"
|
1276 |
+
]
|
1277 |
+
}, {
|
1278 |
+
"Eczar": [
|
1279 |
+
"regular",
|
1280 |
+
"500",
|
1281 |
+
"600",
|
1282 |
+
"700",
|
1283 |
+
"800"
|
1284 |
+
]
|
1285 |
+
}, {
|
1286 |
+
"El Messiri": [
|
1287 |
+
"regular",
|
1288 |
+
"500",
|
1289 |
+
"600",
|
1290 |
+
"700"
|
1291 |
+
]
|
1292 |
+
}, {
|
1293 |
+
"Electrolize": [
|
1294 |
+
"regular"
|
1295 |
+
]
|
1296 |
+
}, {
|
1297 |
+
"Elsie": [
|
1298 |
+
"regular",
|
1299 |
+
"900"
|
1300 |
+
]
|
1301 |
+
}, {
|
1302 |
+
"Elsie Swash Caps": [
|
1303 |
+
"regular",
|
1304 |
+
"900"
|
1305 |
+
]
|
1306 |
+
}, {
|
1307 |
+
"Emblema One": [
|
1308 |
+
"regular"
|
1309 |
+
]
|
1310 |
+
}, {
|
1311 |
+
"Emilys Candy": [
|
1312 |
+
"regular"
|
1313 |
+
]
|
1314 |
+
}, {
|
1315 |
+
"Encode Sans": [
|
1316 |
+
"100",
|
1317 |
+
"200",
|
1318 |
+
"300",
|
1319 |
+
"regular",
|
1320 |
+
"500",
|
1321 |
+
"600",
|
1322 |
+
"700",
|
1323 |
+
"800",
|
1324 |
+
"900"
|
1325 |
+
]
|
1326 |
+
}, {
|
1327 |
+
"Encode Sans Condensed": [
|
1328 |
+
"100",
|
1329 |
+
"200",
|
1330 |
+
"300",
|
1331 |
+
"regular",
|
1332 |
+
"500",
|
1333 |
+
"600",
|
1334 |
+
"700",
|
1335 |
+
"800",
|
1336 |
+
"900"
|
1337 |
+
]
|
1338 |
+
}, {
|
1339 |
+
"Encode Sans Expanded": [
|
1340 |
+
"100",
|
1341 |
+
"200",
|
1342 |
+
"300",
|
1343 |
+
"regular",
|
1344 |
+
"500",
|
1345 |
+
"600",
|
1346 |
+
"700",
|
1347 |
+
"800",
|
1348 |
+
"900"
|
1349 |
+
]
|
1350 |
+
}, {
|
1351 |
+
"Encode Sans Semi Condensed": [
|
1352 |
+
"100",
|
1353 |
+
"200",
|
1354 |
+
"300",
|
1355 |
+
"regular",
|
1356 |
+
"500",
|
1357 |
+
"600",
|
1358 |
+
"700",
|
1359 |
+
"800",
|
1360 |
+
"900"
|
1361 |
+
]
|
1362 |
+
}, {
|
1363 |
+
"Encode Sans Semi Expanded": [
|
1364 |
+
"100",
|
1365 |
+
"200",
|
1366 |
+
"300",
|
1367 |
+
"regular",
|
1368 |
+
"500",
|
1369 |
+
"600",
|
1370 |
+
"700",
|
1371 |
+
"800",
|
1372 |
+
"900"
|
1373 |
+
]
|
1374 |
+
}, {
|
1375 |
+
"Engagement": [
|
1376 |
+
"regular"
|
1377 |
+
]
|
1378 |
+
}, {
|
1379 |
+
"Englebert": [
|
1380 |
+
"regular"
|
1381 |
+
]
|
1382 |
+
}, {
|
1383 |
+
"Enriqueta": [
|
1384 |
+
"regular",
|
1385 |
+
"700"
|
1386 |
+
]
|
1387 |
+
}, {
|
1388 |
+
"Erica One": [
|
1389 |
+
"regular"
|
1390 |
+
]
|
1391 |
+
}, {
|
1392 |
+
"Esteban": [
|
1393 |
+
"regular"
|
1394 |
+
]
|
1395 |
+
}, {
|
1396 |
+
"Euphoria Script": [
|
1397 |
+
"regular"
|
1398 |
+
]
|
1399 |
+
}, {
|
1400 |
+
"Ewert": [
|
1401 |
+
"regular"
|
1402 |
+
]
|
1403 |
+
}, {
|
1404 |
+
"Exo": [
|
1405 |
+
"100",
|
1406 |
+
"100italic",
|
1407 |
+
"200",
|
1408 |
+
"200italic",
|
1409 |
+
"300",
|
1410 |
+
"300italic",
|
1411 |
+
"regular",
|
1412 |
+
"italic",
|
1413 |
+
"500",
|
1414 |
+
"500italic",
|
1415 |
+
"600",
|
1416 |
+
"600italic",
|
1417 |
+
"700",
|
1418 |
+
"700italic",
|
1419 |
+
"800",
|
1420 |
+
"800italic",
|
1421 |
+
"900",
|
1422 |
+
"900italic"
|
1423 |
+
]
|
1424 |
+
}, {
|
1425 |
+
"Exo 2": [
|
1426 |
+
"100",
|
1427 |
+
"100italic",
|
1428 |
+
"200",
|
1429 |
+
"200italic",
|
1430 |
+
"300",
|
1431 |
+
"300italic",
|
1432 |
+
"regular",
|
1433 |
+
"italic",
|
1434 |
+
"500",
|
1435 |
+
"500italic",
|
1436 |
+
"600",
|
1437 |
+
"600italic",
|
1438 |
+
"700",
|
1439 |
+
"700italic",
|
1440 |
+
"800",
|
1441 |
+
"800italic",
|
1442 |
+
"900",
|
1443 |
+
"900italic"
|
1444 |
+
]
|
1445 |
+
}, {
|
1446 |
+
"Expletus Sans": [
|
1447 |
+
"regular",
|
1448 |
+
"italic",
|
1449 |
+
"500",
|
1450 |
+
"500italic",
|
1451 |
+
"600",
|
1452 |
+
"600italic",
|
1453 |
+
"700",
|
1454 |
+
"700italic"
|
1455 |
+
]
|
1456 |
+
}, {
|
1457 |
+
"Fanwood Text": [
|
1458 |
+
"regular",
|
1459 |
+
"italic"
|
1460 |
+
]
|
1461 |
+
}, {
|
1462 |
+
"Farsan": [
|
1463 |
+
"regular"
|
1464 |
+
]
|
1465 |
+
}, {
|
1466 |
+
"Fascinate": [
|
1467 |
+
"regular"
|
1468 |
+
]
|
1469 |
+
}, {
|
1470 |
+
"Fascinate Inline": [
|
1471 |
+
"regular"
|
1472 |
+
]
|
1473 |
+
}, {
|
1474 |
+
"Faster One": [
|
1475 |
+
"regular"
|
1476 |
+
]
|
1477 |
+
}, {
|
1478 |
+
"Fasthand": [
|
1479 |
+
"regular"
|
1480 |
+
]
|
1481 |
+
}, {
|
1482 |
+
"Fauna One": [
|
1483 |
+
"regular"
|
1484 |
+
]
|
1485 |
+
}, {
|
1486 |
+
"Faustina": [
|
1487 |
+
"regular",
|
1488 |
+
"italic",
|
1489 |
+
"500",
|
1490 |
+
"500italic",
|
1491 |
+
"600",
|
1492 |
+
"600italic",
|
1493 |
+
"700",
|
1494 |
+
"700italic"
|
1495 |
+
]
|
1496 |
+
}, {
|
1497 |
+
"Federant": [
|
1498 |
+
"regular"
|
1499 |
+
]
|
1500 |
+
}, {
|
1501 |
+
"Federo": [
|
1502 |
+
"regular"
|
1503 |
+
]
|
1504 |
+
}, {
|
1505 |
+
"Felipa": [
|
1506 |
+
"regular"
|
1507 |
+
]
|
1508 |
+
}, {
|
1509 |
+
"Fenix": [
|
1510 |
+
"regular"
|
1511 |
+
]
|
1512 |
+
}, {
|
1513 |
+
"Finger Paint": [
|
1514 |
+
"regular"
|
1515 |
+
]
|
1516 |
+
}, {
|
1517 |
+
"Fira Mono": [
|
1518 |
+
"regular",
|
1519 |
+
"500",
|
1520 |
+
"700"
|
1521 |
+
]
|
1522 |
+
}, {
|
1523 |
+
"Fira Sans": [
|
1524 |
+
"100",
|
1525 |
+
"100italic",
|
1526 |
+
"200",
|
1527 |
+
"200italic",
|
1528 |
+
"300",
|
1529 |
+
"300italic",
|
1530 |
+
"regular",
|
1531 |
+
"italic",
|
1532 |
+
"500",
|
1533 |
+
"500italic",
|
1534 |
+
"600",
|
1535 |
+
"600italic",
|
1536 |
+
"700",
|
1537 |
+
"700italic",
|
1538 |
+
"800",
|
1539 |
+
"800italic",
|
1540 |
+
"900",
|
1541 |
+
"900italic"
|
1542 |
+
]
|
1543 |
+
}, {
|
1544 |
+
"Fira Sans Condensed": [
|
1545 |
+
"100",
|
1546 |
+
"100italic",
|
1547 |
+
"200",
|
1548 |
+
"200italic",
|
1549 |
+
"300",
|
1550 |
+
"300italic",
|
1551 |
+
"regular",
|
1552 |
+
"italic",
|
1553 |
+
"500",
|
1554 |
+
"500italic",
|
1555 |
+
"600",
|
1556 |
+
"600italic",
|
1557 |
+
"700",
|
1558 |
+
"700italic",
|
1559 |
+
"800",
|
1560 |
+
"800italic",
|
1561 |
+
"900",
|
1562 |
+
"900italic"
|
1563 |
+
]
|
1564 |
+
}, {
|
1565 |
+
"Fira Sans Extra Condensed": [
|
1566 |
+
"100",
|
1567 |
+
"100italic",
|
1568 |
+
"200",
|
1569 |
+
"200italic",
|
1570 |
+
"300",
|
1571 |
+
"300italic",
|
1572 |
+
"regular",
|
1573 |
+
"italic",
|
1574 |
+
"500",
|
1575 |
+
"500italic",
|
1576 |
+
"600",
|
1577 |
+
"600italic",
|
1578 |
+
"700",
|
1579 |
+
"700italic",
|
1580 |
+
"800",
|
1581 |
+
"800italic",
|
1582 |
+
"900",
|
1583 |
+
"900italic"
|
1584 |
+
]
|
1585 |
+
}, {
|
1586 |
+
"Fjalla One": [
|
1587 |
+
"regular"
|
1588 |
+
]
|
1589 |
+
}, {
|
1590 |
+
"Fjord One": [
|
1591 |
+
"regular"
|
1592 |
+
]
|
1593 |
+
}, {
|
1594 |
+
"Flamenco": [
|
1595 |
+
"300",
|
1596 |
+
"regular"
|
1597 |
+
]
|
1598 |
+
}, {
|
1599 |
+
"Flavors": [
|
1600 |
+
"regular"
|
1601 |
+
]
|
1602 |
+
}, {
|
1603 |
+
"Fondamento": [
|
1604 |
+
"regular",
|
1605 |
+
"italic"
|
1606 |
+
]
|
1607 |
+
}, {
|
1608 |
+
"Fontdiner Swanky": [
|
1609 |
+
"regular"
|
1610 |
+
]
|
1611 |
+
}, {
|
1612 |
+
"Forum": [
|
1613 |
+
"regular"
|
1614 |
+
]
|
1615 |
+
}, {
|
1616 |
+
"Francois One": [
|
1617 |
+
"regular"
|
1618 |
+
]
|
1619 |
+
}, {
|
1620 |
+
"Frank Ruhl Libre": [
|
1621 |
+
"300",
|
1622 |
+
"regular",
|
1623 |
+
"500",
|
1624 |
+
"700",
|
1625 |
+
"900"
|
1626 |
+
]
|
1627 |
+
}, {
|
1628 |
+
"Freckle Face": [
|
1629 |
+
"regular"
|
1630 |
+
]
|
1631 |
+
}, {
|
1632 |
+
"Fredericka the Great": [
|
1633 |
+
"regular"
|
1634 |
+
]
|
1635 |
+
}, {
|
1636 |
+
"Fredoka One": [
|
1637 |
+
"regular"
|
1638 |
+
]
|
1639 |
+
}, {
|
1640 |
+
"Freehand": [
|
1641 |
+
"regular"
|
1642 |
+
]
|
1643 |
+
}, {
|
1644 |
+
"Fresca": [
|
1645 |
+
"regular"
|
1646 |
+
]
|
1647 |
+
}, {
|
1648 |
+
"Frijole": [
|
1649 |
+
"regular"
|
1650 |
+
]
|
1651 |
+
}, {
|
1652 |
+
"Fruktur": [
|
1653 |
+
"regular"
|
1654 |
+
]
|
1655 |
+
}, {
|
1656 |
+
"Fugaz One": [
|
1657 |
+
"regular"
|
1658 |
+
]
|
1659 |
+
}, {
|
1660 |
+
"GFS Didot": [
|
1661 |
+
"regular"
|
1662 |
+
]
|
1663 |
+
}, {
|
1664 |
+
"GFS Neohellenic": [
|
1665 |
+
"regular",
|
1666 |
+
"italic",
|
1667 |
+
"700",
|
1668 |
+
"700italic"
|
1669 |
+
]
|
1670 |
+
}, {
|
1671 |
+
"Gabriela": [
|
1672 |
+
"regular"
|
1673 |
+
]
|
1674 |
+
}, {
|
1675 |
+
"Gafata": [
|
1676 |
+
"regular"
|
1677 |
+
]
|
1678 |
+
}, {
|
1679 |
+
"Galada": [
|
1680 |
+
"regular"
|
1681 |
+
]
|
1682 |
+
}, {
|
1683 |
+
"Galdeano": [
|
1684 |
+
"regular"
|
1685 |
+
]
|
1686 |
+
}, {
|
1687 |
+
"Galindo": [
|
1688 |
+
"regular"
|
1689 |
+
]
|
1690 |
+
}, {
|
1691 |
+
"Gentium Basic": [
|
1692 |
+
"regular",
|
1693 |
+
"italic",
|
1694 |
+
"700",
|
1695 |
+
"700italic"
|
1696 |
+
]
|
1697 |
+
}, {
|
1698 |
+
"Gentium Book Basic": [
|
1699 |
+
"regular",
|
1700 |
+
"italic",
|
1701 |
+
"700",
|
1702 |
+
"700italic"
|
1703 |
+
]
|
1704 |
+
}, {
|
1705 |
+
"Geo": [
|
1706 |
+
"regular",
|
1707 |
+
"italic"
|
1708 |
+
]
|
1709 |
+
}, {
|
1710 |
+
"Geostar": [
|
1711 |
+
"regular"
|
1712 |
+
]
|
1713 |
+
}, {
|
1714 |
+
"Geostar Fill": [
|
1715 |
+
"regular"
|
1716 |
+
]
|
1717 |
+
}, {
|
1718 |
+
"Germania One": [
|
1719 |
+
"regular"
|
1720 |
+
]
|
1721 |
+
}, {
|
1722 |
+
"Gidugu": [
|
1723 |
+
"regular"
|
1724 |
+
]
|
1725 |
+
}, {
|
1726 |
+
"Gilda Display": [
|
1727 |
+
"regular"
|
1728 |
+
]
|
1729 |
+
}, {
|
1730 |
+
"Give You Glory": [
|
1731 |
+
"regular"
|
1732 |
+
]
|
1733 |
+
}, {
|
1734 |
+
"Glass Antiqua": [
|
1735 |
+
"regular"
|
1736 |
+
]
|
1737 |
+
}, {
|
1738 |
+
"Glegoo": [
|
1739 |
+
"regular",
|
1740 |
+
"700"
|
1741 |
+
]
|
1742 |
+
}, {
|
1743 |
+
"Gloria Hallelujah": [
|
1744 |
+
"regular"
|
1745 |
+
]
|
1746 |
+
}, {
|
1747 |
+
"Goblin One": [
|
1748 |
+
"regular"
|
1749 |
+
]
|
1750 |
+
}, {
|
1751 |
+
"Gochi Hand": [
|
1752 |
+
"regular"
|
1753 |
+
]
|
1754 |
+
}, {
|
1755 |
+
"Gorditas": [
|
1756 |
+
"regular",
|
1757 |
+
"700"
|
1758 |
+
]
|
1759 |
+
}, {
|
1760 |
+
"Goudy Bookletter 1911": [
|
1761 |
+
"regular"
|
1762 |
+
]
|
1763 |
+
}, {
|
1764 |
+
"Graduate": [
|
1765 |
+
"regular"
|
1766 |
+
]
|
1767 |
+
}, {
|
1768 |
+
"Grand Hotel": [
|
1769 |
+
"regular"
|
1770 |
+
]
|
1771 |
+
}, {
|
1772 |
+
"Gravitas One": [
|
1773 |
+
"regular"
|
1774 |
+
]
|
1775 |
+
}, {
|
1776 |
+
"Great Vibes": [
|
1777 |
+
"regular"
|
1778 |
+
]
|
1779 |
+
}, {
|
1780 |
+
"Griffy": [
|
1781 |
+
"regular"
|
1782 |
+
]
|
1783 |
+
}, {
|
1784 |
+
"Gruppo": [
|
1785 |
+
"regular"
|
1786 |
+
]
|
1787 |
+
}, {
|
1788 |
+
"Gudea": [
|
1789 |
+
"regular",
|
1790 |
+
"italic",
|
1791 |
+
"700"
|
1792 |
+
]
|
1793 |
+
}, {
|
1794 |
+
"Gurajada": [
|
1795 |
+
"regular"
|
1796 |
+
]
|
1797 |
+
}, {
|
1798 |
+
"Habibi": [
|
1799 |
+
"regular"
|
1800 |
+
]
|
1801 |
+
}, {
|
1802 |
+
"Halant": [
|
1803 |
+
"300",
|
1804 |
+
"regular",
|
1805 |
+
"500",
|
1806 |
+
"600",
|
1807 |
+
"700"
|
1808 |
+
]
|
1809 |
+
}, {
|
1810 |
+
"Hammersmith One": [
|
1811 |
+
"regular"
|
1812 |
+
]
|
1813 |
+
}, {
|
1814 |
+
"Hanalei": [
|
1815 |
+
"regular"
|
1816 |
+
]
|
1817 |
+
}, {
|
1818 |
+
"Hanalei Fill": [
|
1819 |
+
"regular"
|
1820 |
+
]
|
1821 |
+
}, {
|
1822 |
+
"Handlee": [
|
1823 |
+
"regular"
|
1824 |
+
]
|
1825 |
+
}, {
|
1826 |
+
"Hanuman": [
|
1827 |
+
"regular",
|
1828 |
+
"700"
|
1829 |
+
]
|
1830 |
+
}, {
|
1831 |
+
"Happy Monkey": [
|
1832 |
+
"regular"
|
1833 |
+
]
|
1834 |
+
}, {
|
1835 |
+
"Harmattan": [
|
1836 |
+
"regular"
|
1837 |
+
]
|
1838 |
+
}, {
|
1839 |
+
"Headland One": [
|
1840 |
+
"regular"
|
1841 |
+
]
|
1842 |
+
}, {
|
1843 |
+
"Heebo": [
|
1844 |
+
"100",
|
1845 |
+
"300",
|
1846 |
+
"regular",
|
1847 |
+
"500",
|
1848 |
+
"700",
|
1849 |
+
"800",
|
1850 |
+
"900"
|
1851 |
+
]
|
1852 |
+
}, {
|
1853 |
+
"Henny Penny": [
|
1854 |
+
"regular"
|
1855 |
+
]
|
1856 |
+
}, {
|
1857 |
+
"Herr Von Muellerhoff": [
|
1858 |
+
"regular"
|
1859 |
+
]
|
1860 |
+
}, {
|
1861 |
+
"Hind": [
|
1862 |
+
"300",
|
1863 |
+
"regular",
|
1864 |
+
"500",
|
1865 |
+
"600",
|
1866 |
+
"700"
|
1867 |
+
]
|
1868 |
+
}, {
|
1869 |
+
"Hind Guntur": [
|
1870 |
+
"300",
|
1871 |
+
"regular",
|
1872 |
+
"500",
|
1873 |
+
"600",
|
1874 |
+
"700"
|
1875 |
+
]
|
1876 |
+
}, {
|
1877 |
+
"Hind Madurai": [
|
1878 |
+
"300",
|
1879 |
+
"regular",
|
1880 |
+
"500",
|
1881 |
+
"600",
|
1882 |
+
"700"
|
1883 |
+
]
|
1884 |
+
}, {
|
1885 |
+
"Hind Siliguri": [
|
1886 |
+
"300",
|
1887 |
+
"regular",
|
1888 |
+
"500",
|
1889 |
+
"600",
|
1890 |
+
"700"
|
1891 |
+
]
|
1892 |
+
}, {
|
1893 |
+
"Hind Vadodara": [
|
1894 |
+
"300",
|
1895 |
+
"regular",
|
1896 |
+
"500",
|
1897 |
+
"600",
|
1898 |
+
"700"
|
1899 |
+
]
|
1900 |
+
}, {
|
1901 |
+
"Holtwood One SC": [
|
1902 |
+
"regular"
|
1903 |
+
]
|
1904 |
+
}, {
|
1905 |
+
"Homemade Apple": [
|
1906 |
+
"regular"
|
1907 |
+
]
|
1908 |
+
}, {
|
1909 |
+
"Homenaje": [
|
1910 |
+
"regular"
|
1911 |
+
]
|
1912 |
+
}, {
|
1913 |
+
"IM Fell DW Pica": [
|
1914 |
+
"regular",
|
1915 |
+
"italic"
|
1916 |
+
]
|
1917 |
+
}, {
|
1918 |
+
"IM Fell DW Pica SC": [
|
1919 |
+
"regular"
|
1920 |
+
]
|
1921 |
+
}, {
|
1922 |
+
"IM Fell Double Pica": [
|
1923 |
+
"regular",
|
1924 |
+
"italic"
|
1925 |
+
]
|
1926 |
+
}, {
|
1927 |
+
"IM Fell Double Pica SC": [
|
1928 |
+
"regular"
|
1929 |
+
]
|
1930 |
+
}, {
|
1931 |
+
"IM Fell English": [
|
1932 |
+
"regular",
|
1933 |
+
"italic"
|
1934 |
+
]
|
1935 |
+
}, {
|
1936 |
+
"IM Fell English SC": [
|
1937 |
+
"regular"
|
1938 |
+
]
|
1939 |
+
}, {
|
1940 |
+
"IM Fell French Canon": [
|
1941 |
+
"regular",
|
1942 |
+
"italic"
|
1943 |
+
]
|
1944 |
+
}, {
|
1945 |
+
"IM Fell French Canon SC": [
|
1946 |
+
"regular"
|
1947 |
+
]
|
1948 |
+
}, {
|
1949 |
+
"IM Fell Great Primer": [
|
1950 |
+
"regular",
|
1951 |
+
"italic"
|
1952 |
+
]
|
1953 |
+
}, {
|
1954 |
+
"IM Fell Great Primer SC": [
|
1955 |
+
"regular"
|
1956 |
+
]
|
1957 |
+
}, {
|
1958 |
+
"Iceberg": [
|
1959 |
+
"regular"
|
1960 |
+
]
|
1961 |
+
}, {
|
1962 |
+
"Iceland": [
|
1963 |
+
"regular"
|
1964 |
+
]
|
1965 |
+
}, {
|
1966 |
+
"Imprima": [
|
1967 |
+
"regular"
|
1968 |
+
]
|
1969 |
+
}, {
|
1970 |
+
"Inconsolata": [
|
1971 |
+
"regular",
|
1972 |
+
"700"
|
1973 |
+
]
|
1974 |
+
}, {
|
1975 |
+
"Inder": [
|
1976 |
+
"regular"
|
1977 |
+
]
|
1978 |
+
}, {
|
1979 |
+
"Indie Flower": [
|
1980 |
+
"regular"
|
1981 |
+
]
|
1982 |
+
}, {
|
1983 |
+
"Inika": [
|
1984 |
+
"regular",
|
1985 |
+
"700"
|
1986 |
+
]
|
1987 |
+
}, {
|
1988 |
+
"Inknut Antiqua": [
|
1989 |
+
"300",
|
1990 |
+
"regular",
|
1991 |
+
"500",
|
1992 |
+
"600",
|
1993 |
+
"700",
|
1994 |
+
"800",
|
1995 |
+
"900"
|
1996 |
+
]
|
1997 |
+
}, {
|
1998 |
+
"Irish Grover": [
|
1999 |
+
"regular"
|
2000 |
+
]
|
2001 |
+
}, {
|
2002 |
+
"Istok Web": [
|
2003 |
+
"regular",
|
2004 |
+
"italic",
|
2005 |
+
"700",
|
2006 |
+
"700italic"
|
2007 |
+
]
|
2008 |
+
}, {
|
2009 |
+
"Italiana": [
|
2010 |
+
"regular"
|
2011 |
+
]
|
2012 |
+
}, {
|
2013 |
+
"Italianno": [
|
2014 |
+
"regular"
|
2015 |
+
]
|
2016 |
+
}, {
|
2017 |
+
"Itim": [
|
2018 |
+
"regular"
|
2019 |
+
]
|
2020 |
+
}, {
|
2021 |
+
"Jacques Francois": [
|
2022 |
+
"regular"
|
2023 |
+
]
|
2024 |
+
}, {
|
2025 |
+
"Jacques Francois Shadow": [
|
2026 |
+
"regular"
|
2027 |
+
]
|
2028 |
+
}, {
|
2029 |
+
"Jaldi": [
|
2030 |
+
"regular",
|
2031 |
+
"700"
|
2032 |
+
]
|
2033 |
+
}, {
|
2034 |
+
"Jim Nightshade": [
|
2035 |
+
"regular"
|
2036 |
+
]
|
2037 |
+
}, {
|
2038 |
+
"Jockey One": [
|
2039 |
+
"regular"
|
2040 |
+
]
|
2041 |
+
}, {
|
2042 |
+
"Jolly Lodger": [
|
2043 |
+
"regular"
|
2044 |
+
]
|
2045 |
+
}, {
|
2046 |
+
"Jomhuria": [
|
2047 |
+
"regular"
|
2048 |
+
]
|
2049 |
+
}, {
|
2050 |
+
"Josefin Sans": [
|
2051 |
+
"100",
|
2052 |
+
"100italic",
|
2053 |
+
"300",
|
2054 |
+
"300italic",
|
2055 |
+
"regular",
|
2056 |
+
"italic",
|
2057 |
+
"600",
|
2058 |
+
"600italic",
|
2059 |
+
"700",
|
2060 |
+
"700italic"
|
2061 |
+
]
|
2062 |
+
}, {
|
2063 |
+
"Josefin Slab": [
|
2064 |
+
"100",
|
2065 |
+
"100italic",
|
2066 |
+
"300",
|
2067 |
+
"300italic",
|
2068 |
+
"regular",
|
2069 |
+
"italic",
|
2070 |
+
"600",
|
2071 |
+
"600italic",
|
2072 |
+
"700",
|
2073 |
+
"700italic"
|
2074 |
+
]
|
2075 |
+
}, {
|
2076 |
+
"Joti One": [
|
2077 |
+
"regular"
|
2078 |
+
]
|
2079 |
+
}, {
|
2080 |
+
"Judson": [
|
2081 |
+
"regular",
|
2082 |
+
"italic",
|
2083 |
+
"700"
|
2084 |
+
]
|
2085 |
+
}, {
|
2086 |
+
"Julee": [
|
2087 |
+
"regular"
|
2088 |
+
]
|
2089 |
+
}, {
|
2090 |
+
"Julius Sans One": [
|
2091 |
+
"regular"
|
2092 |
+
]
|
2093 |
+
}, {
|
2094 |
+
"Junge": [
|
2095 |
+
"regular"
|
2096 |
+
]
|
2097 |
+
}, {
|
2098 |
+
"Jura": [
|
2099 |
+
"300",
|
2100 |
+
"regular",
|
2101 |
+
"500",
|
2102 |
+
"600",
|
2103 |
+
"700"
|
2104 |
+
]
|
2105 |
+
}, {
|
2106 |
+
"Just Another Hand": [
|
2107 |
+
"regular"
|
2108 |
+
]
|
2109 |
+
}, {
|
2110 |
+
"Just Me Again Down Here": [
|
2111 |
+
"regular"
|
2112 |
+
]
|
2113 |
+
}, {
|
2114 |
+
"Kadwa": [
|
2115 |
+
"regular",
|
2116 |
+
"700"
|
2117 |
+
]
|
2118 |
+
}, {
|
2119 |
+
"Kalam": [
|
2120 |
+
"300",
|
2121 |
+
"regular",
|
2122 |
+
"700"
|
2123 |
+
]
|
2124 |
+
}, {
|
2125 |
+
"Kameron": [
|
2126 |
+
"regular",
|
2127 |
+
"700"
|
2128 |
+
]
|
2129 |
+
}, {
|
2130 |
+
"Kanit": [
|
2131 |
+
"100",
|
2132 |
+
"100italic",
|
2133 |
+
"200",
|
2134 |
+
"200italic",
|
2135 |
+
"300",
|
2136 |
+
"300italic",
|
2137 |
+
"regular",
|
2138 |
+
"italic",
|
2139 |
+
"500",
|
2140 |
+
"500italic",
|
2141 |
+
"600",
|
2142 |
+
"600italic",
|
2143 |
+
"700",
|
2144 |
+
"700italic",
|
2145 |
+
"800",
|
2146 |
+
"800italic",
|
2147 |
+
"900",
|
2148 |
+
"900italic"
|
2149 |
+
]
|
2150 |
+
}, {
|
2151 |
+
"Kantumruy": [
|
2152 |
+
"300",
|
2153 |
+
"regular",
|
2154 |
+
"700"
|
2155 |
+
]
|
2156 |
+
}, {
|
2157 |
+
"Karla": [
|
2158 |
+
"regular",
|
2159 |
+
"italic",
|
2160 |
+
"700",
|
2161 |
+
"700italic"
|
2162 |
+
]
|
2163 |
+
}, {
|
2164 |
+
"Karma": [
|
2165 |
+
"300",
|
2166 |
+
"regular",
|
2167 |
+
"500",
|
2168 |
+
"600",
|
2169 |
+
"700"
|
2170 |
+
]
|
2171 |
+
}, {
|
2172 |
+
"Katibeh": [
|
2173 |
+
"regular"
|
2174 |
+
]
|
2175 |
+
}, {
|
2176 |
+
"Kaushan Script": [
|
2177 |
+
"regular"
|
2178 |
+
]
|
2179 |
+
}, {
|
2180 |
+
"Kavivanar": [
|
2181 |
+
"regular"
|
2182 |
+
]
|
2183 |
+
}, {
|
2184 |
+
"Kavoon": [
|
2185 |
+
"regular"
|
2186 |
+
]
|
2187 |
+
}, {
|
2188 |
+
"Kdam Thmor": [
|
2189 |
+
"regular"
|
2190 |
+
]
|
2191 |
+
}, {
|
2192 |
+
"Keania One": [
|
2193 |
+
"regular"
|
2194 |
+
]
|
2195 |
+
}, {
|
2196 |
+
"Kelly Slab": [
|
2197 |
+
"regular"
|
2198 |
+
]
|
2199 |
+
}, {
|
2200 |
+
"Kenia": [
|
2201 |
+
"regular"
|
2202 |
+
]
|
2203 |
+
}, {
|
2204 |
+
"Khand": [
|
2205 |
+
"300",
|
2206 |
+
"regular",
|
2207 |
+
"500",
|
2208 |
+
"600",
|
2209 |
+
"700"
|
2210 |
+
]
|
2211 |
+
}, {
|
2212 |
+
"Khmer": [
|
2213 |
+
"regular"
|
2214 |
+
]
|
2215 |
+
}, {
|
2216 |
+
"Khula": [
|
2217 |
+
"300",
|
2218 |
+
"regular",
|
2219 |
+
"600",
|
2220 |
+
"700",
|
2221 |
+
"800"
|
2222 |
+
]
|
2223 |
+
}, {
|
2224 |
+
"Kite One": [
|
2225 |
+
"regular"
|
2226 |
+
]
|
2227 |
+
}, {
|
2228 |
+
"Knewave": [
|
2229 |
+
"regular"
|
2230 |
+
]
|
2231 |
+
}, {
|
2232 |
+
"Kotta One": [
|
2233 |
+
"regular"
|
2234 |
+
]
|
2235 |
+
}, {
|
2236 |
+
"Koulen": [
|
2237 |
+
"regular"
|
2238 |
+
]
|
2239 |
+
}, {
|
2240 |
+
"Kranky": [
|
2241 |
+
"regular"
|
2242 |
+
]
|
2243 |
+
}, {
|
2244 |
+
"Kreon": [
|
2245 |
+
"300",
|
2246 |
+
"regular",
|
2247 |
+
"700"
|
2248 |
+
]
|
2249 |
+
}, {
|
2250 |
+
"Kristi": [
|
2251 |
+
"regular"
|
2252 |
+
]
|
2253 |
+
}, {
|
2254 |
+
"Krona One": [
|
2255 |
+
"regular"
|
2256 |
+
]
|
2257 |
+
}, {
|
2258 |
+
"Kumar One": [
|
2259 |
+
"regular"
|
2260 |
+
]
|
2261 |
+
}, {
|
2262 |
+
"Kumar One Outline": [
|
2263 |
+
"regular"
|
2264 |
+
]
|
2265 |
+
}, {
|
2266 |
+
"Kurale": [
|
2267 |
+
"regular"
|
2268 |
+
]
|
2269 |
+
}, {
|
2270 |
+
"La Belle Aurore": [
|
2271 |
+
"regular"
|
2272 |
+
]
|
2273 |
+
}, {
|
2274 |
+
"Laila": [
|
2275 |
+
"300",
|
2276 |
+
"regular",
|
2277 |
+
"500",
|
2278 |
+
"600",
|
2279 |
+
"700"
|
2280 |
+
]
|
2281 |
+
}, {
|
2282 |
+
"Lakki Reddy": [
|
2283 |
+
"regular"
|
2284 |
+
]
|
2285 |
+
}, {
|
2286 |
+
"Lalezar": [
|
2287 |
+
"regular"
|
2288 |
+
]
|
2289 |
+
}, {
|
2290 |
+
"Lancelot": [
|
2291 |
+
"regular"
|
2292 |
+
]
|
2293 |
+
}, {
|
2294 |
+
"Lateef": [
|
2295 |
+
"regular"
|
2296 |
+
]
|
2297 |
+
}, {
|
2298 |
+
"Lato": [
|
2299 |
+
"100",
|
2300 |
+
"100italic",
|
2301 |
+
"300",
|
2302 |
+
"300italic",
|
2303 |
+
"regular",
|
2304 |
+
"italic",
|
2305 |
+
"700",
|
2306 |
+
"700italic",
|
2307 |
+
"900",
|
2308 |
+
"900italic"
|
2309 |
+
]
|
2310 |
+
}, {
|
2311 |
+
"League Script": [
|
2312 |
+
"regular"
|
2313 |
+
]
|
2314 |
+
}, {
|
2315 |
+
"Leckerli One": [
|
2316 |
+
"regular"
|
2317 |
+
]
|
2318 |
+
}, {
|
2319 |
+
"Ledger": [
|
2320 |
+
"regular"
|
2321 |
+
]
|
2322 |
+
}, {
|
2323 |
+
"Lekton": [
|
2324 |
+
"regular",
|
2325 |
+
"italic",
|
2326 |
+
"700"
|
2327 |
+
]
|
2328 |
+
}, {
|
2329 |
+
"Lemon": [
|
2330 |
+
"regular"
|
2331 |
+
]
|
2332 |
+
}, {
|
2333 |
+
"Lemonada": [
|
2334 |
+
"300",
|
2335 |
+
"regular",
|
2336 |
+
"600",
|
2337 |
+
"700"
|
2338 |
+
]
|
2339 |
+
}, {
|
2340 |
+
"Libre Barcode 128": [
|
2341 |
+
"regular"
|
2342 |
+
]
|
2343 |
+
}, {
|
2344 |
+
"Libre Barcode 128 Text": [
|
2345 |
+
"regular"
|
2346 |
+
]
|
2347 |
+
}, {
|
2348 |
+
"Libre Barcode 39": [
|
2349 |
+
"regular"
|
2350 |
+
]
|
2351 |
+
}, {
|
2352 |
+
"Libre Barcode 39 Extended": [
|
2353 |
+
"regular"
|
2354 |
+
]
|
2355 |
+
}, {
|
2356 |
+
"Libre Barcode 39 Extended Text": [
|
2357 |
+
"regular"
|
2358 |
+
]
|
2359 |
+
}, {
|
2360 |
+
"Libre Barcode 39 Text": [
|
2361 |
+
"regular"
|
2362 |
+
]
|
2363 |
+
}, {
|
2364 |
+
"Libre Baskerville": [
|
2365 |
+
"regular",
|
2366 |
+
"italic",
|
2367 |
+
"700"
|
2368 |
+
]
|
2369 |
+
}, {
|
2370 |
+
"Libre Franklin": [
|
2371 |
+
"100",
|
2372 |
+
"100italic",
|
2373 |
+
"200",
|
2374 |
+
"200italic",
|
2375 |
+
"300",
|
2376 |
+
"300italic",
|
2377 |
+
"regular",
|
2378 |
+
"italic",
|
2379 |
+
"500",
|
2380 |
+
"500italic",
|
2381 |
+
"600",
|
2382 |
+
"600italic",
|
2383 |
+
"700",
|
2384 |
+
"700italic",
|
2385 |
+
"800",
|
2386 |
+
"800italic",
|
2387 |
+
"900",
|
2388 |
+
"900italic"
|
2389 |
+
]
|
2390 |
+
}, {
|
2391 |
+
"Life Savers": [
|
2392 |
+
"regular",
|
2393 |
+
"700"
|
2394 |
+
]
|
2395 |
+
}, {
|
2396 |
+
"Lilita One": [
|
2397 |
+
"regular"
|
2398 |
+
]
|
2399 |
+
}, {
|
2400 |
+
"Lily Script One": [
|
2401 |
+
"regular"
|
2402 |
+
]
|
2403 |
+
}, {
|
2404 |
+
"Limelight": [
|
2405 |
+
"regular"
|
2406 |
+
]
|
2407 |
+
}, {
|
2408 |
+
"Linden Hill": [
|
2409 |
+
"regular",
|
2410 |
+
"italic"
|
2411 |
+
]
|
2412 |
+
}, {
|
2413 |
+
"Lobster": [
|
2414 |
+
"regular"
|
2415 |
+
]
|
2416 |
+
}, {
|
2417 |
+
"Lobster Two": [
|
2418 |
+
"regular",
|
2419 |
+
"italic",
|
2420 |
+
"700",
|
2421 |
+
"700italic"
|
2422 |
+
]
|
2423 |
+
}, {
|
2424 |
+
"Londrina Outline": [
|
2425 |
+
"regular"
|
2426 |
+
]
|
2427 |
+
}, {
|
2428 |
+
"Londrina Shadow": [
|
2429 |
+
"regular"
|
2430 |
+
]
|
2431 |
+
}, {
|
2432 |
+
"Londrina Sketch": [
|
2433 |
+
"regular"
|
2434 |
+
]
|
2435 |
+
}, {
|
2436 |
+
"Londrina Solid": [
|
2437 |
+
"100",
|
2438 |
+
"300",
|
2439 |
+
"regular",
|
2440 |
+
"900"
|
2441 |
+
]
|
2442 |
+
}, {
|
2443 |
+
"Lora": [
|
2444 |
+
"regular",
|
2445 |
+
"italic",
|
2446 |
+
"700",
|
2447 |
+
"700italic"
|
2448 |
+
]
|
2449 |
+
}, {
|
2450 |
+
"Love Ya Like A Sister": [
|
2451 |
+
"regular"
|
2452 |
+
]
|
2453 |
+
}, {
|
2454 |
+
"Loved by the King": [
|
2455 |
+
"regular"
|
2456 |
+
]
|
2457 |
+
}, {
|
2458 |
+
"Lovers Quarrel": [
|
2459 |
+
"regular"
|
2460 |
+
]
|
2461 |
+
}, {
|
2462 |
+
"Luckiest Guy": [
|
2463 |
+
"regular"
|
2464 |
+
]
|
2465 |
+
}, {
|
2466 |
+
"Lusitana": [
|
2467 |
+
"regular",
|
2468 |
+
"700"
|
2469 |
+
]
|
2470 |
+
}, {
|
2471 |
+
"Lustria": [
|
2472 |
+
"regular"
|
2473 |
+
]
|
2474 |
+
}, {
|
2475 |
+
"Macondo": [
|
2476 |
+
"regular"
|
2477 |
+
]
|
2478 |
+
}, {
|
2479 |
+
"Macondo Swash Caps": [
|
2480 |
+
"regular"
|
2481 |
+
]
|
2482 |
+
}, {
|
2483 |
+
"Mada": [
|
2484 |
+
"200",
|
2485 |
+
"300",
|
2486 |
+
"regular",
|
2487 |
+
"500",
|
2488 |
+
"600",
|
2489 |
+
"700",
|
2490 |
+
"900"
|
2491 |
+
]
|
2492 |
+
}, {
|
2493 |
+
"Magra": [
|
2494 |
+
"regular",
|
2495 |
+
"700"
|
2496 |
+
]
|
2497 |
+
}, {
|
2498 |
+
"Maiden Orange": [
|
2499 |
+
"regular"
|
2500 |
+
]
|
2501 |
+
}, {
|
2502 |
+
"Maitree": [
|
2503 |
+
"200",
|
2504 |
+
"300",
|
2505 |
+
"regular",
|
2506 |
+
"500",
|
2507 |
+
"600",
|
2508 |
+
"700"
|
2509 |
+
]
|
2510 |
+
}, {
|
2511 |
+
"Mako": [
|
2512 |
+
"regular"
|
2513 |
+
]
|
2514 |
+
}, {
|
2515 |
+
"Mallanna": [
|
2516 |
+
"regular"
|
2517 |
+
]
|
2518 |
+
}, {
|
2519 |
+
"Mandali": [
|
2520 |
+
"regular"
|
2521 |
+
]
|
2522 |
+
}, {
|
2523 |
+
"Manuale": [
|
2524 |
+
"regular",
|
2525 |
+
"italic",
|
2526 |
+
"500",
|
2527 |
+
"500italic",
|
2528 |
+
"600",
|
2529 |
+
"600italic",
|
2530 |
+
"700",
|
2531 |
+
"700italic"
|
2532 |
+
]
|
2533 |
+
}, {
|
2534 |
+
"Marcellus": [
|
2535 |
+
"regular"
|
2536 |
+
]
|
2537 |
+
}, {
|
2538 |
+
"Marcellus SC": [
|
2539 |
+
"regular"
|
2540 |
+
]
|
2541 |
+
}, {
|
2542 |
+
"Marck Script": [
|
2543 |
+
"regular"
|
2544 |
+
]
|
2545 |
+
}, {
|
2546 |
+
"Margarine": [
|
2547 |
+
"regular"
|
2548 |
+
]
|
2549 |
+
}, {
|
2550 |
+
"Marko One": [
|
2551 |
+
"regular"
|
2552 |
+
]
|
2553 |
+
}, {
|
2554 |
+
"Marmelad": [
|
2555 |
+
"regular"
|
2556 |
+
]
|
2557 |
+
}, {
|
2558 |
+
"Martel": [
|
2559 |
+
"200",
|
2560 |
+
"300",
|
2561 |
+
"regular",
|
2562 |
+
"600",
|
2563 |
+
"700",
|
2564 |
+
"800",
|
2565 |
+
"900"
|
2566 |
+
]
|
2567 |
+
}, {
|
2568 |
+
"Martel Sans": [
|
2569 |
+
"200",
|
2570 |
+
"300",
|
2571 |
+
"regular",
|
2572 |
+
"600",
|
2573 |
+
"700",
|
2574 |
+
"800",
|
2575 |
+
"900"
|
2576 |
+
]
|
2577 |
+
}, {
|
2578 |
+
"Marvel": [
|
2579 |
+
"regular",
|
2580 |
+
"italic",
|
2581 |
+
"700",
|
2582 |
+
"700italic"
|
2583 |
+
]
|
2584 |
+
}, {
|
2585 |
+
"Mate": [
|
2586 |
+
"regular",
|
2587 |
+
"italic"
|
2588 |
+
]
|
2589 |
+
}, {
|
2590 |
+
"Mate SC": [
|
2591 |
+
"regular"
|
2592 |
+
]
|
2593 |
+
}, {
|
2594 |
+
"Maven Pro": [
|
2595 |
+
"regular",
|
2596 |
+
"500",
|
2597 |
+
"700",
|
2598 |
+
"900"
|
2599 |
+
]
|
2600 |
+
}, {
|
2601 |
+
"McLaren": [
|
2602 |
+
"regular"
|
2603 |
+
]
|
2604 |
+
}, {
|
2605 |
+
"Meddon": [
|
2606 |
+
"regular"
|
2607 |
+
]
|
2608 |
+
}, {
|
2609 |
+
"MedievalSharp": [
|
2610 |
+
"regular"
|
2611 |
+
]
|
2612 |
+
}, {
|
2613 |
+
"Medula One": [
|
2614 |
+
"regular"
|
2615 |
+
]
|
2616 |
+
}, {
|
2617 |
+
"Meera Inimai": [
|
2618 |
+
"regular"
|
2619 |
+
]
|
2620 |
+
}, {
|
2621 |
+
"Megrim": [
|
2622 |
+
"regular"
|
2623 |
+
]
|
2624 |
+
}, {
|
2625 |
+
"Meie Script": [
|
2626 |
+
"regular"
|
2627 |
+
]
|
2628 |
+
}, {
|
2629 |
+
"Merienda": [
|
2630 |
+
"regular",
|
2631 |
+
"700"
|
2632 |
+
]
|
2633 |
+
}, {
|
2634 |
+
"Merienda One": [
|
2635 |
+
"regular"
|
2636 |
+
]
|
2637 |
+
}, {
|
2638 |
+
"Merriweather": [
|
2639 |
+
"300",
|
2640 |
+
"300italic",
|
2641 |
+
"regular",
|
2642 |
+
"italic",
|
2643 |
+
"700",
|
2644 |
+
"700italic",
|
2645 |
+
"900",
|
2646 |
+
"900italic"
|
2647 |
+
]
|
2648 |
+
}, {
|
2649 |
+
"Merriweather Sans": [
|
2650 |
+
"300",
|
2651 |
+
"300italic",
|
2652 |
+
"regular",
|
2653 |
+
"italic",
|
2654 |
+
"700",
|
2655 |
+
"700italic",
|
2656 |
+
"800",
|
2657 |
+
"800italic"
|
2658 |
+
]
|
2659 |
+
}, {
|
2660 |
+
"Metal": [
|
2661 |
+
"regular"
|
2662 |
+
]
|
2663 |
+
}, {
|
2664 |
+
"Metal Mania": [
|
2665 |
+
"regular"
|
2666 |
+
]
|
2667 |
+
}, {
|
2668 |
+
"Metamorphous": [
|
2669 |
+
"regular"
|
2670 |
+
]
|
2671 |
+
}, {
|
2672 |
+
"Metrophobic": [
|
2673 |
+
"regular"
|
2674 |
+
]
|
2675 |
+
}, {
|
2676 |
+
"Michroma": [
|
2677 |
+
"regular"
|
2678 |
+
]
|
2679 |
+
}, {
|
2680 |
+
"Milonga": [
|
2681 |
+
"regular"
|
2682 |
+
]
|
2683 |
+
}, {
|
2684 |
+
"Miltonian": [
|
2685 |
+
"regular"
|
2686 |
+
]
|
2687 |
+
}, {
|
2688 |
+
"Miltonian Tattoo": [
|
2689 |
+
"regular"
|
2690 |
+
]
|
2691 |
+
}, {
|
2692 |
+
"Miniver": [
|
2693 |
+
"regular"
|
2694 |
+
]
|
2695 |
+
}, {
|
2696 |
+
"Miriam Libre": [
|
2697 |
+
"regular",
|
2698 |
+
"700"
|
2699 |
+
]
|
2700 |
+
}, {
|
2701 |
+
"Mirza": [
|
2702 |
+
"regular",
|
2703 |
+
"500",
|
2704 |
+
"600",
|
2705 |
+
"700"
|
2706 |
+
]
|
2707 |
+
}, {
|
2708 |
+
"Miss Fajardose": [
|
2709 |
+
"regular"
|
2710 |
+
]
|
2711 |
+
}, {
|
2712 |
+
"Mitr": [
|
2713 |
+
"200",
|
2714 |
+
"300",
|
2715 |
+
"regular",
|
2716 |
+
"500",
|
2717 |
+
"600",
|
2718 |
+
"700"
|
2719 |
+
]
|
2720 |
+
}, {
|
2721 |
+
"Modak": [
|
2722 |
+
"regular"
|
2723 |
+
]
|
2724 |
+
}, {
|
2725 |
+
"Modern Antiqua": [
|
2726 |
+
"regular"
|
2727 |
+
]
|
2728 |
+
}, {
|
2729 |
+
"Mogra": [
|
2730 |
+
"regular"
|
2731 |
+
]
|
2732 |
+
}, {
|
2733 |
+
"Molengo": [
|
2734 |
+
"regular"
|
2735 |
+
]
|
2736 |
+
}, {
|
2737 |
+
"Molle": [
|
2738 |
+
"italic"
|
2739 |
+
]
|
2740 |
+
}, {
|
2741 |
+
"Monda": [
|
2742 |
+
"regular",
|
2743 |
+
"700"
|
2744 |
+
]
|
2745 |
+
}, {
|
2746 |
+
"Monofett": [
|
2747 |
+
"regular"
|
2748 |
+
]
|
2749 |
+
}, {
|
2750 |
+
"Monoton": [
|
2751 |
+
"regular"
|
2752 |
+
]
|
2753 |
+
}, {
|
2754 |
+
"Monsieur La Doulaise": [
|
2755 |
+
"regular"
|
2756 |
+
]
|
2757 |
+
}, {
|
2758 |
+
"Montaga": [
|
2759 |
+
"regular"
|
2760 |
+
]
|
2761 |
+
}, {
|
2762 |
+
"Montez": [
|
2763 |
+
"regular"
|
2764 |
+
]
|
2765 |
+
}, {
|
2766 |
+
"Montserrat": [
|
2767 |
+
"100",
|
2768 |
+
"100italic",
|
2769 |
+
"200",
|
2770 |
+
"200italic",
|
2771 |
+
"300",
|
2772 |
+
"300italic",
|
2773 |
+
"regular",
|
2774 |
+
"italic",
|
2775 |
+
"500",
|
2776 |
+
"500italic",
|
2777 |
+
"600",
|
2778 |
+
"600italic",
|
2779 |
+
"700",
|
2780 |
+
"700italic",
|
2781 |
+
"800",
|
2782 |
+
"800italic",
|
2783 |
+
"900",
|
2784 |
+
"900italic"
|
2785 |
+
]
|
2786 |
+
}, {
|
2787 |
+
"Montserrat Alternates": [
|
2788 |
+
"100",
|
2789 |
+
"100italic",
|
2790 |
+
"200",
|
2791 |
+
"200italic",
|
2792 |
+
"300",
|
2793 |
+
"300italic",
|
2794 |
+
"regular",
|
2795 |
+
"italic",
|
2796 |
+
"500",
|
2797 |
+
"500italic",
|
2798 |
+
"600",
|
2799 |
+
"600italic",
|
2800 |
+
"700",
|
2801 |
+
"700italic",
|
2802 |
+
"800",
|
2803 |
+
"800italic",
|
2804 |
+
"900",
|
2805 |
+
"900italic"
|
2806 |
+
]
|
2807 |
+
}, {
|
2808 |
+
"Montserrat Subrayada": [
|
2809 |
+
"regular",
|
2810 |
+
"700"
|
2811 |
+
]
|
2812 |
+
}, {
|
2813 |
+
"Moul": [
|
2814 |
+
"regular"
|
2815 |
+
]
|
2816 |
+
}, {
|
2817 |
+
"Moulpali": [
|
2818 |
+
"regular"
|
2819 |
+
]
|
2820 |
+
}, {
|
2821 |
+
"Mountains of Christmas": [
|
2822 |
+
"regular",
|
2823 |
+
"700"
|
2824 |
+
]
|
2825 |
+
}, {
|
2826 |
+
"Mouse Memoirs": [
|
2827 |
+
"regular"
|
2828 |
+
]
|
2829 |
+
}, {
|
2830 |
+
"Mr Bedfort": [
|
2831 |
+
"regular"
|
2832 |
+
]
|
2833 |
+
}, {
|
2834 |
+
"Mr Dafoe": [
|
2835 |
+
"regular"
|
2836 |
+
]
|
2837 |
+
}, {
|
2838 |
+
"Mr De Haviland": [
|
2839 |
+
"regular"
|
2840 |
+
]
|
2841 |
+
}, {
|
2842 |
+
"Mrs Saint Delafield": [
|
2843 |
+
"regular"
|
2844 |
+
]
|
2845 |
+
}, {
|
2846 |
+
"Mrs Sheppards": [
|
2847 |
+
"regular"
|
2848 |
+
]
|
2849 |
+
}, {
|
2850 |
+
"Mukta": [
|
2851 |
+
"200",
|
2852 |
+
"300",
|
2853 |
+
"regular",
|
2854 |
+
"500",
|
2855 |
+
"600",
|
2856 |
+
"700",
|
2857 |
+
"800"
|
2858 |
+
]
|
2859 |
+
}, {
|
2860 |
+
"Mukta Mahee": [
|
2861 |
+
"200",
|
2862 |
+
"300",
|
2863 |
+
"regular",
|
2864 |
+
"500",
|
2865 |
+
"600",
|
2866 |
+
"700",
|
2867 |
+
"800"
|
2868 |
+
]
|
2869 |
+
}, {
|
2870 |
+
"Mukta Malar": [
|
2871 |
+
"200",
|
2872 |
+
"300",
|
2873 |
+
"regular",
|
2874 |
+
"500",
|
2875 |
+
"600",
|
2876 |
+
"700",
|
2877 |
+
"800"
|
2878 |
+
]
|
2879 |
+
}, {
|
2880 |
+
"Mukta Vaani": [
|
2881 |
+
"200",
|
2882 |
+
"300",
|
2883 |
+
"regular",
|
2884 |
+
"500",
|
2885 |
+
"600",
|
2886 |
+
"700",
|
2887 |
+
"800"
|
2888 |
+
]
|
2889 |
+
}, {
|
2890 |
+
"Muli": [
|
2891 |
+
"200",
|
2892 |
+
"200italic",
|
2893 |
+
"300",
|
2894 |
+
"300italic",
|
2895 |
+
"regular",
|
2896 |
+
"italic",
|
2897 |
+
"600",
|
2898 |
+
"600italic",
|
2899 |
+
"700",
|
2900 |
+
"700italic",
|
2901 |
+
"800",
|
2902 |
+
"800italic",
|
2903 |
+
"900",
|
2904 |
+
"900italic"
|
2905 |
+
]
|
2906 |
+
}, {
|
2907 |
+
"Mystery Quest": [
|
2908 |
+
"regular"
|
2909 |
+
]
|
2910 |
+
}, {
|
2911 |
+
"NTR": [
|
2912 |
+
"regular"
|
2913 |
+
]
|
2914 |
+
}, {
|
2915 |
+
"Neucha": [
|
2916 |
+
"regular"
|
2917 |
+
]
|
2918 |
+
}, {
|
2919 |
+
"Neuton": [
|
2920 |
+
"200",
|
2921 |
+
"300",
|
2922 |
+
"regular",
|
2923 |
+
"italic",
|
2924 |
+
"700",
|
2925 |
+
"800"
|
2926 |
+
]
|
2927 |
+
}, {
|
2928 |
+
"New Rocker": [
|
2929 |
+
"regular"
|
2930 |
+
]
|
2931 |
+
}, {
|
2932 |
+
"News Cycle": [
|
2933 |
+
"regular",
|
2934 |
+
"700"
|
2935 |
+
]
|
2936 |
+
}, {
|
2937 |
+
"Niconne": [
|
2938 |
+
"regular"
|
2939 |
+
]
|
2940 |
+
}, {
|
2941 |
+
"Nixie One": [
|
2942 |
+
"regular"
|
2943 |
+
]
|
2944 |
+
}, {
|
2945 |
+
"Nobile": [
|
2946 |
+
"regular",
|
2947 |
+
"italic",
|
2948 |
+
"500",
|
2949 |
+
"500italic",
|
2950 |
+
"700",
|
2951 |
+
"700italic"
|
2952 |
+
]
|
2953 |
+
}, {
|
2954 |
+
"Nokora": [
|
2955 |
+
"regular",
|
2956 |
+
"700"
|
2957 |
+
]
|
2958 |
+
}, {
|
2959 |
+
"Norican": [
|
2960 |
+
"regular"
|
2961 |
+
]
|
2962 |
+
}, {
|
2963 |
+
"Nosifer": [
|
2964 |
+
"regular"
|
2965 |
+
]
|
2966 |
+
}, {
|
2967 |
+
"Nothing You Could Do": [
|
2968 |
+
"regular"
|
2969 |
+
]
|
2970 |
+
}, {
|
2971 |
+
"Noticia Text": [
|
2972 |
+
"regular",
|
2973 |
+
"italic",
|
2974 |
+
"700",
|
2975 |
+
"700italic"
|
2976 |
+
]
|
2977 |
+
}, {
|
2978 |
+
"Noto Sans": [
|
2979 |
+
"regular",
|
2980 |
+
"italic",
|
2981 |
+
"700",
|
2982 |
+
"700italic"
|
2983 |
+
]
|
2984 |
+
}, {
|
2985 |
+
"Noto Serif": [
|
2986 |
+
"regular",
|
2987 |
+
"italic",
|
2988 |
+
"700",
|
2989 |
+
"700italic"
|
2990 |
+
]
|
2991 |
+
}, {
|
2992 |
+
"Nova Cut": [
|
2993 |
+
"regular"
|
2994 |
+
]
|
2995 |
+
}, {
|
2996 |
+
"Nova Flat": [
|
2997 |
+
"regular"
|
2998 |
+
]
|
2999 |
+
}, {
|
3000 |
+
"Nova Mono": [
|
3001 |
+
"regular"
|
3002 |
+
]
|
3003 |
+
}, {
|
3004 |
+
"Nova Oval": [
|
3005 |
+
"regular"
|
3006 |
+
]
|
3007 |
+
}, {
|
3008 |
+
"Nova Round": [
|
3009 |
+
"regular"
|
3010 |
+
]
|
3011 |
+
}, {
|
3012 |
+
"Nova Script": [
|
3013 |
+
"regular"
|
3014 |
+
]
|
3015 |
+
}, {
|
3016 |
+
"Nova Slim": [
|
3017 |
+
"regular"
|
3018 |
+
]
|
3019 |
+
}, {
|
3020 |
+
"Nova Square": [
|
3021 |
+
"regular"
|
3022 |
+
]
|
3023 |
+
}, {
|
3024 |
+
"Numans": [
|
3025 |
+
"regular"
|
3026 |
+
]
|
3027 |
+
}, {
|
3028 |
+
"Nunito": [
|
3029 |
+
"200",
|
3030 |
+
"200italic",
|
3031 |
+
"300",
|
3032 |
+
"300italic",
|
3033 |
+
"regular",
|
3034 |
+
"italic",
|
3035 |
+
"600",
|
3036 |
+
"600italic",
|
3037 |
+
"700",
|
3038 |
+
"700italic",
|
3039 |
+
"800",
|
3040 |
+
"800italic",
|
3041 |
+
"900",
|
3042 |
+
"900italic"
|
3043 |
+
]
|
3044 |
+
}, {
|
3045 |
+
"Nunito Sans": [
|
3046 |
+
"200",
|
3047 |
+
"200italic",
|
3048 |
+
"300",
|
3049 |
+
"300italic",
|
3050 |
+
"regular",
|
3051 |
+
"italic",
|
3052 |
+
"600",
|
3053 |
+
"600italic",
|
3054 |
+
"700",
|
3055 |
+
"700italic",
|
3056 |
+
"800",
|
3057 |
+
"800italic",
|
3058 |
+
"900",
|
3059 |
+
"900italic"
|
3060 |
+
]
|
3061 |
+
}, {
|
3062 |
+
"Odor Mean Chey": [
|
3063 |
+
"regular"
|
3064 |
+
]
|
3065 |
+
}, {
|
3066 |
+
"Offside": [
|
3067 |
+
"regular"
|
3068 |
+
]
|
3069 |
+
}, {
|
3070 |
+
"Old Standard TT": [
|
3071 |
+
"regular",
|
3072 |
+
"italic",
|
3073 |
+
"700"
|
3074 |
+
]
|
3075 |
+
}, {
|
3076 |
+
"Oldenburg": [
|
3077 |
+
"regular"
|
3078 |
+
]
|
3079 |
+
}, {
|
3080 |
+
"Oleo Script": [
|
3081 |
+
"regular",
|
3082 |
+
"700"
|
3083 |
+
]
|
3084 |
+
}, {
|
3085 |
+
"Oleo Script Swash Caps": [
|
3086 |
+
"regular",
|
3087 |
+
"700"
|
3088 |
+
]
|
3089 |
+
}, {
|
3090 |
+
"Open Sans": [
|
3091 |
+
"300",
|
3092 |
+
"300italic",
|
3093 |
+
"regular",
|
3094 |
+
"italic",
|
3095 |
+
"600",
|
3096 |
+
"600italic",
|
3097 |
+
"700",
|
3098 |
+
"700italic",
|
3099 |
+
"800",
|
3100 |
+
"800italic"
|
3101 |
+
]
|
3102 |
+
}, {
|
3103 |
+
"Open Sans Condensed": [
|
3104 |
+
"300",
|
3105 |
+
"300italic",
|
3106 |
+
"700"
|
3107 |
+
]
|
3108 |
+
}, {
|
3109 |
+
"Oranienbaum": [
|
3110 |
+
"regular"
|
3111 |
+
]
|
3112 |
+
}, {
|
3113 |
+
"Orbitron": [
|
3114 |
+
"regular",
|
3115 |
+
"500",
|
3116 |
+
"700",
|
3117 |
+
"900"
|
3118 |
+
]
|
3119 |
+
}, {
|
3120 |
+
"Oregano": [
|
3121 |
+
"regular",
|
3122 |
+
"italic"
|
3123 |
+
]
|
3124 |
+
}, {
|
3125 |
+
"Orienta": [
|
3126 |
+
"regular"
|
3127 |
+
]
|
3128 |
+
}, {
|
3129 |
+
"Original Surfer": [
|
3130 |
+
"regular"
|
3131 |
+
]
|
3132 |
+
}, {
|
3133 |
+
"Oswald": [
|
3134 |
+
"200",
|
3135 |
+
"300",
|
3136 |
+
"regular",
|
3137 |
+
"500",
|
3138 |
+
"600",
|
3139 |
+
"700"
|
3140 |
+
]
|
3141 |
+
}, {
|
3142 |
+
"Over the Rainbow": [
|
3143 |
+
"regular"
|
3144 |
+
]
|
3145 |
+
}, {
|
3146 |
+
"Overlock": [
|
3147 |
+
"regular",
|
3148 |
+
"italic",
|
3149 |
+
"700",
|
3150 |
+
"700italic",
|
3151 |
+
"900",
|
3152 |
+
"900italic"
|
3153 |
+
]
|
3154 |
+
}, {
|
3155 |
+
"Overlock SC": [
|
3156 |
+
"regular"
|
3157 |
+
]
|
3158 |
+
}, {
|
3159 |
+
"Overpass": [
|
3160 |
+
"100",
|
3161 |
+
"100italic",
|
3162 |
+
"200",
|
3163 |
+
"200italic",
|
3164 |
+
"300",
|
3165 |
+
"300italic",
|
3166 |
+
"regular",
|
3167 |
+
"italic",
|
3168 |
+
"600",
|
3169 |
+
"600italic",
|
3170 |
+
"700",
|
3171 |
+
"700italic",
|
3172 |
+
"800",
|
3173 |
+
"800italic",
|
3174 |
+
"900",
|
3175 |
+
"900italic"
|
3176 |
+
]
|
3177 |
+
}, {
|
3178 |
+
"Overpass Mono": [
|
3179 |
+
"300",
|
3180 |
+
"regular",
|
3181 |
+
"600",
|
3182 |
+
"700"
|
3183 |
+
]
|
3184 |
+
}, {
|
3185 |
+
"Ovo": [
|
3186 |
+
"regular"
|
3187 |
+
]
|
3188 |
+
}, {
|
3189 |
+
"Oxygen": [
|
3190 |
+
"300",
|
3191 |
+
"regular",
|
3192 |
+
"700"
|
3193 |
+
]
|
3194 |
+
}, {
|
3195 |
+
"Oxygen Mono": [
|
3196 |
+
"regular"
|
3197 |
+
]
|
3198 |
+
}, {
|
3199 |
+
"PT Mono": [
|
3200 |
+
"regular"
|
3201 |
+
]
|
3202 |
+
}, {
|
3203 |
+
"PT Sans": [
|
3204 |
+
"regular",
|
3205 |
+
"italic",
|
3206 |
+
"700",
|
3207 |
+
"700italic"
|
3208 |
+
]
|
3209 |
+
}, {
|
3210 |
+
"PT Sans Caption": [
|
3211 |
+
"regular",
|
3212 |
+
"700"
|
3213 |
+
]
|
3214 |
+
}, {
|
3215 |
+
"PT Sans Narrow": [
|
3216 |
+
"regular",
|
3217 |
+
"700"
|
3218 |
+
]
|
3219 |
+
}, {
|
3220 |
+
"PT Serif": [
|
3221 |
+
"regular",
|
3222 |
+
"italic",
|
3223 |
+
"700",
|
3224 |
+
"700italic"
|
3225 |
+
]
|
3226 |
+
}, {
|
3227 |
+
"PT Serif Caption": [
|
3228 |
+
"regular",
|
3229 |
+
"italic"
|
3230 |
+
]
|
3231 |
+
}, {
|
3232 |
+
"Pacifico": [
|
3233 |
+
"regular"
|
3234 |
+
]
|
3235 |
+
}, {
|
3236 |
+
"Padauk": [
|
3237 |
+
"regular",
|
3238 |
+
"700"
|
3239 |
+
]
|
3240 |
+
}, {
|
3241 |
+
"Palanquin": [
|
3242 |
+
"100",
|
3243 |
+
"200",
|
3244 |
+
"300",
|
3245 |
+
"regular",
|
3246 |
+
"500",
|
3247 |
+
"600",
|
3248 |
+
"700"
|
3249 |
+
]
|
3250 |
+
}, {
|
3251 |
+
"Palanquin Dark": [
|
3252 |
+
"regular",
|
3253 |
+
"500",
|
3254 |
+
"600",
|
3255 |
+
"700"
|
3256 |
+
]
|
3257 |
+
}, {
|
3258 |
+
"Pangolin": [
|
3259 |
+
"regular"
|
3260 |
+
]
|
3261 |
+
}, {
|
3262 |
+
"Paprika": [
|
3263 |
+
"regular"
|
3264 |
+
]
|
3265 |
+
}, {
|
3266 |
+
"Parisienne": [
|
3267 |
+
"regular"
|
3268 |
+
]
|
3269 |
+
}, {
|
3270 |
+
"Passero One": [
|
3271 |
+
"regular"
|
3272 |
+
]
|
3273 |
+
}, {
|
3274 |
+
"Passion One": [
|
3275 |
+
"regular",
|
3276 |
+
"700",
|
3277 |
+
"900"
|
3278 |
+
]
|
3279 |
+
}, {
|
3280 |
+
"Pathway Gothic One": [
|
3281 |
+
"regular"
|
3282 |
+
]
|
3283 |
+
}, {
|
3284 |
+
"Patrick Hand": [
|
3285 |
+
"regular"
|
3286 |
+
]
|
3287 |
+
}, {
|
3288 |
+
"Patrick Hand SC": [
|
3289 |
+
"regular"
|
3290 |
+
]
|
3291 |
+
}, {
|
3292 |
+
"Pattaya": [
|
3293 |
+
"regular"
|
3294 |
+
]
|
3295 |
+
}, {
|
3296 |
+
"Patua One": [
|
3297 |
+
"regular"
|
3298 |
+
]
|
3299 |
+
}, {
|
3300 |
+
"Pavanam": [
|
3301 |
+
"regular"
|
3302 |
+
]
|
3303 |
+
}, {
|
3304 |
+
"Paytone One": [
|
3305 |
+
"regular"
|
3306 |
+
]
|
3307 |
+
}, {
|
3308 |
+
"Peddana": [
|
3309 |
+
"regular"
|
3310 |
+
]
|
3311 |
+
}, {
|
3312 |
+
"Peralta": [
|
3313 |
+
"regular"
|
3314 |
+
]
|
3315 |
+
}, {
|
3316 |
+
"Permanent Marker": [
|
3317 |
+
"regular"
|
3318 |
+
]
|
3319 |
+
}, {
|
3320 |
+
"Petit Formal Script": [
|
3321 |
+
"regular"
|
3322 |
+
]
|
3323 |
+
}, {
|
3324 |
+
"Petrona": [
|
3325 |
+
"regular"
|
3326 |
+
]
|
3327 |
+
}, {
|
3328 |
+
"Philosopher": [
|
3329 |
+
"regular",
|
3330 |
+
"italic",
|
3331 |
+
"700",
|
3332 |
+
"700italic"
|
3333 |
+
]
|
3334 |
+
}, {
|
3335 |
+
"Piedra": [
|
3336 |
+
"regular"
|
3337 |
+
]
|
3338 |
+
}, {
|
3339 |
+
"Pinyon Script": [
|
3340 |
+
"regular"
|
3341 |
+
]
|
3342 |
+
}, {
|
3343 |
+
"Pirata One": [
|
3344 |
+
"regular"
|
3345 |
+
]
|
3346 |
+
}, {
|
3347 |
+
"Plaster": [
|
3348 |
+
"regular"
|
3349 |
+
]
|
3350 |
+
}, {
|
3351 |
+
"Play": [
|
3352 |
+
"regular",
|
3353 |
+
"700"
|
3354 |
+
]
|
3355 |
+
}, {
|
3356 |
+
"Playball": [
|
3357 |
+
"regular"
|
3358 |
+
]
|
3359 |
+
}, {
|
3360 |
+
"Playfair Display": [
|
3361 |
+
"regular",
|
3362 |
+
"italic",
|
3363 |
+
"700",
|
3364 |
+
"700italic",
|
3365 |
+
"900",
|
3366 |
+
"900italic"
|
3367 |
+
]
|
3368 |
+
}, {
|
3369 |
+
"Playfair Display SC": [
|
3370 |
+
"regular",
|
3371 |
+
"italic",
|
3372 |
+
"700",
|
3373 |
+
"700italic",
|
3374 |
+
"900",
|
3375 |
+
"900italic"
|
3376 |
+
]
|
3377 |
+
}, {
|
3378 |
+
"Podkova": [
|
3379 |
+
"regular",
|
3380 |
+
"500",
|
3381 |
+
"600",
|
3382 |
+
"700",
|
3383 |
+
"800"
|
3384 |
+
]
|
3385 |
+
}, {
|
3386 |
+
"Poiret One": [
|
3387 |
+
"regular"
|
3388 |
+
]
|
3389 |
+
}, {
|
3390 |
+
"Poller One": [
|
3391 |
+
"regular"
|
3392 |
+
]
|
3393 |
+
}, {
|
3394 |
+
"Poly": [
|
3395 |
+
"regular",
|
3396 |
+
"italic"
|
3397 |
+
]
|
3398 |
+
}, {
|
3399 |
+
"Pompiere": [
|
3400 |
+
"regular"
|
3401 |
+
]
|
3402 |
+
}, {
|
3403 |
+
"Pontano Sans": [
|
3404 |
+
"regular"
|
3405 |
+
]
|
3406 |
+
}, {
|
3407 |
+
"Poppins": [
|
3408 |
+
"100",
|
3409 |
+
"100italic",
|
3410 |
+
"200",
|
3411 |
+
"200italic",
|
3412 |
+
"300",
|
3413 |
+
"300italic",
|
3414 |
+
"regular",
|
3415 |
+
"italic",
|
3416 |
+
"500",
|
3417 |
+
"500italic",
|
3418 |
+
"600",
|
3419 |
+
"600italic",
|
3420 |
+
"700",
|
3421 |
+
"700italic",
|
3422 |
+
"800",
|
3423 |
+
"800italic",
|
3424 |
+
"900",
|
3425 |
+
"900italic"
|
3426 |
+
]
|
3427 |
+
}, {
|
3428 |
+
"Port Lligat Sans": [
|
3429 |
+
"regular"
|
3430 |
+
]
|
3431 |
+
}, {
|
3432 |
+
"Port Lligat Slab": [
|
3433 |
+
"regular"
|
3434 |
+
]
|
3435 |
+
}, {
|
3436 |
+
"Pragati Narrow": [
|
3437 |
+
"regular",
|
3438 |
+
"700"
|
3439 |
+
]
|
3440 |
+
}, {
|
3441 |
+
"Prata": [
|
3442 |
+
"regular"
|
3443 |
+
]
|
3444 |
+
}, {
|
3445 |
+
"Preahvihear": [
|
3446 |
+
"regular"
|
3447 |
+
]
|
3448 |
+
}, {
|
3449 |
+
"Press Start 2P": [
|
3450 |
+
"regular"
|
3451 |
+
]
|
3452 |
+
}, {
|
3453 |
+
"Pridi": [
|
3454 |
+
"200",
|
3455 |
+
"300",
|
3456 |
+
"regular",
|
3457 |
+
"500",
|
3458 |
+
"600",
|
3459 |
+
"700"
|
3460 |
+
]
|
3461 |
+
}, {
|
3462 |
+
"Princess Sofia": [
|
3463 |
+
"regular"
|
3464 |
+
]
|
3465 |
+
}, {
|
3466 |
+
"Prociono": [
|
3467 |
+
"regular"
|
3468 |
+
]
|
3469 |
+
}, {
|
3470 |
+
"Prompt": [
|
3471 |
+
"100",
|
3472 |
+
"100italic",
|
3473 |
+
"200",
|
3474 |
+
"200italic",
|
3475 |
+
"300",
|
3476 |
+
"300italic",
|
3477 |
+
"regular",
|
3478 |
+
"italic",
|
3479 |
+
"500",
|
3480 |
+
"500italic",
|
3481 |
+
"600",
|
3482 |
+
"600italic",
|
3483 |
+
"700",
|
3484 |
+
"700italic",
|
3485 |
+
"800",
|
3486 |
+
"800italic",
|
3487 |
+
"900",
|
3488 |
+
"900italic"
|
3489 |
+
]
|
3490 |
+
}, {
|
3491 |
+
"Prosto One": [
|
3492 |
+
"regular"
|
3493 |
+
]
|
3494 |
+
}, {
|
3495 |
+
"Proza Libre": [
|
3496 |
+
"regular",
|
3497 |
+
"italic",
|
3498 |
+
"500",
|
3499 |
+
"500italic",
|
3500 |
+
"600",
|
3501 |
+
"600italic",
|
3502 |
+
"700",
|
3503 |
+
"700italic",
|
3504 |
+
"800",
|
3505 |
+
"800italic"
|
3506 |
+
]
|
3507 |
+
}, {
|
3508 |
+
"Puritan": [
|
3509 |
+
"regular",
|
3510 |
+
"italic",
|
3511 |
+
"700",
|
3512 |
+
"700italic"
|
3513 |
+
]
|
3514 |
+
}, {
|
3515 |
+
"Purple Purse": [
|
3516 |
+
"regular"
|
3517 |
+
]
|
3518 |
+
}, {
|
3519 |
+
"Quando": [
|
3520 |
+
"regular"
|
3521 |
+
]
|
3522 |
+
}, {
|
3523 |
+
"Quantico": [
|
3524 |
+
"regular",
|
3525 |
+
"italic",
|
3526 |
+
"700",
|
3527 |
+
"700italic"
|
3528 |
+
]
|
3529 |
+
}, {
|
3530 |
+
"Quattrocento": [
|
3531 |
+
"regular",
|
3532 |
+
"700"
|
3533 |
+
]
|
3534 |
+
}, {
|
3535 |
+
"Quattrocento Sans": [
|
3536 |
+
"regular",
|
3537 |
+
"italic",
|
3538 |
+
"700",
|
3539 |
+
"700italic"
|
3540 |
+
]
|
3541 |
+
}, {
|
3542 |
+
"Questrial": [
|
3543 |
+
"regular"
|
3544 |
+
]
|
3545 |
+
}, {
|
3546 |
+
"Quicksand": [
|
3547 |
+
"300",
|
3548 |
+
"regular",
|
3549 |
+
"500",
|
3550 |
+
"700"
|
3551 |
+
]
|
3552 |
+
}, {
|
3553 |
+
"Quintessential": [
|
3554 |
+
"regular"
|
3555 |
+
]
|
3556 |
+
}, {
|
3557 |
+
"Qwigley": [
|
3558 |
+
"regular"
|
3559 |
+
]
|
3560 |
+
}, {
|
3561 |
+
"Racing Sans One": [
|
3562 |
+
"regular"
|
3563 |
+
]
|
3564 |
+
}, {
|
3565 |
+
"Radley": [
|
3566 |
+
"regular",
|
3567 |
+
"italic"
|
3568 |
+
]
|
3569 |
+
}, {
|
3570 |
+
"Rajdhani": [
|
3571 |
+
"300",
|
3572 |
+
"regular",
|
3573 |
+
"500",
|
3574 |
+
"600",
|
3575 |
+
"700"
|
3576 |
+
]
|
3577 |
+
}, {
|
3578 |
+
"Rakkas": [
|
3579 |
+
"regular"
|
3580 |
+
]
|
3581 |
+
}, {
|
3582 |
+
"Raleway": [
|
3583 |
+
"100",
|
3584 |
+
"100italic",
|
3585 |
+
"200",
|
3586 |
+
"200italic",
|
3587 |
+
"300",
|
3588 |
+
"300italic",
|
3589 |
+
"regular",
|
3590 |
+
"italic",
|
3591 |
+
"500",
|
3592 |
+
"500italic",
|
3593 |
+
"600",
|
3594 |
+
"600italic",
|
3595 |
+
"700",
|
3596 |
+
"700italic",
|
3597 |
+
"800",
|
3598 |
+
"800italic",
|
3599 |
+
"900",
|
3600 |
+
"900italic"
|
3601 |
+
]
|
3602 |
+
}, {
|
3603 |
+
"Raleway Dots": [
|
3604 |
+
"regular"
|
3605 |
+
]
|
3606 |
+
}, {
|
3607 |
+
"Ramabhadra": [
|
3608 |
+
"regular"
|
3609 |
+
]
|
3610 |
+
}, {
|
3611 |
+
"Ramaraja": [
|
3612 |
+
"regular"
|
3613 |
+
]
|
3614 |
+
}, {
|
3615 |
+
"Rambla": [
|
3616 |
+
"regular",
|
3617 |
+
"italic",
|
3618 |
+
"700",
|
3619 |
+
"700italic"
|
3620 |
+
]
|
3621 |
+
}, {
|
3622 |
+
"Rammetto One": [
|
3623 |
+
"regular"
|
3624 |
+
]
|
3625 |
+
}, {
|
3626 |
+
"Ranchers": [
|
3627 |
+
"regular"
|
3628 |
+
]
|
3629 |
+
}, {
|
3630 |
+
"Rancho": [
|
3631 |
+
"regular"
|
3632 |
+
]
|
3633 |
+
}, {
|
3634 |
+
"Ranga": [
|
3635 |
+
"regular",
|
3636 |
+
"700"
|
3637 |
+
]
|
3638 |
+
}, {
|
3639 |
+
"Rasa": [
|
3640 |
+
"300",
|
3641 |
+
"regular",
|
3642 |
+
"500",
|
3643 |
+
"600",
|
3644 |
+
"700"
|
3645 |
+
]
|
3646 |
+
}, {
|
3647 |
+
"Rationale": [
|
3648 |
+
"regular"
|
3649 |
+
]
|
3650 |
+
}, {
|
3651 |
+
"Ravi Prakash": [
|
3652 |
+
"regular"
|
3653 |
+
]
|
3654 |
+
}, {
|
3655 |
+
"Redressed": [
|
3656 |
+
"regular"
|
3657 |
+
]
|
3658 |
+
}, {
|
3659 |
+
"Reem Kufi": [
|
3660 |
+
"regular"
|
3661 |
+
]
|
3662 |
+
}, {
|
3663 |
+
"Reenie Beanie": [
|
3664 |
+
"regular"
|
3665 |
+
]
|
3666 |
+
}, {
|
3667 |
+
"Revalia": [
|
3668 |
+
"regular"
|
3669 |
+
]
|
3670 |
+
}, {
|
3671 |
+
"Rhodium Libre": [
|
3672 |
+
"regular"
|
3673 |
+
]
|
3674 |
+
}, {
|
3675 |
+
"Ribeye": [
|
3676 |
+
"regular"
|
3677 |
+
]
|
3678 |
+
}, {
|
3679 |
+
"Ribeye Marrow": [
|
3680 |
+
"regular"
|
3681 |
+
]
|
3682 |
+
}, {
|
3683 |
+
"Righteous": [
|
3684 |
+
"regular"
|
3685 |
+
]
|
3686 |
+
}, {
|
3687 |
+
"Risque": [
|
3688 |
+
"regular"
|
3689 |
+
]
|
3690 |
+
}, {
|
3691 |
+
"Roboto": [
|
3692 |
+
"100",
|
3693 |
+
"100italic",
|
3694 |
+
"300",
|
3695 |
+
"300italic",
|
3696 |
+
"regular",
|
3697 |
+
"italic",
|
3698 |
+
"500",
|
3699 |
+
"500italic",
|
3700 |
+
"700",
|
3701 |
+
"700italic",
|
3702 |
+
"900",
|
3703 |
+
"900italic"
|
3704 |
+
]
|
3705 |
+
}, {
|
3706 |
+
"Roboto Condensed": [
|
3707 |
+
"300",
|
3708 |
+
"300italic",
|
3709 |
+
"regular",
|
3710 |
+
"italic",
|
3711 |
+
"700",
|
3712 |
+
"700italic"
|
3713 |
+
]
|
3714 |
+
}, {
|
3715 |
+
"Roboto Mono": [
|
3716 |
+
"100",
|
3717 |
+
"100italic",
|
3718 |
+
"300",
|
3719 |
+
"300italic",
|
3720 |
+
"regular",
|
3721 |
+
"italic",
|
3722 |
+
"500",
|
3723 |
+
"500italic",
|
3724 |
+
"700",
|
3725 |
+
"700italic"
|
3726 |
+
]
|
3727 |
+
}, {
|
3728 |
+
"Roboto Slab": [
|
3729 |
+
"100",
|
3730 |
+
"300",
|
3731 |
+
"regular",
|
3732 |
+
"700"
|
3733 |
+
]
|
3734 |
+
}, {
|
3735 |
+
"Rochester": [
|
3736 |
+
"regular"
|
3737 |
+
]
|
3738 |
+
}, {
|
3739 |
+
"Rock Salt": [
|
3740 |
+
"regular"
|
3741 |
+
]
|
3742 |
+
}, {
|
3743 |
+
"Rokkitt": [
|
3744 |
+
"100",
|
3745 |
+
"200",
|
3746 |
+
"300",
|
3747 |
+
"regular",
|
3748 |
+
"500",
|
3749 |
+
"600",
|
3750 |
+
"700",
|
3751 |
+
"800",
|
3752 |
+
"900"
|
3753 |
+
]
|
3754 |
+
}, {
|
3755 |
+
"Romanesco": [
|
3756 |
+
"regular"
|
3757 |
+
]
|
3758 |
+
}, {
|
3759 |
+
"Ropa Sans": [
|
3760 |
+
"regular",
|
3761 |
+
"italic"
|
3762 |
+
]
|
3763 |
+
}, {
|
3764 |
+
"Rosario": [
|
3765 |
+
"regular",
|
3766 |
+
"italic",
|
3767 |
+
"700",
|
3768 |
+
"700italic"
|
3769 |
+
]
|
3770 |
+
}, {
|
3771 |
+
"Rosarivo": [
|
3772 |
+
"regular",
|
3773 |
+
"italic"
|
3774 |
+
]
|
3775 |
+
}, {
|
3776 |
+
"Rouge Script": [
|
3777 |
+
"regular"
|
3778 |
+
]
|
3779 |
+
}, {
|
3780 |
+
"Rozha One": [
|
3781 |
+
"regular"
|
3782 |
+
]
|
3783 |
+
}, {
|
3784 |
+
"Rubik": [
|
3785 |
+
"300",
|
3786 |
+
"300italic",
|
3787 |
+
"regular",
|
3788 |
+
"italic",
|
3789 |
+
"500",
|
3790 |
+
"500italic",
|
3791 |
+
"700",
|
3792 |
+
"700italic",
|
3793 |
+
"900",
|
3794 |
+
"900italic"
|
3795 |
+
]
|
3796 |
+
}, {
|
3797 |
+
"Rubik Mono One": [
|
3798 |
+
"regular"
|
3799 |
+
]
|
3800 |
+
}, {
|
3801 |
+
"Ruda": [
|
3802 |
+
"regular",
|
3803 |
+
"700",
|
3804 |
+
"900"
|
3805 |
+
]
|
3806 |
+
}, {
|
3807 |
+
"Rufina": [
|
3808 |
+
"regular",
|
3809 |
+
"700"
|
3810 |
+
]
|
3811 |
+
}, {
|
3812 |
+
"Ruge Boogie": [
|
3813 |
+
"regular"
|
3814 |
+
]
|
3815 |
+
}, {
|
3816 |
+
"Ruluko": [
|
3817 |
+
"regular"
|
3818 |
+
]
|
3819 |
+
}, {
|
3820 |
+
"Rum Raisin": [
|
3821 |
+
"regular"
|
3822 |
+
]
|
3823 |
+
}, {
|
3824 |
+
"Ruslan Display": [
|
3825 |
+
"regular"
|
3826 |
+
]
|
3827 |
+
}, {
|
3828 |
+
"Russo One": [
|
3829 |
+
"regular"
|
3830 |
+
]
|
3831 |
+
}, {
|
3832 |
+
"Ruthie": [
|
3833 |
+
"regular"
|
3834 |
+
]
|
3835 |
+
}, {
|
3836 |
+
"Rye": [
|
3837 |
+
"regular"
|
3838 |
+
]
|
3839 |
+
}, {
|
3840 |
+
"Sacramento": [
|
3841 |
+
"regular"
|
3842 |
+
]
|
3843 |
+
}, {
|
3844 |
+
"Sahitya": [
|
3845 |
+
"regular",
|
3846 |
+
"700"
|
3847 |
+
]
|
3848 |
+
}, {
|
3849 |
+
"Sail": [
|
3850 |
+
"regular"
|
3851 |
+
]
|
3852 |
+
}, {
|
3853 |
+
"Saira": [
|
3854 |
+
"100",
|
3855 |
+
"200",
|
3856 |
+
"300",
|
3857 |
+
"regular",
|
3858 |
+
"500",
|
3859 |
+
"600",
|
3860 |
+
"700",
|
3861 |
+
"800",
|
3862 |
+
"900"
|
3863 |
+
]
|
3864 |
+
}, {
|
3865 |
+
"Saira Condensed": [
|
3866 |
+
"100",
|
3867 |
+
"200",
|
3868 |
+
"300",
|
3869 |
+
"regular",
|
3870 |
+
"500",
|
3871 |
+
"600",
|
3872 |
+
"700",
|
3873 |
+
"800",
|
3874 |
+
"900"
|
3875 |
+
]
|
3876 |
+
}, {
|
3877 |
+
"Saira Extra Condensed": [
|
3878 |
+
"100",
|
3879 |
+
"200",
|
3880 |
+
"300",
|
3881 |
+
"regular",
|
3882 |
+
"500",
|
3883 |
+
"600",
|
3884 |
+
"700",
|
3885 |
+
"800",
|
3886 |
+
"900"
|
3887 |
+
]
|
3888 |
+
}, {
|
3889 |
+
"Saira Semi Condensed": [
|
3890 |
+
"100",
|
3891 |
+
"200",
|
3892 |
+
"300",
|
3893 |
+
"regular",
|
3894 |
+
"500",
|
3895 |
+
"600",
|
3896 |
+
"700",
|
3897 |
+
"800",
|
3898 |
+
"900"
|
3899 |
+
]
|
3900 |
+
}, {
|
3901 |
+
"Salsa": [
|
3902 |
+
"regular"
|
3903 |
+
]
|
3904 |
+
}, {
|
3905 |
+
"Sanchez": [
|
3906 |
+
"regular",
|
3907 |
+
"italic"
|
3908 |
+
]
|
3909 |
+
}, {
|
3910 |
+
"Sancreek": [
|
3911 |
+
"regular"
|
3912 |
+
]
|
3913 |
+
}, {
|
3914 |
+
"Sansita": [
|
3915 |
+
"regular",
|
3916 |
+
"italic",
|
3917 |
+
"700",
|
3918 |
+
"700italic",
|
3919 |
+
"800",
|
3920 |
+
"800italic",
|
3921 |
+
"900",
|
3922 |
+
"900italic"
|
3923 |
+
]
|
3924 |
+
}, {
|
3925 |
+
"Sarala": [
|
3926 |
+
"regular",
|
3927 |
+
"700"
|
3928 |
+
]
|
3929 |
+
}, {
|
3930 |
+
"Sarina": [
|
3931 |
+
"regular"
|
3932 |
+
]
|
3933 |
+
}, {
|
3934 |
+
"Sarpanch": [
|
3935 |
+
"regular",
|
3936 |
+
"500",
|
3937 |
+
"600",
|
3938 |
+
"700",
|
3939 |
+
"800",
|
3940 |
+
"900"
|
3941 |
+
]
|
3942 |
+
}, {
|
3943 |
+
"Satisfy": [
|
3944 |
+
"regular"
|
3945 |
+
]
|
3946 |
+
}, {
|
3947 |
+
"Scada": [
|
3948 |
+
"regular",
|
3949 |
+
"italic",
|
3950 |
+
"700",
|
3951 |
+
"700italic"
|
3952 |
+
]
|
3953 |
+
}, {
|
3954 |
+
"Scheherazade": [
|
3955 |
+
"regular",
|
3956 |
+
"700"
|
3957 |
+
]
|
3958 |
+
}, {
|
3959 |
+
"Schoolbell": [
|
3960 |
+
"regular"
|
3961 |
+
]
|
3962 |
+
}, {
|
3963 |
+
"Scope One": [
|
3964 |
+
"regular"
|
3965 |
+
]
|
3966 |
+
}, {
|
3967 |
+
"Seaweed Script": [
|
3968 |
+
"regular"
|
3969 |
+
]
|
3970 |
+
}, {
|
3971 |
+
"Secular One": [
|
3972 |
+
"regular"
|
3973 |
+
]
|
3974 |
+
}, {
|
3975 |
+
"Sedgwick Ave": [
|
3976 |
+
"regular"
|
3977 |
+
]
|
3978 |
+
}, {
|
3979 |
+
"Sedgwick Ave Display": [
|
3980 |
+
"regular"
|
3981 |
+
]
|
3982 |
+
}, {
|
3983 |
+
"Sevillana": [
|
3984 |
+
"regular"
|
3985 |
+
]
|
3986 |
+
}, {
|
3987 |
+
"Seymour One": [
|
3988 |
+
"regular"
|
3989 |
+
]
|
3990 |
+
}, {
|
3991 |
+
"Shadows Into Light": [
|
3992 |
+
"regular"
|
3993 |
+
]
|
3994 |
+
}, {
|
3995 |
+
"Shadows Into Light Two": [
|
3996 |
+
"regular"
|
3997 |
+
]
|
3998 |
+
}, {
|
3999 |
+
"Shanti": [
|
4000 |
+
"regular"
|
4001 |
+
]
|
4002 |
+
}, {
|
4003 |
+
"Share": [
|
4004 |
+
"regular",
|
4005 |
+
"italic",
|
4006 |
+
"700",
|
4007 |
+
"700italic"
|
4008 |
+
]
|
4009 |
+
}, {
|
4010 |
+
"Share Tech": [
|
4011 |
+
"regular"
|
4012 |
+
]
|
4013 |
+
}, {
|
4014 |
+
"Share Tech Mono": [
|
4015 |
+
"regular"
|
4016 |
+
]
|
4017 |
+
}, {
|
4018 |
+
"Shojumaru": [
|
4019 |
+
"regular"
|
4020 |
+
]
|
4021 |
+
}, {
|
4022 |
+
"Short Stack": [
|
4023 |
+
"regular"
|
4024 |
+
]
|
4025 |
+
}, {
|
4026 |
+
"Shrikhand": [
|
4027 |
+
"regular"
|
4028 |
+
]
|
4029 |
+
}, {
|
4030 |
+
"Siemreap": [
|
4031 |
+
"regular"
|
4032 |
+
]
|
4033 |
+
}, {
|
4034 |
+
"Sigmar One": [
|
4035 |
+
"regular"
|
4036 |
+
]
|
4037 |
+
}, {
|
4038 |
+
"Signika": [
|
4039 |
+
"300",
|
4040 |
+
"regular",
|
4041 |
+
"600",
|
4042 |
+
"700"
|
4043 |
+
]
|
4044 |
+
}, {
|
4045 |
+
"Signika Negative": [
|
4046 |
+
"300",
|
4047 |
+
"regular",
|
4048 |
+
"600",
|
4049 |
+
"700"
|
4050 |
+
]
|
4051 |
+
}, {
|
4052 |
+
"Simonetta": [
|
4053 |
+
"regular",
|
4054 |
+
"italic",
|
4055 |
+
"900",
|
4056 |
+
"900italic"
|
4057 |
+
]
|
4058 |
+
}, {
|
4059 |
+
"Sintony": [
|
4060 |
+
"regular",
|
4061 |
+
"700"
|
4062 |
+
]
|
4063 |
+
}, {
|
4064 |
+
"Sirin Stencil": [
|
4065 |
+
"regular"
|
4066 |
+
]
|
4067 |
+
}, {
|
4068 |
+
"Six Caps": [
|
4069 |
+
"regular"
|
4070 |
+
]
|
4071 |
+
}, {
|
4072 |
+
"Skranji": [
|
4073 |
+
"regular",
|
4074 |
+
"700"
|
4075 |
+
]
|
4076 |
+
}, {
|
4077 |
+
"Slabo 13px": [
|
4078 |
+
"regular"
|
4079 |
+
]
|
4080 |
+
}, {
|
4081 |
+
"Slabo 27px": [
|
4082 |
+
"regular"
|
4083 |
+
]
|
4084 |
+
}, {
|
4085 |
+
"Slackey": [
|
4086 |
+
"regular"
|
4087 |
+
]
|
4088 |
+
}, {
|
4089 |
+
"Smokum": [
|
4090 |
+
"regular"
|
4091 |
+
]
|
4092 |
+
}, {
|
4093 |
+
"Smythe": [
|
4094 |
+
"regular"
|
4095 |
+
]
|
4096 |
+
}, {
|
4097 |
+
"Sniglet": [
|
4098 |
+
"regular",
|
4099 |
+
"800"
|
4100 |
+
]
|
4101 |
+
}, {
|
4102 |
+
"Snippet": [
|
4103 |
+
"regular"
|
4104 |
+
]
|
4105 |
+
}, {
|
4106 |
+
"Snowburst One": [
|
4107 |
+
"regular"
|
4108 |
+
]
|
4109 |
+
}, {
|
4110 |
+
"Sofadi One": [
|
4111 |
+
"regular"
|
4112 |
+
]
|
4113 |
+
}, {
|
4114 |
+
"Sofia": [
|
4115 |
+
"regular"
|
4116 |
+
]
|
4117 |
+
}, {
|
4118 |
+
"Sonsie One": [
|
4119 |
+
"regular"
|
4120 |
+
]
|
4121 |
+
}, {
|
4122 |
+
"Sorts Mill Goudy": [
|
4123 |
+
"regular",
|
4124 |
+
"italic"
|
4125 |
+
]
|
4126 |
+
}, {
|
4127 |
+
"Source Code Pro": [
|
4128 |
+
"200",
|
4129 |
+
"300",
|
4130 |
+
"regular",
|
4131 |
+
"500",
|
4132 |
+
"600",
|
4133 |
+
"700",
|
4134 |
+
"900"
|
4135 |
+
]
|
4136 |
+
}, {
|
4137 |
+
"Source Sans Pro": [
|
4138 |
+
"200",
|
4139 |
+
"200italic",
|
4140 |
+
"300",
|
4141 |
+
"300italic",
|
4142 |
+
"regular",
|
4143 |
+
"italic",
|
4144 |
+
"600",
|
4145 |
+
"600italic",
|
4146 |
+
"700",
|
4147 |
+
"700italic",
|
4148 |
+
"900",
|
4149 |
+
"900italic"
|
4150 |
+
]
|
4151 |
+
}, {
|
4152 |
+
"Source Serif Pro": [
|
4153 |
+
"regular",
|
4154 |
+
"600",
|
4155 |
+
"700"
|
4156 |
+
]
|
4157 |
+
}, {
|
4158 |
+
"Space Mono": [
|
4159 |
+
"regular",
|
4160 |
+
"italic",
|
4161 |
+
"700",
|
4162 |
+
"700italic"
|
4163 |
+
]
|
4164 |
+
}, {
|
4165 |
+
"Special Elite": [
|
4166 |
+
"regular"
|
4167 |
+
]
|
4168 |
+
}, {
|
4169 |
+
"Spectral": [
|
4170 |
+
"200",
|
4171 |
+
"200italic",
|
4172 |
+
"300",
|
4173 |
+
"300italic",
|
4174 |
+
"regular",
|
4175 |
+
"italic",
|
4176 |
+
"500",
|
4177 |
+
"500italic",
|
4178 |
+
"600",
|
4179 |
+
"600italic",
|
4180 |
+
"700",
|
4181 |
+
"700italic",
|
4182 |
+
"800",
|
4183 |
+
"800italic"
|
4184 |
+
]
|
4185 |
+
}, {
|
4186 |
+
"Spicy Rice": [
|
4187 |
+
"regular"
|
4188 |
+
]
|
4189 |
+
}, {
|
4190 |
+
"Spinnaker": [
|
4191 |
+
"regular"
|
4192 |
+
]
|
4193 |
+
}, {
|
4194 |
+
"Spirax": [
|
4195 |
+
"regular"
|
4196 |
+
]
|
4197 |
+
}, {
|
4198 |
+
"Squada One": [
|
4199 |
+
"regular"
|
4200 |
+
]
|
4201 |
+
}, {
|
4202 |
+
"Sree Krushnadevaraya": [
|
4203 |
+
"regular"
|
4204 |
+
]
|
4205 |
+
}, {
|
4206 |
+
"Sriracha": [
|
4207 |
+
"regular"
|
4208 |
+
]
|
4209 |
+
}, {
|
4210 |
+
"Stalemate": [
|
4211 |
+
"regular"
|
4212 |
+
]
|
4213 |
+
}, {
|
4214 |
+
"Stalinist One": [
|
4215 |
+
"regular"
|
4216 |
+
]
|
4217 |
+
}, {
|
4218 |
+
"Stardos Stencil": [
|
4219 |
+
"regular",
|
4220 |
+
"700"
|
4221 |
+
]
|
4222 |
+
}, {
|
4223 |
+
"Stint Ultra Condensed": [
|
4224 |
+
"regular"
|
4225 |
+
]
|
4226 |
+
}, {
|
4227 |
+
"Stint Ultra Expanded": [
|
4228 |
+
"regular"
|
4229 |
+
]
|
4230 |
+
}, {
|
4231 |
+
"Stoke": [
|
4232 |
+
"300",
|
4233 |
+
"regular"
|
4234 |
+
]
|
4235 |
+
}, {
|
4236 |
+
"Strait": [
|
4237 |
+
"regular"
|
4238 |
+
]
|
4239 |
+
}, {
|
4240 |
+
"Sue Ellen Francisco": [
|
4241 |
+
"regular"
|
4242 |
+
]
|
4243 |
+
}, {
|
4244 |
+
"Suez One": [
|
4245 |
+
"regular"
|
4246 |
+
]
|
4247 |
+
}, {
|
4248 |
+
"Sumana": [
|
4249 |
+
"regular",
|
4250 |
+
"700"
|
4251 |
+
]
|
4252 |
+
}, {
|
4253 |
+
"Sunshiney": [
|
4254 |
+
"regular"
|
4255 |
+
]
|
4256 |
+
}, {
|
4257 |
+
"Supermercado One": [
|
4258 |
+
"regular"
|
4259 |
+
]
|
4260 |
+
}, {
|
4261 |
+
"Sura": [
|
4262 |
+
"regular",
|
4263 |
+
"700"
|
4264 |
+
]
|
4265 |
+
}, {
|
4266 |
+
"Suranna": [
|
4267 |
+
"regular"
|
4268 |
+
]
|
4269 |
+
}, {
|
4270 |
+
"Suravaram": [
|
4271 |
+
"regular"
|
4272 |
+
]
|
4273 |
+
}, {
|
4274 |
+
"Suwannaphum": [
|
4275 |
+
"regular"
|
4276 |
+
]
|
4277 |
+
}, {
|
4278 |
+
"Swanky and Moo Moo": [
|
4279 |
+
"regular"
|
4280 |
+
]
|
4281 |
+
}, {
|
4282 |
+
"Syncopate": [
|
4283 |
+
"regular",
|
4284 |
+
"700"
|
4285 |
+
]
|
4286 |
+
}, {
|
4287 |
+
"Tangerine": [
|
4288 |
+
"regular",
|
4289 |
+
"700"
|
4290 |
+
]
|
4291 |
+
}, {
|
4292 |
+
"Taprom": [
|
4293 |
+
"regular"
|
4294 |
+
]
|
4295 |
+
}, {
|
4296 |
+
"Tauri": [
|
4297 |
+
"regular"
|
4298 |
+
]
|
4299 |
+
}, {
|
4300 |
+
"Taviraj": [
|
4301 |
+
"100",
|
4302 |
+
"100italic",
|
4303 |
+
"200",
|
4304 |
+
"200italic",
|
4305 |
+
"300",
|
4306 |
+
"300italic",
|
4307 |
+
"regular",
|
4308 |
+
"italic",
|
4309 |
+
"500",
|
4310 |
+
"500italic",
|
4311 |
+
"600",
|
4312 |
+
"600italic",
|
4313 |
+
"700",
|
4314 |
+
"700italic",
|
4315 |
+
"800",
|
4316 |
+
"800italic",
|
4317 |
+
"900",
|
4318 |
+
"900italic"
|
4319 |
+
]
|
4320 |
+
}, {
|
4321 |
+
"Teko": [
|
4322 |
+
"300",
|
4323 |
+
"regular",
|
4324 |
+
"500",
|
4325 |
+
"600",
|
4326 |
+
"700"
|
4327 |
+
]
|
4328 |
+
}, {
|
4329 |
+
"Telex": [
|
4330 |
+
"regular"
|
4331 |
+
]
|
4332 |
+
}, {
|
4333 |
+
"Tenali Ramakrishna": [
|
4334 |
+
"regular"
|
4335 |
+
]
|
4336 |
+
}, {
|
4337 |
+
"Tenor Sans": [
|
4338 |
+
"regular"
|
4339 |
+
]
|
4340 |
+
}, {
|
4341 |
+
"Text Me One": [
|
4342 |
+
"regular"
|
4343 |
+
]
|
4344 |
+
}, {
|
4345 |
+
"The Girl Next Door": [
|
4346 |
+
"regular"
|
4347 |
+
]
|
4348 |
+
}, {
|
4349 |
+
"Tienne": [
|
4350 |
+
"regular",
|
4351 |
+
"700",
|
4352 |
+
"900"
|
4353 |
+
]
|
4354 |
+
}, {
|
4355 |
+
"Tillana": [
|
4356 |
+
"regular",
|
4357 |
+
"500",
|
4358 |
+
"600",
|
4359 |
+
"700",
|
4360 |
+
"800"
|
4361 |
+
]
|
4362 |
+
}, {
|
4363 |
+
"Timmana": [
|
4364 |
+
"regular"
|
4365 |
+
]
|
4366 |
+
}, {
|
4367 |
+
"Tinos": [
|
4368 |
+
"regular",
|
4369 |
+
"italic",
|
4370 |
+
"700",
|
4371 |
+
"700italic"
|
4372 |
+
]
|
4373 |
+
}, {
|
4374 |
+
"Titan One": [
|
4375 |
+
"regular"
|
4376 |
+
]
|
4377 |
+
}, {
|
4378 |
+
"Titillium Web": [
|
4379 |
+
"200",
|
4380 |
+
"200italic",
|
4381 |
+
"300",
|
4382 |
+
"300italic",
|
4383 |
+
"regular",
|
4384 |
+
"italic",
|
4385 |
+
"600",
|
4386 |
+
"600italic",
|
4387 |
+
"700",
|
4388 |
+
"700italic",
|
4389 |
+
"900"
|
4390 |
+
]
|
4391 |
+
}, {
|
4392 |
+
"Trade Winds": [
|
4393 |
+
"regular"
|
4394 |
+
]
|
4395 |
+
}, {
|
4396 |
+
"Trirong": [
|
4397 |
+
"100",
|
4398 |
+
"100italic",
|
4399 |
+
"200",
|
4400 |
+
"200italic",
|
4401 |
+
"300",
|
4402 |
+
"300italic",
|
4403 |
+
"regular",
|
4404 |
+
"italic",
|
4405 |
+
"500",
|
4406 |
+
"500italic",
|
4407 |
+
"600",
|
4408 |
+
"600italic",
|
4409 |
+
"700",
|
4410 |
+
"700italic",
|
4411 |
+
"800",
|
4412 |
+
"800italic",
|
4413 |
+
"900",
|
4414 |
+
"900italic"
|
4415 |
+
]
|
4416 |
+
}, {
|
4417 |
+
"Trocchi": [
|
4418 |
+
"regular"
|
4419 |
+
]
|
4420 |
+
}, {
|
4421 |
+
"Trochut": [
|
4422 |
+
"regular",
|
4423 |
+
"italic",
|
4424 |
+
"700"
|
4425 |
+
]
|
4426 |
+
}, {
|
4427 |
+
"Trykker": [
|
4428 |
+
"regular"
|
4429 |
+
]
|
4430 |
+
}, {
|
4431 |
+
"Tulpen One": [
|
4432 |
+
"regular"
|
4433 |
+
]
|
4434 |
+
}, {
|
4435 |
+
"Ubuntu": [
|
4436 |
+
"300",
|
4437 |
+
"300italic",
|
4438 |
+
"regular",
|
4439 |
+
"italic",
|
4440 |
+
"500",
|
4441 |
+
"500italic",
|
4442 |
+
"700",
|
4443 |
+
"700italic"
|
4444 |
+
]
|
4445 |
+
}, {
|
4446 |
+
"Ubuntu Condensed": [
|
4447 |
+
"regular"
|
4448 |
+
]
|
4449 |
+
}, {
|
4450 |
+
"Ubuntu Mono": [
|
4451 |
+
"regular",
|
4452 |
+
"italic",
|
4453 |
+
"700",
|
4454 |
+
"700italic"
|
4455 |
+
]
|
4456 |
+
}, {
|
4457 |
+
"Ultra": [
|
4458 |
+
"regular"
|
4459 |
+
]
|
4460 |
+
}, {
|
4461 |
+
"Uncial Antiqua": [
|
4462 |
+
"regular"
|
4463 |
+
]
|
4464 |
+
}, {
|
4465 |
+
"Underdog": [
|
4466 |
+
"regular"
|
4467 |
+
]
|
4468 |
+
}, {
|
4469 |
+
"Unica One": [
|
4470 |
+
"regular"
|
4471 |
+
]
|
4472 |
+
}, {
|
4473 |
+
"UnifrakturCook": [
|
4474 |
+
"700"
|
4475 |
+
]
|
4476 |
+
}, {
|
4477 |
+
"UnifrakturMaguntia": [
|
4478 |
+
"regular"
|
4479 |
+
]
|
4480 |
+
}, {
|
4481 |
+
"Unkempt": [
|
4482 |
+
"regular",
|
4483 |
+
"700"
|
4484 |
+
]
|
4485 |
+
}, {
|
4486 |
+
"Unlock": [
|
4487 |
+
"regular"
|
4488 |
+
]
|
4489 |
+
}, {
|
4490 |
+
"Unna": [
|
4491 |
+
"regular",
|
4492 |
+
"italic",
|
4493 |
+
"700",
|
4494 |
+
"700italic"
|
4495 |
+
]
|
4496 |
+
}, {
|
4497 |
+
"VT323": [
|
4498 |
+
"regular"
|
4499 |
+
]
|
4500 |
+
}, {
|
4501 |
+
"Vampiro One": [
|
4502 |
+
"regular"
|
4503 |
+
]
|
4504 |
+
}, {
|
4505 |
+
"Varela": [
|
4506 |
+
"regular"
|
4507 |
+
]
|
4508 |
+
}, {
|
4509 |
+
"Varela Round": [
|
4510 |
+
"regular"
|
4511 |
+
]
|
4512 |
+
}, {
|
4513 |
+
"Vast Shadow": [
|
4514 |
+
"regular"
|
4515 |
+
]
|
4516 |
+
}, {
|
4517 |
+
"Vesper Libre": [
|
4518 |
+
"regular",
|
4519 |
+
"500",
|
4520 |
+
"700",
|
4521 |
+
"900"
|
4522 |
+
]
|
4523 |
+
}, {
|
4524 |
+
"Vibur": [
|
4525 |
+
"regular"
|
4526 |
+
]
|
4527 |
+
}, {
|
4528 |
+
"Vidaloka": [
|
4529 |
+
"regular"
|
4530 |
+
]
|
4531 |
+
}, {
|
4532 |
+
"Viga": [
|
4533 |
+
"regular"
|
4534 |
+
]
|
4535 |
+
}, {
|
4536 |
+
"Voces": [
|
4537 |
+
"regular"
|
4538 |
+
]
|
4539 |
+
}, {
|
4540 |
+
"Volkhov": [
|
4541 |
+
"regular",
|
4542 |
+
"italic",
|
4543 |
+
"700",
|
4544 |
+
"700italic"
|
4545 |
+
]
|
4546 |
+
}, {
|
4547 |
+
"Vollkorn": [
|
4548 |
+
"regular",
|
4549 |
+
"italic",
|
4550 |
+
"600",
|
4551 |
+
"600italic",
|
4552 |
+
"700",
|
4553 |
+
"700italic",
|
4554 |
+
"900",
|
4555 |
+
"900italic"
|
4556 |
+
]
|
4557 |
+
}, {
|
4558 |
+
"Voltaire": [
|
4559 |
+
"regular"
|
4560 |
+
]
|
4561 |
+
}, {
|
4562 |
+
"Waiting for the Sunrise": [
|
4563 |
+
"regular"
|
4564 |
+
]
|
4565 |
+
}, {
|
4566 |
+
"Wallpoet": [
|
4567 |
+
"regular"
|
4568 |
+
]
|
4569 |
+
}, {
|
4570 |
+
"Walter Turncoat": [
|
4571 |
+
"regular"
|
4572 |
+
]
|
4573 |
+
}, {
|
4574 |
+
"Warnes": [
|
4575 |
+
"regular"
|
4576 |
+
]
|
4577 |
+
}, {
|
4578 |
+
"Wellfleet": [
|
4579 |
+
"regular"
|
4580 |
+
]
|
4581 |
+
}, {
|
4582 |
+
"Wendy One": [
|
4583 |
+
"regular"
|
4584 |
+
]
|
4585 |
+
}, {
|
4586 |
+
"Wire One": [
|
4587 |
+
"regular"
|
4588 |
+
]
|
4589 |
+
}, {
|
4590 |
+
"Work Sans": [
|
4591 |
+
"100",
|
4592 |
+
"200",
|
4593 |
+
"300",
|
4594 |
+
"regular",
|
4595 |
+
"500",
|
4596 |
+
"600",
|
4597 |
+
"700",
|
4598 |
+
"800",
|
4599 |
+
"900"
|
4600 |
+
]
|
4601 |
+
}, {
|
4602 |
+
"Yanone Kaffeesatz": [
|
4603 |
+
"200",
|
4604 |
+
"300",
|
4605 |
+
"regular",
|
4606 |
+
"700"
|
4607 |
+
]
|
4608 |
+
}, {
|
4609 |
+
"Yantramanav": [
|
4610 |
+
"100",
|
4611 |
+
"300",
|
4612 |
+
"regular",
|
4613 |
+
"500",
|
4614 |
+
"700",
|
4615 |
+
"900"
|
4616 |
+
]
|
4617 |
+
}, {
|
4618 |
+
"Yatra One": [
|
4619 |
+
"regular"
|
4620 |
+
]
|
4621 |
+
}, {
|
4622 |
+
"Yellowtail": [
|
4623 |
+
"regular"
|
4624 |
+
]
|
4625 |
+
}, {
|
4626 |
+
"Yeseva One": [
|
4627 |
+
"regular"
|
4628 |
+
]
|
4629 |
+
}, {
|
4630 |
+
"Yesteryear": [
|
4631 |
+
"regular"
|
4632 |
+
]
|
4633 |
+
}, {
|
4634 |
+
"Yrsa": [
|
4635 |
+
"300",
|
4636 |
+
"regular",
|
4637 |
+
"500",
|
4638 |
+
"600",
|
4639 |
+
"700"
|
4640 |
+
]
|
4641 |
+
}, {
|
4642 |
+
"Zeyada": [
|
4643 |
+
"regular"
|
4644 |
+
]
|
4645 |
+
}, {
|
4646 |
+
"Zilla Slab": [
|
4647 |
+
"300",
|
4648 |
+
"300italic",
|
4649 |
+
"regular",
|
4650 |
+
"italic",
|
4651 |
+
"500",
|
4652 |
+
"500italic",
|
4653 |
+
"600",
|
4654 |
+
"600italic",
|
4655 |
+
"700",
|
4656 |
+
"700italic"
|
4657 |
+
]
|
4658 |
+
}, {
|
4659 |
+
"Zilla Slab Highlight": [
|
4660 |
+
"regular",
|
4661 |
+
"700"
|
4662 |
+
]
|
4663 |
+
}]
|
languages/cs_CZ.mo
CHANGED
Binary file
|
languages/da_DK.mo
CHANGED
Binary file
|
languages/de_DE.mo
CHANGED
Binary file
|
languages/el.mo
CHANGED
Binary file
|
languages/en_GB.mo
CHANGED
Binary file
|
languages/es_ES.mo
CHANGED
Binary file
|
languages/es_MX.mo
CHANGED
Binary file
|
languages/fa_IR.mo
CHANGED
Binary file
|
languages/fi.mo
CHANGED
Binary file
|
languages/fr_CA.mo
CHANGED
Binary file
|
languages/fr_FR.mo
CHANGED
Binary file
|
languages/he_IL.mo
CHANGED
Binary file
|
languages/hr.mo
CHANGED
Binary file
|
languages/hu_HU.mo
CHANGED
Binary file
|
languages/id_ID.mo
CHANGED
Binary file
|
languages/it_IT.mo
CHANGED
Binary file
|
languages/mr.mo
CHANGED
Binary file
|
languages/nb_NO.mo
CHANGED
Binary file
|
languages/nl_NL.mo
CHANGED
Binary file
|
languages/pl_PL.mo
CHANGED
Binary file
|
languages/pt_BR.mo
CHANGED
Binary file
|
languages/pt_PT.mo
CHANGED
Binary file
|
languages/ru_RU.mo
CHANGED
Binary file
|
languages/sk_SK.mo
CHANGED
Binary file
|
languages/sl_SI.mo
CHANGED
Binary file
|
languages/sv_SE.mo
CHANGED
Binary file
|
languages/tl.mo
CHANGED
Binary file
|
languages/tr_TR.mo
CHANGED
Binary file
|
languages/uk.mo
CHANGED
Binary file
|
languages/vi.mo
CHANGED
Binary file
|
languages/zh_CN.mo
CHANGED
Binary file
|
languages/zh_TW.mo
CHANGED
Binary file
|
modules/widget/includes/frontend.php
CHANGED
@@ -12,6 +12,7 @@ if ( isset( $settings->widget ) ) {
|
|
12 |
}
|
13 |
|
14 |
if ( isset( $widget_class ) && class_exists( $widget_class ) ) {
|
|
|
15 |
|
16 |
// Widget instance
|
17 |
$widget_instance = new $widget_class();
|
@@ -20,6 +21,11 @@ if ( isset( $widget_class ) && class_exists( $widget_class ) ) {
|
|
20 |
$settings_key = 'widget-' . $widget_instance->id_base;
|
21 |
$widget_settings = isset( $settings->$settings_key ) ? (array) $settings->$settings_key : array();
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
// Render the widget
|
24 |
the_widget( $widget_class, $widget_settings, array(
|
25 |
'widget_id' => 'fl_builder_widget_' . $module->node,
|
12 |
}
|
13 |
|
14 |
if ( isset( $widget_class ) && class_exists( $widget_class ) ) {
|
15 |
+
global $wp_widget_factory;
|
16 |
|
17 |
// Widget instance
|
18 |
$widget_instance = new $widget_class();
|
21 |
$settings_key = 'widget-' . $widget_instance->id_base;
|
22 |
$widget_settings = isset( $settings->$settings_key ) ? (array) $settings->$settings_key : array();
|
23 |
|
24 |
+
// Check to see if $widget_class key does not exist and registered it as lowercase instead.
|
25 |
+
if ( ! isset( $wp_widget_factory->widgets[ $widget_class ] ) && isset( $wp_widget_factory->widgets[ strtolower( $widget_class ) ] ) ) {
|
26 |
+
$widget_class = strtolower( $widget_class );
|
27 |
+
}
|
28 |
+
|
29 |
// Render the widget
|
30 |
the_widget( $widget_class, $widget_settings, array(
|
31 |
'widget_id' => 'fl_builder_widget_' . $module->node,
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== WordPress Page Builder - Beaver Builder ===
|
2 |
Contributors: justinbusa, RobbyMcCullough, billyyoung, hinampaksh, diegoliv, webmandesign, eugenealegiojo, helgatheviking, ozancanakli, brentjettgmailcom, jproffitt71, brainstormforce, ideaboxcreations, laubsterboy, nikolayyordanov, codente, pross, pedromendonca
|
3 |
Tags: page builder, beaver builder, landing page, front-end builder, drag and drop editor
|
4 |
-
Requires at least: 4.
|
5 |
-
Tested up to: 4.
|
6 |
Stable tag: trunk
|
7 |
License: GPL2+
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
1 |
=== WordPress Page Builder - Beaver Builder ===
|
2 |
Contributors: justinbusa, RobbyMcCullough, billyyoung, hinampaksh, diegoliv, webmandesign, eugenealegiojo, helgatheviking, ozancanakli, brentjettgmailcom, jproffitt71, brainstormforce, ideaboxcreations, laubsterboy, nikolayyordanov, codente, pross, pedromendonca
|
3 |
Tags: page builder, beaver builder, landing page, front-end builder, drag and drop editor
|
4 |
+
Requires at least: 4.4
|
5 |
+
Tested up to: 4.8.2
|
6 |
Stable tag: trunk
|
7 |
License: GPL2+
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|