function wpi_template_attachment() { global $post; $pby_class = wpi_get_theme_option('post_by_enable') ? 'pby' : 'pby dn'; ?> <ul class="hfeed r cf"> <?php while (have_posts()) { the_post(); ?> <li class="xfolkentry hentry hreview hlisting cf"> <dl class="r"> <dd class="postmeta-date fl"> <ul class="span-1 pdate r"> <li class="pmonth"><span><?php the_time('M'); ?> </span></li> <li class="pday"><span><?php the_time('d'); ?> </span></li> <li class="pyear"><span><?php the_time('Y'); ?> </span></li> </ul> </dd> <dd class="postmeta-head span-13 start fl"> <?php wpi_hatom_title(); ?> <div class="postmeta-info"> <span class="<?php echo $pby_class; ?> ">Posted by <cite class="vcard reviewer author"><?php wpi_post_author(); ?> </cite>.</span> <p class="di"><?php _e('Filed under', WPI_META); wpi_cat_links(1); ?> .</p> <p><span class="ptime r"><?php printf(__(' <cite>%s</cite>', WPI_META), wpi_get_postime()); ?> </span></p><?php wpi_text_size(); ?> </div> </dd> <dd class="entry-content description entry cb ox"> <?php do_action('wpi_before_content_attachment'); ?> <div class="entry-attachment pdt"><a href="<?php echo wp_get_attachment_url($post->ID); ?> " title="<?php echo wp_specialchars(get_the_title($post->ID), 1); ?> " class="thickbox thumb-" rel="attachment"><?php echo wp_get_attachment_image($post->ID, 'large'); ?> </a></div> <div class="entry-caption mgt"><?php if (!empty($post->post_excerpt)) { the_excerpt(); } ?> </div> <?php if (wpi_option('post_author_description')) { ?> <fieldset id="post-author" class="cb cf pdt mgt"> <?php $ll = __('About the Author', WPI_META); ?> <?php t('legend', $ll, array('title' => $ll)); ?> <address class="author-avatar <?php wpiGravatar::authorGID(); ?> rn fl"> <span class="rtxt"> </span> </address> <p id="about-author" class="postmetadata fl"> <small class="db rn"><?php the_author_description(); ?> </small> </p> </fieldset> <?php } ?> </dd> <?php $rating_class = wpi_get_theme_option('post_hrating') ? 'rating-count' : 'rating-count dn'; ?> <dd class="postmeta-comments cf"> <ul class="xoxo cfl r cf"> <li class="<?php echo $rating_class; ?> "><?php wpi_hrating(); ?> </li> <?php if (wpi_get_theme_option('post_bookmarks')) { ?> <li class="postmeta-response"><?php wpi_bookmarks(); ?> <?php } ?> </li> </ul> <?php edit_post_link(__('Edit this entry.', WPI_META), '<p class="cb edit-links">', '</p>'); ?> </dd> <dd class="dn"> <ul class="more"> <li class="node-1"> <abbr class="dtstart published dtreviewed dc-date" title="<?php the_time('Y-m-dTH:i:s:Z'); ?> "><?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?> </abbr> </li> <li class="node-2"> <abbr class="dtend updated dtexpired" title="<?php the_modified_date('Y-m-dTH:i:s:Z'); ?> "><?php the_modified_date('F j, Y'); ?> at <?php the_modified_date('g:i a'); ?> </abbr> </li> <li class="version">0.3</li> <li class="type">url</li> </ul> </dd> </dl> <!-- <?php trackback_rdf(); ?> --> </li> <?php } ?> </ul> <?php }
$microid = get_microid_hash(get_comment_author_email(), $author_uri); ?> <ul class="reviewier-column cf r"> <li class="span-3 fl rn hcard"> <address class="vcard microid-mailto+http:sha1:<?php echo $microid; ?> dc-source"><img src="<?php wpi_comment_avatar_src(); ?> " width="80" height="80" alt="<?php comment_author(); ?> 's photo" class="url cc rn <?php echo wpiGravatar::commentGID(); ?> photo" longdesc="#comment-<?php comment_ID(); ?> " /><a href="<?php echo $author_uri; ?> " class="url fn db" rel="external me" title="<?php echo get_comment_author(); ?> "><?php wpi_comment_author(); ?> </a></address> </li>
function wpi_widget_author_stalker_pass() { global $authordata; $name = 'stalker-pass'; $title = $authordata->display_name . ''s press badge'; if (is_object($authordata)) { $user_name = $authordata->display_name; $user_desc = $authordata->user_description; $user_desc = !empty($user_desc) ? $user_desc : 'unknown stalkers'; $avatar_uri = wpiGravatar::getURL(md5($authordata->user_email), 92, 'G'); $avatar_uri = apply_filters(wpiFilter::FILTER_LINKS, $avatar_uri . '.ava'); // jobs $profession = isset($authordata->user_profession) ? $authordata->user_profession : 'Professional Scoundrel'; $job_title = isset($authordata->user_job_title) ? $authordata->user_job_title : 'Public Relation Officer'; // sub info $user_registered = $dstart = strtotime($authordata->user_registered); $user_registered = date('M j, Y', $user_registered); $user_registered_title = attribute_escape(date('Y-m-dTH:i:s:Z', $dstart)); $year = 31556926; $dend = $dstart + $year * 12; $user_expired = date('M j, Y', $dend); $user_expired_title = attribute_escape(date('Y-m-dTH:i:s:Z', $dend)); $bday = isset($authordata->user_birthdate) ? $authordata->user_birthdate : 'Unknown year'; } wpi_widget_start($title, $name); ?> <dl class="r profile cf ox"> <dt id="display-name"><?php echo $user_name; ?> </dt> <dd id="user-description" class="dn"><?php echo $user_desc; ?> </dd> <dd id="user-avatar"><img src="<?php echo $avatar_uri; ?> " width="92" height="92" alt="<?php echo attribute_escape($user_name); ?> " longdesc="/" class="photo"/></dd> <dt id="profession"><?php echo $profession; ?> </dt> <dd id="job_title"><small><?php echo $job_title; ?> </small></dd> <dd id="stalker-info"> <ul class="xoxo cf r"> <li class="stalker-since"> <small><abbr class="dstart" title="<?php echo $user_registered_title; ?> "><?php echo $user_registered; ?> </abbr></small></li> <li class="stalker-expired"> <small><abbr class="dend" title="<?php echo $user_expired_title; ?> "><?php echo $user_expired; ?> </abbr></small> </li> <li><small><?php echo $bday; ?> </small></li> </ul> </dd> </dl> <?php wpi_widget_end(); }