Add a domain link to the theme.

This commit is contained in:
markjcrane 2015-08-14 08:51:21 -06:00
parent 09c4dd79d0
commit 54bba850a8
1 changed files with 9 additions and 1 deletions

View File

@ -1369,7 +1369,15 @@ if (strlen($_SESSION['message']) > 0) {
<div id="domains_block">
<div id="domains_header">
<input id="domains_hide" type="button" class="btn" style="float: right" value="<?php echo $text['theme-button-close']; ?>">
<b style="color: #000;"><?php echo $text['theme-title-domains']; ?></b> (<?php echo sizeof($_SESSION['domains']); ?>)
<?php
if (file_exists($_SERVER["DOCUMENT_ROOT"]."/app/domains/domains.php")) {
$href = '/app/domains/domains.php';
}
else {
$href = '/core/domain_settings/domains.php';
}
echo "<a href=\"".$href."\"><b style=\"color: #000;\">".$text['theme-title-domains']."</b></a> (".sizeof($_SESSION['domains']).")";
?>
<br><br>
<input type="text" id="domain_filter" class="formfld" style="min-width: 100%; width: 100%;" placeholder="<?php echo $text['theme-label-search']; ?>" onkeyup="domain_search(this.value);">
</div>