HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/onlineshop/wp-content/themes/nautica/vc_templates/engo_custom_deals.php
<?php

/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     Engotheme Team <engotheme@gmail.com, support@engotheme.com>
 * @copyright  Copyright (C) 2015 engotheme.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @website  http://www.engotheme.com
 * @support  http://www.engotheme.com/support/
 */
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract($atts);

$img = wp_get_attachment_image_src($photo,'full');
$time_sale = strtotime($end_date_countdown);

?>
<div class="widget_custom_deals widget widget_products <?php if ($el_class!=''){ echo esc_attr($el_class);} ?>">
    <div class="item-product">
        <div class="product-block">
            <div  class="image">
                <div class="background-over animation-element engo-PullDown" style="background: <?php echo esc_attr($background_color);?>"></div>
                <img class="animated" src="<?php echo esc_url_raw($img[0]);?>" alt="<?php echo esc_attr(esc_attr($title)); ?>" />
            </div>
            <div class="caption">
                <?php if($title!=''){ ?>
                <div class="deal-name">
                    <h3 class="widget-title">
                        <a href="<?php echo esc_url( $link_url ); ?>"><?php echo esc_attr($title); ?></a>
                    </h3>
                </div>
                <?php } ?>
                <div class="time">
                    <?php if(   $time_sale ) {  ?>
                        <div class="pts-countdown clearfix" data-countdown="countdown"
                             data-date="<?php echo date('m',$time_sale).'-'.date('d',$time_sale).'-'.date('Y',$time_sale).'-'. date('H',$time_sale) . '-' . date('i',$time_sale) . '-' .  date('s',$time_sale) ; ?>">
                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>
    </div>
</div>