Is your sidebox module file still named blank_sidebox.php? If so, just add the test above
PHP Code:
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
//your code
$content .= '</div>';
}
and the closing } at the bottom of the file.
You want to adapt this test from tpl_main_page.php for your multi-page display test:
PHP Code:
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
PHP Code:
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$show_blank_sidebox = false;
} else {
$show_blank_sidebox = true;
}
if ($show_blank_sidebox) {
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
//your code
$content .= '</div>';
}
Bookmarks