??????????????
??????????????
??????????????
??????????????
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/single-post.php
⬅ Kembali
<?php
/**
* Single Post UI Improvement - Dynamic CSS
*
* @package astra-builder
* @since 4.6.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( apply_filters( 'astra_improvise_single_post_design', Astra_Dynamic_CSS::astra_4_6_0_compatibility() && is_single() ) ) {
add_filter( 'astra_dynamic_theme_css', 'astra_single_post_css', 11 );
}
/**
* Single Post UI Improvement - Dynamic CSS
*
* @param string $dynamic_css Astra Dynamic CSS.
* @return String Generated dynamic CSS for Pagination.
*
* @since 4.6.0
*/
function astra_single_post_css( $dynamic_css ) {
$is_boxed = astra_is_content_style_boxed();
$content_layout = astra_get_content_layout();
$post_with_unboxed_layout = ( 'plain-container' === $content_layout || 'narrow-container' === $content_layout ) && ! $is_boxed ? true : false;
$static_css = '
:root {
--ast-single-post-border: #e1e8ed;
}
.entry-content > * {
margin-bottom: 1.5em;
}
.entry-content :where(h1, h2, h3, h4, h5, h6) {
margin-top: 1.5em;
margin-bottom: calc(0.3em + 10px);
}
code, kbd, samp {
background: var(--ast-code-block-background);
padding: 3px 6px;
}
.ast-row.comment-textarea fieldset.comment-form-comment {
border: none;
padding: unset;
margin-bottom: 1.5em;
}
.entry-content .wp-block-image,
.entry-content .wp-block-embed {
margin-top: 2em;
margin-bottom: 3em;
}
';
if ( $post_with_unboxed_layout ) {
$static_css .= '
:root {
--ast-single-post-nav-padding: 4em 0 0;
}
.ast-single-post .ast-post-format-content {
max-width: 100%;
}
.post-navigation + .comments-area {
border-top: none;
padding-top: 5em;
}
';
} else {
$nav_padding = astra_check_current_post_comment_enabled() || 0 < get_comments_number() ? '3em 0 1em' : '3em 0 0';
$static_css .= '
:root {
--ast-single-post-nav-padding: ' . $nav_padding . ';
}
';
}
$dynamic_css .= Astra_Enqueue_Scripts::trim_css( $static_css );
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