This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="paging"> | |
<?php if(function_exists('wp_pagenavi')) : wp_pagenavi(); else: ?> | |
<p class="paging-next left"> | |
<?php next_posts_link(__('« Next', 'organizedthemes')); ?> | |
</p> | |
<p class="paging-prev right"> | |
<?php previous_posts_link(__('Previous »', 'organizedthemes')); ?> | |
</p> | |
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create slideshow shortcode | |
function organizedthemes_home_slideshow() { ?> | |
<div id="slider"> | |
<?php $loop = new WP_Query( array( 'post_type' => 'slide', 'posts_per_page' => -1, 'orderby'=>'menu_order', 'order'=>'ASC' ) ); ?> | |
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
<a href="<?php echo get_post_meta($post->ID, "slideurl", TRUE); ?>"><?php the_post_thumbnail('slide'); ?></a> | |
<?php endwhile; ?><?php wp_reset_query(); ?> | |
</div> | |
<?php } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="home-right"> | |
<?php if(ot_option('button_1_image', $single = true) != ""){ ?> | |
<div class="fix fade image-button"> | |
<a href="<?php echo ot_option('button_1_url'); ?>"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo ot_option('button_1_image'); ?>&h=127&w=174&zc=1" height="127" width="174" alt="<?php echo ot_option('button_1'); ?>" /></a> | |
</div> | |
<?php } else { ?> | |
<div class="fix button"> | |
<h2><a href="<?php echo ot_option('button_1_url'); ?>"><?php echo ot_option('button_1'); ?></a></h2> | |
</div> | |
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php comments_template(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Donate Page | |
*/ | |
?> | |
<?php get_header(); ?> | |
<div id="header-background"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var $j = jQuery.noConflict(); | |
$j(window).load(function() { | |
$j('#slider').nivoSlider({ | |
effect:'<?php echo $ot_cycle_settings['effect']; ?>', | |
animSpeed:500, | |
slices:1, | |
pauseTime:<?php echo ($ot_cycle_settings['delay'] * 1000); ?>, | |
directionNav:false | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (is_home()) { ?> | |
<?php | |
// Query for Home Page Content | |
$the_query = new WP_Query( 'pagename=home' ); | |
// The Loop | |
while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$.fn.cleardefault = function() { | |
return this.focus(function() { | |
if( this.value == this.defaultValue ) { | |
this.value = ""; | |
} | |
}).blur(function() { | |
if( !this.value.length ) { | |
this.value = this.defaultValue; |