/**
         * Static Block
         */
        $blockId = sprintf ( static::BLOCK_TEMPLATE, $id );    
        $collection = Mage::getModel ( 'cms/block' )->getCollection ()->addFieldToFilter ( 'identifier', array (
                array (
                        'like' => $blockId . '_w%' 
                ),
                array (
                        'eq' => $blockId 
                ) 
        ) )->addFieldToFilter ( 'is_active', 1 );
        $blockId = $collection->getFirstItem ()->getIdentifier ();  
        $blockHtml = Mage::app ()->getLayout ()->createBlock ( 'cms/block' )->setBlockId ( $blockId )->toHtml ();
    
        $activeChildren = $this->getActiveChild ( $category, $level );

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.