Advertisement
Guest User

Untitled

a guest
Jun 30th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.71 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <!–AQUI VAI O HADER–>
  3.  
  4. <!–banner–>
  5. <div class=”banner-single”>
  6. <div class=”container”>
  7. <div class=”row”>
  8. <div class=”col-md-6 grid-xs-12 grid-sm-12 title-blog”>
  9. <h1></h1>
  10. </div>
  11. </div>
  12. </div>
  13. </div>
  14. <!–final banner—>
  15.  
  16. <!–conteudo—>
  17. <div class=”container”><!–container–>
  18. <div class=”row”><!–row—>
  19.  
  20. <div class=”col-md-8 grid-xs-12 grid-sm-12″ style=”margin-top:5%;”><!–cont–>
  21. <?php
  22.  
  23. $wp_query = new WP_Query();
  24. query_posts( array( ‘category__not_in’ => array(1,),’post_type’ => ‘post’, ‘showposts’ => 3, ‘paged’=>$paged ));
  25. if(have_posts()):
  26. while ($wp_query -> have_posts()) : $wp_query -> the_post();
  27.  
  28. ?>
  29. <div class=”col-md-12 grid-xs-12 grid-sm-12″ style=”margin-bottom:20px;”><!–post–>
  30. <div class=”imagem-blog”><!–imagem—>
  31. <?php
  32. if ( has_post_thumbnail() ) {
  33. the_post_thumbnail();
  34. } ?>
  35. <div class=”title-blog blog-thumb-title” style=”z-index:999;”><!–titulo blog–>
  36. <div class=”blog-link” style=”margin-bottom:10px;”>
  37. <?php the_time (‘d/M’) ?>
  38. </div>
  39. “><?php
  40. foreach((get_the_category()) as $category) {
  41. echo $category->cat_name . ‘ ‘;
  42. }
  43. ?>
  44. </div><!–final titulo blog—>
  45. </div>
  46.  
  47. <div class=”titulo”>
  48. “><?php the_title(); ?>
  49. <hr / class=”risco-face”>
  50. <?php echo my_excerpt(‘medium’); ?>
  51. </div>
  52. </div><!–final post–>
  53. <?php
  54. endwhile;
  55. endif;
  56. ?>
  57. </div><!–final cont–>
  58.  
  59. <div class=”col-md-4 grid-xs-12 grid-sm-12″ style=”margin-top:5%;”><!–sidebar–>
  60.  
  61. <div class=”col-md-12 grid-xs-12 grid-sm-12″><!–pesquisa–>
  62. <div class=”bloco-background”>
  63. <input type=”text” id=”pesquisar” value=”” placeholder=”Pesquisa no site” class=”form-pesq”>
  64. <input type=”submit” class=”button-btnn” value=””>
  65. </div>
  66. </div><!–final pesquisa–>
  67.  
  68. <div class=”col-md-12 grid-xs-12 grid-sm-12″><!–faceboook–>
  69. <div class=”bloco-background”>
  70. <h2>FACEBOOK</h2>
  71. <hr / class=”risco-face”>
  72. <br />
  73. <iframe src=”https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fdivetroperfumesoficial&tabs&width=340&height=214&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId” width=”100%” height=”214″ style=”border:none;overflow:hidden” scrolling=”no” frameborder=”0″ allowTransparency=”true”></iframe>
  74. </div>
  75. </div><!–final facebook–>
  76.  
  77. <div class=”col-md-12 grid-xs-12 grid-sm-12″><!–categorias–>
  78. <div class=”bloco-background”>
  79. <h2>NOSSOS ASSUNTOS FAVORITOS</h2>
  80. <hr / class=”risco-face”>
  81. <br />
  82.  
  83. <?php
  84. $args=array(
  85. ‘orderby’ => ‘name’,
  86. ‘order’ => ‘ASC’,
  87. ‘hide_empty’ => 1,
  88. ‘exclude’ =>array(1,) // desire id
  89. );
  90. $categories=get_categories($args);
  91. foreach($categories as $category) {
  92. echo
  93. term_id ) . ‘” title=”‘ . sprintf( __( “Ver postagens em %s” ), $category->name ) . ‘” ‘ .>. $category->name.
  94. ; }
  95. ?>
  96.  
  97. </div>
  98. </div><!–final categorias–>
  99.  
  100. <div class=”col-md-12 grid-xs-12 grid-sm-12″><!–categorias–>
  101. <div class=”bloco-background”>
  102. <h2>CONTINUE BEM INFORMADO</h2>
  103. <hr / class=”risco-face”>
  104. <br />
  105. <p>Receba todas as novidades com exclusividade.</p>
  106. <input id=”textinput” name=”textinput” type=”text” placeholder=”INSIRA SEU E-MAIL” class=”form-controle input-md”>
  107. <button id=”singlebutton” name=”singlebutton” class=”btnns btn-inverse”>INSCREVER!</button>
  108. </div>
  109. </div><!–final categorias–>
  110.  
  111. </div><!–final sidebar—>
  112.  
  113. </div><!–final row–>
  114. </div><!–final conteinar–>
  115. <!–final conteudo—>
  116. <!–AQUI VAI O FOOOTER–>
  117. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement