Advertisement
CornelP

Grid - sidebar

Feb 26th, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2.                             if($_POST['post_view'] == 'list'){
  3.                                 post::list_view( $post , 'front_page' );
  4.                             }  
  5.  
  6.                             if($_POST['post_view'] == 'grid'){
  7.                                 if ( _settings::get( 'settings' , 'layout' , 'style' , 'front_page' ) == 'full' ) {
  8.                                     $nr_columns = 'four';
  9.                                 } else {
  10.                                     $nr_columns = 'six';
  11.                                 }
  12.                                     post::grid_view( $post , 'front-page', $nr_columns );
  13.                             }  
  14.                         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement