Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Espaces de nommage | |
Joomla\Plugin | |
Variables | |
$wa = $this->app->getDocument()->getWebAssetManager() | |
if($context==='com_content.categories') | $iconStar = HTMLHelper::_('image', 'plg_content_vote/vote-star.svg', '', '', true, true) |
$iconHalfstar = HTMLHelper::_('image', 'plg_content_vote/vote-star-half.svg', '', '', true, true) | |
if($iconStar===null|| $iconHalfstar===null) | $pathStar = JPATH_ROOT . substr($iconStar, strlen(Uri::root(true))) |
$pathHalfstar = JPATH_ROOT . substr($iconHalfstar, strlen(Uri::root(true))) | |
$star = file_exists($pathStar) ? file_get_contents($pathStar) : '' | |
$halfstar = file_exists($pathHalfstar) ? file_get_contents($pathHalfstar) : '' | |
$rating = (float) $row->rating | |
$rcount = (int) $row->rating_count | |
$stars = $rating | |
$img = '' | |
for($i=0; $i< floor($stars); $i++) if(($stars - floor($stars)) >=0.5) | for ( $i=$stars;$i< 5;$i++) |
endif | |
$halfstar = file_exists($pathHalfstar) ? file_get_contents($pathHalfstar) : '' |
if ( $context==='com_content.categories') $iconStar = HTMLHelper::_('image', 'plg_content_vote/vote-star.svg', '', '', true, true) |
$img = '' |
$pathHalfstar = JPATH_ROOT . substr($iconHalfstar, strlen(Uri::root(true))) |
if ( $iconStar===null||$iconHalfstar===null) $pathStar = JPATH_ROOT . substr($iconStar, strlen(Uri::root(true))) |
Référencé par ArticleModel\storeVote().
$rcount = (int) $row->rating_count |
$star = file_exists($pathStar) ? file_get_contents($pathStar) : '' |
Référencé par MenuType\delete().
$stars = $rating |
$wa = $this->app->getDocument()->getWebAssetManager() |
endif |
for ( $i=0;$i< floor( $stars);$i++) if (( $stars - floor( $stars)) >=0.5) for($i=$stars; $i< 5; $i++) |