When these two plugins are active at the same time, my breadcrumb plugin will not display in the header. When I deactivate the Simple Locator plugin it works fine. There is obviously some conflict. I can't seem to figure it out, hopefully of you can?
<strong>The website in question is </strong>http://mswp-temp.movementforlife.com/about/
<strong>Breadcrumb Plugin</strong>
http://mswp-temp.movementforlife.com/wp-admin/network/plugin-install.php?tab=plugin-information&plugin=breadcrumb-navxt&TB_iframe=true&width=600&height=550
<strong>Simple Locator Plugin</strong>
http://mswp-temp.movementforlife.com/wp-admin/network/plugin-install.php?tab=plugin-information&plugin=simple-locator&TB_iframe=true&width=600&height=550
I deactivated the Simple Locator plugin temporarily and took a screen shot so you can see how it should look. I have activated the Simple Locator plugin again so they are currently in conflict here: http://mswp-temp.movementforlife.com/about/ you will notice the difference when compared to the screenshot.
Dbranes answers:
I see you've activated the debug mode but those errors are now visible on your site.
You should consider logging these errors into the <em>/wp-content/debug.log</em> file with:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set('display_errors',0);
in your <em>wp-config.php</em> file, so they wont show up on your site.
Dbranes comments:
How does the code for the missing "About Us" block look like?
konigmedia comments:
This website is in beta so there is no issue with the Debug Errors showing. but thank you for the suggestion.
I will post the About Us block when I get back to my office..
konigmedia comments:
Please find the code for the About Us Breadcrumb Block below I am raising the prize money to $50 as I would like to resolve this soon.. I am leaving the Simple Locator Plugin deactivated for now. Please let me know if it is easier for you to debug with it activated? I can make the change whenever needed..
<div class="bellow_header">
<div class="bellow_header_title">
About Us
<div class="page-title">
<div class="breadcrumb">
<!-- Breadcrumb NavXT 5.2.1 -->
<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" title="Go to Movement For Life." href="http://mswp-temp.movementforlife.com" class="home">Movement For Life</a></span> > <span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" title="Go to About Us." href="http://mswp-temp.movementforlife.com/about/" class="post post-page current-item">About Us</a></span> </div>
</div>
<div class="breadcrumb_search_form">
<form method="get" id="searchform" action="http://mswp-temp.movementforlife.com"><fieldset style="border:none;"><input type="text" name="s" id="s" value="Search keywords here" onfocus="if(this.value=='Search keywords here') this.value='';" onblur="if(this.value=='')this.value='Search keywords here';" /></fieldset><!--END #searchform--></form> </div>
</div>
</div>
lastly I added the suggested code to my wp-config file.. I will post the contents of debug.log below..
[01-Jun-2015 01:39:57] PHP Notice: Use of undefined constant WPLANG - assumed 'WPLANG' in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/LayerSlider/classes/class.km.autoupdate.v3.php on line 74
[01-Jun-2015 01:39:57] PHP Notice: Use of undefined constant vc_set_shortcodes_templates_dir - assumed 'vc_set_shortcodes_templates_dir' in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/functions.php on line 38
[01-Jun-2015 01:39:57] PHP Notice: Undefined index: query in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/simple-mobile-url-redirect/mobile-redirect.php on line 134
[01-Jun-2015 01:39:57] PHP Notice: Undefined index: second_link_color in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/header.php on line 107
[01-Jun-2015 01:39:57] PHP Notice: Undefined index: button_text_shadow_color in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/header.php on line 111
[01-Jun-2015 01:39:57] PHP Notice: Undefined index: button_gradient_top_color in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/header.php on line 112
[01-Jun-2015 01:39:57] PHP Notice: Undefined index: button_gradient_bottom_color in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/header.php on line 113
[01-Jun-2015 01:39:57] PHP Notice: Undefined index: action_border in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/header.php on line 152
[01-Jun-2015 01:39:57] PHP Notice: Undefined index: action_border_hover in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/header.php on line 155
[01-Jun-2015 01:39:57] PHP Notice: Undefined variable: boxed in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/header.php on line 790
[01-Jun-2015 01:39:57] PHP Notice: Undefined variable: margintop in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php on line 159
[01-Jun-2015 01:39:57] PHP Notice: Undefined variable: marginbottom in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php on line 162
[01-Jun-2015 01:39:57] PHP Notice: Undefined variable: video_bg_render in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/vc_templates/vc_row.php on line 70
[01-Jun-2015 01:39:57] PHP Notice: Undefined variable: margintop in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php on line 159
[01-Jun-2015 01:39:57] PHP Notice: Undefined variable: marginbottom in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php on line 162
[01-Jun-2015 01:39:57] PHP Notice: Undefined variable: video_bg_render in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/vc_templates/vc_row.php on line 70
[01-Jun-2015 01:39:58] PHP Notice: Use of undefined constant WPLANG - assumed 'WPLANG' in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/LayerSlider/classes/class.km.autoupdate.v3.php on line 74
[01-Jun-2015 01:39:58] PHP Notice: Use of undefined constant vc_set_shortcodes_templates_dir - assumed 'vc_set_shortcodes_templates_dir' in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/functions.php on line 38
[01-Jun-2015 01:39:59] PHP Notice: Use of undefined constant WPLANG - assumed 'WPLANG' in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/LayerSlider/classes/class.km.autoupdate.v3.php on line 74
[01-Jun-2015 01:39:59] PHP Notice: Use of undefined constant vc_set_shortcodes_templates_dir - assumed 'vc_set_shortcodes_templates_dir' in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/functions.php on line 38
Dbranes comments:
Few more questions come to mind:
- How does the PHP part look like?
- How is this part included?
- What's the name of the file?
If the HTML part for the search/breadcrumb is missing when you activate the Simple Locator plugin, that might suggest to some filter/action getting overriden somewhere.
konigmedia comments:
I am not exactly sure what the PHP part looks like as it is part of the Breadcrumb Plugin. I did however verify that when the Simple Locator Plugin is activated the HTML for the breadcrumbs is completely missing, meaning it must be what you suggest.. some filter/ action override. Can you help me narrow down where this is exactly?
Curious if you have tried to install both plugins in your test environment? That might be the easiest way to debug this.
As for your other questions..
Not sure what file but I would expect it to come from this file in the breadcrumb plugin folder class.bcn_breadcrumb.php
konigmedia comments:
rather this file...
breadcrumb-navxt.php
here is the code if it is helpful..
<?php
/*
Plugin Name: Breadcrumb NavXT
Plugin URI: http://mtekk.us/code/breadcrumb-navxt/
Description: Adds a breadcrumb navigation showing the visitor's path to their current location. For details on how to use this plugin visit <a href="http://mtekk.us/code/breadcrumb-navxt/">Breadcrumb NavXT</a>.
Version: 5.2.1
Author: John Havlik
Author URI: http://mtekk.us/
License: GPL2
Text Domain: breadcrumb-navxt
Domain Path: /languages
*/
/* Copyright 2007-2015 John Havlik (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//Do a PHP version check, require 5.3 or newer
if(version_compare(phpversion(), '5.3.0', '<'))
{
//Only purpose of this function is to echo out the PHP version error
function bcn_phpold()
{
printf('<div class="error"><p>' . __('Your PHP version is too old, please upgrade to a newer version. Your version is %1$s, Breadcrumb NavXT requires %2$s', 'breadcrumb-navxt') . '</p></div>', phpversion(), '5.3.0');
}
//If we are in the admin, let's print a warning then return
if(is_admin())
{
add_action('admin_notices', 'bcn_phpold');
}
return;
}
if(!function_exists('mb_strlen'))
{
require_once(dirname(__FILE__) . '/includes/multibyte_supplicant.php');
}
//Include admin base class
if(!class_exists('mtekk_adminKit'))
{
require_once(dirname(__FILE__) . '/includes/class.mtekk_adminkit.php');
}
//Include the breadcrumb class
require_once(dirname(__FILE__) . '/class.bcn_breadcrumb.php');
//Include the breadcrumb trail class
require_once(dirname(__FILE__) . '/class.bcn_breadcrumb_trail.php');
//Include the WP 2.8+ widget class
require_once(dirname(__FILE__) . '/class.bcn_widget.php');
$breadcrumb_navxt = NULL;
//TODO change to extends mtekk_plugKit
class breadcrumb_navxt
{
const version = '5.2.1';
protected $name = 'Breadcrumb NavXT';
protected $identifier = 'breadcrumb-navxt';
protected $unique_prefix = 'bcn';
protected $plugin_basename = null;
protected $opt = null;
protected $breadcrumb_trail = null;
protected $admin = null;
/**
* Constructor for a new breadcrumb_navxt object
*
* @param bcn_breadcrumb_trail $breadcrumb_trail An instance of a bcn_breadcrumb_trail object to use for everything
*/
public function __construct(bcn_breadcrumb_trail $breadcrumb_trail)
{
//We get our breadcrumb trail object from our constructor
$this->breadcrumb_trail = $breadcrumb_trail;
//Grab defaults from the breadcrumb_trail object
$this->opt = $this->breadcrumb_trail->opt;
//We set the plugin basename here
$this->plugin_basename = plugin_basename(__FILE__);
//We need to add in the defaults for CPTs and custom taxonomies after all other plugins are loaded
add_action('wp_loaded', array($this, 'wp_loaded'), 15);
add_action('init', array($this, 'init'));
//Register the WordPress 2.8 Widget
add_action('widgets_init', create_function('', 'return register_widget("'. $this->unique_prefix . '_widget");'));
//Load our network admin if in the network dashboard (yes is_network_admin() doesn't exist)
if(defined('WP_NETWORK_ADMIN') && WP_NETWORK_ADMIN)
{
require_once(dirname(__FILE__) . '/class.bcn_network_admin.php');
//Instantiate our new admin object
$this->admin = new bcn_network_admin($this->breadcrumb_trail, $this->plugin_basename);
}
//Load our main admin if in the dashboard, but only if we're not in the network dashboard (prevents goofy bugs)
else if(is_admin())
{
require_once(dirname(__FILE__) . '/class.bcn_admin.php');
//Instantiate our new admin object
$this->admin = new bcn_admin($this->breadcrumb_trail, $this->plugin_basename);
}
}
public function init()
{
add_filter('bcn_allowed_html', array($this, 'allowed_html'), 1, 1);
//We want to run late for using our breadcrumbs
add_filter('tha_breadcrumb_navigation', array($this, 'tha_compat'), 99);
}
public function allowed_html($tags)
{
$allowed_html = array(
'a' => array(
'href' => true,
'title' => true,
'class' => true,
'id' => true,
'media' => true,
'dir' => true,
'relList' => true,
'rel' => true,
'aria-hidden' => true,
'data-icon' => true,
'itemref' => true,
'itemid' => true,
'itemprop' => true,
'itemscope' => true,
'itemtype' => true,
'xmlns:v' => true,
'typeof' => true,
'property' => true
),
'img' => array(
'alt' => true,
'align' => true,
'height' => true,
'width' => true,
'src' => true,
'id' => true,
'class' => true,
'aria-hidden' => true,
'data-icon' => true,
'itemref' => true,
'itemid' => true,
'itemprop' => true,
'itemscope' => true,
'itemtype' => true,
'xmlns:v' => true,
'typeof' => true,
'property' => true
),
'span' => array(
'title' => true,
'class' => true,
'id' => true,
'dir' => true,
'align' => true,
'lang' => true,
'xml:lang' => true,
'aria-hidden' => true,
'data-icon' => true,
'itemref' => true,
'itemid' => true,
'itemprop' => true,
'itemscope' => true,
'itemtype' => true,
'xmlns:v' => true,
'typeof' => true,
'property' => true
),
'h1' => array(
'title' => true,
'class' => true,
'id' => true,
'dir' => true,
'align' => true,
'lang' => true,
'xml:lang' => true,
'aria-hidden' => true,
'data-icon' => true,
'itemref' => true,
'itemid' => true,
'itemprop' => true,
'itemscope' => true,
'itemtype' => true,
'xmlns:v' => true,
'typeof' => true,
'property' => true
),
'h2' => array(
'title' => true,
'class' => true,
'id' => true,
'dir' => true,
'align' => true,
'lang' => true,
'xml:lang' => true,
'aria-hidden' => true,
'data-icon' => true,
'itemref' => true,
'itemid' => true,
'itemprop' => true,
'itemscope' => true,
'itemtype' => true,
'xmlns:v' => true,
'typeof' => true,
'property' => true
)
);
return mtekk_adminKit::array_merge_recursive($tags, $allowed_html);
}
public function get_version()
{
return self::version;
}
public function wp_loaded()
{
breadcrumb_navxt::setup_options($this->opt);
}
public function uninstall()
{
$this->admin->uninstall();
}
/**
* Sets up the extended options for any CPTs, taxonomies or extensions
*
* @param array $opt The options array, passed by reference
*/
static public function setup_options(&$opt)
{
//Add custom post types
breadcrumb_navxt::find_posttypes($opt);
//Add custom taxonomy types
breadcrumb_navxt::find_taxonomies($opt);
//Let others hook into our settings
$opt = apply_filters('bcn_settings_init', $opt);
}
/**
* Places settings into $opts array, if missing, for the registered post types
*
* @param array $opts
*/
static function find_posttypes(&$opts)
{
global $wp_post_types, $wp_taxonomies;
//Loop through all of the post types in the array
foreach($wp_post_types as $post_type)
{
//We only want custom post types
if(!$post_type->_builtin)
{
//If the post type does not have settings in the options array yet, we need to load some defaults
if(!isset($opts['Hpost_' . $post_type->name . '_template']) || !$post_type->hierarchical && !isset($opts['Spost_' . $post_type->name . '_taxonomy_type']))
{
//Add the necessary option array members
$opts['Hpost_' . $post_type->name . '_template'] = __('<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" title="Go to %title%." href="%link%">%htitle%</a></span>', 'breadcrumb-navxt');
$opts['Hpost_' . $post_type->name . '_template_no_anchor'] = __('<span typeof="v:Breadcrumb"><span property="v:title">%htitle%</span></span>', 'breadcrumb-navxt');
if($post_type->has_archive == true || is_string($post_type->has_archive))
{
$opts['bpost_' . $post_type->name . '_archive_display'] = true;
}
else
{
$opts['bpost_' . $post_type->name . '_archive_display'] = false;
}
//Do type dependent tasks
if($post_type->hierarchical)
{
//Set post_root for hierarchical types
$opts['apost_' . $post_type->name . '_root'] = get_option('page_on_front');
}
//If it is flat, we need a taxonomy selection
else
{
//Set post_root for flat types
$opts['apost_' . $post_type->name . '_root'] = get_option('page_for_posts');
}
//Default to not displaying a taxonomy
$opts['bpost_' . $post_type->name . '_taxonomy_display'] = false;
//Loop through all of the possible taxonomies
foreach($wp_taxonomies as $taxonomy)
{
//Check for non-public taxonomies
if(!apply_filters('bcn_show_tax_private', $taxonomy->public, $taxonomy->name))
{
continue;
}
//Activate the first taxonomy valid for this post type and exit the loop
if($taxonomy->object_type == $post_type->name || in_array($post_type->name, $taxonomy->object_type))
{
$opts['bpost_' . $post_type->name . '_taxonomy_display'] = true;
$opts['Spost_' . $post_type->name . '_taxonomy_type'] = $taxonomy->name;
break;
}
}
//If there are no valid taxonomies for this type, we default to not displaying taxonomies for this post type
if(!isset($opts['Spost_' . $post_type->name . '_taxonomy_type']))
{
$opts['Spost_' . $post_type->name . '_taxonomy_type'] = 'date';
}
}
}
}
}
/**
* Places settings into $opts array, if missing, for the registered taxonomies
*
* @param $opts
*/
static function find_taxonomies(&$opts)
{
global $wp_taxonomies;
//We'll add our custom taxonomy stuff at this time
foreach($wp_taxonomies as $taxonomy)
{
//We only want custom taxonomies
if(!$taxonomy->_builtin)
{
//If the taxonomy does not have settings in the options array yet, we need to load some defaults
if(!isset($opts['Htax_' . $taxonomy->name . '_template']))
{
//Add the necessary option array members
$opts['Htax_' . $taxonomy->name . '_template'] = __(sprintf('<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" title="Go to the %%title%% %s archives." href="%%link%%">%%htitle%%</a></span>', $taxonomy->labels->singular_name), 'breadcrumb-navxt');
$opts['Htax_' . $taxonomy->name . '_template_no_anchor'] = __(sprintf('<span typeof="v:Breadcrumb"><span property="v:title">%%htitle%%</span></span>', $taxonomy->labels->singular_name), 'breadcrumb-navxt');
}
}
}
}
/**
* Hooks into the theme hook alliance tha_breadcrumb_navigation filter and replaces the trail
* with one generated by Breadcrumb NavXT
*
* @param string $bradcrumb_trail The string breadcrumb trail that we will replace
* @return string The Breadcrumb NavXT assembled breadcrumb trail
*/
public function tha_compat($breadcrumb_trail)
{
//Return our breadcrumb trail
return $this->display(true);
}
/**
* Function updates the breadcrumb_trail options array from the database in a semi intellegent manner
*
* @since 5.0.0
*/
private function get_settings()
{
//Let's begin by grabbing the current settings for the site (works for both multisite and single installs)
$this->breadcrumb_trail->opt = wp_parse_args(get_site_option('bcn_options'), $this->opt);
//If we're in multisite mode, look at the three BCN_SETTINGS globals
if(defined('MULTISITE') && MULTISITE)
{
if(defined('BCN_SETTINGS_USE_LOCAL') && BCN_SETTINGS_USE_LOCAL)
{
//Grab the current settings for the current local site from the db
$this->breadcrumb_trail->opt = wp_parse_args(get_option('bcn_options'), $this->opt);
}
else if(defined('BCN_SETTINGS_FAVOR_LOCAL') && BCN_SETTINGS_FAVOR_LOCAL)
{
//Grab the current settings for the current local site from the db
$this->breadcrumb_trail->opt = wp_parse_args(get_option('bcn_options'), $this->breadcrumb_trail->opt);
}
else if(defined('BCN_SETTINGS_FAVOR_NETWORK') && BCN_SETTINGS_FAVOR_NETWORK)
{
//Grab the current settings from the db
$this->breadcrumb_trail->opt = wp_parse_args($this->breadcrumb_trail->opt, get_option('bcn_options'));
}
}
}
/**
* Outputs the breadcrumb trail
*
* @param bool $return Whether to return or echo the trail.
* @param bool $linked Whether to allow hyperlinks in the trail or not.
* @param bool $reverse Whether to reverse the output or not.
*/
public function display($return = false, $linked = true, $reverse = false)
{
$this->get_settings();
//Generate the breadcrumb trail
$this->breadcrumb_trail->fill();
return $this->breadcrumb_trail->display($return, $linked, $reverse);
}
/**
* Outputs the breadcrumb trail with each element encapsulated with li tags
*
* @since 3.2.0
* @param bool $return Whether to return or echo the trail.
* @param bool $linked Whether to allow hyperlinks in the trail or not.
* @param bool $reverse Whether to reverse the output or not.
*/
public function display_list($return = false, $linked = true, $reverse = false)
{
$this->get_settings();
//Generate the breadcrumb trail
$this->breadcrumb_trail->fill();
return $this->breadcrumb_trail->display_list($return, $linked, $reverse);
}
}
//Have to bootstrap our startup so that other plugins can replace the bcn_breadcrumb_trail object if they need to
add_action('plugins_loaded', 'bcn_init', 15);
function bcn_init()
{
global $breadcrumb_navxt;
//Create an instance of bcn_breadcrumb_trail
$bcn_breadcrumb_trail = new bcn_breadcrumb_trail();
//Let's make an instance of our object that takes care of everything
$breadcrumb_navxt = new breadcrumb_navxt(apply_filters('bcn_breadcrumb_trail_object', $bcn_breadcrumb_trail));
}
/**
* Outputs the breadcrumb trail
*
* @param bool $return Whether to return or echo the trail. (optional)
* @param bool $linked Whether to allow hyperlinks in the trail or not. (optional)
* @param bool $reverse Whether to reverse the output or not. (optional)
*/
function bcn_display($return = false, $linked = true, $reverse = false)
{
global $breadcrumb_navxt;
if($breadcrumb_navxt !== null)
{
return $breadcrumb_navxt->display($return, $linked, $reverse);
}
}
/**
* Outputs the breadcrumb trail with each element encapsulated with li tags
*
* @param bool $return Whether to return or echo the trail. (optional)
* @param bool $linked Whether to allow hyperlinks in the trail or not. (optional)
* @param bool $reverse Whether to reverse the output or not. (optional)
*/
function bcn_display_list($return = false, $linked = true, $reverse = false)
{
global $breadcrumb_navxt;
if($breadcrumb_navxt !== null)
{
return $breadcrumb_navxt->display_list($return, $linked, $reverse);
}
}
Dbranes comments:
I'm just wondering about the PHP part of the theme, that includes the
<div class="bellow_header">...</div>
part, where it's stored and how it's included.
konigmedia comments:
It appears to be found in the header.php file and main.js pasting the code for both below
header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php global $data; ?>
<?php
if($data['favicon']){
?>
<link rel="shortcut icon" href="<?php echo $data['favicon']; ?>" type="image/x-icon" />
<?php
}
?>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php bloginfo('name'); ?> <?php wp_title(' - ', true, 'left'); ?></title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php if ($data['responsiveness']) { ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php } ?>
<?php if($data['body_font'] && $data['body_font'] != 'Select Font'): ?>
<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['body_font']); ?>: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['heading_font'] && $data['heading_font'] != 'Select Font'): ?>
<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['heading_font']); ?>: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['side_heading_font'] && $data['side_heading_font'] != 'Select Font'): ?>
<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['side_heading_font']); ?>: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['menu_font_family'] && $data['menu_font_family'] != 'Select Font'): ?>
<link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['menu_font_family']); ?>: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; ?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://mswp-temp.movementforlife.com/wp-content/themes/creativo/showHide.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.show_hide').showHide({
speed: 1000, // speed you want the toggle to happen
easing: '', // the animation effect you want. Remove this line if you dont want an effect and if you haven't included jQuery UI
changeText: 1, // if you dont want the button text to change, set this to 0
showText: 'View',// the button text to show when a div is closed
hideText: 'Close' // the button text to show when a div is open
});
});
</script>
<?php wp_head(); ?>
<style>
body,
.more,
.meta .date,
.review blockquote q,
.review blockquote div strong,
.footer-area h3,
.image .image-extras .image-extras-content h4,
.project-content .project-info h4,
.post-content blockquote
{
font-family:'<?php echo $data['body_font']; ?>', Arial, Helvetica, sans-serif;
font-size:<?php echo $data['font_size']; ?>px;
}
body, .sidebar-widget ul.twitter li i {
color: <?php echo $data['font_color']; ?>;
background-color: <?php echo $data['body_bg_color'] ?>
}
h1, h2, h3, h4, h5, h6, .content_box_title span.grey, .bellow_header_title,.qbox_title1,.content_box_title span.white,.full .title,.tab-holder .tabs li{
font-family: '<?php echo $data['heading_font']; ?>', Arial, Helvetica, sans-serif;
}
h3.sidebar-title {
font-family: '<?php echo $data['side_heading_font']; ?>', Arial, Helvetica, sans-serif;
font-size: <?php echo $data['side_font_size']; ?>px;
}
.woocommerce h1,.woocommerce h2,.woocommerce h3,.woocommerce h4,.woocommerce h5 {
font-family: '<?php echo $data['body_font']; ?>', Arial, Helvetica, sans-serif !important;
}
#navigation {
font-family: '<?php echo $data['menu_font_family']; ?>', Arial, Helvetica, sans-serif !important;
}
.tp-bannertimer {
background-image:none !important;
height:7px;
}
.latest-posts h2, .page-title, .action_bar_inner h2{
font-family:'<?php echo $data['body_font']; ?>', Arial, Helvetica, sans-serif !important;
}
.container {
background-color: <?php echo $data['body_bg_color_inside']; ?>;
}
<?php
if(!$data['use_custom']){
$primary_color = $data['primary_color'];
$second_link_color = $data['second_link_color'];
$pb_hover_color = $data['pb_hover_color'];
$shortcode_color = $data['shortcode_color'];
$button_text_color = $data['button_text_color'];
$button_text_shadow_color = $data['button_text_shadow_color'];
$button_gradient_top_color = $data['button_gradient_top_color'];
$button_gradient_bottom_color = $data['button_gradient_bottom_color'];
$button_border_color = $data['button_border_color'];
$footer_link_color = $data['footer_widget_link_color'];
}
else{
$primary_color = $data['custom_primary_color'];
$second_link_color = $data['custom_second_link_color'];
$pb_hover_color = $data['custom_pb_hover_color'];
$shortcode_color = $data['custom_shortcode_color'];
$button_text_color = $data['custom_button_text_color'];
$button_text_shadow_color = $data['custom_button_text_shadow_color'];
$button_gradient_top_color = $data['custom_button_gradient_top_color'];
$button_gradient_bottom_color = $data['custom_button_gradient_bottom_color'];
$button_border_color = $data['custom_button_border_color'];
$footer_link_color = $data['custom_footer_widget_link_color'];
}
?>
a,.front_widget a, .vc_front_widget a, h5.toggle a.default_color,.portfolio-navigation a:hover,h2.page404,.project-feed .title a,.post_meta li a:hover, .portfolio-item .portfolio_details a, .product_feature .pf_content a.more_info:hover, a.woocommerce_orders:hover {
color:<?php echo $primary_color ; ?>;
}
a:hover, .col h3 a:hover,.col h4 a:hover, h5.toggle a.default_color:hover, .portfolio-item .portfolio_details a:hover, .product_feature .pf_content a.more_info, a.woocommerce_orders, .product .star-rating:before, .cart-collaterals .cart_totals table tr.order-total td, .woocommerce table.shop_table tfoot tr.order-total td {
color: <?php echo $data['primary_color_hover']; ?>;
}
.post-gallery-item a:hover img, .recent-portfolio a:hover img, .recent-flickr a:hover img{
border-color:<?php $primary_color ; ?>;
}
.default_dc{
color:<?php echo $primary_color ; ?>;
}
/* Menu Style */
/* Call to Action styling */
/*
.default_border{
border-color:<?php echo $data['action_border']; ?>;
}
.default_border:hover{
border-color: <?php echo $data['action_border_hover']; ?>;
}
*/
.reading-box.default_border {
background-color: <?php echo $data['action_bg']; ?>;
color: <?php echo $data['action_text_color']; ?>;
}
.reading-box.default_border:hover {
background-color: <?php echo $data['action_bg_hover']; ?>;
color: <?php echo $data['action_text_color_hover']; ?>;
}
.reading-box.default_border .button {
border-color: <?php echo $data['action_text_color']; ?>;
color: <?php echo $data['action_text_color']; ?>;
}
.reading-box.default_border:hover .button {
border-color: <?php echo $data['action_text_color_hover']; ?>;
color: <?php echo $data['action_text_color_hover']; ?>;
}
<?php
if($pb_hover_color): ?>
.gallery_zoom{
background-color: <?php echo $pb_hover_color; ?>;
}
<?php
endif;
?>
.vc_front_widget {
background-color: <?php echo $data['featured_serv_bg']; ?>;
}
.vc_front_widget a{
color: <?php echo $data['featured_serv_link']; ?>;
}
.vc_front_widget:hover {
background-color: <?php echo $data['featured_serv_bg_hover']; ?>;
color:#fff;
}
.vc_front_widget:hover a{
color:#fff;
}
<?php
if($shortcode_color): ?>
.progress-bar-content,.ch-info-back4,.ch-info-back3,.ch-info-back2,.ch-info-back1,.col:hover .bottom,.tp-bannertimer,.review_inside:after {
background-color:<?php echo $shortcode_color; ?>;
}
.front_widget:hover, .front_widget:hover a, .portfolio-tabs a:hover, .portfolio-tabs li.active a{
color:#fff; background-color:<?php echo $shortcode_color; ?>;
}
._border:hover, .review blockquote q, .pagination a.inactive{
border-color:<?php echo $shortcode_color; ?>;
}
.review blockquote div {
color:<?php echo $shortcode_color; ?>;
}
.pagination .current, .pagination a.inactive:hover {
background-color:<?php echo $shortcode_color; ?>;
border-color:<?php echo $shortcode_color; ?>;
}
.project-feed .info, figure a .text-overlay {
<?php
$bg = hex2rgba($shortcode_color)
?>
background: rgba(0,0,0,0.70);
}
.recent_posts_container figure a .text-overlay .info i, .project-feed a i {
background-color: <?php echo $shortcode_color; ?>
}
<?php
endif;
/*
if($button_text_color): ?>
.button_default, .button_default:hover{
color: <?php echo $button_text_color; ?> !important;
}
<?php
endif;
if($button_text_shadow_color): ?>
.button_default{
text-shadow: 1px 1px 1px <?php echo $button_text_shadow_color; ?>;
}
<?php
endif;
*/
if($button_gradient_top_color && $button_gradient_bottom_color && $button_border_color): ?>
.border_default{
border: 1px solid <?php echo $button_border_color; ?>;
}
<?php
endif;
?>
.button_default, .button{
background-color: <?php echo $data['button_background_color']; ?>;
border-color: <?php echo $data['button_border_color']; ?>;
color: <?php echo $data['button_text_color']; ?>;
}
.button_default:hover, .button:hover{
background-color: <?php echo $data['button_background_color_hover']; ?>;
border-color: <?php echo $data['button_border_color_hover']; ?>;
color: <?php echo $data['button_text_color_hover']; ?>;
}
<?php
if($footer_link_color): ?>
.footer_widget_content a, .footer_widget_content ul.twitter li span a, ul.twitter li i{
color:<?php echo $footer_link_color; ?> ;
}
<?php
endif;
if($data['site_width']=='Boxed'){
$bg = $data['boxed_bg'];
$boxed='true';
?>
body{
background-image: url(<?php echo $data['boxed_bg'];?>);
background-repeat: <?php echo $data['bg_repeat'];?> ;
background-position: top center;
background-attachment: <?php echo $data['bg_attachment'];?>;
<?php if($data['bg_fullscreen']): ?>
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
<?php endif; ?>
<?php
if($data['enable_pattern']){
?>
background-image: url("<?php echo $data['pattern']; ?>");
background-repeat: repeat;
background-attachment: fixed;
<?php
}
?>
<?php
if(get_post_meta($post->ID, 'pyre_background', true) || get_post_meta($post->ID,'pyre_bg_color', true)): ?>
background:url(<?php echo get_post_meta($post->ID, 'pyre_background', true); ?>);
background-color: <?php echo get_post_meta($post->ID, 'pyre_bg_color', true); ?>;
background-repeat: <?php echo get_post_meta($post->ID, 'pyre_bg_repeat', true); ?>;
background-position: <?php echo get_post_meta($post->ID, 'pyre_bg_position', true); ?>;
background-attachment: <?php echo get_post_meta($post->ID, 'pyre_bg_attach', true); ?>;
<?php
endif;
?>
}
.container{
max-width:980px;
margin:<?php echo $data['margin_all']; ?>px auto;
padding:<?php echo $data['padding_out']; ?>px;
border:<?php echo $data['outer_border']; ?>px <?php echo $data['outer_border_type']; ?> <?php echo $data['outer_border_color']; ?>;
<?php
if($data['outer_shadow']){
?>
box-shadow: 0 0 10px rgba(0,0,0,0.3);
-moz-box-shadow: 0 0 10px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.3);
<?php
}
?>
}
.pi-header-row-fixed .sticky_h {
max-width:980px;
margin:0 auto;
}
<?php
}
if($data['site_width']=='Extra Wide'){
?>
.inner, .row, .front_page_in,.footer_widget_inside,.footer .inner, .top_nav, .bellow_header_title, .inner_wrap,.qbox, .action_bar_inner, .reviews .flexslider, #footer_widget_inside, .flexslider {
max-width:1140px;
}
.qbox_title1{
width:34%;
}
.portfolio-four .portfolio-item{
margin:4px;
}
.col{
width:19%;
}
.blogpost_small_pic{ width:39.5%}.blogpost_small_desc{width:57%;}
<?php
}
?>
.header{
margin-bottom: <?php echo $data['header_bottom_margin']; ?>px;
margin-top: <?php echo $data['header_top_margin']; ?>px;
padding-bottom: <?php echo $data['header_bottom_padding']; ?>px;
padding-top: <?php echo $data['header_top_padding']; ?>px;
<?php
if($data['en_header_pattern']){
$head_pattern = $data['header_patterns'];
?>
background-image:url("<?php echo $head_pattern; ?>");
<?php
}
else{
?>
background-color:<?php echo $data['header_bg_color']; ?>;
<?php
}
if($data['header_bg_image']){
?>
background:url("<?php echo $data['header_bg_image']; ?>") <?php echo $data['header_bg_repeat']; ?>;
<?php
}
?>
}
<?php
if($data['sidebar_pos'] == 'left') { ?>
.post_container{
float:right;
}
.sidebar{
float:left;
}
<?php
}
?>
.main-navigation {
float:right;
}
<?php
?>
#navigation {
font-size: <?php echo $data['menu_font_size']; ?>px;
}
<?php
if(!$data['submenu_indicator']) {
?>
.sf-sub-indicator {
display: none;
}
<?php
}
if($data['force_uppercase']) {
?>
#navigation ul {
text-transform: uppercase;
}
<?php
}
if($data['menu_color']){
?>
#navigation ul li a {
color:<?php echo $data['menu_color']; ?>;
}
<?php
}
if($data['menu_color_hover']){
?>
#navigation > ul > li > a:hover, #navigation > ul li:hover > a, #navigation ul li li:hover > a, #navigation > ul > li.current-menu-item > a, #navigation > ul > li.current-menu-parent > a, #navigation > ul > li.current-menu-parent > ul > li.current-menu-item > a, #navigation ul li.current-menu-ancestor a {
color:<?php echo $data['menu_color_hover']; ?> ;
}
<?php
}
$menu_bg_color_hover = ($data['menu_color_bg_hover']) ? $data['menu_color_bg_hover'] : 'transparent';
?>
#navigation > ul > li > a:hover, #navigation > ul li:hover > a, #navigation ul li.current-menu-parent a, #navigation ul li.current-menu-ancestor a,#navigation > ul > li.current-menu-item > a {
background-color: <?php echo $menu_bg_color_hover; ?>;
}
#navigation ul.sub-menu li > a {
color: <?php echo $data['submenu_color']; ?> ;
background-color:<?php echo $data['submenu_bg_color']; ?>;
}
#navigation ul.sub-menu li > a:hover, #navigation ul.sub-menu > li:hover > a {
color: <?php echo $data['submenu_color_hover']; ?> ;
background-color:<?php echo $data['submenu_bg_color_hover']; ?>;
}
#navigation > ul > li.current-menu-parent > ul > li.current-menu-item > a {
background-color: <?php echo $data['submenu_bg_color_hover']; ?>;
}
#navigation ul ul, #navigation ul ul li {
background-color:<?php echo $data['submenu_bg_color']; ?>;
}
#navigation ul.sub-menu li {
border-bottom-color: <?php echo $data['submenu_separator']; ?>;
}
<?php
if($data['header_style'] == "style2" ){
?>
#navigation{
float: none;
margin-top:0;
}
#navigation ul, #navigation ul li {
float: none;
}
#navigation ul li {
display: inline-block;
}
.second_navi {
background-color: <?php echo $data['menu_bg_color_full']; ?>;
border-color: <?php echo $data['menu_border_color']; ?>;
}
.header {
box-shadow:none;
-webkit-box-shadow:none;
}
.full_header{
box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
}
<?php
}
?>
<?php
if($data['header_el_pos'] == "center") {
?>
#branding, #navigation, #navigation ul, #navigation ul li {
float: none;
}
#branding .logo a img {
margin:0 auto;
}
#navigation {
margin-top:0;
}
#navigation ul {
text-align:center;
}
#navigation ul li ul {
text-align:left;
}
#navigation ul li {
display:inline-block;
}
#navigation ul li ul li {
display: inherit;
}
#branding, #navigation ul {
text-align:center;
}
.banner{
float: none;
padding-bottom:20px;
text-align:center;
}
.responsive-menu-link {
position:relative;
padding-bottom:20px;
}
<?php
}
?>
.footer {
<?php
if($data['en_footer_copy_pattern'] && !$data['footer_copyright_bg'] ) { ?>
background: url("<?php echo $data['footer_copy_patterns']; ?>") repeat;
<?php
}
if($data['footer_copyright_bg']) {
?>
background: url("<?php echo $data['footer_copyright_bg'] ?>") <?php echo $data['footer_copyright_bg_repeat']; ?>;
<?php
}
?>
background-color: <?php echo $data['footer_copy_bg_color']; ?>;
}
.footer_widget {
<?php if($data['en_footer_pattern']) { ?>
background: url("<?php echo $data['footer_patterns'];?>") repeat;
<?php } ?>
background-color: <?php echo $data['footer_bg_color']; ?>;
border-top-color: <?php echo $data['footer_widgets_tb_color']; ?>;
border-bottom-color: <?php echo $data['footer_widgets_bb_color']; ?>;
}
h3.footer-widget-title {
color: <?php echo $data['footer_heading_color']; ?>;
}
.recent-flickr a img {
border-color: <?php echo $data['footer_flickr_bcolor']; ?>;
}
.footer_widget_content {
color: <?php echo $data['footer_widget_text_color']; ?>;
}
.copyright {
color: <?php echo $data['footer_text_color']; ?>;
}
.footer .copyright a {
color: <?php echo $data['footer_link_color']; ?>;
}
.footer .copyright a:hover {
color: <?php echo $data['footer_link_color_hover']; ?>;
}
<?php
if($data['en_footer_center']){
?>
.copyright, .footer_branding, .connect {
float: none;
text-align: center;
}
.connect {
width:auto;
}
.connect li {
float:none;
display:inline-block;
}
.footer .top_social{
width: 100%;
text-align:center;
margin-bottom:10px;
}
.footer .top_social a {
float: none;
display: inline-block;
margin-bottom:10px;
}
<?php
}
?>
<?php if($data['en_back_top']){ ?>
#gotoTop {
background-color: <?php echo $data['back_top_bg']; ?>;
}
#gotoTop:hover {
background-color: <?php echo $data['back_top_bg_hover']; ?>;
}
<?php } ?>
.bellow_header{
background-color:<?php echo $data['tb_bg_color']; ?>;
}
.bellow_header_title, .page-title .breadcrumb, .page-title .breadcrumb a {
color: <?php echo $data['tb_title_color']; ?>;
}
<?php
if($data['logo_resize']){
?>
#branding img {
max-width: 270px;; ?>
}
<?php
}
?>
#branding .logo {
padding-top:<?php echo $data['logo_padding_top']; ?>px;
padding-bottom:<?php echo $data['logo_padding_bottom']; ?>px;
}
<?php
if(!$data['logo']) {
?>
#branding h1.text a {
color: <?php echo $data['text_logo_color']; ?>;
}
#branding h1.text a:hover {
color: <?php echo $data['text_logo_color_hover']; ?>;
}
#branding .tagline {
color: <?php echo $data['tagline_color']; ?>;
font-size: <?php echo $data['tagline_font_size']; ?>px;
}
<?php
}
if(!$data['white_circle']) {
?>
.shortcode_img {
background-color: transparent;
border-radius:0;
width:100%;
height:auto;
margin-top:0;
}
<?php
}
else{
?>
.shortcode_img img{
max-width: 32px;
height:auto;
}
<?php
}
if($data['en_top_bar']) {
?>
.top_nav_out {
background-color: <?php echo $data['top_bar_bg']; ?>;
border-color: <?php echo $data['top_bar_border'] ?>;
}
.top_social a {
opacity: <?php echo ($data['social_icons_opacity']/100); ?>;
filter: alpha(opacity=<?php echo ($data['social_icons_opacity']/100); ?>);
color: <?php echo $data['top_bar_social_color']; ?>;
}
.top_contact .contact_email span.email, .top_contact .contact_phone span.phone {
opacity: <?php echo ($data['social_icons_opacity']/100); ?>;
filter: alpha(opacity=<?php echo ($data['social_icons_opacity']/100); ?>);
}
.top_contact a{
color: <?php echo $data['contact_link']; ?>;
border-color: <?php echo $data['top_bar_separator']; ?>;
}
.top_contact a:hover {
color: <?php echo $data['contact_link_hover']; ?>;
}
.top_contact {
color: <?php echo $data['contact_text']; ?>;
}
<?php
}
?>
.single_post_tags a, .single_post_tags a:hover, .woocommerce-pagination ul li span.current, .woocommerce .quantity .minus:hover, .woocommerce .quantity .plus:hover {
background-color: <?php echo $shortcode_color ?>;
border-color: <?php echo $shortcode_color ?>;
}
.woocommerce-pagination ul li {
border-color: <?php echo $shortcode_color ?>;
}
.author_box:after, .woocommerce-pagination ul li a:hover, .product .shortcode-tabs .tab-hold .tabs li.active a:after {
background-color: <?php echo $shortcode_color ?>;
}
.footer .top_social a {
color: <?php echo $data['footer_social_icons']; ?>;
}
<?php
if($data['en_cta']) {
?>
.action_bar {
background-color: <?php echo $data['cta_bg']; ?>;
color: <?php echo $data['cta_text']; ?>;
}
.action_bar:hover {
background-color: <?php echo $data['cta_bg_hover']; ?>;
color: <?php echo $data['cta_text_hover']; ?>;
}
.action_bar_inner .button_default{
background-color: <?php echo $data['cta_button_background_color']; ?>;
border-color: <?php echo $data['cta_button_border_color']; ?>;
color: <?php echo $data['cta_button_text_color']; ?>;
}
.action_bar_inner .button_default:hover{
background-color: <?php echo $data['cta_button_background_color_hover']; ?>;
border-color: <?php echo $data['cta_button_border_color_hover']; ?>;
color: <?php echo $data['cta_button_text_color_hover']; ?>;
}
<?php
}
?>
.image_prod .badge, .product .badge {
background-color: <?php echo $data['shortcode_color']; ?>;
}
.product_price, .product .summary .price {
color: <?php echo $data['primary_color_hover']; ?>;
}
<?php
if($data['creativo_custom_css']) {
?>
<?php
echo $data['creativo_custom_css'];
?>
<?php
}
?>
</style>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/custom.css" />
<script type="text/javascript">
jQuery(document).ready(function($) {
function onAfter(curr, next, opts, fwd) {
var $ht = $(this).height();
//set the container's height to that of the current slide
$(this).parent().animate({height: $ht});
}
/*
$('.reviews').cycle({
fx: 'slide',
after: onAfter,
timeout: <?php echo $data['pause_time']*1000; ?>,
<?php if($data['pause_hover']) : echo "pause:1"; endif;?>
});
*/
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
<?php if($data['footer_code']) { echo $data['footer_code']; } ?>
<style type="text/css" id="ss">
</style>
<link rel="stylesheet" type="text/css" id="skins">
</head>
<body <?php body_class(); ?>>
<?php
if($boxed && get_post_meta($post->ID, 'pyre_background', true) && get_post_meta($post->ID, 'pyre_en_full_screen', 'no')=='yes'):
?>
<img id="background" src="<?php echo get_post_meta($post->ID, 'pyre_background', true); ?>" class="bgwidth">
<?php
endif;
?>
<div class="container">
<?php if($data['en_top_bar']) { ?>
<div class="top_nav_out">
<div class="top_nav clearfix">
<div class="top_contact clearfix">
<?php
$white_class = ($data['top_bar_scheme'] == 'dark') ? '' : 'white_scheme';
?>
<?php
if($data['contact_email']) {
?>
<div class="contact_email"><a href="mailto:<?php echo $data['contact_email']; ?>"><i class="icon-mail"></i><?php echo $data['contact_email']; ?></a></div>
<?php
}
if($data['contact_phone']) {
?>
<div class="contact_phone"><i class="icon-mobile"></i><?php echo $data['contact_phone']; ?></div>
<?php
}
?>
</div>
<?php
if($data['en_tap_call']) {
?>
<div class="tap_to_call">
<a href="tel:<?php echo $data['contact_phone']; ?>" class="button button_default large" target="_self"><?php echo $data['tap_call_text'] ?></a>
</div>
<?php
}
if($data['en_social_icons_header']) {
?>
<div class="top_social clearfix">
<?php if($data['twitter']) { ?><a href="<?php echo $data['twitter']; ?>" class="twitter" title="<?php _e('Follow on Twitter', 'Creativo');?>" target="_blank" rel="nofollow"><i class="icon-twitter"></i></a> <?php } ?>
<?php if($data['facebook']) { ?><a href="<?php echo $data['facebook']; ?>" class="facebook" title="<?php _e("Follow on Facebook", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-facebook"></i></a><?php } ?>
<?php if($data['instagram']) { ?><a href="<?php echo $data['instagram']; ?>" class="instagram" title="<?php _e("Follow on Instagram", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-instagram"></i></a><?php } ?>
<?php if($data['google']) { ?><a href="<?php echo $data['google']; ?>" class="google" title="<?php _e("Follow on Google+", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-gplus"></i></a><?php } ?>
<?php if($data['linkedin']) { ?><a href="<?php echo $data['linkedin']; ?>" class="linkedin" title="<?php _e("Follow on LinkedIn", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-linkedin"></i></a><?php } ?>
<?php if($data['pinterest']) { ?><a href="<?php echo $data['pinterest']; ?>" class="pinterest" title="<?php _e("Follow on Pinterest", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-pinterest"></i></a><?php } ?>
<?php if($data['flickr']) { ?><a href="<?php echo $data['flickr']; ?>" class="flickr" title="<?php _e("Follow on Flickr", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-flickr"></i></a><?php } ?>
<?php if($data['tumblr']) { ?><a href="<?php echo $data['tumblr']; ?>" class="tumblr" title="<?php _e("Follow on Tumblr", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-tumblr"></i></a><?php } ?>
<?php if($data['youtube']) { ?><a href="<?php echo $data['youtube']; ?>" class="youtube" title="<?php _e("Follow on YouTube", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-youtube-play"></i></a><?php } ?>
<?php if($data['behance']) { ?><a href="<?php echo $data['behance']; ?>" class="behance" title="<?php _e("Follow on Behance", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-behance"></i></a><?php } ?>
<?php if($data['dribbble']) { ?><a href="<?php echo $data['dribbble']; ?>" class="dribbble" title="<?php _e("Follow on Dribbble", "Creativo"); ?>" target="_blank" rel="nofollow"><i class="icon-dribbble"></i></a><?php } ?>
<?php if($data['rss']) { ?><a href="<?php echo $data['rss']; ?>" class="rss" title="<?php _e("Rss", "Creativo"); ?>" target="_blank"><i class="icon-rss"></i></a><?php } ?>
</div>
<?php
}
?>
</div>
</div>
<?php } ?>
<?php
$header_class = ($data['enable_sticky']) ? 'sticky_h' : '';
$header_style = ($data['header_style'] == 'style2') ? 'more_padding' : '';
?>
<div class="full_header <?php echo $header_style; ?>">
<div class="header_area <?php echo $header_class; ?>">
<header class="header_wrap">
<div class="header">
<div class="header_reduced">
<div class="inner clr">
<div id="branding">
<?php
if($data['logo']) {
?>
<div class="logo">
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="70"><a href="<?php echo home_url(); ?>" rel="home" title="<?php bloginfo('name'); ?>"><img src="http://specializednc.com/site/wp-content/uploads/2014/12/fav.png" width="62" height="62"></a></td>
<td width="230"><h6 class="text" style="font-size:16px; text-transform: capitalize;"><a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h6></td>
</tr>
</table>
</div>
<?php
}
else{
?>
<?php
if($data['en_tagline']) {
?>
<div class="tagline"><?php echo get_bloginfo('description') ?></div>
<?php
}
}
?>
</div>
<?php if($data['header_style'] == 'style1') { ?>
<?php
wp_nav_menu(array('walker' => new Arrow_Walker_Nav_Menu, 'theme_location' => 'primary-menu', 'container' => 'nav', 'container_id' => 'navigation','container_class' => 'main_menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'fallback_cb' => 'default_menu_fallback'));
?>
<?php } ?>
<div class="responsive-menu-link">
<i class="icon-menu"></i>
</div>
<?php if( ($data['header_style'] == 'style2') && ( $data['header_banner'] !='' ) ) { ?>
<div class="banner">
<?php echo $data['header_banner']; ?>
</div>
<?php
}
?>
</div>
</div>
</div>
</header>
<?php if($data['header_style'] == 'style2') { ?>
<div class="second_navi">
<div class="second_navi_inner">
<?php
wp_nav_menu(array('walker' => new Arrow_Walker_Nav_Menu, 'theme_location' => 'primary-menu', 'container' => 'nav', 'container_id' => 'navigation','container_class' => 'main_menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'fallback_cb' => 'default_menu_fallback'));
?>
</div>
</div>
<?php
}
wp_nav_menu(array('walker' => new Arrow_Walker_Nav_Menu, 'theme_location' => 'primary-menu','container' => false, 'items_wrap' => '<ul id="responsive_menu">%3$s</ul>'));
?>
</div>
</div>
<?php
if(is_search()){
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php printf( __( 'Search Results for: %s', 'Creativo' ), '<span>' . get_search_query() . '</span>' ); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
}
if(is_category() ){
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php _e('Posts filed under: ','Creativo'); single_cat_title(); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
}
if(is_404()){
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php _e('404 Error ','Creativo'); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
}
if(is_tag() ){
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php _e('Posts tagged with: ','Creativo'); single_cat_title(); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
}
if(get_query_var('portfolio_category')){
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php _e('Projects filed under: ','Creativo'); single_cat_title(); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
}
if(is_author()) {
if(have_posts() ) {
the_post();
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php _e('All posts by: ','Creativo') ; echo get_the_author(); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
rewind_posts();
}
wp_reset_query();
}
if(is_month()) {
if(have_posts() ) {
the_post();
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php printf( __( 'Monthly Archives: %s', 'Creativo' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'Creativo' ) ) ); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
rewind_posts();
}
wp_reset_query();
}
if(((is_page() || is_single() || is_singular('creativo_portfolio')) && get_post_meta($post->ID, 'pyre_show_title', true) == 'yes') && !is_front_page()){
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php the_title(); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
}
if( ( class_exists( 'Woocommerce' ) && is_woocommerce() ) || ( is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) ) {
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php
if(!is_product()) woocommerce_page_title(true);
else the_title();
?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform_woo(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<!--<div id="page-title">
<div class="page_title_inner">
<div class="container clearfix">
<h1>
<?php
if(!is_product()) woocommerce_page_title(true);
else the_title();
?>
</h1>
<?php
woocommerce_breadcrumb(array(
'wrap_before' => '<ul class="breadcrumbs">',
'wrap_after' => '</ul>',
'before' => '<li>',
'after' => '</li>',
'delimiter' => '',
'home' => _x( 'Home', 'breadcrumb', 'woocommerce' ),
));
?>
</div>
</div>
</div> -->
<?php
}
?>
main.js
jQuery(window).load(function(){
var $container = jQuery('.portfolio-wrapper');
$container.isotope();
jQuery('.portfolio-tabs a').click(function(){
jQuery('.portfolio-tabs li').removeClass('active');
jQuery(this).parent('li').addClass('active');
var selector = jQuery(this).attr('data-filter');
$container.isotope({ filter: selector });
return false;
});
jQuery(window).resize(function() {
$container.isotope('reLayout');
});
});
jQuery(document).ready(function($) {
var $window = $(window),
$fullScreenEl = $('.full-screen'),
$body = $('body'),
$top_bar = $('.top_nav_out'),
$header = $('.header'),
$pageTitle = $('.bellow_header');
if( $body.hasClass('page-with-animation') ){
$(".animsition").animsition({
inClass : 'fade-in',
outClass : 'fade-out',
inDuration : 1500,
outDuration : 800,
linkElement : '#navigation ul li a:not([target="_blank"]):not([href^=#])',
// e.g. linkElement : 'a:not([target="_blank"]):not([href^=#])'
loading : true,
loadingParentElement : 'body', //animsition wrapper element
loadingClass : 'animsition-loading',
unSupportCss : [ 'animation-duration',
'-webkit-animation-duration',
'-o-animation-duration'
],
//"unSupportCss" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser.
//The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
overlay : false,
overlayClass : 'animsition-overlay',
overlayParentElement : 'body'
});
}
$(function(){
jQuery('#one_page_navigation a').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
var id = $(this).attr('href');
var header_height = jQuery('.header').outerHeight();
var header_height_admin = jQuery('#wpadminbar').outerHeight();
if(header_height_admin){
header_height = header_height_admin + header_height;
}
if(window.innerWidth < 830 ) {
header_height = 0;
}
//alert(header_height);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length && (id != '#home')) {
$('html,body').animate({ scrollTop: target.offset().top - header_height }, 1000);
return false;
}
else if(target.length && (id == '#home')) {
$('html,body').animate({ scrollTop: 0}, 1000);
return false;
}
}
});
if(window.innerWidth > 830 ){
//jQuery('.mobile-parallax').removeClass('mobile-parallax');
$.stellar({
horizontalScrolling: false,
verticalOffset: 150,
responsive: true
});
}
else {
jQuery('.parallax_class').addClass('mobile-parallax');
}
$fullScreenEl.each( function(){
var element = $(this),
topbarHeight = $top_bar.height(),
adminbarHeight = $('#wpadminbar').height(),
pagetitleHeight = $pageTitle.height(),
innerwrap = $(this).find('.inner_wrap_margins'),
headerHeight = $header.height();
if($header.attr('data-transparent') == 'yes') {
headerHeight = 0;
}
scrHeight = $window.height() - (topbarHeight + adminbarHeight + headerHeight + pagetitleHeight);
if($(window).width() < 959) {
scrHeight = 'auto';
}
else{
element.css({
'height': scrHeight,
});
innerwrap.css({ top: ( scrHeight - innerwrap.outerHeight() ) / 2 + 'px', position: 'relative' })
}
});
$('.clients_carousel').each(function(){
var timeout = $(this).attr('data-timeout');
var clientsNo = $(this).attr('data-visible-items');
var clientsAutoPlay = $(this).attr('data-autoplay');
var dotsNavigation = $(this).attr('data-navigation');
var display_0 = $(this).attr('data-0');
var display_480 = $(this).attr('data-480');
var display_768 = $(this).attr('data-768');
var display_992 = $(this).attr('data-992');
var carouselSpeed = $(this).attr('data-speed');
if( !carouselSpeed ) { carouselSpeed = 400}
if( clientsAutoPlay === 'true' ) { clientsAutoPlay = true; } else { clientsAutoPlay = false; }
if( dotsNavigation === 'yes' ) { dotsNavigation = true; } else { dotsNavigation = false; }
$(this).owlCarousel({
items: parseInt(clientsNo),
margin: 30,
loop: true,
nav: false,
lazyLoad: true,
/*navText: ['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],*/
autoplay: clientsAutoPlay,
autoplayTimeout: timeout,
autoplayHoverPause: true,
autoplaySpeed: 1000,
dragEndSpeed: carouselSpeed,
dotsSpeed: carouselSpeed,
dots: dotsNavigation,
navRewind: true,
responsive:{
0:{ items: Number(display_0) },
480:{ items: parseInt(display_480) },
768:{ items: parseInt(display_768) },
992:{ items: parseInt(display_992) },
1200:{ items: parseInt(clientsNo) }
}
});
});
/*
function sliderParallaxOffset(){
var sliderParallaxOffsetTop = 0;
var headerHeight = 85;
if( $body.hasClass('side-header') || $header.hasClass('transparent-header') ) { headerHeight = 0; }
if( $pageTitle.length > 0 ) {
var pageTitleHeight = $pageTitle.outerHeight();
sliderParallaxOffsetTop = pageTitleHeight + headerHeight;
} else {
sliderParallaxOffsetTop = headerHeight;
}
//if( $slider.next('#header').length > 0 ) { sliderParallaxOffsetTop = 0; }
return sliderParallaxOffsetTop;
}
var $sliderParallaxEl = $('.slider-parallax');
if( $sliderParallaxEl.length > 0 ) {
//if( ( $body.hasClass('device-lg') || $body.hasClass('device-md') ) && !SEMICOLON.isMobile.any() ) {
var parallaxOffsetTop = sliderParallaxOffset(),
parallaxElHeight = $sliderParallaxEl.outerHeight();
if( ( parallaxElHeight + parallaxOffsetTop + 50 ) > $window.scrollTop() ){
if ($window.scrollTop() > parallaxOffsetTop) {
var tranformAmount = (($window.scrollTop()-parallaxOffsetTop) / 1.5 ).toFixed(2);
var tranformAmount2 = (($window.scrollTop()-parallaxOffsetTop) / 7 ).toFixed(2);
$sliderParallaxEl.stop(true,true).transition({ y: tranformAmount },0);
$('.slider-parallax .slider-caption,.ei-title').stop(true,true).transition({ y: -tranformAmount2 },0);
} else {
$('.slider-parallax,.slider-parallax .slider-caption,.ei-title').transition({ y: 0 },0);
}
}
}*/
});
// Tabs
//When page loads...
$('.tabs-wrapper').each(function() {
$(this).find(".tab_content").hide(); //Hide all content
$(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(this).find(".tab_content:first").show(); //Show first tab content
});
//On Click Event
$("ul.tabs li").click(function(e) {
$(this).parents('.tabs-wrapper').find("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(this).parents('.tabs-wrapper').find(".tab_content").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
$(this).parents('.tabs-wrapper').find(activeTab).fadeIn(); //Fade in the active ID content
e.preventDefault();
});
$("ul.tabs li a").click(function(e) {
e.preventDefault();
})
function html_video() {
var videoEl = $('.video-bg:has(video)');
if( videoEl.length > 0 ) {
videoEl.each(function(){
var element = $(this),
elementVideo = element.find('video'),
placeholderImg = element.attr('poster');
outerContainerWidth = element.outerWidth(),
outerContainerHeight = element.outerHeight(), // inaltime .video-bg
innerVideoWidth = elementVideo.outerWidth(),
innerVideoHeight = elementVideo.outerHeight(); //inaltime video tag
var placeholderImg = elementVideo.attr('poster');
/*
if( innerVideoHeight < outerContainerHeight ) {
var videoAspectRatio = innerVideoWidth/innerVideoHeight,
newVideoWidth = outerContainerHeight * videoAspectRatio,
innerVideoPosition = (newVideoWidth - outerContainerWidth) / 2;
elementVideo.css({ 'width': newVideoWidth+'px', 'height': outerContainerHeight+'px', 'left': -innerVideoPosition+'px' });
} else {
var innerVideoPosition = (innerVideoHeight - outerContainerHeight) / 2;
elementVideo.css({ 'width': innerVideoWidth+'px', 'height': innerVideoHeight+'px', 'top': -innerVideoPosition+'px' });
}
*/
if( placeholderImg != '' && window.innerWidth < 830 ) {
element.append('<div class="video-placeholder" style="background-image: url('+ placeholderImg +');"></div>')
}
});
}
}
html_video();
function responsive_nav() {
// responsive menu show
$('.responsive-menu-link').click(function() {
var $body = $('body'),
$nav = $('#responsive_menu');
if ($body.hasClass('opened-nav')) {
$body.removeClass('opened-nav').addClass('closed-nav');
$nav.slideUp(300);
} else {
$body.removeClass('closed-nav').addClass('opened-nav');
$nav.slideDown(300);
}
});
$(window).resize(function(){
if(window.innerWidth > 830 ){
$('#responsive_menu').slideUp(300);
$('body').removeClass('opened-nav').addClass('closed-nav')
}
});
$('#responsive_menu .sf-sub-indicator').addClass('nav-sub-closed');
$('#responsive_menu .sf-sub-indicator').on('click', function(e) {
var $this = $(this);
if ($this.hasClass('nav-sub-closed')) {
$this.parent().siblings('ul').slideDown(450).end().end().removeClass('nav-sub-closed').addClass('nav-sub-opened');
} else {
$this.parent().siblings('ul').slideUp(450).end().end().removeClass('nav-sub-opened').addClass('nav-sub-closed');
}
e.preventDefault();
});
}
responsive_nav();
function counter_cr(){
var $counterElement = jQuery('.counter');
if( $counterElement.length > 0 ){
$counterElement.each(function(){
var element = $(this);
var counterWithComma = $(this).find('span').attr('data-comma');
if( !counterWithComma ) { counterWithComma = false; } else { counterWithComma = true; }
element.appear( function(){
runCounter( element, counterWithComma );
},{accX: 0, accY: -120},'easeInCubic');
});
}
}
function runCounter( counterElement,counterWithComma ){
if( counterWithComma == true ) {
counterElement.find('span').countTo({
formatter: function (value, options) {
value = value.toFixed(options.decimals);
value = value.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return value;
}
});
} else {
counterElement.find('span').countTo();
}
}
counter_cr();
// Scroll to Top
if($(window).width() > 979) {
$(window).scroll(function() {
if($(this).scrollTop() > 450) {
$('#gotoTop').fadeIn();
} else {
$('#gotoTop').fadeOut();
}
});
$('#gotoTop').click(function() {
$('body,html').animate({scrollTop:0},400);
return false;
});
}
jQuery('.flexslider').each(function() {
var this_element = jQuery(this);
var sliderSpeed = 800,
sliderTimeout = parseInt(this_element.attr('data-interval'))*1000,
sliderFx = this_element.attr('data-flex_fx'),
slideshow = true;
if ( (sliderTimeout == 0) || (!sliderTimeout) ) slideshow = false;
this_element.flexslider({
animation: sliderFx,
slideshow: slideshow,
slideshowSpeed: sliderTimeout,
sliderSpeed: sliderSpeed,
smoothHeight: false,
directionNav: true,
controlNav: false
});
});
});
topSocialExpander=function(){
var windowWidth = jQuery(window).width();
if( windowWidth > 767 ) {
jQuery("#style_selector").show();
} else {
jQuery("#style_selector").hide();
}
};
topSocialExpander();
jQuery(window).resize(function() {
topSocialExpander();
});
jQuery(function($){
//region Fixed header
var $w = $(window),
$b = $('body'),
classRow = 'pi-section-w',
сlassFixedRow = 'pi-header-row-fixed',
сlassFixedRows = 'pi-header-rows-fixed',
сlassFixed = '',
classReducible = 'header_reduced',
classReduced = 'pi-row-reduced',
$stickyHeader = $('.sticky_h'),
$reducibleRow = $stickyHeader.find('.' + classReducible),
rowsQuantity = $stickyHeader.find('.' + classRow).length,
reduceTreshold = 400,
stateFixed = 'default',
stateReduce = 'default',
headerTopOffset = 0 ,
windowWidth = jQuery(window).width(),
scrollTop = 0,
header_transparent = jQuery('.header').attr('data-transparent'),
header_height = jQuery('.full_header').outerHeight(),
top_bar_height = jQuery('.top_nav_out').outerHeight();
if(!top_bar_height) { top_bar_height = 1; }
if($stickyHeader.length){
init();
checkHeader();
}
function init(){
scrollTop = $w.scrollTop();
headerTopOffset += $stickyHeader.offset().top;
сlassFixed = rowsQuantity > 1 ? сlassFixedRows : сlassFixedRow;
$w.scroll(function(){
scrollTop = $w.scrollTop();
checkHeader();
});
}
function checkHeader(){
fixHeader();
if($reducibleRow.length) {
reduceHeader();
}
}
function fixHeader(){
if(scrollTop >= top_bar_height){
if(stateFixed == 'default'){
requestAnimationFrame(function(){
$b.addClass(сlassFixed);
if(header_transparent === 'yes') {
jQuery('.header').removeClass('header_transparent');
jQuery('#navigation').removeClass('custom_menu_color');
}
else{
if(windowWidth>=830){
jQuery('.pi-header-row-fixed .full_header').css('padding-bottom', header_height);
}
}
});
stateFixed = 'fixed';
}
//alert( header_bg + header_transparent + header_menu_color );
} else {
if(header_transparent === 'yes') {
jQuery('.header').addClass('header_transparent');
jQuery('#navigation').addClass('custom_menu_color');
}
else{
jQuery('.pi-header-row-fixed .full_header').css('padding-bottom', '');
}
if(stateFixed == 'fixed'){
requestAnimationFrame(function(){
$b.removeClass(сlassFixed);
});
stateFixed = 'default';
}
}
}
function reduceHeader(){
var scrollTopExcess = scrollTop - headerTopOffset;
if (scrollTopExcess > reduceTreshold && stateReduce != 'reduced') {
requestAnimationFrame(function(){
$reducibleRow.addClass(classReduced);
});
stateReduce = 'reduced';
} else if(scrollTopExcess <= reduceTreshold && stateReduce != 'default') {
requestAnimationFrame(function(){
$reducibleRow.removeClass(classReduced);
});
stateReduce = 'default';
}
}
//endregion
});
Dbranes comments:
It looks like the missing part is:
<div class="bellow_header">
<div class="bellow_header_title">
<?php the_title(); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
there are some conditional checks around this that might be corrupted, i.e.
if(((is_page() || is_single() || is_singular('creativo_portfolio'))
&& get_post_meta($post->ID, 'pyre_show_title', true) == 'yes') && !is_front_page()){
You could try play with this conditional and remove part of it, to see what happens (take a backup of the header.php file first).
Dbranes comments:
you could also try out the following debug:
echo "<!--DEBUG:\n\n";
echo "is_page():\n";
var_dump( is_page() );
echo "is_single():";
var_dump( is_single() );
echo "is_singular('creativo_portfolio')\n";
var_dump( is_singular('creativo_portfolio'));
echo "is_front_page():\n";
var_dump( is_front_page() );
echo "pyre_show_title:\n";
var_dump( get_post_meta($post->ID, 'pyre_show_title', true) );
echo '-->';
just above the line with:
if(((is_page() || is_single() || is_singular('creativo_portfolio'))
&& get_post_meta($post->ID, 'pyre_show_title', true) == 'yes') && !is_front_page()){
and post the debug reusults it to us.
Dbranes comments:
ps: it's getting late, so I will check again in the morning.
konigmedia comments:
I believe you are onto something here.. it is sort of working now [[LINK href="http://mswp-temp.movementforlife.com/about/"]]http://mswp-temp.movementforlife.com/about/[[/LINK]]
I commented out the conditional statement and it appears to be showing up now.
However it doesn't pull in the correct title now.. I am pasting what I did below.. can you suggest another way for me to modify this code so the page title is pulled in?
//if(((is_page() || is_single() || is_singular('creativo_portfolio')) && get_post_meta($post->ID, 'pyre_show_title', true) == 'yes') && !is_front_page()){
?>
<div class="bellow_header">
<div class="bellow_header_title">
<?php the_title(); ?>
<?php if(function_exists(bcn_display)):?>
<div class="page-title">
<div class="breadcrumb">
<?php bcn_display(); ?>
</div>
</div>
<?php if($data['header_search_form']) { ?>
<div class="breadcrumb_search_form">
<?php cr_searchform(); ?>
</div>
<?php } ?>
<?php endif; ?>
</div>
</div>
<?php
//}
Dbranes comments:
ps: maybe the global $post object is corrupted, so you might try to use wp_reset_postdata();
for example just above the if-sentence or earlier
... let's continue this in the morning ;-)
konigmedia comments:
Ok.. thank you .. I will look into wp_reset_postdata(); and will check in with you tomorrow.
konigmedia comments:
actually wp_reset_postdata(); worked!!!!!!
maybe you will sleep better knowing you have $50 extra dollars.. :) awarding money now.. thanks much for your help debugging this..
Reigel Gallarde answers:
try debug mode to know the error...
locate wp-config.php in your WordPress folder.
find and set debug mode to true... should be like define( 'WP_DEBUG', true );
let us know what error you see.
konigmedia comments:
Hello,
I set it to DEBUG True.. the errors pasted below.. or you can just look at the website. I left DEBUG True
http://mswp-temp.movementforlife.com/about/
Notice: Use of undefined constant WPLANG - assumed 'WPLANG' in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/LayerSlider/classes/class.km.autoupdate.v3.php on line 74
Notice: Use of undefined constant vc_set_shortcodes_templates_dir - assumed 'vc_set_shortcodes_templates_dir' in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/functions.php on line 38
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/LayerSlider/classes/class.km.autoupdate.v3.php:74) in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/screets-chat/core/fn.init.php on line 164
Notice: Undefined index: query in /home/movelife/movementforlife2.com/htdocs/wp-content/plugins/simple-mobile-url-redirect/mobile-redirect.php on line 134
Notice: Undefined variable: boxed in /home/movelife/movementforlife2.com/htdocs/wp-content/themes/creativo/header.php on line 790
Glenn Tate answers:
You could try this plugin and only have the plugins load on specific pages and/or change the order they load in which might solve the issue.
[[LINK href="https://wordpress.org/plugins/plugin-organizer/"]]https://wordpress.org/plugins/plugin-organizer/[[/LINK]]
konigmedia comments:
Thanks for this suggestion, but I previously explored this method and it is just clunky. That plugin is not so easy to manage and I have to clone this site several time for a multisite install so I was looking for something a little cleaner.