Skip to content

Commit

Permalink
Reordered package theme setting
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperboy committed Mar 4, 2015
1 parent 6776524 commit a6dbd0b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions theme-settings.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
<?php
function open_framework_form_system_theme_settings_alter(&$form, &$form_state) {

// Packages
$form['packages_container'] = array(
'#type' => 'fieldset',
'#title' => t('Packages'),
'#description' => t('Select font package.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);

$form['packages_container']['font_awesome_version'] = array(
'#type' => 'radios',
'#title' => t('Font Awesome'),
'#default_value' => theme_get_setting('font_awesome_version'),
'#options' => array(
'font-awesome-3' => t('Version 3.2.1 [<a href="http://fortawesome.github.io/Font-Awesome/3.2.1/" title="Font Awesome 3.2.1 official documentation">documentation</a>]'),
'font-awesome-4' => t('Version 4.3.0 [<a href="http://fortawesome.github.io/Font-Awesome/" title="Font Awesome 4.3.0 official documentation">documentation</a>]'),
),
);

// Responsive Behavior
$form['responsive_container'] = array(
'#type' => 'fieldset',
Expand Down Expand Up @@ -153,6 +134,25 @@ function open_framework_form_system_theme_settings_alter(&$form, &$form_state) {
'roundedcorners' => t('Rounded corners (not supported in Internet Explorer 8 or below)'),
),
);

// Packages
$form['packages_container'] = array(
'#type' => 'fieldset',
'#title' => t('Packages'),
'#description' => t('Select font package.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);

$form['packages_container']['font_awesome_version'] = array(
'#type' => 'radios',
'#title' => t('Font Awesome'),
'#default_value' => theme_get_setting('font_awesome_version'),
'#options' => array(
'font-awesome-3' => t('Version 3.2.1 [<a href="http://fortawesome.github.io/Font-Awesome/3.2.1/" title="Font Awesome 3.2.1 official documentation">documentation</a>]'),
'font-awesome-4' => t('Version 4.3.0 [<a href="http://fortawesome.github.io/Font-Awesome/" title="Font Awesome 4.3.0 official documentation">documentation</a>]'),
),
);

// Attach custom submit handler to the form
$form['#submit'][] = 'open_framework_settings_submit';
Expand Down

0 comments on commit a6dbd0b

Please sign in to comment.