JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make footer editable in cms
authorJason Woofenden <jason@jasonwoof.com>
Sun, 21 Feb 2016 19:54:39 +0000 (14:54 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Sun, 21 Feb 2016 19:54:54 +0000 (14:54 -0500)
inc/cms.php
inc/wfpl
template.html

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) {
index f009205..de9d8d4 160000 (submodule)
--- a/inc/wfpl
+++ b/inc/wfpl
@@ -1 +1 @@
-Subproject commit f0092052f5357e8e7430a2180a56f1536b613da5
+Subproject commit de9d8d4999bf24e255e583bf69bc4d1a530af2df
index bd5bb4f..6403d13 100644 (file)
@@ -63,7 +63,7 @@
                <!--~}~-->
 
                <footer>
-                       footer text here
+                       ~$cms_footer~
                </footer>
        </div>
        <!--~$render_timestamps {~-->