diff --git a/cms-safe.ecf b/cms-safe.ecf index 9d82c88..6544ac0 100644 --- a/cms-safe.ecf +++ b/cms-safe.ecf @@ -1,43 +1,3 @@ - - - - - /.svn$ - /CVS$ - /EIFGENs$ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/cms.ecf b/cms.ecf index 80e88e4..90f8a65 100644 --- a/cms.ecf +++ b/cms.ecf @@ -1,6 +1,5 @@ - - ROC CMS library + @@ -8,8 +7,12 @@ /CVS$ /EIFGENs$ - + + + + diff --git a/dev_modules/masquerade_auth/masquerade_auth-safe.ecf b/dev_modules/masquerade_auth/masquerade_auth-safe.ecf index 7aac9ee..1da46a6 100644 --- a/dev_modules/masquerade_auth/masquerade_auth-safe.ecf +++ b/dev_modules/masquerade_auth/masquerade_auth-safe.ecf @@ -1,29 +1,3 @@ - - - - - /EIFGENs$ - /CVS$ - /.svn$ - - - - - - - - - - - - - - - - - - - - + + diff --git a/dev_modules/masquerade_auth/masquerade_auth.ecf b/dev_modules/masquerade_auth/masquerade_auth.ecf new file mode 100644 index 0000000..f2f8bc9 --- /dev/null +++ b/dev_modules/masquerade_auth/masquerade_auth.ecf @@ -0,0 +1,31 @@ + + + + + + /.svn$ + /CVS$ + /EIFGENs$ + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/demo/demo.ecf b/examples/demo/demo.ecf index ebd52ed..c5953dd 100644 --- a/examples/demo/demo.ecf +++ b/examples/demo/demo.ecf @@ -1,5 +1,5 @@ - + Example/demo for Eiffel ROC CMS library @@ -8,87 +8,101 @@ /CVS$ /EIFGENs$ - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + - + + + - + - + + + - + + + - + + + - + + + - - + + + + - - + + + + diff --git a/examples/demo/modules/demo/cms_demo_module-safe.ecf b/examples/demo/modules/demo/cms_demo_module-safe.ecf index cc692d8..bbb0890 100644 --- a/examples/demo/modules/demo/cms_demo_module-safe.ecf +++ b/examples/demo/modules/demo/cms_demo_module-safe.ecf @@ -1,23 +1,3 @@ - - - - - /.git$ - /.svn$ - /EIFGENs$ - - - + + diff --git a/examples/demo/modules/demo/cms_demo_module.ecf b/examples/demo/modules/demo/cms_demo_module.ecf new file mode 100644 index 0000000..c47d577 --- /dev/null +++ b/examples/demo/modules/demo/cms_demo_module.ecf @@ -0,0 +1,26 @@ + + + + + + /.git$ + /.svn$ + /EIFGENs$ + + + + + + + + + + + + + + + + + diff --git a/examples/demo/site/modules/core/scripts/user_profile.sql b/examples/demo/site/modules/core/scripts/user_profile.sql new file mode 100644 index 0000000..c9adf65 --- /dev/null +++ b/examples/demo/site/modules/core/scripts/user_profile.sql @@ -0,0 +1,6 @@ +CREATE TABLE user_profiles( + `uid` INTEGER NOT NULL CHECK("uid">=0), + `key` VARCHAR(255) NOT NULL, + `value` TEXT, + CONSTRAINT PK_uid_key PRIMARY KEY (uid,key) +); diff --git a/examples/demo/site/modules/files/files/js/basic.css b/examples/demo/site/modules/files/files/js/basic.css new file mode 100644 index 0000000..5238d5c --- /dev/null +++ b/examples/demo/site/modules/files/files/js/basic.css @@ -0,0 +1 @@ +.dropzone,.dropzone *{box-sizing:border-box}.dropzone{position:relative}.dropzone .dz-preview{position:relative;display:inline-block;width:120px;margin:0.5em}.dropzone .dz-preview .dz-progress{display:block;height:15px;border:1px solid #aaa}.dropzone .dz-preview .dz-progress .dz-upload{display:block;height:100%;width:0;background:green}.dropzone .dz-preview .dz-error-message{color:red;display:none}.dropzone .dz-preview.dz-error .dz-error-message,.dropzone .dz-preview.dz-error .dz-error-mark{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{display:block}.dropzone .dz-preview .dz-error-mark,.dropzone .dz-preview .dz-success-mark{position:absolute;display:none;left:30px;top:30px;width:54px;height:58px;left:50%;margin-left:-27px} diff --git a/examples/demo/site/themes/admin/assets/css/style.css b/examples/demo/site/themes/admin/assets/css/style.css new file mode 100644 index 0000000..7b0a705 --- /dev/null +++ b/examples/demo/site/themes/admin/assets/css/style.css @@ -0,0 +1,107 @@ +div { + background-color: #ffdddd; +} + +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; +} +#content #highlighted { + position: relative; + border: solid 1px #ddd; + background-color: #ffc; + width: 70%; + left: 15%; + right: 15%; + padding: 5px; + font-style: italic; +} +#content .preview { + border: solid 1px red; +} + +.sidebar { + padding: 5px; + margin: 3px; + /* border: solid 1px #ccc; */ +} +.sidebar#sidebar_first { + width: 250px; + position: fixed; + top: 45px; + left: 0; + bottom: 0; + width: 200px; + border-right: solid 1px #ddd; +} +.sidebar#sidebar_second { + width: 250px; + float: right; +} +.sidebar + .main { + margin-left: 200px; +} + +#primary-tabs ul.horizontal { + list-style-type: none; +} +#primary-tabs ul.horizontal li { + display: inline; + padding: 2px 5px; + border: solid 1px #ccf; +} +#primary-tabs ul.horizontal li.active { + border-color: #99f #99f #ddd; + border-style: solid solid none; + border-width: 2px 1px 0; + padding: 2px 7px 1px; +} + +#message li.error { + background-color: #f99; + border: solid 1px red; + padding: 5px 2px 5px 2px; +} + +table.with_border thead td { + font-weight: bold; +} +table.with_border td { + border: solid 1px #ccc; + padding: 2px 5px 2px 5px; +} diff --git a/examples/demo/site/themes/admin/assets/favicon.ico b/examples/demo/site/themes/admin/assets/favicon.ico new file mode 100644 index 0000000..a41a159 Binary files /dev/null and b/examples/demo/site/themes/admin/assets/favicon.ico differ diff --git a/examples/demo/site/themes/admin/page.tpl b/examples/demo/site/themes/admin/page.tpl new file mode 100644 index 0000000..9405f39 --- /dev/null +++ b/examples/demo/site/themes/admin/page.tpl @@ -0,0 +1,101 @@ + + + + + + + + + + + + +{if isset="$head"}{$head/}{/if} +{if isset="$styles"}{$styles/}{/if} +{if isset="$scripts"}{$scripts/}{/if} +{if isset="$head_lines"}{$head_lines/}{/if} + + + + + + + + {$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/} + {if condition="$page.is_front"} + {if isset="$page.region_feed_news"} +
{$page.region_feed_news/}
+ {/if} + {if isset="$page.region_feed_forum"} +
{$page.region_feed_forum/}
+ {/if} + {/if} +
+
+
+ + + {$page.region_footer/} + + + {$page.region_bottom/} + + + + + + +{include file="debug.tpl"/} + + diff --git a/examples/demo/site/themes/admin/theme.info b/examples/demo/site/themes/admin/theme.info new file mode 100644 index 0000000..c78a44e --- /dev/null +++ b/examples/demo/site/themes/admin/theme.info @@ -0,0 +1,14 @@ +name=admin +engine=smarty +author=jocelyn fiat +version=0.1 +regions[page_top] = Top +regions[header] = Header +regions[content] = Content +regions[highlighted] = Highlighted +regions[help] = Help +regions[footer] = Footer +regions[sidebar_first] = first sidebar +regions[sidebar_second] = second sidebar +regions[page_bottom] = Bottom +navigation=default_nav diff --git a/launcher/any-safe.ecf b/launcher/any-safe.ecf index 9ad5a1b..8a779af 100644 --- a/launcher/any-safe.ecf +++ b/launcher/any-safe.ecf @@ -1,18 +1,3 @@ - - - - - - - - - - - - - - - - - + + diff --git a/launcher/any.ecf b/launcher/any.ecf index 58aec7e..9440bc5 100644 --- a/launcher/any.ecf +++ b/launcher/any.ecf @@ -1,9 +1,10 @@ - + - diff --git a/launcher/cgi-safe.ecf b/launcher/cgi-safe.ecf index 068d7de..88206a0 100644 --- a/launcher/cgi-safe.ecf +++ b/launcher/cgi-safe.ecf @@ -1,16 +1,3 @@ - - - - - - - - - - - - - - - + + diff --git a/launcher/cgi.ecf b/launcher/cgi.ecf new file mode 100644 index 0000000..dc3bffe --- /dev/null +++ b/launcher/cgi.ecf @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/launcher/libfcgi-safe.ecf b/launcher/libfcgi-safe.ecf index b3289d0..e520d4d 100644 --- a/launcher/libfcgi-safe.ecf +++ b/launcher/libfcgi-safe.ecf @@ -1,16 +1,3 @@ - - - - - - - - - - - - - - - + + diff --git a/launcher/libfcgi.ecf b/launcher/libfcgi.ecf index e85e154..802f917 100644 --- a/launcher/libfcgi.ecf +++ b/launcher/libfcgi.ecf @@ -1,9 +1,10 @@ - + - - + diff --git a/launcher/standalone-safe.ecf b/launcher/standalone-safe.ecf index 3148e44..08cc870 100644 --- a/launcher/standalone-safe.ecf +++ b/launcher/standalone-safe.ecf @@ -1,17 +1,3 @@ - - - - - - - - - - - - - - - - + + diff --git a/launcher/standalone.ecf b/launcher/standalone.ecf index dbf73ff..2590032 100644 --- a/launcher/standalone.ecf +++ b/launcher/standalone.ecf @@ -1,9 +1,10 @@ - + - diff --git a/library/app_env/app_env-safe.ecf b/library/app_env/app_env-safe.ecf index c0d314c..a596365 100644 --- a/library/app_env/app_env-safe.ecf +++ b/library/app_env/app_env-safe.ecf @@ -1,20 +1,3 @@ - - Application Environment (layout, configuration, logger, database, ...) - - - - - - - - - - /EIFGENs$ - /CVS$ - /.svn$ - - - - + + diff --git a/library/app_env/app_env.ecf b/library/app_env/app_env.ecf index f7c8062..8833c6d 100644 --- a/library/app_env/app_env.ecf +++ b/library/app_env/app_env.ecf @@ -1,21 +1,22 @@ - + Application Environment (layout, configuration, logger, database, ...) - diff --git a/library/configuration/config-safe.ecf b/library/configuration/config-safe.ecf index 642acea..1680134 100644 --- a/library/configuration/config-safe.ecf +++ b/library/configuration/config-safe.ecf @@ -1,17 +1,3 @@ - - - - - /.git$ - /EIFGENs$ - /.svn$ - - - - - - - - + + diff --git a/library/configuration/config.ecf b/library/configuration/config.ecf index 9be28f0..72e8bcb 100644 --- a/library/configuration/config.ecf +++ b/library/configuration/config.ecf @@ -1,14 +1,17 @@ - + /.git$ - /EIFGENs$ /.svn$ + /EIFGENs$ - + + + diff --git a/library/configuration/tests/config_tests-safe.ecf b/library/configuration/tests/config_tests-safe.ecf index 351fb38..f3883f0 100644 --- a/library/configuration/tests/config_tests-safe.ecf +++ b/library/configuration/tests/config_tests-safe.ecf @@ -1,18 +1,3 @@ - - - - - /.git$ - /EIFGENs$ - /.svn$ - - - - - - - - - + + diff --git a/library/configuration/tests/config_tests.ecf b/library/configuration/tests/config_tests.ecf index 3f93907..2bb6bf3 100644 --- a/library/configuration/tests/config_tests.ecf +++ b/library/configuration/tests/config_tests.ecf @@ -1,15 +1,18 @@ - + /.git$ - /EIFGENs$ /.svn$ + /EIFGENs$ - - + + + + diff --git a/library/email/email-safe.ecf b/library/email/email-safe.ecf index 70fb3fd..b93d811 100644 --- a/library/email/email-safe.ecf +++ b/library/email/email-safe.ecf @@ -1,18 +1,3 @@ - - - - - /.git$ - /EIFGENs$ - /.svn$ - - - - - - - - - + + diff --git a/library/email/email.ecf b/library/email/email.ecf new file mode 100644 index 0000000..7317a73 --- /dev/null +++ b/library/email/email.ecf @@ -0,0 +1,20 @@ + + + + + + /.git$ + /.svn$ + /EIFGENs$ + + + + + + + + + + + diff --git a/library/gcse/gcse-safe.ecf b/library/gcse/gcse-safe.ecf index cba2c57..5594fd0 100644 --- a/library/gcse/gcse-safe.ecf +++ b/library/gcse/gcse-safe.ecf @@ -1,19 +1,3 @@ - - - - - /.git$ - /EIFGENs$ - /CVS$ - /.svn$ - - - + + diff --git a/library/gcse/gcse.ecf b/library/gcse/gcse.ecf index 463cf6d..9fb986b 100644 --- a/library/gcse/gcse.ecf +++ b/library/gcse/gcse.ecf @@ -1,17 +1,18 @@ - + /.git$ - /EIFGENs$ - /CVS$ /.svn$ + /CVS$ + /EIFGENs$ -