Guest User

Untitled

a guest
Nov 15th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2. $count = 0;
  3. foreach ($weather_data['forecast'] as $forecast_index => $day_forecast) {
  4. if ($count === 5) {
  5. break;
  6. }
  7. ?>
  8. <div class="td-weather-days">
  9. <div class="td-day-<?php echo $forecast_index ?>"><?php echo $day_forecast['day_name'] ?></div>
  10.  
  11. <div class="td-day-degrees">
  12. <span
  13. class="td-degrees-<?php echo $forecast_index ?>"><?php echo $day_forecast['day_temp'][$current_unit] ?></span>
  14. <span class="td-circle">&deg;</span>
  15. </div>
  16. </div>
  17. <?php
  18. $count++;
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment