-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-home.php
41 lines (30 loc) · 1.01 KB
/
content-home.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
<?php
/**
* The homepage template for displaying content
*/
global $woo_options;
/**
* The Variables
*
* Setup default variables, overriding them if the "Theme Options" have been saved.
*/
$settings = array(
'blog_thumb_w' => 215,
'blog_thumb_h' => 120,
'blog_thumb_align' => 'aligncenter',
'post_content' => 'content',
'home_blog_thumb' => 'false'
);
$settings = woo_get_dynamic_values( $settings );
?>
<article <?php post_class(); ?>>
<header>
<?php if ( isset( $settings['home_blog_thumb'] ) && $settings['home_blog_thumb'] == 'true' ) {
woo_image( 'width=' . $settings['blog_thumb_w'] . '&height=' . $settings['blog_thumb_h'] . '&class=thumbnail ' . $settings['blog_thumb_align'] );
} ?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</header>
<section class="entry">
<?php echo woo_text_trim ( get_the_excerpt(), 100 ); ?>
</section>
</article><!-- /.post -->