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/album.php

    r552 r557  
    1 <?php 
    2 plogger_get_header(); 
    3 print '<div id="thumbnail_container">'; 
    4 if (plogger_has_pictures()) { 
    5         print '<div id="overlay">&nbsp;</div>'; 
    6         print '<ul class="slides">'; 
    7          
    8         while(plogger_has_pictures()) { 
    9                  
    10                 plogger_load_picture(); 
     1<?php plogger_get_header(); ?> 
    112 
     3                <div id="thumbnail_container"> 
     4 
     5<?php if (plogger_has_pictures()) : ?> 
     6                        <div id="overlay">&nbsp;</div> 
     7                        <ul class="slides"> 
     8<?php while(plogger_has_pictures()) : ?> 
     9<?php plogger_load_picture(); 
    1210                // display thumbnails within album 
    1311                // generate XHTML with thumbnail and link to picture view. 
     12                // find thumbnail width 
     13                $thumb_info = plogger_get_thumbnail_info(); 
     14                $thumb_width = $thumb_info[0]; // The width of the image. It is integer data type. 
     15                $thumb_height = $thumb_info[1]; // The height of the image. It is an integer data type. 
     16                $div_width = $thumb_width + 20; // account for padding/border width 
     17                $div_height = $thumb_height + 65; // account for padding/border width 
     18                $picture_caption = plogger_get_picture_caption(); 
     19                $img_id = "thumb-".plogger_get_picture_id(); 
     20                $imgtag = '<img id="' . $img_id . '" onmouseout="document.getElementById(\'overlay\').style.visibility = \'hidden\';" onmouseover="display_overlay(\''.$img_id.'\', \''.plogger_picture_comment_count().'\')" class="photos" src="'.plogger_get_picture_thumb().'" width="'.$thumb_width.'px" height="'.$thumb_height.'px" title="'.$picture_caption.'" alt="'.$picture_caption.'" />'; 
     21?> 
     22                                <li class="thumbnail"> 
     23                                        <div style="width: <?php echo $div_width; ?>px; height: <?php echo $div_height; ?>px;" class="tag"> 
     24                                                <a href="<?php echo plogger_get_picture_url(); ?>"><?php echo $imgtag; ?></a><br /> 
     25                                                <span><?php echo $picture_caption; ?> <?php echo plogger_download_checkbox(plogger_get_picture_id()); ?></span> 
     26                                        </div><!-- /tag --> 
     27                                </li><!-- /thumbnail --> 
     28<?php endwhile; ?> 
     29                        </ul><!-- /slides --> 
     30<?php else : ?> 
     31                        <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures in this album')?>.</p> 
    1432 
    15                 $capt = plogger_get_picture_caption(); 
    16                 $img_id = "thumb-".plogger_get_picture_id(); 
    17                 $imgtag = '<img id="' . $img_id  
    18                 . '" onmouseout="document.getElementById(\'overlay\').style.visibility = \'hidden\';"  
    19                 onmouseover="display_overlay(\''.$img_id.'\', \''.plogger_picture_comment_count().'\')" class="photos"  
    20                 src="'.plogger_get_picture_thumb().'" title="'.$capt.'" alt="'.$capt.'" />'; 
    21          
    22                 print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_picture_url() . '">' . $imgtag . "</a><br />"; 
    23                                                          
    24                 print plogger_download_checkbox(plogger_get_picture_id()); 
    25                                  
    26                 print '</div></li>'; 
    27         } 
    28          
    29          
    30         print '</ul>'; 
    31 } 
    32 else{ 
    33         print '<div id="no-pictures-msg">' . plog_tr('There are no pictures in this album') . '.</div>'; 
    34 } 
     33<?php endif; ?> 
     34                </div><!-- /thumbnail container --> 
    3535 
    36 print '</div>'; 
    37 plogger_get_footer(); 
    38 ?> 
     36<?php plogger_get_footer(); ?> 
Note: See TracChangeset for help on using the changeset viewer.