21 lines
851 B
PHP
Executable file
21 lines
851 B
PHP
Executable file
<?php
|
|
if ( defined( 'WPDDL_VERSION' )) :
|
|
get_header( 'layouts' );
|
|
toolset_assigned_message('layout-archive', 'archive-default');
|
|
the_ddlayout( 'archive-default' ); // Loads 'page-default' layout by default
|
|
get_footer( 'layouts' );
|
|
else:
|
|
get_header( );
|
|
toolset_assigned_message('views-archive');
|
|
if (have_posts()) : while ( have_posts() ) : the_post(); ?>
|
|
<article <?php post_class("post-archive");?>>
|
|
<h2 class="post-archive-title"><a href="<?php the_permalink();?>" title="<?php the_title_attribute();?>"><?php the_title(); ?></a></h2>
|
|
<div class="post-content"><?php the_excerpt(); ?></div>
|
|
</article>
|
|
<?php endwhile; // WP Loop
|
|
else : ?>
|
|
<p><?php _e( "No posts found", "toolset_starter" ); ?> </p>
|
|
<?php endif; // WP Loop
|
|
get_footer( );
|
|
endif; // IF Layouts are enabled
|
|
?>
|