2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('blogAddForm'); ?>
|
|
|
|
<div class="row">
|
2022-02-18 12:43:48 +01:00
|
|
|
<div class="col1">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::button('blogAddBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
2022-02-18 12:43:48 +01:00
|
|
|
'value' => template::ico('left')
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2022-02-18 12:43:48 +01:00
|
|
|
<div class="col2 offset7">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::button('blogAddDraft', [
|
|
|
|
'uniqueSubmission' => true,
|
2022-02-18 12:43:48 +01:00
|
|
|
'value' => 'Brouillon'
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
<?php echo template::hidden('blogAddState', [
|
|
|
|
'value' => true
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::submit('blogAddPublish', [
|
2021-12-01 17:08:35 +01:00
|
|
|
'value' => 'Publier',
|
|
|
|
'uniqueSubmission' => true
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Informations générales</h4>
|
|
|
|
<div class="row">
|
2022-03-15 09:16:42 +01:00
|
|
|
<div class="col6">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::text('blogAddTitle', [
|
|
|
|
'label' => 'Titre'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2022-03-15 09:16:42 +01:00
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('blogAddPermalink', [
|
|
|
|
'label' => 'Permalink'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-06-10 16:32:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::file('blogAddPicture', [
|
|
|
|
'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
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-06-10 16:32:33 +02:00
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('blogAddPictureSize', $module::$pictureSizes, [
|
|
|
|
'label' => 'Largeur de l\'image'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('blogAddPicturePosition', $module::$picturePositions, [
|
|
|
|
'label' => 'Position',
|
|
|
|
'help' => 'Le texte de l\'article est adapté autour de l\'image'
|
|
|
|
]); ?>
|
2018-11-25 17:01:28 +01:00
|
|
|
</div>
|
2020-06-10 16:32:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2022-03-15 09:16:42 +01:00
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('blogAddHidePicture', true, 'Masquer l\'image dans l\'article', [
|
|
|
|
'checked' => true
|
|
|
|
]); ?>
|
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('blogAddContent', [
|
|
|
|
'class' => 'editorWysiwyg'
|
|
|
|
]); ?>
|
2020-10-11 18:36:20 +02:00
|
|
|
<div class="row">
|
2020-07-16 18:50:57 +02:00
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Options de publication</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('blogAddUserId', $module::$users, [
|
|
|
|
'label' => 'Auteur',
|
|
|
|
'selected' => $this->getUser('id'),
|
|
|
|
'disabled' => $this->getUser('group') !== self::GROUP_ADMIN ? true : false
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::date('blogAddPublishedOn', [
|
|
|
|
'help' => 'L\'article n\'est visible qu\'après la date de publication prévue.',
|
|
|
|
'label' => 'Date de publication',
|
|
|
|
'value' => time()
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-10-11 18:36:20 +02:00
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('blogAddConsent', $module::$articleConsent , [
|
2022-10-03 14:03:39 +02:00
|
|
|
'label' => 'Edition - Suppression',
|
2020-10-18 09:03:50 +02:00
|
|
|
'selected' => $module::EDIT_ALL,
|
2020-10-11 18:36:20 +02:00
|
|
|
'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'article sans restriction'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-07-16 18:50:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="row">
|
2020-10-11 18:36:20 +02:00
|
|
|
<div class="col12">
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="block">
|
2020-07-16 18:50:57 +02:00
|
|
|
<h4>Commentaires</h4>
|
2020-10-11 18:36:20 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col4 ">
|
2020-10-18 13:23:47 +02:00
|
|
|
<?php echo template::checkbox('blogAddCommentClose', true, 'Fermer les commentaires'); ?>
|
2020-07-16 18:50:57 +02:00
|
|
|
</div>
|
2020-10-11 18:36:20 +02:00
|
|
|
<div class="col4 commentOptionsWrapper ">
|
2020-10-18 13:23:47 +02:00
|
|
|
<?php echo template::checkbox('blogAddCommentApproved', true, 'Approbation par un modérateur'); ?>
|
2020-10-11 18:36:20 +02:00
|
|
|
</div>
|
|
|
|
<div class="col4 commentOptionsWrapper">
|
|
|
|
<?php echo template::select('blogAddCommentMaxlength', $module::$commentLength,[
|
|
|
|
'help' => 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.',
|
2020-10-18 13:23:47 +02:00
|
|
|
'label' => 'Caractères par commentaire'
|
2020-10-11 18:36:20 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3 commentOptionsWrapper offset2">
|
2020-10-18 13:23:47 +02:00
|
|
|
<?php echo template::checkbox('blogAddCommentNotification', true, 'Notification par email'); ?>
|
2020-10-11 18:36:20 +02:00
|
|
|
</div>
|
|
|
|
<div class="col4 commentOptionsWrapper">
|
2020-10-18 13:23:47 +02:00
|
|
|
<?php echo template::select('blogAddCommentGroupNotification', $module::$groupNews); ?>
|
2020-07-16 18:50:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-02 19:48:47 +02:00
|
|
|
<?php echo template::formClose(); ?>
|