Version Description
- 19 July 2022 =
- Restored Cell
Link Color
andLink Hover Color
settings. - Gravity Forms: Added additional check to prevent an unrelated notice.
- Jetpack: Added Copy Post module support.
Download this release
Release Info
Developer | SiteOrigin |
Plugin | Page Builder by SiteOrigin |
Version | 2.16.17 |
Comparing to | |
See all releases |
Code changes from version 2.16.16 to 2.16.17
- compat/gravity-forms.php +5 -1
- compat/jetpack.php +14 -0
- inc/styles.php +77 -56
- lang/siteorigin-panels.pot +73 -73
- readme.txt +7 -2
- siteorigin-panels.php +3 -3
compat/gravity-forms.php
CHANGED
@@ -9,7 +9,11 @@
|
|
9 |
* @return $instance
|
10 |
*/
|
11 |
function siteorigin_gravity_forms_override_disable_print_scripts( $instance, $the_widget, $widget_class ) {
|
12 |
-
if (
|
|
|
|
|
|
|
|
|
13 |
$instance['disable_scripts'] = true;
|
14 |
|
15 |
// Disable print scripts for older versions of Gravity Forms.
|
9 |
* @return $instance
|
10 |
*/
|
11 |
function siteorigin_gravity_forms_override_disable_print_scripts( $instance, $the_widget, $widget_class ) {
|
12 |
+
if (
|
13 |
+
! empty( $the_widget ) &&
|
14 |
+
is_object( $the_widget ) &&
|
15 |
+
$the_widget->id_base == 'gform_widget'
|
16 |
+
) {
|
17 |
$instance['disable_scripts'] = true;
|
18 |
|
19 |
// Disable print scripts for older versions of Gravity Forms.
|
compat/jetpack.php
CHANGED
@@ -28,3 +28,17 @@ function siteorigin_panels_photon_exclude_parallax( $skip, $src, $tag ) {
|
|
28 |
}
|
29 |
return $skip;
|
30 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
return $skip;
|
30 |
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* When a post is copied using Jetpack, copy Page Builder data.
|
34 |
+
*
|
35 |
+
* @param WP_Post $source_post Post object that was copied.
|
36 |
+
* @param int $target_post_id Target post ID.
|
37 |
+
*/
|
38 |
+
function siteorigin_panels_jetpack_copy_post( $source_post, $target_post_id ) {
|
39 |
+
$panels_data = get_post_meta( $source_post, 'panels_data', true );
|
40 |
+
if ( ! empty( $panels_data ) ) {
|
41 |
+
add_post_meta( $target_post_id, 'panels_data', $panels_data );
|
42 |
+
}
|
43 |
+
}
|
44 |
+
add_action( 'jetpack_copy_post', 'siteorigin_panels_jetpack_copy_post', 10, 2 );
|
inc/styles.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Class for handling all the default styling.
|
5 |
*
|
@@ -10,19 +9,19 @@ class SiteOrigin_Panels_Styles {
|
|
10 |
public function __construct() {
|
11 |
add_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ), 5 );
|
12 |
|
13 |
-
// Adding all the fields
|
14 |
add_filter( 'siteorigin_panels_row_style_fields', array( $this, 'row_style_fields' ) );
|
15 |
add_filter( 'siteorigin_panels_cell_style_fields', array( $this, 'cell_style_fields' ) );
|
16 |
add_filter( 'siteorigin_panels_widget_style_fields', array( $this, 'widget_style_fields' ) );
|
17 |
|
18 |
-
// Style wrapper attributes
|
19 |
add_filter( 'siteorigin_panels_row_style_attributes', array( $this, 'general_style_attributes' ), 10, 2 );
|
20 |
add_filter( 'siteorigin_panels_row_style_attributes', array( $this, 'row_style_attributes' ), 10, 2 );
|
21 |
add_filter( 'siteorigin_panels_row_style_attributes', array( $this, 'vantage_row_style_attributes' ), 11, 2 );
|
22 |
add_filter( 'siteorigin_panels_cell_style_attributes', array( $this, 'general_style_attributes' ), 10, 2 );
|
23 |
add_filter( 'siteorigin_panels_widget_style_attributes', array( $this, 'general_style_attributes' ), 10, 2 );
|
24 |
|
25 |
-
// Style wrapper CSS
|
26 |
add_filter( 'siteorigin_panels_row_style_css', array( $this, 'general_style_css' ), 10, 2 );
|
27 |
add_filter( 'siteorigin_panels_cell_style_css', array( $this, 'general_style_css' ), 10, 2 );
|
28 |
add_filter( 'siteorigin_panels_widget_style_css', array( $this, 'general_style_css' ), 10, 2 );
|
@@ -38,7 +37,7 @@ class SiteOrigin_Panels_Styles {
|
|
38 |
// Main filter to add any custom CSS.
|
39 |
add_filter( 'siteorigin_panels_css_object', array( $this, 'filter_css_object' ), 10, 4 );
|
40 |
|
41 |
-
// Filtering specific attributes
|
42 |
add_filter( 'siteorigin_panels_css_row_margin_bottom', array( $this, 'filter_row_bottom_margin' ), 10, 2 );
|
43 |
add_filter( 'siteorigin_panels_css_row_mobile_margin_bottom', array( $this, 'filter_row_mobile_bottom_margin' ), 10, 2 );
|
44 |
add_filter( 'siteorigin_panels_css_cell_mobile_margin_bottom', array( $this, 'filter_row_cell_bottom_margin' ), 10, 5 );
|
@@ -103,7 +102,7 @@ class SiteOrigin_Panels_Styles {
|
|
103 |
}
|
104 |
|
105 |
/**
|
106 |
-
* These are general styles that apply to all elements
|
107 |
*
|
108 |
* @param $label
|
109 |
*
|
@@ -112,7 +111,7 @@ class SiteOrigin_Panels_Styles {
|
|
112 |
static function get_general_style_fields( $id, $label ) {
|
113 |
$fields = array();
|
114 |
|
115 |
-
// All the attribute fields
|
116 |
|
117 |
$fields['id'] = array(
|
118 |
'name' => sprintf( __( '%s ID', 'siteorigin-panels' ), $label ),
|
@@ -146,7 +145,7 @@ class SiteOrigin_Panels_Styles {
|
|
146 |
'priority' => 11,
|
147 |
);
|
148 |
|
149 |
-
// The layout fields
|
150 |
|
151 |
$fields['padding'] = array(
|
152 |
'name' => __( 'Padding', 'siteorigin-panels' ),
|
@@ -157,7 +156,7 @@ class SiteOrigin_Panels_Styles {
|
|
157 |
'multiple' => true
|
158 |
);
|
159 |
|
160 |
-
// Tablet layout fields
|
161 |
if ( siteorigin_panels_setting( 'tablet-layout' ) ) {
|
162 |
$fields['tablet_padding'] = array(
|
163 |
'name' => __( 'Tablet Padding', 'siteorigin-panels' ),
|
@@ -169,7 +168,7 @@ class SiteOrigin_Panels_Styles {
|
|
169 |
);
|
170 |
}
|
171 |
|
172 |
-
// Mobile layout fields
|
173 |
if ( $label == 'Widget' ) {
|
174 |
$fields['mobile_margin'] = array(
|
175 |
'name' => __( 'Mobile Margin', 'siteorigin-panels' ),
|
@@ -190,7 +189,7 @@ class SiteOrigin_Panels_Styles {
|
|
190 |
'multiple' => true
|
191 |
);
|
192 |
|
193 |
-
// The general design fields
|
194 |
|
195 |
$fields['background'] = array(
|
196 |
'name' => __( 'Background Color', 'siteorigin-panels' ),
|
@@ -236,14 +235,14 @@ class SiteOrigin_Panels_Styles {
|
|
236 |
}
|
237 |
|
238 |
/**
|
239 |
-
* All the row styling fields
|
240 |
*
|
241 |
* @param $fields
|
242 |
*
|
243 |
* @return array
|
244 |
*/
|
245 |
static function row_style_fields( $fields ) {
|
246 |
-
// Add the general fields
|
247 |
$fields = wp_parse_args( $fields, self::get_general_style_fields( 'row', __( 'Row', 'siteorigin-panels' ) ) );
|
248 |
|
249 |
$fields['cell_class'] = array(
|
@@ -254,7 +253,7 @@ class SiteOrigin_Panels_Styles {
|
|
254 |
'priority' => 6,
|
255 |
);
|
256 |
|
257 |
-
// Add the layout fields
|
258 |
|
259 |
$fields['bottom_margin'] = array(
|
260 |
'name' => __( 'Bottom Margin', 'siteorigin-panels' ),
|
@@ -324,7 +323,7 @@ class SiteOrigin_Panels_Styles {
|
|
324 |
}
|
325 |
|
326 |
if ( siteorigin_panels_setting( 'tablet-layout' ) ) {
|
327 |
-
// Add the tablet layout fields
|
328 |
$fields['tablet_bottom_margin'] = array(
|
329 |
'name' => __( 'Tablet Bottom Margin', 'siteorigin-panels' ),
|
330 |
'type' => 'measurement',
|
@@ -334,7 +333,7 @@ class SiteOrigin_Panels_Styles {
|
|
334 |
);
|
335 |
}
|
336 |
|
337 |
-
// Add the mobile layout fields
|
338 |
$fields['mobile_bottom_margin'] = array(
|
339 |
'name' => __( 'Mobile Bottom Margin', 'siteorigin-panels' ),
|
340 |
'type' => 'measurement',
|
@@ -355,14 +354,14 @@ class SiteOrigin_Panels_Styles {
|
|
355 |
}
|
356 |
|
357 |
/**
|
358 |
-
* All the cell styling fields
|
359 |
*
|
360 |
* @param $fields
|
361 |
*
|
362 |
* @return array
|
363 |
*/
|
364 |
static function cell_style_fields( $fields ) {
|
365 |
-
// Add the general fields
|
366 |
$fields = wp_parse_args( $fields, self::get_general_style_fields( 'cell', __( 'Cell', 'siteorigin-panels' ) ) );
|
367 |
|
368 |
$fields['vertical_alignment'] = array(
|
@@ -413,7 +412,7 @@ class SiteOrigin_Panels_Styles {
|
|
413 |
*/
|
414 |
static function widget_style_fields( $fields ) {
|
415 |
|
416 |
-
// Add the general fields
|
417 |
$fields = wp_parse_args( $fields, self::get_general_style_fields( 'widget', __( 'Widget', 'siteorigin-panels' ) ) );
|
418 |
|
419 |
$fields['margin'] = array(
|
@@ -425,7 +424,7 @@ class SiteOrigin_Panels_Styles {
|
|
425 |
'multiple' => true
|
426 |
);
|
427 |
|
428 |
-
// How lets add the design fields
|
429 |
|
430 |
$fields['font_color'] = array(
|
431 |
'name' => __( 'Font Color', 'siteorigin-panels' ),
|
@@ -459,16 +458,16 @@ class SiteOrigin_Panels_Styles {
|
|
459 |
}
|
460 |
|
461 |
/**
|
462 |
-
* Style attributes that apply to rows, cells and widgets
|
463 |
*
|
464 |
* @param $attributes
|
465 |
* @param $style
|
466 |
*
|
467 |
* @return array $attributes
|
468 |
*/
|
469 |
-
static function general_style_attributes( $attributes, $style ){
|
470 |
if ( ! empty( $style['class'] ) ) {
|
471 |
-
if( ! is_array( $style['class'] ) ) {
|
472 |
$style['class'] = explode( ' ', $style[ 'class' ] );
|
473 |
}
|
474 |
$attributes['class'] = array_merge( $attributes['class'], $style['class'] );
|
@@ -574,14 +573,14 @@ class SiteOrigin_Panels_Styles {
|
|
574 |
}
|
575 |
|
576 |
/**
|
577 |
-
* Get the CSS styles that apply to all rows, cells and widgets
|
578 |
*
|
579 |
* @param $css
|
580 |
* @param $style
|
581 |
*
|
582 |
* @return mixed
|
583 |
*/
|
584 |
-
static function general_style_css( $css, $style ){
|
585 |
|
586 |
if ( ! empty( $style['background'] ) ) {
|
587 |
$css[ 'background-color' ] = $style['background'];
|
@@ -648,13 +647,13 @@ class SiteOrigin_Panels_Styles {
|
|
648 |
$css[ 'color' ] = $style['font_color'];
|
649 |
}
|
650 |
|
651 |
-
if( ! empty( $style[ 'padding' ] ) ) {
|
652 |
$css['padding'] = $style[ 'padding' ];
|
653 |
}
|
654 |
|
655 |
-
// Find which key the CSS is stored in
|
656 |
-
foreach( array( 'row_css', 'cell_css', 'widget_css', '' ) as $css_key ) {
|
657 |
-
if( empty( $css_key ) || ! empty( $style[ $css_key ] ) ) {
|
658 |
break;
|
659 |
}
|
660 |
}
|
@@ -672,15 +671,15 @@ class SiteOrigin_Panels_Styles {
|
|
672 |
}
|
673 |
|
674 |
/**
|
675 |
-
* Get the tablet styling for rows, cells and widgets
|
676 |
*
|
677 |
* @param $css
|
678 |
* @param $style
|
679 |
*
|
680 |
* @return mixed
|
681 |
*/
|
682 |
-
static function general_style_tablet_css( $css, $style ){
|
683 |
-
if( ! empty( $style['tablet_padding'] ) ) {
|
684 |
$css['padding'] = $style[ 'tablet_padding' ];
|
685 |
}
|
686 |
|
@@ -696,15 +695,15 @@ class SiteOrigin_Panels_Styles {
|
|
696 |
}
|
697 |
|
698 |
/**
|
699 |
-
* Get the mobile styling for rows, cells and widgets
|
700 |
*
|
701 |
* @param $css
|
702 |
* @param $style
|
703 |
*
|
704 |
* @return mixed
|
705 |
*/
|
706 |
-
static function general_style_mobile_css( $css, $style ){
|
707 |
-
if( ! empty( $style['mobile_padding'] ) ) {
|
708 |
$css['padding'] = $style[ 'mobile_padding' ];
|
709 |
}
|
710 |
|
@@ -739,12 +738,12 @@ class SiteOrigin_Panels_Styles {
|
|
739 |
$tablet_width = siteorigin_panels_setting( 'tablet-width' );
|
740 |
$tablet_layout = siteorigin_panels_setting( 'tablet-layout' );
|
741 |
$mobile_width = siteorigin_panels_setting( 'mobile-width' );
|
742 |
-
if( empty( $layout ) ) {
|
743 |
return $css;
|
744 |
}
|
745 |
|
746 |
-
foreach( $layout as $ri => $row ) {
|
747 |
-
if( empty( $row[ 'style' ] ) ) $row[ 'style' ] = array();
|
748 |
|
749 |
$standard_css = apply_filters( 'siteorigin_panels_row_style_css', array(), $row['style'] );
|
750 |
$tablet_css = $tablet_layout ? apply_filters( 'siteorigin_panels_row_style_tablet_css', array(), $row['style'] ) : '';
|
@@ -779,7 +778,7 @@ class SiteOrigin_Panels_Styles {
|
|
779 |
);
|
780 |
}
|
781 |
|
782 |
-
// Add in flexbox alignment to the main row element
|
783 |
if ( siteorigin_panels_setting( 'legacy-layout' ) != 'always' && ! SiteOrigin_Panels::is_legacy_browser() && ! empty( $row['style']['cell_alignment'] ) ) {
|
784 |
|
785 |
$selector = array();
|
@@ -807,11 +806,11 @@ class SiteOrigin_Panels_Styles {
|
|
807 |
);
|
808 |
}
|
809 |
|
810 |
-
// Process the cells if there are any
|
811 |
-
if( empty( $row[ 'cells' ] ) ) continue;
|
812 |
|
813 |
-
foreach( $row[ 'cells' ] as $ci => $cell ) {
|
814 |
-
if( empty( $cell[ 'style' ] ) ) $cell[ 'style' ] = array();
|
815 |
|
816 |
$standard_css = apply_filters( 'siteorigin_panels_cell_style_css', array(), $cell['style'] );
|
817 |
$tablet_css = $tablet_layout ? apply_filters( 'siteorigin_panels_cell_style_tablet_css', array(), $cell['style'] ) : '';
|
@@ -859,10 +858,32 @@ class SiteOrigin_Panels_Styles {
|
|
859 |
);
|
860 |
}
|
861 |
|
862 |
-
|
863 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
864 |
|
865 |
-
foreach( $cell['widgets'] as $wi => $widget ) {
|
866 |
if ( empty( $widget['panels_info'] ) ) continue;
|
867 |
if ( empty( $widget['panels_info']['style'] ) ) $widget['panels_info']['style'] = array();
|
868 |
|
@@ -870,7 +891,7 @@ class SiteOrigin_Panels_Styles {
|
|
870 |
$tablet_css = $tablet_layout ? apply_filters( 'siteorigin_panels_widget_style_tablet_css', array(), $widget['panels_info']['style'] ) : '';
|
871 |
$mobile_css = apply_filters( 'siteorigin_panels_widget_style_mobile_css', array(), $widget['panels_info']['style'] );
|
872 |
|
873 |
-
if( ! empty( $standard_css ) ) {
|
874 |
$css->add_widget_css(
|
875 |
$post_id,
|
876 |
$ri,
|
@@ -892,7 +913,7 @@ class SiteOrigin_Panels_Styles {
|
|
892 |
"$tablet_width:$mobile_width"
|
893 |
);
|
894 |
}
|
895 |
-
if( ! empty( $mobile_css ) ) {
|
896 |
$css->add_widget_css(
|
897 |
$post_id,
|
898 |
$ri,
|
@@ -922,7 +943,7 @@ class SiteOrigin_Panels_Styles {
|
|
922 |
}
|
923 |
|
924 |
/**
|
925 |
-
* Add in custom styles for the row's bottom margin
|
926 |
*
|
927 |
* @param $margin
|
928 |
* @param $grid
|
@@ -945,7 +966,7 @@ class SiteOrigin_Panels_Styles {
|
|
945 |
*
|
946 |
* @return mixed
|
947 |
*/
|
948 |
-
static function filter_row_cell_bottom_margin($margin, $cell, $ci, $row, $ri){
|
949 |
if ( ! empty( $row['style']['mobile_cell_margin'] ) ) {
|
950 |
$margin = $row['style']['mobile_cell_margin'];
|
951 |
}
|
@@ -963,7 +984,7 @@ class SiteOrigin_Panels_Styles {
|
|
963 |
}
|
964 |
|
965 |
/**
|
966 |
-
* Add in custom styles for a row's mobile bottom margin
|
967 |
*
|
968 |
* @param $margin
|
969 |
* @param $grid
|
@@ -989,7 +1010,7 @@ class SiteOrigin_Panels_Styles {
|
|
989 |
/**
|
990 |
* Adds widget specific styles not included in the general style fields.
|
991 |
*
|
992 |
-
* @param $widget_css The CSS properties and values
|
993 |
* @param $widget_style_data The style settings as obtained from the style fields.
|
994 |
*
|
995 |
* @return mixed
|
@@ -1002,14 +1023,14 @@ class SiteOrigin_Panels_Styles {
|
|
1002 |
return $widget_css;
|
1003 |
}
|
1004 |
|
1005 |
-
public static function get_attachment_image_src( $image, $size = 'full' ){
|
1006 |
-
if( empty( $image ) ) {
|
1007 |
return false;
|
1008 |
}
|
1009 |
-
|
1010 |
return wp_get_attachment_image_src( $image, $size );
|
1011 |
}
|
1012 |
-
|
1013 |
preg_match( '/(.*?)\#([0-9]+)x([0-9]+)$/', $image, $matches );
|
1014 |
return ! empty( $matches ) ? $matches : false;
|
1015 |
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Class for handling all the default styling.
|
4 |
*
|
9 |
public function __construct() {
|
10 |
add_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ), 5 );
|
11 |
|
12 |
+
// Adding all the fields.
|
13 |
add_filter( 'siteorigin_panels_row_style_fields', array( $this, 'row_style_fields' ) );
|
14 |
add_filter( 'siteorigin_panels_cell_style_fields', array( $this, 'cell_style_fields' ) );
|
15 |
add_filter( 'siteorigin_panels_widget_style_fields', array( $this, 'widget_style_fields' ) );
|
16 |
|
17 |
+
// Style wrapper attributes.
|
18 |
add_filter( 'siteorigin_panels_row_style_attributes', array( $this, 'general_style_attributes' ), 10, 2 );
|
19 |
add_filter( 'siteorigin_panels_row_style_attributes', array( $this, 'row_style_attributes' ), 10, 2 );
|
20 |
add_filter( 'siteorigin_panels_row_style_attributes', array( $this, 'vantage_row_style_attributes' ), 11, 2 );
|
21 |
add_filter( 'siteorigin_panels_cell_style_attributes', array( $this, 'general_style_attributes' ), 10, 2 );
|
22 |
add_filter( 'siteorigin_panels_widget_style_attributes', array( $this, 'general_style_attributes' ), 10, 2 );
|
23 |
|
24 |
+
// Style wrapper CSS.
|
25 |
add_filter( 'siteorigin_panels_row_style_css', array( $this, 'general_style_css' ), 10, 2 );
|
26 |
add_filter( 'siteorigin_panels_cell_style_css', array( $this, 'general_style_css' ), 10, 2 );
|
27 |
add_filter( 'siteorigin_panels_widget_style_css', array( $this, 'general_style_css' ), 10, 2 );
|
37 |
// Main filter to add any custom CSS.
|
38 |
add_filter( 'siteorigin_panels_css_object', array( $this, 'filter_css_object' ), 10, 4 );
|
39 |
|
40 |
+
// Filtering specific attributes.
|
41 |
add_filter( 'siteorigin_panels_css_row_margin_bottom', array( $this, 'filter_row_bottom_margin' ), 10, 2 );
|
42 |
add_filter( 'siteorigin_panels_css_row_mobile_margin_bottom', array( $this, 'filter_row_mobile_bottom_margin' ), 10, 2 );
|
43 |
add_filter( 'siteorigin_panels_css_cell_mobile_margin_bottom', array( $this, 'filter_row_cell_bottom_margin' ), 10, 5 );
|
102 |
}
|
103 |
|
104 |
/**
|
105 |
+
* These are general styles that apply to all elements.
|
106 |
*
|
107 |
* @param $label
|
108 |
*
|
111 |
static function get_general_style_fields( $id, $label ) {
|
112 |
$fields = array();
|
113 |
|
114 |
+
// All the attribute fields.
|
115 |
|
116 |
$fields['id'] = array(
|
117 |
'name' => sprintf( __( '%s ID', 'siteorigin-panels' ), $label ),
|
145 |
'priority' => 11,
|
146 |
);
|
147 |
|
148 |
+
// The layout fields.
|
149 |
|
150 |
$fields['padding'] = array(
|
151 |
'name' => __( 'Padding', 'siteorigin-panels' ),
|
156 |
'multiple' => true
|
157 |
);
|
158 |
|
159 |
+
// Tablet layout fields.
|
160 |
if ( siteorigin_panels_setting( 'tablet-layout' ) ) {
|
161 |
$fields['tablet_padding'] = array(
|
162 |
'name' => __( 'Tablet Padding', 'siteorigin-panels' ),
|
168 |
);
|
169 |
}
|
170 |
|
171 |
+
// Mobile layout fields.
|
172 |
if ( $label == 'Widget' ) {
|
173 |
$fields['mobile_margin'] = array(
|
174 |
'name' => __( 'Mobile Margin', 'siteorigin-panels' ),
|
189 |
'multiple' => true
|
190 |
);
|
191 |
|
192 |
+
// The general design fields.
|
193 |
|
194 |
$fields['background'] = array(
|
195 |
'name' => __( 'Background Color', 'siteorigin-panels' ),
|
235 |
}
|
236 |
|
237 |
/**
|
238 |
+
* All the row styling fields.
|
239 |
*
|
240 |
* @param $fields
|
241 |
*
|
242 |
* @return array
|
243 |
*/
|
244 |
static function row_style_fields( $fields ) {
|
245 |
+
// Add the general fields.
|
246 |
$fields = wp_parse_args( $fields, self::get_general_style_fields( 'row', __( 'Row', 'siteorigin-panels' ) ) );
|
247 |
|
248 |
$fields['cell_class'] = array(
|
253 |
'priority' => 6,
|
254 |
);
|
255 |
|
256 |
+
// Add the layout fields.
|
257 |
|
258 |
$fields['bottom_margin'] = array(
|
259 |
'name' => __( 'Bottom Margin', 'siteorigin-panels' ),
|
323 |
}
|
324 |
|
325 |
if ( siteorigin_panels_setting( 'tablet-layout' ) ) {
|
326 |
+
// Add the tablet layout fields.
|
327 |
$fields['tablet_bottom_margin'] = array(
|
328 |
'name' => __( 'Tablet Bottom Margin', 'siteorigin-panels' ),
|
329 |
'type' => 'measurement',
|
333 |
);
|
334 |
}
|
335 |
|
336 |
+
// Add the mobile layout fields.
|
337 |
$fields['mobile_bottom_margin'] = array(
|
338 |
'name' => __( 'Mobile Bottom Margin', 'siteorigin-panels' ),
|
339 |
'type' => 'measurement',
|
354 |
}
|
355 |
|
356 |
/**
|
357 |
+
* All the cell styling fields.
|
358 |
*
|
359 |
* @param $fields
|
360 |
*
|
361 |
* @return array
|
362 |
*/
|
363 |
static function cell_style_fields( $fields ) {
|
364 |
+
// Add the general fields.
|
365 |
$fields = wp_parse_args( $fields, self::get_general_style_fields( 'cell', __( 'Cell', 'siteorigin-panels' ) ) );
|
366 |
|
367 |
$fields['vertical_alignment'] = array(
|
412 |
*/
|
413 |
static function widget_style_fields( $fields ) {
|
414 |
|
415 |
+
// Add the general fields.
|
416 |
$fields = wp_parse_args( $fields, self::get_general_style_fields( 'widget', __( 'Widget', 'siteorigin-panels' ) ) );
|
417 |
|
418 |
$fields['margin'] = array(
|
424 |
'multiple' => true
|
425 |
);
|
426 |
|
427 |
+
// How lets add the design fields.
|
428 |
|
429 |
$fields['font_color'] = array(
|
430 |
'name' => __( 'Font Color', 'siteorigin-panels' ),
|
458 |
}
|
459 |
|
460 |
/**
|
461 |
+
* Style attributes that apply to rows, cells and widgets.
|
462 |
*
|
463 |
* @param $attributes
|
464 |
* @param $style
|
465 |
*
|
466 |
* @return array $attributes
|
467 |
*/
|
468 |
+
static function general_style_attributes( $attributes, $style ) {
|
469 |
if ( ! empty( $style['class'] ) ) {
|
470 |
+
if ( ! is_array( $style['class'] ) ) {
|
471 |
$style['class'] = explode( ' ', $style[ 'class' ] );
|
472 |
}
|
473 |
$attributes['class'] = array_merge( $attributes['class'], $style['class'] );
|
573 |
}
|
574 |
|
575 |
/**
|
576 |
+
* Get the CSS styles that apply to all rows, cells and widgets.
|
577 |
*
|
578 |
* @param $css
|
579 |
* @param $style
|
580 |
*
|
581 |
* @return mixed
|
582 |
*/
|
583 |
+
static function general_style_css( $css, $style ) {
|
584 |
|
585 |
if ( ! empty( $style['background'] ) ) {
|
586 |
$css[ 'background-color' ] = $style['background'];
|
647 |
$css[ 'color' ] = $style['font_color'];
|
648 |
}
|
649 |
|
650 |
+
if ( ! empty( $style[ 'padding' ] ) ) {
|
651 |
$css['padding'] = $style[ 'padding' ];
|
652 |
}
|
653 |
|
654 |
+
// Find which key the CSS is stored in.
|
655 |
+
foreach ( array( 'row_css', 'cell_css', 'widget_css', '' ) as $css_key ) {
|
656 |
+
if ( empty( $css_key ) || ! empty( $style[ $css_key ] ) ) {
|
657 |
break;
|
658 |
}
|
659 |
}
|
671 |
}
|
672 |
|
673 |
/**
|
674 |
+
* Get the tablet styling for rows, cells and widgets.
|
675 |
*
|
676 |
* @param $css
|
677 |
* @param $style
|
678 |
*
|
679 |
* @return mixed
|
680 |
*/
|
681 |
+
static function general_style_tablet_css( $css, $style ) {
|
682 |
+
if ( ! empty( $style['tablet_padding'] ) ) {
|
683 |
$css['padding'] = $style[ 'tablet_padding' ];
|
684 |
}
|
685 |
|
695 |
}
|
696 |
|
697 |
/**
|
698 |
+
* Get the mobile styling for rows, cells and widgets.
|
699 |
*
|
700 |
* @param $css
|
701 |
* @param $style
|
702 |
*
|
703 |
* @return mixed
|
704 |
*/
|
705 |
+
static function general_style_mobile_css( $css, $style ) {
|
706 |
+
if ( ! empty( $style['mobile_padding'] ) ) {
|
707 |
$css['padding'] = $style[ 'mobile_padding' ];
|
708 |
}
|
709 |
|
738 |
$tablet_width = siteorigin_panels_setting( 'tablet-width' );
|
739 |
$tablet_layout = siteorigin_panels_setting( 'tablet-layout' );
|
740 |
$mobile_width = siteorigin_panels_setting( 'mobile-width' );
|
741 |
+
if ( empty( $layout ) ) {
|
742 |
return $css;
|
743 |
}
|
744 |
|
745 |
+
foreach ( $layout as $ri => $row ) {
|
746 |
+
if ( empty( $row[ 'style' ] ) ) $row[ 'style' ] = array();
|
747 |
|
748 |
$standard_css = apply_filters( 'siteorigin_panels_row_style_css', array(), $row['style'] );
|
749 |
$tablet_css = $tablet_layout ? apply_filters( 'siteorigin_panels_row_style_tablet_css', array(), $row['style'] ) : '';
|
778 |
);
|
779 |
}
|
780 |
|
781 |
+
// Add in flexbox alignment to the main row element.
|
782 |
if ( siteorigin_panels_setting( 'legacy-layout' ) != 'always' && ! SiteOrigin_Panels::is_legacy_browser() && ! empty( $row['style']['cell_alignment'] ) ) {
|
783 |
|
784 |
$selector = array();
|
806 |
);
|
807 |
}
|
808 |
|
809 |
+
// Process the cells if there are any.
|
810 |
+
if ( empty( $row[ 'cells' ] ) ) continue;
|
811 |
|
812 |
+
foreach ( $row[ 'cells' ] as $ci => $cell ) {
|
813 |
+
if ( empty( $cell[ 'style' ] ) ) $cell[ 'style' ] = array();
|
814 |
|
815 |
$standard_css = apply_filters( 'siteorigin_panels_cell_style_css', array(), $cell['style'] );
|
816 |
$tablet_css = $tablet_layout ? apply_filters( 'siteorigin_panels_cell_style_tablet_css', array(), $cell['style'] ) : '';
|
858 |
);
|
859 |
}
|
860 |
|
861 |
+
if ( ! empty( $cell['style']['link_color'] ) ) {
|
862 |
+
$css->add_cell_css(
|
863 |
+
$post_id,
|
864 |
+
$ri,
|
865 |
+
$ci,
|
866 |
+
' a',
|
867 |
+
array(
|
868 |
+
'color' => $cell['style']['link_color']
|
869 |
+
)
|
870 |
+
);
|
871 |
+
}
|
872 |
+
if ( ! empty( $cell['style']['link_color_hover'] ) ) {
|
873 |
+
$css->add_cell_css(
|
874 |
+
$post_id,
|
875 |
+
$ri,
|
876 |
+
$ci,
|
877 |
+
' a:hover', array(
|
878 |
+
'color' => $cell['style']['link_color_hover']
|
879 |
+
)
|
880 |
+
);
|
881 |
+
}
|
882 |
+
|
883 |
+
// Process the widgets if there are any.
|
884 |
+
if ( empty( $cell[ 'widgets' ] ) ) continue;
|
885 |
|
886 |
+
foreach ( $cell['widgets'] as $wi => $widget ) {
|
887 |
if ( empty( $widget['panels_info'] ) ) continue;
|
888 |
if ( empty( $widget['panels_info']['style'] ) ) $widget['panels_info']['style'] = array();
|
889 |
|
891 |
$tablet_css = $tablet_layout ? apply_filters( 'siteorigin_panels_widget_style_tablet_css', array(), $widget['panels_info']['style'] ) : '';
|
892 |
$mobile_css = apply_filters( 'siteorigin_panels_widget_style_mobile_css', array(), $widget['panels_info']['style'] );
|
893 |
|
894 |
+
if ( ! empty( $standard_css ) ) {
|
895 |
$css->add_widget_css(
|
896 |
$post_id,
|
897 |
$ri,
|
913 |
"$tablet_width:$mobile_width"
|
914 |
);
|
915 |
}
|
916 |
+
if ( ! empty( $mobile_css ) ) {
|
917 |
$css->add_widget_css(
|
918 |
$post_id,
|
919 |
$ri,
|
943 |
}
|
944 |
|
945 |
/**
|
946 |
+
* Add in custom styles for the row's bottom margin.
|
947 |
*
|
948 |
* @param $margin
|
949 |
* @param $grid
|
966 |
*
|
967 |
* @return mixed
|
968 |
*/
|
969 |
+
static function filter_row_cell_bottom_margin($margin, $cell, $ci, $row, $ri) {
|
970 |
if ( ! empty( $row['style']['mobile_cell_margin'] ) ) {
|
971 |
$margin = $row['style']['mobile_cell_margin'];
|
972 |
}
|
984 |
}
|
985 |
|
986 |
/**
|
987 |
+
* Add in custom styles for a row's mobile bottom margin.
|
988 |
*
|
989 |
* @param $margin
|
990 |
* @param $grid
|
1010 |
/**
|
1011 |
* Adds widget specific styles not included in the general style fields.
|
1012 |
*
|
1013 |
+
* @param $widget_css The CSS properties and values.
|
1014 |
* @param $widget_style_data The style settings as obtained from the style fields.
|
1015 |
*
|
1016 |
* @return mixed
|
1023 |
return $widget_css;
|
1024 |
}
|
1025 |
|
1026 |
+
public static function get_attachment_image_src( $image, $size = 'full' ) {
|
1027 |
+
if ( empty( $image ) ) {
|
1028 |
return false;
|
1029 |
}
|
1030 |
+
elseif ( is_numeric( $image ) ) {
|
1031 |
return wp_get_attachment_image_src( $image, $size );
|
1032 |
}
|
1033 |
+
elseif ( is_string( $image ) ) {
|
1034 |
preg_match( '/(.*?)\#([0-9]+)x([0-9]+)$/', $image, $matches );
|
1035 |
return ! empty( $matches ) ? $matches : false;
|
1036 |
}
|
lang/siteorigin-panels.pot
CHANGED
@@ -414,7 +414,7 @@ msgstr ""
|
|
414 |
msgid "New Row"
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: inc/admin.php:497, inc/admin.php:505, inc/styles.php:
|
418 |
msgid "Row"
|
419 |
msgstr ""
|
420 |
|
@@ -434,7 +434,7 @@ msgstr ""
|
|
434 |
msgid "Add a {{%= items[0] %}}, {{%= items[1] %}} or {{%= items[2] %}} to get started."
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: inc/admin.php:504, inc/styles.php:
|
438 |
msgid "Widget"
|
439 |
msgstr ""
|
440 |
|
@@ -901,7 +901,7 @@ msgstr ""
|
|
901 |
msgid "Allow margin below the last row."
|
902 |
msgstr ""
|
903 |
|
904 |
-
#: inc/settings.php:501, inc/styles.php:
|
905 |
msgid "Mobile Cell Bottom Margin"
|
906 |
msgstr ""
|
907 |
|
@@ -1017,7 +1017,7 @@ msgstr ""
|
|
1017 |
msgid "Theme"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
-
#: inc/styles-admin.php:214, inc/styles.php:
|
1021 |
msgid "Top"
|
1022 |
msgstr ""
|
1023 |
|
@@ -1025,7 +1025,7 @@ msgstr ""
|
|
1025 |
msgid "Right"
|
1026 |
msgstr ""
|
1027 |
|
1028 |
-
#: inc/styles-admin.php:222, inc/styles.php:
|
1029 |
msgid "Bottom"
|
1030 |
msgstr ""
|
1031 |
|
@@ -1045,275 +1045,275 @@ msgstr ""
|
|
1045 |
msgid "External URL"
|
1046 |
msgstr ""
|
1047 |
|
1048 |
-
#: inc/styles.php:
|
1049 |
msgid "%s ID"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
-
#: inc/styles.php:
|
1053 |
msgid "A custom ID used for this %s."
|
1054 |
msgstr ""
|
1055 |
|
1056 |
-
#: inc/styles.php:
|
1057 |
msgid "%s Class"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
-
#: inc/styles.php:
|
1061 |
msgid "A CSS class name."
|
1062 |
msgstr ""
|
1063 |
|
1064 |
-
#: inc/styles.php:
|
1065 |
msgid "CSS Declarations"
|
1066 |
msgstr ""
|
1067 |
|
1068 |
-
#: inc/styles.php:
|
1069 |
msgid "One declaration per line."
|
1070 |
msgstr ""
|
1071 |
|
1072 |
-
#: inc/styles.php:
|
1073 |
msgid "Mobile CSS Declarations"
|
1074 |
msgstr ""
|
1075 |
|
1076 |
-
#: inc/styles.php:
|
1077 |
msgid "CSS declarations applied when in mobile view."
|
1078 |
msgstr ""
|
1079 |
|
1080 |
-
#: inc/styles.php:
|
1081 |
msgid "Padding"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
-
#: inc/styles.php:
|
1085 |
msgid "Padding around the entire %s."
|
1086 |
msgstr ""
|
1087 |
|
1088 |
-
#: inc/styles.php:
|
1089 |
msgid "Tablet Padding"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
-
#: inc/styles.php:
|
1093 |
msgid "Padding when on tablet devices."
|
1094 |
msgstr ""
|
1095 |
|
1096 |
-
#: inc/styles.php:
|
1097 |
msgid "Mobile Margin"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
-
#: inc/styles.php:
|
1101 |
msgid "Margins around the widget when on mobile devices."
|
1102 |
msgstr ""
|
1103 |
|
1104 |
-
#: inc/styles.php:
|
1105 |
msgid "Mobile Padding"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
-
#: inc/styles.php:
|
1109 |
msgid "Padding when on mobile devices."
|
1110 |
msgstr ""
|
1111 |
|
1112 |
-
#: inc/styles.php:
|
1113 |
msgid "Background Color"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
-
#: inc/styles.php:
|
1117 |
msgid "Background color of the %s."
|
1118 |
msgstr ""
|
1119 |
|
1120 |
-
#: inc/styles.php:
|
1121 |
msgid "Background Image"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
-
#: inc/styles.php:
|
1125 |
msgid "Background image of the %s."
|
1126 |
msgstr ""
|
1127 |
|
1128 |
-
#: inc/styles.php:
|
1129 |
msgid "Background Image Display"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
-
#: inc/styles.php:
|
1133 |
msgid "Tiled Image"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
-
#: inc/styles.php:
|
1137 |
msgid "Cover"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: inc/styles.php:
|
1141 |
msgid "Centered, with original size"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
-
#: inc/styles.php:
|
1145 |
msgid "Contain"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
-
#: inc/styles.php:
|
1149 |
msgid "Fixed"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
-
#: inc/styles.php:
|
1153 |
msgid "Parallax"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
-
#: inc/styles.php:
|
1157 |
msgid "How the background image is displayed."
|
1158 |
msgstr ""
|
1159 |
|
1160 |
-
#: inc/styles.php:
|
1161 |
msgid "Border Color"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
-
#: inc/styles.php:
|
1165 |
msgid "Border color of the %s."
|
1166 |
msgstr ""
|
1167 |
|
1168 |
-
#: inc/styles.php:
|
1169 |
msgid "Cell Class"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
-
#: inc/styles.php:
|
1173 |
msgid "Class added to all cells in this row."
|
1174 |
msgstr ""
|
1175 |
|
1176 |
-
#: inc/styles.php:
|
1177 |
msgid "Bottom Margin"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
-
#: inc/styles.php:
|
1181 |
msgid "Space below the row. Default is %spx."
|
1182 |
msgstr ""
|
1183 |
|
1184 |
-
#: inc/styles.php:
|
1185 |
msgid "Gutter"
|
1186 |
msgstr ""
|
1187 |
|
1188 |
-
#: inc/styles.php:
|
1189 |
msgid "Amount of space between cells. Default is %spx."
|
1190 |
msgstr ""
|
1191 |
|
1192 |
-
#: inc/styles.php:
|
1193 |
msgid "Row Layout"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
-
#: inc/styles.php:
|
1197 |
msgid "Standard"
|
1198 |
msgstr ""
|
1199 |
|
1200 |
-
#: inc/styles.php:
|
1201 |
msgid "Full Width"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
-
#: inc/styles.php:
|
1205 |
msgid "Full Width Stretched"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
-
#: inc/styles.php:
|
1209 |
msgid "Full Width Stretched Padded"
|
1210 |
msgstr ""
|
1211 |
|
1212 |
-
#: inc/styles.php:
|
1213 |
msgid "Collapse Behaviour"
|
1214 |
msgstr ""
|
1215 |
|
1216 |
-
#: inc/styles.php:
|
1217 |
msgid "No Collapse"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
-
#: inc/styles.php:
|
1221 |
msgid "Collapse Order"
|
1222 |
msgstr ""
|
1223 |
|
1224 |
-
#: inc/styles.php:
|
1225 |
msgid "Default"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
-
#: inc/styles.php:
|
1229 |
msgid "Left on Top"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
-
#: inc/styles.php:
|
1233 |
msgid "Right on Top"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
-
#: inc/styles.php:
|
1237 |
msgid "Cell Vertical Alignment"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
-
#: inc/styles.php:
|
1241 |
msgid "Center"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
-
#: inc/styles.php:
|
1245 |
msgid "Stretch"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
-
#: inc/styles.php:
|
1249 |
msgid "Tablet Bottom Margin"
|
1250 |
msgstr ""
|
1251 |
|
1252 |
-
#: inc/styles.php:
|
1253 |
msgid "Space below the row on tablet devices. Default is %spx."
|
1254 |
msgstr ""
|
1255 |
|
1256 |
-
#: inc/styles.php:
|
1257 |
msgid "Mobile Bottom Margin"
|
1258 |
msgstr ""
|
1259 |
|
1260 |
-
#: inc/styles.php:
|
1261 |
msgid "Space below the row on mobile devices. Default is %spx."
|
1262 |
msgstr ""
|
1263 |
|
1264 |
-
#: inc/styles.php:
|
1265 |
msgid "Vertical space between cells in a collapsed mobile row. Default is %spx."
|
1266 |
msgstr ""
|
1267 |
|
1268 |
-
#: inc/styles.php:
|
1269 |
msgid "Cell"
|
1270 |
msgstr ""
|
1271 |
|
1272 |
-
#: inc/styles.php:
|
1273 |
msgid "Vertical Alignment"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
-
#: inc/styles.php:
|
1277 |
msgid "Use row setting"
|
1278 |
msgstr ""
|
1279 |
|
1280 |
-
#: inc/styles.php:
|
1281 |
msgid "Font Color"
|
1282 |
msgstr ""
|
1283 |
|
1284 |
-
#: inc/styles.php:
|
1285 |
msgid "Color of text inside this cell."
|
1286 |
msgstr ""
|
1287 |
|
1288 |
-
#: inc/styles.php:
|
1289 |
msgid "Link Color"
|
1290 |
msgstr ""
|
1291 |
|
1292 |
-
#: inc/styles.php:
|
1293 |
msgid "Color of links inside this cell."
|
1294 |
msgstr ""
|
1295 |
|
1296 |
-
#: inc/styles.php:
|
1297 |
msgid "Link Hover Color"
|
1298 |
msgstr ""
|
1299 |
|
1300 |
-
#: inc/styles.php:
|
1301 |
msgid "Color of links inside this widget when hovered."
|
1302 |
msgstr ""
|
1303 |
|
1304 |
-
#: inc/styles.php:
|
1305 |
msgid "Margin"
|
1306 |
msgstr ""
|
1307 |
|
1308 |
-
#: inc/styles.php:
|
1309 |
msgid "Margins around the widget."
|
1310 |
msgstr ""
|
1311 |
|
1312 |
-
#: inc/styles.php:
|
1313 |
msgid "Color of text inside this widget."
|
1314 |
msgstr ""
|
1315 |
|
1316 |
-
#: inc/styles.php:
|
1317 |
msgid "Color of links inside this widget."
|
1318 |
msgstr ""
|
1319 |
|
414 |
msgid "New Row"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: inc/admin.php:497, inc/admin.php:505, inc/styles.php:246, tpl/js-templates.php:68
|
418 |
msgid "Row"
|
419 |
msgstr ""
|
420 |
|
434 |
msgid "Add a {{%= items[0] %}}, {{%= items[1] %}} or {{%= items[2] %}} to get started."
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: inc/admin.php:504, inc/styles.php:416, tpl/js-templates.php:67
|
438 |
msgid "Widget"
|
439 |
msgstr ""
|
440 |
|
901 |
msgid "Allow margin below the last row."
|
902 |
msgstr ""
|
903 |
|
904 |
+
#: inc/settings.php:501, inc/styles.php:346
|
905 |
msgid "Mobile Cell Bottom Margin"
|
906 |
msgstr ""
|
907 |
|
1017 |
msgid "Theme"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
+
#: inc/styles-admin.php:214, inc/styles.php:316, inc/styles.php:373
|
1021 |
msgid "Top"
|
1022 |
msgstr ""
|
1023 |
|
1025 |
msgid "Right"
|
1026 |
msgstr ""
|
1027 |
|
1028 |
+
#: inc/styles-admin.php:222, inc/styles.php:318, inc/styles.php:375
|
1029 |
msgid "Bottom"
|
1030 |
msgstr ""
|
1031 |
|
1045 |
msgid "External URL"
|
1046 |
msgstr ""
|
1047 |
|
1048 |
+
#: inc/styles.php:117
|
1049 |
msgid "%s ID"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
+
#: inc/styles.php:120
|
1053 |
msgid "A custom ID used for this %s."
|
1054 |
msgstr ""
|
1055 |
|
1056 |
+
#: inc/styles.php:125
|
1057 |
msgid "%s Class"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
+
#: inc/styles.php:128
|
1061 |
msgid "A CSS class name."
|
1062 |
msgstr ""
|
1063 |
|
1064 |
+
#: inc/styles.php:133
|
1065 |
msgid "CSS Declarations"
|
1066 |
msgstr ""
|
1067 |
|
1068 |
+
#: inc/styles.php:136
|
1069 |
msgid "One declaration per line."
|
1070 |
msgstr ""
|
1071 |
|
1072 |
+
#: inc/styles.php:141
|
1073 |
msgid "Mobile CSS Declarations"
|
1074 |
msgstr ""
|
1075 |
|
1076 |
+
#: inc/styles.php:144
|
1077 |
msgid "CSS declarations applied when in mobile view."
|
1078 |
msgstr ""
|
1079 |
|
1080 |
+
#: inc/styles.php:151
|
1081 |
msgid "Padding"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
+
#: inc/styles.php:154
|
1085 |
msgid "Padding around the entire %s."
|
1086 |
msgstr ""
|
1087 |
|
1088 |
+
#: inc/styles.php:162
|
1089 |
msgid "Tablet Padding"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
+
#: inc/styles.php:165
|
1093 |
msgid "Padding when on tablet devices."
|
1094 |
msgstr ""
|
1095 |
|
1096 |
+
#: inc/styles.php:174
|
1097 |
msgid "Mobile Margin"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
+
#: inc/styles.php:177
|
1101 |
msgid "Margins around the widget when on mobile devices."
|
1102 |
msgstr ""
|
1103 |
|
1104 |
+
#: inc/styles.php:184
|
1105 |
msgid "Mobile Padding"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
+
#: inc/styles.php:187
|
1109 |
msgid "Padding when on mobile devices."
|
1110 |
msgstr ""
|
1111 |
|
1112 |
+
#: inc/styles.php:195
|
1113 |
msgid "Background Color"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
+
#: inc/styles.php:198
|
1117 |
msgid "Background color of the %s."
|
1118 |
msgstr ""
|
1119 |
|
1120 |
+
#: inc/styles.php:203
|
1121 |
msgid "Background Image"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
+
#: inc/styles.php:206
|
1125 |
msgid "Background image of the %s."
|
1126 |
msgstr ""
|
1127 |
|
1128 |
+
#: inc/styles.php:211
|
1129 |
msgid "Background Image Display"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
+
#: inc/styles.php:215
|
1133 |
msgid "Tiled Image"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
+
#: inc/styles.php:216
|
1137 |
msgid "Cover"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: inc/styles.php:217
|
1141 |
msgid "Centered, with original size"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: inc/styles.php:218
|
1145 |
msgid "Contain"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
+
#: inc/styles.php:219
|
1149 |
msgid "Fixed"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
+
#: inc/styles.php:220
|
1153 |
msgid "Parallax"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
+
#: inc/styles.php:222
|
1157 |
msgid "How the background image is displayed."
|
1158 |
msgstr ""
|
1159 |
|
1160 |
+
#: inc/styles.php:227
|
1161 |
msgid "Border Color"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
+
#: inc/styles.php:230
|
1165 |
msgid "Border color of the %s."
|
1166 |
msgstr ""
|
1167 |
|
1168 |
+
#: inc/styles.php:249
|
1169 |
msgid "Cell Class"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
+
#: inc/styles.php:252
|
1173 |
msgid "Class added to all cells in this row."
|
1174 |
msgstr ""
|
1175 |
|
1176 |
+
#: inc/styles.php:259
|
1177 |
msgid "Bottom Margin"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
+
#: inc/styles.php:262
|
1181 |
msgid "Space below the row. Default is %spx."
|
1182 |
msgstr ""
|
1183 |
|
1184 |
+
#: inc/styles.php:267
|
1185 |
msgid "Gutter"
|
1186 |
msgstr ""
|
1187 |
|
1188 |
+
#: inc/styles.php:270
|
1189 |
msgid "Amount of space between cells. Default is %spx."
|
1190 |
msgstr ""
|
1191 |
|
1192 |
+
#: inc/styles.php:275
|
1193 |
msgid "Row Layout"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
+
#: inc/styles.php:279, inc/styles.php:292
|
1197 |
msgid "Standard"
|
1198 |
msgstr ""
|
1199 |
|
1200 |
+
#: inc/styles.php:280
|
1201 |
msgid "Full Width"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
+
#: inc/styles.php:281
|
1205 |
msgid "Full Width Stretched"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
+
#: inc/styles.php:282
|
1209 |
msgid "Full Width Stretched Padded"
|
1210 |
msgstr ""
|
1211 |
|
1212 |
+
#: inc/styles.php:288
|
1213 |
msgid "Collapse Behaviour"
|
1214 |
msgstr ""
|
1215 |
|
1216 |
+
#: inc/styles.php:293
|
1217 |
msgid "No Collapse"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
+
#: inc/styles.php:299
|
1221 |
msgid "Collapse Order"
|
1222 |
msgstr ""
|
1223 |
|
1224 |
+
#: inc/styles.php:303, widgets/widgets.php:636, widgets/widgets.php:758, inc/widgets/post-loop.php:374
|
1225 |
msgid "Default"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
+
#: inc/styles.php:304
|
1229 |
msgid "Left on Top"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
+
#: inc/styles.php:305
|
1233 |
msgid "Right on Top"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
+
#: inc/styles.php:312
|
1237 |
msgid "Cell Vertical Alignment"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: inc/styles.php:317, inc/styles.php:374, widgets/widgets/button/button.php:31
|
1241 |
msgid "Center"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
+
#: inc/styles.php:319, inc/styles.php:376
|
1245 |
msgid "Stretch"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
+
#: inc/styles.php:328
|
1249 |
msgid "Tablet Bottom Margin"
|
1250 |
msgstr ""
|
1251 |
|
1252 |
+
#: inc/styles.php:331
|
1253 |
msgid "Space below the row on tablet devices. Default is %spx."
|
1254 |
msgstr ""
|
1255 |
|
1256 |
+
#: inc/styles.php:338
|
1257 |
msgid "Mobile Bottom Margin"
|
1258 |
msgstr ""
|
1259 |
|
1260 |
+
#: inc/styles.php:341
|
1261 |
msgid "Space below the row on mobile devices. Default is %spx."
|
1262 |
msgstr ""
|
1263 |
|
1264 |
+
#: inc/styles.php:349
|
1265 |
msgid "Vertical space between cells in a collapsed mobile row. Default is %spx."
|
1266 |
msgstr ""
|
1267 |
|
1268 |
+
#: inc/styles.php:365
|
1269 |
msgid "Cell"
|
1270 |
msgstr ""
|
1271 |
|
1272 |
+
#: inc/styles.php:368
|
1273 |
msgid "Vertical Alignment"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
+
#: inc/styles.php:372
|
1277 |
msgid "Use row setting"
|
1278 |
msgstr ""
|
1279 |
|
1280 |
+
#: inc/styles.php:382, inc/styles.php:430
|
1281 |
msgid "Font Color"
|
1282 |
msgstr ""
|
1283 |
|
1284 |
+
#: inc/styles.php:385
|
1285 |
msgid "Color of text inside this cell."
|
1286 |
msgstr ""
|
1287 |
|
1288 |
+
#: inc/styles.php:390, inc/styles.php:438
|
1289 |
msgid "Link Color"
|
1290 |
msgstr ""
|
1291 |
|
1292 |
+
#: inc/styles.php:393
|
1293 |
msgid "Color of links inside this cell."
|
1294 |
msgstr ""
|
1295 |
|
1296 |
+
#: inc/styles.php:398, inc/styles.php:446
|
1297 |
msgid "Link Hover Color"
|
1298 |
msgstr ""
|
1299 |
|
1300 |
+
#: inc/styles.php:401, inc/styles.php:449
|
1301 |
msgid "Color of links inside this widget when hovered."
|
1302 |
msgstr ""
|
1303 |
|
1304 |
+
#: inc/styles.php:419
|
1305 |
msgid "Margin"
|
1306 |
msgstr ""
|
1307 |
|
1308 |
+
#: inc/styles.php:422
|
1309 |
msgid "Margins around the widget."
|
1310 |
msgstr ""
|
1311 |
|
1312 |
+
#: inc/styles.php:433
|
1313 |
msgid "Color of text inside this widget."
|
1314 |
msgstr ""
|
1315 |
|
1316 |
+
#: inc/styles.php:441
|
1317 |
msgid "Color of links inside this widget."
|
1318 |
msgstr ""
|
1319 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Tags: page builder, responsive, parallax, widgets, blocks, gallery, layout, grid
|
|
3 |
Requires at least: 4.7
|
4 |
Tested up to: 6.0
|
5 |
Requires PHP: 5.6.20
|
6 |
-
Stable tag: 2.16.
|
7 |
-
Build time: 2022-07-
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
Donate link: https://siteorigin.com/downloads/premium/
|
@@ -107,6 +107,11 @@ SiteOrigin Premium includes access to our professional email support service, pe
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
|
|
|
|
110 |
= 2.16.16 - 09 July 2022 =
|
111 |
* Legacy Layout Engine: Resolved `Undefined index: cell_index` notice.
|
112 |
|
3 |
Requires at least: 4.7
|
4 |
Tested up to: 6.0
|
5 |
Requires PHP: 5.6.20
|
6 |
+
Stable tag: 2.16.17
|
7 |
+
Build time: 2022-07-19T14:01:35+02:00
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
Donate link: https://siteorigin.com/downloads/premium/
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 2.16.17 - 19 July 2022 =
|
111 |
+
* Restored Cell `Link Color` and `Link Hover Color` settings.
|
112 |
+
* Gravity Forms: Added additional check to prevent an unrelated notice.
|
113 |
+
* Jetpack: Added Copy Post module support.
|
114 |
+
|
115 |
= 2.16.16 - 09 July 2022 =
|
116 |
* Legacy Layout Engine: Resolved `Undefined index: cell_index` notice.
|
117 |
|
siteorigin-panels.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Page Builder by SiteOrigin
|
4 |
Plugin URI: https://siteorigin.com/page-builder/
|
5 |
Description: A drag and drop, responsive page builder that simplifies building your website.
|
6 |
-
Version: 2.16.
|
7 |
Author: SiteOrigin
|
8 |
Author URI: https://siteorigin.com
|
9 |
License: GPL3
|
@@ -11,7 +11,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
11 |
Donate link: http://siteorigin.com/page-builder/#donate
|
12 |
*/
|
13 |
|
14 |
-
define( 'SITEORIGIN_PANELS_VERSION', '2.16.
|
15 |
if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
|
16 |
define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
|
17 |
}
|
@@ -234,7 +234,7 @@ class SiteOrigin_Panels {
|
|
234 |
require_once plugin_dir_path( __FILE__ ) . 'compat/lazy-load-backgrounds.php';
|
235 |
}
|
236 |
|
237 |
-
if (
|
238 |
require_once plugin_dir_path( __FILE__ ) . 'compat/jetpack.php';
|
239 |
}
|
240 |
|
3 |
Plugin Name: Page Builder by SiteOrigin
|
4 |
Plugin URI: https://siteorigin.com/page-builder/
|
5 |
Description: A drag and drop, responsive page builder that simplifies building your website.
|
6 |
+
Version: 2.16.17
|
7 |
Author: SiteOrigin
|
8 |
Author URI: https://siteorigin.com
|
9 |
License: GPL3
|
11 |
Donate link: http://siteorigin.com/page-builder/#donate
|
12 |
*/
|
13 |
|
14 |
+
define( 'SITEORIGIN_PANELS_VERSION', '2.16.17' );
|
15 |
if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
|
16 |
define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
|
17 |
}
|
234 |
require_once plugin_dir_path( __FILE__ ) . 'compat/lazy-load-backgrounds.php';
|
235 |
}
|
236 |
|
237 |
+
if ( class_exists( 'Jetpack' ) ) {
|
238 |
require_once plugin_dir_path( __FILE__ ) . 'compat/jetpack.php';
|
239 |
}
|
240 |
|