Instantly share code, notes, and snippets.
Created
December 15, 2011 14:46
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save billrobbins/1481335 to your computer and use it in GitHub Desktop.
foxy background edit
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><!-- Close Wrap --> | |
<footer> | |
<p><a href="<?php echo home_url(); ?>/">© <?php echo date('Y'); ?> <?php bloginfo('name'); ?></a><br /><a href="http://www.organizedthemes.com">Organized Themes</a></p> | |
</footer> | |
<?php wp_footer(); ?> | |
<script type="text/javascript"> | |
var $ = jQuery.noConflict(); | |
// superfish drop down menu | |
$(document).ready(function(){ | |
$("ul.menu").superfish({ | |
animation: {opacity:'show',height:'show'}, | |
delay: 1000 | |
}); | |
}); | |
// navigation animation | |
var timer = 150; //time in milliseconds | |
$('aside.sidebar .menu li a').hover(function() { | |
$(this).animate({ marginLeft: '25px' }, timer); | |
}, | |
function() { | |
$(this).animate({ marginLeft: '0px' }, timer); | |
}); | |
// fade in content | |
$(document).ready(function(){ | |
setTimeout(function(){ | |
$(".wrap, .header-bar, footer").fadeIn("slow", function () { | |
}); | |
}, 1500); | |
}); | |
// supersized background slideshow | |
$(function(){ | |
$.supersized({ | |
slideshow : <?php echo of_get_option('enable_slideshow'); ?>, | |
autoplay : 1, | |
start_slide : 1, | |
random : <?php echo of_get_option('random'); ?>, | |
slide_interval : <?php echo of_get_option('duration'); ?>, | |
transition : <?php echo of_get_option('effect'); ?>, | |
transition_speed : <?php echo of_get_option('transition_time'); ?>, | |
new_window : 1, | |
pause_hover : 0, | |
keyboard_nav : 1, | |
performance : 1, | |
image_protect : 1, | |
image_path : 'images/', | |
min_width : 0, | |
min_height : 0, | |
vertical_center : 1, | |
horizontal_center : 1, | |
fit_portrait : 0, | |
fit_landscape : 0, | |
navigation : 0, | |
thumbnail_navigation : 0, | |
slide_counter : 0, | |
slide_captions : 0, | |
slides : [ //Slideshow Images | |
<?php if (is_tax( 'staff-group' ) && of_get_option('staff_image', $single = true) != "" ): ?> | |
{image : '<?php echo of_get_option('staff_image'); ?>'} | |
<?php elseif (is_tax( 'menu-group' ) && of_get_option('food_image', $single = true) != "" ): ?> | |
{image : '<?php echo of_get_option('food_image'); ?>'} | |
<?php elseif (is_tax( 'service-group' ) && of_get_option('service_image', $single = true) != "" ): ?> | |
{image : '<?php echo of_get_option('service_image'); ?>'} | |
<?php elseif (is_single() && has_post_thumbnail() ): ?> | |
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> | |
{image : '<?php echo $image[0]; ?>'} | |
<?php elseif (is_page() && has_post_thumbnail() ): ?> | |
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> | |
{image : '<?php echo $image[0]; ?>'} | |
<?php else: ?> | |
<?php if(of_get_option('slide1', $single = true) != ""){ ?> | |
{image : '<?php echo of_get_option('slide1'); ?>'} | |
<?php } ?> | |
<?php if(of_get_option('slide2', $single = true) != ""){ ?> | |
,{image : '<?php echo of_get_option('slide2'); ?>'} | |
<?php } ?> | |
<?php if(of_get_option('slide3', $single = true) != ""){ ?> | |
,{image : '<?php echo of_get_option('slide3'); ?>'} | |
<?php } ?> | |
<?php if(of_get_option('slide4', $single = true) != ""){ ?> | |
,{image : '<?php echo of_get_option('slide4'); ?>'} | |
<?php } ?> | |
<?php if(of_get_option('slide5', $single = true) != ""){ ?> | |
,{image : '<?php echo of_get_option('slide5'); ?>'} | |
<?php } ?> | |
<?php endif; ?> | |
] | |
}); | |
}); | |
</script> | |
</body> | |
</html> | |
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment