Commit f33bb6bc authored by John Albin Wilkins's avatar John Albin Wilkins
Browse files

#2448745: Remove wireframes from theme settings.

parent edc0588b
Loading
Loading
Loading
Loading
−1
Changes for STARTERKIT/STARTERKIT.info.txt: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -135,7 +135,6 @@ settings[zen_skip_link_text] = Jump to navigation
settings[zen_meta][]               = html5
settings[zen_meta][]               = meta
settings[zen_rebuild_registry]     = 1
settings[zen_wireframes]           = 0

; To make this sub-theme an admin theme with shortcut links next to titles,
; uncomment the line below.
+16 −1
Changes for STARTERKIT/sass/components/_wireframes.scss: 16 added lines, 1 removed line.
Original line number Diff line number Diff line
$with-wireframes: false !default;

// Wireframes
//
// Add wireframes around main layout elements. [Wireframes](http://www.boxesandarrows.com/view/html_wireframes_and_prototypes_all_gain_and_no_pain)
// are useful when prototyping a website.
//
// This design is not applied to the site unless you set the following Sass
// variable: `$with-wireframes: true;`
//
// Markup: <div class="wireframe"><p>An item inside a wireframe.</p></div>
//
// Style guide: components.wireframe

@if $with-wireframes {

  .wireframe,
  %wireframe {
    outline: 1px solid color(border);

@@ -11,7 +26,6 @@
    }
  }

.with-wireframes {
  .header,
  .main,
  .main-content,
@@ -22,4 +36,5 @@
  .region-bottom {
    @extend %wireframe;
  }

}
+1 −1
Changes for STARTERKIT/theme-settings.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ function STARTERKIT_form_system_theme_settings_alter(&$form, &$form_state, $form

  // Remove some of the base theme's settings.
  /* -- Delete this line if you want to turn off this setting.
  unset($form['themedev']['zen_wireframes']); // We don't need to toggle wireframes on this site.
  unset($form['breadcrumb']); // We don't need breadcrumbs to be configurable on this site.
  // */

  // We are editing the $form in place, so we don't need to return anything.
−3
Changes for template.php: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -166,9 +166,6 @@ function zen_preprocess_html(&$variables, $hook) {
    }
    $variables['classes_array'][] = drupal_html_class('section-' . $section);
  }
  if (theme_get_setting('zen_wireframes')) {
    $variables['classes_array'][] = 'with-wireframes'; // Optionally add the wireframes style.
  }

  // When Panels is used on a site, Drupal's sidebar body classes will be wrong,
  // so override those with classes from a Panels layout preprocess.
−6
Changes for theme-settings.php: 0 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -117,10 +117,4 @@ function zen_form_system_theme_settings_alter(&$form, $form_state, $form_id = NU
    '#default_value' => theme_get_setting('zen_rebuild_registry'),
    '#description'   => t('During theme development, it can be very useful to continuously <a href="!link">rebuild the theme registry</a>. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'https://drupal.org/node/173880#theme-registry')),
  );
  $form['themedev']['zen_wireframes'] = array(
    '#type'          => 'checkbox',
    '#title'         => t('Add wireframes around main layout elements'),
    '#default_value' => theme_get_setting('zen_wireframes'),
    '#description'   => t('<a href="!link">Wireframes</a> are useful when prototyping a website.', array('!link' => 'http://www.boxesandarrows.com/view/html_wireframes_and_prototypes_all_gain_and_no_pain')),
  );
}
Loading