├── public ├── favicon.ico ├── css │ ├── Simple │ │ ├── test.css │ │ ├── Dark │ │ │ └── test.css │ │ └── Light │ │ │ └── test.css │ ├── bootstrap-3.3.2-dist │ │ └── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ └── admin.css ├── js │ ├── Simple │ │ ├── script.js │ │ ├── Dark │ │ │ └── script.js │ │ └── Light │ │ │ └── script.js │ ├── scriptSocial.js │ ├── npm.js │ └── Blog │ │ └── Base │ │ └── cbpAnimatedHeader.min.js ├── robots.txt ├── uploads │ └── images │ │ ├── .gitignore │ │ └── en.gif ├── en.gif ├── .phpintel │ ├── index │ ├── 05e4de7ad410785eed2a46f76ac6f91e │ ├── 075c126c776d208fc904ad001c07c0eb │ ├── 077b4ed66c9ed030d5d53877c65492bd │ ├── 084fac49991d7f27e06f93f8d49c2799 │ ├── 0987ea6db6e6e3334912ca573088394e │ ├── 09a34c9276901db998dafc1a39baf114 │ ├── 102790eae268f0ea784914497563afec │ ├── 2b4e9bb82b588ae0e04337093418f190 │ ├── 3d99ee99843a510a04cbeb445da4a8fe │ ├── 5889216526e54c2199391a232ed4e2cd │ ├── 6c76e3f406a0cd3b870747dbdaabd755 │ ├── 772bb898ba0934e4c8b692948ae1cee3 │ ├── 7a9987de91dbe1e872deb2ffd7a9ca01 │ ├── 8f4cd2979f8583341c503397531845bb │ ├── 99174fa857b20faca7e578ca57dbca59 │ ├── a0a066d59d34f096655a990075c9ff99 │ ├── c9cf3c4feb29352e8fac8c0de7a996b6 │ ├── d42f463f4056fcd5c5e2a3b12b08d3b6 │ ├── ddc5d6ce414254f4534f0cc89fb9510d │ └── ec28afbc81904598aa996313b53bcb6a ├── AngkorCMS │ ├── News │ │ ├── Less-128.png │ │ ├── More-128.png │ │ └── circle_close_delete-128.png │ └── Medias │ │ └── picture │ │ └── Folder.png ├── tinymce │ ├── plugins │ │ ├── example_dependency │ │ │ └── plugin.min.js │ │ ├── media │ │ │ └── moxieplayer.swf │ │ ├── emoticons │ │ │ └── img │ │ │ │ ├── smiley-cry.gif │ │ │ │ ├── smiley-cool.gif │ │ │ │ ├── smiley-frown.gif │ │ │ │ ├── smiley-kiss.gif │ │ │ │ ├── smiley-smile.gif │ │ │ │ ├── smiley-wink.gif │ │ │ │ ├── smiley-yell.gif │ │ │ │ ├── smiley-innocent.gif │ │ │ │ ├── smiley-laughing.gif │ │ │ │ ├── smiley-sealed.gif │ │ │ │ ├── smiley-embarassed.gif │ │ │ │ ├── smiley-surprised.gif │ │ │ │ ├── smiley-tongue-out.gif │ │ │ │ ├── smiley-undecided.gif │ │ │ │ ├── smiley-foot-in-mouth.gif │ │ │ │ └── smiley-money-mouth.gif │ │ ├── example │ │ │ ├── dialog.html │ │ │ └── plugin.min.js │ │ ├── print │ │ │ └── plugin.min.js │ │ ├── hr │ │ │ └── plugin.min.js │ │ ├── anchor │ │ │ └── plugin.min.js │ │ ├── nonbreaking │ │ │ └── plugin.min.js │ │ ├── code │ │ │ └── plugin.min.js │ │ └── directionality │ │ │ └── plugin.min.js │ ├── skins │ │ └── lightgray │ │ │ ├── img │ │ │ ├── anchor.gif │ │ │ ├── loader.gif │ │ │ ├── object.gif │ │ │ └── trans.gif │ │ │ └── fonts │ │ │ ├── tinymce.eot │ │ │ ├── tinymce.ttf │ │ │ ├── tinymce.woff │ │ │ ├── tinymce-small.eot │ │ │ ├── tinymce-small.ttf │ │ │ └── tinymce-small.woff │ └── langs │ │ └── readme.md ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 └── .htaccess ├── database ├── seeds │ ├── .gitkeep │ └── DatabaseSeeder.php ├── migrations │ ├── .gitkeep │ └── 2014_10_12_100000_create_password_resets_table.php └── .gitignore ├── app ├── Handlers │ ├── Events │ │ └── .gitkeep │ └── Commands │ │ └── .gitkeep ├── Events │ └── Event.php ├── Commands │ └── Command.php ├── Http │ ├── Requests │ │ └── Request.php │ ├── Controllers │ │ ├── Controller.php │ │ └── AdminController.php │ └── Middleware │ │ ├── VerifyCsrfToken.php │ │ └── IsInstallationPhase.php ├── Providers │ ├── ConfigServiceProvider.php │ ├── BusServiceProvider.php │ ├── EventServiceProvider.php │ └── AppServiceProvider.php └── Console │ ├── Commands │ └── Inspire.php │ └── Kernel.php ├── resources ├── views │ ├── vendor │ │ └── .gitkeep │ ├── templates │ │ └── Simple │ │ │ ├── test.blade.php │ │ │ └── Dark │ │ │ └── test.blade.php │ ├── test.blade.php │ ├── angkorcms │ │ ├── content │ │ │ └── content.blade.php │ │ ├── pages │ │ │ ├── groupsmodules │ │ │ │ └── show.blade.php │ │ │ ├── block │ │ │ │ ├── listBlock.blade.php │ │ │ │ ├── block.blade.php │ │ │ │ └── createForm.blade.php │ │ │ └── page_trans │ │ │ │ ├── blockTable.blade.php │ │ │ │ └── moduleRow.blade.php │ │ ├── medias │ │ │ ├── form │ │ │ │ ├── modalscript.blade.php │ │ │ │ ├── chooseMultipleImage.blade.php │ │ │ │ ├── imageSelected.blade.php │ │ │ │ ├── chooseOneImage.blade.php │ │ │ │ ├── scriptImagesUrl.blade.php │ │ │ │ ├── selectImageWithId.blade.php │ │ │ │ ├── chooseOneImageWithId.blade.php │ │ │ │ ├── scriptChooseOneImageWithId.blade.php │ │ │ │ ├── selectImage.blade.php │ │ │ │ └── scriptChooseMultipleImage.blade.php │ │ │ ├── image.blade.php │ │ │ └── folder.blade.php │ │ ├── map │ │ │ └── map.blade.php │ │ ├── multilanguages │ │ │ └── changelang.blade.php │ │ ├── listing │ │ │ ├── makerListItemRow.blade.php │ │ │ └── list.blade.php │ │ ├── news │ │ │ ├── list.blade.php │ │ │ └── modules │ │ │ │ ├── list.blade.php │ │ │ │ └── show.blade.php │ │ └── users │ │ │ ├── show.blade.php │ │ │ └── groups │ │ │ └── show.blade.php │ ├── emails │ │ └── password.blade.php │ ├── home.blade.php │ └── install │ │ ├── create-env.blade.php │ │ └── install-db.blade.php ├── assets │ └── less │ │ ├── bootstrap │ │ ├── mixins │ │ │ ├── center-block.less │ │ │ ├── text-emphasis.less │ │ │ ├── size.less │ │ │ ├── background-variant.less │ │ │ ├── opacity.less │ │ │ ├── text-overflow.less │ │ │ ├── tab-focus.less │ │ │ ├── labels.less │ │ │ ├── resize.less │ │ │ ├── progress-bar.less │ │ │ ├── nav-divider.less │ │ │ ├── reset-filter.less │ │ │ ├── alerts.less │ │ │ ├── nav-vertical-align.less │ │ │ ├── responsive-visibility.less │ │ │ ├── pagination.less │ │ │ ├── border-radius.less │ │ │ ├── panels.less │ │ │ ├── list-group.less │ │ │ ├── hide-text.less │ │ │ └── clearfix.less │ │ ├── wells.less │ │ ├── breadcrumbs.less │ │ └── responsive-embed.less │ │ └── app.less └── lang │ ├── en │ ├── angkorcmslogin.php │ ├── angkorcmsprofile.php │ ├── angkorcmsnewsmodule.php │ └── pagination.php │ └── fr │ ├── angkorcmslogin.php │ ├── angkorcmsprofile.php │ ├── angkorcmsnewsmodule.php │ └── pagination.php ├── storage ├── .gitignore ├── app │ └── .gitignore ├── debugbar │ └── .gitignore ├── logs │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── bootstrap └── cache │ └── .gitignore ├── Plugin-Default ├── resources │ └── views │ │ ├── maker.blade.php │ │ └── -showView-.blade.php ├── Http │ ├── Controllers │ │ ├── -Object-Controller.php │ │ └── -Object-BaseController.php │ ├── routes.php │ ├── Requests │ │ └── -Object-Request.php │ └── ViewComposers │ │ └── MakerComposer.php ├── config │ ├── -pluginmin-(unique).php │ └── -pluginmin-(customizable).php ├── -Object-.php ├── Repositories │ ├── Contracts │ │ └── -Object-RepositoryInterface.php │ └── Eloquent │ │ └── -Object-Repository.php ├── ReadMe.txt └── database │ └── seeds │ └── DatabaseSeeder.php ├── angkorcms ├── maps │ ├── vendor │ │ ├── composer │ │ │ ├── installed.json │ │ │ ├── autoload_classmap.php │ │ │ ├── autoload_namespaces.php │ │ │ └── autoload_psr4.php │ │ └── autoload.php │ ├── .gitignore │ ├── src │ │ ├── .phpintel │ │ │ ├── index │ │ │ ├── 2de78ceb75f02e19a948c7370e81fd79 │ │ │ ├── 6eec14409340ec3c6a9e4ec843488ac2 │ │ │ ├── 8e772d51984e6ea0f37f048008526b55 │ │ │ └── e2a31c3864524e32cc0cb0583c7dc92c │ │ ├── ReadMe.txt │ │ ├── Http │ │ │ ├── routes.php │ │ │ ├── Controllers │ │ │ │ ├── AngkorCMSMapBaseController.php │ │ │ │ └── AngkorCMSMapController.php │ │ │ ├── Requests │ │ │ │ └── AngkorCMSMapRequest.php │ │ │ └── ViewComposers │ │ │ │ └── MakerComposer.php │ │ ├── Repositories │ │ │ └── Contracts │ │ │ │ └── AngkorCMSMapRepositoryInterface.php │ │ ├── resources │ │ │ └── views │ │ │ │ └── map.blade.php │ │ ├── AngkorCMSMap.php │ │ └── config │ │ │ └── angkorcmsmap.php │ ├── composer.json │ └── Readme.txt ├── news │ ├── vendor │ │ ├── composer │ │ │ ├── installed.json │ │ │ ├── autoload_classmap.php │ │ │ ├── autoload_namespaces.php │ │ │ └── autoload_psr4.php │ │ └── autoload.php │ ├── .gitignore │ ├── src │ │ ├── assets │ │ │ ├── Less-128.png │ │ │ ├── More-128.png │ │ │ └── circle_close_delete-128.png │ │ ├── config │ │ │ ├── angkorcmsnewsmodule.php │ │ │ └── angkorcmsnews.php │ │ ├── Repositories │ │ │ └── Contracts │ │ │ │ └── AngkorCMSPostRepositoryInterface.php │ │ ├── resources │ │ │ ├── lang │ │ │ │ ├── en │ │ │ │ │ └── angkorcmsnewsmodule.php │ │ │ │ └── fr │ │ │ │ │ └── angkorcmsnewsmodule.php │ │ │ └── views │ │ │ │ ├── list.blade.php │ │ │ │ └── modules │ │ │ │ ├── list.blade.php │ │ │ │ └── show.blade.php │ │ ├── AngkorCMSTag.php │ │ ├── AngkorCMSComment.php │ │ ├── Http │ │ │ ├── Controllers │ │ │ │ └── AngkorCMSNewsBaseController.php │ │ │ ├── Requests │ │ │ │ └── AngkorCMSCommentRequest.php │ │ │ └── routes.php │ │ └── database │ │ │ ├── migrations │ │ │ └── 2015_03_04_035906_create_angkorcms_tags_table.php │ │ │ └── seeds │ │ │ └── DatabaseSeeder.php │ └── composer.json ├── pages │ ├── vendor │ │ ├── composer │ │ │ ├── installed.json │ │ │ ├── autoload_classmap.php │ │ │ ├── autoload_namespaces.php │ │ │ └── autoload_psr4.php │ │ └── autoload.php │ ├── .gitignore │ ├── src │ │ ├── resources │ │ │ ├── templates │ │ │ │ ├── css │ │ │ │ │ └── Simple │ │ │ │ │ │ ├── test.css │ │ │ │ │ │ ├── Dark │ │ │ │ │ │ └── test.css │ │ │ │ │ │ └── Light │ │ │ │ │ │ └── test.css │ │ │ │ ├── js │ │ │ │ │ └── Simple │ │ │ │ │ │ ├── script.js │ │ │ │ │ │ ├── Dark │ │ │ │ │ │ └── script.js │ │ │ │ │ │ └── Light │ │ │ │ │ │ └── script.js │ │ │ │ └── blade │ │ │ │ │ └── Simple │ │ │ │ │ ├── test.blade.php │ │ │ │ │ └── Dark │ │ │ │ │ └── test.blade.php │ │ │ └── views │ │ │ │ ├── groupsmodules │ │ │ │ └── show.blade.php │ │ │ │ ├── block │ │ │ │ ├── listBlock.blade.php │ │ │ │ ├── block.blade.php │ │ │ │ └── createForm.blade.php │ │ │ │ └── page_trans │ │ │ │ ├── blockTable.blade.php │ │ │ │ └── moduleRow.blade.php │ │ ├── config │ │ │ ├── angkorcmspages.php │ │ │ └── angkorcmsgroupsmodules.php │ │ ├── Facades │ │ │ └── AngkorCMSBladeFacade.php │ │ ├── Repositories │ │ │ └── Contracts │ │ │ │ ├── AngkorCMSPageTransBlockRepositoryInterface.php │ │ │ │ ├── AngkorCMSBlockRepositoryInterface.php │ │ │ │ ├── AngkorCMSPageTransRepositoryInterface.php │ │ │ │ ├── AngkorCMSTemplateRepositoryInterface.php │ │ │ │ ├── AngkorCMSPageTransBlockModuleRepositoryInterface.php │ │ │ │ ├── AngkorCMSThemeRepositoryInterface.php │ │ │ │ ├── AngkorCMSPageRepositoryInterface.php │ │ │ │ ├── AngkorCMSModuleRepositoryInterface.php │ │ │ │ ├── AngkorCMSModuleGroupModuleRepositoryInterface.php │ │ │ │ └── AngkorCMSGroupModuleRepositoryInterface.php │ │ ├── Http │ │ │ ├── Requests │ │ │ │ ├── AngkorCMSTemplateRequest.php │ │ │ │ ├── ReorderAngkorCMSModuleRequest.php │ │ │ │ ├── AngkorCMSModuleRequest.php │ │ │ │ ├── AngkorCMSPageRequest.php │ │ │ │ ├── AngkorCMSPageTransUpdateRequest.php │ │ │ │ ├── AngkorCMSBlockRequest.php │ │ │ │ ├── AddAngkorCMSModuleRequest.php │ │ │ │ ├── AngkorCMSThemeRequest.php │ │ │ │ ├── AngkorCMSPageTransRequest.php │ │ │ │ └── AngkorCMSGroupModuleRequest.php │ │ │ └── Controllers │ │ │ │ └── AngkorCMSPageBaseController.php │ │ ├── AngkorCMSBlock.php │ │ ├── AngkorCMSModule.php │ │ ├── AngkorCMSTheme.php │ │ ├── AngkorCMSGroupModule.php │ │ ├── AngkorCMSModuleGroupModule.php │ │ ├── database │ │ │ └── migrations │ │ │ │ ├── 2015_05_08_000000_create_angkorcms_templates_table.php │ │ │ │ └── 2015_05_08_000002_create_angkorcms_pages_table.php │ │ ├── AngkorCMSTemplate.php │ │ ├── AngkorCMSPage.php │ │ ├── AngkorCMSPageTransBlockModule.php │ │ ├── Commands │ │ │ └── AngkorCMSPagesInstallCommand.php │ │ ├── AngkorCMSPageTrans.php │ │ └── AngkorCMSPageTransBlock.php │ └── composer.json ├── users │ ├── vendor │ │ ├── composer │ │ │ ├── installed.json │ │ │ ├── autoload_classmap.php │ │ │ ├── autoload_namespaces.php │ │ │ └── autoload_psr4.php │ │ └── autoload.php │ ├── .gitignore │ ├── composer.json │ └── src │ │ ├── config │ │ ├── angkorcmslogin.php │ │ ├── angkorcmsprofile.php │ │ └── angkorcmsusers.php │ │ ├── resources │ │ ├── lang │ │ │ ├── en │ │ │ │ ├── angkorcmslogin.php │ │ │ │ └── angkorcmsprofile.php │ │ │ └── fr │ │ │ │ ├── angkorcmslogin.php │ │ │ │ └── angkorcmsprofile.php │ │ └── views │ │ │ ├── show.blade.php │ │ │ └── groups │ │ │ └── show.blade.php │ │ ├── Http │ │ ├── routes.php │ │ ├── Controllers │ │ │ └── AngkorCMSUsersBaseController.php │ │ └── Requests │ │ │ ├── GroupRequest.php │ │ │ └── UserRequest.php │ │ └── Repositories │ │ └── Contracts │ │ ├── AngkorCMSUserRepositoryInterface.php │ │ └── AngkorCMSGroupRepositoryInterface.php ├── content │ ├── vendor │ │ ├── composer │ │ │ ├── installed.json │ │ │ ├── autoload_classmap.php │ │ │ ├── autoload_namespaces.php │ │ │ └── autoload_psr4.php │ │ └── autoload.php │ ├── .gitignore │ ├── src │ │ ├── resources │ │ │ └── views │ │ │ │ └── content.blade.php │ │ ├── Http │ │ │ ├── routes.php │ │ │ ├── Controllers │ │ │ │ └── AngkorCMSContentBaseController.php │ │ │ └── Requests │ │ │ │ └── AngkorCMSContentRequest.php │ │ ├── Repositories │ │ │ └── Contracts │ │ │ │ └── AngkorCMSContentRepositoryInterface.php │ │ ├── AngkorCMSContent.php │ │ └── config │ │ │ └── angkorcmscontent.php │ ├── composer.json │ └── Readme.txt ├── listing │ ├── vendor │ │ ├── composer │ │ │ ├── installed.json │ │ │ ├── autoload_classmap.php │ │ │ ├── autoload_namespaces.php │ │ │ └── autoload_psr4.php │ │ └── autoload.php │ ├── .gitignore │ ├── composer.json │ ├── src │ │ ├── Repositories │ │ │ └── Contracts │ │ │ │ ├── AngkorCMSListItemRepositoryInterface.php │ │ │ │ └── AngkorCMSListRepositoryInterface.php │ │ ├── AngkorCMSListItem.php │ │ ├── Http │ │ │ ├── routes.php │ │ │ ├── Controllers │ │ │ │ └── AngkorCMSListBaseController.php │ │ │ ├── Requests │ │ │ │ ├── AngkorCMSListRequest.php │ │ │ │ └── AngkorCMSListItemRequest.php │ │ │ └── ViewComposers │ │ │ │ └── MakerComposer.php │ │ ├── resources │ │ │ └── views │ │ │ │ ├── makerListItemRow.blade.php │ │ │ │ └── list.blade.php │ │ ├── AngkorCMSList.php │ │ └── database │ │ │ └── migrations │ │ │ ├── 2015_05_07_000003_create_angkorcms_list_items_table.php │ │ │ └── 2015_05_07_000001_create_angkorcms_lists_table.php │ └── Readme.txt ├── medias │ ├── vendor │ │ ├── composer │ │ │ ├── installed.json │ │ │ ├── autoload_classmap.php │ │ │ ├── autoload_namespaces.php │ │ │ └── autoload_psr4.php │ │ └── autoload.php │ ├── .gitignore │ ├── src │ │ ├── assets │ │ │ └── picture │ │ │ │ └── Folder.png │ │ ├── resources │ │ │ └── views │ │ │ │ ├── form │ │ │ │ ├── modalscript.blade.php │ │ │ │ ├── chooseMultipleImage.blade.php │ │ │ │ ├── imageSelected.blade.php │ │ │ │ ├── chooseOneImage.blade.php │ │ │ │ ├── scriptImagesUrl.blade.php │ │ │ │ ├── selectImageWithId.blade.php │ │ │ │ ├── chooseOneImageWithId.blade.php │ │ │ │ ├── scriptChooseOneImageWithId.blade.php │ │ │ │ ├── selectImage.blade.php │ │ │ │ └── scriptChooseMultipleImage.blade.php │ │ │ │ ├── image.blade.php │ │ │ │ └── folder.blade.php │ │ ├── Repositories │ │ │ └── Contracts │ │ │ │ ├── AngkorCMSImageRepositoryInterface.php │ │ │ │ └── AngkorCMSFolderRepositoryInterface.php │ │ ├── config │ │ │ └── angkorcmsmedias.php │ │ ├── Http │ │ │ ├── Middleware │ │ │ │ └── AngkorCMSAjax.php │ │ │ ├── Controllers │ │ │ │ ├── AngkorCMSMediaBaseController.php │ │ │ │ └── AngkorCMSMediaController.php │ │ │ └── Requests │ │ │ │ ├── AngkorCMSImageRequest.php │ │ │ │ ├── AngkorCMSFolderRequest.php │ │ │ │ ├── AngkorCMSImageChangeFolderRequest.php │ │ │ │ └── AngkorCMSFolderChangeFolderRequest.php │ │ ├── AngkorCMSFolder.php │ │ └── AngkorCMSImage.php │ └── composer.json ├── slideshow │ ├── vendor │ │ ├── composer │ │ │ ├── installed.json │ │ │ ├── autoload_classmap.php │ │ │ ├── autoload_namespaces.php │ │ │ └── autoload_psr4.php │ │ └── autoload.php │ ├── .gitignore │ ├── composer.json │ └── src │ │ ├── Repositories │ │ └── Contracts │ │ │ ├── AngkorCMSSlideRepositoryInterface.php │ │ │ └── AngkorCMSSlideshowRepositoryInterface.php │ │ ├── Http │ │ ├── routes.php │ │ ├── Controllers │ │ │ └── AngkorCMSSlideshowBaseController.php │ │ └── Requests │ │ │ ├── AngkorCMSSlideshowRequest.php │ │ │ └── AngkorCMSSlideshowTransRequest.php │ │ ├── AngkorCMSSlideshow.php │ │ └── AngkorCMSSlide.php └── multilanguages │ ├── vendor │ ├── composer │ │ ├── installed.json │ │ ├── autoload_classmap.php │ │ ├── autoload_namespaces.php │ │ └── autoload_psr4.php │ └── autoload.php │ ├── .gitignore │ ├── composer.json │ └── src │ ├── Repositories │ └── Contracts │ │ └── AngkorCMSLangRepositoryInterface.php │ ├── config │ ├── angkorcmschangelang.php │ └── angkorcmsmultilanguages.php │ ├── Http │ ├── routes.php │ ├── Controllers │ │ └── AngkorCMSLangBaseController.php │ └── Requests │ │ └── AngkorCMSLangRequest.php │ ├── resources │ └── views │ │ └── changelang.blade.php │ └── AngkorCMSLang.php ├── config ├── image.php ├── angkorcmslogin.php ├── angkorcmsprofile.php ├── angkorcmschangelang.php ├── angkorcmsnewsmodule.php ├── angkorcmsnews.php ├── angkorcmspages.php ├── angkorcmsmedias.php ├── angkorcmsusers.php ├── angkorcmsmultilanguages.php ├── angkorcmsmap.php ├── angkorcmscontent.php └── angkorcmsgroupsmodules.php ├── AngkorCMS - Documentation.pdf ├── phpspec.yml ├── package.json ├── tests ├── ExampleTest.php └── TestCase.php ├── .env.example ├── gulpfile.js ├── studio.json ├── .gitignore └── server.php /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/Handlers/Events/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/css/Simple/test.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/js/Simple/script.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/Handlers/Commands/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /public/js/Simple/Dark/script.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /storage/.gitignore: -------------------------------------------------------------------------------- 1 | laravel.log -------------------------------------------------------------------------------- /public/css/Simple/Dark/test.css: -------------------------------------------------------------------------------- 1 | Bnop -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /Plugin-Default/resources/views/maker.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/js/Simple/Light/script.js: -------------------------------------------------------------------------------- 1 | //alert('mdr'); -------------------------------------------------------------------------------- /resources/views/templates/Simple/test.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/test.blade.php: -------------------------------------------------------------------------------- 1 | Bonjour {{$user}} -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /Plugin-Default/resources/views/-showView-.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/maps/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /angkorcms/news/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /angkorcms/pages/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /angkorcms/users/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/uploads/images/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /angkorcms/content/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /angkorcms/listing/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /angkorcms/medias/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /angkorcms/news/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock -------------------------------------------------------------------------------- /angkorcms/slideshow/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /angkorcms/maps/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock 3 | -------------------------------------------------------------------------------- /angkorcms/medias/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock 3 | -------------------------------------------------------------------------------- /angkorcms/multilanguages/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /angkorcms/pages/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock 3 | -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/templates/css/Simple/test.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/templates/js/Simple/script.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/users/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock 3 | -------------------------------------------------------------------------------- /resources/views/templates/Simple/Dark/test.blade.php: -------------------------------------------------------------------------------- 1 | Hello mr T -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /angkorcms/content/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock 3 | -------------------------------------------------------------------------------- /angkorcms/listing/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock 3 | -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/templates/blade/Simple/test.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/templates/css/Simple/Dark/test.css: -------------------------------------------------------------------------------- 1 | Bnop -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/templates/js/Simple/Dark/script.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/slideshow/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock 3 | -------------------------------------------------------------------------------- /angkorcms/multilanguages/.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | composer.lock 3 | -------------------------------------------------------------------------------- /public/en.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucbu/AngkorCMS/HEAD/public/en.gif -------------------------------------------------------------------------------- /resources/views/angkorcms/content/content.blade.php: -------------------------------------------------------------------------------- 1 | {!! $content->content !!} -------------------------------------------------------------------------------- /angkorcms/content/src/resources/views/content.blade.php: -------------------------------------------------------------------------------- 1 | {!! $content->content !!} -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/templates/blade/Simple/Dark/test.blade.php: -------------------------------------------------------------------------------- 1 | Hello mr T -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/templates/js/Simple/Light/script.js: -------------------------------------------------------------------------------- 1 | //alert('mdr'); -------------------------------------------------------------------------------- /config/image.php: -------------------------------------------------------------------------------- 1 | 'uploads/images', 6 | 7 | ); -------------------------------------------------------------------------------- /public/.phpintel/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucbu/AngkorCMS/HEAD/public/.phpintel/index -------------------------------------------------------------------------------- /app/Events/Event.php: -------------------------------------------------------------------------------- 1 | 'angkorcms/users/login', 9 | 'unique' => true, 10 | ); -------------------------------------------------------------------------------- /config/angkorcmsprofile.php: -------------------------------------------------------------------------------- 1 | 2 | 'angkorcms/users/profile', 9 | 'unique' => true, 10 | ); -------------------------------------------------------------------------------- /public/css/bootstrap-3.3.2-dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucbu/AngkorCMS/HEAD/public/css/bootstrap-3.3.2-dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/css/bootstrap-3.3.2-dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucbu/AngkorCMS/HEAD/public/css/bootstrap-3.3.2-dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/css/bootstrap-3.3.2-dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucbu/AngkorCMS/HEAD/public/css/bootstrap-3.3.2-dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/tinymce/langs/readme.md: -------------------------------------------------------------------------------- 1 | This is where language files should be placed. 2 | 3 | Please DO NOT translate these directly use this service: https://www.transifex.com/projects/p/tinymce/ 4 | -------------------------------------------------------------------------------- /angkorcms/slideshow/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AngkorCMS/Slideshow", 3 | "autoload": { 4 | "psr-4": { 5 | "AngkorCMS\\Slideshow\\": "src/" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /public/css/bootstrap-3.3.2-dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucbu/AngkorCMS/HEAD/public/css/bootstrap-3.3.2-dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /angkorcms/news/src/config/angkorcmsnewsmodule.php: -------------------------------------------------------------------------------- 1 | 'angkorcms/news/modules/show', 8 | 'unique' => true, 9 | ); -------------------------------------------------------------------------------- /config/angkorcmschangelang.php: -------------------------------------------------------------------------------- 1 | 2 | 'angkorcms/multilanguages/changelang', 9 | 'unique' => true, 10 | ); -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/center-block.less: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | .center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/text-emphasis.less: -------------------------------------------------------------------------------- 1 | // Typography 2 | 3 | .text-emphasis-variant(@color) { 4 | color: @color; 5 | a&:hover { 6 | color: darken(@color, 10%); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /angkorcms/multilanguages/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AngkorCMS/MultiLanguages", 3 | "autoload": { 4 | "psr-4": { 5 | "AngkorCMS\\MultiLanguages\\": "src/" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /angkorcms/users/src/config/angkorcmslogin.php: -------------------------------------------------------------------------------- 1 | 2 | 'angkorcms/users/login', 9 | 'unique' => true, 10 | ); -------------------------------------------------------------------------------- /angkorcms/users/src/config/angkorcmsprofile.php: -------------------------------------------------------------------------------- 1 | 2 | 'angkorcms/users/profile', 9 | 'unique' => true, 10 | ); -------------------------------------------------------------------------------- /app/Http/Requests/Request.php: -------------------------------------------------------------------------------- 1 | 'angkorcms/news/modules/show', 8 | 'showDiv' => false, 9 | 'unique' => true, 10 | ); -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/size.less: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | .size(@width; @height) { 4 | width: @width; 5 | height: @height; 6 | } 7 | 8 | .square(@size) { 9 | .size(@size; @size); 10 | } 11 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/background-variant.less: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | 3 | .bg-variant(@color) { 4 | background-color: @color; 5 | a&:hover { 6 | background-color: darken(@color, 10%); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/opacity.less: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | .opacity(@opacity) { 4 | opacity: @opacity; 5 | // IE8 filter 6 | @opacity-ie: (@opacity * 100); 7 | filter: ~"alpha(opacity=@{opacity-ie})"; 8 | } 9 | -------------------------------------------------------------------------------- /angkorcms/multilanguages/src/config/angkorcmschangelang.php: -------------------------------------------------------------------------------- 1 | 2 | 'angkorcms/multilanguages/changelang', 9 | 'unique' => true, 10 | ); -------------------------------------------------------------------------------- /resources/assets/less/app.less: -------------------------------------------------------------------------------- 1 | @import "bootstrap/bootstrap"; 2 | 3 | @btn-font-weight: 300; 4 | @font-family-sans-serif: "Roboto", Helvetica, Arial, sans-serif; 5 | 6 | body, label, .checkbox label { 7 | font-weight: 300; 8 | } 9 | -------------------------------------------------------------------------------- /resources/views/angkorcms/pages/groupsmodules/show.blade.php: -------------------------------------------------------------------------------- 1 | @foreach($groupmodules->modules as $module) 2 | {!! AngkorBlade::displayDryModule($unique_id.'_'.$module->id, $module->module, $parameters, $attributes, $attr) !!} 3 | @endforeach -------------------------------------------------------------------------------- /Plugin-Default/Http/Controllers/-Object-Controller.php: -------------------------------------------------------------------------------- 1 | modules as $module) 2 | {!! AngkorBlade::displayDryModule($unique_id.'_'.$module->id, $module->module, $parameters, $attributes, $attr) !!} 3 | @endforeach -------------------------------------------------------------------------------- /angkorcms/pages/vendor/autoload.php: -------------------------------------------------------------------------------- 1 | '-vendorName-/-folderName-/-showView-', 9 | 'unique' => true, 10 | 'showDiv' => false, 11 | ); -------------------------------------------------------------------------------- /angkorcms/content/vendor/composer/autoload_namespaces.php: -------------------------------------------------------------------------------- 1 | "admin", 5 | "alias" => [ 6 | 'en' => [ 7 | 'index' => 'index', 8 | 'users' => 'users', 9 | 'news' => 'news', 10 | ], 11 | ], 12 | ); -------------------------------------------------------------------------------- /angkorcms/slideshow/vendor/composer/autoload_namespaces.php: -------------------------------------------------------------------------------- 1 | 'Email', 6 | 'password' => 'Password', 7 | 'remember' => 'Remember Me', 8 | 'forgot' => 'Forgot Your Password?', 9 | 'logout' => 'Logout', 10 | 'login' => 'Login', 11 | 12 | ]; -------------------------------------------------------------------------------- /public/tinymce/plugins/example/dialog.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

