Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 983b640

Browse files
committed
Enhance Template
1 parent c66472a commit 983b640

File tree

1 file changed

+49
-46
lines changed

1 file changed

+49
-46
lines changed

templates/linkbacks.php

Lines changed: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,54 @@
1-
<?php if ( has_linkbacks( 'like' ) ) : ?>
2-
<div class="likes">
3-
<h3>Likes</li>
4-
51
<?php
2+
3+
if ( has_linkbacks( 'like' ) ) {
4+
echo '<div class="likes">';
5+
echo '<h3>' . __( 'Likes', 'semantic-linkbacks' ) . '</h3>';
66
list_linkbacks( array(
77
'li-class' => array( 'single-mention', 'p-like' )
88
),
99
get_linkbacks( 'like' ) ); ?>
10-
</div>
11-
<?php endif; ?>
12-
13-
<?php if ( has_linkbacks( 'repost' ) ) : ?>
14-
<h3>Reposts</li>
15-
16-
<ul>
17-
<?php foreach ( get_linkbacks( 'repost' ) as $repost ) : ?>
18-
<li class="p-repost h-cite">
19-
<span class="p-author h-card">
20-
<a class="u-url p-name value-title" href="http://test2.de" title="<?php echo trim( strip_tags( get_comment_text() ) ); ?>">
21-
<?php echo get_avatar( $repost, 50 ); ?>
22-
</a>
23-
</span>
24-
<data class="u-url" value="http://test.de" />
25-
</li>
26-
<?php endforeach; ?>
27-
</ul>
28-
<?php endif; ?>
29-
30-
<?php if ( has_linkbacks( 'mention' ) ) : ?>
31-
<h3>Mention</li>
32-
33-
<ul>
34-
<?php foreach ( get_linkbacks( 'mention' ) as $mention ) : ?>
35-
<?php //var_dump( $mention ); ?>
36-
<li><?php echo get_avatar( $mention, 50 ); ?></li>
37-
<?php endforeach; ?>
38-
</ul>
39-
40-
<?php endif; ?>
41-
42-
<?php if ( has_linkbacks( 'rsvp' ) ) : ?>
43-
<h3>RSVP</li>
44-
45-
<ul>
46-
<?php foreach ( get_linkbacks( 'rsvp' ) as $rsvp ) : ?>
47-
<li><?php echo get_avatar( $rsvp, 50 ); ?></li>
48-
<?php endforeach; ?>
49-
</ul>
50-
51-
<?php endif; ?>
10+
echo '</div>';
11+
}
12+
13+
if ( has_linkbacks( 'favorite' ) ) {
14+
echo '<div class="favorite">';
15+
echo '<h3>' . __( 'Favorites', 'semantic-linkbacks' ) . '</h3>';
16+
list_linkbacks( array(
17+
'li-class' => array( 'single-mention', 'p-favorite' )
18+
),
19+
get_linkbacks( 'favorite' ) ); ?>
20+
echo '</div>';
21+
}
22+
23+
if ( has_linkbacks( 'bookmark' ) ) {
24+
echo '<div class="bookmarks">';
25+
echo '<h3>' . __( 'Bookmarks', 'semantic-linkbacks' ) . '</h3>';
26+
list_linkbacks( array(
27+
'li-class' => array( 'single-mention', 'p-bookmark' )
28+
),
29+
get_linkbacks( 'bookmark' ) ); ?>
30+
echo '</div>';
31+
}
32+
33+
if ( has_linkbacks( 'repost' ) ) {
34+
echo '<div class="reposts">';
35+
echo '<h3>' . __( 'Reposts', 'semantic-linkbacks' ) . '</h3>';
36+
list_linkbacks( array(
37+
'li-class' => array( 'single-mention', 'p-repost' )
38+
),
39+
get_linkbacks( 'repost' ) ); ?>
40+
echo '</div>';
41+
}
42+
43+
44+
if ( has_linkbacks( 'mention' ) ) {
45+
echo '<div class="mentions">';
46+
echo '<h3>' . __( 'Mentions', 'semantic-linkbacks' ) . '</h3>';
47+
list_linkbacks( array(
48+
'li-class' => array( 'single-mention', 'p-comment' )
49+
),
50+
get_linkbacks( 'mention' ) ); ?>
51+
echo '</div>';
52+
}
53+
54+

0 commit comments

Comments
 (0)