-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.php
48 lines (39 loc) · 1.05 KB
/
post.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
44
45
46
47
48
<?php
/**
* post.php
*
* standard post (without format) (list view)
*
* @package fastfood
* @since fastfood 0.29
*/
?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php fastfood_hook_entry_top(); ?>
<?php
switch ( FastfoodOptions::get_opt('fastfood_post_formats_standard_title' ) ) {
case 'post title':
fastfood_featured_title( array( 'fallback' => sprintf ( __( 'post #%s','fastfood' ), get_the_ID() ) ) );
break;
case 'post date':
fastfood_featured_title( array( 'alternative' => get_the_time( get_option( 'date_format' ) ), 'fallback' => sprintf ( __( 'post #%s','fastfood' ), get_the_ID() ) ) );
break;
}
?>
<?php fastfood_extrainfo(); ?>
<?php fastfood_hook_post_content_before(); ?>
<div class="entry-content">
<?php
switch ( FastfoodOptions::get_opt('fastfood_postexcerpt' ) ) {
case 0: //the content
the_content();
break;
case 1: //the excerpt
the_excerpt();
break;
}
?>
</div>
<?php fastfood_hook_post_content_after(); ?>
<?php fastfood_hook_entry_bottom(); ?>
</div>