Compare commits

..

No commits in common. '8a1f7df30b6b767b23ba5984c2ca499c2b00cd85' and '5e7820061adbfcbc74b993da10e385299fdbe0bc' have entirely different histories.

@ -7,14 +7,10 @@ use Illuminate\Http\Request;
class ThemeController extends Controller class ThemeController extends Controller
{ {
// //
public function cssVariables() public function cssVariables()
{ {
$response = 'main{'; $response = 'main{';
if (langIsRTL(app()->getLocale())) {
$response .= 'font-feature-settings: "ss01";';
}
foreach (Setting::where('section', 'Theme')->whereNotNull('data') foreach (Setting::where('section', 'Theme')->whereNotNull('data')
->get(['value', 'data']) as $color) { ->get(['value', 'data']) as $color) {
$data = json_decode($color->data); $data = json_decode($color->data);
@ -25,6 +21,9 @@ class ThemeController extends Controller
} }
$response .= ';'; $response .= ';';
} }
if (langIsRTL(app()->getLocale())) {
$response .= 'font-feature-settings: "ss01";';
}
} }
$response .= '}'; $response .= '}';

@ -20,21 +20,10 @@ const toggleSideMenu = function (e) {
e.preventDefault(); e.preventDefault();
if (document.querySelector('.homayon-resp-menu').style.display == 'none'){ if (document.querySelector('.homayon-resp-menu').style.display == 'none'){
document.querySelector('.homayon-resp-menu').style.display = 'block'; document.querySelector('.homayon-resp-menu').style.display = 'block';
setTimeout(function () {
document.addEventListener('click', handleDocumentClick);
},100);
}else{ }else{
document.querySelector('.homayon-resp-menu').style.display = 'none'; document.querySelector('.homayon-resp-menu').style.display = 'none';
} }
}; };
function handleDocumentClick(e) {
const respMenu = document.querySelector('.homayon-resp-menu');
if (!respMenu.contains(e.target)) {
respMenu.style.display = 'none';
document.removeEventListener('click', handleDocumentClick);
}
}
document.addEventListener('DOMContentLoaded',function () { document.addEventListener('DOMContentLoaded',function () {
document.querySelector('#homa-toggle-menu')?.addEventListener('click',toggleSideMenu); document.querySelector('#homa-toggle-menu')?.addEventListener('click',toggleSideMenu);

@ -335,8 +335,6 @@
/* submenu expandable */ /* submenu expandable */
.homayon-resp-menu{ .homayon-resp-menu{
top: 0;
box-shadow: var(--xshop-shadow);
ul{ ul{
li{ li{
ul{ ul{

@ -4,8 +4,6 @@ var sliderSimple;
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
try { try {
if (document.querySelectorAll('.SliderSimple').length != 0) {
document.querySelectorAll('.SliderSimple')?.forEach(function (el) { document.querySelectorAll('.SliderSimple')?.forEach(function (el) {
if (el.classList.contains('.tns-slider')){ if (el.classList.contains('.tns-slider')){
console.log('ignore'); console.log('ignore');
@ -25,8 +23,6 @@ document.addEventListener('DOMContentLoaded', () => {
// speed:10000, // speed:10000,
}); });
}); });
}
} catch { } catch {
} }

Loading…
Cancel
Save