Exemplo n.º 1
0
                  <div class="entry-created bg-success space-padding-top-10">
                      <span><?php 
        the_time('M d, Y');
        ?>
</span>
                  </div>
                       
				   		<div class="hentry-box">
				   			<?php 
        get_template_part('templates/post/_timeline');
        ?>
				   		</div></div>
				   </li>
				<?php 
    }
    ?>
				</ul>
             <?php 
}
?>
 	        <?php 
if ($pagination == 1) {
    training_wpo_pagination_nav($args['posts_per_page'], $loop->found_posts, $loop->max_num_pages);
}
?>
            <?php 
wp_reset_postdata();
?>
    </div>
</section>
Exemplo n.º 2
0
                    <p class="description"> <?php 
        the_excerpt();
        ?>
</p>
                    <p class="negative-marg-top"><a  href="<?php 
        the_permalink();
        ?>
">  Read More <i class="fa fa-chevron-right radius-x space-padding-10"></i></a></p>
                </div>    
              </div>
          </div>
        </div>
      </div>
    <?php 
    }
    ?>
    <?php 
    wp_reset_postdata();
    ?>
    </div>
    <?php 
    if ($pagination == 1) {
        training_wpo_pagination_nav($number, $loop->found_posts, $loop->max_num_pages);
    }
    ?>
    <?php 
}
?>
    </div>
  </div>  
</div>
<?php

global $portfolio, $trainingconfig, $column;
if (is_front_page()) {
    $paged = get_query_var('page') ? get_query_var('page') : 1;
} else {
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
}
if (is_page()) {
    $options = array('portfolio_number' => 8, 'portfolio_style' => '', 'portfolio_columns' => 2);
    $trainingconfig = array_merge($options, $trainingconfig);
    $style = $trainingconfig['portfolio_style'];
    $post_per_page = $trainingconfig['portfolio_number'];
    $column = $trainingconfig['portfolio_columns'];
    $args = array('post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => $post_per_page);
    $portfolio = new WP_Query($args);
} else {
    $style = training_wpo_theme_options('portfolio-style', 'style-1');
    $column = (int) training_wpo_theme_options('portfolio-items-show', 4);
    $post_per_page = get_option('posts_per_page');
    $args = array('post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => $post_per_page);
    $portfolio = new WP_Query($args);
}
if (have_posts()) {
    get_template_part('templates/portfolio/portfolio', $style);
    training_wpo_pagination_nav($post_per_page, $portfolio->found_posts, $portfolio->max_num_pages);
} else {
    get_template_part('templates/elements/none');
}
Exemplo n.º 4
0
<?php

if (is_front_page()) {
    $paged = get_query_var('page') ? get_query_var('page') : 1;
} else {
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
}
$column = (int) training_wpo_theme_options('gallery-items-show', 3);
$post_per_page = (int) training_wpo_theme_options('gallery-archive-items', 9);
$args = array('post_type' => 'gallery', 'paged' => $paged, 'posts_per_page' => $post_per_page);
$gallerys = new WP_Query($args);
$col = floor(12 / $column);
$smcol = $col > 4 ? 6 : $col;
$class_column = 'col-lg-' . $col . ' col-md-' . $col . ' col-sm-' . $smcol;
if (have_posts()) {
    echo '<div class="row">';
    while (have_posts()) {
        the_post();
        echo '<div class="' . esc_attr($class_column) . '">';
        get_template_part('templates/gallery/item');
        echo '</div>';
    }
    echo '</div>';
    training_wpo_pagination_nav($post_per_page, $gallerys->found_posts, $gallerys->max_num_pages);
} else {
    get_template_part('templates/none');
}
Exemplo n.º 5
0
<?php 
    while (have_posts()) {
        the_post();
        if ($style == 'masonry') {
            ?>
    <div class="<?php 
            echo esc_attr($class_column);
            ?>
 masonry-item">
        <?php 
            get_template_part('templates/blog/blog', $style);
            ?>
    </div>
<?php 
        } else {
            ?>
    <div class="col-xs-12">
        <?php 
            get_template_part('templates/blog/blog', $style);
            ?>
    </div>    
<?php 
        }
    }
    ?>
</div>
<?php 
    training_wpo_pagination_nav($post_per_page, $wp_query->found_posts, $wp_query->max_num_pages);
} else {
    get_template_part('templates/elements/none');
}