本文整理汇总了PHP中flexicontent_html::printbutton方法的典型用法代码示例。如果您正苦于以下问题:PHP flexicontent_html::printbutton方法的具体用法?PHP flexicontent_html::printbutton怎么用?PHP flexicontent_html::printbutton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flexicontent_html
的用法示例。
在下文中一共展示了flexicontent_html::printbutton方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo JText::_('Print');
?>
' 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;
示例2: if
$menu = JFactory::getApplication()->getMenu()->getActive();
if ($menu) $page_classes .= ' menuitem'.$menu->id;
?>
<div id="flexicontent" class="flexicontent <?php echo $page_classes; ?>" >
<!-- BOF buttons -->
<?php if (JRequest::getCmd('print')) : ?>
<?php if ($this->params->get('print_behaviour', 'auto') == 'auto') : ?>
<script type="text/javascript">window.addEvent('domready', function() { window.print(); });</script>
<?php elseif ($this->params->get('print_behaviour') == 'button') : ?>
<input type='button' id='printBtn' name='printBtn' value='<?php echo JText::_('Print');?>' class='btn btn-info' onclick='this.style.display="none"; window.print(); return false;'>
<?php endif; ?>
<?php elseif ( $this->params->get('show_print_icon') || $this->params->get('show_email_icon') || $this->params->get('show_feed_icon', 1) || $this->params->get('show_addbutton', 1) ) : ?>
<p class="buttons">
<?php echo flexicontent_html::addbutton( $this->params, $this->category ); ?>
<?php echo flexicontent_html::printbutton( $this->print_link, $this->params ); ?>
<?php echo flexicontent_html::mailbutton( 'category', $this->params, $this->category->slug ); ?>
<?php echo flexicontent_html::feedbutton( 'category', $this->params, $this->category->slug ); ?>
</p>
<?php endif; ?>
<!-- EOF buttons -->
<!-- BOF page title -->
<?php if ($this->params->get('show_page_heading', 1)) : ?>
<header class="group">
<h1 class="componentheading">
<?php echo $this->params->get( 'page_heading' ) ?>
</h1>
<?php endif; ?>
<!-- EOF page title -->