2013-02-28 17:26:55 +00:00
< script type = " text/javascript " src = " <?php print_unescaped(OC_Helper::linkTo('calendar/js', 'l10n.php'));?> " ></ script >
2013-01-23 19:52:00 +00:00
2013-01-21 22:40:49 +00:00
< div id = " notification " style = " display:none; " ></ div >
2014-01-24 15:09:20 +00:00
< ? php
/*
* if the calendar is link - shared -- display the info
* the existence of #linksharedinfo is also used in calendar.js to determine if the calendar is link-shared
*/
if ( isset ( $_ [ 'link_shared_calendar_name' ])) {
?>
2014-02-09 21:38:44 +00:00
< header id = " linksharedinfo " >
< div class = " header-right " >
< span id = " details " >< ? php p ( $l -> t ( 'shared by %s' , array ( $_ [ 'link_shared_calendar_owner' ]))) ?> </span>
</ div >
< a href = " <?php print_unescaped(link_to('', 'index.php')); ?> " title = " " id = " owncloud " >< img class = " svg "
src = " <?php print_unescaped(image_path('', 'logo-wide.svg')); ?> " alt = " <?php p( $theme->getName ()); ?> "
/></ a >
< div id = " logo-claim " style = " display:none; " >< ? php p ( $theme -> getLogoClaim ()); ?> </div>
< div >< ? php p ( $l -> t ( 'Calendar' )) ?> "<?php p($_['link_shared_calendar_name'])?>"; <?php p($l->t('download or use in your calendar application:'))?> <a class="download-link" href="<?php echo $_['link_shared_calendar_url']; ?>&download"><?php p($l->t('Download'))?></a></div>
</ header >
2014-01-17 00:50:55 +00:00
< ? php } ?>
2013-01-21 22:40:49 +00:00
< div id = " controls " >
< form id = " view " >
2013-11-18 17:14:34 +00:00
< input type = " button " value = " <?php p( $l->t ('Day'));?> " id = " onedayview_radio " />
2013-02-28 15:27:14 +00:00
< input type = " button " value = " <?php p( $l->t ('Week'));?> " id = " oneweekview_radio " />
2013-11-18 17:14:34 +00:00
< input type = " button " value = " <?php p( $l->t ('Month'));?> " id = " onemonthview_radio " />& nbsp ; & nbsp ;
2013-11-18 19:52:28 +00:00
< img id = " loading " src = " <?php print_unescaped(OCP \ Util::imagePath('calendar', 'loading.gif')); ?> " />
2013-01-21 22:40:49 +00:00
</ form >
2014-01-20 01:06:09 +00:00
< ? php
// this is not needed when we're in a publicly link-shared calendar display
if ( ! array_key_exists ( 'link_shared_calendar_name' , $_ )) { ?> <form id="choosecalendar">
2013-02-28 15:27:14 +00:00
<!--< input type = " button " id = " today_input " value = " <?php p( $l->t ( " Today " ));?> " />-->
2013-02-28 17:26:55 +00:00
< button class = " settings generalsettings " title = " <?php p( $l->t ('Settings')); ?> " >< img class = " svg " src = " <?php print_unescaped(OCP \ Util::imagePath('core', 'actions/settings.svg')); ?> " alt = " <?php p( $l->t ('Settings')); ?> " /></ button >
2014-02-10 23:03:33 +00:00
</ form >< ? php } else { ?>
< div class = " settings timezonesettings " >
< label for = " timezone " title = " <?php p( $l->t ('Timezone settings')); ?> " >< ? php p ( $l -> t ( 'Timezone' )) ?> </label>
< select id = " timezone " name = " timezone " >
< ? php
$continent = '' ;
foreach ( $_ [ 'timezones' ] as $timezone ) :
$ex = explode ( '/' , $timezone , 2 ); //obtain continent,city
if ( ! isset ( $ex [ 1 ])) {
$ex [ 1 ] = $ex [ 0 ];
$ex [ 0 ] = " Other " ;
}
if ( $continent != $ex [ 0 ]) :
if ( $continent != " " ) print_unescaped ( '</optgroup>' );
print_unescaped ( '<optgroup label="' . OC_Util :: sanitizeHTML ( $ex [ 0 ]) . '">' );
endif ;
$city = strtr ( $ex [ 1 ], '_' , ' ' );
$continent = $ex [ 0 ];
print_unescaped ( '<option value="' . OC_Util :: sanitizeHTML ( $timezone ) . '"' . ( $_ [ 'timezone' ] == $timezone ? ' selected="selected"' : '' ) . '>' . OC_Util :: sanitizeHTML ( $city ) . '</option>' );
endforeach ; ?>
</ select >
</ div >
< ? php } ?>
2013-01-21 22:40:49 +00:00
< form id = " datecontrol " >
< input type = " button " value = " < " id = " datecontrol_left " />
< input type = " button " value = " " id = " datecontrol_date " />
2013-04-02 17:47:12 +00:00
< input type = " button " value = " <?php p( $l->t ('Today'));?> " id = " datecontrol_today " />
2013-01-21 22:40:49 +00:00
< input type = " button " value = " > " id = " datecontrol_right " />
</ form >
</ div >
< div id = " fullcalendar " ></ div >
< div id = " dialog_holder " ></ div >
2013-11-18 17:14:34 +00:00
< div id = " appsettings " class = " popup topright hidden " ></ div >
2014-01-20 01:06:09 +00:00
< input type = " hidden " name = " allowShareWithLink " id = " allowShareWithLink " value = " <?php p( $_['allowShareWithLink'] ) ?> " />