Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Commit

Permalink
Show only a hidden text if trackback body is empty (Pingbacks).
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowled committed Oct 1, 2012
1 parent 2a5aec5 commit 92701c4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions UTF-8/lang_de.inc.php
Expand Up @@ -20,3 +20,4 @@
@define('TWOK11_DENT_THIS', 'Artikel via Identica teilen');
@define('TWOK11_SHORT_URL', 'Kurz-URL');
@define('TWOK11_SHORT_URL_HINT', 'Dieser Link ist nicht aktiv. Er enthält die Kurz-URL zu diesem Eintrag. Sie können diese URL benutzen, um diesen Eintrag zu verlinken. Um den Link zu kopieren, klicken Sie ihn mit der rechten Maustaste an und wählen Verknüpfung kopieren im Internet Explorer oder Linkadresse kopieren in Mozilla/Firefox.');
@define('TWOK11_EMPTYTRACKBACK', 'Die Anzeige des Inhaltes dieses Trackbacks ist leider nicht möglich.');
1 change: 1 addition & 0 deletions UTF-8/lang_en.inc.php
Expand Up @@ -20,3 +20,4 @@
@define('TWOK11_DENT_THIS', 'Share article on Identica');
@define('TWOK11_SHORT_URL', 'Short URL');
@define('TWOK11_SHORT_URL_HINT', 'This link is not meant to be clicked. It contains the short URL for this entry. You can use this URL to link to this entry. To copy the link, right click and select Copy Shortcut in Internet Explorer or Copy Link Location in Mozilla.');
@define('TWOK11_EMPTYTRACKBACK', 'Unfortunately, the contents of this trackback can not be displayed.');
1 change: 1 addition & 0 deletions lang_de.inc.php
Expand Up @@ -20,3 +20,4 @@
@define('TWOK11_DENT_THIS', 'Artikel via Identica teilen');
@define('TWOK11_SHORT_URL', 'Kurz-URL');
@define('TWOK11_SHORT_URL_HINT', 'Dieser Link ist nicht aktiv. Er enthält die Kurz-URL zu diesem Eintrag. Sie können diese URL benutzen, um diesen Eintrag zu verlinken. Um den Link zu kopieren, klicken Sie ihn mit der rechten Maustaste an und wählen Verknüpfung kopieren im Internet Explorer oder Linkadresse kopieren in Mozilla/Firefox.');
@define('TWOK11_EMPTYTRACKBACK', 'Die Anzeige des Inhaltes dieses Trackbacks ist leider nicht möglich.');
1 change: 1 addition & 0 deletions lang_en.inc.php
Expand Up @@ -20,3 +20,4 @@
@define('TWOK11_DENT_THIS', 'Share article on Identica');
@define('TWOK11_SHORT_URL', 'Short URL');
@define('TWOK11_SHORT_URL_HINT', 'This link is not meant to be clicked. It contains the short URL for this entry. You can use this URL to link to this entry. To copy the link, right click and select Copy Shortcut in Internet Explorer or Copy Link Location in Mozilla.');
@define('TWOK11_EMPTYTRACKBACK', 'Unfortunately, the contents of this trackback can not be displayed.');
5 changes: 4 additions & 1 deletion trackbacks.tpl
@@ -1,11 +1,14 @@
{foreach from=$trackbacks item=trackback}
<article id="c{$trackback.id}" class="clearfix serendipity_comment {cycle values="odd,even"}">
<h4><cite>{$trackback.author|@default:$CONST.ANONYMOUS}</cite> {$CONST.ON} <time datetime="{$trackback.timestamp|@serendipity_html5time}" pubdate>{$trackback.timestamp|@formatTime:$template_option.date_format}</time>: <a href="{$trackback.url|@strip_tags}">{$trackback.title}</a></h4>

{if $trackback.body == ''}
<span class="visuallyhidden">{$CONST.TWOK11_EMPTYTRACKBACK}</span>
{else}
<details>
<summary>{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$trackback.title}</summary>
<div class="content serendipity_commentBody">{$trackback.body|@strip_tags|@escape:all}</div>
</details>
{/if}
{if $entry.is_entry_owner}
<footer>
<a href="{$serendipityBaseURL}comment.php?serendipity[delete]={$trackback.id}&amp;serendipity[entry]={$trackback.entry_id}&amp;serendipity[type]=trackbacks">{$CONST.DELETE}</a>
Expand Down

0 comments on commit 92701c4

Please sign in to comment.