diff --git a/module/block/control.php b/module/block/control.php index d880121b34..184afe5d7c 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -210,6 +210,7 @@ class block extends control if($this->block->initBlock($module)) die(js::reload()); } + $shortBlocks = $longBlocks = array(); foreach($blocks as $key => $block) { if($this->config->global->flow == 'onlyStory' and $block->source != 'product' and $block->source != 'todo' and $block->block != 'dynamic') unset($blocks[$key]); @@ -231,15 +232,15 @@ class block extends control { $block->moreLink = $this->createLink('company', 'dynamic'); } + if($block->grid >= 6) $longBlocks[$key] = $block; + if($block->grid < 6) $shortBlocks[$key] = $block; } - $this->view->blocks = $blocks; - $this->view->module = $module; + $this->view->longBlocks = $longBlocks; + $this->view->shortBlocks = $shortBlocks; + $this->view->module = $module; - if($this->app->getViewType() == 'json') - { - die(json_encode($blocks)); - } + if($this->app->getViewType() == 'json') die(json_encode($blocks)); $this->display(); } diff --git a/module/block/view/dashboard.html.php b/module/block/view/dashboard.html.php index 7e491e96b8..af901b54b0 100644 --- a/module/block/view/dashboard.html.php +++ b/module/block/view/dashboard.html.php @@ -18,45 +18,79 @@ $useGuest = $this->app->user->account == 'guest'; ?>