function cordillera_favicon()
{
    $url = cordillera_options_array('favicon');
    $icon_link = "";
    if ($url) {
        $type = "image/x-icon";
        if (strpos($url, '.png')) {
            $type = "image/png";
        }
        if (strpos($url, '.gif')) {
            $type = "image/gif";
        }
        $icon_link = '<link rel="icon" href="' . esc_url($url) . '" type="' . esc_attr($type) . '">';
    }
    echo $icon_link;
}
Esempio n. 2
0
?>
<div id="404-page" class="404-page">
<div class="breadcrumb-box">
             <?php 
cordillera_get_breadcrumb();
?>
        </div>
        <div class="blog-detail right-aside">
            <div class="container">
                <div class="row">
                    <div class="col-md-9">
                        <section class="blog-main text-center" role="main">
                            <article class="post-entry text-left">
                                <div class="entry-main">
                                  <?php 
$page_404_content = cordillera_options_array('page_404_content');
echo esc_html($page_404_content);
?>
                                </div>
                            </article>
                        </section>
                    </div>
                    <div class="col-md-3">
                        <aside class="blog-side left text-left">
                            <div class="widget-area">
                               <?php 
get_sidebar('404');
?>
                            </div>
                        </aside>
                    </div>
Esempio n. 3
0
<!--Footer-->
		<footer>
        <?php 
