Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Front office 'hotel-reservation-theme' RTL compatibility #860

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions classes/controller/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ public function init()
'js_dir' => _THEME_JS_DIR_,
'base_dir' => __PS_BASE_URI__,
'language_code' => $this->context->language->language_code ? $this->context->language->language_code : $this->context->language->iso_code,
'language_is_rtl' => $this->context->language->is_rtl,
]);

/* get page name to display it in body id */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ $(document).ready(function(){
autoplayTimeout:5000,
autoplayHoverPause:true,
responsiveClass:true,
rtl: language_is_rtl,
responsive:{
1200:{
items:3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ $(document).ready(function(){
autoplayTimeout:5000,
autoplayHoverPause:true,
responsiveClass:true,
rtl: language_is_rtl,
});
});
322 changes: 322 additions & 0 deletions themes/hotel-reservation-theme/css/rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions themes/hotel-reservation-theme/global.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
{addJsDef id_lang=$cookie->id_lang|intval}
{/if}
{addJsDef lang_iso=$lang_iso}
{addJsDef language_is_rtl=$language_is_rtl|boolval}
{addJsDefL name=FancyboxI18nClose}{l s='Close'}{/addJsDefL}
{addJsDefL name=FancyboxI18nNext}{l s='Next'}{/addJsDefL}
{addJsDefL name=FancyboxI18nPrev}{l s='Previous'}{/addJsDefL}
Expand Down
2 changes: 1 addition & 1 deletion themes/hotel-reservation-theme/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9 ie8"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
<!--[if gt IE 8]> <html class="no-js ie9"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
<html{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if} style="{if $page_name == 'index'}height: 100%;{/if}">
<html{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if} {if isset($language_is_rtl) && $language_is_rtl}dir="rtl"{/if} style="{if $page_name == 'index'}height: 100%;{/if}">
<head>
<meta charset="utf-8" />
<title>{$meta_title|escape:'html':'UTF-8'}</title>
Expand Down