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
$(function(){ | |
var shrinkHeader = 100; | |
$(window).scroll(function() { | |
var scroll = getCurrentScroll(); | |
//console.log(scroll); | |
if ( scroll >= shrinkHeader ) { | |
$('#header').addClass('shrink'); | |
$('#logoImage').addClass('shrink'); | |
} | |
else { |
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
// Animation Progress Bars | |
$("[data-appear-progress-animation]").each(function() { | |
var $this = $(this); | |
$this.appear(function() { | |
var delay = ($this.attr("data-appear-animation-delay") ? $this.attr("data-appear-animation-delay") : 1); | |
if(delay > 1) $this.css("animation-delay", delay + "ms"); |
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
<h1 class="page-title"> | |
<?php if ( is_day() ) : ?> | |
<?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?> | |
<?php elseif ( is_month() ) : ?> | |
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?> | |
<?php elseif ( is_year() ) : ?> | |
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?> | |
<?php else : ?> | |
<?php _e( 'Blog Archives', 'twentyten' ); ?> | |
<?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
<h1 class="page-title"><?php | |
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' ); | |
?></h1> |
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
// Simple | |
@media | |
(-webkit-min-device-pixel-ratio: 2), | |
(min-resolution: 192dpi) { | |
/* Retina-specific stuff here */ | |
} | |
// Future Proof | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2), |
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
// ANIMATE CONTENT | |
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); | |
if (isMobile == false) { | |
$('*[data-animated]').addClass('animated'); | |
} | |
function animated_contents() { | |
$(".animated:appeared").each(function (i) { | |
var $this = $(this), | |
animated = $(this).data('animated'); |
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
// decreases header size when user scrolls down | |
avia_header_size(); | |
//check if the browser supports element rotation | |
function avia_header_size() | |
{ | |
var win = $(window), | |
header = $('.fixed_header #header'), | |
//logo = header.find('.logo img'), | |
logo = $('#header_main .container .logo img, #header_main .container .logo a'), | |
elements = $('#header_main .container, .main_menu ul:first-child > li > a:not(.avia_mega_div a)'), |
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
function avia_iframe_fix(container) | |
{ | |
var iframe = jQuery('iframe[src*="youtube.com"]', container), | |
youtubeEmbed = jQuery('iframe[src*="youtube.com"] object, iframe[src*="youtube.com"] embed', container).attr('wmode','opaque'); | |
iframe.each(function() | |
{ | |
var current = jQuery(this), | |
src = current.attr('src'); |
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 | |
add_filter("the_content", "the_content_filter"); | |
function the_content_filter($content) { | |
// array of custom shortcodes requiring the fix | |
$block = join("|",array("col","shortcode2","shortcode3")); | |
// opening tag |
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
if (jQuery.browser.msie &&jQuery.browser.version<9) { | |
jQuery(document).ready(function() { | |
var carouselConteiner = jQuery("#caroufredsel_carousel1"); | |
carouselConteiner.carouFredSel({ | |
responsive : true, | |
width: '100%', | |
items : { | |
width : 225, | |
height: 'variable', | |
visible : { |
NewerOlder