GRAYBYTE WORDPRESS FILE MANAGER3323

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
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/trustyourlawyer.com/wp-content/themes/astra/inc/dynamic-css/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/themes/astra/inc/dynamic-css//inline-on-mobile.php
<?php
/**
 * Inline On Mobile - Dynamic CSS.
 *
 * @package astra
 * @since 3.5.0
 */

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

add_filter( 'astra_dynamic_theme_css', 'astra_inline_on_mobile_css' );

/**
 * Inline On Mobile - Dynamic CSS.
 *
 * @param string $dynamic_css Dynamic CSS.
 * @since 3.5.0
 * @return string
 */
function astra_inline_on_mobile_css( $dynamic_css ) {

	$inline_on_mobile_enable = false;
	for ( $index = 1; $index <= Astra_Builder_Helper::$component_limit; $index++ ) {
		if ( false === astra_get_option( 'header-menu' . $index . '-menu-stack-on-mobile' ) ) {
			$inline_on_mobile_enable = true;
			break;
		}
	}

	if ( false === $inline_on_mobile_enable ) {
		return $dynamic_css;
	}

	$inline_on_mobile_css = '
    .ast-header-break-point .ast-mobile-header-wrap .ast-above-header-wrap .main-header-bar-navigation .inline-on-mobile .menu-item .menu-link,
    .ast-header-break-point .ast-mobile-header-wrap .ast-main-header-wrap .main-header-bar-navigation .inline-on-mobile .menu-item .menu-link,
    .ast-header-break-point .ast-mobile-header-wrap .ast-below-header-wrap .main-header-bar-navigation .inline-on-mobile .menu-item .menu-link {
      border: none;
    }
    
    .ast-header-break-point .ast-mobile-header-wrap .ast-above-header-wrap .main-header-bar-navigation .inline-on-mobile .menu-item-has-children > .ast-menu-toggle::before,
    .ast-header-break-point .ast-mobile-header-wrap .ast-main-header-wrap .main-header-bar-navigation .inline-on-mobile .menu-item-has-children > .ast-menu-toggle::before,
    .ast-header-break-point .ast-mobile-header-wrap .ast-below-header-wrap .main-header-bar-navigation .inline-on-mobile .menu-item-has-children > .ast-menu-toggle::before {
      font-size: .6rem;
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile {
        flex-wrap: unset;
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu .menu-link {
        padding: .1em 1em;
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu > .menu-item .ast-menu-toggle::before {
        transform: rotate(-90deg);
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu > .menu-item.ast-submenu-expanded .ast-menu-toggle::before {
        transform: rotate(-270deg);
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item > .sub-menu > .menu-item .menu-link:before {
        content: none;
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile {
        flex-wrap: unset;
    }
    
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu .menu-link {
        padding: .1em 1em;
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu > .menu-item .ast-menu-toggle::before {
        transform: rotate(-90deg);
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu > .menu-item.ast-submenu-expanded .ast-menu-toggle::before {
        transform: rotate(-270deg);
    }
    .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item > .sub-menu > .menu-item .menu-link:before {
        content: none;
    }
    .ast-header-break-point .inline-on-mobile .sub-menu {
        width: 150px;
    }';

	if ( is_rtl() ) {
		$inline_on_mobile_css .= '
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.menu-item-has-children {
            margin-left: 10px;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu {
            display: block;
            position: absolute;
            left: auto;
            right: 0;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu .menu-item .ast-menu-toggle {
            padding: 0;
            left: 1em;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu > .menu-item > .sub-menu {
            right: 100%;
            left: auto;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .ast-menu-toggle {
            left: -15px;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.menu-item-has-children {
            margin-left: 10px;
        }
        
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu {
            display: block;
            position: absolute;
            left: auto;
            right: 0;
        }
        
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu > .menu-item > .sub-menu {
            right: 100%;
            left: auto;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .ast-menu-toggle {
            left: -15px;
        }';
	} else {
		$inline_on_mobile_css .= '
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.menu-item-has-children {
            margin-right: 10px;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu {
            display: block;
            position: absolute;
            right: auto;
            left: 0;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu .menu-item .ast-menu-toggle {
            padding: 0;
            right: 1em;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu > .menu-item > .sub-menu {
            left: 100%;
            right: auto;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .ast-menu-toggle {
            right: -15px;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.menu-item-has-children {
            margin-right: 10px;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu {
            display: block;
            position: absolute;
            right: auto;
            left: 0;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .menu-item.ast-submenu-expanded > .sub-menu > .menu-item > .sub-menu {
            left: 100%;
            right: auto;
        }
        .ast-header-break-point .ast-mobile-header-wrap .ast-flex.inline-on-mobile .ast-menu-toggle {
            right: -15px;
        }';
	}

	return $dynamic_css . Astra_Enqueue_Scripts::trim_css( $inline_on_mobile_css );
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
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