Commit 5eab9962 authored by bgm's avatar bgm Committed by Aegir user

Removed themes/bootstrap (it's in sites/all, also part of Spark's platform)

parent 768ae884
var exec = require('sync-exec');
var exit = 0;
var glob = require("glob");
var globOptions = {
ignore: [
'bower_components/**/*',
'node_modules/**/*'
]
};
var pkg = require('../../package');
// Change to \{{ hook }} once that variable is available.
// @see https://github.com/wecodemore/grunt-githooks/pull/40
var hooks = pkg.githooks && pkg.githooks['{{ task }}'];
if (hooks) {
var ret, hook, files, commands, staged, matchAll;
var filesMatched = [];
// Iterate over all hook definitions.
for (var h in hooks) {
hook = hooks[h];
commands = hook.commands || [];
staged = hook.staged === void 0 ? false : !!hook.staged;
matchAll = hook.matchAll === void 0 ? true : !!hook.matchAll;
// Iterate over all files in a hook definition.
if (hook.files) {
// Expand all file paths using glob (for pattern matching).
if (typeof hook.files === 'string') {
files = glob.sync(hook.files, globOptions) || [];
}
if (Array.isArray(hook.files)) {
files = [];
for (var f = 0; f < hook.files.length; f++) {
files = [].concat(files, glob.sync(hook.files[f], globOptions) || []);
}
}
// All files must either be staged or modified for the entire
// hook definition command(s) to be executed.
for (f in files) {
var file = files[f];
if (file) {
// Only continue if file has been staged or modified.
ret = exec((staged ? 'git diff --name-only --cached ' + file : 'git diff HEAD@{1} --stat -- ' + file));
exit = ret.status;
if (exit === 0 && ret.stdout !== '') {
filesMatched.push(file);
}
else if (matchAll && (exit > 0 || ret.stdout === '')) {
console.log(ret.stdout);
filesMatched = [];
break;
}
}
}
}
// Iterate over all commands that should be executed for matched files.
if (filesMatched.length) {
if (typeof commands === 'string') {
commands = [commands];
}
for (var c in commands) {
var command = commands[c];
console.log("\033[4;35mgit: {{ task }}\033[0;35m\n>> " + command + "\033[0m\n");
ret = exec(command);
console.log(ret.stdout);
exit = ret.status;
if (exit > 0) {
break;
}
}
}
// Display any errors.
if (exit > 0 && ret && ret.stderr) {
console.log(ret.stderr);
}
}
}
process.exit(exit);
# OS
.DS_Store
# Applications & Tools
.idea
bower_components
config.codekit
node_modules
npm-debug.log
# Project Specific
.libraries
lib
starterkits/*/bootstrap
var path = require('path');
module.exports = function (grunt) {
// Record grunt task execution times. Must be first.
require('time-grunt')(grunt);
// Register the "default" task.
grunt.registerTask('default', ['compile']);
// Register the "install" task.
grunt.registerTask('install', 'Installs or re-installs this grunt project. Read more in: docs/project/grunt.md.', ['githooks', 'sync', 'clean-vendor-dirs']);
// Load custom tasks.
grunt.task.loadTasks('grunt');
// Load npm installed 'grunt-*' tasks and configurations.
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt', 'config')
});
};
This diff is collapsed.
<!-- @file Project Page -->
# Bootstrap
> Sleek, intuitive, and powerful mobile first front-end framework for faster and
> easier web development. Bootstrap has become one of the most popular front-end
> frameworks and open source projects in the world.
This base theme bridges the gap between Drupal and the [Bootstrap Framework].
### Features
- [jsDelivr CDN](http://www.jsdelivr.com) for "out-of-the-box" styling and
faster page load times.
- [Bootswatch](http://bootswatch.com) theme support, if using the CDN.
- Glyphicons support via [Icon API](https://www.drupal.org/project/icon).
- Extensive integration and template/preprocessor overrides for most of the
[Bootstrap Framework] CSS, Components and JavaScript
- Theme settings to further enhance the Drupal Bootstrap integration:
- [Breadcrumbs](http://getbootstrap.com/components/#breadcrumbs)
- [Navbar](http://getbootstrap.com/components/#navbar)
- [Popovers](http://getbootstrap.com/javascript/#popovers)
- [Tooltips](http://getbootstrap.com/javascript/#tooltips)
- [Wells](http://getbootstrap.com/components/#wells) (per region)
### Documentation
Visit the project's [official documentation site](http://drupal-bootstrap.org)
or the markdown files inside the `./docs` folder.
[Bootstrap Framework]: http://getbootstrap.com
<?php
/**
* @file
* List of available hook and alter APIs for use in your sub-theme.
*/
/**
* @defgroup api APIs
*
* List of available hook and alter APIs for use in your sub-theme.
*
* @{
*/
/**
* Allows sub-themes to alter the array used for colorizing text.
*
* @param array $texts
* An associative array containing the text and classes to be matched, passed
* by reference.
*
* @see _bootstrap_colorize_text()
*/
function hook_bootstrap_colorize_text_alter(&$texts) {
// This matches the exact string: "My Unique Button Text".
$texts['matches'][t('My Unique Button Text')] = 'primary';
// This would also match the string above, however the class returned would
// also be the one above; "matches" takes precedence over "contains".
$texts['contains'][t('Unique')] = 'notice';
// Remove matching for strings that contain "apply":
unset($texts['contains'][t('Apply')]);
// Change the class that matches "Rebuild" (originally "warning"):
$texts['contains'][t('Rebuild')] = 'success';
}
/**
* Allows sub-themes to alter the array used for associating an icon with text.
*
* @param array $texts
* An associative array containing the text and icons to be matched, passed
* by reference.
*
* @see _bootstrap_iconize_text()
*/
function hook_bootstrap_iconize_text_alter(&$texts) {
// This matches the exact string: "My Unique Button Text".
$texts['matches'][t('My Unique Button Text')] = 'heart';
// This would also match the string above, however the class returned would
// also be the one above; "matches" takes precedence over "contains".
$texts['contains'][t('Unique')] = 'bullhorn';
// Remove matching for strings that contain "filter":
unset($texts['contains'][t('Filter')]);
// Change the icon that matches "Upload" (originally "upload"):
$texts['contains'][t('Upload')] = 'ok';
}
/**
* This hook allows sub-themes to process all form elements.
*
* For this hook to be recognized, it must reside directly inside the
* template.php file or via a file that is directly included into template.php.
*
* Any time a hook is added or removed, the Drupal cache must be completely
* cleared and rebuilt for the changes to take effect.
*
* Implementations of this hook should check to see if the element has a
* property named #bootstrap_ignore_process and check if it is set to TRUE.
* If it is, the hook should immediately return with the unaltered element.
*
* @param array $element
* The element array, this is NOT passed by reference and must return the
* altered element instead.
* @param array $form_state
* The form state array, passed by reference.
* @param array $form
* The complete form array, passed by reference.
*
* @return array
* The altered element array.
*
* @see bootstrap_element_info_alter()
* @see form_builder()
* @see drupal_process_form()
*/
function hook_form_process($element, &$form_state, &$form) {
return $element;
}
/**
* This hook allows sub-themes to process a specific form element type.
*
* For this hook to be recognized, it must reside directly inside the
* template.php file or via a file that is directly included into template.php.
*
* Any time a hook is added or removed, the Drupal cache must be completely
* cleared and rebuilt for the changes to take effect.
*
* If there is a matching "form_process_HOOK" function already defined
* (provided by core), it will be replaced. The theme replacing it will be
* responsible for fully processing the element as it was prior.
*
* Implementations of this hook should check to see if the element has a
* property named #bootstrap_ignore_process and check if it is set to TRUE.
* If it is, the hook should immediately return with the unaltered element.
*
* @param array $element
* The element array, this is NOT passed by reference and must return the
* altered element instead.
* @param array $form_state
* The form state array, passed by reference.
* @param array $form
* The complete form array, passed by reference.
*
* @return array
* The altered element array.
*
* @see bootstrap_element_info_alter()
* @see form_builder()
* @see drupal_process_form()
*/
function hook_form_process_HOOK($element, &$form_state, &$form) {
return $element;
}
/**
* This hook allows sub-themes to alter all elements before it's rendered.
*
* For this hook to be recognized, it must reside directly inside the
* template.php file or via a file that is directly included into template.php.
*
* Any time a hook is added or removed, the Drupal cache must be completely
* cleared and rebuilt for the changes to take effect.
*
* Implementations of this hook should check to see if the element has a
* property named #bootstrap_ignore_pre_render and check if it is set to TRUE.
* If it is, the hook should immediately return with the unaltered element.
*
* @param array $element
* The element array, this is NOT passed by reference and must return the
* altered element instead.
*
* @return array
* The altered element array.
*
* @see bootstrap_element_info_alter()
*/
function hook_pre_render($element) {
return $element;
}
/**
* This hook allows sub-themes to alter a specific element before it's rendered.
*
* For this hook to be recognized, it must reside directly inside the
* template.php file or via a file that is directly included into template.php.
*
* Any time a hook is added or removed, the Drupal cache must be completely
* cleared and rebuilt for the changes to take effect.
*
* If there is a matching "form_pre_render_HOOK" function already defined
* (provided by core), it will be replaced. The theme replacing it will be
* responsible for fully processing the element as it was prior.
*
* Implementations of this hook should check to see if the element has a
* property named #bootstrap_ignore_pre_render and check if it is set to TRUE.
* If it is, the hook should immediately return with the unaltered element.
*
* @param array $element
* The element array, this is NOT passed by reference and must return the
* altered element instead.
*
* @return array
* The altered element array.
*
* @see bootstrap_element_info_alter()
*/
function hook_pre_render_HOOK($element) {
return $element;
}
/**
* @} End of "defgroup subtheme_api".
*/
name = Bootstrap
description = Built to use Bootstrap, a sleek, intuitive, and powerful front-end framework for faster and easier web development.
core = 7.x
;;;;;;;;;;;;;;;;;;;;;
;; SimplyTest.me
;;;;;;;;;;;;;;;;;;;;;
simplytest_dependencies[] = jquery_update
;;;;;;;;;;;;;;;;;;;;;
;; Regions
;;;;;;;;;;;;;;;;;;;;;
regions[navigation] = 'Navigation'
regions[header] = 'Top Bar'
regions[highlighted] = 'Highlighted'
regions[help] = 'Help'
regions[content] = 'Content'
regions[sidebar_first] = 'Primary'
regions[sidebar_second] = 'Secondary'
regions[footer] = 'Footer'
regions[page_top] = 'Page top'
regions[page_bottom] = 'Page bottom'
;;;;;;;;;;;;;;;;;;;;;
;; Theme Settings
;;;;;;;;;;;;;;;;;;;;;
; Container
; --------------
settings[bootstrap_fluid_container] = 0
; Buttons
; --------------
settings[bootstrap_button_size] = ''
settings[bootstrap_button_colorize] = 1
settings[bootstrap_button_iconize] = 1
; Images
; --------------
settings[bootstrap_image_shape] = ''
settings[bootstrap_image_responsive] = 1
; Tables
; --------------
settings[bootstrap_table_bordered] = 0
settings[bootstrap_table_condensed] = 0
settings[bootstrap_table_hover] = 1
settings[bootstrap_table_striped] = 1
settings[bootstrap_table_responsive] = 1
; Breadcrumbs
; --------------
settings[bootstrap_breadcrumb] = 1
settings[bootstrap_breadcrumb_home] = 0
settings[bootstrap_breadcrumb_title] = 1
; Navbar
; --------------
settings[bootstrap_navbar_position] = ''
settings[bootstrap_navbar_inverse] = 0
; Pager
; --------------
settings[bootstrap_pager_first_and_last] = 1
; Region Wells
; --------------
settings[bootstrap_region_well-navigation] = ''
settings[bootstrap_region_well-header] = ''
settings[bootstrap_region_well-highlighted] = ''
settings[bootstrap_region_well-help] = ''
settings[bootstrap_region_well-content] = ''
settings[bootstrap_region_well-sidebar_first] = 'well'
settings[bootstrap_region_well-sidebar_second] = ''
settings[bootstrap_region_well-footer] = ''
; Anchors
; --------------
settings[bootstrap_anchors_fix] = 0
settings[bootstrap_anchors_smooth_scrolling] = 0
; Forms
; --------------
settings[bootstrap_forms_required_has_error] = 0
settings[bootstrap_forms_has_error_value_toggle] = 1
settings[bootstrap_forms_smart_descriptions] = 1
settings[bootstrap_forms_smart_descriptions_limit] = 250
settings[bootstrap_forms_smart_descriptions_allowed_tags] = 'b, code, em, i, kbd, span, strong'
; Popovers
; --------------
settings[bootstrap_popover_enabled] = 1
settings[bootstrap_popover_animation] = 1
settings[bootstrap_popover_html] = 0
settings[bootstrap_popover_placement] = 'right'
settings[bootstrap_popover_selector] = ''
settings[bootstrap_popover_trigger]['hover'] = 0
settings[bootstrap_popover_trigger]['focus'] = 0
settings[bootstrap_popover_trigger]['click'] = 'click'
settings[bootstrap_popover_trigger_autoclose] = 1
settings[bootstrap_popover_title] = ''
settings[bootstrap_popover_content] = ''
settings[bootstrap_popover_delay] = 0
settings[bootstrap_popover_container] = 'body'
; Tooltips
; --------------
settings[bootstrap_tooltip_enabled] = 1
settings[bootstrap_tooltip_animation] = 1
settings[bootstrap_tooltip_html] = 0
settings[bootstrap_tooltip_placement] = 'auto left'
settings[bootstrap_tooltip_selector] = ''
settings[bootstrap_tooltip_trigger]['hover'] = 'hover'
settings[bootstrap_tooltip_trigger]['focus'] = 'focus'
settings[bootstrap_tooltip_trigger]['click'] = 0
settings[bootstrap_tooltip_delay] = 0
settings[bootstrap_tooltip_container] = 'body'
; Advanced
; --------------
settings[bootstrap_cdn_provider] = 'jsdelivr'
settings[bootstrap_cdn_custom_css] = 'https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.css'
settings[bootstrap_cdn_custom_css_min] = 'https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css'
settings[bootstrap_cdn_custom_js] = 'https://cdn.jsdelivr.net/bootstrap/3.3.5/js/bootstrap.js'
settings[bootstrap_cdn_custom_js_min] = 'https://cdn.jsdelivr.net/bootstrap/3.3.5/js/bootstrap.min.js'
settings[bootstrap_cdn_jsdelivr_version] = '3.3.5'
settings[bootstrap_cdn_jsdelivr_theme] = 'bootstrap'
; Global
; --------------
settings[toggle_name] = 1
settings[toggle_search] = 1
; jQuery Update
; --------------
settings[jquery_update_jquery_version] = 2.1
;;;;;;;;;;;;;;;;;;;;;
;; Excludes
;;;;;;;;;;;;;;;;;;;;;
; JavaScript
; --------------
; exclude[js][] = 'modules/contextual/contextual.js'
; CSS
; --------------
; Necessary module CSS.
;exclude[css][] = 'modules/block/block.css'
;exclude[css][] = 'modules/node/node.css'
;exclude[css][] = 'modules/system/admin.css'
;exclude[css][] = 'modules/system/system.css'
;exclude[css][] = 'modules/system/system.admin.css'
;exclude[css][] = 'modules/system/system.base.css'
exclude[css][] = 'misc/vertical-tabs.css'
exclude[css][] = 'modules/aggregator/aggregator.css'
exclude[css][] = 'modules/book/book.css'
exclude[css][] = 'modules/comment/comment.css'
exclude[css][] = 'modules/dblog/dblog.css'
exclude[css][] = 'modules/file/file.css'
exclude[css][] = 'modules/filter/filter.css'
exclude[css][] = 'modules/forum/forum.css'
exclude[css][] = 'modules/help/help.css'
exclude[css][] = 'modules/menu/menu.css'
exclude[css][] = 'modules/openid/openid.css'
exclude[css][] = 'modules/poll/poll.css'
exclude[css][] = 'modules/search/search.css'
exclude[css][] = 'modules/statistics/statistics.css'
exclude[css][] = 'modules/syslog/syslog.css'
exclude[css][] = 'modules/system/maintenance.css'
exclude[css][] = 'modules/system/system.maintenance.css'
exclude[css][] = 'modules/system/system.menus.css'
exclude[css][] = 'modules/system/system.messages.css'
exclude[css][] = 'modules/system/system.theme.css'
exclude[css][] = 'modules/taxonomy/taxonomy.css'
exclude[css][] = 'modules/tracker/tracker.css'
exclude[css][] = 'modules/update/update.css'
exclude[css][] = 'modules/user/user.css'
;;;;;;;;;;;;;;;;;;;;;
;; Breakpoints
;;;;;;;;;;;;;;;;;;;;;
breakpoints[screen-xs-max] = (max-width: 767px)
breakpoints[screen-sm-min] = (min-width: 768px)
breakpoints[screen-sm-max] = (max-width: 991px)
breakpoints[screen-md-min] = (min-width: 992px)
breakpoints[screen-md-max] = (max-width: 1199px)
breakpoints[screen-lg-min] = (min-width: 1200px)
; Multipiers
multipliers[screen-xs-max][] = 1.5x
multipliers[screen-xs-max][] = 2x
multipliers[screen-sm-min][] = 1.5x
multipliers[screen-sm-min][] = 2x
multipliers[screen-sm-max][] = 1.5x
multipliers[screen-sm-max][] = 2x
multipliers[screen-md-min][] = 1.5x
multipliers[screen-md-min][] = 2x
multipliers[screen-md-max][] = 1.5x
multipliers[screen-md-max][] = 2x
multipliers[screen-lg-min][] = 1.5x
multipliers[screen-lg-min][] = 2x
; Information added by Drupal.org packaging script on 2016-03-01
version = "7.x-3.5"
core = "7.x"
project = "bootstrap"
datestamp = "1456870747"
core = 7.x
api = 2
libraries[bootstrap][download][type] = "get"
libraries[bootstrap][download][url] = "https://github.com/twbs/bootstrap/archive/v3.1.1.zip"
libraries[bootstrap][directory_name] = "bootstrap"
libraries[bootstrap][destination] = "themes/bootstrap"
libraries[bootstrap][overwrite] = TRUE
{
"name": "drupal-bootstrap",
"version": "7.3.x-dev",
"license": "GPL+2",
"homepage": "https://www.drupal.org/project/bootstrap",
"private": true
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.