Actions

Translations

New Template System in LS3.x/71/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
 
Line 1: Line 1:
<syntaxhighlight lang="xml" enclose="div">
<syntaxhighlight lang="xml">
         <packages>
         <packages>
             ....
             ....

Latest revision as of 22:00, 17 February 2022

Message definition (New Template System in LS3.x)
<syntaxhighlight lang="xml">
       <packages>
             ....
           <add>font-noto</add>
       </packages>
</syntaxhighlight >
https://github.com/LimeSurvey/LimeSurvey/blob/70a1d99cd2ebe411597231a8bc746b4ca9e19584/themes/survey/vanilla/config.xml#L58
<br>
<syntaxhighlight lang="xml">
   <options>
       ....
       <font>noto</font>
   </options>
</syntaxhighlight>
<br>
Then, the body class font is defined using this value:
https://github.com/LimeSurvey/LimeSurvey/blob/70a1d99cd2ebe411597231a8bc746b4ca9e19584/themes/survey/vanilla/views/layout_global.twig#L76
<syntaxhighlight lang="html">
<body class=" ...  font-{{  aSurveyInfo.options.font }} ... " ... >
</syntaxhighlight>
        <packages>
             ....
            <add>font-noto</add>
        </packages>

https://github.com/LimeSurvey/LimeSurvey/blob/70a1d99cd2ebe411597231a8bc746b4ca9e19584/themes/survey/vanilla/config.xml#L58

    <options>
        ....
        <font>noto</font>
    </options>


Daarna wordt de body class font gedefinieerd met:: https://github.com/LimeSurvey/LimeSurvey/blob/70a1d99cd2ebe411597231a8bc746b4ca9e19584/themes/survey/vanilla/views/layout_global.twig#L76

<body class=" ...  font-{{  aSurveyInfo.options.font }} ... " ... >