PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
content-egg
/
application
/
templates
<?php /* Name: Price tracker & alert */ __('Price tracker & alert', 'content-egg-tpl'); use ContentEgg\application\helpers\TemplateHelper; ?> <div class="egg-container cegg-price-tracker-item"> <?php if ($title): ?> <h3><?php echo esc_html($title); ?></h3> <?php endif; ?> <div class="products"> <?php foreach ($items as $item): ?> <div class="row"> <div class="col-md-8"> <h3 class="media-heading" id="<?php echo esc_attr($item['unique_id']); ?>"><?php echo $item['title']; ?><?php if ($item['manufacturer']): ?>, <?php echo esc_html($item['manufacturer']); ?><?php endif; ?></h3> <?php if (!empty($item['extra']['data']['rating'])): ?> <span class="rating"><?php echo str_repeat("<span>★</span>", $item['extra']['data']['rating']); echo str_repeat("<span>☆</span>", 5 - $item['extra']['data']['rating']); ?></span> <?php endif; ?> <div class="panel panel-default cegg-price-tracker-panel"> <div class="panel-body"> <div class="row cegg-no-bottom-margin"> <div class="col-md-7 col-sm-7 col-xs-12 cegg-mb15"> <?php if ($item['price']): ?> <span class="cegg-price"> <small><?php _e('Price', 'content-egg-tpl'); ?>:</small> <?php echo TemplateHelper::formatPriceCurrency($item['price'], $item['currencyCode'], '<span class="cegg-currency">', '</span>'); ?> </span> <?php endif; ?> <?php if (isset($item['stock_status']) && $item['stock_status'] == \ContentEgg\application\components\ContentProduct::STOCK_STATUS_OUT_OF_STOCK): ?> <mark title="<?php echo \esc_attr(sprintf(__('Last updated on %s', 'content-egg-tpl'), TemplateHelper::getLastUpdateFormatted($module_id, $post_id))); ?>" class="stock-status status-<?php echo \esc_attr(TemplateHelper::getStockStatusClass($item)); ?>"> <?php echo \esc_html(TemplateHelper::getStockStatusStr($item)); ?> </mark> <?php endif; ?> <?php if ($item['price']): ?> <br><small class="text-muted"><?php _e('as of', 'content-egg-tpl'); ?> <?php echo TemplateHelper::getLastUpdateFormatted($module_id, $post_id); ?></small> <?php endif; ?> </div> <div class="col-md-5 col-sm-5 col-xs-12 text-muted"> <a rel="nofollow" target="_blank" href="<?php echo $item['url']; ?>" class="btn btn-success"><?php TemplateHelper::buyNowBtnText(true, $item); ?></a> <?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; ?> </div> </div> </div> </div> <?php $this->renderBlock('price_alert_inline', array('item' => $item, 'input_class' => 'input-sm', 'btn_class' => 'btn-sm')); ?> </div> <div class="col-md-4"> <?php if ($item['img']): ?> <div class="cegg-thumb"> <a rel="nofollow" target="_blank" href="<?php echo $item['url']; ?>"> <img src="<?php echo $item['img']; ?>" alt="<?php echo esc_attr($item['title']); ?>" /> </a> </div> <?php endif; ?> </div> </div> <?php $this->renderBlock('price_history', array('item' => $item)); ?> <?php endforeach; ?> </div> </div>
[+]
..
[-] data_grid.php
[edit]
[+]
blocks
[-] data_list.php
[edit]
[-] data_item.php
[edit]
[-] data_price_tracker_alert.php
[edit]
[-] data_coupon.php
[edit]