Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: Tarendai/BootPress
base: 2dc53528ac
...
head fork: Tarendai/BootPress
compare: 494bf7b2be
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
View
7 functions.php
@@ -365,6 +365,13 @@ function add_theme_settings(){
'type' => 'checkbox',
'placeholder' => ''
));
+
+ $customoptions->register_option(array(
+ 'name' => 'sidebar_left',
+ 'human_name' => 'Show the sidebar on the left',
+ 'type' => 'checkbox',
+ 'placeholder' => ''
+ ));
}
add_action('init','add_theme_settings');
View
9 header.php
@@ -101,5 +101,12 @@
</header>
<div class="container">
<div role="main" id="main" class="row">
+ <?php
+ global $customoptions;
+ $left = $customoptions->get_option_value('sidebar_left');
+ if($left != 'yes'){
+ ?>
<section id="primary">
- <div id="content" role="main">
+ <div id="content" role="main">
+ <?php
+ }
View
4 lessstyle.less
@@ -137,14 +137,14 @@
}
#primary {
- .columns(8);
+ .columns(9);
min-height:10px;
.animated();
.fadeIn();
}
#sidebar {
- .columns(4);
+ .columns(3);
.animated();
.fadeInUp();
View
15 sidebar.php
@@ -1,5 +1,13 @@
+<?php
+global $customoptions;
+$left = $customoptions->get_option_value('sidebar_left');
+if($left != 'yes'){
+?>
</div><!-- #content -->
</section><!-- #primary -->
+<?php
+}
+?>
<div id="sidebar">
<?php
@@ -15,3 +23,10 @@
<?php
}?>
</div>
+<?php
+if($left == 'yes'){
+?>
+<section id="primary">
+ <div id="content" role="main">
+<?php
+}
View
26 wrapper.php
@@ -1,8 +1,18 @@
-<?php $base = app_template_base(); ?>
-
-<?php get_header( $base ); ?>
-
- <?php include app_template_path(); ?>
-
-<?php get_sidebar( $base ); ?>
-<?php get_footer( $base ); ?>
+<?php
+
+global $customoptions;
+$left = $customoptions->get_option_value('sidebar_left');
+
+$base = app_template_base();
+get_header( $base );
+
+if($left == 'yes'){
+ get_sidebar($base);
+}
+
+include app_template_path();
+
+if($left != 'yes'){
+ get_sidebar( $base );
+}
+get_footer( $base );

No commit comments for this range

Something went wrong with that request. Please try again.