<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?php bloginfo('name'); ?> <?php wp_title(' - ', true, 'left'); ?></title>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?v=3.exp&sensor=false&language=<?php echo substr(get_locale(), 0, 2); ?>"></script>
<!-- W3TC-include-js-head -->
<?php global $data; if($data['google_body'] && $data['google_body'] != 'Select Font'): ?>
<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['google_body']); ?>:300,400,400italic,500,600,700,700italic&subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
<?php endif; ?>
<?php if($data['google_nav'] && $data['google_nav'] != 'Select Font'): ?>
<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['google_nav']); ?>:300,400,400italic,500,600,700,700italic&subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
<?php endif; ?>
<?php if($data['google_headings'] && $data['google_headings'] != 'Select Font'): ?>
<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['google_headings']); ?>:300,400,400italic,500,600,700,700italic&subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
<?php endif; ?>
<?php if($data['google_footer_headings'] && $data['google_footer_headings'] != 'Select Font'): ?>
<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['google_footer_headings']); ?>:300,400,400italic,500,600,700,700italic&subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
<?php endif; ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" />
<!--[if IE]>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/respond.min.js"></script>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie.css" />
<![endif]-->
<?php global $data; ?>
<?php
if(is_page('header-2')) {
$data['header_right_content'] = 'Social Links';
if($data['scheme_type'] == 'Dark') {
$data['header_top_bg_color'] = '#29292a';
$data['header_icons_color'] = 'Light';
$data['snav_color'] = '#ffffff';
$data['header_top_first_border_color'] = '#3e3e3e';
} else {
$data['header_top_bg_color'] = '#ffffff';
$data['header_icons_color'] = 'Dark';
$data['snav_color'] = '#747474';
$data['header_top_first_border_color'] = '#efefef';
}
} elseif(is_page('header-3')) {
$data['header_right_content'] = 'Social Links';
} elseif(is_page('header-4')) {
$data['header_left_content'] = 'Social Links';
$data['header_right_content'] = 'Navigation';
} elseif(is_page('header-5')) {
$data['header_right_content'] = 'Social Links';
}
?>
<?php if($data['responsive']): ?>
<?php $isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad');
if(!$isiPad || !$data['ipad_potrait']): ?>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<?php endif; ?>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/media.css" />
<?php if(!$data['ipad_potrait']): ?>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ipad.css" />
<?php else: ?>
<style type="text/css">
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait){
#wrapper .ei-slider{width:100% !important;}
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape){
#wrapper .ei-slider{width:100% !important;}
}
</style>
<?php endif; ?>
<?php else: ?>
<style type="text/css">
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px){
#wrapper .ei-slider{width:100% !important;}
}
</style>
<?php $isiPhone = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPhone');
if($isiPhone):
?>
<style type="text/css">
@media only screen and (min-device-width : 320px) and (max-device-width : 480px){
#wrapper .ei-slider{width:100% !important;}
}
</style>
<?php endif; ?>
<?php endif; ?>
<?php if($data['favicon']): ?>
<link rel="shortcut icon" href="<?php echo $data['favicon']; ?>" type="image/x-icon" />
<?php endif; ?>
<?php if($data['iphone_icon']): ?>
<!-- For iPhone -->
<link rel="apple-touch-icon-precomposed" href="<?php echo $data['iphone_icon']; ?>">
<?php endif; ?>
<?php if($data['iphone_icon_retina']): ?>
<!-- For iPhone 4 Retina display -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $data['iphone_icon_retina']; ?>">
<?php endif; ?>
<?php if($data['ipad_icon']): ?>
<!-- For iPad -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $data['ipad_icon']; ?>">
<?php endif; ?>
<?php if($data['ipad_icon_retina']): ?>
<!-- For iPad Retina display -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $data['ipad_icon_retina']; ?>">
<?php endif; ?>
<?php wp_head(); ?>
<!--[if IE 8]>
<script type="text/javascript">
jQuery(document).ready(function() {
var imgs, i, w;
var imgs = document.getElementsByTagName( 'img' );
for( i = 0; i < imgs.length; i++ ) {
w = imgs[i].getAttribute( 'width' );
if ( 615 < w ) {
imgs[i].removeAttribute( 'width' );
imgs[i].removeAttribute( 'height' );
}
}
});
</script>
<![endif]-->
<script type="text/javascript">
/*@cc_on
@if (@_jscript_version == 10)
document.write(' <link type= "text/css" rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie10.css" />');
@end
@*/
function insertParam(url, parameterName, parameterValue, atStart){
replaceDuplicates = true;
if(url.indexOf('#') > 0){
var cl = url.indexOf('#');
urlhash = url.substring(url.indexOf('#'),url.length);
} else {
urlhash = '';
cl = url.length;
}
sourceUrl = url.substring(0,cl);
var urlParts = sourceUrl.split("?");
var newQueryString = "";
if (urlParts.length > 1)
{
var parameters = urlParts[1].split("&");
for (var i=0; (i < parameters.length); i++)
{
var parameterParts = parameters[i].split("=");
if (!(replaceDuplicates && parameterParts[0] == parameterName))
{
if (newQueryString == "")
newQueryString = "?";
else
newQueryString += "&";
newQueryString += parameterParts[0] + "=" + (parameterParts[1]?parameterParts[1]:'');
}
}
}
if (newQueryString == "")
newQueryString = "?";
if(atStart){
newQueryString = '?'+ parameterName + "=" + parameterValue + (newQueryString.length>1?'&'+newQueryString.substring(1):'');
} else {
if (newQueryString !== "" && newQueryString != '?')
newQueryString += "&";
newQueryString += parameterName + "=" + (parameterValue?parameterValue:'');
}
return urlParts[0] + newQueryString + urlhash;
};
function ytVidId(url) {
var p = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;
return (url.match(p)) ? RegExp.$1 : false;
//return (url.match(p)) ? true : false;
}
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
function getFrameID(id){
var elem = document.getElementById(id);
if (elem) {
if(/^iframe$/i.test(elem.tagName)) return id; //Frame, OK
// else: Look for frame
var elems = elem.getElementsByTagName("iframe");
if (!elems.length) return null; //No iframe found, FAILURE
for (var i=0; i<elems.length; i++) {
if (/^https?:\/\/(?:www\.)?youtube(?:-nocookie)?\.com(\/|$)/i.test(elems[i].src)) break;
}
elem = elems[i]; //The only, or the best iFrame
if (elem.id) return elem.id; //Existing ID, return it
// else: Create a new ID
do { //Keep postfixing `-frame` until the ID is unique
id += "-frame";
} while (document.getElementById(id));
elem.id = id;
return id;
}
// If no element, return null.
return null;
}
// Define YT_ready function.
var YT_ready = (function() {
var onReady_funcs = [], api_isReady = false;
/* @param func function Function to execute on ready
* @param func Boolean If true, all qeued functions are executed
* @param b_before Boolean If true, the func will added to the first
position in the queue*/
return function(func, b_before) {
if (func === true) {
api_isReady = true;
while (onReady_funcs.length) {
// Removes the first func from the array, and execute func
onReady_funcs.shift()();
}
} else if (typeof func == "function") {
if (api_isReady) func();
else onReady_funcs[b_before?"unshift":"push"](func);
}
}
})();
// This function will be called when the API is fully loaded
function onYouTubePlayerAPIReady() {YT_ready(true)}
jQuery(window).load(function() {
if(jQuery('#sidebar').is(':visible')) {
jQuery('.post-content div.portfolio').each(function() {
var columns = jQuery(this).data('columns');
jQuery(this).addClass('portfolio-'+columns+'-sidebar');
});
}
jQuery('.full-video, .video-shortcode, .wooslider .slide-content').fitVids();
if(jQuery().isotope) {
// modified Isotope methods for gutters in masonry
jQuery.Isotope.prototype._getMasonryGutterColumns = function() {
var gutter = this.options.masonry && this.options.masonry.gutterWidth || 0;
containerWidth = this.element.width();
this.masonry.columnWidth = this.options.masonry && this.options.masonry.columnWidth ||
// or use the size of the first item
this.$filteredAtoms.outerWidth(true) ||
// if there's no items, use size of container
containerWidth;
this.masonry.columnWidth += gutter;
this.masonry.cols = Math.floor( ( containerWidth + gutter ) / this.masonry.columnWidth );
this.masonry.cols = Math.max( this.masonry.cols, 1 );
};
jQuery.Isotope.prototype._masonryReset = function() {
// layout-specific props
this.masonry = {};
// FIXME shouldn't have to call this again
this._getMasonryGutterColumns();
var i = this.masonry.cols;
this.masonry.colYs = [];
while (i--) {
this.masonry.colYs.push( 0 );
}
};
jQuery.Isotope.prototype._masonryResizeChanged = function() {
var prevSegments = this.masonry.cols;
// update cols/rows
this._getMasonryGutterColumns();
// return if updated cols/rows is not equal to previous
return ( this.masonry.cols !== prevSegments );
};
jQuery('.portfolio-one .portfolio-wrapper').isotope({
// options
itemSelector: '.portfolio-item',
layoutMode: 'straightDown',
transformsEnabled: false
});
jQuery('.portfolio-two .portfolio-wrapper, .portfolio-three .portfolio-wrapper, .portfolio-four .portfolio-wrapper').isotope({
// options
itemSelector: '.portfolio-item',
layoutMode: 'fitRows',
transformsEnabled: false
});
}
if(jQuery().flexslider) {
var iframes = jQuery('iframe');
var avada_ytplayer;
jQuery.each(iframes, function(i, v) {
var src = jQuery(this).attr('src');
if(src) {
if(src.indexOf('vimeo') >= 1) {
jQuery(this).attr('id', 'player_'+(i+1));
var new_src = insertParam(src, 'api', '1', false);
var new_src_2 = insertParam(new_src, 'player_id', 'player_'+(i+1), false);
jQuery(this).attr('src', new_src_2);
}
if(ytVidId(src)) {
jQuery(this).parent().wrap('<span class="play3" />');
}
}
});
function ready(player_id) {
var froogaloop = $f(player_id);
froogaloop.addEvent('play', function(data) {
jQuery('#'+player_id).parents('li').parent().parent().flexslider("pause");
});
froogaloop.addEvent('pause', function(data) {
jQuery('#'+player_id).parents('li').parent().parent().flexslider("play");
});
}
var vimeoPlayers = jQuery('.flexslider').find('iframe'), player;
for (var i = 0, length = vimeoPlayers.length; i < length; i++) {
player = vimeoPlayers[i];
$f(player).addEvent('ready', ready);
}
function addEvent(element, eventName, callback) {
if (element.addEventListener) {
element.addEventListener(eventName, callback, false)
} else {
element.attachEvent(eventName, callback, false);
}
}
jQuery('.tfs-slider').flexslider({
animation: "<?php if($data['tfs_animation']) { echo $data['tfs_animation']; } else { echo 'fade'; } ?>",
slideshow: <?php if($data['tfs_autoplay']) { echo 'true'; } else { echo 'false'; } ?>,
slideshowSpeed: <?php if($data['tfs_slideshow_speed']) { echo $data['tfs_slideshow_speed']; } else { echo '7000'; } ?>,
animationSpeed: <?php if($data['tfs_animation_speed']) { echo $data['tfs_animation_speed']; } else { echo '600'; } ?>,
smoothHeight: true,
pauseOnHover: false,
useCSS: false,
video: true,
start: function(slider) {
if(typeof(slider.slides) !== 'undefined' && slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '-30px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').hide();
<?php endif; ?>
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
} else {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '0px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').show();
<?php endif; ?>
}
},
before: function(slider) {
if(slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
$f( slider.slides.eq(slider.currentSlide).find('iframe').attr('id') ).api('pause');
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
/* ------------------ YOUTUBE FOR AUTOSLIDER ------------------ */
playVideoAndPauseOthers(slider);
}
},
after: function(slider) {
if(slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '-30px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').hide();
<?php endif; ?>
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
} else {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '0px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').show();
<?php endif; ?>
}
}
});
jQuery('.flexslider').flexslider({
slideshow: <?php if($data["slideshow_autoplay"]) { echo 'true'; } else { echo 'false'; } ?>,
video: true,
pauseOnHover: false,
useCSS: false,
<?php if(get_post_meta($c_pageID, 'pyre_fimg_width', true) == 'auto' && get_post_meta($c_pageID, 'pyre_width', true) == 'half'): ?>smoothHeight: true,<?php endif; ?>
start: function(slider) {
if (typeof(slider.slides) !== 'undefined' && slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '-30px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').hide();
<?php endif; ?>
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
} else {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '0');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').show();
<?php endif; ?>
}
},
before: function(slider) {
if (slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
$f(slider.slides.eq(slider.currentSlide).find('iframe').attr('id') ).api('pause');
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
/* ------------------ YOUTUBE FOR AUTOSLIDER ------------------ */
playVideoAndPauseOthers(slider);
}
},
after: function(slider) {
if (slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '-30px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').hide();
<?php endif; ?>
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
} else {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '0px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').show();
<?php endif; ?>
}
}
});
function playVideoAndPauseOthers(slider) {
jQuery(slider).find('iframe').each(function(i) {
var func = 'stopVideo';
this.contentWindow.postMessage('{"event":"command","func":"' + func + '","args":""}', '*');
});
}
/* ------------------ PREV & NEXT BUTTON FOR FLEXSLIDER (YOUTUBE) ------------------ */
jQuery('.flex-next, .flex-prev').click(function() {
playVideoAndPauseOthers(jQuery(this).parents('.flexslider, .tfs-slider'));
});
function onPlayerStateChange(frame, slider) {
return function(event) {
if(event.data == YT.PlayerState.PLAYING) {
jQuery(slider).flexslider("pause");
}
if(event.data == YT.PlayerState.PAUSED) {
jQuery(slider).flexslider("play");
}
}
}
}
if(jQuery().isotope) {
var gridwidth = (jQuery('.grid-layout').width() / 2) - 22;
jQuery('.grid-layout .post').css('width', gridwidth);
jQuery('.grid-layout').isotope({
layoutMode: 'masonry',
itemSelector: '.post',
masonry: {
columnWidth: gridwidth,
gutterWidth: 40
},
});
var gridwidth = (jQuery('.grid-full-layout').width() / 3) - 30;
jQuery('.grid-full-layout .post').css('width', gridwidth);
jQuery('.grid-full-layout').isotope({
layoutMode: 'masonry',
itemSelector: '.post',
masonry: {
columnWidth: gridwidth,
gutterWidth: 40
},
});
}
jQuery('.rev_slider_wrapper').each(function() {
if(jQuery(this).length >=1 && jQuery(this).find('.tp-bannershadow').length == 0) {
jQuery('<div class="shadow-left">').appendTo(this);
jQuery('<div class="shadow-right">').appendTo(this);
jQuery(this).addClass('avada-skin-rev');
}
});
jQuery('.tparrows').each(function() {
if(jQuery(this).css('visibility') == 'hidden') {
jQuery(this).remove();
}
});
});
jQuery(document).ready(function($) {
jQuery('.header-social .menu > li').height(jQuery('.header-social').height());
jQuery('.header-social .menu > li').css('line-height', jQuery('.header-social').height()+'px');
function onAfter(curr, next, opts, fwd) {
var $ht = jQuery(this).height();
//set the container's height to that of the current slide
$(this).parent().css('height', $ht);
}
if(jQuery().cycle) {
jQuery('.reviews').cycle({
fx: 'fade',
after: onAfter,
<?php if($data['testimonials_speed']): ?>
timeout: <?php echo $data['testimonials_speed']; ?>
<?php endif; ?>
});
}
<?php if($data['image_rollover']): ?>
/*$('.image').live('mouseenter', function(e) {
if(!$(this).hasClass('slided')) {
$(this).find('.image-extras').show().stop(true, true).animate({opacity: '1', left: '0'}, 400);
$(this).addClass('slided');
} else {
$(this).find('.image-extras').stop(true, true).fadeIn('normal');
}
});
$('.image-extras').mouseleave(function(e) {
$(this).fadeOut('normal');
});*/
<?php endif; ?>
var ppArgs = {
<?php if($data["lightbox_animation_speed"]): ?>
animation_speed: '<?php echo strtolower($data["lightbox_animation_speed"]); ?>',
<?php endif; ?>
overlay_gallery: <?php if($data["lightbox_gallery"]) { echo 'true'; } else { echo 'false'; } ?>,
autoplay_slideshow: <?php if($data["lightbox_autoplay"]) { echo 'true'; } else { echo 'false'; } ?>,
<?php if($data["lightbox_slideshow_speed"]): ?>
slideshow: <?php echo $data['lightbox_slideshow_speed']; ?>,
<?php endif; ?>
<?php if($data["lightbox_opacity"]): ?>
opacity: <?php echo $data['lightbox_opacity']; ?>,
<?php endif; ?>
show_title: <?php if($data["lightbox_title"]) { echo 'true'; } else { echo 'false'; } ?>,
show_desc: <?php if($data["lightbox_desc"]) { echo 'true'; } else { echo 'false'; } ?>,
<?php if(!$data["lightbox_social"]) { echo 'social_tools: "",'; } ?>
};
jQuery("a[rel^='prettyPhoto']").prettyPhoto(ppArgs);
<?php if($data['lightbox_post_images']): ?>
jQuery('.single-post .post-content a').has('img').prettyPhoto(ppArgs);
<?php endif; ?>
var mediaQuery = 'desk';
if (Modernizr.mq('only screen and (max-width: 600px)') || Modernizr.mq('only screen and (max-height: 520px)')) {
mediaQuery = 'mobile';
jQuery("a[rel^='prettyPhoto']").unbind('click');
<?php if($data['lightbox_post_images']): ?>
jQuery('.single-post .post-content a').has('img').unbind('click');
<?php endif; ?>
}
// Disables prettyPhoto if screen small
jQuery(window).resize(function() {
if ((Modernizr.mq('only screen and (max-width: 600px)') || Modernizr.mq('only screen and (max-height: 520px)')) && mediaQuery == 'desk') {
jQuery("a[rel^='prettyPhoto']").unbind('click.prettyphoto');
<?php if($data['lightbox_post_images']): ?>
jQuery('.single-post .post-content a').has('img').unbind('click.prettyphoto');
<?php endif; ?>
mediaQuery = 'mobile';
} else if (!Modernizr.mq('only screen and (max-width: 600px)') && !Modernizr.mq('only screen and (max-height: 520px)') && mediaQuery == 'mobile') {
jQuery("a[rel^='prettyPhoto']").prettyPhoto(ppArgs);
<?php if($data['lightbox_post_images']): ?>
jQuery('.single-post .post-content a').has('img').prettyPhoto(ppArgs);
<?php endif; ?>
mediaQuery = 'desk';
}
});
<?php if($data['sidenav_behavior'] == 'Click'): ?>
jQuery('.side-nav li a').live('click', function(e) {
if(jQuery(this).find('.arrow').length >= 1) {
if(jQuery(this).parent().find('> .children').length >= 1 && !$(this).parent().find('> .children').is(':visible')) {
jQuery(this).parent().find('> .children').stop(true, true).slideDown('slow');
} else {
jQuery(this).parent().find('> .children').stop(true, true).slideUp('slow');
}
}
if(jQuery(this).find('.arrow').length >= 1) {
return false;
}
});
<?php else: ?>
jQuery('.side-nav li').hoverIntent({
over: function() {
if(jQuery(this).find('> .children').length >= 1) {
jQuery(this).find('> .children').stop(true, true).slideDown('slow');
}
},
out: function() {
if(jQuery(this).find('.current_page_item').length == 0 && jQuery(this).hasClass('current_page_item') == false) {
jQuery(this).find('.children').stop(true, true).slideUp('slow');
}
},
timeout: 500
});
<?php endif; ?>
if(jQuery().eislideshow) {
jQuery('#ei-slider').eislideshow({
<?php if($data["tfes_animation"]): ?>
animation: '<?php echo $data["tfes_animation"]; ?>',
<?php endif; ?>
autoplay: <?php if($data["tfes_autoplay"]) { echo 'true'; } else { echo 'false'; } ?>,
<?php if($data["tfes_interval"]): ?>
slideshow_interval: <?php echo $data['tfes_interval']; ?>,
<?php endif; ?>
<?php if($data["tfes_speed"]): ?>
speed: <?php echo $data['tfes_speed']; ?>,
<?php endif; ?>
<?php if($data["tfes_width"]): ?>
thumbMaxWidth: <?php echo $data['tfes_width']; ?>
<?php endif; ?>
});
}
var retina = window.devicePixelRatio > 1 ? true : false;
<?php if($data['logo_retina'] && $data['retina_logo_width'] && $data['retina_logo_height']): ?>
if(retina) {
jQuery('#header .logo img').attr('src', '<?php echo $data["logo_retina"]; ?>');
jQuery('#header .logo img').attr('width', '<?php echo $data["retina_logo_width"]; ?>');
jQuery('#header .logo img').attr('height', '<?php echo $data["retina_logo_height"]; ?>');
}
<?php endif; ?>
<?php if($data['custom_icon_image_retina']): ?>
if(retina) {
jQuery('.social-networks li.custom').each(function() {
jQuery(this).find('img').attr('src', '<?php echo $data["custom_icon_image_retina"]; ?>');
jQuery(this).find('img').attr('width', '15px');
jQuery(this).find('img').attr('height', '15px');
})
}
<?php endif; ?>
/* wpml flag in center */
var wpml_flag = jQuery('ul#nav > li > a > .iclflag');
var wpml_h = wpml_flag.height();
wpml_flag.css('margin-top', +wpml_h / - 2 + "px");
var wpml_flag = jQuery('.top-menu > ul > li > a > .iclflag');
var wpml_h = wpml_flag.height();
wpml_flag.css('margin-top', +wpml_h / - 2 + "px");
<?php if($data['blog_pagination_type'] == 'Infinite Scroll' || is_page_template('demo-gridblog.php') || is_page_template('demo-timelineblog.php')): ?>
jQuery('#posts-container').infinitescroll({
navSelector : "div.pagination",
// selector for the paged navigation (it will be hidden)
nextSelector : "a.pagination-next",
// selector for the NEXT link (to page 2)
itemSelector : "div.post",
// selector for all items you'll retrieve
errorCallback: function() {
jQuery('#posts-container').isotope('reLayout');
}
}, function(posts) {
if(jQuery().isotope) {
jQuery(posts).css('position', 'relative').css('top', 'auto').css('left', 'auto');
jQuery('#posts-container').isotope('appended', jQuery(posts));
var gridwidth = (jQuery('.grid-layout').width() / 2) - 22;
jQuery('.grid-layout .post').css('width', gridwidth);
var gridwidth = (jQuery('.grid-full-layout').width() / 3) - 30;
jQuery('.grid-full-layout .post').css('width', gridwidth);
jQuery('#posts-container').isotope('reLayout');
}
jQuery('.flexslider').flexslider({
slideshow: <?php if($data["slideshow_autoplay"]) { echo 'true'; } else { echo 'false'; } ?>,
video: true,
pauseOnHover: false,
useCSS: false,
start: function(slider) {
if (typeof(slider.slides) !== 'undefined' && slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '-30px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').hide();
<?php endif; ?>
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
} else {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '0');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').show();
<?php endif; ?>
}
},
before: function(slider) {
if (slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
$f(slider.slides.eq(slider.currentSlide).find('iframe').attr('id') ).api('pause');
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
/* ------------------ YOUTUBE FOR AUTOSLIDER ------------------ */
playVideoAndPauseOthers(slider);
}
},
after: function(slider) {
if (slider.slides.eq(slider.currentSlide).find('iframe').length !== 0) {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '-30px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').hide();
<?php endif; ?>
YT_ready(function() {
new YT.Player(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), {
events: {
'onStateChange': onPlayerStateChange(slider.slides.eq(slider.currentSlide).find('iframe').attr('id'), slider)
}
});
});
} else {
<?php if($data['pagination_video_slide']): ?>
jQuery(slider).find('.flex-control-nav').css('bottom', '0px');
<?php else: ?>
jQuery(slider).find('.flex-control-nav').show();
<?php endif; ?>
}
}
});
jQuery("a[rel^='prettyPhoto']").prettyPhoto(ppArgs);
jQuery(posts).each(function() {
jQuery(this).find('.full-video, .video-shortcode, .wooslider .slide-content').fitVids();
});
if(jQuery().isotope) {
jQuery('#posts-container').isotope('reLayout');
}
});
<?php endif; ?>
});
</script>
<style type="text/css">
<?php if($data['primary_color']): ?>
a:hover,
#nav ul .current_page_item a, #nav ul .current-menu-item a, #nav ul > .current-menu-parent a,
.footer-area ul li a:hover,
.side-nav li.current_page_item a,
.portfolio-tabs li.active a, .faq-tabs li.active a,
.project-content .project-info .project-info-box a:hover,
.about-author .title a,
span.dropcap,.footer-area a:hover,.copyright a:hover,
#sidebar .widget_categories li a:hover,
#main .post h2 a:hover,
#sidebar .widget li a:hover,
#nav ul a:hover,
.date-and-formats .format-box i,
h5.toggle:hover a,
.tooltip-shortcode,.content-box-percentage,
.more a:hover:after,.read-more:hover:after,.pagination-prev:hover:before,.pagination-next:hover:after,
.single-navigation a[rel=prev]:hover:before,.single-navigation a[rel=next]:hover:after,
#sidebar .widget_nav_menu li a:hover:before,#sidebar .widget_categories li a:hover:before,
#sidebar .widget .recentcomments:hover:before,#sidebar .widget_recent_entries li a:hover:before,
#sidebar .widget_archive li a:hover:before,#sidebar .widget_pages li a:hover:before,
#sidebar .widget_links li a:hover:before,.side-nav .arrow:hover:after{
color:<?php echo $data['primary_color']; ?> !important;
}
#nav ul .current_page_item a, #nav ul .current-menu-item a, #nav ul > .current-menu-parent a,
#nav ul ul,#nav li.current-menu-ancestor a,
.reading-box,
.portfolio-tabs li.active a, .faq-tabs li.active a,
.tab-holder .tabs li.active a,
.post-content blockquote,
.progress-bar-content,
.pagination .current,
.pagination a.inactive:hover,
#nav ul a:hover{
border-color:<?php echo $data['primary_color']; ?> !important;
}
.side-nav li.current_page_item a{
border-right-color:<?php echo $data['primary_color']; ?> !important;
}
.header-v2 .header-social, .header-v3 .header-social, .header-v4 .header-social,.header-v5 .header-social,.header-v2{
border-top-color:<?php echo $data['primary_color']; ?> !important;
}
h5.toggle.active span.arrow,
.post-content ul.circle-yes li:before,
.progress-bar-content,
.pagination .current,
.header-v3 .header-social,.header-v4 .header-social,.header-v5 .header-social,
.date-and-formats .date-box,.table-2 table thead{
background-color:<?php echo $data['primary_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['header_bg_color']): ?>
#header,#small-nav{
background-color:<?php echo $data['header_bg_color']; ?> !important;
}
#nav ul a{
border-color:<?php echo $data['header_bg_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['content_bg_color']): ?>
#main,#wrapper{
background-color:<?php echo $data['content_bg_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['footer_bg_color']): ?>
.footer-area{
background-color:<?php echo $data['footer_bg_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['footer_border_color']): ?>
.footer-area{
border-color:<?php echo $data['footer_border_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['copyright_bg_color']): ?>
#footer{
background-color:<?php echo $data['copyright_bg_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['copyright_border_color']): ?>
#footer{
border-color:<?php echo $data['copyright_border_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['pricing_box_color']): ?>
.sep-boxed-pricing ul li.title-row{
background-color:<?php echo $data['pricing_box_color']; ?> !important;
border-color:<?php echo $data['pricing_box_color']; ?> !important;
}
.pricing-row .exact_price, .pricing-row sup{
color:<?php echo $data['pricing_box_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['image_gradient_top_color'] && $data['image_gradient_bottom_color']): ?>
<?php
$imgr_gtop = avada_hex2rgb($data['image_gradient_top_color']);
$imgr_gbot = avada_hex2rgb($data['image_gradient_bottom_color']);
if($data['image_rollover_opacity']) {
$opacity = $data['image_rollover_opacity'];
} else{
$opacity = '1';
}
$imgr_gtop_string = 'rgba('.$imgr_gtop[0].','.$imgr_gtop[1].','.$imgr_gtop[2].','.$opacity.')';
$imgr_gbot_string = 'rgba('.$imgr_gbot[0].','.$imgr_gbot[1].','.$imgr_gbot[2].','.$opacity.')';
?>
.image .image-extras{
background-image: linear-gradient(top, <?php echo $imgr_gtop_string; ?> 0%, <?php echo $imgr_gbot_string; ?> 100%);
background-image: -o-linear-gradient(top, <?php echo $imgr_gtop_string; ?> 0%, <?php echo $imgr_gbot_string; ?> 100%);
background-image: -moz-linear-gradient(top, <?php echo $imgr_gtop_string; ?> 0%, <?php echo $imgr_gbot_string; ?> 100%);
background-image: -webkit-linear-gradient(top, <?php echo $imgr_gtop_string; ?> 0%, <?php echo $imgr_gbot_string; ?> 100%);
background-image: -ms-linear-gradient(top, <?php echo $imgr_gtop_string; ?> 0%, <?php echo $imgr_gbot_string; ?> 100%);
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, <?php echo $imgr_gtop_string; ?>),
color-stop(1, <?php echo $imgr_gbot_string; ?>)
);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $data['image_gradient_top_color']; ?>', endColorstr='<?php echo $data['image_gradient_bottom_color']; ?>');
}
.no-cssgradients .image .image-extras{
background:<?php echo $data['image_gradient_top_color']; ?>;
}
<?php endif; ?>
<?php if($data['button_gradient_top_color'] && $data['button_gradient_bottom_color'] && $data['button_gradient_text_color']): ?>
#main .reading-box .button,
#main .continue.button,
#main .portfolio-one .button,
#main .comment-submit,
.button.default{
color: <?php echo $data['button_gradient_text_color']; ?> !important;
background-image: linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
background-image: -o-linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
background-image: -moz-linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
background-image: -webkit-linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
background-image: -ms-linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, <?php echo $data['button_gradient_top_color']; ?>),
color-stop(1, <?php echo $data['button_gradient_bottom_color']; ?>)
);
border:1px solid <?php echo $data['button_gradient_bottom_color']; ?>;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $data['button_gradient_top_color']; ?>', endColorstr='<?php echo $data['button_gradient_bottom_color']; ?>');
}
.no-cssgradients #main .reading-box .button,
.no-cssgradients #main .continue.button,
.no-cssgradients #main .portfolio-one .button,
.no-cssgradients #main .comment-submit,
.no-cssgradients .button.default{
background:<?php echo $data['button_gradient_top_color']; ?>;
}
#main .reading-box .button:hover,
#main .continue.button:hover,
#main .portfolio-one .button:hover,
#main .comment-submit:hover,
.button.default:hover{
color: <?php echo $data['button_gradient_text_color']; ?> !important;
background-image: linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
background-image: -o-linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
background-image: -moz-linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
background-image: -webkit-linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
background-image: -ms-linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, <?php echo $data['button_gradient_bottom_color']; ?>),
color-stop(1, <?php echo $data['button_gradient_top_color']; ?>)
);
border:1px solid <?php echo $data['button_gradient_bottom_color']; ?>;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $data['button_gradient_bottom_color']; ?>', endColorstr='<?php echo $data['button_gradient_top_color']; ?>');
}
.no-cssgradients #main .reading-box .button:hover,
.no-cssgradients #main .continue.button:hover,
.no-cssgradients #main .portfolio-one .button:hover,
.no-cssgradients #main .comment-submit:hover,
.no-cssgradients .button.default{
background:<?php echo $data['button_gradient_bottom_color']; ?>;
}
<?php endif; ?>
<?php
if((get_option('show_on_front') && get_option('page_for_posts') && is_home()) ||
(get_option('page_for_posts') && is_archive() && !is_post_type_archive())) {
$c_pageID = get_option('page_for_posts');
} else {
$c_pageID = $post->ID;
}
?>
<?php if($data['layout'] == 'Boxed'): ?>
body{
<?php if(get_post_meta($c_pageID, 'pyre_page_bg_color', true)): ?>
background-color:<?php echo get_post_meta($c_pageID, 'pyre_page_bg_color', true); ?>;
<?php else: ?>
background-color:<?php echo $data['bg_color']; ?>;
<?php endif; ?>
<?php if(get_post_meta($c_pageID, 'pyre_page_bg', true)): ?>
background-image:url(<?php echo get_post_meta($c_pageID, 'pyre_page_bg', true); ?>);
background-repeat:<?php echo get_post_meta($c_pageID, 'pyre_page_bg_repeat', true); ?>;
<?php if(get_post_meta($c_pageID, 'pyre_page_bg_full', true) == 'yes'): ?>
background-attachment:fixed;
background-position:center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
<?php endif; ?>
<?php elseif($data['bg_image']): ?>
background-image:url(<?php echo $data['bg_image']; ?>);
background-repeat:<?php echo $data['bg_repeat']; ?>;
<?php if($data['bg_full']): ?>
background-attachment:fixed;
background-position:center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
<?php endif; ?>
<?php endif; ?>
<?php if($data['bg_pattern_option'] && $data['bg_pattern'] && !(get_post_meta($c_pageID, 'pyre_page_bg_color', true) || get_post_meta($c_pageID, 'pyre_page_bg', true))): ?>
background-image:url("<?php echo get_bloginfo('template_directory') . '/images/patterns/' . $data['bg_pattern'] . '.png'; ?>");
background-repeat:repeat;
<?php endif; ?>
}
#wrapper{
background:#fff;
width:1000px;
margin:0 auto;
}
@media only screen and (min-width: 801px) and (max-width: 1014px){
#wrapper{
width:auto;
}
}
@media only screen and (min-device-width: 801px) and (max-device-width: 1014px){
#wrapper{
width:auto;
}
}
<?php endif; ?>
<?php if(get_post_meta($c_pageID, 'pyre_page_title_bar_bg', true)): ?>
.page-title-container{
background-image:url(<?php echo get_post_meta($c_pageID, 'pyre_page_title_bar_bg', true); ?>) !important;
}
<?php elseif($data['page_title_bg']): ?>
.page-title-container{
background-image:url(<?php echo $data['page_title_bg']; ?>) !important;
}
<?php endif; ?>
<?php if(get_post_meta($c_pageID, 'pyre_page_title_bar_bg_color', true)): ?>
.page-title-container{
background-color:<?php echo get_post_meta($c_pageID, 'pyre_page_title_bar_bg_color', true); ?>;
}
<?php elseif($data['page_title_bg_color']): ?>
.page-title-container{
background-color:<?php echo $data['page_title_bg_color']; ?>;
}
<?php endif; ?>
<?php if($data['page_title_border_color']): ?>
.page-title-container{border-color:<?php echo $data['page_title_border_color']; ?> !important;}
<?php endif; ?>
#header{
<?php if($data['header_bg_image']): ?>
background-image:url(<?php echo $data['header_bg_image']; ?>);
background-repeat:<?php echo $data['header_bg_repeat']; ?>;
<?php if($data['header_bg_full']): ?>
background-attachment:fixed;
background-position:center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
<?php endif; ?>
<?php endif; ?>
}
#main{
<?php if($data['content_bg_image']): ?>
background-image:url(<?php echo $data['content_bg_image']; ?>);
background-repeat:<?php echo $data['content_bg_repeat']; ?>;
<?php if($data['content_bg_full']): ?>
background-attachment:fixed;
background-position:center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
<?php endif; ?>
<?php endif; ?>
}
<?php if($data['icon_circle_color']): ?>
.fontawesome-icon.circle-yes{
background-color:<?php echo $data['icon_circle_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['icon_border_color']): ?>
.fontawesome-icon.circle-yes{
border-color:<?php echo $data['icon_border_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['icon_color']): ?>
.fontawesome-icon{
color:<?php echo $data['icon_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['title_border_color']): ?>
.title-sep{
border-color:<?php echo $data['title_border_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['testimonial_bg_color']): ?>
.review blockquote q,.post-content blockquote{
background-color:<?php echo $data['testimonial_bg_color']; ?> !important;
}
.review blockquote div:after{
border-top-color:<?php echo $data['testimonial_bg_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['testimonial_text_color']): ?>
.review blockquote q,.post-content blockquote{
color:<?php echo $data['testimonial_text_color']; ?> !important;
}
<?php endif; ?>
<?php
if(
$data['custom_font_woff'] && $data['custom_font_ttf'] &&
$data['custom_font_svg'] && $data['custom_font_eot']
):
?>
@font-face {
font-family: 'MuseoSlab500Regular';
src: url('<?php echo $data['custom_font_eot']; ?>');
src:
url('<?php echo $data['custom_font_eot']; ?>?#iefix') format('eot'),
url('<?php echo $data['custom_font_woff']; ?>') format('woff'),
url('<?php echo $data['custom_font_ttf']; ?>') format('truetype'),
url('<?php echo $data['custom_font_svg']; ?>#MuseoSlab500Regular') format('svg');
font-weight: 400;
font-style: normal;
}
<?php $custom_font = true; endif; ?>
<?php
if($data['google_body'] != 'Select Font') {
$font = '"'.$data['google_body'].'", Arial, Helvetica, sans-serif !important';
} elseif($data['standard_body'] != 'Select Font') {
$font = $data['standard_body'].' !important';
}
?>
body,#nav ul li ul li a,
.more,
.avada-container h3,
.meta .date,
.review blockquote q,
.review blockquote div strong,
.image .image-extras .image-extras-content h4,
.project-content .project-info h4,
.post-content blockquote,
.button.large,
.button.small,
.ei-title h3{
font-family:<?php echo $font; ?>;
}
.avada-container h3,
.review blockquote div strong,
.footer-area h3,
.button.large,
.button.small{
font-weight:bold;
}
.meta .date,
.review blockquote q,
.post-content blockquote{
font-style:italic;
}
<?php
if(!$custom_font && $data['google_nav'] != 'Select Font') {
$nav_font = '"'.$data['google_nav'].'", Arial, Helvetica, sans-serif !important';
} elseif(!$custom_font && $data['standard_nav'] != 'Select Font') {
$nav_font = $data['standard_nav'].' !important';
}
if(isset($nav_font)):
?>
#nav,
.side-nav li a{
font-family:<?php echo $nav_font; ?>;
}
<?php endif; ?>
<?php
if(!$custom_font && $data['google_headings'] != 'Select Font') {
$headings_font = '"'.$data['google_headings'].'", Arial, Helvetica, sans-serif !important';
} elseif(!$custom_font && $data['standard_headings'] != 'Select Font') {
$headings_font = $data['standard_headings'].' !important';
}
if(isset($headings_font)):
?>
#main .reading-box h2,
#main h2,
.page-title h1,
.image .image-extras .image-extras-content h3,
#main .post h2,
#sidebar .widget h3,
.tab-holder .tabs li a,
.share-box h4,
.project-content h3,
h5.toggle a,
.full-boxed-pricing ul li.title-row,
.full-boxed-pricing ul li.pricing-row,
.sep-boxed-pricing ul li.title-row,
.sep-boxed-pricing ul li.pricing-row,
.person-author-wrapper,
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6,
.ei-title h2, #header .tagline,
table th{
font-family:<?php echo $headings_font; ?>;
}
<?php endif; ?>
<?php
if($data['google_footer_headings'] != 'Select Font') {
$font = '"'.$data['google_footer_headings'].'", Arial, Helvetica, sans-serif !important';
} elseif($data['standard_footer_headings'] != 'Select Font') {
$font = $data['standard_footer_headings'].' !important';
}
?>
.footer-area h3{
font-family:<?php echo $font; ?>;
}
<?php if($data['body_font_size']): ?>
body,#sidebar .slide-excerpt h2, .footer-area .slide-excerpt h2{
font-size:<?php echo $data['body_font_size']; ?>px;
<?php
$line_height = round((1.5 * $data['body_font_size']));
?>
line-height:<?php echo $line_height; ?>px;
}
.project-content .project-info h4{
font-size:<?php echo $data['body_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['body_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
<?php endif; ?>
<?php if($data['body_font_lh']): ?>
body,#sidebar .slide-excerpt h2, .footer-area .slide-excerpt h2{
line-height:<?php echo $data['body_font_lh']; ?>px !important;
}
.project-content .project-info h4{
line-height:<?php echo $data['body_font_lh']; ?>px !important;
}
<?php endif; ?>
<?php if($data['nav_font_size']): ?>
#nav{font-size:<?php echo $data['nav_font_size']; ?>px !important;}
<?php endif; ?>
<?php if($data['snav_font_size']): ?>
.header-social *{font-size:<?php echo $data['snav_font_size']; ?>px !important;}
<?php endif; ?>
<?php if($data['breadcrumbs_font_size']): ?>
.page-title ul li,page-title ul li a{font-size:<?php echo $data['breadcrumbs_font_size']; ?>px !important;}
<?php endif; ?>
<?php if($data['side_nav_font_size']): ?>
.side-nav li a{font-size:<?php echo $data['side_nav_font_size']; ?>px !important;}
<?php endif; ?>
<?php if($data['sidew_font_size']): ?>
#sidebar .widget h3{font-size:<?php echo $data['sidew_font_size']; ?>px !important;}
<?php endif; ?>
<?php if($data['footw_font_size']): ?>
.footer-area h3{font-size:<?php echo $data['footw_font_size']; ?>px !important;}
<?php endif; ?>
<?php if($data['copyright_font_size']): ?>
.copyright{font-size:<?php echo $data['copyright_font_size']; ?>px !important;}
<?php endif; ?>
<?php if($data['responsive']): ?>
#header .avada-row, #main .avada-row, .footer-area .avada-row, #footer .avada-row{ max-width:940px; }
<?php endif; ?>
<?php if($data['h1_font_size']): ?>
.post-content h1{
font-size:<?php echo $data['h1_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['h1_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
<?php endif; ?>
<?php if($data['h1_font_lh']): ?>
.post-content h1{
line-height:<?php echo $data['h1_font_lh']; ?>px !important;
}
<?php endif; ?>
<?php if($data['h2_font_size']): ?>
.post-content h2,.title h2,#main .post-content .title h2,.page-title h1,#main .post h2 a{
font-size:<?php echo $data['h2_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['h2_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
<?php endif; ?>
<?php if($data['h2_font_lh']): ?>
.post-content h2,.title h2,#main .post-content .title h2,.page-title h1,#main .post h2 a{
line-height:<?php echo $data['h2_font_lh']; ?>px !important;
}
<?php endif; ?>
<?php if($data['h3_font_size']): ?>
.post-content h3,.project-content h3,#header .tagline{
font-size:<?php echo $data['h3_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['h3_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
<?php endif; ?>
<?php if($data['h3_font_lh']): ?>
.post-content h3,.project-content h3,#header .tagline{
line-height:<?php echo $data['h3_font_lh']; ?>px !important;
}
<?php endif; ?>
<?php if($data['h4_font_size']): ?>
.post-content h4{
font-size:<?php echo $data['h4_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['h4_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
h5.toggle a,.tab-holder .tabs li a,.share-box h4,.person-author-wrapper{
font-size:<?php echo $data['h4_font_size']; ?>px !important;
}
<?php endif; ?>
<?php if($data['h4_font_lh']): ?>
.post-content h4{
line-height:<?php echo $data['h4_font_lh']; ?>px !important;
}
<?php endif; ?>
<?php if($data['h5_font_size']): ?>
.post-content h5{
font-size:<?php echo $data['h5_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['h5_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
<?php endif; ?>
<?php if($data['h5_font_lh']): ?>
.post-content h5{
line-height:<?php echo $data['h5_font_lh']; ?>px !important;
}
<?php endif; ?>
<?php if($data['h6_font_size']): ?>
.post-content h6{
font-size:<?php echo $data['h6_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['h6_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
<?php endif; ?>
<?php if($data['h6_font_lh']): ?>
.post-content h6{
line-height:<?php echo $data['h6_font_lh']; ?>px !important;
}
<?php endif; ?>
<?php if($data['es_title_font_size']): ?>
.ei-title h2{
font-size:<?php echo $data['es_title_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['es_title_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
<?php endif; ?>
<?php if($data['es_caption_font_size']): ?>
.ei-title h3{
font-size:<?php echo $data['es_caption_font_size']; ?>px !important;
<?php
$line_height = round((1.5 * $data['es_caption_font_size']));
?>
line-height:<?php echo $line_height; ?>px !important;
}
<?php endif; ?>
<?php if($data['body_text_color']): ?>
body,.post .post-content,.post-content blockquote,.tab-holder .news-list li .post-holder .meta,#sidebar #jtwt,.meta,.review blockquote div,.search input,.project-content .project-info h4,.title-row{color:<?php echo $data['body_text_color']; ?> !important;}
<?php endif; ?>
<?php if($data['h1_color']): ?>
.post-content h1,.title h1{
color:<?php echo $data['h1_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['h2_color']): ?>
.post-content h2,.title h2{
color:<?php echo $data['h2_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['h3_color']): ?>
.post-content h3,#sidebar .widget h3,.project-content h3,.title h3,#header .tagline,.person-author-wrapper span{
color:<?php echo $data['h3_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['h4_color']): ?>
.post-content h4,.project-content .project-info h4,.share-box h4,.title h4{
color:<?php echo $data['h4_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['h5_color']): ?>
.post-content h5,h5.toggle a,.title h5{
color:<?php echo $data['h5_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['h6_color']): ?>
.post-content h6,.title h6{
color:<?php echo $data['h6_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['page_title_color']): ?>
.page-title h1{
color:<?php echo $data['page_title_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['headings_color']): ?>
/*.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6,
#sidebar .widget h3,h5.toggle a,
.page-title h1,.full-boxed-pricing ul li.title-row,
.project-content .project-info h4,.project-content h3,.share-box h4,.title h2,.person-author-wrapper,#sidebar .tab-holder .tabs li a,#header .tagline,
.table-1 table th{
color:<?php echo $data['headings_color']; ?> !important;
}*/
<?php endif; ?>
<?php if($data['link_color']): ?>
body a,.project-content .project-info .project-info-box a,#sidebar .widget li a, #sidebar .widget .recentcomments, #sidebar .widget_categories li, #main .post h2 a{color:<?php echo $data['link_color']; ?> !important;}
<?php endif; ?>
<?php if($data['breadcrumbs_text_color']): ?>
.page-title ul li,.page-title ul li a{color:<?php echo $data['breadcrumbs_text_color']; ?> !important;}
<?php endif; ?>
<?php if($data['footer_headings_color']): ?>
.footer-area h3{color:<?php echo $data['footer_headings_color']; ?> !important;}
<?php endif; ?>
<?php if($data['footer_text_color']): ?>
.footer-area,.footer-area #jtwt,.copyright{color:<?php echo $data['footer_text_color']; ?> !important;}
<?php endif; ?>
<?php if($data['footer_link_color']): ?>
.footer-area a,.copyright a{color:<?php echo $data['footer_link_color']; ?> !important;}
<?php endif; ?>
<?php if($data['menu_first_color']): ?>
#nav ul a,.side-nav li a{color:<?php echo $data['menu_first_color']; ?> !important;}
<?php endif; ?>
<?php if($data['menu_sub_bg_color']): ?>
#nav ul ul{background-color:<?php echo $data['menu_sub_bg_color']; ?>;}
<?php endif; ?>
<?php if($data['menu_sub_color']): ?>
#wrapper #nav ul li ul li a,.side-nav li li a,.side-nav li.current_page_item li a{color:<?php echo $data['menu_sub_color']; ?> !important;}
<?php endif; ?>
<?php if($data['es_title_color']): ?>
.ei-title h2{color:<?php echo $data['es_title_color']; ?> !important;}
<?php endif; ?>
<?php if($data['es_caption_color']): ?>
.ei-title h3{color:<?php echo $data['es_caption_color']; ?> !important;}
<?php endif; ?>
<?php if($data['snav_color']): ?>
#wrapper .header-social *{color:<?php echo $data['snav_color']; ?> !important;}
<?php endif; ?>
<?php if($data['sep_color']): ?>
.sep-single{background-color:<?php echo $data['sep_color']; ?> !important;}
.sep-double,.sep-dashed,.sep-dotted{border-color:<?php echo $data['sep_color']; ?> !important;}
.ls-avada, .avada-skin-rev,.clients-carousel .es-carousel li,h5.toggle a,.progress-bar,
#small-nav,.portfolio-tabs,.faq-tabs,.single-navigation,.project-content .project-info .project-info-box,
.post .meta-info,.grid-layout .post,.grid-layout .post .content-sep,
.grid-layout .post .flexslider,.timeline-layout .post,.timeline-layout .post .content-sep,
.timeline-layout .post .flexslider,h3.timeline-title,.timeline-arrow,
.counter-box-wrapper,.table-2 table thead,.table-2 tr td,
#sidebar .widget li a,#sidebar .widget .recentcomments,#sidebar .widget_categories li,
.tab-holder,.commentlist .the-comment,
.side-nav,.side-nav li a,h5.toggle.active + .toggle-content,
.side-nav li.current_page_item li a,.tabs-vertical .tabset,
.tabs-vertical .tabs-container .tab_content,.page-title-container,.pagination a.inactive{border-color:<?php echo $data['sep_color']; ?>;}
.side-nav li a{border-color:<?php echo $data['sep_color']; ?> !important;}
<?php endif; ?>
<?php if($data['form_bg_color']): ?>
input#s,#comment-input input,#comment-textarea textarea{background-color:<?php echo $data['form_bg_color']; ?> !important;}
<?php endif; ?>
<?php if($data['form_text_color']): ?>
input#s,input#s,.placeholder,#comment-input input,#comment-textarea textarea,#comment-input .placeholder,#comment-textarea .placeholder{color:<?php echo $data['form_text_color']; ?> !important;}
input#s::webkit-input-placeholder,#comment-input input::-webkit-input-placeholder,#comment-textarea textarea::-webkit-input-placeholder{color:<?php echo $data['form_text_color']; ?> !important;}
input#s:moz-placeholder,#comment-input input:-moz-placeholder,#comment-textarea textarea:-moz-placeholder{color:<?php echo $data['form_text_color']; ?> !important;}
input#s:-ms-input-placeholder,#comment-input input:-ms-input-placeholder,#comment-textarea textarea:-moz-placeholder{color:<?php echo $data['form_text_color']; ?> !important;}
<?php endif; ?>
<?php if($data['form_border_color']): ?>
input#s,#comment-input input,#comment-textarea textarea{border-color:<?php echo $data['form_border_color']; ?> !important;}
<?php endif; ?>
<?php if($data['menu_sub_sep_color']): ?>
#wrapper #nav ul li ul li a{border-bottom:1px solid <?php echo $data['menu_sub_sep_color']; ?> !important;}
<?php endif; ?>
<?php if($data['menu_bg_hover_color']): ?>
#wrapper #nav ul li ul li a:hover, #wrapper #nav ul li ul li.current-menu-item a{background-color:<?php echo $data['menu_bg_hover_color']; ?> !important;}
<?php endif; ?>
<?php if($data['tagline_font_color']): ?>
#header .tagline{
color:<?php echo $data['tagline_font_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['tagline_font_size']): ?>
#header .tagline{
font-size:<?php echo $data['tagline_font_size']; ?>px !important;
line-height:30px !important;
}
<?php endif; ?>
<?php if($data['page_title_font_size']): ?>
.page-title h1{
font-size:<?php echo $data['page_title_font_size']; ?>px !important;
line-height:normal !important;
}
<?php endif; ?>
<?php if($data['header_border_color']): ?>
.header-social,#header{
border-bottom-color:<?php echo $data['header_border_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['dropdown_menu_width']): ?>
#nav ul ul{
width:<?php echo $data['dropdown_menu_width']; ?> !important;
}
<?php endif; ?>
<?php if($data['page_title_height']): ?>
.page-title-container{
height:<?php echo $data['page_title_height']; ?> !important;
}
<?php endif; ?>
<?php if($data['sidebar_bg_color']): ?>
#main #sidebar{
background-color:<?php echo $data['sidebar_bg_color']; ?>;
}
<?php endif; ?>
<?php if($data['content_width']): ?>
#main #content{
width:<?php echo $data['content_width']; ?>%;
}
<?php endif; ?>
<?php if($data['sidebar_width']): ?>
#main #sidebar{
width:<?php echo $data['sidebar_width']; ?>%;
}
<?php endif; ?>
<?php if($data['sidebar_padding']): ?>
#main #sidebar{
padding-left:<?php echo $data['sidebar_padding']; ?>%;
padding-right:<?php echo $data['sidebar_padding']; ?>%;
}
<?php endif; ?>
<?php if($data['header_top_bg_color']): ?>
#wrapper .header-social{
background-color:<?php echo $data['header_top_bg_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['header_top_first_border_color']): ?>
#wrapper .header-social .menu > li{
border-color:<?php echo $data['header_top_first_border_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['header_top_sub_bg_color']): ?>
#wrapper .header-social .menu .sub-menu{
background-color:<?php echo $data['header_top_sub_bg_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['header_top_menu_sub_color']): ?>
#wrapper .header-social .menu .sub-menu li, #wrapper .header-social .menu .sub-menu li a{
color:<?php echo $data['header_top_menu_sub_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['header_top_menu_bg_hover_color']): ?>
#wrapper .header-social .menu .sub-menu li a:hover{
background-color:<?php echo $data['header_top_menu_bg_hover_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['header_top_menu_sub_hover_color']): ?>
#wrapper .header-social .menu .sub-menu li a:hover{
color:<?php echo $data['header_top_menu_sub_hover_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['header_top_menu_sub_sep_color']): ?>
#wrapper .header-social .menu .sub-menu,#wrapper .header-social .menu .sub-menu li{
border-color:<?php echo $data['header_top_menu_sub_sep_color']; ?> !important;
}
<?php endif; ?>
<?php if($data['accordian_inactive_color']): ?>
h5.toggle span.arrow{background-color:<?php echo $data['accordian_inactive_color']; ?>;}
<?php endif; ?>
<?php if($data['counter_filled_color']): ?>
.progress-bar-content{background-color:<?php echo $data['counter_filled_color']; ?> !important;border-color:<?php echo $data['counter_filled_color']; ?> !important;}
.content-box-percentage{color:<?php echo $data['counter_filled_color']; ?> !important;}
<?php endif; ?>
<?php if($data['counter_unfilled_color']): ?>
.progress-bar{background-color:<?php echo $data['counter_unfilled_color']; ?>;border-color:<?php echo $data['counter_unfilled_color']; ?>;}
<?php endif; ?>
<?php if($data['arrow_color']): ?>
.more a:after,.read-more:after,#sidebar .widget_nav_menu li a:before,#sidebar .widget_categories li a:before,
#sidebar .widget .recentcomments:before,#sidebar .widget_recent_entries li a:before,
#sidebar .widget_archive li a:before,#sidebar .widget_pages li a:before,
#sidebar .widget_links li a:before,.side-nav .arrow:after,.single-navigation a[rel=prev]:before,
.single-navigation a[rel=next]:after,.pagination-prev:before,
.pagination-next:after{color:<?php echo $data['arrow_color']; ?> !important;}
<?php endif; ?>
<?php if($data['dates_box_color']): ?>
.date-and-formats .format-box{background-color:<?php echo $data['dates_box_color']; ?>;}
<?php endif; ?>
<?php if($data['carousel_nav_color']): ?>
.es-nav-prev,.es-nav-next{background-color:<?php echo $data['carousel_nav_color']; ?>;}
<?php endif; ?>
<?php if($data['carousel_hover_color']): ?>
.es-nav-prev:hover,.es-nav-next:hover{background-color:<?php echo $data['carousel_hover_color']; ?>;}
<?php endif; ?>
<?php if($data['content_box_bg_color']): ?>
.content-boxes .col{background-color:<?php echo $data['content_box_bg_color']; ?>;}
<?php endif; ?>
<?php if($data['tabs_bg_color'] && $data['tabs_inactive_color']): ?>
#sidebar .tab-holder,#sidebar .tab-holder .news-list li{border-color:<?php echo $data['tabs_inactive_color']; ?> !important;}
.pyre_tabs .tabs-container{background-color:<?php echo $data['tabs_bg_color']; ?> !important;}
body.dark #sidebar .tab-hold .tabs li{border-right:1px solid <?php echo $data['tabs_bg_color']; ?> !important;}
body.dark #sidebar .tab-hold .tabs li a{background:<?php echo $data['tabs_inactive_color']; ?> !important;border-bottom:0 !important;color:<?php echo $data[body_text_color]; ?> !important;}
body.dark #sidebar .tab-hold .tabs li a:hover{background:<?php echo $data['tabs_bg_color']; ?> !important;border-bottom:0 !important;}
body #sidebar .tab-hold .tabs li.active a{background:<?php echo $data['tabs_bg_color']; ?> !important;border-bottom:0 !important;}
body #sidebar .tab-hold .tabs li.active a{border-top-color:<?php echo $data[primary_color]; ?>!important;}
<?php endif; ?>
<?php if($data['social_bg_color']): ?>
.share-box{background-color:<?php echo $data['social_bg_color']; ?>;}
<?php endif; ?>
<?php if($data['timeline_color']): ?>
.grid-layout .post .flexslider,.timeline-layout .post,.timeline-layout .post .content-sep,
.timeline-layout .post .flexslider,h3.timeline-title,.grid-layout .post,.grid-layout .post .content-sep{border-color:<?php echo $data['timeline_color']; ?> !important;}
.align-left .timeline-arrow:before,.align-left .timeline-arrow:after{border-left-color:<?php echo $data['timeline_color']; ?> !important;}
.align-right .timeline-arrow:before,.align-right .timeline-arrow:after{border-right-color:<?php echo $data['timeline_color']; ?> !important;}
.timeline-circle,.timeline-title{background-color:<?php echo $data['timeline_color']; ?> !important;}
.timeline-icon{color:<?php echo $data['timeline_color']; ?>;}
<?php endif; ?>
<?php if($data['scheme_type'] == 'Dark'): $avada_color_scheme = 'dark'; ?>
.meta li{border-color:<?php echo $data['body_text_color']; ?>;}
.error-image{background-image:url(<?php echo get_template_directory_uri(); ?>/images/404_image_dark.png);}
.review blockquote div .company-name{background-image:url(<?php echo get_template_directory_uri(); ?>/images/ico-user_dark.png);}
.review.male blockquote div .company-name{background-image:url(<?php echo get_template_directory_uri(); ?>/images/ico-user_dark.png);}
.review.female blockquote div .company-name{background-image:url(<?php echo get_template_directory_uri(); ?>/images/ico-user-girl_dark.png);}
.timeline-layout{background-image:url(<?php echo get_template_directory_uri(); ?>/images/timeline_line_dark.png);}
.side-nav li a{background-image:url(<?php echo get_template_directory_uri(); ?>/images/side_nav_bg_dark.png);}
@media only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 13/10), only screen and (min-resolution: 120dpi) {
.error-image{background-image:url(<?php echo get_template_directory_uri(); ?>/images/404_image_dark@2x.png) !important;}
.review blockquote div .company-name{background-image:url(<?php echo get_template_directory_uri(); ?>/images/ico-user_dark@2x.png) !important;}
.review.male blockquote div .company-name{background-image:url(<?php echo get_template_directory_uri(); ?>/images/ico-user_dark@2x.png) !important;}
.review.female blockquote div .company-name{background-image:url(<?php echo get_template_directory_uri(); ?>/images/ico-user-girl_dark@2x.png) !important;}
.side-nav li a{background-image:url(<?php echo get_template_directory_uri(); ?>/images/side_nav_bg_dark@2x.png) !important;}
}
<?php endif; ?>
<?php if(is_single() && get_post_meta($c_pageID, 'pyre_fimg_width', true)): ?>
<?php if(get_post_meta($c_pageID, 'pyre_fimg_width', true) != 'auto' && get_post_meta($c_pageID, 'pyre_width', true) != 'half'): ?>
#post-<?php echo $c_pageID; ?> .post-slideshow {width:<?php echo get_post_meta($c_pageID, 'pyre_fimg_width', true); ?> !important;}
<?php else: ?>
.post-slideshow .flex-control-nav{position:relative;text-align:left;margin-top:10px;}
<?php endif; ?>
#post-<?php echo $c_pageID; ?> .post-slideshow img{width:<?php echo get_post_meta($c_pageID, 'pyre_fimg_width', true); ?> !important;}
<?php endif; ?>
<?php if(is_single() && get_post_meta($c_pageID, 'pyre_fimg_height', true)): ?>
#post-<?php echo $c_pageID; ?> .post-slideshow, #post-<?php echo $c_pageID; ?> .post-slideshow img{height:<?php echo get_post_meta($c_pageID, 'pyre_fimg_height', true); ?> !important;}
<?php endif; ?>
<?php if(!$data['flexslider_circles']): ?>
.main-flex .flex-control-nav{display:none !important;}
<?php endif; ?>
<?php if(!$data['breadcrumb_mobile']): ?>
@media only screen and (max-width: 940px){
.breadcrumbs{display:none !important;}
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait){
.breadcrumbs{display:none !important;}
}
<?php endif; ?>
<?php if(!$data['image_rollover']): ?>
.image-extras{display:none !important;}
<?php endif; ?>
<?php if($data['nav_height']): ?>
#nav > li > a,#nav li.current-menu-ancestor a{height:<?php echo $data['nav_height']; ?>px;line-height:<?php echo $data['nav_height']; ?>px;}
#nav > li > a,#nav li.current-menu-ancestor a{height:<?php echo $data['nav_height']; ?>px;line-height:<?php echo $data['nav_height']; ?>px;}
#nav ul ul{top:<?php echo $data['nav_height']+3; ?>px;}
<?php if(is_page('header-4') || is_page('header-5')) { ?>
#nav > li > a,#nav li.current-menu-ancestor a{height:40px;line-height:40px;}
#nav > li > a,#nav li.current-menu-ancestor a{height:40px;line-height:40px;}
#nav ul ul{top:43px;}
<?php } ?>
<?php endif; ?>
<?php if(get_post_meta($c_pageID, 'pyre_page_title_bar_bg_retina', true)): ?>
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
.page-title-container {
background-image: url(<?php echo get_post_meta($c_pageID, 'pyre_page_title_bar_bg_retina', true); ?>) !important;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
}
}
<?php elseif($data['page_title_bg_retina']): ?>
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
.page-title-container {
background-image: url(<?php echo $data['page_title_bg_retina']; ?>) !important;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
}
}
<?php endif; ?>
<?php if($data['tfes_slider_width']): ?>
.ei-slider{width:<?php echo $data['tfes_slider_width']; ?> !important;}
<?php endif; ?>
<?php if($data['tfes_slider_height']): ?>
.ei-slider{height:<?php echo $data['tfes_slider_height']; ?> !important;}
<?php endif; ?>
<?php if($data['button_text_shadow']): ?>
.button{text-shadow:none !important;}
<?php endif; ?>
<?php if($data['footer_text_shadow']): ?>
.footer-area a,.copyright{text-shadow:none !important;}
<?php endif; ?>
<?php if($data['tagline_bg']): ?>
.reading-box{background-color:<?php echo $data['tagline_bg']; ?> !important;}
<?php endif; ?>
.isotope .isotope-item {
-webkit-transition-property: top, left, opacity;
-moz-transition-property: top, left, opacity;
-ms-transition-property: top, left, opacity;
-o-transition-property: top, left, opacity;
transition-property: top, left, opacity;
}
<?php echo $data['custom_css']; ?>
</style>
<style type="text/css" id="ss">
</style>
<link rel="stylesheet" id="style_selector_ss" href="#" />
<?php echo $data['google_analytics']; ?>
<?php echo $data['space_head']; ?>
</head>
<body <?php body_class($avada_color_scheme); ?>>
<div id="wrapper">
<?php
if($data['header_layout']) {
if(is_page('header-2')) {
get_template_part('framework/headers/header-v2');
} elseif(is_page('header-3')) {
get_template_part('framework/headers/header-v3');
} elseif(is_page('header-4')) {
get_template_part('framework/headers/header-v4');
} elseif(is_page('header-5')) {
get_template_part('framework/headers/header-v5');
} else {
get_template_part('framework/headers/header-'.$data['header_layout']);
}
} else {
if(is_page('header-2')) {
get_template_part('framework/headers/header-v2');
} elseif(is_page('header-3')) {
get_template_part('framework/headers/header-v3');
} elseif(is_page('header-4')) {
get_template_part('framework/headers/header-v4');
} elseif(is_page('header-5')) {
get_template_part('framework/headers/header-v5');
} else {
get_template_part('framework/headers/header-'.$data['header_layout']);
}
}
?>
<?php if(!is_search()): ?>
<div id="sliders-container">
<?php
// Layer Slider
$slider_page_id = $post->ID;
if(is_home() && !is_front_page()){
$slider_page_id = get_option('page_for_posts');
}
if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'layer' && (get_post_meta($slider_page_id, 'pyre_slider', true) || get_post_meta($slider_page_id, 'pyre_slider', true) != 0)): ?>
<?php
// Get slider
$ls_table_name = $wpdb->prefix . "layerslider";
$ls_id = get_post_meta($slider_page_id, 'pyre_slider', true);
$ls_slider = $wpdb->get_row("SELECT * FROM $ls_table_name WHERE id = ".(int)$ls_id." ORDER BY date_c DESC LIMIT 1" , ARRAY_A);
$ls_slider = json_decode($ls_slider['data'], true);
?>
<style type="text/css">
#layerslider-container{max-width:<?php echo $ls_slider['properties']['width'] ?>;}
</style>
<div id="layerslider-container">
<div id="layerslider-wrapper">
<?php if($ls_slider['properties']['skin'] == 'avada'): ?>
<div class="ls-shadow-top"></div>
<?php endif; ?>
<?php echo do_shortcode('[layerslider id="'.get_post_meta($slider_page_id, 'pyre_slider', true).'"]'); ?>
<?php if($ls_slider['properties']['skin'] == 'avada'): ?>
<div class="ls-shadow-bottom"></div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php
// Flex Slider
if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'flex' && (get_post_meta($slider_page_id, 'pyre_wooslider', true) || get_post_meta($slider_page_id, 'pyre_wooslider', true) != 0)) {
echo do_shortcode('[wooslider slide_page="'.get_post_meta($slider_page_id, 'pyre_wooslider', true).'" slider_type="slides" limit="'.$data['flexslider_number'].'"]');
}
?>
<?php
if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'rev' && get_post_meta($slider_page_id, 'pyre_revslider', true) && !$data['status_revslider']) {
putRevSlider(get_post_meta($slider_page_id, 'pyre_revslider', true));
}
?>
<?php
if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'flex2' && get_post_meta($slider_page_id, 'pyre_flexslider', true)) {
include_once(get_template_directory().'/flexslider.php');
}
?>
<?php
// ThemeFusion Elastic Slider
if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'elastic' && (get_post_meta($slider_page_id, 'pyre_elasticslider', true) || get_post_meta($slider_page_id, 'pyre_elasticslider', true) != 0)) {
include_once(get_template_directory().'/elastic-slider.php');
}
?>
</div>
<?php endif; ?>
<?php if(get_post_meta($slider_page_id, 'pyre_fallback', true)): ?>
<style type="text/css">
@media only screen and (max-width: 940px){
#sliders-container{display:none;}
#fallback-slide{display:block;}
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait){
#sliders-container{display:none;}
#fallback-slide{display:block;}
}
</style>
<div id="fallback-slide">
<img src="<?php echo get_post_meta($slider_page_id, 'pyre_fallback', true); ?>" alt="" />
</div>
<?php endif; ?>
<?php if($data['page_title_bar']): ?>
<?php if(((is_page() || is_single() || is_singular('avada_portfolio')) && get_post_meta($c_pageID, 'pyre_page_title', true) == 'yes')) : ?>
<div class="page-title-container">
<div class="page-title">
<div class="page-title-wrapper">
<?php if(get_post_meta($c_pageID, 'pyre_page_title_text', true) != 'no'): ?>
<h1><?php the_title(); ?></h1>
<?php endif; ?>
<?php if($data['breadcrumb']): ?>
<?php if($data['page_title_bar_bs'] == 'Breadcrumbs'): ?>
<?php themefusion_breadcrumb(); ?>
<?php else: ?>
<?php get_search_form(); ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if(is_home() && !is_front_page() && get_post_meta($slider_page_id, 'pyre_page_title', true) == 'yes'): ?>
<div class="page-title-container">
<div class="page-title">
<div class="page-title-wrapper">
<?php if(get_post_meta($c_pageID, 'pyre_page_title_text', true) != 'no'): ?>
<h1><?php echo $data['blog_title']; ?></h1>
<?php endif; ?>
<?php if($data['breadcrumb']): ?>
<?php if($data['page_title_bar_bs'] == 'Breadcrumbs'): ?>
<?php themefusion_breadcrumb(); ?>
<?php else: ?>
<?php get_search_form(); ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if(is_search()): ?>
<div class="page-title-container">
<div class="page-title">
<div class="page-title-wrapper">
<h1><?php echo __('Search results for:', 'Avada'); ?> <?php echo get_search_query(); ?></h1>
<?php get_search_form(); ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if(is_404()): ?>
<div class="page-title-container">
<div class="page-title">
<div class="page-title-wrapper">
<h1><?php echo __('Error 404 Page', 'Avada'); ?></h1>
</div>
</div>
</div>
<?php endif; ?>
<?php if(is_archive()): ?>
<div class="page-title-container">
<div class="page-title">
<div class="page-title-wrapper">
<h1>
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: %s', 'Avada' ), '<span>' . get_the_date() . '</span>' ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: %s', 'Avada' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'Avada' ) ) . '</span>' ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: %s', 'Avada' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'Avada' ) ) . '</span>' ); ?>
<?php elseif ( is_author() ) : ?>
<?php echo get_query_var('author_name'); ?>
<?php else : ?>
<?php single_cat_title(); ?>
<?php endif; ?>
</h1>
<?php if($data['breadcrumb']): ?>
<?php if($data['page_title_bar_bs'] == 'Breadcrumbs'): ?>
<?php themefusion_breadcrumb(); ?>
<?php else: ?>
<?php get_search_form(); ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if(is_page_template('contact.php') && $data['gmap_address']): ?>
<style type="text/css">
#gmap{
width:<?php echo $data['gmap_width']; ?>;
margin:0 auto;
<?php if($data['gmap_width'] != '100%'): ?>
margin-top:55px;
<?php endif; ?>
<?php if($data['gmap_height']): ?>
height:<?php echo $data['gmap_height']; ?>;
<?php else: ?>
height:415px;
<?php endif; ?>
}
</style>
<?php
$addresses = explode('|', $data['gmap_address']);
$markers = '';
foreach($addresses as $address_string) {
$markers .= "{
address: '{$address_string}',
html: {
content: '{$address_string}',
popup: true
}
},";
}
?>
<script type='text/javascript'>
jQuery(document).ready(function($) {
jQuery('#gmap').goMap({
address: '<?php echo $addresses[0]; ?>',
maptype: '<?php echo $data['gmap_type']; ?>',
zoom: <?php echo $data['map_zoom_level']; ?>,
scrollwheel: <?php if($data['map_scrollwheel']): ?>false<?php else: ?>true<?php endif; ?>,
scaleControl: <?php if($data['map_scale']): ?>false<?php else: ?>true<?php endif; ?>,
navigationControl: <?php if($data['map_zoomcontrol']): ?>false<?php else: ?>true<?php endif; ?>,
markers: [<?php echo $markers; ?>]
});
});
</script>
<div class="gmap" id="gmap">
</div>
<?php endif; ?>
<?php if(is_page_template('contact-2.php') && $data['gmap_address']): ?>
<style type="text/css">
#gmap{
width:100%;
margin:0 auto;
}
</style>
<?php
$addresses = explode('|', $data['gmap_address']);
$markers = '';
foreach($addresses as $address_string) {
$markers .= "{
address: '{$address_string}',
html: {
content: '{$address_string}',
popup: true
}
},";
}
?>
<script type='text/javascript'>
jQuery(document).ready(function($) {
jQuery('#gmap').goMap({
address: '<?php echo $addresses[0]; ?>',
maptype: '<?php echo $data['gmap_type']; ?>',
zoom: <?php echo $data['map_zoom_level']; ?>,
scrollwheel: <?php if($data['map_scrollwheel']): ?>false<?php else: ?>true<?php endif; ?>,
scaleControl: <?php if($data['map_scale']): ?>false<?php else: ?>true<?php endif; ?>,
navigationControl: <?php if($data['map_zoomcontrol']): ?>false<?php else: ?>true<?php endif; ?>,
markers: [<?php echo $markers; ?>]
});
});
</script>
<div class="gmap" id="gmap">
</div>
<?php endif; ?>
<?php
$main_css = '';
$row_css = '';
$main_class = '';
if(is_page_template('100-width.php')) {
$main_css = 'padding-left:0px;padding-right:0px;';
$row_css = 'max-width:100%;';
$main_class = 'width-100';
}
?>
<div id="main" class="<?php echo $main_class; ?>" style="overflow:hidden !important;<?php echo $main_css; ?>">
<div class="avada-row" style="<?php echo $row_css; ?>">