summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-23 00:12:05 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-23 01:25:47 -0500
commit4ea091174ce896e1293689de76f7a5122c4e834e (patch)
tree0909a356f15366590510cf78957d1857bc5e445d /web/template
parente3dfb09aec084fc6bd119309ce949eaab714eae7 (diff)
Make the instance name and domain configurable.
Diffstat (limited to 'web/template')
-rw-r--r--web/template/account_delete.php3
-rw-r--r--web/template/account_edit_form.php2
-rw-r--r--web/template/footer.php2
-rw-r--r--web/template/header.php8
-rw-r--r--web/template/stats/updates_table.php2
5 files changed, 9 insertions, 8 deletions
diff --git a/web/template/account_delete.php b/web/template/account_delete.php
index 74f386d..ca6c6ce 100644
--- a/web/template/account_delete.php
+++ b/web/template/account_delete.php
@@ -1,5 +1,6 @@
<p>
- <?= __('You can use this form to permanently delete the AUR account %s.', '<strong>' . htmlspecialchars($username) . '</strong>') ?>
+ <?= __('You can use this form to permanently delete the %s account %s.',
+ config_get('options', 'aur_shortname'), '<strong>' . htmlspecialchars($username) . '</strong>') ?>
</p>
<p>
<?= __('%sWARNING%s: This action cannot be undone.', '<strong>', '</strong>') ?>
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 19821a0..2572157 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -132,7 +132,7 @@
</fieldset>
<fieldset>
- <legend><?= __("The following information is only required if you want to submit packages to the Arch User Repository.") ?></legend>
+ <legend><?= __("The following information is only required if you want to submit packages to the %s.", config_get('options', 'aur_longname')) ?></legend>
<p>
<label for="id_ssh"><?= __("SSH Public Key") ?>:</label>
<textarea name="PK" id="id_ssh" rows="5" cols="30"><?= htmlspecialchars($PK) ?></textarea>
diff --git a/web/template/footer.php b/web/template/footer.php
index 572dbb2..0431792 100644
--- a/web/template/footer.php
+++ b/web/template/footer.php
@@ -6,7 +6,7 @@
<p>aurweb <a href="https://git.archlinux.org/aurweb.git/log/?h=<?= htmlspecialchars($ver, ENT_QUOTES) ?>"><?= htmlspecialchars($ver) ?></a></p>
<?php endif; ?>
<p><?= __('Copyright %s 2004-%d aurweb Development Team.', '&copy;', date('Y')) ?></p>
- <p><?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.') ?></p>
+ <p><?= __('%s packages are user produced content. Any use of the provided files is at your own risk.', config_get('options', 'aur_shortname')) ?></p>
</div>
</div>
</body>
diff --git a/web/template/header.php b/web/template/header.php
index 874109a..96bf6c5 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?= htmlspecialchars($LANG, ENT_QUOTES) ?>" lang="<?= htmlspecialchars($LANG, ENT_QUOTES) ?>">
<head>
- <title>AUR (<?= htmlspecialchars($LANG); ?>)<?php if ($title != "") { print " - " . htmlspecialchars($title); } ?></title>
+ <title><?= config_get('options', 'aur_shortname'); ?> (<?= htmlspecialchars($LANG); ?>)<?php if ($title != "") { print " - " . htmlspecialchars($title); } ?></title>
<link rel='stylesheet' type='text/css' href='/css/archweb.css' />
<link rel='stylesheet' type='text/css' href='/css/aurweb.css' />
<link rel='shortcut icon' href='/images/favicon.ico' />
@@ -16,7 +16,7 @@
</head>
<body>
<div id="archnavbar" class="anb-aur">
- <div id="archnavbarlogo"><h1><a href="/" title="Return to the main page">Arch Linux User Repository</a></h1></div>
+ <div id="archnavbarlogo"><h1><a href="/" title="Return to the main page"><?= config_get('options', 'aur_longname'); ?></a></h1></div>
<div id="archnavbarmenu">
<ul id="archnavbarlist">
<li id="anb-home"><a href="https://www.archlinux.org/" title="Arch news, packages, projects and more">Home</a></li>
@@ -24,7 +24,7 @@
<li id="anb-forums"><a href="https://bbs.archlinux.org/" title="Community forums">Forums</a></li>
<li id="anb-wiki"><a href="https://wiki.archlinux.org/" title="Community documentation">Wiki</a></li>
<li id="anb-bugs"><a href="https://bugs.archlinux.org/" title="Report and track bugs">Bugs</a></li>
- <li id="anb-aur"><a href="/" title="Arch Linux User Repository">AUR</a></li>
+ <li id="anb-aur"><a href="/" title="<?= config_get('options', 'aur_longname'); ?>"><?= config_get('options', 'aur_shortname'); ?></a></li>
<li id="anb-download"><a href="https://www.archlinux.org/download/" title="Get Arch Linux">Download</a></li>
</ul>
</div>
@@ -53,7 +53,7 @@
</div>
<div id="archdev-navbar">
<ul>
- <li><a href="<?= get_uri('/'); ?>">AUR <?= __("Home"); ?></a></li>
+ <li><a href="<?= get_uri('/'); ?>"><?= config_get('options', 'aur_shortname'); ?> <?= __("Home"); ?></a></li>
<li><a href="<?= get_uri('/packages/'); ?>"><?= __("Packages"); ?></a></li>
<?php if (isset($_COOKIE['AURSID'])): ?>
<li><a href="<?= get_uri('/packages/'); ?>?SeB=m&amp;K=<?= username_from_sid($_COOKIE["AURSID"]); ?>"><?= __("My Packages"); ?></a></li>
diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index 580583b..05ada3b 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -1,6 +1,6 @@
<h3><?= __("Recent Updates") ?> <span class="more">(<a href="<?= get_uri('/packages/') ?>?SB=l&amp;SO=d"><?= __('more') ?></a>)</span></h3>
-<a href="<?= get_uri('/rss/') ?>" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="/images/rss.svg" alt="RSS Feed" /></a>
+<a href="<?= get_uri('/rss/') ?>" title="<?= config_get('options', 'aur_longname'); ?> Package Updates RSS Feed" class="rss-icon"><img src="/images/rss.svg" alt="RSS Feed" /></a>
<table>
<tbody>