Added cms_smarty_template_block

Added CMS_RESPONSE.module_assets_location and CMS_RESPONSE.module_assets_theme_location
    that help locating module related assets.
Added CMS_BLOCK.is_raw to abstract CMS_CONTENT_BLOCK.is_raw
This commit is contained in:
2014-11-14 19:31:40 +01:00
parent 6aad460b11
commit 8bfb66af30
6 changed files with 242 additions and 19 deletions

View File

@@ -62,12 +62,12 @@ feature -- Conversion
debug ("refactor_fixme")
fixme ("Refactor HTML code to use the new Bootstrap theme template")
end
if attached {CMS_CONTENT_BLOCK} a_block as l_content_block and then l_content_block.is_raw then
if attached a_block.is_raw then
create s.make_empty
if attached l_content_block.title as l_title then
if attached a_block.title as l_title then
s.append ("<div class=%"title%">" + html_encoded (l_title) + "</div>")
end
s.append (l_content_block.to_html (Current))
s.append (a_block.to_html (Current))
else
create s.make_from_string ("<div class=%"block%" id=%"" + a_block.name + "%">")
if attached a_block.title as l_title then
@@ -80,6 +80,7 @@ feature -- Conversion
end
Result := s
end
page_html (page: CMS_HTML_PAGE): STRING_8
-- Render `page' as html.
deferred