GRAYBYTE WORDPRESS FILE MANAGER5989

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/ccsactwb3.org/new2/wp-content/themes/astra/inc/dynamic-css/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/ccsactwb3.org/new2/wp-content/themes/astra/inc/dynamic-css//logo-svg-icons.php
<?php
/**
 * Logo SVG Icons - Dynamic CSS
 *
 * @package Astra
 * @since 4.7.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

add_filter( 'astra_dynamic_theme_css', 'astra_logo_svg_icons_dynamic_css', 20 );

/**
 * Main styles for the logo svg icons.
 *
 * @param string $dynamic_css
 * @return string
 * @since 4.7.0
 */
function astra_logo_svg_icons_dynamic_css( $dynamic_css ) {

	if ( ! astra_logo_svg_icon() ) {
		return $dynamic_css;
	}

	$header_logo_width         = astra_get_option( 'ast-header-responsive-logo-width' );
	$logo_svg_icon_color       = astra_get_option( 'logo-svg-icon-color' );
	$logo_svg_site_title_gap   = astra_get_option( 'logo-svg-site-title-gap' );
	$logo_svg_icon_hover_color = astra_get_option( 'logo-svg-icon-hover-color' );

	$enabled_logo_title_inline = astra_get_option( 'logo-title-inline' );

	/**
	 * Start: Desktop related styles
	 */
	$desktop_css_output = array(
		'.site-branding .ast-logo-svg-icon'           => array(
			'display' => 'inline-flex', // Fix for the vertical alignment issue with the SVG logo.
		),
		'.site-branding .ast-logo-svg-icon svg'       => array(
			'width' => astra_get_css_value( $header_logo_width['desktop'], 'px', '30' ),
			'fill'  => esc_attr( $logo_svg_icon_color ),
		),
		'.site-branding .ast-logo-svg-icon:hover svg' => array(
			'fill' => esc_attr( $logo_svg_icon_hover_color ),
		),
	);

	if ( isset( $logo_svg_site_title_gap['desktop'] ) ) {
		if ( $enabled_logo_title_inline ) {
			$desktop_css_output['.ast-logo-title-inline .ast-site-identity'] = array(
				'gap' => astra_get_css_value( $logo_svg_site_title_gap['desktop'], 'px' ),
			);
		} else {
			$desktop_css_output['.ast-site-identity .ast-logo-svg-icon'] = array(
				'margin-bottom' => astra_get_css_value( $logo_svg_site_title_gap['desktop'], 'px' ),
			);
		}
	}

	/**
	 * End: Desktop related styles
	 */

	/**
	 * Start: Tablet related styles
	 */
	$tablet_css_output = array(
		'.site-branding .ast-logo-svg-icon svg' => array(
			'width' => astra_get_css_value( $header_logo_width['tablet'], 'px', '30' ),
		),
	);

	if ( isset( $logo_svg_site_title_gap['tablet'] ) ) {
		if ( $enabled_logo_title_inline ) {
			$tablet_css_output['.ast-logo-title-inline .ast-site-identity'] = array(
				'gap' => astra_get_css_value( $logo_svg_site_title_gap['tablet'], 'px' ),
			);
		} else {
			$tablet_css_output['.ast-site-identity .ast-logo-svg-icon'] = array(
				'margin-bottom' => astra_get_css_value( $logo_svg_site_title_gap['tablet'], 'px' ),
			);
		}
	}
	/**
	 * End: Tablet related styles
	 */

	/**
	 * Start: Mobile related styles
	 */
	$mobile_css_output = array(
		'.site-branding .ast-logo-svg-icon svg' => array(
			'width' => astra_get_css_value( $header_logo_width['mobile'], 'px', '30' ),
		),
	);

	if ( isset( $logo_svg_site_title_gap['mobile'] ) ) {
		if ( $enabled_logo_title_inline ) {
			$mobile_css_output['.ast-logo-title-inline .ast-site-identity'] = array(
				'gap' => astra_get_css_value( $logo_svg_site_title_gap['mobile'], 'px' ),
			);
		} else {
			$mobile_css_output['.ast-site-identity .ast-logo-svg-icon'] = array(
				'margin-bottom' => astra_get_css_value( $logo_svg_site_title_gap['mobile'], 'px' ),
			);
		}
	}
	/**
	 * End: Mobile related styles
	 */

	$dynamic_css .= astra_parse_css( $desktop_css_output );
	$dynamic_css .= astra_parse_css( $tablet_css_output, '', astra_get_tablet_breakpoint() );
	$dynamic_css .= astra_parse_css( $mobile_css_output, '', astra_get_mobile_breakpoint() );

	return $dynamic_css;
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 02 2025 08:38:01
giriqfky / giriqfky
0755
astra-icons.php
2.07 KB
June 07 2021 16:01:36
giriqfky / giriqfky
0644
block-editor-compatibility.php
21.01 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
comments-flex.php
19.319 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
comments.php
12.926 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
container-layouts.php
9.518 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
content-background.php
10.938 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
custom-menu-old-header.php
7.035 KB
April 24 2025 09:51:30
giriqfky / giriqfky
0644
dark-mode.php
30.192 KB
May 07 2025 12:00:20
giriqfky / giriqfky
0644
global-color-palette.php
1.877 KB
April 15 2025 10:44:56
giriqfky / giriqfky
0644
inline-on-mobile.php
7.105 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
live-search.php
3.024 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
logo-svg-icons.php
3.449 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
navigation.php
3.035 KB
April 25 2024 15:46:54
giriqfky / giriqfky
0644
pagination.php
8.824 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644
single-post.php
2.049 KB
February 26 2025 11:35:14
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF