Skip to content

Commit

Permalink
sampression_right_sidebar replaced by get_sidebar function
Browse files Browse the repository at this point in the history
  • Loading branch information
bijayyadav committed Apr 16, 2014
1 parent 343a02c commit 03112b4
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 27 deletions.
7 changes: 6 additions & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
<!--end of .post-->
</div>
<!--#content-->
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<!-- .block-->
Expand Down
7 changes: 6 additions & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@
<!-- .post-->
</div>
<!--#content-->
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<!-- .block-->
Expand Down
7 changes: 6 additions & 1 deletion author.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@
<!-- .post-->
</div>
<!-- #content-->
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<!-- .block-->
Expand Down
7 changes: 6 additions & 1 deletion category.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@
<!-- .post-->
</div>
<!-- #content-->
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<!-- .block-->
Expand Down
7 changes: 6 additions & 1 deletion content-audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@
) );
?>
</div>
<?php sampression_readmore_link() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</article>
7 changes: 6 additions & 1 deletion content-gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@
) );
?>
</div>
<?php sampression_readmore_link() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</article>
7 changes: 6 additions & 1 deletion content-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@
) );
?>
</div>
<?php sampression_readmore_link() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</article>
7 changes: 6 additions & 1 deletion content-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@
) );
?>
</div>
<?php sampression_readmore_link() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</article>
7 changes: 6 additions & 1 deletion content.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
endif;
?>
</div>
<?php sampression_readmore_link() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</article>
7 changes: 6 additions & 1 deletion image.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@
</div>
<!-- #primary-content-->
</div>
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<?php get_footer(); ?>
12 changes: 0 additions & 12 deletions inc/functions/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,6 @@ function sampression_sidebar_position() {
return $position;
}

/**
* get sampression right sidebar
*
* @global type $sampression_style
*/
function sampression_right_sidebar() {
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
}


/**
* Get blog title if use-title is set in sampression backend
Expand Down
7 changes: 6 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
<!-- .post-->
</div>
<!--#content-->
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<!-- .block-->
Expand Down
7 changes: 6 additions & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@
</div>
<!-- #primary-content-->
</div>
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section><!--.block-->
<?php get_footer(); ?>
7 changes: 6 additions & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
<!-- .post-->
</div>
<!-- #content-->
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<!-- .block-->
Expand Down
7 changes: 6 additions & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@
</div>
<!-- #primary-content-->
</div>
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section><!--.block-->
<?php get_footer(); ?>
7 changes: 6 additions & 1 deletion tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@
<!-- .post-->
</div>
<!-- #content-->
<?php sampression_right_sidebar() ?>
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<!-- .block-->
Expand Down

0 comments on commit 03112b4

Please sign in to comment.