Exemplo n.º 1
0
 function vce_wp_head()
 {
     //Add favicons
     if ($favicon = vce_get_option_media('favicon')) {
         echo '<link rel="shortcut icon" href="' . esc_url($favicon) . '" type="image/x-icon" />';
     }
     if ($apple_touch_icon = vce_get_option_media('apple_touch_icon')) {
         echo '<link rel="apple-touch-icon" href="' . esc_url($apple_touch_icon) . '" />';
     }
     if ($metro_icon = vce_get_option_media('metro_icon')) {
         echo '<meta name="msapplication-TileColor" content="#ffffff">';
         echo '<meta name="msapplication-TileImage" content="' . esc_url($metro_icon) . '" />';
     }
     //Additional CSS (if user adds his custom css inside theme options)
     $additional_css = trim(preg_replace('/\\s+/', ' ', vce_get_option('additional_css')));
     if (!empty($additional_css)) {
         echo '<style type="text/css">' . $additional_css . '</style>';
     }
     //Google Analytics (tracking)
     if ($ga = vce_get_option('ga')) {
         echo $ga;
     }
 }
Exemplo n.º 2
0
<?php

get_header();
?>

<div id="content" class="container site-content site-404">

	<div id="primary" class="vce-main-content">

		<main id="main" class="main-box main-box-single">
			<?php 
if ($img = vce_get_option_media('404_img')) {
    ?>
				<img src="<?php 
    echo $img;
    ?>
" />
			<?php 
}
?>

			<div class="entry-content page-content">
				<h4><?php 
echo __vce('404_title');
?>
</h4>
				<h1 class="entry-title"><?php 
echo __vce('404_subtitle');
?>
</h1>
Exemplo n.º 3
0
 function vce_get_js_settings()
 {
     global $vce_rtl;
     $js_settings = array();
     $js_settings['sticky_header'] = vce_get_option('sticky_header') ? true : false;
     $js_settings['sticky_header_offset'] = absint(vce_get_option('sticky_header_offset'));
     $js_settings['sticky_header_logo'] = vce_get_option_media('sticky_header_logo');
     $js_settings['logo_retina'] = vce_get_option_media('logo_retina');
     $js_settings['logo_mobile'] = vce_get_option_media('logo_mobile');
     $js_settings['rtl_mode'] = $vce_rtl ? 1 : 0;
     $protocol = is_ssl() ? 'https://' : 'http://';
     $js_settings['ajax_url'] = admin_url('admin-ajax.php', $protocol);
     $js_settings['lay_fa_grid_center'] = vce_get_option('lay_fa_grid_center') ? true : false;
     $js_settings['full_slider_autoplay'] = vce_get_option('lay_fa_big_autoplay') ? absint(vce_get_option('lay_fa_big_autoplay')) * 1000 : false;
     $js_settings['grid_slider_autoplay'] = vce_get_option('lay_fa_grid_autoplay') ? absint(vce_get_option('lay_fa_grid_autoplay')) * 1000 : false;
     $js_settings['fa_big_opacity'] = vce_get_option('lay_fa_big_opc');
     return $js_settings;
 }