Branch: refs/heads/dmaphy/Issue_12_Add_Pagetitle Author: Dominic Hopf dmaphy@fedoraproject.org Committer: Dominic Hopf dmaphy@fedoraproject.org Date: Tue, 29 May 2018 19:51:42 UTC Commit: 3ae608ea490de4411d3cdf83489793a4dfafdd78 https://github.com/geany/plugins.geany.org/commit/3ae608ea490de4411d3cdf8348...
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).