'fieldset',
'#title' => t('Mobile Page Layout'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 80,
'#description' => t('Use these settings to customize the layout of your mobile site. NOTE: If you have the built-in Admin theme enabled these settings will not affect the Admin section; they only apply to the "front end" theme. If no overrides are set the default layout will apply.'),
);
if ($settings['mobile_layout_enable_method'] == 'on') {
$form['layout']['mobile_page_layout']['mobile_layout_method_help'] = array(
'#prefix' => '
',
'#suffix' => '
',
'#value' => t('- Sidebar layout
- Set the sidebar configuration.
'),
);
$form['layout']['mobile_page_layout']['mobile_layout_method'] = array(
'#type' => 'radios',
'#prefix' => '',
'#suffix' => '
',
'#default_value' => $settings['mobile_layout_method'],
'#options' => array(
'0' => t('Layout #1 Both sidebars below the main content, 100% width, stacked, width settings do not apply.'),
'1' => t('Layout #2 Both sidebars below the main content, side by side, width settings apply.'),
'2' => t('Layout #3 Standard three column layout, width settings apply.'),
),
'#attributes' => array('class' => 'layouts'),
);
$form['layout']['mobile_page_layout']['mobile_layout_enable_settings'] = array(
'#type' => 'hidden',
'#value' => $settings['mobile_layout_enable_settings'],
);
} // endif layout method
if ($settings['mobile_layout_enable_sidebars'] == 'on') {
$form['layout']['mobile_page_layout']['mobile_layout_sidebar_help'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => t('- Sidebar widths
- Set the width of each sidebar if using Method #2 or #3. Mobile layouts use percentage values.
'),
);
$form['layout']['mobile_page_layout']['mobile_layout_sidebar_first_width'] = array(
'#type' => 'select',
'#title' => t('Sidebar first'),
'#prefix' => '',
'#default_value' => $settings['mobile_layout_sidebar_last_width'],
'#options' => array(
'20' => t('20%'),
'25' => t('25%'),
'33' => t('33%'),
'40' => t('40%'),
'50' => t('50%'),
'60' => t('60%'),
'67' => t('67%'),
'75' => t('75%'),
'80' => t('80%'),
),
'#attributes' => array('class' => 'sidebar-width-select'),
);
} //endif layout sidebars
} // endif layout settings
// Access keys
$form['access_keys'] = array(
'#type' => 'fieldset',
'#title' => t('Access Keys'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => t('Access keys are a navigation aid for some mobile browsers.'),
);
$form['access_keys']['add_access_keys'] = array(
'#type' => 'checkbox',
'#title' => t('Add Access Keys to Primary and Secondary links.'),
'#default_value' => $settings['add_access_keys'],
); // End Access Keys
// Color schemes
if ($settings['color_enable_schemes'] == 'on') {
$form['color'] = array(
'#type' => 'fieldset',
'#title' => t('Color settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 90,
'#description' => t('Use these settings to customize the colors of your site. If no stylesheet is selected the default colors will apply.'),
);
$form['color']['color_schemes'] = array(
'#type' => 'select',
'#title' => t('Color Schemes'),
'#default_value' => $settings['color_schemes'],
'#options' => array(
'colors-default.css' => t('Default Color Scheme'),
//'colors-mine.css' => t('My Color Scheme'), // add extra color css files, place these in your css/theme folder
),
);
$form['color']['color_enable_schemes'] = array(
'#type' => 'hidden',
'#value' => $settings['color_enable_schemes'],
);
} // endif color schemes
// Add the base theme's settings.
$form += adaptivetheme_settings($saved_settings, $defaults);
// Return the form
return $form;
}