From: stephen@cubedesigners.com Date: Tue, 23 Jun 2020 11:29:24 +0000 (+0000) Subject: WIP #3641 @1.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=abea14884397e673034c808692a45b39ab27399e;p=fluidbook-v3.git WIP #3641 @1.25 --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 77f797b..1585c5e 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -38,6 +38,13 @@ class Bootstrap extends CubeIT_Bootstrap if (!$page) return; if ($page->getTemplate() === 'blog') { + + // Don't show the Blog link in the main menu for the English locale + if ($locale == 'en') { + $page->setVisible(false); + return; + } + $this->addBlogPages($page, $locale, $isAdmin); } } diff --git a/framework/application/views/helpers/BlogIntro.php b/framework/application/views/helpers/BlogIntro.php index aae2e18..fb5ab2c 100644 --- a/framework/application/views/helpers/BlogIntro.php +++ b/framework/application/views/helpers/BlogIntro.php @@ -14,9 +14,11 @@ class Fluidbook_View_Helper_BlogIntro extends CubeIT_View_Helper_Abstract { if ($is_single) { $title = $post->getTitle(); $title_tag = 'h1'; + $read_more = ''; } else { $title = $this->link($post->getTitle(), $URL, ['itemprop' => 'url']); $title_tag = 'h2'; + $read_more = $this->link(__('Lire la suite'), $URL, ['class' => 'blog-intro-read-more']); } // Avoid orphaned punctuation in titles @@ -36,6 +38,7 @@ class Fluidbook_View_Helper_BlogIntro extends CubeIT_View_Helper_Abstract { ); $res .= $this->title($title, $title_tag, ['class' => 'blog-intro-title', 'itemprop' => 'headline']); $res .= $this->markupDotclear($post->getExcerpt(), [], ['class' => 'blog-intro-excerpt']); + $res .= $read_more; $res .= ''; // .col-2 $res .= ''; // .grid diff --git a/less/610-blog.less b/less/610-blog.less index 30824f2..e32e968 100644 --- a/less/610-blog.less +++ b/less/610-blog.less @@ -110,6 +110,16 @@ } } + &-read-more { + .border-button-fill(#fff, #fff, 5%); + .longarrow-button(12px, 40px, 18px); + margin-top: 1.5em; + + &:hover { + color: #fff; + } + } + .grid { width: 100%; }