Custom dialog

5 | Input some text: 6 | 7 | 8 | -------------------------------------------------------------------------------- /Plugin-Default/-Object-.php: -------------------------------------------------------------------------------- 1 | 'Email', 6 | 'password' => 'Password', 7 | 'remember' => 'Remember Me', 8 | 'forgot' => 'Forgot Your Password?', 9 | 'logout' => 'Logout', 10 | 'login' => 'Login', 11 | 12 | ]; -------------------------------------------------------------------------------- /resources/lang/fr/angkorcmslogin.php: -------------------------------------------------------------------------------- 1 | 'E-mail', 6 | 'password' => 'Mot de passe', 7 | 'remember' => 'Se souvenir de moi', 8 | 'forgot' => 'Mot de passe oublié?', 9 | 'logout' => 'Déconnexion', 10 | 'login' => 'Connexion', 11 | 12 | ]; -------------------------------------------------------------------------------- /tests/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertEquals(true, true); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angkorcms/maps/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /angkorcms/news/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /angkorcms/pages/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /angkorcms/users/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/progress-bar.less: -------------------------------------------------------------------------------- 1 | // Progress bars 2 | 3 | .progress-bar-variant(@color) { 4 | background-color: @color; 5 | 6 | // Deprecated parent class requirement as of v3.2.0 7 | .progress-striped & { 8 | #gradient > .striped(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /resources/lang/fr/angkorcmsprofile.php: -------------------------------------------------------------------------------- 1 | 'Nom', 6 | 'email' => 'E-mail', 7 | 'admin' => 'Admin', 8 | 'list' => 'Liste', 9 | 'title' => [ 10 | 'list' => 'Liste des utilisateurs', 11 | 'profile' => 'Profil utilisateur', 12 | ], 13 | 14 | ]; -------------------------------------------------------------------------------- /angkorcms/content/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /angkorcms/listing/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /angkorcms/medias/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /config/angkorcmsnews.php: -------------------------------------------------------------------------------- 1 | ['admin'], 8 | 9 | /* 10 | * What prefix will be used to the url accessing the media manager 11 | */ 12 | 'prefix' => '', 13 | ); -------------------------------------------------------------------------------- /angkorcms/pages/src/Repositories/Contracts/AngkorCMSBlockRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /resources/lang/en/angkorcmsprofile.php: -------------------------------------------------------------------------------- 1 | 'Name', 6 | 'email' => 'Email', 7 | 'admin' => 'Admin', 8 | 'list' => 'List', 9 | 'login' => 'Login', 10 | 'title' => [ 11 | 'list' => 'Users\' list', 12 | 'profile' => 'User\'s profile', 13 | ], 14 | ]; -------------------------------------------------------------------------------- /angkorcms/listing/src/Repositories/Contracts/AngkorCMSListItemRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 'E-mail', 6 | 'password' => 'Mot de passe', 7 | 'remember' => 'Se souvenir de moi', 8 | 'forgot' => 'Mot de passe oublié?', 9 | 'logout' => 'Déconnexion', 10 | 'login' => 'Connexion', 11 | 12 | ]; -------------------------------------------------------------------------------- /angkorcms/multilanguages/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($baseDir . '/src'), 10 | ); 11 | -------------------------------------------------------------------------------- /angkorcms/news/src/config/angkorcmsnews.php: -------------------------------------------------------------------------------- 1 | ['admin'], 8 | 9 | /* 10 | * What prefix will be used to the url accessing the media manager 11 | */ 12 | 'prefix' => '', 13 | ); -------------------------------------------------------------------------------- /angkorcms/pages/src/Repositories/Contracts/AngkorCMSPageTransBlockModuleRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 'Nom', 6 | 'email' => 'E-mail', 7 | 'admin' => 'Admin', 8 | 'list' => 'Liste', 9 | 'title' => [ 10 | 'list' => 'Liste des utilisateurs', 11 | 'profile' => 'Profil utilisateur', 12 | ], 13 | 14 | ]; -------------------------------------------------------------------------------- /angkorcms/pages/src/Repositories/Contracts/AngkorCMSThemeRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 'Name', 6 | 'email' => 'Email', 7 | 'admin' => 'Admin', 8 | 'list' => 'List', 9 | 'login' => 'Login', 10 | 'title' => [ 11 | 'list' => 'Users\' list', 12 | 'profile' => 'User\'s profile', 13 | ], 14 | ]; -------------------------------------------------------------------------------- /Plugin-Default/Http/routes.php: -------------------------------------------------------------------------------- 1 | '-namespace-\Http\Controllers', 5 | 'middleware' => Config::get('-pluginmin-.middleware'), 6 | ], function () { 7 | Route::controller(Config::get('-pluginmin-.route'), '-Object-Controller', [ 8 | '' => '-pluginmin-.', 9 | ]); 10 | }); -------------------------------------------------------------------------------- /public/tinymce/plugins/print/plugin.min.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add("print",function(a){a.addCommand("mcePrint",function(){a.getWin().print()}),a.addButton("print",{title:"Print",cmd:"mcePrint"}),a.addShortcut("Meta+P","","mcePrint"),a.addMenuItem("print",{text:"Print",cmd:"mcePrint",icon:"print",shortcut:"Meta+P",context:"file"})}); -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/nav-divider.less: -------------------------------------------------------------------------------- 1 | // Horizontal dividers 2 | // 3 | // Dividers (basically an hr) within dropdowns and nav lists 4 | 5 | .nav-divider(@color: #e5e5e5) { 6 | height: 1px; 7 | margin: ((@line-height-computed / 2) - 1) 0; 8 | overflow: hidden; 9 | background-color: @color; 10 | } 11 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/reset-filter.less: -------------------------------------------------------------------------------- 1 | // Reset filters for IE 2 | // 3 | // When you need to remove a gradient background, do not forget to use this to reset 4 | // the IE filter for IE9 and below. 5 | 6 | .reset-filter() { 7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); 8 | } 9 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Repositories/Contracts/AngkorCMSPageRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | "admin", 5 | "alias" => [ 6 | 'en' => [ 7 | 'index' => 'index', 8 | 'users' => 'users', 9 | 'news' => 'news', 10 | ], 11 | 'fr' => [ 12 | 'index' => 'accueil', 13 | 'users' => 'utilisateurs', 14 | 'news' => 'actu', 15 | ], 16 | ], 17 | ); -------------------------------------------------------------------------------- /public/css/admin.css: -------------------------------------------------------------------------------- 1 | .slider-size { 2 | height: 400px; /* This is your slider height */ 3 | } 4 | 5 | .carousel { 6 | width:100%; 7 | margin:0 auto; /* center your carousel if other than 100% */ 8 | } 9 | 10 | .carousel-inner > .item > img, 11 | .carousel-inner > .item > a > img { 12 | width: 70%; 13 | margin: auto; 14 | } -------------------------------------------------------------------------------- /resources/lang/en/angkorcmsnewsmodule.php: -------------------------------------------------------------------------------- 1 | 'Written by :name the :date', 6 | 'comments' => 'comments', 7 | 'delete' => "Are you sure you want to delete this comment ?", 8 | 'addcomment' => 'Add a Comment', 9 | 'send' => 'send', 10 | 'tag' => 'List of posts for the tag : :tag', 11 | 12 | ]; -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/modalscript.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/news/src/Repositories/Contracts/AngkorCMSPostRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 2 | $('#listMedia').on("click", ".image", function(e){ 3 | e.preventDefault(); 4 | var url = $(this).find('a').attr('href'); 5 | $(".urlimage").each(function() { 6 | $( this ).val(url); 7 | }); 8 | $('#graphicalviewimageurl').modal('hide') 9 | }); 10 | -------------------------------------------------------------------------------- /public/tinymce/plugins/hr/plugin.min.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add("hr",function(a){a.addCommand("InsertHorizontalRule",function(){a.execCommand("mceInsertContent",!1,"
")}),a.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),a.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})}); -------------------------------------------------------------------------------- /angkorcms/medias/src/Repositories/Contracts/AngkorCMSImageRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Maps\Http\Controllers', 5 | 'middleware' => Config::get('angkorcmsmap.middleware'), 6 | 7 | ], function () { 8 | Route::controller(Config::get('angkorcmsmap.route'), 'AngkorCMSMapController', [ 9 | 'postUpdateMap' => 'angkorcmsmap.updateMap', 10 | ]); 11 | }); -------------------------------------------------------------------------------- /angkorcms/medias/src/Repositories/Contracts/AngkorCMSFolderRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 'Written by :name the :date', 6 | 'comments' => 'comments', 7 | 'delete' => "Are you sure you want to delete this comment ?", 8 | 'addcomment' => 'Add a Comment', 9 | 'send' => 'send', 10 | 'tag' => 'List of posts for the tag : :tag', 11 | 12 | ]; -------------------------------------------------------------------------------- /angkorcms/users/src/Http/routes.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Users\Http\Controllers', 5 | 'middleware' => Config::get('angkorcmsusers.middleware'), 6 | 7 | ], function () { 8 | Route::resource('angkorcmsusers', 'AngkorCMSUsersController'); 9 | Route::resource('angkorcmsgroups', 'AngkorCMSGroupController'); 10 | }); 11 | -------------------------------------------------------------------------------- /resources/lang/fr/angkorcmsnewsmodule.php: -------------------------------------------------------------------------------- 1 | 'Ecrit par :name le :date', 6 | 'comments' => 'commentaires', 7 | 'delete' => "Etes vous sure de vouloir supprimer ce commentaire ?", 8 | 'addcomment' => 'Ajouter un commentaire', 9 | 'send' => 'Envoyer', 10 | 'tag' => 'Liste des posts pour le tag :tag', 11 | 12 | ]; -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/alerts.less: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | .alert-variant(@background; @border; @text-color) { 4 | background-color: @background; 5 | border-color: @border; 6 | color: @text-color; 7 | 8 | hr { 9 | border-top-color: darken(@border, 5%); 10 | } 11 | .alert-link { 12 | color: darken(@text-color, 10%); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Plugin-Default/Repositories/Contracts/-Object-RepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 'Ecrit par :name le :date', 6 | 'comments' => 'commentaires', 7 | 'delete' => "Etes vous sure de vouloir supprimer ce commentaire ?", 8 | 'addcomment' => 'Ajouter un commentaire', 9 | 'send' => 'Envoyer', 10 | 'tag' => 'Liste des posts pour le tag :tag', 11 | 12 | ]; -------------------------------------------------------------------------------- /angkorcms/maps/src/Repositories/Contracts/AngkorCMSMapRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Content\Http\Controllers', 5 | 'middleware' => Config::get('angkorcmscontent.middleware'), 6 | 7 | ], function () { 8 | Route::controller(Config::get('angkorcmscontent.route'), 'AngkorCMSContentController', [ 9 | 'postUpdateContent' => 'angkorcmscontent.updateContent', 10 | ]); 11 | }); -------------------------------------------------------------------------------- /angkorcms/listing/src/Repositories/Contracts/AngkorCMSListRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 2 | @foreach($blocks as $block) 3 | {!! View::make('angkorcms/pages/block/block')->with('block', $block) !!} 4 | @endforeach 5 | 6 | {!! View::make('angkorcms/pages/block/createForm')->with('template_id', $template_id) !!} 7 | 8 | {!! View::make('angkorcms/pages/block/blockScript') !!} -------------------------------------------------------------------------------- /resources/views/angkorcms/map/map.blade.php: -------------------------------------------------------------------------------- 1 |
4 | {!! View::make('angkorcms/map/mapScript', array('map' => $map, 'attr' => $attr, "unique_id" => $unique_id)) !!} -------------------------------------------------------------------------------- /resources/views/angkorcms/pages/block/listBlock.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @foreach($blocks as $block) 3 | {!! View::make('angkorcms/pages/block/block')->with('block', $block) !!} 4 | @endforeach 5 |
6 | {!! View::make('angkorcms/pages/block/createForm')->with('template_id', $template_id) !!} 7 | 8 | {!! View::make('angkorcms/pages/block/blockScript') !!} -------------------------------------------------------------------------------- /angkorcms/content/src/Repositories/Contracts/AngkorCMSContentRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | 4 | {!! View::make('angkorcms/map/mapScript', array('map' => $map, 'attr' => $attr, "unique_id" => $unique_id)) !!} -------------------------------------------------------------------------------- /angkorcms/pages/src/Repositories/Contracts/AngkorCMSGroupModuleRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | id}}" style="display: inline-block;margin:0px 2px;padding:2px;border-radius:10%;border: 1px solid black;"> 2 | {{$block->name}} 3 | 4 | -------------------------------------------------------------------------------- /angkorcms/users/src/Repositories/Contracts/AngkorCMSUserRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | id}}" style="display: inline-block;margin:0px 2px;padding:2px;border-radius:10%;border: 1px solid black;"> 2 | {{$block->name}} 3 | 4 | -------------------------------------------------------------------------------- /angkorcms/slideshow/src/Repositories/Contracts/AngkorCMSSlideshowRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | ['auth', 'admin'], 8 | 9 | /* 10 | * What prefix will be used to the url accessing the media manager 11 | */ 12 | 'prefix' => '', 13 | 14 | /* 15 | * Path where images will be uploaded 16 | */ 17 | 'path' => 'uploads/images', 18 | 19 | ); -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/chooseMultipleImage.blade.php: -------------------------------------------------------------------------------- 1 | {!! View::make('angkorcms\medias\form\selectImage')->with(array('folders'=> $folders, 'imagesroot' => $imagesroot)) !!} 2 |
3 | @foreach($project->images as $image) 4 | {!! View::make('angkorcms\medias\form\imageSelected')->with(array('image'=> $image)) !!} 5 | @endforeach 6 |
7 | -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/imageSelected.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |
-------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/chooseMultipleImage.blade.php: -------------------------------------------------------------------------------- 1 | {!! View::make('angkorcms\medias\form\selectImage')->with(array('folders'=> $folders, 'imagesroot' => $imagesroot)) !!} 2 |
3 | @foreach($project->images as $image) 4 | {!! View::make('angkorcms\medias\form\imageSelected')->with(array('image'=> $image)) !!} 5 | @endforeach 6 |
7 | -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/imageSelected.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |
-------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AngkorCMSTemplateRequest.php: -------------------------------------------------------------------------------- 1 | 'required|unique:angkorcms_templates,name', 14 | ]; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Home
9 | 10 |
11 | You are logged in! 12 |
13 |
14 |
15 |
16 |
17 | @endsection 18 | -------------------------------------------------------------------------------- /angkorcms/medias/src/config/angkorcmsmedias.php: -------------------------------------------------------------------------------- 1 | ['auth', 'admin'], 8 | 9 | /* 10 | * What prefix will be used to the url accessing the media manager 11 | */ 12 | 'prefix' => '', 13 | 14 | /* 15 | * Path where images will be uploaded 16 | */ 17 | 'path' => 'uploads/images', 18 | 19 | ); -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/ReorderAngkorCMSModuleRequest.php: -------------------------------------------------------------------------------- 1 | 'required|exists:angkorcms_pages_trans_blocks,id', 14 | ]; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Redirect Trailing Slashes... 9 | # RewriteRule ^(.*)/$ /$1 [L,R=301] 10 | 11 | # Handle Front Controller... 12 | RewriteCond %{REQUEST_FILENAME} !-d 13 | RewriteCond %{REQUEST_FILENAME} !-f 14 | RewriteRule ^ index.php [L] 15 | 16 | -------------------------------------------------------------------------------- /angkorcms/multilanguages/src/Http/routes.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\MultiLanguages\Http\Controllers', 5 | 'middleware' => Config::get('angkorcmsmultilanguages.middleware'), 6 | ], function () { 7 | Route::resource('angkorcmslang', 'AngkorCMSLangController', ['except' => ['show']]); 8 | Route::get('changelang/{code}', ['as' => 'changelang', 'uses' => 'AngkorCMSLangController@changeLang']); 9 | }); 10 | -------------------------------------------------------------------------------- /Plugin-Default/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Definition : 2 | 3 | -Object- : Name of the main object 4 | -Plugin- : Name of the plugin (ex. AngkorCMSSlideshow) 5 | -pluginmin- : Name of the plugin with little letters (ex. angkorcmsslideshows) 6 | -namespace- : Namespace (ex. AngkorCMS\Slideshow 7 | -folderName- : Name of the plugin's folder (ex. slideshow) 8 | -vendorName- : Name of the vendor (ex. angkorcms) 9 | -showView- : Name of the view to be shown 10 | -------------------------------------------------------------------------------- /angkorcms/content/src/AngkorCMSContent.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSModule', 'module_id', 'id'); 15 | } 16 | } -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSBlock.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSTemplate', 'template_id', 'id'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/nav-vertical-align.less: -------------------------------------------------------------------------------- 1 | // Navbar vertical align 2 | // 3 | // Vertically center elements in the navbar. 4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin. 5 | 6 | .navbar-vertical-align(@element-height) { 7 | margin-top: ((@navbar-height - @element-height) / 2); 8 | margin-bottom: ((@navbar-height - @element-height) / 2); 9 | } 10 | -------------------------------------------------------------------------------- /angkorcms/news/src/AngkorCMSTag.php: -------------------------------------------------------------------------------- 1 | belongsToMany('AngkorCMS\News\AngkorCMSPost', 'angkorcms_post_tag', 'tag_id', 'post_id'); 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /public/css/Simple/Light/test.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color : #B8DBFF; 3 | color:#252C33; 4 | } 5 | 6 | .modulebody{ 7 | border:1px solid #EBEBFF; 8 | border-radius: 10px; 9 | background-color : #EBF5FF; 10 | margin-top:12px; 11 | padding:12px 12px; 12 | } 13 | 14 | #footer{ 15 | display:inline-block; 16 | border-top: 1px double #A6C5E6; 17 | background-color:#B8D1EB; 18 | width:100%; 19 | margin-top:10px; 20 | } 21 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AngkorCMSModuleRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 14 | 'title' => 'alpha', 15 | 'lang_id' => 'required|exists:angkorcms_langs,id', 16 | ]; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSModule.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\MultiLanguages\AngkorCMSLang', 'lang_id', 'id'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/responsive-visibility.less: -------------------------------------------------------------------------------- 1 | // Responsive utilities 2 | 3 | // 4 | // More easily include all the states for responsive-utilities.less. 5 | .responsive-visibility() { 6 | display: block !important; 7 | table& { display: table; } 8 | tr& { display: table-row !important; } 9 | th&, 10 | td& { display: table-cell !important; } 11 | } 12 | 13 | .responsive-invisibility() { 14 | display: none !important; 15 | } 16 | -------------------------------------------------------------------------------- /angkorcms/maps/src/AngkorCMSMap.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSModule', 'module_id', 'id'); 15 | } 16 | } -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | make('Illuminate\Contracts\Console\Kernel')->bootstrap(); 15 | 16 | return $app; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSTheme.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSTemplate', 'template_id', 'id'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /angkorcms/listing/src/AngkorCMSListItem.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Listing\AngkorCMSList', 'list_id', 'id'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSGroupModule.php: -------------------------------------------------------------------------------- 1 | HasMany('AngkorCMS\Pages\AngkorCMSModuleGroupModule', 'groupmodule_id', 'id')->orderBy('position'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSModuleGroupModule.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSModule', 'module_id', 'id'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AngkorCMSPageRequest.php: -------------------------------------------------------------------------------- 1 | 'required|unique:angkorcms_pages,name,' . $this->segment(count($this->segments())), 14 | 'theme_id' => 'required|exists:angkorcms_themes,id', 15 | ]; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AngkorCMSPageTransUpdateRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 14 | 'slug' => 'required|unique:angkorcms_pages_trans,slug,' . $this->segment(count($this->segments())), 15 | ]; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Plugin-Default/Http/Controllers/-Object-BaseController.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/listing/src/Http/routes.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Listing\Http\Controllers', 5 | 'middleware' => Config::get('angkorcmslistings.middleware'), 6 | 7 | ], function () { 8 | Route::controller(Config::get('angkorcmslistings.route'), 'AngkorCMSListController', [ 9 | 'postAddListItem' => 'angkorcmslistings.addListItem.ajax', 10 | 'postSaveOrder' => 'angkorcmslistings.saveOrder.ajax', 11 | 'postDelListItem' => 'angkorcmslistings.delListItem.ajax', 12 | ]); 13 | }); 14 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AngkorCMSBlockRequest.php: -------------------------------------------------------------------------------- 1 | 'required|exists:angkorcms_templates,id', 14 | 'name' => 'required|unique:angkorcms_blocks,name,NULL,id,template_id,' . $this->get('template_id'), 15 | ]; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /angkorcms/slideshow/src/Http/routes.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Slideshow\Http\Controllers', 5 | 'middleware' => Config::get('angkorcmsslideshows.middleware'), 6 | 7 | ], function () { 8 | Route::controller(Config::get('angkorcmsslideshows.route'), 'AngkorCMSSlideshowController', [ 9 | 'postAddSlide' => 'angkorcmsslideshows.addSlide.ajax', 10 | 'postSaveOrder' => 'angkorcmsslideshows.saveOrder.ajax', 11 | 'postDelSlide' => 'angkorcmsslideshows.delSlide.ajax', 12 | ]); 13 | }); -------------------------------------------------------------------------------- /resources/views/angkorcms/multilanguages/changelang.blade.php: -------------------------------------------------------------------------------- 1 | @if(count($langs)>0) 2 |
3 | @foreach($langs as $lang) 4 | 5 | @if(isset($lang->image) && (!isset($attr['lang-img']) or $attr['lang-img'] == true)) 6 | {{ $lang->code }} 7 | @else 8 | {{ $lang->code }} 9 | @endif 10 | 11 | @endforeach 12 |
13 | @endif -------------------------------------------------------------------------------- /angkorcms/medias/src/Http/Middleware/AngkorCMSAjax.php: -------------------------------------------------------------------------------- 1 | ajax()) { 17 | App::abort(404); 18 | } 19 | 20 | return $next($request); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /angkorcms/multilanguages/src/resources/views/changelang.blade.php: -------------------------------------------------------------------------------- 1 | @if(count($langs)>0) 2 |
3 | @foreach($langs as $lang) 4 | 5 | @if(isset($lang->image) && (!isset($attr['lang-img']) or $attr['lang-img'] == true)) 6 | {{ $lang->code }} 7 | @else 8 | {{ $lang->code }} 9 | @endif 10 | 11 | @endforeach 12 |
13 | @endif -------------------------------------------------------------------------------- /app/Http/Controllers/AdminController.php: -------------------------------------------------------------------------------- 1 | allFull(); 15 | return view('admin/index', $pages); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /resources/views/angkorcms/listing/makerListItemRow.blade.php: -------------------------------------------------------------------------------- 1 | 2 | {{ $list_item->id }} 3 | {{ $list_item->text }} 4 | 5 | @if($list_item->url != '') 6 | {!!link_to($list_item->url, 'link')!!} 7 | @endif 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /angkorcms/listing/src/resources/views/makerListItemRow.blade.php: -------------------------------------------------------------------------------- 1 | 2 | {{ $list_item->id }} 3 | {{ $list_item->text }} 4 | 5 | @if($list_item->url != '') 6 | {!!link_to($list_item->url, 'link')!!} 7 | @endif 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /angkorcms/maps/src/Http/Controllers/AngkorCMSMapBaseController.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/news/src/AngkorCMSComment.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 15 | } 16 | 17 | public function post() { 18 | return $this->belongsTo('AngkorCMS\News\AngkorCMSPost'); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Controllers/AngkorCMSPageBaseController.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/users/src/Http/Controllers/AngkorCMSUsersBaseController.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/listing/src/Http/Controllers/AngkorCMSListBaseController.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/medias/src/Http/Controllers/AngkorCMSMediaBaseController.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AddAngkorCMSModuleRequest.php: -------------------------------------------------------------------------------- 1 | 'required|exists:angkorcms_pages_trans,id', 14 | 'module_id' => 'required|exists:angkorcms_modules,id', 15 | 'block_id' => 'required|exists:angkorcms_blocks,id', 16 | ]; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /config/angkorcmsusers.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Users', 9 | 'model' => '', 10 | 'table' => '', 11 | 'repository' => 'AngkorCMS\Users\Repositories\Eloquent\AngkorCMSUserRepository', 12 | 'route' => 'angkorcmsusers', 13 | 14 | /* 15 | * What middleware is needed to access this plugin 16 | */ 17 | 'middleware' => ['auth', 'admin'], 18 | 19 | /* 20 | * What prefix will be used to the url accessing this plugin 21 | */ 22 | 'prefix' => '', 23 | ); -------------------------------------------------------------------------------- /public/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /resources/views/angkorcms/news/list.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin/admin') 2 | 3 | @section('content') 4 |
5 |

