forked from edisoncgh/LT_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-links.php
41 lines (41 loc) · 1.39 KB
/
page-links.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
<?php
/*
Template Name: 友情链接
*/
get_header(); ?>
<div id="primary" class="site-content">
<?php while ( have_posts() ) : the_post(); ?>
<div class="primary-site">
<?php $bookmarks = get_bookmarks();
if ( !empty($bookmarks) ){
foreach ($bookmarks as $bookmark) {
echo '<article>
<div class="fribox">
<section class="content">
<div class="entry-content">
<figure class="thumbnail">
<a href="' . $bookmark->link_url . '" title="' . $bookmark->link_description . '" target="_blank">
<div class="fri_img" align="center">
<img src="' . $bookmark->link_image . '" class="attachment-thumbnail size-thumbnail wp-post-image" alt="'. $bookmark->link_name .'"/>
</div>
</a>
</figure>
<div class="fri_des">
<header class="entry-header">
<h3 class="entry-title">
<a href="' . $bookmark->link_url . '" title="'. $bookmark->link_name .'" target="_blank">'. $bookmark->link_name .'</a>
</h3>
</header>
<div class="entry-site"><p>“' . $bookmark->link_description . '”</p></div>
</div>
</div>
</section>
</div>
</article>';
}
}
?>
</div>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>