Processwire - Themes / Templates: Unterschied zwischen den Versionen
Aus Wikizone
| Zeile 4: | Zeile 4: | ||
=== Basic Theme === | === Basic Theme === | ||
| + | |||
| + | |||
| + | <syntaxhighlight lang="php"> | ||
| + | </syntaxhighlight> | ||
| + | <pre> | ||
| + | templates/ | ||
| + | _func.inc | ||
| + | _init.inc | ||
| + | _main.inc | ||
| + | templates/partials | ||
| + | foot.inc | ||
| + | head.inc | ||
| + | </pre> | ||
| + | === Delayed Output === | ||
config.php | config.php | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
| Zeile 21: | Zeile 35: | ||
); | ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | + | <pre> | |
| − | < | ||
| − | |||
| − | |||
templates/ | templates/ | ||
_func.inc | _func.inc | ||
| Zeile 33: | Zeile 44: | ||
head.inc | head.inc | ||
</pre> | </pre> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== AJAX Driven Theme === | === AJAX Driven Theme === | ||
=== 3.x Strategie === | === 3.x Strategie === | ||
Version vom 22. März 2017, 17:30 Uhr
Links
- Processwire - Template from Scratch
Theme Strategien
Basic Theme
templates/ _func.inc _init.inc _main.inc templates/partials foot.inc head.inc
Delayed Output
config.php
<?php
...
$config->debug = false;
$config->sessionFingerprint = true;
$config->prependTemplateFile = '_init.php';
$config->appendTemplateFile = '_main.php';
$config->imageSizerOptions = array(
'upscaling' => true, // upscale if necessary to reach target size?
'cropping' => true, // crop if necessary to reach target size?
'autoRotation' => true, // automatically correct orientation?
'sharpening' => 'soft', // sharpening: none | soft | medium | strong
'quality' => 90, // quality: 1-100 where higher is better but bigger
);
templates/ _func.inc _init.inc _main.inc templates/partials foot.inc head.inc