main/core/Manager/HomeManager.php
public function contentLayout($type, $father = null, $region = null, $admin = null)
    {
        $type = $this->getType($type);
        $content = $this->getContentByType($type->getName(), $father, $region);
        $array = null;

        if ($content && ($type->isPublish() || $admin)) {
            $array = [];
            $array['content'] = $content;
            $array['type'] = $type->getName();
            $array['publish'] = $type->isPublish();
            $array = $this->homeService->isDefinedPush($array, 'father', $father);
            $array = $this->homeService->isDefinedPush($array, 'region', $region);
        }

        return $array;
    }
public function contentLayout($type, $father = null, $region = null, $admin = null)
    {
        $type = $this->getType($type);
        $content = $this->getContentByType($type->getName(), $father, $region);
        $array = null;

        if ($content && ($type->isPublish() || $admin)) {
            $array = [];
            $array['content'] = $content;
            $array['type'] = $type->getName();
            $array['publish'] = $type->isPublish();
            $array = $this->homeService->isDefinedPush($array, 'father', $father);
            $array = $this->homeService->isDefinedPush($array, 'region', $region);
        }

        return $array;
    }
public function contentLayout ( $ type , $ father = null , $ region = null , $ admin = null ) { $ type = $ this -> getType ( $ type ) ; $ content = $ this -> getContentByType ( $ type -> getName ( ) , $ father , $ region ) ; $ array = null ; if ( $ content && ( $ type -> isPublish ( ) || $ admin ) ) { $ array = [ ] ; $ array [ 'content' ] = $ content ; $ array [ 'type' ] = $ type -> getName ( ) ; $ array [ 'publish' ] = $ type -> isPublish ( ) ; $ array = $ this -> homeService -> isDefinedPush ( $ array , 'father' , $ father ) ; $ array = $ this -> homeService -> isDefinedPush ( $ array , 'region' , $ region ) ; } return $ array ; }
Return the layout of contents by his type.

@return array
Return the layout of contents by his type .