403Webshell
Server IP : 5.129.245.98  /  Your IP : 216.73.217.98
Web Server : Apache/2.4.66 (Debian)
System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/content-egg/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/content-egg/templates/block_price_comparison_card.php
<?php
/*
 * Name: Price comparison card
 * Modules:
 * Module Types: PRODUCT
 *
 */

use ContentEgg\application\helpers\TemplateHelper;

defined('\ABSPATH') || exit;
$items = TemplateHelper::sortAllByPrice($data);

$item = TemplateHelper::selectItemByDescription($items);
if ($title)
    $item['title'] = $title;

if (!empty($params['btn_text']))
    $btn_text = $params['btn_text'];
else
    $btn_text = '';

?>

<div class="container px-0 mb-5 mt-1" <?php $this->colorMode(); ?>>
    <?php $this->setItem($item, 1); ?>
    <div class="cegg-item-card cegg-card <?php TemplateHelper::border($params, 'border'); ?>">

        <?php if ($this->isVisible('number', false)): ?>
            <div class="position-absolute top-50 z-3 start-0 translate-middle">
                <?php TemplateHelper::number($item, $params, $i); ?>
            </div>
        <?php endif; ?>

        <?php $badge_position = (TemplateHelper::getColOrder($params, 1) == 1) ? 'left' : 'right'; ?>
        <?php if ($this->isVisible('badge')) TemplateHelper::badge1($item, $params, $badge_position); ?>

        <div class="row p-3">
            <div class="cegg-item-card-img-col <?php TemplateHelper::conditionClass(TemplateHelper::getColOrder($params, 1) == 1, 'col-md-5', 'col-md-5'); ?> position-relative<?php TemplateHelper::colsOrder($params, 1, 'md'); ?>" style="max-width: 400px;">

                <?php if ($this->isVisible('img')): ?>
                    <div class="position-relative">

                        <?php if ($this->isVisible('percentageSaved', false)): ?>
                            <div class="badge bg-danger rounded-1 position-absolute bottom-0 end-0 z-3">-<?php echo esc_html($item['percentageSaved']); ?>%</div>
                        <?php endif; ?>

                        <?php TemplateHelper::openATag($item); ?>
                        <div class="ratio<?php TemplateHelper::imgRatio($params, 'ratio-1x1'); ?>">
                            <?php TemplateHelper::displayImage($item, 350, 350, array('class' => 'object-fit-scale rounded')); ?>
                        </div>
                        <?php TemplateHelper::closeATag(); ?>

                    </div>
                <?php endif; ?>

            </div>

            <div class="col<?php TemplateHelper::conditionClass(TemplateHelper::getColOrder($params, 2) == 1, 'ps-xl-4', 'ps-xl-3'); ?><?php TemplateHelper::colsOrder($params, 2, 'md'); ?>">

                <?php if ($this->isVisible('title')): ?>
                    <?php TemplateHelper::title($item, 'card-title h4 fw-normal  cegg-text-truncate-2 pt-2', 'div', $params); ?>
                <?php else: ?>
                    <div class="mb-5"></div>
                <?php endif; ?>
                <?php if ($this->isVisible('subtitle')): ?>
                    <div class="cegg-item-subtitle fs-6 text-body-secondary cegg-text-truncate-2"><?php TemplateHelper::subtitle($item); ?></div>
                <?php endif; ?>

                <?php if ($this->isVisible('rating', false)): ?>
                    <div class="pt-0 fs-4">
                        <?php TemplateHelper::ratingStars($item, true); ?>
                    </div>
                <?php endif; ?>

                <?php if ($this->isVisible('description', false)): ?>
                    <div class="cegg-desc-small small lh-sm pt-3"><?php TemplateHelper::description($item); ?></div>
                <?php endif; ?>

                <div class="d-grid gap-2 mt-3" style="max-width: 450px;">
                    <?php foreach ($items as $i => $btn_item): ?>
                        <?php
                        if (empty($btn_text) && !TemplateHelper::isLinkedToBridge($btn_item))
                        {
                            if ($btn_item['price'])
                                $params['btn_text'] = sprintf(TemplateHelper::__('%s at %s'), '%PRICE%', '%MERCHANT%');
                            elseif ($item['module_id'] == 'Udemy')
                                $params['btn_text'] = sprintf(TemplateHelper::__('View on %s'), '%MERCHANT%');
                            else
                                $params['btn_text'] = sprintf(TemplateHelper::__('View Price at %s'), '%MERCHANT%');
                        }
                        ?>
                        <?php $this->setItem($btn_item, $i); ?>
                        <?php if ($this->isVisible('button')): ?>
                            <?php TemplateHelper::button($btn_item, $params); ?>
                        <?php endif; ?>
                    <?php endforeach; ?>
                </div>

            </div>
        </div>
    </div>
    <?php $this->renderBlock('disclaimer'); ?>

</div>

Youez - 2016 - github.com/yon3zu
LinuXploit