本文整理汇总了PHP中flexicontent_html::statebutton方法的典型用法代码示例。如果您正苦于以下问题:PHP flexicontent_html::statebutton方法的具体用法?PHP flexicontent_html::statebutton怎么用?PHP flexicontent_html::statebutton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flexicontent_html
的用法示例。
在下文中一共展示了flexicontent_html::statebutton方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<?php if ($item->event->beforeDisplayContent) : ?>
<!-- BOF beforeDisplayContent -->
<div class="fc_beforeDisplayContent group">
<?php echo $item->event->beforeDisplayContent; ?>
</div>
<!-- EOF beforeDisplayContent -->
<?php endif; ?>
<?php
$show_editbutton = $this->params->get('show_editbutton', 1);
$pdfbutton = flexicontent_html::pdfbutton( $item, $this->params );
$mailbutton = flexicontent_html::mailbutton( FLEXI_ITEMVIEW, $this->params, $item->categoryslug, $item->slug, 0, $item );
$printbutton = flexicontent_html::printbutton( $this->print_link, $this->params );
$editbutton = $show_editbutton ? flexicontent_html::editbutton( $item, $this->params ) : '';
$statebutton = $show_editbutton ? flexicontent_html::statebutton( $item, $this->params ) : '';
$approvalbutton = flexicontent_html::approvalbutton( $item, $this->params );
?>
<?php if ($pdfbutton || $mailbutton || $printbutton || $editbutton || $statebutton || $approvalbutton) : ?>
<!-- BOF buttons -->
<p class="buttons">
<?php echo $pdfbutton; ?>
<?php echo $mailbutton; ?>
<?php echo $printbutton; ?>
<?php echo $editbutton; ?>
<?php echo $statebutton; ?>
<?php echo $approvalbutton; ?>
</p>
<!-- EOF buttons -->
<?php endif; ?>
示例2:
' class='btn btn-info' onclick='this.style.display="none"; window.print(); return false;'>
<?php
}
?>
<!-- EOF Print handling -->
<?php
} else {
?>
<?php
$pdfbutton = flexicontent_html::pdfbutton($item, $this->params);
$mailbutton = flexicontent_html::mailbutton(FLEXI_ITEMVIEW, $this->params, $item->categoryslug, $item->slug, 0, $item);
$printbutton = flexicontent_html::printbutton($this->print_link, $this->params);
$editbutton = flexicontent_html::editbutton($item, $this->params);
$statebutton = flexicontent_html::statebutton($item, $this->params);
$approvalbutton = flexicontent_html::approvalbutton($item, $this->params);
?>
<?php
if ($pdfbutton || $mailbutton || $printbutton || $editbutton || $statebutton || $approvalbutton) {
?>
<!-- BOF buttons -->
<div class="buttons">
<?php
echo $pdfbutton;
?>
<?php
echo $mailbutton;
?>
<?php
示例3:
}
?>
</td>
<?php
}
?>
<td class="col_type">
<?php
echo $row->type_name;
?>
</td>
<td class="col_state">
<?php
echo flexicontent_html::statebutton($row, $row->params, $addToggler = $limit <= $this->inline_ss_max);
?>
<?php
if ($extra_img) {
?>
<img src="components/com_flexicontent/assets/images/<?php
echo $extra_img;
?>
" width="16" height="16" style="border: 0;" class="<?php
echo $tip_class;
?>
" alt="<?php
echo $extra_alt;
?>
" title="<?php
echo $extra_alt;