Advertisement
Konark

Untitled

Jan 8th, 2020
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  
  5. * The main template file.
  6.  
  7. *
  8.  
  9. * This is the most generic template file in a WordPress theme
  10.  
  11. * and one of the two required files for a theme (the other being style.css).
  12.  
  13. * It is used to display a page when nothing more specific matches a query.
  14.  
  15. * E.g., it puts together the home page when no home.php file exists.
  16.  
  17. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  18.  
  19. *
  20.  
  21. * @package web2feel
  22.  
  23. */
  24.  
  25.  
  26.  
  27. get_header(); ?>
  28.  
  29.  
  30.  
  31. <?php get_template_part( 'inc/carousal' ); ?>
  32.  
  33.  
  34.  
  35. <div class="container"><div class="row">
  36.  
  37. <div id="primary" class="content-area col-md-8">
  38.  
  39.  
  40.  
  41. <main id="main" class="site-main row" role="main">
  42.  
  43. <div style="margin-bottom: 10px;"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  44. <!-- Вверху поста -->
  45. <ins class="adsbygoogle"
  46. style="display:block"
  47. data-ad-client="ca-pub-5441670539965759"
  48. data-ad-slot="8152798020"
  49. data-ad-format="auto"></ins>
  50. <script>
  51. (adsbygoogle = window.adsbygoogle || []).push({});
  52. </script>
  53. </div>
  54.  
  55.  
  56. <div class="sub-feature col-md-12">
  57.  
  58. <h1 class="main-heading">Блог по урокам Adobe Photoshop и Lightroom</h1>
  59. <div class="latest-posts">
  60.  
  61. <?php if ( have_posts() ) : ?>
  62.  
  63.  
  64.  
  65. <?php /* Start the Loop */ ?>
  66.  
  67. <?php while ( have_posts() ) : the_post(); ?>
  68.  
  69.  
  70.  
  71. <?php
  72.  
  73. /* Include the Post-Format-specific template for the content.
  74.  
  75. * If you want to overload this in a child theme then include a file
  76.  
  77. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  78.  
  79. */
  80.  
  81. get_template_part( 'content', get_post_format() );
  82.  
  83. ?>
  84.  
  85.  
  86.  
  87. <?php endwhile; ?>
  88.  
  89. <div class="clearfix"></div>
  90. </div>
  91. <div class="col-md-12">
  92.  
  93. <?php bootstrap_pagination();?>
  94.  
  95. </div>
  96.  
  97.  
  98.  
  99.  
  100.  
  101. <?php else : ?>
  102.  
  103.  
  104.  
  105. <?php get_template_part( 'no-results', 'index' ); ?>
  106.  
  107.  
  108.  
  109. <?php endif; ?>
  110.  
  111. </div>
  112.  
  113. </main><!-- #main -->
  114.  
  115. </div><!-- #primary -->
  116.  
  117.  
  118.  
  119. <?php get_sidebar(); ?>
  120.  
  121. </div></div>
  122.  
  123. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement