<title>{% if preferences.pref_slogan != "" %}{{ preferences.pref_slogan }} - {% endif %}{% if page_title != "" %}{{ page_title }} - {% endif %}Galette {{ constant('GALETTE_VERSION') }}</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
- <link rel="stylesheet" type="text/css" href="{{ base_path() }}/{{ constant('GALETTE_THEME') }}ui/semantic.min.css" />
+ <link rel="stylesheet" type="text/css" href="{{ base_path() }}/{{ constant('GALETTE_THEME') }}ui/semantic{% if i18n.isRtl() %}.rtl{% endif %}.min.css" />
{% if html_editor %}
<link rel="stylesheet" type="text/css" href="{{ base_path() }}/assets/css/codemirror.css">
{% endif %}
{% endif %}
-<div class="{{ component_classes }}" title="{{ _T("Choose your language") }}">
+<div class="{{ component_classes }}{% if i18n.isRtl() %} rtl{% endif %}" title="{{ _T("Choose your language") }}">
{% if header == true %}
<div class="image header title">
{% endif %}
<!DOCTYPE html>
-<html lang="{{ galette_lang }}">
+<html lang="{{ galette_lang }}"{% if i18n.isRtl() %} dir="rtl"{% endif %}>
<head>
- {% include 'elements/header.html.twig' %}
+ {% include 'elements/header.html.twig' with {
+ galette_lang: galette_lang
+ } %}
</head>
<body id="galette_body" class="pushable dimmable{% if login.isLogged() %} loggedin{% endif %} nojs">
{% include 'elements/navigation/navigation_sidebar.html.twig' %}
{% include 'elements/navigation/navigation_topbar.html.twig' %}
<div class="pusher">
- <div id="main" class="{% if not login.isLogged() %}container{% else %} full height{% endif %}">
+ <div id="main" class="{% if not login.isLogged() %}container{% else %} full height{% if i18n.isRtl() %} rtl{% endif %}{% endif %}">
{% if login.isLogged() %}
{% include 'elements/navigation/navigation_aside.html.twig' %}
{% endif %}
<!DOCTYPE html>
-<html lang="{{ galette_lang }}" class="public_page{% if additionnal_html_class is defined %} {{ additionnal_html_class }}{% endif %}">
+<html lang="{{ galette_lang }}"{% if i18n.isRtl() %} dir="rtl"{% endif %} class="public_page{% if additionnal_html_class is defined %} {{ additionnal_html_class }}{% endif %}">
<head>
- {% include 'elements/header.html.twig' %}
+ {% include 'elements/header.html.twig' with {
+ galette_lang: galette_lang
+ } %}
</head>
<body class="{% if body_class is defined and body_class == "front_page" %}front-page {% endif %}pushable{% if login.isLogged() %} loggedin{% endif %} nojs">
{% include 'elements/navigation/navigation_sidebar.html.twig' %}
{% include 'elements/navigation/navigation_topbar.html.twig' %}
<div class="pusher">
- <div id="main" class="{% if cur_route == "login" or cur_route == "password-lost" or cur_route == "password-recovery" or cur_route == "directlink" %}text {% endif %}{% if not login.isLogged() %}ui container{% else %}full height{% endif %}">
+ <div id="main" class="{% if cur_route == "login" or cur_route == "password-lost" or cur_route == "password-recovery" or cur_route == "directlink" %}text {% endif %}{% if not login.isLogged() %}ui container{% else %}full height{% if i18n.isRtl() %} rtl{% endif %}{% endif %}">
{% if login.isLogged() %}
{% include "elements/navigation/navigation_aside.html.twig" %}
{% endif %}
padding: 1.25rem;
}
}
+.loggedin #main.rtl {
+ background-image: url(@galetteBackgroundImageRtl);
+ background-position: left top;
+}
#top-navbar,
aside.computer.toc {
@fontName : 'PT Sans';
@galetteBackgroundImage : 'themes/galette/assets/images/bg.png';
+@galetteBackgroundImageRtl : 'themes/galette/assets/images/bg-rtl.png';
@galetteNavBackground : rgba(99, 107, 112, .3);
@galetteColor : #ffb619;
@lightGaletteColor : #ffda8b;
height: 7rem;
}
+/*--------------------------
+ Language dropdown
+---------------------------*/
+.ui.language.dropdown.rtl .menu {
+ left: auto;
+ right: 0;
+}
+
/*------------------------
Search dropdown
-------------------------*/