Advertisement
Guest User

Untitled

a guest
Feb 27th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. <?php
  2. /**
  3. * The loop that displays the coupons.
  4. *
  5. * @package AppThemes
  6. * @subpackage Clipper
  7. *
  8. */
  9. global $clpr_options;
  10. ?>
  11.  
  12. <?php appthemes_before_loop(); ?>
  13.  
  14. <?php if ( have_posts() ) : ?>
  15.  
  16. <?php while ( have_posts() ) : the_post(); ?>
  17.  
  18. <?php appthemes_before_post(); ?>
  19.  
  20. <div <?php post_class('item'); ?> id="post-<?php echo $post->ID; ?>">
  21.  
  22. <div class="item-holder"><article>
  23.  
  24. <div class="store-holder">
  25.  
  26. <div class="store-image">
  27.  
  28. <a href="<?php echo appthemes_get_custom_taxonomy($post->ID, APP_TAX_STORE, 'slug'); ?>"><img height="70" width="100" src="<?php echo appthemes_get_custom_taxonomy($post->ID, APP_TAX_STORE, 'slug'); ?>.png" alt="<?php if (mb_strlen(get_the_title()) >= 87) echo mb_substr(get_the_title(), 0, 87).'...'; else the_title(); ?>" /></a>
  29.  
  30. </div><!-- #store-image2 -->
  31. <div class="extra" id="<?php $terms_as_text = get_the_term_list($post->ID, APP_TAX_TAG);
  32. if (!empty($terms_as_text)) echo strip_tags($terms_as_text); ?>">
  33.  
  34. <?php $terms_as_text = get_the_term_list($post->ID, APP_TAX_TAG);
  35. if (!empty($terms_as_text)) echo strip_tags($terms_as_text); ?> <?php if( get_post_meta( $post->ID, 'clpr_expire_date', true ) ) { ?>
  36.  
  37. <?php } ?>
  38. </div>
  39.  
  40. </div>
  41.  
  42. <div class="item-frame"><?php fl_coupon_code_box(); ?>
  43.  
  44. <div class="item-panel">
  45.  
  46. <div class="clear"></div>
  47.  
  48. <?php appthemes_before_post_title(); ?>
  49.  
  50. <h3><?php if (mb_strlen(get_the_title()) >= 87) echo mb_substr(get_the_title(), 0, 87).'...'; else the_title(); ?></h3>
  51.  
  52. <?php appthemes_after_post_title(); ?>
  53.  
  54. <?php appthemes_before_post_content(); ?>
  55.  
  56. <?php the_content(); ?>
  57.  
  58. <?php appthemes_after_post_content(); ?>
  59.  
  60. </div> <!-- #item-panel -->
  61.  
  62. <div class="clear"></div>
  63.  
  64. <div class="added">
  65. <span><i class="icon-calendar"></i> Erfasst am <script language="javascript">document.write('<?php echo get_the_date(get_option('date_format')); ?>'); </script> <script language="javascript">document.write('<?php echo $expire_date ?>'); </script> </span></div>
  66. <div class="categ"><span><i class="icon-folder-open"></i> Kategorie <?php echo get_the_term_list($post->ID, APP_TAX_CAT, ' ', ', ', ''); ?></span>
  67.  
  68. </div>
  69.  
  70. </div> <!-- #item-frame -->
  71.  
  72. <div class="item-footer">
  73.  
  74. </div></article>
  75. <div class="time-left"><p class="time-left"><i class="icon-bell"></i> Gültig bis <?php if ( clpr_get_expire_date($post->ID) != '' )
  76. {
  77. echo clpr_get_expire_date($post->ID, 'display');
  78. }
  79. else
  80. {
  81. echo 'auf Widerruf';
  82. } ?></p></div>
  83.  
  84.  
  85.  
  86. </div>
  87.  
  88. </div>
  89.  
  90. <?php appthemes_after_post(); ?>
  91.  
  92. <?php endwhile; ?>
  93.  
  94.  
  95. <?php else: ?>
  96.  
  97. <?php appthemes_loop_else(); ?>
  98.  
  99. <div class="blog">
  100.  
  101. <h4><?php _e('Ups... das gibts ja nicht!', 'appthemes'); ?></h4>
  102. <?php _e('Aber leider gibt es keinen aktuellen Gutschein. Wir sind aber schon auf der Suche nach einem neuen Gutschein. Aber wir haben ja jede Menge andere Gutscheine, Rabattaktionen und Sonderangebote für dich, da findest du bestimmt etwas passendes.', 'appthemes'); ?>
  103.  
  104. </div> <!-- #blog -->
  105.  
  106. <?php endif; ?>
  107.  
  108. <?php appthemes_after_loop(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement