Skip to content

Commit 49097ed

Browse files
committed
update :octocat:
1 parent 888c07a commit 49097ed

File tree

19 files changed

+45
-22
lines changed

19 files changed

+45
-22
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
application/config/config_custom_test.php
2-
/.htaccess
3-
/robots.txt
4-
/favicon.png
2+
.htaccess
3+
robots.txt
4+
favicon.png

.htaccess

Lines changed: 0 additions & 6 deletions
This file was deleted.

application/config/config_custom.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323

2424
$config['website_name'] = 'Your site name';
2525
$config['about'] = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';
26-
$config['title'] = 'Write your title here';
26+
27+
// Replace the value if you using typed.js
28+
$config['about_typed'] = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';
29+
30+
$config['title_default'] = 'Write your title here';
2731
$config['description'] = 'Write your description here';
2832
$config['keywords'] = 'keywords1, keywords2, keywords3, etc...';
2933
$config['author'] = 'What your name?';

application/config/routes.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,8 @@
5050
| my-controller/my-method -> my_controller/my_method
5151
*/
5252
$route['default_controller'] = 'public/homepage';
53+
$route['ajax-repos'] = 'ajax-repos/homepage';
54+
$route['menu-version-1'] = 'menu-version-1/homepage';
55+
5356
$route['404_override'] = '';
5457
$route['translate_uri_dashes'] = FALSE;

application/modules/ajax-repos/controllers/Homepage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function __construct()
1919
function index()
2020
{
2121
$data['repo'] = 'https://github.com/'.$this->CI->config->item('github_username').'/GitHubAPI-CodeIgniter-SemanticUI/tree/master/application/modules/ajax-repos';
22+
$data['title'] = 'Ajax List Repository on GitHub #CodeIgniter #SemanticUI - '.$this->CI->config->item('github_username').'';
2223
$this->load->view('homepage', $data);
2324
}
2425

application/modules/ajax-repos/views/must/head.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
7-
<title><?php echo $this->CI->config->item('title'); ?></title>
7+
<title>
8+
<?php if (!empty($title)): ?>
9+
<?php echo $title; ?>
10+
<?php else: ?>
11+
<?php echo $this->CI->config->item('title_default'); ?>
12+
<?php endif ?>
13+
</title>
814
<meta name="author" content="<?php echo $this->CI->config->item('author'); ?>">
915
<meta name="robots" content="no-cache">
1016
<meta name="description" content="<?php echo $this->CI->config->item('description'); ?>">

application/modules/ajax-repos/views/must/menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="ui inverted menu">
2-
<a class="header item" href="<?php echo base_url(); ?>"><?php echo $this->CI->config->item('title'); ?></a>
2+
<a class="header item" href="<?php echo base_url(); ?>"><?php echo $this->CI->config->item('title_default'); ?></a>
33
<div class="right menu">
44
<div class="ui mobile dropdown link item">
55
Menu

application/modules/menu-version-1/controllers/Homepage.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,31 @@ function index()
2020
{
2121
$data['repo'] = 'https://github.com/'.$this->CI->config->item('github_username').'/GitHubAPI-CodeIgniter-SemanticUI/tree/master/application/modules/menu-version-1';
2222
$data['homepage'] = 'active';
23+
$data['title'] = 'Menu Active / DeActive CodeIgniter - '.$this->CI->config->item('github_username').'';
2324
$this->load->view('homepage', $data);
2425
}
2526

2627
function menu1()
2728
{
2829
$data['repo'] = 'https://github.com/'.$this->CI->config->item('github_username').'/GitHubAPI-CodeIgniter-SemanticUI/tree/master/application/modules/menu-version-1';
2930
$data['menu1'] = 'active';
31+
$data['title'] = 'Menu Active / DeActive CodeIgniter - '.$this->CI->config->item('github_username').'';
3032
$this->load->view('menu1', $data);
3133
}
3234

3335
function menu2()
3436
{
3537
$data['repo'] = 'https://github.com/'.$this->CI->config->item('github_username').'/GitHubAPI-CodeIgniter-SemanticUI/tree/master/application/modules/menu-version-1';
3638
$data['menu2'] = 'active';
39+
$data['title'] = 'Menu Active / DeActive CodeIgniter - '.$this->CI->config->item('github_username').'';
3740
$this->load->view('menu2', $data);
3841
}
3942

4043
function menu3()
4144
{
4245
$data['repo'] = 'https://github.com/'.$this->CI->config->item('github_username').'/GitHubAPI-CodeIgniter-SemanticUI/tree/master/application/modules/menu-version-1';
4346
$data['menu3'] = 'active';
47+
$data['title'] = 'Menu Active / DeActive CodeIgniter - '.$this->CI->config->item('github_username').'';
4448
$this->load->view('menu3', $data);
4549
}
4650

application/modules/menu-version-1/views/homepage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="ui page grid">
66
<div class="column">
77
<div class="ui inverted menu">
8-
<div class="header item"><?php echo $this->CI->config->item('title'); ?></div>
8+
<a class="header item" href="<?php echo base_url(); ?>"><?php echo $this->CI->config->item('title_default'); ?></a>
99
<?php $this->load->view('must/menu'); ?>
1010
</div>
1111
<i class="red icon code"></i>

application/modules/menu-version-1/views/menu1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="ui page grid">
66
<div class="column">
77
<div class="ui inverted menu">
8-
<div class="header item"><?php echo $this->CI->config->item('title'); ?></div>
8+
<a class="header item" href="<?php echo base_url(); ?>"><?php echo $this->CI->config->item('title_default'); ?></a>
99
<?php $this->load->view('must/menu'); ?>
1010
</div>
1111
<i class="red icon code"></i>

0 commit comments

Comments
 (0)