2022-03-09 18:09:44 +01:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2023-02-18 18:21:02 +01:00
|
|
|
/**
|
|
|
|
* 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('/');
|
2022-12-06 10:05:56 +01:00
|
|
|
$xestion = $pages->get('/gestion');
|
|
|
|
$configuracion = getConfig($xestion);
|
2023-02-18 18:21:02 +01:00
|
|
|
$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
|
|
|
|
*/
|