Advertisement
Guest User

Unhide a div section when all tickets are sold.

a guest
Dec 9th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. /**
  2. Template Name: Page-sts
  3. *
  4. * This is the template that displays all pages by default.
  5. * Please note that this is the WordPress construct of pages
  6. * and that other 'pages' on your WordPress site will use a
  7. * different template.
  8. *
  9. * @package Circumference Lite
  10. * @since 1.0.4
  11. */
  12.  
  13. get_header(); ?>
  14.  
  15.  
  16.  
  17. <?php get_sidebar( 'top' ); ?>
  18.  
  19. <section id="cir-content-area" role="main">
  20. <div class="container">
  21. <div class="row">
  22. <div class="col-md-8">
  23. <?php while ( have_posts() ) : the_post(); ?>
  24.  
  25. <?php get_template_part( 'content', 'page' ); ?>
  26.  
  27. <?php
  28. // If comments are open or we have at least one comment, load up the comment template
  29. if ( comments_open() || '0' != get_comments_number() ) :
  30. comments_template();
  31. endif;
  32. ?>
  33.  
  34. <?php endwhile; // end of the loop. ?>
  35. </div>
  36.  
  37. <div class="col-md-4">
  38. <aside id="cir-right" role="complementary">
  39. <?php get_sidebar( 'right' ); ?>
  40. </aside>
  41. </div>
  42.  
  43. </div><!-- #main -->
  44. </div><!-- #primary -->
  45. </section>
  46.  
  47. <?php
  48. if($post->EE_Event->espresso_event_status( ) == 'Sold Out' ) { ?>
  49. <style>
  50. #static-scholarship{
  51. display: none;}
  52. </style>
  53. <?php } ?>
  54.  
  55. <?php
  56. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement