]> _ Git - fluidbook-v3.git/commitdiff
Link title and image alt attribute tweaks. WIP #2185 @0.5
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Aug 2018 09:33:57 +0000 (09:33 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Aug 2018 09:33:57 +0000 (09:33 +0000)
framework/application/views/helpers/BackgroundBlock.php
framework/application/views/helpers/HeaderLogo.php
framework/application/views/helpers/HomeServices.php
framework/application/views/scripts/common/footer.phtml

index 6924c3121ad39e5fdba425236905abcda10af31b..1bbd15e216f33d6f42bb8cf153f69d87e5deaec7 100644 (file)
@@ -44,6 +44,9 @@ class Fluidbook_View_Helper_BackgroundBlock extends CubeIT_View_Helper_Abstract
                         'width' => 900,\r
                         'media' => '(max-width: 900px)'\r
                     ]\r
+                ],\r
+                [\r
+                    'alt' => $data['title']\r
                 ]), 'div', array('class' => 'picture'));\r
                                $content = $bg . $content;\r
                        }\r
@@ -56,4 +59,4 @@ class Fluidbook_View_Helper_BackgroundBlock extends CubeIT_View_Helper_Abstract
 \r
                return $this->htmlElement($content, 'div', $attributes);\r
        }\r
-}
\ No newline at end of file
+}\r
index 7c2ada17627dedf54fcced9f5a9d11f36bda2517..e9a664ae72d3ad36e26afd52d62b196b231c44af 100644 (file)
@@ -5,9 +5,9 @@ class Fluidbook_View_Helper_HeaderLogo extends CubeIT_View_Helper_Abstract {
         * @return string\r
         */\r
        public function headerLogo() {\r
-               $logos = $this->image('/images/logo/leave.svg', "", -1, -1, array('class' => 'leave'));\r
-               $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'));\r
+               $logos = $this->image('/images/logo/leave.svg', 'Fluidbook logo', -1, -1, array('class' => 'leave'));\r
+               $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'));\r
 \r
                return $this->link($logos, '/', array('class' => 'logo'));\r
        }\r
-}
\ No newline at end of file
+}\r
index 00063f1734670c63ff2976d3e95028370ad352eb..f109a9a315d69078abd884d4f51623c4ecc63ab3 100644 (file)
@@ -29,7 +29,7 @@ class Fluidbook_View_Helper_HomeServices extends Fluidbook_View_Helper_HomeLayer
                //                </svg>';\r
                //        $res .= '<span></span><span></span><span></span>'; // Dot elements\r
                $res .= '</div>'; // .window-top-wrapper\r
-               $res .= '<img src="/images/home/window-top.png" class="window-top">';\r
+               $res .= '<img src="/images/home/window-top.png" class="window-top" alt="Window header">';\r
                $res .= '<div class="services-examples">';\r
 \r
                foreach ($data['examples'] as $example) {\r
index 3b421fb5c74db1472444dde2b9059ddc4cfa05c5..a87e01331663b13b7f41178ed401a72869624c78 100644 (file)
@@ -13,7 +13,7 @@ $res .= '<div class="footer-inner">';
 \r
 $res .= '<div class="contact-details">';\r
 \r
-$logo = $this->imageCms($this->option('logo'), 'Fluidbook', 180, 45, ['itemprop' => 'logo']);\r
+$logo = $this->imageCms($this->option('logo'), 'Fluidbook logo', 180, 45, ['itemprop' => 'logo']);\r
 $address = $this->option('address');\r
 // .....\r
 \r
@@ -55,6 +55,7 @@ foreach ($this->option('social_networks') as $social) {
        $res .= '#s-' . $social['icon'] . ':hover{background-color: ' . $social['color'] . ';border-color: ' . $social['color'] . ';}';\r
        $res .= '</style>';\r
        $res .= $this->link('', $social['url'], array('id' => 's-' . $social['icon'],\r
+                                                     'title' => $social['title'],\r
                                                      'class' => 'social-link fb-' . $social['icon'],\r
                                                      'itemprop' => 'sameAs',\r
                                                      'data-event' => array('category' => 'social',\r
@@ -86,4 +87,4 @@ $res .= '</div>'; // .footer-inner
 $res .= '</footer>'; // footer.legal\r
 \r
 // Output footer with Organization microdata wrapper\r
-echo $this->microdata($res, ['class' => 'auto-height', 'id' => 'footerHolder'], 'Organization');
\ No newline at end of file
+echo $this->microdata($res, ['class' => 'auto-height', 'id' => 'footerHolder'], 'Organization');\r