Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $themes = list_themes();
- $theme = $form_state['build_info']['args'][0];
- $settings_theme_info = $themes[$theme]->info;
- $containers = array(
- '12' => '12 column grid (940 usable pixels)',
- '16' => '16 column grid (940 usable pixels)',
- '24' => '24 column grid (950 usable pixels)',
- '32' => '32 column grid (982 usable pixels)',
- );
- $form['omega_grid']['defaults']['omega_default_container_width'] = array(
- '#type' => 'select',
- '#title' => t('Default container width'),
- '#default_value' => omega_theme_get_setting('omega_default_container_width'),
- '#options' => $containers,
- '#weight' => -50,
- '#description' => t('This width is used for regions like $help, $messages and other non-important regions in page.tpl.php'),
- );
- $zones = $settings_theme_info['zones'];
- $all_regions = $settings_theme_info['regions'];
- foreach ($zones AS $zone => $regions) {
- $form['omega_grid'][$zone]['omega_'. $zone .'_container_width'] = array(
- '#type' => 'select',
- '#title' => t('Container width'),
- '#default_value' => omega_theme_get_setting('omega_'. $zone .'_container_width'),
- '#options' => $containers,
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement