2022-03-18 07:50:13 +01:00
< ? php
// Lexique
2022-09-02 08:44:18 +02:00
$param = 'blog_view' ;
include ( './module/blog/lang/' . $this -> getData ([ 'config' , 'i18n' , 'langAdmin' ]) . '/lex_blog.php' );
echo template :: formOpen ( 'blogAddForm' ); ?>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col2 " >
< ? php echo template :: button ( 'blogAddBack' , [
'class' => 'buttonGrey' ,
'href' => helper :: baseUrl () . $this -> getUrl ( 0 ) . '/config' ,
'ico' => 'left' ,
2022-09-02 08:44:18 +02:00
'value' => $text [ 'blog_view' ][ 'add' ][ 0 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
< div class = " col3 offset5 " >
< ? php echo template :: button ( 'blogAddDraft' , [
'uniqueSubmission' => true ,
2022-09-02 08:44:18 +02:00
'value' => $text [ 'blog_view' ][ 'add' ][ 1 ]
2022-01-31 09:10:49 +01:00
]); ?>
< ? php echo template :: hidden ( 'blogAddState' , [
'value' => true
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: submit ( 'blogAddPublish' , [
2022-09-02 08:44:18 +02:00
'value' => $text [ 'blog_view' ][ 'add' ][ 2 ],
2022-01-31 09:10:49 +01:00
'uniqueSubmission' => true
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-09-02 08:44:18 +02:00
< h4 >< ? php echo $text [ 'blog_view' ][ 'add' ][ 3 ]; ?> </h4>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: text ( 'blogAddTitle' , [
2022-09-02 08:44:18 +02:00
'label' => $text [ 'blog_view' ][ 'add' ][ 4 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col4 " >
2022-09-02 08:44:18 +02:00
< ? php $help = $text [ 'blog_view' ][ 'add' ][ 23 ];
if ( $this -> getData ([ 'theme' , 'site' , 'width' ]) !== '100%' ) $help = $text [ 'blog_view' ][ 'add' ][ 5 ] . (( int ) substr ( $this -> getData ([ 'theme' , 'site' , 'width' ]), 0 , - 2 ) - ( 20 * 2 )) . ' x 350 pixels.' ;
2022-03-18 07:50:13 +01:00
echo template :: file ( 'blogAddPicture' , [
'help' => $help ,
2022-09-02 08:44:18 +02:00
'label' => $text [ 'blog_view' ][ 'add' ][ 6 ],
2022-01-31 09:10:49 +01:00
'type' => 1
]); ?>
</ div >
< div class = " col4 " >
2022-03-18 07:50:13 +01:00
< ? php echo template :: select ( 'blogAddPictureSize' , $pictureSizes , [
2022-09-02 08:44:18 +02:00
'label' => $text [ 'blog_view' ][ 'add' ][ 7 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
< div class = " col4 " >
2022-03-18 07:50:13 +01:00
< ? php echo template :: select ( 'blogAddPicturePosition' , $picturePositions , [
2022-09-02 08:44:18 +02:00
'label' => $text [ 'blog_view' ][ 'add' ][ 8 ],
'help' => $text [ 'blog_view' ][ 'add' ][ 9 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
2022-09-02 08:44:18 +02:00
< ? php echo template :: checkbox ( 'blogAddHidePicture' , true , $text [ 'blog_view' ][ 'add' ][ 10 ], [
2022-01-31 09:10:49 +01:00
'checked' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'posts' , $this -> getUrl ( 2 ), 'hidePicture' ])
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< ? php echo template :: textarea ( 'blogAddContent' , [
'class' => 'editorWysiwyg'
]); ?>
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-09-02 08:44:18 +02:00
< h4 >< ? php echo $text [ 'blog_view' ][ 'add' ][ 11 ]; ?> </h4>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col4 " >
< ? php echo template :: select ( 'blogAddUserId' , $module :: $users , [
2022-09-02 08:44:18 +02:00
'label' => $text [ 'blog_view' ][ 'add' ][ 12 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getUser ( 'id' ),
'disabled' => $this -> getUser ( 'group' ) !== self :: GROUP_ADMIN ? true : false
]); ?>
</ div >
< div class = " col4 " >
< ? php echo template :: date ( 'blogAddPublishedOn' , [
2022-09-02 08:44:18 +02:00
'help' => $text [ 'blog_view' ][ 'add' ][ 13 ],
'label' => $text [ 'blog_view' ][ 'add' ][ 14 ],
2022-01-31 09:10:49 +01:00
'value' => time ()
]); ?>
</ div >
< div class = " col4 " >
2022-03-18 07:50:13 +01:00
< ? php echo template :: select ( 'blogAddConsent' , $articleConsent , [
2022-09-02 08:44:18 +02:00
'label' => $text [ 'blog_view' ][ 'add' ][ 15 ],
2022-01-31 09:10:49 +01:00
'selected' => $module :: EDIT_ALL ,
2022-09-02 08:44:18 +02:00
'help' => $text [ 'blog_view' ][ 'add' ][ 16 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-09-02 08:44:18 +02:00
< h4 >< ? php echo $text [ 'blog_view' ][ 'add' ][ 17 ]; ?> </h4>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col4 " >
2022-09-02 08:44:18 +02:00
< ? php echo template :: checkbox ( 'blogAddCommentClose' , true , $text [ 'blog_view' ][ 'add' ][ 18 ]); ?>
2022-01-31 09:10:49 +01:00
</ div >
< div class = " col4 commentOptionsWrapper " >
2022-09-02 08:44:18 +02:00
< ? php echo template :: checkbox ( 'blogAddCommentApproved' , true , $text [ 'blog_view' ][ 'add' ][ 19 ]); ?>
2022-01-31 09:10:49 +01:00
</ div >
< div class = " col4 commentOptionsWrapper " >
2022-09-02 08:44:18 +02:00
< ? php echo template :: select ( 'blogAddCommentMaxlength' , $commentLength ,[
'help' => $text [ 'blog_view' ][ 'add' ][ 20 ],
'label' => $text [ 'blog_view' ][ 'add' ][ 21 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col3 commentOptionsWrapper offset2 " >
2022-09-02 08:44:18 +02:00
< ? php echo template :: checkbox ( 'blogAddCommentNotification' , true , $text [ 'blog_view' ][ 'add' ][ 22 ]); ?>
2022-01-31 09:10:49 +01:00
</ div >
< div class = " col4 commentOptionsWrapper " >
2022-09-02 08:44:18 +02:00
< ? php echo template :: select ( 'blogAddCommentGroupNotification' , $groupNews ); ?>
2022-01-31 09:10:49 +01:00
</ div >
</ div >
</ div >
</ div >
</ div >
< ? php echo template :: formClose (); ?>