BxBaseVoteReactions.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaBaseView UNA Base Representation Classes
  7. * @{
  8. */
  9. /**
  10. * @see BxDolVote, BxDolVoteLikes
  11. */
  12. class BxBaseVoteReactions extends BxDolVoteReactions
  13. {
  14. protected $_sTmplNameBySummary;
  15. protected $_sTmplContentCounterWrapper = '';
  16. public function __construct($sSystem, $iId, $iInit = true, $oTemplate = false)
  17. {
  18. parent::__construct($sSystem, $iId, $iInit, $oTemplate);
  19. $this->_sJsClsName .= 'Reactions';
  20. $sHtmlId = str_replace(array('_' , ' '), array('-', '-'), $sSystem) . '-' . $iId;
  21. $this->_aHtmlIds = array_merge($this->_aHtmlIds, array(
  22. 'main' => 'bx-vr-' . $sHtmlId,
  23. 'do_menu' => 'bx-vr-do-menu-' . $sHtmlId,
  24. 'do_popup' => 'bx-vr-do-popup-' . $sHtmlId
  25. ));
  26. $this->_aElementDefaults = array(
  27. 'show_do_vote_as_button' => false,
  28. 'show_do_vote_as_button_small' => false,
  29. 'show_do_vote_icon' => true,
  30. 'show_do_vote_label' => false,
  31. 'show_counter' => false,
  32. 'show_counter_empty' => true,
  33. 'show_counter_style' => self::$_sCounterStyleDivided, //--- Alloved styles are 'simple', 'divided' and 'compound'
  34. 'show_legend' => false,
  35. 'show_script' => true
  36. );
  37. $this->_sTmplNameBySummary = 'vote_by_summary_reactions.html';
  38. $this->_sTmplNameByList = 'vote_by_list_reactions.html';
  39. $this->_sTmplContentDoActionLabel = $this->_oTemplate->getHtml('vote_do_vote_label_reactions.html');
  40. $this->_sTmplContentCounterLabel = $this->_oTemplate->getHtml('vote_counter_label_reactions.html');
  41. $this->_sTmplContentCounterWrapper = $this->_oTemplate->getHtml('vote_counter_wrapper_reactions.html');
  42. }
  43. public function getJsClick($iValue = 0)
  44. {
  45. if(empty($iValue))
  46. $iValue = $this->getValue();
  47. $sResult = '';
  48. if($this->_bQuickMode)
  49. $sResult = $this->getJsClickDo($this->_aDataList[$this->_sDefault]['name'], $iValue);
  50. else
  51. $sResult = $this->getJsObjectName() . '.toggleDoPopup(this, ' . $iValue . ')';
  52. return $sResult;
  53. }
  54. public function getJsClickDo($sReaction, $iValue = 0)
  55. {
  56. if(empty($iValue))
  57. $iValue = $this->getValue();
  58. return $this->getJsObjectName() . '.vote(this, ' . $iValue . ', \'' . $sReaction . '\')';
  59. }
  60. public function getJsClickCounter($aParams = array())
  61. {
  62. $sJsObject = $this->getJsObjectName();
  63. $sJsMethod = 'toggleByPopup';
  64. if(isset($aParams['show_counter_style']) && in_array($aParams['show_counter_style'], array(self::$_sCounterStyleCompound, self::$_sCounterStyleSimple)))
  65. return $sJsObject . '.' . $sJsMethod . '(this)';
  66. $sReaction = !empty($aParams['reaction']) ? $aParams['reaction'] : $this->_sDefault;
  67. return $sJsObject . '.' . $sJsMethod . '(this, \'' . $sReaction . '\')';
  68. }
  69. public function getCounter($aParams = array())
  70. {
  71. $sDefault = $this->_aElementDefaults['show_counter_style'];
  72. $sCounterStyle = !empty($aParams['show_counter_style']) ? $aParams['show_counter_style'] : $sDefault;
  73. $sMethodPrefix = '_getCounter';
  74. $sMethod = $sMethodPrefix . bx_gen_method_name($sCounterStyle);
  75. if(!method_exists($this, $sMethod))
  76. $sMethod = $sMethodPrefix . bx_gen_method_name($sDefault);
  77. return $this->$sMethod($aParams);
  78. }
  79. public function _getCounterSimple($aParams = array())
  80. {
  81. $bDynamicMode = isset($aParams['dynamic_mode']) && (bool)$aParams['dynamic_mode'] === true;
  82. $bShowCounterEmpty = isset($aParams['show_counter_empty']) && (bool)$aParams['show_counter_empty'] === true;
  83. $bShowScript = !isset($aParams['show_script']) || (bool)$aParams['show_script'] === true;
  84. $bVote = $this->_isVote();
  85. $aVote = $this->_getVote();
  86. $aReactions = $this->getReactions();
  87. $sClass = isset($aParams['class_counter']) ? $aParams['class_counter'] : '';
  88. if(isset($aParams['show_do_vote_as_button_small']) && (bool)$aParams['show_do_vote_as_button_small'] === true)
  89. $sClass .= ' bx-btn-small-height';
  90. else if(isset($aParams['show_do_vote_as_button']) && (bool)$aParams['show_do_vote_as_button'] === true)
  91. $sClass .= ' bx-btn-height';
  92. $aParams['id_counter'] = '';
  93. $iResultC = $iResultS = 0;
  94. foreach($aReactions as $sName) {
  95. $iResultC += (int)$aVote['count_' . $sName];
  96. $iResultS += (int)$aVote['sum_' . $sName];
  97. }
  98. $aParams = array_merge($aParams, array(
  99. 'show_counter_active' => false,
  100. 'show_counter_label_icon' => false,
  101. 'show_counter_label_text' => true,
  102. 'class_counter' => ' total-count ' . $sClass,
  103. 'reaction' => '',
  104. 'vote' => array(
  105. 'count' => $iResultC,
  106. 'sum' => $iResultS,
  107. 'rate' => $iResultC > 0 ? round($iResultS / $iResultC, 2) : 0,
  108. )
  109. ));
  110. return $this->_oTemplate->parseHtmlByContent($this->_getTmplContentCounterWrapper(), array(
  111. 'html_id' => $this->_aHtmlIds['counter'],
  112. 'style_prefix' => $this->_sStylePrefix,
  113. 'class' => $this->_aHtmlIds['counter'] . (!$bVote && !$bShowCounterEmpty ? ' bx-vc-hidden' : ''),
  114. 'type' => $this->_sType,
  115. 'style' => self::$_sCounterStyleSimple,
  116. 'bx_if:show_link' => array(
  117. 'condition' => true,
  118. 'content' => array(
  119. 'href' => 'javascript:void(0)',
  120. 'onclick' => 'javascript:' . $this->getJsClickCounter($aParams),
  121. 'title' => bx_html_attribute($this->_getTitleDoBy($aParams)),
  122. 'counter' => parent::getCounter(array_merge($aParams, array('show_script' => false))),
  123. )
  124. ),
  125. 'bx_if:show_text' => array(
  126. 'condition' => false,
  127. 'content' => array()
  128. ),
  129. 'script' => $bShowScript ? $this->getJsScript($aParams) : ''
  130. ));
  131. }
  132. public function _getCounterDivided($aParams = array())
  133. {
  134. $bDynamicMode = isset($aParams['dynamic_mode']) && (bool)$aParams['dynamic_mode'] === true;
  135. $bShowCounterEmpty = isset($aParams['show_counter_empty']) && (bool)$aParams['show_counter_empty'] === true;
  136. $bShowScript = !isset($aParams['show_script']) || (bool)$aParams['show_script'] === true;
  137. $bVote = $this->_isVote();
  138. $aVote = $this->_getVote();
  139. $aReactions = $this->getReactions();
  140. $sClass = isset($aParams['class_counter']) ? $aParams['class_counter'] : '';
  141. if(isset($aParams['show_do_vote_as_button_small']) && (bool)$aParams['show_do_vote_as_button_small'] === true)
  142. $sClass .= ' bx-btn-small-height';
  143. else if(isset($aParams['show_do_vote_as_button']) && (bool)$aParams['show_do_vote_as_button'] === true)
  144. $sClass .= ' bx-btn-height';
  145. $sClass .= ' bx-def-margin-sec-right';
  146. $aParams['id_counter'] = '';
  147. $sResult = '';
  148. foreach($aReactions as $sName) {
  149. $iCount = (int)$aVote['count_' . $sName];
  150. $aParams['class_counter'] = ($iCount == 0 && (!$bShowCounterEmpty || $sName != $this->_sDefault || $bVote) ? ' bx-vc-hidden' : '') . ' ' . $sName . ' ' . $sClass;
  151. $aParams['reaction'] = $sName;
  152. $aParams['vote'] = array(
  153. 'count' => $iCount,
  154. 'sum' => $aVote['sum_' . $sName],
  155. 'rate' => $aVote['rate_' . $sName],
  156. );
  157. $sResult .= parent::getCounter(array_merge($aParams, array('show_script' => false)));
  158. }
  159. return $this->_oTemplate->parseHtmlByContent($this->_getTmplContentCounterWrapper(), array(
  160. 'html_id' => $this->_aHtmlIds['counter'],
  161. 'style_prefix' => $this->_sStylePrefix,
  162. 'class' => $this->_aHtmlIds['counter'] . (!$bVote && !$bShowCounterEmpty ? ' bx-vc-hidden' : ''),
  163. 'type' => $this->_sType,
  164. 'style' => self::$_sCounterStyleDivided,
  165. 'bx_if:show_link' => array(
  166. 'condition' => false,
  167. 'content' => array()
  168. ),
  169. 'bx_if:show_text' => array(
  170. 'condition' => true,
  171. 'content' => array(
  172. 'counter' => $sResult,
  173. )
  174. ),
  175. 'script' => $bShowScript ? $this->getJsScript($aParams) : ''
  176. ));
  177. }
  178. public function _getCounterCompound($aParams = array())
  179. {
  180. $bDynamicMode = isset($aParams['dynamic_mode']) && (bool)$aParams['dynamic_mode'] === true;
  181. $bShowCounterEmpty = isset($aParams['show_counter_empty']) && (bool)$aParams['show_counter_empty'] === true;
  182. $bShowScript = !isset($aParams['show_script']) || (bool)$aParams['show_script'] === true;
  183. $bVote = $this->_isVote();
  184. $aVote = $this->_getVote();
  185. $aReactions = $this->getReactions();
  186. $sClass = isset($aParams['class_counter']) ? $aParams['class_counter'] : '';
  187. if(isset($aParams['show_do_vote_as_button_small']) && (bool)$aParams['show_do_vote_as_button_small'] === true)
  188. $sClass .= ' bx-btn-small-height';
  189. else if(isset($aParams['show_do_vote_as_button']) && (bool)$aParams['show_do_vote_as_button'] === true)
  190. $sClass .= ' bx-btn-height';
  191. $aParams['id_counter'] = '';
  192. $sResult = '';
  193. $iResultC = $iResultS = 0;
  194. foreach($aReactions as $sName) {
  195. $iCount = (int)$aVote['count_' . $sName];
  196. $aParams = array_merge($aParams, array(
  197. 'show_counter_active' => false,
  198. 'show_counter_label_icon' => true,
  199. 'show_counter_label_text' => false,
  200. 'class_counter' => ($iCount == 0 && (!$bShowCounterEmpty || $sName != $this->_sDefault || $bVote) ? ' bx-vc-hidden' : '') . ' ' . $sName . ' ' . $sClass,
  201. 'reaction' => $sName,
  202. 'vote' => array(
  203. 'count' => $iCount,
  204. 'sum' => $aVote['sum_' . $sName],
  205. 'rate' => $aVote['rate_' . $sName],
  206. )
  207. ));
  208. $iResultC += $iCount;
  209. $iResultS += (int)$aVote['sum_' . $sName];
  210. $sResult .= trim(parent::getCounter(array_merge($aParams, array('show_script' => false))));
  211. }
  212. $aParams = array_merge($aParams, array(
  213. 'show_counter_active' => false,
  214. 'show_counter_label_icon' => false,
  215. 'show_counter_label_text' => true,
  216. 'class_counter' => ' total-count ' . $sClass,
  217. 'reaction' => '',
  218. 'vote' => array(
  219. 'count' => $iResultC,
  220. 'sum' => $iResultS,
  221. 'rate' => $iResultC > 0 ? round($iResultS / $iResultC, 2) : 0,
  222. )
  223. ));
  224. $sResult .= parent::getCounter(array_merge($aParams, array('show_script' => false)));
  225. return $this->_oTemplate->parseHtmlByContent($this->_getTmplContentCounterWrapper(), array(
  226. 'html_id' => $this->_aHtmlIds['counter'],
  227. 'style_prefix' => $this->_sStylePrefix,
  228. 'class' => $this->_aHtmlIds['counter'] . (!$bVote && !$bShowCounterEmpty ? ' bx-vc-hidden' : ''),
  229. 'type' => $this->_sType,
  230. 'style' => self::$_sCounterStyleCompound,
  231. 'bx_if:show_link' => array(
  232. 'condition' => true,
  233. 'content' => array(
  234. 'href' => 'javascript:void(0)',
  235. 'onclick' => 'javascript:' . $this->getJsClickCounter($aParams),
  236. 'title' => bx_html_attribute($this->_getTitleDoBy($aParams)),
  237. 'counter' => $sResult,
  238. )
  239. ),
  240. 'bx_if:show_text' => array(
  241. 'condition' => false,
  242. 'content' => array()
  243. ),
  244. 'script' => $bShowScript ? $this->getJsScript($aParams) : ''
  245. ));
  246. }
  247. public function getElement($aParams = array())
  248. {
  249. $sClass = $this->_sStylePrefix . '-' . $this->_sType;
  250. if(isset($aParams['show_do_vote_as_button_small']) && (bool)$aParams['show_do_vote_as_button_small'] === true)
  251. $sClass .= '-button-small';
  252. else if(isset($aParams['show_do_vote_as_button']) && (bool)$aParams['show_do_vote_as_button'] === true)
  253. $sClass .= '-button';
  254. $aParams['class_element'] = isset($aParams['class_element']) ? $aParams['class_element'] : '';
  255. $aParams['class_element'] .= ' ' . $sClass;
  256. return parent::getElement($aParams);
  257. }
  258. /**
  259. * Internal methods.
  260. */
  261. protected function _prepareParamsData($aParams)
  262. {
  263. return parent::_prepareParamsData(array_merge([
  264. 'bQuickMode' => $this->_bQuickMode
  265. ], $aParams));
  266. }
  267. protected function _isShowDoVote($aParams, $isAllowedVote, $bCount)
  268. {
  269. $bResult = parent::_isShowDoVote($aParams, $isAllowedVote, $bCount);
  270. if(!$bResult)
  271. return $bResult;
  272. return $isAllowedVote || $bCount;
  273. }
  274. protected function _getDoVote($aParams = array(), $isAllowedVote = true)
  275. {
  276. $bUndo = $this->isUndo();
  277. $bVoted = isset($aParams['is_voted']) && (bool)$aParams['is_voted'] === true;
  278. $bShowDoVoteAsButtonSmall = isset($aParams['show_do_vote_as_button_small']) && (bool)$aParams['show_do_vote_as_button_small'] === true;
  279. $bShowDoVoteAsButton = !$bShowDoVoteAsButtonSmall && isset($aParams['show_do_vote_as_button']) && (bool)$aParams['show_do_vote_as_button'] === true;
  280. $bDisabled = !$isAllowedVote || ($bVoted && !$bUndo);
  281. $sClass = '';
  282. if($bShowDoVoteAsButton)
  283. $sClass = ' bx-btn';
  284. else if ($bShowDoVoteAsButtonSmall)
  285. $sClass = ' bx-btn bx-btn-small';
  286. $iValue = 0;
  287. $sReaction = '';
  288. $sJsClick = '';
  289. if(!$bDisabled) {
  290. if($bVoted && $bUndo) {
  291. $sClass = ' ' . $this->_sStylePrefix . '-voted' . $sClass;
  292. $iValue = $aParams['track']['value'];
  293. $sReaction = $aParams['track']['reaction'];
  294. $sJsClick = $this->getJsClickDo($sReaction, $iValue);
  295. }
  296. else {
  297. $iValue = $this->getValue();
  298. $sReaction = $this->_aDataList[$this->_sDefault]['name'];
  299. $sJsClick = $this->getJsClick($iValue);
  300. }
  301. }
  302. else
  303. $sClass .= $bShowDoVoteAsButton || $bShowDoVoteAsButtonSmall ? ' bx-btn-disabled' : ' ' . $this->_sStylePrefix . '-disabled';
  304. return $this->_oTemplate->parseLink('javascript:void(0)', $this->_getDoVoteLabel($aParams), array(
  305. 'class' => $this->_sStylePrefix . '-do-vote' . $sClass,
  306. 'title' => _t($this->_getTitleDoWithTrack($bVoted, $aParams['track'])),
  307. 'onclick' => $sJsClick,
  308. 'bx-vote-reaction' => $sReaction,
  309. 'bx-vote-value' => $iValue,
  310. ));
  311. }
  312. protected function _getDoVoteLabel($aParams = array())
  313. {
  314. $bVoted = isset($aParams['is_voted']) && (bool)$aParams['is_voted'] === true;
  315. return $this->_oTemplate->parseHtmlByContent($this->_getTmplContentDoActionLabel(), array(
  316. 'style_prefix' => $this->_sStylePrefix,
  317. 'bx_if:show_icon' => array(
  318. 'condition' => isset($aParams['show_do_vote_icon']) && (bool)$aParams['show_do_vote_icon'] === true,
  319. 'content' => array(
  320. 'style_prefix' => $this->_sStylePrefix,
  321. 'name' => $this->_getIconDoWithTrack($bVoted, $aParams['track']),
  322. 'emoji' => $this->_getEmojiDoWithTrack($bVoted, $aParams['track'])
  323. )
  324. ),
  325. 'bx_if:show_text' => array(
  326. 'condition' => isset($aParams['show_do_vote_label']) && (bool)$aParams['show_do_vote_label'] === true,
  327. 'content' => array(
  328. 'style_prefix' => $this->_sStylePrefix,
  329. 'text' => _t($this->_getTitleDoWithTrack($bVoted, $aParams['track']))
  330. )
  331. )
  332. ));
  333. }
  334. public function _getDoVotePopup($iValue = 0)
  335. {
  336. if(empty($iValue))
  337. $iValue = $this->getValue();
  338. $oMenu = BxTemplMenu::getObjectInstance($this->_sMenuDoVote);
  339. if(!$oMenu)
  340. return '';
  341. $oMenu->setParams(array(
  342. 'object' => &$this,
  343. 'value' => $iValue,
  344. ));
  345. return $oMenu->getCode();
  346. }
  347. protected function _getCounterLabel($iCount, $aParams = array())
  348. {
  349. $sReaction = !empty($aParams['reaction']) ? $aParams['reaction'] : $this->_sDefault;
  350. return $this->_oTemplate->parseHtmlByContent($this->_getTmplContentCounterLabel(), array(
  351. 'style_prefix' => $this->_sStylePrefix,
  352. 'bx_if:show_icon' => array(
  353. 'condition' => !isset($aParams['show_counter_label_icon']) || (bool)$aParams['show_counter_label_icon'] === true,
  354. 'content' => array(
  355. 'style_prefix' => $this->_sStylePrefix,
  356. 'name' => $this->getIcon($sReaction),
  357. 'emoji' => $this->getEmoji($sReaction)
  358. )
  359. ),
  360. 'bx_if:show_text' => array(
  361. 'condition' => !isset($aParams['show_counter_label_text']) || (bool)$aParams['show_counter_label_text'] === true,
  362. 'content' => array(
  363. 'style_prefix' => $this->_sStylePrefix,
  364. 'text' => parent::_getCounterLabel($iCount)
  365. )
  366. )
  367. ));
  368. }
  369. protected function _getVotedBy($aParams = array())
  370. {
  371. if(!isset($aParams['reaction']))
  372. return $this->_getVotedBySummary($aParams);
  373. $bSummary = $aParams['reaction'] == 'summary';
  374. $aBrowseParams = array('type' => 'by', 'object_id' => $this->getId());
  375. if(!$bSummary)
  376. $aBrowseParams['reaction'] = $aParams['reaction'];
  377. $aValues = $this->_oQuery->getPerformed($aBrowseParams);
  378. $aTmplUsers = array();
  379. foreach($aValues as $mValue) {
  380. $mValue = is_array($mValue) ? $mValue : array('author_id' => (int)$mValue, 'reaction' => '');
  381. list($sUserName, $sUserUrl, $sUserIcon, $sUserUnit) = $this->_getAuthorInfo($mValue['author_id']);
  382. $aTmplUsers[] = array(
  383. 'style_prefix' => $this->_sStylePrefix,
  384. 'user_unit' => $sUserUnit,
  385. 'bx_if:show_reaction' => array(
  386. 'condition' => $bSummary,
  387. 'content' => array(
  388. 'style_prefix' => $this->_sStylePrefix,
  389. 'icon' => $bSummary ? $this->getIcon($mValue['reaction']) : '',
  390. 'emoji' => $bSummary ? $this->getEmoji($mValue['reaction']) : ''
  391. )
  392. )
  393. );
  394. }
  395. if(empty($aTmplUsers))
  396. $aTmplUsers = MsgBox(_t('_Empty'));
  397. return $this->_oTemplate->parseHtmlByName($this->_sTmplNameByList, array(
  398. 'style_prefix' => $this->_sStylePrefix,
  399. 'class' => ' ' . $this->_sStylePrefix . '-bl-' . $aParams['reaction'],
  400. 'bx_repeat:list' => $aTmplUsers
  401. ));
  402. }
  403. protected function _getVotedBySummary($aParams = array())
  404. {
  405. $sJsObject = $this->getJsObjectName();
  406. $sTxtSummary = _t('_vote_do_by_summary');
  407. $aReactions = array_merge(array('summary'), $this->getReactions());
  408. $aMenuItems = array();
  409. $aTmplVarsLists = array();
  410. foreach ($aReactions as $sReaction) {
  411. if($sReaction == $this->_sDefault)
  412. continue;
  413. $bSummary = $sReaction == 'summary';
  414. $sName = $this->_sStylePrefix . '-' . $sReaction;
  415. $sEmoji = $this->getEmoji($sReaction);
  416. $sTitle = !$bSummary ? $this->_oTemplate->parseIcon($sEmoji ? $sEmoji : $this->getIcon($sReaction)) : $sTxtSummary;
  417. $sTitleAttr = !$bSummary ? _t('_vote_do_by_x_reaction', _t($this->_aDataList[$sReaction]['title'])) : $sTxtSummary;
  418. $aMenuItems[] = array('id' => $sName, 'name' => $sName, 'class' => '', 'link' => 'javascript:void(0)', 'onclick' => 'javascript:' . $sJsObject . '.changeVotedBy(this, \'' . $sReaction . '\')', 'target' => '_self', 'title' => $sTitle, 'title_attr' => $sTitleAttr, 'active' => 1);
  419. $aTmplVarsLists[] = array(
  420. 'content' => $this->_getVotedBy(array('reaction' => $sReaction))
  421. );
  422. }
  423. $oMenu = new BxTemplMenuInteractive(array('template' => 'menu_interactive_vertical.html', 'menu_id'=> $this->_sStylePrefix . '-voted-by', 'menu_items' => $aMenuItems));
  424. $oMenu->setSelected('', $this->_sStylePrefix . '-summary');
  425. return $this->_oTemplate->parseHtmlByName($this->_sTmplNameBySummary, array(
  426. 'style_prefix' => $this->_sStylePrefix,
  427. 'title' => '',
  428. 'menu' => $oMenu->getCode(),
  429. 'bx_repeat:lists' => $aTmplVarsLists
  430. ));
  431. }
  432. protected function _getTmplContentCounterWrapper()
  433. {
  434. return $this->_sTmplContentCounterWrapper;
  435. }
  436. }
  437. /** @} */