Esempio n. 1
0
            ?>
' 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;
            ?>
Esempio n. 2
0
	
	
  <?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 -->