6 | Post's list 7 |
8 | {!! link_to_route('angkorcmsnews.create', 'Add a post', [],array('class' => 'btn btn-info')) !!} 9 |
10 |

11 | @foreach($posts as $post) 12 | {!! View::make('angkorcms/news/post')->with(array('post' => $post, 'full' => false)) !!} 13 | @endforeach 14 | {!! $posts->render() !!} 15 |
16 | @stop -------------------------------------------------------------------------------- /angkorcms/content/src/Http/Controllers/AngkorCMSContentBaseController.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/multilanguages/src/AngkorCMSLang.php: -------------------------------------------------------------------------------- 1 | belongsTo(Config::get('angkorcmsmultilanguages.image_model'), 'image_id', Config::get('angkorcmsmultilanguages.image_id')); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /angkorcms/news/src/resources/views/list.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin/admin') 2 | 3 | @section('content') 4 |
5 |

6 | Post's list 7 |
8 | {!! link_to_route('angkorcmsnews.create', 'Add a post', [],array('class' => 'btn btn-info')) !!} 9 |
10 |

11 | @foreach($posts as $post) 12 | {!! View::make('angkorcms/news/post')->with(array('post' => $post, 'full' => false)) !!} 13 | @endforeach 14 | {!! $posts->render() !!} 15 |
16 | @stop -------------------------------------------------------------------------------- /angkorcms/pages/src/database/migrations/2015_05_08_000000_create_angkorcms_templates_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 11 | $table->string('name'); 12 | }); 13 | } 14 | 15 | public function down() { 16 | Schema::drop('angkorcms_templates'); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/chooseOneImage.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | @if(isset($object)) 5 | @if(is_numeric($object->image_id)) 6 | {!! Form::hidden('image_id', $object->image_id, array('id' => 'image_id')) !!} 7 | @else 8 | {!! Form::hidden('image_id', '', array('id' => 'image_id')) !!} 9 | @endif 10 | {!! View::make('angkorcms\medias\form\selectImage') !!} 11 | @else 12 | {!! Form::hidden('image_id', '', array('id' => 'image_id')) !!} 13 | {!! View::make('angkorcms\medias\form\selectImage') !!} 14 | @endif -------------------------------------------------------------------------------- /resources/views/install/create-env.blade.php: -------------------------------------------------------------------------------- 1 | @extends('install/master') 2 | 3 | @section('content') 4 | $value) { 8 | if ($key != '_token') { 9 | $line = $key . '=' . $value . "\n"; 10 | fwrite($envfile, $line); 11 | } 12 | } 13 | fclose($envfile); 14 | 15 | ?> 16 | 17 |

