-
Notifications
You must be signed in to change notification settings - Fork 0
/
newsletter.php
43 lines (39 loc) · 1.49 KB
/
newsletter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
Template Name: Newsletters
*/
?>
<?php get_header(); ?>
<?php
$wp_query = new WP_Query();
$wp_query->query( array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => $paged, 'post_type' => 'newsletter' ) );
$more = 0;
?>
<?php if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<div class="ind-post">
<h2><a href="<?php the_permalink() ?>" title="<?php printf(__("Permanent Link to %s", "magazine-basic"), the_title_attribute('echo=0')); ?>">
<?php if(function_exists('has_post_thumbnail') && has_post_thumbnail()) {
//echo '<a href="'.get_permalink().'">';
the_post_thumbnail('thumbnail', array('class'=>'alignleft'));
//echo '</a>';
} else {
echo resize(get_option('thumbnail_size_w'),get_option('thumbnail_size_h'));
}?>
<?php the_title(); ?></a></h2>
<?php /*<div class="meta">
<?php if(theme_option('dates_index')=='on') { echo '<div class="date">'; the_time(get_option('date_format')); echo '</div>'; } ?>
<?php if(theme_option('authors_index')=='on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } ?>
</div>*/?>
<div class="clear"> </div>
<div class="storycontent">
<?php
if(theme_option('excerpt_content')=='2') {
theme_content(__('Read more »', "magazine-basic"));
} else {
theme_excerpt(theme_option('excerpt_one'));
}
?>
</div>
</div>
<?php endwhile; endif; ?>
<?php get_footer(); ?>