From eafb79546dab36c7534e785028cd0a5e7fad36ef Mon Sep 17 00:00:00 2001 From: DonChambers Date: Sat, 16 Mar 2019 13:48:54 -0500 Subject: [PATCH] Timeline Theme - added images to static pages Static pages now use the same method of image assignment as entries. --- templates/timeline/info.txt | 2 +- templates/timeline/plugin_staticpage.tpl | 9 +++++++++ templates/timeline/plugin_staticpage_aboutpage.tpl | 9 +++++++++ .../timeline/plugin_staticpage_related_category.tpl | 9 +++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/templates/timeline/info.txt b/templates/timeline/info.txt index 19836bc9..8acd64d2 100644 --- a/templates/timeline/info.txt +++ b/templates/timeline/info.txt @@ -1,6 +1,6 @@ Name: Timeline Author: Don Chambers -Date: 2018-09-06 +Date: 2019-03-16 Require Serendipity: 2.0 Backend: No Recommended: Yes \ No newline at end of file diff --git a/templates/timeline/plugin_staticpage.tpl b/templates/timeline/plugin_staticpage.tpl index 289f2813..046cefb3 100644 --- a/templates/timeline/plugin_staticpage.tpl +++ b/templates/timeline/plugin_staticpage.tpl @@ -33,6 +33,15 @@ {/foreach} + {/if} +{* CUSTOM TO THIS THEME - CUSTOM STATICPAGE IMAGE *} + {if $staticpage_custom.staticpage_image} + {if $staticpage_custom.staticpage_image|is_in_string:' + {/if} {/if} {if $staticpage_content}
diff --git a/templates/timeline/plugin_staticpage_aboutpage.tpl b/templates/timeline/plugin_staticpage_aboutpage.tpl index d97476b4..f0833430 100644 --- a/templates/timeline/plugin_staticpage_aboutpage.tpl +++ b/templates/timeline/plugin_staticpage_aboutpage.tpl @@ -34,6 +34,15 @@ {$staticpage_precontent}
{/if} +{* CUSTOM TO THIS THEME - CUSTOM STATICPAGE IMAGE *} + {if $staticpage_custom.staticpage_image} + {if $staticpage_custom.staticpage_image|is_in_string:' + {/if} + {/if} {/if} {if $staticpage_navigation && $staticpage_shownavi && ($staticpage_navigation.prev.link || $staticpage_navigation.next.link)} diff --git a/templates/timeline/plugin_staticpage_related_category.tpl b/templates/timeline/plugin_staticpage_related_category.tpl index 91ee8a18..805ba0e9 100644 --- a/templates/timeline/plugin_staticpage_related_category.tpl +++ b/templates/timeline/plugin_staticpage_related_category.tpl @@ -34,6 +34,15 @@ {/if} +{* CUSTOM TO THIS THEME - CUSTOM STATICPAGE IMAGE *} + {if $staticpage_custom.staticpage_image} + {if $staticpage_custom.staticpage_image|is_in_string:' + {/if} + {/if} {if $staticpage_content}
{$staticpage_content}