Beispiel #1
0
/**
 * Create an image tag.
 *
 * i('foo.png', array('alt' => 'Hello'))
 * i('bar.png', '#my-image')
 * i('baz.gif', '#my-image.my-class', array('width' => 500))
 */
function i($src, $options_or_selector = array(), $options = array())
{
    $options += parse_simple_selector($options_or_selector);
    $options['src'] = url_for_image($src);
    $options += array('alt' => '');
    return empty_tag('img', $options);
}
Beispiel #2
0
</div>

<div id="scroller">
  <div id="albums"></div>
  <div id="images">
    <ul id="carousel_list" class="image_list">
      <?php 
foreach (get_images(ALBUMS_ROOT . $params['album']) as $image) {
    ?>
        <li>
          <a href="<?php 
    echo url_for_image($image, 'big');
    ?>
">
            <img src="<?php 
    echo url_for_image($image, 'thumb');
    ?>
" alt="" />
          </a>
        </li>
      <?php 
}
?>
    </ul>
  </div>
</div>

<?php 
if ($params['album_description']) {
    ?>
<div id="description">