'fieldset', '#title' => t('Breadcrumb settings'), ); $form['breadcrumb']['zen_breadcrumb'] = array( '#type' => 'select', '#title' => t('Display breadcrumb'), '#default_value' => theme_get_setting('zen_breadcrumb'), '#options' => array( 'yes' => t('Yes'), 'admin' => t('Only in admin section'), 'no' => t('No'), ), ); $form['breadcrumb']['breadcrumb_options'] = array( '#type' => 'container', '#states' => array( 'invisible' => array( ':input[name="zen_breadcrumb"]' => array('value' => 'no'), ), ), ); $form['breadcrumb']['breadcrumb_options']['zen_breadcrumb_separator'] = array( '#type' => 'textfield', '#title' => t('Breadcrumb separator'), '#description' => t('Text only. Don’t forget to include spaces.'), '#default_value' => theme_get_setting('zen_breadcrumb_separator'), '#size' => 5, '#maxlength' => 10, ); $form['breadcrumb']['breadcrumb_options']['zen_breadcrumb_home'] = array( '#type' => 'checkbox', '#title' => t('Show home page link in breadcrumb'), '#default_value' => theme_get_setting('zen_breadcrumb_home'), ); $form['breadcrumb']['breadcrumb_options']['zen_breadcrumb_trailing'] = array( '#type' => 'checkbox', '#title' => t('Append a separator to the end of the breadcrumb'), '#default_value' => theme_get_setting('zen_breadcrumb_trailing'), '#description' => t('Useful when the breadcrumb is placed just before the title.'), '#states' => array( 'disabled' => array( ':input[name="zen_breadcrumb_title"]' => array('checked' => TRUE), ), 'unchecked' => array( ':input[name="zen_breadcrumb_title"]' => array('checked' => TRUE), ), ), ); $form['breadcrumb']['breadcrumb_options']['zen_breadcrumb_title'] = array( '#type' => 'checkbox', '#title' => t('Append the content title to the end of the breadcrumb'), '#default_value' => theme_get_setting('zen_breadcrumb_title'), '#description' => t('Useful when the breadcrumb is not placed just before the title.'), ); $form['themedev'] = array( '#type' => 'fieldset', '#title' => t('Theme development settings'), ); $form['themedev']['zen_rebuild_registry'] = array( '#type' => 'checkbox', '#title' => t('Rebuild theme registry on every page.'), '#default_value' => theme_get_setting('zen_rebuild_registry'), '#description' => t('During theme development, it can be very useful to continuously rebuild the theme registry. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'http://drupal.org/node/173880#theme-registry')), ); /* $form['themedev']['zen_layout'] = array( '#type' => 'radios', '#title' => t('Layout method'), '#options' => array( 'zen-columns-fixed' => t('Fixed layout') . ' (layout-fixed.css)', ), '#default_value' => theme_get_setting('zen_layout'), ); */ $form['themedev']['zen_add_html5_respond_js'] = array( '#type' => 'checkbox', '#title' => t('Add HTML5 shim and Respond.js to every page.'), '#default_value' => theme_get_setting('zen_add_html5_respond_js'), '#description' => t('IE 6-8 require a JavaScript polyfill solution to add basic support of HTML5 and CSS3 media queries. If you prefer to use another polyfill solution, such as Modernizr, you can disable this option.', array('!link' => 'http://www.modernizr.com/')), ); $form['themedev']['zen_skip_link_anchor'] = array( '#type' => 'textfield', '#title' => t('Anchor ID for the “skip link”'), '#default_value' => theme_get_setting('zen_skip_link_anchor'), '#field_prefix' => '#', '#description' => t('Specify the HTML ID of the element that the accessible-but-hidden “skip link” should link to. (Read more about skip links.)', array('!link' => 'http://drupal.org/node/467976')), ); $form['themedev']['zen_skip_link_text'] = array( '#type' => 'textfield', '#title' => t('Text for the “skip link”'), '#default_value' => theme_get_setting('zen_skip_link_text'), '#description' => t('For example: Jump to navigation, Skip to content'), ); $form['themedev']['zen_wireframes'] = array( '#type' => 'checkbox', '#title' => t('Add wireframes around main layout elements'), '#default_value' => theme_get_setting('zen_wireframes'), '#description' => t('Wireframes are useful when prototyping a website.', array('!link' => 'http://www.boxesandarrows.com/view/html_wireframes_and_prototypes_all_gain_and_no_pain')), ); }