buddypress.php (No sidebars for Dizzy)

<?php if ( !defined( 'ABSPATH' ) ) exit; /* Template Name: Force Fullwidth (No sidebars) 1 - RETRIEVE DATA 2 - PAGE 2.1 - Breadcrumbs 2.2 - Article - Title - Content 2.3 - Pagination 2.4 - Comments */ /*=============================================== R E T R I E V E D A T A Get a required page data ===============================================*/ global $st_Settings, $st_Options; $st_ = array(); // Get sidebar position $st_['sidebar_position'] = 'none'; // Re-define global $content_width if sidebar not exists if ( $st_['sidebar_position'] == 'none' ) { $content_width = $st_Options['global']['images']['large']['width']; } else { $content_width = $st_Options['global']['images']['archive-image']['width']; } // Is title disabled? $st_['title_disabled'] = st_get_post_meta( $post->ID, 'disable_title_value', true, 0 ); // Is breadcrumbs disabled? $st_['breadcrumbs_disabled'] = st_get_post_meta( $post->ID, 'disable_breadcrumbs_value', true, 0 ); /*=============================================== P A G E Display a required page ===============================================*/ get_header(); ?> <div id="content-holder" class="sidebar-position-none"> <div id="content-box"> <div> <div> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); /*------------------------------------------- 2.1 - Breadcrumbs -------------------------------------------*/ if ( $st_['breadcrumbs_disabled'] != 1 && !is_front_page() && function_exists( 'st_breadcrumbs' ) ) { st_breadcrumbs(); } /*------------------------------------------- 2.2 - Article -------------------------------------------*/ /*--- Title -----------------------------*/ if ( $st_['title_disabled'] != 1 && !is_front_page() ) { ?> <h1 class="entry-title page-title"><?php // Title the_title(); // Subtitle $st_['subtitle'] = get_post_meta( $post->ID, 'subtitle_value', true ); if ( $st_['subtitle'] ) { echo '<span class="title-end">.</span> <span class="title-sub">' . $st_['subtitle'] . '<span class="title-end">.</span></span>'; } ?> </h1><?php } /*--- Content -----------------------------*/?> <div id="article"> <?php the_content(); ?> <div class="clear"><!-- --></div> </div><!-- #article --> <div class="clear"><!-- --></div><?php /*------------------------------------------- 2.3 - Pagination -------------------------------------------*/ if ( wp_link_pages( 'echo=0' ) ) { echo '<div class="page-pagination">'; if ( function_exists('wp_pagenavi') ) { ?><div id="wp-pagenavibox"><?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?></div><?php } else { wp_link_pages( array( 'before' => '<span>' . __( 'Pages', 'strictthemes' ) . ':</span> ' ) ); } echo '</div>'; } /*------------------------------------------- 2.4 - Comments -------------------------------------------*/ if ( !empty( $st_Settings['page_comments'] ) && $st_Settings['page_comments'] == 'yes' ) { comments_template(); } endwhile; else : echo '<h1>404</h1><p>' . __( 'Sorry, no posts matched your criteria.', 'strictthemes' ) . '</p>'; endif; ?> <div class="clear"><!-- --></div> </div> </div> </div><!-- #content-box --> <div class="clear"><!-- --></div> </div><!-- #content-holder --> <?php get_footer(); ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.