Commit
commit 92709b3d4bec48eee356242ab6622932787ef3a7 Author: Jan DankertDate: Tue Feb 18 00:59:51 2020 +0100 Total refactoring: All components are creating elements. Status: Work in progress. .gitignore | 3 +- modules/cms-ui/themes/default/html/views/README.md | 19 + .../default/html/views/configuration/show.php | 22 +- .../html/views/configuration/show.tpl.src.xml | 4 +- .../default/html/views/configuration/src.php | 4 +- .../themes/default/html/views/element/advanced.php | 322 ++++++++-------- .../html/views/element/advanced.tpl.src.xml | 4 +- .../themes/default/html/views/element/info.php | 35 +- .../default/html/views/element/info.tpl.src.xml | 6 +- .../themes/default/html/views/element/name.php | 34 +- .../themes/default/html/views/element/prop.php | 33 +- .../default/html/views/element/properties.php | 421 +++++++++++---------- .../themes/default/html/views/element/remove.php | 59 ++- .../default/html/views/element/remove.tpl.src.xml | 2 +- .../themes/default/html/views/file/advanced.php | 11 +- .../themes/default/html/views/file/compress.php | 38 +- .../default/html/views/file/compress.tpl.src.xml | 2 +- .../cms-ui/themes/default/html/views/file/edit.php | 16 +- .../default/html/views/file/edit.tpl.src.xml | 2 +- .../themes/default/html/views/file/extract.php | 10 +- .../cms-ui/themes/default/html/views/file/info.php | 179 +++++---- .../default/html/views/file/info.tpl.src.xml | 22 +- .../themes/default/html/views/file/preview.php | 5 +- .../default/html/views/file/preview.tpl.src.xml | 2 +- .../cms-ui/themes/default/html/views/file/pub.php | 24 +- .../themes/default/html/views/file/pub.tpl.src.xml | 4 +- .../themes/default/html/views/file/remove.php | 22 +- .../cms-ui/themes/default/html/views/file/show.php | 3 +- .../themes/default/html/views/file/structure.php | 1 - .../default/html/views/file/structure.tpl.src.xml | 2 +- .../themes/default/html/views/file/uncompress.php | 28 +- .../default/html/views/file/uncompress.tpl.src.xml | 2 +- .../themes/default/html/views/file/value.php | 22 +- .../themes/default/html/views/folder/advanced.php | 154 ++++---- .../default/html/views/folder/advanced.tpl.src.xml | 26 +- .../themes/default/html/views/folder/content.php | 102 +++-- .../default/html/views/folder/content.tpl.src.xml | 8 +- .../themes/default/html/views/folder/create.php | 63 +-- .../default/html/views/folder/create.tpl.src.xml | 14 +- .../default/html/views/folder/createfile.php | 41 +- .../html/views/folder/createfile.tpl.src.xml | 4 +- .../default/html/views/folder/createfolder.php | 19 +- .../html/views/folder/createfolder.tpl.src.xml | 2 +- .../default/html/views/folder/createimage.php | 41 +- .../html/views/folder/createimage.tpl.src.xml | 4 +- .../default/html/views/folder/createlink.php | 16 +- .../default/html/views/folder/createpage.php | 23 +- .../default/html/views/folder/createtext.php | 38 +- .../html/views/folder/createtext.tpl.src.xml | 4 +- .../themes/default/html/views/folder/createurl.php | 22 +- .../themes/default/html/views/folder/edit.php | 79 ++-- .../default/html/views/folder/edit.tpl.src.xml | 8 +- .../themes/default/html/views/folder/inherit.php | 21 +- .../default/html/views/folder/inherit.tpl.src.xml | 4 +- .../themes/default/html/views/folder/order.php | 58 +-- .../default/html/views/folder/order.tpl.src.xml | 8 +- .../themes/default/html/views/folder/pub.php | 121 +++--- .../default/html/views/folder/pub.tpl.src.xml | 12 +- .../themes/default/html/views/folder/remove.php | 37 +- .../themes/default/html/views/folder/show.php | 75 ++-- .../default/html/views/folder/show.tpl.src.xml | 8 +- .../themes/default/html/views/folder/structure.php | 1 - .../html/views/folder/structure.tpl.src.xml | 2 +- .../cms-ui/themes/default/html/views/group/add.php | 9 +- .../themes/default/html/views/group/info.php | 38 +- .../default/html/views/group/info.tpl.src.xml | 2 +- .../default/html/views/group/memberships.php | 50 +-- .../html/views/group/memberships.tpl.src.xml | 4 +- .../themes/default/html/views/group/prop.php | 12 +- .../themes/default/html/views/group/remove.php | 28 +- .../default/html/views/group/remove.tpl.src.xml | 2 +- .../themes/default/html/views/group/rights.php | 120 +++--- .../default/html/views/group/rights.tpl.src.xml | 14 +- .../themes/default/html/views/grouplist/add.php | 9 +- .../themes/default/html/views/grouplist/show.php | 29 +- .../default/html/views/grouplist/show.tpl.src.xml | 6 +- .../themes/default/html/views/image/compress.php | 38 +- .../default/html/views/image/compress.tpl.src.xml | 2 +- .../themes/default/html/views/image/edit.php | 16 +- .../themes/default/html/views/image/extract.php | 10 +- .../themes/default/html/views/image/preview.php | 3 +- .../default/html/views/image/preview.tpl.src.xml | 2 +- .../cms-ui/themes/default/html/views/image/pub.php | 24 +- .../default/html/views/image/pub.tpl.src.xml | 4 +- .../themes/default/html/views/image/remove.php | 48 +-- .../themes/default/html/views/image/show.php | 23 +- .../default/html/views/image/show.tpl.src.xml | 2 +- .../themes/default/html/views/image/size.php | 97 ++--- .../default/html/views/image/size.tpl.src.xml | 4 +- .../themes/default/html/views/image/structure.php | 1 - .../default/html/views/image/structure.tpl.src.xml | 2 +- .../themes/default/html/views/image/uncompress.php | 28 +- .../html/views/image/uncompress.tpl.src.xml | 2 +- .../themes/default/html/views/image/value.php | 22 +- .../themes/default/html/views/language/add.php | 11 +- .../themes/default/html/views/language/info.php | 24 +- .../themes/default/html/views/language/listing.php | 77 ++-- .../html/views/language/listing.tpl.src.xml | 2 +- .../themes/default/html/views/language/prop.php | 33 +- .../default/html/views/language/prop.tpl.src.xml | 2 +- .../themes/default/html/views/language/remove.php | 34 +- .../default/html/views/language/remove.tpl.src.xml | 2 +- .../default/html/views/language/structure.php | 1 - .../html/views/language/structure.tpl.src.xml | 2 +- .../themes/default/html/views/languagelist/add.php | 11 +- .../default/html/views/languagelist/show.php | 74 ++-- .../html/views/languagelist/show.tpl.src.xml | 6 +- .../cms-ui/themes/default/html/views/link/edit.php | 18 +- .../default/html/views/link/edit.tpl.src.xml | 2 +- .../themes/default/html/views/link/remove.php | 22 +- .../themes/default/html/views/link/structure.php | 1 - .../default/html/views/link/structure.tpl.src.xml | 2 +- .../themes/default/html/views/login/license.php | 91 +++-- .../default/html/views/login/license.tpl.src.xml | 12 +- .../themes/default/html/views/login/login.php | 161 ++++---- .../default/html/views/login/login.tpl.src.xml | 36 +- .../themes/default/html/views/login/openid.php | 77 ++-- .../default/html/views/login/openid.tpl.src.xml | 18 +- .../themes/default/html/views/login/password.php | 42 +- .../default/html/views/login/password.tpl.src.xml | 2 +- .../default/html/views/login/passwordcode.php | 38 +- .../themes/default/html/views/login/register.php | 37 +- .../default/html/views/login/register.tpl.src.xml | 2 +- .../default/html/views/login/registercode.php | 43 +-- .../themes/default/html/views/model/info.php | 18 +- .../themes/default/html/views/model/listing.php | 69 ++-- .../default/html/views/model/listing.tpl.src.xml | 2 +- .../themes/default/html/views/model/prop.php | 27 +- .../default/html/views/model/prop.tpl.src.xml | 2 +- .../themes/default/html/views/model/remove.php | 34 +- .../default/html/views/model/remove.tpl.src.xml | 2 +- .../themes/default/html/views/model/structure.php | 1 - .../default/html/views/model/structure.tpl.src.xml | 2 +- .../themes/default/html/views/modellist/add.php | 10 +- .../themes/default/html/views/modellist/show.php | 65 ++-- .../default/html/views/modellist/show.tpl.src.xml | 6 +- .../themes/default/html/views/object/aclform.php | 110 +++--- .../default/html/views/object/aclform.tpl.src.xml | 20 +- .../themes/default/html/views/object/copy.php | 20 +- .../default/html/views/object/copy.tpl.src.xml | 8 +- .../themes/default/html/views/object/info.php | 227 ++++++----- .../default/html/views/object/info.tpl.src.xml | 32 +- .../themes/default/html/views/object/inherit.php | 33 +- .../default/html/views/object/inherit.tpl.src.xml | 4 +- .../themes/default/html/views/object/name.php | 15 +- .../default/html/views/object/name.tpl.src.xml | 4 +- .../themes/default/html/views/object/prop.php | 16 +- .../default/html/views/object/prop.tpl.src.xml | 4 +- .../themes/default/html/views/object/rights.php | 110 +++--- .../default/html/views/object/rights.tpl.src.xml | 8 +- .../themes/default/html/views/object/settings.php | 38 +- .../default/html/views/object/settings.tpl.src.xml | 4 +- .../default/html/views/page/changetemplate.php | 28 +- .../html/views/page/changetemplate.tpl.src.xml | 4 +- .../views/page/changetemplateselectelements.php | 18 +- .../page/changetemplateselectelements.tpl.src.xml | 4 +- .../cms-ui/themes/default/html/views/page/edit.php | 55 +-- .../default/html/views/page/edit.tpl.src.xml | 8 +- .../cms-ui/themes/default/html/views/page/form.php | 151 +++----- .../default/html/views/page/form.tpl.src.xml | 22 +- .../cms-ui/themes/default/html/views/page/info.php | 175 +++++---- .../default/html/views/page/info.tpl.src.xml | 10 +- .../cms-ui/themes/default/html/views/page/name.php | 39 +- .../default/html/views/page/name.tpl.src.xml | 6 +- .../themes/default/html/views/page/preview.php | 25 +- .../default/html/views/page/preview.tpl.src.xml | 10 +- .../cms-ui/themes/default/html/views/page/pub.php | 33 +- .../themes/default/html/views/page/pub.tpl.src.xml | 4 +- .../themes/default/html/views/page/remove.php | 22 +- .../cms-ui/themes/default/html/views/page/show.php | 3 +- .../cms-ui/themes/default/html/views/page/src.php | 17 +- .../themes/default/html/views/page/src.tpl.src.xml | 6 +- .../themes/default/html/views/page/structure.php | 1 - .../default/html/views/page/structure.tpl.src.xml | 2 +- .../default/html/views/pageelement/advanced.php | 42 +- .../html/views/pageelement/advanced.tpl.src.xml | 4 +- .../themes/default/html/views/pageelement/diff.php | 88 +++-- .../html/views/pageelement/diff.tpl.src.xml | 16 +- .../themes/default/html/views/pageelement/edit.php | 28 +- .../html/views/pageelement/edit.tpl.src.xml | 4 +- .../default/html/views/pageelement/export.php | 20 +- .../default/html/views/pageelement/history.php | 164 ++++---- .../html/views/pageelement/history.tpl.src.xml | 18 +- .../default/html/views/pageelement/import.php | 27 +- .../themes/default/html/views/pageelement/info.php | 104 +++-- .../html/views/pageelement/info.tpl.src.xml | 14 +- .../themes/default/html/views/pageelement/link.php | 99 ++--- .../html/views/pageelement/link.tpl.src.xml | 2 +- .../default/html/views/pageelement/preview.php | 5 +- .../html/views/pageelement/preview.tpl.src.xml | 2 +- .../themes/default/html/views/pageelement/prop.php | 144 ++++--- .../html/views/pageelement/prop.tpl.src.xml | 18 +- .../themes/default/html/views/pageelement/pub.php | 33 +- .../default/html/views/pageelement/pub.tpl.src.xml | 4 +- .../default/html/views/pageelement/structure.php | 5 +- .../html/views/pageelement/structure.tpl.src.xml | 2 +- .../default/html/views/pageelement/value.php | 402 ++++++++++---------- .../html/views/pageelement/value.tpl.src.xml | 84 ++-- .../default/html/views/profile/confirmmail.php | 23 +- .../themes/default/html/views/profile/edit.php | 116 +++--- .../default/html/views/profile/edit.tpl.src.xml | 18 +- .../themes/default/html/views/profile/history.php | 38 +- .../default/html/views/profile/history.tpl.src.xml | 8 +- .../themes/default/html/views/profile/mail.php | 33 +- .../default/html/views/profile/mail.tpl.src.xml | 2 +- .../default/html/views/profile/memberships.php | 25 +- .../themes/default/html/views/profile/pw.php | 57 ++- .../default/html/views/profile/pw.tpl.src.xml | 6 +- .../themes/default/html/views/project/add.php | 52 +-- .../default/html/views/project/add.tpl.src.xml | 2 +- .../themes/default/html/views/project/edit.php | 40 +- .../default/html/views/project/edit.tpl.src.xml | 8 +- .../themes/default/html/views/project/export.php | 11 +- .../themes/default/html/views/project/history.php | 81 ++-- .../default/html/views/project/history.tpl.src.xml | 14 +- .../themes/default/html/views/project/info.php | 11 +- .../default/html/views/project/info.tpl.src.xml | 2 +- .../default/html/views/project/maintenance.php | 32 +- .../html/views/project/maintenance.tpl.src.xml | 2 +- .../themes/default/html/views/project/prop.php | 167 +++----- .../default/html/views/project/prop.tpl.src.xml | 54 +-- .../themes/default/html/views/project/remove.php | 34 +- .../default/html/views/project/remove.tpl.src.xml | 2 +- .../themes/default/html/views/projectlist/add.php | 35 +- .../default/html/views/projectlist/add.tpl.src.xml | 2 +- .../themes/default/html/views/projectlist/edit.php | 27 +- .../html/views/projectlist/edit.tpl.src.xml | 6 +- .../default/html/views/projectlist/history.php | 46 ++- .../html/views/projectlist/history.tpl.src.xml | 4 +- .../themes/default/html/views/search/edit.php | 135 +++---- .../default/html/views/search/edit.tpl.src.xml | 12 +- .../themes/default/html/views/search/result.php | 27 +- .../default/html/views/search/result.tpl.src.xml | 8 +- .../default/html/views/start/applications.php | 25 +- .../html/views/start/applications.tpl.src.xml | 2 +- .../default/html/views/start/projectmenu.php | 62 ++- .../html/views/start/projectmenu.tpl.src.xml | 10 +- .../html/views/start/userprojecttimeline.php | 64 ++-- .../views/start/userprojecttimeline.tpl.src.xml | 12 +- .../themes/default/html/views/template/addel.php | 42 +- .../default/html/views/template/addel.tpl.src.xml | 2 +- .../themes/default/html/views/template/edit.php | 68 ++-- .../default/html/views/template/edit.tpl.src.xml | 14 +- .../default/html/views/template/extension.php | 16 +- .../html/views/template/extension.tpl.src.xml | 6 +- .../themes/default/html/views/template/info.php | 29 +- .../default/html/views/template/info.tpl.src.xml | 2 +- .../themes/default/html/views/template/listing.php | 28 +- .../html/views/template/listing.tpl.src.xml | 2 +- .../themes/default/html/views/template/preview.php | 29 +- .../html/views/template/preview.tpl.src.xml | 6 +- .../themes/default/html/views/template/prop.php | 33 +- .../themes/default/html/views/template/pub.php | 33 +- .../default/html/views/template/pub.tpl.src.xml | 4 +- .../themes/default/html/views/template/remove.php | 34 +- .../default/html/views/template/remove.tpl.src.xml | 2 +- .../themes/default/html/views/template/src.php | 12 +- .../default/html/views/template/src.tpl.src.xml | 2 +- .../default/html/views/template/srcelement.php | 54 +-- .../themes/default/html/views/templatelist/add.php | 44 ++- .../html/views/templatelist/add.tpl.src.xml | 2 +- .../default/html/views/templatelist/show.php | 36 +- .../html/views/templatelist/show.tpl.src.xml | 2 +- .../themes/default/html/views/text/compress.php | 38 +- .../default/html/views/text/compress.tpl.src.xml | 2 +- .../cms-ui/themes/default/html/views/text/edit.php | 16 +- .../themes/default/html/views/text/extract.php | 10 +- .../themes/default/html/views/text/preview.php | 3 +- .../default/html/views/text/preview.tpl.src.xml | 2 +- .../cms-ui/themes/default/html/views/text/pub.php | 24 +- .../themes/default/html/views/text/pub.tpl.src.xml | 4 +- .../themes/default/html/views/text/remove.php | 48 +-- .../cms-ui/themes/default/html/views/text/show.php | 3 +- .../cms-ui/themes/default/html/views/text/size.php | 97 ++--- .../default/html/views/text/size.tpl.src.xml | 4 +- .../themes/default/html/views/text/structure.php | 1 - .../default/html/views/text/structure.tpl.src.xml | 2 +- .../themes/default/html/views/text/uncompress.php | 28 +- .../default/html/views/text/uncompress.tpl.src.xml | 2 +- .../themes/default/html/views/text/value.php | 22 +- .../default/html/views/text/value.tpl.src.xml | 2 +- .../themes/default/html/views/title/ping.php | 3 +- .../themes/default/html/views/title/show.php | 408 ++++++++++++-------- .../default/html/views/title/show.tpl.src.xml | 144 +++---- .../cms-ui/themes/default/html/views/url/edit.php | 12 +- .../themes/default/html/views/url/preview.php | 6 +- .../default/html/views/url/preview.tpl.src.xml | 4 +- .../themes/default/html/views/url/remove.php | 22 +- .../themes/default/html/views/url/structure.php | 1 - .../default/html/views/url/structure.tpl.src.xml | 2 +- .../cms-ui/themes/default/html/views/user/add.php | 9 +- .../themes/default/html/views/user/history.php | 38 +- .../default/html/views/user/history.tpl.src.xml | 8 +- .../cms-ui/themes/default/html/views/user/info.php | 153 ++++---- .../default/html/views/user/info.tpl.src.xml | 28 +- .../themes/default/html/views/user/listing.php | 57 +-- .../default/html/views/user/listing.tpl.src.xml | 2 +- .../themes/default/html/views/user/memberships.php | 42 +- .../html/views/user/memberships.tpl.src.xml | 4 +- .../cms-ui/themes/default/html/views/user/prop.php | 129 +++---- .../default/html/views/user/prop.tpl.src.xml | 16 +- .../cms-ui/themes/default/html/views/user/pw.php | 89 ++--- .../themes/default/html/views/user/pw.tpl.src.xml | 10 +- .../themes/default/html/views/user/remove.php | 30 +- .../default/html/views/user/remove.tpl.src.xml | 4 +- .../themes/default/html/views/user/rights.php | 125 +++--- .../default/html/views/user/rights.tpl.src.xml | 14 +- .../themes/default/html/views/userlist/add.php | 9 +- .../themes/default/html/views/userlist/show.php | 65 ++-- .../default/html/views/userlist/show.tpl.src.xml | 14 +- modules/template-engine/CMSElement.class.php | 26 ++ modules/template-engine/Element.class.php | 173 ++++++++- modules/template-engine/HtmlElement.class.php | 57 +++ modules/template-engine/PHPBlockElement.class.php | 170 +++++++++ modules/template-engine/TemplateCompiler.php | 4 + .../components/html/Component.class.php | 184 +-------- .../components/html/FieldComponent.class.php | 18 +- .../components/html/button/Button.class.php | 10 +- .../components/html/checkbox/Checkbox.class.php | 51 ++- .../components/html/column/Column.class.php | 70 ++-- .../components/html/date/Date.class.php | 20 +- .../components/html/dummy/Dummy.class.php | 11 +- .../components/html/editor/Editor.class.php | 48 +-- .../components/html/else/Else.class.php | 17 +- .../components/html/focus/Focus.class.php | 23 +- .../components/html/form/Form.class.php | 201 ++++++---- .../components/html/group/Group.class.php | 59 ++- .../components/html/group/group.css | 8 +- .../template-engine/components/html/group/group.js | 2 +- .../components/html/group/group.less | 9 +- .../components/html/group/group.min.css | 2 +- .../components/html/group/group.min.js | 2 +- .../components/html/header/Header.class.php | 9 +- .../components/html/hidden/Hidden.class.php | 36 +- .../components/html/if/If.class.php | 52 +-- .../components/html/image/Image.class.php | 77 ++-- .../components/html/include/Include.class.php | 5 +- .../components/html/input/Input.class.php | 108 ++---- .../components/html/inputarea/Inputarea.class.php | 66 ++-- .../components/html/insert/Insert.class.php | 39 +- .../components/html/label/Label.class.php | 47 ++- .../components/html/link/Link.class.php | 131 +++---- .../components/html/list/List.class.php | 19 +- .../components/html/logo/Logo.class.php | 54 ++- .../components/html/newline/Newline.class.php | 3 + .../components/html/output/Output.class.php | 12 +- .../components/html/page/Page.class.php | 15 + .../components/html/page/Window.class.php | 10 - .../components/html/part/Part.class.php | 23 +- .../components/html/password/Password.class.php | 53 ++- .../components/html/qrcode/Qrcode.class.php | 30 +- .../components/html/radio/Radio.class.php | 46 ++- .../components/html/radiobox/Radiobox.class.php | 23 +- .../components/html/row/Row.class.php | 21 +- .../components/html/selectbox/Selectbox.class.php | 94 ++--- .../components/html/selector/Selector.class.php | 11 +- .../components/html/set/Set.class.php | 26 +- .../components/html/table/Table.class.php | 44 ++- .../components/html/text/Text.class.php | 104 ++--- .../components/html/tree/Tree.class.php | 17 +- .../components/html/upload/Upload.class.php | 49 ++- .../components/html/user/User.class.php | 17 +- .../components/html/window/Window.class.php | 9 + .../engine/TemplateEngine.class.php | 5 +- modules/template-engine/require.php | 3 + modules/util/Http.class.php | 2 +- 366 files changed, 6695 insertions(+), 6078 deletions(-)