From 5d80d6e53da2224c51c95f9f9fcbd878e152843d Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Wed, 1 Apr 2009 16:10:39 +0000 Subject: [PATCH] BP: Added template file for static pages with related category. --- .../plugin_staticpage_related_category.tpl | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 templates/bulletproof/plugin_staticpage_related_category.tpl diff --git a/templates/bulletproof/plugin_staticpage_related_category.tpl b/templates/bulletproof/plugin_staticpage_related_category.tpl new file mode 100644 index 00000000..ef5b0de3 --- /dev/null +++ b/templates/bulletproof/plugin_staticpage_related_category.tpl @@ -0,0 +1,74 @@ +{if $staticpage_articleformat} +
+

{$staticpage_articleformattitle|@escape}

+{/if} + +

{$staticpage_headline|@escape}

+ +{if $staticpage_navigation AND $staticpage_shownavi} + +{/if} + +{if $staticpage_articleformat} +
+
+{/if} + +{if $staticpage_pass AND $staticpage_form_pass != $staticpage_pass} +
{$CONST.STATICPAGE_PASSWORD_NOTICE}
+
+
+ + +
+
+{else} +
{$staticpage_precontent}
+ {if is_array($staticpage_childpages)} + + {/if} +
{$staticpage_content}
+{/if} + +{if $staticpage_articleformat} +
+
+
+{/if} + +
+{* standart - if you use it on a shared-s9y-installation you have to correct the path to staticpage-entries-listing.tpl *} +{serendipity_fetchPrintEntries category=$staticpage_related_category_id template="../../plugins/serendipity_event_staticpage/staticpage-entries-listing.tpl" limit=5 noSticky="true"} + +{* if you use your own static-entries.tpl in your template, take this: *} +{* {serendipity_fetchPrintEntries category=$staticpage_related_category_id template="staticpage-entries-listing.tpl" limit=5 noSticky="true"} *} +
+ +{if $staticpage_articleformat} +
+{/if} + +{if $staticpage_author} +
{$staticpage_author|@escape}
+{/if} + +
+{if $staticpage_lastchange} + {$staticpage_lastchange|date_format:"%Y-%m-%d"} +{/if} + +{if $staticpage_adminlink AND $staticpage_adminlink.page_user} + | {$staticpage_adminlink.link_name|@escape} +{/if} +
+{if $staticpage_articleformat} +
+{/if}