18 | The .env file has been created. 19 |

20 | 21 | 22 | Click to install database 23 | 24 | @endsection -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/chooseOneImage.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | @if(isset($object)) 5 | @if(is_numeric($object->image_id)) 6 | {!! Form::hidden('image_id', $object->image_id, array('id' => 'image_id')) !!} 7 | @else 8 | {!! Form::hidden('image_id', '', array('id' => 'image_id')) !!} 9 | @endif 10 | {!! View::make('angkorcms\medias\form\selectImage') !!} 11 | @else 12 | {!! Form::hidden('image_id', '', array('id' => 'image_id')) !!} 13 | {!! View::make('angkorcms\medias\form\selectImage') !!} 14 | @endif -------------------------------------------------------------------------------- /Plugin-Default/Http/Requests/-Object-Request.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/slideshow/src/Http/Controllers/AngkorCMSSlideshowBaseController.php: -------------------------------------------------------------------------------- 1 | beforeFilter('csrf', array('on' => 'post')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /angkorcms/users/src/config/angkorcmsusers.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Users', 9 | 'model' => '', 10 | 'table' => '', 11 | 'repository' => 'AngkorCMS\Users\Repositories\Eloquent\AngkorCMSUserRepository', 12 | 'route' => 'angkorcmsusers', 13 | 14 | /* 15 | * What middleware is needed to access this plugin 16 | */ 17 | 'middleware' => ['auth', 'admin'], 18 | 19 | /* 20 | * What prefix will be used to the url accessing this plugin 21 | */ 22 | 'prefix' => '', 23 | ); -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSTemplate.php: -------------------------------------------------------------------------------- 1 | hasMany('AngkorCMS\Pages\AngkorCMSBlock', 'template_id', 'id'); 15 | } 16 | 17 | public function themes() { 18 | return $this->hasMany('AngkorCMS\Pages\AngkorCMSTheme', 'template_id', 'id'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | var elixir = require('laravel-elixir'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Elixir Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Elixir provides a clean, fluent API for defining some basic Gulp tasks 9 | | for your Laravel application. By default, we are compiling the Less 10 | | file for our application, as well as publishing vendor resources. 11 | | 12 | */ 13 | 14 | elixir(function(mix) { 15 | mix.less('app.less'); 16 | }); 17 | -------------------------------------------------------------------------------- /resources/lang/fr/pagination.php: -------------------------------------------------------------------------------- 1 | '« Précédent', 14 | 'next' => 'Suivant »', 15 | ]; -------------------------------------------------------------------------------- /angkorcms/listing/src/AngkorCMSList.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSModule', 'module_id', 'id'); 15 | } 16 | 17 | public function items() { 18 | return $this->hasMany('AngkorCMS\Listing\AngkorCMSListItem', 'list_id', 'id')->orderBy('position'); 19 | } 20 | } -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/pagination.less: -------------------------------------------------------------------------------- 1 | // Pagination 2 | 3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @border-radius) { 4 | > li { 5 | > a, 6 | > span { 7 | padding: @padding-vertical @padding-horizontal; 8 | font-size: @font-size; 9 | } 10 | &:first-child { 11 | > a, 12 | > span { 13 | .border-left-radius(@border-radius); 14 | } 15 | } 16 | &:last-child { 17 | > a, 18 | > span { 19 | .border-right-radius(@border-radius); 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /studio.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": { 3 | "angkorcms/slideshow": "angkorcms/slideshow", 4 | "AngkorCMS/Slideshow": "angkorcms/slideshow", 5 | "AngkorCMS/MultiLanguages": "angkorcms/multilanguages", 6 | "AngkorCMS/Medias": "angkorcms/medias", 7 | "AngkorCMS/Pages": "angkorcms/pages", 8 | "AngkorCMS/Listing": "angkorcms/listing", 9 | "AngkorCMS/Content": "angkorcms\\content", 10 | "AngkorCMS/Maps": "angkorcms/maps", 11 | "AngkorCMS/Users": "angkorcms\\users", 12 | "AngkorCMS/News": "angkorcms/news" 13 | } 14 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io 2 | 3 | ### Windows ### 4 | # Windows image file caches 5 | Thumbs.db 6 | ehthumbs.db 7 | 8 | # Folder config file 9 | Desktop.ini 10 | 11 | # Recycle Bin used on file shares 12 | $RECYCLE.BIN/ 13 | 14 | # Windows Installer files 15 | *.cab 16 | *.msi 17 | *.msm 18 | *.msp 19 | 20 | # Windows shortcuts 21 | *.lnk 22 | 23 | 24 | ### PHP ### 25 | ## Laravel ## 26 | /bootstrap/compiled.php 27 | .env.*.php 28 | .env.php 29 | .env 30 | 31 | ## Composer ## 32 | /vendor/ 33 | 34 | ### SublimeText ### 35 | /.phpintel/ 36 | config/angkorcmspages.php -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/image.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | {{$image->name}} 5 | 6 |
-------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/image.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | {{$image->name}} 5 | 6 |
-------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSPage.php: -------------------------------------------------------------------------------- 1 | hasMany('AngkorCMS\Pages\AngkorCMSPageTrans', 'page_id', 'id'); 15 | } 16 | 17 | public function theme() { 18 | return $this->belongsTo('AngkorCMS\Pages\AngkorCMSTheme', 'theme_id', 'id'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/border-radius.less: -------------------------------------------------------------------------------- 1 | // Single side border-radius 2 | 3 | .border-top-radius(@radius) { 4 | border-top-right-radius: @radius; 5 | border-top-left-radius: @radius; 6 | } 7 | .border-right-radius(@radius) { 8 | border-bottom-right-radius: @radius; 9 | border-top-right-radius: @radius; 10 | } 11 | .border-bottom-radius(@radius) { 12 | border-bottom-right-radius: @radius; 13 | border-bottom-left-radius: @radius; 14 | } 15 | .border-left-radius(@radius) { 16 | border-bottom-left-radius: @radius; 17 | border-top-left-radius: @radius; 18 | } 19 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AngkorCMSThemeRequest.php: -------------------------------------------------------------------------------- 1 | 'required|exists:angkorcms_templates,id', 14 | 'name' => 'required|unique:angkorcms_themes,name,' . $this->segment(count($this->segments())), 15 | 'style' => 'required', 16 | 'view' => 'required', 17 | 'script' => 'required', 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Plugin-Default/database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call('-namespace-\Database\Seeds\ModuleTableSeeder'); 17 | } 18 | 19 | } 20 | 21 | class ModuleTableSeeder extends Seeder { 22 | 23 | public function run() { 24 | DB::table('')->insert(array( 25 | )); 26 | } 27 | } -------------------------------------------------------------------------------- /angkorcms/slideshow/src/AngkorCMSSlideshow.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSModule', 'module_id', 'id'); 15 | } 16 | 17 | public function slides() { 18 | return $this->hasMany('AngkorCMS\Slideshow\AngkorCMSSlide', 'slideshow_id', 'id')->orderBy('position'); 19 | } 20 | } -------------------------------------------------------------------------------- /angkorcms/content/src/Http/Requests/AngkorCMSContentRequest.php: -------------------------------------------------------------------------------- 1 | '' 24 | ]; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /angkorcms/listing/src/Http/Requests/AngkorCMSListRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 24 | ]; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/views/angkorcms/pages/page_trans/blockTable.blade.php: -------------------------------------------------------------------------------- 1 |
2 | Block "{{$block->block->name}}" :
3 | (You can change the position of each by dragging and dropping) 4 | 5 | 6 | 7 | @foreach ($block->modules as $module) 8 | {!! View::make('angkorcms/pages/page_trans/moduleRow')->with('module', $module) !!} 9 | @endforeach 10 | 11 |
#NameNatureEditDelete
12 |
-------------------------------------------------------------------------------- /angkorcms/pages/src/resources/views/page_trans/blockTable.blade.php: -------------------------------------------------------------------------------- 1 |
2 | Block "{{$block->block->name}}" :
3 | (You can change the position of each by dragging and dropping) 4 | 5 | 6 | 7 | @foreach ($block->modules as $module) 8 | {!! View::make('angkorcms/pages/page_trans/moduleRow')->with('module', $module) !!} 9 | @endforeach 10 | 11 |
#NameNatureEditDelete
12 |
-------------------------------------------------------------------------------- /angkorcms/medias/src/Http/Requests/AngkorCMSImageRequest.php: -------------------------------------------------------------------------------- 1 | 'required|image|Between:0,8000', 24 | ]; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /angkorcms/news/src/Http/Requests/AngkorCMSCommentRequest.php: -------------------------------------------------------------------------------- 1 | 'required|comment' 26 | ]; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /angkorcms/news/src/database/migrations/2015_03_04_035906_create_angkorcms_tags_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 12 | $table->timestamps(); 13 | $table->string('tag', 50)->unique(); 14 | $table->string('tag_url', 60)->unique(); 15 | }); 16 | } 17 | 18 | public function down() 19 | { 20 | Schema::drop('angkorcms_tags'); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/ConfigServiceProvider.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Medias\AngkorCMSImage', 'image_id', 'id'); 15 | } 16 | 17 | public function slideshow() { 18 | return $this->belongsTo('AngkorCMS\Slideshow\AngkorCMSSlideshow', 'slideshow_id', 'id'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/scriptImagesUrl.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/scriptImagesUrl.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/angkorcms/pages/page_trans/moduleRow.blade.php: -------------------------------------------------------------------------------- 1 | 2 | {{ $module->id }} 3 | {{ $module->module->name }} 4 | {{ $module->module->nature }} 5 | 6 | @if(!$module->module->unique) 7 | 8 | @endif 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/views/page_trans/moduleRow.blade.php: -------------------------------------------------------------------------------- 1 | 2 | {{ $module->id }} 3 | {{ $module->module->name }} 4 | {{ $module->module->nature }} 5 | 6 | @if(!$module->module->unique) 7 | 8 | @endif 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $uri = urldecode( 10 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 11 | ); 12 | 13 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 14 | // built-in PHP web server. This provides a convenient way to test a Laravel 15 | // application without having installed a "real" web server software here. 16 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) 17 | { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /resources/views/angkorcms/users/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin/admin') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
User's profile
8 |
9 |

