</strong></p> </div> <?php if (count($wEssays) > 0) { ?> <div class="gallery-wrapper" id="tabs"> <div class="nav-gallery"> <ul> <?php $i = 0; foreach ($wEssays as $key => $uEssays) { $i++; ?> <li class="<?php echo Weeks::isCurrentVote($key) ? 'ui-tabs-active ui-state-active' : ''; ?> "><a href="#week_<?php echo $i; ?> " >Неделя<br/>с <?php echo date('d.m.Y', strtotime($weeks[$key]['date_vote_start'])); ?> по <?php echo date('d.m.Y', strtotime($weeks[$key]['date_vote_end'])); ?> </a></li> <?php } ?> </ul>