Skip to content

Commit

Permalink
Fixing #367
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed Jul 7, 2014
1 parent caa67ad commit 34a3563
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/application/themes/elemental/default.php
Expand Up @@ -5,7 +5,7 @@
<main>
<?
$a = new Area('Main');
$a->setAreaGridColumnSpan(12);
$a->enableGridContainer();
$a->display($c);
?>
</main>
Expand Down
2 changes: 2 additions & 0 deletions web/concrete/config/install/base/blocktypes.xml
Expand Up @@ -28,6 +28,7 @@
<blocktype handle="form" package=""/>
<blocktype handle="google_map" package=""/>
<blocktype handle="html" package=""/>
<blocktype handle="horizontal_rule" package=""/>
<blocktype handle="discussion" package=""/>
<blocktype handle="image" package=""/>
<blocktype handle="next_previous" package=""/>
Expand All @@ -52,6 +53,7 @@
<blocktype handle="html"/>
<blocktype handle="image"/>
<blocktype handle="file"/>
<blocktype handle="horizontal_rule"/>
</blocktypeset>
<blocktypeset handle="navigation" name="Navigation" package="">
<blocktype handle="autonav"/>
Expand Down
3 changes: 2 additions & 1 deletion web/concrete/core/Area/Area.php
Expand Up @@ -56,6 +56,7 @@ class Area extends Object implements \Concrete\Core\Permission\ObjectInterface
public $areaBlocksArray = array();

protected $arIsLoaded = false;
protected $arUseGridContainer = false;
protected $arDisplayName;
protected $arGridColumnSpan;

Expand All @@ -76,7 +77,7 @@ public function getAreaGridColumnSpan()

final public function enableGridContainer()
{

$this->arUseGridContainer = true;
}

public function getAreaDisplayName()
Expand Down
8 changes: 8 additions & 0 deletions web/concrete/core/Block/BlockType/BlockType.php
Expand Up @@ -23,6 +23,14 @@ class BlockType
{

public $controller;

/**
* If a grid container is enabled at the area level, all blocks added will be individually
* wrapped inside it on each add. If this is set to true, this block type will NOT be wrapped
* @var bool
*/
protected $btIgnorePageThemeGridFrameworkContainer = false;

/**
* @Id @Column(type="integer")
* @GeneratedValue
Expand Down
2 changes: 1 addition & 1 deletion web/concrete/themes/concrete/view.php
Expand Up @@ -5,7 +5,7 @@
<link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>/main.css" />
<?
$view->requireAsset('css', 'bootstrap');
$view->requireAsset('css', 'fontawesome');
$view->requireAsset('css', 'font-awesome');
$view->requireAsset('javascript', 'jquery');
$view->requireAsset('javascript', 'bootstrap/alert');
$view->requireAsset('javascript', 'bootstrap/transition');
Expand Down

0 comments on commit 34a3563

Please sign in to comment.