Name : {{ $user->name }}

10 | @if(Auth::user()->admin) 11 |

Email : {{ $user->email }}

12 | @if($user->admin == 1) 13 | Admin 14 | @endif 15 | @endif 16 |
17 |
18 | 19 | Retour 20 | 21 |
22 | @stop -------------------------------------------------------------------------------- /angkorcms/users/src/resources/views/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin/admin') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
User's profile
8 |
9 |

Name : {{ $user->name }}

10 | @if(Auth::user()->admin) 11 |

Email : {{ $user->email }}

12 | @if($user->admin == 1) 13 | Admin 14 | @endif 15 | @endif 16 |
17 |
18 | 19 | Retour 20 | 21 |
22 | @stop -------------------------------------------------------------------------------- /angkorcms/medias/src/Http/Requests/AngkorCMSFolderRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 24 | 'folder_id' => 'numeric|exists:angkorcms_folders,id', 25 | ]; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /angkorcms/users/src/resources/views/groups/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin/admin') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
group
8 |
9 |

Name : {{ $group->name }}

10 |

List of users :

11 |
    12 | @foreach($group->users as $user) 13 |
  • {{ $user->name }}
  • 14 | @endforeach 15 |
16 |
17 |
18 | 19 | Retour 20 | 21 |
22 | @stop 23 | -------------------------------------------------------------------------------- /resources/views/angkorcms/users/groups/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin/admin') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
group
8 |
9 |

