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-content/themes/air/comments.php

    r556 r557  
     1<?php if (plogger_comments_on()) { ?> 
     2                        <a name="comments"></a> 
     3                        <h2 class="comment-heading"><?php echo plog_tr('Comments'); ?>:</h2> 
    14 
    2 <?php if (plogger_comments_on()) { ?> 
    3                 <a name="comments"></a><h2 class="comment-heading"><?php echo plog_tr('Comments'); ?>:</h2> 
     5<? if (plogger_picture_has_comments()) { ?> 
     6                                <ol class="comments"> 
     7<? $counter = 0; 
     8                while(plogger_picture_has_comments()) { 
     9                        plogger_load_comment(); 
     10                        $url = plogger_get_comment_url(); 
     11                        $author = plogger_get_comment_author(); 
     12                        // this code alternates the background color every other comment 
     13                        $comment_class = ($counter % 2) ? "comment_alt" : "comment"; 
     14?> 
     15                                        <li class="<?php echo $comment_class; ?>"> 
     16                                                <p><?php echo plogger_get_comment_text(); ?></p> 
     17                                                <cite><?php echo plog_tr('Comment by'); ?> <?php echo (trim($url) != '') ? "<a href=\"$url\" rel=\"nofollow\">$author</a>" : "$author"; ?> - <?php echo plog_tr('posted on'); ?> <?php echo plogger_get_comment_date(); ?></cite> 
     18                                        </li> 
     19<?php $counter++; 
     20                        } ?> 
     21                                </ol> 
     22<?php } else { ?> 
     23                                <p><?php echo plog_tr('No comments yet'); ?></p> 
     24<?php } ?> 
    425 
    5                 <? if (plogger_picture_has_comments()) { ?> 
    6                 <ol class="comments"> 
    7                         <? $counter = 0; 
    8                         while(plogger_picture_has_comments()) { 
    9                                 plogger_load_comment(); 
    10  
    11                                 $url = plogger_get_comment_url(); 
    12                                 $author = plogger_get_comment_author(); 
    13  
    14                                 // this code alternates the background color every other comment 
    15                                 $comment_class = ($counter % 2) ? "comment_alt" : "comment"; 
    16                         ?> 
    17  
    18                         <li class="$comment_class"> 
    19                                 <p>"<?php echo plogger_get_comment_text(); ?>"</p> 
    20                                 <cite>Comment by "<?php echo (trim($url) != '') ? "<a href=\"$url\" rel=\"nofollow\">$author</a>" : "$author"; ?> - posted on "<?php echo plogger_get_comment_date(); ?></cite> 
    21                         </li> 
    22  
    23                         <?php $counter++; 
    24                         } ?> 
    25                 </ol> 
    26                 <?php } else { ?> 
    27                 <p>"<?php echo plog_tr('No comments yet'); ?>"</p> 
    28                 <?php } ?> 
    29  
    30         <?php if (plogger_picture_allows_comments()) { 
     26<?php if (plogger_picture_allows_comments()) { 
    3127                global $config; 
    3228                if (plogger_comment_post_error()) { ?> 
    33                 <p class='errors'>"<?php echo plog_tr('Comment did not post!  Please fill in required fields.'); ?>"</p> 
     29                                <p class="errors">"<?php echo plog_tr('Comment did not post! Please fill in required fields.'); ?>"</p> 
     30                <?php } 
     31                if (plogger_comment_moderated()) { ?> 
     32                                <p class="actions"><?php echo plog_tr('Your comment was placed in moderation, please wait for approval. Do not submit your comment again!'); ?></p> 
    3433                <?php } ?> 
     34                        <a name="comment-post"></a> 
     35                        <h3 class="comment-heading"><?php echo plog_tr('Post a comment'); ?></h3> 
    3536 
    36                 <a name="comment-post"></a><h2 class="comment-heading"><?php echo plog_tr('Post a comment'); ?></h2> 
    37                 <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" id="commentform"> 
    38                         <p> 
    39                                 <input type="text" name="author" id="author" class="textarea" value="" size="28" tabindex="1" /> 
    40                                 <label for="author"><?php echo plog_tr('Name'); ?></label> (<?php echo plog_tr('required'); ?>) 
     37                                <form action="<?php echo plogger_get_picture_url(); ?>" method="post" id="commentform"> 
     38                                        <p> 
     39                                                <input type="text" name="author" id="author" class="textarea" value="" size="28" tabindex="1" /> 
     40                                                <label for="author"><?php echo plog_tr('Name'); ?></label> (<?php echo plog_tr('required'); ?>) 
     41                                                <input type="hidden" name="comment_post_ID" value="40"/> 
     42                                                <input type="hidden" name="parent" value="<?php echo plogger_get_picture_id(); ?>" /> 
     43                                        </p> 
     44                                        <p> 
     45                                                <input type="text" name="email" id="email" value="" size="28" tabindex="2" /> 
     46                                                <label for="email"><?php echo plog_tr('E-mail'); ?></label> (<?php echo plog_tr('required, but not publicly displayed'); ?>) 
     47                                        </p> 
     48                                        <p> 
     49                                                <input type="text" name="url" id="url" value="" size="28" tabindex="3" /> 
     50                                                <label for="url"><?php echo plog_tr('Your Website (optional)'); ?></label> 
     51                                        </p> 
     52                                        <p> 
     53                                                <label for="comment"><?php echo plog_tr('Your Comment'); ?></label> 
     54                                                <br /><textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> 
     55                                        </p> 
     56                                        <p class="comment-input-button"><input class="submit" name="submit" type="submit" tabindex="5" value="<?php echo plog_tr('Post Comment'); ?>" /></p> 
     57                                </form> 
    4158 
    42                                 <input type="hidden" name="comment_post_ID" value="40"/> 
    43                                 <input type="hidden" name="parent" value="'.plogger_get_picture_id().'" /> 
    44                         </p> 
    45                         <p> 
    46                                 <input type="text" name="email" id="email" value="" size="28" tabindex="2" /> 
    47                                 <label for="email"><?php echo plog_tr('E-mail'); ?></label> (<?php echo plog_tr('required, but not publicly displayed'); ?>) 
    48                         </p> 
    49                         <p> 
    50                                 <input type="text" name="url" id="url" value="" size="28" tabindex="3" /> 
    51                                 <label for="url"><?php echo plog_tr('Your Website (optional)'); ?></label> 
    52                         </p> 
    53                         <p> 
    54                                 <label for="comment"><?php echo plog_tr('Your Comment'); ?></label> 
    55                                 <br /><textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> 
    56                         </p> 
    57                         <p class="comment-input-button"> 
    58                                 <input class="submit" name="submit" type="submit" tabindex="5" value="<?php echo plog_tr('Post Comment'); ?>" /> 
    59                         </p> 
    60                 </form> 
    61  
    62         <?php } else { ?> 
    63                 <p class="comments-closed"><?php echo plog_tr('Comments for this entry are closed'); ?></p> 
    64         <?php } ?> 
     59<?php } else { ?> 
     60                                <p class="comments-closed"><?php echo plog_tr('Comments for this entry are closed'); ?></p> 
    6561<?php } ?> 
     62<?php } ?>