diff --git a/assests/css/style.css b/assests/css/style.css index 1ba981a..13d28fb 100644 --- a/assests/css/style.css +++ b/assests/css/style.css @@ -128,3 +128,51 @@ body { .txt_title { color: rgb(51, 152, 217); } + +/* On cible la card sans casser ses propriétés Bootstrap */ +.tiger-theme { + background-color: #ff8c00 !important; /* Orange tigre */ + background-image: repeating-linear-gradient( + 45deg, + transparent, + transparent 30px, + rgba(0, 0, 0, 0.15) 30px, + rgba(0, 0, 0, 0.15) 60px + ) !important; + border: 2px solid #000 !important; + color: #000 !important; + position: relative; + z-index: 1; +} + +/* Style du texte pour qu'il ressorte sur l'orange */ +.tiger-text { + font-weight: 800 !important; + text-transform: uppercase; + color: #000 !important; +} + +.tiger-date { + font-size: 0.8rem; + font-weight: bold; + color: rgba(0, 0, 0, 0.7); +} + +/* Bordure de l'image (n'affecte pas la taille de la card) */ +.tiger-border { + box-shadow: 0 0 0 4px #000; +} + +/* Bouton style tigre */ +.btn-tiger { + background-color: #000 !important; + color: #ff8c00 !important; + border: none !important; + font-weight: bold !important; + transition: transform 0.2s; +} + +.btn-tiger:hover { + transform: scale(1.05); + background-color: #222 !important; +} \ No newline at end of file diff --git a/controllers/MotherCtrl.php b/controllers/MotherCtrl.php index bea90b2..49ccbdf 100644 --- a/controllers/MotherCtrl.php +++ b/controllers/MotherCtrl.php @@ -23,6 +23,7 @@ $objSmarty = new Smarty(); $objSmarty->registerPlugin('modifier', 'vardump', 'var_dump'); $objSmarty->registerPlugin('modifier', 'file_exists', 'file_exists'); + $objSmarty->registerPlugin('modifier', 'stripos', 'stripos'); $objSmarty->caching = false; $objSmarty->force_compile = true; diff --git a/models/MotherModel.php b/models/MotherModel.php index df9f2f7..d63bcfd 100644 --- a/models/MotherModel.php +++ b/models/MotherModel.php @@ -11,8 +11,8 @@ try{ $this->_db = new PDO( "mysql:host=localhost;dbname=projet_folliow", - "projet_user", - "F0lliowRules!", + "root", + "", array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC) ); $this->_db->exec("SET CHARACTER SET utf8"); diff --git a/views/project_display.tpl b/views/project_display.tpl index f2ef4ba..0881b81 100644 --- a/views/project_display.tpl +++ b/views/project_display.tpl @@ -97,21 +97,50 @@
-
-
+
+
+ - Publié le {$objProject->getCreation_date()} -
++ Publié le {$objProject->getCreation_date()} +
- + -