static function ucfirst($s) { if ('i' === substr($s, 0, 1)) { return 'İ' . substr($s, 1); } else { return parent::ucfirst($s); } }
foreach ($categories->execute() as $category) { ?> <li<?php echo strpos(Request::current()->url(), Route::url('category', array('link' => $category->link))) !== FALSE ? ' class="active"' : NULL; ?> ><a href="<?php echo Route::url('category', array('link' => $category->link)); ?> " id="sub-<?php echo $category->link; ?> " title="<?php echo $category->title; ?> "><?php echo Utf8::ucfirst($category->name); ?> </a></li> <?php } ?> </ul> </div> </li> <li<?php echo Arr::path($active, 'home'); ?> ><a href="<?php echo Route::url('home'); ?> " id="main-home" title="O mnie">O mnie</a></li>