WordPress.org

Ready to get started?Download WordPress

Forums

template_assignation of css per page in php (1 post)

  1. Baudry
    Member
    Posted 6 years ago #

    hello :

    For my site small problem how to create a complex fontion to assign 4 to 5 css parpages I saw this :`#
    <? PHP
    #
    /* / *
    #
    Plugin Name: Categories CSS Plugin Name: Categories CSS
    #
    Plugin URI: http://www.thierry-pigot.fr Plugin URI: http://www.thierry-pigot.fr
    #
    Description: Ce plugin permet d'avoir une feuille CSS en fonction de la categorie Description: This plugin allows a CSS depending on the category
    #
    Author: Thierry PIGOT Author: Thierry PIGOT
    #
    Version: 0.2 Version: 0.2
    #
    Author URI: http://www.thierry-pigot.fr/ Author URI: http://www.thierry-pigot.fr/
    #
    License: GPL License: GPL
    #
    #
    (C) 2008 Thierry PIGOT (email : contact@thierry-pigot.fr) (C) 2008 Thierry PIGOT (email: contact@thierry-pigot.fr)
    #
    #
    INFORMATION:
    #
    ============
    #
    Creer dans votre thème un css avec pour nom l'identifiant de catégorie Create a theme in your css with the name of the identifier category
    #
    exemple: livres.css Example: livres.css
    #
    */ * /
    #
    #
    // Recuperation de l'identifiant de la catégorie courante / / Recuperation of the identifier of the current category
    #
    function get_cat() { Get_cat function () (
    #
    $cat = get_the_category(); Cat = $ get_the_category ();
    #
    $cat = $cat[0]; $ $ Cat cat = [0];
    #
    return $cat->slug; Return $ cat-> slug;
    #
    } )
    #
    #
    // Recuperation de l'URL du CSS (dans votre thème) / / Recuperation of the URL of the CSS (in the subject)
    #
    function css_url() { Css_url function () (
    #
    return get_bloginfo('template_url') .'/'. Return get_bloginfo ( 'template_url') .'/'. get_cat() .'.css'; Get_cat (). ". Css';
    #
    } )
    #
    #
    // Creation du code a inserer dans le header HTML (HEAD) / / Create a code inserted in the HTML header (HEAD)
    #
    function add_css() { Add_css function () (
    #
    if (is_category()) { If (is_category ()) (
    #
    $header_html = ' $ Header_html = '
    #
    <link rel="stylesheet" href="' . css_url() . '" type="text/css" media="screen" /> <link Rel="stylesheet" href="'. Css_url().'" Type="text/css" media="screen" />
    #
    ';
    #
    echo $header_html; Echo $ header_html;
    #
    } )
    #
    } )
    #
    #
    / Implementation when wp_head () function is used
    #
    add_action('wp_head', 'add_css'); Add_action ( 'wp_head', 'add_css');
    #
    #
    ?>`

    But do not know how to modify it so that it takes 4 to 5 pages per css.
    My hand menu has been modified as follows:

    Code:
    
       1.
          <?php <? PHP
       2.
          $menuforum = <<< MENUFORUM $ Menuforum = <<<MENUFORUM
       3.
          <ul id="menu_oupocreanum"> <ul Id="menu_oupocreanum">
       4.
          <li><a title="home" id="menu_home"><a href="#"><span class="off">home</span></a></li> <li> <a Title="home" id="menu_home"> <a href="#"> <span class="off"> home </ span> </ a> </ li>
       5.
          <li><a title="biography" id="menu_biography"><a href="#"><span class="off">biography</span></a></li> <li> <a Title="biography" id="menu_biography"> <a href="#"> <span class="off"> biography </ span> </ a> </ li>
       6.
          <li><a title="randomizer" id="menu_random"><a href="#"><span class="off">randomizer</span></a></li> <li> <a Title="randomizer" id="menu_random"> <a href="#"> <span class="off"> randomizer </ span> </ a> </ li>
       7.
          <li><a title="workingprogress" id="menu_workingprogress"><a href="#"><span class="off">workingprogress</span></a></li> <li> <a Title="workingprogress" id="menu_workingprogress"> <a href="#"> <span class="off"> workingprogress </ span> </ a> </ li>
       8.
          <li><a title="play" id="menu_play"><a href="#"><span class="off">play</span></a></li> <li> <a Title="play" id="menu_play"> <a href="#"> <span class="off"> play </ span> </ a> </ li>
       9.
          <li><a title="videos" id="menu_videos"><a href="#"><span class="off">videos</span></a></li> <li> <a Title="videos" id="menu_videos"> <a href="#"> <span class="off"> videos </ span> </ a> </ li>
      10.
          <li><a title="pictures" id="menu_pictures"><a href="#"><span class="off">pictures</span></a></li> <li> <a Title="pictures" id="menu_pictures"> <a href="#"> <span class="off"> pictures </ span> </ a> </ li>
      11.
      12.
          <li><a title="sounds" id="menu_sounds"><a href="#"><span class="off">sounds</span></a></li> <li> <a Title="sounds" id="menu_sounds"> <a href="#"> <span class="off"> sounds </ span> </ a> </ li>
      13.
          <li><a title="exhibition" id="menu_exhibition"><a href="#"><span class="off">exhibition</span></a></li> <li> <a Title="exhibition" id="menu_exhibition"> <a href="#"> <span class="off"> exhibition </ span> </ a> </ li>
      14.
          <li><a title="software" id="menu_software"><a href="#"><span class="off">software</span></a></li> <li> <a Title="software" id="menu_software"> <a href="#"> <span class="off"> software </ span> </ a> </ li>
      15.
          <li><a title="abstracts" id="menu_abstracts"><a href="#"><span class="off">abstracts</span></a></li> <li> <a Title="abstracts" id="menu_abstracts"> <a href="#"> <span class="off"> abstracts </ span> </ a> </ li>
      16.
          <li><a title="diagrams" id="menu_diagrams"><a href="#"><span class="off">diagrams</span></a></li> <li> <a Title="diagrams" id="menu_diagrams"> <a href="#"> <span class="off"> diagrams </ span> </ a> </ li>
      17.
          <li><a title="machines" id="menu_machines"><a href="#"><span class="off">machines</span></a></li> <li> <a Title="machines" id="menu_machines"> <a href="#"> <span class="off"> machines </ span> </ a> </ li>
      18.
          <li><a title="artists" id="menu_artists"><a href="#"><span class="off">artists</span></a></li> <li> <a Title="artists" id="menu_artists"> <a href="#"> <span class="off"> artists </ span> </ a> </ li>
      19.
          <li><a title="bibliography" id="menu_bibliography"><a href="#"><span class="off">bibliography</span></a></li> <li> <a Title="bibliography" id="menu_bibliography"> <a href="#"> <span class="off"> bibliography </ span> </ a> </ li>
      20.
          <li><a title="webography" id="menu_webography" ><a href="#"><span class="off">webography</span></a></li> <li> <a Title="webography" id="menu_webography"> <a href="#"> <span class="off"> webography </ span> </ a> </ li>
      21.
          <li><a title="discography" id="menu_discography"><a href="#"><span class="off">discography</span></a></li> <li> <a Title="discography" id="menu_discography"> <a href="#"> <span class="off"> discography </ span> </ a> </ li>
      22.
          <li><a title="citations" id="menu_citations" ><a href="#"><span class="off">citations</span></a></li> <li> <a Title="citations" id="menu_citations"> <a href="#"> <span class="off"> citations </ span> </ a> </ li>
      23.
          <li><a title="lexicon on interactivity" id="menu_lexique"><a href="#"><span class="off">lexicon on interactivity</span></a></li> <li> <a Title="lexicon on interactivity" id="menu_lexique"> <a href="#"> <span class="off"> lexicon on interactivity </ span> </ a> </ li>
      24.
          <li><a title="forum" id="menu_forum_on"><a href="#"><span class="off">forum</span></a></li> <li> <a Title="forum" id="menu_forum_on"> <a href="#"> <span class="off"> forum </ span> </ a> </ li>
      25.
          <li><a title="upload" id="menu_upload"><a href="#"><span class="off">upload</span></a></li> <li> <a Title="upload" id="menu_upload"> <a href="#"> <span class="off"> upload </ span> </ a> </ li>
      26.
          <li><a title="thanks" id="menu_thanks"><a href="#"><span class="off">thanks</span></a></li> <li> <a Title="thanks" id="menu_thanks"> <a href="#"> <span class="off"> thanks </ span> </ a> </ li>
      27.
          <li><a title="links" id="menu_links"><a href="#"><span class="off">links</span></a></li> <li> <a Title="links" id="menu_links"> <a href="#"> <span class="off"> links </ span> </ a> </ li>
      28.
          </ul> </ Ul>
      29.
          MENUFORUM;
      30.
      31.
          $lines = split("\n", $menuforum); $ Lines = split ( "\ n", $ menuforum);
      32.
          foreach ($lines as $line) { Foreach ($ lines as $ line) (
      33.
          $current = false; $ Current = false;
      34.
          preg_match('/href="([^"]+)"/', $line, $url); Preg_match ( '/ href ="([^"]+)"/', $ line, $ url);
      35.
          if (substr($_SERVER["REQUEST_URI"], 0, 5) == substr($url[1], 0, 5)) { If (substr ($ _SERVER [ 'REQUEST_URI'], 0, 5) == substr ($ url [1], 0, 5)) (
      36.
          $line = str_replace('<a h', '<a id="current" h', $line); $ Line = str_replace (<a h ',' <a id = "current" h ', $ line);
      37.
          } )
      38.
          echo $line."\n"; $ Echo line. "\ N";
      39.
          } )
      40.
          ?> '
    
     And I think to run the menusite.css common to all my pages that looks like this:

    #
    / *
    #
    Theme Name: Menusite Theme Name: Menusite
    #
    Theme URI: http://olivierbaudrydesign.free.fr Theme URI: http://olivierbaudrydesign.free.fr
    #
    Description: The default WordPress theme based on the famous Description: The default WordPress theme based on the famous
    #
    Version: 2.6 Version: 2.6
    #
    Author: Olivier Baudry Author: Olivier Baudry
    #
    Author URI: olivierbaudrydesign.free.fr Author URI: olivierbaudrydesign.free.fr
    #
    #
    #
    */ * /
    #
    #
    #
    #
    /* oupocreanum:menu */ / * Oupocreanum: menu * /
    #
    #
    #
    a#menu_home, a#menu_home_on { Menu_home a #, # (menu_home_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: -1px; Left:-1px;
    #
    } )
    #
    #
    a#menu_biography, a#menu_biography_on { Menu_biography a #, # (menu_biography_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 28px; Left: 28px;
    #
    } )
    #
    #
    a#menu_random, a#menu_random_on { Menu_random a #, # (menu_random_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 57px; Left: 57px;
    #
    } )
    #
    #
    a#menu_workingprogress, a#menu_workingprogress_on { Menu_workingprogress a #, # (menu_workingprogress_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 86px; Left: 86px;
    #
    } )
    #
    #
    a#menu_play, a#menu_play_on { Menu_play a #, # (menu_play_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 115px; Left: 115px;
    #
    } )
    #
    #
    a#menu_videos, a#menu_videos_on { Menu_videos a #, # (menu_videos_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 144px; Left: 144px;
    #
    } )
    #
    #
    a#menu_photos, a#menu_photos_on { Menu_photos a #, # (menu_photos_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 173px; Left: 173px;
    #
    } )
    #
    #
    a#menu_sounds, a#menu_sounds_on { Menu_sounds a #, # (menu_sounds_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 202px; Left: 202px;
    #
    } )
    #
    #
    a#menu_software, a#menu_software_on { Menu_software a #, # (menu_software_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 231px; Left: 231px;
    #
    } )
    #
    #
    #
    #
    a#menu_linearizer, a#menu_linearizer_on { Menu_linearizer a #, # (menu_linearizer_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 260px; Left: 260px;
    #
    } )
    #
    #
    a#menu_abstracts, a#menu_abstracts_on { Menu_abstracts a #, # (menu_abstracts_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 289px; Left: 289px;
    #
    } )
    #
    #
    a#menu_diagrams, a#menu_diagrams_on { Menu_diagrams a #, # (menu_diagrams_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 318px; Left: 318px;
    #
    } )
    #
    #
    a#menu_machines, a#menu_machines_on { Menu_machines a #, # (menu_machines_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 347px; Left: 347px;
    #
    } )
    #
    #
    a#menu_artists, a#menu_artists_on { Menu_artists a #, # (menu_artists_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 376px; Left: 376px;
    #
    } )
    #
    #
    a#menu_bibliography, a#menu_bibliography_on { Menu_bibliography a #, # (menu_bibliography_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 405px; Left: 405px;
    #
    } )
    #
    #
    a#menu_webography, a#menu_webography_on { Menu_webography a #, # (menu_webography_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 434px; Left: 434px;
    #
    } )
    #
    #
    a#menu_discography, a#menu_discography_on { Menu_discography a #, # (menu_discography_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 463px; Left: 463px;
    #
    } )
    #
    #
    a#menu_citations, a#menu_citations_on { Menu_citations a #, # (menu_citations_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 492px; Left: 492px;
    #
    background-image: url(../../index/styles/menu/citations_inactive.gif); Background-image: url (../../ index / styles / menu / citations_inactive.gif);
    #
    } )
    #
    #
    a#menu_lexique, a#menu_lexique_on { Menu_lexique a #, # (menu_lexique_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 521px; Left: 521px;
    #
    } )
    #
    #
    a#menu_links, a#menu_links_on { Menu_links a #, # (menu_links_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 550px; Left: 550px;
    #
    } )
    #
    #
    a#menu_forum, a#menu_forum_on { Menu_forum a #, # (menu_forum_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 579px; Left: 579px;
    #
    } )
    #
    a#menu_upload, a#menu_upload_on { Menu_upload a #, # (menu_upload_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 608px; Left: 608px;
    #
    } )
    #
    #
    a#menu_thanks, a#menu_thanks_on { Menu_thanks a #, # (menu_thanks_on
    #
    position: absolute; Position: absolute;
    #
    top: -30px; Top:-30px;
    #
    left: 637px; Left: 637px;
    #
    } )
    #
    #
    ul#menu_oupocreanum { # (Ul menu_oupocreanum
    #
    list-style-type: none; 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_photos, a#menu_photos_on, a#menu_sounds, a#menu_sounds_on, a#menu_software, a#menu_software_on, a#menu_linearizer, a#menu_linearizer_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 { Menu_home a #, # menu_home_on, menu_biography #, # menu_biography_on, menu_random #, # menu_random_on, menu_workingprogress #, # menu_workingprogress_on, menu_play #, # menu_play_on, menu_videos #, # menu_videos_on, a # menu_photos, menu_photos_on #, # menu_sounds, menu_sounds_on #, # menu_software, menu_software_on #, # menu_linearizer, menu_linearizer_on #, # menu_abstracts, menu_abstracts_on #, # menu_machines, menu_machines_on #, # menu_diagrams, a # menu_diagrams_on, menu_artists #, # menu_artists_on, menu_bibliography #, # menu_bibliography_on, menu_webography #, # menu_webography_on, menu_discography #, # menu_discography_on, menu_citations #, # menu_citations_on, menu_lexique #, # menu_lexique_on, menu_links #, # menu_links_on, menu_forum #, # menu_forum_on, menu_upload #, # menu_upload_on, menu_thanks #, # (menu_thanks_on
    #
    width: 28px; Width: 28px;
    #
    height: 28px; Height: 28px;
    #
    border-style: dotted; Border-style: dotted;
    #
    border-width: 1px; Border-width: 1px;
    #
    border-color: grey; Border-color: grey;
    #
    border-bottom-width: 0px; Border-bottom-width: 0px;
    #
    background-color: white !important; Background-color: white! Important;
    #
    } )
    #
    #
    #
    a#menu_home:link, a#menu_home:visited { Menu_home a #: link, a # menu_home: visited (
    #
    background: url(../../index/styles/menu/home_inactive.gif); Background: url (../../ index / styles / menu / home_inactive.gif);
    #
    } )
    #
    #
    a#menu_home_on:link, a#menu_home_on:visited { A # menu_home_on: link, a # menu_home_on: visited (
    #
    background: url(../../index/styles/menu/home_active.gif); Background: url (../../ index / styles / menu / home_active.gif);
    #
    } )
    #
    #
    a#menu_home:hover, a#menu_home_on:hover { Menu_home a #: hover, a # menu_home_on: hover (
    #
    background: url(../../index/styles/menu/home_hover.gif); Background: url (../../ index / styles / menu / home_hover.gif);
    #
    } )
    #
    #
    a#menu_biography:link, a#menu_biography:visited { A # menu_biography: link, a # menu_biography: visited (
    #
    background: url(../../index/styles/menu/biography_inactive.gif); Background: url (../../ index / styles / menu / biography_inactive.gif);
    #
    } )
    #
    #
    a#menu_biography_on:link, a#menu_biography_on:visited { A # menu_biography_on: link, a # menu_biography_on: visited (
    #
    background: url(../../index/styles/menu/biography_active.gif); Background: url (../../ index / styles / menu / biography_active.gif);
    #
    } )
    #
    #
    a#menu_biography:hover, a#menu_biography_on:hover { A # menu_biography: hover, a # menu_biography_on: hover (
    #
    background: url(../../index/styles/menu/biography_hover.gif); Background: url (../../ index / styles / menu / biography_hover.gif);
    #
    } )
    #
    #
    a#menu_random:link, a#menu_random:visited { A # menu_random: link, a # menu_random: visited (
    #
    background: url(../../index/styles/menu/rand_inactive.gif); Background: url (../../ index / styles / menu / rand_inactive.gif);
    #
    } )
    #
    #
    a#menu_random_on:link, a#menu_random_on:visited { A # menu_random_on: link, a # menu_random_on: visited (
    #
    background: url(../../index/styles/menu/rand_active.gif); Background: url (../../ index / styles / menu / rand_active.gif);
    #
    } )
    #
    #
    a#menu_random:hover, a#menu_random_on:hover { A # menu_random: hover, a # menu_random_on: hover (
    #
    background: url(../../index/styles/menu/rand_hover.gif); Background: url (../../ index / styles / menu / rand_hover.gif);
    #
    } )
    #
    #
    a#menu_workingprogress:link, a#menu_workingprogress:visited { A # menu_workingprogress: link, a # menu_workingprogress: visited (
    #
    background: url(../../index/styles/menu/workingprogress_inactive.gif); Background: url (../../ index / styles / menu / workingprogress_inactive.gif);
    #
    } )
    #
    #
    a#menu_workingprogress_on:link, a#menu_workingprogress_on:visited { A # menu_workingprogress_on: link, a # menu_workingprogress_on: visited (
    #
    background: url(../../index/styles/menu/workingprogress_active.gif); Background: url (../../ index / styles / menu / workingprogress_active.gif);
    #
    } )
    #
    #
    a#menu_workingprogress:hover, a#menu_workingprogress_on:hover { A # menu_workingprogress: hover, a # menu_workingprogress_on: hover (
    #
    background: url(../../index/styles/menu/workingprogress_hover.gif); Background: url (../../ index / styles / menu / workingprogress_hover.gif);
    #
    } )
    #
    #
    a#menu_play:link, a#menu_play:visited { A # menu_play: link, a # menu_play: visited (
    #
    background: url(../../index/styles/menu/play_inactive.gif); Background: url (../../ index / styles / menu / play_inactive.gif);
    #
    } )
    #
    #
    a#menu_play_on:link, a#menu_play_on:visited { A # menu_play_on: link, a # menu_play_on: visited (
    #
    background: url(../../index/styles/menu/play_active.gif); Background: url (../../ index / styles / menu / play_active.gif);
    #
    } )
    #
    #
    a#menu_play:hover, a#menu_play_on:hover { A # menu_play: hover, a # menu_play_on: hover (
    #
    background: url(../../index/styles/menu/play_hover.gif); Background: url (../../ index / styles / menu / play_hover.gif);
    #
    } )
    #
    #
    #
    a#menu_videos:link, a#menu_videos:visited { A # menu_videos: link, a # menu_videos: visited (
    #
    background: url(../../index/styles/menu/videos_inactive.gif); Background: url (../../ index / styles / menu / videos_inactive.gif);
    #
    } )
    #
    #
    a#menu_videos_on:link, a#menu_videos_on:visited { A # menu_videos_on: link, a # menu_videos_on: visited (
    #
    background: url(../../index/styles/menu/videos_active.gif); Background: url (../../ index / styles / menu / videos_active.gif);
    #
    } )
    #
    #
    a#menu_videos:hover, a#menu_videos_on:hover { A # menu_videos: hover, a # menu_videos_on: hover (
    #
    background: url(../../index/styles/menu/videos_hover.gif); Background: url (../../ index / styles / menu / videos_hover.gif);
    #
    } )
    #
    #
    a#menu_photos:link, a#menu_photos:visited { A # menu_photos: link, a # menu_photos: visited (
    #
    background: url(../../index/styles/menu/photos_inactive.gif); Background: url (../../ index / styles / menu / photos_inactive.gif);
    #
    } )
    #
    #
    a#menu_photos_on:link, a#menu_photos_on:visited { A # menu_photos_on: link, a # menu_photos_on: visited (
    #
    background: url(../../index/styles/menu/photos_active.gif); Background: url (../../ index / styles / menu / photos_active.gif);
    #
    } )
    #
    #
    a#menu_photos:hover, a#menu_photos_on:hover { A # menu_photos: hover, a # menu_photos_on: hover (
    #
    background: url(../../index/styles/menu/photos_hover.gif); Background: url (../../ index / styles / menu / photos_hover.gif);
    #
    } )
    #
    #
    a#menu_sounds:link, a#menu_sounds:visited { A # menu_sounds: link, a # menu_sounds: visited (
    #
    background: url(../../index/styles/menu/sounds_inactive.gif); Background: url (../../ index / styles / menu / sounds_inactive.gif);
    #
    } )
    #
    #
    a#menu_sounds_on:link, a#menu_sounds_on:visited { A # menu_sounds_on: link, a # menu_sounds_on: visited (
    #
    background: url(../../index/styles/menu/sounds_active.gif); Background: url (../../ index / styles / menu / sounds_active.gif);
    #
    } )
    #
    #
    a#menu_sounds:hover, a#menu_sounds_on:hover { A # menu_sounds: hover, a # menu_sounds_on: hover (
    #
    background: url(../../index/styles/menu/sounds_hover.gif); Background: url (../../ index / styles / menu / sounds_hover.gif);
    #
    } )
    #
    #
    #
    a#menu_linearizer:link, a#menu_linearizer:visited { A # menu_linearizer: link, a # menu_linearizer: visited (
    #
    background: url(../../index/styles/menu/linearizer_inactive.gif); Background: url (../../ index / styles / menu / linearizer_inactive.gif);
    #
    } )
    #
    #
    a#menu_linearizer_on:link, a#menu_linearizer_on:visited { A # menu_linearizer_on: link, a # menu_linearizer_on: visited (
    #
    background: url(../../index/styles/menu/linearizer_active.gif); Background: url (../../ index / styles / menu / linearizer_active.gif);
    #
    } )
    #
    #
    a#menu_linearizer:hover, a#menu_linearizer_on:hover { A # menu_linearizer: hover, a # menu_linearizer_on: hover (
    #
    background: url(../../index/styles/menu/linearizer_hover.gif); Background: url (../../ index / styles / menu / linearizer_hover.gif);
    #
    } )
    #
    #
    a#menu_abstracts:link, a#menu_abstracts:visited { A # menu_abstracts: link, a # menu_abstracts: visited (
    #
    background: url(../../index/styles/menu/abstracts_inactive.gif); Background: url (../../ index / styles / menu / abstracts_inactive.gif);
    #
    } )
    #
    #
    a#menu_abstracts_on:link, a#menu_abstracts_on:visited { A # menu_abstracts_on: link, a # menu_abstracts_on: visited (
    #
    background: url(../../index/styles/menu/abstracts_active.gif); Background: url (../../ index / styles / menu / abstracts_active.gif);
    #
    } )
    #
    #
    a#menu_abstracts:hover, a#menu_abstracts_on:hover { A # menu_abstracts: hover, a # menu_abstracts_on: hover (
    #
    background: url(../../index/styles/menu/abstracts_hover.gif); Background: url (../../ index / styles / menu / abstracts_hover.gif);
    #
    } )
    #
    #
    a#menu_diagrams:link, a#menu_diagrams:visited { A # menu_diagrams: link, a # menu_diagrams: visited (
    #
    background: url(../../index/styles/menu/diagrams_inactive.gif); Background: url (../../ index / styles / menu / diagrams_inactive.gif);
    #
    } )
    #
    #
    a#menu_diagrams_on:link, a#menu_diagrams_on:visited { A # menu_diagrams_on: link, a # menu_diagrams_on: visited (
    #
    background: url(../../index/styles/menu/diagrams_active.gif); Background: url (../../ index / styles / menu / diagrams_active.gif);
    #
    } )
    #
    #
    a#menu_diagrams:hover, a#menu_diagrams_on:hover { A # menu_diagrams: hover, a # menu_diagrams_on: hover (
    #
    background: url(../../index/styles/menu/diagrams_hover.gif); Background: url (../../ index / styles / menu / diagrams_hover.gif);
    #
    } )
    #
    #
    a#menu_lexique:link, a#menu_lexique:visited { A # menu_lexique: link, a # menu_lexique: visited (
    #
    background: url(../../index/styles/menu/lexique_inactive.gif); Background: url (../../ index / styles / menu / lexique_inactive.gif);
    #
    } )
    #
    #
    a#menu_lexique_on:link, a#menu_lexique_on:visited { A # menu_lexique_on: link, a # menu_lexique_on: visited (
    #
    background: url(../../index/styles/menu/lexique_active.gif); Background: url (../../ index / styles / menu / lexique_active.gif);
    #
    } )
    #
    #
    a#menu_lexique:hover, a#menu_lexique_on:hover { A # menu_lexique: hover, a # menu_lexique_on: hover (
    #
    background: url(../../index/styles/menu/lexique_hover.gif); Background: url (../../ index / styles / menu / lexique_hover.gif);
    #
    } )
    #
    #
    a#menu_software:link, a#menu_software:visited { A # menu_software: link, a # menu_software: visited (
    #
    background: url(../../index/styles/menu/software_inactive.gif); Background: url (../../ index / styles / menu / software_inactive.gif);
    #
    } )
    #
    #
    a#menu_software_on:link, a#menu_software_on:visited { A # menu_software_on: link, a # menu_software_on: visited (
    #
    background: url(../../index/styles/menu/software_active.gif); Background: url (../../ index / styles / menu / software_active.gif);
    #
    } )
    #
    #
    a#menu_software:hover, a#menu_software_on:hover { A # menu_software: hover, a # menu_software_on: hover (
    #
    background: url(../../index/styles/menu/software_hover.gif); Background: url (../../ index / styles / menu / software_hover.gif);
    #
    } )
    #
    #
    a#menu_machines:link, a#menu_machines:visited { A # menu_machines: link, a # menu_machines: visited (
    #
    background: url(../../index/styles/menu/machines_inactive.gif); Background: url (../../ index / styles / menu / machines_inactive.gif);
    #
    } )
    #
    #
    a#menu_machines_on:link, a#menu_machines_on:visited { A # menu_machines_on: link, a # menu_machines_on: visited (
    #
    background: url(../../index/styles/menu/machines_active.gif); Background: url (../../ index / styles / menu / machines_active.gif);
    #
    } )
    #
    #
    a#menu_machines:hover, a#menu_machines_on:hover { A # menu_machines: hover, a # menu_machines_on: hover (
    #
    background: url(../../index/styles/menu/machines_hover.gif); Background: url (../../ index / styles / menu / machines_hover.gif);
    #
    } )
    #
    #
    a#menu_artists:link, a#menu_artists:visited { A # menu_artists: link, a # menu_artists: visited (
    #
    background: url(../../index/styles/menu/artists_inactive.gif); Background: url (../../ index / styles / menu / artists_inactive.gif);
    #
    } )
    #
    #
    a#menu_artists_on:link, a#menu_artists_on:visited { A # menu_artists_on: link, a # menu_artists_on: visited (
    #
    background: url(../../index/styles/menu/artists_active.gif); Background: url (../../ index / styles / menu / artists_active.gif);
    #
    } )
    #
    #
    a#menu_artists:hover, a#menu_artists_on:hover { A # menu_artists: hover, a # menu_artists_on: hover (
    #
    background: url(../../index/styles/menu/artists_hover.gif); Background: url (../../ index / styles / menu / artists_hover.gif);
    #
    } )
    #
    #
    a#menu_bibliography:link, a#menu_bibliography:visited { A # menu_bibliography: link, a # menu_bibliography: visited (
    #
    background: url(../../index/styles/menu/bibliography_inactive.gif); Background: url (../../ index / styles / menu / bibliography_inactive.gif);
    #
    } )
    #
    #
    a#menu_bibliography_on:link, a#menu_bibliography_on:visited { A # menu_bibliography_on: link, a # menu_bibliography_on: visited (
    #
    background: url(../../index/styles/menu/bibliography_active.gif); Background: url (../../ index / styles / menu / bibliography_active.gif);
    #
    } )
    #
    #
    a#menu_bibliography:hover, a#menu_bibliography_on:hover { A # menu_bibliography: hover, a # menu_bibliography_on: hover (
    #
    background: url(../../index/styles/menu/bibliography_hover.gif); Background: url (../../ index / styles / menu / bibliography_hover.gif);
    #
    } )
    #
    #
    a#menu_webography:link, a#menu_webography:visited { A # menu_webography: link, a # menu_webography: visited (
    #
    background: url(../../index/styles/menu/webography_inactive.gif); Background: url (../../ index / styles / menu / webography_inactive.gif);
    #
    } )
    #
    #
    a#menu_webography_on:link, a#menu_webography_on:visited { A # menu_webography_on: link, a # menu_webography_on: visited (
    #
    background: url(../../index/styles/menu/webography_active.gif); Background: url (../../ index / styles / menu / webography_active.gif);
    #
    } )
    #
    #
    a#menu_webography:hover, a#menu_webography_on:hover { A # menu_webography: hover, a # menu_webography_on: hover (
    #
    background: url(../../index/styles/menu/webography_hover.gif); Background: url (../../ index / styles / menu / webography_hover.gif);
    #
    } )
    #
    #
    a#menu_discography:link, a#menu_discography:visited { A # menu_discography: link, a # menu_discography: visited (
    #
    background: url(../../index/styles/menu/discography_inactive.gif); Background: url (../../ index / styles / menu / discography_inactive.gif);
    #
    } )
    #
    #
    a#menu_discography_on:link, a#menu_discography_on:visited { A # menu_discography_on: link, a # menu_discography_on: visited (
    #
    background: url(../../index/styles/menu/discography_active.gif); Background: url (../../ index / styles / menu / discography_active.gif);
    #
    } )
    #
    #
    a#menu_discography:hover, a#menu_discography_on:hover { A # menu_discography: hover, a # menu_discography_on: hover (
    #
    background: url(../../index/styles/menu/discography_hover.gif); Background: url (../../ index / styles / menu / discography_hover.gif);
    #
    } )
    #
    #
    a#menu_citations:link, a#menu_citations:visited { A # menu_citations: link, a # menu_citations: visited (
    #
    background: url(../../index/styles/menu/citations_inactive.gif); Background: url (../../ index / styles / menu / citations_inactive.gif);
    #
    } )
    #
    #
    a#menu_citations_on:link, a#menu_citations_on:visited { A # menu_citations_on: link, a # menu_citations_on: visited (
    #
    background: url(../../index/styles/menu/citations_active.gif); Background: url (../../ index / styles / menu / citations_active.gif);
    #
    } )
    #
    #
    a#menu_citations:hover, a#menu_citations_on:hover { A # menu_citations: hover, a # menu_citations_on: hover (
    #
    background: url(../../index/styles/menu/citations_hover.gif); Background: url (../../ index / styles / menu / citations_hover.gif);
    #
    } )
    #
    #
    a#menu_links:link, a#menu_links:visited { Menu_links a #: link, a # menu_links: visited (
    #
    background: url(../../index/styles/menu/links_inactive.gif); Background: url (../../ index / styles / menu / links_inactive.gif);
    #
    } )
    #
    #
    a#menu_links_on:link, a#menu_links_on:visited { A # menu_links_on: link, a # menu_links_on: visited (
    #
    background: url(../../index/styles/menu/links_active.gif); Background: url (../../ index / styles / menu / links_active.gif);
    #
    } )
    #
    #
    a#menu_links:hover, a#menu_links_on:hover { Menu_links a #: hover, a # menu_links_on: hover (
    #
    background: url(../../index/styles/menu/links_hover.gif); Background: url (../../ index / styles / menu / links_hover.gif);
    #
    } )
    #
    #
    a#menu_forum:link, a#menu_forum:visited { A # menu_forum: link, a # menu_forum: visited (
    #
    background: url(../../index/styles/menu/forum_inactive.gif); Background: url (../../ index / styles / menu / forum_inactive.gif);
    #
    } )
    #
    #
    a#menu_forum_on:link, a#menu_forum_on:visited { A # menu_forum_on: link, a # menu_forum_on: visited (
    #
    background: url(../../index/styles/menu/forum_active.gif); Background: url (../../ index / styles / menu / forum_active.gif);
    #
    } )
    #
    #
    a#menu_forum:hover, a#menu_forum_on:hover { A # menu_forum: hover, a # menu_forum_on: hover (
    #
    background: url(../../index/styles/menu/forum_hover.gif); Background: url (../../ index / styles / menu / forum_hover.gif);
    #
    } )
    #
    #
    a#menu_upload:link, a#menu_upload:visited { A # menu_upload: link, a # menu_upload: visited (
    #
    background: url(../../index/styles/menu/upload_inactive.gif); Background: url (../../ index / styles / menu / upload_inactive.gif);
    #
    } )
    #
    #
    a#menu_upload_on:link, a#menu_upload_on:visited { A # menu_upload_on: link, a # menu_upload_on: visited (
    #
    background: url(../../index/styles/menu/upload_active.gif); Background: url (../../ index / styles / menu / upload_active.gif);
    #
    } )
    #
    #
    a#menu_upload:hover, a#menu_upload_on:hover { A # menu_upload: hover, a # menu_upload_on: hover (
    #
    background: url(../../index/styles/menu/upload_hover.gif); Background: url (../../ index / styles / menu / upload_hover.gif);
    #
    } )
    #
    #
    a#menu_thanks:link, a#menu_thanks:visited { A # menu_thanks: link, a # menu_thanks: visited (
    #
    background: url(../../index/styles/menu/thanks_inactive.gif); Background: url (../../ index / styles / menu / thanks_inactive.gif);
    #
    } )
    #
    #
    a#menu_thanks_on:link, a#menu_thanks_on:visited { A # menu_thanks_on: link, a # menu_thanks_on: visited (
    #
    background: url(../../index/styles/menu/thanks_active.gif); Background: url (../../ index / styles / menu / thanks_active.gif);
    #
    } )
    #
    #
    a#menu_thanks:hover, a#menu_thanks_on:hover { A # menu_thanks: hover, a # menu_thanks_on: hover (
    #
    background: url(../../index/styles/menu/thanks_hover.gif); Background: url (../../ index / styles / menu / thanks_hover.gif);
    #
    } )
    #
    #
    #
    #
    /* english french deutsch language links */ / * Deutsch english french language links * /
    #
    #
    ul#language { (Ul # language
    #
    list-style-type: none; 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 { Menu_english_active a #, # menu_english_inactive, menu_french_active #, # menu_french_inactive, menu_deutsch_active #, # (menu_deutsch_inactive
    #
    width: 28px; Width: 28px;
    #
    height: 28px; Height: 28px;
    #
    border-style: dotted; Border-style: dotted;
    #
    border-width: 1px; Border-width: 1px;
    #
    border-color: grey; Border-color: grey;
    #
    border-left-width: 0px; Border-width: 0px;
    #
    background-color: white !important; /* remove transparent holes in border */ Background-color: white! Important; / * remove transparent holes in border * /
    #
    z-index: 1; Z-index: 1;
    #
    } )
    #
    #
    a#menu_english_active { A # (menu_english_active
    #
    position: absolute; Position: absolute;
    #
    top: -1px; Top:-1px;
    #
    left: 792px; Left: 792px;
    #
    } )
    #
    #
    a#menu_english_inactive { A # (menu_english_inactive
    #
    position: absolute; Position: absolute;
    #
    top: -1px; Top:-1px;
    #
    left: 792px; Left: 792px;
    #
    } )
    #
    #
    a#menu_french_active { A # (menu_french_active
    #
    position: absolute; Position: absolute;
    #
    top: 28px; Top: 28px;
    #
    left: 792px; Left: 792px;
    #
    } )
    #
    #
    a#menu_french_inactive { A # (menu_french_inactive
    #
    position: absolute; Position: absolute;
    #
    top: 28px; Top: 28px;
    #
    left: 792px; Left: 792px;
    #
    } )
    #
    a#menu_deutsch_active { A # (menu_deutsch_active
    #
    position: absolute; Position: absolute;
    #
    top: 57px; Top: 57px;
    #
    left: 792px; Left: 792px;
    #
    } )
    #
    #
    a#menu_deutsch_inactive { A # (menu_deutsch_inactive
    #
    position: absolute; Position: absolute;
    #
    top: 57px; Top: 57px;
    #
    left: 792px; Left: 792px;
    #
    } )
    #
    #
    #
    a#menu_english_active:link, a#menu_english_active:visited { A # menu_english_active: link, a # menu_english_active: visited (
    #
    background-image: url(../../index/styles/menu/english_active.gif); Background-image: url (../../ index / styles / menu / english_active.gif);
    #
    } )
    #
    #
    a#menu_english_inactive:link, a#menu_english_inactive:visited { A # menu_english_inactive: link, a # menu_english_inactive: visited (
    #
    background-image: url(../../index/styles/menu/english_inactive.gif); Background-image: url (../../ index / styles / menu / english_inactive.gif);
    #
    } )
    #
    #
    a#menu_english_active:hover, a#menu_english_inactive:hover { A # menu_english_active: hover, a # menu_english_inactive: hover (
    #
    background-image: url(../../index/styles/menu/english_hover.gif); Background-image: url (../../ index / styles / menu / english_hover.gif);
    #
    } )
    #
    #
    a#menu_french_active:link, a#menu_french_active:visited { A # menu_french_active: link, a # menu_french_active: visited (
    #
    background-image: url(../../index/styles/menu/french_active.gif); Background-image: url (../../ index / styles / menu / french_active.gif);
    #
    } )
    #
    #
    a#menu_french_inactive:link, a#menu_french_inactive:visited { A # menu_french_inactive: link, a # menu_french_inactive: visited (
    #
    background-image: url(../../index/styles/menu/french_inactive.gif); Background-image: url (../../ index / styles / menu / french_inactive.gif);
    #
    } )
    #
    #
    a#menu_french_active:hover, a#menu_french_inactive:hover { A # menu_french_active: hover, a # menu_french_inactive: hover (
    #
    background-image: url(../../index/styles/menu/french_hover.gif); Background-image: url (../../ index / styles / menu / french_hover.gif);
    #
    } )
    #
    #
    a#menu_deutsch_active:link, a#menu_deutsch_active:visited { A # menu_deutsch_active: link, a # menu_deutsch_active: visited (
    #
    background-image: url(../../index/styles/menu/deutsch_active.gif); Background-image: url (../../ index / styles / menu / deutsch_active.gif);
    #
    } )
    #
    #
    a#menu_deutsch_inactive:link, a#menu_deutsch_inactive:visited { A # menu_deutsch_inactive: link, a # menu_deutsch_inactive: visited (
    #
    background-image: url(../../index/styles/menu/deutsch_inactive.gif); Background-image: url (../../ index / styles / menu / deutsch_inactive.gif);
    #
    } )
    #
    #
    a#menu_deutsch_active:hover, a#menu_deutsch_inactive:hover { A # menu_deutsch_active: hover, a # menu_deutsch_inactive: hover (
    #
    background-image: url(../../index/styles/menu/deutsch_hover.gif); Background-image: url (../../ index / styles / menu / deutsch_hover.gif);
    #
    } ) `

    My problem because for each of my pages header is different, there will be 20 large indeed because each page 5 stylesheets how different encapsulation menu is different for each page by hand example: menu_biography active or inactive hover.
    Bref comment regrouper plusieurs headers dans un même header avec un truc du genre if is page biography c'est le header biography contenant le menu biography. In short how combining several headers in a single header with something like that is if it is the biography page biography header containing the menu biography. Déja cela pour les menus et ensuite rebelotte avec les css en fonction de chaque page. Already this for the menus and then rebelotte with css depending on each page.

    La dernière question combien de templates maximum par dossier ya t'il une limite dans l'encapsulation The last question how many templates maximum per case there happens a limit in the encapsulation
    olivierbaudry.eba@hotmail.fr

Topic Closed

This topic has been closed to new replies.

About this Topic