Changeset 557 for trunk/plog-content/themes/air/comments.php
- Timestamp:
- 07/14/08 22:15:37 (4 years ago)
- File:
-
- 1 edited
-
trunk/plog-content/themes/air/comments.php (modified) (1 diff)
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> 1 4 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 } ?> 4 25 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()) { 31 27 global $config; 32 28 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> 34 33 <?php } ?> 34 <a name="comment-post"></a> 35 <h3 class="comment-heading"><?php echo plog_tr('Post a comment'); ?></h3> 35 36 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> 41 58 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> 65 61 <?php } ?> 62 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.
