PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Joko Prasetyo   kciaotime WordPress Theme   index.php   Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: kciaotime WordPress Theme
WordPress theme to customize different page parts
Author: By
Last change:
Date: 1 year ago
Size: 1,700 bytes
 

Contents

Class file image Download
<?php get_header(); ?>

    <div id="main">
   
        <?php
        $img_slide
= of_get_option( 'kciao_display_slider', 'none' );
        if (
of_get_option( 'kciao_homepage_layout' ) == 1 && ( $img_slide['home'] ) ) :
       
get_template_part( 'post', 'slider' );
        endif;
        if (
of_get_option( 'kciao_homepage_layout' ) == 2 && ( $img_slide['home'] ) ) :
       
get_template_part( 'post', 'slider' );
        endif;
?>

        <div id="content">
       
            <?php
           
if ( of_get_option( 'kciao_homepage_layout' ) == 3 && ( $img_slide['home'] ) ) :
          
get_template_part( 'post', 'slider' );
           endif;
?>

            <?php
                $post_col
= 0;
                    if (
have_posts()) : while (have_posts()) : the_post();

                   
$post_col++;
                        if(
$post_col == '1') {
                           
?><div class="post-wrap clearfix"><?php
                       
}
                       
get_template_part('post');
                       
                        if(
$post_col == '2') {
                           
$post_col = 0;
                           
?></div><?php
                       
}
 
                endwhile;
               
                else :
                   
get_template_part('post', 'noresults');
                endif;
                   
                    if(
$post_col == '1') {
                       
?></div><?php
                   
}
                   
               
get_template_part('navigation');
           
?>

        </div><!-- #content -->
   
        <?php get_sidebar(); ?>

    </div><!-- #main -->
   
<?php get_footer(); ?>