Advertisement
son86000

single.php

Sep 26th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.53 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. Template name: Header Sub
  6.  
  7. */
  8.  
  9. get_template_part('templates/header','sub'); ?>
  10.  
  11. <div class="section section-blog-interna">
  12.   <div class="container container-bread-crumbs w-container w-hidden-tiny">
  13.     <ul class="ul-breadcrumbs w-clearfix w-list-unstyled">
  14.       <?php wp_custom_breadcrumbs(); ?>
  15.   </div>
  16.   <div class="container container-header-post w-container">
  17.     <div class="header-post-esq">
  18.       <h3 class="h3-categoria-post"><?php the_category(); ?></h3>
  19.       <h1 class="h1-titu-post"><?php the_title(); ?></h1>
  20.       <h3 style="color:gray;font-size:18px;line-height:120%;"><?php the_subtitle(); ?></h3>
  21.     </div>
  22.     <div class="header-post-dir w-hidden-medium w-hidden-small w-hidden-tiny">
  23.       <div class="postagem-header">POSTAGEM: <?php echo get_the_date(); ?></div>
  24.       <div class="comentarios-header"><?php comments_number('0 Comentários', '1 Comentário', '% Comentários' );?></div><a class="share-header" href="#">SHARE</a></div>
  25.   </div>
  26.   <div class="container container-post w-container">
  27.     <img class="main-banner-post" sizes="(max-width: 1100px) 100vw, 1100px"><?php the_post_thumbnail(); ?>
  28.     <div class="box-txt-post">
  29.       <p class="paragraph"><br>
  30.  
  31.         <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  32.           <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  33.               <div class="entry">
  34.               <?php the_content(); ?>
  35.         </div>
  36.  
  37.     </div>
  38.     <?php endwhile; endif; ?></p>
  39.  
  40.     </div>
  41.   </div>
  42. </div>
  43.  
  44. <div class="section section-veja-tambem">
  45.   <div class="container w-container">
  46.     <div class="row-vejamais w-row">
  47.  
  48.       <?php $args = array(
  49.               'numberposts' => 3,
  50.               'category' => 0, 'orderby' => 'date',
  51.               'order' => 'DESC', 'include' => array(),
  52.               'exclude' => array(), 'meta_key' => '',
  53.               'meta_value' =>'', 'post_type' => 'post',
  54.               'suppress_filters' => true
  55.           ); //array('post_type' => 'page', 'showpages', 'numberposts'=>100);
  56.                        $my_posts = get_posts($args);
  57.                  ?>
  58.  
  59.        <?php if($my_posts) : foreach($my_posts as $post) : setup_postdata($post); ?>
  60.  
  61.        <?php //$id_parent = wp_get_post_parent_id(get_the_id());
  62.            //if($id_parent == 27):
  63.        $img_url = get_the_post_thumbnail_url(get_the_id(), 'full');
  64.  
  65.  
  66.       ?>
  67.  
  68.       <div class="col-veja w-col w-col-4 w-col-medium-4">
  69.         <?php the_post_thumbnail(); ?>
  70.         <a class="btn-veja-tambem w-button" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  71.       </div>
  72.  
  73.       <?php  //endif;
  74.       endforeach; endif; ?>
  75.  
  76.     </div>
  77.   </div>
  78. </div>
  79.  
  80.  
  81. <div class="section">
  82.   <div class="container container-form-comentario w-container">
  83.  
  84.    
  85.    
  86.    
  87.  
  88.     <?php if(comments_open() ) : ?>
  89.    
  90.     <div class="form-comentario w-form">
  91.       <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">
  92.         <h2 class="h2-comentario">DEIXE O SEU COMENTÁRIO</h2>
  93.         <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>
  94.         <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">
  95.         <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">
  96.         <input type="submit" class="btn btn-comente w-button" value="comentar">
  97.        
  98.         <?php comment_id_fields(); ?>
  99.         <?php do_action('email-form-2', $post->ID); ?>
  100.        
  101.         <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>
  102.         <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>
  103.       </form>
  104.       <div class="w-form-done w-hidden-main w-hidden-medium w-hidden-small w-hidden-tiny">
  105.         <div>Thank you! Your submission has been received!</div>
  106.       </div>
  107.       <div class="w-form-fail w-hidden-main w-hidden-medium w-hidden-small w-hidden-tiny">
  108.         <div>Oops! Something went wrong while submitting the form.</div>
  109.       </div>
  110.     </div>
  111.   </div>
  112.  
  113.   <?php else : ?>
  114.     <h3>Os comentários estão fechados</h3>
  115.   <?php endif; ?>
  116.  
  117.   <div class="container container-comentarios w-container">
  118.     <h2 class="h2-comentarios"><span class="num-comentarios">0</span> comentários</h2>
  119.     <ul class="ul-comentarios w-list-unstyled">
  120.    
  121.    
  122.       <li class="li-comentarios w-clearfix">
  123.      
  124.         <?php if( have_comments() ) : ?>
  125.         <h3 class="h3-comentarios"></h3>
  126.         <p class="p-comentario"><?php wp_list_comments('avatar_size=64&type=comment'); ?></p>
  127.         <?php endif; ?>
  128.         <div class="data-comentario"></div><input type="submit" class="btn btn-comentario w-button" value="veja mais">
  129.        
  130.       </li>
  131.        
  132.        
  133.  
  134.     </ul>
  135.  
  136.   </div>
  137. </div>
  138.  
  139.  
  140. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement