/** * Returns the block's previous sibling. * * @return Neo_BlockModel|null */ public function getPrevSibling() { // If the request is in Live Preview mode, use the Neo-extended criteria model, which supports Live Preview mode if (craft()->neo->isPreviewMode()) { if (!isset($this->_liveCriteria['prevSibling'])) { $criteria = craft()->neo->getCriteria(); $criteria->setAllElements($this->_allElements); $criteria->prevSiblingOf = $this; $criteria->status = null; $this->_liveCriteria['prevSibling'] = $criteria->first(); } return $this->_liveCriteria['prevSibling']; } return parent::getPrevSibling(); }