This repository has been archived by the owner on Aug 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
executable file
·49 lines (48 loc) · 1.72 KB
/
content.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
<?php
/**
* The default template for displaying content. Used for both single and index/archive/search.
*
* @subpackage FoundationPress
* @since FoundationPress 1.0
*/
?>
<article class="article" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="card">
<div class="tileOverlay">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
?>
<a href="<?php the_permalink(); ?>">
<?php
the_post_thumbnail('', array('class' => 'img', 'nopin' => 'nopin'));
$share_url = urlencode(get_permalink());
?>
</a>
<?php
}
?>
</div>
<div class="tileButtons" style="margin-top: -2em;">
<a class="btn btn-xs btn-link ng-isolate-scope" target="_blank" onclick="return!window.open(this.href, 'Facebook', 'width=550, height=420')" href="//www.facebook.com/sharer/sharer.php?u=<?php echo $share_url; ?>" post="post"><i class="fa fa-facebook-square fa-lg fa-fw"></i>Share</a><a href="//twitter.com/intent/tweet?url=<?php echo $share_url; ?>&text=<?php echo urlencode(get_the_title()); ?>&related=rumorscity" target="_blank" class="btn btn-xs btn-link ng-isolate-scope" post="post"><i class="fa fa-twitter fa-lg fa-fw"></i>Tweet</a>
<!--
<a data-ng-click="UserLikes.LikePost(post)" class="btn btn-fav ng-class:UserLikes.LikeStatus(post)"></a>
-->
</div>
<header>
<div class="tileText">
<h2 class="gridTitle"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php FoundationPress_entry_meta(); ?>
</div>
</header>
<?php
// <div class="entry-content">
?>
<?php // the_content(__('Continue reading...', 'FoundationPress')); ?>
<?php
// </div>
/*
$tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php }
*/
?>
</div>
</article>