Cheetah
ChBlogsSearchUnit.php
Go to the documentation of this file.
1 <?php
2 
8 require_once(CH_DIRECTORY_PATH_INC . 'header.inc.php' );
9 ch_import('ChTemplCmtsView');
10 ch_import('ChTemplSearchResultText');
11 
12 if (!defined('CH_BLOGS_IMAGES_PATH')) {
13  define('CH_BLOGS_IMAGES_PATH', CH_DIRECTORY_PATH_ROOT . "media/images/blog/");
14 }
15 if (!defined('CH_BLOGS_IMAGES_URL')) {
16  define('CH_BLOGS_IMAGES_URL', CH_WSB_URL_ROOT . "media/images/blog/");
17 }
18 
20 {
22  var $sHomeUrl;
23  var $iPostViewType; // 2 - with author name; 3 - without link at title and with image; 4 - with member icon; 5 - without date and owner(short)
24  var $sMobileWrapper = false;
25 
28 
29  var $aCurrent = array(
30  'name' => 'blogposts',
31  'title' => '_ch_blog_Blogs',
32  'table' => 'ch_blogs_posts',
33  'ownFields' => array('PostID', 'PostCaption', 'PostUri', 'PostDate', 'PostText', 'Tags', 'PostPhoto','PostStatus', 'Rate', 'RateCount', 'CommentsCount', 'Categories', 'Views'),
34  'searchFields' => array('PostCaption', 'PostText', 'Tags'),
35  'join' => array(
36  'profile' => array(
37  'type' => 'left',
38  'table' => 'Profiles',
39  'mainField' => 'OwnerID',
40  'onField' => 'ID',
41  'joinFields' => array('NickName')
42  )
43  ),
44  'restriction' => array(
45  'activeStatus' => array('value'=>'approval', 'field'=>'PostStatus', 'operator'=>'='),
46  'featuredStatus' => array('value'=>'', 'field'=>'Featured', 'operator'=>'='),
47  'owner' => array('value'=>'', 'field'=>'OwnerID', 'operator'=>'='),
48  'tag' => array('value'=>'', 'field'=>'Tags', 'operator'=>'like'),
49  'tag2' => array('value'=>'', 'field'=>'Tags', 'operator'=>'against', 'paramName'=>'tag'),
50  'id'=> array('value'=>'', 'field'=>'PostID', 'operator'=>'='),
51  'category_uri'=> array('value'=>'', 'field'=>'Categories', 'operator'=>'against', 'paramName'=>'uri'),
52  'allow_view' => array('value'=>'', 'field'=>'allowView', 'operator'=>'in', 'table'=> 'ch_blogs_posts'),
53  ),
54  'paginate' => array('perPage' => 4, 'page' => 1, 'totalNum' => 10, 'totalPages' => 1),
55  'sorting' => 'last'
56  );
57 
59 
60  //max sizes of pictures for resizing during upload
64  var $iImgSize;
65 
67 
68  function __construct($oBlogObject = null)
69  {
70  $this->bShowCheckboxes = false;
71  $this->bAdminMode = false;
72 
73  $oMain = $this->getBlogsMain();
74 
75  $this->iIconSize = $oMain->iIconSize;
76  $this->iThumbSize = $oMain->iThumbSize;
77  $this->iBigThumbSize = $oMain->iBigThumbSize;
78  $this->iImgSize = $oMain->iImgSize;
79 
80  if ($oMain->isAdmin()) {
81  $this->bAdminMode = true;
82  //$this->bShowCheckboxes = true;
83  }
84 
85  $this->sHomeUrl = $oMain->_oConfig->getHomeUrl();
86  $this->sHomePath = $oMain->_oConfig->getHomePath();
87 
88  $this->aPermalinks = array(
89  'param' => 'permalinks_blogs',
90  'enabled' => array(
91  'file' => 'blogs/entry/{uri}',
92  'category' => 'blogs/posts/{ownerName}/category/{uri}',
93  'member' => 'blogs/posts/{ownerName}',
94  'tag' => 'blogs/tag/{uri}',
95  'browseAll' => 'blogs/',
96  'admin_file' => 'blogs/entry/{uri}',
97  'admin_category' => 'blogs/posts/{ownerName}/category/{uri}',
98  'admin_member' => 'blogs/posts/{ownerName}',
99  'admin_tag' => 'blogs/tag/{uri}',
100  'admin_browseAll' => 'blogs/',
101  'last_posts' => 'blogs/all_posts/',
102  'popular_posts' => 'blogs/popular_posts/',
103  'top_posts' => 'blogs/top_posts/',
104  ),
105  'disabled' => array(
106  'file' => 'blogs.php?action=show_member_post&post_id={id}',
107  'category' => 'blogs.php?action=show_member_blog&ownerID={ownerId}&category={id}',
108  'member' => 'blogs.php?action=show_member_blog&ownerID={ownerId}',
109  'tag' => 'blogs.php?action=search_by_tag&tagKey={uri}',
110  'browseAll' => 'blogs.php',
111  'admin_file' => 'blogs.php?action=show_member_post&post_id={id}',
112  'admin_category' => 'blogs.php?action=show_member_blog&ownerID={ownerId}&category={id}',
113  'admin_member' => 'blogs.php?action=show_member_blog&ownerID={ownerId}',
114  'admin_tag' => 'blogs.php?action=search_by_tag&tagKey={uri}',
115  'admin_browseAll' => 'blogs.php',
116  'last_posts' => 'blogs.php?action=all_posts',
117  'popular_posts' => 'blogs.php?action=popular_posts',
118  'top_posts' => 'blogs.php?action=top_posts'
119  )
120  );
121 
122  if(!$oBlogObject) {
123  $oBlogObject = ChWsbModule::getInstance('ChBlogsModule');
124  }
125 
126  if ( $this->bAdminMode || ( is_object($oBlogObject) && ($oBlogObject -> isAllowedApprove()
127  || $oBlogObject -> isAllowedPostEdit(-1) || $oBlogObject -> isAllowedPostDelete(-1)) )) {
128 
129  $this->aCurrent['restriction']['activeStatus'] = '';
130  }
131  parent::__construct();
132 
133  $this->iPostViewType = 4;
134  $this->sSearchedTag = '';
135  }
136 
137  function getBlogsMain()
138  {
139  return ChWsbModule::getInstance('ChBlogsModule');
140  }
141 
142  function addCustomParts()
143  {
144  $oMain = $this->getBlogsMain();
145  return $oMain->serviceGetCommonCss();
146  }
147 
148  function PerformObligatoryInit(&$oBlogsModule, $iPostViewType = 2, $sMobileWrapper = false)
149  {
150  $GLOBALS['oChBlogsModule'] = $oBlogsModule;
151  $oMain = $this->getBlogsMain();
152 
153  $this->sHomePath = $oMain->_oConfig->getHomePath();
154  $this->sHomeUrl = $oMain->_oConfig->getHomeUrl();
155 
156  $this->iPostViewType = $iPostViewType;
157 
158  $this->sMobileWrapper = $sMobileWrapper;
159  }
160 
161  function getCurrentUrl($sType, $iId, $sUri, $aOwner = '')
162  {
163  if ($this->bAdminMode && isset($this->aConstants['linksTempl']['admin_' . $sType])) {
164  $sType = 'admin_' . $sType;
165  }
166 
167  $sLink = $this->aConstants['linksTempl'][$sType];
168  $sLink = str_replace('{id}', $iId, $sLink);
169  $sLink = str_replace('{uri}', $sUri, $sLink);
170  if (is_array($aOwner) && !empty($aOwner)) {
171  $sLink = str_replace('{ownerName}', $aOwner['ownerName'], $sLink);
172  $sLink = str_replace('{ownerId}', $aOwner['ownerId'], $sLink);
173  }
174 
175  $oMain = $this->getBlogsMain();
176  return ($oMain->isPermalinkEnabled()) ? CH_WSB_URL_ROOT . $sLink : $this->sHomeUrl . $sLink;
177  }
178 
179  function displaySearchBox ($sCode, $sPaginate = '', $bAdminBox = false)
180  {
181  $sCode = DesignBoxContent(_t($this->aCurrent['title']), '<div class="ch-def-bc-padding">'.$sCode .'<div class="clear_both"></div></div>'. $sPaginate, 1);
182  if (true !== ch_get('searchMode'))
183  $sCode = '<div id="page_block_'.$this->id.'">'.$sCode.'<div class="clear_both"></div></div>';
184  return $sCode;
185  }
186 
187  function displaySearchUnit($aResSQL)
188  {
189  $iVisitorID = getLoggedId();
190 
191  $oMain = $this->getBlogsMain();
192 
193  $iPostID = (int)$aResSQL['id'];
194  $sBlogsImagesUrl = CH_BLOGS_IMAGES_URL;
195 
196  $bPossibleToView = $oMain->oPrivacy->check('view', $iPostID, $oMain->_iVisitorID);
197  if (!$bPossibleToView) {
198  if ($this->sMobileWrapper)
199  return $this->_wrapMobileUnit ($oMain->_oTemplate->parseHtmlByTemplateName('browse_unit_private_mobile', array()), $iPostID, $oMain);
200  else
201  return $oMain->_oTemplate->parseHtmlByName('browse_unit_private.html', array('extra_css_class' => ''));
202  }
203 
204  $sCategories = $aResSQL['Categories'];
205  $aCategories = $oMain->getTagLinks($aResSQL['Categories'], 'category', CATEGORIES_DIVIDER);
206 
207  $sStyle = '';
208  $sFriendStyle = '';
209  $sPostVote = '';
210  $sPostMode = '';
211  $sVotePostRating = $this->oRate->getJustVotingElement(0, 0, $aResSQL['Rate']);
212 
213  $aProfileInfo = getProfileInfo($aResSQL['ownerId']);
214  $sAuthorTitle = process_line_output(getNickName($aProfileInfo['ID']));
215  $sAuthorUsername = getUsername($aProfileInfo['ID']);
216  $sAuthorLink = getProfileLink($aProfileInfo['ID']);
217 
218  $sCategoryName = $aResSQL['Categories'];
219  $sPostLink = $this->getCurrentUrl('file', $iPostID, $aResSQL['uri']) . $sCategoryUrlAdd;
220 
221  $sAllCategoriesLinks = '';
222  if (count($aCategories)>0) {
223  foreach ($aCategories as $iKey => $sCatValue) {
224  $sCatLink = $this->getCurrentUrl('category', title2uri($sCatValue), title2uri($sCatValue), array('ownerId' => $aResSQL['ownerId'], 'ownerName' => $sAuthorUsername));
225  $sCatName = process_line_output($sCatValue);
226  $aAllCategoriesLinks[] = '<a href="' . $sCatLink . '">' . $sCatName . '</a>';
227  }
228  $aAllCategoriesLinkHrefs = implode(", ", $aAllCategoriesLinks);
229  $sAllCategoriesLinks = <<<EOF
230 <span class="margined">
231  <span>{$aAllCategoriesLinkHrefs}</span>
232 </span>
233 EOF;
234  }
235 
236  $sAdminCheck = $sAdminStatus = '';
237  if ($this->bShowCheckboxes) {
238  $sAdminCheck = <<<EOF
239 <div class="browseCheckbox"><input id="ch{$iPostID}" type="checkbox" name="bposts[]" value="{$iPostID}" /></div>
240 EOF;
241 
242  $sPostStatus = process_line_output($aResSQL['PostStatus']);
243  $sAdminStatus = <<<EOF
244 &nbsp;({$sPostStatus})
245 EOF;
246  }
247 
248  $sPostCaption = process_line_output($aResSQL['title']);
249  $sPostCaptionHref = <<<EOF
250 <a class="unit_title ch-def-font-h2" href="{$sPostLink}">{$sPostCaption}</a>{$sAdminStatus}
251 EOF;
252 
253  if ($this->iPostViewType==3 || $this->sMobileWrapper) {
254  $sFriendStyle="2";
255  $sPostMode = '_post';
256  $sPostCaptionHref = '<div class="unit_title ch-def-font-h2">'.$sPostCaption.'</div>';
257  }
258 
259  $sDateTime = defineTimeInterval($aResSQL['date']);
260 
261  //$oCmtsView = new ChTemplCmtsView ('blogposts', (int)$iPostID);
262  $iCommentsCnt = (int)$aResSQL['CommentsCount'];
263  $iViewsCnt = (int)$aResSQL['Views'];
264 
265  $sTagsCommas = $aResSQL['tag'];
266  //$aTags = split(',', $sTagsCommas);
267  $aTags = preg_split("/[;,]/", $sTagsCommas);
268 
269  //search by tag skiping
270  if ( $this->sSearchedTag != '' && in_array($this->sSearchedTag,$aTags)==false ) return;
271 
272  $sTagsHrefs = '';
273  $aTagsHrefs = array();
274  foreach($aTags as $sTagKey) {
275  if ($sTagKey != '') {
276  $sTagLink = $this->getCurrentUrl('tag', $iPostID, htmlspecialchars(title2uri($sTagKey)));
277  $sTagsHrefAny = <<<EOF
278 <a href="{$sTagLink}" title="{$sTagKey}">{$sTagKey}</a>
279 EOF;
280  $aTagsHrefs[] = $sTagsHrefAny;
281  }
282  }
283  $sTagsHrefs = implode(", ", $aTagsHrefs);
284 
285  $sTags = <<<EOF
286 <span class="margined">
287  <span>{$sTagsHrefs}</span>
288 </span>
289 EOF;
290 
291  $sPostText = $aResSQL['bodyText'];
292  $bOwner = ($iVisitorID==$aResSQL['ownerId']) ? true : false;
293 
294  $sOwnerThumb = $sPostPicture = $sPreviewPicture = '';
295  if($aResSQL['PostPhoto'] && in_array($this->iPostViewType, array(1, 3, 4, 5))) {
296  $oMain->_oTemplate->addJs('plugins/fancybox/|jquery.fancybox.js');
297  $oMain->_oTemplate->addCss('plugins/fancybox/|jquery.fancybox.css');
298 
299  $sPostPicture = $oMain->_oTemplate->parseHtmlByName('picture_preview.html', array(
300  'img_url_big' => $sBlogsImagesUrl . 'orig_' . $aResSQL['PostPhoto'],
301  'img_url_small' => $sBlogsImagesUrl . 'big_' . $aResSQL['PostPhoto']
302  ));
303  }
304 
305  if ($this->iPostViewType==4) {
306  $sOwnerThumb = $GLOBALS['oFunctions']->getMemberIcon($aResSQL['ownerId'], 'left');
307  }
308 
309  if (in_array($this->iPostViewType, array(1, 4, 5))) {
310  $iBlogLimitChars = (int)getParam('max_blog_preview');
311  $sPostText = trim(strip_tags($sPostText));
312  if (mb_strlen($sPostText) > $iBlogLimitChars) {
313  $sPostText = mb_substr( $sPostText, 0, $iBlogLimitChars);
314  $sLinkMore = $this->sMobileWrapper ? '' : ' <a title="' . htmlspecialchars_adv(_t('_Read more')) . '" href="' . $sPostLink . '">&hellip;</a>';
315  }
316  $sPostText = htmlspecialchars_adv($sPostText) . $sLinkMore;
317  }
318 
319  $aUnitReplace = array(
320  'checkbox' => $sAdminCheck,
321  'post_caption' => $sPostCaptionHref,
322  'author_title' => $sAuthorTitle,
323  'author_username' => $sAuthorUsername,
324  'author_link' => $sAuthorLink,
325  'post_date' => $sDateTime,
326  'all_categories' => $sAllCategoriesLinks,
327  'comments_count' => $iCommentsCnt,
328  'views_count' => $iViewsCnt,
329  'post_tags' => $sTags,
330  'friend_style' => $sFriendStyle,
331  'post_uthumb' => $sOwnerThumb,
332  'post_picture2' => $sPostPicture,
333  'preview_picture' => $sPreviewPicture,
334  'post_description' => $sPostText,
335  'post_vote' => $sVotePostRating,
336  'post_mode' => $sPostMode,
337  'style' => $sStyle,
338  'ch_if:full' => array (
339  'condition' => $this->iPostViewType != 5,
340  'content' => array (
341  'author_title' => $sAuthorTitle,
342  'author_username' => $sAuthorUsername,
343  'author_link' => $sAuthorLink,
344  'post_date' => $sDateTime,
345  'comments_count' => $iCommentsCnt,
346  'views_count' => $iViewsCnt,
347  ),
348  ),
349  );
350 
351  if ($this->sMobileWrapper) {
352  return $this->_wrapMobileUnit ($oMain->_oTemplate->parseHtmlByTemplateName('blogpost_unit_mobile', $aUnitReplace), $iPostID, $oMain);
353  } else {
354  return $oMain->_oTemplate->parseHtmlByTemplateName('blogpost_unit', $aUnitReplace);
355  }
356  }
357 
358  function setSorting ()
359  {
360  $this->aCurrent['sorting'] = (false !== ch_get('blogs_mode')) ? ch_get('blogs_mode') : $this->aCurrent['sorting'];
361 
362  if( $this->aCurrent['sorting'] != 'top' && $this->aCurrent['sorting'] != 'last' && $this->aCurrent['sorting'] != 'score' && $this->aCurrent['sorting'] != 'popular')
363  $this->aCurrent['sorting'] = 'last';
364  }
365 
366  function getAlterOrder()
367  {
368  if ($this->aCurrent['sorting'] == 'popular') {
369  $aSql = array();
370  $aSql['order'] = " ORDER BY `CommentsCount` DESC, `PostDate` DESC";
371  return $aSql;
372  }
373  return array();
374  }
375 
376  function showPagination($aParams = array())
377  {
378  $aLinkAddon = $this->getLinkAddByPrams();
379  $oPaginate = new ChWsbPaginate(array(
380  'page_url' => $this->aCurrent['paginate']['page_url'],
381  'count' => $this->aCurrent['paginate']['totalNum'],
382  'per_page' => $this->aCurrent['paginate']['perPage'],
383  'page' => $this->aCurrent['paginate']['page'],
384  'on_change_page' => 'return !loadDynamicBlock('.$this->id.', \'searchKeywordContent.php?searchMode=ajax&blogs_mode='.$this->aCurrent['sorting'].'&section[]=blog&keyword='.ch_get('keyword').$aLinkAddon['params'].'&page={page}&per_page={per_page}\');',
385  'on_change_per_page' => 'return !loadDynamicBlock('.$this->id.', \'searchKeywordContent.php?searchMode=ajax&blogs_mode='.$this->aCurrent['sorting'].'&section[]=blog&keyword='.ch_get('keyword').$aLinkAddon['params'].'&page=1&per_page=\' + this.value);'
386  ));
387  $sPaginate = '<div class="clear_both"></div>'.$oPaginate->getPaginate();
388 
389  return $sPaginate;
390  }
391 
392  function showPagination3($bAdmin = false)
393  {
394  ch_import('ChWsbPaginate');
395  $sPgnAdd = false === strpos($this->aCurrent['paginate']['page_url'], '{page}') ? 'per_page={per_page}&page={page}' : '';
396  $oPaginate = new ChWsbPaginate(array(
397  'page_url' => ch_append_url_params($this->aCurrent['paginate']['page_url'], $sPgnAdd),
398  'count' => $this->aCurrent['paginate']['totalNum'],
399  'per_page' => $this->aCurrent['paginate']['perPage'],
400  'page' => $this->aCurrent['paginate']['page'],
401  ));
402 
403  $sPaginate = '<div class="clear_both"></div>'.$oPaginate->getPaginate();
404 
405  return $sPaginate;
406  }
407 
408  function showPagination2($bAdmin = false, $sOverrideViewAllUrl = false, $bShort = true)
409  {
410  ch_import('ChWsbPaginate');
411  $aLinkAddon = $this->getLinkAddByPrams();
412 
413  $sAllUrl = $sOverrideViewAllUrl ? $sOverrideViewAllUrl : $this->getCurrentUrl('browseAll', 0, '');
414  $sLink = ch_html_attribute($_SERVER['PHP_SELF']) . '?blogs_mode=' . $this->aCurrent['sorting'] . $aLinkAddon['params'];
415  $oPaginate = new ChWsbPaginate(array(
416  'page_url' => $sLink,
417  'count' => $this->aCurrent['paginate']['totalNum'],
418  'per_page' => $this->aCurrent['paginate']['perPage'],
419  'page' => $this->aCurrent['paginate']['page'],
420  'on_change_page' => 'return !loadDynamicBlock({id}, \'' . $sLink . '&page={page}&per_page={per_page}\');',
421  'on_change_per_page' => 'return !loadDynamicBlock({id}, \'' . $sLink . '&page=1&per_page=\' + this.value);',
422  ));
423 
424  $sPaginate = $bShort ? $oPaginate->getSimplePaginate($sAllUrl) : $oPaginate->getPaginate();
425  $sPaginate = '<div class="clear_both"></div>' . $sPaginate;
426 
427  return $sPaginate;
428  }
429 
430  function showPaginationAjax($sContainerId, $sBaseUrl = false)
431  {
432  ch_import('ChWsbPaginate');
433 
434  $sLink = CH_WSB_URL_ROOT . ($sBaseUrl ? $sBaseUrl : $this->aCurrent['paginate']['page_url']);
435  $sLink = ch_append_url_params($sLink, 'ajax=1');
436 
437  $oPaginate = new ChWsbPaginate(array(
438  'page_url' => $sLink,
439  'count' => $this->aCurrent['paginate']['totalNum'],
440  'per_page' => $this->aCurrent['paginate']['perPage'],
441  'page' => $this->aCurrent['paginate']['page'],
442  'on_change_page' => 'getHtmlData(\'' . ch_html_attribute($sContainerId) . '\', \'' . ch_html_attribute($sLink) . '&page={page}&per_page={per_page}\'); return false;',
443  'on_change_per_page' => 'getHtmlData(\'' . ch_html_attribute($sContainerId) . '\', \'' . ch_html_attribute($sLink) . '&page=1&per_page=\' + this.value); return false;',
444  ));
445 
446  $sPaginate = '<div class="clear_both"></div>' . $oPaginate->getPaginate();
447 
448  return $sPaginate;
449  }
450 
451  function _getPseud ()
452  {
453  return array(
454  'id' => 'PostID',
455  'title' => 'PostCaption',
456  'date' => 'PostDate',
457  'uri' => 'PostUri',
458  'categoryName' => 'CategoryName',
459  'categoryUri' => 'CategoryUri',
460  'ownerId' => 'OwnerID',
461  'ownerName' => 'NickName',
462  'bodyText' => 'PostText',
463  'countComment' => 'cmt_id',
464  'tag' => 'Tags'
465  );
466  }
467 
468  function _wrapMobileUnit ($sContent, $iPostID, $oMain)
469  {
470  $aVars = array (
471  'content' => $sContent,
472  'url' => ch_js_string($oMain->genBlogSubUrl() . '?action=mobile&mode=post&id=' . $iPostID),
473  );
474  ch_import('ChWsbMobileTemplate');
475  $oMobileTemplate = new ChWsbMobileTemplate($oMain->_oConfig, $oMain->_oDb);
476  return $oMobileTemplate->parseHtmlByName($this->sMobileWrapper, $aVars);
477  }
478 }
ChBlogsSearchUnit\_getPseud
_getPseud()
Definition: ChBlogsSearchUnit.php:451
ChBlogsSearchUnit\getBlogsMain
getBlogsMain()
Definition: ChBlogsSearchUnit.php:137
ChBlogsSearchUnit\$iThumbSize
$iThumbSize
Definition: ChBlogsSearchUnit.php:62
ChBaseSearchResult\getLinkAddByPrams
getLinkAddByPrams($aExclude=array())
Definition: ChBaseSearchResult.php:186
ChWsbModule\getInstance
static getInstance($sClassName)
Definition: ChWsbModule.php:89
ch_js_string
ch_js_string($mixedInput, $iQuoteType=CH_ESCAPE_STR_AUTO)
Definition: utils.inc.php:1294
ChBlogsSearchUnit\_wrapMobileUnit
_wrapMobileUnit($sContent, $iPostID, $oMain)
Definition: ChBlogsSearchUnit.php:468
defineTimeInterval
defineTimeInterval($iTime, $bAutoDateConvert=true, $bShort=false)
Definition: utils.inc.php:831
name
Core AllowHostnameUnderscore underscores are not permitted in host most browsers do the right thing when faced with an underscore in the host name
Definition: Core.AllowHostnameUnderscore.txt:11
$sCode
$sCode
Definition: explanation.php:19
ChBlogsSearchUnit\setSorting
setSorting()
Definition: ChBlogsSearchUnit.php:358
ChBlogsSearchUnit\displaySearchUnit
displaySearchUnit($aResSQL)
Definition: ChBlogsSearchUnit.php:187
ChBlogsSearchUnit\$bAdminMode
$bAdminMode
Definition: ChBlogsSearchUnit.php:26
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChTemplSearchResultText
Definition: ChTemplSearchResultText.php:11
ch_get
ch_get($sName)
Definition: utils.inc.php:1664
ChBlogsSearchUnit\getCurrentUrl
getCurrentUrl($sType, $iId, $sUri, $aOwner='')
Definition: ChBlogsSearchUnit.php:161
php
$iId
$iId
Definition: license.php:15
ChBlogsSearchUnit\showPagination3
showPagination3($bAdmin=false)
Definition: ChBlogsSearchUnit.php:392
CATEGORIES_DIVIDER
const CATEGORIES_DIVIDER
Definition: ChWsbCategories.php:10
ChBlogsSearchUnit\$sMobileWrapper
$sMobileWrapper
Definition: ChBlogsSearchUnit.php:24
ChBlogsSearchUnit\PerformObligatoryInit
PerformObligatoryInit(&$oBlogsModule, $iPostViewType=2, $sMobileWrapper=false)
Definition: ChBlogsSearchUnit.php:148
ChBlogsSearchUnit\$sSearchedTag
$sSearchedTag
Definition: ChBlogsSearchUnit.php:66
a
Filter ExtractStyleBlocks Scope FilterParam ExtractStyleBlocksScope DESCRIPTION< p > If you would like users to be able to define external but only allow them to specify CSS declarations for a specific node and prevent them from fiddling with other use this directive It accepts any valid CSS and will prepend this to any CSS declaration extracted from the document For if this directive is set to< code > selector< code > a
Definition: Filter.ExtractStyleBlocks.Scope.txt:15
ch_html_attribute
ch_html_attribute($mixedInput)
Definition: utils.inc.php:1324
ChWsbMobileTemplate
Definition: ChWsbMobileTemplate.php:11
ChBlogsSearchUnit\$aCurrent
$aCurrent
Definition: ChBlogsSearchUnit.php:29
ChBlogsSearchUnit
Definition: ChBlogsSearchUnit.php:20
$sType
$sType
Definition: actions.inc.php:11
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
getLoggedId
getLoggedId()
Definition: profiles.inc.php:32
ChBlogsSearchUnit\showPagination2
showPagination2($bAdmin=false, $sOverrideViewAllUrl=false, $bShort=true)
Definition: ChBlogsSearchUnit.php:408
ChBlogsSearchUnit\$iBigThumbSize
$iBigThumbSize
Definition: ChBlogsSearchUnit.php:63
ChBlogsSearchUnit\$aPermalinks
$aPermalinks
Definition: ChBlogsSearchUnit.php:58
ChBlogsSearchUnit\showPaginationAjax
showPaginationAjax($sContainerId, $sBaseUrl=false)
Definition: ChBlogsSearchUnit.php:430
ch_append_url_params
ch_append_url_params($sUrl, $mixedParams)
Definition: utils.inc.php:1697
getNickName
getNickName( $ID='')
Definition: profiles.inc.php:461
htmlspecialchars_adv
htmlspecialchars_adv($string)
Definition: utils.inc.php:302
title2uri
title2uri($sValue)
Definition: utils.inc.php:42
$sTags
$sTags
Definition: actions.inc.php:12
type
if(!defined("USER_STATUS_TYPE")) define("USER_STATUS_TYPE" type
Definition: constants.inc.php:13
getUsername
getUsername( $ID='')
Definition: profiles.inc.php:443
ChWsbPaginate
Definition: ChWsbPaginate.php:69
ChBlogsSearchUnit\$iImgSize
$iImgSize
Definition: ChBlogsSearchUnit.php:64
$sContent
$sContent
Definition: bottom_menu_compose.php:169
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
ChBlogsSearchUnit\$iIconSize
$iIconSize
Definition: ChBlogsSearchUnit.php:61
value
URI Base such as when URI MakeAbsolute is on You may use a non absolute URI for this value
Definition: URI.Base.txt:11
getProfileLink
getProfileLink( $iID, $sLinkAdd='')
Definition: profiles.inc.php:484
ChBlogsSearchUnit\displaySearchBox
displaySearchBox($sCode, $sPaginate='', $bAdminBox=false)
Definition: ChBlogsSearchUnit.php:179
process_line_output
process_line_output($text, $maxwordlen=100)
Definition: utils.inc.php:328
$aVars
$aVars
Definition: license.php:101
ChBlogsSearchUnit\getAlterOrder
getAlterOrder()
Definition: ChBlogsSearchUnit.php:366
ChBlogsSearchUnit\$sHomeUrl
$sHomeUrl
Definition: ChBlogsSearchUnit.php:22
$aProfileInfo
$aProfileInfo
Definition: short_profile_info.php:23
ChBlogsSearchUnit\$bShowCheckboxes
$bShowCheckboxes
Definition: ChBlogsSearchUnit.php:27
ChBlogsSearchUnit\showPagination
showPagination($aParams=array())
Definition: ChBlogsSearchUnit.php:376
ChBlogsSearchUnit\$iPostViewType
$iPostViewType
Definition: ChBlogsSearchUnit.php:23
getProfileInfo
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
Definition: profiles.inc.php:249
ChBlogsSearchUnit\addCustomParts
addCustomParts()
Definition: ChBlogsSearchUnit.php:142
ChBlogsSearchUnit\__construct
__construct($oBlogObject=null)
Definition: ChBlogsSearchUnit.php:68
ChBlogsSearchUnit\$sHomePath
$sHomePath
Definition: ChBlogsSearchUnit.php:21
DesignBoxContent
DesignBoxContent($title, $content, $db_num=0, $caption_item='', $bottom_item='')
Definition: design.inc.php:78
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
as
as
Definition: Filter.ExtractStyleBlocks.Escaping.txt:10
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10