2022-03-06 13:35:21 +01:00
< ? php
// Lexique
2022-09-11 09:42:42 +02:00
include ( './core/module/theme/lang/' . $this -> getData ([ 'config' , 'i18n' , 'langAdmin' ]) . '/lex_theme.php' );
// Passage de la langue d'administration <20> Tinymce
/*
2022-12-04 08:19:08 +01:00
?>
2022-09-11 09:42:42 +02:00
< script >
var lang_admin = " <?php echo $lang_admin ?> " ;
2022-12-04 08:19:08 +01:00
</ script >
2022-09-11 09:42:42 +02:00
< ? php
// Inclusion de tinymce
2022-12-04 08:19:08 +01:00
echo '<script src="' . helper :: baseUrl ( false ) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>' ;
echo '<script src="' . helper :: baseUrl ( false ) . 'core/vendor/tinymce/init.js' . '"></script>' ;
2022-09-11 09:42:42 +02:00
echo '<link rel="stylesheet" href="' . helper :: baseUrl ( false ) . 'core/vendor/tinymce/init.css' . '">' ;
*/
2022-12-04 08:19:08 +01:00
echo template :: formOpen ( 'themeFooterForm' );
2022-09-11 09:42:42 +02:00
echo template :: formOpen ( 'themeSiteForm' ); ?>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col2 " >
< ? php echo template :: button ( 'themeSiteBack' , [
'class' => 'buttonGrey' ,
'href' => helper :: baseUrl () . 'theme' ,
'ico' => 'left' ,
2022-09-11 09:42:42 +02:00
'value' => $text [ 'core_theme_view' ][ 'site' ][ 0 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: button ( 'themeSiteHelp' , [
'href' => 'https://doc.deltacms.fr/personnalisation-du-site' ,
'target' => '_blank' ,
'ico' => 'help' ,
2022-09-11 09:42:42 +02:00
'value' => $text [ 'core_theme_view' ][ 'site' ][ 1 ],
2022-01-31 09:10:49 +01:00
'class' => 'buttonHelp'
]); ?>
</ div >
< div class = " col2 offset6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: submit ( 'themeSiteSubmit' ,[
2022-09-11 09:42:42 +02:00
'value' => $text [ 'core_theme_view' ][ 'site' ][ 2 ]
2022-03-06 13:35:21 +01:00
]); ?>
2022-01-31 09:10:49 +01:00
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-12-04 08:19:08 +01:00
< div class = " blockTitle " >< ? php echo $text [ 'core_theme_view' ][ 'site' ][ 3 ]; ?> </div>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col4 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeSiteWidth' , $siteWidths , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 4 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'site' , 'width' ])
]); ?>
</ div >
< div class = " col4 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeSiteRadius' , $radius , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 5 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'site' , 'radius' ])
]); ?>
</ div >
< div class = " col4 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeSiteShadow' , $shadows , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 6 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'site' , 'shadow' ])
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col6 " >
2022-09-11 09:42:42 +02:00
< ? php echo template :: checkbox ( 'themeSiteMargin' , true , $text [ 'core_theme_view' ][ 'site' ][ 7 ], [
2022-01-31 09:10:49 +01:00
'checked' => $this -> getData ([ 'theme' , 'site' , 'margin' ])
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-12-04 08:19:08 +01:00
< div class = " blockTitle " >< ? php echo $text [ 'core_theme_view' ][ 'site' ][ 8 ]; ?> </div>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col8 " >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: text ( 'themeSiteBackgroundColor' , [
'class' => 'colorPicker' ,
2022-09-11 09:42:42 +02:00
'help' => $text [ 'core_theme_view' ][ 'site' ][ 9 ],
'label' => $text [ 'core_theme_view' ][ 'site' ][ 10 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'site' , 'backgroundColor' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: text ( 'themeTextTextColor' , [
'class' => 'colorPicker' ,
2022-09-11 09:42:42 +02:00
'help' => $text [ 'core_theme_view' ][ 'site' ][ 9 ],
'label' => $text [ 'core_theme_view' ][ 'site' ][ 11 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'text' , 'textColor' ])
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: text ( 'themeTitleTextColor' , [
'class' => 'colorPicker' ,
2022-09-11 09:42:42 +02:00
'help' => $text [ 'core_theme_view' ][ 'site' ][ 9 ],
'label' => $text [ 'core_theme_view' ][ 'site' ][ 12 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'title' , 'textColor' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: text ( 'themeTextLinkColor' , [
'class' => 'colorPicker' ,
2022-09-11 09:42:42 +02:00
'help' => $text [ 'core_theme_view' ][ 'site' ][ 9 ],
'label' => $text [ 'core_theme_view' ][ 'site' ][ 13 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'text' , 'linkColor' ])
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: text ( 'themeBlockBackgroundColor' , [
'class' => 'colorPicker' ,
2022-09-11 09:42:42 +02:00
'help' => $text [ 'core_theme_view' ][ 'site' ][ 14 ],
'label' => $text [ 'core_theme_view' ][ 'site' ][ 15 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'block' , 'backgroundColor' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: text ( 'themeBlockBorderColor' , [
'class' => 'colorPicker' ,
2022-09-11 09:42:42 +02:00
'help' => $text [ 'core_theme_view' ][ 'site' ][ 14 ],
'label' => $text [ 'core_theme_view' ][ 'site' ][ 16 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'block' , 'borderColor' ])
]); ?>
</ div >
</ div >
<!-- Plus -->
< div class = " row " >
< div class = " col6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeBlockBorderRadius' , $radius , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 17 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'block' , 'blockBorderRadius' ])
]); ?>
</ div >
< div class = " col6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeBlockBorderShadow' , $blockShadows , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 18 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'block' , 'blockBorderShadow' ])
]); ?>
2022-12-04 08:19:08 +01:00
</ div >
2022-01-31 09:10:49 +01:00
</ div >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: text ( 'themeBlockBackgroundTitleColor' , [
'class' => 'colorPicker' ,
2022-09-11 09:42:42 +02:00
'help' => $text [ 'core_theme_view' ][ 'site' ][ 14 ],
'label' => $text [ 'core_theme_view' ][ 'site' ][ 19 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'block' , 'backgroundTitleColor' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: text ( 'themeButtonBackgroundColor' , [
'class' => 'colorPicker' ,
2022-09-11 09:42:42 +02:00
'help' => $text [ 'core_theme_view' ][ 'site' ][ 9 ],
'label' => $text [ 'core_theme_view' ][ 'site' ][ 20 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'button' , 'backgroundColor' ])
]); ?>
</ div >
</ div >
<!-- Fin -->
</ div >
< div class = " col4 bodybackground " >
< div class = " bgPreview " >
< div class = " row " >
< div class = " col6 " >
2022-09-11 09:42:42 +02:00
< h1 class = " headerPreview " >< ? php echo $text [ 'core_theme_view' ][ 'site' ][ 21 ]; ?> </h1>
< h2 class = " headerPreview " >< ? php echo $text [ 'core_theme_view' ][ 'site' ][ 22 ]; ?> </h2>
2022-01-31 09:10:49 +01:00
</ div >
< div class = " col6 " >
< ? php echo template :: button ( 'themeSiteSubmitButtonPreview' , [
'class' => 'buttonSubmitPreview' ,
2022-09-11 09:42:42 +02:00
'value' => $text [ 'core_theme_view' ][ 'site' ][ 23 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block preview " >
2022-12-04 09:12:55 +01:00
< h4 class = " preview " >< ? php echo $text [ 'core_theme_view' ][ 'site' ][ 24 ]; ?> </h4> <p class="textPreview">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
2022-01-31 09:10:49 +01:00
< p >< a href = " # " class = " urlPreview " > Lorem ipsum dolor sit amet .</ a ></ p >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col6 " >
< div class = " block " >
2022-12-04 08:19:08 +01:00
< div class = " blockTitle " >< ? php echo $text [ 'core_theme_view' ][ 'site' ][ 25 ]; ?> </div>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: select ( 'themeTextFont' , $module :: $fonts , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 26 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'text' , 'font' ]),
'fonts' => true
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: select ( 'themeTextFontSize' , $module :: $siteFontSizes , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 29 ],
'help' => $text [ 'core_theme_view' ][ 'site' ][ 30 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'text' , 'fontSize' ])
]); ?>
</ div >
</ div >
</ div >
</ div >
< div class = " col6 " >
< div class = " block " >
2022-12-04 08:19:08 +01:00
< div class = " blockTitle " >< ? php echo $text [ 'core_theme_view' ][ 'site' ][ 31 ]; ?> </div>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col4 " >
2022-02-15 07:42:37 +01:00
< ? php echo template :: select ( 'themeTitleFont' , $module :: $fonts , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 26 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'title' , 'font' ]),
'fonts' => true
]); ?>
</ div >
< div class = " col4 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeTitleFontWeight' , $fontWeights , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 27 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'title' , 'fontWeight' ])
]); ?>
</ div >
< div class = " col4 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeTitleTextTransform' , $textTransforms , [
2022-09-11 09:42:42 +02:00
'label' => $text [ 'core_theme_view' ][ 'site' ][ 28 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'title' , 'textTransform' ])
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< ? php echo template :: formClose (); ?>