-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmain.html.php
66 lines (66 loc) · 3.37 KB
/
main.html.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php foreach ($posts as $p): ?>
<div class="post hentry excerpt">
<?php if (!empty($p->image)):?>
<div class="featured-image">
<img style="position:absolute;" width="100%" height="100%" title="<?php echo $p->title; ?>" alt="<?php echo $p->title; ?>" class="attachment-post-thumbnail wp-post-image" src="<?php echo $p->image; ?>">
</div>
<?php endif; ?>
<?php if (!empty($p->audio)):?>
<div class="featured-image">
<iframe style="position:absolute;" width="100%" height="100%" class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&auto_play=false&visual=true"></iframe>
</div>
<?php endif; ?>
<?php if (!empty($p->video)):?>
<div class="featured-image">
<iframe style="position:absolute;" width="100%" height="100%" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe>
</div>
<?php endif; ?>
<?php if (!empty($p->quote)):?>
<div class="featured-quote">
<blockquote class="quote"><i class="fa fa-quote-left"></i> <?php echo $p->quote ?> <i class="fa fa-quote-right"></i></blockquote>
</div>
<?php endif; ?>
<?php if (!empty($p->link)):?>
<div class="featured-link">
<i class="fa fa-external-link"></i> <a target="_blank" href="<?php echo $p->link ?>"><?php echo $p->link ?></a>
</div>
<?php endif; ?>
<div class="entry-meta-top"><?php echo i18n("Published");?> <?php echo format_date($p->date); ?> <?php echo i18n("by");?> <a href="<?php echo $p->authorUrl; ?>" title="Posts by <?php echo $p->authorName; ?>" rel="author"><?php echo $p->authorName; ?></a>
</div>
<div class="excerpt-header">
<h2 class="excerpt-title">
<a href="<?php echo $p->url; ?>"><?php echo $p->title; ?></a>
</h2>
</div>
<div class="excerpt-content">
<article>
<?php echo get_teaser($p->body, $p->url); ?>
<?php if (config('teaser.type') === 'trimmed'):?><p><a class="more-link" href="<?php echo $p->url; ?>"><?php echo config('read.more'); ?> <span class="screen-reader-text"><?php echo $p->title; ?></span></a></p><?php endif;?>
</article>
</div>
<div class="excerpt-categories">
<p><i class="fa fa-folder-open"></i><?php echo $p->category; ?></p>
</div>
<div class="excerpt-tags">
<p><i class="fa fa-tag"></i><?php echo $p->tag; ?></p>
</div>
<div class="excerpt-comments">
<?php if (disqus_count()) { ?>
<p><span><i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#disqus_thread"> <?php echo i18n("Comments");?></a></span></p>
<?php } elseif (facebook()) { ?>
<p><i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> <?php echo i18n("Comments");?></span></a></p>
<?php } ?>
</div>
</div>
<?php endforeach; ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<div class="loop-pagination-container">
<nav class="pagination loop-pagination">
<?php echo $pagination['html'];?>
</nav>
</div>
<?php endif; ?>
<?php if (disqus_count()): ?>
<?php echo disqus_count() ?>
<?php endif; ?>