Esempio n. 1
0
function _gmap($container_id)
{
    $zoom_lvl = tesla_go('contact_map_zoom') != '' ? tesla_go('contact_map_zoom') : 4;
    $coords = tesla_go('contact_map_coords') != '' ? tesla_go('contact_map_coords') : "42.60,-41.16";
    $marker_coords = tesla_go('contact_map_marker_coords') != '' ? tesla_go('contact_map_marker_coords') : "";
    $icon = tesla_go('contact_map_icon') != '' ? tesla_go('contact_map_icon') : "";
    return "<script type='text/javascript'>\n          function initialize() {\n            var mapOptions = {\n                      center: new google.maps.LatLng({$coords}),\n                      zoom:{$zoom_lvl},\n                      mapTypeId: google.maps.MapTypeId.ROADMAP\n                    };\n                    var map = new google.maps.Map(document.getElementById('{$container_id}'),mapOptions);\n                    marker = new google.maps.Marker({\n                      map:map,\n                      animation: google.maps.Animation.DROP,\n                      position: new google.maps.LatLng({$marker_coords}),\n                      icon:'{$icon}'\n                    });\n                }\n                google.maps.event.addDomListener(window, 'load', initialize);\n              </script>";
}
Esempio n. 2
0
<?php

$teslawp_footer_company = tesla_go('footer_company');
if (empty($teslawp_footer_company)) {
    $teslawp_footer_company = 'teslathemes';
}
?>
            </div>
        </div><!-- CONTENTS END -->
        
        <?php 
if (is_active_sidebar('footer-sidebar')) {
    ?>
        
        <div class="footerbg"><!-- FOOTER START -->
            <div class="wrapper">
                <div class="footer textcolor5">
                    <?php 
    dynamic_sidebar('footer-sidebar');
    ?>
                </div>
            </div>
        </div><!-- FOOTER END -->
        
        <?php 
}
?>
        
        <div class="lowerfooterbg">
            <div class="wrapper">
                <div class="lowerfooter">
Esempio n. 3
0
function teslawp_footer()
{
    echo tesla_go('append_to_footer');
}
Esempio n. 4
0
<?php

$teslawp_blog_title = tesla_go('blog_title');
if (empty($teslawp_blog_title)) {
    $teslawp_blog_title = __('Blog', 'teslawp');
}
?>

<?php 
get_header();
?>

<?php 
if (is_active_sidebar('blog-sidebar')) {
    echo '<div class="streched">';
}
?>

<?php 
if (have_posts()) {
    ?>
    <div class="titleContainer font1 titlePage"><div class="title">
        <?php 
    if (is_archive()) {
        if (is_category()) {
            single_cat_title(__('Category', 'teslawp') . ': ');
        } elseif (is_tag()) {
            single_tag_title(__('Tag', 'teslawp') . ': ');
        } elseif (is_day()) {
            echo __('Archive', 'teslawp') . ': ' . get_the_date('F jS, Y');
        } elseif (is_month()) {
Esempio n. 5
0
    if (empty($logo)) {
        $logo = get_template_directory_uri() . '/images/logo.png';
        echo '<div class="logo logo_default"><a href="' . home_url() . '"><span class="tesla_blog_name">' . get_bloginfo('name') . '</span><br/><span class="tesla_blog_description">' . get_bloginfo('description') . '</span></a></div>';
    } else {
        echo '<div class="logo"><a href="' . esc_url(home_url()) . '"><img src="' . $logo . '" alt="logo" /></a></div>';
    }
} else {
    $text_color = tesla_go('logo_text_color');
    if (empty($text_color)) {
        $text_color = '#c0392b';
    }
    echo '<div class="logo" style="margin-top:0;"><a href="' . home_url() . '"><span style="line-height:43px;font-family:' . tesla_go('logo_text_font') . ';color:' . $text_color . ';font-size:' . tesla_go('logo_text_size') . 'px;">' . $logo . '</span></a></div>';
}
?>
                <?php 
$teslawp_social = array('facebook' => esc_attr(tesla_go('social_platforms_facebook')), 'twitter' => esc_attr(tesla_go('social_platforms_twitter')), 'google' => esc_attr(tesla_go('social_platforms_google')), 'pinterest' => esc_attr(tesla_go('social_platforms_pinterest')), 'linkedin' => esc_attr(tesla_go('social_platforms_linkedin')), 'dribble' => esc_attr(tesla_go('social_platforms_dribbble')), 'behance' => esc_attr(tesla_go('social_platforms_behance')), 'youtube' => esc_attr(tesla_go('social_platforms_youtube')), 'flickr' => esc_attr(tesla_go('social_platforms_flickr')));
$teslawp_social_values = array_values($teslawp_social);
$teslawp_social_filtered = array_filter($teslawp_social_values);
if (!empty($teslawp_social_filtered)) {
    ?>
                <div class="social">
                    <?php 
    if (!empty($teslawp_social['facebook'])) {
        ?>
                    <a href="<?php 
        echo $teslawp_social['facebook'];
        ?>
" target="_blank">
                        <img src="<?php 
        echo get_template_directory_uri();
        ?>