From: stephen@cubedesigners.com Date: Wed, 22 Aug 2018 09:33:57 +0000 (+0000) Subject: Link title and image alt attribute tweaks. WIP #2185 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=441930c48d18d65fb7db6ebbf4f3bbf5fbc8de43;p=fluidbook-v3.git Link title and image alt attribute tweaks. WIP #2185 @0.5 --- diff --git a/framework/application/views/helpers/BackgroundBlock.php b/framework/application/views/helpers/BackgroundBlock.php index 6924c31..1bbd15e 100644 --- a/framework/application/views/helpers/BackgroundBlock.php +++ b/framework/application/views/helpers/BackgroundBlock.php @@ -44,6 +44,9 @@ class Fluidbook_View_Helper_BackgroundBlock extends CubeIT_View_Helper_Abstract 'width' => 900, 'media' => '(max-width: 900px)' ] + ], + [ + 'alt' => $data['title'] ]), 'div', array('class' => 'picture')); $content = $bg . $content; } @@ -56,4 +59,4 @@ class Fluidbook_View_Helper_BackgroundBlock extends CubeIT_View_Helper_Abstract return $this->htmlElement($content, 'div', $attributes); } -} \ No newline at end of file +} diff --git a/framework/application/views/helpers/HeaderLogo.php b/framework/application/views/helpers/HeaderLogo.php index 7c2ada1..e9a664a 100644 --- a/framework/application/views/helpers/HeaderLogo.php +++ b/framework/application/views/helpers/HeaderLogo.php @@ -5,9 +5,9 @@ class Fluidbook_View_Helper_HeaderLogo extends CubeIT_View_Helper_Abstract { * @return string */ public function headerLogo() { - $logos = $this->image('/images/logo/leave.svg', "", -1, -1, array('class' => 'leave')); - $logos .= $this->htmlElement($this->image('/images/logo/text-white.svg', 'Fluidbook', -1, -1, array('class' => 'text-white')) . $this->image('/images/logo/text-dark.svg', '', -1, -1, array('class' => 'text-dark')), 'div', array('class' => 'text')); + $logos = $this->image('/images/logo/leave.svg', 'Fluidbook logo', -1, -1, array('class' => 'leave')); + $logos .= $this->htmlElement($this->image('/images/logo/text-white.svg', 'Fluidbook', -1, -1, array('class' => 'text-white')) . $this->image('/images/logo/text-dark.svg', 'Fluidbook', -1, -1, array('class' => 'text-dark')), 'div', array('class' => 'text')); return $this->link($logos, '/', array('class' => 'logo')); } -} \ No newline at end of file +} diff --git a/framework/application/views/helpers/HomeServices.php b/framework/application/views/helpers/HomeServices.php index 00063f1..f109a9a 100644 --- a/framework/application/views/helpers/HomeServices.php +++ b/framework/application/views/helpers/HomeServices.php @@ -29,7 +29,7 @@ class Fluidbook_View_Helper_HomeServices extends Fluidbook_View_Helper_HomeLayer // '; // $res .= ''; // Dot elements $res .= ''; // .window-top-wrapper - $res .= ''; + $res .= 'Window header'; $res .= '
'; foreach ($data['examples'] as $example) { diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml index 3b421fb..a87e013 100644 --- a/framework/application/views/scripts/common/footer.phtml +++ b/framework/application/views/scripts/common/footer.phtml @@ -13,7 +13,7 @@ $res .= '