本文整理汇总了PHP中Ajax::change方法的典型用法代码示例。如果您正苦于以下问题:PHP Ajax::change方法的具体用法?PHP Ajax::change怎么用?PHP Ajax::change使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ajax
的用法示例。
在下文中一共展示了Ajax::change方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setOwnNavigation
/**
* Set own navigation
*/
protected function setOwnNavigation()
{
$LinkList = '';
$LinkList .= '<li>' . Ajax::change(__('Personal bests'), 'statistics-inner', '#bestzeiten', 'triggered') . '</li>';
$LinkList .= '<li>' . Ajax::change(__('All races'), 'statistics-inner', '#wk-tablelist') . '</li>';
$this->setToolbarNavigationLinks(array($LinkList));
}
示例2: getRightSymbol
/**
* Method for getting the right symbol(s)
* @see PluginPanel::getRightSymbol()
*/
protected function getRightSymbol()
{
$html = '<ul>';
foreach ($this->getTimeset() as $i => $timeset) {
$html .= '<li>' . Ajax::change($timeset['name'], 'sports', '#sports_' . $i) . '</li>';
}
return $html . '</ul>';
}
示例3: displayChangeMenu
/**
* Display change menu
*/
private function displayChangeMenu()
{
if (count($this->RowsTabbedTitle) <= 1) {
return;
}
echo '<div class="change-menu">';
foreach ($this->RowsTabbedTitle as $i => $Title) {
echo Ajax::change($Title, 'training-view-tabbed-' . $this->cssId(), 'training-view-tabbed-' . $this->cssId() . '-' . $i);
}
echo '</div>';
}
示例4: displayChangeMenu
/**
* Display change menu
*/
private function displayChangeMenu()
{
if (count($this->Links) <= 1) {
return;
}
echo '<div class="change-menu">';
foreach ($this->Links as $key => $Title) {
echo Ajax::change($Title, 'training-view-tabbed-' . $this->cssId(), 'training-view-tabbed-' . $this->cssId() . '-' . $key);
}
if (count($this->Links) > 1) {
echo Ajax::change('<i class="fa fa-fw fa-bars"></i> ' . __('All'), 'training-view-tabbed-' . $this->cssId(), 'training-view-tabbed-' . $this->cssId());
}
echo '</div>';
}
示例5: getRightSymbol
/**
* Method for getting the right symbol(s)
*/
protected function getRightSymbol()
{
$Links = '';
$Links .= '<li class="with-submenu"><span class="link">' . __('Choose time range') . '</span>';
$Links .= '<ul class="submenu">';
foreach ($this->Timeset as $i => $timeset) {
$Link = Ajax::change($timeset['name'], 'sports', '#sports_' . $i);
if ($i == $this->DefaultTimesetIndex) {
$Link = Ajax::insertClass($Link, 'triggered');
}
$Links .= '<li>' . $Link . '</li>';
}
$Links .= '</ul>';
$Links .= '</li>';
return '<ul>' . $Links . '</ul>';
}
示例6: getRightSymbol
/**
* Method for getting the right symbol(s)
* @see PluginPanel::getRightSymbol()
*/
protected function getRightSymbol()
{
$Code = '<ul>';
foreach ($this->getTimeset() as $i => $timeset) {
if (!$this->Configuration()->value('ziel_show_' . $i)) {
continue;
}
$Code .= '<li>' . Ajax::change($timeset['name'], 'bunny', '#bunny_' . $i) . '</li>';
}
return $Code . '</ul>';
}
示例7: link
/**
* Change-link for tablist
* @return string
*/
public final function link()
{
return Ajax::change($this->title(), 'ajax', $this->cssID(), $this->visible ? 'triggered' : '');
}
示例8: displayNavigation
/**
* Display navigation
*/
protected function displayNavigation()
{
$Links = array();
foreach ($this->Tabs as $id => $Tab) {
$Links[] = array('tag' => Ajax::change($Tab['title'], $this->containerID, '#' . $id, $Tab['active'] ? 'triggered' : ''));
}
echo '<div class="panel-menu">';
echo Ajax::toolbarNavigation($Links);
echo '</div>';
}