src/web/app/themes/atahualpa/index.php
changeset 0 505fe5249d9c
equal deleted inserted replaced
-1:000000000000 0:505fe5249d9c
       
     1 <?php 
       
     2 list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
       
     3 get_header(); 
       
     4 extract($bfa_ata); 
       
     5 global $bfa_ata_postcount;
       
     6 ?>
       
     7 
       
     8 <?php /* If there are any posts: */
       
     9 if (have_posts()) : $bfa_ata_postcount = 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>
       
    10 
       
    11     <?php  if ($bfa_ata['widget_center_top'] <> '') { 
       
    12           echo bfa_parse_widget_areas($bfa_ata['widget_center_top']); 
       
    13 	} ?>
       
    14 
       
    15 	<?php // Deactivated since 3.6.5
       
    16 	# include 'bfa://content_above_loop'; 
       
    17 	// Uses the following static code instead: ?>
       
    18 	<?php bfa_next_previous_page_links('Top'); // For MULTI post pages if activated at ATO -> Next/Previous Navigation:  ?>
       
    19 
       
    20 	<?php while (have_posts()) : the_post(); $bfa_ata_postcount++; ?>
       
    21 	
       
    22 		<?php // Deactivated since 3.6.5
       
    23 		#include 'bfa://content_inside_loop'; 
       
    24 		// Uses the following static code instead: ?>
       
    25 		<?php bfa_next_previous_post_links('Top'); // For SINGLE post pages if activated at ATO -> Next/Previous Navigation  ?>
       
    26 		<?php /* Post Container starts here */
       
    27 		if ( function_exists('post_class') ) { ?>
       
    28 		<div <?php if ( is_page() ) { post_class('post'); } else { post_class(); } ?> id="post-<?php the_ID(); ?>">
       
    29 		<?php } else { ?>
       
    30 		<div class="<?php echo ( is_page() ? 'page ' : '' ) . 'post" id="post-'; the_ID(); ?>">
       
    31 		<?php } ?>
       
    32 		<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>
       
    33 		<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
       
    34 		<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
       
    35 		<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
       
    36 		<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>
       
    37 		<?php bfa_archives_page('<div class="archives-page">','</div>'); // Archives Pages. Displayed on a specific static page, if configured at ATO -> Archives Pages: ?>
       
    38 		<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
       
    39 		</div><!-- / Post -->	
       
    40 						
       
    41 	<?php endwhile; ?>
       
    42 
       
    43 	<?php // Deactivated since 3.6.5
       
    44 	# include 'bfa://content_below_loop'; 
       
    45 	// Uses the following static code instead: ?>
       
    46 	<?php bfa_next_previous_post_links('Middle'); // Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: ?>
       
    47 	<?php bfa_get_comments(); // Load Comments template (on single post pages, and static pages, if set on options page): ?>
       
    48 	<?php bfa_next_previous_post_links('Bottom'); // Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: ?>
       
    49 	<?php bfa_next_previous_page_links('Bottom'); // Displayed on MULTI post pages if activated at ATO -> Next/Previous Navigation: ?>
       
    50 
       
    51     <?php if ($bfa_ata['widget_center_bottom'] <> '') { 
       
    52           echo bfa_parse_widget_areas($bfa_ata['widget_center_bottom']); 
       
    53     } ?>
       
    54 
       
    55 <?php /* END of: If there are any posts */
       
    56 else : /* If there are no posts: */ ?>
       
    57 
       
    58 <?php // Deactivated since 3.6.5
       
    59 #include 'bfa://content_not_found'; 
       
    60 // Uses the following static code instead: ?>
       
    61 <h2><?php _e('Not Found','atahualpa'); ?></h2>
       
    62 <p><?php _e("Sorry, but you are looking for something that isn't here.","atahualpa"); ?></p>
       
    63 
       
    64 <?php endif; /* END of: If there are no posts */ ?>
       
    65 
       
    66 <?php get_footer(); ?>