[geany/plugins.geany.org] 3ae608: Add Pagetitle to index.php
Dominic Hopf
git-noreply at xxxxx
Tue May 29 19:51:42 UTC 2018
Branch: refs/heads/master
Author: Dominic Hopf <dmaphy at fedoraproject.org>
Committer: Dominic Hopf <dmaphy at fedoraproject.org>
Date: Tue, 29 May 2018 19:51:42 UTC
Commit: 3ae608ea490de4411d3cdf83489793a4dfafdd78
https://github.com/geany/plugins.geany.org/commit/3ae608ea490de4411d3cdf83489793a4dfafdd78
Log Message:
-----------
Add Pagetitle to index.php
Modified Paths:
--------------
index.php
Modified: index.php
5 lines changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -16,17 +16,20 @@
if (file_exists(CONTENTPATH . $_GET['site'] . '.html'))
{
define('CONTENTFILE', CONTENTPATH . $_GET['site'] . '.html');
+ define('PAGETITLE', $_GET['site']);
}
else
{
define('CONTENTFILE', CONTENTPATH . '404.html');
+ define('PAGETITLE', 'Plugin could not be found.');
}
}
else
{
define('CONTENTFILE', CONTENTPATH . 'start.html');
+ define('PAGETITLE', '');
}
print '<?xml version="1.0"?>';
@@ -37,7 +40,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
- <title>Plugins for Geany</title>
+ <title>Plugins for Geany [<?php print PAGETITLE ?>]</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="./stylesheets/mainstyle.css" />
</head>
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list