function wpi_comment_guide($post, $comments, $cnt) { $alt = $cnt % 2 ? 'light' : 'normal'; ?> <li id="comment-00" class="hreview <?php echo $alt; ?> "> <ul class="reviewier-column cf r"> <li class="span-3 fl rn hcard"> <address class="vcard microid-mailto+http:sha1:<?php echo get_microid_hash(get_comment_author_email(), WPI_URL); ?> "> <?php $photo_url = THEME_IMG_URL . 'default-avatar.png'; ?> <img src="<?php echo wpi_img_url('avatar-wrap.png'); ?> " width="80" height="80" alt="stalker's photo" style="background-image:url('<?php echo wpi_get_random_avatar_uri(); ?> ');background-position:42% 16%;background-color:#2482B0" class="url gravatar photo rn" longdesc="#comment-<?php comment_ID(); ?> " /> <a href="<?php echo WPI_URL; ?> " class="url fn db"> <?php echo WPI_BLOG_NAME; ?> </a> </address> </li> <li class="span-16 fl review-content"> <dl class="review r cf"> <dt class="item title summary"> <a href="#comment-00" class="url fn" title="<?php the_title(); ?> "> <span>RE:</span> <?php the_title(); ?> - 'Commenting Guidlines' ↓</a> </dt> <dd class="reviewer-meta"> <span class="date-since"> <?php echo apply_filters(wpiFilter::FILTER_POST_DATE, $post->post_date); ?> </span> on <abbr class="dtreviewed" title="<?php echo date('Y-m-dTH:i:s:Z', $post->post_date); ?> "> <?php the_time('l, F jS, Y'); ?> at <?php the_time(); ?> </abbr> <span class="rating dn">5</span> <span class="type dn">url</span> </dd> <dd class="reviewer-entry"> <big class="comment-count fr">0%</big> <p id="comment-guidline" class="description">If you want to comment, please read the following guidelines.These are designed to protect you and other users of the site.</p> <ol class="xoxo"> <li><strong>Be relevant:</strong> Your comment should be a thoughtful contribution to the subject of the entry. Keep your comments constructive and polite. </li> <li><strong>No advertising or spamming:</strong> Do not use the comment feature to promote commercial entities/products, affiliates services or websites. You are allowed to post a link as long as it's relevant to the entry.</li> <li><strong>Keep within the law:</strong> Do not link to offensive or illegal content websites. Do not make any defamatory or disparaging comments which might damage the reputation of a person or organisation.</li> <li><strong>Privacy:</strong> Do not post any personal information relating to yourself or anyone else - (ie: address, place of employment, telephone or mobile number or email address).</li> </ol> <p>In order to keep these experiences enjoyable and interesting for all of our users, we ask that you follow the above guidlines. Feel free to engage, ask questions, and tell us what you are thinking! insightful comments are most welcomed.</p> <?php if (count($comments) == false) { ?> <p class="no-comments notice rn prepend-3">be the first to comment.</p><?php } ?> </dd> </dl> </li> </ul> </li> <?php // wp_include_comments_adsense_banner(1); }
function wpi_get_random_avatar_uri() { $ava = wpi_get_dir(WPI_IMG_IMPORT_DIR . 'avatar' . DIRSEP); $ava = apply_filters(wpiFilter::RANDOM_COMMENT_AVA, $ava); if (has_count($ava)) { $index = rand(0, count($ava)); $path = 'import/avatar/'; $ava = isset($ava[$index]) ? $ava[$index] : $ava[0]; return wpi_img_url($path . $ava); } return false; }