diff options
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/dir_sort_links.tpl | 1 | ||||
-rwxr-xr-x | view/tpl/event_head.tpl | 3 | ||||
-rwxr-xr-x | view/tpl/events-js.tpl | 12 |
3 files changed, 14 insertions, 2 deletions
diff --git a/view/tpl/dir_sort_links.tpl b/view/tpl/dir_sort_links.tpl index f6d8c3454..2fcf0c13a 100644 --- a/view/tpl/dir_sort_links.tpl +++ b/view/tpl/dir_sort_links.tpl @@ -4,5 +4,6 @@ <li><a href="directory?f=&order=normal">{{$normal}}</a></li> <li><a href="directory?f=&order=reverse">{{$reverse}}</a></li> <li><a href="directory?f=&order=date">{{$date}}</a></li> + <li><a href="directory?f=&pubforums=1">{{$pubforums}}</a></li> </ul> </div> diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index 6f1d2f22c..bcb1e07f6 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -24,10 +24,11 @@ eventClick: function(calEvent, jsEvent, view) { showEvent(calEvent.id); }, - + eventRender: function(event, element, view) { //console.log(view.name); if (event.item['author']['xchan_name']==null) return; + switch(view.name){ case "month": element.find(".fc-event-title").html( diff --git a/view/tpl/events-js.tpl b/view/tpl/events-js.tpl index 69a248512..9812291bf 100755 --- a/view/tpl/events-js.tpl +++ b/view/tpl/events-js.tpl @@ -2,7 +2,17 @@ <div class="generic-content-wrapper-styled"> <h2>{{$title}}</h2> -<div id="new-event-link"><a href="{{$new_event.0}}" >{{$new_event.1}}</a></div> + +<div id="export-event-link"><button class="btn btn-default btn-sm" onclick="exportDate(); return false;" >{{$export.1}}</button></div> +<div id="new-event-link"><button class="btn btn-default btn-sm" onclick="window.location.href='{{$new_event.0}}'; return false;" >{{$new_event.1}}</button></div> + +<script> +function exportDate() { + var moment = $('#events-calendar').fullCalendar('getDate'); + var sT = 'events/' + moment.getFullYear() + '/' + (moment.getMonth() + 1) + '/export'; + window.location.href=sT; +} +</script> <div id="events-calendar"></div> </div> |