<?php
    header('Content-type: application/json');

    $status = array(
        'type'=>'success',
        'message'=>'Email sent!'
    );

    $name = @trim(stripslashes($_POST['name']));
    $email = @trim(stripslashes($_POST['email']));
    $phone = @trim(stripslashes($_POST['phone']));
    $message = @trim(stripslashes($_POST['message']));


    $email_from = $email;
    $email_to = zee_option('zee_contact_email');

    $body = 'Name: ' . $name . "\n\n" . 'Email: ' . $email . "\n\n" . 'phone: ' . $phone . "\n\n" . 'Message: ' . $message;

    $success = @mail($email_to, 'Contato', $body, 'From: <'.$email_from.'>');

    echo json_encode($status);
    die;
<?php

if (zee_option('zee_single_post_author')) {
    ?>
<div class="author-info">
    <div class="author-avatar">
        <?php 
    //echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentythirteen_author_bio_avatar_size', 74 ) );
    ?>
    </div><!-- .author-avatar -->
    <div class="author-description">
        <h2 class="author-title"><?php 
    printf(__('About %s', ZEETEXTDOMAIN), get_the_author());
    ?>
</h2>
        <p class="author-bio">
            <?php 
    the_author_meta('description');
    ?>
            <a class="author-link" href="<?php 
    echo esc_url(get_author_posts_url(get_the_author_meta('ID')));
    ?>
" rel="author">
                <?php 
    printf(__('View all posts by %s <span class="meta-nav">&rarr;</span>', ZEETEXTDOMAIN), get_the_author());
    ?>
            </a>
        </p>
    </div><!-- .author-description -->
</div><!-- .author-info -->
<?php 
echo get_template_directory_uri();
?>
/assets/js/respond.min.js"></script>
<![endif]-->       
<?php 
zee_favicon();
wp_head();
?>
</head><!--/head-->

<body <?php 
body_class();
?>
>
  <?php 
if (zee_option('zee_theme_layout') == 'boxed') {
    ?>
    <div id="boxed">
  <?php 
}
?>

  <header id="header" class="navbar navbar-inverse navbar-fixed-top" role="banner">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only"><?php 
_e('Toggle navigation', ZEETEXTDOMAIN);
?>
</span>
          <span class="icon-bar"></span>
    function zee_exclude_search_pages($query) {
        if(zee_option('zee_exclude_search_page')==1){
          if ( $query->is_search ) {
            $query->set('post_type', 'post');

        }
        return $query;
    }
}
Exemple #5
0
        $title = __("Blog Archives", ZEETEXTDOMAIN);
    }
    $sub_title = zee_option('zee_blog_subtitle');
} elseif (is_tag()) {
    $title = $return .= __("Tag", ZEETEXTDOMAIN) . " : " . single_tag_title("", false);
} elseif (is_author()) {
    $title = __("Author: ", ZEETEXTDOMAIN);
} elseif (is_search()) {
    $title = __("Search results for", ZEETEXTDOMAIN) . " : " . get_search_query();
} elseif (is_tax('portfolios')) {
    $title = __("Portfolio", ZEETEXTDOMAIN);
} elseif (is_home() and !is_front_page()) {
    $page = get_queried_object();
    if (is_null($page)) {
        $title = zee_option('zee_blog_title');
        $sub_title = zee_option('zee_blog_subtitle');
    } else {
        $ID = $page->ID;
        $title = $page->post_title;
        $sub_title = get_post_meta($ID, 'page_subtitle', true);
    }
} elseif (is_page() && !is_front_page()) {
    $page = get_queried_object();
    $ID = $page->ID;
    $title = $page->post_title;
    $sub_title = get_post_meta($ID, 'page_subtitle', true);
} elseif (is_front_page()) {
    unset($title);
}
echo isset($title) ? '