Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.5.5 2.6 3.0 90 2013 Abuse alimento AntiHarvesting AntiMalUser AntiSpam API ASP Beats billige black Blocks blue Bytes Captcha cell Christmas chronolabs Client content Conversion demo docek download Dresses editor Elastic ELB evden eve facebook floor free games herre Honeypot Human IP jQuery kantor Karaoke lamps log logger mobile module modules Monster MyAlbum-p nakliyat newbb news online oxygen PageRank Payment Permissions pink Plugin portal Prevention profile project Protector publisher Rights rmcommon Room sale security Server site Smarty Spam SQL stem StopForumSpam Studio support tag tags tdmcreate Theme themes Twitter Umfrage User userlog website Whitepaper xoops XOOPS2 Xortify ZendFramework

New Users

Registering user

# 136005

bluestarsdie

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2011/10/15 1:28 how do change direction block in theme?

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

Top

rhoda
Just popping in
Just popping in
Joined:
2010/2/23 2:33
From iran
Group:
Registered Users
Posts: 7
(Show More) (Show Less)


#2 Posted on: 2011/10/15 9:35 Re: how do change direction block in theme?
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/)

Top


Still learning CSS and... english
Burning
Theme Designer
Theme Designer
Joined:
2006/8/22 14:44
Group:
Registered Users
Repository Group
Posts: 1111
(Show More) (Show Less)


#3 Posted on: 2011/10/16 2:50 how do change direction block in theme?
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



Top

rhoda
Just popping in
Just popping in
Joined:
2010/2/23 2:33
From iran
Group:
Registered Users
Posts: 7
(Show More) (Show Less)


#4 Posted on: 2011/10/16 4:49 Re: how do change direction block in theme?
Thank you
my problem was resolved
I added the below code to the file theme.html
<{if $xoops_langcode=='en'}>

<{else}>

<{/if}>

<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?

Top

rhoda
Just popping in
Just popping in
Joined:
2010/2/23 2:33
From iran
Group:
Registered Users
Posts: 7
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]