本文整理汇总了PHP中CKunenaLink::GetPollURL方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetPollURL方法的具体用法?PHP CKunenaLink::GetPollURL怎么用?PHP CKunenaLink::GetPollURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetPollURL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
">
<?php
echo JText::_('COM_KUNENA_POLL_BUTTON_VOTE');
?>
</a>
</td>
</tr>
<?php
} else {
?>
<tr class="krow2">
<td colspan="4">
<a href = <?php
echo CKunenaLink::GetPollURL('changevote', $this->id, $this->catid);
?>
>
<?php
echo JText::_('COM_KUNENA_POLL_BUTTON_CHANGEVOTE');
?>
</a>
</td>
</tr>
<?php
}
?>
</table>
<?php
}
示例2: if
echo " ( ".implode(', ', $this->users_voted_list)." ) "; ?>
<?php if ( $this->usercount > '5' ) : ?><a href="#" id="kpoll-moreusers"><?php echo JText::_('COM_KUNENA_POLLUSERS_MORE')?></a>
<div style="display: none;" id="kpoll-moreusers-div"><?php echo implode(', ', $this->users_voted_morelist); ?></div>
<?php endif; ?>
</td>
</tr>
<tr class="krow<?php echo $row%2+1;?>">
<td colspan="4" class="kpoll-info">
<?php if (!$this->me->exists()) : ?>
<?php echo JText::_('COM_KUNENA_POLL_NOT_LOGGED'); ?>
<?php elseif ($this->voted && !$this->config->pollallowvoteone) : ?>
<a class="tk-submit-button" href="<?php echo CKunenaLink::GetPollURL('vote', $this->topic->id, $this->category->id);?>">
<?php echo JText::_('COM_KUNENA_POLL_BUTTON_VOTE'); ?>
</a>
<?php else : ?>
<a class="tk-cancel-button" href="<?php echo CKunenaLink::GetPollURL('changevote', $this->topic->id, $this->category->id); ?>">
<?php echo JText::_('COM_KUNENA_POLL_BUTTON_CHANGEVOTE'); ?>
</a>
<?php endif; ?>
<?php if( $this->me->isModerator() ) : ?>
<a class="tk-cancel-button" href="<?php echo KunenaRoute::_("index.php?option=com_kunena&view=topic&id={$this->topic->id}&catid={$this->category->id}&pollid={$this->poll->id}&task=resetvotes&".JUtility::getToken() .'=1') ?>">Reset votes</a>
<?php endif; ?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</div>
示例3: elseif
<?php
} elseif ($this->voted && !$this->config->pollallowvoteone) {
?>
<a href="<?php
echo CKunenaLink::GetPollURL('vote', $this->topic->id, $this->category->id);
?>
">
<?php
echo JText::_('COM_KUNENA_POLL_BUTTON_VOTE');
?>
</a>
<?php
} else {
?>
<a href="<?php
echo CKunenaLink::GetPollURL('changevote', $this->topic->id, $this->category->id);
?>
">
<?php
echo JText::_('COM_KUNENA_POLL_BUTTON_CHANGEVOTE');
?>
</a>
<?php
}
?>
<?php
if ($this->me->isModerator($this->topic->getCategory())) {
?>
<a href="<?php
echo KunenaRoute::_("index.php?option=com_kunena&view=topic&id={$this->topic->id}&catid={$this->category->id}&pollid={$this->poll->id}&task=resetvotes&" . JUtility::getToken() . '=1');
?>