Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/app/code/Smartwave/Dailydeals/view/frontend/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/app/code/Smartwave/Dailydeals/view/frontend/templates/list.phtml
<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
use Magento\Framework\App\Action\Action;

// @codingStandardsIgnoreFile

?>
<?php
/**
 * Product list template
 *
 * @var $block \Magento\Catalog\Block\Product\ListProduct
 */
?>
<h1>Daily Deal Collection</h1>
<?php

$dailydealproductCollection = $block->getDailydealEnableProduct();
$_helper = $this->helper('Magento\Catalog\Helper\Output');

$_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
// Daily deal Helper
$dailydealhelper=$this->helper('Smartwave\Dailydeals\Helper\Data');
$_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
$_category_config = $_portohelper->getConfig('porto_settings/category');
$_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
$_product_label_config = $_portohelper->getConfig('porto_settings/product_label');
$_lazyload = $_portohelper->getConfig('porto_settings/optimization/lazyload');
$iterator = 1;
?>
<?php if (!$dailydealproductCollection->count()): ?>
    <div class="message info empty"><div><?php /* @escapeNotVerified */ echo __('We can\'t find products matching the selection.') ?></div></div>
<?php else: ?>
    <?php
    if ($block->getMode() == 'grid') {
      $viewMode = 'grid';
      $image = 'category_page_grid';
      $hover_image = 'category_page_grid-hover';
      $showDescription = false;
      $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
      if($_category_grid_config['columns']> 3){
        $columns = 'columns'.$_category_grid_config['columns'];
      }else{
        $columns = 'columns4';
      }

      $product_type = $_category_grid_config['product_type'];
      if($product_type == null) {
          $product_type = 1;
      }
    } else {
      $viewMode = 'list';
      $image = 'category_page_list';
      $hover_image = 'category_page_grid-hover';
      $showDescription = true;
      $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::FULL_VIEW;
      $columns = '';
      $product_type = 0;
    }
    /**
     * Position for actions regarding image size changing in vde if needed
     */
    $pos = $block->getPositioned()?$block->getPositioned():'';
    $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
    $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
    $aspect_ratio = $_category_config['aspect_ratio'];
    if($aspect_ratio)
        $image_height = $image_width;
    ?>
    <div class="products wrapper <?php /* @escapeNotVerified */ echo $viewMode; ?> <?php echo $columns; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>">

      <ol class="filterproducts products list items product-items" id="dailydealproduct">
        <!-- Loop for Fetch the product Sku from dailydeal collection -->
        <?php foreach($dailydealproductCollection as $dealproduct) : ?>
          <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
          <?php if($block->recentlyDailydeal($dealproduct->getSwProductSku())) : ?>
            <?php foreach ($block->getDailyDealProduct($dealproduct->getSwProductSku()) as $_product): ?>
              <?php /* @escapeNotVerified */ echo($iterator++ == 1) ? '<li class="item product product-item ">' : '</li><li class="item product product-item">' ?>
              <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid">
                <div class="product photo product-item-photo">
                  <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
                  <?php
                      if($aspect_ratio)
                          $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
                      else
                          $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
                      $productImageUrl = $productImage->getUrl();
                  ?>
                      <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
                  <?php if($_category_config['alternative_image']): ?>
                  <?php
                      if($aspect_ratio)
                          $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
                      else
                          $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
                      $productHoverImageUrl = $productHoverImage->getUrl();
                  ?>
                      <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
                      <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
                      <?php endif; ?>
                  <?php endif; ?>
                  </a>
                  <?php
                    $product_label = "";
                    if($_product_label_config['sale_label']) {
                        if ($percentage = $_portohelper->getPercentage($_product)) {
                            if($_product_label_config['sale_label_percent']) {
                                $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>';
                            } else {
                                $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
                            }
                        }
                    }
                    if($_product_label_config['new_label']) {
                        $now = date("Y-m-d");
                        $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10);
                        $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10);

                        if ($newsTo != '' || $newsFrom != ''){
                            if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
                                $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
                            }
                        }
                    }
                    if($product_label)
                      echo '<div class="product-labels">'.$product_label.'</div>';
                  ?>
                  <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9): ?>
                  <div class="product-item-inner">
                      <div class="product actions product-item-actions">
                          <div class="actions-primary">
                              <?php if ($_product->isSaleable()): ?>
                                  <?php $postParams = $block->getAddToCartPostParams($_product); ?>
                                  <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
                                      <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
                                      <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
                                      <?php echo $block->getBlockHtml('formkey')?>
                                      <button type="submit"
                                              title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
                                              class="action tocart primary">
                                          <span><?php echo __('Add to Cart') ?></span>
                                      </button>
                                  </form>
                              <?php else: ?>
                                  <?php if ($_product->getIsSalable()): ?>
                                      <div class="stock available"><span><?php echo __('In stock') ?></span></div>
                                  <?php else: ?>
                                      <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
                                  <?php endif; ?>
                              <?php endif; ?>
                          </div>
                          <?php if ($block->getMode() == 'grid'): ?>
                          <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
                            <?php if($_category_config['addtowishlist']): ?>
                              <a href="#"
                                 class="action towishlist actions-secondary"
                                 title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
                                 aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
                                 data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
                                 data-action="add-to-wishlist"
                                 role="button">
                                  <span><?php echo __('Add to Wish List') ?></span>
                              </a>
                            <?php endif; ?>
                          <?php endif; ?>
                          <?php endif; ?>
                          <?php if($_category_config['addtocompare']): ?>
                          <?php
                          $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
                          ?>
                          <a href="#"
                             class="action tocompare actions-secondary"
                             title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
                             aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
                             data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
                             role="button">
                              <span><?php echo __('Add to Compare') ?></span>
                          </a>
                          <?php endif; ?>
                      </div>
                  </div>
                  <?php endif; ?>
                  <input type="text" style="display: none" id="todate_<?php echo $iterator; ?>" value="<?php echo $dealproduct->getSwDateTo(); ?>" />
                  <input type="text" style="display: none" id="fromdate_<?php echo $iterator; ?>" value="<?php echo $dealproduct->getSwDateFrom(); ?>"/>
                  <input type="text" style="display: none" id="currentdate_<?php echo $iterator; ?>" value="<?php echo $dailydealhelper->getcurrentDate(); ?>" />
                  <div class="sw-dailydeal-wrapper">
                  <div class="sw-dailydeal">
                    <div id="CDT">
                      <p id="expired_<?php echo $iterator; ?>"></p>
                      <div class="countdowncontainer_<?php echo $iterator; ?>" style="display:none;">
        							  <span class="dailydeal-label"><?php echo __('Ends In:'); ?></span>
        								<span class="number-wrapper">
        									<div class="line"></div>
        									<span class="number day"><p id="countdown_days_<?php echo $iterator; ?>">00</p></span>
        									<div class="caption"><?php echo __('Day(s), '); ?></div>
        								</span>
        								<span class="number-wrapper">
        									<div class="line"></div>
        									<span class="number hour"><p id="countdown_hours_<?php echo $iterator; ?>">00</p></span>
        									<div class="caption">:</div>
        								</span>
        								<span class="number-wrapper">
        									<div class="line"></div>
        									<span class="number min"><p id="countdown_minutes_<?php echo $iterator; ?>">00</p></span>
        									<div class="caption">:</div>
        								</span>
        								<span class="number-wrapper">
        									<div class="line"></div>
        									<span class="number sec"><p id="countdown_seconds_<?php echo $iterator; ?>">00</p></span>
        									<div class="caption"></div>
        								</span>
                      </div>
                    </div>
                  </div>
                  </div>
                </div>
                <div class="product details product-item-details">
                  <?php
                      $_productNameStripped = $block->stripTags($_product->getName(), null, true);
                  ?>
                  <strong class="product name product-item-name">
                      <a class="product-item-link"
                         href="<?php echo $_product->getProductUrl() ?>">
                          <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
                      </a>
                  </strong>

                  <?php if($_category_config['rating_star']): ?>
                  <?php
                      $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
                  ?>
                  <?php if($review_html): ?>
                      <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
                  <?php else: ?>
                  <div class="product-reviews-summary short">
                    <div class="rating-summary">
                      <span class="label"><span>Rating:</span></span>
                      <div class="rating-result" title="0%">
                          <span style="width:0"><span>0%</span></span>
                      </div>
                    </div>
                  </div>
                  <?php endif; ?>
                  <?php endif; ?>

                  <?php echo "<div id='dailydeal' style='margin-top:5px; margin-bottom:5px;'>".$block->getProductPrice($_product)."</div>"; ?>
                  <?php /* @escapeNotVerified */  ?>
                  <?php echo $block->getProductDetailsHtml($_product); ?>

                  <?php if($_product->getPrice() == 0) : ?>
                    <?php if($_product->getTypeId() != "bundle" && $_product->getTypeId() != "grouped") : ?>
                      <?php
                        $_children = $_product->getTypeInstance()->getUsedProducts($_product);
                        foreach ($_children as $child){
                          $price=$child->getPrice();
                        }
                      ?>
                    <?php endif; ?>
                  <?php else: ?>
                    <?php $price=$_product->getPrice(); ?>
                  <?php endif;?>
                  <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9): ?>
                  <div class="product-item-inner">
                      <div class="product actions product-item-actions">
                          <?php if ($block->getMode() == 'grid'): ?>
                          <?php if($_category_config['addtowishlist'] && $product_type != 4): ?>
                          <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
                              <a href="#"
                                 class="action towishlist actions-secondary"
                                 title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
                                 aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
                                 data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
                                 data-action="add-to-wishlist"
                                 role="button">
                                  <span><?php echo __('Add to Wish List') ?></span>
                              </a>
                          <?php endif; ?>
                          <?php endif; ?>
                          <?php endif; ?>
                          <div class="actions-primary">
                              <?php if ($_product->isSaleable()): ?>
                                  <?php $postParams = $block->getAddToCartPostParams($_product); ?>
                                  <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
                                      <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
                                      <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
                                      <?php if($product_type == 10):?>
                                          <div class="qty-box">
                                              <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
                                              <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
                                              <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
                                          </div>
                                      <?php endif;?>
                                      <?php echo $block->getBlockHtml('formkey')?>
                                      <button type="submit"
                                              title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
                                              class="action tocart primary">
                                          <span><?php echo __('Add to Cart') ?></span>
                                      </button>
                                  </form>
                              <?php else: ?>
                                  <?php if ($_product->getIsSalable()): ?>
                                      <div class="stock available"><span><?php echo __('In stock') ?></span></div>
                                  <?php else: ?>
                                      <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
                                  <?php endif; ?>
                              <?php endif; ?>
                          </div>
                          <?php if ($block->getMode() == 'grid'): ?>
                          <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
                          <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
                              <a href="#"
                                 class="action towishlist actions-secondary"
                                 title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
                                 aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
                                 data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
                                 data-action="add-to-wishlist"
                                 role="button">
                                  <span><?php echo __('Add to Wish List') ?></span>
                              </a>
                          <?php endif; ?>
                          <?php endif; ?>
                          <?php endif; ?>
                          <?php if ($block->getMode() == 'list'): ?>
                          <?php if($_category_config['addtowishlist']): ?>
                          <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
                              <a href="#"
                                 class="action towishlist actions-secondary"
                                 title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
                                 aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
                                 data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
                                 data-action="add-to-wishlist"
                                 role="button">
                                  <span><?php echo __('Add to Wish List') ?></span>
                              </a>
                          <?php endif; ?>
                          <?php endif; ?>
                          <?php endif; ?>
                          <?php if($_category_config['addtocompare']): ?>
                          <?php
                          $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
                          ?>
                          <a href="#"
                             class="action tocompare actions-secondary"
                             title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
                             aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
                             data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
                             role="button">
                              <span><?php echo __('Add to Compare') ?></span>
                          </a>
                          <?php endif; ?>
                      </div>
                  </div>
                  <?php endif; ?>
                </div>
              </div>
              <?php echo($iterator == count($dailydealproductCollection)+1) ? '</li>' : '' ?>
            <?php endforeach; ?>
          <?php endif; ?>
         <?php endforeach; ?>
      </ol>
    </div>
    <?php if (!$block->isRedirectToCartEnabled()) : ?>
        <script type="text/x-magento-init">
        {
            "[data-role=tocart-form], .form.map.checkout": {
                "catalogAddToCart": {}
            }
        }
        </script>
    <?php endif; ?>
