HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/themes/covernews/sidebar.php
<?php
/**
 * The sidebar containing the main widget area
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package CoverNews
 */

if (!is_active_sidebar('sidebar-1')) {
    return;
}

$global_layout = covernews_get_option('global_content_alignment');
$page_layout = $global_layout;

$frontpage_layout = covernews_get_option('frontpage_content_alignment');
if (is_front_page() && is_home()) {

    if (!empty($frontpage_layout)) {
        $page_layout = $frontpage_layout;
    }
    else {
        $page_layout = $global_layout;
    }
} elseif (is_front_page()) {
    $page_layout = $frontpage_layout;
} else {

    if (is_singular()) {
        $post_options = get_post_meta($post->ID, 'covernews-meta-content-alignment', true);
        if (!empty($post_options)) {
            $page_layout = $post_options;
        } else {
            $page_layout = $global_layout;
        }
    }else{
        $page_layout = $global_layout;
    }
    
}

if ($page_layout == 'full-width-content') {
    return;
}

?>
<?php
$sticky_sidebar_class = '';
$sticky_sidebar = covernews_get_option('frontpage_sticky_sidebar');
if ($sticky_sidebar) {
    $sticky_sidebar_class = covernews_get_option('frontpage_sticky_sidebar_position');
}
?>
<aside id="secondary" class="widget-area <?php echo esc_attr($sticky_sidebar_class); ?>">
	<?php dynamic_sidebar('sidebar-1'); ?>
</aside><!-- #secondary -->