From 44c1d6d63860cf478f61a5b6c9a7783273643e4d Mon Sep 17 00:00:00 2001 From: wp-kitten Date: Fri, 1 Jan 2021 10:54:25 +0200 Subject: [PATCH] Refactoring --- assets/dist/css/theme-styles.css | 1 + assets/dist/js/theme-scripts.js | 2 + assets/dist/js/theme-scripts.js.LICENSE.txt | 83 + assets/dist/mix-manifest.json | 4 + assets/package-lock.json | 9189 +++++++++++++++++ controllers/NewspaperAdminController.php | 10 +- controllers/NewspaperAjaxController.php | 2 +- controllers/NewspaperThemeController.php | 10 +- ...zip => valpress-newspaper-feed-reader.zip} | Bin 159566 -> 159885 bytes src/NewspaperHelper.php | 4 +- theme-hooks.php | 2 +- theme.json | 2 +- views/layouts/frontend.blade.php | 2 +- views/partials/inc/news-ticker.blade.php | 2 +- views/partials/site-footer.blade.php | 2 +- views/templates/home.blade.php | 2 +- 16 files changed, 9298 insertions(+), 19 deletions(-) create mode 100644 assets/dist/css/theme-styles.css create mode 100644 assets/dist/js/theme-scripts.js create mode 100644 assets/dist/js/theme-scripts.js.LICENSE.txt create mode 100644 assets/dist/mix-manifest.json create mode 100644 assets/package-lock.json rename inc/{cp-newspaper-feed-reader.zip => valpress-newspaper-feed-reader.zip} (84%) diff --git a/assets/dist/css/theme-styles.css b/assets/dist/css/theme-styles.css new file mode 100644 index 0000000..41c3418 --- /dev/null +++ b/assets/dist/css/theme-styles.css @@ -0,0 +1 @@ +.hidden{display:none!important}.image-responsive{max-width:100%}.np-relative{position:relative}body{background-color:#eee}a,img{border:0;outline:none}.alert p{margin-bottom:0!important}.masonry-grid .grid-sizer{display:none}.masonry-grid .masonry-item{margin-bottom:20px!important}.full-w{width:100%!important}.full-h{height:100%!important}.font-default{font-family:Nunito,sans-serif}.info-bar .info-bar-wrap{display:flex;align-items:center;align-content:space-between;justify-content:space-between;height:100%}.info-bar .info-bar-wrap .the-date{margin-right:25px;font-size:.8rem}.info-bar .info-bar-wrap a{font-size:.8rem}@media (min-width:400px){.info-bar .info-bar-wrap a{margin-right:10px}}.info-bar .info-bar-wrap a:last-of-type{margin-right:0!important}.news-ticker{width:100%}.news-ticker .news-ticker-wrap{position:relative}.news-ticker .news-ticker-label{position:absolute;z-index:2;left:0;top:0;height:100%;background:#c00;color:#fff;padding:5px 10px}.news-ticker ul{margin:0;list-style-type:none;list-style-position:outside;background-color:#343a40}.news-ticker li{padding:0 10px;margin:4px 0;display:inline-block}.news-ticker li a{font-size:13px!important;color:#fff}.header-content .app-logo{margin:0}.header-content .app-logo a{text-decoration:none!important}.topnav{overflow:hidden;border-radius:3px}.topnav a{float:left;display:block;color:#f2f2f2;text-align:center;padding:14px 16px;text-decoration:none}.topnav .active{background-color:#4caf50}.topnav .btn-toggle-nav{display:none}.topnav .has-submenu{float:left;overflow:hidden}.topnav .has-submenu.active{background-color:#4caf50}.topnav .has-submenu .show-submenu{border:none;outline:none;padding:14px 16px;background-color:inherit;margin:0}.topnav .has-submenu .submenu-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);z-index:3}.topnav .has-submenu .submenu-content a{float:none;padding:12px 16px;text-decoration:none;display:block;text-align:left;color:#0d0a0a}.topnav .has-submenu .submenu-content a:hover{background-color:#ddd;color:#000}.topnav .has-submenu:hover .submenu-content{display:block}.topnav .has-submenu:hover .show-submenu,.topnav a:hover{background-color:#4caf50}.topnav.bg-dark.text-light .show-submenu,.topnav.bg-dark.text-light>a{color:#f2f2f2}@media screen and (max-width:767px){.topnav .has-submenu .show-submenu,.topnav a:not(:first-child){display:none}.topnav a.btn-toggle-nav{float:right;display:block}}@media screen and (max-width:767px){.topnav.responsive{position:relative}.topnav.responsive .btn-toggle-nav{position:absolute;right:0;top:0}.topnav.responsive a{float:none;display:block;text-align:left}.topnav.responsive .has-submenu{float:none}.topnav.responsive .submenu-content{position:relative}.topnav.responsive .has-submenu .show-submenu{display:block;width:100%;text-align:left}}.cp-mega-menu{overflow:hidden;background-color:#0f6674}.cp-mega-menu,.cp-mega-menu .has-dropdown>.sub-menu{list-style-position:outside;list-style-type:none;margin:0;padding:0}.cp-mega-menu .has-dropdown>.sub-menu{display:none;position:absolute;left:15px;width:calc(100% - 30px);background-color:#fff;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);z-index:12}.cp-mega-menu .has-dropdown>.sub-menu>.submenu-wrap{padding:10px;display:flex;align-items:center;align-content:flex-start;justify-content:flex-start}.cp-mega-menu .has-dropdown>.sub-menu .megamenu-section{min-width:25%;max-width:25%}.cp-mega-menu .has-dropdown>.sub-menu .megamenu-child{list-style-position:outside;list-style-type:none;margin:0;padding:0}.cp-mega-menu .has-dropdown{float:left;overflow:hidden;display:block}.cp-mega-menu .has-dropdown>a{color:#fff;display:block;padding:14px 16px}.cp-mega-menu .has-dropdown:hover .sub-menu{display:block}.site-page .s-5 .hentry-loop .hentry-title{left:0;right:0;bottom:0;background:rgba(0,0,0,.5);margin-bottom:0;padding:5px;line-height:1.4;font-size:.9rem;font-weight:400}.site-page .s-5 .hentry-loop .hentry-title a{font-size:inherit;font-weight:400}.pagination-wrap nav{display:flex;align-items:center;align-content:center;justify-content:center}.page-singular .article-single .entry-content{font-size:16px}.page-singular .article-single .entry-content img{max-width:100%}.site-page{margin-top:20px}.hentry-loop{background-color:#fff}.hentry-loop,.hentry-loop .hentry-header{position:relative}.hentry-loop .hentry-category{position:absolute;z-index:2;right:5px;bottom:5px;padding:5px 10px}.hentry-loop .hentry-content{position:relative;padding:10px 0}.hentry-loop .hentry-content .hentry-title{font-size:14px;line-height:1.4}.hentry-loop .hentry-excerpt{position:relative}.hentry-loop .hentry-content .hentry-title,.hentry-loop .hentry-excerpt{padding:0 10px}.hentry-loop .hentry-title.title-small{font-size:14px}.hentry-loop.special .hentry-title{position:absolute;left:5px;bottom:0;z-index:2}.hentry-loop.special .hentry-title a{font-size:16px;color:#fff!important}.hentry-loop.special .hentry-category{top:5px;bottom:auto}.hentry-loop.carousel{position:relative}.hentry-loop.carousel .hentry-title{position:absolute;left:0;bottom:0;z-index:2;margin:0;padding:5px 5px 30px;background:rgba(0,0,0,.5);line-height:1.4;font-size:.9rem;font-weight:400}.hentry-loop.carousel .hentry-title a{font-size:inherit;color:#fff!important}.hentry-loop.carousel .hentry-content{margin:-20px 10px 0;position:relative;background:#fff;z-index:3}.hentry-loop.carousel .hentry-category{position:relative!important;color:#c00;padding:0;margin:0;right:auto;left:auto;top:auto;bottom:auto}.hentry-loop.carousel .hentry-meta{padding:0 10px}.hentry-loop.carousel .hentry-meta,.site-sidebar .widget-categories .categories-list li{display:flex;align-items:center;align-content:space-between;justify-content:space-between}.site-sidebar .widget-categories .categories-list li{border-bottom:1px solid #f5f5f5;padding:10px 0}.site-sidebar .widget-categories .categories-list li:last-child{border-bottom:0}.site-sidebar .widget-search .widget-content .search-button{display:none!important}.site-sidebar .widget-search .widget-content .search-field{width:100%;max-width:100%;outline:0!important;line-height:1.6;padding:5px 12px}.site-sidebar .widget-posts .posts-list li{display:flex;align-items:flex-start;align-content:flex-start;justify-content:flex-start}.site-sidebar .widget-posts .posts-list li img{width:60px}.site-sidebar .widget-posts .posts-list li:last-child{margin-bottom:0!important}.related-posts .slider-nav{position:relative}.related-posts .slider-nav .btn-next,.related-posts .slider-nav .btn-prev{font-size:18px;position:absolute;top:8px;padding:10px 20px;background:rgba(0,0,0,.7);z-index:3;color:#fff}.related-posts .slider-nav .btn-prev{left:15px}.related-posts .slider-nav .btn-next{right:15px}.related-posts .slider-wrap .slide-item{padding:0 15px 15px}.posts-navigation{display:flex;align-items:center;align-content:space-between;justify-content:space-between}.posts-navigation .previous-link-wrap{max-width:48.5%}.posts-navigation .next-link-wrap{max-width:48%}.posts-navigation .next-post-link,.posts-navigation .previous-post-link{display:flex;align-content:center;justify-content:center;background-color:#fff;padding:20px 5px}.posts-navigation .next-post-link .nav-icon,.posts-navigation .previous-post-link .nav-icon{font-size:30px}.posts-navigation .next-post-link .the-title,.posts-navigation .previous-post-link .the-title{font-size:14px}.posts-navigation .next-post-link:active,.posts-navigation .next-post-link:focus,.posts-navigation .next-post-link:hover,.posts-navigation .previous-post-link:active,.posts-navigation .previous-post-link:focus,.posts-navigation .previous-post-link:hover{text-decoration:none!important}.posts-navigation .previous-post-link{align-items:center}.posts-navigation .previous-post-link .the-title{margin-right:20px}.posts-navigation .previous-post-link .nav-icon{margin-right:10px}.posts-navigation .next-post-link{align-items:center}.posts-navigation .next-post-link .the-title{margin-left:20px}.posts-navigation .next-post-link .nav-icon{margin-left:10px}.site-footer{background-color:#0d0a0a}.site-footer .site-logo{margin:1rem 0}.site-footer .footer-menu-nav .footer-menu{margin:0;padding:0;list-style-position:outside}.site-footer .footer-menu-nav .footer-menu .active{background-color:transparent}.site-footer .footer-menu-nav .footer-menu a{color:#f5f5f5;font-size:12px;padding:7px 10px}.site-footer .footer-menu-nav .footer-menu a:active,.site-footer .footer-menu-nav .footer-menu a:focus,.site-footer .footer-menu-nav .footer-menu a:hover{color:#fafafa}.site-footer .footer-menu-nav .footer-menu a:last-of-type{padding-right:0!important}.site-footer .copyright{border-top:1px solid #191818} \ No newline at end of file diff --git a/assets/dist/js/theme-scripts.js b/assets/dist/js/theme-scripts.js new file mode 100644 index 0000000..65aad1b --- /dev/null +++ b/assets/dist/js/theme-scripts.js @@ -0,0 +1,2 @@ +/*! For license information please see theme-scripts.js.LICENSE.txt */ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=60)}([function(e,t,n){"use strict";e.exports=n(61)},function(e,t,n){var r=n(38),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(71),i=n(77);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(8),i=n(73),o=n(74),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(20),i=n(35);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var l=-1,u=t.length;++l