Show
Ignore:
Timestamp:
07/14/08 22:15:37 (4 months 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)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plog-admin/plog-admin-functions.php

    r556 r557  
    150150        $result['output'] .= sprintf(plog_tr('Your photo (%s) was uploaded successfully.'),$filename); 
    151151        $result['picture_id'] = mysql_insert_id(); 
    152          
     152 
    153153        // let's generate the thumbnail and the large thumbnail right away. 
    154154        // this way, the user won't see any latency from the thumbnail generation 
     
    156156        // this also helps with the image pre-loading problem introduced 
    157157        // by a javascript slideshow. 
    158          
     158 
    159159        $thumbpath = generate_thumb($picture_path, $result['picture_id'],THUMB_SMALL); 
    160160        #$thumbpath = generate_thumb($picture_path, $result['picture_id'],THUMB_LARGE); 
    161          
     161 
    162162        return $result; 
    163163}; 
     
    187187 
    188188        $errors = $output = ""; 
    189          
     189 
    190190        $picture_id = intval($picture_id); 
    191191        $value = mysql_real_escape_string(trim($value)); 
    192192 
    193193        $query = "UPDATE ".TABLE_PREFIX."pictures SET $field = '$value' WHERE id='$picture_id'"; 
    194          
     194 
    195195        $result = mysql_query($query); 
    196196        if ($result) { 
     
    199199                return array('errors' => plog_tr('Could not modify selected picture')); 
    200200        }; 
    201          
     201 
    202202} 
    203203 
     
    215215                return array('errors' => sprintf(plog_tr('There is no album with id %d'),$to_album)); 
    216216        }; 
    217                  
     217 
    218218        $new_collection = $row['parent_id']; 
    219219         
     
    234234 
    235235        $new_path = mysql_real_escape_string($new_path); 
    236          
     236 
    237237        // update database 
    238238        $sql = "UPDATE ".TABLE_PREFIX."pictures SET 
     
    480480                        return array('errors' => plog_tr('Collection directory still contains files after all albums have been deleted.')); 
    481481                } 
    482                  
     482 
    483483        } else { 
    484484                return array('errors' => plog_tr('Collection has invalid path, not deleting directory')); 
     
    546546        $name = mysql_real_escape_string(SmartStripSlashes($name)); 
    547547        $description = mysql_real_escape_string(SmartStripSlashes($description)); 
    548          
    549548 
    550549         // first, get the album name and collection name of our source album 
     
    826825} 
    827826 
    828 function edit_comment_form($comment_id) 
    829 { 
     827function edit_comment_form($comment_id) { 
    830828        $output = ''; 
    831829        $comment_id = intval($comment_id); 
     
    12671265                </table>' . "\n"; 
    12681266        } else { 
    1269                 $output .= "\n\n\t\t" . '<p class="actions">' . sprintf(plog_tr('Sadly, there are no pictures yet.  Why don\'t you <a href="%s">upload some?</a>'),'plog-upload.php') . '</p>' . "\n"; 
     1267                $output .= "\n\n\t\t" . '<p class="actions">' . sprintf(plog_tr('Sadly, there are no pictures yet. Why don\'t you <a href="%s">upload some?</a>'),'plog-upload.php') . '</p>' . "\n"; 
    12701268        }; 
    12711269        return $output; 
     
    14921490 
    14931491function generate_ajax_picture_editing_init() { 
    1494          
     1492 
    14951493        $output = '<script type="text/javascript">'; 
    14961494}