Skip to content

Commit

Permalink
Adding some methods to container; pulling in latest bedrock
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed Apr 29, 2021
1 parent 185ddf6 commit dacffce
Show file tree
Hide file tree
Showing 23 changed files with 107 additions and 69 deletions.
46 changes: 23 additions & 23 deletions build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion concrete/css/fontawesome/all.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com
* Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
.fa,
Expand Down
Binary file modified concrete/css/webfonts/fa-brands-400.eot
Binary file not shown.
4 changes: 2 additions & 2 deletions concrete/css/webfonts/fa-brands-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified concrete/css/webfonts/fa-brands-400.ttf
Binary file not shown.
Binary file modified concrete/css/webfonts/fa-brands-400.woff
Binary file not shown.
Binary file modified concrete/css/webfonts/fa-brands-400.woff2
Binary file not shown.
Binary file modified concrete/css/webfonts/fa-regular-400.eot
Binary file not shown.
4 changes: 2 additions & 2 deletions concrete/css/webfonts/fa-regular-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified concrete/css/webfonts/fa-regular-400.ttf
Binary file not shown.
Binary file modified concrete/css/webfonts/fa-regular-400.woff
Binary file not shown.
Binary file modified concrete/css/webfonts/fa-regular-400.woff2
Binary file not shown.
Binary file modified concrete/css/webfonts/fa-solid-900.eot
Binary file not shown.
20 changes: 13 additions & 7 deletions concrete/css/webfonts/fa-solid-900.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified concrete/css/webfonts/fa-solid-900.ttf
Binary file not shown.
Binary file modified concrete/css/webfonts/fa-solid-900.woff
Binary file not shown.
Binary file modified concrete/css/webfonts/fa-solid-900.woff2
Binary file not shown.
10 changes: 5 additions & 5 deletions concrete/js/cms.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion concrete/js/features/conversations/frontend.js

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions concrete/src/Area/ContainerArea.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
class ContainerArea
{

/**
* @var bool
*/
protected $gridContainerEnabled = false;

/**
* @var int|null
*/
protected $gridMaximumColumns;

/**
* @var ContainerBlockInstance
*/
Expand All @@ -36,6 +46,22 @@ public function getAreaBlocksArray(Page $page) : array
return [];
}

/**
* Enable Grid containers.
*/
final public function enableGridContainer()
{
$this->gridContainerEnabled = true;
}

/**
* @param int $columns
*/
final public function setAreaGridMaximumColumns(int $columns)
{
$this->gridMaximumColumns = $columns;
}

protected function getSubAreaObject(Page $page): ?SubArea
{
$block = $this->instance->getBlock();
Expand Down Expand Up @@ -67,6 +93,12 @@ public function display(Page $page)
{
$subArea = $this->getSubAreaObject($page);
if ($subArea) {
if ($this->gridContainerEnabled) {
$subArea->enableGridContainer();
}
if (isset($this->gridMaximumColumns)) {
$subArea->setAreaGridMaximumColumns($this->gridMaximumColumns);
}
$subArea->display($page);
if (!$this->instance->getInstance()->areaAreasComputed()) {

Expand Down
2 changes: 1 addition & 1 deletion concrete/themes/concrete/main.js

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions concrete/themes/dashboard/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions concrete/themes/elemental/main.js

Large diffs are not rendered by default.

0 comments on commit dacffce

Please sign in to comment.