??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/renovaid.co.uk/wp-content/themes/astra/inc/class-astra-extended-base-dynamic-css.php
⬅ Kembali
<?php
/**
* Astra Extended Base Dynamic CSS.
*
* @package Astra
*/
// No direct access, please.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Astra_Extended_Base_Dynamic_CSS' ) ) {
/**
* Class Astra_Extended_Base_Dynamic_CSS.
*/
final class Astra_Extended_Base_Dynamic_CSS {
/**
* Member Variable
*
* @var mixed instance
*/
private static $instance = null;
/**
* Initiator
*/
public static function get_instance() {
/** @psalm-suppress RedundantConditionGivenDocblockType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
if ( is_null( self::$instance ) ) {
/** @psalm-suppress RedundantConditionGivenDocblockType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
self::$instance = new self();
}
return self::$instance;
}
/**
* Constructor
*/
public function __construct() {
}
/**
* Prepare Advanced Margin / Padding Dynamic CSS.
*
* @param string $section_id section id.
* @param string $selector selector.
* @return string
*/
public static function prepare_advanced_margin_padding_css( $section_id, $selector ) {
if ( ! empty( $section_id ) && ! empty( $selector ) ) {
$padding = astra_get_option( $section_id . '-padding' );
$margin = astra_get_option( $section_id . '-margin' );
// Desktop CSS.
$css_output_desktop = array(
$selector => array(
// Padding CSS.
'padding-top' => astra_responsive_spacing( $padding, 'top', 'desktop' ),
'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'desktop' ),
'padding-left' => astra_responsive_spacing( $padding, 'left', 'desktop' ),
'padding-right' => astra_responsive_spacing( $padding, 'right', 'desktop' ),
// Margin CSS.
'margin-top' => astra_responsive_spacing( $margin, 'top', 'desktop' ),
'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'desktop' ),
'margin-left' => astra_responsive_spacing( $margin, 'left', 'desktop' ),
'margin-right' => astra_responsive_spacing( $margin, 'right', 'desktop' ),
),
);
// Tablet CSS.
$css_output_tablet = array(
$selector => array(
// Padding CSS.
'padding-top' => astra_responsive_spacing( $padding, 'top', 'tablet' ),
'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'tablet' ),
'padding-left' => astra_responsive_spacing( $padding, 'left', 'tablet' ),
'padding-right' => astra_responsive_spacing( $padding, 'right', 'tablet' ),
// Margin CSS.
'margin-top' => astra_responsive_spacing( $margin, 'top', 'tablet' ),
'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'tablet' ),
'margin-left' => astra_responsive_spacing( $margin, 'left', 'tablet' ),
'margin-right' => astra_responsive_spacing( $margin, 'right', 'tablet' ),
),
);
// Mobile CSS.
$css_output_mobile = array(
$selector => array(
// Padding CSS.
'padding-top' => astra_responsive_spacing( $padding, 'top', 'mobile' ),
'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'mobile' ),
'padding-left' => astra_responsive_spacing( $padding, 'left', 'mobile' ),
'padding-right' => astra_responsive_spacing( $padding, 'right', 'mobile' ),
// Margin CSS.
'margin-top' => astra_responsive_spacing( $margin, 'top', 'mobile' ),
'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'mobile' ),
'margin-left' => astra_responsive_spacing( $margin, 'left', 'mobile' ),
'margin-right' => astra_responsive_spacing( $margin, 'right', 'mobile' ),
),
);
$css_output = astra_parse_css( $css_output_desktop );
$css_output .= astra_parse_css( $css_output_tablet, '', astra_get_tablet_breakpoint() );
$css_output .= astra_parse_css( $css_output_mobile, '', astra_get_mobile_breakpoint() );
return $css_output;
}
return '';
}
/**
* Prepare Advanced Border Dynamic CSS.
*
* @param string $section_id section id.
* @param string $selector selector.
* @return string
*/
public static function prepare_inner_section_advanced_css( $section_id, $selector ) {
if ( ! empty( $section_id ) && ! empty( $selector ) ) {
$width = astra_get_option(
$section_id . '-border-width',
array(
'top' => '',
'right' => '',
'bottom' => '',
'left' => '',
)
);
$color = astra_get_option( $section_id . '-border-color', '' );
$radius = astra_get_option(
$section_id . '-border-radius',
array(
'top' => '',
'right' => '',
'bottom' => '',
'left' => '',
)
);
$css_output_desktop = array(
$selector => array(
'border-top-style' => ! empty( $width['top'] ) ? 'solid' : '',
'border-right-style' => ! empty( $width['right'] ) ? 'solid' : '',
'border-bottom-style' => ! empty( $width['bottom'] ) ? 'solid' : '',
'border-left-style' => ! empty( $width['left'] ) ? 'solid' : '',
'border-color' => esc_attr( $color ),
'border-top-width' => ! empty( $width['top'] ) ? astra_get_css_value( $width['top'], 'px' ) : '',
'border-bottom-width' => ! empty( $width['bottom'] ) ? astra_get_css_value( $width['bottom'], 'px' ) : '',
'border-left-width' => ! empty( $width['left'] ) ? astra_get_css_value( $width['left'], 'px' ) : '',
'border-right-width' => ! empty( $width['right'] ) ? astra_get_css_value( $width['right'], 'px' ) : '',
'border-top-left-radius' => ! empty( $radius['top'] ) ? astra_get_css_value( $radius['top'], 'px' ) : '',
'border-bottom-right-radius' => ! empty( $radius['bottom'] ) ? astra_get_css_value( $radius['bottom'], 'px' ) : '',
'border-bottom-left-radius' => ! empty( $radius['left'] ) ? astra_get_css_value( $radius['left'], 'px' ) : '',
'border-top-right-radius' => ! empty( $radius['right'] ) ? astra_get_css_value( $radius['right'], 'px' ) : '',
),
);
$css_output = astra_parse_css( $css_output_desktop );
$css_output .= self::prepare_advanced_margin_padding_css( $section_id, $selector );
return $css_output;
}
return '';
}
}
/**
* Prepare if class 'Astra_Extended_Base_Dynamic_CSS' exist.
* Kicking this off by calling 'get_instance()' method
*/
Astra_Extended_Base_Dynamic_CSS::get_instance();
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 abilities
dir
—
2026-06-03 10:06
📁 addons
dir
—
2026-06-03 10:06
📁 assets
dir
—
2026-06-03 10:06
📁 blog
dir
—
2026-06-03 10:06
📁 builder
dir
—
2026-06-03 10:06
📁 compatibility
dir
—
2026-06-03 10:06
📁 core
dir
—
2026-06-03 10:06
📁 customizer
dir
—
2026-06-03 10:06
📁 dynamic-css
dir
—
2026-06-03 10:06
📁 integrations
dir
—
2026-06-03 10:06
📁 lib
dir
—
2026-06-03 10:06
📁 metabox
dir
—
2026-06-03 10:06
📁 modules
dir
—
2026-06-03 10:06
📁 schema
dir
—
2026-06-03 10:06
📁 theme-update
dir
—
2026-06-03 10:06
🐘 admin-functions.php
php
1.6 KB
2025-02-11 15:39
🐘 class-astra-after-setup-theme.php
php
11.3 KB
2025-12-16 13:01
🐘 class-astra-dynamic-css.php
php
299.9 KB
2026-06-02 14:57
🐘 class-astra-extended-base-dynamic-css.php
php
6.4 KB
2025-02-11 15:39
🐘 class-astra-global-palette.php
php
13.4 KB
2025-09-09 13:41
🐘 class-astra-loop.php
php
7.2 KB
2025-02-11 15:39
🐘 class-astra-memory-limit-notice.php
php
12.4 KB
2026-04-16 15:17
🐘 class-astra-mobile-header.php
php
5.8 KB
2025-12-08 14:18
🐘 extras.php
php
44.6 KB
2026-02-05 15:31
🐘 google-fonts.php
php
200.2 KB
2026-05-20 14:19
🐘 index.php
php
111 B
2024-11-11 15:51
🐘 markup-extras.php
php
72.4 KB
2026-05-12 13:03
🐘 template-parts.php
php
9.5 KB
2025-04-24 09:51
🐘 template-tags.php
php
1.1 KB
2025-02-11 15:39
🐘 w-org-version.php
php
647 B
2025-07-01 14:56
🐘 widgets.php
php
4.3 KB
2025-04-08 10:18