astra_ext_advanced_hooks_dynamic_css( string $dynamic_css, string $dynamic_css_filtered = '' )
Dynamic CSS
Description
Parameters
- $dynamic_css
-
(string) (Required) Astra Dynamic CSS.
- $dynamic_css_filtered
-
(string) (Optional) Astra Dynamic CSS Filters.
Default value: ''
Return
(string)
Source
File: addons/advanced-hooks/classes/ext-advanced-hooks-dynamic.css.php
function astra_ext_advanced_hooks_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $css = ''; $common_desktop_css_output = array( '.ast-hide-display-device-desktop' => array( 'display' => 'none', ), ); $common_tablet_css_output = array( '.ast-hide-display-device-tablet' => array( 'display' => 'none', ), ); $common_mobile_css_output = array( '.ast-hide-display-device-mobile' => array( 'display' => 'none', ), ); // Common options of Above Header. $css .= astra_parse_css( $common_desktop_css_output, astra_addon_get_tablet_breakpoint( '', 1 ) ); $css .= astra_parse_css( $common_tablet_css_output, astra_addon_get_mobile_breakpoint( '', 1 ), astra_addon_get_tablet_breakpoint() ); $css .= astra_parse_css( $common_mobile_css_output, '', astra_addon_get_mobile_breakpoint() ); return $dynamic_css . $css; }
Expand full source code Collapse full source code View on Trac