alpha_full/admin/styles/css.php
2026-04-06 22:58:51 +02:00

75 lines
3.4 KiB
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
$pathCss=("./styles/");
// -----------------------------------------------------
// Pas de preview grande image par defaut
// -----------------------------------------------------
$previewBackGrdImg=false;
// -----------------------------------------------------
// listes des couleurs par nom pour les listes déroulantes
// -----------------------------------------------------
require_once ( $pathCss. "couleursGene/codesCouleur.php");
include ($includePathAdmin. "/ressources/fontListe.php");
for($w=0;$w<count($fontList);$w++) {
$userListFont[$w]=substr ($fontList[$w], 0,strpos($fontList[$w],',') );
$test1=substr($fontList[$w],0,5);
if ($test1=="&#34;") {
$userListFont[$w]=substr($userListFont[$w],5, strlen($userListFont[$w]));
$userListFont[$w]=substr($userListFont[$w],0, strlen($userListFont[$w])-5);
}
}
// -----------------------------------------------------
// Menu CSS
// -----------------------------------------------------
include ($pathCss. "css.menu.php");
// -----------------------------------------------------
// lien vers gestion des icones
// -----------------------------------------------------
if ($nomCss=='#iconesPpauxMenuDeroulant') {
echo '<span class="boutonsMenusWbm" onClick="window.location=\'./agencement/deroulantMenuModale.php\';" >';
echo '<span>';
echo '<i class="fad fa-ice-cream" ></i>';
echo '<span >Icônes menu</span>';
echo '</span>';
echo '</span>';
}
// -----------------------------------------------------
// include des sections
// -----------------------------------------------------
// pourrait etre optimisé en ne faisant qu'1 seul include a la fois selon aff ?
// -----------------------------------------------------
require_once ( $pathCss. "sections/fonctionsUnite.php");
include ($pathCss. "sections/sectionAffichage.php");
include ($pathCss. "sections/sectionPosition.php");
include ($pathCss. "sections/sectionEsp.php");
include ($pathCss. "sections/sectionTaille.php");
include ($pathCss. "sections/sectionBords.php");
include ($pathCss. "sections/sectionCouleurFonds.php");
include ($pathCss. "sections/sectionTexte.php");
include ($pathCss. "sections/sectionPolice.php");
include ($pathCss. "sections/sectionImages.php");
include ($pathCss. "sections/sectionAnim.php");
// -----------------------------------------------------
// Preview
// -----------------------------------------------------
if( $_SESSION['isAgencement']===false) {
echo '<div id="zonePreviewCss" >';
//echo $nomFicAppelant;
$title = "Attention : la prévisualisation dépends du contexte, c'est à dire qu'ici il n'y a pas les conteneurs parents, ni enfants par exemple.
Si vous voulez une prévisualisation fidèle, vous pouvez consulter la page agencement et y afficher l'item sur lequel vous êtes en train de modifier le style. ";
echo '<div class="informationsTechLib" data-tooltip="' .$title. '" style="display:block; width:100%; margin:auto; color:blue; font-style:italic; font-weight:100; font-size:1rem;"><br><b><i>Prévisualisation de la classe CSS seule : </i></b>';
echo '</div>';
if (isset($cssID[$theNumCss])) $idCss=$cssID[$theNumCss];
echo '<div style="text-align-center; margin:auto; white-space: break-spaces; word-break:break-word; margin-bottom:8px;">';
include ("./styles/preview2.php");
echo '</div>';
echo '</div>';
}
?>