rendered paste body<?php/*Template Name: Author Template*/ global $dirs; global $wp_query;$curauth = $wp_query->get_queried_object();$author = $curauth->nickname;$key="wpum_"."religion";$religion = get_usermeta($curauth->ID, $key);$key="wpum_"."philosophy";$philosophy = get_usermeta($curauth->ID, $key);$key="wpum_"."raised";$raised = get_usermeta($curauth->ID, $key);$key="wpum_"."political";$political = get_usermeta($curauth->ID, $key);$key="wpum_"."against";$against = get_usermeta($curauth->ID, $key);$key="wpum_"."personality";$personality = get_usermeta($curauth->ID, $key);$key="wpum_"."Country";$country = get_usermeta($curauth->ID, $key);$key="wpum_"."lastfm";$lastfm = get_usermeta($curauth->ID, $key);$key="wpum_"."friendfeed";$friendfeed = get_usermeta($curauth->ID, $key);$key="wpum_"."facebook";$facebook = get_usermeta($curauth->ID, $key);$key="wpum_"."website_name";$website_name = get_usermeta($curauth->ID, $key);$key="wpum_"."confession";$confession = get_usermeta($curauth->ID, $key);$key="wpum_"."political_desc";$political_desc = get_usermeta($curauth->ID, $key);$size = 40;$default_img = "http://www.antichristian-phenomenon.com/acplogogravatar.jpg";$grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($curauth->user_email)."&default=".urlencode($default_img)."&size=".$size; if ($website_name == null) {$website_name = $curauth->user_url;} get_header(); $tag_posttitle_multi = get_option('royale_tag_posttitle_multi'); $tag_pagetitle = get_option('royale_tag_pagetitle' );?> <td id="content" class="<?php echo ($alwayssidebars ? 'narrow' : 'wide'); ?>column"> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <h2 class="pagetitle"><?php echo $author; ?>'s Profile</h2> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« '. __('Previous Entries','royale')) ?></div> <div class="alignright"><?php previous_posts_link(__('Next Entries','royale'). ' »') ?></div> </div> <div class="post"> <?php if ($curauth->description != null) { echo '<h3><img src="'.$grav_url.'" align="right"><strong>About the Author</strong></h3><br/> '.$curauth->description; } ?> <hr /><br/> <ul> <?php if ($religion != null) { echo '<li><strong>(<a href="http://en.wikipedia.org/wiki/Irreligion">Ir</a>)Religion:</strong> '.$religion.'</li>'; } if ($philosophy != null) { echo "<li><strong>Philosophy:</strong> ".$philosophy."</li>"; } if ($raised != null) { echo "<li><strong>Raised Religious?:</strong> ".$raised."</li>"; } if ($against != null) { echo "<li><strong>Why am I again Christianity/Religion:</strong> ".$against."</li>";} if ($political != null) { if ($political_desc != null) { echo '<li><strong>Political Orientation:</strong> <a href="'.$political.'">'.$political_desc.'</a></li>';} else { echo '<li><strong>Political Orientation:</strong> <a href="'.$political.'">At the Political Compass</a></li>';} } elseif ($political_desc != null) {echo '<li><strong>Political Orientation:</strong> '.$political_desc.'</li>';} if ($personality != null) { echo '<li><strong>Personality Type:</strong> <a href="http://www.keirsey.com/handler.aspx?s=keirsey&f=fourtemps&tab=1&c=overview">'.$personality.'</a></li>'; } if ($curauth->user_url != null) { echo '<li><strong>Webpage:</strong> <a href="'.$curauth->user_url.'">'.$website_name.'</a></li>'; } if ($Country != null) { echo "<li><strong>Country of Origin:</strong> ".$Country."</li>"; } if ($lastfm != null) { echo '<li><strong>Last.fm Profile:</strong> <a href="http://last.fm/user/'.$lastfm.'">'.$lastfm.'</a></li>'; } if ($confession != null || $facebook != null) { echo '<li>'.$author.' has also... <ul style="padding-left: 30px;">'; if ($confession != null) {echo '<li><a href="'.$confession.'">Confessed his sins</a>.</li>';} if ($facebook != null) {echo '<li>A <a href="'.$facebook.'">Facebook Profile</a>.</li>';} echo '</ul></li>'; } ?> </ul> </div><script>var idcomments_acct = '6cb4442e9938f1100f75832b1d98e700';var idcomments_post_id;var idcomments_post_url;var idcomments_post_title='<?php echo addslashes(urlencode($curauth->nickname."'s Profile @ the ACP"));?>';</script><span id="IDCommentsPostTitle" style="display:none"></span><script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script> <h2 class="pagetitle">Post Archive</h2><br/> <?php while (have_posts()) : the_post(); ?> <div class="post"> <div class="postinfo"> <div class="cal"> <span class="cald<?php echo (get_option('royale_dates') ? ' cald2' : '') ?>"><?php the_time((get_option('royale_dates') ? 'M' : 'd')) ?></span> <span class="calm"><?php the_time((get_option('royale_dates') ? 'd' : 'm')) ?></span> <span class="caly"><?php the_time('Y') ?></span> </div> <?php if (!get_option('royale_no_animations')): ?> <span class="switch-post"> <a href="javascript:toggleSidebars();" class="switch-sidebars"><img src="<?php echo $dirs['www']['icons']; ?>bullet_sidebars_hide.png" alt="" class="png" /></a><a href="javascript:togglePost(<?php the_ID(); ?>);" id="switch-post-<?php the_ID(); ?>"><img src="<?php echo $dirs['www']['icons']; ?>bullet_toggle_minus.png" alt="" class="png" /></a> </span> <?php endif; ?> <<?php echo $tag_posttitle_multi; ?> class="posttitle posttitle-archive"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','royale'),the_title('','',false)); ?>"><?php the_title(); ?></a></<?php echo $tag_posttitle_multi; ?>> <small><?php printf(__('Posted by: %s in %s','royale'),'<a href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>',get_the_category_list(', ')) ?><?php if (function_exists('the_tags') && !get_option('royale_tags_after')) the_tags(', '. __('tags','royale') .': '); ?><?php edit_post_link(__('Edit','royale'), ' - <img src="'. $dirs['www']['images'] .'page_edit.png" class="png" alt="" /> ', ''); ?> </small> </div> <div class="entry"> <?php the_content() ?> <?php if (function_exists('the_tags') && get_option('royale_tags_after')) the_tags(); ?> </div> <p class="postmetadata"><img src="<?php echo $dirs['www']['images']; ?>comments.png" class="png" alt="" /> <?php comments_popup_link(__('No Comments','royale'). ' »', __('1 Comment','royale'). ' »', __('% Comments','royale'). ' »'); ?></p> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« '. __('Previous Entries','royale')) ?></div> <div class="alignright"><?php previous_posts_link(__('Next Entries','royale'). ' »') ?></div> </div> <?php else : ?> <<?php echo $tag_pagetitle; ?> class="pagetitle"><?php _e('Not Found','royale'); ?></<?php echo $tag_pagetitle; ?>> <p><?php _e('Sorry, but you are looking for something that isn\'t here','royale'); ?>.</p> <?php endif; ?> </td><?php if (get_option('royale_always_show_sidebars')) { include (TEMPLATEPATH . '/sidebar.php'); if (get_option('royale_3columns')) { include (TEMPLATEPATH . '/sidebar2.php'); } } get_footer(); ?>