From: yellowled Date: Wed, 12 Sep 2007 09:14:25 +0000 (+0000) Subject: Bulletproof: Added theme option for alternate display of number of comments and track... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bf04e80461634462e1fd8a2a909de1c346df1b6c;p=s9y.git Bulletproof: Added theme option for alternate display of number of comments and trackbacks in the entry footer. --- diff --git a/templates/bulletproof/UTF-8/lang_de.inc.php b/templates/bulletproof/UTF-8/lang_de.inc.php index 2d5dba6..53c9598 100644 --- a/templates/bulletproof/UTF-8/lang_de.inc.php +++ b/templates/bulletproof/UTF-8/lang_de.inc.php @@ -39,6 +39,7 @@ @define('FOOTER_TIMESTAMP','Zeitstempel im Eintragsfuß anzeigen'); @define('FOOTER_COMMENTS','Anzahl der Kommentare 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_HEADING','Eintragstitel für klebrige Einträge anzeigen (benötigt das Plugin "Erweiterte Eigenschaften von Artikeln")'); // Page footer next page and previous page links diff --git a/templates/bulletproof/UTF-8/lang_en.inc.php b/templates/bulletproof/UTF-8/lang_en.inc.php index d894c47..228d09d 100644 --- a/templates/bulletproof/UTF-8/lang_en.inc.php +++ b/templates/bulletproof/UTF-8/lang_en.inc.php @@ -39,6 +39,7 @@ @define('FOOTER_TIMESTAMP','Show timestamp 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('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_HEADING','Show entry heading for sticky postings (requires plugin "Extended properties for entries")'); // Page footer next page and previous page links diff --git a/templates/bulletproof/config.inc.php b/templates/bulletproof/config.inc.php index 6add3a2..45efbd3 100644 --- a/templates/bulletproof/config.inc.php +++ b/templates/bulletproof/config.inc.php @@ -180,7 +180,15 @@ $template_config = array( 'desc' => array(YES, NO)), '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', 'name' => SHOW_STICKY_ENTRY_FOOTER, 'type' => 'radio', @@ -188,7 +196,7 @@ $template_config = array( 'desc' => array(YES, NO)), 'default' => 'true', ), - array( + array( 'var' => 'show_sticky_entry_heading', 'name' => SHOW_STICKY_ENTRY_HEADING, 'type' => 'radio', @@ -204,7 +212,7 @@ $template_config = array( 'desc' => array(YES, NO)), 'default' => 'inactive', ), - array( + array( 'var' => 'prev_next_style', 'name' => PREV_NEXT_STYLE, 'type' => 'select', diff --git a/templates/bulletproof/entries.tpl b/templates/bulletproof/entries.tpl index db5b68e..0f328ec 100644 --- a/templates/bulletproof/entries.tpl +++ b/templates/bulletproof/entries.tpl @@ -41,9 +41,17 @@ {if $template_option.footercomments == 'true'} {if $entry.has_comments} {if $use_popups} - | {$entry.label_comments} ({$entry.comments}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if} + {else} + | {$entry.label_comments} ({$entry.comments}) + {/if} {else} - | {$entry.label_comments} ({$entry.comments}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if} + {else} + | {$entry.label_comments} ({$entry.comments}) + {/if} {/if} {/if} {/if} @@ -51,9 +59,17 @@ {if $template_option.footertrackbacks == 'true'} {if $entry.has_trackbacks} {if $use_popups} - | {$entry.label_trackbacks} ({$entry.trackbacks}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if} + {else} + | {$entry.label_trackbacks} ({$entry.trackbacks}) + {/if} {else} - | {$entry.label_trackbacks} ({$entry.trackbacks}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if} + {else} + | {$entry.label_trackbacks} ({$entry.trackbacks}) + {/if} {/if} {/if} {/if} @@ -136,9 +152,17 @@ {if $template_option.footercomments == 'true'} {if $entry.has_comments} {if $use_popups} - | {$entry.label_comments} ({$entry.comments}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if} + {else} + | {$entry.label_comments} ({$entry.comments}) + {/if} {else} - | {$entry.label_comments} ({$entry.comments}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if} + {else} + | {$entry.label_comments} ({$entry.comments}) + {/if} {/if} {/if} {/if} @@ -146,9 +170,17 @@ {if $template_option.footertrackbacks == 'true'} {if $entry.has_trackbacks} {if $use_popups} - | {$entry.label_trackbacks} ({$entry.trackbacks}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if} + {else} + | {$entry.label_trackbacks} ({$entry.trackbacks}) + {/if} {else} - | {$entry.label_trackbacks} ({$entry.trackbacks}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if} + {else} + | {$entry.label_trackbacks} ({$entry.trackbacks}) + {/if} {/if} {/if} {/if} @@ -166,9 +198,17 @@ {if $template_option.footercomments == 'true'} {if $entry.has_comments} {if $use_popups} - {$entry.label_comments} ({$entry.comments}) + {if $template_option.altcommtrack == 'true'} + {if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if} + {else} + {$entry.label_comments} ({$entry.comments}) + {/if} {else} - {$entry.label_comments} ({$entry.comments}) + {if $template_option.altcommtrack == 'true'} + {if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if} + {else} + {$entry.label_comments} ({$entry.comments}) + {/if} {/if} {/if} {/if} @@ -176,9 +216,17 @@ {if $template_option.footertrackbacks == 'true'} {if $entry.has_trackbacks} {if $use_popups} - | {$entry.label_trackbacks} ({$entry.trackbacks}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if} + {else} + | {$entry.label_trackbacks} ({$entry.trackbacks}) + {/if} {else} - | {$entry.label_trackbacks} ({$entry.trackbacks}) + {if $template_option.altcommtrack == 'true'} + | {if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if} + {else} + | {$entry.label_trackbacks} ({$entry.trackbacks}) + {/if} {/if} {/if} {/if} diff --git a/templates/bulletproof/lang_de.inc.php b/templates/bulletproof/lang_de.inc.php index 607a163..d836df4 100644 --- a/templates/bulletproof/lang_de.inc.php +++ b/templates/bulletproof/lang_de.inc.php @@ -39,6 +39,7 @@ @define('FOOTER_TIMESTAMP','Zeitstempel im Eintragsfuß anzeigen'); @define('FOOTER_COMMENTS','Anzahl der Kommentare 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_HEADING','Eintragstitel für klebrige Einträge anzeigen (benötigt das Plugin "Erweiterte Eigenschaften von Artikeln")'); // Page footer next page and previous page links diff --git a/templates/bulletproof/lang_en.inc.php b/templates/bulletproof/lang_en.inc.php index 6d84da7..1f478b1 100644 --- a/templates/bulletproof/lang_en.inc.php +++ b/templates/bulletproof/lang_en.inc.php @@ -39,6 +39,7 @@ @define('FOOTER_TIMESTAMP','Show timestamp 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('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_HEADING','Show entry heading for sticky postings (requires plugin "Extended properties for entries")'); // Page footer next page and previous page links