1
I would wish to modify the module multiMenu 1.8 for being validated from the W3C. The problem is to move the stylesheet from the body of the page to the header. They are successful to modify XOOPS in order to allow the insertion of code in the header...
(for more info
click here)
...but i have a problem… in order to make a test, i have inserted in the header this code:
Quote:
<link rel="stylesheet" type="text/css" href="<{$xoops_url}>/modules/multiMenu/script/06/style/mm_context2.css" title="Context2" />
<style type="text/css">
<{counter start=0 print=false}>
<{assign var=count value=1}>
<{foreach item=imenu from=$block.contents}>
<{if $imenu.submenu == 0 OR $imenu.submenu == 3 OR $imenu.submenu == 4}>
<{counter assign=menu print=false}>
<{if $imenu.image}>
<{assign var=count value=$count+1}>
.iconpc<{$block.mm}><{$menu}> {
background-image: url(<{$imenu.imageurl}>);
background-repeat: no-repeat; /* Do not alter this line! */
height: 16px;
left: 4px;
position: absolute; /* Do not alter this line! */
width: 16px;
}
<{/if}>
<{/if}>
<{/foreach}>
<{counter start=0 print=false}>
<{assign var=count value=1}>
<{assign var=count2 value=1}>
<{foreach item=imenu from=$block.contents}>
<{if $imenu.submenu == 0 OR $imenu.submenu == 3 OR $imenu.submenu == 4}>
<{counter assign=menu print=false}>
<{assign var=count value=1}>
<{elseif $imenu.submenu == 1 OR $imenu.submenu == 2}>
<{if $count == 1}>
<{assign var=count2 value=$count2+1}>
<{/if}>
<{if $imenu.image}>
<{assign var=sublink.$menu value=1}>
.iconsc<{$block.mm}><{$menu}><{$count}> {
background-image: url(<{$imenu.imageurl}>);
background-repeat: no-repeat; /* Do not alter this line! */
height: 16px;
left: 4px;
position: absolute; /* Do not alter this line! */
width: 16px;
}
<{/if}>
<{assign var=count value=$count+1}>
<{/if}>
<{/foreach}>
</style>
but the code does not interpreted from XOOPS. How I can make interpretaer the code from xoops? Exists one function that ago?
P.S. Excuse me for my orrible english!!!