Replace PHP short tags

Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-24 12:42:17 +00:00
parent ff8516665c
commit 9728aefc07
41 changed files with 359 additions and 359 deletions

View File

@@ -1,47 +1,47 @@
<!DOCTYPE html>
<html lang="fr">
<? include('blocks/d.head.html'); ?>
<?php include('blocks/d.head.html'); ?>
<body>
<? include('blocks/d.nav.html'); ?>
<?php include('blocks/d.nav.html'); ?>
<section>
<? if(isset($new) AND $new==1) { ?>
<?php if(isset($new) AND $new==1) { ?>
<form class="form" action="<?=$config['rel_root_folder']?>blog/new" method="post">
<? }
<?php }
else { ?>
<form class="form" action="<?=$config['rel_root_folder']?>blog/<?=$blogArticle->permalink?>/edit" method="post">
<? } ?>
<?php } ?>
<h1>
<select name="locale" id="locale">
<? foreach($locales->objs as $locale) { ?>
<?php foreach($locales->objs as $locale) { ?>
<option <?=$blogArticle->locale==$locale->name?'selected':''?> value="<?=$locale->name?>"><?=$locale->display_name?></option>
<? } ?>
<?php } ?>
</select>
<input type="text" value="<?=$blogArticle->name?>" name="name" id="name" placeholder="Titre">
</h1>
<? if(isset($error) AND $error=="permalink") { ?>
<?php if(isset($error) AND $error=="permalink") { ?>
<p style="color: red;">L'URL sélectionnée est déjà prise.</p>
<? } ?>
<?php } ?>
<textarea rows="30" name="content" id="content" placeholder="Contenu de l'article"><?=$blogArticle->content?></textarea>
<? if(isset($new) AND $new==1) { ?>
<?php if(isset($new) AND $new==1) { ?>
<div id="permalink_container">
<label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>blog/</label>
<input type="text" name="permalink" id="permalink" placeholder="URL" required>
</div>
<? } ?>
<?php } ?>
<label for="is_commentable">
<input type="checkbox" name="is_commentable" id="is_commentable"
<? if($blogArticle->is_commentable == 't') { ?>
<?php if($blogArticle->is_commentable == 't') { ?>
checked
<? } ?>
<?php } ?>
/>
<span>Autoriser les commentaires</span>
</label>
@@ -69,7 +69,7 @@ $( "#name" ).change(function() {
});
</script>
<? include('blocks/d.footer.html'); ?>
<?php include('blocks/d.footer.html'); ?>
</body>
</html>