1
0

Bulletproof: Added theme option for alternate display of number of comments and trackbacks in the entry footer.

This commit is contained in:
Matthias Mees
2007-09-12 09:13:59 +00:00
parent b36bd432c0
commit 538800e469
6 changed files with 75 additions and 15 deletions

View File

@@ -39,6 +39,7 @@
@define('FOOTER_TIMESTAMP','Zeitstempel im Eintragsfuß anzeigen'); @define('FOOTER_TIMESTAMP','Zeitstempel im Eintragsfuß anzeigen');
@define('FOOTER_COMMENTS','Anzahl der Kommentare im Eintragsfuß anzeigen'); @define('FOOTER_COMMENTS','Anzahl der Kommentare im Eintragsfuß anzeigen');
@define('FOOTER_TRACKBACKS','Anzahl der Trackbacks im Eintragsfuß anzeigen'); @define('FOOTER_TRACKBACKS','Anzahl der Trackbacks im Eintragsfuß anzeigen');
@define('ALT_COMMTRACK','Alternative Darstellung der Anzahl der Kommentare und Trackbacks benutzen (z.B. "Keine Kommentare" bzw. "1 Kommentar" statt "Kommentare (0)" bzw. "Kommentare(1)")');
@define('SHOW_STICKY_ENTRY_FOOTER','Eintragsfuß für klebrige Einträge anzeigen (benötigt das Plugin "Erweiterte Eigenschaften von Artikeln")'); @define('SHOW_STICKY_ENTRY_FOOTER','Eintragsfuß für klebrige Einträge anzeigen (benötigt das Plugin "Erweiterte Eigenschaften von Artikeln")');
@define('SHOW_STICKY_ENTRY_HEADING','Eintragstitel für klebrige Einträge anzeigen (benötigt das Plugin "Erweiterte Eigenschaften von Artikeln")'); @define('SHOW_STICKY_ENTRY_HEADING','Eintragstitel für klebrige Einträge anzeigen (benötigt das Plugin "Erweiterte Eigenschaften von Artikeln")');
// Page footer next page and previous page links // Page footer next page and previous page links

View File

@@ -39,6 +39,7 @@
@define('FOOTER_TIMESTAMP','Show timestamp in the entry footer'); @define('FOOTER_TIMESTAMP','Show timestamp in the entry footer');
@define('FOOTER_COMMENTS','Show number of comments in the entry footer'); @define('FOOTER_COMMENTS','Show number of comments in the entry footer');
@define('FOOTER_TRACKBACKS','Show number of trackback in the entry footer'); @define('FOOTER_TRACKBACKS','Show number of trackback in the entry footer');
@define('ALT_COMMTRACK','Use alternate display for number of comments and trackbacks (i.e. "No comments" or "1 comment" instead of "Comments (0)" or "Comments (1)")');
@define('SHOW_STICKY_ENTRY_FOOTER','Show entry footer for sticky postings (requires plugin "Extended properties for entries")'); @define('SHOW_STICKY_ENTRY_FOOTER','Show entry footer for sticky postings (requires plugin "Extended properties for entries")');
@define('SHOW_STICKY_ENTRY_HEADING','Show entry heading for sticky postings (requires plugin "Extended properties for entries")'); @define('SHOW_STICKY_ENTRY_HEADING','Show entry heading for sticky postings (requires plugin "Extended properties for entries")');
// Page footer next page and previous page links // Page footer next page and previous page links

View File

