function BxBlogsSearchUnit($oBlogObject = null) { $this->bShowCheckboxes = false; $this->bAdminMode = false; $oMain = $this->getBlogsMain(); $this->iIconSize = $oMain->iIconSize; $this->iThumbSize = $oMain->iThumbSize; $this->iBigThumbSize = $oMain->iBigThumbSize; $this->iImgSize = $oMain->iImgSize; if ($oMain->isAdmin()) { $this->bAdminMode = true; //$this->bShowCheckboxes = true; } $this->sHomeUrl = $oMain->_oConfig->getHomeUrl(); $this->sHomePath = $oMain->_oConfig->getHomePath(); $this->aPermalinks = array('param' => 'permalinks_blogs', 'enabled' => array('file' => 'blogs/entry/{uri}', 'category' => 'blogs/posts/{ownerName}/category/{uri}', 'member' => 'blogs/posts/{ownerName}', 'tag' => 'blogs/tag/{uri}', 'browseAll' => 'blogs/', 'admin_file' => 'blogs/entry/{uri}', 'admin_category' => 'blogs/posts/{ownerName}/category/{uri}', 'admin_member' => 'blogs/posts/{ownerName}', 'admin_tag' => 'blogs/tag/{uri}', 'admin_browseAll' => 'blogs/', 'last_posts' => 'blogs/all_posts/', 'popular_posts' => 'blogs/popular_posts/', 'top_posts' => 'blogs/top_posts/'), 'disabled' => array('file' => 'blogs.php?action=show_member_post&post_id={id}', 'category' => 'blogs.php?action=show_member_blog&ownerID={ownerId}&category={id}', 'member' => 'blogs.php?action=show_member_blog&ownerID={ownerId}', 'tag' => 'blogs.php?action=search_by_tag&tagKey={uri}', 'browseAll' => 'blogs.php', 'admin_file' => 'blogs.php?action=show_member_post&post_id={id}', 'admin_category' => 'blogs.php?action=show_member_blog&ownerID={ownerId}&category={id}', 'admin_member' => 'blogs.php?action=show_member_blog&ownerID={ownerId}', 'admin_tag' => 'blogs.php?action=search_by_tag&tagKey={uri}', 'admin_browseAll' => 'blogs.php', 'last_posts' => 'blogs.php?action=all_posts', 'popular_posts' => 'blogs.php?action=popular_posts', 'top_posts' => 'blogs.php?action=top_posts')); if (!$oBlogObject) { $oBlogObject = BxDolModule::getInstance('BxBlogsModule'); } if ($this->bAdminMode || is_object($oBlogObject) && ($oBlogObject->isAllowedApprove() || $oBlogObject->isAllowedPostEdit(-1) || $oBlogObject->isAllowedPostDelete(-1))) { $this->aCurrent['restriction']['activeStatus'] = ''; } parent::BxBaseSearchResultText(); $this->iPostViewType = 4; $this->sSearchedTag = ''; }
function BxAdsSearchUnit() { $oMain = $this->getAdsMain(); $this->sHomePath = $oMain->_oConfig->getHomePath(); $this->sHomeUrl = $oMain->_oConfig->getHomeUrl(); $this->aPermalinks = array('param' => 'permalinks_module_ads', 'enabled' => array('file' => 'ads/entry/{uri}', 'category' => 'ads/cat/{uri}', 'subcategory' => 'ads/subcat/{uri}', 'tag' => 'ads/tag/{uri}', 'browseAll' => 'ads/', 'admin_file' => 'ads/entry/{uri}', 'admin_category' => 'ads/cat/{uri}', 'admin_subcategory' => 'ads/subcat/{uri}', 'admin_tag' => 'ads/tag/{uri}', 'admin_browseAll' => 'ads/'), 'disabled' => array('file' => 'classifieds.php?ShowAdvertisementID={id}', 'category' => 'classifieds.php?bClassifiedID={id}', 'subcategory' => 'classifieds.php?bSubClassifiedID={id}', 'tag' => 'classifieds_tags.php?tag={uri}', 'browseAll' => 'classifieds.php', 'admin_file' => 'classifieds.php?ShowAdvertisementID={id}', 'admin_category' => 'classifieds.php?bClassifiedID={id}', 'admin_subcategory' => 'classifieds.php?bSubClassifiedID={id}', 'admin_tag' => 'classifieds_tags.php?tag={uri}', 'admin_browseAll' => 'classifieds.php')); $this->bShowCheckboxes = false; parent::BxBaseSearchResultText(); $this->sSelectedUnit = 'unit_ads'; $this->iPostViewType = $iPostViewType; }
function BxOSiSearchUnit(&$oConfig, $_oTemplate = null) { $this->_oConfig = $oConfig; $this->sHomePath = $this->_oConfig->getHomePath(); $this->sHomeUrl = $this->_oConfig->getHomeUrl(); $this->aPermalinks = array('param' => 'permalinks_osi', 'enabled' => array('file' => ''), 'disabled' => array('file' => '')); $this->bShowCheckboxes = false; if (isAdmin() || isModerator()) { $this->aCurrent['restriction']['status'] = ''; $this->bShowCheckboxes = true; } parent::BxBaseSearchResultText(); $this->oOsiTemplate = $_oTemplate; }
function BxAdsSearchUnit() { $oMain = $this->getAdsMain(); $this->sHomePath = $oMain->_oConfig->getHomePath(); $this->sHomeUrl = $oMain->_oConfig->getHomeUrl(); $this->aPermalinks = array('param' => 'permalinks_module_ads', 'enabled' => array('file' => 'ads/entry/{uri}', 'category' => 'ads/cat/{uri}', 'subcategory' => 'ads/subcat/{uri}', 'tag' => 'ads/tag/{uri}', 'browseAll' => 'ads/', 'admin_file' => 'ads/entry/{uri}', 'admin_category' => 'ads/cat/{uri}', 'admin_subcategory' => 'ads/subcat/{uri}', 'admin_tag' => 'ads/tag/{uri}', 'admin_browseAll' => 'ads/'), 'disabled' => array('file' => 'classifieds.php?ShowAdvertisementID={id}', 'category' => 'classifieds.php?bClassifiedID={id}', 'subcategory' => 'classifieds.php?bSubClassifiedID={id}', 'tag' => 'classifieds_tags.php?tag={uri}', 'browseAll' => 'classifieds.php', 'admin_file' => 'classifieds.php?ShowAdvertisementID={id}', 'admin_category' => 'classifieds.php?bClassifiedID={id}', 'admin_subcategory' => 'classifieds.php?bSubClassifiedID={id}', 'admin_tag' => 'classifieds_tags.php?tag={uri}', 'admin_browseAll' => 'classifieds.php')); $this->bShowCheckboxes = false; if (isAdmin() || isModerator()) { //$this->aCurrent['restriction']['activeStatus'] = ''; //$this->bShowCheckboxes = true; } parent::BxBaseSearchResultText(); //$this->sTemplUnit = file_get_contents( $this->sHomeUrl . 'templates/base/'.$this->sTU.'.html' ); $this->sSelectedUnit = 'unit_ads'; $this->iPostViewType = $iPostViewType; }