<?php /** * Provide a list of subpages for current page * * This is the list-item section of each subpages-level post. * * @link https://github.com/jelofsson/somc-subpages-jelofsson * @package WordPress * @subpackage Component * @since 1.0.0 * @copyright Copyright (c) 2015 Jimmi Elofsson <*****@*****.**> * @license http://opensource.org/licenses/MIT MIT License */ ?> <a alt="'click here to read more.'" href="<?php echo $post->guid; ?> "><?php echo Helper_Text::Truncate(get_the_title($post->ID)); ?> </a> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail($post->ID)) { ?> <?php echo get_the_post_thumbnail($post->ID, array(32, 32)); }
<?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" />