Commit 279186545eb2892ad540848200ad6bbf5492c9f4

Authored by Administrator
1 parent bdc6c84c

14.09.16

Showing 1 changed file with 8 additions and 1 deletions   Show diff stats
frontend/views/catalog/products.php
... ... @@ -38,6 +38,13 @@ $this->registerJsFile(Yii::getAlias('@web/js/ion.rangeSlider.js'),[
38 38 'position' => View::POS_END,
39 39 'depends' => ['yii\web\JqueryAsset']
40 40 ]);
  41 +
  42 +
  43 +function my_mb_ucfirst($str) {
  44 + $str = strtolower($str);
  45 + $fc = mb_strtoupper(mb_substr($str, 0, 1));
  46 + return $fc.mb_substr($str, 1);
  47 +}
41 48 ?>
42 49  
43 50 <script type="text/javascript">
... ... @@ -183,7 +190,7 @@ $this-&gt;registerJsFile(Yii::getAlias(&#39;@web/js/ion.rangeSlider.js&#39;),[
183 190 </div>
184 191  
185 192 <div class="content" itemscope itemtype="http://schema.org/Product">
186   - <div itemprop="name"><h1><?= ucfirst ( strtolower (Seo::widget([ 'row'=>'h1'])))?></h1></div>
  193 + <div itemprop="name"><h1><?= my_mb_ucfirst(Seo::widget([ 'row'=>'h1']))?></h1></div>
187 194 <div itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer" style="display: none;">
188 195 <span itemprop="priceCurrency">UAH</span>
189 196 <span itemprop="lowPrice"><?= $priceLimits['min'] ?></span>
... ...