Changeset 557 for trunk/plog-content/themes/default/collections.php
- Timestamp:
- 07/14/08 22:15:37 (4 years ago)
- File:
-
- 1 edited
-
trunk/plog-content/themes/default/collections.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-content/themes/default/collections.php
r552 r557 1 <?php 2 plogger_get_header(); 3 print '<div id="thumbnail_container">'; 4 if (plogger_has_collections()) 5 { 6 print '<ul class="slides">'; 7 while(plogger_has_collections()) 8 { 9 $row = plogger_load_collection(); 1 <?php plogger_get_header(); ?> 2 3 <div id="thumbnail_container"> 4 <?php if (plogger_has_collections()) : ?> 5 <ul class="slides"> 6 <?php while(plogger_has_collections()) : ?> 7 <?php plogger_load_collection(); 8 // set variables for the collection 10 9 $desc = plogger_get_collection_description(); 10 $name = plogger_get_collection_name(); 11 $num_albums = plogger_collection_album_count(); 12 ?> 13 <li class="thumbnail"> 14 <div class="tag"> 15 <a href="<?php echo plogger_get_collection_url(); ?>"><img class="photos" src="<?php echo plogger_get_collection_thumb(); ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a><br /> 16 <a href="<?php echo plogger_get_collection_url(); ?>"><?php echo $name; ?></a> 17 <?php echo plogger_download_checkbox(plogger_get_collection_id()); ?><br /> 18 <span class="meta-header">(<?php echo $num_albums . ' '; echo ($num_albums == 1) ? plog_tr("Album") : Plog_tr("Albums"); ?>)</span> 19 </div> 20 </li> 21 <?php endwhile; ?> 22 </ul><!-- /slides --> 23 <?php else : ?> 24 <p id="no-pictures-msg"><?php echo plog_tr('No collections yet')?>.</p> 11 25 12 print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_collection_url() . '">'; 13 14 // generate XHTML with thumbnail and link to picture view. 15 print '<img class="photos" src="'.plogger_get_collection_thumb().'" title="'.$desc.'" alt="'.$desc.'"/>'; 16 17 print '</a><br/>'; 18 19 print plogger_download_checkbox(plogger_get_collection_id()); 20 21 print plogger_get_collection_name().' <br/>'; 22 print '<div class="meta-header">('; 26 <?php endif; ?> 27 </div><!-- /thumbnail container --> 23 28 24 $num_albums = plogger_collection_album_count(); 25 print $num_albums . ' '; 26 print ($num_albums == 1) ? plog_tr("album") : plog_tr("albums"); 27 28 print ')</div></div></li>'; 29 } 30 print '</ul>'; 31 } else { 32 print plog_tr("No collections yet"); 33 } 34 print '</div>'; 35 plogger_get_footer(); 36 ?> 29 <?php plogger_get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.
