<?php

/**
 * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
 * CC-BY License - http://creativecommons.org/licenses/by/3.0/
 */

bx_import('BxDolFilesPageHome');

class BxFilesPageHome extends BxDolFilesPageHome
{
    function BxFilesPageHome (&$oShared)
    {
        parent::BxDolFilesPageHome($oShared);
    }

    function getBlockCode_Featured ()
    {
        return $this->getBlockCode_Special();
    }

    function getBlockCode_Top ()
    {
        $this->oSearch->clearFilters(array('activeStatus', 'allow_view', 'album_status', 'albumType', 'ownerStatus'), array('albumsObjects', 'albums', 'icon'));
        $this->oSearch->aCurrent['paginate']['perPage'] = (int)$this->oConfig->getGlParam('number_top');
        $this->oSearch->aCurrent['sorting'] = 'top';
        $this->oSearch->aCurrent['view'] = 'short';
        $sCode = $this->oSearch->displayResultBlock();
        if ($this->oSearch->aCurrent['paginate']['totalNum'] > 0)
            return $sCode;
    }

    function wrapUnits($sCode, $bCenter = false, $bIndent = false, $sIndent = 'default_padding.html')
    {
        return parent::wrapUnits($sCode, $bCenter, $bIndent, $sIndent);
    }
}
