Skip to content

Instantly share code, notes, and snippets.

View billrobbins's full-sized avatar

Bill Robbins billrobbins

View GitHub Profile
<?php
/**
* The file controls the display of our staff archive.
*
* @package Responsive Visual
* @version Since 1.0.0
*/
get_header(); ?>
<span class="phone"><a target="_blank" href="<?php echo get_post_meta($post->ID, "optional_url", TRUE); ?>"><?php echo get_post_meta($post->ID, "option_title", TRUE); ?></a></span>
<style>
#hero-section { background-image: url(http://yoursite.com/image.jpg) }
</style>
<div class="hero-copy center">
<div class="hero-title-holder">
<h2 class="hero-title">Hero Title</h2>
<?php } elseif ( is_shop() ) ?>
<div id="content">
<?php while (have_posts()) : the_post(); ?>
<h1 class="page-title"><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
// PayPal Donate Shortcode
function elite_paypal_donation_shortcode( $atts ) {
extract(shortcode_atts(array(
'label' => 'Make a donation',
'email' => 'Account Email Address',
'for' => 'Donation',
), $atts));
global $post;
<?php get_header(); ?>
<div id="content" class="clearfix">
<h1 class="entry-title" itemprop="headline"><?php _e('Not Found', 'organizedthemes'); ?></h1>
<p><?php _e('We could not find the page you were looking for. You can try searching for it here:', 'organizedthemes'); ?></p>
<?php get_search_form(); ?>
<p>We recently made some changes to our site. If you are having issues viewing our website, try clearing the cache (cookies) on your browser. Instructions to do this can be found here: <a href="http://www.wikihow.com/Clear-Your-Browser's-Cache">Clearing Your Cache</a></p>
<?php } elseif ( has_page_template( 'page-home-template.php' ) ) { ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?>
<div class="hero-copy <?php echo get_post_meta($post->ID, "hero_alignment", TRUE); ?>">
<!-- Your Content -->
</div>