-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
executable file
·58 lines (58 loc) · 1.9 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
<?php get_header(); ?>
<div id="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="block">
<div class="holder">
<div class="frame">
<div class="news-holder hfeed">
<div class="news-row hentry">
<?php if (has_post_thumbnail()) : ?>
<div class="mask">
<?php the_post_thumbnail('medium', array('class' => 'photo')); ?>
<span class="corner lt-top"> </span>
<span class="corner rt-top"> </span>
<span class="corner rt-bottom"> </span>
<span class="corner lt-bottom"> </span>
</div>
<?php endif; ?>
<h2 class="entry-title entry-summary"><?php the_title(); ?></h2>
<?php
$person = get_post_meta($post->ID, 'person', true);
if ( !empty($person) ) {
echo $person;
}
?>
<?php the_content(); ?>
<div class="row-section">
<ul class="social-networks">
<?php
$social_icon = get_post_meta($post->ID, 'social_icon', false);
if ( !empty($social_icon) ) {
foreach ($social_icon as $item) {
echo '<li>'. $item .'</li>';
}
}
?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<div class="title">
<h1>Not Found</h1>
</div>
<div class="content">
<p>Sorry, but you are looking for something that isn't here.</p>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>