Name : {{ $group->name }}

10 |

List of users :

11 |
    12 | @foreach($group->users as $user) 13 |
  • {{ $user->name }}
  • 14 | @endforeach 15 |
16 |
17 |
18 | 19 | Retour 20 | 21 |
22 | @stop 23 | -------------------------------------------------------------------------------- /Plugin-Default/Http/ViewComposers/MakerComposer.php: -------------------------------------------------------------------------------- 1 | repository = $repository; 11 | } 12 | 13 | public function compose(View $view) { 14 | //Get the data from the view 15 | $viewParameters = $view->getData(); 16 | 17 | //Get the data 18 | // --- Example : $this->repository->getByModule($viewParameters['module_id']; 19 | 20 | // Agregate and Send the data to the view 21 | $data = array_merge(); 22 | $view->with($data); 23 | } 24 | } -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSPageTransBlockModule.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSPageTransBlock', 'page_trans_block_id', 'id'); 15 | } 16 | 17 | public function module() { 18 | return $this->belongsTo('AngkorCMS\Pages\AngkorCMSModule', 'module_id', 'id'); 19 | } 20 | } -------------------------------------------------------------------------------- /public/tinymce/plugins/example/plugin.min.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add("example",function(a,b){a.addButton("example",{text:"My button",icon:!1,onclick:function(){a.windowManager.open({title:"Example plugin",body:[{type:"textbox",name:"title",label:"Title"}],onsubmit:function(b){a.insertContent("Title: "+b.data.title)}})}}),a.addMenuItem("example",{text:"Example plugin",context:"tools",onclick:function(){a.windowManager.open({title:"TinyMCE site",url:b+"/dialog.html",width:600,height:400,buttons:[{text:"Insert",onclick:function(){var b=a.windowManager.getWindows()[0];a.insertContent(b.getContentWindow().document.getElementById("content").value),b.close()}},{text:"Close",onclick:"close"}]})}})}); -------------------------------------------------------------------------------- /public/tinymce/plugins/nonbreaking/plugin.min.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add("nonbreaking",function(a){var b=a.getParam("nonbreaking_force_tab");if(a.addCommand("mceNonBreaking",function(){a.insertContent(a.plugins.visualchars&&a.plugins.visualchars.state?' ':" "),a.dom.setAttrib(a.dom.select("span.mce-nbsp"),"data-mce-bogus","1")}),a.addButton("nonbreaking",{title:"Nonbreaking space",cmd:"mceNonBreaking"}),a.addMenuItem("nonbreaking",{text:"Nonbreaking space",cmd:"mceNonBreaking",context:"insert"}),b){var c=+b>1?+b:3;a.on("keydown",function(b){if(9==b.keyCode){if(b.shiftKey)return;b.preventDefault();for(var d=0;c>d;d++)a.execCommand("mceNonBreaking")}})}}); -------------------------------------------------------------------------------- /app/Console/Commands/Inspire.php: -------------------------------------------------------------------------------- 1 | comment(PHP_EOL.Inspiring::quote().PHP_EOL); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /config/angkorcmsmultilanguages.php: -------------------------------------------------------------------------------- 1 | ['fr', 'en'], 8 | 9 | /* 10 | * List of languages used in application 11 | */ 12 | 'default_language' => 'fr', 13 | 14 | /* 15 | * What middleware is needed to access multilanguages manager 16 | */ 17 | 'middleware' => ['auth', 'admin'], 18 | 19 | /* 20 | * The table with the images 21 | */ 22 | 'image_table' => 'angkorcms_images', 23 | 24 | /* 25 | * The id of the images 26 | */ 27 | 'image_id' => 'id', 28 | 29 | /* 30 | * The model 31 | */ 32 | 'image_model' => 'AngkorCMS\Medias\AngkorCMSImage', 33 | ); 34 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/panels.less: -------------------------------------------------------------------------------- 1 | // Panels 2 | 3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) { 4 | border-color: @border; 5 | 6 | & > .panel-heading { 7 | color: @heading-text-color; 8 | background-color: @heading-bg-color; 9 | border-color: @heading-border; 10 | 11 | + .panel-collapse > .panel-body { 12 | border-top-color: @border; 13 | } 14 | .badge { 15 | color: @heading-bg-color; 16 | background-color: @heading-text-color; 17 | } 18 | } 19 | & > .panel-footer { 20 | + .panel-collapse > .panel-body { 21 | border-bottom-color: @border; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/folder.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {{$folder->name}} 4 | @if(strlen($folder->name)>15) 5 | {{ substr($folder->name,0,12) }}... 6 | @else 7 | {{ $folder->name }} 8 | @endif 9 |
-------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/folder.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {{$folder->name}} 4 | @if(strlen($folder->name)>15) 5 | {{ substr($folder->name,0,12) }}... 6 | @else 7 | {{ $folder->name }} 8 | @endif 9 |
-------------------------------------------------------------------------------- /config/angkorcmsmap.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Maps', 9 | 'model' => 'AngkorCMSMap', 10 | 'table' => 'angkorcms_maps', 11 | 'repository' => 'AngkorCMS\Maps\Repositories\Eloquent\AngkorCMSMapRepository', 12 | 'route' => 'angkorcmsmap', 13 | 'makerAjax' => 'angkorcmsmap.makerAjax', 14 | 'makerView' => 'angkorcms/map/maker', 15 | 'showView' => 'angkorcms/map/map', 16 | 17 | /* 18 | * What middleware is needed to access this plugin 19 | */ 20 | 'middleware' => ['auth', 'admin'], 21 | 22 | /* 23 | * What prefix will be used to the url accessing this plugin 24 | */ 25 | 'prefix' => '', 26 | ); -------------------------------------------------------------------------------- /angkorcms/listing/src/Http/Requests/AngkorCMSListItemRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 24 | 'url' => '', 25 | 'list_id' => 'required|exists:angkorcms_lists,id', 26 | ]; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /public/js/Blog/Base/cbpAnimatedHeader.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * cbpAnimatedHeader.min.js v1.0.0 3 | * http://www.codrops.com 4 | * 5 | * Licensed under the MIT license. 6 | * http://www.opensource.org/licenses/mit-license.php 7 | * 8 | * Copyright 2013, Codrops 9 | * http://www.codrops.com 10 | */ 11 | var cbpAnimatedHeader=(function(){var b=document.documentElement,g=document.querySelector(".cbp-af-header"),e=false,a=300;function f(){window.addEventListener("scroll",function(h){if(!e){e=true;setTimeout(d,250)}},false)}function d(){var h=c();if(h>=a){classie.add(g,"cbp-af-header-shrink")}else{classie.remove(g,"cbp-af-header-shrink")}e=false}function c(){return window.pageYOffset||b.scrollTop}f()})(); -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/wells.less: -------------------------------------------------------------------------------- 1 | // 2 | // Wells 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .well { 8 | min-height: 20px; 9 | padding: 19px; 10 | margin-bottom: 20px; 11 | background-color: @well-bg; 12 | border: 1px solid @well-border; 13 | border-radius: @border-radius-base; 14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); 15 | blockquote { 16 | border-color: #ddd; 17 | border-color: rgba(0,0,0,.15); 18 | } 19 | } 20 | 21 | // Sizes 22 | .well-lg { 23 | padding: 24px; 24 | border-radius: @border-radius-large; 25 | } 26 | .well-sm { 27 | padding: 9px; 28 | border-radius: @border-radius-small; 29 | } 30 | -------------------------------------------------------------------------------- /angkorcms/pages/src/Commands/AngkorCMSPagesInstallCommand.php: -------------------------------------------------------------------------------- 1 | app = $app; 13 | } 14 | 15 | public function handle() { 16 | $migrations = $this->app->make('migration.repository'); 17 | 18 | $migrator = $this->app->make('migrator'); 19 | $migrator->run(__DIR__ . '/../database/migrations/'); 20 | 21 | } 22 | } -------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AngkorCMSPageTransRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 15 | 'slug' => 'required|unique:angkorcms_pages_trans,slug,' . $this->segment(count($this->segments())), 16 | 'page_id' => 'required|exists:angkorcms_pages,id', 17 | 'lang_id' => 'required|exists:angkorcms_langs,id|unique:angkorcms_pages_trans,lang_id,NULL,id,page_id,' . Input::get('page_id'), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /angkorcms/slideshow/src/Http/Requests/AngkorCMSSlideshowRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 24 | 'slideshow_trans_id' => 'required|exists:angkorcms_slideshows_trans,id', 25 | ]; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /angkorcms/maps/src/config/angkorcmsmap.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Maps', 9 | 'model' => 'AngkorCMSMap', 10 | 'table' => 'angkorcms_maps', 11 | 'repository' => 'AngkorCMS\Maps\Repositories\Eloquent\AngkorCMSMapRepository', 12 | 'route' => 'angkorcmsmap', 13 | 'makerAjax' => 'angkorcmsmap.makerAjax', 14 | 'makerView' => 'angkorcms/map/maker', 15 | 'showView' => 'angkorcms/map/map', 16 | 17 | /* 18 | * What middleware is needed to access this plugin 19 | */ 20 | 'middleware' => ['auth', 'admin'], 21 | 22 | /* 23 | * What prefix will be used to the url accessing this plugin 24 | */ 25 | 'prefix' => '', 26 | ); -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/list-group.less: -------------------------------------------------------------------------------- 1 | // List Groups 2 | 3 | .list-group-item-variant(@state; @background; @color) { 4 | .list-group-item-@{state} { 5 | color: @color; 6 | background-color: @background; 7 | 8 | a& { 9 | color: @color; 10 | 11 | .list-group-item-heading { 12 | color: inherit; 13 | } 14 | 15 | &:hover, 16 | &:focus { 17 | color: @color; 18 | background-color: darken(@background, 5%); 19 | } 20 | &.active, 21 | &.active:hover, 22 | &.active:focus { 23 | color: #fff; 24 | background-color: @color; 25 | border-color: @color; 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /angkorcms/multilanguages/src/config/angkorcmsmultilanguages.php: -------------------------------------------------------------------------------- 1 | ['fr', 'en'], 8 | 9 | /* 10 | * List of languages used in application 11 | */ 12 | 'default_language' => 'en', 13 | 14 | /* 15 | * What middleware is needed to access multilanguages manager 16 | */ 17 | 'middleware' => ['auth', 'admin'], 18 | 19 | /* 20 | * The table with the images 21 | */ 22 | 'image_table' => 'angkorcms_images', 23 | 24 | /* 25 | * The id of the images 26 | */ 27 | 'image_id' => 'id', 28 | 29 | /* 30 | * The model 31 | */ 32 | 'image_model' => 'AngkorCMS\Medias\AngkorCMSImage', 33 | ); 34 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/hide-text.less: -------------------------------------------------------------------------------- 1 | // CSS image replacement 2 | // 3 | // Heads up! v3 launched with with only `.hide-text()`, but per our pattern for 4 | // mixins being reused as classes with the same name, this doesn't hold up. As 5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. 6 | // 7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 8 | 9 | // Deprecated as of v3.0.1 (will be removed in v4) 10 | .hide-text() { 11 | font: ~"0/0" a; 12 | color: transparent; 13 | text-shadow: none; 14 | background-color: transparent; 15 | border: 0; 16 | } 17 | 18 | // New mixin to use as of v3.0.1 19 | .text-hide() { 20 | .hide-text(); 21 | } 22 | -------------------------------------------------------------------------------- /angkorcms/pages/src/resources/views/block/createForm.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | {!! Form::open(array('url' => '', 'method' => 'post', 'class' => 'form-horizontal panel', 'id' => 'addBlock')) !!} 5 | {!! Form::hidden('template_id', $template_id)!!} 6 | Name : 7 | 8 |
9 | {!! Form::text('name', null, array('class' => 'form-control', 'placeholder' => 'Name')) !!} 10 |
11 | {!! Form::submit('Create', array('class' => 'btn btn-primary pull-right')) !!} 12 | {!! Form::close() !!} 13 |
14 |
-------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/selectImageWithId.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 21 |
-------------------------------------------------------------------------------- /resources/views/angkorcms/pages/block/createForm.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | {!! Form::open(array('url' => '', 'method' => 'post', 'class' => 'form-horizontal panel', 'id' => 'addBlock')) !!} 5 | {!! Form::hidden('template_id', $template_id)!!} 6 | Name : 7 | 8 |
9 | {!! Form::text('name', null, array('class' => 'form-control', 'placeholder' => 'Name')) !!} 10 |
11 | {!! Form::submit('Create', array('class' => 'btn btn-primary pull-right')) !!} 12 | {!! Form::close() !!} 13 |
14 |
-------------------------------------------------------------------------------- /Plugin-Default/config/-pluginmin-(customizable).php: -------------------------------------------------------------------------------- 1 | '-namespace-', 9 | 'model' => '', 10 | 'table' => '', 11 | 'repository' => '-namespace-\Repositories\Eloquent\-Object-Repository', 12 | 'route' => '-pluginmin-', 13 | 'makerAjax' => '-pluginmin-.makerAjax', 14 | 'makerView' => '-vendorName-/-folderName-/maker', 15 | 'showView' => '-vendorName-/-folderName-/-showView-', 16 | 'showDiv' => false, 17 | 18 | /* 19 | * What middleware is needed to access this plugin 20 | */ 21 | 'middleware' => [], 22 | 23 | /* 24 | * What prefix will be used to the url accessing this plugin 25 | */ 26 | 'prefix' => '', 27 | ); -------------------------------------------------------------------------------- /angkorcms/medias/src/Http/Requests/AngkorCMSImageChangeFolderRequest.php: -------------------------------------------------------------------------------- 1 | 'numeric|exists:angkorcms_images,id', 24 | 'folder_id' => 'numeric|exists:angkorcms_folders,id', 25 | ]; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/selectImageWithId.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 21 |
-------------------------------------------------------------------------------- /angkorcms/pages/src/Http/Requests/AngkorCMSGroupModuleRequest.php: -------------------------------------------------------------------------------- 1 | 'required|exists:angkorcms_modules,id', 24 | 'groupmodule_id' => 'required|exists:angkorcms_groupsmodules,id', 25 | ]; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /angkorcms/medias/src/Http/Requests/AngkorCMSFolderChangeFolderRequest.php: -------------------------------------------------------------------------------- 1 | 'numeric|exists:angkorcms_folders,id', 24 | 'folder_id' => 'numeric|exists:angkorcms_folders,id', 25 | ]; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /angkorcms/news/src/resources/views/modules/list.blade.php: -------------------------------------------------------------------------------- 1 | @if(isset($tag)) 2 |

