diff --git a/.gitignore b/.gitignore index ae0a05c8f..9ce95681a 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,7 @@ composer.lock img/** !/img/404.gif +!/img/.htaccess !/img/admin/ !/img/admin/*.gif !/img/admin/*.png diff --git a/admin/backups/.htaccess b/admin/backups/.htaccess index 93169e4eb..3de9e4008 100644 --- a/admin/backups/.htaccess +++ b/admin/backups/.htaccess @@ -1,2 +1,10 @@ -Order deny,allow -Deny from all +# Apache 2.2 + + Order deny,allow + Deny from all + + +# Apache 2.4 + + Require all denied + diff --git a/admin/export/.htaccess b/admin/export/.htaccess index 93169e4eb..3de9e4008 100644 --- a/admin/export/.htaccess +++ b/admin/export/.htaccess @@ -1,2 +1,10 @@ -Order deny,allow -Deny from all +# Apache 2.2 + + Order deny,allow + Deny from all + + +# Apache 2.4 + + Require all denied + diff --git a/admin/import/.htaccess b/admin/import/.htaccess index 93169e4eb..3de9e4008 100644 --- a/admin/import/.htaccess +++ b/admin/import/.htaccess @@ -1,2 +1,10 @@ -Order deny,allow -Deny from all +# Apache 2.2 + + Order deny,allow + Deny from all + + +# Apache 2.4 + + Require all denied + diff --git a/admin/tabs/.htaccess b/admin/tabs/.htaccess index 93169e4eb..3de9e4008 100644 --- a/admin/tabs/.htaccess +++ b/admin/tabs/.htaccess @@ -1,2 +1,10 @@ -Order deny,allow -Deny from all +# Apache 2.2 + + Order deny,allow + Deny from all + + +# Apache 2.4 + + Require all denied + diff --git a/admin/themes/default/sass/admin-theme_rtl.sass b/admin/themes/default/sass/admin-theme_rtl.sass index 90d7eec1b..712d08aa9 100644 --- a/admin/themes/default/sass/admin-theme_rtl.sass +++ b/admin/themes/default/sass/admin-theme_rtl.sass @@ -84,14 +84,20 @@ @import "partials/date-range-picker" @import "partials/multistore" @import "partials/product" + @import "partials/skeleton-loading" + //Controllers @import "controllers/carrier-wizard" @import "controllers/dashboard" @import "controllers/login" + @import "controllers/modules_catalog" @import "controllers/modules" @import "controllers/search" @import "controllers/translations" @import "controllers/customer-thread" + @import "controllers/themes" + @import "controllers/order" + @import "controllers/products" @import "vendor/bootstrap-rtl-sass/bootstrap-rtl" //Plug-ins @@ -99,6 +105,9 @@ @import "partials/growl" @import "partials/chosen" @import "partials/ladda" +@import "partials/date-picker" +@import "partials/select2" +@import "partials/ndv3" //RTL @import "partials/rtl" @@ -106,3 +115,5 @@ //Backward compatibility @import "partials/backward" +//Print support +@import "partials/print" diff --git a/admin/themes/default/sass/controllers/_modules_catalog.sass b/admin/themes/default/sass/controllers/_modules_catalog.sass index 67c7b45f4..74a40fc8f 100644 --- a/admin/themes/default/sass/controllers/_modules_catalog.sass +++ b/admin/themes/default/sass/controllers/_modules_catalog.sass @@ -53,10 +53,12 @@ .module-info-wrapper position: relative height: 100% - .module-logo img - max-height: 60px + .module-logo + display: flex + gap: 10px margin-bottom: 20px - margin-right: 10px + img + max-height: 60px .panel-action .module-price font-size: 14px diff --git a/admin/themes/default/sass/partials/_kpi.sass b/admin/themes/default/sass/partials/_kpi.sass index 78df786ff..e6ccfe8cb 100644 --- a/admin/themes/default/sass/partials/_kpi.sass +++ b/admin/themes/default/sass/partials/_kpi.sass @@ -3,6 +3,7 @@ $kpi-gap: 10px .kpi-container display: flex + gap: 15px justify-content: space-between padding: 12px !important .kpis-wrap @@ -23,7 +24,6 @@ $kpi-gap: 10px padding-right: $kpi-gap / 2 .actions-wrap width: 16px - margin-left: 16px button padding: 0 border: none @@ -97,11 +97,21 @@ $kpi-gap: 10px border: 1px solid #e7edfa border-left-width: 3px border-radius: 6px - padding: 4px 8px 8px 42px + padding: 4px 8px 8px 4px display: flex - flex-direction: column - justify-content: space-between + gap: 10px white-space: normal + i.kpi-icon + font-size: 15px + text-align: center + color: white + line-height: 26px + background: #eee + width: 28px + height: 28px + @include border-radius(6px) + .kpi-data + flex-grow: 1 .title-subtitle display: flex justify-content: space-between @@ -109,22 +119,7 @@ $kpi-gap: 10px display: block color: #666 font-size: 13px - i - position: absolute - top: 5px - font-size: 15px - text-align: center - color: white - line-height: 26px - background: #eee - width: 28px - height: 28px - @include left(5px) - @include border-radius(6px) - &::before - position: absolute - top: 1px - left: 8px + .subtitle display: block text-transform: capitalize @@ -144,12 +139,8 @@ $kpi-gap: 10px &.loading height: 22px min-width: 40px - .arrow - position: absolute - bottom: 7px - right: 9px - i - color: #828282 !important + .arrow i + color: #828282 !important &:hover text-decoration: none .color1 diff --git a/admin/themes/default/sass/partials/_rtl.sass b/admin/themes/default/sass/partials/_rtl.sass index c3b7b569f..7fd16f206 100644 --- a/admin/themes/default/sass/partials/_rtl.sass +++ b/admin/themes/default/sass/partials/_rtl.sass @@ -119,3 +119,8 @@ html margin-left: 0px @include border-right(1px solid $sidebar-menu-bg-hover-color) border-left: 0px +#nav-topbar + #ellipsistab + ul#ellipsis_submenu + left: 0 + right: unset diff --git a/admin/themes/default/sass/partials/_tree.sass b/admin/themes/default/sass/partials/_tree.sass index b6cb0ecdf..897c29f85 100644 --- a/admin/themes/default/sass/partials/_tree.sass +++ b/admin/themes/default/sass/partials/_tree.sass @@ -62,4 +62,8 @@ .tree-panel-label-title font-weight: 400 margin: 0 - @include padding(0, 0, 0, 8px) \ No newline at end of file + @include padding(0, 0, 0, 8px) + +.tree.cattree + max-height: 350px + overflow-y: auto diff --git a/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_button-groups-rtl.sass b/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_button-groups-rtl.sass index 052bd3634..52404f5f6 100644 --- a/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_button-groups-rtl.sass +++ b/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_button-groups-rtl.sass @@ -2,14 +2,8 @@ // Button groups // -------------------------------------------------- -// Make the div behave like a button -.btn-group, -.btn-group-vertical - > .btn - float: right - // Prevent double borders when buttons are next to each other -.btn-group +.btn-group .btn + .btn, .btn + .btn-group, .btn-group + .btn, diff --git a/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_grid-rtl.sass b/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_grid-rtl.sass index 4563bca33..c8e9fb9fd 100644 --- a/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_grid-rtl.sass +++ b/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_grid-rtl.sass @@ -187,28 +187,42 @@ .col-sm-push-11 right: percentage((11/ $grid-columns)) + .col-sm-pull-0 + left: auto + right: auto .col-sm-pull-1 left: percentage((1 / $grid-columns)) + right: auto .col-sm-pull-2 left: percentage((2 / $grid-columns)) + right: auto .col-sm-pull-3 left: percentage((3 / $grid-columns)) + right: auto .col-sm-pull-4 left: percentage((4 / $grid-columns)) + right: auto .col-sm-pull-5 left: percentage((5 / $grid-columns)) + right: auto .col-sm-pull-6 left: percentage((6 / $grid-columns)) + right: auto .col-sm-pull-7 left: percentage((7 / $grid-columns)) + right: auto .col-sm-pull-8 left: percentage((8 / $grid-columns)) + right: auto .col-sm-pull-9 left: percentage((9 / $grid-columns)) + right: auto .col-sm-pull-10 left: percentage((10/ $grid-columns)) + right: auto .col-sm-pull-11 left: percentage((11/ $grid-columns)) + right: auto // Offsets .col-sm-offset-1 @@ -269,23 +283,23 @@ .col-md-10, .col-md-11 float: right - .col-md-1 + .col-md-1 width: percentage((1 / $grid-columns)) - .col-md-2 + .col-md-2 width: percentage((2 / $grid-columns)) - .col-md-3 + .col-md-3 width: percentage((3 / $grid-columns)) - .col-md-4 + .col-md-4 width: percentage((4 / $grid-columns)) - .col-md-5 + .col-md-5 width: percentage((5 / $grid-columns)) - .col-md-6 + .col-md-6 width: percentage((6 / $grid-columns)) - .col-md-7 + .col-md-7 width: percentage((7 / $grid-columns)) - .col-md-8 + .col-md-8 width: percentage((8 / $grid-columns)) - .col-md-9 + .col-md-9 width: percentage((9 / $grid-columns)) .col-md-10 width: percentage((10/ $grid-columns)) @@ -318,28 +332,42 @@ .col-md-push-11 right: percentage((11/ $grid-columns)) + .col-md-pull-0 + left: auto + right: auto .col-md-pull-1 left: percentage((1 / $grid-columns)) + right: auto .col-md-pull-2 left: percentage((2 / $grid-columns)) + right: auto .col-md-pull-3 left: percentage((3 / $grid-columns)) + right: auto .col-md-pull-4 left: percentage((4 / $grid-columns)) + right: auto .col-md-pull-5 left: percentage((5 / $grid-columns)) + right: auto .col-md-pull-6 left: percentage((6 / $grid-columns)) + right: auto .col-md-pull-7 left: percentage((7 / $grid-columns)) + right: auto .col-md-pull-8 left: percentage((8 / $grid-columns)) + right: auto .col-md-pull-9 left: percentage((9 / $grid-columns)) + right: auto .col-md-pull-10 left: percentage((10/ $grid-columns)) + right: auto .col-md-pull-11 left: percentage((11/ $grid-columns)) + right: auto // Offsets .col-md-offset-1 @@ -402,77 +430,92 @@ .col-lg-11 float: right - .col-lg-1 + .col-lg-1 width: percentage((1 / $grid-columns)) - .col-lg-2 + .col-lg-2 width: percentage((2 / $grid-columns)) - .col-lg-3 + .col-lg-3 width: percentage((3 / $grid-columns)) - .col-lg-4 + .col-lg-4 width: percentage((4 / $grid-columns)) - .col-lg-5 + .col-lg-5 width: percentage((5 / $grid-columns)) - .col-lg-6 + .col-lg-6 width: percentage((6 / $grid-columns)) - .col-lg-7 + .col-lg-7 width: percentage((7 / $grid-columns)) - .col-lg-8 + .col-lg-8 width: percentage((8 / $grid-columns)) - .col-lg-9 + .col-lg-9 width: percentage((9 / $grid-columns)) - .col-lg-10 + .col-lg-10 width: percentage((10/ $grid-columns)) - .col-lg-11 + .col-lg-11 width: percentage((11/ $grid-columns)) - .col-lg-12 + .col-lg-12 width: 100% // Push and pull columns for source order changes - .col-lg-push-1 + .col-lg-push-1 right: percentage((1 / $grid-columns)) - .col-lg-push-2 + .col-lg-push-2 right: percentage((2 / $grid-columns)) - .col-lg-push-3 + .col-lg-push-3 right: percentage((3 / $grid-columns)) - .col-lg-push-4 + .col-lg-push-4 right: percentage((4 / $grid-columns)) - .col-lg-push-5 + .col-lg-push-5 right: percentage((5 / $grid-columns)) - .col-lg-push-6 + .col-lg-push-6 right: percentage((6 / $grid-columns)) - .col-lg-push-7 + .col-lg-push-7 right: percentage((7 / $grid-columns)) - .col-lg-push-8 + .col-lg-push-8 right: percentage((8 / $grid-columns)) - .col-lg-push-9 + .col-lg-push-9 right: percentage((9 / $grid-columns)) .col-lg-push-10 right: percentage((10/ $grid-columns)) .col-lg-push-11 right: percentage((11/ $grid-columns)) - .col-lg-pull-1 + .col-lg-pull-0 + left: auto + right: auto + .col-lg-pull-1 left: percentage((1 / $grid-columns)) - .col-lg-pull-2 + right: auto + .col-lg-pull-2 left: percentage((2 / $grid-columns)) - .col-lg-pull-3 + right: auto + .col-lg-pull-3 left: percentage((3 / $grid-columns)) - .col-lg-pull-4 + right: auto + .col-lg-pull-4 left: percentage((4 / $grid-columns)) - .col-lg-pull-5 + right: auto + .col-lg-pull-5 left: percentage((5 / $grid-columns)) - .col-lg-pull-6 + right: auto + .col-lg-pull-6 left: percentage((6 / $grid-columns)) - .col-lg-pull-7 + right: auto + .col-lg-pull-7 left: percentage((7 / $grid-columns)) - .col-lg-pull-8 + right: auto + right: unset + .col-lg-pull-8 left: percentage((8 / $grid-columns)) - .col-lg-pull-9 + right: auto + .col-lg-pull-9 left: percentage((9 / $grid-columns)) + right: auto .col-lg-pull-10 left: percentage((10/ $grid-columns)) + right: auto .col-lg-pull-11 left: percentage((11/ $grid-columns)) + right: auto // Offsets .col-lg-offset-1 diff --git a/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_merged-rtl.sass b/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_merged-rtl.sass index 835e73b6f..a302d5d30 100644 --- a/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_merged-rtl.sass +++ b/admin/themes/default/sass/vendor/bootstrap-rtl-sass/_merged-rtl.sass @@ -118,7 +118,7 @@ h1, h2, h3, h4, h5, h6, border-radius: $border-radius-base $border-radius-base 0 0 // pulling this in mainly for less shorthand - &.nav-justified + &.nav-justified @extend .nav-justified @extend .nav-tabs-justified @@ -169,9 +169,9 @@ h1, h2, h3, h4, h5, h6, // The dropdown menu (ul) .dropdown-menu - right: 0 - float: left - left: auto + right: unset + float: right + left: 0 // Aligns the dropdown menu to left &.pull-left @@ -185,6 +185,11 @@ h1, h2, h3, h4, h5, h6, float: right right: auto +.pull-right > .dropdown-menu + right: unset + float: right + left: 0 + // Right aligned menus need alt position .navbar-nav.pull-left > li > .dropdown-menu, .navbar-nav > li > .dropdown-menu.pull-left @@ -338,13 +343,13 @@ h1, h2, h3, h4, h5, h6, // Popovers // ------------------------- -.popover.top, +.popover.top, .popover.bottom direction:ltr -.popover.top .popover-title, +.popover.top .popover-title, .popover.top .popover-content, -.popover.bottom .popover-title, +.popover.bottom .popover-title, .popover.bottom .popover-content direction: rtl text-align: right diff --git a/admin/themes/default/template/controllers/modules_catalog/modules_list.tpl b/admin/themes/default/template/controllers/modules_catalog/modules_list.tpl index 22113e45c..02226f20a 100644 --- a/admin/themes/default/template/controllers/modules_catalog/modules_list.tpl +++ b/admin/themes/default/template/controllers/modules_catalog/modules_list.tpl @@ -22,10 +22,12 @@
-
-
auto_add_to_cart && $product->price_addition_type == Product::PRICE_ADDITION_TYPE_WITH_ROOM}style="display:none"{/if}> + {*
auto_add_to_cart && $product->price_addition_type == Product::PRICE_ADDITION_TYPE_WITH_ROOM}style="display:none"{/if}>
{$currency->prefix}{$currency->suffix} @@ -208,7 +208,7 @@ $(document).ready(function () {
{if isset($pack) && $pack->isPack($product->id)}

{l s='The sum of prices of the products in the pack is %s%s%s' sprintf=[$currency->prefix,{toolsConvertPrice price=$pack->noPackPrice($product->id)|string_format:$priceDisplayPrecisionFormat},$currency->suffix]}

{/if} -
+
*}
");var a=f.showWeekNumbers?6:5,n="<";f.customArrowPrevSymbol&&(n=f.customArrowPrevSymbol);var r=">";if(f.customArrowNextSymbol&&(r=f.customArrowNextSymbol),t+='
'+E()+"
'+n+' '+(f.singleDate||!f.stickyMonths?''+r+"":"")+'
",f.singleMonth||(t+='
'+function(){for(var e=['
'],t=0;t<20;t++)e.push('
');return e.push("
"),e.join("")}()+'
'+E()+"
'+(f.stickyMonths?"":''+n+"")+' '+r+'
"),t+='
',f.singleDate||(t+='
'),t+='
',t+='")}().hide()).append('
'),U(f.container).append(m),f.inline?m.addClass("inline-wrapper"):i();f.alwaysOpen&&m.find(".apply-btn").hide();var e=_();if(G(e),f.time.enabled)if(f.startDate&&f.endDate||f.start&&f.end)Y(Q(f.start||f.startDate).toDate(),"time1"),Y(Q(f.end||f.endDate).toDate(),"time2");else{var a=f.defaultEndTime?f.defaultEndTime:e;Y(e,"time1"),Y(a,"time2")}var n="";n=f.singleDate?K("default-single"):f.minDays&&f.maxDays?K("default-range"):f.minDays?K("default-more"):f.maxDays?K("default-less"):K("default-default");m.find(".default-top").html(n.replace(/\%d/,f.minDays).replace(/\%d/,f.maxDays)),f.singleMonth?m.addClass("single-month"):m.addClass("two-months");setTimeout(function(){l(),s=!0},0),m.on("click",function(e){e.stopPropagation()}),U(document).on("click.datepicker",Z),m.find(".next").on("click",function(){f.stickyMonths?function(e){var t=F(f.month1),a=F(f.month2);if(q(a))return;if(!f.singleDate&&0<=L(t,a))return;O(t,"month1"),O(a,"month2"),C()}():function(e){var t=U(e).parents("table").hasClass("month2"),a=t?f.month2:f.month1;if(a=F(a),!f.singleMonth&&!f.singleDate&&!t&&0<=L(a,f.month2)||q(a))return;O(a,t?"month2":"month1"),I()}(this)}),m.find(".prev").on("click",function(){f.stickyMonths?function(e){var t=R(f.month1),a=R(f.month2);if(q(t))return;if(!f.singleDate&&L(a,t)<=0)return;O(a,"month2"),O(t,"month1"),C()}():function(e){var t=U(e).parents("table").hasClass("month2"),a=t?f.month2:f.month1;if(a=R(a),t&&L(a,f.month1)<=0||q(a))return;O(a,t?"month2":"month1"),I()}(this)}),m.attr("unselectable","on").css("user-select","none").on("selectstart",function(e){return e.preventDefault(),!1}),m.find(".apply-btn").on("click",function(){B();var e=W(new Date(f.start))+f.separator+W(new Date(f.end));U(t).trigger("datepicker-apply",{value:e,date1:new Date(f.start),date2:new Date(f.end)})}),m.find("[custom]").on("click",function(){var e=U(this).attr("custom");f.start=!1,f.end=!1,m.find(".day.checked").removeClass("checked"),f.setValue.call(o,e),M(),S(!0),C(),f.autoClose&&B()}),m.find("[shortcut]").on("click",function(){var e,t=U(this).attr("shortcut"),a=new Date,n=!1;if(-1!=t.indexOf("day")){var r=parseInt(t.split(",",2)[1],10);n=new Date((new Date).getTime()+864e5*r),a=new Date(a.getTime()+864e5*(0f.end){var a=f.end;f.end=v(f.start),f.start=p(a),f.time.enabled&&f.swapTime&&(u("time1",f.start),u("time2",f.end))}f.start=parseInt(f.start),f.end=parseInt(f.end),b(),f.start&&!f.end&&(U(n).trigger("datepicker-first-date-selected",{date1:new Date(f.start)}),y(e)),w(),M(),S(),C(),x()}}function g(e){if(e=parseInt(e,10),f.startDate&&H(e,f.startDate)<0)return!1;if(f.endDate&&0f.maxDays)return!1;if(0f.start)return!1;if(f.beforeShowDay&&"function"==typeof f.beforeShowDay){for(var t=!0,a=e;1f.start&&(a-=864e5),a'+e.attr("data-tooltip")+"";else if(!e.hasClass("invalid"))if(f.singleDate)m.find(".day.hovering").removeClass("hovering"),e.addClass("hovering");else if(m.find(".day").each(function(){var e=parseInt(U(this).attr("time"));f.start,f.end;e==t?U(this).addClass("hovering"):U(this).removeClass("hovering"),f.start&&!f.end&&(f.starte&&t<=e)?U(this).addClass("hovering"):U(this).removeClass("hovering")}),f.start&&!f.end){var n=z(t,f.start);f.hoveringTooltip&&("function"==typeof f.hoveringTooltip?a=f.hoveringTooltip(n,f.start,t):!0===f.hoveringTooltip&&1f.maxDays?(f.start=!1,f.end=!1,m.find(".day").removeClass("checked"),m.find(".drp_top-bar").removeClass("normal").addClass("error").find(".error-top").html(K("less-than").replace("%d",f.maxDays))):f.minDays&&et.getTime()){var n=t;t=e,e=n,n=null}var r=!0;if(f.startDate&&H(e,f.startDate)<0&&(r=!1),f.endDate&&0'+A(a)+"
";if(!f.monthSelect)return n;var r=!!f.startDate&&Q(f.startDate).add(f.singleMonth||"month2"!==t?0:1,"month"),s=!!f.endDate&&Q(f.endDate).add(f.singleMonth||"month1"!==t?0:-1,"month"),o=r&&e.isSame(r,"year")?r.get("month"):0,i=s&&e.isSame(s,"year")?s.get("month"):11,d=Math.min(o,a),l=Math.max(i,a);if(d===l)return n;return P("month",V({minSelectable:o,maxSelectable:i,minVisible:d,maxVisible:l},a,function(e){return A(e)}))}(e=Q(e).toDate(),t),n=function(e,t){var a=(e=Q(e)).get("year"),n='
'+a+"
";if(!f.yearSelect)return n;var r=f.yearSelect&&"function"==typeof f.yearSelect,s=!!f.startDate&&Q(f.startDate).add(f.singleMonth||"month2"!==t?0:1,"month"),o=!!f.endDate&&Q(f.endDate).add(f.singleMonth||"month1"!==t?0:-1,"month"),i=r?f.yearSelect(a):f.yearSelect.slice(),d=s?Math.max(i[0],s.get("year")):Math.min(i[0],a),l=o?Math.min(i[1],o.get("year")):Math.max(i[1],a),u=Math.min(d,a),m=Math.max(l,a);if(u===m)return n;return P("year",V({minSelectable:d,maxSelectable:l,minVisible:u,maxVisible:m},a))}(e,t);m.find("."+t+" .month-name").html(a+" "+n),m.find("."+t+" tbody").html(function(e){var t=[];e.setDate(1);new Date(e.getTime()-864e5);var a,n,r=new Date,s=e.getDay();0===s&&"monday"===f.startOfWeek&&(s=7);if(0");for(var i=0;i<7;i++){var m="monday"==f.startOfWeek?i+1:i;a=t[7*u+m];var h=Q(a.time).format("L")==Q(r).format("L");if(a.extraClass="",a.tooltip="",a.valid&&f.beforeShowDay&&"function"==typeof f.beforeShowDay){var c=f.beforeShowDay(Q(a.time).toDate());a.valid=c[0],a.extraClass=c[1]||"",a.tooltip=c[2]||"",""!==a.tooltip&&(a.extraClass+=" has-tooltip ")}var p={time:a.time,"data-tooltip":a.tooltip,class:"day "+a.type+" "+a.extraClass+" "+(a.valid?"valid":"invalid")+" "+(h?"real-today":"")};0===i&&f.showWeekNumbers&&l.push('
'+f.getWeekNumber(a.date)+"
"),l.push("
"+J(a.time,a.day)+"
")}l.push("")}return l.join("")}(e)),f[t]=e,w(),m.find(".day").off("click").on("click",function(e){k(U(this))}),m.find(".day").off("mouseenter").on("mouseenter",function(e){y(U(this))}),m.find(".day").off("mouseleave").on("mouseleave",function(e){m.find(".date-range-length-tip").hide(),f.singleDate&&b()}),m.find(".week-number").off("click").on("click",function(e){var t,a,n,r;t=U(this),r=parseInt(t.attr("data-start-time"),10),f.startWeek?(m.find(".week-number-selected").removeClass("week-number-selected"),a=new Date(re.maxSelectable});return n}function P(e,t){for(var a,n='
"+a+"
"}function Y(e,t){m.find("."+t).append("
"+K("Time")+': 00:00
'),u(t,e)}function A(e){return K("month-name")[e]}function W(e){return Q(e).format(f.format)}function I(){C();var e=parseInt(Q(f.month1).format("YYYYMM")),t=parseInt(Q(f.month2).format("YYYYMM")),a=Math.abs(e-t);1"+K("week-number")+"":"";return"monday"==f.startOfWeek?e+""+K("week-1")+""+K("week-2")+""+K("week-3")+""+K("week-4")+""+K("week-5")+""+K("week-6")+""+K("week-7")+"":e+""+K("week-7")+""+K("week-1")+""+K("week-2")+""+K("week-3")+""+K("week-4")+""+K("week-5")+""+K("week-6")+""}function q(e){return e=Q(e),!(!f.startDate||!e.endOf("month").isBefore(f.startDate))||!(!f.endDate||!e.startOf("month").isAfter(f.endDate))}function $(e,t,r){var s=U.extend(!0,{},e);U.each(t,function(e,t){var a=t(r);for(var n in a)s.hasOwnProperty(n)?s[n]+=a[n]:s[n]=a[n]});var a="";for(var n in s)s.hasOwnProperty(n)&&(a+=n+'="'+s[n]+'" ');return a}function J(e,t){return f.showDateFilter&&"function"==typeof f.showDateFilter?f.showDateFilter(e,t):t}function K(e){var t=e.toLowerCase(),a=e in r?r[e]:t in r?r[t]:null,n=U.dateRangePickerLanguages.default;return null==a&&(a=e in n?n[e]:t in n?n[t]:""),a}function _(){var e=f.defaultTime?f.defaultTime:new Date;return f.lookBehind?(f.startDate&&L(e,f.startDate)<0&&(e=F(Q(f.startDate).toDate())),f.endDate&&0'+c.customTopBar+"
"):(e+='
'+W("selected")+' ...',c.singleDate||(e+=' '+c.separator+' ... (3 '+W("days")+")"),e+='
error
default
'),e=e+('');var t=c.showWeekNumbers?6:5,a="<";c.customArrowPrevSymbol&&(a=c.customArrowPrevSymbol);var n,s=">";c.customArrowNextSymbol&&(s=c.customArrowNextSymbol);e+='
'+$()+"
'+a+' '+(c.singleDate||!c.stickyMonths?''+s+"":"")+'
",c.singleMonth||(e+='
'+function(){for(var e=['
'],t=0;t<20;t++)e.push('
');return e.push("
"),e.join("")}()+'
'+$()+"
'+(c.stickyMonths?"":''+a+"")+' '+s+'
");e+='
',c.singleDate||(e+='
');if(e+='
")}().hide()).append('
'),Z(c.container).append(l),c.inline?l.addClass("inline-wrapper"):i(),c.alwaysOpen&&l.find(".apply-btn").hide(),t=K(),_(t),c.time.enabled&&(c.startDate&&c.endDate||c.start&&c.end?(z(U(c.start||c.startDate).toDate(),"time1"),z(U(c.end||c.endDate).toDate(),"time2")):(e=c.defaultEndTime||t,z(t,"time1"),z(e,"time2"))),t="",t=c.singleDate?W("default-single"):c.minDays&&c.maxDays?W("default-range"):c.minDays?W("default-more"):c.maxDays?W("default-less"):W("default-default"),l.find(".default-top").html(t.replace(/\%d/,c.minDays).replace(/\%d/,c.maxDays)),c.singleMonth?l.addClass("single-month"):l.addClass("two-months"),setTimeout(function(){u(),n=!0},0),l.on("click",function(e){e.stopPropagation()}),Z(document).on("click.datepicker",G),l.find(".next").on("click",function(){var e,t;c.stickyMonths?(e=P(c.month1),A(t=P(c.month2))||!c.singleDate&&0<=O(e,t)||(S(e,"month1"),S(t,"month2"),M())):(e=Z(e=this).parents("table").hasClass("month2"),t=P(t=e?c.month2:c.month1),!c.singleMonth&&!c.singleDate&&!e&&0<=O(t,c.month2)||A(t)||(S(t,e?"month2":"month1"),C()))}),l.find(".prev").on("click",function(){var e,t;c.stickyMonths?(t=Y(c.month1),e=Y(c.month2),A(t)||!c.singleDate&&O(e,t)<=0||(S(e,"month2"),S(t,"month1"),M())):(e=Z(e=this).parents("table").hasClass("month2"),t=Y(t=e?c.month2:c.month1),e&&O(t,c.month1)<=0||A(t)||(S(t,e?"month2":"month1"),C()))}),l.attr("unselectable","on").css("user-select","none").on("selectstart",function(e){return e.preventDefault(),!1}),l.find(".apply-btn").on("click",function(){T();var e=j(new Date(c.start))+c.separator+j(new Date(c.end));Z(a).trigger("datepicker-apply",{value:e,date1:new Date(c.start),date2:new Date(c.end)})}),l.find("[custom]").on("click",function(){var e=Z(this).attr("custom");c.start=!1,c.end=!1,l.find(".day.checked").removeClass("checked"),c.setValue.call(o,e),y(),b(!0),M(),c.autoClose&&T()}),l.find("[shortcut]").on("click",function(){var e=Z(this).attr("shortcut"),t=new Date,a=!1;if(-1!=e.indexOf("day"))var n=parseInt(e.split(",",2)[1],10),a=new Date((new Date).getTime()+864e5*n),t=new Date(t.getTime()+864e5*(0c.end&&(t=c.end,c.end=v(c.start),c.start=f(t),c.time.enabled)&&c.swapTime&&(m("time1",c.start),m("time2",c.end)),c.start=parseInt(c.start),c.end=parseInt(c.end),N(),c.start&&!c.end&&(Z(r).trigger("datepicker-first-date-selected",{date1:new Date(c.start)}),B(e)),g(),y(),b(),M(),w())}function k(e){if(e=parseInt(e,10),c.startDate&&V(e,c.startDate)<0)return!1;if(c.endDate&&0c.maxDays)return!1;if(0c.start)return!1;if(c.beforeShowDay&&"function"==typeof c.beforeShowDay){for(var t=!0,a=e;1c.start&&(a-=864e5),a'+e.attr("data-tooltip")+"":e.hasClass("invalid")||(c.singleDate?(l.find(".day.hovering").removeClass("hovering"),e.addClass("hovering")):(l.find(".day").each(function(){var e=parseInt(Z(this).attr("time"));c.start,c.end;e==o?Z(this).addClass("hovering"):Z(this).removeClass("hovering"),c.start&&!c.end&&(c.starte&&o<=e)?Z(this).addClass("hovering"):Z(this).removeClass("hovering")}),c.start&&!c.end&&(s=D(o,c.start),c.hoveringTooltip)&&("function"==typeof c.hoveringTooltip?i=c.hoveringTooltip(s,c.start,o):!0===c.hoveringTooltip&&1c.maxDays?(c.start=!1,c.end=!1,l.find(".day").removeClass("checked"),l.find(".drp_top-bar").removeClass("normal").addClass("error").find(".error-top").html(W("less-than").replace("%d",c.maxDays))):c.minDays&&et.getTime()&&(n=t,t=e,e=n,n=null);var n=!0;c.startDate&&V(e,c.startDate)<0&&(n=!1),((n=!(c.endDate&&0'+q(s)+"";var a,n,s,r,o,i=c.monthSelect&&(i=!!c.startDate&&U(c.startDate).add(c.singleMonth||"month2"!==a?0:1,"month"),a=!!c.endDate&&U(c.endDate).add(c.singleMonth||"month1"!==a?0:-1,"month"),i=i&&n.isSame(i,"year")?i.get("month"):0,n=a&&n.isSame(a,"year")?a.get("month"):11,a=Math.min(i,s),o=Math.max(n,s),a!==o)?R("month",F({minSelectable:i,maxSelectable:n,minVisible:a,maxVisible:o},s,q)):d,d=(n=t,a=(a=U(a=e)).get("year"),o='
'+a+"
",c.yearSelect&&(s=c.yearSelect&&"function"==typeof c.yearSelect,d=!!c.startDate&&U(c.startDate).add(c.singleMonth||"month2"!==n?0:1,"month"),n=!!c.endDate&&U(c.endDate).add(c.singleMonth||"month1"!==n?0:-1,"month"),s=s?c.yearSelect(a):c.yearSelect.slice(),d=d?Math.max(s[0],d.get("year")):Math.min(s[0],a),n=n?Math.min(s[1],n.get("year")):Math.max(s[1],a),s=Math.min(d,a),r=Math.max(n,a),s!==r)?R("year",F({minSelectable:d,maxSelectable:n,minVisible:s,maxVisible:r},a)):o);l.find("."+t+" .month-name").html(i+" "+d),l.find("."+t+" tbody").html(function(e){var t,a,n=[],s=(e.setDate(1),new Date(e.getTime()-864e5),new Date),r=e.getDay();0===r&&"monday"===c.startOfWeek&&(r=7);if(0");for(i=0;i<7;i++){var m="monday"==c.startOfWeek?i+1:i,m=U((t=n[7*u+m]).time).format("L")==U(s).format("L"),h=(t.extraClass="",t.tooltip="",t.valid&&c.beforeShowDay&&"function"==typeof c.beforeShowDay&&(h=c.beforeShowDay(U(t.time).toDate()),t.valid=h[0],t.extraClass=h[1]||"",t.tooltip=h[2]||"",""!==t.tooltip)&&(t.extraClass+=" has-tooltip "),{time:t.time,"data-tooltip":t.tooltip,class:"day "+t.type+" "+t.extraClass+" "+(t.valid?"valid":"invalid")+" "+(m?"real-today":"")});0===i&&c.showWeekNumbers&&l.push('
'+c.getWeekNumber(t.date)+"
"),l.push("
"+function(e,t){return c.showDateFilter&&"function"==typeof c.showDateFilter?c.showDateFilter(e,t):t}(t.time,t.day)+"
")}l.push("")}return l.join("")}(e)),c[t]=e,g(),l.find(".day").off("click").on("click",function(e){I(Z(this))}),l.find(".day").off("mouseenter").on("mouseenter",function(e){B(Z(this))}),l.find(".day").off("mouseleave").on("mouseleave",function(e){l.find(".date-range-length-tip").hide(),c.singleDate&&N()}),l.find(".week-number").off("click").on("click",function(e){var t,a,n,s;t=Z(this),s=parseInt(t.attr("data-start-time"),10),c.startWeek?(l.find(".week-number-selected").removeClass("week-number-selected"),a=new Date(se.maxSelectable});return n}function R(e,t){for(var a,n='
"+a+"
"}function z(e,t){l.find("."+t).append("
"+W("Time")+': 00:00
'),m(t,e)}function q(e){return W("month-name")[e]}function j(e){return U(e).format(c.format)}function C(){M();var e=parseInt(U(c.month1).format("YYYYMM")),t=parseInt(U(c.month2).format("YYYYMM")),e=Math.abs(e-t),t=(1"+W("week-number")+"":"";return"monday"==c.startOfWeek?e+""+W("week-1")+""+W("week-2")+""+W("week-3")+""+W("week-4")+""+W("week-5")+""+W("week-6")+""+W("week-7")+"":e+""+W("week-7")+""+W("week-1")+""+W("week-2")+""+W("week-3")+""+W("week-4")+""+W("week-5")+""+W("week-6")+""}function A(e){return e=U(e),c.startDate&&e.endOf("month").isBefore(c.startDate)||!(!c.endDate||!e.startOf("month").isAfter(c.endDate))}function J(e,t,s){var a,r=Z.extend(!0,{},e),n=(Z.each(t,function(e,t){var a,n=t(s);for(a in n)r.hasOwnProperty(a)?r[a]+=n[a]:r[a]=n[a]}),"");for(a in r)r.hasOwnProperty(a)&&(n+=a+'="'+r[a]+'" ');return n}function W(e){var t=e.toLowerCase(),a=e in s?s[e]:t in s?s[t]:null,n=Z.dateRangePickerLanguages.default;return a=null==a?e in n?n[e]:t in n?n[t]:"":a}function K(){var e=c.defaultTime||new Date;return c.lookBehind?(c.startDate&&O(e,c.startDate)<0&&(e=P(U(c.startDate).toDate())),c.endDate&&0 0 ? deci_string : '00'); + return abs_val_string + virgule + deci_string; } function formatCurrency(price, currencyFormat, currencySign, currencyBlank) diff --git a/log/.htaccess b/log/.htaccess index 93169e4eb..7c2f481d2 100644 --- a/log/.htaccess +++ b/log/.htaccess @@ -1,2 +1,11 @@ -Order deny,allow -Deny from all +# Apache 2.2 + + Order deny,allow + Deny from all + + +# Apache 2.4 + + Require all denied + + diff --git a/mails/.htaccess b/mails/.htaccess index 45feba9cf..1bb323e41 100644 --- a/mails/.htaccess +++ b/mails/.htaccess @@ -1,5 +1,16 @@ -Order deny,allow -Deny from all - -Allow from all - +# Apache 2.2 + + Order deny,allow + Deny from all + + Allow from all + + + +# Apache 2.4 + + Require all denied + + Require all granted + + diff --git a/modules/.htaccess b/modules/.htaccess index d6fd8d12b..cd6d6b97f 100644 --- a/modules/.htaccess +++ b/modules/.htaccess @@ -1,3 +1,12 @@ - -Deny from all + + # Apache 2.2 + + Order deny,allow + Deny from all + + + # Apache 2.4 + + Require all denied + diff --git a/modules/blocknewsletter/blocknewsletter.php b/modules/blocknewsletter/blocknewsletter.php index a7a0612d6..b2a0025d7 100644 --- a/modules/blocknewsletter/blocknewsletter.php +++ b/modules/blocknewsletter/blocknewsletter.php @@ -84,11 +84,22 @@ class Blocknewsletter extends Module 'actionCustomerAccountAdd', 'registerGDPRConsent', 'actionExportGDPRData', - 'actionDeleteGDPRCustomer' + 'actionDeleteGDPRCustomer', + 'actionObjectCustomerDeleteAfter', ) ); } + public function hookActionObjectCustomerDeleteAfter($params) + { + $objCustomer = $params['object']; + if (($register_status = $this->isNewsletterRegistered($objCustomer->email)) + && $register_status > 0 + ) { + $this->unregister($objCustomer->email, $register_status); + } + } + public function hookActionExportGDPRData($customer) { if (!Tools::isEmpty($customer['email']) && Validate::isEmail($customer['email'])) { diff --git a/modules/dashactivity/dashactivity.php b/modules/dashactivity/dashactivity.php index df63c4b60..4f30c3beb 100644 --- a/modules/dashactivity/dashactivity.php +++ b/modules/dashactivity/dashactivity.php @@ -87,10 +87,13 @@ class Dashactivity extends Module public function hookDashboardZoneOne($params) { $this->context->smarty->assign($this->getConfigFieldsValues()); + $date_from = $this->context->employee->stats_date_from; + $date_to = $this->context->employee->stats_date_to; $this->context->smarty->assign( array( 'dashactivity_config_form' => $this->renderConfigForm(), - 'link' => $this->context->link + 'link' => $this->context->link, + 'new_customer_filter_link' => $this->context->link->getAdminLink('AdminCustomers').'&customerFilter_date_add[]='.$date_from.'&customerFilter_date_add[]='.$date_to ) ); @@ -266,6 +269,7 @@ class Dashactivity extends Module SELECT COUNT(*) FROM `'._DB_PREFIX_.'customer` WHERE `date_add` BETWEEN "'.pSQL($params['date_from']).'" AND "'.pSQL($params['date_to']).'" + AND `deleted` = 0 '.Shop::addSqlRestriction(Shop::SHARE_ORDER) ); diff --git a/modules/dashactivity/views/css/dashactivity.css b/modules/dashactivity/views/css/dashactivity.css index 960bd1138..d07f1b9cd 100644 --- a/modules/dashactivity/views/css/dashactivity.css +++ b/modules/dashactivity/views/css/dashactivity.css @@ -43,11 +43,9 @@ color: #555555; } -#dashactivity .value { - position: absolute; - top: 0; - right: 0; - text-align: right; +#dashactivity .dash-live { + display: flex; + justify-content: space-between; } #dashactivity .value span { @@ -75,6 +73,11 @@ padding-top: 10px; } +#dashactivity .stats-list > li { + display: flex; + justify-content: space-between; +} + #dashactivity .stats-list > li:not(:last-child) { margin-bottom: 10px; } @@ -90,12 +93,6 @@ font-weight: bold; } -#dashactivity .stats-list .item-value { - position: absolute; - right: 0; - text-align: right; -} - #dashactivity .stats-list .item-value span { font-weight: bold; font-size: 16px; diff --git a/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl b/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl index 95cee2cd3..5ed29c94c 100644 --- a/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl +++ b/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl @@ -41,34 +41,35 @@
- +
{l s="Online Visitors" mod='dashactivity'} - - +
+ + {l s="in the last %d minutes" sprintf=$DASHACTIVITY_VISITOR_ONLINE|intval mod='dashactivity'} + +
+
+
- -
- - {l s="in the last %d minutes" sprintf=$DASHACTIVITY_VISITOR_ONLINE|intval mod='dashactivity'} -
- +
{l s="Active Booking Carts" mod='dashactivity'} - - +
+ + {l s="in the last %d minutes" sprintf=$DASHACTIVITY_CART_ACTIVE|intval mod='dashactivity'} + +
+
+ +
- -
- - {l s="in the last %d minutes" sprintf=$DASHACTIVITY_CART_ACTIVE|intval mod='dashactivity'} -
@@ -121,7 +122,7 @@