From fcbfd76087654f4b8d3e0909a98540a885817bbf Mon Sep 17 00:00:00 2001 From: Christophe BOULAIN Date: Thu, 6 Mar 2014 12:18:32 +0100 Subject: [PATCH] CS fix --- CHANGELOG.md | 3 ++- Modal.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 720f5fe..464c959 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,9 +12,10 @@ Yii Framework 2 bootstrap extension Change Log - Enh #1601: Added support for tagName and encodeLabel parameters in ButtonDropdown (omnilight) - Enh #1881: Improved `yii\bootstrap\NavBar` with `containerOptions`, `innerContainerOptions` and `renderInnerContainer` (creocoder) - Enh #2425: Tabs widget now selects first tab if no active tab is specified (samdark) +- Enh #2643: Add size attribute to Modal (tof06) - Chg #1459: Update Collapse to use bootstrap 3 classes (tonydspaniard) - Chg #1820: Update Progress to use bootstrap 3 markup (samdark) -- Enh #2643: Add size attribute to Modal (tof06) + 2.0.0 alpha, December 1, 2013 ----------------------------- diff --git a/Modal.php b/Modal.php index cdf6eb3..e498f49 100644 --- a/Modal.php +++ b/Modal.php @@ -35,9 +35,9 @@ use yii\helpers\Html; */ class Modal extends Widget { - const SIZE_LARGE="modal-lg"; - const SIZE_SMALL="modal-sm"; - const SIZE_DEFAULT=""; + const SIZE_LARGE = "modal-lg"; + const SIZE_SMALL = "modal-sm"; + const SIZE_DEFAULT = ""; /** * @var string the header content in the modal window. @@ -94,7 +94,7 @@ class Modal extends Widget echo $this->renderToggleButton() . "\n"; echo Html::beginTag('div', $this->options) . "\n"; - echo Html::beginTag('div', ['class' => 'modal-dialog '.$this->size]) . "\n"; + echo Html::beginTag('div', ['class' => 'modal-dialog ' . $this->size]) . "\n"; echo Html::beginTag('div', ['class' => 'modal-content']) . "\n"; echo $this->renderHeader() . "\n"; echo $this->renderBodyBegin() . "\n";