From: Jason Woofenden Date: Sun, 21 Feb 2016 19:54:39 +0000 (-0500) Subject: make footer editable in cms X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=commitdiff_plain;h=5cbbaa9bd322da0f772e103660c0865168dcf136 make footer editable in cms --- 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 @@