- b2evolution CMS Support Forums
- b2evolution Support
- Templates, skins, XHTML and CSS
- [4.1.x] Container problem
1 kittenplay Apr 04, 2012 21:04
My b2evolution Version: 4.1.x
Hello all.
I am inserting a widget to show current posts and inserted a new container as shown below yet it is not working. Inserted into index.main.php and post.main.php although I only want it on front page and therefore hope to remove it from post.main.php.
index.main.php
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include( '$disp$', array(
) );
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
?>
<?php
{ // ----------------------- MAIN LOWER CONTENT START ------------------------------------
skin_container( NT_('Main_Lower'), array(
'block_start' => '<div class="$wi_class$">',
'block_end' => '</div>',
) );
// ----------------------- MAIN LOWER CONTENT END ------------------------------------
}
?>
post.main.php
<?php
// Go Grab the featured post:
if( $Item = & get_featured_Item() )
{ // We have a featured/intro post to display:
// ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
skin_include( '_item_block.inc.php', array(
'feature_block' => true,
'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail
'intro_mode' => 'normal', // Intro posts will be displayed in normal mode
'item_class' => 'featurepost',
'image_size' => 'fit-400x320',
) );
// ----------------------------END ITEM BLOCK ----------------------------
}
?>
<?php
{ // ----------------------- MAIN LOWER CONTENT START ------------------------------------
skin_container( NT_('Main_Lower'), array(
'block_start' => '<div class="$wi_class$">',
'block_end' => '</div>',
) );
// ----------------------- MAIN LOWER CONTENT END ------------------------------------
}
?>
Try this code. Also you'll need to reload containers if you modify them. There's a link in on Widgets page in the top right corner.