Skip to content

Instantly share code, notes, and snippets.

View billrobbins's full-sized avatar

Bill Robbins billrobbins

View GitHub Profile
@billrobbins
billrobbins / conditional-ie-9.html
Created February 9, 2012 18:00
Conditional HTML
<!--[if IE 9]>
<style type="text/css>
Your style here
</style>
<![endif]-->
@billrobbins
billrobbins / full-category.php
Created February 10, 2012 16:53
Full All Category Post Section
<?php if(of_get_option('home_posts') == 'yes') { ?>
<div id="home-posts">
<?php $recent = new WP_Query("cat=&showposts=" .of_get_option('home_cat_num'). ""); while($recent->have_posts()) : $recent->the_post();?>
<div class="post-highlight clearfix">
<a href="<?php the_permalink() ?>" rel="noindex"><?php the_post_thumbnail('home-thumbnail'); ?></a>
<h4><a href="<?php the_permalink() ?>" rel="noindex"><?php the_title(); ?></a></h4>
<p class="post-meta"><?php the_time('F j, Y'); ?>&nbsp;/&nbsp;<a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('Make A Comment'), __('1 Comment'), __('% Comments')); ?></a>&nbsp;/&nbsp;<?php the_category(', ') ?></p>
<?php the_content_limit(275, "Read More"); ?>
</div>
<?php endwhile; ?>
@billrobbins
billrobbins / center-inline.html
Created February 13, 2012 16:43
Text Align Inline Styling
<div style="text-align:center;">
<p>Your Content Here</p>
</div>
@billrobbins
billrobbins / custom-fields-staff.php
Created February 13, 2012 22:25
Custom Fields to Staff Configuration
'supports' => array('title', 'editor', 'thumbnail', 'excerpt', 'page-attributes', 'custom-fields')
@billrobbins
billrobbins / add-blog-staff.php
Created February 13, 2012 22:28
Add blog link to staff
<?php if(get_post_meta($post->ID, "blog", $single = true) != ""){ ?>
<span class="twitter"><a href="<?php echo get_post_meta($post->ID, "blog", TRUE); ?>" target="_blank">Blog</a></span>
<?php } ?>
@billrobbins
billrobbins / media-slider.php
Created February 17, 2012 04:00
Media Theme Slider
<div class="coda-slider-wrapper">
<div id="coda-nav-1" class="coda-nav">
<ul>
<li class="tab1"><a href="#1"><?php echo ot_option('panel_1'); ?></a></li>
<li class="tab2"><a href="#2"><?php echo ot_option('panel_2'); ?></a></li>
<li class="tab3"><a href="#3"><?php echo ot_option('panel_3'); ?></a></li>
<li class="tab4"><a href="#4"><?php echo ot_option('panel_4'); ?></a></li>
<li class="tab4"><a href="#4">Tab Title</a></li>
<li class="tab4"><a href="#4">Tab Title</a></li>
</ul>
@billrobbins
billrobbins / media-slider.php
Created February 17, 2012 04:02
Media Theme Slider
<div class="coda-slider-wrapper">
<div id="coda-nav-1" class="coda-nav">
<ul>
<li class="tab1"><a href="#1"><?php echo ot_option('panel_1'); ?></a></li>
<li class="tab2"><a href="#2"><?php echo ot_option('panel_2'); ?></a></li>
<li class="tab3"><a href="#3"><?php echo ot_option('panel_3'); ?></a></li>
<li class="tab4"><a href="#4"><?php echo ot_option('panel_4'); ?></a></li>
<li class="tab4"><a href="#4">Tab Title</a></li>
<li class="tab4"><a href="#4">Tab Title</a></li>
</ul>
@billrobbins
billrobbins / extra-sidebars.php
Created February 17, 2012 04:06
Extra Sidebars in Media Theme
register_sidebar( array(
'name' => __('Slider 5'),
'description' => __('The fifth tab in the home page slider'),
'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>'
) );
register_sidebar( array(
'name' => __('Slider 6'),
'description' => __('The sixth tab in the home page slider'),
'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>'
) );
@billrobbins
billrobbins / foxy-ie7.html
Created February 17, 2012 04:59
Foxy IE7
<!--[if IE 7]>
<style type="text/css">
.wrap {margin-top: 140px}
</style>
<![endif]-->
@billrobbins
billrobbins / foxy-ie6-ie7.html
Created February 17, 2012 15:15
Foxy IE 6 & 7
<!--[if lte IE 7]>
<style type="text/css">
.wrap {margin-top: 140px}
</style>
<![endif]-->