praiadeseselle/site/templates/layout/init.php

25 lines
620 B
PHP
Raw Normal View History

2022-03-09 18:09:44 +01:00
<?php namespace ProcessWire;
/**
* Initialize variables output in _main.php
*
* Values populated to these may be changed as desired by each template file.
*/
/** @var Page $page */
/** @var Pages $pages */
include_once("./layout/func.php");
2022-03-09 18:09:44 +01:00
2022-10-27 14:10:14 +02:00
$start = microtime(true);
2022-03-09 18:09:44 +01:00
$inicio = $pages->get('/');
$xestion = $pages->get('/gestion');
$configuracion = getConfig($xestion);
$titulo = $page->title . ' - ' . $configuracion['sitio_nome'];
/** What happens after this?
* ------------------------
* 1. ProcessWire loads your page's template file (i.e. basic-page.php).
* 2. ProcessWire loads the _main.php file
*/