Compare commits

..
Author SHA1 Message Date
0ca0da8b1a feat: public release export of the mother theme only
- variants/export_public.sh builds a public folder + zip of ONLY this mother
  theme: excludes .git and variants/*.json (client house-style definitions),
  scans the result for client-identifying strings and aborts on any hit.
  Default output: <limesurvey-root>/dist (not inside upload/themes/survey,
  which is scanned for themes).
- README.md: "Public release" section; client-identifying examples scrubbed
  (generic <client> placeholders, no client names/colors); note that client
  definitions live in a private repo (gitignored here).
- .gitignore keeps variants/*.json (and the internal variants README) out of
  this public repository.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
7de33a31f7 chore: version 3.1.0, declare compatibility with LimeSurvey 6 and 7
- version 3.0.1 -> 3.1.0, lastUpdate refreshed.
- <compatibility> now lists 6.0 and 7.0 (same as the core vanilla theme), so
  the theme is accepted on both LS 6 and LS 7.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
7677aefc14 docs: document conventions in config.xml (HOUSE-STYLE markers, LF line endings)
- HOUSE-STYLE convention block above <options> and per-section markers
  (Images/Questions/Colors/Fonts) make clear which options are house-style
  specific and belong in variants/<client>.json only - never hardcoded in
  shared views/sass/css/js files.
- Header comment documents the LF-only line-ending rule (enforced by
  .gitattributes).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
80a3d4a079 feat(variants): thin client themes on one shared code base
Architecture: a client theme extends this mother theme via <extends> and
contains only a generated config.xml + its own files/ (logos). LimeSurvey
inherits all views/css/js/images from the mother, so changes here apply to
every variant immediately.

- variants/<client>.json holds ONLY the house-style values (colors, fonts,
  font sizes/weights/colors, logo files, logotopmargin, custom fonts).
- variants/build.php generates ../<client>/config.xml from the mother
  config.xml + the json: only those values are replaced, <extends> is set,
  <engine> is emptied except <optionspage>. Unknown option keys fail the
  build loudly, so drift is caught at build time.
- Client definitions (variants/<client>.json) are gitignored (see .gitignore)
  and live in a PRIVATE variants repo or locally; build.php reads them from
  there via its 2nd argument or RESPONDAGE_VARIANTS_DIR.
- README.md: "Client variants" workflow.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
02eda6c503 feat(variants): custom fonts per client variant
- config.xml: "Custom (this theme)" optgroup in the font dropdown plus an
  instruction comment on how to place a custom font (@font-face + body class
  in the variant's own css).
- variants/build.php: supports "fontOptions" (dropdown entries) and "files_add"
  (extra css/js of the variant) in the variant json.
- README.md: "Custom fonts per variant" section.

data-font-package stays "websafe" because LimeSurvey only knows core font
packages; the real font is loaded via the variant's css.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
b6a9ac74db feat(options): logo top margin (logotopmargin)
- config.xml: new duration option "logotopmargin" in the Images category (default 15px).
- custom_header.twig: sets padding-top of the header logos, so 0px aligns a logo
  exactly with the top of the screen.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
193de4b6b9 feat(options): menu item text color in the top bar (navbarfontcolor)
- config.xml: new colorpicker "navbarfontcolor" in the Colors category.
- custom_header.twig: applies it to #survey-nav menu links (normal + hover/focus,
  hover at 0.75 opacity), replacing the old bootstrap3 .navbar-default hover rule.
  Pick a color that contrasts with headerbackgroundcolor.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
cee78a973f feat(header): left, center and right logos in the header navbar
- config.xml: brandlogo/brandlogofile = left logo; new centerlogo/centerlogofile
  and rightlogo/rightlogofile options; old secondlogo/secondlogofile removed.
- nav_bar.twig renders the three positions: left in flow, center absolutely
  centered, right flush right (ms-auto on the logo, menu keeps ms-auto when no
  right logo). Logos render only when the file resolves (imageSrc guard).
- sass/plain.sass: flex/relative container + absolute centering for .logo-center.
- options/options.twig: removed dead secondlogo variables.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
7fdf23d196 chore: normalize all line endings to LF and enforce via .gitattributes
All text files in the theme (config.xml, sass, css, js, twig, md) used mixed
CRLF/LF. Normalize everything to LF (Unix), matching the LimeSurvey core
themes. .gitattributes (* text=auto eol=lf, binary images/fonts) keeps it
that way; config.xml documents the convention in its header comment.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:36:04 +01:00
18 changed files with 1721 additions and 1180 deletions

17
.gitattributes vendored Normal file
View file

@ -0,0 +1,17 @@
# One consistent line-ending approach for this theme: LF (Unix) everywhere.
# See the comment at the top of config.xml. Text files are normalized to LF
# in the repository and checked out with LF; binary files are stored as-is.
* text=auto eol=lf
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.svg binary
*.ico binary
*.zip binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.eot binary
*.map -text

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
# Client variant definitions contain confidential house-style values (client
# names, colors, fonts, logo files). They are NOT kept in this public repo:
# store them in the private variants repository or locally, and point
# variants/build.php at that folder (2nd CLI argument or RESPONDAGE_VARIANTS_DIR).
variants/*.json
variants/README.internal.md

135
README.md
View file

@ -1 +1,134 @@
This is a LimeSurvey version 6 theme as an extension of the Vanilla base theme. Respondage Vanilla — LimeSurvey theme (version 6/7 compatible), extension of the core Vanilla theme.
This is the MOTHER theme. Client-specific variants (e.g. `<client>_vanilla`)
extend this theme via `<extends>respondage_vanilla</extends>` and contain only
a generated `config.xml` plus their own `files/` (logos). LimeSurvey inherits
all files (views, css, js, images, options page) from the mother theme, so any
change to a file in this theme automatically applies to all variants — no
copying of files needed.
## What's in here
- `config.xml` — theme manifest incl. all theme options (colors, fonts, font
sizes/weights/colors, header logos, ...).
- `views/` — twig overrides (header with left/center/right logos and navbar
menu color, survey list, question, group description).
- `sass/` → `css/plain.css` — theme styles (keep both in sync; plain.css is
the compiled output of sass/plain.sass).
- `css/custom.css`, `scripts/custom.js` — loaded last, safe for project
tweaks.
- `options/` — options page assets.
- `variants/` — build/export tooling only. Client variant definitions
(`variants/*.json`) hold confidential house-style values, are gitignored
(see `.gitignore`) and live in the private variants repo, not here.
## Header logos (left / center / right)
Three independent logo options in the Images category: `brandlogo`(+`brandlogofile`)
left, `centerlogo`(+`centerlogofile`) center, `rightlogo`(+`rightlogofile`)
right. The center logo is absolutely centered in the navbar (see
`sass/plain.sass`). Logo files are looked up in the theme's own `files/`
folder first, then in the mother theme's `files/` folder.
## Menu item color in the top bar
Option `navbarfontcolor` (Colors category) sets the text color of the menu
items in the navbar; it is applied in `views/subviews/header/custom_header.twig`
and should contrast with `headerbackgroundcolor`.
## Distance from the logo to the top of the screen
Option `logotopmargin` (Images category, e.g. `15px` or `0px`) sets the top
padding of the header logos, applied in `custom_header.twig`. Use `0px` to
align a logo exactly with the top of the screen.
## Custom fonts per variant
LimeSurvey only knows its core font packages (`application/config/fonts.php`),
so a theme cannot register a `font-*` package itself. Instead a variant ships
its own font files and css:
1. Put the font files in the variant's `files/fonts/` (e.g. `my-custom-font.woff2`).
2. Create `css/variant.css` in the variant with the `@font-face` and the body
class rule (the selected font is applied as `font-<value>` on `<body>`):
```css
@font-face {
font-family: 'My Custom Font';
src: url('../files/fonts/my-custom-font.woff2') format('woff2');
font-weight: 400; font-style: normal;
}
body.font-my_custom_font {
font-family: 'My Custom Font', Arial, sans-serif;
}
```
(`../files/...` works because the asset manager copies the whole theme dir.)
3. In `variants/<client>.json` declare the css file and the dropdown entry:
```json
{
"files_add": { "css": ["css/variant.css"], "js": [] },
"fontOptions": [ { "value": "my_custom_font", "label": "My Custom Font" } ]
}
```
`build.php` appends the css to the `<files>` list and the font to the
"Custom (this theme)" optgroup of the font dropdown (`data-font-package`
stays `websafe`, so no nonexistent package is requested — the real font is
loaded by the variant's own css).
4. Run `php variants/build.php <client>` and upload/reset as usual.
## Client variants (house styles) without code duplication
House-style-specific values are ONLY: colors, fonts, and font
sizes/colors/weights (plus logo files). Everything else lives once, here.
Workflow:
1. In `config.xml`, the house-style options are marked with `HOUSE-STYLE`
comments (colors, fonts, font sizes/weights, logo files, logo top margin,
background image/color). Only those values belong in a variant json —
never hardcode house-style values in shared files (`views/`, `sass/`,
`css/`, `scripts/`), because those are inherited by all variants.
2. Create `variants/<client>.json` with the variant name/title/description and
only the house-style option keys with the client values:
```json
{
"name": "client_vanilla",
"title": "Client Vanilla",
"options": { "primarycolor": "#123456", "fontsize": "18px" }
}
```
2. Run `php variants/build.php <client>`. This generates
`../<client>/config.xml`: a copy of this theme's config.xml with only those
option values replaced, `<extends>` set to this theme, and the `<engine>`
section emptied except `<optionspage>` (same as LimeSurvey's own "extend
theme" action), so engine settings are inherited. The `<files>` list is
kept: LimeSurvey resolves each listed file in the variant first and then in
the mother, so the mother's css/js keep loading until a variant ships its
own file with the same name. Unknown option keys make the build fail
loudly, so drift is caught at build time.
3. Put the client's images in `../<client>/files/`, upload the folder to
`upload/themes/survey/`, install/reset the theme in LimeSurvey.
Because of the native `<extends>` mechanism:
- changes to any file (twig/css/js) in this mother theme apply to all
variants immediately — edit them only here;
- changes to non-house-style option defaults in `config.xml` apply to a
variant after re-running the build script and resetting that variant theme;
- house-style values live only in `variants/<client>.json` and the variant's
`files/`, so they are never overwritten by changes in this mother theme.
## Public release
The public version of this theme is ONLY the mother theme: this directory
without `variants/` (client house-style definitions) and without `.git`.
Build it with:
bash variants/export_public.sh [output-dir]
This creates a checked, client-free copy plus a zip (default output:
`<limesurvey-root>/dist/`). Publish only that artifact / the `main` branch.
NEVER publish: `variants/*.json`, generated client theme folders, or any git
branch containing a client theme (client names, colors and logos are
confidential). Client variant definitions stay in a PRIVATE repository (or
locally); `variants/*.json` is gitignored and `build.php` reads the
definitions from that private folder via its second argument or
RESPONDAGE_VARIANTS_DIR.

View file

@ -1,427 +1,498 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
(¯`·._.·(¯`·._.· Vanilla Theme Manifest ·._.·´¯)·._.·´¯) (¯`·._.·(¯`·._.· Vanilla Theme Manifest ·._.·´¯)·._.·´¯)
Base configuration for Vanilla Theme. Base configuration for Vanilla Theme.
The content of this file is imported into DB when you install the template. The content of this file is imported into DB when you install the template.
-->
<config> Line endings: ALL text files in this theme (including this config.xml) use
<!-- Those metadata are displayed in the theme configuration page. --> LF (Unix) line endings only - no CRLF, no lone CR. This is enforced by
<metadata> .gitattributes (* text=auto eol=lf). Keep it that way so diffs stay
<name>respondage_vanilla</name> readable; do not re-save files with CRLF line endings.
<title>Respondage Vanilla</title> -->
<type>theme</type> <config>
<creationDate>2024-04-19 12:03</creationDate> <!-- Those metadata are displayed in the theme configuration page. -->
<author>admin</author> <metadata>
<authorEmail>tammo.terhark@respondage.nl</authorEmail> <name>respondage_vanilla</name>
<authorUrl>http://www.respondage.nl</authorUrl> <title>Respondage Vanilla</title>
<copyright>Copyright (C) 2026 Respondage. All rights reserved.</copyright> <type>theme</type>
<license>GNU General Public License version 2 or later</license> <creationDate>2024-04-19 12:03</creationDate>
<version>3.0.1</version> <author>admin</author>
<apiVersion>3</apiVersion> <authorEmail>tammo.terhark@respondage.nl</authorEmail>
<description><![CDATA[<strong>Respondage Theme based on core theme Vanilla</strong><br>A clean and simple base that was used by a certain theme developer to create a really clean theme.]]></description> <authorUrl>http://www.respondage.nl</authorUrl>
<lastUpdate>2026-06-10 12:00:00</lastUpdate> <copyright>Copyright (C) 2026 Respondage. All rights reserved.</copyright>
<extends>vanilla</extends> <license>GNU General Public License version 2 or later</license>
</metadata> <version>3.1.0</version>
<apiVersion>3</apiVersion>
<compatibility> <description><![CDATA[<strong>Respondage Theme based on core theme Vanilla</strong><br>A clean and simple base that was used by a certain theme developer to create a really clean theme.]]></description>
<version>6.0</version> <lastUpdate>2026-11-16 19:13:27</lastUpdate>
</compatibility> <extends>vanilla</extends>
</metadata>
<!--
Here the list of the css/js files to add to the template package. <compatibility>
About packages in Yii: http://www.yiiframework.com/doc/api/1.1/CClientScript#packages-detail <version>6.0</version>
NOTE: The "add" tag also count as a "replace" tag. <version>7.0</version>
Eg: You can't just "add" a file in the extended theme with the same name as a file here. It will always "replace" it. You must use a diffrent file name. </compatibility>
Eg: Vanilla manifest already has "<add>css/theme.css</add>". So if you use "<add>css/theme.css</add>" in an extended theme, it will replace the vanilla css/theme.css
NOTE: If an extended theme, if you don't change a file that is defined here, you don't need to add it again. <!--
Eg: css/ajaxify.css is already added in vanilla. Nor fruity nor bootswatch modify it, so ne need to add / replace it in fruity or bootswatch. Here the list of the css/js files to add to the template package.
Even if no mention at all about "css/ajaxify.css" is theme extending vanilla, it will still be added because it's added here About packages in Yii: http://www.yiiframework.com/doc/api/1.1/CClientScript#packages-detail
NOTE: To easy test changes in config file, you can force the use of the XML file rather than DB. To do so, turn debug mode on, and in config.php config array, on bottom of debug mode, add: NOTE: The "add" tag also count as a "replace" tag.
'force_xmlsettings_for_survey_rendering' => true, Eg: You can't just "add" a file in the extended theme with the same name as a file here. It will always "replace" it. You must use a diffrent file name.
Then, you will not need anymore to reset your theme each time you change the config file. Eg: Vanilla manifest already has "<add>css/theme.css</add>". So if you use "<add>css/theme.css</add>" in an extended theme, it will replace the vanilla css/theme.css
But, once turning the setting off, You will still must reset the theme to the changes are pushed to DB NOTE: If an extended theme, if you don't change a file that is defined here, you don't need to add it again.
--> Eg: css/ajaxify.css is already added in vanilla. Nor fruity nor bootswatch modify it, so ne need to add / replace it in fruity or bootswatch.
<files> Even if no mention at all about "css/ajaxify.css" is theme extending vanilla, it will still be added because it's added here
<css> NOTE: To easy test changes in config file, you can force the use of the XML file rather than DB. To do so, turn debug mode on, and in config.php config array, on bottom of debug mode, add:
<add>css/base.css</add> 'force_xmlsettings_for_survey_rendering' => true,
<add>css/theme.css</add> Then, you will not need anymore to reset your theme each time you change the config file.
<add>css/noTablesOnMobile.css</add> But, once turning the setting off, You will still must reset the theme to the changes are pushed to DB
<add>css/plain.css</add> -->
<add>css/custom.css</add> <files>
</css> <css>
<js> <add>css/base.css</add>
<add>scripts/theme.js</add> <add>css/theme.css</add>
<add>scripts/custom.js</add> <add>css/noTablesOnMobile.css</add>
</js> <add>css/plain.css</add>
<print_css> <add>css/custom.css</add>
<add>css/print_theme.css</add> </css>
</print_css> <js>
</files> <add>scripts/theme.js</add>
<add>scripts/custom.js</add>
<!-- You can add here any option you want. It will be available in twig file via aSurveyInfo.options.youroptionname --> </js>
<options> <print_css>
<hideprivacyinfo type="buttons" category="Simple options" width="4" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo> <add>css/print_theme.css</add>
<container type="buttons" category="Simple options" width="4" title="Survey container" options="on|off" optionlabels="Yes|No">on</container> </print_css>
<showpopups type="buttons" category="Simple options" width="4" title="Show popups" options="1|0|-1" optionlabels="Popup|On page|No">1</showpopups> </files>
<showclearall type="buttons" category="Simple options" width="4" title="Show Clear All button" options="on|off" optionlabels="Yes|No">off</showclearall>
<fixnumauto type="buttons" category="Simple options" width="4" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto> <!-- You can add here any option you want. It will be available in twig file via aSurveyInfo.options.youroptionname -->
<!-- Images --> <!--
<brandlogo type="buttons" category="Images" width="2" title="Display main logo" options="on|off" optionlabels="Yes|No">on</brandlogo> HOUSE-STYLE CONVENTION:
<brandlogofile type="imagefile" category="Images" width="7" title="Main logo file" parent="brandlogo">./files/logo.png</brandlogofile> - Options in sections marked "HOUSE-STYLE" are house-style specific:
<secondlogo type="buttons" category="Images" width="2" title="Display second logo" options="on|off" optionlabels="Yes|No">on</secondlogo> colors, fonts and the sizes/colors/weights of those fonts, plus
<secondlogofile type="imagefile" category="Images" width="7" title="Second logo file" parent="secondlogo">./files/logo.png</secondlogofile> logo on/off + file, logo top margin and background image/color.
<backgroundimage type="buttons" category="Images" width="4" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage> - House-style values are ONLY set per client in variants/<client>.json
<backgroundimagefixed type="buttons" category="Images" width="4" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll">scroll</backgroundimagefixed> (processed by variants/build.php into the variant's config.xml).
<backgroundimagedisplay type="buttons" category="Images" width="4" title="Background image display" options="tile|cover" optionlabels="Tile|Cover">tile</backgroundimagedisplay> Never hardcode them in views/, sass/, css/ or scripts/: those files
<backgroundimagefile type="imagefile" category="Images" width="12" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile> are shared with all variants.
<bodybackgroundcolor type="colorpicker" category="Images" width="8" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#dddddd</bodybackgroundcolor> - Unmarked options are functional/structural (default of the mother
theme, same for all variants). A variant may still override them via
<!-- Questions --> the json; build.php checks that the key exists.
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="6" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor> -->
<questiontitlefontcolor type="colorpicker" category="Questions" width="6" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor> <options>
<questionbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor> <hideprivacyinfo type="buttons" category="Simple options" width="4" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo>
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor> <container type="buttons" category="Simple options" width="4" title="Survey container" options="on|off" optionlabels="Yes|No">on</container>
<questionborder type="buttons" category="Questions" width="6" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder> <showpopups type="buttons" category="Simple options" width="4" title="Show popups" options="1|0|-1" optionlabels="Popup|On page|No">1</showpopups>
<questionborderstyle type="buttons" category="Questions" width="6" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed">solid</questionborderstyle> <showclearall type="buttons" category="Simple options" width="4" title="Show Clear All button" options="on|off" optionlabels="Yes|No">off</showclearall>
<questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No">#cccccc</questionbordercolor> <fixnumauto type="buttons" category="Simple options" width="4" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
<questionborderradiusTL type="duration" category="Questions" width="3" title="Border radius top left">5px</questionborderradiusTL>
<questionborderradiusTR type="duration" category="Questions" width="3" title="Border radius top right">5px</questionborderradiusTR> <!-- Images
<questionborderradiusBL type="duration" category="Questions" width="3" title="Border radius bottom left">5px</questionborderradiusBL> HOUSE-STYLE: logos (on/off + file), logotopmargin, background image
<questionborderradiusBR type="duration" category="Questions" width="3" title="Border radius bottom right">5px</questionborderradiusBR> and bodybackgroundcolor are set per variant via variants/<client>.json -->
<questiondropdown type="buttons" category="Questions" width="6" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None">hover</questiondropdown> <!-- Images -->
<questionhelptextposition type="buttons" category="Questions" width="6" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition> <brandlogo type="buttons" category="Images" width="2" title="Display logo on the left of the header" options="on|off" optionlabels="Yes|No">on</brandlogo>
<checkboxcolor type="colorpicker" category="Questions" width="6" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor> <brandlogofile type="imagefile" category="Images" width="7" title="Logo file (left)" parent="brandlogo">./files/logo.png</brandlogofile>
<centerlogo type="buttons" category="Images" width="2" title="Display logo in the center of the header" options="on|off" optionlabels="Yes|No">off</centerlogo>
<!-- Progress --> <centerlogofile type="imagefile" category="Images" width="7" title="Logo file (center)" parent="centerlogo">./files/logo.png</centerlogofile>
<progressbarposition type="buttons" category="Progress" width="6" title="Position of the progress bar" options="under|in" optionlabels="Under header|In header">under</progressbarposition> <rightlogo type="buttons" category="Images" width="2" title="Display logo on the right of the header" options="on|off" optionlabels="Yes|No">off</rightlogo>
<rightlogofile type="imagefile" category="Images" width="7" title="Logo file (right)" parent="rightlogo">./files/logo2.png</rightlogofile>
<!-- Various colors --> <logotopmargin type="duration" category="Images" width="3" title="Distance from the logo to the top of the screen (use 0px to align a logo exactly with the very top)">15px</logotopmargin>
<headerbackgroundcolor type="colorpicker" category="Colors" width="12" title="Header background color" options="on|off" optionlabels="Yes|No">#eeeeee</headerbackgroundcolor> <backgroundimage type="buttons" category="Images" width="4" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
<primarycolor type="colorpicker" category="Colors" width="12" title="Primary color (for buttons)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor> <backgroundimagefixed type="buttons" category="Images" width="4" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll">scroll</backgroundimagefixed>
<fontcolor type="colorpicker" category="Colors" width="12" title="Base font color" options="on|off" optionlabels="Yes|No">#444444</fontcolor> <backgroundimagedisplay type="buttons" category="Images" width="4" title="Background image display" options="tile|cover" optionlabels="Tile|Cover">tile</backgroundimagedisplay>
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor> <backgroundimagefile type="imagefile" category="Images" width="12" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
<progressbarbackgroundcolor type="colorpicker" category="Colors" width="12" title="Progress bar background color" options="on|off" optionlabels="Yes|No">#eeeeee</progressbarbackgroundcolor> <bodybackgroundcolor type="colorpicker" category="Images" width="8" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#dddddd</bodybackgroundcolor>
<progressbarcolor type="colorpicker" category="Colors" width="12" title="Progress bar color" options="on|off" optionlabels="Yes|No">#5e1c64</progressbarcolor>
<progressbarfontcolor type="colorpicker" category="Colors" width="12" title="Progress bar font color" options="on|off" optionlabels="Yes|No">#ffffff</progressbarfontcolor> <!-- Questions
<privacybackgroundcolor type="colorpicker" category="Colors" width="12" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor> HOUSE-STYLE: the colorpicker options in this section (question
<!-- fonts --> title/background/help/border/checkbox colors) are house-style colors.
<!-- When adding new items, please keep fonts ordered alphabetically --> NOT house-style (structural, same for all variants): questionborder,
<font type="dropdown" category="Fonts" width="4" title="Fonts" parent="font">opensans questionborderstyle, the borderradius values, questiondropdown and
<dropdownoptions> questionhelptextposition. -->
<optgroup label="User browser"> <!-- Questions -->
<option class="font-arial " value="arial" data-font-package="websafe">Arial</option> <questiontitlebackgroundcolor type="colorpicker" category="Questions" width="6" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
<option class="font-arial_black " value="arial_black" data-font-package="websafe">Arial Black</option> <questiontitlefontcolor type="colorpicker" category="Questions" width="6" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
<option class="font-comic_sans " value="comic_sans" data-font-package="websafe">Comic Sans</option> <questionbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
<option class="font-courier " value="courier" data-font-package="websafe">Courier New</option> <questionhelpbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
<option class="font-georgia " value="georgia" data-font-package="websafe">Georgia</option> <questionborder type="buttons" category="Questions" width="6" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
<option class="font-impact " value="impact" data-font-package="websafe">Impact</option> <questionborderstyle type="buttons" category="Questions" width="6" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed">solid</questionborderstyle>
<option class="font-lucida_console " value="lucida_console" data-font-package="websafe">Lucida Console</option> <questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No">#cccccc</questionbordercolor>
<option class="font-lucida_sans " value="lucida_sans" data-font-package="websafe">Lucida Sans</option> <questionborderradiusTL type="duration" category="Questions" width="3" title="Border radius top left">5px</questionborderradiusTL>
<option class="font-palatino " value="palatino" data-font-package="websafe">Palatino Linotype</option> <questionborderradiusTR type="duration" category="Questions" width="3" title="Border radius top right">5px</questionborderradiusTR>
<option class="font-times_new_roman " value="times_new_roman" data-font-package="websafe">Times New Roman</option> <questionborderradiusBL type="duration" category="Questions" width="3" title="Border radius bottom left">5px</questionborderradiusBL>
<option class="font-trebuchet " value="trebuchet" data-font-package="websafe">Trebuchet</option> <questionborderradiusBR type="duration" category="Questions" width="3" title="Border radius bottom right">5px</questionborderradiusBR>
</optgroup> <questiondropdown type="buttons" category="Questions" width="6" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None">hover</questiondropdown>
</dropdownoptions> <questionhelptextposition type="buttons" category="Questions" width="6" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
</font> <checkboxcolor type="colorpicker" category="Questions" width="6" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
<fontsize type="buttons" category="Fonts" width="12" title="Base font size" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|Extra large (20 px)">16px</fontsize>
<questiontitlefontsize type="buttons" category="Fonts" width="6" title="Question title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</questiontitlefontsize> <!-- Progress -->
<questiontitlefontweight type="buttons" category="Fonts" width="6" title="Question title font weight" options="400|700" optionlabels="Normal|Bold">700</questiontitlefontweight> <progressbarposition type="buttons" category="Progress" width="6" title="Position of the progress bar" options="under|in" optionlabels="Under header|In header">under</progressbarposition>
<grouptitlefontsize type="buttons" category="Fonts" width="6" title="Group title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">2.0rem</grouptitlefontsize>
<grouptitlefontweight type="buttons" category="Fonts" width="6" title="Group title font weight" options="400|700" optionlabels="Normal|Bold">700</grouptitlefontweight> <!-- Various colors
<groupdescriptionfontsize type="buttons" category="Fonts" width="6" title="Group description font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</groupdescriptionfontsize> HOUSE-STYLE: ALL colorpickers in this section (header, navbar menu,
<groupdescriptionfontweight type="buttons" category="Fonts" width="6" title="Group description font weight" options="400|700" optionlabels="Normal|Bold">400</groupdescriptionfontweight> primary, font, slider, progressbar, privacy) are house-style colors
</options> and are set per variant via variants/<client>.json -->
<!-- Various colors -->
<!-- Here datas about how LimeSurvey should load the theme --> <headerbackgroundcolor type="colorpicker" category="Colors" width="12" title="Header background color" options="on|off" optionlabels="Yes|No">#eeeeee</headerbackgroundcolor>
<engine> <navbarfontcolor type="colorpicker" category="Colors" width="12" title="Menu item text color in the top bar (should contrast with the header background color)" options="on|off" optionlabels="Yes|No">#444444</navbarfontcolor>
<!-- core: use core options view file, custom: use customized options.twig view file --> <primarycolor type="colorpicker" category="Colors" width="12" title="Primary color (for buttons)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
<optionspage>core</optionspage> <fontcolor type="colorpicker" category="Colors" width="12" title="Base font color" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
<!-- If empty, bootstrap css/js files will not be loaded. In the future, we may have more engines, like foundation --> <progressbarbackgroundcolor type="colorpicker" category="Colors" width="12" title="Progress bar background color" options="on|off" optionlabels="Yes|No">#eeeeee</progressbarbackgroundcolor>
<cssframework> <progressbarcolor type="colorpicker" category="Colors" width="12" title="Progress bar color" options="on|off" optionlabels="Yes|No">#5e1c64</progressbarcolor>
<name>bootstrap</name> <progressbarfontcolor type="colorpicker" category="Colors" width="12" title="Progress bar font color" options="on|off" optionlabels="Yes|No">#ffffff</progressbarfontcolor>
</cssframework> <privacybackgroundcolor type="colorpicker" category="Colors" width="12" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
<!-- fonts
<!-- Path of the views files (can be different than views --> HOUSE-STYLE: the whole Fonts section (font choice, fontsize and all
<viewdirectory>views</viewdirectory> font sizes/weights) is house-style specific.
<!-- Asset manager will copy the whole theme directory to tmp. So it's possible to refer any file in the files directory in CSS via relative path (e.g: '../files/foo.jpg') --> PLACING A CUSTOM FONT - instructions:
<filesdirectory>files</filesdirectory> 1. Put the font file (e.g. .woff2) in the files/fonts/ folder of
the variant (or of this mother theme if all variants should be
<!-- Here, you can publish packages set as third party extensions in application/config/vendor or application/config/package --> able to pick the font).
<!-- If bootstrap is registered as a css framework, it will be loaded first --> 2. Create a css file in the variant, e.g. css/variant.css, with the
<packages> @font-face and the body class (the selected font is applied as
<add>pjax</add> class font-<value> on <body>):
<add>moment</add> @font-face {
<add>font-noto</add> font-family: 'My Custom Font';
</packages> src: url('../files/fonts/my-custom-font.woff2') format('woff2');
}
<!-- body.font-my_custom_font {
List of pages/files for tempalte editor font-family: 'My Custom Font', Arial, sans-serif;
When a user select a page, the related files will be offer in the editable files }
--> ('../files/...' works because the asset manager copies the whole
<template_editor> theme dir; in css of the mother theme likewise: ../files/fonts/...)
<screens> 3. Add to variants/<client>.json:
<question> "files_add": { "css": ["css/variant.css"], "js": [] },
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Question')}} ]]></screen_title> "fontOptions": [ { "value": "my_custom_font",
<file type="view" role="layout">layout_global.twig</file> "label": "My Custom Font" } ]
<file type="view" role="subview">./subviews/footer/footer.twig</file> build.php appends the css to the <files> list and the font to the
<file type="view" role="content">./subviews/content/main.twig</file> "Custom (this theme)" optgroup below. data-font-package stays
<file type="view" role="subview">./subviews/messages/justsaved.twig</file> "websafe": LimeSurvey only knows core font packages
<file type="view" role="subview">./subviews/survey/group.twig</file> (application/config/fonts.php); the actual font is loaded via
<file type="view" role="subview">./subviews/survey/group_subviews/group_container.twig</file> the variant's own css.
<file type="view" role="subview">./subviews/survey/group_subviews/group_desc.twig</file> 4. Run: php variants/build.php <client> and upload/reset the theme.
<file type="view" role="subview">./subviews/survey/group_subviews/group_name.twig</file> See also README.md ("Custom fonts per variant"). -->
<file type="view" role="subview">./subviews/survey/question.twig</file> <!-- fonts -->
<file type="view" role="subview">./subviews/survey/question_container.twig</file> <!-- When adding new items, please keep fonts ordered alphabetically -->
<file type="view" role="subview">./subviews/survey/question_subviews/question_text_container.twig</file> <font type="dropdown" category="Fonts" width="4" title="Fonts" parent="font">opensans
<file type="view" role="subview">./subviews/survey/question_subviews/question_text_content.twig</file> <dropdownoptions>
<file type="view" role="subview">./subviews/survey/question_subviews/answers.twig</file> <!-- Custom fonts of a variant are appended to the optgroup below by variants/build.php ("fontOptions" in the variant json) -->
<file type="view" role="subview">./subviews/survey/question_subviews/survey_question_help.twig</file> <optgroup label="Custom (this theme)">
<file type="view" role="subview">./subviews/survey/question_subviews/valid_message_and_help.twig</file> </optgroup>
<file type="css">./css/theme.css</file> <optgroup label="User browser">
<file type="js">./scripts/theme.js</file> <option class="font-arial " value="arial" data-font-package="websafe">Arial</option>
<file type="css">./css/custom.css</file> <option class="font-arial_black " value="arial_black" data-font-package="websafe">Arial Black</option>
<file type="js">./scripts/custom.js</file> <option class="font-comic_sans " value="comic_sans" data-font-package="websafe">Comic Sans</option>
</question> <option class="font-courier " value="courier" data-font-package="websafe">Courier New</option>
<option class="font-georgia " value="georgia" data-font-package="websafe">Georgia</option>
<surveylist> <option class="font-impact " value="impact" data-font-package="websafe">Impact</option>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Survey list')}} ]]></screen_title> <option class="font-lucida_console " value="lucida_console" data-font-package="websafe">Lucida Console</option>
<file type="view" role="layout">layout_survey_list.twig</file> <option class="font-lucida_sans " value="lucida_sans" data-font-package="websafe">Lucida Sans</option>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <option class="font-palatino " value="palatino" data-font-package="websafe">Palatino Linotype</option>
<file type="view" role="subview">./subviews/content/mainrow.twig</file> <option class="font-times_new_roman " value="times_new_roman" data-font-package="websafe">Times New Roman</option>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <option class="font-trebuchet " value="trebuchet" data-font-package="websafe">Trebuchet</option>
<file type="view" role="subview">./subviews/navigation/language_changer_form.twig</file> </optgroup>
<file type="css">./css/theme.css</file> </dropdownoptions>
<file type="js">./scripts/theme.js</file> </font>
<file type="css">./css/custom.css</file> <fontsize type="buttons" category="Fonts" width="12" title="Base font size" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|Extra large (20 px)">16px</fontsize>
<file type="js">./scripts/custom.js</file> <questiontitlefontsize type="buttons" category="Fonts" width="6" title="Question title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</questiontitlefontsize>
</surveylist> <questiontitlefontweight type="buttons" category="Fonts" width="6" title="Question title font weight" options="400|700" optionlabels="Normal|Bold">700</questiontitlefontweight>
<grouptitlefontsize type="buttons" category="Fonts" width="6" title="Group title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">2.0rem</grouptitlefontsize>
<welcome> <grouptitlefontweight type="buttons" category="Fonts" width="6" title="Group title font weight" options="400|700" optionlabels="Normal|Bold">700</grouptitlefontweight>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Welcome')}} ]]></screen_title> <groupdescriptionfontsize type="buttons" category="Fonts" width="6" title="Group description font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</groupdescriptionfontsize>
<file type="view" role="layout">layout_global.twig</file> <groupdescriptionfontweight type="buttons" category="Fonts" width="6" title="Group description font weight" options="400|700" optionlabels="Normal|Bold">400</groupdescriptionfontweight>
<file type="view" role="subview">./subviews/footer/footer.twig</file> </options>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <!-- Here datas about how LimeSurvey should load the theme -->
<file type="view" role="content">./subviews/content/firstpage.twig</file> <engine>
<file type="view" role="subview">./subviews/header/head.twig</file> <!-- core: use core options view file, custom: use customized options.twig view file -->
<file type="view" role="subview">./subviews/header/custom_header.twig</file> <optionspage>core</optionspage>
<file type="view" role="subview">./subviews/header/nav_bar.twig</file>
<file type="view" role="subview">./subviews/header/progress_bar.twig</file> <!-- If empty, bootstrap css/js files will not be loaded. In the future, we may have more engines, like foundation -->
<file type="view" role="subview">./subviews/messages/welcome.twig</file> <cssframework>
<file type="view" role="subview">./subviews/messages/warnings.twig</file> <name>bootstrap</name>
<file type="view" role="subview">./subviews/messages/no_js_alert.twig</file> </cssframework>
<file type="view" role="subview">./subviews/privacy/privacy.twig</file>
<file type="view" role="subview">./subviews/navigation/language_changer.twig</file> <!-- Path of the views files (can be different than views -->
<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file> <viewdirectory>views</viewdirectory>
<file type="view" role="subview">./subviews/logincomponents/token.twig</file>
<file type="css">./css/theme.css</file> <!-- Asset manager will copy the whole theme directory to tmp. So it's possible to refer any file in the files directory in CSS via relative path (e.g: '../files/foo.jpg') -->
<file type="js">./scripts/theme.js</file> <filesdirectory>files</filesdirectory>
<file type="css">./css/custom.css</file>
<file type="js">./scripts/custom.js</file> <!-- Here, you can publish packages set as third party extensions in application/config/vendor or application/config/package -->
</welcome> <!-- If bootstrap is registered as a css framework, it will be loaded first -->
<packages>
<completed> <add>pjax</add>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Completed')}} ]]></screen_title> <add>moment</add>
<file type="view" role="layout">layout_global.twig</file> <add>font-noto</add>
<file type="view" role="subview">./subviews/footer/footer.twig</file> </packages>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <!--
<file type="view" role="content">./subviews/content/submit.twig</file> List of pages/files for tempalte editor
<file type="css">./css/theme.css</file> When a user select a page, the related files will be offer in the editable files
<file type="js">./scripts/theme.js</file> -->
<file type="css">./css/custom.css</file> <template_editor>
<file type="js">./scripts/custom.js</file> <screens>
</completed> <question>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Question')}} ]]></screen_title>
<assessments> <file type="view" role="layout">layout_global.twig</file>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Assessments')}} ]]></screen_title> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="layout">layout_global.twig</file> <file type="view" role="content">./subviews/content/main.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <file type="view" role="subview">./subviews/messages/justsaved.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file> <file type="view" role="subview">./subviews/survey/group.twig</file>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <file type="view" role="subview">./subviews/survey/group_subviews/group_container.twig</file>
<file type="view" role="content">./subviews/content/submit.twig</file> <file type="view" role="subview">./subviews/survey/group_subviews/group_desc.twig</file>
<file type="view" role="subview">./subviews/messages/assessments.twig</file> <file type="view" role="subview">./subviews/survey/group_subviews/group_name.twig</file>
<file type="css">./css/theme.css</file> <file type="view" role="subview">./subviews/survey/question.twig</file>
<file type="js">./scripts/theme.js</file> <file type="view" role="subview">./subviews/survey/question_container.twig</file>
<file type="css">./css/custom.css</file> <file type="view" role="subview">./subviews/survey/question_subviews/question_text_container.twig</file>
<file type="js">./scripts/custom.js</file> <file type="view" role="subview">./subviews/survey/question_subviews/question_text_content.twig</file>
</assessments> <file type="view" role="subview">./subviews/survey/question_subviews/answers.twig</file>
<file type="view" role="subview">./subviews/survey/question_subviews/survey_question_help.twig</file>
<error> <file type="view" role="subview">./subviews/survey/question_subviews/valid_message_and_help.twig</file>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Error')}} ]]></screen_title> <file type="css">./css/theme.css</file>
<file type="view" role="layout">layout_errors.twig</file> <file type="js">./scripts/theme.js</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <file type="css">./css/custom.css</file>
</error> <file type="js">./scripts/custom.js</file>
</question>
<clearall>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Clear all')}} ]]></screen_title> <surveylist>
<file type="view" role="layout">layout_global.twig</file> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Survey list')}} ]]></screen_title>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <file type="view" role="layout">layout_survey_list.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <file type="view" role="subview">./subviews/content/mainrow.twig</file>
<file type="view" role="content">./subviews/content/clearall.twig</file> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
<file type="css">./css/theme.css</file> <file type="view" role="subview">./subviews/navigation/language_changer_form.twig</file>
<file type="js">./scripts/theme.js</file> <file type="css">./css/theme.css</file>
<file type="css">./css/custom.css</file> <file type="js">./scripts/theme.js</file>
<file type="js">./scripts/custom.js</file> <file type="css">./css/custom.css</file>
</clearall> <file type="js">./scripts/custom.js</file>
</surveylist>
<load>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Load')}} ]]></screen_title> <welcome>
<file type="view" role="layout">layout_global.twig</file> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Welcome')}} ]]></screen_title>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <file type="view" role="subview">./subviews/content/mainrow.twig</file>
<file type="view" role="content">./subviews/content/load.twig</file> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
<file type="css">./css/theme.css</file> <file type="view" role="content">./subviews/content/firstpage.twig</file>
<file type="js">./scripts/theme.js</file> <file type="view" role="subview">./subviews/header/head.twig</file>
<file type="css">./css/custom.css</file> <file type="view" role="subview">./subviews/header/custom_header.twig</file>
<file type="js">./scripts/custom.js</file> <file type="view" role="subview">./subviews/header/nav_bar.twig</file>
</load> <file type="view" role="subview">./subviews/header/progress_bar.twig</file>
<file type="view" role="subview">./subviews/messages/welcome.twig</file>
<save> <file type="view" role="subview">./subviews/messages/warnings.twig</file>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Save')}} ]]></screen_title> <file type="view" role="subview">./subviews/messages/no_js_alert.twig</file>
<file type="view" role="layout">layout_global.twig</file> <file type="view" role="subview">./subviews/privacy/privacy.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <file type="view" role="subview">./subviews/navigation/language_changer.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file> <file type="view" role="subview">./subviews/logincomponents/captcha.twig</file>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <file type="view" role="subview">./subviews/logincomponents/token.twig</file>
<file type="view" role="content">./subviews/content/save.twig</file> <file type="css">./css/theme.css</file>
<file type="css">./css/theme.css</file> <file type="js">./scripts/theme.js</file>
<file type="js">./scripts/theme.js</file> <file type="css">./css/custom.css</file>
<file type="css">./css/custom.css</file> <file type="js">./scripts/custom.js</file>
<file type="js">./scripts/custom.js</file> </welcome>
</save>
<completed>
<register> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Completed')}} ]]></screen_title>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Registration')}} ]]></screen_title> <file type="view" role="layout">layout_global.twig</file>
<file type="view" role="layout">layout_global.twig</file> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <file type="view" role="subview">./subviews/content/mainrow.twig</file>
<file type="view" role="content">./subviews/content/register.twig</file> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
<file type="view" role="subview">./subviews/registration/register_error.twig</file> <file type="view" role="content">./subviews/content/submit.twig</file>
<file type="view" role="subview">./subviews/registration/register_head.twig</file> <file type="css">./css/theme.css</file>
<file type="view" role="subview">./subviews/registration/register_message.twig</file> <file type="js">./scripts/theme.js</file>
<file type="view" role="subview">./subviews/registration/register_success.twig</file> <file type="css">./css/custom.css</file>
<file type="view" role="subview">./subviews/registration/register_form.twig</file> <file type="js">./scripts/custom.js</file>
<file type="view" role="subview">./subviews/registration/required.twig</file> </completed>
</register>
<assessments>
<printanswers> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Assessments')}} ]]></screen_title>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Print answers')}} ]]></screen_title> <file type="view" role="layout">layout_global.twig</file>
<file type="view" role="layout">layout_printanswers.twig</file> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <file type="view" role="subview">./subviews/content/mainrow.twig</file>
<file type="view" role="content">./subviews/content/printanswers.twig</file> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
<file type="view" role="subview">./subviews/printanswers/printanswers_head.twig</file> <file type="view" role="content">./subviews/content/submit.twig</file>
<file type="view" role="subview">./subviews/printanswers/printanswers_table.twig</file> <file type="view" role="subview">./subviews/messages/assessments.twig</file>
<file type="view" role="subview">./subviews/printanswers/printanswers_question.twig</file> <file type="css">./css/theme.css</file>
<file type="view" role="subview">./subviews/printanswers/printanswers_foot.twig</file> <file type="js">./scripts/theme.js</file>
</printanswers> <file type="css">./css/custom.css</file>
<file type="js">./scripts/custom.js</file>
<statistics_user> </assessments>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Public statistics')}} ]]></screen_title>
<file type="view" role="layout">layout_statistics_user.twig</file> <error>
<file type="view" role="subview">./subviews/content/outerframe.twig</file> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Error')}} ]]></screen_title>
<file type="view" role="content">./subviews/content/statistics_user.twig</file> <file type="view" role="layout">layout_errors.twig</file>
<file type="view" role="subview">./subviews/statistics_user/statistics_user_head.twig</file> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/statistics_user/statistics_user_content.twig</file> </error>
<file type="view" role="subview">./subviews/statistics_user/statistics_user_foot.twig</file>
</statistics_user> <clearall>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Clear all')}} ]]></screen_title>
<pdf> <file type="view" role="layout">layout_global.twig</file>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('PDF')}} ]]></screen_title> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="layout">layout_print.twig</file> <file type="view" role="subview">./subviews/content/mainrow.twig</file>
</pdf> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
<file type="view" role="content">./subviews/content/clearall.twig</file>
<quotas> <file type="css">./css/theme.css</file>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Quotas exceeded')}} ]]></screen_title> <file type="js">./scripts/theme.js</file>
<file type="view" role="layout">layout_global.twig</file> <file type="css">./css/custom.css</file>
<file type="view" role="content">./subviews/content/quotas.twig</file> <file type="js">./scripts/custom.js</file>
<file type="view" role="subview">./subviews/header/start_form.twig</file> </clearall>
</quotas>
<load>
<navigation> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Load')}} ]]></screen_title>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Navigation')}} ]]></screen_title> <file type="view" role="layout">layout_global.twig</file>
<file type="view" role="layout">layout_global.twig</file> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <file type="view" role="subview">./subviews/content/mainrow.twig</file>
<file type="view" role="content">./subviews/content/main.twig</file> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
<file type="view" role="subview">./subviews/navigation/ajax_indicator.twig</file> <file type="view" role="content">./subviews/content/load.twig</file>
<file type="view" role="subview">./subviews/navigation/clearall_links.twig</file> <file type="css">./css/theme.css</file>
<file type="view" role="subview">./subviews/navigation/save_links.twig</file> <file type="js">./scripts/theme.js</file>
<file type="view" role="subview">./subviews/navigation/language_changer_top_menu.twig</file> <file type="css">./css/custom.css</file>
<file type="view" role="subview">./subviews/navigation/language_changer.twig</file> <file type="js">./scripts/custom.js</file>
<file type="view" role="subview">./subviews/navigation/question_index_menu.twig</file> </load>
<file type="view" role="subview">./subviews/navigation/navigator.twig</file>
<file type="view" role="subview">./subviews/navigation/navigator_complement.twig</file> <save>
<file type="view" role="subview">./subviews/navigation/clearall_buttons.twig</file> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Save')}} ]]></screen_title>
<file type="view" role="subview">./subviews/navigation/save_buttons.twig</file> <file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/navigation/question_index_buttons.twig</file> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/navigation/question_index_questions_buttons.twig</file> <file type="view" role="subview">./subviews/content/mainrow.twig</file>
<file type="view" role="subview">./subviews/navigation/question_index_groups_buttons.twig</file> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
</navigation> <file type="view" role="content">./subviews/content/save.twig</file>
<file type="css">./css/theme.css</file>
<token> <file type="js">./scripts/theme.js</file>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Participant')}} ]]></screen_title> <file type="css">./css/custom.css</file>
<file type="view" role="layout">layout_user_forms.twig</file> <file type="js">./scripts/custom.js</file>
<file type="view" role="content">./subviews/content/userforms.twig</file> </save>
<file type="view" role="subview">./subviews/logincomponents/token.twig</file>
<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file> <register>
</token> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Registration')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
</screens> <file type="view" role="content">./subviews/content/register.twig</file>
<file type="view" role="subview">./subviews/registration/register_error.twig</file>
<!-- Data for preview in Theme Editor and Twig Cache command line generator --> <file type="view" role="subview">./subviews/registration/register_head.twig</file>
<default_data> <file type="view" role="subview">./subviews/registration/register_message.twig</file>
<survey type="core"> <file type="view" role="subview">./subviews/registration/register_success.twig</file>
<name type="data" twig="on"><![CDATA[ {{ gT("Template Sample") }} ]]></name> <file type="view" role="subview">./subviews/registration/register_form.twig</file>
<description type="data" twig="on"><![CDATA[<p>{{ gT('This is a sample survey description. It could be quite long.') }}</p><p>{{ gT("But this one isn't.") }}<p>]]></description> <file type="view" role="subview">./subviews/registration/required.twig</file>
<welcome type="data" twig="on"><![CDATA[<p>{{ gT('Welcome to this sample survey')}} <p> <p> {{ gT('You should have a great time doing this') }} <p> ]]></welcome> </register>
<therearexquestions type="data" twig="on"><![CDATA[gT('There is 2 question in this survey'])]]></therearexquestions>
<surveyls_url type="data" twig="on">"https://www.limesurvey.org/"</surveyls_url> <printanswers>
<surveyls_urldescription type="data" twig="on"><![CDATA[ gT("Some URL description") ]]></surveyls_urldescription> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Print answers')}} ]]></screen_title>
<showsurveypolicynotice>2</showsurveypolicynotice> <file type="view" role="layout">layout_printanswers.twig</file>
<datasecurity_notice_label type="data" twig="on"><![CDATA[ <a href='#data-security-modal-' data-bs-toggle='collapse'> {{ gT('Show privacy policy') }} </a> ]]></datasecurity_notice_label> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
<datasecurity_notice type="data" twig="on"><![CDATA[ {{ gT("Your privacy policy text is shown here.") }} ]]></datasecurity_notice> <file type="view" role="content">./subviews/content/printanswers.twig</file>
</survey> <file type="view" role="subview">./subviews/printanswers/printanswers_head.twig</file>
<group type="core"> <file type="view" role="subview">./subviews/printanswers/printanswers_table.twig</file>
<name type="data" twig="on"><![CDATA[ {{ gT("Group 1: The first lot of questions") }} ]]></name> <file type="view" role="subview">./subviews/printanswers/printanswers_question.twig</file>
<description type="data" twig="on"><![CDATA[ {{ gT("This group description is fairly vacuous, but quite important.") }} ]]></description> <file type="view" role="subview">./subviews/printanswers/printanswers_foot.twig</file>
</group> </printanswers>
<question_1 type="core">
<code type="data">'Q1 '</code> <statistics_user>
<text type="data" twig="on"><![CDATA[ {{ gT("How many roads must a man walk down?") }} ]]></text> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Public statistics')}} ]]></screen_title>
<valid_message type="data" twig="on"><![CDATA[ <div id="vmsg_4496_num_answers" class="em_num_answers emtip error"><span class="fa fa-exclamation-circle" aria-hidden="true"></span> {{ gT("Choose one of the following answers") }} </div> ]]></valid_message> <file type="view" role="layout">layout_statistics_user.twig</file>
</question_1> <file type="view" role="subview">./subviews/content/outerframe.twig</file>
<question_2 type="core"> <file type="view" role="content">./subviews/content/statistics_user.twig</file>
<code type="data">'Q2 '</code> <file type="view" role="subview">./subviews/statistics_user/statistics_user_head.twig</file>
<text type="data" twig="on"><![CDATA[ {{ gT("Please explain something in detail:") }} ]]></text> <file type="view" role="subview">./subviews/statistics_user/statistics_user_content.twig</file>
<valid_message type="data" twig="on"><![CDATA[<div id="vmsg_4496_num_answers" class="em_num_answers emtip error"><span class="fa fa-exclamation-circle" aria-hidden="true"></span> {{ gT("Hint when response is not valid") }} </div> ]]></valid_message> <file type="view" role="subview">./subviews/statistics_user/statistics_user_foot.twig</file>
</question_2> </statistics_user>
<assessments type="core">
<name type="data" twig="on"><![CDATA[ {{ gT("Welcome to the Assessment") }} ]]></name> <pdf>
<message type="data" twig="on"><![CDATA[ {{ gT("You got {TOTAL} points out of 3 possible points.") }} ]]></message> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('PDF')}} ]]></screen_title>
</assessments> <file type="view" role="layout">layout_print.twig</file>
</pdf>
<!-- This is an example to show you how to add your custom screen in the theme editor with custom values -->
<!-- The name of the array inside aSurveyInfo that feed your twig view is specified as "array-name". If you check quotas.twig, you'll notice the main variable is aSurveyInfo.aQuotas --> <quotas>
<!-- Notice that the data you pass here are simple. You can't pass complex arrays inside the array, only key => value pairs.--> <screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Quotas exceeded')}} ]]></screen_title>
<quotas type="custom" arrayName="aQuotas"> <file type="view" role="layout">layout_global.twig</file>
<sMessage type="data" twig="on"><![CDATA[ {{ gT("Sorry your responses have exceeded a quota on this survey.") }} ]]></sMessage> <file type="view" role="content">./subviews/content/quotas.twig</file>
<sUrl type="data">http://limesurvey.org</sUrl> <file type="view" role="subview">./subviews/header/start_form.twig</file>
<sUrlDescription type="data" twig="on"><![CDATA[ {{ gT("End url") }} ]]></sUrlDescription> </quotas>
<bShowNavigator type="data">false</bShowNavigator>
</quotas> <navigation>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Navigation')}} ]]></screen_title>
<userforms type="custom" arrayName="aForm"> <file type="view" role="layout">layout_global.twig</file>
<sType type="data">token</sType> <file type="view" role="subview">./subviews/footer/footer.twig</file>
</userforms> <file type="view" role="content">./subviews/content/main.twig</file>
</default_data> <file type="view" role="subview">./subviews/navigation/ajax_indicator.twig</file>
</template_editor> <file type="view" role="subview">./subviews/navigation/clearall_links.twig</file>
</engine> <file type="view" role="subview">./subviews/navigation/save_links.twig</file>
<file type="view" role="subview">./subviews/navigation/language_changer_top_menu.twig</file>
<!-- Disable the updater system for core themes. --> <file type="view" role="subview">./subviews/navigation/language_changer.twig</file>
<updaters disabled="disabled"> <file type="view" role="subview">./subviews/navigation/question_index_menu.twig</file>
</updaters> <file type="view" role="subview">./subviews/navigation/navigator.twig</file>
</config> <file type="view" role="subview">./subviews/navigation/navigator_complement.twig</file>
<file type="view" role="subview">./subviews/navigation/clearall_buttons.twig</file>
<file type="view" role="subview">./subviews/navigation/save_buttons.twig</file>
<file type="view" role="subview">./subviews/navigation/question_index_buttons.twig</file>
<file type="view" role="subview">./subviews/navigation/question_index_questions_buttons.twig</file>
<file type="view" role="subview">./subviews/navigation/question_index_groups_buttons.twig</file>
</navigation>
<token>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Participant')}} ]]></screen_title>
<file type="view" role="layout">layout_user_forms.twig</file>
<file type="view" role="content">./subviews/content/userforms.twig</file>
<file type="view" role="subview">./subviews/logincomponents/token.twig</file>
<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file>
</token>
</screens>
<!-- Data for preview in Theme Editor and Twig Cache command line generator -->
<default_data>
<survey type="core">
<name type="data" twig="on"><![CDATA[ {{ gT("Template Sample") }} ]]></name>
<description type="data" twig="on"><![CDATA[<p>{{ gT('This is a sample survey description. It could be quite long.') }}</p><p>{{ gT("But this one isn't.") }}<p>]]></description>
<welcome type="data" twig="on"><![CDATA[<p>{{ gT('Welcome to this sample survey')}} <p> <p> {{ gT('You should have a great time doing this') }} <p> ]]></welcome>
<therearexquestions type="data" twig="on"><![CDATA[gT('There is 2 question in this survey'])]]></therearexquestions>
<surveyls_url type="data" twig="on">"https://www.limesurvey.org/"</surveyls_url>
<surveyls_urldescription type="data" twig="on"><![CDATA[ gT("Some URL description") ]]></surveyls_urldescription>
<showsurveypolicynotice>2</showsurveypolicynotice>
<datasecurity_notice_label type="data" twig="on"><![CDATA[ <a href='#data-security-modal-' data-bs-toggle='collapse'> {{ gT('Show privacy policy') }} </a> ]]></datasecurity_notice_label>
<datasecurity_notice type="data" twig="on"><![CDATA[ {{ gT("Your privacy policy text is shown here.") }} ]]></datasecurity_notice>
</survey>
<group type="core">
<name type="data" twig="on"><![CDATA[ {{ gT("Group 1: The first lot of questions") }} ]]></name>
<description type="data" twig="on"><![CDATA[ {{ gT("This group description is fairly vacuous, but quite important.") }} ]]></description>
</group>
<question_1 type="core">
<code type="data">'Q1 '</code>
<text type="data" twig="on"><![CDATA[ {{ gT("How many roads must a man walk down?") }} ]]></text>
<valid_message type="data" twig="on"><![CDATA[ <div id="vmsg_4496_num_answers" class="em_num_answers emtip error"><span class="fa fa-exclamation-circle" aria-hidden="true"></span> {{ gT("Choose one of the following answers") }} </div> ]]></valid_message>
</question_1>
<question_2 type="core">
<code type="data">'Q2 '</code>
<text type="data" twig="on"><![CDATA[ {{ gT("Please explain something in detail:") }} ]]></text>
<valid_message type="data" twig="on"><![CDATA[<div id="vmsg_4496_num_answers" class="em_num_answers emtip error"><span class="fa fa-exclamation-circle" aria-hidden="true"></span> {{ gT("Hint when response is not valid") }} </div> ]]></valid_message>
</question_2>
<assessments type="core">
<name type="data" twig="on"><![CDATA[ {{ gT("Welcome to the Assessment") }} ]]></name>
<message type="data" twig="on"><![CDATA[ {{ gT("You got {TOTAL} points out of 3 possible points.") }} ]]></message>
</assessments>
<!-- This is an example to show you how to add your custom screen in the theme editor with custom values -->
<!-- The name of the array inside aSurveyInfo that feed your twig view is specified as "array-name". If you check quotas.twig, you'll notice the main variable is aSurveyInfo.aQuotas -->
<!-- Notice that the data you pass here are simple. You can't pass complex arrays inside the array, only key => value pairs.-->
<quotas type="custom" arrayName="aQuotas">
<sMessage type="data" twig="on"><![CDATA[ {{ gT("Sorry your responses have exceeded a quota on this survey.") }} ]]></sMessage>
<sUrl type="data">http://limesurvey.org</sUrl>
<sUrlDescription type="data" twig="on"><![CDATA[ {{ gT("End url") }} ]]></sUrlDescription>
<bShowNavigator type="data">false</bShowNavigator>
</quotas>
<userforms type="custom" arrayName="aForm">
<sType type="data">token</sType>
</userforms>
</default_data>
</template_editor>
</engine>
<!-- Disable the updater system for core themes. -->
<updaters disabled="disabled">
</updaters>
</config>

View file

@ -1,12 +1,12 @@
/****************** /******************
User custom CSS User custom CSS
--------------- ---------------
In this file you can add your own custom CSS In this file you can add your own custom CSS
It will be loaded last, so you can override any other property. It will be loaded last, so you can override any other property.
Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/ */
#outerframeContainer{ #outerframeContainer{
hyphens: none; hyphens: none;
} }

