blob: ceedfd485027cadc195c2571b1f3f1c399d57ebb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
$allselect = ''; $friendsselect = ''; $mineselect = '';
switch($vars['filter']) {
case 'all': $allselect = 'class="selected"';
break;
case 'friends': $friendsselect = 'class="selected"';
break;
case 'mine': $mineselect = 'class="selected"';
break;
case 'open': $openselect = 'class="selected"';
break;
}
$url_start = $vars['url'].'mod/event_calendar/show_events.php?group_guid='.$vars['group_guid'].'&mode='.$vars['mod'].'&start_date='.$vars['start_date'];
?>
<div id="elgg_horizontal_tabbed_nav">
<ul>
<?php
$event_calendar_spots_display = get_plugin_setting('spots_display', 'event_calendar');
if ($event_calendar_spots_display == "yes") {
?>
<li <?php echo $openselect; ?> ><a onclick="javascript:$('#event_list').load('<?php echo $url_start; ?>&filter=open&callback=true'); return false;" href="<?php echo $url_start; ?>&filter=open&callback=true"><?php echo elgg_echo('event_calendar:open'); ?></a></li>
<?php
}
?>
<li <?php echo $allselect; ?> ><a onclick="javascript:$('#event_list').load('<?php echo $url_start; ?>&filter=all&callback=true'); return false;" href="<?php echo $url_start; ?>&filter=all&callback=true"><?php echo elgg_echo('all'); ?></a></li>
<li <?php echo $friendsselect; ?> ><a onclick="javascript:$('#event_list').load('<?php echo $url_start; ?>&filter=friends&callback=true'); return false;" href="<?php echo $url_start; ?>&filter=friends&callback=true"><?php echo elgg_echo('friends'); ?></a></li>
<li <?php echo $mineselect; ?> ><a onclick="javascript:$('#event_list').load('<?php echo $url_start; ?>&filter=mine&callback=true'); return false;" href="<?php echo $url_start; ?>&filter=mine&callback=true"><?php echo elgg_echo('event_calendar:mine'); ?></a></li>
</ul>
</div>
<?php
$event_calendar_region_display = get_plugin_setting('region_display', 'event_calendar');
if ($event_calendar_region_display == 'yes') {
$url_start .= '&filter='.$vars['filter'];
echo elgg_view('event_calendar/region_select',array('url_start'=>$url_start,'region'=>$vars['region']));
}
?>
|