Agregar variable PAGE_TITLE para personalizar títulos en las páginas del club
This commit is contained in:
@@ -34,7 +34,7 @@ if (!empty($displayName)) {
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title><?php echo $APP_TITLE ?? "Axia4"; ?></title>
|
||||
<title><?php echo $PAGE_TITLE ?? $APP_TITLE ?? "Axia4"; ?></title>
|
||||
<link rel="stylesheet" href="/static/bootstrap.min.css" />
|
||||
<link rel="icon" type="image/png" href="/static/<?php echo $APP_ICON ?? "logo.png"; ?>" />
|
||||
<link rel="manifest" href="/static/manifest.json">
|
||||
|
||||
@@ -9,6 +9,7 @@ $fotos = glob("/DATA/club/IMG/$file/*/");
|
||||
$APP_CODE = "club";
|
||||
$APP_NAME = "La web del Club<sup>3</sup>";
|
||||
$APP_TITLE = "La web del Club";
|
||||
$PAGE_TITLE = $val["title"] ? "$date - " . $val["title"] . " - Club" : "$date - Club";
|
||||
require_once "../_incl/pre-body.php"; ?>
|
||||
<div class="card pad">
|
||||
<h1><?php echo $date; ?> - <?php echo $val["title"] ?: "Por definir"; ?></h1>
|
||||
|
||||
@@ -21,6 +21,7 @@ if(strtoupper($_POST["adminpw"]) == strtoupper($config["adminpw"] ?? "")) {
|
||||
$APP_CODE = "club";
|
||||
$APP_NAME = "La web del Club<sup>3</sup>";
|
||||
$APP_TITLE = "La web del Club";
|
||||
$PAGE_TITLE = "Editar datos - $date - Club";
|
||||
require_once "../_incl/pre-body.php"; ?>
|
||||
<div class="card">
|
||||
<div>
|
||||
|
||||
@@ -6,6 +6,7 @@ $files = array_reverse($files);
|
||||
$APP_CODE = "club";
|
||||
$APP_NAME = "La web del Club<sup>3</sup>";
|
||||
$APP_TITLE = "La web del Club";
|
||||
$PAGE_TITLE = "Club - Inicio";
|
||||
require_once "../_incl/pre-body.php"; ?>
|
||||
<div class="card pad">
|
||||
<h2>Calendario:</h2>
|
||||
|
||||
Reference in New Issue
Block a user