{{ Lang::get("angkorcmsnewsmodule.tag", ["tag" => $tag]) }}

3 | @endif 4 | 5 | @foreach($posts as $post) 6 | $posts, "full" => isset($attr['news-list-full']) ? $attr['news-list-full'] : false, "parameters" => $parameters, "unique_id" => $unique_id . '_' . $post->id, 'attr' => $attr, 'parameters' => $parameters, 'attributes' => $attributes, 'post' => $post, 'full' => $full); 8 | ?> 9 | {!! AngkorBlade::createViewAsModule('angkorcms/news/modules/post', $attributes, $data) !!} 10 | @endforeach 11 | 12 |
{!! $posts->render() !!}
-------------------------------------------------------------------------------- /config/angkorcmscontent.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Content', 9 | 'model' => 'AngkorCMSContent', 10 | 'table' => 'angkorcms_contents', 11 | 'repository' => 'AngkorCMS\Content\Repositories\Eloquent\AngkorCMSContentRepository', 12 | 'route' => 'angkorcmscontent', 13 | 'makerAjax' => 'angkorcmscontent.makerAjax', 14 | 'makerView' => 'angkorcms/content/maker', 15 | 'showView' => 'angkorcms/content/content', 16 | 17 | /* 18 | * What middleware is needed to access this plugin 19 | */ 20 | 'middleware' => ['auth', 'admin'], 21 | 22 | /* 23 | * What prefix will be used to the url accessing this plugin 24 | */ 25 | 'prefix' => '', 26 | ); -------------------------------------------------------------------------------- /resources/views/angkorcms/news/modules/list.blade.php: -------------------------------------------------------------------------------- 1 | @if(isset($tag)) 2 |

{{ Lang::get("angkorcmsnewsmodule.tag", ["tag" => $tag]) }}

3 | @endif 4 | 5 | @foreach($posts as $post) 6 | $posts, "full" => isset($attr['news-list-full']) ? $attr['news-list-full'] : false, "parameters" => $parameters, "unique_id" => $unique_id . '_' . $post->id, 'attr' => $attr, 'parameters' => $parameters, 'attributes' => $attributes, 'post' => $post, 'full' => $full); 8 | ?> 9 | {!! AngkorBlade::createViewAsModule('angkorcms/news/modules/post', $attributes, $data) !!} 10 | @endforeach 11 | 12 |
{!! $posts->render() !!}
-------------------------------------------------------------------------------- /angkorcms/medias/src/AngkorCMSFolder.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Medias\AngkorCMSFolder', 'folder_parent_id', 'id'); 15 | } 16 | 17 | public function childs() { 18 | return $this->hasMany('AngkorCMS\Medias\AngkorCMSFolder', 'folder_parent_id', 'id'); 19 | } 20 | 21 | public function images() { 22 | return $this->hasMany('AngkorCMS\Medias\AngkorCMSImage', 'folder_id', 'id'); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /angkorcms/medias/src/AngkorCMSImage.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Medias\AngkorCMSFolder', 'folder_id', 'id'); 15 | } 16 | 17 | public function url() { 18 | return asset($this->path . '/' . $this->filename . '.' . $this->extension); 19 | } 20 | 21 | public function path() { 22 | return $this->path . '/' . $this->filename . '.' . $this->extension; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSPageTrans.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSPage', 'page_id', 'id'); 15 | } 16 | 17 | public function lang() { 18 | return $this->belongsTo('AngkorCMS\MultiLanguages\AngkorCMSLang', 'lang_id', 'id'); 19 | } 20 | 21 | public function blocks() { 22 | return $this->hasMany('AngkorCMS\Pages\AngkorCMSPageTransBlock', 'page_trans_id', 'id'); 23 | } 24 | } -------------------------------------------------------------------------------- /angkorcms/users/src/Http/Requests/GroupRequest.php: -------------------------------------------------------------------------------- 1 | 'required|max:30|alpha_dash|unique:angkorcms_groups,name,' . $this->segment(count($this->segments())), 24 | 'group_parent_id' => 'exists:angkorcms_groups,id', 25 | ]; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /public/tinymce/plugins/code/plugin.min.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add("code",function(a){function b(){var b=a.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:a.getParam("code_dialog_width",600),minHeight:a.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(b){a.focus(),a.undoManager.transact(function(){a.setContent(b.data.code)}),a.selection.setCursorLocation(),a.nodeChanged()}});b.find("#code").value(a.getContent({source_view:!0}))}a.addCommand("mceCodeEditor",b),a.addButton("code",{icon:"code",tooltip:"Source code",onclick:b}),a.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:b})}); -------------------------------------------------------------------------------- /Plugin-Default/Repositories/Eloquent/-Object-Repository.php: -------------------------------------------------------------------------------- 1 | call('UserTableSeeder'); 16 | } 17 | 18 | } 19 | 20 | class UserTableSeeder extends Seeder { 21 | 22 | public function run() { 23 | DB::table('users')->insert(array( 24 | 'name' => 'admin', 25 | 'email' => 'admin@angkorcms.com', 26 | 'password' => Hash::make('password'), 27 | 'admin' => 1, 28 | 'created_at' => date("Y-m-d H:i:s"), 29 | 'updated_at' => date("Y-m-d H:i:s"), 30 | )); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/clearfix.less: -------------------------------------------------------------------------------- 1 | // Clearfix 2 | // 3 | // For modern browsers 4 | // 1. The space content is one way to avoid an Opera bug when the 5 | // contenteditable attribute is included anywhere else in the document. 6 | // Otherwise it causes space to appear at the top and bottom of elements 7 | // that are clearfixed. 8 | // 2. The use of `table` rather than `block` is only necessary if using 9 | // `:before` to contain the top-margins of child elements. 10 | // 11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/ 12 | 13 | .clearfix() { 14 | &:before, 15 | &:after { 16 | content: " "; // 1 17 | display: table; // 2 18 | } 19 | &:after { 20 | clear: both; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/breadcrumbs.less: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal; 8 | margin-bottom: @line-height-computed; 9 | list-style: none; 10 | background-color: @breadcrumb-bg; 11 | border-radius: @border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: @breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: @breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /angkorcms/content/src/config/angkorcmscontent.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Content', 9 | 'model' => 'AngkorCMSContent', 10 | 'table' => 'angkorcms_contents', 11 | 'repository' => 'AngkorCMS\Content\Repositories\Eloquent\AngkorCMSContentRepository', 12 | 'route' => 'angkorcmscontent', 13 | 'makerAjax' => 'angkorcmscontent.makerAjax', 14 | 'makerView' => 'angkorcms/content/maker', 15 | 'showView' => 'angkorcms/content/content', 16 | 17 | /* 18 | * What middleware is needed to access this plugin 19 | */ 20 | 'middleware' => ['auth', 'admin'], 21 | 22 | /* 23 | * What prefix will be used to the url accessing this plugin 24 | */ 25 | 'prefix' => '', 26 | ); -------------------------------------------------------------------------------- /public/tinymce/plugins/directionality/plugin.min.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add("directionality",function(a){function b(b){var c,d=a.dom,e=a.selection.getSelectedBlocks();e.length&&(c=d.getAttrib(e[0],"dir"),tinymce.each(e,function(a){d.getParent(a.parentNode,"*[dir='"+b+"']",d.getRoot())||(c!=b?d.setAttrib(a,"dir",b):d.setAttrib(a,"dir",null))}),a.nodeChanged())}function c(a){var b=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(c){b.push(c+"[dir="+a+"]")}),b.join(",")}a.addCommand("mceDirectionLTR",function(){b("ltr")}),a.addCommand("mceDirectionRTL",function(){b("rtl")}),a.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:c("ltr")}),a.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:c("rtl")})}); -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/chooseOneImageWithId.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | @if(isset($object)) 5 | @if(is_numeric($object->image_id)) 6 | {!! Form::hidden('image_id', $object->image_id, array('id' => 'image_id'.$id)) !!} 7 | @else 8 | {!! Form::hidden('image_id', '', array('id' => 'image_id'.$id)) !!} 9 | @endif 10 | {!! View::make('angkorcms\medias\form/selectImageWithId')->with(array('folders'=> $folders, 'object'=>$object, 'imagesroot' => $imagesroot, 'id'=>$id)) !!} 11 | @else 12 | {!! Form::hidden('image_id', '', array('id' => 'image_id'.$id)) !!} 13 | {!! View::make('angkorcms\medias\form/selectImageWithId')->with(array('folders'=> $folders, 'imagesroot' => $imagesroot, 'id'=>$id)) !!} 14 | @endif -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/chooseOneImageWithId.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | @if(isset($object)) 5 | @if(is_numeric($object->image_id)) 6 | {!! Form::hidden('image_id', $object->image_id, array('id' => 'image_id'.$id)) !!} 7 | @else 8 | {!! Form::hidden('image_id', '', array('id' => 'image_id'.$id)) !!} 9 | @endif 10 | {!! View::make('angkorcms\medias\form/selectImageWithId')->with(array('folders'=> $folders, 'object'=>$object, 'imagesroot' => $imagesroot, 'id'=>$id)) !!} 11 | @else 12 | {!! Form::hidden('image_id', '', array('id' => 'image_id'.$id)) !!} 13 | {!! View::make('angkorcms\medias\form/selectImageWithId')->with(array('folders'=> $folders, 'imagesroot' => $imagesroot, 'id'=>$id)) !!} 14 | @endif -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token')->index(); 19 | $table->timestamp('created_at'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::drop('password_resets'); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /angkorcms/content/Readme.txt: -------------------------------------------------------------------------------- 1 | ###################### 2 | # # 3 | # INSTALLATION # 4 | # # 5 | ###################### 6 | 7 | 8 | In command line, launch in order: 9 | "php artisan vendor:publish" 10 | "php artisan angkorcmscontent:install" 11 | 12 | Register the service provider in 'config/app.php' : 13 | 'AngkorCMS\Content\AngkorCMSContentServiceProvider', 14 | 15 | Register the module nature in 'config/angkorcmsmodules.php' : 16 | "content" => "angkorcmscontent", 17 | 18 | 19 | 20 | ###################### 21 | # # 22 | # Usage # 23 | # # 24 | ###################### 25 | 26 | This module will show exactly what have been written in the textarea of the edit page -------------------------------------------------------------------------------- /angkorcms/users/src/Http/Requests/UserRequest.php: -------------------------------------------------------------------------------- 1 | 'required|max:30|alpha|unique:users', 24 | 'email' => 'required|email|unique:users', 25 | 'password' => 'required|min:8|confirmed', 26 | 'group_id' => 'exists:angkorcms_groups,id', 27 | ]; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /angkorcms/maps/src/Http/Requests/AngkorCMSMapRequest.php: -------------------------------------------------------------------------------- 1 | 'required|numeric', 24 | 'lng' => 'required|numeric', 25 | 'latMarker' => 'required|numeric', 26 | 'lngMarker' => 'required|numeric', 27 | 'zoom' => 'required|numeric', 28 | ]; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /angkorcms/news/src/Http/routes.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\News\Http\Controllers', 5 | 'middleware' => Config::get('angkorcmsnews.middleware'), 6 | 'prefix' => Config::get('angkorcmsnews.prefix'), 7 | ], function () { 8 | Route::resource('angkorcmsnews', 'AngkorCMSPostController'); 9 | Route::get('angkorcmsnews/tag/{tag}', ['uses' => 'AngkorCMSPostController@getTag', 'as' => 'angkorcmsnews.tag']); 10 | }); 11 | 12 | Route::group([ 13 | 'namespace' => 'AngkorCMS\News\Http\Controllers', 14 | 'middleware' => ['auth'], 15 | ], function () { 16 | Route::controller('angkorcmscomment', 'AngkorCMSCommentController', [ 17 | 'postComment' => 'angkorcmscomment.add', 18 | 'deleteComment' => 'angkorcmscomment.del', 19 | ]); 20 | }); 21 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/responsive-embed.less: -------------------------------------------------------------------------------- 1 | // Embeds responsive 2 | // 3 | // Credit: Nicolas Gallagher and SUIT CSS. 4 | 5 | .embed-responsive { 6 | position: relative; 7 | display: block; 8 | height: 0; 9 | padding: 0; 10 | overflow: hidden; 11 | 12 | .embed-responsive-item, 13 | iframe, 14 | embed, 15 | object, 16 | video { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | height: 100%; 22 | width: 100%; 23 | border: 0; 24 | } 25 | 26 | // Modifier class for 16:9 aspect ratio 27 | &.embed-responsive-16by9 { 28 | padding-bottom: 56.25%; 29 | } 30 | 31 | // Modifier class for 4:3 aspect ratio 32 | &.embed-responsive-4by3 { 33 | padding-bottom: 75%; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 27 | ->hourly(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/scriptChooseOneImageWithId.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/scriptChooseOneImageWithId.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/news/src/database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call('AngkorCMS\News\Database\Seeds\NewsModuleTableSeeder'); 17 | } 18 | 19 | } 20 | 21 | class NewsModuleTableSeeder extends Seeder { 22 | 23 | public function run() { 24 | DB::table('angkorcms_modules')->insert(array( 25 | 'name' => 'news', 26 | 'title' => 'news', 27 | 'unique' => true, 28 | 'nature' => 'news', 29 | 'lang_id' => null, 30 | )); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/BusServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapUsing(function($command) 17 | { 18 | return Dispatcher::simpleMapping( 19 | $command, 'App\Commands', 'App\Handlers\Commands' 20 | ); 21 | }); 22 | } 23 | 24 | /** 25 | * Register any application services. 26 | * 27 | * @return void 28 | */ 29 | public function register() 30 | { 31 | // 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /angkorcms/maps/src/Http/ViewComposers/MakerComposer.php: -------------------------------------------------------------------------------- 1 | map_repository = $map_repository; 12 | } 13 | 14 | public function compose(View $view) { 15 | //Get the data from the view 16 | $viewParameters = $view->getData(); 17 | 18 | //Get the data 19 | $map = $this->map_repository->getByModule($viewParameters['module_id']); 20 | 21 | // Agregate and Send the data to the view 22 | $data = array('map' => $map); 23 | $view->with($data); 24 | } 25 | } -------------------------------------------------------------------------------- /angkorcms/pages/src/database/migrations/2015_05_08_000002_create_angkorcms_pages_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 11 | $table->string('name'); 12 | $table->boolean('accessible')->default(false); 13 | $table->integer('theme_id')->unsigned()->nullable(); 14 | $table->foreign('theme_id')->references('id')->on('angkorcms_themes') 15 | ->onDelete('set null') 16 | ->onUpdate('cascade'); 17 | }); 18 | } 19 | 20 | public function down() { 21 | Schema::drop('angkorcms_pages'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /config/angkorcmsgroupsmodules.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Pages', 9 | 'model' => 'AngkorCMSGroupModule', 10 | 'table' => 'angkorcms_groupsmodules', 11 | 'repository' => 'AngkorCMS\Pages\Repositories\Eloquent\AngkorCMSGroupModuleRepository', 12 | 'route' => 'angkorcmsgroupsmodules', 13 | 'makerAjax' => 'angkorcmsgroupsmodules.makerAjax', 14 | 'makerView' => 'angkorcms/pages/groupsmodules/maker', 15 | 'showView' => 'angkorcms/pages/groupsmodules/show', 16 | 'showDiv' => false, 17 | 18 | /* 19 | * What middleware is needed to access this plugin 20 | */ 21 | 'middleware' => [], 22 | 23 | /* 24 | * What prefix will be used to the url accessing this plugin 25 | */ 26 | 'prefix' => '', 27 | ); -------------------------------------------------------------------------------- /angkorcms/listing/src/Http/ViewComposers/MakerComposer.php: -------------------------------------------------------------------------------- 1 | list_repository = $list_repository; 12 | } 13 | 14 | public function compose(View $view) { 15 | //Get the data from the view 16 | $viewParameters = $view->getData(); 17 | 18 | //Get the data 19 | $list = $this->list_repository->getByModule($viewParameters['module_id']); 20 | 21 | // Agregate and Send the data to the view 22 | $data = array('list' => $list); 23 | $view->with($data); 24 | } 25 | } -------------------------------------------------------------------------------- /angkorcms/pages/src/AngkorCMSPageTransBlock.php: -------------------------------------------------------------------------------- 1 | belongsTo('AngkorCMS\Pages\AngkorCMSPageTrans', 'page_trans_id', 'id'); 15 | } 16 | 17 | public function block() { 18 | return $this->belongsTo('AngkorCMS\Pages\AngkorCMSBlock', 'block_id', 'id'); 19 | } 20 | 21 | public function modules() { 22 | return $this->hasMany('AngkorCMS\Pages\AngkorCMSPageTransBlockModule', 'page_trans_block_id', 'id')->orderBy('position'); 23 | } 24 | } -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 15 | 'EventListener', 16 | ], 17 | ]; 18 | 19 | /** 20 | * Register any other events for your application. 21 | * 22 | * @param \Illuminate\Contracts\Events\Dispatcher $events 23 | * @return void 24 | */ 25 | public function boot(DispatcherContract $events) 26 | { 27 | parent::boot($events); 28 | 29 | // 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /angkorcms/maps/Readme.txt: -------------------------------------------------------------------------------- 1 | ###################### 2 | # # 3 | # INSTALLATION # 4 | # # 5 | ###################### 6 | 7 | 8 | In command line, launch in order: 9 | "php artisan vendor:publish" 10 | "php artisan angkorcmsmap:install" 11 | 12 | Register the service provider in 'config/app.php' : 13 | 'AngkorCMS\Maps\AngkorCMSMapsServiceProvider', 14 | 15 | Register the module nature in 'config/angkorcmsmodules.php' : 16 | "map" => "angkorcmsmap", 17 | 18 | 19 | 20 | ###################### 21 | # # 22 | # Usage # 23 | # # 24 | ###################### 25 | 26 | 27 | Attributes available : 28 | 'map-height': 29 | To set the height of the map. 30 | 31 | 'map-width': 32 | To set the max-width of the map. -------------------------------------------------------------------------------- /angkorcms/multilanguages/src/Http/Requests/AngkorCMSLangRequest.php: -------------------------------------------------------------------------------- 1 | 'required|max:2', 24 | 'description' => 'required', 25 | 'image_id' => 'exists:'.Config::get('angkorcmsmultilanguages.image_table').','.Config::get('angkorcmsmultilanguages.image_id'), 26 | ]; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /angkorcms/pages/src/config/angkorcmsgroupsmodules.php: -------------------------------------------------------------------------------- 1 | 'AngkorCMS\Pages', 9 | 'model' => 'AngkorCMSGroupModule', 10 | 'table' => 'angkorcms_groupsmodules', 11 | 'repository' => 'AngkorCMS\Pages\Repositories\Eloquent\AngkorCMSGroupModuleRepository', 12 | 'route' => 'angkorcmsgroupsmodules', 13 | 'makerAjax' => 'angkorcmsgroupsmodules.makerAjax', 14 | 'makerView' => 'angkorcms/pages/groupsmodules/maker', 15 | 'showView' => 'angkorcms/pages/groupsmodules/show', 16 | 'showDiv' => false, 17 | 18 | /* 19 | * What middleware is needed to access this plugin 20 | */ 21 | 'middleware' => [], 22 | 23 | /* 24 | * What prefix will be used to the url accessing this plugin 25 | */ 26 | 'prefix' => '', 27 | ); -------------------------------------------------------------------------------- /resources/views/install/install-db.blade.php: -------------------------------------------------------------------------------- 1 | @extends('install/master') 2 | 3 | @section('content') 4 | '; 13 | } else if ($num == 1) { 14 | echo 'Whoops something wrong happened :
';?>(Back to .env creation)
'; 16 | foreach ($test as $key => $value) { 17 | echo $value . '
'; 18 | } 19 | echo ''; 20 | } 21 | 22 | ?> 23 |

