Advertisement
customhost

Untitled

Sep 11th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.35 KB | None | 0 0
  1. application/views/Helper/ProductName.php
  2.  
  3. @@ -8,9 +8,6 @@
  4.          $productName  = trim( ( !empty( $product['prename'] ) ? $product['prename'] : $product['prefix'] ). ' ' . $product['brand_name'] . ' ' . $product['name'] . ' ' . $product['mod']);
  5.          /** Customhost - end **/
  6.          
  7. -//         print_r( $product );
  8. -//         var_dump( $product['prename'], $product['prefix'], $product['brand_name'], $product['name'], $product['mod'] );
  9. -        
  10.          $translitName = Ehha_String::clearTranslit($productName);
  11.          if ($thumb) {
  12.              $productThumb = $product['filename_small'] ? '/images/products/' . $product['filename_small'] : '/images/no-image.gif';
  13. @@ -36,8 +33,8 @@
  14.              $params[$key] = $key . '="' . $val .'"';
  15.          }
  16.          $result = ($thumb) ? $productThumb : $this->view->escape($productName);
  17. -        if ($a) $result = '<a ' . join(' ', $params) . '>' . "<h2 class=\"a-inherit\">{$result}</h2>" . '</a>';
  18. -       if ($thumb) $result = '<i ' . join(' ', $params) . '>' . "<h2 class=\"a-inherit\">{$result}</h2>" . '</i>';
  19. +        if ($a) $result = '<a ' . join(' ', $params) . '>' . "<h2 itemprop=\"name\" class=\"a-inherit\">{$result}</h2>" . '</a>';
  20. +       if ($thumb) $result = '<i ' . join(' ', $params) . '>' . "<h2 itemprop=\"name\" class=\"a-inherit\">{$result}</h2>" . '</i>';
  21.          return $result;
  22.      }
  23.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement