diff --git a/app/Helpers/CurrentTemplate.php b/app/Helpers/CurrentTemplate.php index 9f88dd88..ba04b6d8 100644 --- a/app/Helpers/CurrentTemplate.php +++ b/app/Helpers/CurrentTemplate.php @@ -2,6 +2,9 @@ namespace App\Helpers; use App\Models\Module; +use DebugBar\Bridge\MonologCollector; +use Illuminate\Database\QueryException; +use Monolog\Logger; class CurrentTemplate { @@ -10,16 +13,19 @@ class CurrentTemplate /** * Getter for currently set template - * * @return Module + * @throws \ErrorException */ public static function get() { if (!self::$initialized) { + try { self::$template = Module::where('is_template', true) ->where('enabled', true) ->first(); - + } catch (QueryException $e) { + throw new \ErrorException('DB not migrated, please, do so!'); + } if (self::$template) { self::$template->module_settings = json_decode(self::$template->module_settings); } diff --git a/templates/Binarity/Resources/assets/css/app.css b/templates/Binarity/Resources/assets/css/app.css index f3270e16..1c328042 100644 --- a/templates/Binarity/Resources/assets/css/app.css +++ b/templates/Binarity/Resources/assets/css/app.css @@ -5355,9 +5355,15 @@ table.hover tr:nth-of-type(even):hover { .m-0 { margin: 0 !important; } +.m-t-5 { + margin-top: 5px; +} .m-t-25 { margin-top: 25px; } +.m-t-35 { + margin-top: 35px; +} .m-t-50 { margin-top: 50px; } @@ -9237,13 +9243,24 @@ article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,secti .article-list-item .date.big { - font-size: 4em; + font-size: 5em; line-height: 1em; + font-weight: 500; + color: #414042; +} +.article-list-item .date.month { + top: -15px; + position: relative; + right: 3px; + color: #414042; } .gravatar { border-radius: 50%; } +.author .gravatar { + width: 40px; +} .article-list-item .author { line-height: 1; @@ -9262,18 +9279,35 @@ article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,secti } article h1 { - font-size: 2em; + font-size: 1.9em; + font-weight: 700; } article h2 { margin-top: 20px; - font-size: 1.5em; + font-size: 1.35em; + color: #414042; } article h3 { margin-top: 20px; - font-size: 1.2em; + font-size: 1.15em; + color: #414042; +} + +.off-canvas-content .article-list-item div { + color: #414042; } .comment aside { line-height: 1; +} + +.comments-form textarea { + margin-bottom: 3px; +} +.comments-form .gravatar { + width: 50px; + float: right; + padding: 0; + margin: 0; } \ No newline at end of file diff --git a/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php b/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php index a6482b64..e7055fb4 100644 --- a/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php +++ b/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php @@ -8,12 +8,10 @@ @@ -43,7 +41,7 @@ -

Komentáře

+

Komentáře

@foreach($page->comments as $comment)
@@ -70,7 +68,7 @@ -
+
@if($loggedUser) @@ -101,7 +99,7 @@
- +
diff --git a/templates/Binarity/Resources/views/modules/articlelist/visitor/default.blade.php b/templates/Binarity/Resources/views/modules/articlelist/visitor/default.blade.php index fe0d8e41..1ec0496c 100644 --- a/templates/Binarity/Resources/views/modules/articlelist/visitor/default.blade.php +++ b/templates/Binarity/Resources/views/modules/articlelist/visitor/default.blade.php @@ -18,18 +18,18 @@
@monthName($article->published_from ?: $article->created_at)
-
+
{{--{{str_limit($article->author->name, 15)}}--}}
-
+

{{$article->title}} -

+
{{str_limit($article->meta_description, 250)}}