-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop-page.php
More file actions
86 lines (65 loc) · 3.4 KB
/
loop-page.php
File metadata and controls
86 lines (65 loc) · 3.4 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
<div <?php post_class('content holder'); ?> id="page-<?php the_ID(); ?>">
<div class="article">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if ( is_page_template('template-slideshow.php') ) { ?>
<div class="slideshow">
<div class="flexslider" data-speed="<?php echo of_get_option('transition_interval'); ?>">
<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 } ?>
<h1 class="headline"><?php the_title(); ?></h1>
<?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_page') == '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" target="_blank"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></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 endwhile; else: ?>
<p><?php _e("Sorry, no posts matched your criteria.", 'organicthemes'); ?></p>
<?php endif; ?>
</div>
</div>