Projet

Général

Profil

Révision 74f6bef0

Ajouté par Assos Assos il y a plus de 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/themes/adaptivetheme/at_core/inc/forms/settings.extensions.inc
4 4
 * @file
5 5
 * Generate settings for the Extensions form.
6 6
 */
7
function at_core_extensions_form(&$form) {
8
  // Enable Extensions
9
  $form['at-settings']['extend'] = array(
10
    '#type' => 'fieldset',
11
    '#title' => t('Extensions'),
12
    '#description' => t('<h3>Enable Additional Features</h3><p>Extensions include many extras for configuring and styling your site. Enabled extensions will appear in new vertical tabs below the main setting. Extensions can be enabled or disabled individually, so you only load what you need. Disabling the global setting will globally disable most extensions, but not enable them.</p><p>Once you have enabled an extension you will need to configure its settings, then save the theme settings again (to save its configuration).</p>'),
13
  );
7 14

  
8
// Enable Extensions
9
$form['at-settings']['extend'] = array(
10
  '#type' => 'fieldset',
11
  '#title' => t('Extensions'),
12
  '#description' => t('<h3>Enable Additional Features</h3><p>Extensions include many extras for configuring and styling your site. Enabled extensions will appear in new vertical tabs below the main setting. Extensions can be enabled or disabled individually, so you only load what you need. Disabling the global setting will globally disable most extensions, but not enable them.</p><p>Once you have enabled an extension you will need to configure its settings, then save the theme settings again (to save its configuration).</p>'),
13
);
15
  // Enable extensions, the extension settings are hidden by default to ease the
16
  // the UI clutter, this setting is also used as a global enable/disable for any
17
  // extension in other logical operations.
18
  $form['at-settings']['extend']['enable_extensions'] = array(
19
    '#type' => 'checkbox',
20
    '#title' => t('Enable extensions <small>(global setting)</small>'),
21
    '#default_value' => at_get_setting('enable_extensions'),
22
  );
14 23

  
15
// Enable extensions, the extension settings are hidden by default to ease the
16
// the UI clutter, this setting is also used as a global enable/disable for any
17
// extension in other logical operations.
18
$form['at-settings']['extend']['enable_extensions'] = array(
19
  '#type' => 'checkbox',
20
  '#title' => t('Enable extensions <small>(global setting)</small>'),
21
  '#default_value' => at_get_setting('enable_extensions'),
22
);
24
  $form['at-settings']['extend']['enable'] = array(
25
    '#type' => 'fieldset',
26
    '#title' => t('Extensions'),
27
    '#states' => array(
28
      'visible' => array('input[name="enable_extensions"]' => array('checked' => TRUE)),
29
    ),
30
  );
23 31

  
24
$form['at-settings']['extend']['enable'] = array(
25
  '#type' => 'fieldset',
26
  '#title' => t('Extensions'),
27
  '#states' => array(
28
    'visible' => array('input[name="enable_extensions"]' => array('checked' => TRUE)),
29
  ),
30
);
32
  // Fonts
33
  $form['at-settings']['extend']['enable']['enable_font_settings'] = array(
34
    '#type' => 'checkbox',
35
    '#title' => t('Fonts'),
36
    '#default_value' => at_get_setting('enable_font_settings'),
37
    '#description' => t('Apply fonts to site elements (page, titles, headings, menus and custom selectors). Supports websafe, custom and Google fonts, and <a href="!link" target="_blank">@font-your-face</a> integration.', array('!link' => 'http://drupal.org/project/fontyourface')),
38
  );
31 39

  
32
// Fonts
33
$form['at-settings']['extend']['enable']['enable_font_settings'] = array(
34
  '#type' => 'checkbox',
35
  '#title' => t('Fonts'),
36
  '#default_value' => at_get_setting('enable_font_settings'),
37
  '#description' => t('Apply fonts to site elements (page, titles, headings, menus and custom selectors). Supports websafe, custom and Google fonts, and <a href="!link" target="_blank">@font-your-face</a> integration.', array('!link' => 'http://drupal.org/project/fontyourface')),
38
);
40
  // Title styles
41
  $form['at-settings']['extend']['enable']['enable_heading_settings'] = array(
42
    '#type' => 'checkbox',
43
    '#title' => t('Title styles'),
44
    '#default_value' => at_get_setting('enable_heading_settings'),
45
    '#description' => t('Fine grain control over case, weight, alignment and CSS3 text shadows for page title, node, comment and block titles.'),
46
  );
39 47

  
40
// Title styles
41
$form['at-settings']['extend']['enable']['enable_heading_settings'] = array(
42
  '#type' => 'checkbox',
43
  '#title' => t('Title styles'),
44
  '#default_value' => at_get_setting('enable_heading_settings'),
45
  '#description' => t('Fine grain control over case, weight, alignment and CSS3 text shadows for page title, node, comment and block titles.'),
46
);
48
  // Image alignment and captions
49
  $form['at-settings']['extend']['enable']['enable_image_settings'] = array(
50
    '#type' => 'checkbox',
51
    '#title' => t('Image alignment and captions'),
52
    '#default_value' => at_get_setting('enable_image_settings'),
53
    '#description' => t('Set default image alignment, image captions and teaser image view.'),
54
  );
47 55

  
48
// Image alignment and captions
49
$form['at-settings']['extend']['enable']['enable_image_settings'] = array(
50
  '#type' => 'checkbox',
51
  '#title' => t('Image alignment and captions'),
52
  '#default_value' => at_get_setting('enable_image_settings'),
53
  '#description' => t('Set default image alignment, image captions and teaser image view.'),
54
);
56
  // Apple touch icons
57
  $form['at-settings']['extend']['enable']['enable_apple_touch_icons'] = array(
58
    '#type' => 'checkbox',
59
    '#title' => t('Apple touch icons'),
60
    '#description' => t('Check this setting if you want to use touch icons for iOS, Android and Nokia devices.'),
61
    '#default_value' => at_get_setting('enable_apple_touch_icons'),
62
  );
55 63

  
56
// Apple touch icons
57
$form['at-settings']['extend']['enable']['enable_apple_touch_icons'] = array(
58
  '#type' => 'checkbox',
59
  '#title' => t('Apple touch icons'),
60
  '#description' => t('Check this setting if you want to use touch icons for iOS, Android and Nokia devices.'),
61
  '#default_value' => at_get_setting('enable_apple_touch_icons'),
62
);
64
  // Unset CSS
65
  $form['at-settings']['extend']['enable']['enable_exclude_css'] = array(
66
    '#type' => 'checkbox',
67
    '#title' => t('Unset CSS Files'),
68
    '#description' => t('Options to unset (exclude) CSS files from loading in your theme - includes settings for Core modules, CSS added by Libaries and your own declared exclusions (see your themes info file under "Stylesheets").'),
69
    '#default_value' => at_get_setting('enable_exclude_css'),
70
  );
63 71

  
64
// Unset CSS
65
$form['at-settings']['extend']['enable']['enable_exclude_css'] = array(
66
  '#type' => 'checkbox',
67
  '#title' => t('Unset CSS Files'),
68
  '#description' => t('Options to unset (exclude) CSS files from loading in your theme - includes settings for Core modules, CSS added by Libaries and your own declared exclusions (see your themes info file under "Stylesheets").'),
69
  '#default_value' => at_get_setting('enable_exclude_css'),
70
);
72
  // Custom CSS
73
  $form['at-settings']['extend']['enable']['enable_custom_css'] = array(
74
    '#type' => 'checkbox',
75
    '#title' => t('Custom CSS'),
76
    '#description' => t('Enter custom CSS rules for minor adjustment to your theme. Useful if you do not want to build a sub-theme and need modifications to survive theme upgrades if required.'),
77
    '#default_value' => at_get_setting('enable_custom_css'),
78
  );
71 79

  
72
// Custom CSS
73
$form['at-settings']['extend']['enable']['enable_custom_css'] = array(
74
  '#type' => 'checkbox',
75
  '#title' => t('Custom CSS'),
76
  '#description' => t('Enter custom CSS rules for minor adjustment to your theme. Useful if you do not want to build a sub-theme and need modifications to survive theme upgrades if required.'),
77
  '#default_value' => at_get_setting('enable_custom_css'),
78
);
80
  // Mobile regions and blocks
81
  $form['at-settings']['extend']['enable']['enable_context_regions'] = array(
82
    '#type' => 'checkbox',
83
    '#title' => t('Mobile Regions and Blocks'),
84
    '#description' => t('Unset regions or move blocks to another region in mobile devices. Requires either <a href="!browscap_module" target="_blank">Browscap</a> or <a href="!mobiledetect_module" target="_blank">Mobile Detect</a> for mobile device detection.', array('!browscap_module' => 'http://drupal.org/project/browscap', '!mobiledetect_module' => 'http://drupal.org/project/mobile_detect')),
85
    '#default_value' => at_get_setting('enable_context_regions'),
86
  );
79 87

  
80
// Mobile regions and blocks
81
$form['at-settings']['extend']['enable']['enable_context_regions'] = array(
82
  '#type' => 'checkbox',
83
  '#title' => t('Mobile Regions and Blocks'),
84
  '#description' => t('Unset regions or move blocks to another region in mobile devices. Requires the <a href="!browscap_module" target="_blank">Browscap module</a> for mobile device detection.', array('!browscap_module' => 'http://drupal.org/project/browscap')),
85
  '#default_value' => at_get_setting('enable_context_regions'),
86
);
88
  // Menu Toggle
89
  $form['at-settings']['extend']['enable']['enable_menu_toggle'] = array(
90
    '#type' => 'checkbox',
91
    '#title' => t('Mobile Menu Toggle'),
92
    '#description' => t('Collapse the Main menu (or menu block in Menu Bar region) into a clickable link/button. This is a new feature and may not work perfectly with older sub-themes.'),
93
    '#default_value' => at_get_setting('enable_menu_toggle'),
94
  );
87 95

  
88
// Float Region blocks
89
$form['at-settings']['extend']['enable']['enable_float_region_blocks'] = array(
90
  '#type' => 'checkbox',
91
  '#title' => t('Float Region blocks'),
92
  '#description' => t('Float blocks in any region - this allows blocks to line up horizontally within a region, similar to a CSS grid or columns.'),
93
  '#default_value' => at_get_setting('enable_float_region_blocks'),
94
);
96
  // Float Region blocks
97
  $form['at-settings']['extend']['enable']['enable_float_region_blocks'] = array(
98
    '#type' => 'checkbox',
99
    '#title' => t('Float Region blocks'),
100
    '#description' => t('Float blocks in any region - this allows blocks to line up horizontally within a region, similar to a CSS grid or columns.'),
101
    '#default_value' => at_get_setting('enable_float_region_blocks'),
102
  );
95 103

  
96
// Markup overrides
97
$form['at-settings']['extend']['enable']['enable_markup_overides'] = array(
98
  '#type' => 'checkbox',
99
  '#title' => t('Markup overrides'),
100
  '#description' => t('Many additional options for adding, removing, hiding and changing site elements and markup - includes:
101
    <ul>
102
      <li>Set the gutter width</li>
103
      <li>Use page--full-width-wrappers.tpl.php for 100% width header and footer designs</li>
104
      <li>Enable page--[content-type].tpl.php suggestions</li>
105
      <li>Wrap menu item text in SPAN tags</li>
106
      <li>Breadcrumb Settings - hide, hide the home link, configure seperator, append the page title</li>
107
      <li>Login Block - hide links, hide OpenID links, horizontal login block</li>
108
      <li>Remove the frontpage title</li>
109
      <li>Do not display the Main content block on the front page</li>
110
      <li>Remove RSS feed icons</li>
111
      <li>Hide comment titles</li>
112
      <li>Remove menu link titles (tool tips)</li>
113
      <li>Accessibility settings - set the skip navigation target ID, use extra fieldsets in the advanced search form</li>
114
      <li>Add rel=author to user names</li>
115
      <li>Add or remove CSS classes for pages, nodes, blocks, comments, menus and item lists</li>
116
    </ul>
117
    '),
118
  '#default_value' => at_get_setting('enable_markup_overides'),
119
);
104
  // Markup overrides
105
  $form['at-settings']['extend']['enable']['enable_markup_overides'] = array(
106
    '#type' => 'checkbox',
107
    '#title' => t('Markup overrides'),
108
    '#description' => t('Many additional options for adding, removing, hiding and changing site elements and markup - includes:
109
      <ul>
110
        <li>Set the gutter width</li>
111
        <li>Use page--full-width-wrappers.tpl.php for 100% width header and footer designs</li>
112
        <li>Enable page--[content-type].tpl.php suggestions</li>
113
        <li>Wrap menu item text in SPAN tags</li>
114
        <li>Breadcrumb Settings - hide, hide the home link, configure seperator, append the page title</li>
115
        <li>Login Block - hide links, hide OpenID links, horizontal login block</li>
116
        <li>Remove the frontpage title</li>
117
        <li>Do not display the Main content block on the front page</li>
118
        <li>Remove RSS feed icons</li>
119
        <li>Hide comment titles</li>
120
        <li>Remove menu link titles (tool tips)</li>
121
        <li>Accessibility settings - set the skip navigation target ID, use extra fieldsets in the advanced search form</li>
122
        <li>Add rel=author to user names</li>
123
        <li>Add or remove CSS classes for pages, nodes, blocks, comments, menus and item lists</li>
124
      </ul>
125
      '),
126
    '#default_value' => at_get_setting('enable_markup_overides'),
127
  );
128
}

Formats disponibles : Unified diff