From 5cbbaa9bd322da0f772e103660c0865168dcf136 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Sun, 21 Feb 2016 14:54:39 -0500 Subject: [PATCH] make footer editable in cms --- inc/cms.php | 2 ++ inc/wfpl | 2 +- template.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/cms.php b/inc/cms.php index 347d3a2..789f39d 100644 --- a/inc/cms.php +++ b/inc/cms.php @@ -26,6 +26,8 @@ function cms_display($basename, &$tem) { $cms_page_id = cms_display_content($tem, 'where filename=%"', $basename); + $tem->set('$cms_footer', db_get_value('cms_pages', 'content', 'where filename="_footer"')); + if(session_auth_can('admin_links')) { $admin_links = array(); if($cms_page_id) { diff --git a/inc/wfpl b/inc/wfpl index f009205..de9d8d4 160000 --- a/inc/wfpl +++ b/inc/wfpl @@ -1 +1 @@ -Subproject commit f0092052f5357e8e7430a2180a56f1536b613da5 +Subproject commit de9d8d4999bf24e255e583bf69bc4d1a530af2df diff --git a/template.html b/template.html index bd5bb4f..6403d13 100644 --- a/template.html +++ b/template.html @@ -63,7 +63,7 @@ -- 1.7.10.4