Skip to content

Commit

Permalink
Merge pull request jacerider#6 from petemcw/normalize-configuration
Browse files Browse the repository at this point in the history
Normalize configuration
  • Loading branch information
jacerider committed Sep 20, 2016
2 parents 8f5d809 + a764770 commit 6a5ff91
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 31 deletions.
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
"type": "drupal-theme",
"license": "GPL-2.0+",
"homepage": "https://github.com/jacerider/fett",
"minimum-stability": "dev",
"keywords": [
"Drupal",
"Theme"
"authors": [
{
"name": "Cyle Carlson (JaceRider)",
"email": "[email protected]",
"role": "Maintainer"
}
],
"support": {
"issues": "https://github.com/jacerider/fett/issues",
"source": "https://github.com/jacerider/fett"
},
"require": {}
"minimum-stability": "dev",
"require": { }
}
3 changes: 2 additions & 1 deletion fett.info.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Fett
description: 'A front-end Drupal base theme of awesomeness built upon Zurb Foundation.'
package: JaceRider
type: theme
description: "A Foundation 6 base theme for Drupal."
core: 8.x
screenshot: images/screenshot.png
libraries:
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
{
"name": "fett",
"version": "8.0.0",
"description": "A Foundation 6 base theme for Drupal.",
"repository": {
"type": "git",
"url": "git+https://github.com/jacerider/fett.git"
"version": "0.9.0",
"description": "A front-end Drupal base theme of awesomeness built upon Zurb Foundation.",
"license": "GPL-2.0+",
"repository": "jacerider/fett",
"homepage": "https://github.com/jacerider/fett#readme",
"author": {
"name": "Cyle Carlson",
"email": "[email protected]"
},
"bugs": {
"url": "https://github.com/jacerider/fett/issues"
},
"scripts": {
"start": "gulp",
"postinstall": "./node_modules/bower/bin/bower install"
},
"author": "JaceRider",
"license": "MIT",
"bugs": {
"url": "https://github.com/jacerider/fett/issues"
"dependencies": {
"bower": "^1.7.9"
},
"homepage": "https://github.com/jacerider/fett#readme",
"devDependencies": {
"browser-sync": "^2.13.0",
"fett-breakpoints": "git+https://github.com/jacerider/fett-breakpoints.git",
"fett-breakpoints": "jacerider/fett-breakpoints#6c9c612",
"fs": "0.0.2",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.0",
Expand All @@ -36,8 +39,5 @@
"gulp-uglify": "^1.5.4",
"gulp-util": "^3.0.7",
"npm": "^3.10.5"
},
"dependencies": {
"bower": "^1.7.9"
}
}
12 changes: 1 addition & 11 deletions theme-settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* @file
* Custom theme settings.
Expand Down Expand Up @@ -45,15 +44,6 @@ function fett_form_system_theme_settings_alter(&$form, FormStateInterface $form_
// various other places.
$theme_regions = system_region_list($theme, $show = REGIONS_VISIBLE);

// Active themes active blocks
// $block_module = \Drupal::moduleHandler()->moduleExists('breakpoint');
// if ($block_module == TRUE) {
// $theme_blocks = \Drupal::entityTypeManager()->getStorage('block')->loadByProperties(['theme' => $theme]);
// }
// else {
// $theme_blocks = NULL;
// }

// Check for breakpoints module and set a warning and a flag to disable much
// of the theme settings if its not available.
$breakpoints_module = \Drupal::moduleHandler()->moduleExists('breakpoint');
Expand Down Expand Up @@ -89,7 +79,7 @@ function fett_form_system_theme_settings_alter(&$form, FormStateInterface $form_

// Fett Core
if ($theme == 'fett') {
drupal_set_message(t('Fett has no configuration and cannot be used as a front end theme - it is a base them only. Use <b>drush fett</b> to generate or clone a theme to get started.'), 'error');
drupal_set_message(t('Fett has no configuration and cannot be used as a front-end theme - it is a base theme only. Use <b>drush fett</b> to generate or clone a theme to get started.'), 'error');

// Hide form items.
$form['theme_settings']['#attributes']['class'] = array('visually-hidden');
Expand Down

0 comments on commit 6a5ff91

Please sign in to comment.