-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Norik Davtian <norik@bigemployee.com>
- Loading branch information
1 parent
d1f4786
commit f5aca58
Showing
13 changed files
with
287 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
<?php | |||
/** | |||
* Closing our content scaffold and checking to see if we should include sidebar | |||
* Always call get_header('layout'); to open tags closed here. | |||
* | |||
*/ | |||
?> | |||
</div><!-- #main --> | |||
<?php if ($layout == 'content-sidebar' || $layout == 'sidebar-content'): ?> | |||
<?php get_sidebar(); ?> | |||
<?php endif; ?> | |||
</div><!-- #content --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,22 @@ | |||
<?php | |||
/** | |||
* Adding layout class to our main content | |||
* Always call get_footer('layout'); to close tags opened here. | |||
* @todo create a function to overwrite comments open | |||
* @todo create a function to get the layout | |||
* @link https://codex.wordpress.org/Function_Reference/comments_open#Examples | |||
*/ | |||
$layout = get_post_meta(get_the_ID(), 'bigblank_post_layout', true); | |||
$options = bigblank_get_theme_options(); | |||
if (!$layout) { | |||
$layout = $options['theme_layout']; | |||
} | |||
if(is_page()){ | |||
$comments = $options['page_comments']; | |||
} | |||
if(is_single()){ | |||
$comments = $options['post_comments']; | |||
} | |||
?> | |||
<div id="content" class="site-content <?php echo $layout; ?>"> | |||
<div id="main" role="main"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.