Advertisement
Guest User

Untitled

a guest
Feb 28th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. <?php $term = get_queried_object(); ?>
  2.  
  3. <div id="content">
  4.  
  5.  
  6. <div class="content-box">
  7.  
  8. <div class="box-c">
  9.  
  10. <div class="box-holder">
  11.  
  12. <div class="intro-pic">
  13. <img id="currentPhoto" src="/intro/<?php echo $term->slug ?>-intro.jpg" width="100%" height="50%" alt="<?php echo $term->name; ?> Online Shop Intro" onerror="this.src='/intro/universal.jpg'">
  14.  
  15. </div>
  16.  
  17. <div class="store">
  18.  
  19. <div class="text-box">
  20.  
  21. <h1><?php printf( __( 'Gutscheine und Rabattcodes für %s', APP_TD ), $term->name ); ?></h1>
  22.  
  23. <div class="desc"><?php echo term_description(); ?></div>
  24.  
  25. </div> <!-- #text-box -->
  26.  
  27. <div class="clr"></div>
  28.  
  29. </div> <!-- #store -->
  30.  
  31. </div> <!-- #box-holder -->
  32.  
  33. </div> <!-- #box-c -->
  34.  
  35. </div> <!-- #content-box -->
  36.  
  37. <div class="content-box">
  38.  
  39. <div class="box-c">
  40.  
  41. <div class="box-holder">
  42.  
  43. <div class="head">
  44.  
  45. <?php
  46. // show all active coupons for this category and setup pagination
  47. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  48. $args = array(
  49. 'post_type' => APP_POST_TYPE,
  50. 'post_status' => 'publish',
  51. APP_TAX_CAT => $term->slug,
  52. 'ignore_sticky_posts' => 1,
  53. 'paged' => $paged
  54. );
  55. $query = new WP_Query( $args );
  56. while ( $query->have_posts() ) :
  57. $query->the_post();
  58. get_template_part( 'loop', 'coupon' ); // or get_template_part( 'content', 'coupon' );
  59. endwhile;
  60.  
  61.  
  62.  
  63. ?>
  64.  
  65. <div class="counter"><?php printf( $foundtxt, '<span>'. $wp_query->found_posts . '</span>' ); ?></div>
  66.  
  67. </div> <!-- #head -->
  68.  
  69. <?php get_template_part( 'loop', 'coupon' ); ?>
  70.  
  71. </div> <!-- #box-holder -->
  72.  
  73. </div> <!-- #box-c -->
  74.  
  75. </div> <!-- #content-box -->
  76.  
  77. <div class="content-box">
  78.  
  79. <div class="box-c">
  80.  
  81. <div class="box-holder">
  82.  
  83. <div class="store">
  84.  
  85. <div class="text-box">
  86.  
  87. <?php echo get_field( 'beschreibung_unten', $term->taxonomy . '_' . $term->term_id ); ?>
  88.  
  89. </div> <!-- #text-box -->
  90.  
  91. <div class="clr"></div>
  92.  
  93. </div> <!-- #store -->
  94.  
  95. </div> <!-- #box-holder -->
  96.  
  97. </div> <!-- #box-c -->
  98.  
  99. </div> <!-- #content-box -->
  100.  
  101. </div><!-- #container -->
  102.  
  103. <?php wp_reset_query(); ?>
  104.  
  105. <?php get_sidebar('coupon'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement