masquage des commentaires dans le layout

This commit is contained in:
Deltacms 2023-03-24 16:52:27 +01:00
parent d6cd62e830
commit ed6e601207
2 changed files with 43 additions and 37 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## Version 4.4.07 de Deltacms
- Modifications :
- Thème / Gestion : possibilité de saisir un nom lors de la sauvegarde ou de l'export d'un thème,
- Corrections :
-
## Version 4.4.06 de Deltacms ## Version 4.4.06 de Deltacms
- Modifications : - Modifications :
- Thème / Footer : nouvelle option 'Qui est en ligne ?', affiche le nombre de visiteurs ou d'utilisateurs connectés, - Thème / Footer : nouvelle option 'Qui est en ligne ?', affiche le nombre de visiteurs ou d'utilisateurs connectés,

View File

@ -35,68 +35,68 @@ else { echo '<html lang="'.$lang.'">'; }
if (file_exists(self::DATA_DIR .'head.inc.html')) include(self::DATA_DIR .'head.inc.html'); ?> if (file_exists(self::DATA_DIR .'head.inc.html')) include(self::DATA_DIR .'head.inc.html'); ?>
</head> </head>
<body> <body>
<!-- Barre d'administration --> <?php //Barre d'administration
<?php if($this->getUser('group') > self::GROUP_MEMBER) $this->showBar(); ?> if($this->getUser('group') > self::GROUP_MEMBER) $this->showBar();
<!-- Notifications --> // Notifications
<?php $this->showNotification(); $this->showNotification();
// div screenshot // div screenshot
if( isset($_SESSION['screenshot'] ) && $_SESSION['screenshot'] === 'on' ) { ?> <div id="main_screenshot"> <?php } ?> if( isset($_SESSION['screenshot'] ) && $_SESSION['screenshot'] === 'on' ) { ?> <div id="main_screenshot"> <?php }
<!-- Menu en dehors du site --> // Menu en dehors du site
<?php if ( $this->getData(['theme', 'menu', 'position']) === 'top') $this->showMenu( 'top'); ?> if ( $this->getData(['theme', 'menu', 'position']) === 'top') $this->showMenu( 'top');
<!-- Menu avant la bannière, bannière au dessus du site --> //Menu avant la bannière, bannière au dessus du site
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first') $this->showMenu( 'body-first'); ?> if($this->getData(['theme', 'menu', 'position']) === 'body-first') $this->showMenu( 'body-first');
<!-- Bannière au dessus du site --> //Bannière au dessus du site
<?php if($this->getData(['theme', 'header', 'position']) === 'body') $this->showHeader('body'); ?> if($this->getData(['theme', 'header', 'position']) === 'body') $this->showHeader('body');
<!-- Menu après la bannière, bannière au dessus du site --> // Menu après la bannière, bannière au dessus du site
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second') $this->showMenu( 'body-second'); ?> if($this->getData(['theme', 'menu', 'position']) === 'body-second') $this->showMenu( 'body-second');
<!-- Site --> // Site ?>
<div id="site" class="container"> <div id="site" class="container">
<!-- Menu dans le site avant la bannière --> <?php // Menu dans le site avant la bannière
<?php if($this->getData(['theme', 'menu', 'position']) === 'site-first') $this->showMenu( 'site-first'); ?> if($this->getData(['theme', 'menu', 'position']) === 'site-first') $this->showMenu( 'site-first');
<!-- Bannière dans le site --> // Bannière dans le site
<?php if( $this->getData(['theme', 'header', 'position']) === 'site' if( $this->getData(['theme', 'header', 'position']) === 'site'
OR ( $this->getData(['theme', 'header', 'position']) === 'hide' AND $this->getUrl(0) === 'theme' ) ) OR ( $this->getData(['theme', 'header', 'position']) === 'hide' AND $this->getUrl(0) === 'theme' ) )
$this->showHeader( 'site' ); ?> $this->showHeader( 'site' );
<!-- Menu après la bannière, bannière dans le site --> // Menu après la bannière, bannière dans le site
<?php if( $this->getData(['theme', 'menu', 'position']) === 'site-second' ) $this->showMenu( 'site-second'); ?> if( $this->getData(['theme', 'menu', 'position']) === 'site-second' ) $this->showMenu( 'site-second');
<!-- Menu dans le site, bannière au dessus du site --> // Menu dans le site, bannière au dessus du site
<?php if( $this->getData(['theme', 'menu', 'position']) === 'site' ) $this->showMenu( 'site'); ?> if( $this->getData(['theme', 'menu', 'position']) === 'site' ) $this->showMenu( 'site');
<!-- Menu caché --> // Menu caché
<?php if( $this->getData(['theme', 'menu', 'position']) === 'hide') $this->showMenu( 'hide'); ?> if( $this->getData(['theme', 'menu', 'position']) === 'hide') $this->showMenu( 'hide');
<!-- Corps de page --> // Corps de page
<?php $this->showSection();?> $this->showSection();
<!-- footer --> // footer
<?php $this->showFooter();?> $this->showFooter();
<!-- Fin du site --> // Fin du site
<?php echo $this->getData(['theme', 'footer', 'position']) === 'site'? '</div>' : ''; echo $this->getData(['theme', 'footer', 'position']) === 'site'? '</div>' : '';
// fin de la div main_screenshot et bouton screenshot // fin de la div main_screenshot et bouton screenshot
if( isset($_SESSION['screenshot'] ) && $_SESSION['screenshot'] === 'on' ){ ?> </div><div><button id="screenshot" class="buttonScreenshot" type="button" > if( isset($_SESSION['screenshot'] ) && $_SESSION['screenshot'] === 'on' ){ ?> </div><div><button id="screenshot" class="buttonScreenshot" type="button" >
<img src="<?php echo helper::baseUrl(false); ?>core/vendor/screenshot/appareil_photo.png" width="100px"/></button></div> <?php } ?> <img src="<?php echo helper::baseUrl(false); ?>core/vendor/screenshot/appareil_photo.png" width="100px"/></button></div> <?php }
<!-- Lien remonter en haut --> // Lien remonter en haut ?>
<div id="backToTop"><?php echo template::ico('up'); ?></div> <div id="backToTop"><?php echo template::ico('up'); ?></div>
<!-- Affichage du consentement aux cookies--> <?php // Affichage du consentement aux cookies
<?php $this->showCookies(); ?> $this->showCookies();
<!-- Les scripts --> // Les scripts
<?php $this->showVendor('jsbody'); $this->showVendor('jsbody');
$this->showScript();?> $this->showScript();?>
</body> </body>
</html> </html>