Expression Engine Full Calendar


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. {exp:repeet:get_ids weblog="calendar" parse="inward" calendar="yes"}
  2. {exp:repeet:calendar switch="calendarToday|calendarCell" weblog="calendar" entry_id="{repeet:entry_ids}" interval_field="repeat" include_field="include_dates" exclude_field="exclude_dates" show_future_entries="yes" show_expired="yes"}
  3.  
  4. <table class="calendarBG" cellpadding="0" border="0" cellspacing="0" summary="My Calendar" width="100%">
  5. <tr class="calendarHeader">
  6. <th class="calendarMonthLinks"><div class="float_left"><a href="{previous_path=events/index}">Prev</a></div></th>
  7. <th colspan="5" class="center"><h1>{date format="%F %Y"}</h1></th>
  8. <th class="calendarMonthLinks"><div class="float_right"><a href="{next_path=events/index}">Next</a></div></th>
  9. </tr>
  10. <tr>
  11. {calendar_heading}
  12. <td class="calendarDayHeading">{lang:weekday_short}</td>
  13. {/calendar_heading}
  14. </tr>
  15.  
  16. {calendar_rows }
  17. {row_start}<tr>{/row_start}
  18.  
  19. {if entries}
  20. <td class='{switch}'>
  21. <a href="{day_path=events/description}"><div class="day">{day_number}</div>
  22. {entries}
  23. <div class="title">{title}</div>
  24. {/entries}</a>
  25. </td>
  26. {/if}
  27.  
  28. {if not_entries}
  29. <td class='{switch}'><div class="day">{day_number}</div></td>
  30. {/if}
  31.  
  32. {if blank}
  33. <td class='calendarBlank'> </td>
  34. {/if}
  35.  
  36. {row_end}</tr>{/row_end}
  37. {/calendar_rows}
  38. </table>
  39. {/exp:repeet:calendar}
  40. {/exp:repeet:get_ids}
  41.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.