<?php

/* @dmzx_countdown/event/overall_footer_after.html */
class __TwigTemplate_42b60ba3ce602402117f68002e6160235da7604e203b15fbd707a51602559bad extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        $asset_file = "jquery.jcountdown.min.js";
        $asset = new \phpbb\template\asset($asset_file, $this->getEnvironment()->get_path_helper());
        if (substr($asset_file, 0, 2) !== './' && $asset->is_relative()) {
            $asset_path = $asset->get_path();            $local_file = $this->getEnvironment()->get_phpbb_root_path() . $asset_path;
            if (!file_exists($local_file)) {
                $local_file = $this->getEnvironment()->findTemplate($asset_path);
                $asset->set_path($local_file, true);
            $asset->add_assets_version('13');
            $asset_file = $asset->get_url();
            }
        }
        $context['definition']->append('SCRIPTS', '<script type="text/javascript" src="' . $asset_file. '"></script>

');
        // line 2
        if ((isset($context["COUNTDOWN_ENABLE"]) ? $context["COUNTDOWN_ENABLE"] : null)) {
            // line 3
            echo "<script type=\"text/javascript\">
// ]]>&lt;![CDATA[<![CDATA[
\$(document).ready(function(){
\t\$(\"#time\").countdown({
\t\tdate: \"";
            // line 7
            echo (isset($context["COUNTDOWN_DATE"]) ? $context["COUNTDOWN_DATE"] : null);
            echo "\",
\t\tonComplete: function( event ) {

\t\t\t\$(this).html(\"";
            // line 10
            echo (isset($context["COUNTDOWN_COMPLETE"]) ? $context["COUNTDOWN_COMPLETE"] : null);
            echo "\");
\t\t},
\t\tleadingZero: false,
\t\t";
            // line 13
            if ((isset($context["COUNTDOWN_OFFSET_ENABLE"]) ? $context["COUNTDOWN_OFFSET_ENABLE"] : null)) {
                // line 14
                echo "\t\toffset: ";
                echo (isset($context["COUNTDOWN_OFFSET"]) ? $context["COUNTDOWN_OFFSET"] : null);
                echo ",
\t\t";
            }
            // line 16
            echo "\t\t";
            if (((isset($context["COUNTDOWN_YEAR"]) ? $context["COUNTDOWN_YEAR"] : null) || (isset($context["COUNTDOWN_MONTH"]) ? $context["COUNTDOWN_MONTH"] : null))) {
                // line 17
                echo "\t\tyearsAndMonths: true,
\t\t";
            }
            // line 19
            echo "\t\thtmlTemplate: \"<span class='cd-time'>";
            echo (isset($context["COUNTDOWN_TEXT"]) ? $context["COUNTDOWN_TEXT"] : null);
            echo "</span>";
            if (((isset($context["COUNTDOWN_YEAR"]) ? $context["COUNTDOWN_YEAR"] : null) && (isset($context["COUNTDOWN_MONTH"]) ? $context["COUNTDOWN_MONTH"] : null))) {
                echo " %y <span class=\\\"cd-time\\\">";
                echo addslashes($this->env->getExtension('phpbb')->lang("COUNT_YEARS"));
                echo "</span>";
            }
            if (((isset($context["COUNTDOWN_YEAR"]) ? $context["COUNTDOWN_YEAR"] : null) || (isset($context["COUNTDOWN_MONTH"]) ? $context["COUNTDOWN_MONTH"] : null))) {
                echo " %m <span class=\\\"cd-time\\\">";
                echo addslashes($this->env->getExtension('phpbb')->lang("COUNT_MONTHS"));
                echo "</span>";
            }
            echo "\t%d <span class=\\\"cd-time\\\">";
            echo addslashes($this->env->getExtension('phpbb')->lang("COUNT_DAYS"));
            echo "</span> %h <span class=\\\"cd-time\\\">";
            echo addslashes($this->env->getExtension('phpbb')->lang("COUNT_HOURS"));
            echo "</span> %i <span class=\\\"cd-time\\\">";
            echo addslashes($this->env->getExtension('phpbb')->lang("COUNT_MINUTES"));
            echo "</span> %s <span class=\\\"cd-time\\\">";
            echo addslashes($this->env->getExtension('phpbb')->lang("COUNT_SECONDS"));
            echo "</span>\",
\t\tdirection: \"";
            // line 20
            if ((isset($context["COUNTDOWN_DIRECTION"]) ? $context["COUNTDOWN_DIRECTION"] : null)) {
                echo "down";
            } else {
                echo "up";
            }
            echo "\"
\t});
});
// ]]>]]&gt;<![CDATA[
</script>
";
        }
    }

    public function getTemplateName()
    {
        return "@dmzx_countdown/event/overall_footer_after.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  93 => 20,  69 => 19,  65 => 17,  62 => 16,  56 => 14,  54 => 13,  48 => 10,  42 => 7,  36 => 3,  34 => 2,  19 => 1,);
    }
}
/* <!-- INCLUDEJS jquery.jcountdown.min.js -->*/
/* <!-- IF COUNTDOWN_ENABLE -->*/
/* <script type="text/javascript">*/
/* // ]]>&lt;![CDATA[<![CDATA[*/
/* $(document).ready(function(){*/
/* 	$("#time").countdown({*/
/* 		date: "{COUNTDOWN_DATE}",*/
/* 		onComplete: function( event ) {*/
/* */
/* 			$(this).html("{COUNTDOWN_COMPLETE}");*/
/* 		},*/
/* 		leadingZero: false,*/
/* 		<!-- IF COUNTDOWN_OFFSET_ENABLE -->*/
/* 		offset: {COUNTDOWN_OFFSET},*/
/* 		<!-- ENDIF -->*/
/* 		<!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH -->*/
/* 		yearsAndMonths: true,*/
/* 		<!-- ENDIF -->*/
/* 		htmlTemplate: "<span class='cd-time'>{COUNTDOWN_TEXT}</span><!-- IF COUNTDOWN_YEAR and COUNTDOWN_MONTH --> %y <span class=\"cd-time\">{LA_COUNT_YEARS}</span><!-- ENDIF --><!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH --> %m <span class=\"cd-time\">{LA_COUNT_MONTHS}</span><!-- ENDIF -->	%d <span class=\"cd-time\">{LA_COUNT_DAYS}</span> %h <span class=\"cd-time\">{LA_COUNT_HOURS}</span> %i <span class=\"cd-time\">{LA_COUNT_MINUTES}</span> %s <span class=\"cd-time\">{LA_COUNT_SECONDS}</span>",*/
/* 		direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"*/
/* 	});*/
/* });*/
/* // ]]>]]&gt;<![CDATA[*/
/* </script>*/
/* <!-- ENDIF -->*/