View file

@ -1,205 +1,205 @@
body.font-arial { body.font-arial {
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
} }
body.font-arial_black { body.font-arial_black {
font-family: ArialBlack, Helvetica, sans-serif; font-family: ArialBlack, Helvetica, sans-serif;
} }
body.font-opensans { body.font-opensans {
font-family: "Open Sans", Helvetica, sans-serif; font-family: "Open Sans", Helvetica, sans-serif;
} }
body.font-georgia { body.font-georgia {
font-family: Georgia, "Times New Roman", Times, serif; font-family: Georgia, "Times New Roman", Times, serif;
} }
body.font-courier { body.font-courier {
font-family: "Courier New", Courier, monospace; font-family: "Courier New", Courier, monospace;
} }
#welcome-container { #welcome-container {
padding: 15px; padding: 15px;
margin-top: 30px; margin-top: 30px;
} }
.top-container .top-content { .top-container .top-content {
padding-bottom: 0; padding-bottom: 0;
margin-bottom: 0; margin-bottom: 0;
} }
.row.question-container { .row.question-container {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }
#navigator-container { #navigator-container {
margin-top: 15px; margin-top: 15px;
} }
.privacy .ls-privacy-head, .privacy p.ls-privacy-body { .privacy .ls-privacy-head, .privacy p.ls-privacy-body {
background: white; background: white;
padding: 15px; padding: 15px;
margin-bottom: 0; margin-bottom: 0;
} }
h1.survey-name { h1.survey-name {
margin-top: 0; margin-top: 0;
font-weight: bold; font-weight: bold;
} }
.group-description { .group-description {
margin-bottom: 15px; margin-bottom: 15px;
} }
#surveys-list-container { #surveys-list-container {
background: white; background: white;
padding: 15px; padding: 15px;
} }
.question-container { .question-container {
border: inherit; border: inherit;
margin-bottom: 30px; margin-bottom: 30px;
} }
.ls-questionhelp { .ls-questionhelp {
margin-bottom: 5px; margin-bottom: 5px;
margin-top: 5px; margin-top: 5px;
} }
.ls-questionhelp p { .ls-questionhelp p {
margin-bottom: 0; margin-bottom: 0;
} }
table.ls-answers { table.ls-answers {
margin-top: 15px; margin-top: 15px;
margin-bottom: 15px; margin-bottom: 15px;
} }
.sortable-rank { .sortable-rank {
background: white; background: white;
} }
.ls-answers .ls-heading th { .ls-answers .ls-heading th {
font-weight: inherit; font-weight: inherit;
vertical-align: top; vertical-align: top;
} }
.privacy-block { .privacy-block {
padding: 15px; padding: 15px;
} }
.privacy .form-check { .privacy .form-check {
padding: 15px; padding: 15px;
background: lightyellow; background: lightyellow;
} }
.privacy .form-check .form-check-input { .privacy .form-check .form-check-input {
float: none; float: none;
margin-left: 0; margin-left: 0;
} }
#datasecurity_notice { #datasecurity_notice {
margin-bottom: 15px; margin-bottom: 15px;
} }
.save-form { .save-form {
background: white; background: white;
} }
.save-form .return-to-survey { .save-form .return-to-survey {
padding-left: 15px; padding-left: 15px;
padding-bottom: 15px; padding-bottom: 15px;
} }
.save-message .h2 { .save-message .h2 {
margin-top: 0; margin-top: 0;
font-weight: 700; font-weight: 700;
} }
.save-message .text-warning { .save-message .text-warning {
color: inherit !important; color: inherit !important;
font-weight: 700; font-weight: 700;
} }
.save-survey-form { .save-survey-form {
background: white; background: white;
padding: 15px; padding: 15px;
} }
.checkbox-item input[type=checkbox]:checked + label::after, .checkbox-item input[type=checkbox]:checked + label::after,
.checkbox-item input[type=radio]:checked + label::after { .checkbox-item input[type=radio]:checked + label::after {
content: ""; content: "";
} }
.btn-primary { .btn-primary {
border: none; border: none;
} }
.btn-primary:hover { .btn-primary:hover {
filter: grayscale(0.5); filter: grayscale(0.5);
} }
.btn-primary:focus { .btn-primary:focus {
filter: grayscale(0.5); filter: grayscale(0.5);
} }
.btn-primary.active { .btn-primary.active {
filter: grayscale(0.5); filter: grayscale(0.5);
} }
.btn-primary:active { .btn-primary:active {
filter: grayscale(0.5); filter: grayscale(0.5);
} }
#surveys-list-container { #surveys-list-container {
background: white; background: white;
padding: 15px; padding: 15px;
} }
.progress { .progress {
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
} }
.progress-bar { .progress-bar {
font-size: 80%; font-size: 80%;
padding-left: 2px; padding-left: 2px;
} }
.qback_red .question-title-container { .qback_red .question-title-container {
background: red; background: red;
} }
.qback_orange .question-title-container { .qback_orange .question-title-container {
background: darkorange; background: darkorange;
} }
.qback_green .question-title-container { .qback_green .question-title-container {
background: darkgreen; background: darkgreen;
} }
.qback_transparent .question-title-container { .qback_transparent .question-title-container {
background: transparent; background: transparent;
} }
div.qvideo { div.qvideo {
display: flex; display: flex;
} }
div.qvideo .video { div.qvideo .video {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
} }
div.qvideo .question-title-container, div.qvideo .answer-container { div.qvideo .question-title-container, div.qvideo .answer-container {
flex-grow: 2; flex-grow: 2;
} }
div.qvideo .question-title-container { div.qvideo .question-title-container {
background: transparent; background: transparent;
color: #5A1D64; color: #5A1D64;
} }
div.qvideo .answer-container { div.qvideo .answer-container {
padding-left: 30px; padding-left: 30px;
} }
div.qvideo .question-valid-container { div.qvideo .question-valid-container {
display: none; display: none;
} }
.hide-first-row table.ls-answers tr.answers-list:first-child { .hide-first-row table.ls-answers tr.answers-list:first-child {
display: none; display: none;
} }
.hidden { .hidden {
display: none; display: none;
}/*# sourceMappingURL=plain.css.map */ }/*# sourceMappingURL=plain.css.map */

