Replace echo...
parent
9bc3c271d0
commit
186e09d1fa
|
@ -1,4 +1,4 @@
|
|||
<script type="text/javascript" src="<?php echo OC_Helper::linkTo('calendar/js', 'idtype.php');?>?id=<?php p($_['eventid']); ?>"></script>
|
||||
<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('calendar/js', 'idtype.php'));?>?id=<?php p($_['eventid']); ?>"></script>
|
||||
|
||||
|
||||
<ul>
|
||||
|
@ -15,7 +15,7 @@
|
|||
<tr>
|
||||
<th width="75px"><?php p($l->t("Title"));?>:</th>
|
||||
<td>
|
||||
<input type="text" style="width:350px;" size="100" placeholder="<?php p($l->t("Title of the Event"));?>" value="<?php echo isset($_['title']) ? $_['title'] : '' ?>" maxlength="100" name="title"/>
|
||||
<input type="text" style="width:350px;" size="100" placeholder="<?php p($l->t("Title of the Event"));?>" value="<?php p (sset($_['title']) ? $_['title'] : '') ?>" maxlength="100" name="title"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<tr>
|
||||
<th width="75px"><?php p($l->t("Category"));?>:</th>
|
||||
<td>
|
||||
<input id="category" name="categories" type="text" placeholder="<?php p($l->t('Separate categories with commas')); ?>" value="<?php echo isset($_['categories']) ? $_['categories'] : '' ?>">
|
||||
<input id="category" name="categories" type="text" placeholder="<?php p($l->t('Separate categories with commas')); ?>" value="<?php p(isset($_['categories']) ? $_['categories'] : '') ?>">
|
||||
<a class="action edit" id="editCategories" title="<?php p($l->t('Edit categories')); ?>"><img alt="<?php p($l->t('Edit categories')); ?>" src="<?php print_unescaped(OCP\image_path('core','actions/rename.svg'))?>" class="svg action" style="width: 16px; height: 16px;"></a>
|
||||
</td>
|
||||
<?php if(count($_['calendar_options']) > 1) { ?>
|
||||
|
@ -60,7 +60,7 @@
|
|||
<tr>
|
||||
<th width="75px"></th>
|
||||
<td>
|
||||
<input type="checkbox"<?php if($_['allday']) {echo 'checked="checked"';} ?> id="allday_checkbox" name="allday">
|
||||
<input type="checkbox"<?php if($_['allday']) {print_unescaped('checked="checked"');} ?> id="allday_checkbox" name="allday">
|
||||
<label for="allday_checkbox"><?php p($l->t("All Day Event"));?></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -88,7 +88,7 @@
|
|||
<tr>
|
||||
<th width="85px"><?php p($l->t("Location"));?>:</th>
|
||||
<td>
|
||||
<input type="text" style="width:350px;" size="100" placeholder="<?php p($l->t("Location of the Event"));?>" value="<?php echo isset($_['location']) ? $_['location'] : '' ?>" maxlength="100" name="location" />
|
||||
<input type="text" style="width:350px;" size="100" placeholder="<?php p($l->t("Location of the Event"));?>" value="<?php p(isset($_['location']) ? $_['location'] : '') ?>" maxlength="100" name="location" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -96,7 +96,7 @@
|
|||
<tr>
|
||||
<th width="85px" style="vertical-align: top;"><?php p($l->t("Description"));?>:</th>
|
||||
<td>
|
||||
<textarea style="width:350px;height: 150px;" placeholder="<?php p($l->t("Description of the Event"));?>" name="description"><?php echo isset($_['description']) ? $_['description'] : '' ?></textarea>
|
||||
<textarea style="width:350px;height: 150px;" placeholder="<?php p($l->t("Description of the Event"));?>" name="description"><?php p(isset($_['description']) ? $_['description'] : '') ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -221,7 +221,7 @@
|
|||
<tr>
|
||||
<th width="75px"><?php p($l->t('Interval')); ?>:</th>
|
||||
<td>
|
||||
<input style="width:350px;" type="number" min="1" size="4" max="1000" value="<?php echo isset($_['repeat_interval']) ? $_['repeat_interval'] : '1'; ?>" name="interval">
|
||||
<input style="width:350px;" type="number" min="1" size="4" max="1000" value="<?php p(isset($_['repeat_interval']) ? $_['repeat_interval'] : '1'); ?>" name="interval">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -254,6 +254,6 @@
|
|||
<div id="tabs-4">//Attendees</div>-->
|
||||
<?php if($_['eventid'] != 'new' && $_['permissions'] & OCP\PERMISSION_SHARE) { ?>
|
||||
<div id="tabs-5">
|
||||
<?php if($_['eventid'] != 'new') { echo $this->inc('part.share'); } ?>
|
||||
<?php if($_['eventid'] != 'new') { print_unescaped($this->inc('part.share')); } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
|
@ -32,12 +32,12 @@ $defaultcolors = OC_Calendar_Calendar::getCalendarColorOptions();
|
|||
</select>
|
||||
<br><br>
|
||||
<div id="calendar_import_newcalform">
|
||||
<input id="calendar_import_newcalendar_color" class="color-picker" type="hidden" size="6" value="<?php echo substr($calendarcolor,1); ?>">
|
||||
<input id="calendar_import_newcalendar_color" class="color-picker" type="hidden" size="6" value="<?php p(substr($calendarcolor,1)); ?>">
|
||||
<input id="calendar_import_newcalendar" class="" type="text" placeholder="<?php p($l->t('Name of new calendar')); ?>" value="<?php p($guessedcalendarname) ?>"><br>
|
||||
<div id="calendar_import_defaultcolors">
|
||||
<?php
|
||||
foreach($defaultcolors as $color) {
|
||||
echo '<span class="calendar-colorpicker-color" rel="' . $color . '" style="background-color: ' . $color . ';"></span>';
|
||||
print_unescaped('<span class="calendar-colorpicker-color" rel="' . OC_Util::sanitizeHTML($color) . '" style="background-color: ' . OC_Util::sanitizeHTML($color) . ';"></span>');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
|
@ -25,23 +25,23 @@ if(is_array($sharedwithByEvent)) {
|
|||
?>
|
||||
|
||||
<label for="sharewith"><?php p($l->t('Share with:')); ?></label>
|
||||
<input type="text" id="sharewith" data-item-source="<?php echo $eventid; ?>" /><br />
|
||||
<input type="text" id="sharewith" data-item-source="<?php p($eventid); ?>" /><br />
|
||||
|
||||
<strong><?php p($l->t('Shared with')); ?></strong>
|
||||
<ul class="sharedby eventlist">
|
||||
<?php foreach($eventsharees as $sharee): ?>
|
||||
<li data-share-with="<?php echo $sharee['share_with']; ?>"
|
||||
data-item="<?php echo $eventid; ?>"
|
||||
<li data-share-with="<?php p($sharee['share_with']); ?>"
|
||||
data-item="<?php p($eventid); ?>"
|
||||
data-item-type="event"
|
||||
data-permissions="<?php echo $sharee['permissions']; ?>"
|
||||
data-share-type="<?php echo $sharee['share_type']; ?>">
|
||||
<?php echo $sharee['share_with'] . ' (' . ($sharee['share_type'] == OCP\Share::SHARE_TYPE_USER ? 'user' : 'group'). ')'; ?>
|
||||
data-permissions="<?php p($sharee['permissions']); ?>"
|
||||
data-share-type="<?php p($sharee['share_type']); ?>">
|
||||
<?php p($sharee['share_with'] . ' (' . ($sharee['share_type'] == OCP\Share::SHARE_TYPE_USER ? 'user' : 'group'). ')'); ?>
|
||||
<span class="shareactions">
|
||||
<input class="update" type="checkbox" <?php echo ($sharee['permissions'] & OCP\PERMISSION_UPDATE?'checked="checked"':'')?>
|
||||
<input class="update" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_UPDATE?'checked="checked"':''))?>
|
||||
title="<?php p($l->t('Editable')); ?>">
|
||||
<input class="share" type="checkbox" <?php echo ($sharee['permissions'] & OCP\PERMISSION_SHARE?'checked="checked"':'')?>
|
||||
<input class="share" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_SHARE?'checked="checked"':''))?>
|
||||
title="<?php p($l->t('Shareable')); ?>">
|
||||
<input class="delete" type="checkbox" <?php echo ($sharee['permissions'] & OCP\PERMISSION_DELETE?'checked="checked"':'')?>
|
||||
<input class="delete" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_DELETE?'checked="checked"':''))?>
|
||||
title="<?php p($l->t('Deletable')); ?>">
|
||||
<img src="<?php p(OCP\Util::imagePath('core', 'actions/delete.svg')); ?>" class="svg action delete"
|
||||
title="<?php p($l->t('Unshare')); ?>">
|
||||
|
@ -50,24 +50,24 @@ if(is_array($sharedwithByEvent)) {
|
|||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php if(!$eventsharees) {
|
||||
echo '<div id="sharedWithNobody">' . $l->t('Nobody') . '</div>';
|
||||
print_unescaped('<div id="sharedWithNobody">' . OC_Util::sanitizeHTML($l->t('Nobody')) . '</div>');
|
||||
} ?>
|
||||
<br />
|
||||
<strong><?php p($l->t('Shared via calendar')); ?></strong>
|
||||
<ul class="sharedby calendarlist">
|
||||
<?php foreach($calsharees as $sharee): ?>
|
||||
<li data-share-with="<?php echo $sharee['share_with']; ?>"
|
||||
data-item="<?php echo $calid; ?>"
|
||||
<li data-share-with="<?php p($sharee['share_with']); ?>"
|
||||
data-item="<?php p($calid); ?>"
|
||||
data-item-type="calendar"
|
||||
data-permissions="<?php echo $sharee['permissions']; ?>"
|
||||
data-share-type="<?php echo $sharee['share_type']; ?>">
|
||||
<?php echo $sharee['share_with'] . ' (' . ($sharee['share_type'] == OCP\Share::SHARE_TYPE_USER ? 'user' : 'group'). ')'; ?>
|
||||
data-permissions="<?php p($sharee['permissions']); ?>"
|
||||
data-share-type="<?php p($sharee['share_type']); ?>">
|
||||
<?php p($sharee['share_with'] . ' (' . ($sharee['share_type'] == OCP\Share::SHARE_TYPE_USER ? 'user' : 'group'). ')'); ?>
|
||||
<span class="shareactions">
|
||||
<input class="update" type="checkbox" <?php echo ($sharee['permissions'] & OCP\PERMISSION_UPDATE?'checked="checked"':'')?>
|
||||
<input class="update" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_UPDATE?'checked="checked"':''))?>
|
||||
title="<?php p($l->t('Editable')); ?>">
|
||||
<input class="share" type="checkbox" <?php echo ($sharee['permissions'] & OCP\PERMISSION_SHARE?'checked="checked"':'')?>
|
||||
<input class="share" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_SHARE?'checked="checked"':''))?>
|
||||
title="<?php p($l->t('Shareable')); ?>">
|
||||
<input class="delete" type="checkbox" <?php echo ($sharee['permissions'] & OCP\PERMISSION_DELETE?'checked="checked"':'')?>
|
||||
<input class="delete" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_DELETE?'checked="checked"':''))?>
|
||||
title="<?php p($l->t('Deletable')); ?>">
|
||||
<img src="<?php p(OCP\Util::imagePath('core', 'actions/delete.svg')); ?>" class="svg action delete"
|
||||
title="<?php p($l->t('Unshare')); ?>">
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<tr>
|
||||
<th width="75px"><?php p($l->t("Title"));?>:</th>
|
||||
<td>
|
||||
<?php echo isset($_['title']) ? $_['title'] : '' ?>
|
||||
<?php p(isset($_['title']) ? $_['title'] : '') ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -22,11 +22,11 @@
|
|||
if(count($_['categories']) == 0 || $_['categories'] == '') {
|
||||
p($l->t('No categories selected'));
|
||||
}else{
|
||||
echo '<ul>';
|
||||
print_unescaped('<ul>');
|
||||
foreach($_['categories'] as $categorie) {
|
||||
echo '<li>' . $categorie . '</li>';
|
||||
print_unescaped('<li>' . OC_Util::sanitizeHTML($categorie) . '</li>');
|
||||
}
|
||||
echo '</ul>';
|
||||
print_unescaped('</ul>');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
@ -34,7 +34,7 @@
|
|||
<td>
|
||||
<?php
|
||||
$calendar = OC_Calendar_App::getCalendar($_['calendar'], false, false);
|
||||
echo OCP\Util::sanitizeHTML($calendar['displayname']) . ' ' . $l->t('of') . ' ' . $calendar['userid'];
|
||||
p($calendar['displayname']) . ' ' . $l->t('of') . ' ' . $calendar['userid'];
|
||||
?>
|
||||
</td>
|
||||
<th width="75px"> </th>
|
||||
|
@ -58,7 +58,7 @@
|
|||
<tr>
|
||||
<th width="75px"></th>
|
||||
<td>
|
||||
<input type="checkbox"<?php if($_['allday']) {echo 'checked="checked"';} ?> id="allday_checkbox" name="allday" disabled="disabled">
|
||||
<input type="checkbox"<?php if($_['allday']) {print_unescaped('checked="checked"');} ?> id="allday_checkbox" name="allday" disabled="disabled">
|
||||
<?php p($l->t("All Day Event"));?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -66,7 +66,7 @@
|
|||
<th width="75px"><?php p($l->t("From"));?>:</th>
|
||||
<td>
|
||||
<?php p($_['startdate']);?>
|
||||
<?php echo (!$_['allday'])?$l->t('at'):''; ?>
|
||||
<?php p((!$_['allday'])?$l->t('at'):''); ?>
|
||||
<?php p($_['starttime']);?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -74,7 +74,7 @@
|
|||
<th width="75px"><?php p($l->t("To"));?>:</th>
|
||||
<td>
|
||||
<?php p($_['enddate']);?>
|
||||
<?php echo (!$_['allday'])?$l->t('at'):''; ?>
|
||||
<?php p((!$_['allday'])?$l->t('at'):''); ?>
|
||||
<?php p($_['endtime']);?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -86,7 +86,7 @@
|
|||
<tr>
|
||||
<th width="85px"><?php p($l->t("Location"));?>:</th>
|
||||
<td>
|
||||
<?php echo isset($_['location']) ? $_['location'] : '' ?>
|
||||
<?php p(isset($_['location']) ? $_['location'] : '') ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -94,7 +94,7 @@
|
|||
<tr>
|
||||
<th width="85px" style="vertical-align: top;"><?php p($l->t("Description"));?>:</th>
|
||||
<td>
|
||||
<?php echo isset($_['description']) ? $_['description'] : '' ?></textarea>
|
||||
<?php p(isset($_['description']) ? $_['description'] : '') ?></textarea>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -218,7 +218,7 @@
|
|||
<tr>
|
||||
<th width="75px"><?php p($l->t('Interval')); ?>:</th>
|
||||
<td>
|
||||
<?php echo isset($_['repeat_interval']) ? $_['repeat_interval'] : '1'; ?>
|
||||
<?php p(isset($_['repeat_interval']) ? $_['repeat_interval'] : '1'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue