Move into wp-content path
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
32
wp-content/themes/Pirate-Rogue/sidebar-page.php
Normal file
32
wp-content/themes/Pirate-Rogue/sidebar-page.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for the Page widget area
|
||||
*
|
||||
* @package Pirate Rogue
|
||||
* @since Pirate Rogue 1.0
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$pirate_rogue_page_sidebar = get_post_meta( $post->ID, 'pirate_rogue_page_sidebar', true );
|
||||
if (! is_active_sidebar( 'sidebar-2' ) && (empty($pirate_rogue_page_sidebar)) ) {
|
||||
return;
|
||||
}
|
||||
// If we get this far, we have widgets or content. Let's do this.
|
||||
|
||||
?>
|
||||
|
||||
<aside id="sidebar-page" class="sidebar-page widget-area">
|
||||
<?php
|
||||
if (!empty($pirate_rogue_page_sidebar)) { ?>
|
||||
<div class="widget textwidget">
|
||||
<?php echo do_shortcode($pirate_rogue_page_sidebar); ?>
|
||||
</div><!-- .widget-area -->
|
||||
<?php }
|
||||
|
||||
if ( is_active_sidebar( 'sidebar-2' ) ) :
|
||||
dynamic_sidebar( 'sidebar-2' );
|
||||
endif; ?>
|
||||
</aside><!-- .sidebar-page -->
|
||||
Reference in New Issue
Block a user