Deltacms/core/module/theme/view/menu/menu.php

262 lines
12 KiB
PHP
Raw Normal View History

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');
echo template::formOpen('themeMenuForm'); ?>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col2">
<?php echo template::button('themeMenuBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
2022-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['menu'][0]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeMenuHelp', [
'href' => 'https://doc.deltacms.fr/personnalisation-du-menu',
'target' => '_blank',
'ico' => 'help',
2022-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['menu'][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('themeMenuSubmit',[
2022-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['menu'][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']['menu'][3]; ?></div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col6">
<?php
if ( $this->getData(['theme', 'header', 'position']) == "site")
2022-03-06 13:35:21 +01:00
{ echo template::select('themeMenuPosition', $menuPositionsSite, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][4],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'position'])
]);
}else{
2022-03-06 13:35:21 +01:00
echo template::select('themeMenuPosition', $menuPositionsBody, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][4],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'position'])
]); }
?>
</div>
2023-02-18 08:16:35 +01:00
<div class="col6 themeMenuWideWrapper">
2022-03-06 13:35:21 +01:00
<?php echo template::select('themeMenuWide', $containerWides, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][5],
2023-02-18 08:16:35 +01:00
'help' => $text['core_theme_view']['menu'][40],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'wide'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
2022-03-06 13:35:21 +01:00
<?php echo template::select('themeMenuRadius', $menuRadius, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][6],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'radius']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][7]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
2022-03-06 13:35:21 +01:00
<?php echo template::select('themeMenuHeight', $menuHeights, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][8],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'height'])
]); ?>
</div>
<div class="col4">
2022-03-06 13:35:21 +01:00
<?php echo template::select('themeMenuTextAlign', $aligns, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][9],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'textAlign'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<div id="themeMenuPositionOptions" class="displayNone">
<?php echo template::checkbox('themeMenuMargin', true, $text['core_theme_view']['menu'][10], [
'checked' => $this->getData(['theme', 'menu', 'margin'])
]); ?>
</div>
<div id="themeMenuPositionFixed" class="displayNone">
<?php echo template::checkbox('themeMenuFixed', true, $text['core_theme_view']['menu'][11], [
'checked' => $this->getData(['theme', 'menu', 'fixed'])
]); ?>
</div>
</div>
<div class="col4">
<?php echo template::select('themeMenuMinWidthTab', $minWidthTab, [
2022-11-23 18:09:45 +01:00
'label' => $text['core_theme_view']['menu'][37],
'help' => $text['core_theme_view']['menu'][38],
'selected' => $this->getData(['theme', 'menu', 'minWidthTab'])
2022-11-23 18:09:45 +01:00
]); ?>
</div>
<div class="col4" style="padding:30px 0 0 10px;>
<?php echo template::checkbox('themeMenuMinWidthParentOrAll', true, $text['core_theme_view']['menu'][39], [
'checked' => $this->getData(['theme', 'menu', 'minWidthParentOrAll'])
]); ?>
2022-11-23 18:09:45 +01:00
</div>
</div>
2022-01-31 09:10:49 +01:00
</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']['menu'][12]; ?></div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col3">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('themeMenuLoginLink', true, $text['core_theme_view']['menu'][13], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['theme', 'menu', 'loginLink'])
]); ?>
</div>
<div class="col3">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('themeMenuMemberBar', true, $text['core_theme_view']['menu'][14], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['theme', 'menu', 'memberBar']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][15]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col6">
2022-03-06 13:35:21 +01:00
<?php echo template::select('themeMenuBurgerContent', $burgerContent, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][16],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'burgerContent']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][17]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
2022-05-18 07:43:01 +02:00
<div id="themeMenuBurgerTitle" class=" <?php if( $this->getData(['theme', 'menu', 'burgerContent']) !== 'title') echo 'displayNone';?>">
<div class="row">
<div class="col3 offset6">
<?php echo template::text('themeMenuBurgerTextColor', [
'class' => 'colorPicker',
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][21],
'label' => $text['core_theme_view']['menu'][22],
2022-05-18 07:43:01 +02:00
'value' => $this->getData(['theme', 'menu', 'burgerTextColor'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeMenuBurgerFontSize', $menuBurgerFontSizes, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][32],
'help' => $text['core_theme_view']['menu'][33],
2022-05-18 07:43:01 +02:00
'selected' => $this->getData(['theme', 'menu', 'burgerFontSize'])
]); ?>
</div>
</div>
2022-12-04 08:19:08 +01:00
</div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div id="themeMenuBurgerLogoId" class="col6 offset6 <?php if( $this->getData(['theme', 'menu', 'burgerContent']) !== 'logo') echo 'displayNone';?>">
<?php
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'menu', 'burgerLogo'])) ?
$this->getData(['theme', 'menu', 'burgerLogo']) : "";
echo template::file('themeMenuBurgerLogo', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][18],
'label' => $text['core_theme_view']['menu'][19],
2022-01-31 09:10:49 +01:00
'type' => 1,
'value' => $imageFile
]); ?>
</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']['menu'][20]; ?></div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col4">
<?php echo template::text('themeMenuTextColor', [
'class' => 'colorPicker',
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][21],
'label' => $text['core_theme_view']['menu'][22],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['theme', 'menu', 'textColor'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('themeMenuBackgroundColor', [
'class' => 'colorPicker',
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][23],
'label' => $text['core_theme_view']['menu'][24],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('themeMenuBackgroundColorSub', [
'class' => 'colorPicker',
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][23],
'label' => $text['core_theme_view']['menu'][25],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['theme', 'menu', 'backgroundColorSub'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('themeMenuActiveTextColor', [
'class' => 'colorPicker',
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][23],
'label' => $text['core_theme_view']['menu'][26],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['theme', 'menu', 'activeTextColor'])
]); ?>
</div>
<div class="col4 verticalAlignBottom">
<?php
2022-09-11 09:42:42 +02:00
echo template::checkbox('themeMenuActiveColorAuto', true, $text['core_theme_view']['menu'][36], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['theme', 'menu', 'activeColorAuto']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][27]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
<?php echo template::text('themeMenuActiveColor', [
'class' => 'colorPicker',
2022-09-11 09:42:42 +02:00
'help' => $text['core_theme_view']['menu'][28],
'label' => $text['core_theme_view']['menu'][29],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['theme', 'menu', 'activeColor'])
]); ?>
</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']['menu'][30]; ?></div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col6">
<?php echo template::select('themeMenuFont', $module::$fonts, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][31],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'font']),
'fonts' => true
]); ?>
</div>
<div class="col6">
2022-03-06 13:35:21 +01:00
<?php echo template::select('themeMenuFontSize', $menuFontSizes, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][32],
'help' => $text['core_theme_view']['menu'][33],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'fontSize'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
2022-03-06 13:35:21 +01:00
<?php echo template::select('themeMenuFontWeight', $fontWeights, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][34],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
]); ?>
</div>
<div class="col6">
2022-03-06 13:35:21 +01:00
<?php echo template::select('themeMenuTextTransform', $textTransforms, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['menu'][35],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>