if (SubfolioFiles::have_related()) { ?> <div id="related"> <p><?php echo SubfolioLanguage::get_text('seealso'); ?> </p> <ul class="<?php echo SubfolioTheme::get_listing_mode(); ?> "> <?php foreach (SubfolioFiles::related() as $item) { ?> <li> <a href='<?php echo $item['link']; ?> '> <?php if (SubfolioTheme::get_option('display_icons')) { ?> <?php if ($item['restricted']) { ?> <span class="<?php if ($item['have_access']) { echo "unlocked";
?> </h1> <?php } else { ?> <h1 class="h1"><?php echo Subfolio::current_file('filename'); ?> </h1> <?php } ?> </header> <?php if (!SubfolioFiles::is_root()) { ?> <nav> <span class='parent_dir'><?php echo SubfolioFiles::parent_link(SubfolioLanguage::get_text('parent_directory')); ?> </span> <span class='prev_next'> <?php echo SubfolioFiles::previous_link_or_span(SubfolioLanguage::get_text('previous'), SubfolioLanguage::get_text('previous_directory'), 'previous', 'faded'); echo SubfolioFiles::next_link_or_span(SubfolioLanguage::get_text('next'), SubfolioLanguage::get_text('next_directory'), 'next', 'faded'); ?> </span> </nav> <?php }
<?php if (SubfolioFiles::have_features()) { ?> <div id="features"> <ul> <?php foreach (SubfolioFiles::features() as $feature) { $style = 'style="'; if (isset($feature['width'])) { $style .= ' width: ' . $feature['width'] . 'px; '; } if (isset($feature['height'])) { $style .= ' height: ' . $feature['height'] . 'px; '; } $style .= '"'; $target = ""; if (isset($feature['target']) && $feature['target'] !== NULL) { $target = 'target="' . $feature['target'] . '"'; } ?> <li> <a <?php echo $target; ?> href="<?php echo $feature['link']; ?> " <?php echo $style;
echo $image['width']; ?> ' height='<?php echo $image['height']; ?> ' src='<?php echo $image['url']; ?> ' /> <?php } ?> <div class="clear"><!-- --></div> </div><!-- gallery --> <?php } ?> <?php if (SubfolioFiles::have_inline_rss('middle')) { ?> <?php foreach (SubfolioFiles::inline_rss('middle') as $rss) { require "_inline_rss.php"; } ?> <?php }
<?php echo $text['body']; ?> <?php } ?> </div><!-- inline top text --> <?php } ?> <?php if (SubfolioFiles::have_inline_images('top')) { ?> <div id="inline_top_image" > <?php foreach (SubfolioFiles::inline_images('top') as $image) { ?> <img width='100%' height='auto' src='<?php echo $image['url']; ?> ' /> <?php } ?> </div><!-- inline top image --> <?php } ?>
<img width='<?php echo $image['width']; ?> ' height='<?php echo $image['height']; ?> ' src='<?php echo $image['url']; ?> ' /> <?php } ?> <div class="clear"><!-- --></div> </div><!-- inline top image --> <?php } ?> <?php if (SubfolioFiles::have_inline_rss('top')) { ?> <?php foreach (SubfolioFiles::inline_rss('top') as $rss) { require "_inline_rss.php"; } ?> <?php }
<?php if (SubfolioFiles::have_files()) { ?> <div id="listing"> <ul> <?php foreach (SubfolioFiles::files() as $item) { ?> <li class="icon icon_<?php echo $item['icon_name']; ?> "> <a target="<?php echo $item['target']; ?> " href="<?php echo $item['url']; ?> "> <?php if ($item['restricted']) { ?> <span class="<?php if ($item['have_access']) { echo "unlocked"; } else { echo "locked"; } ?> "><!-- --></span>
</span> <?php } ?> <?php if (!SubfolioTheme::get_mobile_viewport() && SubfolioTheme::get_option('display_updated_since')) { ?> <span><?php echo SubfolioLanguage::get_text('updated_since'); ?> </span> <?php echo SubfolioFiles::updated_since_link_or_span('lastweek'); ?> <span class="updated_since_sep">•</span> <?php echo SubfolioFiles::updated_since_link_or_span('lastmonth'); ?> <span class="updated_since_sep">•</span> <?php echo SubfolioFiles::updated_since_link_or_span('lastvisit'); ?> <?php } ?> </div>
<span class='big_exclam'>!</span> <p> <?php echo SubfolioLanguage::get_text('notfound'); ?> <br/> <?php echo SubfolioLanguage::get_text('check_url_go_back', SubfolioFiles::parent_link('Parent Directory')); ?> </p>
<?php $filename = Subfolio::current_file('filename'); $url = Subfolio::current_file('feedurl'); $count = Subfolio::current_file('count'); $cache = Subfolio::current_file('cache'); $items = SubfolioFiles::fetch_rss($url, $count, $filename, $cache); ?> <div class="rss"> <?php foreach ($items as $item) { ?> <div class="item"> <h2><a href="<?php echo $item['link']; ?> "><?php echo $item['title']; ?> </a></h2> <p><?php echo $item['description']; ?> </p> </div> <?php } ?> </div>
echo $image['width']; ?> ' height='<?php echo $image['height']; ?> ' src='<?php echo $image['url']; ?> ' /> <?php } ?> <div class="clear"><!-- --></div> </div><!-- gallery --> <?php } ?> <?php if (SubfolioFiles::have_inline_rss('bottom')) { ?> <?php foreach (SubfolioFiles::inline_rss('bottom') as $rss) { require "_inline_rss.php"; } ?> <?php }
<?php } ?> </div><!-- gallery --> <?php } ?> <?php if (SubfolioFiles::have_inline_images('middle')) { ?> <div id="inline_middle_image" > <?php foreach (SubfolioFiles::inline_images('middle') as $image) { ?> <img width='100%' height='auto' src='<?php echo $image['url']; ?> ' /> <?php } ?> </div><!-- gallery --> <?php } ?>
</span><?php } ?> </a> </li> <?php } ?> </ul> </div><!-- listing --> <?php } else { ?> <?php if (SubfolioFiles::is_empty_folder()) { ?> <p><?php echo SubfolioLanguage::get_text('emptyfolder'); ?> </p> <?php } ?> <?php }
<?php if (SubfolioFiles::have_gallery_images()) { ?> <div id="gallery" > <ul> <?php foreach (SubfolioFiles::gallery_images() as $image) { ?> <li> <a href="<?php echo $image['link']; ?> "> <div class="<?php echo $image['class']; ?> "> <img src="<?php echo $image['url']; ?> " /> </div> </a> </li> <?php } ?> </ul> </div><!-- gallery --> <?php
<?php } ?> </div><!-- gallery --> <?php } ?> <?php if (SubfolioFiles::have_inline_images('bottom')) { ?> <div id="inline_bottom_image" > <?php foreach (SubfolioFiles::inline_images('bottom') as $image) { ?> <img width='100%' height='auto' src='<?php echo $image['url']; ?> ' /> <?php } ?> </div><!-- gallery --> <?php } ?>