| 42 |
$content .= '</span>'; |
$content .= '</span>'; |
| 43 |
//the following <span> tags are needed to control javascript behavior |
//the following <span> tags are needed to control javascript behavior |
| 44 |
$content .= '<span id=block_bar_panel' . $block_num . ' class=' . ($i-1) . '></span>'; |
$content .= '<span id=block_bar_panel' . $block_num . ' class=' . ($i-1) . '></span>'; |
| 45 |
$sticky = (variable_get('blockbar_save_state' . $block, 1) == 1) ? 'block_sticky' : ''; |
$sticky = (variable_get('blockbar_save_state' . $block_num, 1) == 1) ? 'block_sticky' : ''; |
| 46 |
$content .= '<span id=block_bar_sticky' . $block_num . ' class=' . $sticky . '></span>'; |
$content .= '<span id=block_bar_sticky' . $block_num . ' class=' . $sticky . '></span>'; |
| 47 |
$unique = (variable_get('blockbar_open_unique' . $block, 1) == 1) ? 'block_unique' : ''; |
$unique = (variable_get('blockbar_open_unique' . $block_num, 1) == 1) ? 'block_unique' : ''; |
| 48 |
$content .= '<span id=block_bar_unique' . $block_num . ' class=' . $unique . '></span>'; |
$content .= '<span id=block_bar_unique' . $block_num . ' class=' . $unique . '></span>'; |
| 49 |
|
|
| 50 |
return $content; |
return $content; |
| 101 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 102 |
'#title' => t('Sticky panels'), |
'#title' => t('Sticky panels'), |
| 103 |
'#default_value' => variable_get('blockbar_save_state' . $block_num, 1), |
'#default_value' => variable_get('blockbar_save_state' . $block_num, 1), |
| 104 |
|
'#return_value' => 1, |
| 105 |
'#tree' => FALSE, |
'#tree' => FALSE, |
| 106 |
'#description' => t('By checking this box your panels will remember their open/close state between page refreshes.') |
'#description' => t('By checking this box your panels will remember their open/close state between page refreshes.') |
| 107 |
); |
); |
| 109 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 110 |
'#title' => t('Open one panel at a time'), |
'#title' => t('Open one panel at a time'), |
| 111 |
'#default_value' => variable_get('blockbar_open_unique' . $block_num, 1), |
'#default_value' => variable_get('blockbar_open_unique' . $block_num, 1), |
| 112 |
|
'#return_value' => 1, |
| 113 |
'#tree' => FALSE, |
'#tree' => FALSE, |
| 114 |
'#description' => t('Checking this box will restrict open panels to one at a time.') |
'#description' => t('Checking this box will restrict open panels to one at a time.') |
| 115 |
); |
); |