1
rhoda
how do change direction block in theme?
  • 2011/10/15 6:28

  • rhoda

  • Just popping in

  • Posts: 14

  • Since: 2010/2/23



hello
I have a multi languages website(English and Persian)
my blocks in both languages do not change direction
I need for example main menu view right in Persian language and view left in English
how to change theme ?
please help me
my site is: goldashtco.com

I'm sorry ,my english is not good

2
Burning
Re: how do change direction block in theme?
  • 2011/10/15 14:35

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

May be something like that ?

In theme.html, check you already have :
<body class="<{$xoops_langcode}>">

In style.css
body.en {direction:ltr;}
body.fa {direction:rtl;}

Tell us if it works or ask to arab support (http://www.arabxoops.com/)
Still learning CSS and... english

3
rhoda
how do change direction block in theme?
  • 2011/10/16 7:50

  • rhoda

  • Just popping in

  • Posts: 14

  • Since: 2010/2/23


This code exists in theme
<body class="<{$xoops_langcode}>">

I have created two files in my theme fa.css and en.css .I added “body {direction:ltr;}” in file en .css but does not work.

Please solve my problem


4
rhoda
Re: how do change direction block in theme?
  • 2011/10/16 9:49

  • rhoda

  • Just popping in

  • Posts: 14

  • Since: 2010/2/23


Thank you
my problem was resolved
I added the below code to the file theme.html
<{if $xoops_langcode=='en'}>

<{else}>

<{/if}>

le="color: #000000"><?php <table id="xo-canvas-columns"> <tr> <{if $xoops_langcode=='en'}> <{if $xoBlocks.canvas_right && $theme_view_rightcolumn}> <{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_right zoneClass='xo-canvas-column' zoneId='xo-canvas-rightcolumn' zoneTag='td' }> <{/if}> <td id="xo-page"> <{if $theme_view_breadcrumb}><{includeq file="$theme_name/xo_breadcrumb.html"}><{/if}> <{if $theme_view_topblock && ($xoBlocks.page_topleft or $xoBlocks.page_topcenter or $xoBlocks.page_topright)}> <div id="xo-page-topblocks" class="xo-blockszone-xo-<{$theme_top_order}>pageblocks"> <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:0:1}> <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:1:1}> <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:2:1}> </div> <{/if}> <{if $xoops_contents}> <div id="xo-content"> <{$xoops_contents}></div> <{/if}> <{if $theme_view_bottomblock && ($xoBlocks.page_bottomleft or $xoBlocks.page_bottomcenter or $xoBlocks.page_bottomright)}> <div id="xo-page-bottomblocks" class="xo-blockszone-xo-<{$theme_bottom_order}>pageblocks"> <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:0:1}> <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:1:1}> <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:2:1}> </div> <{/if}> </td> <{if $xoBlocks.canvas_left && $theme_view_leftcolumn}> <{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_left zoneClass='xo-canvas-column' zoneId='xo-canvas-leftcolumn' zoneTag='td' }> <{/if}> <{else}> <{if $xoBlocks.canvas_left && $theme_view_leftcolumn}> <{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_left zoneClass='xo-canvas-column' zoneId='xo-canvas-leftcolumn' zoneTag='td' }> <{/if}> <td id="xo-page"> <{if $theme_view_breadcrumb}><{includeq file="$theme_name/xo_breadcrumb.html"}><{/if}> <{if $theme_view_topblock && ($xoBlocks.page_topleft or $xoBlocks.page_topcenter or $xoBlocks.page_topright)}> <div id="xo-page-topblocks" class="xo-blockszone-xo-<{$theme_top_order}>pageblocks"> <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:0:1}> <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:1:1}> <{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:2:1}> </div> <{/if}> <{if $xoops_contents}> <div id="xo-content"> <{$xoops_contents}></div> <{/if}> <{if $theme_view_bottomblock && ($xoBlocks.page_bottomleft or $xoBlocks.page_bottomcenter or $xoBlocks.page_bottomright)}> <div id="xo-page-bottomblocks" class="xo-blockszone-xo-<{$theme_bottom_order}>pageblocks"> <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:0:1}> <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:1:1}> <{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:2:1}> </div> <{/if}> </td> <{if $xoBlocks.canvas_right && $theme_view_rightcolumn}> <{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_right zoneClass='xo-canvas-column' zoneId='xo-canvas-rightcolumn' zoneTag='td' }> <{/if}> <{/if}> </tr> </table>




do it work is right?

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits