-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop-post.php
More file actions
120 lines (98 loc) · 4.42 KB
/
loop-post.php
File metadata and controls
120 lines (98 loc) · 4.42 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<div <?php post_class('content holder'); ?> id="page-<?php the_ID(); ?>">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if (isset($_POST['featurevid'])){ $custom = get_post_custom($post->ID); $featurevid = $custom['featurevid'][0]; } ?>
<?php if (has_post_format('gallery')) { ?>
<div class="slideshow">
<div class="flexslider">
<ul class="slides">
<?php $data = array(
'post_parent' => $id,
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order',
'numberposts' => -1
); ?>
<?php
$images = get_posts($data); foreach( $images as $image ) {
$imageurl = wp_get_attachment_url($image->ID);
echo '<li><img src="'.$imageurl.'" /></li>' . "\n";
} ?>
</ul>
</div>
</div>
<?php } ?>
<!-- BEGIN .article -->
<div class="article">
<h1 class="headline"><?php the_title(); ?></h1>
<div class="postauthor">
<p class="left"><i class="icon-user"></i> <?php _e("Posted by", 'organicthemes'); ?> <?php the_author_posts_link(); ?> <i class="icon-time"></i> <?php response_posted_on(); ?></p>
<p class="right"><i class="icon-comment"></i> <a class="scroll" href="<?php the_permalink(); ?>#comments"><?php comments_number(__("Leave a Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), '% Comments'); ?></a></p>
</div>
<?php if(of_get_option('display_feature_post') == '1') { ?>
<?php if ( get_post_meta($post->ID, 'featurevid', true) ) { ?>
<div class="feature-vid"><?php echo get_post_meta($post->ID, 'featurevid', true); ?></div>
<?php } else { ?>
<?php if ( has_post_thumbnail()) { ?>
<div class="feature-img">
<?php the_post_thumbnail( 'feature' ); ?>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
<?php the_content(__("Read More", 'organicthemes')); ?>
<?php wp_link_pages(array(
'before' => '<p class="page-links"><span class="link-label">' . __('Pages:', 'organicthemes') . '</span>',
'after' => '</p>',
'link_before' => '<span>',
'link_after' => '</span>',
'next_or_number' => 'next_and_number',
'nextpagelink' => __('Next', 'organicthemes'),
'previouspagelink' => __('Previous', 'organicthemes'),
'pagelink' => '%',
'echo' => 1 )
); ?>
<?php if(of_get_option('display_social_post') == '1') { ?>
<div class="social">
<div class="like-btn">
<div class="fb-like" href="<?php the_permalink(); ?>" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>
</div>
<div class="pin-btn">
<a href="http://pinterest.com/pin/create/button/?url=<?php echo urlencode(get_permalink($post->ID)); ?>&media=<?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); echo $feat_image; ?>&description=<?php the_title(); ?>" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" target="_blank" /></a>
</div>
<div class="tweet-btn">
<a href="http://twitter.com/share" class="twitter-share-button"
data-url="<?php the_permalink(); ?>"
data-via="<?php echo of_get_option('twitter_user'); ?>"
data-text="<?php the_title(); ?>"
data-related=""
data-count="horizontal"><?php _e("Tweet", 'organicthemes'); ?></a>
</div>
<div class="plus-btn">
<g:plusone size="medium" annotation="bubble" href="<?php the_permalink(); ?>"></g:plusone>
</div>
</div>
<?php } ?>
<?php edit_post_link(__("(Edit)", 'organicthemes'), '', ''); ?>
<div class="clear"></div>
<?php trackback_rdf(); ?>
<!-- END .article -->
</div>
<div class="postmeta">
<p class="left"><i class="icon-reorder"></i> <?php _e("Category:", 'organicthemes'); ?> <?php the_category(', '); ?></p>
<?php if ( has_tag() ) { ?>
<p class="right"><i class="icon-tags"></i> <?php _e("Tags:", 'organicthemes'); ?> <?php the_tags(''); ?></p>
<?php } ?>
</div>
<?php if ( comments_open() ) { ?>
<div class="postcomments">
<div class="article">
<?php comments_template('', true); ?>
</div>
</div>
<?php } ?>
<?php endwhile; else: ?>
<p><?php _e("Sorry, no posts matched your criteria.", 'organicthemes'); ?></p>
<?php endif; ?>
<!-- END .post class -->
</div>