View file

@ -1,328 +1,328 @@
var ThemeOptions = function(){ var ThemeOptions = function(){
var ThemeOptions = function () { var ThemeOptions = function () {
'use strict'; 'use strict';
////////////////// //////////////////
// Define necessary globals // Define necessary globals
// general_inherit_active is not present at global level // general_inherit_active is not present at global level
// see: https://github.com/LimeSurvey/LimeSurvey/blob/1cbfa11b081f54763b28364472926b155efea5dc/themes/survey/vanilla/options/options.twig#L71 // see: https://github.com/LimeSurvey/LimeSurvey/blob/1cbfa11b081f54763b28364472926b155efea5dc/themes/survey/vanilla/options/options.twig#L71
var inheritPossible = ($('#general_inherit_active').length > 0); var inheritPossible = ($('#general_inherit_active').length > 0);
//get option Object from Template configuration options //get option Object from Template configuration options
var optionObject = {'general_inherit': 1}; var optionObject = {'general_inherit': 1};
//get the global form //get the global form
var globalForm = $('.action_update_options_string_form'); var globalForm = $('.action_update_options_string_form');
///////////////// /////////////////
// Define methods run on startup // Define methods run on startup
// #TemplateConfiguration_options is the id of the Options field in advanced option // #TemplateConfiguration_options is the id of the Options field in advanced option
// getter for generalInherit // getter for generalInherit
var generalInherit = function () { var generalInherit = function () {
return $('#TemplateConfiguration_options').val() === 'inherit'; return $('#TemplateConfiguration_options').val() === 'inherit';
}; };
//parse the options as set in the advanced form //parse the options as set in the advanced form
var parseOptionObject = function () { var parseOptionObject = function () {
// If no general inherit, then pass the value of the "Options" field in advanced option to the object optionObject // If no general inherit, then pass the value of the "Options" field in advanced option to the object optionObject
if ($('#TemplateConfiguration_options').length > 0 && !generalInherit()) { if ($('#TemplateConfiguration_options').length > 0 && !generalInherit()) {
try { try {
optionObject = JSON.parse($('#TemplateConfiguration_options').val()); optionObject = JSON.parse($('#TemplateConfiguration_options').val());
} catch (e) { } catch (e) {
console.ls ? console.ls.error('No valid option field!') : console.log('No valid option field!'); console.ls ? console.ls.error('No valid option field!') : console.log('No valid option field!');
} }
} }
}; };
// Show/Hide fields on generalInherit // Show/Hide fields on generalInherit
// To hide a simple option on generalInherit: just add the class "action_hide_on_inherit" to the rows continaing it // To hide a simple option on generalInherit: just add the class "action_hide_on_inherit" to the rows continaing it
var startupGeneralInherit = function () { var startupGeneralInherit = function () {
if (!inheritPossible) return false; if (!inheritPossible) return false;
if (generalInherit()) { if (generalInherit()) {
$('#general_inherit_on').prop('checked', true).trigger('change').closest('label').addClass('active'); $('#general_inherit_on').prop('checked', true).trigger('change').closest('label').addClass('active');
$('.action_hide_on_inherit').addClass('d-none'); $('.action_hide_on_inherit').addClass('d-none');
} else { } else {
$('#general_inherit_off').prop('checked', true).trigger('change').closest('label').addClass('active'); $('#general_inherit_off').prop('checked', true).trigger('change').closest('label').addClass('active');
} }
}; };
// So this function find the selectors in the forum, and pass their values to the advanced options // So this function find the selectors in the forum, and pass their values to the advanced options
var updateFieldSettings = function () { var updateFieldSettings = function () {
if ($('#general_inherit_on').prop('checked')) { if ($('#general_inherit_on').prop('checked')) {
$('#TemplateConfiguration_options').val('inherit'); $('#TemplateConfiguration_options').val('inherit');
return; return;
} }
globalForm.find('.selector_option_value_field').each(function (i, item) { globalForm.find('.selector_option_value_field').each(function (i, item) {
//disabled items should be inherit or false //disabled items should be inherit or false
if ($(item).prop('disabled')) { if ($(item).prop('disabled')) {
$(item).val((inheritPossible ? 'inherit' : false)); $(item).val((inheritPossible ? 'inherit' : false));
} }
optionObject[$(item).attr('name')] = $(item).val(); optionObject[$(item).attr('name')] = $(item).val();
}); });
globalForm.find('.selector_option_radio_field ').each(function (i, item) { globalForm.find('.selector_option_radio_field ').each(function (i, item) {
//disabled items should be inherit or false //disabled items should be inherit or false
if ($(item).prop('disabled')) { if ($(item).prop('disabled')) {
$(item).val((inheritPossible ? 'inherit' : false)); $(item).val((inheritPossible ? 'inherit' : false));
} }
if ($(item).attr('type') == 'radio') { if ($(item).attr('type') == 'radio') {
if ($(item).prop('checked')) { if ($(item).prop('checked')) {
optionObject[$(item).attr('name')] = $(item).val(); optionObject[$(item).attr('name')] = $(item).val();
} }
} }
}); });
var newOptionObject = $.extend(true, {}, optionObject); var newOptionObject = $.extend(true, {}, optionObject);
delete newOptionObject.general_inherit; delete newOptionObject.general_inherit;
$('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject)); $('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject));
}; };
/////////////// ///////////////
// Utility Methods // Utility Methods
// -- small utilities i.g. for images or similar, or very specialized functions // -- small utilities i.g. for images or similar, or very specialized functions
//Parses the option value for an item //Parses the option value for an item
var parseOptionValue = function (item, fallbackValue) { var parseOptionValue = function (item, fallbackValue) {
fallbackValue = fallbackValue || false; fallbackValue = fallbackValue || false;
// If general inherit, then the value of the dropdown is inherit, else it's the value defined in advanced options // If general inherit, then the value of the dropdown is inherit, else it's the value defined in advanced options
var itemValue = generalInherit() ? 'inherit' : optionObject[$(item).attr('name')]; var itemValue = generalInherit() ? 'inherit' : optionObject[$(item).attr('name')];
// If anything goes wrong (manual edit or anything else), we make sure it will have a correct value // If anything goes wrong (manual edit or anything else), we make sure it will have a correct value
if (itemValue == null || itemValue == undefined) { if (itemValue == null || itemValue == undefined) {
itemValue = inheritPossible ? 'inherit' : fallbackValue; itemValue = inheritPossible ? 'inherit' : fallbackValue;
optionObject[$(item).attr('name')] = itemValue; optionObject[$(item).attr('name')] = itemValue;
} }
return itemValue; return itemValue;
}; };
//Set value and propagate to bootstrapSwitch //Set value and propagate to bootstrapSwitch
var setAndPropageteToSwitch = function (item) { var setAndPropageteToSwitch = function (item) {
$(item).prop('checked', true).trigger('change'); $(item).prop('checked', true).trigger('change');
$(item).closest('label').addClass('active'); $(item).closest('label').addClass('active');
}; };
/////////////// ///////////////
// Parser methods // Parser methods
// -- These methods will either parse through existing fields, or set existing fields to their correct values // -- These methods will either parse through existing fields, or set existing fields to their correct values
// Update values in the form to the template options // Update values in the form to the template options
// selector_option_value_field are the select dropdown (like variations and fonts) // selector_option_value_field are the select dropdown (like variations and fonts)
var prepareSelectField = function () { var prepareSelectField = function () {
globalForm.find('.selector_option_value_field').each(function (i, item) { globalForm.find('.selector_option_value_field').each(function (i, item) {
var itemValue = parseOptionValue(item); var itemValue = parseOptionValue(item);
$(item).val(itemValue); $(item).val(itemValue);
}); });
}; };
// Generate the state of switches (On/Off/Inherit) // Generate the state of switches (On/Off/Inherit)
var parseParentSwitchFields = function () { var parseParentSwitchFields = function () {
globalForm.find('.selector_option_radio_field').each(function (i, item) { globalForm.find('.selector_option_radio_field').each(function (i, item) {
var itemValue = parseOptionValue(item, 'off'); var itemValue = parseOptionValue(item, 'off');
//if it is a radio selector, check it and propagate the change to bootstrapSwitch //if it is a radio selector, check it and propagate the change to bootstrapSwitch
if ($(item).val() == itemValue) { if ($(item).val() == itemValue) {
setAndPropageteToSwitch(item); setAndPropageteToSwitch(item);
} }
}); });
}; };
var prepareFontField = function () { var prepareFontField = function () {
optionObject.font = optionObject.font || (inheritPossible ? 'inherit' : 'roboto'); optionObject.font = optionObject.font || (inheritPossible ? 'inherit' : 'roboto');
if (optionObject.font !== 'inherit') { if (optionObject.font !== 'inherit') {
$('#simple_edit_options_font').val(optionObject.font); $('#simple_edit_options_font').val(optionObject.font);
} }
updateFieldSettings(); updateFieldSettings();
}; };
/////////////// ///////////////
// HotSwap methods // HotSwap methods
// -- These methods connect an input directly to the value in the optionsObject // -- These methods connect an input directly to the value in the optionsObject
// Disable dependent inputs when their parents are set to off, or inherit // Disable dependent inputs when their parents are set to off, or inherit
var hotSwapParentRadioButtons = function () { var hotSwapParentRadioButtons = function () {
// hotswapping the select fields to the radiobuttons // hotswapping the select fields to the radiobuttons
// If an option is set to off, the attached selectors are disabled // If an option is set to off, the attached selectors are disabled
$('.selector_radio_childfield').each(function (i, selectorItem) { $('.selector_radio_childfield').each(function (i, selectorItem) {
$('input[name=' + $(selectorItem).data('parent') + ']').on('change', function () { $('input[name=' + $(selectorItem).data('parent') + ']').on('change', function () {
if ($(this).val() === 'on' && $(this).prop('checked') == true) { if ($(this).val() === 'on' && $(this).prop('checked') == true) {
$(selectorItem).prop('disabled', false); $(selectorItem).prop('disabled', false);
} else { } else {
$(selectorItem).prop('disabled', true); $(selectorItem).prop('disabled', true);
} }
// disabled this part to always be able to click on "Preview image" button // disabled this part to always be able to click on "Preview image" button
/* /*
if ($(selectorItem).hasClass('selector_image_selector')) { if ($(selectorItem).hasClass('selector_image_selector')) {
$('button[data-target="#' + $(selectorItem).attr('id') + '"]').prop('disabled', $(selectorItem).val() == 'inherit'); $('button[data-target="#' + $(selectorItem).attr('id') + '"]').prop('disabled', $(selectorItem).val() == 'inherit');
} }
*/ */
}); });
}); });
}; };
// hotswapping the fields // hotswapping the fields
var hotSwapFields = function () { var hotSwapFields = function () {
globalForm.find('.selector_option_value_field').on('change', function (evt) { globalForm.find('.selector_option_value_field').on('change', function (evt) {
updateFieldSettings(); updateFieldSettings();
}); });
globalForm.find('.selector_option_radio_field').on('change', updateFieldSettings); globalForm.find('.selector_option_radio_field').on('change', updateFieldSettings);
}; };
var hotswapGeneralInherit = function () { var hotswapGeneralInherit = function () {
//hotswapping the general inherit //hotswapping the general inherit
$('#general_inherit_on').on('change', function (evt) { $('#general_inherit_on').on('change', function (evt) {
$('#TemplateConfiguration_options').val('inherit'); $('#TemplateConfiguration_options').val('inherit');
$('.action_hide_on_inherit').addClass('d-none'); $('.action_hide_on_inherit').addClass('d-none');
}); });
$('#general_inherit_off').on('change', function (evt) { $('#general_inherit_off').on('change', function (evt) {
$('.action_hide_on_inherit').removeClass('d-none'); $('.action_hide_on_inherit').removeClass('d-none');
updateFieldSettings(); updateFieldSettings();
}); });
}; };
var hotswapFontField = function () { var hotswapFontField = function () {
$('#simple_edit_options_font').on('change', function (evt) { $('#simple_edit_options_font').on('change', function (evt) {
var currentPackageObject = $('#TemplateConfiguration_packages_to_load').val() !== 'inherit' var currentPackageObject = $('#TemplateConfiguration_packages_to_load').val() !== 'inherit'
? JSON.parse($('#TemplateConfiguration_packages_to_load').val()) ? JSON.parse($('#TemplateConfiguration_packages_to_load').val())
: $(this).data('inheritvalue'); : $(this).data('inheritvalue');
if ($('#simple_edit_options_font').val() === 'inherit') { if ($('#simple_edit_options_font').val() === 'inherit') {
$('#TemplateConfiguration_packages_to_load').val('inherit'); $('#TemplateConfiguration_packages_to_load').val('inherit');
} else { } else {
var selectedFontPackage = $(this).find('option:selected'); var selectedFontPackage = $(this).find('option:selected');
var packageName = selectedFontPackage.data('font-package'); var packageName = selectedFontPackage.data('font-package');
var formatedPackageName = 'font-' + packageName; var formatedPackageName = 'font-' + packageName;
var filteredAdd = currentPackageObject.add.filter(function (value, index) { var filteredAdd = currentPackageObject.add.filter(function (value, index) {
return !(/^font-.*$/.test(String(value))); return !(/^font-.*$/.test(String(value)));
}); });
filteredAdd.push(formatedPackageName); filteredAdd.push(formatedPackageName);
currentPackageObject.add = filteredAdd; currentPackageObject.add = filteredAdd;
$('#TemplateConfiguration_packages_to_load').val(JSON.stringify(currentPackageObject)); $('#TemplateConfiguration_packages_to_load').val(JSON.stringify(currentPackageObject));
} }
}); });
}; };
/////////////// ///////////////
// Event methods // Event methods
// -- These methods are triggered on events. Please see `bind´ method for more information // -- These methods are triggered on events. Please see `bind´ method for more information
var onSaveButtonClickAction = function (evt) { var onSaveButtonClickAction = function (evt) {
evt.preventDefault(); evt.preventDefault();
if (generalInherit()) { if (generalInherit()) {
$('#TemplateConfiguration_options').val('inherit'); $('#TemplateConfiguration_options').val('inherit');
$('#template-options-form').trigger('submit'); // submit the form $('#template-options-form').trigger('submit'); // submit the form
} else { } else {
//Create a copy of the inherent optionObject //Create a copy of the inherent optionObject
var newOptionObject = $.extend(true, {}, optionObject); var newOptionObject = $.extend(true, {}, optionObject);
newOptionObject.generalInherit = null; newOptionObject.generalInherit = null;
// Now write the newly created object to the correspondent field as a json string // Now write the newly created object to the correspondent field as a json string
$('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject)); $('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject));
// And submit the form // And submit the form
// Beware, we are triggering 'submit' directly, which doesn't trigger HTML5 validations. // Beware, we are triggering 'submit' directly, which doesn't trigger HTML5 validations.
// No HTML5 validations needed here, so all good. // No HTML5 validations needed here, so all good.
// If not we would need to add a hidden submit button and trigger a 'click' on it. (see fruity theme). // If not we would need to add a hidden submit button and trigger a 'click' on it. (see fruity theme).
// Like these: $('#template-options-form').find('button[type=submit]').trigger('click'); // Like these: $('#template-options-form').find('button[type=submit]').trigger('click');
$('#template-options-form').trigger('submit'); $('#template-options-form').trigger('submit');
} }
}; };
/////////////// ///////////////
// Instance methods // Instance methods
var bind = function () { var bind = function () {
//if the save button is clicked write everything into the template option field and send the form //if the save button is clicked write everything into the template option field and send the form
$('.action_update_options_string_button, #theme-options--submit').on('click', onSaveButtonClickAction); $('.action_update_options_string_button, #theme-options--submit').on('click', onSaveButtonClickAction);
//Bind the hotwaps //Bind the hotwaps
hotSwapParentRadioButtons(); hotSwapParentRadioButtons();
hotSwapFields(); hotSwapFields();
hotswapGeneralInherit(); hotswapGeneralInherit();
hotswapFontField(); hotswapFontField();
}; };
var run = function () { var run = function () {
parseOptionObject(); parseOptionObject();
startupGeneralInherit(); startupGeneralInherit();
prepareSelectField(); prepareSelectField();
parseParentSwitchFields(); parseParentSwitchFields();
prepareFontField(); prepareFontField();
bind(); bind();
}; };
return run; return run;
}; };
var prepare = function () { var prepare = function () {
var deferred = $.Deferred(); var deferred = $.Deferred();
//activate the bootstrap switch for checkboxes //activate the bootstrap switch for checkboxes
$('.action_activate_bootstrapswitch').bootstrapSwitch(); $('.action_activate_bootstrapswitch').bootstrapSwitch();
var themeOptionStarter = new ThemeOptions(); var themeOptionStarter = new ThemeOptions();
themeOptionStarter(); themeOptionStarter();
setTimeout(function () { setTimeout(function () {
deferred.resolve(); deferred.resolve();
}, 650); }, 650);
return deferred.promise(); return deferred.promise();
}; };
$(document).off('pjax:scriptcomplete.templateOptions').on('ready pjax:scriptcomplete.templateOptions', function () { $(document).off('pjax:scriptcomplete.templateOptions').on('ready pjax:scriptcomplete.templateOptions', function () {
$('.simple-template-edit-loading').css('display', 'block'); $('.simple-template-edit-loading').css('display', 'block');
prepare().then(function (runsesolve) { prepare().then(function (runsesolve) {
$('.simple-template-edit-loading').css('display', 'none'); $('.simple-template-edit-loading').css('display', 'none');
}); });
$('.selector__open_lightbox').on('click', function (e) { $('.selector__open_lightbox').on('click', function (e) {
e.preventDefault(); e.preventDefault();
var imgSrc = $($(this).data('bs-target')).find('option:selected').data('lightbox-src'); var imgSrc = $($(this).data('bs-target')).find('option:selected').data('lightbox-src');
var imgTitle = $($(this).data('bs-target')).val(); var imgTitle = $($(this).data('bs-target')).val();
imgTitle = imgTitle.split('/').pop(); imgTitle = imgTitle.split('/').pop();
$('#lightbox-modal').find('.selector__title').text(imgTitle); $('#lightbox-modal').find('.selector__title').text(imgTitle);
$('#lightbox-modal').find('.selector__image').attr({'src': imgSrc, 'alt': imgTitle}); $('#lightbox-modal').find('.selector__image').attr({'src': imgSrc, 'alt': imgTitle});
$('#lightbox-modal').modal('show'); $('#lightbox-modal').modal('show');
}); });
var uploadImageBind = new bindUpload({ var uploadImageBind = new bindUpload({
form: '#upload_frontend', form: '#upload_frontend',
input: '#upload_image_frontend', input: '#upload_image_frontend',
progress: '#upload_progress_frontend', progress: '#upload_progress_frontend',
onBeforeSend: function () { onBeforeSend: function () {
$('.simple-template-edit-loading').css('display', 'block'); $('.simple-template-edit-loading').css('display', 'block');
}, },
onSuccess: function () { onSuccess: function () {
setTimeout(function () { setTimeout(function () {
$(document).trigger('pjax:load', {url: window.location.href}); $(document).trigger('pjax:load', {url: window.location.href});
}, 2500); }, 2500);
} }
}); });
}); });

