Commit bf552831 authored by N. Peraldi's avatar N. Peraldi
Browse files

refactor: edit icons directory in php code

parent db47ad2a
</div><!-- #content -->
<?php
$theme_name = get_stylesheet_directory_uri();
$twitter_directory = $theme_name . "/media/adullact/" . "icon-twitter.png";
$youtube_directory = $theme_name . "/media/adullact/" . "icon-youtube.png";
$mastodon_directory = $theme_name . "/media/adullact/" . "icon-mastodon.png";
$linkedin_directory = $theme_name . "/media/adullact/" . "icon-linkedin.png";
$twitter_directory = $theme_name . "/media/icons/" . "twitter.png";
$youtube_directory = $theme_name . "/media/icons/" . "youtube.png";
$mastodon_directory = $theme_name . "/media/icons/" . "mastodon.png";
$linkedin_directory = $theme_name . "/media/icons/" . "linkedin.png";
?>
<footer id="colophon" class="site-footer" role="contentinfo">
<div id="adullact-footer" class="wrap">
......
......@@ -4,13 +4,18 @@
* ce fichier a pour objectif d'afficher les actualités, malgré son nom "index.php" qui pourrait laisser penser
* que c'est la page d'accueil.
*/
$theme_name = get_stylesheet_directory_uri();
$theme_directory = get_stylesheet_directory_uri();
$adullact_medias_directory = $theme_directory . "/media/adullact/";
$adullact_icons_directory = $theme_directory . "/media/icons/";
$icon_name = "icon-blue-book.png";
$parallax_name = "image_parallax_2.jpg";
$parallax_pic = $theme_directory . "image_parallax_2.jpg";
$adullact_icon_directory = $theme_name . "/media/adullact/" . $icon_name;
$adullact_parallax_directory = $theme_name . "/media/adullact/" . $parallax_name;
$comptoir_icon = $adullact_icons_directory . "comptoir.png";
$faq_icon = $adullact_icons_directory . "faq.png";
$forge_icon = $adullact_icons_directory . "forge.png";
$labelTNL_icon = $adullact_icons_directory . "labelTNL.png";
$services_icon = $adullact_icons_directory . "services.png";
$newsletter_icon = $adullact_icons_directory . "newsletter.png";
get_header(); ?>
......@@ -65,38 +70,38 @@ get_header(); ?>
<div class="adullact-cadres-ligne">
<div class="adullact-cadre">
<a href="#">
<img src="<?= $adullact_icon_directory ?>" alt="test">
<img src="<?= $comptoir_icon ?>" alt="test">
<p>Comptoir du libre</p>
</a>
</div>
<div class="adullact-cadre">
<a href="#">
<img src="<?= $adullact_icon_directory ?>" alt="test">
<img src="<?= $forge_icon ?>" alt="test">
<p>Forge</p>
</a>
</div>
<div class="adullact-cadre">
<a href="#">
<img src="<?= $adullact_icon_directory ?>" alt="test">
<img src="<?= $services_icon ?>" alt="test">
<p>Services</p>
</a>
</div>
<div class="adullact-cadre">
<a href="#">
<img src="<?= $adullact_icon_directory ?>" alt="test">
<img src="<?= $labelTNL_icon ?>" alt="test">
<p>Label TNL</p>
</a>
</div>
<div class="adullact-cadre">
<a href="#">
<img src="<?= $adullact_icon_directory ?>" alt="test">
<img src="<?= $newsletter_icon ?>" alt="test">
<p>Lettre</p>
</a>
</div>
<div class="adullact-cadre">
<a href="#">
<img src="<?= $adullact_icon_directory ?>" alt="test">
<img src="<?= $faq_icon ?>" alt="test">
<p>FAQ</p>
</a>
</div>
......@@ -108,7 +113,7 @@ get_header(); ?>
</div><!-- .wrap -->
<!-- effet parallax-->
<div <?php add_parallax($adullact_parallax_directory) ?>>
<div <?php add_parallax($parallax_pic) ?>>
<div class="wrap">
<div class="adullact-cadres-ligne">
<div class="adullact-cadre-texte">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment