From 6dbaa62f63ddb0741b29342e335edb85561e82c9 Mon Sep 17 00:00:00 2001 From: merdan Date: Thu, 29 Apr 2021 18:16:12 +0500 Subject: [PATCH] media_cdn --- plugins/tps/reklama/Plugin.php | 2 +- themes/modern/pages/post.htm | 2 +- themes/modern/partials/index/category_posts.htm | 2 +- themes/modern/partials/index/top_section.htm | 2 +- themes/modern/partials/post_list_item.htm | 6 +++--- themes/modern/partials/slider.htm | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/tps/reklama/Plugin.php b/plugins/tps/reklama/Plugin.php index a3673feff..d8c2c11fe 100644 --- a/plugins/tps/reklama/Plugin.php +++ b/plugins/tps/reklama/Plugin.php @@ -37,7 +37,7 @@ class Plugin extends PluginBase return [ 'filters' => [ // A global function, i.e str_plural() - 'mediator' => [$this, 'absoluteMediaUrl'], + 'media_cdn' => [$this, 'absoluteMediaUrl'], ], ]; } diff --git a/themes/modern/pages/post.htm b/themes/modern/pages/post.htm index 6ba144784..d2131c1d5 100644 --- a/themes/modern/pages/post.htm +++ b/themes/modern/pages/post.htm @@ -48,7 +48,7 @@ slug = "{{ :slug }}" {% if post.featured_image %} - {{post.title}} + {{post.title}} {% endif %} diff --git a/themes/modern/partials/index/category_posts.htm b/themes/modern/partials/index/category_posts.htm index f29cc05e9..843bd0bed 100644 --- a/themes/modern/partials/index/category_posts.htm +++ b/themes/modern/partials/index/category_posts.htm @@ -8,7 +8,7 @@ {{'page.more'|_}} - + {{posts.first.title}}
diff --git a/themes/modern/partials/index/top_section.htm b/themes/modern/partials/index/top_section.htm index 8ab867d09..35f9e32c8 100644 --- a/themes/modern/partials/index/top_section.htm +++ b/themes/modern/partials/index/top_section.htm @@ -13,7 +13,7 @@
- + {{firstPost.title}}
diff --git a/themes/modern/partials/post_list_item.htm b/themes/modern/partials/post_list_item.htm index 65da4b107..2bd5fee16 100644 --- a/themes/modern/partials/post_list_item.htm +++ b/themes/modern/partials/post_list_item.htm @@ -1,8 +1,8 @@
- + - - + + diff --git a/themes/modern/partials/slider.htm b/themes/modern/partials/slider.htm index 6f2f4cd69..c100a41d4 100644 --- a/themes/modern/partials/slider.htm +++ b/themes/modern/partials/slider.htm @@ -15,7 +15,7 @@ postPage = "post"
{% for post in posts %}
- {{post.title}} + {{post.title}} {% if post.categories.count()>0%}
{{post.categories.implode('name', ', ')}}