@@ -180,7 +180,15 @@ $template_config = array(
'desc' => array(YES, NO)), 'desc' => array(YES, NO)),
'default' => 'true', 'default' => 'true',
), ),
array( array(
'var' => 'altcommtrack',
'name' => ALT_COMMTRACK,
'type' => 'radio',
'radio' => array('value' => array('true', 'false'),
'desc' => array(YES, NO)),
'default' => 'false',
),
array(
'var' => 'show_sticky_entry_footer', 'var' => 'show_sticky_entry_footer',
'name' => SHOW_STICKY_ENTRY_FOOTER, 'name' => SHOW_STICKY_ENTRY_FOOTER,
'type' => 'radio', 'type' => 'radio',
@@ -188,7 +196,7 @@ $template_config = array(
'desc' => array(YES, NO)), 'desc' => array(YES, NO)),
'default' => 'true', 'default' => 'true',
), ),
array( array(
'var' => 'show_sticky_entry_heading', 'var' => 'show_sticky_entry_heading',
'name' => SHOW_STICKY_ENTRY_HEADING, 'name' => SHOW_STICKY_ENTRY_HEADING,
'type' => 'radio', 'type' => 'radio',
@@ -204,7 +212,7 @@ $template_config = array(
'desc' => array(YES, NO)), 'desc' => array(YES, NO)),
'default' => 'inactive', 'default' => 'inactive',
), ),
array( array(
'var' => 'prev_next_style', 'var' => 'prev_next_style',
'name' => PREV_NEXT_STYLE, 'name' => PREV_NEXT_STYLE,
'type' => 'select', 'type' => 'select',

View File

@@ -41,9 +41,17 @@
{if $template_option.footercomments == 'true'} {if $template_option.footercomments == 'true'}
{if $entry.has_comments} {if $entry.has_comments}
{if $use_popups} {if $use_popups}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{else} {else}
| <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
| <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{/if} {/if}
{/if} {/if}
{/if} {/if}
@@ -51,9 +59,17 @@
{if $template_option.footertrackbacks == 'true'} {if $template_option.footertrackbacks == 'true'}
{if $entry.has_trackbacks} {if $entry.has_trackbacks}
{if $use_popups} {if $use_popups}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{else} {else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{/if} {/if}
{/if} {/if}
{/if} {/if}
@@ -136,9 +152,17 @@
{if $template_option.footercomments == 'true'} {if $template_option.footercomments == 'true'}
{if $entry.has_comments} {if $entry.has_comments}
{if $use_popups} {if $use_popups}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{else} {else}
| <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
| <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{/if} {/if}
{/if} {/if}
{/if} {/if}
@@ -146,9 +170,17 @@
{if $template_option.footertrackbacks == 'true'} {if $template_option.footertrackbacks == 'true'}
{if $entry.has_trackbacks} {if $entry.has_trackbacks}
{if $use_popups} {if $use_popups}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{else} {else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{/if} {/if}
{/if} {/if}
{/if} {/if}
@@ -166,9 +198,17 @@
{if $template_option.footercomments == 'true'} {if $template_option.footercomments == 'true'}
{if $entry.has_comments} {if $entry.has_comments}
{if $use_popups} {if $use_popups}
<a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a> {if $template_option.altcommtrack == 'true'}
<a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
<a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{else} {else}
<a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a> {if $template_option.altcommtrack == 'true'}
<a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
<a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{/if} {/if}
{/if} {/if}
{/if} {/if}
@@ -176,9 +216,17 @@
{if $template_option.footertrackbacks == 'true'} {if $template_option.footertrackbacks == 'true'}
{if $entry.has_trackbacks} {if $entry.has_trackbacks}
{if $use_popups} {if $use_popups}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{else} {else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a> {if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{/if} {/if}
{/if} {/if}
{/if} {/if}

View File

@@ -39,6 +39,7 @@
@define('FOOTER_TIMESTAMP','Zeitstempel im Eintragsfu<66> anzeigen'); @define('FOOTER_TIMESTAMP','Zeitstempel im Eintragsfu<66> anzeigen');
@define('FOOTER_COMMENTS','Anzahl der Kommentare im Eintragsfu<66> anzeigen'); @define('FOOTER_COMMENTS','Anzahl der Kommentare im Eintragsfu<66> anzeigen');
@define('FOOTER_TRACKBACKS','Anzahl der Trackbacks im Eintragsfu<66> anzeigen'); @define('FOOTER_TRACKBACKS','Anzahl der Trackbacks im Eintragsfu<66> anzeigen');
@define('ALT_COMMTRACK','Alternative Darstellung der Anzahl der Kommentare und Trackbacks benutzen (z.B. "Keine Kommentare" bzw. "1 Kommentar" statt "Kommentare (0)" bzw. "Kommentare(1)")');
@define('SHOW_STICKY_ENTRY_FOOTER','Eintragsfu<66> f<>r klebrige Eintr<74>ge anzeigen (ben<65>tigt das Plugin "Erweiterte Eigenschaften von Artikeln")'); @define('SHOW_STICKY_ENTRY_FOOTER','Eintragsfu<66> f<>r klebrige Eintr<74>ge anzeigen (ben<65>tigt das Plugin "Erweiterte Eigenschaften von Artikeln")');
@define('SHOW_STICKY_ENTRY_HEADING','Eintragstitel f<>r klebrige Eintr<74>ge anzeigen (ben<65>tigt das Plugin "Erweiterte Eigenschaften von Artikeln")'); @define('SHOW_STICKY_ENTRY_HEADING','Eintragstitel f<>r klebrige Eintr<74>ge anzeigen (ben<65>tigt das Plugin "Erweiterte Eigenschaften von Artikeln")');
// Page footer next page and previous page links // Page footer next page and previous page links

View File

@@ -39,6 +39,7 @@
@define('FOOTER_TIMESTAMP','Show timestamp in the entry footer'); @define('FOOTER_TIMESTAMP','Show timestamp in the entry footer');
@define('FOOTER_COMMENTS','Show number of comments in the entry footer'); @define('FOOTER_COMMENTS','Show number of comments in the entry footer');
@define('FOOTER_TRACKBACKS','Show number of trackback in the entry footer'); @define('FOOTER_TRACKBACKS','Show number of trackback in the entry footer');
@define('ALT_COMMTRACK','Use alternate display for number of comments and trackbacks (i.e. "No comments" or "1 comment" instead of "Comments (0)" or "Comments (1)")');
@define('SHOW_STICKY_ENTRY_FOOTER','Show entry footer for sticky postings (requires plugin "Extended properties for entries")'); @define('SHOW_STICKY_ENTRY_FOOTER','Show entry footer for sticky postings (requires plugin "Extended properties for entries")');
@define('SHOW_STICKY_ENTRY_HEADING','Show entry heading for sticky postings (requires plugin "Extended properties for entries")'); @define('SHOW_STICKY_ENTRY_HEADING','Show entry heading for sticky postings (requires plugin "Extended properties for entries")');
// Page footer next page and previous page links // Page footer next page and previous page links