Add new region on "right side bar" with a same block theme


Author Message
Jdufaur

Posted: 10/15/2010
Quote message 

Hello evry body,

I want to create a new "PUB" region on the Top right side bar into the "art-sidebar1" class.

So, i define new block regions in the template's .info file, like this:

regions[pub] = Publicity

And I woud like to add a code inside my "page.tpl.php" into this lines:

Line 47 to 50:
----------------------------------------------------
<div class="art-content-layout">
<div class="art-content-layout-row">
<?php $art_sidebar_right = (isset($right) && !empty($right)) ? $right : $sidebar_right;
echo '<div class="'.art_get_sidebar_style($art_sidebar_right, $vnavigation_right, 'art-content').'">'; ?>
----------------------------------------------------

and Line 167 to 168:
______________________________

<?php $art_sidebar_right = (isset($right) && !empty($right)) ? $right : $sidebar_right;
if (!empty($art_sidebar_right) || !empty($vnavigation_right)) echo '<div class="'.art_get_sidebar_style($art_sidebar_right, $vnavigation_right, 'art-sidebar1').'">' . $vnavigation_right . $art_sidebar_right . "</div>"; ?>
______________________________

But I don't know how to report my new region while keeping the same class as "$ right" and "$ art_sidebar_right.
I have already added new class in the header, content and foter, but I can't add region in the right sidebar.

Please help me!
 
Lawrence

Posted: 10/16/2010
Quote message 

Are you printing the regions in your page.tpl.php file?

<?php print $Publicity ?>

Didn't see you specify it in your code, so just suggesting it. :-)
 
Jdufaur

Posted: 10/18/2010
Quote message 

Hello Lawrence,

Yes i printed the region in my page.tpl.php file like that:

<?php print $Publicity ?>

and is visible but not into the right side.
The problem is that you can not insert the code as usual to appear in the right sidebar or left elsewhere. Because, Arteester theme uses the functions "art_sidebar function ($ s, $ sidebar)" + function art_get_sidebar_style ($ sidebar, $ vnavigation, $ class) + function art_get_content_cell_style ($ left, $ vnav_left, $ right, $ vnav_right, $ content ) File "common_methods.php.
So where insert "<? Php print $ Publicity?>" In "page.tpl.php"file and need to add anything in the "common_methods.php"file . So it can be placed correctly in the Right sidebar.

I hope I was clear. I could simply ask the question:

How to add region in the right sidebar and left sidebar from a theme Arteester?
And you will understand better my problem.
This issue is the same for all generated Arteester themes.

Thank''s for your answer!
 
Jdufaur

Posted: 10/18/2010
Quote message 

Excuse me for my bad english.
 
Jdufaur

Posted: 10/18/2010
Quote message 

where can i insert "<? Php print $ Publicity?>" Inside the code bellow of my "page.tpl.php"file?

Line 47 to 50:
----------------------------------------------------
<div class="art-content-layout">
<div class="art-content-layout-row">
<?php $art_sidebar_right = (isset($right) && !empty($right)) ? $right : $sidebar_right;
echo '<div class="'.art_get_sidebar_style($art_sidebar_right, $vnavigation_right, 'art-content').'">'; ?>
----------------------------------------------------
and Line 167 to 168:
______________________________

<?php $art_sidebar_right = (isset($right) && !empty($right)) ? $right : $sidebar_right;
if (!empty($art_sidebar_right) || !empty($vnavigation_right)) echo '<div class="'.art_get_sidebar_style($art_sidebar_right, $vnavigation_right, 'art-sidebar1').'">' . $vnavigation_right . $art_sidebar_right . "</div>"; ?>
______________________________


And Should I put something in the "common_methods.php" file? If yes, which code writ?.