Posted By

robnilas on 01/21/17


Tagged


Versions (?)

Show Content by Day


 / Published in: PHP
 

  1. // // CTA Link
  2. // if($_REQUEST['test'] == 'black-friday'){
  3. $ctalink = 'https://www.p3om.com/blowout/';
  4. $day = date('w');
  5. if($day == 0){ // Sun
  6. $countdownText = '<strong>Cyber Monday Deal: <span class="caps">Save $127.85</span> on P3-OM. Sale ends in: <div class="countdown"><span id="clock" class="orange"></span></div></strong>';
  7. }
  8. if($day == 1){ // Mon
  9. $countdownText = '<strong>Cyber Monday Deal: <span class="caps">Save $127.85</span> on P3-OM. Sale ends in: <div class="countdown"><span id="clock" class="orange"></span></div></strong>';
  10. }
  11. if($day == 2){ // Tues
  12. $countdownText = '<strong>Thanksgiving Deal: <span class="caps">Save $127.85</span> on P3-OM. Sale ends in: <div class="countdown"><span id="clock" class="orange"></span></div></strong>';
  13. }
  14. if($day == 3){ // Wed
  15. $countdownText = '<strong>Thanksgiving Deal: <span class="caps">Save $127.85</span> on P3-OM. Sale ends in: <div class="countdown"><span id="clock" class="orange"></span></div></strong>';
  16. }
  17. if($day == 4){ // Thrus
  18. $countdownText = '<strong>Thanksgiving Deal: <span class="caps">Save $127.85</span> on P3-OM. Sale ends in: <div class="countdown"><span id="clock" class="orange"></span></div></strong>';
  19. }
  20. if($day == 5){ // Fri
  21. $countdownText = '<strong>Black Friday Deal: <span class="caps">Save $127.85</span> on P3-OM. Sale ends in: <div class="countdown"><span id="clock" class="orange"></span></div></strong>';
  22. }
  23. if($day == 6){ // Sat
  24. $countdownText = '<strong>Black Friday Deal: <span class="caps">Save $127.85</span> on P3-OM. Sale ends in: <div class="countdown"><span id="clock" class="orange"></span></div></strong>';
  25. }
  26. // }
  27. // else{
  28. // $ctalink = 'https://www.p3om.com/cb/orderpage.php';
  29. // };
  30. // // Headline

Report this snippet  

You need to login to post a comment.