-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomepage.php
121 lines (103 loc) · 3.04 KB
/
homepage.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
/*
Template Name: Homepage
*/
?>
<?php get_header(); ?>
<div id="content_hp_left">
<div id="more_about">
<h2>more about me</h2>
<p>
<?php $wpfolio_moreaboutme = get_option('wpFolio_moreaboutme');
if ($wpfolio_moreaboutme != "") { ?>
<?php echo $wpfolio_moreaboutme; ?>
<?php } else { ?>
<a href="<?php bloginfo('url'); ?>/wp-admin/themes.php?page=functions.php">
Click Here To Enter More About Me Text
</a>
<?php } ?>
</p>
</div>
<div id="latest_posts">
<h2>latest posts</h2>
<div class="lastest_posts_box">
<?php query_posts('showposts=3&category_name=Latest'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="hp_title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
<?php the_title() ; ?>
</a>
</div>
<div class="hp_excerpt">
<?php the_excerpt() ;?>
</div>
<ul class="latest_postmetadata">
<li><?php the_time('F jS, Y') ?></li>
<li class="l_p"><?php the_category(', ') ?></li>
<li class="l_p"><?php comments_popup_link('Add a comment', '1 Comment', '% Comments '); ?></li>
<li class="l_p"><?php edit_post_link('<b>Edit</b>', '', ''); ?></li>
</ul>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
</div>
</div>
</div>
<div id="content_hp_right">
<div id="hp_contact">
<h2>contact</h2>
<p>
<?php $wpfolio_address = get_option('wpFolio_address');
if ($wpfolio_address != "") { ?>
<strong>Address:</strong> <?php echo $wpfolio_address; ?><br />
<?php } else { ?>
<strong>Address:</strong>
<a href="<?php bloginfo('url'); ?>/wp-admin/themes.php?page=functions.php">
Please Enter<br />
</a>
<?php } ?>
<?php $wpfolio_country = get_option('wpFolio_country');
if ($wpfolio_country != "") { ?>
<strong>Country:</strong> <?php echo $wpfolio_country; ?><br />
<?php } else { ?>
<strong>Country:</strong>
<a href="<?php bloginfo('url'); ?>/wp-admin/themes.php?page=functions.php">
Please Enter<br />
</a>
<?php } ?>
<br />
<?php $wpfolio_phone = get_option('wpFolio_phone');
if ($wpfolio_phone != "") { ?>
<strong>Phone:</strong> <?php echo $wpfolio_phone; ?><br />
<?php } else { ?>
<strong>Phone:</strong>
<a href="<?php bloginfo('url'); ?>/wp-admin/themes.php?page=functions.php">
Please Enter<br />
</a>
<?php } ?>
<?php $wpfolio_email = get_option('wpFolio_email');
if ($wpfolio_email != "") { ?>
<strong>Email:</strong>
<span class="email_bitmap">
<?php echo $wpfolio_email; ?><br />
</span>
<?php } else { ?>
<?php } ?>
</p>
</div>
<div id="hp_twitter">
<h2>twitter</h2>
<p>
<?php $wpfolio_twitterun = get_option('wpFolio_twitterun');
if ($wpfolio_twitterun != "") { ?>
<?php twitter_messages('', 5, false, true, false, true, true, false); ?>
<?php } else { ?>
<a href="<?php bloginfo('url'); ?>/wp-admin/themes.php?page=functions.php">
Click Here To Enter Your Twitter User Name
</a>
<?php } ?>
</p>
</div>
</div>
<?php get_footer(); ?>