示例#1
0
function show_path($dir)
{
    echo '<a href="?gallery=/" title="Index">Index</a>';
    $link = '';
    $full_path = '';
    if ($dir != '') {
        $path = explode('/', $dir);
        foreach ($path as $step) {
            $link .= $step . '/';
            // last step, assemble and apply gallery_link
            $full_path .= ' / <a href="?gallery=' . link_safe(gallery_link($link)) . '" title="' . link_safe($step) . '">' . html_safe($step) . '</a>';
        }
    }
    echo $full_path;
}
示例#2
0
?>
        </div>
        <?php 
if (isset($list['folder']) && sizeof($list['folder']) !== 0) {
    ?>
            <div class="gallery_list">
                <h3><?php 
    echo $messages['subgalleries'];
    ?>
</h3>
                <?php 
    // show link to images
    foreach ($list['folder'] as $fol) {
        // test to avoid one more slash
        $path = $subdir == '' ? $fol : $subdir . '/' . $fol;
        echo '<a href="?gallery=' . gallery_link($path) . '" title="' . link_safe($fol) . '">' . '<div class="thumb" style="background-image: url(&quot;' . link_safe($dir . '/' . $fol . '/' . get_thumbnail($dir . '/' . $fol)) . '&quot;);">' . '<div class="text">' . html_safe($fol) . '</div></div></a>' . "\n";
    }
    ?>
                <br clear="all" />
            </div>
        <?php 
}
?>
    <div class="footer">
        <?php 
// display the comment only if there's a gallery
if (isset($list['picture']) && sizeof($list['picture']) !== 0) {
    ?>
            <span class="white"><?php 
    echo $messages['keyboards_shortcuts'];
    ?>