Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template name: Header Sub
- */
- get_template_part('templates/header','sub'); ?>
- <div class="section section-blog-interna">
- <div class="container container-bread-crumbs w-container w-hidden-tiny">
- <ul class="ul-breadcrumbs w-clearfix w-list-unstyled">
- <?php wp_custom_breadcrumbs(); ?>
- </div>
- <div class="container container-header-post w-container">
- <div class="header-post-esq">
- <h3 class="h3-categoria-post"><?php the_category(); ?></h3>
- <h1 class="h1-titu-post"><?php the_title(); ?></h1>
- <h3 style="color:gray;font-size:18px;line-height:120%;"><?php the_subtitle(); ?></h3>
- </div>
- <div class="header-post-dir w-hidden-medium w-hidden-small w-hidden-tiny">
- <div class="postagem-header">POSTAGEM: <?php echo get_the_date(); ?></div>
- <div class="comentarios-header"><?php comments_number('0 Comentários', '1 Comentário', '% Comentários' );?></div><a class="share-header" href="#">SHARE</a></div>
- </div>
- <div class="container container-post w-container">
- <img class="main-banner-post" sizes="(max-width: 1100px) 100vw, 1100px"><?php the_post_thumbnail(); ?>
- <div class="box-txt-post">
- <p class="paragraph"><br>
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <div class="entry">
- <?php the_content(); ?>
- </div>
- </div>
- <?php endwhile; endif; ?></p>
- </div>
- </div>
- </div>
- <div class="section section-veja-tambem">
- <div class="container w-container">
- <div class="row-vejamais w-row">
- <?php $args = array(
- 'numberposts' => 3,
- 'category' => 0, 'orderby' => 'date',
- 'order' => 'DESC', 'include' => array(),
- 'exclude' => array(), 'meta_key' => '',
- 'meta_value' =>'', 'post_type' => 'post',
- 'suppress_filters' => true
- ); //array('post_type' => 'page', 'showpages', 'numberposts'=>100);
- $my_posts = get_posts($args);
- ?>
- <?php if($my_posts) : foreach($my_posts as $post) : setup_postdata($post); ?>
- <?php //$id_parent = wp_get_post_parent_id(get_the_id());
- //if($id_parent == 27):
- $img_url = get_the_post_thumbnail_url(get_the_id(), 'full');
- ?>
- <div class="col-veja w-col w-col-4 w-col-medium-4">
- <?php the_post_thumbnail(); ?>
- <a class="btn-veja-tambem w-button" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </div>
- <?php //endif;
- endforeach; endif; ?>
- </div>
- </div>
- </div>
- <div class="section">
- <div class="container container-form-comentario w-container">
- <?php if(comments_open() ) : ?>
- <div class="form-comentario w-form">
- <form class="w-clearfix" data-name="Email Form 2" id="email-form-2" name="email-form-2" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">
- <h2 class="h2-comentario">DEIXE O SEU COMENTÁRIO</h2>
- <label class="label-comentario" for="comentario">Comentário</label><textarea class="txt-area-comentario w-input" data-name="comentario" id="comentario" maxlength="5000" name="comentario"></textarea>
- <input class="input-comentario w-input" data-name="Nome" id="Nome" value="<?php echo $comment_author; ?>" maxlength="256" name="Nome" placeholder="Seu nome*" required="required" type="text">
- <input class="input-comentario w-input" data-name="Email" id="email" value="<?php echo $comment_author_email; ?>" maxlength="256" name="email" placeholder="Seu e-mail*" required="required" type="email">
- <input type="submit" class="btn btn-comente w-button" value="comentar">
- <?php comment_id_fields(); ?>
- <?php do_action('email-form-2', $post->ID); ?>
- <div class="checkbox w-checkbox"><input class="w-checkbox-input" data-name="Checkbox" id="checkbox" name="checkbox" type="checkbox"><label class="label-checkbox w-form-label" for="checkbox">LOREM IPSUM AENEAN SOLL IPSUM AENEAN SOLL</label></div>
- <div class="checkbox w-checkbox"><input class="w-checkbox-input" data-name="Checkbox 2" id="checkbox-2" name="checkbox-2" type="checkbox"><label class="label-checkbox w-form-label" for="checkbox-2">LOREM IPSUM AENEAN SOLL</label></div>
- </form>
- <div class="w-form-done w-hidden-main w-hidden-medium w-hidden-small w-hidden-tiny">
- <div>Thank you! Your submission has been received!</div>
- </div>
- <div class="w-form-fail w-hidden-main w-hidden-medium w-hidden-small w-hidden-tiny">
- <div>Oops! Something went wrong while submitting the form.</div>
- </div>
- </div>
- </div>
- <?php else : ?>
- <h3>Os comentários estão fechados</h3>
- <?php endif; ?>
- <div class="container container-comentarios w-container">
- <h2 class="h2-comentarios"><span class="num-comentarios">0</span> comentários</h2>
- <ul class="ul-comentarios w-list-unstyled">
- <li class="li-comentarios w-clearfix">
- <?php if( have_comments() ) : ?>
- <h3 class="h3-comentarios"></h3>
- <p class="p-comentario"><?php wp_list_comments('avatar_size=64&type=comment'); ?></p>
- <?php endif; ?>
- <div class="data-comentario"></div><input type="submit" class="btn btn-comentario w-button" value="veja mais">
- </li>
- </ul>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement