Because what it says meg83 probe, but not work for me.
Here's how it stayed the function, if anyone could help I would appreciate that.
function display_reverse(&$c,$alternateBlockArray=null){if(!intval($c->cID)){//Invalid Collectionreturnfalse;}$currentPage= Page::getCurrentPage();$ourArea= Area::getOrCreate($c,$this->arHandle);if(count($this->customTemplateArray)>0){$ourArea->customTemplateArray=$this->customTemplateArray;}if(count($this->attributes)>0){$ourArea->attributes=$this->attributes;}if($this->maximumBlocks>-1){$ourArea->maximumBlocks=$this->maximumBlocks;
function display_reverse(&$c,$alternateBlockArray=null){if(!intval($c->cID)){//Invalid Collectionreturnfalse;}$currentPage= Page::getCurrentPage();$ourArea= Area::getOrCreate($c,$this->arHandle);if(count($this->customTemplateArray)>0){$ourArea->customTemplateArray=$this->customTemplateArray;}if(count($this->attributes)>0){$ourArea->attributes=$this->attributes;}if($this->maximumBlocks>-1){$ourArea->maximumBlocks=$this->maximumBlocks;}$ap=new Permissions($ourArea);$blocksToDisplay=($alternateBlockArray) ? $alternateBlockArray:$ourArea->getAreaBlocksArray($c,$ap);$this->totalBlocks=$ourArea->getTotalBlocksInArea();$u=new User();$bv=new BlockView();// now, we iterate through these block groups (which are actually arrays of block objects), and display them on the pageif(($this->showControls)&&($c->isEditMode()&&($ap->canAddBlocks()||$u->isSuperUser()))){$bv->renderElement('block_area_header',array('a'=>$ourArea));}$bv->renderElement('block_area_header_view',array('a'=>$ourArea));//display layouts tied to this area //Might need to move this to a better position $areaLayouts=$this->getAreaLayouts($c);if(is_array($areaLayouts)&&count($areaLayouts)){foreach($areaLayoutsas$layout){$layout->display($c,$this);}if($this->showControls&&($c->isArrangeMode()||$c->isEditMode())){echo'<div class="ccm-layouts-block-arrange-placeholder ccm-block-arrange"></div>';}}if(($this->showControls)&&($c->isEditMode()&&($ap->canAddBlocks()||$u->isSuperUser()))){$bv->renderElement('block_area_footer_reverse',array('a'=>$ourArea));$blocksToDisplay=array_reverse($blocksToDisplay);foreach($blocksToDisplayas$b){$bv=new BlockView();$bv->setAreaObject($ourArea);// this is useful for rendering areas from one page// onto the next and including interactive elementsif($currentPage->getCollectionID()!=$c->getCollectionID()){$b->setBlockActionCollectionID($c->getCollectionID());}$p=new Permissions($b);if(($p->canWrite()||$p->canDeleteBlock())&&$c->isEditMode()&&$this->showControls){$includeEditStrip=true;}if($p->canRead()){if(!$c->isEditMode()){echo$this->enclosingStart;}if($includeEditStrip){$bv->renderElement('block_controls',array('a'=>$ourArea,'b'=>$b,'p'=>$p));$bv->renderElement('block_header',array('a'=>$ourArea,'b'=>$b,'p'=>$p));}$bv->render($b);if($includeEditStrip){$bv->renderElement('block_footer');}if(!$c->isEditMode()){echo$this->enclosingEnd;}}}}$bv->renderElement('block_area_footer_view',array('a'=>$ourArea));}
Code
Post Reply
Delete Post
You are allowed to delete your post for 5 minutes after it's posted.