<?php endif; ?>
<script type="text/javascript">
    require([
        'jquery'
    ], function ($) {
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n');
        $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1');
    });
</script>
<script type="text/javascript">
require([
    'jquery'
], function ($) {
    var app = {
        isAppleDevice: function() {
          if (navigator.userAgent.match(/(iPhone|iPod|iPad|Safari)/) != null) {
            return true;
          }
          return false;
        }
    }
    // Timer for LEFT time for Dailydeal product
    var _second = 1000;
    var _minute = _second * 60;
    var _hour = _minute * 60;
    var _day = _hour * 24;
    var timer;

    function showRemaining(currentdate)
    {
        var count;
        for (count = 2; count <= <?php echo $iterator; ?>; count++)
        {
            // get Value of dailydeal product
            var cid='countdown_'+count;
            var daysid='countdown_days_'+count;
            var hoursid='countdown_hours_'+count;
            var minutesid='countdown_minutes_'+count;
            var secondsid='countdown_seconds_'+count;

            var startdateid='fromdate_'+count;
            var id='todate_'+count;

            var enddate = new Date($('#'+id).val());
            var dealstartdate=new Date($('#'+startdateid).val());
            if (app.isAppleDevice() && $('#'+id).val() && $('#'+startdateid).val()) {
              var ledate = $('#'+id).val();
              var ledateParts = ledate.substring(0,10).split('-');
              var letimePart = ledate.substr(11);
              enddate = ledateParts[1] + '/' + ledateParts[2] + '/' + ledateParts[0] + ' ' + letimePart;
              enddate = new Date(enddate).getTime();

              var lsdate = $('#'+startdateid).val();
              var lsdateParts = lsdate.substring(0,10).split('-');
              var lstimePart = lsdate.substr(11);
              dealstartdate = lsdateParts[1] + '/' + lsdateParts[2] + '/' + lsdateParts[0] + ' ' + lstimePart;
              dealstartdate = new Date(dealstartdate).getTime();
            }
            // Get Current Date from magentodatetime
            var currentdate=new Date(currentdate).getTime();

            //Get Difference between Two dates
            var distance = enddate - currentdate;
            $('.sw-dailydeal-wrapper').show();

            if (distance < 0) {
               // clearInterval(timer);
                $('#expired_'+count).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>");

            } else if(dealstartdate > currentdate) {
               $('.countdowncontainer_'+count).hide();
               var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>";
               $('#expired_'+count).html(msg);
            } else {
                var days = Math.floor(distance / _day);
                var hours = Math.floor((distance % _day) / _hour);
                var minutes = Math.floor((distance % _hour) / _minute);
                var seconds = Math.floor((distance % _minute) / _second);

                if(hours < 10)
                    hours = "0" + hours;
                if(minutes < 10)
                    minutes = "0" + minutes;
                if(seconds < 10)
                    seconds = "0" + seconds;
                $('.countdowncontainer_'+count).show();
                $('#'+daysid).html(days);
                $('#'+hoursid).html(hours);
                $('#'+minutesid).html(minutes);
                $('#'+secondsid).html(seconds);
            }
        }
    }

    //Set date as magentodatetime
    var date = new Date('<?php echo $dailydealhelper->getcurrentDate() ?>');
    if (app.isAppleDevice()) {
      var mdate = '<?php echo $dailydealhelper->getcurrentDate() ?>';
      var dateParts = mdate.substring(0,10).split('-');
      var timePart = mdate.substr(11);
      date = dateParts[1] + '/' + dateParts[2] + '/' + dateParts[0] + ' ' + timePart;
      date = new Date(date);
    }
    var day   = date.getDate();
    var month = date.getMonth();
    var year  = date.getFullYear();
    var hours = date.getHours();
    var minutes = "0" + date.getMinutes();
    var seconds = "0" + date.getSeconds();

    var fulldate = year+'/'+(month+1)+'/'+day+' '+hours + ':' + minutes.substr(minutes.length-2) + ':' + seconds.substr(seconds.length-2);

    // Set Interval
    timer = setInterval(function()
    {
        date.setSeconds(date.getSeconds() + 1);
        var month=date.getMonth();
        var currentdatetime=date.getFullYear()+"/"+(month+1)+"/"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
        showRemaining(currentdatetime);
    }, 1000);
});
</script>
<style type="text/css">
    .page-layout-1column .toolbar-products {
    position: relative;
    display:none;
}
</style>

Spamworldpro Mini