Home > News > Theme > XCL Theme BTcss Multiple Blocks Position

XCL Theme BTcss Multiple Blocks Position

2
gigamaster
gigamaster submitted 2009/7/19 13:31, published 2009/7/19 13:31 | 15784 views
Tags: ,
http%3A%2F%2Fcode.google.com%2Fp%2Fxoopscube-themes%2Fdownloads%2Fdetail%3Fname%3Dbtcss-multi-cc.zip

XCL 2.2 Theme built with BlueTrip CSS Framework

Highly inspired by Gijoe work ^_^

This is a sample to show how to build a theme with a css framework and how to simple manage multiple blocks position by order/weight from admin interface.

xcl-unlimited-blocks.png

Theme Layout : Sample 1

To test this theme, you need to intall a few blocks and create 3 center-center blocks according to the following screenshot example:

btcss_multi_blocks.png

Smarty Condition

Here is a sample for Center-Center Block Position with order/weight value equal to "10"

< !-- Center-left Block with order = 10 --> <{foreach item=block from=$xoops_ccblocks} <{if $block.weight eq 10 }> < div class="centerCcolumn"> <{if $block.title|regex_replace:"/.*none/":"none" ne "none"}> < div class="blockTitle"><{$block.title}> - <{$block.weight}>< /div> <{/if}> < div class="blockContent"><{$block.content}>< /div> < /div> <{/if}> <{/foreach}>

This simple smarty condition makes easy to extend any XCL layout with multiple blocks position !

Note : To hide block title, rename it to "none" !

Download : BTcss Theme Multi Block

Have Fun !


:D

Comments (0)

Newest first | Oldest first | Nested view | RSS feed

Trackbacks (0)

Newest first | Oldest first | RSS feed

Votes (2)

Newest first | Oldest first | RSS feed
 

    Welcome | News | Overview | Documentation | Forum | Tutorialstop
    Brasilian | French | German | Greek | Japanese | Korean | Russian | T-Chinese
    Powered by XOOPS Cube © 2001-2011 The XOOPS Cube Project