Guest User

Untitled

a guest
Nov 17th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <div>
  2. <div id="popularPress">
  3. <?php foreach ($popular_past_press as $past_press_item): ?>
  4. <div class="pastPressTitle">
  5. <a href="<?php echo url_for('page_past_press_view', $past_press_item) ?>"><?php echo $past_press_item->getTitle(); ?></a>
  6. </div>
  7. <span class="pressdesc"><?php echo $past_press_item->getSummary(); ?></span>
  8. <a href=""><img src="../../uploads/assets/images/pages/past_press/thumbnail/<?php echo $past_press_item->getImageName(); ?>" alt="" /></a>
  9. <?php endforeach; ?>
  10. </div>
  11. <div id="latestPress">
  12. <?php foreach ($latest_past_press as $past_press_item): ?>
  13. <div class="pastPressTitle">
  14. <a href="<?php echo url_for('page_past_press_view', $past_press_item) ?>"><?php echo $past_press_item->getTitle(); ?></a>
  15. </div>
  16. <span class="pressdesc"><?php echo $past_press_item->getSummary(); ?></span>
  17. <a href=""><img src="../../uploads/assets/images/pages/past_press/thumbnail/<?php echo $past_press_item->getImageName(); ?>" alt="" /></a>
  18. <?php endforeach; ?>
  19. </div>
  20. </div>
  21.  
  22. <script type="text/javascript">
  23. $(document).ready(function()
  24. {
  25. $("#latestPressButton").click(function()
  26. {
  27. $("#latestPress").show().siblings().hide();
  28. $(this).addClass("selectedButton").siblings().removeClass("selectedButton");
  29. return false;
  30. });
  31. $("#popularPressButton").click(function()
  32. {
  33. $("#popularPress").show().siblings().hide();
  34. $(this).addClass("selectedButton").siblings().removeClass("selectedButton");
  35. return false;
  36. });
  37. $("#viewAllPressButton").click(function()
  38. {
  39. $("#latestPress").show().siblings().hide();
  40. $(this).addClass("selectedButton").siblings().removeClass("selectedButton");
  41. return false;
  42. });
  43. });
  44. </script>
Add Comment
Please, Sign In to add comment