Browse Source

Allow to pass properties to Container, FluidContainer and Row

main
parent
commit
bf5b682705
  1. 14
      src/Ease/TWB4/Container.php
  2. 13
      src/Ease/TWB4/ContainerFluid.php
  3. 9
      src/Ease/TWB4/Row.php

14
src/Ease/TWB4/Container.php

@ -1,23 +1,25 @@
<?php
/**
* Twitter Bootrstap Container.
*
* @author Vitex <vitex@hippy.cz>
* @copyright 2009-2016 Vitex@hippy.cz (G)
* @copyright 2009-2021 Vitex@hippy.cz (G)
*/
namespace Ease\TWB4;
class Container extends \Ease\Html\DivTag
{
class Container extends \Ease\Html\DivTag {
/**
* Twitter Bootrstap Container.
*
* @param mixed $content
* @param array $properties of Container Row
*/
public function __construct($content = null)
{
parent::__construct($content, ['class' => 'container']);
public function __construct($content = null, $properties = []) {
parent::__construct($content, $properties);
$this->addTagClass('container');
}
}

13
src/Ease/TWB4/ContainerFluid.php

@ -3,21 +3,22 @@
* Twitter Bootrstap Container Fluid.
*
* @author Vitex <vitex@hippy.cz>
* @copyright 2009-2016 Vitex@hippy.cz (G)
* @copyright 2009-2021 Vitex@hippy.cz (G)
*/
namespace Ease\TWB;
namespace Ease\TWB4;
class ContainerFluid extends \Ease\Html\DivTag
{
/**
* Twitter Bootrstap Container.
* Twitter Bootrstap fluid Container.
*
* @param mixed $content
* @param array $properties of Container Row
*/
public function __construct($content = null)
{
parent::__construct($content, ['class' => 'container-fluid']);
public function __construct($content = null, $properties = []) {
parent::__construct($content, $properties);
$this->addTagClass('container-fluid');
}
}

9
src/Ease/TWB4/Row.php

@ -1,6 +1,9 @@
<?php
/**
* Twitter Bootrstap Row.
*
* @author Vitex <vitex@hippy.cz>
* @copyright 2009-2021 Vitex@hippy.cz (G)
*/
namespace Ease\TWB4;
@ -12,10 +15,12 @@ class Row extends \Ease\Html\DivTag
* Twitter Bootrstap Row.
*
* @param mixed $content Prvotní obsah
* @param array $properties Of Row Div
*/
public function __construct($content = null)
public function __construct($content = null, $properties = [])
{
parent::__construct($content, ['class' => 'row']);
parent::__construct($content, $properties);
$this->addTagClass('row');
}
/**

Loading…
Cancel
Save