reflejandome
03-31-2007, 07:49 PM
hi, i have an addon that's write the menu in all pages in my photoblog. I put <MENU> in my pages and i have the same menu in all page (more easy to modified the menu if ineed it). The addon is like this
$menu =
"
<div id='navigation' >
<div class='cajaBorde'>
<span class='iconosCabecera' >
<a href='' >
<img src='iconos/email.gif' style='border:0px' alt='email' />
</a>
<a href='http://feeds.feedburner.com/REFLEJANDOMEREFLECTINGMYSELF'>
<img src='iconos/rss_icon_16x16.gif' style='border:0px' alt='rss'/>
</a>
</span>
<span class='menu' >
reflejandome :: reflectingmyself ·
<a href='index.php' title='volver al inicio'>ultima</a> ·
<a href='index.php?x=browse&pagenum=1' title='archivos'>archivos</a> ·
<a href='index.php?x=about' title='acerca'>acerca </a> ·
<a style='font-weight:normal;' href='/photoblog/index.php?lang=en'>english</a>
</span>
</div>
</div>
";
$tpl = ereg_replace("<MENU>",$menu,$tpl);
I like to put <ALTERNATIVE_LANGUAGE> here. If i put <ALTERNATIVE_LANGUAGE> instead of a style='font-weight:normal;' href='/photoblog/index.php?lang=en'>english</a> it doesnt work because the HTML in my page is <alternative_language _moz-userdefined=""/>
i put ...<a href='index.php?x=about' title='acerca'>acerca </a> ".$language_link."</span> ... and also it doesn't work
anyone have a idea to resolve this ?? thx
sorry for my english :S
$menu =
"
<div id='navigation' >
<div class='cajaBorde'>
<span class='iconosCabecera' >
<a href='' >
<img src='iconos/email.gif' style='border:0px' alt='email' />
</a>
<a href='http://feeds.feedburner.com/REFLEJANDOMEREFLECTINGMYSELF'>
<img src='iconos/rss_icon_16x16.gif' style='border:0px' alt='rss'/>
</a>
</span>
<span class='menu' >
reflejandome :: reflectingmyself ·
<a href='index.php' title='volver al inicio'>ultima</a> ·
<a href='index.php?x=browse&pagenum=1' title='archivos'>archivos</a> ·
<a href='index.php?x=about' title='acerca'>acerca </a> ·
<a style='font-weight:normal;' href='/photoblog/index.php?lang=en'>english</a>
</span>
</div>
</div>
";
$tpl = ereg_replace("<MENU>",$menu,$tpl);
I like to put <ALTERNATIVE_LANGUAGE> here. If i put <ALTERNATIVE_LANGUAGE> instead of a style='font-weight:normal;' href='/photoblog/index.php?lang=en'>english</a> it doesnt work because the HTML in my page is <alternative_language _moz-userdefined=""/>
i put ...<a href='index.php?x=about' title='acerca'>acerca </a> ".$language_link."</span> ... and also it doesn't work
anyone have a idea to resolve this ?? thx
sorry for my english :S