<?php $prefix = Helper_Image::render(WEBROOT_PATH . 'img/startpage/TMPNAME', Helper_Image::STARTPAGE, false); $dataJS = array(); foreach ($sections as $key => $section) { $dataJS[$key]['sectionName'] = Helper_Text::clean($section['title']); $dataJS[$key]['aUrl'] = Helper_Html::link(array('controller' => 'index', 'action' => 'section', 'param1' => $section['title'])); $dataJS[$key]['imgUrl'] = str_replace('TMPNAME', $section['id'] . '.jpg', $prefix); } ?> <div class="startpage" style="display: none"> <a href="<?php echo $dataJS[0]['aUrl']; ?> "> <div class="rotatorCont"> <img src="<?php echo $dataJS[0]['imgUrl']; ?> &w=1024&h=575" /> </div> <span><?php echo $dataJS[0]['sectionName']; ?> </span> </a> </div> <br style="clear: both" />
?> </div> <!-- end block preView sample --> <div class="mainContent"> <div> <?php if (isset($samples[$sapmlesCurrentArrayId]['id'])) { $alt = ''; if ($samples[$sapmlesCurrentArrayId]['title']) { $alt = Helper_Text::clean($samples[$sapmlesCurrentArrayId]['title']); } echo Helper_Image::renderSample($samples[$sapmlesCurrentArrayId]['id'], Helper_Image::SAMPLE, array('alt' => $alt, 'title' => $alt)); } ?> </div> <div class="sampleText"> <?php if (isset($samples[$sapmlesCurrentArrayId]['id']) && $samples[$sapmlesCurrentArrayId]['title']) { echo sprintf($formatTextSample, Helper_Text::clean($samples[$sapmlesCurrentArrayId]['title']), Helper_Text::clean($samples[$sapmlesCurrentArrayId]['text'])); } ?> </div> </div> </div> <br style="clear:both" />