Toutes mes réponses sur les forums
-
AuteurMessages
-
20 mars 2008 à 15 h 37 min en réponse à : intégration de Css au php et nom de mes pages et leurs css associés ? #624463
bonjour,
peux tu m’expliquer :je shunterais l’appel standard au fichier style, pour le remplacer par la fonction, j’ai du mal à comprendre ce que tu veux dire par là. et si je comprends ton message aucune syntaxe ci dessus dans mon précédent message n’est bonne ! oh rage, oh désespoir!
Bonjour, je pense avoir trouvé un truc plus intéressant que ci-dessus qui permettrait d’utiliser mon précédent css:
je pense même avoir trouvé mieux pour mon menu mais ne sait pas si c’est juste au niveau de la syntaxe, si ça marche ce serait un bon truc pour moi. D’ailleurs aucune branche du W3C ne teste le php?
<?php
$menuabstracts = <<<MENUABSTRACTS
<ul id="menu_oupocreanum">
<li><span class="off">home</span></a></li>
<li><span class="off">biography</span></a></li>
<li><li><span class="off">randomizer</span></a></li>
<li><span class="off">workingprogress</span></a></li></ul>
MENUABSTRACTS;
$lines = split(« n », $menuabstracts);
foreach ($lines as $line) {
$current = false;
preg_match(‘/href= »([^ »]+) »/’, $line, $url);
if (substr($_SERVER[« REQUEST_URI »], 0, 5) == substr($url[1], 0, 5)) {
$line = str_replace(‘<a h', '<a id="current">Bon j’ai créer en gros mon fichier header.php qui ressemble à ceci :
<html xmlns="http://www.w3.org/1999/xhtml" >
<meta http-equiv="Content-Type" content="; charset= » />
<title> » Blog Archive </title>
<meta name="generator" content="WordPress » /> <!-- leave this for stats -->
<link rel="stylesheet" href="/stylehome.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/workingprogress.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/randomizer.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/workingprogress.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/workingprogress.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/workingprogress.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/stylehome.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/pictures.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/stylehome.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/software.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/exhibition.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/abstracts.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/diagrams.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/machines.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/artists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/bibliography.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/webography.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/discography.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/citations.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lexique.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/workingprogress.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/workingprogress.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/workingprogress.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="stylesheet" href="/common.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/links.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/lists.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/workingprogress.css » type= »text/css » media= »screen » />;
<link rel="stylesheet" href="/menusite.css » type= »text/css » media= »screen » />;
;
<link rel="alternate" type="application/rss+xml" title=" RSS Feed » href= » » />
<link rel="pingback" href=" » />
#page { background: url(« /images/kubrickbg-.jpg ») repeat-y top; border: none; }
#page { background: url(« /images/kubrickbgwide.jpg ») repeat-y top; border: none; }
<div id="page">
<div id="header">
<div id="headerimg">
<h1><a href="/ »></a></h1>
<div class="description"></div>
mais dans ma console d’administration mon dossier de thème n’apparaît pas.
que faire?bon je pense avoir trouver le moyen de faire le lin entre chaque page et le css
<?php
$menuhome = <<<MENUHOME
<ul id="nav">
<li>« Home »>Home</a></li>
<li>« Biography »>biography</a></li>
<li>« randomizer »>randomizer</a></li>
</ul>
MENUHOME;
$lines = split(« n », $menuhome);
foreach ($lines as $line) {
$current = false;
preg_match(‘/href= »([^ »]+) »/’, $line, $url);
if (substr($_SERVER[« REQUEST_URI »], 0, 5) == substr($url[1], 0, 5)) {
$line = str_replace(‘<a h', '<a id="current" h', $line);
}
echo $line."n";
}je pense qu’un truc comme au dessus peut m’aider dans ma démarche je l’ai adapté en partant de :
<?php
$menu = <<<MENU
<ul id="nav">
<li><a href="/" title="Where the heart is">Home</a></li>
<li><a href="/archives/" title="Things that have passed.">Archives</a></li>
<li><a href="/about/" title="All about Matt">About</a></li>
<li><a href="/photos/" title="It's the 'photo' in Matt">Photos</a></li>
<li><a href="/music/" title="The food of love">Music</a></li>
<li><a href="/scripts/" title="Free (as in beer and speech) code">Scripts</a></li>
<li><a href="/jazzquotes/" title="Great quotes from amazing musicians. More in the future.">Jazz Quotes</a></li>
<li><a href="/toys/" title="Make me tick: Reviews of various electronics I own or have come into contact with.">Toys</a></li>
<li><a href="/xml/" title="Syndicate the content here. Get Matt to-go.">Syndicate</a></li>
<li><a href="/portal/" title="My personal start page, has my blogroll and links to interesting sites">Portal</a></li>
<li><a href="/zeitgeist/" title="A google of random stats about the website">Zeitgeist</a></li>
<li><a href="/contact/" title="Reach out and touch somebody. How to get in contact with me, also has GPG key and geek code.">Contact</a></li>
</ul>
MENU;
$lines = split(« n », $menu);
foreach ($lines as $line) {
$current = false;
preg_match(‘/href= »([^ »]+) »/’, $line, $url);
if (substr($_SERVER[« REQUEST_URI »], 0, 5) == substr($url[1], 0, 5)) {
$line = str_replace(‘<a h', '<a id="current" h', $line);
}
echo $line."n";
}Oui, voilà c’est là ou ça coince en fait je cherche en php à quoi correspond le nom de chaque élément crée comme home, biography, etc car comment lui attribuer une valeur ou un argument en css, à moins que si je donne l’id corespondant du genre
#a « id 5 » = a# »id 5″on {
dans mon css
Merci pour le tuyau
du coup dans mon css dois je mettre un truc commea# »home » au lieu de ce que j’avais fait aupparavant?
a#menu_home, a#menu_home_on {
position: absolute;
top: -30px;
left: -1px;
}
a#menu_biography, a#menu_biography_on {
position: absolute;
top: -30px;
left: 28px;
}a#menu_random, a#menu_random_on {
position: absolute;
top: -30px;
left: 57px;
}a#menu_workingprogress, a#menu_workingprogress_on {
position: absolute;
top: -30px;
left: 86px;
}a#menu_play, a#menu_play_on {
position: absolute;
top: -30px;
left: 115px;
}a#menu_videos, a#menu_videos_on {
position: absolute;
top: -30px;
left: 144px;
}a#menu_pictures, a#menu_pictures_on {
position: absolute;
top: -30px;
left: 173px;
}a#menu_sounds, a#menu_sounds_on {
position: absolute;
top: -30px;
left: 202px;
}a#menu_software, a#menu_software_on {
position: absolute;
top: -30px;
left: 231px;
}a#menu_exhibition, a#menu_exibition_on {
position: absolute;
top: -30px;
left: 260px;
}a#menu_abstracts, a#menu_abstracts_on {
position: absolute;
top: -30px;
left: 289px;
}a#menu_diagrams, a#menu_diagrams_on {
position: absolute;
top: -30px;
left: 318px;
}a#menu_machines, a#menu_machines_on {
position: absolute;
top: -30px;
left: 347px;
background-image: url(stylesoupocreanum/imagesoupocreanum/iconesmenu/machines_inactive.gif);
}a#menu_artists, a#menu_artists_on {
position: absolute;
top: -30px;
left: 376px;
}a#menu_bibliography, a#menu_bibliography_on {
position: absolute;
top: -30px;
left: 405px;
}a#menu_webography, a#menu_webography_on {
position: absolute;
top: -30px;
left: 434px;
}a#menu_discography, a#menu_discography_on {
position: absolute;
top: -30px;
left: 463px;
}a#menu_citations, a#menu_citations_on {
position: absolute;
top: -30px;
left: 492px;
background-image: url(../index/styles/menu/citations_inactive.gif);
}a#menu_lexique, a#menu_lexique_on {
position: absolute;
top: -30px;
left: 521px;
}a#menu_links, a#menu_links_on {
position: absolute;
top: -30px;
left: 550px;
}a#menu_forum, a#menu_forum_on {
position: absolute;
top: -30px;
left: 579px;
}
a#menu_upload, a#menu_upload_on {
position: absolute;
top: -30px;
left: 608px;
}a#menu_thanks, a#menu_thanks_on {
position: absolute;
top: -30px;
left: 637px;
}ul#menu_oupocreanum {
list-style-type: none;
}a#menu_home, a#menu_home_on, a#menu_biography, a#menu_biography_on, a#menu_random, a#menu_random_on, a#menu_workingprogress, a#menu_workingprogress_on, a#menu_play, a#menu_play_on, a#menu_videos, a#menu_videos_on, a#menu_pictures, a#menu_pictures_on, a#menu_sounds, a#menu_sounds_on, a#menu_software, a#menu_software_on, a#menu_exhibition, a#menu_exhibition_on, a#menu_abstracts, a#menu_abstracts_on, a#menu_machines, a#menu_machines_on, a#menu_diagrams, a#menu_diagrams_on, a#menu_artists, a#menu_artists_on, a#menu_bibliography, a#menu_bibliography_on, a#menu_webography, a#menu_webography_on, a#menu_discography, a#menu_discography_on, a#menu_citations, a#menu_citations_on, a#menu_lexique, a#menu_lexique_on, a#menu_links, a#menu_links_on, a#menu_forum, a#menu_forum_on, a#menu_upload, a#menu_upload_on, a#menu_thanks, a#menu_thanks_on {
width: 28px;
height: 28px;
border-style: dotted;
border-width: 1px;
border-color: grey;
border-bottom-width: 0px;
background-color: white !important;
}a#menu_home:link, a#menu_home:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/home_inactive.gif);
}a#menu_home_on:link, a#menu_home_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/home_active.gif);
}a#menu_home:hover, a#menu_home_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/home_hover.gif;
}a#menu_biography:link, a#menu_biography:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/bibliography_inactive.gif));
}a#menu_biography_on:link, a#menu_biography_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/biography_active.gif);
}a#menu_biography:hover, a#menu_biography_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/biography_hover.gif);
}a#menu_random:link, a#menu_random:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/rand_inactive.gif);
}a#menu_random_on:link, a#menu_random_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/rand_active.gif);
}a#menu_random:hover, a#menu_random_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/rand_hover.gif);
}a#menu_workingprogress:link, a#menu_workingprogress:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/workingprogress_inactive.gif);
}a#menu_workingprogress_on:link, a#menu_workingprogress_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/workingprogress_active.gif);
}a#menu_workingprogress:hover, a#menu_workingprogress_on:hover {
background:url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/workingprogress_hover.gif);
}a#menu_play:link, a#menu_play:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/play_inactive.gif);
}a#menu_play_on:link, a#menu_play_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/play_active.gif);
}a#menu_play:hover, a#menu_play_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/play_hover.gif);
}a#menu_videos:link, a#menu_videos:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/videos_inactive.gif);
}a#menu_videos_on:link, a#menu_videos_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/videos_active.gif);
}a#menu_videos:hover, a#menu_videos_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/videos_hover.gif);
}a#menu_pictures:link, a#menu_pictures:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/pictures_inactive.gif);
}a#menu_pictures_on:link, a#menu_pictures_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/pictures_active.gif);
}a#menu_pictures:hover, a#menu_pictures_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/pictures_hover.gif);
}a#menu_sounds:link, a#menu_sounds:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/sounds_inactive.gif);
}a#menu_sounds_on:link, a#menu_sounds_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/sounds_active.gif);
}a#menu_sounds:hover, a#menu_sounds_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/sounds_hover.gif);
}a#menu_exhibition:link, a#menu_exhibition:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/exhibition_inactive.gif);
}a#menu_exhibition_on:link, a#menu_exhibition_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/exhibition_active.gif);
}a#menu_exhibition:hover, a#menu_exhibition_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/exhibition_hover.gif);
}a#menu_abstracts:link, a#menu_abstracts:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/abstracts_inactive.gif);
}a#menu_abstracts_on:link, a#menu_abstracts_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/abstracts_active.gif);
}a#menu_abstracts:hover, a#menu_abstracts_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/abstracts_hover.gif);
}a#menu_diagrams:link, a#menu_diagrams:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/diagrams_inactive.gif);
}a#menu_diagrams_on:link, a#menu_diagrams_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/diagrams_active.gif);
}a#menu_diagrams:hover, a#menu_diagrams_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/diagrams_hover.gif);
}a#menu_lexique:link, a#menu_lexique:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/lexique_inactive.gif);
}a#menu_lexique_on:link, a#menu_lexique_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/lexique_active.gif);
}a#menu_lexique:hover, a#menu_lexique_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/lexique_hover.gif);
}a#menu_software:link, a#menu_software:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/software_inactive.gif);
}a#menu_software_on:link, a#menu_software_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/software_active.gif);
}a#menu_software:hover, a#menu_software_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/software_hover.gif);
}a#menu_machines:link, a#menu_machines:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/machines_inactive.gif);
}a#menu_machines_on:link, a#menu_machines_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/machines_active.gif);
}a#menu_machines:hover, a#menu_machines_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/machines_hover.gif);
}a#menu_artists:link, a#menu_artists:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/artists_inactive.gif);
}a#menu_artists_on:link, a#menu_artists_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/artists_active.gif);
}a#menu_artists:hover, a#menu_artists_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/artists_hover.gif);
}a#menu_bibliography:link, a#menu_bibliography:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/bibliography_inactive.gif);
}a#menu_bibliography_on:link, a#menu_bibliography_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/bibliography_active.gif);
}a#menu_bibliography:hover, a#menu_bibliography_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/bibliography_hover.gif);
}a#menu_webography:link, a#menu_webography:visited {
background:url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/webography_inactive.gif);
}a#menu_webography_on:link, a#menu_webography_on:visited {
background:url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/webography_active.gif;
}a#menu_webography:hover, a#menu_webography_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/webography_hover.gif);
}a#menu_discography:link, a#menu_discography:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/discography_inactive.gif);
}a#menu_discography_on:link, a#menu_discography_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/discography_active.gif);
}a#menu_discography:hover, a#menu_discography_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/discography_hover.gif);
}a#menu_citations:link, a#menu_citations:visited {
background:url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/citations_inactive.gif);
}a#menu_citations_on:link, a#menu_citations_on:visited {
background:url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/citations_active.gif);
}a#menu_citations:hover, a#menu_citations_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/citations_hover.gif);
}a#menu_links:link, a#menu_links:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/links_inactive.gif);
}a#menu_links_on:link, a#menu_links_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/links_active.gif);
}a#menu_links:hover, a#menu_links_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/links_hover.gif)
}a#menu_forum:link, a#menu_forum:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/forum_inactive.gif)
}a#menu_forum_on:link, a#menu_forum_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/forum_active.gif);
}a#menu_forum:hover, a#menu_forum_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/forum_hover.gif);
}a#menu_upload:link, a#menu_upload:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/upload_inactive.gif);
}a#menu_upload_on:link, a#menu_upload_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/upload_active.gif);
}a#menu_upload:hover, a#menu_upload_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/upload_hover.gif);
}a#menu_thanks:link, a#menu_thanks:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/thanks_inactive.gif);
}a#menu_thanks_on:link, a#menu_thanks_on:visited {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/thanks_active.gif);
}a#menu_thanks:hover, a#menu_thanks_on:hover {
background: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/thanks_hover.gif);
}/* english french deutsch language links */
ul#language {
list-style-type: none;
}a#menu_english_active, a#menu_english_inactive, a#menu_french_active, a#menu_french_inactive,a#menu_deutsch_active, a#menu_deutsch_inactive {
width: 28px;
height: 28px;
border-style: dotted;
border-width: 1px;
border-color: grey;
border-left-width: 0px;
background-color: white !important; /* remove transparent holes in border */
z-index: 1;
}a#menu_english_active {
position: absolute;
top: -1px;
left: 792px;
}a#menu_english_inactive {
position: absolute;
top: -1px;
left: 792px;
}a#menu_french_active {
position: absolute;
top: 28px;
left: 792px;
}a#menu_french_inactive {
position: absolute;
top: 28px;
left: 792px;
}
a#menu_deutsch_active {
position: absolute;
top: 57px;
left: 792px;
}a#menu_deutsch_inactive {
position: absolute;
top: 57px;
left: 792px;
}a#menu_english_active:link, a#menu_english_active:visited {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/english_active.gif);
}a#menu_english_inactive:link, a#menu_english_inactive:visited {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/english_inactive.gif);
}a#menu_english_active:hover, a#menu_english_inactive:hover {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/english_hover.gif);
}a#menu_french_active:link, a#menu_french_active:visited {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/french_active.gif);
}a#menu_french_inactive:link, a#menu_french_inactive:visited {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/french_inactive.gif);
}a#menu_french_active:hover, a#menu_french_inactive:hover {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/french_hover.gif);
}a#menu_deutsch_active:link, a#menu_deutsch_active:visited {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/deutsch_active.gif);
}a#menu_deutsch_inactive:link, a#menu_deutsch_inactive:visited {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/deutsch_inactive.gif);
}a#menu_deutsch_active:hover, a#menu_deutsch_inactive:hover {
background-image: url(/wp-content/themes/oupocreanum/imagesoupocreanum/iconesmenu/deutsch_hover.gif);
}et ensuite je compte faire un truc pour que la recherche soit active en fonction des pages, mais là je crois être sur une piste?
Bon pour tout te dire je cherche à faire un site qui ressemble dans l’esprit à celui-ci : http://abstractmachine.net
l’idée est d’accéder à travers un menu composé d’images cliquables qui changent en fonction que tu sois dans telles ou tels pages, pour chaque page des catégories différents , des tags différents, chaque page à sa caractéristique proche son ou ses css associés en fait pour te dire la vérité, j’avais mis en place mon site en html et css ,ça marchait très bien seulement quand tu arrive à 72000 fichiers et plus l’équivalent de 8000 fichiers HTML ,ça devient lourd à gérer, c’est pourquoi je compte utiliser wordpress pour son moteur de blog une fois la grosse infrastructure réalisée surtout que mon site changeais jour après jours.bon ci-dessus c’est le fichier template.php mais je ne sais pas trop ci je dois y toucher pour lui définir mes différentes pages.
Si je te suis à partir de ce fichier ,déjà je pourrais indiquer mes pages
<?php
require_once(‘admin.php’);
$title = __(‘Template & File Editing’);
$parent_file = ‘edit.php’;wp_reset_vars(array(‘action’, ‘redirect’, ‘profile’, ‘error’, ‘warning’, ‘a’, ‘file’));
$recents = get_option(‘recently_edited’);
if (empty($file)) {
if ($recents) {
$file = $recents[0];
} else {
$file = ‘index.php’;
$file = ‘home.php’;
et ainsi de suite jusqu’à thanks.php}
}$file = validate_file_to_edit($file);
$real_file = get_real_file_to_edit($file);switch($action) {
case ‘update’:
check_admin_referer(‘edit-file_’ . $file);
if ( ! current_user_can(‘edit_files’) )
wp_die(‘‘.__(‘You do not have sufficient permissions to edit templates for this blog.’).’
‘);
$newcontent = stripslashes($_POST);
if (is_writeable($real_file)) {
$f = @ fopen($real_file, ‘w+’);
if ( $f ) {
fwrite($f, $newcontent);
fclose($f);
wp_redirect(« templates.php?file=$file&a=te »);
} else {
wp_redirect(« templates.php?file=$file&a=err »);
}
} else {
wp_redirect(« templates.php?file=$file&a=err »);
}exit();
break;
default:
require_once(‘./admin-header.php’);
if ( ! current_user_can(‘edit_files’) )
wp_die(‘‘.__(‘You do not have sufficient permissions to edit templates for this blog.’).’
‘);
if (strpos($file, ‘wp-config.php’) !== false)
wp_die(‘‘.__(‘The config file cannot be edited or viewed through the web interface. Sorry!’).’
‘);
update_recently_edited($file);
if (!is_file($real_file))
$error = true;if (!$error) {
$f = @ fopen($real_file, ‘r’);
if ( $f ) {
if ( filesize($real_file ) > 0 ) {
$content = fread($f, filesize($real_file));
$content = htmlspecialchars($content);
} else {
$content = »;
}
} else {
$error = true;
}
}?>
<?php
if (is_writeable($real_file)) {
echo ‘‘ . sprintf(__(‘Editing %s‘), wp_specialchars($file) ) . ‘
‘;
} else {
echo ‘‘ . sprintf(__(‘Browsing %s‘), wp_specialchars($file) ) . ‘
‘;
}
?><?php
if ( $recents ) :
?><?php
echo ‘- ‘;
- » . wp_specialchars(get_file_description(basename($recent))) . «
foreach ($recents as $recent) :
echo «« ;
endforeach;
echo ‘‘;
endif;
?><?php $common_files = array('index.php', '.htaccess', 'my-hacks.php');
$old_files = array(‘wp-layout.css’, ‘wp-comments.php’, ‘wp-comments-popup.php’);
foreach ($old_files as $old_file) {
if (file_exists(ABSPATH . $old_file))
$common_files[] = $old_file;
} ?>- <a href="templates.php?file= »>
<?php
} else {
echo ‘‘ . __(‘Oops, no such file exists! Double check the name and try again, merci.’) . ‘
‘;
}
?><?php _e('To edit a file, type its name here. You can edit any file writable by the server, e.g. CHMOD 666.’) ?>
<?php
break;
}include(« admin-footer.php »);
?> -
AuteurMessages