2018-04-02 08:29:19 +02:00
< ? php echo template :: formOpen ( 'configForm' ); ?>
2020-05-12 16:28:10 +02:00
< div class = " row " >
< div class = " col2 " >
< ? php echo template :: button ( 'configBack' , [
'class' => 'buttonGrey' ,
'href' => helper :: baseUrl ( false ),
'ico' => 'home' ,
'value' => 'Accueil'
]); ?>
</ div >
< div class = " col2 offset4 " >
< ? php echo template :: button ( 'configManageButton' , [
'href' => helper :: baseUrl () . 'config/backup' ,
2020-08-08 17:14:52 +02:00
'value' => 'Sauvegarder'
2020-05-25 11:58:54 +02:00
]); ?>
2020-05-12 16:28:10 +02:00
</ div >
< div class = " col2 " >
< ? php echo template :: button ( 'configManageButton' , [
'href' => helper :: baseUrl () . 'config/manage' ,
2020-08-08 17:14:52 +02:00
'value' => 'Restaurer'
2020-05-12 16:28:10 +02:00
]); ?>
2020-05-25 11:58:54 +02:00
</ div >
2020-05-12 16:28:10 +02:00
< div class = " col2 " >
< ? php echo template :: submit ( 'configSubmit' ); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
2020-07-06 19:50:53 +02:00
< div class = " block " >
< h4 > Informations générales </ h4 >
< div class = " row " >
2020-09-27 12:41:13 +02:00
< div class = " col9 " >
2020-07-06 19:50:53 +02:00
< ? php echo template :: text ( 'configTitle' , [
'label' => 'Titre du site' ,
'value' => $this -> getData ([ 'config' , 'title' ]),
'help' => 'Il apparaît dans la barre de titre et les partages sur les réseaux sociaux.'
]); ?>
</ div >
2020-09-27 12:41:13 +02:00
< div class = " col3 " >
2020-09-27 12:32:34 +02:00
< ? php echo template :: text ( 'configVersion' , [
'label' => 'ZwiiCMS Version' ,
'value' => common :: ZWII_VERSION ,
'readonly' => true
]); ?>
</ div >
2020-07-06 19:50:53 +02:00
</ div >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: textarea ( 'configMetaDescription' , [
'label' => 'Description du site' ,
'value' => $this -> getData ([ 'config' , 'metaDescription' ]),
2020-09-27 19:36:53 +02:00
'help' => 'La description participe au référencement, n\'oubliez pas de personnaliser la description de chaque page sans un copié collé.'
2020-07-06 19:50:53 +02:00
]); ?>
2020-05-25 11:58:54 +02:00
</ div >
2020-05-12 16:28:10 +02:00
</ div >
2020-08-13 14:11:33 +02:00
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2020-08-15 09:48:13 +02:00
< h4 > Paramètres généraux </ h4 >
2020-10-12 09:49:17 +02:00
< ? php $error = helper :: urlGetContents ( 'http://zwiicms.fr/update/' . common :: ZWII_UPDATE_CHANNEL . '/version' ); ?>
2020-07-06 19:50:53 +02:00
< div class = " row " >
< div class = " col4 " >
< ? php echo template :: file ( 'configFavicon' , [
'type' => 1 ,
'help' => 'Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.' ,
'label' => 'Favicon' ,
'value' => $this -> getData ([ 'config' , 'favicon' ])
]); ?>
2020-05-25 11:58:54 +02:00
</ div >
2020-07-06 19:50:53 +02:00
< div class = " col4 " >
< ? php echo template :: file ( 'configFaviconDark' , [
'type' => 1 ,
'help' => 'Sélectionnez une icône adaptée à un thème sombre.<br>Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.' ,
'label' => 'Favicon thème sombre' ,
'value' => $this -> getData ([ 'config' , 'faviconDark' ])
]); ?>
2020-06-07 09:25:54 +02:00
</ div >
2020-07-06 19:50:53 +02:00
< div class = " col4 " >
< ? php echo template :: select ( 'configItemsperPage' , $module :: $ItemsList , [
'label' => 'Articles par page' ,
'selected' => $this -> getData ([ 'config' , 'itemsperPage' ]),
'help' => 'Modules Blog et News'
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col4 " >
< ? php echo template :: select ( 'configTimezone' , $module :: $timezones , [
'label' => 'Fuseau horaire' ,
'selected' => $this -> getData ([ 'config' , 'timezone' ]),
'help' => 'Le fuseau horaire est utile au bon référencement'
]); ?>
</ div >
2020-09-29 19:03:35 +02:00
< div class = " col4 verticalAlignBottom " >
2020-07-06 19:50:53 +02:00
< ? php echo template :: checkbox ( 'configCookieConsent' , true , 'Message de consentement aux cookies' , [
'checked' => $this -> getData ([ 'config' , 'cookieConsent' ])
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col4 " >
< ? php echo template :: checkbox ( 'rewrite' , true , 'Réécriture d\'URL' , [
'checked' => helper :: checkRewrite (),
'help' => 'Vérifiez d\'abord que votre serveur l\'autorise : ce n\'est pas le cas chez Free.'
]); ?>
</ div >
< div class = " col4 " >
< ? php echo template :: checkbox ( 'configMaintenance' , true , 'Site en maintenance' , [
'checked' => $this -> getData ([ 'config' , 'maintenance' ])
]); ?>
</ div >
< div class = " col4 " >
< ? php echo template :: checkbox ( 'configAutoBackup' , true , 'Sauvegarde automatique quotidienne' , [
'checked' => $this -> getData ([ 'config' , 'autoBackup' ]),
'help' => '<p>Une archive contenant le dossier /site/data est copiée dans le dossier \'site/backup\'. La sauvegarde est conservée pendant 30 jours.</p><p>Les fichiers du site ne sont pas sauvegardés automatiquement.</p>'
2020-05-25 11:58:54 +02:00
]); ?>
2020-07-06 19:50:53 +02:00
</ div >
</ div >
< div class = " row " >
< div class = " col4 " >
< ? php echo template :: checkbox ( 'configAutoUpdate' , true , 'Mise à jour en ligne' , [
'checked' => $this -> getData ([ 'config' , 'autoUpdate' ]),
'help' => 'Vérifie une fois par jour l\'existence d\'une mise à jour.' ,
'disabled' => ! $error
2020-06-07 09:25:54 +02:00
]); ?>
2020-05-12 16:28:10 +02:00
</ div >
2020-07-06 19:50:53 +02:00
< div class = " col4 " >
< ? php echo template :: checkbox ( 'configAutoUpdateHtaccess' , true , 'Préserver htaccess' , [
'checked' => $this -> getData ([ 'config' , 'autoUpdateHtaccess' ]),
'help' => 'Lors d\'une mise à jour automatique, conserve le fichier htaccess de la racine du site.' ,
2020-05-12 18:27:28 +02:00
'disabled' => ! $error
2020-05-07 08:36:24 +02:00
]); ?>
2020-07-06 19:50:53 +02:00
</ div >
< div class = " col4 " >
< ? php echo template :: button ( 'configUpdateForced' , [
'ico' => 'download-cloud' ,
'href' => helper :: baseUrl () . 'install/update' ,
'value' => 'Mise à jour manuelle' ,
'class' => 'buttonRed' ,
'disabled' => ! $error
]); ?>
2020-05-12 16:28:10 +02:00
</ div >
</ div >
2020-05-25 11:58:54 +02:00
</ div >
2020-05-12 16:28:10 +02:00
</ div >
</ div >
2020-08-15 09:48:13 +02:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
< h4 > Pages spéciales </ h4 >
< div class = " row " >
< div class = " col4 " >
< ? php
$pages = $this -> getData ([ 'page' ]);
foreach ( $pages as $page => $pageId ) {
if ( $this -> getData ([ 'page' , $page , 'block' ]) === 'bar' ||
2020-09-14 21:15:55 +02:00
$this -> getData ([ 'page' , $page , 'disable' ]) === true ) {
2020-08-15 09:48:13 +02:00
unset ( $pages [ $page ]);
}
}
2020-09-14 21:15:55 +02:00
$orphans = $this -> getData ([ 'page' ]);
foreach ( $orphans as $page => $pageId ) {
if ( $this -> getData ([ 'page' , $page , 'block' ]) === 'bar' ||
$this -> getData ([ 'page' , $page , 'disable' ]) === true ||
$this -> getdata ([ 'page' , $page , 'position' ]) !== 0 ) {
unset ( $orphans [ $page ]);
}
}
2020-08-15 09:48:13 +02:00
echo template :: select ( 'configHomePageId' , helper :: arrayCollumn ( $pages , 'title' , 'SORT_ASC' ), [
'label' => 'Accueil du site' ,
'selected' => $this -> getData ([ 'config' , 'homePageId' ]),
'help' => 'La première page que vos visiteurs verront.'
]); ?>
</ div >
< div class = " col4 " >
2020-09-25 16:38:40 +02:00
< ? php echo template :: select ( 'configLegalPageId' , array_merge ([ 'none' => 'Aucune' ] , helper :: arrayCollumn ( $pages , 'title' , 'SORT_ASC' ) ) , [
2020-08-15 09:48:13 +02:00
'label' => 'Mentions légales' ,
'selected' => $this -> getData ([ 'config' , 'legalPageId' ]),
'help' => 'Les mentions légales sont obligatoires en France. Une option du pied de page ajoute un lien discret vers cette page.'
]); ?>
</ div >
< div class = " col4 " >
2020-09-25 16:38:40 +02:00
< ? php echo template :: select ( 'configSearchPageId' , array_merge ([ 'none' => 'Aucune' ] , helper :: arrayCollumn ( $pages , 'title' , 'SORT_ASC' ) ) , [
2020-08-15 09:48:13 +02:00
'label' => 'Recherche dans le site' ,
'selected' => $this -> getData ([ 'config' , 'searchPageId' ]),
'help' => 'Sélectionner la page "Recherche" ou une page contenant le module "Recherche" permet d\'activer un lien dans le pied de page. '
]); ?>
</ div >
</ div >
< div class = " row " >
2020-09-12 09:52:30 +02:00
< div class = " col4 " >
2020-08-15 09:48:13 +02:00
< ? php
2020-09-25 11:50:14 +02:00
echo template :: select ( 'configPage403' , array_merge ([ 'none' => 'Page par défaut' ], helper :: arrayCollumn ( $orphans , 'title' , 'SORT_ASC' )), [
2020-08-15 09:48:13 +02:00
'label' => 'Accès interdit, erreur 403' ,
'selected' => $this -> getData ([ 'config' , 'page403' ]),
2020-09-14 21:15:55 +02:00
'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.'
2020-08-15 09:48:13 +02:00
]); ?>
</ div >
< div class = " col4 " >
< ? php
2020-09-25 11:50:14 +02:00
echo template :: select ( 'configPage404' , array_merge ([ 'none' => 'Page par défaut' ], helper :: arrayCollumn ( $orphans , 'title' , 'SORT_ASC' )), [
2020-09-12 09:52:30 +02:00
'label' => 'Page inexistante, erreur 404' ,
2020-08-15 09:48:13 +02:00
'selected' => $this -> getData ([ 'config' , 'page404' ]),
2020-09-14 21:15:55 +02:00
'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.'
2020-08-15 09:48:13 +02:00
]); ?>
</ div >
2020-09-12 09:52:30 +02:00
< div class = " col4 " >
< ? php
2020-09-25 11:50:14 +02:00
echo template :: select ( 'configPage302' , array_merge ([ 'none' => 'Page par défaut' ], helper :: arrayCollumn ( $orphans , 'title' , 'SORT_ASC' )), [
2020-09-12 09:52:30 +02:00
'label' => 'Site en maintenance' ,
'selected' => $this -> getData ([ 'config' , 'page302' ]),
2020-09-14 21:15:55 +02:00
'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.'
2020-09-12 09:52:30 +02:00
]); ?>
</ div >
2020-08-15 09:48:13 +02:00
</ div >
</ div >
</ div >
</ div >
2020-05-12 16:28:10 +02:00
< div class = " row " >
2020-06-05 07:23:36 +02:00
< div class = " col12 " >
< div class = " block " id = " social " >
2020-07-15 22:56:03 +02:00
< h4 > Réseaux sociaux
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-05 07:23:36 +02:00
< div class = " blockContainer " >
< div class = " row " >
< div class = " col3 " >
< ? php echo template :: text ( 'configSocialFacebookId' , [
'help' => 'Saisissez votre ID : https://www.facebook.com/[ID].' ,
'label' => 'Facebook' ,
'value' => $this -> getData ([ 'config' , 'social' , 'facebookId' ])
2020-05-07 08:36:24 +02:00
]); ?>
2020-06-05 07:23:36 +02:00
</ div >
< div class = " col3 " >
< ? php echo template :: text ( 'configSocialInstagramId' , [
'help' => 'Saisissez votre ID : https://www.instagram.com/[ID].' ,
'label' => 'Instagram' ,
'value' => $this -> getData ([ 'config' , 'social' , 'instagramId' ])
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: text ( 'configSocialYoutubeId' , [
'help' => 'ID de la chaîne : https://www.youtube.com/channel/[ID].' ,
'label' => 'Chaîne Youtube' ,
'value' => $this -> getData ([ 'config' , 'social' , 'youtubeId' ])
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: text ( 'configSocialYoutubeUserId' , [
'help' => 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].' ,
'label' => 'Youtube' ,
'value' => $this -> getData ([ 'config' , 'social' , 'youtubeUserId' ])
]); ?>
</ div >
2020-05-25 11:58:54 +02:00
</ div >
2020-05-28 07:19:06 +02:00
< div class = " row " >
2020-06-05 07:23:36 +02:00
< div class = " col3 " >
< ? php echo template :: text ( 'configSocialTwitterId' , [
'help' => 'Saisissez votre ID : https://twitter.com/[ID].' ,
'label' => 'Twitter' ,
'value' => $this -> getData ([ 'config' , 'social' , 'twitterId' ])
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: text ( 'configSocialPinterestId' , [
'help' => 'Saisissez votre ID : https://pinterest.com/[ID].' ,
'label' => 'Pinterest' ,
'value' => $this -> getData ([ 'config' , 'social' , 'pinterestId' ])
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: text ( 'configSocialLinkedinId' , [
'help' => 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].' ,
'label' => 'Linkedin' ,
'value' => $this -> getData ([ 'config' , 'social' , 'linkedinId' ])
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: text ( 'configSocialGithubId' , [
'help' => 'Saisissez votre ID Github : https://github.com/[ID].' ,
'label' => 'Github' ,
'value' => $this -> getData ([ 'config' , 'social' , 'githubId' ])
]); ?>
2020-05-28 07:19:06 +02:00
</ div >
2020-06-05 07:23:36 +02:00
</ div >
2020-05-12 16:28:10 +02:00
</ div >
2020-05-25 11:58:54 +02:00
</ div >
2019-12-16 17:26:53 +01:00
</ div >
2020-05-12 16:28:10 +02:00
</ div >
< div class = " row " >
< div class = " col12 " >
2020-06-11 11:25:53 +02:00
< div class = " block " id = " ceo " >
2020-07-15 22:56:03 +02:00
< h4 > Référencement
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-05 07:23:36 +02:00
< div class = " blockContainer " >
< div class = " row " >
< div class = " col4 offset1 " >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: button ( 'configMetaImage' , [
'href' => helper :: baseUrl () . 'config/configMetaImage' ,
'value' => 'Capture Open Graph' ,
'ico' => 'pencil'
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: button ( 'configSiteMap' , [
'href' => helper :: baseUrl () . 'config/generateFiles' ,
'value' => 'Sitemap.xml / Robots.txt' ,
'ico' => 'pencil'
]); ?>
</ div >
</ div >
</ div >
< div class = " col6 offset1 " >
< ? php if ( file_exists ( self :: FILE_DIR . 'source/screenshot.jpg' )) : ?>
< div class = " row " >
< div class = " col8 offset2 textAlignCenter " >
< img src = " <?php echo helper::baseUrl(false) . self::FILE_DIR.'source/screenshot.jpg';?> " data - tippy - content = " Cette capture d'écran est nécessaire aux partages sur les réseaux sociaux. Elle est régénérée lorsque le fichier 'screenshot.jpg' est effacé du gestionnaire de fichiers. " />
</ div >
</ div >
< ? php endif ; ?>
</ div >
2019-12-04 17:23:03 +01:00
</ div >
2020-05-25 11:58:54 +02:00
</ div >
2019-12-16 17:26:53 +01:00
</ div >
2020-05-07 08:36:24 +02:00
</ div >
2020-05-25 11:58:54 +02:00
</ div >
2020-10-11 19:29:33 +02:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " id = " login " >
< h4 > Sécurité de la connexion
< div class = " openClose " >
< ? php
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
?>
</ div >
</ h4 >
< div class = " blockContainer " >
< div class = " row " >
< div class = " col3 " >
< ? php echo template :: select ( 'configConnectAttempt' , $module :: $connectAttempt , [
'label' => 'Connexions successives' ,
'selected' => $this -> getData ([ 'config' , 'connect' , 'attempt' ])
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: select ( 'configConnectTimeout' , $module :: $connectTimeout , [
'label' => 'Blocage après échecs' ,
'selected' => $this -> getData ([ 'config' , 'connect' , 'timeout' ])
]); ?>
</ div >
< div class = " col3 verticalAlignBottom " >
< label id = " helpBlacklist " > Comptes inexistants
< ? php echo template :: help (
' La liste noire énumère les tentatives de connexion à partir de comptes inexistants . Sont stockés : la date , l\ ' heure , le nom du compte et l\ ' IP .
Après le nombre de tentatives autorisées , l\ 'IP et le compte sont bloqués.' );
?>
</ label >
< ? php echo template :: button ( 'configConnectblacListDownload' , [
'href' => helper :: baseUrl () . 'config/blacklistDownload' ,
'value' => 'Télécharger liste noire' ,
'ico' => 'download'
]); ?>
</ div >
< div class = " col3 verticalAlignBottom " >
< ? php echo template :: button ( 'ConfigConnectReset' , [
'class' => 'buttonRed' ,
'href' => helper :: baseUrl () . 'config/blacklistReset' ,
'value' => 'Réinitialiser liste' ,
'ico' => 'cancel'
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col3 " >
< ? php echo template :: checkbox ( 'configConnectCaptcha' , true , 'Captcha à la connexion' , [
'checked' => $this -> getData ([ 'config' , 'connect' , 'captcha' ])
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: checkbox ( 'configConnectCaptcha10' , true , 'Limité à 10 chiffres' , [
'checked' => $this -> getData ([ 'config' , 'connect' , 'captcha10' ])
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " id = " logs " >
< h4 > Journalisation
< div class = " openClose " >
< ? php
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
?>
</ div >
</ h4 >
< div class = " blockContainer " >
< div class = " row " >
< div class = " col4 verticalAlignBottom " >
< ? php echo template :: checkbox ( 'configConnectLog' , true , 'Activer la journalisation' , [
'checked' => $this -> getData ([ 'config' , 'connect' , 'log' ])
]); ?>
</ div >
< div class = " col3 offset2 " >
< ? php echo template :: button ( 'ConfigLogDownload' , [
'href' => helper :: baseUrl () . 'config/logDownload' ,
'value' => 'Télécharger journal' ,
'ico' => 'download'
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: button ( 'ConfigLogReset' , [
'class' => 'buttonRed' ,
'href' => helper :: baseUrl () . 'config/logReset' ,
'value' => 'Réinitialiser journal' ,
'ico' => 'cancel'
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
2020-05-12 16:28:10 +02:00
< div class = " row " >
< div class = " col12 " >
2020-06-11 11:25:53 +02:00
< div class = " block " id = " network " >
2020-07-15 22:56:03 +02:00
< h4 > Réseau
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-05 07:23:36 +02:00
< div class = " blockContainer " >
2020-05-12 16:28:10 +02:00
< div class = " row " >
2020-06-05 07:23:36 +02:00
< div class = " col2 " >
< ? php echo template :: select ( 'configProxyType' , $module :: $proxyType , [
'label' => 'Type de proxy' ,
'selected' => $this -> getData ([ 'config' , 'proxyType' ])
2020-05-25 11:58:54 +02:00
]); ?>
</ div >
2020-06-05 07:23:36 +02:00
< div class = " col8 " >
< ? php echo template :: text ( 'configProxyUrl' , [
'label' => 'Adresse du proxy' ,
'placeholder' => 'cache.proxy.fr' ,
'value' => $this -> getData ([ 'config' , 'proxyUrl' ])
2020-05-25 11:58:54 +02:00
]); ?>
2020-05-10 18:06:57 +02:00
</ div >
2020-05-12 16:28:10 +02:00
< div class = " col2 " >
2020-06-05 07:23:36 +02:00
< ? php echo template :: text ( 'configProxyPort' , [
'label' => 'Port du proxy' ,
'placeholder' => '6060' ,
'value' => $this -> getData ([ 'config' , 'proxyPort' ])
2020-05-25 11:58:54 +02:00
]); ?>
</ div >
2020-05-10 18:06:57 +02:00
</ div >
2020-06-05 07:23:36 +02:00
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
2020-06-11 11:25:53 +02:00
< div class = " block " id = " smtp " >
2020-07-15 22:56:03 +02:00
< h4 > Messagerie SMTP
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-05 07:23:36 +02:00
< div class = " blockContainer " >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: checkbox ( 'configSmtpEnable' , true , 'Activer SMTP' , [
'checked' => $this -> getData ([ 'config' , 'smtp' , 'enable' ]),
'help' => 'Paramètres à utiliser lorsque votre hébergeur ne propose pas la fonctionnalité d\'envoi de mail.'
]); ?>
</ div >
</ div >
< div id = " configSmtpParam " >
2020-05-11 12:15:51 +02:00
< div class = " row " >
2020-06-05 07:23:36 +02:00
< div class = " col8 " >
< ? php echo template :: text ( 'configSmtpHost' , [
'label' => 'Adresse SMTP' ,
'placeholder' => 'smtp.fr' ,
'value' => $this -> getData ([ 'config' , 'smtp' , 'host' ])
2020-05-25 11:58:54 +02:00
]); ?>
2020-05-12 16:28:10 +02:00
</ div >
2020-06-05 07:23:36 +02:00
< div class = " col2 " >
< ? php echo template :: text ( 'configSmtpPort' , [
'label' => 'Port SMTP' ,
'placeholder' => '589' ,
'value' => $this -> getData ([ 'config' , 'smtp' , 'port' ])
2020-05-25 11:58:54 +02:00
]); ?>
2020-05-11 12:15:51 +02:00
</ div >
< div class = " col2 " >
2020-06-05 07:23:36 +02:00
< ? php echo template :: select ( 'configSmtpAuth' , $module :: $SMTPauth , [
'label' => 'Authentification' ,
'selected' => $this -> getData ([ 'config' , 'smtp' , 'auth' ])
2020-05-25 11:58:54 +02:00
]); ?>
</ div >
</ div >
2020-06-05 07:23:36 +02:00
< div id = " configSmtpAuthParam " >
< div class = " row " >
< div class = " col5 " >
< ? php echo template :: text ( 'configSmtpUsername' , [
'label' => 'Nom utilisateur' ,
'value' => $this -> getData ([ 'config' , 'smtp' , 'username' ])
]); ?>
</ div >
< div class = " col5 " >
< ? php echo template :: password ( 'configSmtpPassword' , [
'label' => 'Mot de passe' ,
'autocomplete' => 'off' ,
'value' => $this -> getData ([ 'config' , 'smtp' , 'username' ]) ? helper :: decrypt ( $this -> getData ([ 'config' , 'smtp' , 'username' ]), $this -> getData ([ 'config' , 'smtp' , 'password' ])) : ''
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: select ( 'configSmtpSecure' , $module :: $SMTPEnc , [
'label' => 'Sécurité' ,
'selected' => $this -> getData ([ 'config' , 'smtp' , 'secure' ])
]); ?>
</ div >
</ div >
</ div >
2020-05-12 16:28:10 +02:00
</ div >
2020-05-25 11:58:54 +02:00
</ div >
2020-05-10 18:06:57 +02:00
</ div >
2020-05-12 16:28:10 +02:00
</ div >
2020-05-25 11:58:54 +02:00
</ div >
2020-05-31 19:08:19 +02:00
< div class = " row " >
< div class = " col12 " >
2020-06-11 11:25:53 +02:00
< div class = " block " id = " script " >
2020-07-15 22:56:03 +02:00
< h4 > Scripts
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-05 07:23:36 +02:00
< div class = " blockContainer " >
< div class = " row " >
< div class = " col3 " >
< ? php echo template :: text ( 'configAnalyticsId' , [
'help' => 'Saisissez l\'ID de suivi.' ,
'label' => 'Google Analytics' ,
'placeholder' => 'UA-XXXXXXXX-X' ,
'value' => $this -> getData ([ 'config' , 'analyticsId' ])
]); ?>
</ div >
< div class = " col3 offset3 verticalAlignBottom " >
< ? php echo template :: button ( 'configScriptHead' , [
'href' => helper :: baseUrl () . 'config/script/head' ,
'value' => 'Script dans head' ,
'ico' => 'pencil'
]); ?>
</ div >
< div class = " col3 verticalAlignBottom " >
< ? php echo template :: button ( 'ConfigScriptBody' , [
'href' => helper :: baseUrl () . 'config/script/body' ,
'value' => 'Script dans body' ,
'ico' => 'pencil'
2020-05-31 19:08:19 +02:00
]); ?>
2020-06-05 07:23:36 +02:00
</ div >
2020-05-31 19:08:19 +02:00
</ div >
</ div >
</ div >
</ div >
</ div >
2019-07-04 20:42:23 +02:00
< ? php echo template :: formClose (); ?>