diff --git a/octobermovies.sublime-workspace b/octobermovies.sublime-workspace index a9da071..a390f3b 100644 --- a/octobermovies.sublime-workspace +++ b/octobermovies.sublime-workspace @@ -336,63 +336,19 @@ "buffers": [ { - "file": "package.json", + "file": "plugins/watchlearn/movies/routes.php", "settings": { - "buffer_size": 1041, + "buffer_size": 1098, "encoding": "UTF-8", "line_ending": "Unix" } }, { - "file": "webpack.mix.js", + "file": "plugins/watchlearn/movies/views/sitemap.htm", "settings": { - "buffer_size": 2294, - "encoding": "UTF-8", - "line_ending": "Unix" - } - }, - { - "file": "themes/olympos/layouts/default.htm", - "settings": - { - "buffer_size": 1676, - "encoding": "UTF-8", - "line_ending": "Unix" - } - }, - { - "file": "themes/olympos/assets/sass/_globals.scss", - "settings": - { - "buffer_size": 2196, - "encoding": "UTF-8", - "line_ending": "Unix" - } - }, - { - "file": "themes/olympos/assets/js/app.js", - "settings": - { - "buffer_size": 169, - "encoding": "UTF-8", - "line_ending": "Unix" - } - }, - { - "file": "themes/olympos/assets/dist/js/app.js", - "settings": - { - "buffer_size": 3704, - "line_ending": "Unix" - } - }, - { - "file": "themes/olympos/assets/js/sayhi.js", - "settings": - { - "buffer_size": 117, + "buffer_size": 532, "encoding": "UTF-8", "line_ending": "Unix" } @@ -620,25 +576,22 @@ "expanded_folders": [ "/Users/idoric/Development/public/octobermovies", - "/Users/idoric/Development/public/octobermovies/public", - "/Users/idoric/Development/public/octobermovies/public/dist", - "/Users/idoric/Development/public/octobermovies/themes", - "/Users/idoric/Development/public/octobermovies/themes/olympos", - "/Users/idoric/Development/public/octobermovies/themes/olympos/assets", - "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/dist", - "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/dist/css", - "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/dist/js", - "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/js", - "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/sass", - "/Users/idoric/Development/public/octobermovies/themes/olympos/layouts" + "/Users/idoric/Development/public/octobermovies/plugins", + "/Users/idoric/Development/public/octobermovies/plugins/watchlearn", + "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies", + "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/views" ], "file_history": [ "/Users/idoric/Development/public/octobermovies/package.json", + "/Users/idoric/Development/public/octobermovies/webpack.mix.js", + "/Users/idoric/Development/public/octobermovies/themes/olympos/layouts/default.htm", + "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/sass/_globals.scss", + "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/js/sayhi.js", + "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/dist/js/app.js", "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/js/app.js", "/Users/idoric/Development/public/octobermovies/gulpfile.js", "/Users/idoric/Library/Application Support/Sublime Text 3/Packages/User/JavaScript.sublime-build", - "/Users/idoric/Development/public/octobermovies/webpack.mix.js", "/Users/idoric/Development/public/octobermovies/npm-debug.log", "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/controllers/Movies.php", "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/controllers/movies/config_relation.yaml", @@ -652,10 +605,8 @@ "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/models/movie/_poster_column.htm", "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/models/actor/columns.yaml", "/Users/idoric/Development/public/octobermovies/themes/olympos/layouts/static-layout.htm", - "/Users/idoric/Development/public/octobermovies/themes/olympos/layouts/default.htm", "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/controllers/movies/_list_toolbar.htm", "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/contact/components/contactform/default.htm", - "/Users/idoric/Development/public/octobermovies/themes/olympos/assets/sass/_globals.scss", "/Users/idoric/Development/public/octobermovies/config/mail.php", "/Users/idoric/Development/public/octobermovies/themes/olympos/pages/homepage.htm", "/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/routes.php", @@ -759,9 +710,7 @@ "/Users/ivan/Development/public/activenation/wp-content/themes/olympos/parts/goldenticket/slide-01.php", "/Users/ivan/Development/public/activenation/wp-content/themes/olympos/sass/_goldenticket-animations.scss", "/Users/ivan/Development/public/activenation/Assets/krave/index.html", - "/Users/ivan/Development/public/activenation/wp-content/themes/olympos/goldenticket.php", - "/Users/ivan/Development/public/activenation/wp-content/themes/olympos/sass/_golden-ticket.scss", - "/Users/ivan/Development/public/activenation/wp-content/themes/olympos/parts/goldenticket/slide-02.php" + "/Users/ivan/Development/public/activenation/wp-content/themes/olympos/goldenticket.php" ], "find": { @@ -979,19 +928,19 @@ [ { "buffer": 0, - "file": "package.json", + "file": "plugins/watchlearn/movies/routes.php", "semi_transient": false, "settings": { - "buffer_size": 1041, + "buffer_size": 1098, "regions": { }, "selection": [ [ - 492, - 492 + 1092, + 1092 ] ], "settings": @@ -999,221 +948,51 @@ "incomplete_sync": null, "remote_loading": false, "synced": false, - "syntax": "Packages/zzz A File Icon zzz/aliases/JSON (NPM).sublime-syntax", - "tabs_extra_last_activated": 1492622727.92, + "syntax": "Packages/PHP/PHP.sublime-syntax", + "tabs_extra_last_activated": 1492937998.66, "tabs_extra_last_activated_sheet_index": 0, "tabs_extra_spawned": true }, "translation.x": 0.0, - "translation.y": 170.0, + "translation.y": 1247.0, "zoom_level": 1.0 }, - "stack_index": 6, + "stack_index": 1, "type": "text" }, { "buffer": 1, - "file": "webpack.mix.js", - "semi_transient": false, - "settings": - { - "buffer_size": 2294, - "regions": - { - }, - "selection": - [ - [ - 835, - 835 - ] - ], - "settings": - { - "incomplete_sync": null, - "remote_loading": false, - "synced": false, - "syntax": "Packages/Seti_UI/icons/Langs/Laravel Mix (JS).tmLanguage", - "tabs_extra_last_activated": 1492673968.67, - "tabs_extra_last_activated_sheet_index": 1, - "tabs_extra_spawned": true - }, - "translation.x": 0.0, - "translation.y": 805.0, - "zoom_level": 1.0 - }, - "stack_index": 0, - "type": "text" - }, - { - "buffer": 2, - "file": "themes/olympos/layouts/default.htm", + "file": "plugins/watchlearn/movies/views/sitemap.htm", "semi_transient": false, "settings": { - "buffer_size": 1676, + "buffer_size": 532, "regions": { }, "selection": [ [ - 1086, - 1086 + 408, + 408 ] ], "settings": { "incomplete_sync": null, + "open_with_edit": true, "remote_loading": false, "synced": false, "syntax": "Packages/Twig/Syntaxes/HTML (Twig).tmLanguage", - "tabs_extra_last_activated": 1492623643.56, - "tabs_extra_last_activated_sheet_index": 2, - "tabs_extra_spawned": true - }, - "translation.x": 0.0, - "translation.y": 1081.0, - "zoom_level": 1.0 - }, - "stack_index": 5, - "type": "text" - }, - { - "buffer": 3, - "file": "themes/olympos/assets/sass/_globals.scss", - "semi_transient": false, - "settings": - { - "buffer_size": 2196, - "regions": - { - }, - "selection": - [ - [ - 285, - 285 - ] - ], - "settings": - { - "incomplete_sync": null, - "remote_loading": false, - "synced": false, - "syntax": "Packages/Syntax Highlighting for Sass/Syntaxes/SCSS.tmLanguage", - "tabs_extra_last_activated": 1492624636.72, - "tabs_extra_last_activated_sheet_index": 3, - "tabs_extra_spawned": true - }, - "translation.x": 0.0, - "translation.y": 171.0, - "zoom_level": 1.0 - }, - "stack_index": 4, - "type": "text" - }, - { - "buffer": 4, - "file": "themes/olympos/assets/js/app.js", - "semi_transient": false, - "settings": - { - "buffer_size": 169, - "regions": - { - }, - "selection": - [ - [ - 169, - 169 - ] - ], - "settings": - { - "incomplete_sync": null, - "remote_loading": false, - "synced": false, - "syntax": "Packages/JavaScript/JavaScript.sublime-syntax", - "tabs_extra_last_activated": 1492625597.72, - "tabs_extra_last_activated_sheet_index": 4, - "tabs_extra_spawned": true - }, - "translation.x": 0.0, - "translation.y": 0.0, - "zoom_level": 1.0 - }, - "stack_index": 2, - "type": "text" - }, - { - "buffer": 5, - "file": "themes/olympos/assets/dist/js/app.js", - "semi_transient": true, - "settings": - { - "buffer_size": 3704, - "regions": - { - }, - "selection": - [ - [ - 3138, - 3138 - ] - ], - "settings": - { - "incomplete_sync": null, - "remote_loading": false, - "synced": false, - "syntax": "Packages/JavaScript/JavaScript.sublime-syntax", - "tabs_extra_last_activated": 1492626084.44, - "tabs_extra_last_activated_sheet_index": 5, - "tabs_extra_spawned": true - }, - "translation.x": 0.0, - "translation.y": 3342.0, - "zoom_level": 1.0 - }, - "stack_index": 1, - "type": "text" - }, - { - "buffer": 6, - "file": "themes/olympos/assets/js/sayhi.js", - "semi_transient": false, - "settings": - { - "buffer_size": 117, - "regions": - { - }, - "selection": - [ - [ - 115, - 115 - ] - ], - "settings": - { - "_anf_new": "", - "incomplete_sync": null, - "remote_loading": false, - "synced": false, - "syntax": "Packages/JavaScript/JavaScript.sublime-syntax", - "tabs_extra_last_activated": 1492625492.0, - "tabs_extra_last_activated_sheet_index": 5, + "tabs_extra_last_activated": 1492940236.52, + "tabs_extra_last_activated_sheet_index": 1, "tabs_extra_spawned": true }, "translation.x": 0.0, "translation.y": 0.0, "zoom_level": 1.0 }, - "stack_index": 3, + "stack_index": 0, "type": "text" } ] @@ -1793,21 +1572,29 @@ "select_project": { "height": 500.0, - "last_filter": "kon", + "last_filter": "wat", "selected_items": [ [ - "kon", - "~/Development/public/iwmndev_vipnet-company-web1/konfigurator.sublime-project" + "wat", + "~/Development/public/watchlearn/watchlearn.sublime-project" ], [ - "october", + "octob", "~/Development/public/october/october.sublime-project" ], [ "", + "~/Development/public/watchlearn/watchlearn.sublime-project" + ], + [ + "kon", "~/Development/public/iwmndev_vipnet-company-web1/konfigurator.sublime-project" ], + [ + "october", + "~/Development/public/october/october.sublime-project" + ], [ "to", "~/Development/public/todoapi/todoapi.sublime-project" @@ -1824,10 +1611,6 @@ "vip", "~/Burza/vip-templates/vip-templates.sublime-project" ], - [ - "wat", - "~/Development/public/watchlearn/watchlearn.sublime-project" - ], [ "watch", "~/Development/public/watchlearn/watchlearn.sublime-project" diff --git a/plugins/watchlearn/movies/routes.php b/plugins/watchlearn/movies/routes.php index 4ce048d..c84017b 100644 --- a/plugins/watchlearn/movies/routes.php +++ b/plugins/watchlearn/movies/routes.php @@ -38,3 +38,11 @@ return $movies; }); + +Route::get('sitemap.xml', function(){ + $movies = Movie::all(); + $genres = Genre::all(); + + return Response::view('watchlearn.movies::sitemap', ['movies' => $movies, 'genres' => $genres])->header('Content-Type', 'text/xml'); + +}); diff --git a/plugins/watchlearn/movies/views/sitemap.htm b/plugins/watchlearn/movies/views/sitemap.htm new file mode 100644 index 0000000..822af00 --- /dev/null +++ b/plugins/watchlearn/movies/views/sitemap.htm @@ -0,0 +1,12 @@ + + + {% for movie in movies %} + + {{ url('/movies/movie/') ~ movie.slug }} + {{ movie.created_at|date('c') }} + always + 0.5 + + {% endfor %} + + \ No newline at end of file diff --git a/themes/olympos/assets/dist/js/app.js b/themes/olympos/assets/dist/js/app.js index 7369afb..637b611 100644 --- a/themes/olympos/assets/dist/js/app.js +++ b/themes/olympos/assets/dist/js/app.js @@ -63,7 +63,7 @@ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 2); +/******/ return __webpack_require__(__webpack_require__.s = 3); /******/ }) /************************************************************************/ /******/ ([ @@ -72,7 +72,7 @@ "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sayhi__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sayhi__ = __webpack_require__(2); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -86,7 +86,7 @@ var HelloWorld = function HelloWorld() { alert('Hello World'); }; -new HelloWorld(); +//new HelloWorld; /***/ }), /* 1 */ @@ -96,17 +96,6 @@ new HelloWorld(); /***/ }), /* 2 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(0); -module.exports = __webpack_require__(1); - - -/***/ }), -/* 3 */, -/* 4 */, -/* 5 */, -/* 6 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -120,5 +109,13 @@ function sayBye(name) { alert('Bye ' + name); } +/***/ }), +/* 3 */ +/***/ (function(module, exports, __webpack_require__) { + +__webpack_require__(0); +module.exports = __webpack_require__(1); + + /***/ }) /******/ ]); \ No newline at end of file diff --git a/themes/olympos/assets/js/app.js b/themes/olympos/assets/js/app.js index 3688603..d6b0a60 100644 --- a/themes/olympos/assets/js/app.js +++ b/themes/olympos/assets/js/app.js @@ -9,4 +9,4 @@ class HelloWorld{ } } -new HelloWorld; \ No newline at end of file +//new HelloWorld; \ No newline at end of file