$enable_footer_widget_area = cordillera_options_array('enable_footer_widget_area');
if ($enable_footer_widget_area == 1) {
    ?>
			<div class="footer-widget-area">
				<div class="container">
					<div class="row">
						<div class="col-md-4">
							<?php 
    if (is_active_sidebar("footer_widget_1")) {
        dynamic_sidebar("footer_widget_1");
    }
    ?>
						</div>
						<div class="col-md-4">
				        <?php 
    if (is_active_sidebar("footer_widget_2")) {
        dynamic_sidebar("footer_widget_2");
    }
    ?>
						</div>
						<div class="col-md-4">
							<?php 
    if (is_active_sidebar("footer_widget_3")) {
        dynamic_sidebar("footer_widget_3");
    }
    ?>
						</div>
					</div>
Esempio n. 4
0
function cordillera_custom_scripts()
{
    global $is_IE;
    $theme_info = wp_get_theme();
    wp_enqueue_style('cordillera-bootstrap', get_template_directory_uri() . '/css/bootstrap.css', false, '4.0.3', false);
    wp_enqueue_style('cordillera-font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', false, '4.3.0', false);
    wp_enqueue_style('cordillera-carousel', get_template_directory_uri() . '/css/owl.carousel.css', false, '1.3.2', false);
    wp_enqueue_style('cordillera-prettyPhoto', get_template_directory_uri() . '/css/prettyPhoto.css', false, '3.1.5', false);
    wp_enqueue_style('cordillera-shortcode', get_template_directory_uri() . '/css/shortcode.css', false, $theme_info->get('Version'), false);
    wp_enqueue_style('cordillera-main', get_stylesheet_uri(), array(), $theme_info->get('Version'));
    wp_enqueue_style('montserrat', esc_url('//fonts.googleapis.com/css?family=Open+Sans:300,400,700|Yanone+Kaffeesatz'), false, '', false);
    $header_image = get_header_image();
    $header_background = "";
    $cordillera_custom_css = "";
    if (isset($header_image) && !empty($header_image)) {
        $cordillera_custom_css .= "header#header{background:url(" . $header_image . ") no-repeat;}\n";
    }
    if ('blank' != get_header_textcolor() && '' != get_header_textcolor()) {
        $header_textcolor = ' color:#' . get_header_textcolor() . ';';
        $cordillera_custom_css .= '.logo-box .site-tagline,.logo-box .site-name {' . $header_textcolor . '}';
    }
    $global_color = cordillera_options_array("global_color");
    if (!$global_color) {
        $global_color = "#19cbcf";
    }
    $cordillera_custom_css .= 'a:active,
a:hover {
	color: ' . $global_color . ';
}

mark,
ins {
	background: ' . $global_color . ';
}

::selection {
	background: ' . $global_color . ';
}

::-moz-selection {
	background: ' . $global_color . ';
}

.highlight {
	color: ' . $global_color . ';
}

.search-form input[type="submit"] {
	background-color: ' . $global_color . ';
}

.site-nav > ul > li:hover > a {
	color: ' . $global_color . ';
	border-bottom-color: ' . $global_color . ';
}

.site-nav li > ul > li:hover > a {
	color: ' . $global_color . ';
}

.homepage-slider .carousel-caption button {
	background-color: ' . $global_color . ';
}

.homepage-slider .carousel-caption button:hover {
	background-color: darken(' . $global_color . ', 5%);
}

.homepage-slider .carousel-indicators li.active {
	border-color: ' . $global_color . ';
	color: ' . $global_color . ';
}

.service-box i {
	background-color: ' . $global_color . ';
}

.service-box:hover a {
	color: ' . $global_color . ';
}

.slogan-box {
	border-top-color: ' . $global_color . ';
}

.btn-normal {
	background-color: ' . $global_color . ';
}

.btn-normal:hover {
	background-color: darken(' . $global_color . ', 10%);
}

.btn-normal.line:hover {
	background-color: #fff;
	color: ' . $global_color . ';
}

.testimonial-content {
	border-top-color: ' . $global_color . ';
}

.testimonial-content i {
	color: ' . $global_color . ';
}

.contact-form input[type="submit"] {
	background-color: ' . $global_color . ';
}

.contact-form input[type="submit"]:hover {
	background-color: darken(' . $global_color . ', 5%);
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: ' . $global_color . ';
	color: ' . $global_color . ';
}

footer {
	background-color: ' . $global_color . ';
}

.entry-meta a:hover {
	color: ' . $global_color . ';
}

.entry-title-dec {
	border-bottom-color: ' . $global_color . ';
}

a .entry-title:hover {
	color: ' . $global_color . ';
}

.entry-more:hover {
	color: ' . $global_color . ';
}

.list-pagition a:hover {
	background-color: ' . $global_color . ';
}

.entry-summary a,
.entry-content a {
	color: ' . $global_color . ';
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: ' . $global_color . ';
	color: ' . $global_color . ';
}

.form-submit input {
	background-color: ' . $global_color . ';
}

.form-submit input:hover {
	background-color: darken(' . $global_color . ', 5%);
}

.widget-box a:hover {
	color: ' . $global_color . ';
}

.widget-slider .carousel-indicators li {
	border-color: ' . $global_color . ';
}

.widget-slider .carousel-indicators li.active {
	background-color: ' . $global_color . ';
}

.widget-post .widget-post-box a:hover {
	color: ' . $global_color . ';
}

.widget-box > ul > li,
.widget-post > ul > li {
	border-right-color: ' . $global_color . ';
}
.portfolio-img-box {
background-color: ' . $global_color . ';
}
.bloglist-box {
background-color: ' . $global_color . ';
}
.footer-widget-area .widget-sns i:hover {
color: ' . $global_color . ';
}
';
    $custom_css = cordillera_options_array('custom_css', '.top-banner-caption h1 {
	font-size: 8em;
}

.top-banner-caption h2 {
	font-size: 5em;
}

@media screen and (max-width: 1024px) {
	.top-banner-caption h1 {
		font-size: 6em;
	}
	.top-banner-caption h2 {
		font-size: 4em;
	}
}

@media screen and (max-width: 768px) {
	.top-banner-caption {
		margin-top: 100px;
	}
	.top-banner-caption h1 {
		font-size: 5em;
	}
	.top-banner-caption h2 {
		font-size: 3em;
	}
}

@media screen and (max-width: 640px) {
	.top-banner-caption h1 {
		font-size: 4em;
	}
	.top-banner-caption h2 {
		font-size: 2em;
	}
}');
    $cordillera_custom_css .= $custom_css;
    $cordillera_custom_css = esc_html($cordillera_custom_css);
    wp_add_inline_style('cordillera-main', $cordillera_custom_css);
    wp_enqueue_script('cordillera-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.0.3', false);
    wp_enqueue_script('cordillera-respond', get_template_directory_uri() . '/js/respond.min.js', array('jquery'), '1.4.2', false);
    wp_enqueue_script('cordillera-carousel', get_template_directory_uri() . '/js/owl.carousel.js', array('jquery'), '1.3.2', false);
    wp_enqueue_script('cordillera-modernizr', get_template_directory_uri() . '/js/modernizr.custom.js', array('jquery'), '2.8.2', false);
    wp_enqueue_script('cordillera-prettyPhoto', get_template_directory_uri() . '/js/jquery.prettyPhoto.js', array('jquery'), '3.1.5', true);
    $home_banner_type = cordillera_options_array("home_banner_type", 1);
    if ($home_banner_type == 2 && is_front_page()) {
        wp_enqueue_script('cordillera-bigvideo', get_template_directory_uri() . '/js/jquery.tubular.1.0.js', array('jquery'), '1.0.0', true);
    }
    wp_enqueue_script('cordillera-main', get_template_directory_uri() . '/js/cordillera.js', array('jquery'), $theme_info->get('Version'), true);
    //background video
    $enable_home_page = cordillera_options_array('enable_home_page');
    $home_banner = cordillera_options_array('enable_home_slider');
    if ($is_IE) {
        wp_enqueue_script('cordillera-html5', get_template_directory_uri() . '/js/html5.js', array('jquery'), '', false);
    }
    wp_localize_script('cordillera-main', 'cordillera_params', array('ajaxurl' => admin_url('admin-ajax.php'), 'themeurl' => CORDILLERA_THEME_BASE_URL));
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
Esempio n. 5
0
<?php 
echo $banner;
?>
		
		<header id="header">
			<div class="container">
				<div class="logo-box text-left">
					<?php 
if (cordillera_options_array('logo')) {
    ?>
        <a href="<?php 
    echo esc_url(home_url('/'));
    ?>
">
        <img src="<?php 
    echo esc_url(cordillera_options_array('logo'));
    ?>
" class="site-logo" alt="<?php 
    bloginfo('name');
    ?>
" />
        </a>
        <?php 
} else {
    ?>
         
					<div class="name-box">
                    <?php 
    if ('blank' != get_header_textcolor() && '' != get_header_textcolor()) {
        ?>
						<a href="<?php