??????????????
??????????????
??????????????
??????????????
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/dynamic-css/live-search.php
⬅ Kembali
<?php
/**
* Live Search - Dynamic CSS
*
* @package astra
* @since 4.4.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
add_filter( 'astra_dynamic_theme_css', 'astra_live_search_css', 12 );
/**
* Live Search - Dynamic CSS.
*
* @param string $dynamic_css
* @since 4.4.0
*/
function astra_live_search_css( $dynamic_css ) {
$ltr_left = is_rtl() ? 'right' : 'left';
$heading_base_color = astra_get_option( 'heading-base-color' );
$static_css = '
form.search-form {
position: relative;
}
.ast-live-search-results {
position: absolute;
width: 100%;
top: 60px;
padding: 0px 4px 4px;
max-height: 400px;
height: auto;
overflow-x: hidden;
overflow-y: auto;
background: var(--ast-global-color-primary, var(--ast-global-color-4));
z-index: 999999;
border-radius: 4px;
border: 1px solid var(--ast-border-color);
box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08);
}
.ast-live-search-results > * {
-js-display: flex;
display: flex;
justify-content: ' . esc_attr( $ltr_left ) . ';
flex-wrap: wrap;
align-items: center;
}
label.ast-search--posttype-heading {
text-transform: capitalize;
padding: 16px 16px 10px;
color: ' . esc_attr( $heading_base_color ) . ';
font-weight: 500;
}
label.ast-search--no-results-heading {
padding: 14px 20px;
}
a.ast-search-item {
position: relative;
padding: 14px 20px;
font-size: 0.9em;
}
a.ast-search-item:hover {
background-color: #f9fafb;
}
a.ast-search-page-link {
justify-content: center;
justify-content: center;
border: 1px solid var(--ast-border-color);
margin-top: 10px;
}
.ast-search-item + .ast-search--posttype-heading {
border-top: 1px solid var(--ast-border-color);
margin-top: 10px;
}
';
$dynamic_css .= Astra_Enqueue_Scripts::trim_css( $static_css );
$search_style = astra_get_option( 'header-search-box-type' );
if ( ! defined( 'ASTRA_EXT_VER' ) || ( defined( 'ASTRA_EXT_VER' ) && ( 'slide-search' === $search_style || 'search-box' === $search_style ) ) ) {
$search_width = astra_get_option( 'header-search-width' );
$search_selector = '.ast-header-search .ast-search-menu-icon';
$container_css = array(
$search_selector . ' .search-field' => array(
'width' => ! empty( $search_width['desktop'] ) ? astra_get_css_value( $search_width['desktop'], 'px' ) : 'auto',
),
);
$container_css_tablet = array(
$search_selector . ' .search-field' => array(
'width' => ! empty( $search_width['tablet'] ) ? astra_get_css_value( $search_width['tablet'], 'px' ) : '100%',
),
);
$container_css_mobile = array(
$search_selector . ' .search-field' => array(
'width' => ! empty( $search_width['mobile'] ) ? astra_get_css_value( $search_width['mobile'], 'px' ) : '100%',
),
);
$dynamic_css .= astra_parse_css( $container_css );
$dynamic_css .= astra_parse_css( $container_css_tablet, '', astra_get_tablet_breakpoint() );
$dynamic_css .= astra_parse_css( $container_css_mobile, '', astra_get_mobile_breakpoint() );
}
return $dynamic_css;
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 astra-icons.php
php
2.1 KB
2021-06-07 16:01
🐘 block-editor-compatibility.php
php
21.2 KB
2026-01-21 15:49
🐘 comments-flex.php
php
19.3 KB
2025-02-26 11:35
🐘 comments.php
php
12.9 KB
2025-02-26 11:35
🐘 container-layouts.php
php
9.5 KB
2025-07-17 15:54
🐘 content-background.php
php
11 KB
2025-07-16 14:06
🐘 custom-menu-old-header.php
php
7 KB
2025-04-24 09:51
🐘 dark-mode.php
php
30.5 KB
2026-04-08 14:31
🐘 global-color-palette.php
php
1.9 KB
2025-04-15 10:44
🐘 inline-on-mobile.php
php
7.1 KB
2025-02-26 11:35
🐘 live-search.php
php
3.1 KB
2026-04-08 14:31
🐘 logo-svg-icons.php
php
3.4 KB
2025-02-26 11:35
🐘 navigation.php
php
3 KB
2024-04-25 15:46
🐘 pagination.php
php
8.8 KB
2025-02-26 11:35
🐘 single-post.php
php
2 KB
2025-08-11 13:03