diff options
-rw-r--r-- | app/acf_www-controller.lua | 1 | ||||
-rw-r--r-- | app/template-html.lsp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua index d39ee31..b455b4d 100644 --- a/app/acf_www-controller.lua +++ b/app/acf_www-controller.lua @@ -175,6 +175,7 @@ view_resolver = function(self) self.conf.viewtype = self.conf.viewtype or "html" local viewfunc, viewlibrary, pageinfo = parent_view_resolver(self) pageinfo.viewfunc = viewfunc + pageinfo.skinned = self.clientdata.skinned or "true" -- search for template local template diff --git a/app/template-html.lsp b/app/template-html.lsp index ae051d2..4ae8924 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -13,6 +13,7 @@ Content-Type: text/html <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<% if pageinfo.skinned ~= "false" then %> <% local hostname = "" if viewlibrary and viewlibrary.dispatch_component then @@ -33,9 +34,11 @@ end $(function(){ $(":input:not(:submit):enabled:not([readonly]):first").focus(); });</script> +<% end -- pageinfo.skinned %> </head> <body> +<% if pageinfo.skinned ~= "false" then %> <div id="page"> <div id="header"> <div class="leader"> @@ -135,9 +138,11 @@ end <div id="content"> <div class="leader"> </div> +<% end --pageinfo.skinned %> <% pageinfo.viewfunc(viewtable, viewlibrary, pageinfo, session) %> +<% if pageinfo.skinned ~= "false" then %> <div class="tailer"> </div> </div> <!-- content --> @@ -152,6 +157,7 @@ end </div> </div> <!-- footer --> </div> <!-- page --> +<% end --pageinfo.skinned %> </body> </html> |