at path:
ROOT
/
wp-content
/
themes
/
darknews
/
sidebar.php
run:
R
W
Run
admin-dashboard
DIR
2025-05-31 10:48:44
R
W
Run
assets
DIR
2025-05-31 10:48:44
R
W
Run
inc
DIR
2025-05-31 10:48:39
R
W
Run
js
DIR
2025-05-31 10:48:34
R
W
Run
languages
DIR
2025-05-31 10:48:34
R
W
Run
lib
DIR
2025-05-31 10:48:39
R
W
Run
template-parts
DIR
2025-05-31 10:48:34
R
W
Run
404.php
1.3 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
archive.php
3.03 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
changelog.txt
2.5 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
comments.php
1.82 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
footer.php
6.23 KB
2026-01-30 11:23:48
R
W
Run
Delete
Rename
front-page.php
381 By
2025-05-31 10:41:26
R
W
Run
Delete
Rename
functions.php
12.37 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
functions_bak.php
12.37 KB
2026-02-10 06:30:10
R
W
Run
Delete
Rename
header.php
2.07 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
index.php
2.93 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
page.php
1.16 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
readme.txt
8.13 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
rtl.css
14.99 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
screenshot.png
200.57 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
search.php
2.25 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
sidebar.php
1.34 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
single.php
3.28 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
style.css
284.61 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
woocommerce.css
7.68 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
error_log
up
📄
sidebar.php
Save
<?php /** * The sidebar containing the main widget area * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package DarkNews */ if (!is_active_sidebar('sidebar-1') && !is_active_sidebar('aft-sidebar-2')) { return; } $global_layout = darknews_get_option('global_content_alignment'); $page_layout = $global_layout; // Check if single. if (is_singular()) { $post_options = get_post_meta($post->ID, 'darknews-meta-content-alignment', true); if (!empty($post_options)) { $page_layout = $post_options; } else { $page_layout = $global_layout; } } if (is_front_page() || is_home()) { $frontpage_layout = darknews_get_option('frontpage_content_alignment'); if (!empty($frontpage_layout)) { $page_layout = $frontpage_layout; } else { $page_layout = $global_layout; } } if ($page_layout == 'full-width-content') { return; } ?> <?php $sticky_sidebar_class = ''; $sticky_sidebar = darknews_get_option('frontpage_sticky_sidebar'); if ($sticky_sidebar) { $sticky_sidebar_class = darknews_get_option('frontpage_sticky_sidebar_position'); } ?> <div id="secondary" class="sidebar-area <?php echo esc_attr($sticky_sidebar_class); ?>"> <aside class="widget-area color-pad"> <?php dynamic_sidebar('sidebar-1'); ?> </aside> </div>