Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- Template Name: IceCream
- * @file page.php
- */
- ?>
- <?php get_header(); ?>
- <div class="row">
- <div class="span12">
- <div id="content">
- <!-- Add breadcrumb -->
- <?php if(of_get_option('breadcrumbs', '1')) {?>
- <?php echo responsive_breadcrumb_lists(); ?>
- <?php } ?>
- <!-- end breadcrumb -->
- <?php $btn_color = 'btn-'.of_get_option('p_btn_color', '' );
- $btn_size = 'btn-'.of_get_option('p_btn_size', '' );
- ?>
- <?php if(of_get_option('filter_btns', '1')) {?>
- <?php
- $terms = get_terms("ictag");
- $count = count($terms);
- $fbtn_color = 'btn-'.of_get_option('f_btn_color', '' );
- $fbtn_size = 'btn-'.of_get_option('f_btn_size', '' );
- echo '<div id="portfolio-filter" class="btn-group" data-toggle="buttons-radio">';
- echo '<a class="btn '.$fbtn_color.' '.$fbtn_size.' active" href="#all" data-filter="*" title="">All</a>';
- if ( $count > 0 ){
- foreach ( $terms as $term ) {
- $termname = strtolower($term->name);
- $termname = str_replace(' ', '-', $termname);
- echo '<a data-filter=".'.$termname.'" class="btn '.$fbtn_color.' '.$fbtn_size.'" href="#'.$termname.'" title="" rel="'.$termname.'">'.$term->name.'</a>';
- }
- }
- echo "</div>";
- ?>
- <?php } ?>
- <?php
- // get portfolio column count
- $portfolio_count = of_get_option('portfolio_column', 'three' );
- if ( $portfolio_count == "two") {
- $pcount = '6';
- } elseif ($portfolio_count == "three") {
- $pcount = '4';
- } elseif ($portfolio_count == "four") {
- $pcount = '3';
- }
- ?>
- <?php
- // added posts to show alphabetically
- $loop = new WP_Query(array('post_type' => 'icecream', 'order' => 'ASC', 'orderby' => 'title', 'posts_per_page' => -1));
- $count =0;
- ?>
- <div id="portfolio-wrapper portfolio-<?php echo $portfolio_count ?>-column">
- <ul id="portfolio-list" class="thumbnails">
- <?php if ( $loop ) :
- while ( $loop->have_posts() ) : $loop->the_post(); ?>
- <?php
- $terms = get_the_terms( $post->ID, 'ictag' );
- if ( $terms && ! is_wp_error( $terms ) ) :
- $links = array();
- foreach ( $terms as $term )
- {
- $links[] = $term->name;
- }
- $links = str_replace(' ', '-', $links);
- $tax = join( " ", $links );
- else :
- $tax = '';
- endif;
- ?>
- <?php
- ?>
- <!--THIS BEGINS MY POST BOX, INCLUDING TITLE AND CONTENT OF POST -->
- <li class="span<?php echo ($pcount); ?> <?php echo strtolower($tax); ?> block">
- <div class="menu-container">
- <!-- Removed permalink to post title -->
- <?php if(of_get_option('project_title', '1')) {?>
- <!-- Removed permalink to post title -->
- <div class="menu-item-title"><?php the_title(); ?>
- <!-- Removed permalink to post title END -->
- <div class="item-desc"><?php the_content(__('responsive')); ?><div class="favorite-box"><div class="favorite"><?php wpfp_link() ?></div></div></div>
- </div><?php } ?>
- <?php if(of_get_option('project_btns', '1')) {?>
- <?php
- $btn_color = 'btn-'.of_get_option('p_btn_color', '' );
- $btn_size = 'btn-'.of_get_option('p_btn_size', '' );
- if(of_get_option('p_button_block', '1')) {
- $btn_block = "btn-block";
- }
- ?>
- <?php } ?>
- </div></li>
- <!--THIS ENDS MY POST BOX, INCLUDING TITLE AND CONTENT OF POST -->
- <?php endwhile; else: ?>
- <li class="error-not-found">Sorry, no portfolio entries for while.</li>
- <?php endif; ?>
- </ul>
- <div class="clearboth"></div>
- </div> <!-- end #portfolio-wrapper-->
- </div><!-- end of #content -->
- </div><!-- end of span12 -->
- </div><!-- end of row -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement