Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $term = get_queried_object(); ?>
- <div id="content">
- <div class="content-box">
- <div class="box-c">
- <div class="box-holder">
- <div class="intro-pic">
- <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'">
- </div>
- <div class="store">
- <div class="text-box">
- <h1><?php printf( __( 'Gutscheine und Rabattcodes für %s', APP_TD ), $term->name ); ?></h1>
- <div class="desc"><?php echo term_description(); ?></div>
- </div> <!-- #text-box -->
- <div class="clr"></div>
- </div> <!-- #store -->
- </div> <!-- #box-holder -->
- </div> <!-- #box-c -->
- </div> <!-- #content-box -->
- <div class="content-box">
- <div class="box-c">
- <div class="box-holder">
- <div class="head">
- <?php
- // show all active coupons for this category and setup pagination
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $args = array(
- 'post_type' => APP_POST_TYPE,
- 'post_status' => 'publish',
- APP_TAX_CAT => $term->slug,
- 'ignore_sticky_posts' => 1,
- 'paged' => $paged
- );
- $query = new WP_Query( $args );
- while ( $query->have_posts() ) :
- $query->the_post();
- get_template_part( 'loop', 'coupon' ); // or get_template_part( 'content', 'coupon' );
- endwhile;
- ?>
- <div class="counter"><?php printf( $foundtxt, '<span>'. $wp_query->found_posts . '</span>' ); ?></div>
- </div> <!-- #head -->
- <?php get_template_part( 'loop', 'coupon' ); ?>
- </div> <!-- #box-holder -->
- </div> <!-- #box-c -->
- </div> <!-- #content-box -->
- <div class="content-box">
- <div class="box-c">
- <div class="box-holder">
- <div class="store">
- <div class="text-box">
- <?php echo get_field( 'beschreibung_unten', $term->taxonomy . '_' . $term->term_id ); ?>
- </div> <!-- #text-box -->
- <div class="clr"></div>
- </div> <!-- #store -->
- </div> <!-- #box-holder -->
- </div> <!-- #box-c -->
- </div> <!-- #content-box -->
- </div><!-- #container -->
- <?php wp_reset_query(); ?>
- <?php get_sidebar('coupon'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement