PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
content-egg
/
templates
<?php /* * Name: Sorted offers list with product images * Modules: * Module Types: PRODUCT * */ __('Sorted offers list with product images', 'content-egg-tpl'); use ContentEgg\application\helpers\TemplateHelper; use ContentEgg\application\helpers\TextHelper; use ContentEgg\application\components\BlockTemplateManager; BlockTemplateManager::getInstance()->enqueueProductsStyle(); ?> <?php $all_items = TemplateHelper::sortAllByPrice($data, $order); $amazon_last_updated = TemplateHelper::getLastUpdateFormattedAmazon($data); ?> <div class="egg-container cegg-list-withlogos"> <?php if ($title): ?> <h3><?php echo esc_html($title); ?></h3> <?php endif; ?> <div class="egg-listcontainer"> <?php foreach ($all_items as $key => $item): ?> <div class="row-products"> <div class="col-md-2 col-sm-2 col-xs-12 cegg-image-cell"> <?php if ($item['img']): ?> <a rel="nofollow" target="_blank" href="<?php echo $item['url']; ?>"> <img src="<?php echo $item['img']; ?>" alt="<?php echo esc_attr($item['title']); ?>" /> </a> <?php endif; ?> </div> <div class="col-md-5 col-sm-5 col-xs-12 cegg-desc-cell"> <div class="cegg-no-top-margin cegg-list-logo-title"> <b><a rel="nofollow" target="_blank" href="<?php echo $item['url']; ?>"> <?php echo esc_html(TextHelper::truncate($item['title'], 100)); ?> </a></b> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12 cegg-price-cell text-center"> <div class="cegg-price-row"> <?php if ($item['price']): ?> <div class="cegg-price"><?php echo TemplateHelper::formatPriceCurrency($item['price'], $item['currencyCode']); ?></div> <?php elseif (!empty($item['extra']['toLowToDisplay'])): ?> <div class="text-muted"><?php _e('Too low to display', 'content-egg-tpl'); ?></div> <?php endif; ?> <?php if ($item['priceOld']): ?> <div class="text-muted"><strike><?php echo TemplateHelper::formatPriceCurrency($item['priceOld'], $item['currencyCode'], '<small>', '</small>'); ?></strike></div> <?php endif; ?> <?php if ($stock_status = TemplateHelper::getStockStatusStr($item)): ?> <div title="<?php echo \esc_attr(sprintf(__('Last updated on %s', 'content-egg-tpl'), TemplateHelper::getLastUpdateFormatted($item['module_id'], $post_id))); ?>" class="cegg-lineheight15 stock-status status-<?php echo \esc_attr(TemplateHelper::getStockStatusClass($item));?>"> <?php echo \esc_html($stock_status); ?> </div> <?php endif; ?> <?php if (!empty($item['extra']['totalNew'])): ?> <div class="cegg-font60 cegg-lineheight15"> <?php echo $item['extra']['totalNew']; ?> <?php _e('new', 'content-egg-tpl'); ?> <?php if ($item['extra']['lowestNewPrice']): ?> <?php _e('from', 'content-egg-tpl'); ?> <?php echo TemplateHelper::formatPriceCurrency($item['extra']['lowestNewPrice'], $item['currencyCode']); ?> <?php endif; ?> </div> <?php endif; ?> <?php if (!empty($item['extra']['totalUsed'])): ?> <div class="cegg-font60 cegg-lineheight15"> <?php echo $item['extra']['totalUsed']; ?> <?php _e('used', 'content-egg-tpl'); ?> <?php _e('from', 'content-egg-tpl'); ?> <?php echo TemplateHelper::formatPriceCurrency($item['extra']['lowestUsedPrice'], $item['currencyCode']); ?> </div> <?php endif; ?> <?php if ($item['module_id'] == 'Amazon' && $amazon_last_updated): ?> <div class="cegg-font60 cegg-lineheight15"> <?php _e('as of', 'content-egg-tpl'); ?> <?php echo $amazon_last_updated; ?> <?php TemplateHelper::printAmazonDisclaimer(); ?> </div> <?php endif; ?> </div> </div> <div class="col-md-2 col-sm-2 col-xs-12 cegg-btn-cell"> <div class="cegg-btn-row cegg-mb5"> <a rel="nofollow" target="_blank" href="<?php echo $item['url']; ?>" class="btn btn-success"><?php TemplateHelper::buyNowBtnText(true, $item); ?></a> </div> <?php if ($merhant = TemplateHelper::getMerhantName($item)): ?> <div class="cegg-mb5"> <?php if (!empty($item['domain'])): ?><img src="<?php echo esc_attr(TemplateHelper::getMerhantIconUrl($item, true)); ?>" /> <?php endif; ?><small class="text-muted title-case"><?php echo esc_html($merhant); ?></small> </div> <?php endif; ?> <?php if (!empty($item['extra']['IsEligibleForSuperSaverShipping'])): ?> <div class="text-success cegg-font60 cegg-lineheight15"><?php _e('Free shipping', 'content-egg-tpl'); ?></div> <?php endif; ?> </div> </div> <?php endforeach; ?> </div> </div>
[+]
..
[-] block_price_alert.php
[edit]
[-] wdgt_price_movers_list.php
[edit]
[-] wdgt_price_movers_grid.php
[edit]
[-] block_offers_logo.php
[edit]
[-] block_price_statistics.php
[edit]
[-] block_price_history.php
[edit]
[-] block_price_comparison.php
[edit]
[-] block_offers_list.php
[edit]
[-] block_offers_tile.php
[edit]
[-] block_offers_grid.php
[edit]