| 1 |
<?php |
<?php |
| 2 |
// $Id: theme-settings.php,v 1.8.2.4 2009/10/14 01:21:55 himerus Exp $ |
// $Id: theme-settings.php,v 1.8.2.5 2009/10/24 14:59:26 himerus Exp $ |
| 3 |
|
|
| 4 |
// require_once for the functions that need to be available when we are outside |
// require_once for the functions that need to be available when we are outside |
| 5 |
// of the omega theme in the administrative interface |
// of the omega theme in the administrative interface |
| 34 |
for ($i = 1; $i <= 24; $i++){ |
for ($i = 1; $i <= 24; $i++){ |
| 35 |
$grids[$i] = $i; |
$grids[$i] = $i; |
| 36 |
} |
} |
| 37 |
|
for ($i = 0; $i <= 23; $i++){ |
| 38 |
|
$spacing[$i] = $i; |
| 39 |
|
} |
| 40 |
$containers = array( |
$containers = array( |
| 41 |
'12' => '12 column grid', |
'12' => '12 column grid', |
| 42 |
'16' => '16 column grid', |
'16' => '16 column grid', |
| 194 |
'#title' => t('Where should your mission statement be displayed?'), |
'#title' => t('Where should your mission statement be displayed?'), |
| 195 |
'#default_value' => $saved_settings['mission_statement_pages'], |
'#default_value' => $saved_settings['mission_statement_pages'], |
| 196 |
'#options' => array( |
'#options' => array( |
| 197 |
'home' => t('Display mission statement only on front page'), |
'home' => t('Display mission statement only on front page.'), |
| 198 |
'all' => t('Display mission statement on all pages'), |
'all' => t('Display mission statement on all pages.'), |
| 199 |
|
'none'=> t('Do not display the mission statement on any pages.'), |
| 200 |
), |
), |
| 201 |
); |
); |
| 202 |
|
|
| 311 |
'#options' => $grids, |
'#options' => $grids, |
| 312 |
'#description' => t('This number, combined with the Preface Middle and Preface Last determine the share of your grid for each element.'), |
'#description' => t('This number, combined with the Preface Middle and Preface Last determine the share of your grid for each element.'), |
| 313 |
); |
); |
| 314 |
|
$form['omega_container']['omega_regions']['preface']['omega_preface_first_prefix'] = array( |
| 315 |
|
'#type' => 'select', |
| 316 |
|
'#title' => t('Prefix Spacing for Preface First'), |
| 317 |
|
'#default_value' => $saved_settings['omega_preface_first_prefix'], |
| 318 |
|
'#options' => $spacing, |
| 319 |
|
); |
| 320 |
|
$form['omega_container']['omega_regions']['preface']['omega_preface_first_suffix'] = array( |
| 321 |
|
'#type' => 'select', |
| 322 |
|
'#title' => t('Suffix Spacing for Preface First'), |
| 323 |
|
'#default_value' => $saved_settings['omega_preface_first_suffix'], |
| 324 |
|
'#options' => $spacing, |
| 325 |
|
); |
| 326 |
$form['omega_container']['omega_regions']['preface']['omega_preface_middle_width'] = array( |
$form['omega_container']['omega_regions']['preface']['omega_preface_middle_width'] = array( |
| 327 |
'#type' => 'select', |
'#type' => 'select', |
| 328 |
'#title' => t('Contextual Width for Preface Middle'), |
'#title' => t('Contextual Width for Preface Middle'), |
| 330 |
'#options' => $grids, |
'#options' => $grids, |
| 331 |
'#description' => t('This number, combined with the Preface First and Preface Last determine the share of your grid for each element.'), |
'#description' => t('This number, combined with the Preface First and Preface Last determine the share of your grid for each element.'), |
| 332 |
); |
); |
| 333 |
|
$form['omega_container']['omega_regions']['preface']['omega_preface_middle_prefix'] = array( |
| 334 |
|
'#type' => 'select', |
| 335 |
|
'#title' => t('Prefix Spacing for Preface Middle'), |
| 336 |
|
'#default_value' => $saved_settings['omega_preface_middle_prefix'], |
| 337 |
|
'#options' => $spacing, |
| 338 |
|
); |
| 339 |
|
$form['omega_container']['omega_regions']['preface']['omega_preface_middle_suffix'] = array( |
| 340 |
|
'#type' => 'select', |
| 341 |
|
'#title' => t('Suffix Spacing for Preface Middle'), |
| 342 |
|
'#default_value' => $saved_settings['omega_preface_middle_suffix'], |
| 343 |
|
'#options' => $spacing, |
| 344 |
|
); |
| 345 |
$form['omega_container']['omega_regions']['preface']['omega_preface_last_width'] = array( |
$form['omega_container']['omega_regions']['preface']['omega_preface_last_width'] = array( |
| 346 |
'#type' => 'select', |
'#type' => 'select', |
| 347 |
'#title' => t('Contextual Width for Preface Last'), |
'#title' => t('Contextual Width for Preface Last'), |
| 349 |
'#options' => $grids, |
'#options' => $grids, |
| 350 |
'#description' => t('This number, combined with the Preface First and Preface Middle determine the share of your grid for each element.'), |
'#description' => t('This number, combined with the Preface First and Preface Middle determine the share of your grid for each element.'), |
| 351 |
); |
); |
| 352 |
|
$form['omega_container']['omega_regions']['preface']['omega_preface_last_prefix'] = array( |
| 353 |
|
'#type' => 'select', |
| 354 |
|
'#title' => t('Prefix Spacing for Preface Last'), |
| 355 |
|
'#default_value' => $saved_settings['omega_preface_last_prefix'], |
| 356 |
|
'#options' => $spacing, |
| 357 |
|
); |
| 358 |
|
$form['omega_container']['omega_regions']['preface']['omega_preface_last_suffix'] = array( |
| 359 |
|
'#type' => 'select', |
| 360 |
|
'#title' => t('Suffix Spacing for Preface Last'), |
| 361 |
|
'#default_value' => $saved_settings['omega_preface_last_suffix'], |
| 362 |
|
'#options' => $spacing, |
| 363 |
|
); |
| 364 |
// Main Body Regions |
// Main Body Regions |
| 365 |
$form['omega_container']['omega_regions']['main'] = array( |
$form['omega_container']['omega_regions']['main'] = array( |
| 366 |
'#type' => 'fieldset', |
'#type' => 'fieldset', |
| 446 |
'#options' => $grids, |
'#options' => $grids, |
| 447 |
'#description' => t('This number, combined with the other Postscript content zones determines the share of your grid for each element.'), |
'#description' => t('This number, combined with the other Postscript content zones determines the share of your grid for each element.'), |
| 448 |
); |
); |
| 449 |
|
$form['omega_container']['omega_regions']['postscript']['omega_postscript_one_prefix'] = array( |
| 450 |
|
'#type' => 'select', |
| 451 |
|
'#title' => t('Prefix Spacing for Postscript 1'), |
| 452 |
|
'#default_value' => $saved_settings['omega_postscript_one_prefix'], |
| 453 |
|
'#options' => $spacing, |
| 454 |
|
); |
| 455 |
|
$form['omega_container']['omega_regions']['postscript']['omega_postscript_one_suffix'] = array( |
| 456 |
|
'#type' => 'select', |
| 457 |
|
'#title' => t('Suffix Spacing for Postscript 1'), |
| 458 |
|
'#default_value' => $saved_settings['omega_postscript_one_suffix'], |
| 459 |
|
'#options' => $spacing, |
| 460 |
|
); |
| 461 |
$form['omega_container']['omega_regions']['postscript']['omega_postscript_two_width'] = array( |
$form['omega_container']['omega_regions']['postscript']['omega_postscript_two_width'] = array( |
| 462 |
'#type' => 'select', |
'#type' => 'select', |
| 463 |
'#title' => t('Contextual Width for Postscript 2'), |
'#title' => t('Contextual Width for Postscript 2'), |
| 465 |
'#options' => $grids, |
'#options' => $grids, |
| 466 |
'#description' => t('This number, combined with the other Postscript content zones determines the share of your grid for each element.'), |
'#description' => t('This number, combined with the other Postscript content zones determines the share of your grid for each element.'), |
| 467 |
); |
); |
| 468 |
|
$form['omega_container']['omega_regions']['postscript']['omega_postscript_two_prefix'] = array( |
| 469 |
|
'#type' => 'select', |
| 470 |
|
'#title' => t('Prefix Spacing for Postscript 2'), |
| 471 |
|
'#default_value' => $saved_settings['omega_postscript_two_prefix'], |
| 472 |
|
'#options' => $spacing, |
| 473 |
|
); |
| 474 |
|
$form['omega_container']['omega_regions']['postscript']['omega_postscript_two_suffix'] = array( |
| 475 |
|
'#type' => 'select', |
| 476 |
|
'#title' => t('Suffix Spacing for Postscript 2'), |
| 477 |
|
'#default_value' => $saved_settings['omega_postscript_two_suffix'], |
| 478 |
|
'#options' => $spacing, |
| 479 |
|
); |
| 480 |
$form['omega_container']['omega_regions']['postscript']['omega_postscript_three_width'] = array( |
$form['omega_container']['omega_regions']['postscript']['omega_postscript_three_width'] = array( |
| 481 |
'#type' => 'select', |
'#type' => 'select', |
| 482 |
'#title' => t('Contextual Width for Postscript 3'), |
'#title' => t('Contextual Width for Postscript 3'), |
| 484 |
'#options' => $grids, |
'#options' => $grids, |
| 485 |
'#description' => t('This number, combined with the other Postscript content zones determines the share of your grid for each element.'), |
'#description' => t('This number, combined with the other Postscript content zones determines the share of your grid for each element.'), |
| 486 |
); |
); |
| 487 |
|
$form['omega_container']['omega_regions']['postscript']['omega_postscript_three_prefix'] = array( |
| 488 |
|
'#type' => 'select', |
| 489 |
|
'#title' => t('Prefix Spacing for Postscript 3'), |
| 490 |
|
'#default_value' => $saved_settings['omega_postscript_three_prefix'], |
| 491 |
|
'#options' => $spacing, |
| 492 |
|
); |
| 493 |
|
$form['omega_container']['omega_regions']['postscript']['omega_postscript_three_suffix'] = array( |
| 494 |
|
'#type' => 'select', |
| 495 |
|
'#title' => t('Suffix Spacing for Postscript 3'), |
| 496 |
|
'#default_value' => $saved_settings['omega_postscript_three_suffix'], |
| 497 |
|
'#options' => $spacing, |
| 498 |
|
); |
| 499 |
$form['omega_container']['omega_regions']['postscript']['omega_postscript_four_width'] = array( |
$form['omega_container']['omega_regions']['postscript']['omega_postscript_four_width'] = array( |
| 500 |
'#type' => 'select', |
'#type' => 'select', |
| 501 |
'#title' => t('Contextual Width for Postscript 4'), |
'#title' => t('Contextual Width for Postscript 4'), |
| 503 |
'#options' => $grids, |
'#options' => $grids, |
| 504 |
'#description' => t('This number, combined with the other Postscript content zones determines the share of your grid for each element.'), |
'#description' => t('This number, combined with the other Postscript content zones determines the share of your grid for each element.'), |
| 505 |
); |
); |
| 506 |
|
$form['omega_container']['omega_regions']['postscript']['omega_postscript_four_prefix'] = array( |
| 507 |
|
'#type' => 'select', |
| 508 |
|
'#title' => t('Prefix Spacing for Postscript 4'), |
| 509 |
|
'#default_value' => $saved_settings['omega_postscript_four_prefix'], |
| 510 |
|
'#options' => $spacing, |
| 511 |
|
); |
| 512 |
|
$form['omega_container']['omega_regions']['postscript']['omega_postscript_four_suffix'] = array( |
| 513 |
|
'#type' => 'select', |
| 514 |
|
'#title' => t('Suffix Spacing for Postscript 4'), |
| 515 |
|
'#default_value' => $saved_settings['omega_postscript_four_suffix'], |
| 516 |
|
'#options' => $spacing, |
| 517 |
|
); |
| 518 |
// Footer Blocks |
// Footer Blocks |
| 519 |
$form['omega_container']['omega_regions']['footer'] = array( |
$form['omega_container']['omega_regions']['footer'] = array( |
| 520 |
'#type' => 'fieldset', |
'#type' => 'fieldset', |