diff --git a/cms-safe.ecf b/cms-safe.ecf
index e727727..3cabebe 100644
--- a/cms-safe.ecf
+++ b/cms-safe.ecf
@@ -14,7 +14,7 @@
-
+
diff --git a/cms.ecf b/cms.ecf
index 9877329..727cca1 100644
--- a/cms.ecf
+++ b/cms.ecf
@@ -6,16 +6,15 @@
+
-
-
-
+
diff --git a/examples/demo/demo-safe.ecf b/examples/demo/demo-safe.ecf
index b0b7ae1..e778586 100644
--- a/examples/demo/demo-safe.ecf
+++ b/examples/demo/demo-safe.ecf
@@ -13,9 +13,10 @@
+
-
-
+
+
diff --git a/examples/demo/launcher/default/application_launcher_i.e b/examples/demo/launcher/default/application_launcher_i.e
index 2cd4a73..e665189 100644
--- a/examples/demo/launcher/default/application_launcher_i.e
+++ b/examples/demo/launcher/default/application_launcher_i.e
@@ -6,8 +6,8 @@ note
you can customize APPLICATION_LAUNCHER
]"
- date: "$Date: 2013-06-12 13:55:42 +0200 (mer., 12 juin 2013) $"
- revision: "$Revision: 36 $"
+ date: "$Date: 2015-02-09 22:29:56 +0100 (lun., 09 févr. 2015) $"
+ revision: "$Revision: 96596 $"
deferred class
APPLICATION_LAUNCHER_I
@@ -16,7 +16,7 @@ feature -- Execution
launch (a_service: WSF_SERVICE; opts: detachable WSF_SERVICE_LAUNCHER_OPTIONS)
local
- launcher: WSF_SERVICE_LAUNCHER
+ launcher: WSF_DEFAULT_SERVICE_LAUNCHER
do
create {WSF_DEFAULT_SERVICE_LAUNCHER} launcher.make_and_launch (a_service, opts)
end
diff --git a/examples/demo/modules/demo/cms_demo_module.e b/examples/demo/modules/demo/cms_demo_module.e
index 756f877..f038073 100644
--- a/examples/demo/modules/demo/cms_demo_module.e
+++ b/examples/demo/modules/demo/cms_demo_module.e
@@ -1,8 +1,8 @@
note
description: "Summary description for {CMS_DEMO_MODULE}."
author: ""
- date: "$Date$"
- revision: "$Revision$"
+ date: "$Date: 2015-02-13 13:08:13 +0100 (ven., 13 févr. 2015) $"
+ revision: "$Revision: 96616 $"
class
CMS_DEMO_MODULE
@@ -36,7 +36,6 @@ feature -- Access: router
-- Node router.
do
create Result.make (2)
-
map_uri_template_agent (Result, "/demo/", agent handle_demo (?,?,a_api))
map_uri_template_agent (Result, "/demo/{id}", agent handle_demo_entry (?,?,a_api))
end
@@ -85,11 +84,37 @@ feature -- Hooks
feature -- Handler
+ initialize_module (a_api: CMS_API)
+ local
+ sql: STRING
+ do
+ if attached {CMS_STORAGE_SQL} a_api.storage as sql_db then
+ sql_db.sql_query ("select count(*) from tb_demo;", Void)
+ if sql_db.has_error then
+ -- Initialize db for demo module
+ sql := "[
+CREATE TABLE "tb_demo"(
+ "did" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL CHECK("did">=0),
+ "name" VARCHAR(100) NOT NULL,
+ "value" TEXT
+);
+ ]"
+ sql_db.reset_error
+ sql_db.sql_change (sql, Void)
+ if sql_db.has_error then
+ a_api.logger.put_error ("Could not initialize database for demo module", generating_type)
+ end
+ end
+ end
+ end
+
handle_demo,
handle_demo_entry (req: WSF_REQUEST; res: WSF_RESPONSE; a_api: CMS_API)
local
r: NOT_IMPLEMENTED_ERROR_CMS_RESPONSE
do
+ initialize_module (a_api)
+
create r.make (req, res, a_api)
r.set_main_content ("NODE module does not yet implement %"" + req.path_info + "%" ...")
r.add_error_message ("NODE Module: not yet implemented")
diff --git a/examples/demo/site/config/cms.ini b/examples/demo/site/config/cms.ini
index 5879f35..f434169 100644
--- a/examples/demo/site/config/cms.ini
+++ b/examples/demo/site/config/cms.ini
@@ -1,6 +1,6 @@
[layout]
root-dir=site/www
-themes-dir=site/www/themes
+themes-dir=site/themes
[site]
name=Eiffel CMS
diff --git a/examples/demo/site/scripts/sqlite.sql b/examples/demo/site/scripts/sqlite.sql
new file mode 100644
index 0000000..ab6db34
--- /dev/null
+++ b/examples/demo/site/scripts/sqlite.sql
@@ -0,0 +1,34 @@
+BEGIN;
+CREATE TABLE "users"(
+ "uid" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL CHECK("uid">=0),
+ "name" VARCHAR(100) NOT NULL,
+ "password" VARCHAR(100) NOT NULL,
+ "salt" VARCHAR(100) NOT NULL,
+ "email" VARCHAR(250) NOT NULL,
+ "status" INTEGER,
+ "created" DATETIME NOT NULL,
+ "signed" DATETIME,
+ CONSTRAINT "name"
+ UNIQUE("name")
+);
+
+CREATE TABLE "users_roles"(
+ "rid" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL CHECK("rid">=0),
+ "role" VARCHAR(100) NOT NULL,
+ CONSTRAINT "role"
+ UNIQUE("role")
+);
+
+CREATE TABLE "nodes"(
+ "nid" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL CHECK("nid">=0),
+ "version" INTEGER,
+ "type" INTEGER,
+ "title" VARCHAR(255) NOT NULL,
+ "summary" TEXT NOT NULL,
+ "content" MEDIUMTEXT NOT NULL,
+ "author" INTEGER,
+ "publish" DATETIME,
+ "created" DATETIME NOT NULL,
+ "changed" DATETIME NOT NULL
+);
+COMMIT;
diff --git a/examples/demo/site/themes/bootstrap/assets/css/style.css b/examples/demo/site/themes/bootstrap/assets/css/style.css
new file mode 100644
index 0000000..05182b7
--- /dev/null
+++ b/examples/demo/site/themes/bootstrap/assets/css/style.css
@@ -0,0 +1,53 @@
+ul.horizontal li {
+ display: inline-block;
+}
+
+#header #primary.menu ul li {
+ color: #555;
+ background-color: #fff;
+ padding: 10px;
+ margin: 0;
+}
+#header #primary.menu ul li a {
+ color: #555;
+ text-decoration: none;
+}
+#header #primary.menu ul li a:hover {
+ color: black;
+}
+#header #primary.menu ul.horizontal {
+ border-bottom: solid 1px #ddd;
+}
+#header #primary.menu ul.horizontal li {
+ border-top: solid 3px #fff;
+}
+#header #primary.menu ul.horizontal li:hover {
+ background-color: #ffe;
+ border-top: solid 3px #999;
+}
+#header #primary.menu ul.horizontal li.active {
+ font-weight: bold;
+ border-top: solid 3px #ddd;
+ background-color: #ddd;
+}
+#header #primary.menu ul.horizontal li.active:hover {
+ border-top: solid 3px blue;
+}
+
+#content {
+ margin-left: 20px;
+}
+
+.sidebar {
+ padding: 5px;
+ margin: 3px;
+ border: solid 1px #ccc;
+}
+.sidebar#sidebar_first {
+ width: 250px;
+ float: left;
+}
+.sidebar#sidebar_second {
+ width: 250px;
+ float: right;
+}
diff --git a/examples/demo/site/themes/bootstrap/assets/scss/style.scss b/examples/demo/site/themes/bootstrap/assets/scss/style.scss
new file mode 100644
index 0000000..8debd65
--- /dev/null
+++ b/examples/demo/site/themes/bootstrap/assets/scss/style.scss
@@ -0,0 +1,57 @@
+ul.horizontal {
+ li {
+ display: inline-block;
+ }
+}
+
+#header {
+ #primary.menu {
+ ul {
+ li {
+ color: #555;
+ a {
+ color: #555;
+ text-decoration: none;
+ &:hover { color: black; }
+ }
+ background-color: #fff;
+ padding: 10px;
+ margin: 0;
+ }
+ &.horizontal {
+ border-bottom: solid 1px #ddd;
+ li {
+ border-top: solid 3px #fff;
+ &:hover {
+ background-color: #ffe;
+ border-top: solid 3px #999;
+ }
+ &.active {
+ font-weight: bold;
+ border-top: solid 3px #ddd;
+ background-color: #ddd;
+ }
+ &.active:hover {
+ border-top: solid 3px blue;
+ }
+ }
+ }
+ }
+ }
+}
+#content {
+ margin-left: 20px;
+}
+.sidebar {
+ padding: 5px;
+ margin: 3px;
+ border: solid 1px #ccc;
+ sidebar_first {
+ width: 250px;
+ float: left;
+ }
+ sidebar_second {
+ width: 250px;
+ float: right;
+ }
+}
diff --git a/examples/demo/site/www/themes/bootstrap/block/header_block.tpl b/examples/demo/site/themes/bootstrap/block/header_block.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/block/header_block.tpl
rename to examples/demo/site/themes/bootstrap/block/header_block.tpl
diff --git a/examples/demo/site/themes/bootstrap/debug.tpl b/examples/demo/site/themes/bootstrap/debug.tpl
new file mode 100644
index 0000000..6031876
--- /dev/null
+++ b/examples/demo/site/themes/bootstrap/debug.tpl
@@ -0,0 +1,14 @@
+{assign name="debug_enabled" value="True"/}
+{if condition="$debug_enabled"}
+
+{assign name="kpage" value="page"/}
+{assign name="kregions" value="regions"/}
+{foreach key="k" item="i" from="$page.variables"}
+ {unless condition="$k ~ $kpage"}
+ {unless condition="$k ~ $kregions"}
+ {$k/} ={$i/}
+ {/unless}
+ {/unless}
+{/foreach}
+
+{/if}
diff --git a/examples/demo/site/themes/bootstrap/page.tpl b/examples/demo/site/themes/bootstrap/page.tpl
new file mode 100644
index 0000000..577af62
--- /dev/null
+++ b/examples/demo/site/themes/bootstrap/page.tpl
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {$head_title/}
+
+
+
+ {if isset="$region_top"}
+ {$region_top/}
+ {/if}
+
+
+
+
+
+
+
+
+
+ {unless isempty="$page.region_sidebar_first"}
+
+ {/unless}
+
+ {unless isempty="$page.region_sidebar_second"}
+
+ {/unless}
+
+
+
+
+ {unless isempty="$page.region_highlighted"}
+
{$page.region_highlighted/}
+ {/unless}
+
+ {unless isempty="$page.region_help"}
+
{$page.region_help/}
+ {/unless}
+
+
+ {unless isempty="$page_title"}
{$page_title/} {/unless}
+ {$page.region_content/}
+
+
+
+
+
+
+
+ {$page.region_footer/}
+
+
+ {$page.region_bottom/}
+
+
+
+
+
+
+
+
+
diff --git a/examples/demo/site/www/themes/bootstrap/theme.info b/examples/demo/site/themes/bootstrap/theme.info
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/theme.info
rename to examples/demo/site/themes/bootstrap/theme.info
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/help_section.tpl b/examples/demo/site/themes/bootstrap/tpl/help_section.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/help_section.tpl
rename to examples/demo/site/themes/bootstrap/tpl/help_section.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/highlighted_section.tpl b/examples/demo/site/themes/bootstrap/tpl/highlighted_section.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/highlighted_section.tpl
rename to examples/demo/site/themes/bootstrap/tpl/highlighted_section.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/left_sidebar.tpl b/examples/demo/site/themes/bootstrap/tpl/left_sidebar.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/left_sidebar.tpl
rename to examples/demo/site/themes/bootstrap/tpl/left_sidebar.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/main_content.tpl b/examples/demo/site/themes/bootstrap/tpl/main_content.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/main_content.tpl
rename to examples/demo/site/themes/bootstrap/tpl/main_content.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/page_bottom.tpl b/examples/demo/site/themes/bootstrap/tpl/page_bottom.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/page_bottom.tpl
rename to examples/demo/site/themes/bootstrap/tpl/page_bottom.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/page_footer.tpl b/examples/demo/site/themes/bootstrap/tpl/page_footer.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/page_footer.tpl
rename to examples/demo/site/themes/bootstrap/tpl/page_footer.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/page_header.tpl b/examples/demo/site/themes/bootstrap/tpl/page_header.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/page_header.tpl
rename to examples/demo/site/themes/bootstrap/tpl/page_header.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/page_header2.tpl b/examples/demo/site/themes/bootstrap/tpl/page_header2.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/page_header2.tpl
rename to examples/demo/site/themes/bootstrap/tpl/page_header2.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/page_top.tpl b/examples/demo/site/themes/bootstrap/tpl/page_top.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/page_top.tpl
rename to examples/demo/site/themes/bootstrap/tpl/page_top.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/primary_nav.tpl b/examples/demo/site/themes/bootstrap/tpl/primary_nav.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/primary_nav.tpl
rename to examples/demo/site/themes/bootstrap/tpl/primary_nav.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/right_sidebar.tpl b/examples/demo/site/themes/bootstrap/tpl/right_sidebar.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/right_sidebar.tpl
rename to examples/demo/site/themes/bootstrap/tpl/right_sidebar.tpl
diff --git a/examples/demo/site/www/themes/bootstrap/tpl/secondary_nav.tpl b/examples/demo/site/themes/bootstrap/tpl/secondary_nav.tpl
similarity index 100%
rename from examples/demo/site/www/themes/bootstrap/tpl/secondary_nav.tpl
rename to examples/demo/site/themes/bootstrap/tpl/secondary_nav.tpl
diff --git a/examples/demo/site/www/themes/api/layout.tpl b/examples/demo/site/www/themes/api/layout.tpl
deleted file mode 100644
index 6025408..0000000
--- a/examples/demo/site/www/themes/api/layout.tpl
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
- {include file="master2/head.tpl"/}
-
-
-
-
- {include file="master2/site_navigation.tpl"/}
-
-
-
-
-
- {include file="master2/content.tpl"/}
-
-
-
-
-
-
- {if condition="$web"}
- {include file="master2/optional_enhancement_js.tpl"/}
- {/if}
-
- {if condition="$html"}
- {include file="master2/optional_enhancement_js.tpl"/}
- {/if}
-
-
-
-
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/layout2.tpl b/examples/demo/site/www/themes/api/layout2.tpl
deleted file mode 100644
index 34a5659..0000000
--- a/examples/demo/site/www/themes/api/layout2.tpl
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
- {include file="master2/head.tpl"/}
-
-
-
-
- {include file="master2/site_navigation.tpl"/}
-
-
-
-
-
-
-
- {include file="master2/content.tpl"/}
-
-
-
-
-
-
- {if condition="$web"}
- {include file="master2/optional_enhancement_js.tpl"/}
- {/if}
-
- {if condition="$html"}
- {include file="master2/optional_enhancement_js.tpl"/}
- {/if}
-
-
-
-
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/master2/basic_auth/logoff.tpl b/examples/demo/site/www/themes/api/master2/basic_auth/logoff.tpl
deleted file mode 100644
index 8139dc7..0000000
--- a/examples/demo/site/www/themes/api/master2/basic_auth/logoff.tpl
+++ /dev/null
@@ -1,5 +0,0 @@
-You have successfully signed out
-
-You may want to return
-
-Press this neat little button:Take Me Home
diff --git a/examples/demo/site/www/themes/api/master2/content.tpl b/examples/demo/site/www/themes/api/master2/content.tpl
deleted file mode 100644
index b18c5dd..0000000
--- a/examples/demo/site/www/themes/api/master2/content.tpl
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
Top most recent nodes
-
-
- {foreach from="$nodes" item="item"}
-
- {/foreach}
-
diff --git a/examples/demo/site/www/themes/api/master2/error.tpl b/examples/demo/site/www/themes/api/master2/error.tpl
deleted file mode 100644
index 0ca7ad0..0000000
--- a/examples/demo/site/www/themes/api/master2/error.tpl
+++ /dev/null
@@ -1,18 +0,0 @@
- Error: {$code/}
-
-{assign name="status400" value="400"/}
-{assign name="status404" value="404"/}
-{assign name="status500" value="500"/}
-
-{if condition="$code ~ $status500"}
- Internal server error, for the request {$request/}
-{/if}
-
-
-{if condition="$code ~ $status404"}
- Resourse not found, for the request {$request/}
-{/if}
-
-{if condition="$code ~ $status400"}
- Bad request, the request {$request/} is not valid
-{/if}
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/master2/footer.tpl b/examples/demo/site/www/themes/api/master2/footer.tpl
deleted file mode 100644
index 11fe183..0000000
--- a/examples/demo/site/www/themes/api/master2/footer.tpl
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- API Documentation
- Questions? Comments? Let us know!
- © Copyright 2014 Eiffel Software -- Privacy Policy
-
-
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/master2/head.tpl b/examples/demo/site/www/themes/api/master2/head.tpl
deleted file mode 100644
index 4ba4616..0000000
--- a/examples/demo/site/www/themes/api/master2/head.tpl
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-Eiffel RESTonCMS
-{if condition="$web"}
- {include file="master2/optional_styling_css.tpl"/}
-{/if}
-{if condition="$html"}
- {include file="master2/optional_styling_css.tpl"/}
-{/if}
-
diff --git a/examples/demo/site/www/themes/api/master2/header.tpl b/examples/demo/site/www/themes/api/master2/header.tpl
deleted file mode 100644
index ce8ec71..0000000
--- a/examples/demo/site/www/themes/api/master2/header.tpl
+++ /dev/null
@@ -1,2 +0,0 @@
- RESTonCMS
- Tagline
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/master2/main_navigation.tpl b/examples/demo/site/www/themes/api/master2/main_navigation.tpl
deleted file mode 100644
index 88365d7..0000000
--- a/examples/demo/site/www/themes/api/master2/main_navigation.tpl
+++ /dev/null
@@ -1,5 +0,0 @@
-
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/master2/optional_enhancement_js.tpl b/examples/demo/site/www/themes/api/master2/optional_enhancement_js.tpl
deleted file mode 100644
index 1353b83..0000000
--- a/examples/demo/site/www/themes/api/master2/optional_enhancement_js.tpl
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-{if condition="$web"}
-
-{/if}
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/master2/optional_styling_css.tpl b/examples/demo/site/www/themes/api/master2/optional_styling_css.tpl
deleted file mode 100644
index f56d770..0000000
--- a/examples/demo/site/www/themes/api/master2/optional_styling_css.tpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{if condition="$html"}
-
-
-
-{/if}
-{if condition="$web"}
-
-
-{/if}
diff --git a/examples/demo/site/www/themes/api/master2/site_navigation.tpl b/examples/demo/site/www/themes/api/master2/site_navigation.tpl
deleted file mode 100644
index 081d0f4..0000000
--- a/examples/demo/site/www/themes/api/master2/site_navigation.tpl
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/modules/navigation.tpl b/examples/demo/site/www/themes/api/modules/navigation.tpl
deleted file mode 100644
index ee2d15e..0000000
--- a/examples/demo/site/www/themes/api/modules/navigation.tpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{if isset="$user"}
- Logoff
-{/if}
-{unless isset="$user"}
- Login
- Register
-{/unless}
-List of Nodes
diff --git a/examples/demo/site/www/themes/api/modules/node.tpl b/examples/demo/site/www/themes/api/modules/node.tpl
deleted file mode 100644
index 815d55c..0000000
--- a/examples/demo/site/www/themes/api/modules/node.tpl
+++ /dev/null
@@ -1,174 +0,0 @@
-{if condition="html"}
-
-
-
- {include file="master2/head.tpl"/}
-
-
-{/if}
-
-{unless condition="$web"}
-
- {include file="master2/site_navigation.tpl"/}
-{/unless}
-
-
-{if condition="html"}
-
-
-
-
-
-{/if}
-
-
-
- {if condition="$web"}
-
- {/if}
- {if condition="$html"}
-
- {/if}
-
-
- {if isset="$node"}
-
-
- {/if}
-
-
-
- {if isset="$user"}
-
-
-
-
- {if isset="$user"}
-
-
-
- {if isset="$node"}
-
-
-
- Delete Node
-
-
-
-
-
-
-
-
-
- {/if}
-
- {/if}
-
-
-
-
-{if condition="html"}
-
-
-
-{/if}
-
-
-{if condition="html"}
-
-
-
- {include file="master2/optional_enhancement_js.tpl"/}
-
-
-
-{/if}
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/modules/node_content.tpl b/examples/demo/site/www/themes/api/modules/node_content.tpl
deleted file mode 100644
index c1353aa..0000000
--- a/examples/demo/site/www/themes/api/modules/node_content.tpl
+++ /dev/null
@@ -1,70 +0,0 @@
-{if condition="html"}
-
-
-
- {include file="master2/head.tpl"/}
-
-
-{/if}
-
-{unless condition="$web"}
-
- {include file="master2/site_navigation.tpl"/}
-{/unless}
-
-{if condition="html"}
-
-
-
-
-
-{/if}
-
-
-
-
-
-
-
- Edit Node Content
-
-
-
- Content:
-
-
- {$node_content/}
-
-
-
-
-
-
-
-
-
-
-
-
-
-{if condition="html"}
-
-
-
-
-{/if}
-
-
-{if condition="html"}
-
-
-
- {include file="master2/optional_enhancement_js.tpl"/}
-
-
-
-{/if}
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/modules/node_summary.tpl b/examples/demo/site/www/themes/api/modules/node_summary.tpl
deleted file mode 100644
index b9022e6..0000000
--- a/examples/demo/site/www/themes/api/modules/node_summary.tpl
+++ /dev/null
@@ -1,71 +0,0 @@
-{if condition="html"}
-
-
-
- {include file="master2/head.tpl"/}
-
-
-{/if}
-
-
- {unless condition="$web"}
-
- {include file="master2/site_navigation.tpl"/}
- {/unless}
-
-{if condition="html"}
-
-
-
-
-
-{/if}
-
-
-
-
-
-
- Edit Node Summary
-
-
-
- Summary:
-
-
- {$node_summary/}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{if condition="html"}
-
-
-
-
-{/if}
-
-
-{if condition="html"}
-
-
-
- {include file="master2/optional_enhancement_js.tpl"/}
-
-
-
-{/if}
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/modules/node_title.tpl b/examples/demo/site/www/themes/api/modules/node_title.tpl
deleted file mode 100644
index bf8a77e..0000000
--- a/examples/demo/site/www/themes/api/modules/node_title.tpl
+++ /dev/null
@@ -1,70 +0,0 @@
-{if condition="html"}
-
-
-
- {include file="master2/head.tpl"/}
-
-
-{/if}
-
- {unless condition="$web"}
-
- {include file="master2/site_navigation.tpl"/}
- {/unless}
-
-
-{if condition="html"}
-
-
-
-
-
-{/if}
-
-
-
-
-
-
- Edit Node Title
-
-
-
-
-
-
-
-
-
-
-
-
-
-{if condition="html"}
-
-
-
-
-{/if}
-
-
-{if condition="html"}
-
-
-
- {include file="master2/optional_enhancement_js.tpl"/}
-
-
-
-{/if}
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/modules/nodes.tpl b/examples/demo/site/www/themes/api/modules/nodes.tpl
deleted file mode 100644
index 23b24c7..0000000
--- a/examples/demo/site/www/themes/api/modules/nodes.tpl
+++ /dev/null
@@ -1,52 +0,0 @@
-{if condition="html"}
-
-
-
- {include file="master2/head.tpl"/}
-
-
-{/if}
-
-{unless condition="$web"}
-
- {include file="master2/site_navigation.tpl"/}
-{/unless}
-
-{if condition="html"}
-
-
-
-
-
-{/if}
-
-
List nodes
-
-
- {foreach from="$nodes" item="item"}
-
- {/foreach}
-
-
-{if condition="html"}
-
-
-
-{/if}
-
-
-{if condition="html"}
-
-
-
- {include file="master2/optional_enhancement_js.tpl"/}
-
-
-
-{/if}
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/modules/register.tpl b/examples/demo/site/www/themes/api/modules/register.tpl
deleted file mode 100644
index 3a14667..0000000
--- a/examples/demo/site/www/themes/api/modules/register.tpl
+++ /dev/null
@@ -1,100 +0,0 @@
-{if condition="html"}
-
-
-
- {include file="master2/head.tpl"/}
-
-
-{/if}
-
-
-{unless condition="$web"}
-
- {include file="master2/site_navigation.tpl"/}
-{/unless}
-
-{if condition="html"}
-
-
-
-
-
-{/if}
-
-
-
-
-
-
- Register
-
-
-
-
-
-
-
-
- Re-type Password:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{if condition="html"}
-
-
-
-{/if}
-
-
-{if condition="html"}
-
-
-
- {include file="master2/optional_enhancement_js.tpl"/}
-
-
-
-{/if}
\ No newline at end of file
diff --git a/examples/demo/site/www/themes/api/theme.info b/examples/demo/site/www/themes/api/theme.info
deleted file mode 100644
index 54b5f6e..0000000
--- a/examples/demo/site/www/themes/api/theme.info
+++ /dev/null
@@ -1,9 +0,0 @@
-name=api
-engine=smarty
-author=jvelilla
-version=0.1
-regions[header] = Header
-regions[content] = Content
-regions[footer] = Footer
-regions[first_sidebar] = first sidebar
-regions[second_sidebar] = second sidebar
diff --git a/examples/demo/site/www/themes/bootstrap.7z b/examples/demo/site/www/themes/bootstrap.7z
deleted file mode 100644
index 45c941d..0000000
Binary files a/examples/demo/site/www/themes/bootstrap.7z and /dev/null differ
diff --git a/examples/demo/site/www/themes/bootstrap/page.tpl b/examples/demo/site/www/themes/bootstrap/page.tpl
deleted file mode 100644
index 53f29fd..0000000
--- a/examples/demo/site/www/themes/bootstrap/page.tpl
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
- ROC- Layout with defualt Regions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{$head_title/}
-
-
-
- {if isset="$region_top"}
- {$region_top/}
- {/if}
-
-
-
-
-
-
-
-
-
- {unless empty="$page.region_sidebar_first"}
-
- {$page.region_sidebar_first/}
-
- {/unless}
-
-
-
-
-
- {$page.region_highlighted/}
-
-
- {$page.region_help/}
-
-
- {unless empty="$page_title"}
{$page_title/} {/unless}
- {$page.region_content/}
-
-
-
- {unless empty="$page.region_sidebar_second"}
-
- {$page.region_sidebar_second/}
-
- {/unless}
-
-
-
-
-
- {$page.region_footer/}
-
-
- {$page.region_bottom/}
-
-
-
-
diff --git a/examples/demo/site/www/themes/bootstrap/roc_template -2.html b/examples/demo/site/www/themes/bootstrap/roc_template -2.html
deleted file mode 100644
index 17b8074..0000000
--- a/examples/demo/site/www/themes/bootstrap/roc_template -2.html
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-
-
- ROC- Layout with defualt Regions
-
-
-
-
-
-
-
-
-ROC CMS - A responsive layout
-
-
-
-
-
-
ROC Layout with Defaul Regions
-
-
-
-
-
-
-
-
-
-
-
-
-
Highlighted Section
-
Help Section
-
-
Main Content Section
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.
-
-
Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/demo/site/www/themes/bootstrap/roc_template.html b/examples/demo/site/www/themes/bootstrap/roc_template.html
deleted file mode 100644
index 1472f38..0000000
--- a/examples/demo/site/www/themes/bootstrap/roc_template.html
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
-
-
- ROC- Layout with defualt Regions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ROC CMS - A responsive layout
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Highlighted Section
-
Help Section
-
-
Main Content Section
-
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.
-
-
Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/demo/site/www/themes/smarty/front-page.tpl b/examples/demo/site/www/themes/smarty/front-page.tpl
deleted file mode 100644
index ae932ee..0000000
--- a/examples/demo/site/www/themes/smarty/front-page.tpl
+++ /dev/null
@@ -1,12 +0,0 @@
-{include file="tpl/page-header.tpl"/}
-
-
-
-
- Welcome ... this is the front page
- {if isset="$content"}{$content/}{/if}
-
-
-
-
-{include file="tpl/page-footer.tpl"/}
diff --git a/examples/demo/site/www/themes/smarty/page.tpl b/examples/demo/site/www/themes/smarty/page.tpl
deleted file mode 100644
index 5dde43c..0000000
--- a/examples/demo/site/www/themes/smarty/page.tpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{include file="tpl/page-header.tpl"/}
-
-
-
-
- {if isset="$content"}{$content/}{/if}
-
-
-
-
-{include file="tpl/page-footer.tpl"/}
diff --git a/examples/demo/site/www/themes/smarty/res/ewfcms.js b/examples/demo/site/www/themes/smarty/res/ewfcms.js
deleted file mode 100644
index d4ebbef..0000000
--- a/examples/demo/site/www/themes/smarty/res/ewfcms.js
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * EWF CMS javascript based on JQuery
- */
-
-/**
- * Override jQuery.fn.init to guard against XSS attacks.
- *
- * See http://bugs.jquery.com/ticket/9521
- */
-
-(function () {
- var jquery_init = jQuery.fn.init;
- jQuery.fn.init = function (selector, context, rootjQuery) {
- // If the string contains a "#" before a "<", treat it as invalid HTML.
- if (selector && typeof selector === 'string') {
- var hash_position = selector.indexOf('#');
- if (hash_position >= 0) {
- var bracket_position = selector.indexOf('<');
- if (bracket_position > hash_position) {
- throw 'Syntax error, unrecognized expression: ' + selector;
- }
- }
- }
- return jquery_init.call(this, selector, context, rootjQuery);
- };
- jQuery.fn.init.prototype = jquery_init.prototype;
-})();
-
-
-var EWFCMS = EWFCMS || { };
-
-EWFCMS.toggleFieldset = function(fieldset) {
- if ($(fieldset).is('.collapsed')) {
- var content = $('> div:not(.action)', fieldset);
- $(fieldset).removeClass('collapsed');
- content.hide();
- content.slideDown( {
- duration: 'fast',
- easing: 'linear',
- complete: function() {
- //Drupal.collapseScrollIntoView(this.parentNode);
- this.parentNode.animating = false;
- $('div.action', fieldset).show();
- },
- step: function() {
- // Scroll the fieldset into view
- //Drupal.collapseScrollIntoView(this.parentNode);
- }
- });
- } else {
- var content = $('> div:not(.action)', fieldset).slideUp('fast', function() {
- $(this.parentNode).addClass('collapsed');
- this.parentNode.animating = false;
- });
- }
- };
-
-jQuery(document).ready(function(){
- //$('.collapsed').hide();
- $('fieldset.collapsible > legend').each(function() {
- var fieldset = $(this.parentNode);
- // turn legen into clickable link and wrap contents
- var text = this.innerHTML;
- $(this).empty()
- .append($(''+ text + ' ').click(function() {
- var fieldset = $(this).parents('fieldset:first')[0];
- if (!fieldset.animating) {
- fieldset.animating = true;
- EWFCMS.toggleFieldset(fieldset);
- }
- return false;
- }
- ))
- .after($('
')
- .append(fieldset.children(':not(legend):not(.action)')))
- .addClass('collapse-processed');
- });
- $('fieldset.collapsed').each(function() {
- $(this).removeClass('collapsed');
- EWFCMS.toggleFieldset(this);
- });
-});
-
-jQuery(document).ready(function(){
- $('#tabs').tabs();
-});
-
-//jQuery(document).ready(function(){
- //$('#second_sidebar').hide();
-//});
-
diff --git a/examples/demo/site/www/themes/smarty/res/favicon.ico b/examples/demo/site/www/themes/smarty/res/favicon.ico
deleted file mode 100644
index 343067f..0000000
Binary files a/examples/demo/site/www/themes/smarty/res/favicon.ico and /dev/null differ
diff --git a/examples/demo/site/www/themes/smarty/res/logo.png b/examples/demo/site/www/themes/smarty/res/logo.png
deleted file mode 100644
index d797376..0000000
Binary files a/examples/demo/site/www/themes/smarty/res/logo.png and /dev/null differ
diff --git a/examples/demo/site/www/themes/smarty/res/menu-collapsed.png b/examples/demo/site/www/themes/smarty/res/menu-collapsed.png
deleted file mode 100644
index 95a214a..0000000
Binary files a/examples/demo/site/www/themes/smarty/res/menu-collapsed.png and /dev/null differ
diff --git a/examples/demo/site/www/themes/smarty/res/menu-expanded.png b/examples/demo/site/www/themes/smarty/res/menu-expanded.png
deleted file mode 100644
index 46f39ec..0000000
Binary files a/examples/demo/site/www/themes/smarty/res/menu-expanded.png and /dev/null differ
diff --git a/examples/demo/site/www/themes/smarty/res/style.css b/examples/demo/site/www/themes/smarty/res/style.css
deleted file mode 100644
index b0615ae..0000000
--- a/examples/demo/site/www/themes/smarty/res/style.css
+++ /dev/null
@@ -1,251 +0,0 @@
-body { margin: 0; background-color: #eeeeff;}
-div#header { background-color: #003; color: #fff; border: solid 1px #003; padding: 0px; margin: 0px;}
-div#header img#logo { float: left; margin: 5px 15px 5px 10px; }
-div#header div#title {font-size: 180%; font-weight: bold; margin-top: 10px; }
-ul.horizontal {
- list-style-type: none;
-}
-ul.horizontal li {
- display: inline;
- padding: 0 5px 0 5px;
-}
-
-div#menu-bar li.active {
- border: solid 1px #ff0;
- color: #ff0;
-}
-div#menu-bar li:hover {
- background-color: #fff;
- color: #00f;
-}
-div#menu-bar li a {
- text-decoration: none;
- color: #fff;
-}
-div#menu-bar li:hover a {
- color: #00f;
- font-style: bold;
-}
-
-
-div#primary-tabs li {
- color: #00f;
- padding: 2px 5px 2px 5px;
- background-color: #eee;
- border: solid 1px #ccf;
-}
-div#primary-tabs li.active {
- padding: 2px 7px 1px 7px;
- border-top: solid 2px #99f;
- border-left: solid 1px #99f;
- border-right: solid 1px #99f;
- border-bottom: 0;
- background-color: #fff;
- color: #00f;
-}
-div#primary-tabs li:hover {
- background-color: #fff;
- color: #00f;
-}
-div#primary-tabs li a {
- text-decoration: none;
- color: #00f;
-}
-div#primary-tabs li:hover a {
- color: #00f;
- font-style: bold;
-}
-
-
-
-div#menu-first { margin-left: 20%; color: #ccf; background-color: #003; }
-div#menu-first a { color: #ccf; }
-div#menu-second { color: #99f; background-color: #333; }
-div#menu-second a { color: #99f; }
-
-div#main-wrapper {
- clear: both;
- display: block;
- height: 0;
-}
-div#main { margin: 0; padding: 0; clear: both; height:0; display: block; }
-
-div#content {
- padding: 5px 3px 5px 20px;
- margin-top: 10px;
- min-width: 60%;
- display: inline;
- float: left;
- position: relative;
- background-color: #ffffff;
- padding-bottom: 30px;
-}
-
-div#first_sidebar {
- width: 20%;
- margin: 5px;
- padding: 5px;
- display: inline;
- float: left;
- position: relative;
-}
-div#second_sidebar {
- width: 20%;
- margin: 5px;
- padding: 5px;
- display: inline;
- float: left;
- position: relative;
- background-color: #eee;
-}
-div.sidebar div.block {
- margin-bottom: 5px;
- padding: 0;
- border: dotted 1px #999;
- background-color: #fff;
-}
-div.sidebar div.block div.title {
- padding: 3px 3px 3px 3px;
- font-weight: bold;
- background-color: #dedede;
- border-bottom: dotted 1px #999;
-}
-div.sidebar div.block div.inside {
- margin: 3px;
-}
-div#footer { margin: 10px 0 10px 0; clear: both; display: block; text-align: center; padding: 10px; border-top: solid 1px #00f; color: #fff; background-color: #333;}
-div#footer a { color: #ff0; }
-
-form div.error {
- border-top: dotted 1px #f00;
- border-bottom: dotted 1px #f00;
- border-left: solid 3px #f00;
-}
-div.node div.title {
- font-weight: bold;
- font-size: 110%;
- border-bottom: dotted 1 px #009;
-}
-div.description {
- font-style: italic;
- font-color: #999;
-}
-
-div.node-wrapper {
- margin: 5px 2px 5px 2px;
- border: dotted 1px #dddddd;
- padding: 5px 3px 5px 3px;
-}
-div.node div.title {
- font-weight: bold;
- font-size: 110%;
- border-bottom: dotted 1 px #009;
- float: left;
-}
-div.node div.description {
- text-align: right;
-}
-div.node div.inner {
- padding: 5px 5px 5px 10px;
- border-top: dotted 1px #dddddd;
-}
-
-form#user-login {
- border: dotted 1px #099;
- display: inline-block;
- padding: 10px;
- margin: 10px;
-}
-
-form#user-login>div {
- margin-bottom: 10px;
-}
-form#user-login .input {
- float: left;
-}
-form#user-login img.logo {
-}
-
-div#message {
- border: solid 1px #fc0;
- background-color: #fed;
- color: #000;
- padding: 5px;
- margin: 5px;
-}
-
-div#message li {
- padding-left: 5px;
- margin-left: 3px;
-}
-div#message li.success {
- color: #003300;
- background-color: #ccffcc;
-}
-
-div#message li.error {
- color: #330000;
- background-color: #ff9494;
-}
-div#message li.warning {
- color: #aa2200;
- background-color: #ffcc99;
-}
-
-div.columns {
- margin-top: 10px;
- display: inline-block;
- clear: both;
-}
-
-div.columns>* {
- padding-left: 10px;
- padding-top: 5px;
- border-top: dotted 1px #999;
- border-left: dotted 1px #999;
- margin-left: 1px;
- margin-right: 10px;
- float: left;
-}
-
-/* Link */
-
-a {
- text-decoration: none;
-}
-a:hover {
- text-decoration: underline;
-}
-
-div.menu ul.vertical {
- margin: 0;
- padding-left: 10px;
- list-style-type: none;
-}
-
-div.menu ul.vertical ul {
- border-left: solid 3px #eee;
- list-style-type: none;
- margin: 0;
- padding-left: 5px;
- margin-left: 5px;
- margin-bottom: 5px;
-}
-
-/* Fieldset and collapsible */
-
-fieldset.collapsible legend a {
- padding-left: 15px;
- background: url(menu-expanded.png) 5px 75% no-repeat;
-}
-
-fieldset.collapsed legend a {
- padding-left: 15px;
- background: url(menu-collapsed.png) 5px 50% no-repeat;
-}
-
-fieldset.collapsed {
- border: none;
- border-top: dotted 1px #000;
-}
-
diff --git a/examples/demo/site/www/themes/smarty/theme.info b/examples/demo/site/www/themes/smarty/theme.info
deleted file mode 100644
index 38a712a..0000000
--- a/examples/demo/site/www/themes/smarty/theme.info
+++ /dev/null
@@ -1,10 +0,0 @@
-name=smarty
-engine=smarty
-author=jfiat
-version=0.1
-;template_dir=templates
-regions[header] = Header
-regions[content] = Content
-regions[footer] = Footer
-regions[first_sidebar] = first sidebar
-regions[second_sidebar] = second sidebar
diff --git a/examples/demo/site/www/themes/smarty/tpl/page-footer.tpl b/examples/demo/site/www/themes/smarty/tpl/page-footer.tpl
deleted file mode 100644
index 693215b..0000000
--- a/examples/demo/site/www/themes/smarty/tpl/page-footer.tpl
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-{if isset="$page_bottom"}{$page_bottom/}{/if}
-