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

Commit

Permalink
New theme option: Add a link to related comment to comments which are…
Browse files Browse the repository at this point in the history
… a reply to another comment.
  • Loading branch information
yellowled committed Oct 1, 2012
1 parent 13569cb commit bd89302
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 60 deletions.
2 changes: 2 additions & 0 deletions UTF-8/lang_de.inc.php
Expand Up @@ -5,6 +5,7 @@
@define('TWOK11_WEBFONTS', 'Einen von Google gehosteten Webfont nutzen?');
@define('TWOK11_NOWEBFONT', 'Keinen Webfont einbinden');
@define('TWOK11_USERSTYLES', 'user.css einbinden? (Muss selbst im Templateverzeichnis angelegt werden! Generator: http://yellowled.github.com)');
@define('TWOK11_REFCOMMENTS', 'Kommentaren (falls vorhanden) einen Link zum Kommentar, auf den geantwortet wurde, hinzufügen?');
// Sprachkonstanten
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PAG_TITLE', 'Pagination');
Expand All @@ -22,3 +23,4 @@
@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.');
@define('TWOK11_TRACKBACKPREVIEW', 'Vorschau anzeigen');
@define('TWOK11_REPLYORIGIN', 'Ursprung');
2 changes: 2 additions & 0 deletions UTF-8/lang_en.inc.php
Expand Up @@ -5,6 +5,7 @@
@define('TWOK11_WEBFONTS', 'Use a webfont, hosted by Google?');
@define('TWOK11_NOWEBFONT', 'Include no webfont');
@define('TWOK11_USERSTYLES', 'Include user.css? (You need to create that file in your template directory. Generator: http://yellowled.github.com)');
@define('TWOK11_REFCOMMENTS', 'Add link to related comment to comments (if they are replies to another comment)?');
// Lang constants
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PAG_TITLE', 'Pagination');
Expand All @@ -22,3 +23,4 @@
@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.');
@define('TWOK11_TRACKBACKPREVIEW', 'Show preview');
@define('TWOK11_REPLYORIGIN', 'Origin');
5 changes: 5 additions & 0 deletions comments.tpl
Expand Up @@ -24,6 +24,11 @@
{if $entry.is_entry_owner}
| <a class="comment_source_ownerlink" href="{$comment.link_delete}" title="{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}">{$CONST.DELETE}</a>
{/if}
{if $template_option.refcomments == true}
{if $comment.parent_id != '0'}
| <a class="reply_origin" href="#c{$comment.parent_id}" title="{$CONST.TWOK11_REPLYORIGIN}: {$CONST.COMMENT} #c{$comment.parent_id}">{$CONST.TWOK11_REPLYORIGIN}</a>
{/if}
{/if}
| <a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}"{if $comment_onchange != ''} onclick="{$comment_onchange}"{/if}>{$CONST.REPLY}</a>
<div id="serendipity_replyform_{$comment.id}"></div>
</footer>
Expand Down
6 changes: 6 additions & 0 deletions config.inc.php
Expand Up @@ -75,6 +75,12 @@ function serendipity_smarty_html5time($timestamp) { return date("c", $timestamp)
'type' => 'boolean',
'default' => false
),
array(
'var' => 'refcomments',
'name' => TWOK11_REFCOMMENTS,
'type' => 'boolean',
'default' => false
),
array(
'var' => 'use_corenav',
'name' => TWOK11_USE_CORENAV,
Expand Down
2 changes: 1 addition & 1 deletion info.txt
@@ -1,4 +1,4 @@
Name: 2k11-dev
Author: Matthias Mees, Veit Lehmann
Date: 2012-08-01
Date: 2012-10-01
Require Serendipity: 1.6
119 changes: 60 additions & 59 deletions js/2k11.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lang_de.inc.php
Expand Up @@ -5,6 +5,7 @@
@define('TWOK11_WEBFONTS', 'Einen von Google gehosteten Webfont nutzen?');
@define('TWOK11_NOWEBFONT', 'Keinen Webfont einbinden');
@define('TWOK11_USERSTYLES', 'user.css einbinden? (Muss selbst im Templateverzeichnis angelegt werden! Generator: http://yellowled.github.com)');
@define('TWOK11_REFCOMMENTS', 'Kommentaren (falls vorhanden) einen Link zum Kommentar, auf den geantwortet wurde, hinzufügen?');
// Sprachkonstanten
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PAG_TITLE', 'Pagination');
Expand All @@ -22,3 +23,4 @@
@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.');
@define('TWOK11_TRACKBACKPREVIEW', 'Vorschau anzeigen');
@define('TWOK11_REPLYORIGIN', 'Antwort auf');
2 changes: 2 additions & 0 deletions lang_en.inc.php
Expand Up @@ -5,6 +5,7 @@
@define('TWOK11_WEBFONTS', 'Use a webfont, hosted by Google?');
@define('TWOK11_NOWEBFONT', 'Include no webfont');
@define('TWOK11_USERSTYLES', 'Include user.css? (You need to create that file in your template directory. Generator: http://yellowled.github.com)');
@define('TWOK11_REFCOMMENTS', 'Add link to related comment to comments (if they are replies to another comment)?');
// Lang constants
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PAG_TITLE', 'Pagination');
Expand All @@ -22,3 +23,4 @@
@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.');
@define('TWOK11_TRACKBACKPREVIEW', 'Show preview');
@define('TWOK11_REPLYORIGIN', 'Origin');

0 comments on commit bd89302

Please sign in to comment.