2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('blogEditForm'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('blogEditBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
|
|
|
'ico' => 'left',
|
|
|
|
'value' => 'Retour'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3 offset5">
|
|
|
|
<?php echo template::button('blogEditDraft', [
|
|
|
|
'uniqueSubmission' => true,
|
|
|
|
'value' => 'Enregistrer en brouillon'
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::hidden('blogEditState', [
|
|
|
|
'value' => true
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::submit('blogEditSubmit', [
|
|
|
|
'value' => 'Publier'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Informations générales</h4>
|
|
|
|
<div class="row">
|
2020-04-23 19:55:47 +02:00
|
|
|
<div class="col12">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::text('blogEditTitle', [
|
|
|
|
'label' => 'Titre',
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'title'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-04-23 19:55:47 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::file('blogEditPicture', [
|
|
|
|
'help' => 'Taille optimale de l\'image de couverture : ' . ((int) substr($this->getData(['theme', 'site', 'width']), 0, -2) - (20 * 2)) . ' x 350 pixels.',
|
|
|
|
'label' => 'Image de couverture',
|
|
|
|
'type' => 1,
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'picture'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-04-23 19:55:47 +02:00
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('blogEditPictureSize', $module::$pictureSizes, [
|
|
|
|
'label' => 'Largeur de l\'image',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'pictureSize'])
|
|
|
|
]); ?>
|
2018-11-25 17:01:28 +01:00
|
|
|
</div>
|
2020-04-23 19:55:47 +02:00
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('blogEditPicturePosition', $module::$picturePositions, [
|
|
|
|
'label' => 'Position',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'picturePosition']),
|
|
|
|
'help' => 'Le texte de l\'article est adapté autour de l\'image'
|
|
|
|
]); ?>
|
2020-06-10 16:32:33 +02:00
|
|
|
</div>
|
2020-04-23 19:55:47 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2020-06-10 16:32:33 +02:00
|
|
|
<div class="col6">
|
2018-11-25 17:01:28 +01:00
|
|
|
<?php echo template::checkbox('blogEditHidePicture', true, 'Masquer l\'image dans l\'article', [
|
|
|
|
'checked' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'hidePicture'])
|
|
|
|
]); ?>
|
2020-06-10 16:32:33 +02:00
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo template::textarea('blogEditContent', [
|
|
|
|
'class' => 'editorWysiwyg',
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'content'])
|
|
|
|
]); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Options de publication</h4>
|
|
|
|
<?php echo template::select('blogEditUserId', $module::$users, [
|
|
|
|
'label' => 'Auteur',
|
2020-07-02 19:48:47 +02:00
|
|
|
'selected' => $this->getUser('id'),
|
|
|
|
'disabled' => $this->getUser('group') !== self::GROUP_ADMIN ? true : false
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
<?php echo template::date('blogEditPublishedOn', [
|
2019-04-07 15:40:02 +02:00
|
|
|
'help' => 'L\'article n\'est visible qu\'après la date de publication prévue.',
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Date de publication',
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'publishedOn'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
2018-11-22 21:07:53 +01:00
|
|
|
<h4>Options avancées</h4>
|
2020-07-02 19:48:47 +02:00
|
|
|
<?php echo template::select('blogEditlength', $module::$longueur_comment,[
|
|
|
|
'help' => 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, caractères de mise en forme html inclus.',
|
|
|
|
'label' => 'Nombre maximum de caractères pour chaque commentaire',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'maxlengthcomment'])
|
|
|
|
]); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::checkbox('blogEditCloseComment', true, 'Fermer les commentaires', [
|
|
|
|
'checked' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'closeComment'])
|
|
|
|
]); ?>
|
2019-12-04 11:31:24 +01:00
|
|
|
<?php echo template::checkbox('blogEditMailNotification', true, 'Notifier le commentaire aux groupes à partir de :', [
|
|
|
|
'checked' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'mailNotification']),
|
|
|
|
'help' => 'Editeurs = éditeurs + administrateurs<br/> Membres = membres + éditeurs + administrateurs'
|
|
|
|
|
2019-05-02 13:21:48 +02:00
|
|
|
]); ?>
|
|
|
|
<?php echo template::select('blogEditGroupNotification', $module::$groupNews, [
|
2020-06-10 16:32:33 +02:00
|
|
|
'label' => '',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'groupNotification'])
|
|
|
|
]); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-02 19:48:47 +02:00
|
|
|
<?php echo template::formClose(); ?>
|