Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php
- $template = 'archive';
- ?>
- <section id="main">
- <div class="row">
- <div class="twelve columns cat-title">
- <?php
- if( have_posts () ){
- ?>
- <h2 >
- <?php
- if ( is_day() ) {
- echo __( 'Daily archives' , 'cosmotheme' ) . ': <span>' . get_the_date() .'</span>';
- }else if ( is_month() ) {
- echo __( 'Monthly archives' , 'cosmotheme' ) . ': <span>' . get_the_date( '' ).'</span>';
- }else if ( is_year() ) {
- echo __( 'Yearly archives' , 'cosmotheme' ) . ': <span>' . get_the_date( '' ).'</span>' ;
- }else if (is_tax( 'post_format' )){
- echo __( 'Post format archives' , 'cosmotheme' ) . ': <span>' . get_post_format().'</span>' ;
- }else if(is_post_type_archive()){
- echo sprintf(__( '%s archives' , 'cosmotheme' ), post_type_archive_title()) ;
- }else {
- echo __( 'Blog archives' , 'cosmotheme' ) ;
- }
- ?>
- </h2><?php
- }else{
- ?><h2 ><?php _e( 'Sorry, no posts found' , 'cosmotheme' ); ?></h2><?php
- }
- ?>
- </div>
- </div>
- <?php
- if (is_tax( 'post_format' )){
- $layout = new LBSidebarResizer( 'archive_format' ); /*for post format archive*/
- }else{
- $layout = new LBSidebarResizer( 'archive' );
- }
- $layout -> render_frontend();
- ?>
- </section>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement