PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
content-egg-templates
<?php /* * Name: Sidebar Top Offers * */ use ContentEgg\application\helpers\TemplateHelper; use ContentEgg\application\helpers\CurrencyHelper; ?> <div class="rh_deal_block"> <?php $i = 0; ?> <?php foreach ($items as $key => $item): ?> <?php $aff_thumb = (!empty($item['img'])) ? esc_attr($item['img']) : '' ;?> <?php $offer_title = (!empty($item['title'])) ? wp_trim_words( $item['title'], 12, '...' ) : ''; ?> <?php $offer_post_url = $item['url'] ;?> <?php $afflink = apply_filters('rh_post_offer_url_filter', $offer_post_url );?> <?php $offer_price = (!empty($item['price'])) ? $item['price'] : ''; ?> <?php $offer_price_old = (!empty($item['_price_movers']['price_old'])) ? $item['_price_movers']['price_old'] : ''; ?> <?php $currency_code = (!empty($item['currencyCode'])) ? $item['currencyCode'] : ''; ?> <?php if($offer_price && rehub_option('ce_custom_currency')) { $currency_code = rehub_option('ce_custom_currency'); $currency_rate = CurrencyHelper::getCurrencyRate($item['currencyCode'], $currency_code); if (!$currency_rate) $currency_rate = 1; $offer_price = $offer_price * $currency_rate; if($offer_price_old){$offer_price_old = $offer_price_old * $currency_rate;} }?> <div class="deal_block_row"> <div class="deal-pic-wrapper"> <a rel="nofollow" target="_blank" class="re_track_btn" href="<?php echo esc_url($afflink); ?>"> <?php WPSM_image_resizer::show_static_resized_image(array('src'=> $aff_thumb, 'crop'=> false, 'width'=> 70, 'height'=> 70, 'no_thumb_url' => get_template_directory_uri() . '/images/default/noimage_70_70.png'));?> </a> </div> <div class="rh-deal-details"> <div> <h5 class="fontnormal font90 mt0 mb15"> <a rel="nofollow" target="_blank" class="re_track_btn" href="<?php echo esc_url($afflink) ?>"> <?php echo esc_attr($offer_title); ?> </a> </h5> </div> <div class="rh-deal-price-cegg"> <div class="floatleft"> <?php if ($offer_price): ?> <div class="product-price-new lineheight15"> <span class="font110 rehub-main-color"><?php echo TemplateHelper::formatPriceCurrency($offer_price, $currency_code); ?></span> <?php if ($item['_price_movers']['discount_value'] > 0): ?> <i class="far fa-arrow-down greencolor"></i> <?php endif; ?> <?php if ($item['_price_movers']['discount_value'] < 0): ?> <i class="far fa-arrow-up redcolor"></i> <?php endif; ?> <i class="far fa-question-circle greycolor" title="<?php echo \esc_attr(__('as of', 'rehub_framework') . ' ' . TemplateHelper::formatDatetime($item['_price_movers']['create_date'])); ?>"></i> </div> <?php endif; ?> <?php if ($item['_price_movers']['discount_value']): ?> <span class="product-price-old rh_opacity_5 font80"> <del> <?php echo TemplateHelper::formatPriceCurrency($offer_price_old, $currency_code); ?> </del> </span> <?php endif; ?> </div> <div class="floatright rh-deal-tag"> <?php if ($logo = TemplateHelper::getMerhantLogoUrl($item, true)): ?> <img class="cegg-merhant-logo" src="<?php echo esc_attr($logo); ?>" title="<?php echo esc_attr($item['domain']); ?>" alt="<?php echo esc_attr($item['domain']); ?>" /> <?php endif; ?> </div> </div> </div> </div> <?php endforeach; ?> </div>
[+]
..
[+]
AvantlinkProducts
[+]
Flipkart
[+]
Optimisemedia
[+]
Udemy
[+]
QwantImages
[+]
Zanox
[+]
AffilinetProducts
[+]
Walmart
[+]
Youtube
[+]
GoogleImages
[+]
Twitter
[+]
Impactradius
[+]
LomadeeProducts
[-] block_all_logolist_widget.php
[edit]
[+]
PayTM
[+]
Shareasale
[+]
Ebay
[-] block_all_merchant_widget.php
[edit]
[-] .htaccess
[edit]
[+]
Pepperjam
[-] wdgt_price_movers_top_offers.php
[edit]
[-] block_all_offers_logo.php
[edit]
[+]
BingImages
[+]
Flickr
[-] block_all_pricehistory_full.php
[edit]
[+]
AE
[-] wdgt_price_movers_grid.php
[edit]
[+]
TradedoublerProducts
[+]
Offer
[+]
Bolcom
[+]
Linkwise
[+]
Aliexpress
[+]
Envato
[+]
Viglink
[-] block_all_simple_list.php
[edit]
[+]
Kelkoo
[+]
GoogleNews
[+]
GdeSlon
[+]
Amazon
[+]
Affiliatewindow
[+]
Linkshare
[+]
CjProducts
[+]
GoogleBooks
[-] block_all_offers_list.php
[edit]
[+]
TradetrackerProducts
[-] block_all_offers_grid.php
[edit]
[+]
AdmitadProducts
[-] block_all_pricealert_full.php
[edit]