Commit fc5edbad authored by root's avatar root

from realsite

parents 3ad37d9f e0f374db
# Deny all requests from Apache 2.4+.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Deny all requests from Apache 2.0-2.2.
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
# Turn off all options we don't need.
Options -Indexes -ExecCGI -Includes -MultiViews
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_flag engine off
</IfModule>
\ No newline at end of file
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* modules/contrib/commerce/modules/cart/templates/commerce-cart-empty-page.html.twig */
class __TwigTemplate_ee5db480513849dc7adddddde1e2031dc62df8c853602d24096c6f3a7f33c796 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$tags = [];
$filters = ["t" => 11];
$functions = [];
try {
$this->sandbox->checkSecurity(
[],
['t'],
[]
);
} catch (SecurityError $e) {
$e->setSourceContext($this->getSourceContext());
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 10
echo "<div class=\"cart-empty-page\">
";
// line 11
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar(t("Your shopping cart is empty."));
echo "
</div>
";
}
public function getTemplateName()
{
return "modules/contrib/commerce/modules/cart/templates/commerce-cart-empty-page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 58 => 11, 55 => 10,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("{#
/**
* @file
*
* Empty cart page template.
*
* @ingroup themeable
*/
#}
<div class=\"cart-empty-page\">
{{ 'Your shopping cart is empty.'|t }}
</div>
", "modules/contrib/commerce/modules/cart/templates/commerce-cart-empty-page.html.twig", "/var/www/ptd.dev.invigroup.com/modules/contrib/commerce/modules/cart/templates/commerce-cart-empty-page.html.twig");
}
}
# Deny all requests from Apache 2.4+.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Deny all requests from Apache 2.0-2.2.
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
# Turn off all options we don't need.
Options -Indexes -ExecCGI -Includes -MultiViews
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_flag engine off
</IfModule>
\ No newline at end of file
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* themes/contrib/bootstrap/templates/views/views-mini-pager.html.twig */
class __TwigTemplate_6072ff70a7271162373fd9d77419fa3f6314b3e29d6ace0f7370878ccda3c75d extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$tags = ["if" => 14];
$filters = ["t" => 16, "escape" => 20, "without" => 20, "default" => 22];
$functions = [];
try {
$this->sandbox->checkSecurity(
['if'],
['t', 'escape', 'without', 'default'],
[]
);
} catch (SecurityError $e) {
$e->setSourceContext($this->getSourceContext());
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 14
if (($this->getAttribute(($context["items"] ?? null), "previous", []) || $this->getAttribute(($context["items"] ?? null), "next", []))) {
// line 15
echo " <nav role=\"navigation\" aria-labelledby=\"pagination-heading\">
<h4 class=\"sr-only\">";
// line 16
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar(t("Pagination"));
echo "</h4>
<ul class=\"pager js-pager__items\">
";
// line 18
if ($this->getAttribute(($context["items"] ?? null), "previous", [])) {
// line 19
echo " <li class=\"previous\">
<a href=\"";
// line 20
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["items"] ?? null), "previous", []), "href", [])), "html", null, true);
echo "\" title=\"";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar(t("Go to previous page"));
echo "\" rel=\"prev\"";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->env->getExtension('Drupal\Core\Template\TwigExtension')->withoutFilter($this->sandbox->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["items"] ?? null), "previous", []), "attributes", [])), "href", "title", "rel"), "html", null, true);
echo ">
<span class=\"sr-only\">";
// line 21
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar(t("Previous page"));
echo "</span>
<span aria-hidden=\"true\">";
// line 22
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, (($this->getAttribute($this->getAttribute(($context["items"] ?? null), "previous", [], "any", false, true), "text", [], "any", true, true)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["items"] ?? null), "previous", [], "any", false, true), "text", [])), t("‹‹"))) : (t("‹‹"))), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 26
echo " ";
if ($this->getAttribute(($context["items"] ?? null), "next", [])) {
// line 27
echo " <li class=\"next\">
<a href=\"";
// line 28
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["items"] ?? null), "next", []), "href", [])), "html", null, true);
echo "\" title=\"";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar(t("Go to next page"));
echo "\" rel=\"next\"";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->env->getExtension('Drupal\Core\Template\TwigExtension')->withoutFilter($this->sandbox->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["items"] ?? null), "next", []), "attributes", [])), "href", "title", "rel"), "html", null, true);
echo ">
<span class=\"sr-only\">";
// line 29
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar(t("Next page"));
echo "</span>
<span aria-hidden=\"true\">";
// line 30
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, (($this->getAttribute($this->getAttribute(($context["items"] ?? null), "next", [], "any", false, true), "text", [], "any", true, true)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["items"] ?? null), "next", [], "any", false, true), "text", [])), t("››"))) : (t("››"))), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 34
echo " </ul>
</nav>
";
}
}
public function getTemplateName()
{
return "themes/contrib/bootstrap/templates/views/views-mini-pager.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 114 => 34, 107 => 30, 103 => 29, 95 => 28, 92 => 27, 89 => 26, 82 => 22, 78 => 21, 70 => 20, 67 => 19, 65 => 18, 60 => 16, 57 => 15, 55 => 14,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("{#
/**
* @file
* Theme override for a views mini-pager.
*
* Available variables:
* - items: List of pager items.
*
* @ingroup templates
*
* @see template_preprocess_views_mini_pager()
*/
#}
{% if items.previous or items.next %}
<nav role=\"navigation\" aria-labelledby=\"pagination-heading\">
<h4 class=\"sr-only\">{{ 'Pagination'|t }}</h4>
<ul class=\"pager js-pager__items\">
{% if items.previous %}
<li class=\"previous\">
<a href=\"{{ items.previous.href }}\" title=\"{{ 'Go to previous page'|t }}\" rel=\"prev\"{{ items.previous.attributes|without('href', 'title', 'rel') }}>
<span class=\"sr-only\">{{ 'Previous page'|t }}</span>
<span aria-hidden=\"true\">{{ items.previous.text|default('‹‹'|t) }}</span>
</a>
</li>
{% endif %}
{% if items.next %}
<li class=\"next\">
<a href=\"{{ items.next.href }}\" title=\"{{ 'Go to next page'|t }}\" rel=\"next\"{{ items.next.attributes|without('href', 'title', 'rel') }}>
<span class=\"sr-only\">{{ 'Next page'|t }}</span>
<span aria-hidden=\"true\">{{ items.next.text|default('››'|t) }}</span>
</a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}
", "themes/contrib/bootstrap/templates/views/views-mini-pager.html.twig", "/var/www/ptd.dev.invigroup.com/themes/contrib/bootstrap/templates/views/views-mini-pager.html.twig");
}
}
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
* *
* Reverse proxy servers are often used to enhance the performance * Reverse proxy servers are often used to enhance the performance
* of heavily visited sites and may also provide other site caching, * of heavily visited sites and may also provide other site caching,
128.199.187.131 * security, or encryption benefits. In an environment where Drupal * security, or encryption benefits. In an environment where Drupal
* is behind a reverse proxy, the real IP address of the client should * is behind a reverse proxy, the real IP address of the client should
* be determined such that the correct client IP address is available * be determined such that the correct client IP address is available
* to Drupal's logging, statistics, and access management systems. In * to Drupal's logging, statistics, and access management systems. In
......
...@@ -22,18 +22,27 @@ ...@@ -22,18 +22,27 @@
* @see template_preprocess_input() * @see template_preprocess_input()
*/ */
#} #}
{% spaceless %} {% spaceless %}
{% {%
set classes = [ set classes = [
'btn', 'btn',
type == 'submit' ? 'js-form-submit', type == 'submit' ? 'js-form-submit',
icon and icon_position and not icon_only ? 'icon-' ~ icon_position, icon and icon_position and not icon_only ? 'icon-' ~ icon_position,
] ]
%} %}
{% block input %} {% block input %}
<button{{ attributes.addClass(classes, 'icon-only') }}> {% if icon and icon_only %}
<span>search</span> <button{{ attributes.addClass(classes, 'icon-only') }}>
</button> <span class="sr-only">{{ label }}</span>
{{ icon }}
{% endblock %} </button>
{% endspaceless %} {% else %}
{% if icon_position == 'after' %}
<button{{ attributes.addClass(classes) }}>{{ label }}{{ icon }}</button>{{ children }}
{% else %}
<button{{ attributes.addClass(classes) }}>{{ icon }}{{ label }}</button>{{ children }}
{% endif %}
{% endif %}
{{ children }}
{% endblock %}
{% endspaceless %}
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
{% set link_title = item.title %} {% set link_title = item.title %}
{% set link_attributes = item.link_attributes %} {% set link_attributes = item.link_attributes %}
{% if menu_level == 0 and item.is_expanded and item.below %} {% if menu_level == 0 and item.is_expanded and item.below %}
{% set link_title %}{{ link_title }} <span class="caret"></span>{% endset %} {% set link_title %}{{ link_title }}<i class="fa fa-chevron-right" aria-hidden="true"></i>{% endset %}
{% set link_attributes = link_attributes.addClass('dropdown-toggle').setAttribute('data-toggle', 'dropdown') %} {% set link_attributes = link_attributes.addClass('dropdown-toggle').setAttribute('data-toggle', 'dropdown') %}
{% endif %} {% endif %}
{# Must use link() here so it triggers hook_link_alter(). #} {# Must use link() here so it triggers hook_link_alter(). #}
......
This diff is collapsed.
...@@ -10,17 +10,26 @@ ...@@ -10,17 +10,26 @@
rightMenu.addClass("litte-menu"); rightMenu.addClass("litte-menu");
rightMenu.children('li').eq(lengthMenu - 1).after('<li class="less-category">Ẩn bớt </li>'); rightMenu.children('li').eq(lengthMenu - 1).after('<li class="less-category">Ẩn bớt </li>');
rightMenu.children('li').eq(9).after('<li class="more-category">Xem Thêm</li>'); rightMenu.children('li').eq(9).after('<li class="more-category">Xem Thêm</li>');
for (let i =11 ; i < lengthMenu + 2 ; i++){
rightMenu.children('li').eq(i).hide();
}
} }
$(".more-category").click(function() { $(".more-category").click(function() {
rightMenu.removeClass("litte-menu"); rightMenu.removeClass("litte-menu");
// rightMenu.append('<li class="less-category">Ẩn bớt </li>'); // rightMenu.append('<li class="less-category">Ẩn bớt </li>');
rightMenu.children('li').eq(10).hide(); rightMenu.children('li').eq(10).hide();
for (let i =11 ; i < lengthMenu + 2 ; i++){
rightMenu.children('li').eq(i).show();
}
}) })
$(".less-category").click(function() { $(".less-category").click(function() {
rightMenu.addClass("litte-menu"); rightMenu.addClass("litte-menu");
rightMenu.children('li').eq(10).show(); rightMenu.children('li').eq(10).show();
for (let i =11 ; i < lengthMenu + 2 ; i++){
rightMenu.children('li').eq(i).hide();
}
}) })
var checkHome = $(".estore-homepage-first"); var checkHome = $(".estore-homepage-first");
if ($(".toolbar-bar").length == 0){ if ($(".toolbar-bar").length == 0){
...@@ -30,8 +39,6 @@ ...@@ -30,8 +39,6 @@
$(".menu.menu--category-menu.nav").addClass('hide-block'); $(".menu.menu--category-menu.nav").addClass('hide-block');
} }
$(window).scroll(function () { $(window).scroll(function () {
console.log("scrollTop",$(window).scrollTop() )
// custom for ie
if($(window).scrollTop() > 130){ if($(window).scrollTop() > 130){
$(".middle-header-wrapper").children(".container-fluid").addClass("fixed-top"); $(".middle-header-wrapper").children(".container-fluid").addClass("fixed-top");
} }
...@@ -40,6 +47,24 @@ ...@@ -40,6 +47,24 @@
} }
}); });
if($(".pin").length != 0 ){
$(".pin").find("i.fa").removeClass("fa-chevron-right").addClass("fa-chevron-down");
}
$(".dropdown-toggle").mouseover(function(){
// $(this).parent("li.expanded.dropdown").click();
$(this).parent("li.expanded.dropdown").addClass("open");
})
$(".dropdown-menu").mouseover(function(){
$(this).parent("li.expanded.dropdown").addClass("open");
})
$(".dropdown-menu").mouseleave(function(){
$(this).parent("li.expanded.dropdown").removeClass("open");
})
$(".dropdown-toggle").mouseleave(function(){
// $(this).parent("li.expanded.dropdown").click();
$(this).parent("li.expanded.dropdown").removeClass("open");
})
// if(heightMenu > 400;)
})(window.jQuery, window.Drupal); })(window.jQuery, window.Drupal);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment