<li> <a href="<?php echo $collection->url; ?> " title="<?php print check_plain($collection->creators_string); ?> : <?php print check_plain($collection->title); ?> "> <img src="<?php echo ting_covers_collection_url($collection->objects[0], 'ting_search_carousel'); ?> " alt=""/> <div class="info hide"> <span class="title"><?php print check_plain($collection->title); ?> </span> <span class="creator"><?php print check_plain($collection->creators_string); ?> </span> </div> </a> </li>
<?php // $Id$ /** * @file * Template to render a Ting collection of books. */ ?> <li> <div class="picture"> <?php $image_url = ting_covers_collection_url($collection->objects[0], '80_x'); ?> <?php if ($image_url) { ?> <?php print l(theme('image', $image_url, '', '', null, false), $collection->url, array('html' => true)); ?> <?php } ?> </div> <div class="record"> <div class="types"> <?php print $type_list; ?> </div>
/** * @file ting_object.tpl.php * * Template to render objects from the Ting database. * * Available variables: * - $object: The TingClientObject instance we're rendering. */ //krumo($object); ?> <!-- ting_object.tpl --> <div id="ting-object" class="line"> <div class="picture unit"> <?php $image_url = ting_covers_collection_url($object, '160_x'); ?> <?php if ($image_url) { ?> <div class="inner left"> <?php print theme('image', $image_url, '', '', null, false); ?> </div> <?php } ?> </div>
/*dsm($collection); */ foreach ($collection->objects as $obj) { if ($obj->type == 'Lydbog (online)' || 1 == 1) { // we asume now that every collection has only this one piece of material $lydbogObj = $obj; // $lydbogObj = ting_get_object_by_id($obj->id); elib_book_cover($lydbogObj); $alttext = t('@titel af @forfatter', array('@titel' => $lydbogObj->title, '@forfatter' => $lydbogObj->creators_string)); ?> <li class="display-book ting-collection ruler-after line clear-block"> <div class="picture unit"> <?php $image_url = ting_covers_collection_url($lydbogObj, '80_x'); ?> <?php if ($image_url) { ?> <div class="inner left"> <?php print l(theme('image', $image_url, $alttext, $alttext, null, false), $lydbogObj->url, array('html' => true)); ?> </div> <?php } ?> </div> <div class="meta unit"> <div class="inner">