JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make footer editable in cms
[wfpl-cms.git] / inc / cms.php
index 347d3a2..789f39d 100644 (file)
@@ -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) {