����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( 'Direct access forbidden.' );
}
// Include dependency for ResponsiveOptions.
if ( ! function_exists( 'et_pb_responsive_options' ) ) {
require_once 'ResponsiveOptions.php';
}
// Include dependency for HoverOptions.
if ( ! function_exists( 'et_pb_hover_options' ) ) {
require_once 'HoverOptions.php';
}
/**
* Background layout helper methods.
*
* @since 4.0.7
*
* Class ET_Builder_Module_Helper_BackgroundLayout
*/
class ET_Builder_Module_Helper_BackgroundLayout {
public static function instance() {
static $instance;
return $instance ? $instance : $instance = new self();
}
/**
* Get background layout class names.
*
* @since 4.0.7
*
* @param array $attrs
* @param boolean $is_skip_desktop Not all modules need to print desktop background layout.
* @param boolean $is_text_color Not all modules need text color layout class name.
*
* @return array
*/
public function get_background_layout_class( $attrs, $is_skip_desktop = false, $is_text_color = false ) {
// Background layout values.
$background_layouts = et_pb_responsive_options()->get_property_values( $attrs, 'background_layout' );
$background_layout = et_()->array_get( $background_layouts, 'desktop', '' );
$background_layout_tablet = et_()->array_get( $background_layouts, 'tablet', '' );
$background_layout_phone = et_()->array_get( $background_layouts, 'phone', '' );
$background_layout_hover = et_pb_hover_options()->get_value( 'background_layout', $attrs, 'light' );
// Background layout class names.
$background_layout_class_names = ! $is_skip_desktop ? array( "et_pb_bg_layout_{$background_layout}" ) : array();
if ( ! empty( $background_layout_tablet ) ) {
$background_layout_class_names[] = "et_pb_bg_layout_{$background_layout_tablet}_tablet";
}
if ( ! empty( $background_layout_phone ) ) {
$background_layout_class_names[] = "et_pb_bg_layout_{$background_layout_phone}_phone";
}
// Text color class names.
if ( $is_text_color ) {
if ( 'light' === $background_layout ) {
$background_layout_class_names[] = 'et_pb_text_color_dark';
}
if ( 'light' === $background_layout_tablet ) {
$background_layout_class_names[] = 'et_pb_text_color_dark_tablet';
}
if ( 'light' === $background_layout_phone ) {
$background_layout_class_names[] = 'et_pb_text_color_dark_phone';
}
}
return $background_layout_class_names;
}
/**
* Get background layout data attributes.
*
* @since 4.0.7
*
* @param array $attrs
*
* @return string
*/
public function get_background_layout_attrs( $attrs ) {
// Background layout data attributes is only needed by hover or sticky effect.
if ( ! et_pb_hover_options()->is_enabled( 'background_layout', $attrs ) && ! et_pb_sticky_options()->is_enabled( 'background_layout', $attrs ) ) {
return '';
}
// Background layout values.
$background_layouts = et_pb_responsive_options()->get_property_values( $attrs, 'background_layout' );
$background_layout = et_()->array_get( $background_layouts, 'desktop', '' );
$background_layout_tablet = et_()->array_get( $background_layouts, 'tablet', '' );
$background_layout_phone = et_()->array_get( $background_layouts, 'phone', '' );
$background_layout_hover = et_pb_hover_options()->get_value( 'background_layout', $attrs, '' );
$background_layout_sticky = et_pb_sticky_options()->get_value( 'background_layout', $attrs, '' );
$data_background_layout = sprintf(
' data-background-layout="%1$s"',
esc_attr( $background_layout )
);
if ( ! empty( $background_layout_hover ) ) {
$data_background_layout .= sprintf(
' data-background-layout-hover="%1$s"',
esc_attr( $background_layout_hover )
);
}
if ( ! empty( $background_layout_sticky ) ) {
$data_background_layout .= sprintf(
' data-background-layout-sticky="%1$s"',
esc_attr( $background_layout_sticky )
);
}
if ( ! empty( $background_layout_tablet ) ) {
$data_background_layout .= sprintf(
' data-background-layout-tablet="%1$s"',
esc_attr( $background_layout_tablet )
);
}
if ( ! empty( $background_layout_phone ) ) {
$data_background_layout .= sprintf(
' data-background-layout-phone="%1$s"',
esc_attr( $background_layout_phone )
);
}
return $data_background_layout;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| motion | Folder | 0755 |
|
|
| Alignment.php | File | 296 B | 0644 |
|
| Background.php | File | 83.24 KB | 0644 |
|
| BackgroundLayout.php | File | 4.27 KB | 0644 |
|
| Font.php | File | 4.58 KB | 0644 |
|
| Height.php | File | 276 B | 0644 |
|
| HoverOptions.php | File | 5.69 KB | 0644 |
|
| MaxHeight.php | File | 293 B | 0644 |
|
| MaxWidth.php | File | 289 B | 0644 |
|
| Media.php | File | 1.67 KB | 0644 |
|
| MinHeight.php | File | 293 B | 0644 |
|
| MultiValue.php | File | 3.11 KB | 0644 |
|
| MultiViewOptions.php | File | 63.74 KB | 0644 |
|
| OptionTemplate.php | File | 21.43 KB | 0644 |
|
| Overflow.php | File | 1.75 KB | 0644 |
|
| Overlay.php | File | 2.23 KB | 0644 |
|
| ResponsiveOptions.php | File | 54.67 KB | 0644 |
|
| Sizing.php | File | 1.14 KB | 0644 |
|
| Slider.php | File | 4.1 KB | 0644 |
|
| StickyOptions.php | File | 8.72 KB | 0644 |
|
| StyleProcessor.php | File | 12.2 KB | 0644 |
|
| TransitionOptions.php | File | 2.88 KB | 0644 |
|
| Width.php | File | 273 B | 0644 |
|
| WoocommerceModules.php | File | 43.84 KB | 0644 |
|