PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
inc
/
parts
<?php if ( ! defined( 'ABSPATH' ) ) {exit;}?> <?php if(defined('\ContentEgg\PLUGIN_PATH')):?> <?php $pricesarray = ContentEgg\application\helpers\TemplateHelper::priceHistoryPrices($unique_id, $module_id, $limit = 3); $pricescheck = ''; if (!empty($pricesarray) && is_array($pricesarray)){ $pricescheck = (count($pricesarray) > 1) ? true : ''; } ?> <?php if($pricescheck):?> <?php $rand = mt_rand();?> <?php $currency_code = (!empty($syncitem['currencyCode'])) ? $syncitem['currencyCode'] : ''; $currency_rate = 1; ?> <?php if(rehub_option('ce_custom_currency')) { $currency_code = rehub_option('ce_custom_currency'); $currency_rate = ContentEgg\application\helpers\CurrencyHelper::getCurrencyRate($syncitem['currencyCode'], $currency_code); if (!$currency_rate) $currency_rate = 1; }?> <span class="csspopuptrigger floatright" data-popup="pricehistory_<?php echo ''.$rand;?>"><i class="far fa-bar-chart" aria-hidden="true"></i> <?php _e('Price history', 'rehub_framework');?></span> <div class="csspopup" id="pricehistory_<?php echo ''.$rand;?>"> <div class="csspopupinner"> <span class="cpopupclose">×</span> <table class="rh-tabletext-block"> <tr> <th class="rh-tabletext-block-heading" colspan="2"><?php _e('Price history for ', 'rehub_framework');?><?php echo esc_attr($syncitem['title']); ?></th> </tr> <tr> <td class="rh-tabletext-block-left"> <div class="rh-tabletext-block-latest"> <div class="mb10"><strong><?php _e('Latest updates:', 'rehub_framework');?></strong></div> <?php $prices = ContentEgg\application\helpers\TemplateHelper::priceHistoryPrices($unique_id, $module_id, $limit = 8); ?> <?php if ($prices): ?> <ul> <?php foreach ($prices as $price): ?> <li> <?php echo ContentEgg\application\helpers\TemplateHelper::formatPriceCurrency($price['price']*$currency_rate, $currency_code); ?> - <?php echo date(get_option('date_format'), $price['date']); ?> </li> <?php endforeach; ?> </ul> <?php endif; ?> <?php $since = ContentEgg\application\helpers\TemplateHelper::priceHistorySinceDate($unique_id, $module_id); ?> <?php if ($since): ?> <?php _e('Since:', 'rehub_framework');?> <?php echo date(get_option('date_format'), $since); ?> <?php endif; ?> </div> </td> <td class="rh-tabletext-block-right"> <?php ContentEgg\application\helpers\TemplateHelper::priceHistoryMorrisChart($unique_id, $module_id, 180, array('lineWidth' => 2, 'postUnits' => ' ' . $currency_code, 'goals' => array((int) $syncitem['price']*$currency_rate), 'fillOpacity' => 0.5), array('style' => 'height: 230px;')); ?> <ul class="rh-lowest-highest"> <?php $price = ContentEgg\application\helpers\TemplateHelper::priceHistoryMax($unique_id, $module_id); ?> <?php if ($price): ?> <li> <b style="color: red;"><?php _e('Highest Price:', 'rehub_framework');?></b> <?php echo ContentEgg\application\helpers\TemplateHelper::formatPriceCurrency($price['price']*$currency_rate, $currency_code); ?> - <?php echo date(get_option('date_format'), $price['date']); ?> </li> <?php endif; ?> <?php $price = ContentEgg\application\helpers\TemplateHelper::priceHistoryMin($unique_id, $module_id); ?> <?php if ($price): ?> <li> <b style="color: green;"><?php _e('Lowest Price:', 'rehub_framework');?></b> <?php echo ContentEgg\application\helpers\TemplateHelper::formatPriceCurrency($price['price']*$currency_rate, $currency_code); ?> - <?php echo date(get_option('date_format'), $price['date']); ?> </li> <?php endif; ?> </ul> </td> </tr> </table> </div> </div> <?php endif;?> <?php endif;?>
[+]
..
[-] woocolumnpart.php
[edit]
[-] affeggurl.php
[edit]
[-] woogridcompact.php
[edit]
[-] compact_grid.php
[edit]
[-] simplepostlist.php
[edit]
[-] query_type3.php
[edit]
[-] column_grid.php
[edit]
[-] post_share.php
[edit]
[-] branded_banner.php
[edit]
[-] singleofferpart.php
[edit]
[-] featured.php
[edit]
[-] query_type2.php
[edit]
[-] affeggbutton.php
[edit]
[-] pricealertpopup.php
[edit]
[-] query_type1.php
[edit]
[-] woo_slider.php
[edit]
[-] blogrelated.php
[edit]
[-] top_image.php
[edit]
[-] woocompactcarousel.php
[edit]
[-] home_carousel.php
[edit]
[-] multiofferpart.php
[edit]
[-] gallery_slider.php
[edit]
[-] video_featured.php
[edit]
[-] news_ticker.php
[edit]
[-] review_slider.php
[edit]
[-] postlistpart.php
[edit]
[-] pricehistorypopup.php
[edit]
[-] woolistpart.php
[edit]
[-] prevnext.php
[edit]
[-] related_posts.php
[edit]
[-] woogridpart.php
[edit]
[-] woolistmain.php
[edit]