Version Description
- 2018-11-12
Download this release
Release Info
Developer | themeisle |
Plugin | Elementor Addons & Templates – Sizzify Lite |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- CHANGELOG.md +6 -2
- admin/partials/main.php +6 -0
- assets/css/admin.css +58 -4
- assets/img/neve.jpg +0 -0
- eaw-class.php +50 -4
- elementor-addon-widgets.php +18 -2
- languages/elementor-addon-widgets.pot +147 -0
- readme.md +8 -0
- readme.txt +8 -0
- themeisle-hash.json +1 -1
- vendor/autoload.php +1 -1
- vendor/codeinwp/elementor-extra-widgets/class-elementor-extra-widgets.php +2 -1
- vendor/codeinwp/elementor-extra-widgets/widgets/woo/best-products.php +2 -3
- vendor/codeinwp/elementor-extra-widgets/widgets/woo/class-eaw-wp-widget.php +29 -0
- vendor/codeinwp/elementor-extra-widgets/widgets/woo/featured-products.php +2 -2
- vendor/codeinwp/elementor-extra-widgets/widgets/woo/popular-products.php +2 -2
- vendor/codeinwp/elementor-extra-widgets/widgets/woo/products-categories.php +2 -2
- vendor/codeinwp/elementor-extra-widgets/widgets/woo/recent-products.php +2 -2
- vendor/codeinwp/elementor-extra-widgets/widgets/woo/sale-products.php +2 -2
- vendor/codeinwp/templates-directory/class-page-templates-directory.php +52 -31
- vendor/codeinwp/templates-directory/composer.json +1 -1
- vendor/codeinwp/templates-directory/css/admin.css +18 -36
- vendor/codeinwp/themeisle-content-forms/class-themeisle-content-forms-contact.php +6 -3
- vendor/codeinwp/themeisle-content-forms/class-themeisle-content-forms-elementor.php +43 -0
- vendor/codeinwp/themeisle-content-forms/composer.json +1 -1
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/installed.json +12 -12
CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
|
2 |
-
### v1.2.
|
3 |
**Changes:**
|
4 |
-
|
|
|
|
|
|
|
|
|
5 |
### v1.2.5 - 2018-07-26
|
6 |
**Changes:**
|
7 |
* Fix bug for Elementor content forms.
|
1 |
|
2 |
+
### v1.2.6 - 2018-11-12
|
3 |
**Changes:**
|
4 |
+
* Fix issue with elementor content forms php notice
|
5 |
+
* Security fixes
|
6 |
+
* Performance enhancements
|
7 |
+
* Add notice to awesome Neve theme
|
8 |
+
|
9 |
### v1.2.5 - 2018-07-26
|
10 |
**Changes:**
|
11 |
* Fix bug for Elementor content forms.
|
admin/partials/main.php
CHANGED
@@ -23,4 +23,10 @@
|
|
23 |
alt="Premium Templates"></div>
|
24 |
</div>
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
</div>
|
23 |
alt="Premium Templates"></div>
|
24 |
</div>
|
25 |
|
26 |
+
<div class="theme-promotions">
|
27 |
+
<?php
|
28 |
+
Elementor_Addon_Widgets::get_instance()->show_theme_promotion();
|
29 |
+
?>
|
30 |
+
</div>
|
31 |
+
|
32 |
</div>
|
assets/css/admin.css
CHANGED
@@ -35,7 +35,6 @@
|
|
35 |
font-weight: 600;
|
36 |
font-style: italic;
|
37 |
text-decoration: none;
|
38 |
-
-webkit-transition: all 0.250s ease-in-out;
|
39 |
transition: all 0.250s ease-in-out;
|
40 |
}
|
41 |
|
@@ -68,7 +67,6 @@
|
|
68 |
font-weight: bold;
|
69 |
text-decoration: none;
|
70 |
text-transform: uppercase;
|
71 |
-
-webkit-transition: all 0.250s ease-in-out;
|
72 |
transition: all 0.250s ease-in-out;
|
73 |
}
|
74 |
|
@@ -80,6 +78,60 @@
|
|
80 |
padding-right: 3px;
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
#sizzify-page-wrapper {
|
84 |
padding: 0;
|
85 |
}
|
@@ -136,9 +188,9 @@
|
|
136 |
}
|
137 |
|
138 |
#sizzify-page-wrapper .pro-feature .pro-feature-image img {
|
|
|
139 |
max-width: 100%;
|
140 |
height: auto;
|
141 |
-
width: auto;
|
142 |
border-radius: 3px;
|
143 |
}
|
144 |
|
@@ -200,7 +252,9 @@
|
|
200 |
#sizzify-page-wrapper .slogan {
|
201 |
display: none;
|
202 |
}
|
203 |
-
|
|
|
|
|
204 |
display: block;
|
205 |
text-align: center;
|
206 |
}
|
35 |
font-weight: 600;
|
36 |
font-style: italic;
|
37 |
text-decoration: none;
|
|
|
38 |
transition: all 0.250s ease-in-out;
|
39 |
}
|
40 |
|
67 |
font-weight: bold;
|
68 |
text-decoration: none;
|
69 |
text-transform: uppercase;
|
|
|
70 |
transition: all 0.250s ease-in-out;
|
71 |
}
|
72 |
|
78 |
padding-right: 3px;
|
79 |
}
|
80 |
|
81 |
+
#sizzify-page-wrapper .pro-feature.theme-promote {
|
82 |
+
display: block;
|
83 |
+
position: relative;
|
84 |
+
padding: 60px 60px 30px;
|
85 |
+
}
|
86 |
+
|
87 |
+
#sizzify-page-wrapper .pro-feature.theme-promote .pro-feature-dismiss a {
|
88 |
+
color: #444;
|
89 |
+
text-decoration: none;
|
90 |
+
}
|
91 |
+
|
92 |
+
#sizzify-page-wrapper .pro-feature.theme-promote .pro-feature-dismiss a:hover,
|
93 |
+
#sizzify-page-wrapper .pro-feature.theme-promote .pro-feature-dismiss a:focus {
|
94 |
+
color: #e33b3f;
|
95 |
+
box-shadow: none;
|
96 |
+
}
|
97 |
+
|
98 |
+
#sizzify-page-wrapper .pro-feature .pro-feature-dismiss {
|
99 |
+
position: absolute;
|
100 |
+
top: 0;
|
101 |
+
right: 0;
|
102 |
+
padding: 10px;
|
103 |
+
box-shadow: 0 1px 0 1px rgba(0,0,0,0.1);
|
104 |
+
}
|
105 |
+
|
106 |
+
#sizzify-page-wrapper .pro-feature .pro-feature-dismiss span {
|
107 |
+
cursor: pointer;
|
108 |
+
}
|
109 |
+
|
110 |
+
#sizzify-page-wrapper .pro-feature .install-now {
|
111 |
+
display: inline-block;
|
112 |
+
margin-top: 2px;
|
113 |
+
margin-right: 5px;
|
114 |
+
padding: 15px 25px;
|
115 |
+
border-radius: 3px;
|
116 |
+
border-radius: 3px;
|
117 |
+
color: #fff;
|
118 |
+
background: #e33b3f;
|
119 |
+
font-family: "Open Sans", sans-serif;
|
120 |
+
font-size: 18px;
|
121 |
+
font-weight: bold;
|
122 |
+
text-decoration: none;
|
123 |
+
text-transform: uppercase;
|
124 |
+
transition: all 0.250s ease-in-out;
|
125 |
+
}
|
126 |
+
|
127 |
+
#sizzify-page-wrapper .pro-feature .install-now:hover {
|
128 |
+
background: #252b37;
|
129 |
+
}
|
130 |
+
|
131 |
+
#sizzify-page-wrapper .pro-feature .install-now .dashicons {
|
132 |
+
padding-right: 3px;
|
133 |
+
}
|
134 |
+
|
135 |
#sizzify-page-wrapper {
|
136 |
padding: 0;
|
137 |
}
|
188 |
}
|
189 |
|
190 |
#sizzify-page-wrapper .pro-feature .pro-feature-image img {
|
191 |
+
width: auto;
|
192 |
max-width: 100%;
|
193 |
height: auto;
|
|
|
194 |
border-radius: 3px;
|
195 |
}
|
196 |
|
252 |
#sizzify-page-wrapper .slogan {
|
253 |
display: none;
|
254 |
}
|
255 |
+
|
256 |
+
#sizzify-page-wrapper .pro-features-header,
|
257 |
+
#sizzify-page-wrapper .pro-feature {
|
258 |
display: block;
|
259 |
text-align: center;
|
260 |
}
|
assets/img/neve.jpg
ADDED
Binary file
|
eaw-class.php
CHANGED
@@ -33,6 +33,8 @@ class Elementor_Addon_Widgets {
|
|
33 |
|
34 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
35 |
|
|
|
|
|
36 |
add_filter( 'admin_menu', array( $this, 'admin_pages' ) );
|
37 |
|
38 |
add_filter( 'elementor_extra_widgets_category_args', array( $this, 'filter_category_args' ) );
|
@@ -55,6 +57,41 @@ class Elementor_Addon_Widgets {
|
|
55 |
}
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
public function add_page( $products ) {
|
59 |
$sizzify = array(
|
60 |
'sizzify' => array(
|
@@ -84,17 +121,26 @@ class Elementor_Addon_Widgets {
|
|
84 |
public function admin_pages() {
|
85 |
|
86 |
add_menu_page(
|
87 |
-
'Sizzify',
|
|
|
|
|
|
|
|
|
88 |
$this,
|
89 |
'render_main_page',
|
90 |
-
),
|
|
|
91 |
'76'
|
92 |
);
|
93 |
remove_submenu_page( 'sizzify-admin', 'sizzify-admin' );
|
94 |
if ( ! defined( 'EAW_PRO_URL' ) ) {
|
95 |
add_submenu_page(
|
96 |
-
'sizzify-admin',
|
97 |
-
|
|
|
|
|
|
|
|
|
98 |
array(
|
99 |
$this,
|
100 |
'render_upsell',
|
33 |
|
34 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
35 |
|
36 |
+
add_action( 'admin_init', array( $this, 'eaw_update_dismissed' ) );
|
37 |
+
|
38 |
add_filter( 'admin_menu', array( $this, 'admin_pages' ) );
|
39 |
|
40 |
add_filter( 'elementor_extra_widgets_category_args', array( $this, 'filter_category_args' ) );
|
57 |
}
|
58 |
}
|
59 |
|
60 |
+
/**
|
61 |
+
* Shows theme promotion box for Neve after 3rd of December only if the box is not dismissed yet
|
62 |
+
*/
|
63 |
+
public function show_theme_promotion() {
|
64 |
+
|
65 |
+
global $current_user;
|
66 |
+
$user_id = $current_user->ID;
|
67 |
+
$ignored_notice = get_user_meta( $user_id, 'sizzify_ignore_neve_notice' );
|
68 |
+
|
69 |
+
if ( ! empty( $ignored_notice ) ) {
|
70 |
+
return;
|
71 |
+
}
|
72 |
+
|
73 |
+
echo '<div class="pro-feature theme-promote">
|
74 |
+
<div class="pro-feature-dismiss"><a href="' . admin_url( 'admin.php?page=sizzify-admin&sizzify_ignore_notice=0' ) . '"><span class="dashicons dashicons-dismiss"></span></a></div>
|
75 |
+
<div class="pro-feature-features">
|
76 |
+
<h2>Suggested theme</h2>
|
77 |
+
<p>Do you enjoy working with Elementor? Check out Neve, our new FREE multipurpose theme. It\' s simple, fast and fully compatible with both Elementor and Gutenberg. We recommend to try it out together with Sizzify Lite.</p>
|
78 |
+
<a target="_blank" href="https://themeisle.com/demo/?theme=Neve" class="install-now">
|
79 |
+
<span class="dashicons dashicons-admin-appearance"></span> Install Neve</a>
|
80 |
+
</div>
|
81 |
+
<div class="pro-feature-image">
|
82 |
+
<img src="' . esc_url( EA_URI . '/assets/img/neve.jpg' ) . '" alt="Neve - Free Multipurpose Theme">
|
83 |
+
</div>
|
84 |
+
</div>';
|
85 |
+
}
|
86 |
+
|
87 |
+
public function eaw_update_dismissed() {
|
88 |
+
global $current_user;
|
89 |
+
$user_id = $current_user->ID;
|
90 |
+
if ( isset( $_GET['sizzify_ignore_notice'] ) && '0' === $_GET['sizzify_ignore_notice'] ) {
|
91 |
+
add_user_meta( $user_id, 'sizzify_ignore_neve_notice', 'true', true );
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
public function add_page( $products ) {
|
96 |
$sizzify = array(
|
97 |
'sizzify' => array(
|
121 |
public function admin_pages() {
|
122 |
|
123 |
add_menu_page(
|
124 |
+
'Sizzify',
|
125 |
+
'Sizzify',
|
126 |
+
'manage_options',
|
127 |
+
'sizzify-admin',
|
128 |
+
array(
|
129 |
$this,
|
130 |
'render_main_page',
|
131 |
+
),
|
132 |
+
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOTMuMTcgMTU4LjUiPjxkZWZzPjxzdHlsZT4uYXtmaWxsOiNmMmYyZjI7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5Bc3NldCA4PC90aXRsZT48Y2lyY2xlIGNsYXNzPSJhIiBjeD0iMTg1LjcyIiBjeT0iMTguNjgiIHI9IjcuNDUiLz48Y2lyY2xlIGNsYXNzPSJhIiBjeD0iMTUyLjk5IiBjeT0iMTkuNjYiIHI9IjUuMTgiLz48Y2lyY2xlIGNsYXNzPSJhIiBjeD0iMTYxLjk5IiBjeT0iNTUuMDYiIHI9IjEzIi8+PGNpcmNsZSBjbGFzcz0iYSIgY3g9IjE2OC4zNCIgY3k9IjkuOTgiIHI9IjUuMDQiLz48Y2lyY2xlIGNsYXNzPSJhIiBjeD0iMTUwLjUxIiBjeT0iMyIgcj0iMyIvPjxjaXJjbGUgY2xhc3M9ImEiIGN4PSIxNTguNTEiIGN5PSIzNCIgcj0iMyIvPjxjaXJjbGUgY2xhc3M9ImEiIGN4PSIxNDQuMTYiIGN5PSIzNi45MyIgcj0iNiIvPjxjaXJjbGUgY2xhc3M9ImEiIGN4PSIxODMuNSIgY3k9IjQwLjM2IiByPSI3LjUiLz48Y2lyY2xlIGNsYXNzPSJhIiBjeD0iMTY4LjQ3IiBjeT0iMjkuODMiIHI9IjQiLz48Y2lyY2xlIGNsYXNzPSJhIiBjeD0iMTM2LjI4IiBjeT0iMTYuNzYiIHI9IjYuODkiLz48cGF0aCBjbGFzcz0iYSIgZD0iTTEyNS42NywxMTAuNjZhNDEuNjUsNDEuNjUsMCwwLDEtNy41LDI0LjIycS03LjUsMTAuODUtMjIuNCwxNy4yM1Q1OS41OSwxNTguNWExNTAuNywxNTAuNywwLDAsMS0yMC4zNi0xLjM4LDgsOCwwLDEsMC0xNC41MS00LjY0LDguMjQsOC4yNCwwLDAsMCwuMjYsMkExMTEuNCwxMTEuNCwwLDAsMSw3LjY5LDE0OSw2LDYsMCwwLDAsLjExLDEzOS43YTcuNzgsNy43OCwwLDAsMSwuNjQtMi41NWw5LTIwLjMzYTgsOCwwLDAsMSw4LjE2LTQuNzIsOCw4LDAsMSwwLDEyLjgyLDYuMzgsNy43Miw3LjcyLDAsMCwwLS4xOC0xLjY4YzEuNzQuNTksMy41MSwxLjE1LDUuMzMsMS42N0E4OC45Miw4OC45MiwwLDAsMCw2MCwxMjJxOS45MywwLDE0LjE5LTEuOTJjMi44NC0xLjI5LDQuMjYtMy4yMSw0LjI2LTUuNzhxMC00LjQ1LTUuNTctNi42OXQtMTguMzUtNC44NmEyMDkuNTMsMjA5LjUzLDAsMCwxLTI3LjM2LTcuNGwtMS4yNy0uNUExMywxMywwLDAsMCw2LjczLDgwLjcyUTAsNzIsMCw1OEE0Myw0MywwLDAsMSwyLDQ0Ljc3LDgsOCwwLDAsMCw4LjIyLDM3YTguMDYsOC4wNiwwLDAsMC0uNzMtMy4zM2gwQTQ1LjU1LDQ1LjU1LDAsMCwxLDIyLjY1LDIwYTcuNDksNy40OSwwLDAsMCwxMi41Ny01LjUydjBxMTMuMjQtNC4zMSwzMC44NS00LjMzYTEzMS43NywxMzEuNzcsMCwwLDEsMjguNjksMy4xNEE5Ny45MSw5Ny45MSwwLDAsMSwxMTIuNiwxOWE4LDgsMCwwLDEsNC4xMiwxMC4zOGwtOC4zMywyMC4wOGE4LDgsMCwwLDEtMTAuNDYsNC4zMlE4MSw0Ni42MSw2NS42Nyw0Ni42MXEtMTguNDUsMC0xOC40NSw4LjkyLDAsNC4yNiw1LjQ4LDYuMzl0MTgsNC41NmExODMuOTMsMTgzLjkzLDAsMCwxLDI3LjM2LDcsNDcuNTgsNDcuNTgsMCwwLDEsMTkuMzYsMTIuODdRMTI1LjY3LDk1LjI3LDEyNS42NywxMTAuNjZaTTYxLjcyLDE1NS40OGEzLDMsMCwxLDAtMywzQTMsMywwLDAsMCw2MS43MiwxNTUuNDhabS02LTI2YTQsNCwwLDEsMC00LDRBNCw0LDAsMCwwLDU1LjcyLDEyOS40OFptLTE0LjUtNzRBMTAuNSwxMC41LDAsMSwwLDMwLjcyLDY2LDEwLjUsMTAuNSwwLDAsMCw0MS4yMiw1NS40OFoiLz48cGF0aCBjbGFzcz0iYSIgZD0iTTE2MS4zNSw3NkEyMywyMywwLDAsMSwxNDIuMSw2NS41NmEyLDIsMCwwLDAtMy42NiwxLjExdjgwLjU4YTgsOCwwLDAsMCw4LDhoMjkuODFhOCw4LDAsMCwwLDgtOFY2Ni42N2EyLDIsMCwwLDAtMy42NS0xLjExQTIzLDIzLDAsMCwxLDE2MS4zNSw3NloiLz48L3N2Zz4=',
|
133 |
'76'
|
134 |
);
|
135 |
remove_submenu_page( 'sizzify-admin', 'sizzify-admin' );
|
136 |
if ( ! defined( 'EAW_PRO_URL' ) ) {
|
137 |
add_submenu_page(
|
138 |
+
'sizzify-admin',
|
139 |
+
__( 'Sizzify', 'elementor-addon-widgets' ),
|
140 |
+
__( 'More Features', 'elementor-addon-widgets' ) . '<span class="dashicons
|
141 |
+
dashicons-star-filled more-features-icon" style="width: 17px;height: 17px; margin-left: 4px; color: #ffca54;font-size: 17px;vertical-align: -3px;"></span>',
|
142 |
+
'manage_options',
|
143 |
+
'sizzify_more_features',
|
144 |
array(
|
145 |
$this,
|
146 |
'render_upsell',
|
elementor-addon-widgets.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Elementor Addons & Templates - Sizzify Lite
|
4 |
* Plugin URI: https://themeisle.com/
|
5 |
* Description: Adds new Addons & Widgets that are specifically designed to be used in conjunction with the Elementor Page Builder.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: ThemeIsle
|
8 |
* Author URI: https://themeisle.com/
|
9 |
* Requires at least: 4.4
|
@@ -23,7 +23,7 @@ Constants
|
|
23 |
------------------------------------------ */
|
24 |
|
25 |
/* Set plugin version constant. */
|
26 |
-
define( 'EA_VERSION', '1.2.
|
27 |
|
28 |
/* Set constant path to the plugin directory. */
|
29 |
define( 'EA_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
@@ -92,3 +92,19 @@ function elementor_addon_widgets_register_sdk( $products ) {
|
|
92 |
}
|
93 |
|
94 |
add_filter( 'themeisle_sdk_products', 'elementor_addon_widgets_register_sdk', 10, 1 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
* Plugin Name: Elementor Addons & Templates - Sizzify Lite
|
4 |
* Plugin URI: https://themeisle.com/
|
5 |
* Description: Adds new Addons & Widgets that are specifically designed to be used in conjunction with the Elementor Page Builder.
|
6 |
+
* Version: 1.2.6
|
7 |
* Author: ThemeIsle
|
8 |
* Author URI: https://themeisle.com/
|
9 |
* Requires at least: 4.4
|
23 |
------------------------------------------ */
|
24 |
|
25 |
/* Set plugin version constant. */
|
26 |
+
define( 'EA_VERSION', '1.2.6' );
|
27 |
|
28 |
/* Set constant path to the plugin directory. */
|
29 |
define( 'EA_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
92 |
}
|
93 |
|
94 |
add_filter( 'themeisle_sdk_products', 'elementor_addon_widgets_register_sdk', 10, 1 );
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Delete user meta 'sizzify_ignore_neve_notice' on plugin uninstall
|
98 |
+
*/
|
99 |
+
function elementor_addon_widgets_uninstall() {
|
100 |
+
$all_users = get_users(
|
101 |
+
array(
|
102 |
+
'meta_key' => 'sizzify_ignore_neve_notice',
|
103 |
+
'meta_value' => 'true',
|
104 |
+
)
|
105 |
+
);
|
106 |
+
foreach ( $all_users as $user ) {
|
107 |
+
delete_user_meta( $user->ID, 'sizzify_ignore_neve_notice' );
|
108 |
+
}
|
109 |
+
}
|
110 |
+
register_uninstall_hook( __FILE__, 'elementor_addon_widgets_uninstall' );
|
languages/elementor-addon-widgets.pot
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2018 ThemeIsle
|
2 |
+
# This file is distributed under the no.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Elementor Addons & Templates - Sizzify Lite 1.2.6\n"
|
6 |
+
"Report-Msgid-Bugs-To: "
|
7 |
+
"https://github.com/Codeinwp/elementor-addon-widgets/issues\n"
|
8 |
+
"POT-Creation-Date: 2018-11-07 17:59:06+00:00\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
|
13 |
+
"Last-Translator: Themeisle Translate Team <friends@themeisle.com>\n"
|
14 |
+
"Language-Team: Themeisle Translate <friends@themeisle.com>\n"
|
15 |
+
"X-Generator: grunt-wp-i18n 0.5.4\n"
|
16 |
+
"X-Poedit-KeywordsList: "
|
17 |
+
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
|
18 |
+
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
19 |
+
"Language: en\n"
|
20 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
21 |
+
"X-Poedit-Country: United States\n"
|
22 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
23 |
+
"X-Poedit-Basepath: ../\n"
|
24 |
+
"X-Poedit-SearchPath-0: .\n"
|
25 |
+
"X-Poedit-Bookmarks: \n"
|
26 |
+
"X-Textdomain-Support: yes\n"
|
27 |
+
|
28 |
+
#: eaw-class.php:98 eaw-class.php:112
|
29 |
+
msgid "Sizzify Template Directory"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: eaw-class.php:139
|
33 |
+
msgid "Sizzify"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: eaw-class.php:140
|
37 |
+
msgid "More Features"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: eaw-class.php:170
|
41 |
+
msgid "Sizzify Widgets"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: eaw-class.php:190
|
45 |
+
msgid "Hive - Landing Page"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: eaw-class.php:191
|
49 |
+
msgid ""
|
50 |
+
"A clean and modern design perfectly suitable for both corporate and "
|
51 |
+
"creative businesses. Its sections come with a professional vibe and "
|
52 |
+
"engaging elements such as progress bars, checklists, business-oriented "
|
53 |
+
"icons, statistics counter, team members, testimonials, and call-to-action "
|
54 |
+
"buttons."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: eaw-class.php:194 eaw-class.php:201 eaw-class.php:208 eaw-class.php:215
|
58 |
+
#: eaw-class.php:222 eaw-class.php:229
|
59 |
+
msgid "Pro"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: eaw-class.php:197
|
63 |
+
msgid "Hive - About Page"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: eaw-class.php:198
|
67 |
+
msgid ""
|
68 |
+
"A beautiful and complex layout for the About Us page, that allows you to "
|
69 |
+
"introduce your team in a professional manner. The design of this page lets "
|
70 |
+
"you highlight your team's skills, the services you provide, a hiring "
|
71 |
+
"contact form for future members, and various other element styles - all put "
|
72 |
+
"in the spotlight by a subtle orange color."
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: eaw-class.php:204
|
76 |
+
msgid "Sine - Landing Page"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: eaw-class.php:205
|
80 |
+
msgid ""
|
81 |
+
"This is an Elementor layout for digital agencies, meant to turn your "
|
82 |
+
"business goals into conversions. The design catches your eye with its "
|
83 |
+
"elegant parallax scrolling, classy color gradients, magazine-like "
|
84 |
+
"typography, interactive counters and icons - all these elements being "
|
85 |
+
"wrapped up in modern and joyful content blocks and forms."
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: eaw-class.php:211
|
89 |
+
msgid "Square - Landing Page"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: eaw-class.php:212
|
93 |
+
msgid ""
|
94 |
+
"A nice and complex landing page for products and apps, with a modern "
|
95 |
+
"interface that combines orange and violet color tones. All the elements "
|
96 |
+
"used in this layout are large and provide meaningful sections that describe "
|
97 |
+
"your product comprehensively. The layout allows you to add videos, "
|
98 |
+
"screenshots, pricing tables, progress bars and counters - all presented in "
|
99 |
+
"a beautiful full-screen design."
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: eaw-class.php:218
|
103 |
+
msgid "Tekt - Landing Page"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: eaw-class.php:219
|
107 |
+
msgid ""
|
108 |
+
"A layout for architects and interior design agencies, with a clean and "
|
109 |
+
"simple interface. The full-width header, the modern content blocks, and the "
|
110 |
+
"parallax backgrounds - all completed by the minimalist approach - make this "
|
111 |
+
"template a perfect fit for your architecture agency."
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: eaw-class.php:225
|
115 |
+
msgid "Tekt - About Page"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: eaw-class.php:226
|
119 |
+
msgid ""
|
120 |
+
"This is the About page of a business based on interior design and "
|
121 |
+
"architecture, which allows you to beautifully showcase your team members. "
|
122 |
+
"Apart from introducing the team, you have modern blocks and toggle elements "
|
123 |
+
"where you can talk more about your agency: add values, services, "
|
124 |
+
"statistics, and images."
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: eaw-class.php:273 eaw-class.php:282
|
128 |
+
msgid "Cheatin’ huh?"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#. Plugin Name of the plugin/theme
|
132 |
+
msgid "Elementor Addons & Templates - Sizzify Lite"
|
133 |
+
msgstr ""
|
134 |
+
|
135 |
+
#. Author URI of the plugin/theme
|
136 |
+
msgid "https://themeisle.com/"
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#. Description of the plugin/theme
|
140 |
+
msgid ""
|
141 |
+
"Adds new Addons & Widgets that are specifically designed to be used in "
|
142 |
+
"conjunction with the Elementor Page Builder."
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#. Author of the plugin/theme
|
146 |
+
msgid "ThemeIsle"
|
147 |
+
msgstr ""
|
readme.md
CHANGED
@@ -61,6 +61,14 @@ See this [issue #495](https://github.com/pojome/elementor/issues/495) for curren
|
|
61 |
4. Frontend view posts with custom title.
|
62 |
|
63 |
## Changelog ##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
### 1.2.5 - 2018-07-26 ###
|
65 |
|
66 |
* Development
|
61 |
4. Frontend view posts with custom title.
|
62 |
|
63 |
## Changelog ##
|
64 |
+
### 1.2.6 - 2018-11-12 ###
|
65 |
+
|
66 |
+
* Fix issue with elementor content forms php notice
|
67 |
+
* Security fixes
|
68 |
+
* Performance enhancements
|
69 |
+
* Add notice to awesome Neve theme
|
70 |
+
|
71 |
+
|
72 |
### 1.2.5 - 2018-07-26 ###
|
73 |
|
74 |
* Development
|
readme.txt
CHANGED
@@ -61,6 +61,14 @@ See this [issue #495](https://github.com/pojome/elementor/issues/495) for curren
|
|
61 |
4. Frontend view posts with custom title.
|
62 |
|
63 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
= 1.2.5 - 2018-07-26 =
|
65 |
|
66 |
* Development
|
61 |
4. Frontend view posts with custom title.
|
62 |
|
63 |
== Changelog ==
|
64 |
+
= 1.2.6 - 2018-11-12 =
|
65 |
+
|
66 |
+
* Fix issue with elementor content forms php notice
|
67 |
+
* Security fixes
|
68 |
+
* Performance enhancements
|
69 |
+
* Add notice to awesome Neve theme
|
70 |
+
|
71 |
+
|
72 |
= 1.2.5 - 2018-07-26 =
|
73 |
|
74 |
* Development
|
themeisle-hash.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"eaw-class.php":"
|
1 |
+
{"eaw-class.php":"416d75815ec303a0f4c4e5702798edfc","elementor-addon-widgets.php":"94806c3da2028e7d267ec7749f43150c"}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInita10863c4414c1bebacd7767f12101133::getLoader();
|
vendor/codeinwp/elementor-extra-widgets/class-elementor-extra-widgets.php
CHANGED
@@ -22,7 +22,7 @@ if ( ! class_exists( '\ThemeIsle\ElementorExtraWidgets' ) ) {
|
|
22 |
* The version of this library
|
23 |
* @var string
|
24 |
*/
|
25 |
-
public static $version = '1.0.
|
26 |
|
27 |
/**
|
28 |
* Defines the library behaviour
|
@@ -145,6 +145,7 @@ if ( ! class_exists( '\ThemeIsle\ElementorExtraWidgets' ) ) {
|
|
145 |
return null;
|
146 |
}
|
147 |
|
|
|
148 |
include_once( plugin_dir_path( __FILE__ ) . 'widgets/woo/products-categories.php' );
|
149 |
include_once( plugin_dir_path( __FILE__ ) . 'widgets/woo/recent-products.php' );
|
150 |
include_once( plugin_dir_path( __FILE__ ) . 'widgets/woo/featured-products.php' );
|
22 |
* The version of this library
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public static $version = '1.0.3';
|
26 |
|
27 |
/**
|
28 |
* Defines the library behaviour
|
145 |
return null;
|
146 |
}
|
147 |
|
148 |
+
include_once( plugin_dir_path( __FILE__ ) . 'widgets/woo/class-eaw-wp-widget.php' );
|
149 |
include_once( plugin_dir_path( __FILE__ ) . 'widgets/woo/products-categories.php' );
|
150 |
include_once( plugin_dir_path( __FILE__ ) . 'widgets/woo/recent-products.php' );
|
151 |
include_once( plugin_dir_path( __FILE__ ) . 'widgets/woo/featured-products.php' );
|
vendor/codeinwp/elementor-extra-widgets/widgets/woo/best-products.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
-
class Woo_Best_Products extends
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
@@ -81,7 +81,7 @@ class Woo_Best_Products extends WP_Widget {
|
|
81 |
echo '<h2 class="section-title">' . wp_kses_post( $args['title'] ) . '</h2>';
|
82 |
|
83 |
do_action( 'storepage_homepage_after_best_selling_products_title' );
|
84 |
-
echo
|
85 |
'best_selling_products', array(
|
86 |
'per_page' => intval( $args['limit'] ),
|
87 |
'columns' => intval( $args['columns'] ),
|
@@ -90,7 +90,6 @@ class Woo_Best_Products extends WP_Widget {
|
|
90 |
do_action( 'storepage_homepage_after_best_selling_products' );
|
91 |
|
92 |
echo '</section>';
|
93 |
-
// echo '</div>';
|
94 |
echo $args['after_widget'];
|
95 |
|
96 |
if ( ! $this->is_preview() ) {
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
+
class Woo_Best_Products extends EAW_WP_Widget {
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
81 |
echo '<h2 class="section-title">' . wp_kses_post( $args['title'] ) . '</h2>';
|
82 |
|
83 |
do_action( 'storepage_homepage_after_best_selling_products_title' );
|
84 |
+
echo $this->do_shortcode(
|
85 |
'best_selling_products', array(
|
86 |
'per_page' => intval( $args['limit'] ),
|
87 |
'columns' => intval( $args['columns'] ),
|
90 |
do_action( 'storepage_homepage_after_best_selling_products' );
|
91 |
|
92 |
echo '</section>';
|
|
|
93 |
echo $args['after_widget'];
|
94 |
|
95 |
if ( ! $this->is_preview() ) {
|
vendor/codeinwp/elementor-extra-widgets/widgets/woo/class-eaw-wp-widget.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Created by Coti.
|
4 |
+
*/
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class EAW_WP_Widget
|
8 |
+
*/
|
9 |
+
class EAW_WP_Widget extends WP_Widget {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Call a shortcode function by tag name.
|
13 |
+
*
|
14 |
+
* @since 1.0.3
|
15 |
+
*
|
16 |
+
* @param string $tag The shortcode whose function to call.
|
17 |
+
* @param array $atts The attributes to pass to the shortcode function. Optional.
|
18 |
+
* @param array $content The shortcode's content. Default is null (none).
|
19 |
+
*
|
20 |
+
* @return string|bool False on failure, the result of the shortcode on success.
|
21 |
+
*/
|
22 |
+
function do_shortcode( $tag, array $atts = array(), $content = null ) {
|
23 |
+
global $shortcode_tags;
|
24 |
+
if ( ! isset( $shortcode_tags[ $tag ] ) ) {
|
25 |
+
return false;
|
26 |
+
}
|
27 |
+
return call_user_func( $shortcode_tags[ $tag ], $atts, $content, $tag );
|
28 |
+
}
|
29 |
+
}
|
vendor/codeinwp/elementor-extra-widgets/widgets/woo/featured-products.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
-
class Woo_Featured_Products extends
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
@@ -84,7 +84,7 @@ class Woo_Featured_Products extends WP_Widget {
|
|
84 |
|
85 |
do_action( 'storepage_homepage_after_featured_products_title' );
|
86 |
|
87 |
-
echo
|
88 |
'featured_products', array(
|
89 |
'per_page' => intval( $args['limit'] ),
|
90 |
'columns' => intval( $args['columns'] ),
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
+
class Woo_Featured_Products extends EAW_WP_Widget {
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
84 |
|
85 |
do_action( 'storepage_homepage_after_featured_products_title' );
|
86 |
|
87 |
+
echo $this->do_shortcode(
|
88 |
'featured_products', array(
|
89 |
'per_page' => intval( $args['limit'] ),
|
90 |
'columns' => intval( $args['columns'] ),
|
vendor/codeinwp/elementor-extra-widgets/widgets/woo/popular-products.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
-
class Woo_Popular_Products extends
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
@@ -85,7 +85,7 @@ class Woo_Popular_Products extends WP_Widget {
|
|
85 |
|
86 |
do_action( 'storepage_homepage_after_popular_products_title' );
|
87 |
|
88 |
-
echo
|
89 |
'top_rated_products', array(
|
90 |
'per_page' => intval( $args['limit'] ),
|
91 |
'columns' => intval( $args['columns'] ),
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
+
class Woo_Popular_Products extends EAW_WP_Widget {
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
85 |
|
86 |
do_action( 'storepage_homepage_after_popular_products_title' );
|
87 |
|
88 |
+
echo $this->do_shortcode(
|
89 |
'top_rated_products', array(
|
90 |
'per_page' => intval( $args['limit'] ),
|
91 |
'columns' => intval( $args['columns'] ),
|
vendor/codeinwp/elementor-extra-widgets/widgets/woo/products-categories.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
-
class Woo_Product_Categories extends
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
@@ -85,7 +85,7 @@ class Woo_Product_Categories extends WP_Widget {
|
|
85 |
|
86 |
do_action( 'storepage_homepage_after_product_categories_title' );
|
87 |
|
88 |
-
echo
|
89 |
'product_categories', array(
|
90 |
'number' => intval( $args['limit'] ),
|
91 |
'columns' => intval( $args['columns'] ),
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
+
class Woo_Product_Categories extends EAW_WP_Widget {
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
85 |
|
86 |
do_action( 'storepage_homepage_after_product_categories_title' );
|
87 |
|
88 |
+
echo $this->do_shortcode(
|
89 |
'product_categories', array(
|
90 |
'number' => intval( $args['limit'] ),
|
91 |
'columns' => intval( $args['columns'] ),
|
vendor/codeinwp/elementor-extra-widgets/widgets/woo/recent-products.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
-
class Woo_Recent_Products extends
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
@@ -83,7 +83,7 @@ class Woo_Recent_Products extends WP_Widget {
|
|
83 |
|
84 |
do_action( 'elementor-addon-widgets_homepage_after_recent_products_title' );
|
85 |
|
86 |
-
echo
|
87 |
'recent_products', array(
|
88 |
'per_page' => intval( $args['limit'] ),
|
89 |
'columns' => intval( $args['columns'] ),
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
+
class Woo_Recent_Products extends EAW_WP_Widget {
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
83 |
|
84 |
do_action( 'elementor-addon-widgets_homepage_after_recent_products_title' );
|
85 |
|
86 |
+
echo $this->do_shortcode(
|
87 |
'recent_products', array(
|
88 |
'per_page' => intval( $args['limit'] ),
|
89 |
'columns' => intval( $args['columns'] ),
|
vendor/codeinwp/elementor-extra-widgets/widgets/woo/sale-products.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
-
class Woo_Sale_Products extends
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
@@ -83,7 +83,7 @@ class Woo_Sale_Products extends WP_Widget {
|
|
83 |
|
84 |
do_action( 'storepage_homepage_after_on_sale_products_title' );
|
85 |
|
86 |
-
echo
|
87 |
'sale_products', array(
|
88 |
'per_page' => intval( $args['limit'] ),
|
89 |
'columns' => intval( $args['columns'] ),
|
5 |
* @package Woo Recent Products
|
6 |
*/
|
7 |
|
8 |
+
class Woo_Sale_Products extends EAW_WP_Widget {
|
9 |
|
10 |
public function __construct() {
|
11 |
$widget_ops = array(
|
83 |
|
84 |
do_action( 'storepage_homepage_after_on_sale_products_title' );
|
85 |
|
86 |
+
echo $this->do_shortcode(
|
87 |
'sale_products', array(
|
88 |
'per_page' => intval( $args['limit'] ),
|
89 |
'columns' => intval( $args['columns'] ),
|
vendor/codeinwp/templates-directory/class-page-templates-directory.php
CHANGED
@@ -8,13 +8,14 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
8 |
/**
|
9 |
* @var PageTemplatesDirectory
|
10 |
*/
|
|
|
11 |
protected static $instance = null;
|
12 |
|
13 |
/**
|
14 |
* The version of this library
|
15 |
* @var string
|
16 |
*/
|
17 |
-
public static $version = '1.0.
|
18 |
|
19 |
/**
|
20 |
* Holds the module slug.
|
@@ -58,7 +59,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
58 |
public function enqueue_template_dir_scripts() {
|
59 |
$current_screen = get_current_screen();
|
60 |
if ( $current_screen->id === 'orbit-fox_page_obfx_template_dir' || $current_screen->id === 'sizzify_page_sizzify_template_dir' ) {
|
61 |
-
if( $current_screen->id === 'orbit-fox_page_obfx_template_dir' ) {
|
62 |
$plugin_slug = 'obfx';
|
63 |
} else {
|
64 |
$plugin_slug = 'sizzify';
|
@@ -95,12 +96,18 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
95 |
*/
|
96 |
public function register_endpoints() {
|
97 |
register_rest_route( $this->slug, '/import_elementor', array(
|
98 |
-
'methods'
|
99 |
-
'callback'
|
|
|
|
|
|
|
100 |
) );
|
101 |
register_rest_route( $this->slug, '/fetch_templates', array(
|
102 |
-
'methods'
|
103 |
-
'callback'
|
|
|
|
|
|
|
104 |
) );
|
105 |
}
|
106 |
|
@@ -109,49 +116,52 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
109 |
*
|
110 |
* @return array|bool|\WP_Error
|
111 |
*/
|
112 |
-
public function fetch_templates() {
|
113 |
if ( ! current_user_can( 'manage_options' ) ) {
|
114 |
return false;
|
115 |
}
|
116 |
-
|
|
|
|
|
|
|
117 |
return false;
|
118 |
}
|
119 |
|
120 |
-
$plugin_slug = $
|
121 |
-
$query_args
|
122 |
|
123 |
-
$license = get_option('eaw_premium_license_data','');
|
124 |
|
125 |
-
if( ! empty ( $license ) ) {
|
126 |
-
$license= isset($license->key) ? $license->key :'';
|
127 |
$query_args['license'] = $license;
|
128 |
-
$query_args['_']
|
129 |
}
|
130 |
$url = add_query_arg( $query_args, 'https://themeisle.com/?edd_action=get_templates' );
|
131 |
|
132 |
-
$request
|
133 |
$response = json_decode( $request, true );
|
134 |
|
135 |
-
if( ! empty( $response ) ) {
|
136 |
update_option( $plugin_slug . '_synced_templates', $response );
|
137 |
}
|
138 |
die();
|
139 |
}
|
140 |
|
141 |
-
public function filter_templates($templates) {
|
142 |
$current_screen = get_current_screen();
|
143 |
if ( $current_screen->id === 'orbit-fox_page_obfx_template_dir' ) {
|
144 |
$fetched = get_option( 'obfx_synced_templates' );
|
145 |
} else {
|
146 |
$fetched = get_option( 'sizzify_synced_templates' );
|
147 |
}
|
148 |
-
if( empty( $fetched ) ) {
|
149 |
return $templates;
|
150 |
}
|
151 |
-
if( ! is_array( $fetched ) ) {
|
152 |
return $templates;
|
153 |
}
|
154 |
-
$new_templates = array_merge( $templates
|
155 |
|
156 |
return $new_templates;
|
157 |
}
|
@@ -242,20 +252,27 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
242 |
'screenshot' => esc_url( $this->get_source_url() . 'mocha-elementor/screenshot.png' ),
|
243 |
'import_file' => esc_url( $this->get_source_url() . 'mocha-elementor/template.json' ),
|
244 |
),
|
245 |
-
'rik-landing'
|
246 |
'title' => __( 'Rik - Landing Page', 'elementor-addon-widgets' ),
|
247 |
'description' => __( 'This is a clean Landing page, ready to be used for an app presentation. It features beautiful gradients and great layouts for showcasing your product.', 'elementor-addon-widgets' ),
|
248 |
'demo_url' => 'https://demo.themeisle.com/hestia-pro-demo-content/rik-elementor/',
|
249 |
'screenshot' => esc_url( $this->get_source_url() . 'rik-elementor/screenshot.jpg' ),
|
250 |
'import_file' => esc_url( $this->get_source_url() . 'rik-elementor/template.json' ),
|
251 |
),
|
252 |
-
'zerif-lite'
|
253 |
'title' => __( 'Zerif Lite - One Page Template', 'elementor-addon-widgets' ),
|
254 |
'description' => __( 'A friendly one-page WordPress multipurpose theme, with a full-width image in the background and a simple white menu bar at the top. It comes with an elegant and modern design, which could fit very well any kind of business. Zerif Lite has an interactive and colorful interface, with classy parallax effect and lively animations. You can use it for your online shop as well.', 'elementor-addon-widgets' ),
|
255 |
'demo_url' => 'https://demo.themeisle.com/hestia-pro-demo-content/zerif-lite/',
|
256 |
'screenshot' => esc_url( $this->get_source_url() . 'zerif-elementor/screenshot.jpg' ),
|
257 |
'import_file' => esc_url( $this->get_source_url() . 'zerif-elementor/template.json' ),
|
258 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
);
|
260 |
|
261 |
foreach ( $templates_list as $template => $properties ) {
|
@@ -298,7 +315,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
298 |
*/
|
299 |
public function add_menu_page() {
|
300 |
$products = apply_filters( 'obfx_template_dir_products', array() );
|
301 |
-
foreach($products as $product){
|
302 |
add_submenu_page(
|
303 |
$product['parent_page_slug'], $product['directory_page_title'], __( 'Template Directory', 'elementor-addon-widgets' ), 'manage_options', $product['page_slug'],
|
304 |
array( $this, 'render_admin_page' )
|
@@ -320,16 +337,20 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
320 |
/**
|
321 |
* Utility method to call Elementor import routine.
|
322 |
*/
|
323 |
-
public function import_elementor() {
|
324 |
if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
|
325 |
return 'no-elementor';
|
326 |
}
|
327 |
|
|
|
|
|
|
|
|
|
328 |
require_once( ABSPATH . 'wp-admin' . '/includes/file.php' );
|
329 |
require_once( ABSPATH . 'wp-admin' . '/includes/image.php' );
|
330 |
|
331 |
-
$template = download_url( esc_url( $
|
332 |
-
$name = $
|
333 |
$_FILES['file']['tmp_name'] = $template;
|
334 |
$elementor = new \Elementor\TemplateLibrary\Source_Local;
|
335 |
$elementor->import_template( $name, $template );
|
@@ -371,7 +392,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
371 |
// Create post object
|
372 |
$new_template_page = array(
|
373 |
'post_type' => 'page',
|
374 |
-
'post_title' => $
|
375 |
'post_status' => 'publish',
|
376 |
'post_content' => $page_content,
|
377 |
'meta_input' => $elementor_metas,
|
@@ -515,7 +536,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
515 |
* @access protected
|
516 |
*
|
517 |
* @param string $view_name The view name w/o the `-tpl.php` part.
|
518 |
-
* @param array
|
519 |
*
|
520 |
* @return string
|
521 |
*/
|
@@ -547,7 +568,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
547 |
|
548 |
/**
|
549 |
* @static
|
550 |
-
* @since
|
551 |
* @access public
|
552 |
* @return PageTemplatesDirectory
|
553 |
*/
|
@@ -567,7 +588,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
567 |
* object therefore, we don't want the object to be cloned.
|
568 |
*
|
569 |
* @access public
|
570 |
-
* @since
|
571 |
* @return void
|
572 |
*/
|
573 |
public function __clone() {
|
@@ -579,7 +600,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
579 |
* Disable unserializing of the class
|
580 |
*
|
581 |
* @access public
|
582 |
-
* @since
|
583 |
* @return void
|
584 |
*/
|
585 |
public function __wakeup() {
|
8 |
/**
|
9 |
* @var PageTemplatesDirectory
|
10 |
*/
|
11 |
+
|
12 |
protected static $instance = null;
|
13 |
|
14 |
/**
|
15 |
* The version of this library
|
16 |
* @var string
|
17 |
*/
|
18 |
+
public static $version = '1.0.8';
|
19 |
|
20 |
/**
|
21 |
* Holds the module slug.
|
59 |
public function enqueue_template_dir_scripts() {
|
60 |
$current_screen = get_current_screen();
|
61 |
if ( $current_screen->id === 'orbit-fox_page_obfx_template_dir' || $current_screen->id === 'sizzify_page_sizzify_template_dir' ) {
|
62 |
+
if ( $current_screen->id === 'orbit-fox_page_obfx_template_dir' ) {
|
63 |
$plugin_slug = 'obfx';
|
64 |
} else {
|
65 |
$plugin_slug = 'sizzify';
|
96 |
*/
|
97 |
public function register_endpoints() {
|
98 |
register_rest_route( $this->slug, '/import_elementor', array(
|
99 |
+
'methods' => 'POST',
|
100 |
+
'callback' => array( $this, 'import_elementor' ),
|
101 |
+
'permission_callback' => function () {
|
102 |
+
return current_user_can( 'manage_options' );
|
103 |
+
},
|
104 |
) );
|
105 |
register_rest_route( $this->slug, '/fetch_templates', array(
|
106 |
+
'methods' => 'POST',
|
107 |
+
'callback' => array( $this, 'fetch_templates' ),
|
108 |
+
'permission_callback' => function () {
|
109 |
+
return current_user_can( 'manage_options' );
|
110 |
+
},
|
111 |
) );
|
112 |
}
|
113 |
|
116 |
*
|
117 |
* @return array|bool|\WP_Error
|
118 |
*/
|
119 |
+
public function fetch_templates( \WP_REST_Request $request ) {
|
120 |
if ( ! current_user_can( 'manage_options' ) ) {
|
121 |
return false;
|
122 |
}
|
123 |
+
|
124 |
+
$params = $request->get_params();
|
125 |
+
|
126 |
+
if ( empty ( $params['plugin_slug'] ) ) {
|
127 |
return false;
|
128 |
}
|
129 |
|
130 |
+
$plugin_slug = $params['plugin_slug'];
|
131 |
+
$query_args = array( 'license' => '', 'url' => get_home_url(), 'name' => $plugin_slug );
|
132 |
|
133 |
+
$license = get_option( 'eaw_premium_license_data', '' );
|
134 |
|
135 |
+
if ( ! empty ( $license ) ) {
|
136 |
+
$license = isset( $license->key ) ? $license->key : '';
|
137 |
$query_args['license'] = $license;
|
138 |
+
$query_args['_'] = time();
|
139 |
}
|
140 |
$url = add_query_arg( $query_args, 'https://themeisle.com/?edd_action=get_templates' );
|
141 |
|
142 |
+
$request = wp_remote_retrieve_body( wp_remote_post( esc_url_raw( $url ) ) );
|
143 |
$response = json_decode( $request, true );
|
144 |
|
145 |
+
if ( ! empty( $response ) ) {
|
146 |
update_option( $plugin_slug . '_synced_templates', $response );
|
147 |
}
|
148 |
die();
|
149 |
}
|
150 |
|
151 |
+
public function filter_templates( $templates ) {
|
152 |
$current_screen = get_current_screen();
|
153 |
if ( $current_screen->id === 'orbit-fox_page_obfx_template_dir' ) {
|
154 |
$fetched = get_option( 'obfx_synced_templates' );
|
155 |
} else {
|
156 |
$fetched = get_option( 'sizzify_synced_templates' );
|
157 |
}
|
158 |
+
if ( empty( $fetched ) ) {
|
159 |
return $templates;
|
160 |
}
|
161 |
+
if ( ! is_array( $fetched ) ) {
|
162 |
return $templates;
|
163 |
}
|
164 |
+
$new_templates = array_merge( $templates, $fetched['templates'] );
|
165 |
|
166 |
return $new_templates;
|
167 |
}
|
252 |
'screenshot' => esc_url( $this->get_source_url() . 'mocha-elementor/screenshot.png' ),
|
253 |
'import_file' => esc_url( $this->get_source_url() . 'mocha-elementor/template.json' ),
|
254 |
),
|
255 |
+
'rik-landing' => array(
|
256 |
'title' => __( 'Rik - Landing Page', 'elementor-addon-widgets' ),
|
257 |
'description' => __( 'This is a clean Landing page, ready to be used for an app presentation. It features beautiful gradients and great layouts for showcasing your product.', 'elementor-addon-widgets' ),
|
258 |
'demo_url' => 'https://demo.themeisle.com/hestia-pro-demo-content/rik-elementor/',
|
259 |
'screenshot' => esc_url( $this->get_source_url() . 'rik-elementor/screenshot.jpg' ),
|
260 |
'import_file' => esc_url( $this->get_source_url() . 'rik-elementor/template.json' ),
|
261 |
),
|
262 |
+
'zerif-lite' => array(
|
263 |
'title' => __( 'Zerif Lite - One Page Template', 'elementor-addon-widgets' ),
|
264 |
'description' => __( 'A friendly one-page WordPress multipurpose theme, with a full-width image in the background and a simple white menu bar at the top. It comes with an elegant and modern design, which could fit very well any kind of business. Zerif Lite has an interactive and colorful interface, with classy parallax effect and lively animations. You can use it for your online shop as well.', 'elementor-addon-widgets' ),
|
265 |
'demo_url' => 'https://demo.themeisle.com/hestia-pro-demo-content/zerif-lite/',
|
266 |
'screenshot' => esc_url( $this->get_source_url() . 'zerif-elementor/screenshot.jpg' ),
|
267 |
'import_file' => esc_url( $this->get_source_url() . 'zerif-elementor/template.json' ),
|
268 |
),
|
269 |
+
'notify' => array(
|
270 |
+
'title' => __( 'Notify - Landing Page', 'elementor-addon-widgets' ),
|
271 |
+
'description' => __( 'A beautiful landing page to showcase your new application. It has a features section to present your app, a subscribe section where you can also add a video showcasing your new app and a testimonials section so you can present the feedback from your beta testers.', 'elementor-addon-widgets' ),
|
272 |
+
'demo_url' => 'https://demo.themeisle.com/hestia-pro-demo-content/notify-elementor/',
|
273 |
+
'screenshot' => esc_url( $this->get_source_url() . 'notify-elementor/screenshot.jpg' ),
|
274 |
+
'import_file' => esc_url( $this->get_source_url() . 'notify-elementor/template.json' ),
|
275 |
+
)
|
276 |
);
|
277 |
|
278 |
foreach ( $templates_list as $template => $properties ) {
|
315 |
*/
|
316 |
public function add_menu_page() {
|
317 |
$products = apply_filters( 'obfx_template_dir_products', array() );
|
318 |
+
foreach ( $products as $product ) {
|
319 |
add_submenu_page(
|
320 |
$product['parent_page_slug'], $product['directory_page_title'], __( 'Template Directory', 'elementor-addon-widgets' ), 'manage_options', $product['page_slug'],
|
321 |
array( $this, 'render_admin_page' )
|
337 |
/**
|
338 |
* Utility method to call Elementor import routine.
|
339 |
*/
|
340 |
+
public function import_elementor(\WP_REST_Request $request ) {
|
341 |
if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
|
342 |
return 'no-elementor';
|
343 |
}
|
344 |
|
345 |
+
$params = $request->get_params();
|
346 |
+
$template_name = $params['template_name'];
|
347 |
+
$template_url = $params['template_url'];
|
348 |
+
|
349 |
require_once( ABSPATH . 'wp-admin' . '/includes/file.php' );
|
350 |
require_once( ABSPATH . 'wp-admin' . '/includes/image.php' );
|
351 |
|
352 |
+
$template = download_url( esc_url( $template_url ) );
|
353 |
+
$name = $template_name;
|
354 |
$_FILES['file']['tmp_name'] = $template;
|
355 |
$elementor = new \Elementor\TemplateLibrary\Source_Local;
|
356 |
$elementor->import_template( $name, $template );
|
392 |
// Create post object
|
393 |
$new_template_page = array(
|
394 |
'post_type' => 'page',
|
395 |
+
'post_title' => $template_name,
|
396 |
'post_status' => 'publish',
|
397 |
'post_content' => $page_content,
|
398 |
'meta_input' => $elementor_metas,
|
536 |
* @access protected
|
537 |
*
|
538 |
* @param string $view_name The view name w/o the `-tpl.php` part.
|
539 |
+
* @param array $args An array of arguments to be passed to the view.
|
540 |
*
|
541 |
* @return string
|
542 |
*/
|
568 |
|
569 |
/**
|
570 |
* @static
|
571 |
+
* @since 1.0.0
|
572 |
* @access public
|
573 |
* @return PageTemplatesDirectory
|
574 |
*/
|
588 |
* object therefore, we don't want the object to be cloned.
|
589 |
*
|
590 |
* @access public
|
591 |
+
* @since 1.0.0
|
592 |
* @return void
|
593 |
*/
|
594 |
public function __clone() {
|
600 |
* Disable unserializing of the class
|
601 |
*
|
602 |
* @access public
|
603 |
+
* @since 1.0.0
|
604 |
* @return void
|
605 |
*/
|
606 |
public function __wakeup() {
|
vendor/codeinwp/templates-directory/composer.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
"name": "codeinwp/templates-directory",
|
3 |
"description": "A WordPress library to manage page templates.",
|
4 |
"type": "library",
|
5 |
-
"version": "1.0.
|
6 |
"license": "GPL-2.0-or-later",
|
7 |
"homepage": "https://github.com/Codeinwp/templates-directory",
|
8 |
"authors": [
|
2 |
"name": "codeinwp/templates-directory",
|
3 |
"description": "A WordPress library to manage page templates.",
|
4 |
"type": "library",
|
5 |
+
"version": "1.0.8",
|
6 |
"license": "GPL-2.0-or-later",
|
7 |
"homepage": "https://github.com/Codeinwp/templates-directory",
|
8 |
"authors": [
|
vendor/codeinwp/templates-directory/css/admin.css
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
.obfx-template-browser {
|
|
|
2 |
padding: 35px 0 0;
|
|
|
3 |
}
|
4 |
|
5 |
.obfx-template-browser .template-name {
|
@@ -11,11 +13,9 @@
|
|
11 |
}
|
12 |
|
13 |
.obfx-template {
|
14 |
-
float: left;
|
15 |
position: relative;
|
16 |
box-sizing: border-box;
|
17 |
-
|
18 |
-
margin: 0 4% 4% 0;
|
19 |
border: 1px solid #ddd;
|
20 |
background: #fff;
|
21 |
box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1);
|
@@ -314,33 +314,21 @@
|
|
314 |
margin: 3px 5px 0 -2px;
|
315 |
}
|
316 |
|
317 |
-
@media only screen and (
|
318 |
-
.obfx-template {
|
319 |
-
|
320 |
-
margin: 0 3% 3% 0;
|
321 |
-
}
|
322 |
-
|
323 |
-
.obfx-template:nth-child(3n) {
|
324 |
-
margin-right: 3%;
|
325 |
-
}
|
326 |
-
|
327 |
-
.obfx-template:nth-child(4n) {
|
328 |
-
margin-right: 0;
|
329 |
}
|
330 |
}
|
331 |
|
332 |
-
@media only screen and (max-width:
|
333 |
-
.obfx-template {
|
334 |
-
|
335 |
-
margin: 0 3% 3% 0;
|
336 |
-
}
|
337 |
-
|
338 |
-
.obfx-template:nth-child(3n) {
|
339 |
-
margin-right: 3%;
|
340 |
}
|
|
|
341 |
|
342 |
-
|
343 |
-
|
|
|
344 |
}
|
345 |
}
|
346 |
|
@@ -348,19 +336,13 @@
|
|
348 |
.obfx-template-preview .wp-full-overlay-sidebar {
|
349 |
width: 100%;
|
350 |
}
|
|
|
|
|
|
|
351 |
}
|
352 |
|
353 |
@media only screen and (min-width: 2000px) {
|
354 |
-
.obfx-template {
|
355 |
-
|
356 |
-
margin: 0 3% 3% 0;
|
357 |
-
}
|
358 |
-
|
359 |
-
.obfx-template:nth-child(4n) {
|
360 |
-
margin-right: 3%;
|
361 |
-
}
|
362 |
-
|
363 |
-
.obfx-template:nth-child(5n) {
|
364 |
-
margin-right: 0;
|
365 |
}
|
366 |
}
|
1 |
.obfx-template-browser {
|
2 |
+
display: grid;
|
3 |
padding: 35px 0 0;
|
4 |
+
grid-gap: 2em;
|
5 |
}
|
6 |
|
7 |
.obfx-template-browser .template-name {
|
13 |
}
|
14 |
|
15 |
.obfx-template {
|
|
|
16 |
position: relative;
|
17 |
box-sizing: border-box;
|
18 |
+
|
|
|
19 |
border: 1px solid #ddd;
|
20 |
background: #fff;
|
21 |
box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1);
|
314 |
margin: 3px 5px 0 -2px;
|
315 |
}
|
316 |
|
317 |
+
@media only screen and (max-width: 2000px) {
|
318 |
+
.obfx-template-browser {
|
319 |
+
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
}
|
321 |
}
|
322 |
|
323 |
+
@media only screen and (max-width: 1450px) {
|
324 |
+
.obfx-template-browser {
|
325 |
+
grid-template-columns: 1fr 1fr 1fr;
|
|
|
|
|
|
|
|
|
|
|
326 |
}
|
327 |
+
}
|
328 |
|
329 |
+
@media only screen and (max-width: 1000px) {
|
330 |
+
.obfx-template-browser {
|
331 |
+
grid-template-columns: 1fr 1fr;
|
332 |
}
|
333 |
}
|
334 |
|
336 |
.obfx-template-preview .wp-full-overlay-sidebar {
|
337 |
width: 100%;
|
338 |
}
|
339 |
+
.obfx-template-browser {
|
340 |
+
grid-template-columns: 1fr;
|
341 |
+
}
|
342 |
}
|
343 |
|
344 |
@media only screen and (min-width: 2000px) {
|
345 |
+
.obfx-template-browser {
|
346 |
+
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
}
|
348 |
}
|
vendor/codeinwp/themeisle-content-forms/class-themeisle-content-forms-contact.php
CHANGED
@@ -162,12 +162,15 @@ class ContactForm extends Base {
|
|
162 |
private function _send_mail( $mailto, $mailfrom, $name, $body, $extra_data = array() ) {
|
163 |
$success = false;
|
164 |
|
165 |
-
$
|
|
|
166 |
$mailto = sanitize_email( $mailto );
|
167 |
$mailfrom = sanitize_email( $mailfrom );
|
168 |
|
169 |
$headers = array();
|
170 |
-
|
|
|
|
|
171 |
$headers[] = 'Content-Type: text/html; charset=UTF-8';
|
172 |
|
173 |
$body = $this->prepare_body( $body, $extra_data );
|
@@ -302,4 +305,4 @@ class ContactForm extends Base {
|
|
302 |
// Unserializing instances of the class is forbidden.
|
303 |
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'elementor-addon-widgets' ), '1.0.0' );
|
304 |
}
|
305 |
-
}
|
162 |
private function _send_mail( $mailto, $mailfrom, $name, $body, $extra_data = array() ) {
|
163 |
$success = false;
|
164 |
|
165 |
+
$name = sanitize_text_field( $name );
|
166 |
+
$subject = 'Website inquiry from ' . $name;
|
167 |
$mailto = sanitize_email( $mailto );
|
168 |
$mailfrom = sanitize_email( $mailfrom );
|
169 |
|
170 |
$headers = array();
|
171 |
+
// use admin email assuming the Server is allowed to send as admin email
|
172 |
+
$headers[] = 'From: Admin <' . get_option( 'admin_email' ) . '>';
|
173 |
+
$headers[] = 'Reply-To: ' . $name . ' <' . $mailfrom . '>';
|
174 |
$headers[] = 'Content-Type: text/html; charset=UTF-8';
|
175 |
|
176 |
$body = $this->prepare_body( $body, $extra_data );
|
305 |
// Unserializing instances of the class is forbidden.
|
306 |
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'elementor-addon-widgets' ), '1.0.0' );
|
307 |
}
|
308 |
+
}
|
vendor/codeinwp/themeisle-content-forms/class-themeisle-content-forms-elementor.php
CHANGED
@@ -97,10 +97,51 @@ class ElementorWidget extends \Elementor\Widget_Base {
|
|
97 |
}
|
98 |
}
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
/**
|
101 |
* Add alignment control for button
|
102 |
*/
|
103 |
protected function add_submit_button_align() {
|
|
|
|
|
|
|
|
|
104 |
$this->add_responsive_control(
|
105 |
'align_submit',
|
106 |
[
|
@@ -158,6 +199,8 @@ class ElementorWidget extends \Elementor\Widget_Base {
|
|
158 |
);
|
159 |
}
|
160 |
|
|
|
|
|
161 |
$this->add_submit_button_align();
|
162 |
|
163 |
$this->end_controls_section();
|
97 |
}
|
98 |
}
|
99 |
|
100 |
+
/**
|
101 |
+
* Add alignment control for newsletter form
|
102 |
+
*/
|
103 |
+
protected function add_newsletter_form_alignment() {
|
104 |
+
|
105 |
+
if ( $this->getFormType() !== 'newsletter' ) {
|
106 |
+
return;
|
107 |
+
}
|
108 |
+
|
109 |
+
$this->add_responsive_control(
|
110 |
+
'align_submit',
|
111 |
+
[
|
112 |
+
'label' => __( 'Alignment', 'elementor-addon-widgets' ),
|
113 |
+
'type' => \Elementor\Controls_Manager::CHOOSE,
|
114 |
+
'toggle' => false,
|
115 |
+
'default' => 'flex-start',
|
116 |
+
'options' => [
|
117 |
+
'flex-start' => [
|
118 |
+
'title' => __( 'Left', 'elementor-addon-widgets' ),
|
119 |
+
'icon' => 'fa fa-align-left',
|
120 |
+
],
|
121 |
+
'center' => [
|
122 |
+
'title' => __( 'Center', 'elementor-addon-widgets' ),
|
123 |
+
'icon' => 'fa fa-align-center',
|
124 |
+
],
|
125 |
+
'flex-end' => [
|
126 |
+
'title' => __( 'Right', 'elementor-addon-widgets' ),
|
127 |
+
'icon' => 'fa fa-align-right',
|
128 |
+
],
|
129 |
+
],
|
130 |
+
'selectors' => [
|
131 |
+
'{{WRAPPER}} .content-form.content-form-newsletter' => 'justify-content: {{VALUE}};',
|
132 |
+
],
|
133 |
+
]
|
134 |
+
);
|
135 |
+
}
|
136 |
+
|
137 |
/**
|
138 |
* Add alignment control for button
|
139 |
*/
|
140 |
protected function add_submit_button_align() {
|
141 |
+
if ( $this->getFormType() === 'newsletter' ) {
|
142 |
+
return;
|
143 |
+
}
|
144 |
+
|
145 |
$this->add_responsive_control(
|
146 |
'align_submit',
|
147 |
[
|
199 |
);
|
200 |
}
|
201 |
|
202 |
+
$this->add_newsletter_form_alignment();
|
203 |
+
|
204 |
$this->add_submit_button_align();
|
205 |
|
206 |
$this->end_controls_section();
|
vendor/codeinwp/themeisle-content-forms/composer.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "codeinwp/themeisle-content-forms",
|
3 |
-
"version": "1.0
|
4 |
"description": "ThemeIsle Content Forms ",
|
5 |
"keywords": [
|
6 |
"wordpress"
|
1 |
{
|
2 |
"name": "codeinwp/themeisle-content-forms",
|
3 |
+
"version": "1.2.0",
|
4 |
"description": "ThemeIsle Content Forms ",
|
5 |
"keywords": [
|
6 |
"wordpress"
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit1d74115119c979d619fb0cd2128d3eb4
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit1d74115119c979d619fb0cd2128d3eb4
|
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
-
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
-
function
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInita10863c4414c1bebacd7767f12101133
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInita10863c4414c1bebacd7767f12101133', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInita10863c4414c1bebacd7767f12101133', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
+
composerRequirea10863c4414c1bebacd7767f12101133($fileIdentifier, $file);
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
+
function composerRequirea10863c4414c1bebacd7767f12101133($fileIdentifier, $file)
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
vendor/composer/installed.json
CHANGED
@@ -6,15 +6,15 @@
|
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/Codeinwp/elementor-extra-widgets.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/Codeinwp/elementor-extra-widgets/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
-
"time": "2018-07-
|
18 |
"type": "library",
|
19 |
"installation-source": "dist",
|
20 |
"autoload": {
|
@@ -42,15 +42,15 @@
|
|
42 |
"source": {
|
43 |
"type": "git",
|
44 |
"url": "https://github.com/Codeinwp/themeisle-content-forms.git",
|
45 |
-
"reference": "
|
46 |
},
|
47 |
"dist": {
|
48 |
"type": "zip",
|
49 |
-
"url": "https://api.github.com/repos/Codeinwp/themeisle-content-forms/zipball/
|
50 |
-
"reference": "
|
51 |
"shasum": ""
|
52 |
},
|
53 |
-
"time": "2018-
|
54 |
"type": "library",
|
55 |
"installation-source": "dist",
|
56 |
"autoload": {
|
@@ -159,18 +159,18 @@
|
|
159 |
"source": {
|
160 |
"type": "git",
|
161 |
"url": "https://github.com/Codeinwp/templates-directory.git",
|
162 |
-
"reference": "
|
163 |
},
|
164 |
"dist": {
|
165 |
"type": "zip",
|
166 |
-
"url": "https://api.github.com/repos/Codeinwp/templates-directory/zipball/
|
167 |
-
"reference": "
|
168 |
"shasum": ""
|
169 |
},
|
170 |
"require": {
|
171 |
"codeinwp/full-width-page-templates": "master"
|
172 |
},
|
173 |
-
"time": "2018-
|
174 |
"type": "library",
|
175 |
"installation-source": "dist",
|
176 |
"autoload": {
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/Codeinwp/elementor-extra-widgets.git",
|
9 |
+
"reference": "a1fc5d0bff05594e717c72217b1b3444c7b1bae5"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/Codeinwp/elementor-extra-widgets/zipball/a1fc5d0bff05594e717c72217b1b3444c7b1bae5",
|
14 |
+
"reference": "a1fc5d0bff05594e717c72217b1b3444c7b1bae5",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
+
"time": "2018-07-27 13:45:55",
|
18 |
"type": "library",
|
19 |
"installation-source": "dist",
|
20 |
"autoload": {
|
42 |
"source": {
|
43 |
"type": "git",
|
44 |
"url": "https://github.com/Codeinwp/themeisle-content-forms.git",
|
45 |
+
"reference": "60f64fa4bb1d6941937bf45da2420d427cc6183f"
|
46 |
},
|
47 |
"dist": {
|
48 |
"type": "zip",
|
49 |
+
"url": "https://api.github.com/repos/Codeinwp/themeisle-content-forms/zipball/60f64fa4bb1d6941937bf45da2420d427cc6183f",
|
50 |
+
"reference": "60f64fa4bb1d6941937bf45da2420d427cc6183f",
|
51 |
"shasum": ""
|
52 |
},
|
53 |
+
"time": "2018-11-12 09:34:09",
|
54 |
"type": "library",
|
55 |
"installation-source": "dist",
|
56 |
"autoload": {
|
159 |
"source": {
|
160 |
"type": "git",
|
161 |
"url": "https://github.com/Codeinwp/templates-directory.git",
|
162 |
+
"reference": "be218b189f9dc60e32463161567ca1b567f79019"
|
163 |
},
|
164 |
"dist": {
|
165 |
"type": "zip",
|
166 |
+
"url": "https://api.github.com/repos/Codeinwp/templates-directory/zipball/be218b189f9dc60e32463161567ca1b567f79019",
|
167 |
+
"reference": "be218b189f9dc60e32463161567ca1b567f79019",
|
168 |
"shasum": ""
|
169 |
},
|
170 |
"require": {
|
171 |
"codeinwp/full-width-page-templates": "master"
|
172 |
},
|
173 |
+
"time": "2018-11-12 09:48:53",
|
174 |
"type": "library",
|
175 |
"installation-source": "dist",
|
176 |
"autoload": {
|