24 | Admin : Admin Panel 25 |

26 | @endsection -------------------------------------------------------------------------------- /angkorcms/maps/src/Http/Controllers/AngkorCMSMapController.php: -------------------------------------------------------------------------------- 1 | repository = $repository; 13 | } 14 | 15 | public function postUpdateMap($id, AngkorCMSMapRequest $request) { 16 | if ($map = $this->repository->update($id)) { 17 | return Redirect::route('angkorcmsmodules.edit', array($map->module_id)); 18 | } 19 | return Redirect::route('angkorcmsmodules.index')->with('error', 'The module doesn\'t exist.'); 20 | 21 | } 22 | } -------------------------------------------------------------------------------- /resources/views/angkorcms/listing/list.blade.php: -------------------------------------------------------------------------------- 1 | @if(count($listing->items)>0) 2 | 20 | @endif 21 | -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/selectImage.blade.php: -------------------------------------------------------------------------------- 1 | {!! View::make('angkorcms\medias\form\graphicalView')->with(array('folders' => $foldersroot, 'images' => $images)) !!} 2 |
3 | 22 |
-------------------------------------------------------------------------------- /angkorcms/listing/src/resources/views/list.blade.php: -------------------------------------------------------------------------------- 1 | @if(count($listing->items)>0) 2 | 20 | @endif 21 | -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/selectImage.blade.php: -------------------------------------------------------------------------------- 1 | {!! View::make('angkorcms\medias\form\graphicalView')->with(array('folders' => $foldersroot, 'images' => $images)) !!} 2 |
3 | 22 |
-------------------------------------------------------------------------------- /resources/views/angkorcms/news/modules/show.blade.php: -------------------------------------------------------------------------------- 1 | @if($mode == 'list') 2 | {!! View::make('angkorcms/news/modules/list')->with(array('posts' => $posts, "full" => isset($attr['news-list-full']) ? $attr['news-list-full'] : false, "parameters" => $parameters, "unique_id" => $unique_id, 'attr' => $attr, 'parameters' => $parameters, 'attributes' => $attributes, 'tag' => isset($tag) ? $tag : null)) !!} 3 | 4 | @elseif($mode == 'read') 5 | 6 | $post, "full" => isset($attr['news-list-full']) ? $attr['news-list-full'] : false, "parameters" => $parameters, "unique_id" => $unique_id . '_' . $post->id, 'attr' => $attr, 'parameters' => $parameters, 'attributes' => $attributes, 'post' => $post); 8 | ?> 9 | {!! AngkorBlade::createViewAsModule('angkorcms/news/modules/read', $attributes, $data) !!} 10 | @endif -------------------------------------------------------------------------------- /angkorcms/listing/Readme.txt: -------------------------------------------------------------------------------- 1 | ###################### 2 | # # 3 | # INSTALLATION # 4 | # # 5 | ###################### 6 | 7 | 8 | In command line, launch in order: 9 | "php artisan vendor:publish" 10 | "php artisan angkorcmslisting:install" 11 | 12 | Register the service provider in 'config/app.php' : 13 | 'AngkorCMS\Listing\AngkorCMSListingServiceProvider', 14 | 15 | Register the module nature in 'config/angkorcmsmodules.php' : 16 | "listing" => "angkorcmslistings", 17 | 18 | 19 | 20 | ###################### 21 | # # 22 | # Usage # 23 | # # 24 | ###################### 25 | 26 | Attributes available : 27 | 'list-class': 28 | To set a class to the ul element. 29 | 30 | 'list-item-class': 31 | To set a class to each li element. -------------------------------------------------------------------------------- /angkorcms/news/src/resources/views/modules/show.blade.php: -------------------------------------------------------------------------------- 1 | @if($mode == 'list') 2 | {!! View::make('angkorcms/news/modules/list')->with(array('posts' => $posts, "full" => isset($attr['news-list-full']) ? $attr['news-list-full'] : false, "parameters" => $parameters, "unique_id" => $unique_id, 'attr' => $attr, 'parameters' => $parameters, 'attributes' => $attributes, 'tag' => isset($tag) ? $tag : null)) !!} 3 | 4 | @elseif($mode == 'read') 5 | 6 | $post, "full" => isset($attr['news-list-full']) ? $attr['news-list-full'] : false, "parameters" => $parameters, "unique_id" => $unique_id . '_' . $post->id, 'attr' => $attr, 'parameters' => $parameters, 'attributes' => $attributes, 'post' => $post); 8 | ?> 9 | {!! AngkorBlade::createViewAsModule('angkorcms/news/modules/read', $attributes, $data) !!} 10 | @endif 11 | -------------------------------------------------------------------------------- /angkorcms/slideshow/src/Http/Requests/AngkorCMSSlideshowTransRequest.php: -------------------------------------------------------------------------------- 1 | 'required|exists:'.Config::get('angkorcmsslideshow.lang_table').','.Config::get('angkorcmsslideshow.lang_id'), 24 | 'description' => 'required', 25 | 'slideshow_id' => 'required|exists:angkorcms_slideshows,id', 26 | ]; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /app/Http/Middleware/IsInstallationPhase.php: -------------------------------------------------------------------------------- 1 | count(); 17 | $installationDone = true; 18 | } catch (\Exception $e) { 19 | 20 | } 21 | 22 | if (!$installationDone && env('APP_DEBUG')) { 23 | return $next($request); 24 | } 25 | 26 | return $this->error($request); 27 | } 28 | 29 | public function error($request) { 30 | if ($request->ajax()) { 31 | return response('Unauthorized.', 401); 32 | } else { 33 | return redirect('/')->with('error', 'The installation has already been done'); 34 | } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->bind( 29 | 'Illuminate\Contracts\Auth\Registrar', 30 | 'App\Services\Registrar' 31 | ); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /resources/views/angkorcms/medias/form/scriptChooseMultipleImage.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/listing/src/database/migrations/2015_05_07_000003_create_angkorcms_list_items_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 11 | $table->string('text'); 12 | $table->integer('position')->default(0); 13 | $table->string('url'); 14 | $table->string('anchor'); 15 | $table->integer('list_id')->unsigned(); 16 | $table->foreign('list_id')->references('id')->on('angkorcms_lists') 17 | ->onDelete('cascade') 18 | ->onUpdate('cascade'); 19 | }); 20 | } 21 | 22 | public function down() { 23 | Schema::drop('angkorcms_list_items'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /angkorcms/medias/src/resources/views/form/scriptChooseMultipleImage.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angkorcms/listing/src/database/migrations/2015_05_07_000001_create_angkorcms_lists_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 16 | $table->integer('module_id')->unsigned(); 17 | $table->foreign('module_id')->references('id')->on('angkorcms_modules') 18 | ->onDelete('cascade') 19 | ->onUpdate('cascade'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() { 29 | Schema::drop('angkorcms_slideshows'); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /angkorcms/medias/src/Http/Controllers/AngkorCMSMediaController.php: -------------------------------------------------------------------------------- 1 | getListByFolder(); 17 | $folders = $folder_repository->getListByFolder(); 18 | $data = array_merge($images, $folders); 19 | return view('angkorcms/medias/index', $data); 20 | } 21 | } 22 | --------------------------------------------------------------------------------