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

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