It's just checking to see if certain fields are empty or not. Without any check at all (like removing the check statement from search_header), it just displays whether turned on or off. Totally different from the normal sideboxes.
PHP Code:
$check_query = "select count(*) as count
from " . TABLE_CONFIGURATION ."
where configuration_group_id = ". (int)$smgroupid ."
and ((configuration_key = 'BOX_LINKEDIN_URL' and `configuration_value` != '') .....)";
$check = $db->Execute($check_query);
if ($check->fields['count'] > 0) {
$show_sm_box_header= true;
}
if ($show_sm_box_header == true) {
require($template->get_template_dir('tpl_sm_box_header.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_sm_box_header.php');
$title = '<label>' . BOX_HEADING_SOCIALMEDIA . '</label>';
$title_link = false;
require($template->get_template_dir('tpl_box_header.php', DIR_WS_TEMPLATE, $current_page_base,'common') . '/tpl_box_header.php' . $column_box_default);
}