PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
content-egg
/
templates
<?php /* * Name: Grid with prices (3 column) * Modules: * Module Types: PRODUCT * */ __('Grid with prices (3 column)', 'content-egg-tpl'); use ContentEgg\application\helpers\TemplateHelper; ?> <div class="egg-container egg-grid"> <?php if ($title): ?> <h3><?php echo esc_html($title); ?></h3> <?php endif; ?> <div class="container-fluid"> <?php $i = 0; ?> <div class="row"> <?php foreach ($data as $module_id => $items): ?> <?php foreach ($items as $item): ?> <div class="col-md-4 cegg-gridbox"> <a rel="nofollow" target="_blank" href="<?php echo esc_url($item['url']) ?>"> <div class="cegg-thumb"> <?php if ($item['percentageSaved'] && $item['percentageSaved'] < 100 && $item['percentageSaved'] > 0): ?> <div class="cegg-promotion"> <span class="cegg-discount">- <?php echo round($item['percentageSaved']); ?>%</span> </div> <?php endif; ?> <?php if ($item['img']): ?> <img src="<?php echo esc_attr($item['img']) ?>" alt="<?php echo esc_attr($item['title']); ?>" /> <?php endif; ?> </div> <div class="producttitle"> <?php if ($merhant = TemplateHelper::getMerhantName($item)): ?> <div class="cegg-mb10"> <?php if (!empty($item['domain'])): ?><img src="<?php echo esc_attr(TemplateHelper::getMerhantIconUrl($item, true)); ?>" /> <?php endif; ?><small class="title-case"><?php echo esc_html($merhant); ?></small> </div> <?php endif; ?> <?php echo esc_html(TemplateHelper::truncate($item['title'], 80)); ?> </div> <?php if ((int) $item['rating'] > 0 && (int) $item['rating'] <= 5): ?> <div class="cegg-title-rating"> <span class="rating_small"><?php echo str_repeat("<span>★</span>", (int) $item['rating']); echo str_repeat("<span>☆</span>", 5 - (int) $item['rating']); ?></span> <?php if (!empty($item['reviewsCount'])): ?><small class="cegg-reviews-count small-text">(<?php echo (int) $item['reviewsCount']; ?>)</small><?php endif; ?> </div> <?php elseif (!empty($item['extra']['data']['rating'])): ?> <div class="cegg-title-rating"> <span class="rating_small"><?php echo str_repeat("<span>★</span>", (int) $item['extra']['data']['rating']); echo str_repeat("<span>☆</span>", 5 - (int) $item['extra']['data']['rating']); ?></span> </div> <?php endif; ?> <div class="productprice"> <?php if ($item['price']): ?> <?php if ($item['priceOld']): ?><strike><?php echo TemplateHelper::formatPriceCurrency($item['priceOld'], $item['currencyCode'], '<small>', '</small>'); ?></strike> <?php endif; ?> <span class="cegg-price"><?php echo TemplateHelper::formatPriceCurrency($item['price'], $item['currencyCode']); ?></span> <?php endif; ?> </div> <?php if (!empty($item['extra']['sellingStatus']['bidCount'])): ?> <div class="cegg-ebay-grid-bids"><small> <?php _e('Bids:', 'content-egg-tpl'); ?> <?php echo $item['extra']['sellingStatus']['bidCount']; ?> </small></div> <?php endif; ?> <div class="cegg-btn-grid cegg-hidden"> <a rel="nofollow" target="_blank" href="<?php echo $item['url']; ?>" class="btn btn-success"><?php TemplateHelper::buyNowBtnText(true, $item); ?></a> </div> </a> </div> <?php $i++; ?> <?php if ($i % 3 == 0): ?> <div class="clearfix"></div> <?php endif; ?> <?php endforeach; ?> <?php endforeach; ?> </div> </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]