| 58 |
'css_footer_outer'=>'box_shadow', |
'css_footer_outer'=>'box_shadow', |
| 59 |
'css_footer_top'=>null, |
'css_footer_top'=>null, |
| 60 |
'css_footer_message'=>null, |
'css_footer_message'=>null, |
| 61 |
'css_footer_bottom'=>null |
'css_footer_bottom'=>null, |
| 62 |
|
'no_promoted_content'=>false, |
| 63 |
); |
); |
| 64 |
|
|
| 65 |
// Merge the saved variables and their default values |
// Merge the saved variables and their default values |
| 292 |
'#default_value' => $settings['block_rules'], |
'#default_value' => $settings['block_rules'], |
| 293 |
'#description' => t('Enter the rules for applying CSS classes to specific blocks here. Each rule should be on a separate line and should be of the form: module-delta: classes. For example, if you want the navigation block to have a CSS class of MyClass, you should enter:<pre>user-1:MyClass</pre> or, to put a shadow box around the primary links block<pre>menu-primary-links: box_shadow</pre>') |
'#description' => t('Enter the rules for applying CSS classes to specific blocks here. Each rule should be on a separate line and should be of the form: module-delta: classes. For example, if you want the navigation block to have a CSS class of MyClass, you should enter:<pre>user-1:MyClass</pre> or, to put a shadow box around the primary links block<pre>menu-primary-links: box_shadow</pre>') |
| 294 |
); |
); |
| 295 |
|
$form['css']['info'] = array( |
| 296 |
|
'#value'=> t('<strong>Body classes and Page-specific classes:</strong><br />The theme will put the Drupal standard body classes on the body element - these give you the opportunity to tailor the CSS according to the type of page. In addition, the theme will also tell you the actual page, eg if the page is ?q=node/192 the body will have a class of page_node_192 (ie page_ followed by the path of the page where / is changed to _). This will let you have specific CSS rules for specific pages.') |
| 297 |
|
); |
| 298 |
$form['css']['css_rules'] = array( |
$form['css']['css_rules'] = array( |
| 299 |
'#type' => 'textarea', |
'#type' => 'textarea', |
| 300 |
'#title' => t('Additional inline CSS'), |
'#title' => t('Additional inline CSS'), |
| 305 |
'#type' => 'textarea', |
'#type' => 'textarea', |
| 306 |
'#title' => t('Additional CSS sheets'), |
'#title' => t('Additional CSS sheets'), |
| 307 |
'#default_value' => $settings['css_sheets'], |
'#default_value' => $settings['css_sheets'], |
| 308 |
'#description' => t('If you want your own stylesheets you can list them here. Put each stylesheet name on a separate line. The system will look for the stylesheet in the same directory as the Flexible 2 theme - if you put the stylesheet in a subdirectory, you will need to specify that as well eg<pre>MySubdirectory/MySheet.css</pre>') |
'#description' => t('If you want your own stylesheets you can list them here. Put each stylesheet name on a separate line. The system will look for the stylesheet in the same directory as the Flexible 2 theme - if you put the stylesheet in a subdirectory, you will need to specify that as well eg<pre>MySubdirectory/MySheet.css</pre> Note, you might also want to switch off these style sheets if a user selects one of the accessibility modes. So, if you added mystyles.css in the theme directory, you can disable it whenever High Contrast mode is selected by adding the following line to the "Rules to control accessibility modes:" section: <pre>Colour:HighContrast:-sites/all/themes/flexible/mystyles.css</pre> ') |
| 309 |
); |
); |
| 310 |
$form['css']['validators'] = array( |
$form['css']['validators'] = array( |
| 311 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 313 |
'#default_value' => $settings['validators'], |
'#default_value' => $settings['validators'], |
| 314 |
'#description' => t('Turn this feature on to display links to the W3C validators - you will probably only want to enable this feature during development.') |
'#description' => t('Turn this feature on to display links to the W3C validators - you will probably only want to enable this feature during development.') |
| 315 |
); |
); |
| 316 |
|
$form['other'] = array( |
| 317 |
|
'#type' => 'fieldset', |
| 318 |
|
'#title' => t('Other settings'), |
| 319 |
|
); |
| 320 |
|
$form['other']['no_promoted_content'] = array( |
| 321 |
|
'#type' => 'checkbox', |
| 322 |
|
'#title' => t('No promoted front page content'), |
| 323 |
|
'#default_value' => $settings['no_promoted_content'], |
| 324 |
|
'#description' => t('If you check this setting, Drupal will not put its default content on the front page, ie "node". If you don\'t have any promoted nodes, this setting will prevent the "Welcome to Drupal" message being displayed. If you do have promoted nodes, they will not be displayed.') |
| 325 |
|
); |
| 326 |
|
|
| 327 |
// Return the additional form widgets |
// Return the additional form widgets |
| 328 |
return $form; |
return $form; |
| 329 |
} |
} |