| 1 |
<?php // $Id: flexiblock.module,v 1.5 2005/07/27 22:54:32 djnz Exp $ |
<?php // $Id: flexiblock.module,v 1.6 2005/07/29 22:18:02 djnz Exp $ |
| 2 |
|
|
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 62 |
<p>Blocks are the boxes in the left and right side bars of the web site. They are made available by modules or created manually.</p> |
<p>Blocks are the boxes in the left and right side bars of the web site. They are made available by modules or created manually.</p> |
| 63 |
<p>Only enabled blocks are shown. You can position the blocks by deciding which side of the page they will show up on (sidebar) and in which order they appear (weight).</p> |
<p>Only enabled blocks are shown. You can position the blocks by deciding which side of the page they will show up on (sidebar) and in which order they appear (weight).</p> |
| 64 |
<p>If you want certain blocks to disable themselves temporarily during high server loads, check the 'Throttle' box. You can configure the auto-throttle on the <a href=\"%throttle\">throttle configuration page</a> after having enabled the throttle module.</p> |
<p>If you want certain blocks to disable themselves temporarily during high server loads, check the 'Throttle' box. You can configure the auto-throttle on the <a href=\"%throttle\">throttle configuration page</a> after having enabled the throttle module.</p> |
| 65 |
<p>Themes that support flexiblock use the regions in the 'location' column. Legacy themes use the settings in the 'Sidebar' column.</p> |
<p>Themes that support flexiblock use the regions in the 'location' column. Legacy themes use the settings in the 'Sidebar' column. If you are having problems with flexiblock, the <a href=\"%debug\">debug page</a> might help.</p> |
| 66 |
", array('%throttle' => url('admin/settings/throttle'))); |
", array('%throttle' => url('admin/settings/throttle'), '%debug' => url('admin/flexiblock/debug'))); |
| 67 |
} |
} |
| 68 |
} |
} |
| 69 |
|
|
| 224 |
|
|
| 225 |
function _flexiblock_get_mapping($theme=FALSE) { |
function _flexiblock_get_mapping($theme=FALSE) { |
| 226 |
if ( !$theme ) { |
if ( !$theme ) { |
| 227 |
$theme = drupal_get_theme(); |
// REVISIT is there a proper API to do this? |
| 228 |
|
$theme = $GLOBALS['theme']; |
| 229 |
} |
} |
| 230 |
$mapping = variable_get('flexiblock_mapping', array()); |
$mapping = variable_get('flexiblock_mapping', array()); |
| 231 |
if ( isset($mapping['themes'][$theme]) ) { |
if ( isset($mapping['themes'][$theme]) ) { |