All pastes #581806 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-21 18:32 UTC
rendered paste body
<?php
/*
Filename: 		home.php
Date: 			06-06-25
Copyright: 		2006, Glued Ideas
Author: 		Christopher Frazier (cfrazier@gluedideas.com)
Description: 	Multi-Author Template for WordPress (Subtle)
Requires:

Ryan DaRin Changed AlL OF LINE 82!
*/

$aOptions = get_option('gi_subtle_theme');

load_theme_textdomain('gluedideas_subtle');

?>
<?php get_header(); ?>
<!-- Content Start -->

			<div id="loop_articles">

<?php 

if ($aOptions['lead_cats'] != '') { query_posts('category_name=' . $aOptions['lead_cats']); }

if (have_posts()) : 

	$iLeadIndex = 0;

	while (have_posts()) : the_post(); 

		$iLeadIndex++;
		$sPostClass = '';
		$bShowContent = true;

		if ($iLeadIndex <= $aOptions['lead_count']) {
			$sPostClass .= ' lead';
			$bShowContent = true;
		} else {
			$sPostClass .= ' summary';
			$bShowContent = false;
		}

		if ($iLeadIndex == $aOptions['lead_count'] + 1) {
			echo ('<h2>' . __('Previous Articles') . '</h2>');
		}

?>
	
				<div id="post_<?php the_ID(); ?>" class="post<?php echo($sPostClass); ?>">
					<h3 class="title"><a href="<?php the_permalink() ?>"><span><?php the_title(); ?></span></a></h3>
					<ul class="metalinks">
						<li class="icon author"><?php _e("Posted by", 'gluedideas_subtle'); ?> <?php the_author_posts_link(); ?></li>
						<li class="icon date"><?php the_time(get_option('date_format')) ?></li>
					</ul>
					<?php if ($aOptions['show_metalinks']) : ?>
					<ul class="metalinks">
						<li class="icon comment"><a href="<?php the_permalink() ?>#comments"><?php comments_number(__('No Responses', 'gluedideas_subtle'),__('One Response', 'gluedideas_subtle'),'% ' . __('Responses', 'gluedideas_subtle')); ?></a></li>
						<li class="icon delicious"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&amp;title=<?php echo urlencode(get_the_title()); ?>">Del.icio.us</a></li>
						<li class="icon digg"><a href="http://www.digg.com/submit" target="_new">Digg</a></li>
						<li class="icon technorati"><a href="http://technorati.com/cosmos/search.html?url=<?php the_permalink() ?>">Technorati</a></li>
					</ul>
					<?php endif; ?>
					<br class="clear" />
					<?php if ($bShowContent) : ?>
					<div class="content">
						<?php the_content(''); ?>
						<ul class="links">
							<li class="icon jump"><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) : ?><a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>">Continue reading</a><?php endif; if ('open' == $post->comment_status) : ?><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) { echo(" or "); } ?><a href="<?php the_permalink() ?>#comments"><?php _e("Leave a comment...", 'gluedideas_subtle'); ?></a><?php elseif (get_comments_number() > 0) : ?><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) { _e(" or ", 'gluedideas_subtle'); } ?><a href="<?php the_permalink() ?>#comments"><?php _e("Read comments...", 'gluedideas_subtle'); ?></a><?php endif; ?></li>
						<?php if ($aOptions['show_feedflare'] && $aOptions['feedburner'] != '') : ?>
							<script src="http://feeds.feedburner.com/~s/<?php echo(str_replace('http://feeds.feedburner.com/', '', $aOptions['feedburner'])) ?>?i=<?php the_permalink() ?>" type="text/javascript" charset="utf-8"></script>
						<?php endif; ?>
						</ul>
					</div>
					<?php endif; ?>
				</div>

<?php 

	endwhile; ?>
<?php	include (TEMPLATEPATH . '/navigation.php');?>

else : 
	
?>

				<h2><?php _e("Oops - There's Nothing Here", 'gluedideas_subtle'); ?></h2>
				<p><?php _e("It looks like the blog owner hasn't written anything yet!", 'gluedideas_subtle'); ?></p>

<?php 

endif; 

?>



<!-- START CODE -->
<script type="text/javascript">
var selfurl = location.href;
var siteurl;
var regex = /(^\w+:\/\/)((\w|\.)+)\//;
var results = regex.exec( selfurl+"/" );
if (results==null) siteurl = selfurl;
else siteurl = results[1]+results[2];
function Goto() { location = "http://siteexplorer.search.yahoo.com/advsearch?p="+siteurl+"&bwm=i&bwmf=s";}
</script>
<div id="ybadge" style="position:relative;left:0px;top:0px;width:105px;height:35px;z-index:1;border: 1px solid #8ea9ba;background: url(https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_badgesml_bg.gif) repeat-x;overflow: hidden;cursor:pointer;" onclick="Goto()">
<div id="ylogo" style="position:absolute;left:5px;top:11px;width:18px;height:10px;z-index:1;">
<img src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_badgesml_logo.gif" alt="Yahoo!" width="18" height="10" />
</div>
<div id="ynum" style="position:absolute;left:30px;top:3px;width:75px;font:bold 11px Tahoma, Verdana, Arial;color: #2d2a25;height:15px;z-index:2;text-align: center;">
<script type="text/javascript">
function ws_results(obj) { var div = document.getElementById("ynum"); var numofres = obj.ResultSet.totalResultsAvailable; div.innerHTML += numofres; }
document.write("<scr");
document.write("ipt type=\"text/javascript\" src=\"http://search.yahooapis.com/SiteExplorerService/V1/inlinkCount?appid=YahooBadge&entire_site=1&query="+siteurl+"&output=json&callback=ws_results\"></scr");
document.write("ipt\>");
</script></div>
<div id="ytxt" style="position:absolute;height:15px;z-index:3;font:normal 11px Tahoma, Verdana, Arial;left:30px;top:18px;width:75px;color: #1b1a17;">
Links to Site </div></div>
<!-- END CODE --> 

			</div>
			
<?php if ($aOptions['description'] != '') : ?>
			<div id="information" class="prominent reduced"><div class="inner">
				<?php echo($aOptions['description']); ?>
			</div></div>

<?php endif; ?>

			<div id="widgets" class="widgets_home">
				<div id="widgets_home_a" class="widget_set reduced"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar_1') ) { get_sidebar(); } ?></div>
				<div id="widgets_home_b" class="widget_set reduced"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar_2') ) { echo(' '); } ?></div>
			</div>


			
<!-- Content End -->
<?php get_footer(); ?>