branding improvments

This commit is contained in:
SJ 2013-07-18 17:13:49 +02:00
parent 5e3651ac10
commit 5b6d7d60a1
8 changed files with 61 additions and 32 deletions

View File

@ -362,6 +362,7 @@ create table if not exists `customer_settings` (
`domain` varchar(255) not null unique,
`branding_text` varchar(255) default null,
`branding_url` varchar(255) default null,
`branding_logo` varchar(255) default null,
`support_link` varchar(255) default null,
`colour` varchar(255) default null
) Engine=InnoDB;

View File

@ -18,6 +18,7 @@ create table if not exists `customer_settings` (
`domain` varchar(255) not null unique,
`branding_text` varchar(255) default null,
`branding_url` varchar(255) default null,
`branding_logo` varchar(255) default null,
`support_link` varchar(255) default null,
`colour` varchar(255) default null
) Engine=InnoDB;

View File

@ -16,8 +16,11 @@ $config['PILERGETD_PASSWORD'] = '';
$config['BRANDING_TEXT'] = '';
$config['BRANDING_URL'] = '';
$config['BRANDING_LOGO'] = '';
$config['SUPPORT_LINK'] = '';
$config['SHOW_COMPANY_LINK'] = 1;
$config['DEFAULT_LANG'] = 'en';
$config['THEME'] = 'default';

View File

@ -7,7 +7,7 @@ class ModelSaasCustomer extends Model
$data = array(
'branding_text' => BRANDING_TEXT,
'branding_url' => BRANDING_URL,
'branding_logo' => SITE_LOGO_SM,
'branding_logo' => BRANDING_LOGO,
'support_link' => SUPPORT_LINK,
'colour' => ''
);

View File

@ -43,7 +43,7 @@
<td class="auditcell ip"><?php print $message['ipaddr']; ?></td>
<td class="auditcell action"><?php print $actions[$message['action']]; ?></td>
<td class="auditcell description"><?php if($message['description'] != $message['shortdescription']) { ?><span title="<?php print $message['description']; ?>"><?php print $message['shortdescription']; ?></span><?php } else { print $message['description']; } ?></td>
<td class="auditcell ref"><?php print $message['id']; ?></td>
<td class="auditcell ref"><?php if(Registry::get('auditor_user') == 1 && $message['id'] > 0) { ?><a href="#" onclick="Piler.view_message(<?php print $message['id']; ?>);"><?php } ?><?php print $message['id']; ?><?php if(Registry::get('auditor_user') == 1 && $message['id'] > 0) { ?></a><?php } ?></td>
</tr>
<?php } } else { ?>

View File

@ -35,52 +35,76 @@
<body onload="Piler.add_shortcuts();">
<div id="messagebox1" class="audit audit-info"></div>
<div id="piler1" class="container">
<div id="menu"><?php print $menu; ?></div>
<div id="messagebox1" class="audit audit-info"></div>
<div id="searchcontainer">
<div id="piler1" class="container">
<input type="hidden" name="searchtype" id="searchtype" value="expert" />
<input type="hidden" name="sort" id="sort" value="date" />
<input type="hidden" name="order" id="order" value="0" />
<div id="menu"><?php print $menu; ?></div>
<div class="control-group">
<div class="controls">
<div id="searchcontainer">
<input type="hidden" name="searchtype" id="searchtype" value="expert" />
<input type="hidden" name="sort" id="sort" value="date" />
<input type="hidden" name="order" id="order" value="0" />
<div class="control-group">
<div class="controls">
<label for="_search">Search</label>
<div class="input-append">
<input type="text" id="_search" name="_search" placeholder="<?php print $text_enter_search_terms; ?>" />
<button id="button_search" class="btn btn-large btn-danger" onclick="Piler.auditexpert(this);"><i class="icon-search icon-large"></i>&nbsp;<?php print $text_search; ?></button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="mainscreen">
<div id="mailleftcontainer">
</div>
<div id="mailrightcontainer<?php if(ENABLE_FOLDER_RESTRICTIONS == 0) { ?>nofolder<?php } ?>">
<div id="mainscreen">
<div id="mailrightcontent">
<div id="mailcontframe">
<div id="sspinner" class="alert alert-info lead"><i class="icon-spinner icon-spin icon-2x pull-left"></i><?php print $text_working; ?></div>
<div id="resultscontainer" class="boxlistcontent">
<?php print $content; ?>
</div>
<div id="mailleftcontainer">
</div>
</div>
<div id="mailrightcontainernofolder">
</div>
<div id="mailrightcontent">
<div id="mailcontframe">
<div id="sspinner" class="alert alert-info lead"><i class="icon-spinner icon-spin icon-2x pull-left"></i><?php print $text_working; ?></div>
<div id="resultscontainer" class="boxlistcontent">
<?php print $content; ?>
</div>
</div>
<?php if(Registry::get('auditor_user') == 1) { ?>
<script type="text/javascript">
var mailviewsplit = new rcube_splitter({id:'splitter2', p1: 'mailcontframe', p2: 'mailpreviewframe', orientation: 'h', relative: true, start: 341});
split.add_onload('mailviewsplit.init()');
</script>
<div id="mailpreviewframe"></div>
<?php } ?>
</div>
</div>
</div>
<?php if(Registry::get('auditor_user') == 1) { ?>
<script type="text/javascript">
$(document).ready(function(){
split.init();
});
</script>
<?php } ?>
</div>
</body>
</html>

View File

@ -25,7 +25,7 @@
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/view/theme/default/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/view/theme/default/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="/view/theme/default/assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="/view/theme/default/assets/ico/favicon.png">
<link rel="shortcut icon" href="/view/theme/default/assets/ico/favicon.png" />
<script type="text/javascript" src="/view/javascript/jquery.min.js"></script>
<script type="text/javascript" src="/view/javascript/jquery-ui-custom.min.js"></script>

View File

@ -66,7 +66,7 @@
</ul>
<ul class="nav pull-right">
<li><a href="<?php print $settings['branding_url']; ?>" target="_blank" <?php if($settings['colour']) { ?>style="background: <?php print $settings['colour']; ?>;"<?php } ?>><i class="icon-phone"></i>&nbsp;<?php print $settings['branding_text']; ?></a></li>
<?php if(SHOW_COMPANY_LINK == 1) { ?><li><a href="<?php print $settings['branding_url']; ?>" target="_blank"><i class="icon-phone"></i>&nbsp;<?php print $settings['branding_text']; ?></a></li><?php } ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i>&nbsp;<?php if(isset($_SESSION['realname'])) { print $_SESSION['realname']; ?>&nbsp;<?php } ?><b class="caret"></b></a>