??????????????
??????????????
??????????????
??????????????
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/pgtankstorage.sg/wp-content/themes/astra/inc/core/sidebar-manager.php
⬅ Kembali
<?php
/**
* Sidebar Manager functions
*
* @package Astra
* @link https://wpastra.com/
* @since Astra 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Site Sidebar
*/
if ( ! function_exists( 'astra_page_layout' ) ) {
/**
* Site Sidebar
*
* Default 'right sidebar' for overall site.
*/
function astra_page_layout() {
$supported_post_types = Astra_Posts_Structure_Loader::get_supported_post_types();
if ( is_singular() ) {
// If post meta value is empty,
// Then get the POST_TYPE sidebar.
$layout = astra_get_option_meta( 'site-sidebar-layout', '', true );
// If post meta value is empty or in editor and sidebar set as default.
if ( empty( $layout ) ) {
$post_type = strval( get_post_type() );
if ( in_array( $post_type, $supported_post_types ) ) {
$layout = astra_get_option( 'single-' . $post_type . '-sidebar-layout' );
}
if ( 'default' === $layout || empty( $layout ) ) {
// Get the global sidebar value.
// NOTE: Here not used `true` in the below function call.
$layout = astra_get_option( 'site-sidebar-layout' );
}
}
} else {
if ( is_search() ) {
// Check only post type archive option value.
$layout = astra_get_option( 'archive-post-sidebar-layout' );
$search_sidebar_layout = astra_get_option( 'ast-search-sidebar-layout', 'default' );
$layout = 'default' !== $search_sidebar_layout ? $search_sidebar_layout : $layout;
if ( 'default' === $layout || empty( $layout ) ) {
// Get the global sidebar value.
// NOTE: Here not used `true` in the below function call.
$layout = astra_get_option( 'site-sidebar-layout' );
}
} else {
$post_type = astra_get_post_type();
$layout = '';
if ( in_array( $post_type, $supported_post_types ) ) {
$layout = astra_get_option( 'archive-' . $post_type . '-sidebar-layout' );
}
if ( 'default' === $layout || empty( $layout ) ) {
// Get the global sidebar value.
// NOTE: Here not used `true` in the below function call.
$layout = astra_get_option( 'site-sidebar-layout' );
}
}
}
return apply_filters( 'astra_page_layout', $layout );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 builder
dir
—
2026-06-03 10:06
📁 deprecated
dir
—
2026-06-03 10:06
📁 markup
dir
—
2026-06-03 10:06
🐘 class-astra-admin-helper.php
php
2.1 KB
2025-04-02 11:04
🐘 class-astra-admin-settings.php
php
26.4 KB
2026-04-27 12:20
🐘 class-astra-attr.php
php
2.6 KB
2025-04-02 11:04
🐘 class-astra-command-palette.php
php
8.1 KB
2026-04-16 15:17
🐘 class-astra-enqueue-scripts.php
php
33.8 KB
2026-06-02 14:57
🐘 class-astra-icons.php
php
13.9 KB
2025-09-09 13:41
🐘 class-astra-theme-options.php
php
35.2 KB
2026-05-20 14:19
🐘 class-astra-walker-page.php
php
4.6 KB
2026-02-05 15:31
🐘 class-astra-wp-editor-css.php
php
64.9 KB
2026-04-08 14:31
🐘 class-gutenberg-editor-css.php
php
79.6 KB
2026-05-12 13:03
🐘 class-theme-strings.php
php
5.1 KB
2025-04-02 11:04
🐘 common-functions.php
php
68.5 KB
2026-04-08 14:31
🐘 index.php
php
111 B
2024-11-11 15:51
🐘 sidebar-manager.php
php
2.2 KB
2025-04-02 11:04
🐘 theme-hooks.php
php
8.9 KB
2024-11-11 15:51