Ejemplo n.º 1
0
<?php

$whitelabel_file = FCPATH . '/whitelabel.php';
if (file_exists($whitelabel_file)) {
    require $whitelabel_file;
}
$brand_title = isset($whitelabel['title']) ? $whitelabel['title'] : $this->config->item('nts_app_title');
$brand_url = isset($whitelabel['url']) ? $whitelabel['url'] : 'http://www.' . $this->config->item('nts_app') . '.com';
$promo = $this->config->item('nts_app_promo');
$this->load->model('Location_model');
$lm = new Location_Model();
$lm->condition_not_yet();
$not_yet_count = $lm->count_all();
$lm->condition_failed();
$failed_count = $lm->count_all();
$warning_view = '';
if ($not_yet_count > 0) {
    $warning_view .= '<span class="badge badge-warning">' . $not_yet_count . '</span>';
}
if ($failed_count > 0) {
    $warning_view .= '<span class="badge badge-important">' . $failed_count . '</span>';
}
if ($this->auth->logged_in() && $this->auth->is_admin()) {
    ?>
	<?php 
    if (!isset($GLOBALS['NTS_IS_PLUGIN'])) {
        ?>
		<p>
			<h3>
			<a class="brand" target="_blank" href="<?php 
        echo $brand_url;