Actions

Translations

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

From LimeSurvey Manual

(Created page with "<div class="simplebox">File:help.png Als je de code eens een keer wilt zien, dan staat hier: [https://github.com/LimeSurvey/LimeSurvey/blob/f3737a75e428f604d68d2e5ba958f3...")
 
No edit summary
Line 1: Line 1:
<div class="simplebox">[[File:help.png]]  Als je de code eens een keer wilt zien, dan staat hier: [https://github.com/LimeSurvey/LimeSurvey/blob/f3737a75e428f604d68d2e5ba958f3eba3eba2e1/application/core/LS_Twig_Extension.php#L219-L237 image() de versie RC3]
<div class="simplebox">[[File:help.png]]  Als je de code eens een keer wilt zien, die staat hier: [https://github.com/LimeSurvey/LimeSurvey/blob/f3737a75e428f604d68d2e5ba958f3eba3eba2e1/application/core/LS_Twig_Extension.php#L219-L237 de versie RC3]
Maar je hoeft alleen maar te weten hoe je het moet aanroepen.
Maar je hoeft alleen maar te weten hoe je het moet aanroepen.
</div>
</div>

Revision as of 13:09, 31 March 2018

Message definition (New Template System in LS3.x)
<div class="simplebox">[[File:help.png]]  If you’re curious to know what it does, you can find it in the code here (version of RC3): [https://github.com/LimeSurvey/LimeSurvey/blob/f3737a75e428f604d68d2e5ba958f3eba3eba2e1/application/core/LS_Twig_Extension.php#L219-L237 image() function in RC3]
If you don’t understand the code: don’t worry, you don’t need to know how it works, but why to use it and how to use it.
</div>
<br>
You should use the function image() for two reasons:
* The function image loops through the theme to find the image. If the theme you’re working on is extended to another theme, and if you copy the file to where you inserted the picture locally, but that picture is not copied in the local theme, it will loop through the theme inheritance tree to find where that picture is.
* It will use the asset manager, so it will improve the performance of your theme. See the Yii Asset Manager documentation for more information about it: http://www.yiiframework.com/wiki/148/understanding-assets/
Als je de code eens een keer wilt zien, die staat hier: de versie RC3

Maar je hoeft alleen maar te weten hoe je het moet aanroepen.


De function image() wordt gebruik om:

  • de afbeelding te vinden die in het sjabloon gebruikt wordt. De functie zoekt indien nodig ook in het sjabloon (meerdere niveaus mogelijk) waar het sjabloon van afstamt.
  • dit gaat met gebruik van de asset manager voor een betere performance van het sjabloon. Meer informatie hierover: http://www.yiiframework.com/wiki/148/understanding-assets/