Skip to content

Commit

Permalink
Remove unused assets/images directory and move favicon.ico to admin a…
Browse files Browse the repository at this point in the history
…ssets directory
  • Loading branch information
sampoyigi committed Dec 4, 2018
1 parent 75960bb commit d47c3fe
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 28 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/admin/views/_meta/assets.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"doctype": "html5",
"favicon": "/assets/images/favicon.ico",
"favicon": "/app/admin/assets/images/favicon.ico",
"meta": [
{
"name": "Content-type",
Expand Down
7 changes: 1 addition & 6 deletions app/admin/views/_partials/top_nav.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<?php
$isLogged = AdminAuth::isLogged();
$systemLogo = image_url('tastyigniter-logo.png');
$systemName = lang('system::lang.system_name');
?>
<?php if ($isLogged) { ?>
<?php if (AdminAuth::isLogged()) { ?>
<nav class="navbar navbar-top navbar-expand navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-brand">
Expand Down
16 changes: 6 additions & 10 deletions app/admin/views/auth/login.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
<div class="container-fluid">
<div class="login-container">
<div class="card">
<div class="card-header">
<?php $logo = setting('site_logo', 'tastyigniter-logo.png'); ?>
<img alt="<?= setting('site_name'); ?>"
src="<?= image_url($logo) ?>"
height="64px" width="250px">
</div>
<div class="card-body">
<?= form_open(current_url(),
[
'id' => 'edit-form',
'role' => 'form',
'id' => 'edit-form',
'role' => 'form',
'method' => 'POST',
]
); ?>

<div class="form-group">
<label for="input-user" class="control-label"><?= lang('admin::lang.login.label_username'); ?></label>
<label for="input-user"
class="control-label"><?= lang('admin::lang.login.label_username'); ?></label>
<input name="user" type="text" id="input-user" class="form-control"/>
<?= form_error('user', '<span class="text-danger">', '</span>'); ?>
</div>
Expand All @@ -33,7 +28,8 @@ class="control-label"><?= lang('admin::lang.login.label_password'); ?></label>
class="btn btn-primary btn-lg pull-right"
><i class="fa fa-sign-in fa-fw"></i>&nbsp;&nbsp;&nbsp;<?= lang('admin::lang.login.button_login'); ?>
</button>
<p><a href="<?= admin_url('login/reset'); ?>"><?= lang('admin::lang.login.text_forgot_password'); ?></a>
<p>
<a href="<?= admin_url('login/reset'); ?>"><?= lang('admin::lang.login.text_forgot_password'); ?></a>
</p>
</div>

Expand Down
10 changes: 2 additions & 8 deletions app/admin/views/auth/reset.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<div class="container-fluid">
<div class="login-container">
<div class="card">
<div class="card-header">
<?php $logo = setting('site_logo', 'tastyigniter-logo.png'); ?>
<img alt="<?= setting('site_name'); ?>"
src="<?= image_url($logo) ?>"
height="64px" width="250px">
</div>
<div class="card-body">
<h5><?= lang('admin::lang.login.text_reset_password_title'); ?></h5>
<?= form_open(current_url(),
[
'id' => 'edit-form',
'role' => 'form',
'id' => 'edit-form',
'role' => 'form',
'method' => 'POST',
]
); ?>
Expand Down
2 changes: 1 addition & 1 deletion app/system/database/records/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{
"sort": "config",
"item": "site_logo",
"value": "tastyigniter-logo.png"
"value": "no_photo.png"
},
{
"sort": "config",
Expand Down
Binary file removed assets/images/select2-spinner.gif
Binary file not shown.
Binary file removed assets/images/select2.png
Binary file not shown.
Binary file removed assets/images/select2x2.png
Binary file not shown.
Binary file removed assets/images/spritemap.png
Binary file not shown.
Binary file removed assets/images/spritemap@2x.png
Binary file not shown.
Binary file removed assets/images/tastyigniter-logo.png
Binary file not shown.
4 changes: 2 additions & 2 deletions themes/demo/_partials/head.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?= get_metas(); ?>
<link href="<?= image_url('favicon.ico'); ?>" rel="shortcut icon" type="image/ico">
<link href="<?= asset('app/admin/assets/images/favicon.ico'); ?>" rel="shortcut icon" type="image/ico">
<title><?= sprintf(lang('main::lang.site_title'), lang(get_title()), setting('site_name')); ?></title>
<link href="<?= asset('app/system/assets/ui/flame.css') ?>" rel="stylesheet" type="text/css" id="flame-css">
<?= get_style_tags(['widget', 'component', 'theme']); ?>
<?= get_style_tags(); ?>
<link href="<?= theme_url('demo/assets/css/demo.css') ?>" rel="stylesheet" type="text/css" id="demo-css">

0 comments on commit d47c3fe

Please sign in to comment.