Skip to content

Instantly share code, notes, and snippets.

View billrobbins's full-sized avatar

Bill Robbins billrobbins

View GitHub Profile
@billrobbins
billrobbins / comment-link.php
Created January 5, 2012 23:25
comment link
@billrobbins
billrobbins / add-five-slides.php
Created January 6, 2012 20:24
Add five slides to Foxy options page
$options[] = array( "name" => "Slide 6",
"desc" => "Upload your sixth image here.",
"id" => "slide6",
"type" => "upload");
$options[] = array( "name" => "Slide 7",
"desc" => "Upload your seventh image here.",
"id" => "slide7",
"type" => "upload");
@billrobbins
billrobbins / add-five-slides-js.php
Created January 6, 2012 20:28
Add five slides to Foxy custom js page
<?php if(of_get_option('slide5', $single = true) != ""){ ?>
,{image : '<?php echo of_get_option('slide5'); ?>'}
<?php } ?>
<?php if(of_get_option('slide6', $single = true) != ""){ ?>
,{image : '<?php echo of_get_option('slide6'); ?>'}
<?php } ?>
<?php if(of_get_option('slide7', $single = true) != ""){ ?>
,{image : '<?php echo of_get_option('slide7'); ?>'}
<?php } ?>
<?php if(of_get_option('slide8', $single = true) != ""){ ?>
@billrobbins
billrobbins / home.php
Created January 9, 2012 00:06
What's left on home.php
<p class="post-meta"><?php the_time('F j, Y'); ?>&nbsp;/&nbsp;<?php the_category(', ') ?></p>
@billrobbins
billrobbins / footer.php
Created January 11, 2012 15:59
Social Links
@billrobbins
billrobbins / links-in-new-window.php
Created January 11, 2012 16:00
Social Links In New Window
@billrobbins
billrobbins / long-form-sponsor-archive-part.php
Created January 12, 2012 16:37
Long Form Sponsor Archive
<div class="staff-member clearfix">
<div class="staff-picture fade"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('staff-thumbnail'); ?></a></div>
<div class="staff-details clearfix">
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php the_content_limit(275, "Read More"); ?>
<p class="staff-contact">
<?php if(get_post_meta($post->ID, "website", $single = true) != ""){ ?>
<span class="website"><a href="<?php echo get_post_meta($post->ID, "website", TRUE); ?>">Visit <?php the_title(); ?>'s Website</a></span>
<?php } ?>
@billrobbins
billrobbins / widget-sea-side-subscribe.php
Created January 16, 2012 14:49
Subscribe widget from sea side
<div class="widget">
<h2>Subscribe Here</h2>
<ul>
<li><a href="<?php echo get_settings('home'); ?>/category/messages/feed">Subscribe via RSS</a></li>
<li><a href="<?php echo ot_option('itunes'); ?>">Subscribe via iTunes</a></li>
</ul>
</div>
@billrobbins
billrobbins / replace-agency-slideshow.php
Created January 16, 2012 17:10
Replace Agency Theme Slideshow With Category Image
<?php
if ( is_archive() )
ciii_category_archive_image();
else
ot_cycle();
?>
@billrobbins
billrobbins / sidebar-post.php
Created January 16, 2012 17:26
Complete sidebar-post.php
<div class="widget">
<h2>Subscribe Here</h2>
<ul>
<li><a href="<?php echo get_settings('home'); ?>/category/messages/feed">Subscribe via RSS</a></li>
<li><a href="<?php echo ot_option('itunes'); ?>">Subscribe via iTunes</a></li>
</ul>
</div>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Post Sidebar') ) : ?>
<?php endif; ?>