GRAYBYTE WORDPRESS FILE MANAGER5733

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/trustyourlawyer.com/wp-content/themes/astra/inc/core/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/themes/astra/inc/core//sidebar-manager.php
<?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 );
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
builder
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
deprecated
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
markup
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
class-astra-admin-helper.php
2.065 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
class-astra-admin-settings.php
24.703 KB
April 24 2025 09:51:30
giriqfky / giriqfky
0644
class-astra-attr.php
2.639 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
class-astra-enqueue-scripts.php
25.265 KB
April 15 2025 10:44:56
giriqfky / giriqfky
0644
class-astra-icons.php
12.078 KB
April 24 2025 09:51:30
giriqfky / giriqfky
0644
class-astra-theme-options.php
34.496 KB
April 15 2025 10:44:56
giriqfky / giriqfky
0644
class-astra-walker-page.php
4.51 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
class-astra-wp-editor-css.php
63.695 KB
June 17 2025 10:38:26
giriqfky / giriqfky
0644
class-gutenberg-editor-css.php
78.8 KB
May 20 2025 09:12:30
giriqfky / giriqfky
0644
class-theme-strings.php
5.08 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
common-functions.php
64.325 KB
June 05 2025 15:23:18
giriqfky / giriqfky
0644
index.php
0.108 KB
November 11 2024 15:51:54
giriqfky / giriqfky
0644
sidebar-manager.php
2.195 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
theme-hooks.php
8.941 KB
November 11 2024 15:51:54
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF