Ignore:
Timestamp:
07/14/08 22:15:37 (4 years ago)
Author:
kimparsell
Message:

All themes:
+ All pages validate XHTML Strict (ticket #166 -  http://dev.plogger.org/ticket/166)
+ Stylesheet validates to CSS level 2.1
+ Changed code for action= in comments form tag (original code would not validate due to the ampersand (&) in the url not being shown as & in the code)
+ Added alt tag for large image in picture.php per ticket #171 ( http://dev.plogger.org/ticket/171)
+ Added actions class to stylesheets for moderation message
+ Removed generate_slideshow_interface function from slideshow.php (now in plog-functions.php)
+ Reworked markup to conform to new theme code requirements
+ Cleaned up markup
Air theme - Added function to comments.php, if comments are moderated, to show moderation message
Lucid theme:
+ Added function to comments.php, if comments are moderated, to show moderation message
+ Cleaned up markup
+ Hyperlinked collection and album names per ticket #172 ( http://dev.plogger.org/ticket/172)
Default theme:
+ Confirmed fix in place to resolve ticket #163 ( http://dev.plogger.org/ticket/163)
+ Reorganized/commented gallery.css
+ Cleaned up markup
plog-functions.php:
+ Function added to provide meta-tags with keywords and descriptions using collection name/description, album name/description, image caption/description (default keyword is gallery name, default description is "This is my Plogger gallery" and can be changed by end user) (original code by sidetheduck in  http://plogger.org/forum/discussion/1954/how-to-get-dynamic-contents/#Item_9) (requested in per ticket #172 ( http://dev.plogger.org/ticket/172)
+ Added generate_slideshow_interface function (previously in slideshow.php in each theme)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plog-content/themes/default/collection.php

    r552 r557  
    1 <?php 
    2 plogger_get_header(); 
    3 print '<div id="thumbnail_container">'; 
    4 if (plogger_has_albums()) { 
    5         print '<ul class="slides">'; 
    6          
    7         while (plogger_has_albums()){ 
    8                 plogger_load_album(); 
     1<?php plogger_get_header(); ?> 
     2 
     3                <div id="thumbnail_container"> 
     4<?php if (plogger_has_albums()) : ?> 
     5                        <ul class="slides"> 
     6<?php while(plogger_has_albums()) : ?> 
     7<?php plogger_load_album(); 
     8                // set variables for the album 
     9                $name = plogger_get_album_name(); 
     10                $desc = plogger_get_album_description(); 
     11                $num_albums = plogger_album_picture_count(); 
    912                $num_pictures = plogger_album_picture_count(); 
     13?> 
     14                                <li class="thumbnail"> 
     15                                        <div class="tag"> 
     16                                                <a href="<?php echo plogger_get_album_url(); ?>"><img class="photos" src="<?php echo plogger_get_album_thumb(); ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a><br /> 
     17                                                <a href="<?php echo plogger_get_album_url(); ?>"><?php echo $name; ?></a> 
     18                                                <?php echo plogger_download_checkbox(plogger_get_album_id()); ?><br /> 
     19                                                <span class="meta-header">(<?php echo $num_albums . ' '; echo ($num_albums == 1) ? plog_tr("Picture") : plog_tr("Pictures"); ?>)</span> 
     20                                        </div> 
     21                                </li> 
     22<?php endwhile; ?> 
     23                        </ul><!-- /slides --> 
     24<?php else : ?> 
     25                        <p id="no-pictures-msg"><?php echo plog_tr('No albums yet')?>.</p> 
    1026 
    11                 print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_album_url() . '">'; 
     27<?php endif; ?> 
     28                </div><!-- /thumbnail container --> 
    1229 
    13                 $desc = plogger_get_album_description(); 
    14                 // generate XHTML with thumbnail and link to picture view. 
    15                 print '<img class="photos" src="'.plogger_get_album_thumb().'" title="'.$desc.'" alt="'.$desc.'" />'; 
    16                  
    17                 print '</a> <br />'; 
    18                          
    19                 print plogger_download_checkbox(plogger_get_album_id()); 
    20                          
    21                 print plogger_get_album_name().' <br /><div class="meta-header">('; 
    22                 print $num_pictures.' '; 
    23                 print ($num_pictures == 1) ? plog_tr("picture") : plog_tr("pictures"); 
    24                  
    25                 print ')</div></div></li>'; 
    26                                  
    27         } 
    28         print'</ul>'; 
    29 } 
    30 else 
    31 { 
    32         print plog_tr("No pictures in this collection!"); 
    33 } 
    34 print '</div>'; 
    35 plogger_get_footer(); 
    36 ?> 
    37  
     30<?php plogger_get_footer(); ?> 
Note: See TracChangeset for help on using the changeset viewer.