PHP Classes

File: view/melis-templating-plugin-creator/templating-plugin-creator/render-step6-finalization.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Templating Plugin Creator   view/melis-templating-plugin-creator/templating-plugin-creator/render-step6-finalization.phtml   Download  
File: view/melis-templating-plugin-creator/templating-plugin-creator/render-step6-finalization.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis Templating Plugin Creator
Create page template plugins for the Melis CMS
Author: By
Last change:
Date: 1 year ago
Size: 1,676 bytes
 

Contents

Class file image Download
<div id="<?php echo $this->id; ?>" class="steps-content">
    <div class="row">
        <div class="col-md-12">
            <div class = 'alert alert-default' role='alert'>
                <i class="fa fa-thumbs-o-up fa-5x fa-fw pull-left text-primary-custom"></i>
                <p id="finalization_success"><strong><?php echo $this->translate('tr_melistemplatingplugincreator_finalization_success_title') ?></strong></p>
                <?php if ($this->restartRequired) { ?>
<p id="tpc-restart-msg"><?php echo $this->translate('tr_melistemplatingplugincreator_finalization_success_desc_with_counter') ?></p>
                <?php } else { ?>
<p><?php echo $this->translate('tr_melistemplatingplugincreator_finalization_success_desc') ?></p>
                <?php } ?>
            </div>
         </div>
    </div>
</div>


<script>
    <?php if ($this->restartRequired) { ?>
var countdown = function(){
            var tcResCd = parseInt($("#tpc-restart-cd").text());
            var countDown = setInterval(function() {
                if (tcResCd < 1){
                    $("#tpc-restart-msg").text("<?php echo $this->translate('tr_melistemplatingplugincreator_refreshing') ?>");
                    clearInterval(countDown);
                    window.location.reload();
                } else {
                    $("#tpc-restart-cd").text(tcResCd);
                    tcResCd--;
                }
            }, 1000);
        }
    <?php }

    if (
$this->restartRequired) { ?>
countdown();
    <?php } ?>
</script>