Skip to content

Commit

Permalink
New Advanced option bootstrap_class
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmert committed Sep 15, 2015
1 parent 70a41d4 commit d86ecdb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/system/html/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ function modChrome_html5($module, &$params, &$attribs)
$moduleTag = $params->get('module_tag', 'div');
$headerTag = htmlspecialchars($params->get('header_tag', 'h3'));
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize != 0 ? ' span' . $bootstrapSize : '';
$bootstrapClass = $params->get('bootstrap_class', 'span');
$moduleClass = $bootstrapSize != 0 ? ' ' . $bootstrapClass . $bootstrapSize : '';

// Temporarily store header class in variable
$headerClass = $params->get('header_class');
Expand Down Expand Up @@ -91,7 +92,8 @@ function modChrome_xhtml($module, &$params, &$attribs)
$moduleTag = $params->get('module_tag', 'div');
$headerTag = htmlspecialchars($params->get('header_tag', 'h3'));
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize != 0 ? ' span' . $bootstrapSize : '';
$bootstrapClass = $params->get('bootstrap_class', 'span');
$moduleClass = $bootstrapSize != 0 ? ' ' . $bootstrapClass . $bootstrapSize : '';

// Temporarily store header class in variable
$headerClass = $params->get('header_class');
Expand Down

0 comments on commit d86ecdb

Please sign in to comment.