Skip to content
Snippets Groups Projects
Commit c3792f04 authored by Alberto Siles's avatar Alberto Siles
Browse files

Issue #0005 by @hatuhay: Syntax corrections.

parent dd7f9283
No related branches found
No related tags found
No related merge requests found
Bootstrap sub-theme for Drupal Bootstrap sub-theme for Drupal
Bootstrap Barrio is a sub-theme of the Bootstrap Theme, theme based on Twitter Bootstrap, Bootstrap Barrio is a sub-theme of the Bootstrap Theme, theme based on
a sleek, intuitive, and powerful front-end framework for faster and easier web development. Twitter Bootstrap, a sleek, intuitive, and powerful front-end framework
While Bootstrap Theme add Twitter Bootstrap functionallity, Bootstrap Barrio focus on layout flexibility for faster and easier web development.
While Bootstrap Theme add Twitter Bootstrap functionallity,
Bootstrap Barrio focus on layout flexibility
and customization using theme parameters and the Skinr module. and customization using theme parameters and the Skinr module.
- Layout is handle by Bootstrap. - Layout is handle by Bootstrap.
...@@ -27,6 +29,9 @@ Unpack and upload Bootstrap Theme as usual within your site's themes folder ...@@ -27,6 +29,9 @@ Unpack and upload Bootstrap Theme as usual within your site's themes folder
(usually sites/all/themes). (usually sites/all/themes).
Unpack and upload Bootstrap Barrio within your default's themes folder Unpack and upload Bootstrap Barrio within your default's themes folder
(usually sites/default/themes). (usually sites/default/themes).
Dowload latest version of Twitter Bootstrap, copy bootstrap files into Bootstrap Theme directory, Dowload latest version of Twitter Bootstrap, copy bootstrap files into
css files should be usually under sites/all/themes/bootstrap/bootstrap/css. js under sites/all/themes/bootstrap/bootstrap/js and img under sites/all/themes/bootstrap/bootstrap/img. Bootstrap Theme directory,
css files should be usually under sites/all/themes/bootstrap/bootstrap/css.
js under sites/all/themes/bootstrap/bootstrap/js and
img under sites/all/themes/bootstrap/bootstrap/img.
Download and enable the Skinr module, set permissions if you're not uid 1 Download and enable the Skinr module, set permissions if you're not uid 1
...@@ -118,15 +118,15 @@ body.admin-menu .navbar-fixed-top { ...@@ -118,15 +118,15 @@ body.admin-menu .navbar-fixed-top {
} }
/* System base fix */ /* System base fix */
.container-inline div, .container-inline div,
.container-inline label { .container-inline label {
display: block; display: block;
} }
/* Default form fields to auto */ /* Default form fields to auto */
input, input,
textarea, textarea,
select, select,
.uneditable-input { .uneditable-input {
width: auto; width: auto;
} }
......
<?php <?php
/** /**
* @file barrio_default.inc * @file
* Implementation of a Skinr plugin. * Implementation of a Skinr plugin.
*/ */
...@@ -120,7 +120,6 @@ function bootstrap_barrio_skinr_group_info() { ...@@ -120,7 +120,6 @@ function bootstrap_barrio_skinr_group_info() {
* implementing it, followed by the plugin name, e.g. * implementing it, followed by the plugin name, e.g.
* THEMENAME_PLUGINNAME_skinr_skin_info(), or * THEMENAME_PLUGINNAME_skinr_skin_info(), or
* MODULENAME_PLUGINNAME_skinr_skin_info(). * MODULENAME_PLUGINNAME_skinr_skin_info().
*
*/ */
function bootstrap_barrio_skinr_skin_barrio_default_info() { function bootstrap_barrio_skinr_skin_barrio_default_info() {
$skins = array(); $skins = array();
......
<?php <?php
/**
* @file
*/
/** /**
* Override or insert variables into the page template for HTML output. * Override or insert variables into the page template for HTML output.
* For taxonomy page, insert vocabulary id class. * For taxonomy page, insert vocabulary id class.
...@@ -12,7 +16,7 @@ function bootstrap_barrio_preprocess_html(&$variables) { ...@@ -12,7 +16,7 @@ function bootstrap_barrio_preprocess_html(&$variables) {
} }
if (theme_get_setting('toggle_responsive')) { if (theme_get_setting('toggle_responsive')) {
$variables['mobile_friendly'] = TRUE; $variables['mobile_friendly'] = TRUE;
} }
else { else {
$variables['mobile_friendly'] = FALSE; $variables['mobile_friendly'] = FALSE;
} }
...@@ -20,6 +24,7 @@ function bootstrap_barrio_preprocess_html(&$variables) { ...@@ -20,6 +24,7 @@ function bootstrap_barrio_preprocess_html(&$variables) {
/** /**
* Override or insert variables into the page template for page output. * Override or insert variables into the page template for page output.
*
* Sets the widths of the main columns of the page. * Sets the widths of the main columns of the page.
*/ */
function bootstrap_barrio_preprocess_page(&$variables) { function bootstrap_barrio_preprocess_page(&$variables) {
...@@ -29,7 +34,7 @@ function bootstrap_barrio_preprocess_page(&$variables) { ...@@ -29,7 +34,7 @@ function bootstrap_barrio_preprocess_page(&$variables) {
$variables['nav_style'] = _bootstrap_barrio_nav_style(theme_get_setting('nav_style')); $variables['nav_style'] = _bootstrap_barrio_nav_style(theme_get_setting('nav_style'));
if (!theme_get_setting('print_content') && drupal_is_front_page()) { if (!theme_get_setting('print_content') && drupal_is_front_page()) {
$variables['print_content'] = FALSE; $variables['print_content'] = FALSE;
} }
else { else {
$variables['print_content'] = TRUE; $variables['print_content'] = TRUE;
} }
...@@ -41,7 +46,7 @@ function bootstrap_barrio_preprocess_page(&$variables) { ...@@ -41,7 +46,7 @@ function bootstrap_barrio_preprocess_page(&$variables) {
if (theme_get_setting('fluid') || (arg(0) == 'admin')) { if (theme_get_setting('fluid') || (arg(0) == 'admin')) {
$variables['container'] = 'container-fluid'; $variables['container'] = 'container-fluid';
$variables['row'] = 'row-fluid'; $variables['row'] = 'row-fluid';
} }
else { else {
$variables['container'] = 'container'; $variables['container'] = 'container';
$variables['row'] = 'row'; $variables['row'] = 'row';
...@@ -50,6 +55,7 @@ function bootstrap_barrio_preprocess_page(&$variables) { ...@@ -50,6 +55,7 @@ function bootstrap_barrio_preprocess_page(&$variables) {
/** /**
* Returns with of content region. * Returns with of content region.
*
* Calculates content width based on first and second column width parameters. * Calculates content width based on first and second column width parameters.
*/ */
function _bootstrap_barrio_content_width() { function _bootstrap_barrio_content_width() {
...@@ -61,7 +67,9 @@ function _bootstrap_barrio_content_width() { ...@@ -61,7 +67,9 @@ function _bootstrap_barrio_content_width() {
/** /**
* Returns a list of blocks. * Returns a list of blocks.
* Uses Drupal block interface and appends any blocks assigned by the Context module. *
* Uses Drupal block interface and appends any blocks
* assigned by the Context module.
* Taken from Fusion Core. * Taken from Fusion Core.
*/ */
function _bootstrap_barrio_block_list($region) { function _bootstrap_barrio_block_list($region) {
...@@ -83,13 +91,16 @@ function _bootstrap_barrio_nav_style($theme_nav_style) { ...@@ -83,13 +91,16 @@ function _bootstrap_barrio_nav_style($theme_nav_style) {
switch ($theme_nav_style) { switch ($theme_nav_style) {
case 0: case 0:
$nav_style = 'navbar navbar-static-top'; $nav_style = 'navbar navbar-static-top';
break; break;
case 1: case 1:
$nav_style = 'navbar navbar-fixed-top'; $nav_style = 'navbar navbar-fixed-top';
break; break;
case 2: case 2:
$nav_style = 'nav-collapse collapse'; $nav_style = 'nav-collapse collapse';
break; break;
default: default:
$nav_style = 'navbar navbar-static-top'; $nav_style = 'navbar navbar-static-top';
break; break;
......
<?php <?php
/** /**
* @file
*
* Prameter definitions for Bootstrap Barrio. * Prameter definitions for Bootstrap Barrio.
*/ */
function bootstrap_barrio_form_system_theme_settings_alter(&$form, $form_state, $form_id = NULL) { function bootstrap_barrio_form_system_theme_settings_alter(&$form, $form_state, $form_id = NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment