function the_blankimage() { if (the_skin() == null) { return null; } return the_skin()->getImage('skin.blank-image') ? the_skin()->getImage('skin.blank-image')->getMain() : null; }
<?php $skin = the_skin(); ?> <?php if ($skin) { ?> <?php include 'fonts.php'; ?> <?php $faviconImage = $skin->getImage('skin.favicon-image'); $sidebarTextColor = $skin->getColor('skin.sidebar-text-color'); $sidebarBackgroundColor = $skin->getColor('skin.sidebar-background-color'); $textColor = $skin->getColor('skin.blog-text-color'); $backgroundColor = $skin->getColor('skin.blog-background-color'); $footerBackgroundColor = $skin->getColor('skin.blog-footer-background-color'); $footerTextColor = $skin->getColor('skin.blog-footer-text-color'); $titleColor = $skin->getColor('skin.blog-title-color'); $textFont = $skin->getText('skin.blog-text-font'); $titleFont = $skin->getText('skin.blog-title-font'); $monospaceFont = $skin->getText('skin.blog-monospace-font'); $metaTextColor = $skin->getColor('skin.blog-meta-text-color'); $headerTextColor = $skin->getColor('skin.blog-header-text-color'); $imageLabelTextColor = $skin->getColor('skin.blog-imagelabel-text-color'); ?> <?php
} ?> <?php $index = 0; ?> <?php foreach ($slice->getValue()->getArray() as $item) { ?> <?php $illustration = $item->get('illustration') ? $item->get('illustration')->getMain() : null; $icon = $item->get('icon') ? $item->get('icon')->getMain() : null; $blankImage = the_skin() && the_skin()->getImage('skin.blank-image') ? the_skin()->getImage('skin.blank-image')->getMain() : null; $blankIcon = the_skin() && the_skin()->getImage('skin.blank-icon') ? the_skin()->getImage('skin.blank-icon')->getMain() : null; $iconUrl = $icon ? $icon->getUrl() : ($blankIcon ? $blankIcon->getUrl() : ''); $illustrationUrl = $illustration ? $illustration->getUrl() : ($blankImage ? $blankImage->getUrl() : ''); $readMore = $item->get('read-more'); $readMoreLabel = $item->get('read-more-label'); $optionalLink = $item->get('optional-link'); $optionalLinkLabel = $item->get('optional-link-label'); ?> <div data-illustration="<?php echo $illustrationUrl ? $illustrationUrl : ''; ?> " class="slide <?php echo $index == 0 ? 'active' : ''; ?> " style="<?php
<div class="slider <?php echo $slice->getLabel(); ?> "> <?php foreach ($slice->getValue()->getArray() as $item) { ?> <?php $illustration = $item->get('illustration') ? $item->get('illustration')->getMain() : null; $blankImage = the_skin() && the_skin()->getImage('skin.blank-image') ? the_skin()->getImage('skin.blank-image')->getMain() : null; $illustrationUrl = $illustration ? $illustration->getUrl() : ($blankImage ? $blankImage->getUrl() : ''); $readMore = $item->get('read-more'); $readMoreLabel = $item->get('read-more-label'); ?> <div class="slide" data-image="<?php echo $illustrationUrl ? $illustrationUrl : ''; ?> "> <a href="#" class="arrow-prev"><i class="icon-arrow-prev"></i></a> <div class="slide-container"> <div class="title"><?php echo $item->get('title') ? $item->get('title')->asHtml() : ''; ?> </div> <?php echo $item->get('summary') ? $item->get('summary')->asHtml() : ''; ?> <?php