This repository has been archived by the owner on Nov 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
page.php
99 lines (98 loc) · 5.27 KB
/
page.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
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
<?php get_header(); ?>
<div class="row" id="post">
<?php if(get_option('ad_header') != '') : ?>
<div class="col-md-12 hidden-xs hidden-sm ad">
<?php echo stripslashes(get_option('ad_header')); ?>
</div>
<?php endif; ?>
<?php if(get_option('ad_header_mobile') != '') : ?>
<div class="col-md-12 visible-xs visible-sm ad">
<?php echo stripslashes(get_option('ad_header_mobile')); ?>
</div>
<?php endif; ?>
<div class="col-md-12">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<h2><?php the_title(); ?></h2>
<ul class="list-inline">
<li><i class="fa fa-share"></i> Share</li>
<li>
<a target="_blank" title="<?php the_title(); ?>" class="fa fa-facebook-square fa-2x"
href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>">
</a>
</li>
<li>
<a target="_blank" title="<?php the_title(); ?>" class="fa fa-twitter-square fa-2x"
href="http://twitter.com/intent/tweet?status=<?php the_title(); ?>+<?php the_permalink() ?>">
</a>
</li>
<li>
<a target="_blank" title="<?php the_title(); ?>" class="fa fa-linkedin-square fa-2x"
href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink() ?>">
</a>
</li>
<li>
<a target="_blank" title="<?php the_title(); ?>" class="fa fa-google-plus-square fa-2x"
href="https://plus.google.com/share?url=<?php the_permalink() ?>"></a>
</li>
</ul>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="post-content">
<?php the_content(); ?>
</div>
<!-- Social sharing buttons -->
<ul class="list-inline">
<li><i class="fa fa-share"></i> Share</li>
<li>
<a target="_blank" title="<?php the_title(); ?>" class="fa fa-facebook-square fa-2x"
href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>">
</a>
</li>
<li>
<a target="_blank" title="<?php the_title(); ?>" class="fa fa-twitter-square fa-2x"
href="http://twitter.com/intent/tweet?status=<?php the_title(); ?>+<?php the_permalink() ?>">
</a>
</li>
<li>
<a target="_blank" title="<?php the_title(); ?>" class="fa fa-linkedin-square fa-2x"
href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink() ?>">
</a>
</li>
<li>
<a target="_blank" title="<?php the_title(); ?>" class="fa fa-google-plus-square fa-2x"
href="https://plus.google.com/share?url=<?php the_permalink() ?>"></a>
</li>
<li class="pull-right text-muted">
<i class="fa fa-comments-o margin-r-5"></i>
Comments (<?php comments_number('0', '1', '%'); ?>)
</li>
</ul>
<?php
// If comments are open or we have at least one comment, load up the comment template
if (comments_open() || '0' != get_comments_number()) :
comments_template();
endif;
?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php if(get_option('ad_footer') != '') : ?>
<div class="col-md-12 hidden-xs hidden-sm ad">
<?php echo stripslashes(get_option('ad_footer')); ?>
</div>
<?php endif; ?>
<?php if(get_option('ad_footer_mobile') != '') : ?>
<div class="col-md-12 visible-xs visible-sm ad">
<?php echo stripslashes(get_option('ad_footer_mobile')); ?>
</div>
<?php endif; ?>
</div>
<!-- /.row -->
<?php get_footer(); ?>