From 8957df918a83a8881b67195e3bca6cdba65eb8ed Mon Sep 17 00:00:00 2001 From: donchambers Date: Thu, 6 Sep 2007 15:22:07 +0000 Subject: [PATCH] Bulletproof additions/modifications: Added new class of serendipity_Sticky_Entry in entries.tpl. Added template option to suppress entry footer for sticky posts. Added template option to suppress entry heading for sticky posts. Added template option to include or exclude icons in previous/next page links. Added default rules for class counter_code to style.css. Added bulgarian language file previously committed only to trunk. --- templates/bulletproof/UTF-8/lang_bg.inc.php | 78 ++++++ templates/bulletproof/UTF-8/lang_de.inc.php | 44 ++-- templates/bulletproof/UTF-8/lang_en.inc.php | 8 +- templates/bulletproof/config.inc.php | 25 ++ templates/bulletproof/entries.tpl | 260 +++++++++++--------- templates/bulletproof/info.txt | 2 +- templates/bulletproof/lang_bg.inc.php | 78 ++++++ templates/bulletproof/lang_de.inc.php | 7 + templates/bulletproof/lang_en.inc.php | 7 + templates/bulletproof/style.css | 11 +- 10 files changed, 386 insertions(+), 134 deletions(-) create mode 100644 templates/bulletproof/UTF-8/lang_bg.inc.php create mode 100644 templates/bulletproof/lang_bg.inc.php diff --git a/templates/bulletproof/UTF-8/lang_bg.inc.php b/templates/bulletproof/UTF-8/lang_bg.inc.php new file mode 100644 index 0000000..727d5f3 --- /dev/null +++ b/templates/bulletproof/UTF-8/lang_bg.inc.php @@ -0,0 +1,78 @@ + \ No newline at end of file diff --git a/templates/bulletproof/UTF-8/lang_en.inc.php b/templates/bulletproof/UTF-8/lang_en.inc.php index 17fc34d..8738121 100644 --- a/templates/bulletproof/UTF-8/lang_en.inc.php +++ b/templates/bulletproof/UTF-8/lang_en.inc.php @@ -42,6 +42,13 @@ @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('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 +@define('PREV_NEXT_STYLE','Show page footer previous page/next page links as'); +@define('PREV_NEXT_TEXT','Text only'); +@define('PREV_NEXT_TEXT_ICON','Text and icon'); +@define('PREV_NEXT_ICON','Icon only'); // coComment support @define('COCOMMENT_ACTIVE','Integrate coComment (http://www.cocomment.com) into comment form'); // Counter code @@ -64,4 +71,3 @@ @define('NAVLINK_AMOUNT', 'Enter number of links in the navbar (needs reload of the Manage Styles page)'); @define('NAV_LINK_TEXT', 'Enter the navbar link text'); @define('NAV_LINK_URL', 'Enter the full URL of your link'); -?> \ No newline at end of file diff --git a/templates/bulletproof/config.inc.php b/templates/bulletproof/config.inc.php index 706b2b9..c1fbb5f 100644 --- a/templates/bulletproof/config.inc.php +++ b/templates/bulletproof/config.inc.php @@ -178,6 +178,22 @@ $template_config = array( 'radio' => array('value' => array('true', 'false'), 'desc' => array(YES, NO)), 'default' => 'true', + ), + array( + 'var' => 'show_sticky_entry_footer', + 'name' => SHOW_STICKY_ENTRY_FOOTER, + 'type' => 'radio', + 'radio' => array('value' => array('true', 'false'), + 'desc' => array(YES, NO)), + 'default' => 'true', + ), + array( + 'var' => 'show_sticky_entry_heading', + 'name' => SHOW_STICKY_ENTRY_HEADING, + 'type' => 'radio', + 'radio' => array('value' => array('true', 'false'), + 'desc' => array(YES, NO)), + 'default' => 'true', ), array( 'var' => 'cocommentactive', @@ -186,6 +202,15 @@ $template_config = array( 'radio' => array('value' => array('active', 'inactive'), 'desc' => array(YES, NO)), 'default' => 'inactive', + ), + array( + 'var' => 'prev_next_style', + 'name' => PREV_NEXT_STYLE, + 'type' => 'select', + 'default' => 'text', + 'select_values' => array('text' => PREV_NEXT_TEXT, + 'texticon' => PREV_NEXT_TEXT_ICON, + 'icon' => PREV_NEXT_ICON) ), array( 'var' => 'counter_code', diff --git a/templates/bulletproof/entries.tpl b/templates/bulletproof/entries.tpl index 4312a6c..922121d 100644 --- a/templates/bulletproof/entries.tpl +++ b/templates/bulletproof/entries.tpl @@ -2,9 +2,11 @@ {serendipity_hookPlugin hook="entries_header" addData="$entry_id"} {foreach from=$entries item="dategroup"} -
+