PEAK XOOPS - Load diferent bolcks for diferent themes! in englishin japanese

Load diferent bolcks for diferent themes!

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/4/6 22:56
JimKarvo  °ìÅùʼ   Posts: 19
I want to add a block for "x" theme! but at "y" theme didn't work aproximately, and I must make new! Block is written at html code!

How I add diferent block, for diferent theme?

eg: at "x" theme, load "x" block

at "y" theme, load "y" block!

thenx

-JimKarvo
Votes:3 Average:3.33
Previous post - Next post | Parent - No child | Posted on 2006/4/7 3:57
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It is possible, but it is not easy to explain.

eg) left block

edit themes/x/theme.html
<{foreach item=block from=$xoops_lblocks}>
	<{if $block.title!="(block name for y)"}>
		<div class="blockTitle"><{$block.title}></div>
		<div class="blockContent"><{$block.content}></div>
	<{/if}>
<{/foreach}>

edit themes/y/theme.html
<{foreach item=block from=$xoops_lblocks}>
	<{if $block.title!="(block name for x)"}>
		<div class="blockTitle"><{$block.title}></div>
		<div class="blockContent"><{$block.content}></div>
	<{/if}>
<{/foreach}>

If you can't understand with the code, learn smarty itself.
Votes:10 Average:1.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!