This repository has been archived by the owner on Jul 15, 2020. It is now read-only.
/
loop-default.php
52 lines (41 loc) · 1.71 KB
/
loop-default.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
49
50
51
52
<div class="article-wrapper archive-default">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class('entry archivepage'); ?>>
<h2 class="entry-title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'gabfire' ), the_title_attribute( 'echo=0' ) ); ?>" >
<?php the_title(); ?>
</a>
</h2>
<p class="archive_postmeta">
<span>
<?php
$authorlink = '<a href="'.get_author_posts_url(get_the_author_meta( 'ID' )).'" rel="author" class="author vcard"><span class="fn">'. get_the_author() . '</span></a>';
$date = '<time class="published updated" datetime="'. get_the_date() . 'T' . get_the_time() .'">'. get_the_date() . '</time> ';
printf(esc_attr__('By %1$s on %2$s','gabfire'), $authorlink, $date); ?>
</span>
<?php the_tags('<span class="hidden-xs"><i class="fa fa-tags"></i>',', ',' </span>'); ?>
<span><i class="fa fa-folder-o"></i><?php the_category(', '); ?> </span>
<?php edit_post_link('Edit', '<span><i class="fa fa-pencil-square-o"></i>', '</span>'); ?>
</p>
<?php
gabfire_media(array(
'name' => 'z-post',
'imgtag' => 1,
'link' => 1,
'enable_video' => 1,
'catch_image' => of_get_option('of_catch_img', 0),
'video_id' => 'z-archive',
'enable_thumb' => 1,
'resize_type' => 'c',
'media_width' => 700,
'media_height' => 350,
'thumb_align' => 'aligncenter full-media nomargin pb20',
'enable_default' => 0
));
the_excerpt();
?>
</article>
<?php endwhile; else : endif; ?>
<?php gabfire_archivepagination(); ?>
<div class="clearfix"></div>
</div><!-- articles-wrapper -->