Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Convert applicable characters to html entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus committed Mar 10, 2024
1 parent e2f8fbc commit d9168d3
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 15 deletions.
4 changes: 2 additions & 2 deletions templates/ajax/editor_band_options.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<?php while ($bands->hasCurrent()) : ?>
<?php $band = $bands->getCurrent(); ?>
<?php if ($this->get('bandId')->get() == $band->getId()->get()) : ?>
<option value="<?=$band->getId()?>" selected><?=$band->getName()?></option>
<option value="<?=$band->getId()?>" selected><?=$band->getName()->filter()?></option>
<?php else : ?>
<option value="<?=$band->getId()?>"><?=$band->getName()?></option>
<option value="<?=$band->getId()?>"><?=$band->getName()->filter()?></option>
<?php endif; ?>
<?php $bands->pointAtNext(); ?>
<?php endwhile; ?>
4 changes: 2 additions & 2 deletions templates/ajax/editor_city_venue.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<option value="0"></option>
<?php while ($cities->hasCurrent()) : ?>
<?php $cityId = $cities->getCurrent()->getId()->get(); ?>
<?php $cityName = $cities->getCurrent()->getName()->get(); ?>
<?php $cityName = $cities->getCurrent()->getName()->filter()->get(); ?>
<?php if ($this->get('cityId')->get() == $cities->getCurrent()->getId()->get()) : ?>
<?=printf(
'<option value="%1$u" selected="selected">%2$s</option>',
Expand All @@ -26,7 +26,7 @@
<select id="venue_id" name="venue_id">
<?php while ($venues->hasCurrent()) : ?>
<?php $venueId = $venues->getCurrent()->getId()->get(); ?>
<?php $venueName = $venues->getCurrent()->getName()->get(); ?>
<?php $venueName = $venues->getCurrent()->getName()->filter()->get(); ?>
<?php if ($this->get('venueId')->get() == $venues->getCurrent()->getId()->get()) : ?>
<?=printf(
'<option value="%1$u" selected="selected">%2$s</option>',
Expand Down
4 changes: 2 additions & 2 deletions templates/ajax/editor_lineup.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
<select name="band_id[]" id="band_id_<?=$lineupIndex?>" autocomplete="off" class="edit_band_id"></select>
<label for="input_band_new_name_<?=$lineupIndex?>" class="screen_reader_only"></label>
<input type="text"
value="<?=$gig->getBandNewName()?>"
value="<?=$gig->getBandNewName()->filter()?>"
id="input_band_new_name_<?=$lineupIndex?>"
class="edit_field"
placeholder="Name of the new band">
<label for="input_additional_information_<?=$lineupIndex?>" class="screen_reader_only">Addition</label>
<input type="text"
value="<?=$gig->getAdditionalInformation()?>"
value="<?=$gig->getAdditionalInformation()->filter()?>"
id="input_additional_information_<?=$lineupIndex?>"
class="edit_field"
placeholder="Additional information">
Expand Down
1 change: 1 addition & 0 deletions templates/main/band.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<?php $data = $this->get('bands')->getCurrent(); ?>
<form action="" class="rm_table_row">
<?=$data->getName()
->filter()
->asTableInput(
RmString::new('name'),
RmString::new('Name'),
Expand Down
1 change: 1 addition & 0 deletions templates/main/city.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<?php $data = $this->get('cities')->getCurrent(); ?>
<form action="" class="rm_table_row">
<?=$data->getName()
->filter()
->asTableInput(
RmString::new('name'),
RmString::new('Name'),
Expand Down
4 changes: 2 additions & 2 deletions templates/main/editor.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<input type="text"
name="name"
id="name"
value="<?=$this->get('event')->getName()?>"
value="<?=$this->get('event')->getName()->filter()?>"
class="edit_text"
placeholder="Name of the concert">
</div>
Expand Down Expand Up @@ -42,7 +42,7 @@ class="edit_length"
name="url"
id="url"
class="edit_text"
value="<?=$this->get('event')->getUrl()?>"
value="<?=$this->get('event')->getUrl()->filter()?>"
placeholder="Link to more information"
required>
</div>
Expand Down
8 changes: 4 additions & 4 deletions templates/main/event.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<?php $event = $this->get('events')->getCurrent(); ?>
<form action="" class="rm_table_row<?=$event->getIsCanceled()->get() ? ' canceled' : ''?>">
<?=$event->getFormattedDate()->asTableCell() ?>
<?=$event->getName()->asTableCell() ?>
<?=$event->getFormattedVenueAndCityName()->asTableCell()?>
<?=$event->getBandList()->asTableCell()?>
<?=$event->getUrl()->asWwwUrl()->asTableCell()?>
<?=$event->getName()->filter()->asTableCell() ?>
<?=$event->getFormattedVenueAndCityName()->filter()->asTableCell()?>
<?=$event->getBandList()->filter()->asTableCell()?>
<?=$event->getUrl()->filter()->asWwwUrl()->asTableCell()?>
<?=$event->getId()->asHiddenInput(RmString::new('id'))?>
<?=$event->getDate()->getFormatted()->asHiddenInput(RmString::new('date'))?>
<?=RmString::new('events')
Expand Down
4 changes: 3 additions & 1 deletion templates/main/venue.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
<?php $data = $this->get('venues')->getCurrent(); ?>
<form action="" class="rm_table_row">
<?=$data->getName()
->filter()
->asTableInput(
RmString::new('name'),
RmString::new('Name'),
$data->getId()
)->asTableCell(RmString::new('venue_name'))
?>
<?=$data->getCityName()->asTableCell() ?>
<?=$data->getCityName()->filter()->asTableCell() ?>
<?=$data->getUrlDefault()
->filter()
->asTableInput(
RmString::new('url_default'),
RmString::new('Default Url'),
Expand Down
2 changes: 1 addition & 1 deletion templates/nav_secondary/venue.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<label for="filter_by">City:</label> <select id="filter_by" name="filter_by">
<option value="">&nbsp;</option>
<?php while ($this->get('cities')->hasCurrent()) : ?>
<?php $currentCity = $this->get('cities')->getCurrent()->getName()->get() ?>
<?php $currentCity = $this->get('cities')->getCurrent()->getName()->filter()->get() ?>
<?php if ($currentCity == $this->get('filterByParameter')) : ?>
<option value="<?=$currentCity?>" selected="selected"><?=$currentCity?></option>
<?php else : ?>
Expand Down
2 changes: 1 addition & 1 deletion templates/ruhrpottmetaller-editor.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</main>
<div id="spacer"></div>
<footer>
Ruhrpottmetaller-Editor (c) Klaus Thorres 2023.
Ruhrpottmetaller-Editor (c) Klaus Thorres 2024.
This Software is provided under the <a href="?show=license">MIT License</a>.
</footer>
</body>
Expand Down

0 comments on commit d9168d3

Please sign in to comment.