Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-elements   php

Repository URL to install this package:

Version: 2.5.6 

/ jet-pricing-table / global / features-loop-item.php

<?php
/**
 * Features list item template
 */

$classes      = 'pricing-feature-' . $this->_loop_item( array( '_id' ) );
$classes     .= ' ' . $this->_loop_item( array( 'item_included' ) );
$tooltip      = $this->_loop_item( array( 'item_tooltip' ) ) ;
$tooltip_attr = ! empty( $tooltip ) ? ' title="' . $tooltip . '"' : '';

if ( $fold_enabled ) {
	$fold_visible_number = isset( $settings['fold_items_show'] ) ? $settings['fold_items_show'] : 1;

	$classes .= ( $this->_processed_index <= ( $fold_visible_number - 1 ) ) ? ' fold_visible' : '';
	$classes .= ( $this->_processed_index === ( $fold_visible_number - 1 ) ) ? ' fold_visible_last' : '';
}
?>
<div class="pricing-feature <?php echo $classes; ?>">
	<div class="pricing-feature__inner"<?php echo $tooltip_attr; ?>><?php
		echo $this->_pricing_feature_icon();
		printf( '<span class="pricing-feature__text">%s</span>', $this->_loop_item( array( 'item_text' ) ) );
	?></div>
</div>