Ok, so this is my demo board:
http://www.arvag.net/demo
You can see recent topics and recent gallery images above all forums. In order to keep everything working when the sidebar is open i have these two css styles:
.recent_gallery_images #attach_wrap li{
margin:5px 5px !important;
}
.recent_gallery_images #attach_wrap li.no_sidebar{
margin:5px 43px !important;
}<div class='recent_gallery_images right category_block block_wrap'>
<h3 class='maintitle'><a class='toggle right' href='#' title="{$this->lang->words['toggle_cat']}">{$this->lang->words['toggle_cat']}</a>{$this->lang->words['recent_gallery_images']}</h3>
<table class='ipb_table' summary="{$title}">
<tr>
<td>
<div id='attach_wrap' class='rounded clearfix _sbcollapsable'>
<ul>
<foreach loop="gallery_images_hook:$rows as $r">
<li class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if>'>{$r['_image']}</li>
</foreach>
</ul>
</div>
</td>
</tr>
</table>
</div>
<br style='clear:both;' /><li class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if>'>{$r['_image']}</li>$(function(){
$("#close_sidebar").click(function(){
$(".recent_gallery_images li").addClass("no_sidebar");
});
$("#open_sidebar").click(function(){
$(".recent_gallery_images li").removeClass("no_sidebar");
});
});Powered by SD.Agregator (http://www.invisionize.eu)
© SpannerDEV (http://www.spannerdev.pl)