Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- <div id="popularPress">
- <?php foreach ($popular_past_press as $past_press_item): ?>
- <div class="pastPressTitle">
- <a href="<?php echo url_for('page_past_press_view', $past_press_item) ?>"><?php echo $past_press_item->getTitle(); ?></a>
- </div>
- <span class="pressdesc"><?php echo $past_press_item->getSummary(); ?></span>
- <a href=""><img src="../../uploads/assets/images/pages/past_press/thumbnail/<?php echo $past_press_item->getImageName(); ?>" alt="" /></a>
- <?php endforeach; ?>
- </div>
- <div id="latestPress">
- <?php foreach ($latest_past_press as $past_press_item): ?>
- <div class="pastPressTitle">
- <a href="<?php echo url_for('page_past_press_view', $past_press_item) ?>"><?php echo $past_press_item->getTitle(); ?></a>
- </div>
- <span class="pressdesc"><?php echo $past_press_item->getSummary(); ?></span>
- <a href=""><img src="../../uploads/assets/images/pages/past_press/thumbnail/<?php echo $past_press_item->getImageName(); ?>" alt="" /></a>
- <?php endforeach; ?>
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function()
- {
- $("#latestPressButton").click(function()
- {
- $("#latestPress").show().siblings().hide();
- $(this).addClass("selectedButton").siblings().removeClass("selectedButton");
- return false;
- });
- $("#popularPressButton").click(function()
- {
- $("#popularPress").show().siblings().hide();
- $(this).addClass("selectedButton").siblings().removeClass("selectedButton");
- return false;
- });
- $("#viewAllPressButton").click(function()
- {
- $("#latestPress").show().siblings().hide();
- $(this).addClass("selectedButton").siblings().removeClass("selectedButton");
- return false;
- });
- });
- </script>
Add Comment
Please, Sign In to add comment