View file

@ -26,7 +26,6 @@
{% set fontOptions = '' %} {% set fontOptions = '' %}
{% set brandlogofileOptions , brandlogofileInheritFilename, brandlogofileInheritPreview = '', '', '' %} {% set brandlogofileOptions , brandlogofileInheritFilename, brandlogofileInheritPreview = '', '', '' %}
{% set secondlogofileOptions , secondlogofileInheritFilename, secondlogofileInheritPreview = '', '', '' %}
{# For surveyspecific settings add an inherit option #} {# For surveyspecific settings add an inherit option #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %} {% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}

View file

@ -1,114 +1,114 @@
body.font-arial body.font-arial
font-family: Arial, Helvetica, sans-serif font-family: Arial, Helvetica, sans-serif
body.font-arial_black body.font-arial_black
font-family: ArialBlack, Helvetica, sans-serif font-family: ArialBlack, Helvetica, sans-serif
body.font-opensans body.font-opensans
font-family: "Open Sans", Helvetica, sans-serif font-family: "Open Sans", Helvetica, sans-serif
body.font-georgia body.font-georgia
font-family: Georgia, 'Times New Roman', Times, serif font-family: Georgia, 'Times New Roman', Times, serif
body.font-courier body.font-courier
font-family: 'Courier New', Courier, monospace font-family: 'Courier New', Courier, monospace
#welcome-container #welcome-container
padding: 15px padding: 15px
margin-top: 30px margin-top: 30px
.top-container .top-container
.top-content .top-content
padding-bottom: 0 padding-bottom: 0
margin-bottom: 0 margin-bottom: 0
.row.question-container .row.question-container
margin-left: 0 margin-left: 0
margin-right: 0 margin-right: 0
#navigator-container #navigator-container
margin-top: 15px margin-top: 15px
.privacy .privacy
.ls-privacy-head, p.ls-privacy-body .ls-privacy-head, p.ls-privacy-body
background: white background: white
padding: 15px padding: 15px
margin-bottom: 0 margin-bottom: 0
h1.survey-name h1.survey-name
margin-top: 0 margin-top: 0
font-weight: bold font-weight: bold
.group-description .group-description
margin-bottom: 15px margin-bottom: 15px
#surveys-list-container #surveys-list-container
background: white background: white
padding: 15px padding: 15px
.question-container .question-container
border: inherit border: inherit
margin-bottom: 30px margin-bottom: 30px
.ls-questionhelp .ls-questionhelp
margin-bottom: 5px margin-bottom: 5px
margin-top: 5px margin-top: 5px
p p
margin-bottom: 0 margin-bottom: 0
table.ls-answers table.ls-answers
margin-top: 15px margin-top: 15px
margin-bottom: 15px margin-bottom: 15px
.sortable-rank .sortable-rank
background: white background: white
.ls-answers .ls-heading th .ls-answers .ls-heading th
font-weight: inherit font-weight: inherit
vertical-align: top vertical-align: top
.privacy-block .privacy-block
padding: 15px padding: 15px
.privacy .form-check .privacy .form-check
padding: 15px padding: 15px
background: lightyellow background: lightyellow
.form-check-input .form-check-input
float: none float: none
margin-left: 0 margin-left: 0
#datasecurity_notice #datasecurity_notice
margin-bottom: 15px margin-bottom: 15px
.save-form .save-form
background: white background: white
.return-to-survey .return-to-survey
padding-left: 15px padding-left: 15px
padding-bottom: 15px padding-bottom: 15px
.save-message .save-message
.h2 .h2
margin-top: 0 margin-top: 0
font-weight: 700 font-weight: 700
.text-warning .text-warning
color: inherit !important color: inherit !important
font-weight: 700 font-weight: 700
.save-survey-form .save-survey-form
background: white background: white
padding: 15px padding: 15px
.checkbox-item input[type=checkbox]:checked + label::after, .checkbox-item input[type=checkbox]:checked + label::after,
.checkbox-item input[type=radio]:checked + label::after .checkbox-item input[type=radio]:checked + label::after
content: "" content: ""
.btn-primary .btn-primary
border: none border: none
&:hover &:hover
filter: grayscale(0.5) filter: grayscale(0.5)
&:focus &:focus
filter: grayscale(0.5) filter: grayscale(0.5)
&.active &.active
filter: grayscale(0.5) filter: grayscale(0.5)
&:active &:active
filter: grayscale(0.5) filter: grayscale(0.5)

View file

@ -1,32 +1,32 @@
.qback_red .question-title-container .qback_red .question-title-container
background: red background: red
.qback_orange .question-title-container .qback_orange .question-title-container
background: darkorange background: darkorange
.qback_green .question-title-container .qback_green .question-title-container
background: darkgreen background: darkgreen
.qback_transparent .question-title-container .qback_transparent .question-title-container
background: transparent background: transparent
div.qvideo div.qvideo
display: flex display: flex
.video .video
max-width: 100% max-width: 100%
height: auto height: auto
.question-title-container, .answer-container .question-title-container, .answer-container
flex-grow: 2 flex-grow: 2
.question-title-container .question-title-container
background: transparent background: transparent
color: #5A1D64 color: #5A1D64
.answer-container .answer-container
padding-left: 30px padding-left: 30px
.question-valid-container .question-valid-container
display: none display: none
.hide-first-row table.ls-answers tr.answers-list:first-child .hide-first-row table.ls-answers tr.answers-list:first-child
display: none display: none
.hidden .hidden
display: none display: none

View file

@ -1,7 +1,7 @@
.progress .progress
border-radius: 0 border-radius: 0
box-shadow: none box-shadow: none
.progress-bar .progress-bar
font-size: 80% font-size: 80%
padding-left: 2px padding-left: 2px

View file

@ -1,3 +1,3 @@
#surveys-list-container #surveys-list-container
background: white background: white
padding: 15px padding: 15px

View file

@ -1,4 +1,19 @@
@use 'base' @use 'base'
@use 'surveys-list' @use 'surveys-list'
@use 'progress' @use 'progress'
@use 'extras' @use 'extras'
/* Header: left, center and right logo in the navbar */
#survey-nav .container-fluid,
#survey-nav .container
position: relative
#survey-nav .logo-center
position: absolute
left: 50%
top: 50%
transform: translate(-50%, -50%)
float: none
#survey-nav .logo-right
margin-left: 15px

View file

@ -1,40 +1,40 @@
/****************** /******************
User custom JS User custom JS
--------------- ---------------
Put JS-functions for your template here. Put JS-functions for your template here.
If possible use a closure, or add them to the general Template Object "Template" If possible use a closure, or add them to the general Template Object "Template"
*/ */
$(document).on('ready pjax:scriptcomplete',function(){ $(document).on('ready pjax:scriptcomplete',function(){
/** /**
* Code included inside this will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute * Code included inside this will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute
* @see https://learn.jquery.com/using-jquery-core/document-ready/ * @see https://learn.jquery.com/using-jquery-core/document-ready/
*/ */
// Replace classes // Replace classes
$('.container-fluid').addClass('container'); $('.container-fluid').addClass('container');
$('.container-fluid').removeClass('container-fluid'); $('.container-fluid').removeClass('container-fluid');
// Remove classes // Remove classes
$('.survey-name.text-center').removeClass('text-center'); $('.survey-name.text-center').removeClass('text-center');
$('.survey-description.text-center').removeClass('text-center'); $('.survey-description.text-center').removeClass('text-center');
$('.survey-welcome.h5.text-primary').removeClass('text-primary'); $('.survey-welcome.h5.text-primary').removeClass('text-primary');
$('.survey-welcome.h5').removeClass('h5'); $('.survey-welcome.h5').removeClass('h5');
$('.ls-privacy-head.h4.text-primary').removeClass('text-primary'); $('.ls-privacy-head.h4.text-primary').removeClass('text-primary');
$('.ls-privacy-head.h4').removeClass('h4'); $('.ls-privacy-head.h4').removeClass('h4');
$('.space-col').removeClass('space-col'); //The presence of .space-col is one of the greatest mistakes in the Vanilla theme IMHO $('.space-col').removeClass('space-col'); //The presence of .space-col is one of the greatest mistakes in the Vanilla theme IMHO
$('.group-title.text-center.h3').removeClass('h3'); $('.group-title.text-center.h3').removeClass('h3');
$('.group-title.text-center').removeClass('text-center'); $('.group-title.text-center').removeClass('text-center');
$('.text-info').removeClass('text-info'); $('.text-info').removeClass('text-info');
$('.text-muted').removeClass('text-muted'); $('.text-muted').removeClass('text-muted');
$('.limit-text-window').removeClass('limit-text-window'); $('.limit-text-window').removeClass('limit-text-window');
$('.save-message.card').removeClass('card'); $('.save-message.card').removeClass('card');
$('.save-message.bg-light').removeClass('bg-light'); $('.save-message.bg-light').removeClass('bg-light');
$('.save-survey-form.col-lg-8.offset-lg-2').removeClass('offset-lg-2'); $('.save-survey-form.col-lg-8.offset-lg-2').removeClass('offset-lg-2');
$('.save-survey-form.col-lg-8').removeClass('col-lg-8'); $('.save-survey-form.col-lg-8').removeClass('col-lg-8');
$('.save-message .card-body').removeClass('card-body'); $('.save-message .card-body').removeClass('card-body');
$('.navbar-light.bg-light').removeClass('bg-light'); $('.navbar-light.bg-light').removeClass('bg-light');
$('.privacy.row').removeClass('row'); $('.privacy.row').removeClass('row');
}); });

226
variants/build.php Normal file
View file

@ -0,0 +1,226 @@
<?php
/**
* Build a thin client variant of this theme (respondage_vanilla).
*
* A variant is a separate LimeSurvey theme that extends this mother theme
* (<extends> in its config.xml). LimeSurvey then inherits ALL files
* (views, css, js, images, options page) from the mother theme, so any
* change made here in a file automatically applies to every variant.
*
* Only config.xml is generated per variant: it is a copy of this mother
* config.xml in which ONLY the house-style option values (colors, fonts,
* font sizes/colors/weights, logo files) listed in variants/<name>.json
* are replaced, plus the metadata (name/title/description/extends).
* The <engine> section is emptied except <optionspage>, so engine settings
* (css framework, packages, view/files directories, template editor) are
* inherited from the mother. The <files> section is kept as-is: LimeSurvey
* resolves each listed file in the variant first and then in the mother,
* so the mother's css/js keep loading until the variant ships its own file
* with the same name (which then replaces the mother's file). This mirrors
* what LimeSurvey itself does when you "extend" a theme in the theme editor.
*
* Usage:
* php variants/build.php <variantName> [definitions-dir]
*
* The definitions (variants/<variantName>.json) contain confidential client
* house-style values and are NOT kept in this (public) repository - see
* .gitignore. Store them in the private variants repository or locally, and
* point this script at that folder via the optional second argument or the
* RESPONDAGE_VARIANTS_DIR environment variable.
*
* Example:
* php variants/build.php <client> /path/to/private-variants
*
* Optional keys in the variant json:
* "files_add": {"css": ["css/variant.css"], "js": []} extra files shipped by the
* variant, appended to the <files> list of the generated config.xml
* "fontOptions": [{"value": "my_custom_font", "label": "My Custom Font"}] custom fonts,
* appended to the "Custom (this theme)" optgroup of the font dropdown
*
* Output:
* ../<variantName>/config.xml (next to this theme, in upload/themes/survey)
*
* After running this script, upload the variant folder to
* upload/themes/survey/ and (re)install or reset the theme in LimeSurvey
* (Theme options -> reset), so the new config.xml is imported into the DB.
*
* If an option key in the json no longer exists in the mother config.xml,
* the script fails loudly, so drift between mother and variant is caught
* at build time instead of silently rendering wrong values.
*/
if (PHP_SAPI !== 'cli') {
fwrite(STDERR, "This script must be run from the command line.\n");
exit(1);
}
$variantName = isset($argv[1]) ? trim($argv[1]) : '';
if ($variantName === '' || !preg_match('/^[a-z0-9_]+$/i', $variantName)) {
fwrite(STDERR, "Usage: php variants/build.php <variantName> [definitions-dir]\n");
fwrite(STDERR, " <variantName> must match an existing <definitions-dir>/<variantName>.json file.\n");
fwrite(STDERR, " Default definitions-dir: the variants/ folder next to this script, or RESPONDAGE_VARIANTS_DIR.\n");
exit(1);
}
$motherDir = dirname(__DIR__); // .../themes/survey/respondage_vanilla
$themesDir = dirname($motherDir); // .../themes/survey
$motherConfig = $motherDir . DIRECTORY_SEPARATOR . 'config.xml';
$definitionsDir = $argv[2] ?? (getenv('RESPONDAGE_VARIANTS_DIR') ?: __DIR__);
$definitionFile = rtrim($definitionsDir, '/\\') . DIRECTORY_SEPARATOR . $variantName . '.json';
foreach ([$motherConfig, $definitionFile] as $f) {
if (!is_file($f)) {
fwrite(STDERR, "Required file not found: $f\n");
exit(1);
}
}
$definition = json_decode(file_get_contents($definitionFile), true);
if (!is_array($definition)) {
fwrite(STDERR, "Invalid JSON in $definitionFile\n");
exit(1);
}
$doc = new DOMDocument();
$doc->preserveWhiteSpace = false;
$doc->formatOutput = true;
if (!$doc->load($motherConfig)) {
fwrite(STDERR, "Could not parse mother config: $motherConfig\n");
exit(1);
}
$xpath = new DOMXPath($doc);
$motherName = (string) $xpath->query('//metadata/name')->item(0)->textContent;
// --- metadata: identify the variant, point extends to the mother theme ---
function setMetadata(DOMXPath $xpath, DOMDocument $doc, string $tag, string $value): void
{
$node = $xpath->query("//metadata/$tag")->item(0);
if ($node === null) {
$node = $doc->createElement($tag);
$xpath->query('//metadata')->item(0)->appendChild($node);
}
$node->textContent = $value;
}
setMetadata($xpath, $doc, 'name', $definition['name'] ?? $variantName);
setMetadata($xpath, $doc, 'title', $definition['title'] ?? ucfirst($variantName));
if (isset($definition['description'])) {
setMetadata($xpath, $doc, 'description', $definition['description']);
}
setMetadata($xpath, $doc, 'extends', $motherName);
setMetadata($xpath, $doc, 'lastUpdate', date('Y-m-d H:i:s'));
// --- empty the <engine> section except <optionspage>: inherited from the mother ---
// (same as TemplateManifest::deleteEngineInDom() does when extending a theme in LimeSurvey)
$engineNode = $xpath->query('//engine')->item(0);
if ($engineNode !== null) {
foreach (iterator_to_array($engineNode->childNodes) as $child) {
if ($child instanceof DOMElement && $child->nodeName !== 'optionspage') {
$engineNode->removeChild($child);
} elseif ($child instanceof DOMComment) {
$engineNode->removeChild($child);
}
}
}
// --- extra files shipped by the variant itself ---
// In the variant json: "files_add": {"css": ["css/variant.css"], "js": []}
// They are appended to the <files> list. The mother's files keep loading until the
// variant ships a file with the same name; from that moment it replaces the mother's
// file (LimeSurvey "add" also means "replace" for identical paths).
if (!empty($definition['files_add'])) {
$filesNode = $xpath->query('//files')->item(0);
if ($filesNode === null) {
fwrite(STDERR, "No <files> section found in mother config\n");
exit(1);
}
foreach (['css', 'js', 'print_css'] as $type) {
$values = $definition['files_add'][$type] ?? [];
if (empty($values)) {
continue;
}
$typeNode = $xpath->query('//files/' . $type)->item(0);
if ($typeNode === null) {
$typeNode = $doc->createElement($type);
$filesNode->appendChild($typeNode);
}
foreach ((array) $values as $file) {
$add = $doc->createElement('add');
$add->appendChild($doc->createTextNode((string) $file));
$typeNode->appendChild($add);
}
}
}
// --- custom fonts of the variant, added to the font dropdown ---
// In the variant json: "fontOptions": [{"value": "my_custom_font", "label": "My Custom Font"}]
// The font files themselves live in the variant's files/fonts/ and the @font-face +
// body.font-<value> rule in a css file shipped by the variant (see files_add, e.g.
// css/variant.css with src: url('../files/fonts/my-custom-font.woff2')).
// data-font-package stays "websafe": LimeSurvey only knows the core font packages
// (application/config/fonts.php), and "websafe" is the neutral one, so no missing
// package is requested. The real font is loaded by the variant's own css.
if (!empty($definition['fontOptions'])) {
$optgroup = $xpath->query('//options/font/dropdownoptions/optgroup[@label="Custom (this theme)"]')->item(0);
if ($optgroup === null) {
fwrite(STDERR, "No <optgroup label=\"Custom (this theme)\"> found in the font dropdown of the mother config.xml\n");
exit(1);
}
foreach ((array) $definition['fontOptions'] as $font) {
if (empty($font['value']) || empty($font['label'])) {
fwrite(STDERR, "Each entry in 'fontOptions' needs 'value' and 'label'\n");
exit(1);
}
$value = preg_replace('/[^a-z0-9_]/i', '_', (string) $font['value']);
$option = $doc->createElement('option');
$option->setAttribute('class', 'font-' . $value);
$option->setAttribute('value', $value);
$option->setAttribute('data-font-package', 'websafe');
$option->appendChild($doc->createTextNode((string) $font['label']));
$optgroup->appendChild($option);
}
}
// --- options: replace only the house-style values listed in the json ---
if (!empty($definition['options']) && !is_array($definition['options'])) {
fwrite(STDERR, "'options' in $definitionFile must be an object of optionName => value\n");
exit(1);
}
$optionsNode = $xpath->query('//options')->item(0);
if ($optionsNode === null) {
fwrite(STDERR, "No <options> section found in mother config\n");
exit(1);
}
foreach (($definition['options'] ?? []) as $key => $value) {
$matches = $xpath->query('//options/' . $key);
if ($matches->length === 0) {
fwrite(STDERR, "Option '$key' from $definitionFile does not exist in the mother config.xml.\n");
fwrite(STDERR, "Remove it from the json or rename it there; the mother theme changed.\n");
exit(1);
}
$option = $matches->item(0);
// Replace only the text value, keep child elements (e.g. <dropdownoptions> of the font option)
foreach (iterator_to_array($option->childNodes) as $child) {
if ($child instanceof DOMText) {
$option->removeChild($child);
}
}
$option->insertBefore($doc->createTextNode((string) $value), $option->firstChild);
}
// --- write the variant config ---
$variantDir = $themesDir . DIRECTORY_SEPARATOR . $variantName;
if (!is_dir($variantDir) && !mkdir($variantDir, 0775, true)) {
fwrite(STDERR, "Could not create directory: $variantDir\n");
exit(1);
}
if (!is_dir($variantDir . DIRECTORY_SEPARATOR . 'files')) {
mkdir($variantDir . DIRECTORY_SEPARATOR . 'files', 0775, true);
}
$out = $variantDir . DIRECTORY_SEPARATOR . 'config.xml';
$doc->save($out);
echo "Variant '$variantName' built: $out\n";
echo 'Options overridden: ' . (empty($definition['options']) ? '(none)' : implode(', ', array_keys($definition['options']))) . "\n";
echo "Remember: upload the folder to upload/themes/survey/ and reset the theme in LimeSurvey.\n";

53
variants/export_public.sh Normal file
View file

@ -0,0 +1,53 @@
#!/usr/bin/env bash
#
# Build a PUBLIC release of the mother theme (respondage_vanilla) only.
#
# Client data (variant definitions variants/*.json, generated client theme
# folders, git branches containing a client theme) must NEVER be published.
# This script therefore:
# 1. copies the theme WITHOUT .git, WITHOUT variants/*.json (only the
# generic build.php and export script are kept) and without old exports;
# 2. scans the staged copy for client-identifying strings and ABORTS if any
# are found;
# 3. creates a zip next to the folder.
#
# Usage:
# bash variants/export_public.sh [output-dir]
#
# Default output dir: <limesurvey-root>/dist (deliberately NOT inside
# upload/themes/survey/, because every folder there is scanned as a theme).
#
set -euo pipefail
THEME_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SITE_ROOT="$(cd "$THEME_DIR/../../../.." && pwd)"
OUT_DIR="${1:-$SITE_ROOT/dist}"
STAGE="$OUT_DIR/respondage_vanilla"
VERSION="$(sed -n 's:.*<version>\([^<]*\)</version>.*:\1:p' "$THEME_DIR/config.xml" | head -1)"
ZIP_NAME="respondage_vanilla-${VERSION}-public.zip"
rm -rf "$STAGE"
mkdir -p "$STAGE" "$OUT_DIR"
# 1. copy the theme, excluding .git, client variant definitions, the internal
# variants README and old exports (the generic build/export scripts are kept)
(cd "$THEME_DIR" && tar --exclude='./.git' --exclude='./dist' --exclude='./variants/*.json' --exclude='./variants/README.internal.md' -cf - .) | (cd "$STAGE" && tar -xf -)
# 2. leak check: no client-identifying strings may remain (text files only).
# The bracket trick keeps this script from matching its own pattern.
if grep -rIlE 'eras[m]us|defen[s]ie|rijk[s]logo' "$STAGE"; then
echo "ERROR: client-identifying strings found in the public export - aborting, staging removed." >&2
rm -rf "$STAGE"
exit 1
fi
# 3. zip it
(cd "$OUT_DIR" && rm -f "$ZIP_NAME" && zip -qr "$ZIP_NAME" respondage_vanilla)
echo "Public release created:"
echo " folder: $STAGE"
echo " zip: $OUT_DIR/$ZIP_NAME"
echo
echo "Publish ONLY this artifact (or the main branch of this repo)."
echo "NEVER publish variants/*.json, generated client theme folders, or a git"
echo "branch that contains a client theme - client names, colors and logos are confidential."

View file

@ -145,8 +145,21 @@
background-color: {{ aSurveyInfo.options.headerbackgroundcolor }}; background-color: {{ aSurveyInfo.options.headerbackgroundcolor }};
} }
.navbar-default .navbar-nav > li > a:hover { #survey-nav .logo-container > img {
color: {{ aSurveyInfo.options.fontcolor }}; padding-top: {{ aSurveyInfo.options.logotopmargin }};
}
#survey-nav .navbar-nav > li > a,
#survey-nav .navbar-nav .nav-link {
color: {{ aSurveyInfo.options.navbarfontcolor }};
}
#survey-nav .navbar-nav > li > a:hover,
#survey-nav .navbar-nav > li > a:focus,
#survey-nav .navbar-nav .nav-link:hover,
#survey-nav .navbar-nav .nav-link:focus {
color: {{ aSurveyInfo.options.navbarfontcolor }};
opacity: 0.75;
} }
.progress { .progress {

View file

@ -28,8 +28,9 @@ For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
or (aSurveyInfo.aQuestionIndex.bShow == true and aSurveyInfo.format != 'A') or (aSurveyInfo.aQuestionIndex.bShow == true and aSurveyInfo.format != 'A')
or (aSurveyInfo.alanguageChanger.show) or (aSurveyInfo.alanguageChanger.show)
%} %}
{% set showRightLogo = (aSurveyInfo.options.rightlogo == "on" and imageSrc(aSurveyInfo.options.rightlogofile)) %}
<div id="survey-nav" class="navbar {{ navClass }} navbar-expand-md fixed-top border-bottom pt-0 pb-0"> <div id="survey-nav" class="navbar {{ navClass }} navbar-expand-md fixed-top border-bottom pt-0 pb-0">
<div class="container-fluid"> <div class="container-fluid d-flex align-items-center">
{% if ShowMenu %} {% if ShowMenu %}
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar"
aria-controls="small-screens-menus" aria-expanded="false"> aria-controls="small-screens-menus" aria-expanded="false">
@ -37,24 +38,25 @@ For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
<span class="navbar-toggler-icon" aria-hidden="true"></span> <span class="navbar-toggler-icon" aria-hidden="true"></span>
</button> </button>
{% endif %} {% endif %}
{# Logo option #} {# Left logo #}
{% if( aSurveyInfo.options.brandlogo == "on") %} {% if( aSurveyInfo.options.brandlogo == "on" and imageSrc(aSurveyInfo.options.brandlogofile)) %}
<div class="navbar-brand logo-container d-none d-md-block"> <div class="navbar-brand logo-container logo-left d-none d-md-block">
{{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }} {{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }}
</div> </div>
{% else %} {% else %}
<div class="navbar-brand"> <div class="navbar-brand logo-left">
{{ aSurveyInfo.name }} {{ aSurveyInfo.name }}
</div> </div>
{% endif %} {% endif %}
{% if( aSurveyInfo.options.secondlogo == "on") %} {# Center logo (absolutely centered via CSS, see sass/plain.sass) #}
<div class="navbar-brand logo-container d-none d-md-block"> {% if( aSurveyInfo.options.centerlogo == "on" and imageSrc(aSurveyInfo.options.centerlogofile)) %}
{{ image(aSurveyInfo.options.secondlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }} <div class="navbar-brand logo-container logo-center d-none d-md-block">
{{ image(aSurveyInfo.options.centerlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }}
</div> </div>
{% endif %} {% endif %}
{% if ShowMenu %} {% if ShowMenu %}
<div id="navbar" class="collapse navbar-collapse navbar-nav-scroll pt-2"> <div id="navbar" class="collapse navbar-collapse navbar-nav-scroll pt-2 {{ showRightLogo ? "" : "ms-auto" }}">
<ul class="nav navbar-nav navbar-action-link navbar-right ms-auto"> <ul class="nav navbar-nav navbar-action-link navbar-right">
{{ include('./subviews/navigation/save_links.twig') }} {{ include('./subviews/navigation/save_links.twig') }}
{{ include('./subviews/navigation/clearall_links.twig') }} {{ include('./subviews/navigation/clearall_links.twig') }}
{{ include('./subviews/navigation/question_index_menu.twig') }} {{ include('./subviews/navigation/question_index_menu.twig') }}
@ -62,6 +64,12 @@ For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
{# Right logo #}
{% if showRightLogo %}
<div class="navbar-brand logo-container logo-right d-none d-md-block ms-auto">
{{ image(aSurveyInfo.options.rightlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }}
</div>
{% endif %}
</div> </div>
</div> </div>
{% endif %} {% endif %}