|
@@ -8,6 +8,7 @@
|
|
|
*
|
|
*
|
|
|
* @{
|
|
* @{
|
|
|
*/
|
|
*/
|
|
|
|
|
+define('BX_SYS_PER_PAGE_BROWSE_SHOWCASE', 32);
|
|
|
|
|
|
|
|
class BxBaseModTextSearchResult extends BxBaseModGeneralSearchResult
|
|
class BxBaseModTextSearchResult extends BxBaseModGeneralSearchResult
|
|
|
{
|
|
{
|
|
@@ -118,6 +119,26 @@ class BxBaseModTextSearchResult extends BxBaseModGeneralSearchResult
|
|
|
|
|
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ function showPagination($bAdmin = false, $bChangePage = true, $bPageReload = true)
|
|
|
|
|
+ {
|
|
|
|
|
+ if ($this->bShowcaseView)
|
|
|
|
|
+ return '';
|
|
|
|
|
+ else
|
|
|
|
|
+ return parent::showPagination ($bAdmin, $bChangePage, $bPageReload);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function displayResultBlock ()
|
|
|
|
|
+ {
|
|
|
|
|
+ if ($this->bShowcaseView){
|
|
|
|
|
+ $CNF = &$this->oModule->_oConfig->CNF;
|
|
|
|
|
+ $iPerPageInShowCase = isset($CNF['PARAM_PER_PAGE_BROWSE_SHOWCASE']) ? getParam($CNF['PARAM_PER_PAGE_BROWSE_SHOWCASE']) : BX_SYS_PER_PAGE_BROWSE_SHOWCASE;
|
|
|
|
|
+ $this->aCurrent['paginate']['perPage'] = empty($iPerPageInShowCase) ? BX_SYS_PER_PAGE_BROWSE_SHOWCASE : $iPerPageInShowCase;
|
|
|
|
|
+ $this->oModule->_oTemplate->addCss(array(BX_DIRECTORY_PATH_PLUGINS_PUBLIC . 'flickity/|flickity.css'));
|
|
|
|
|
+ $this->oModule->_oTemplate->addJs(array('flickity/flickity.pkgd.min.js','modules/base/text/js/|showcase.js'));
|
|
|
|
|
+ }
|
|
|
|
|
+ return parent::displayResultBlock ();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
function _getPseud ()
|
|
function _getPseud ()
|
|
|
{
|
|
{
|
|
@@ -130,19 +151,6 @@ class BxBaseModTextSearchResult extends BxBaseModGeneralSearchResult
|
|
|
'photo' => 'photo',
|
|
'photo' => 'photo',
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- function displayResultBlock ()
|
|
|
|
|
- {
|
|
|
|
|
- $sAddJs = "";
|
|
|
|
|
- if ($this->bShowcaseView){
|
|
|
|
|
- $this->aCurrent['paginate']['perPage'] = getParam('bx_posts_per_page_browse_showcase');
|
|
|
|
|
- $this->aCurrent['paginate']['perPage'] = 0;
|
|
|
|
|
- $sAddJs = $this->oModule->_oTemplate->getJsCode('main');
|
|
|
|
|
- }
|
|
|
|
|
- $s = parent::displayResultBlock ();
|
|
|
|
|
- return $sAddJs . $s;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/** @} */
|
|
/** @} */
|