1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<?php if ($page_name == 'course_page'):
$title = $this->crud_model->get_course_by_id($course_id)->row_array()?>
<title><?php echo $title['title'].' | '.get_settings('system_name'); ?></title>
<?php else: ?>
<title><?php echo ucwords($page_title).' | '.get_settings('system_name'); ?></title>
<?php endif; ?>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="<?php echo get_settings('author') ?>" />
<?php
$seo_pages = array('course_page');
if (in_array($page_name, $seo_pages)):
$course_details = $this->crud_model->get_course_by_id($course_id)->row_array();?>
<meta name="keywords" content="<?php echo $course_details['meta_keywords']; ?>"/>
<meta name="description" content="<?php echo $course_details['meta_description']; ?>" />
<?php else: ?>
<meta name="keywords" content="<?php echo get_settings('website_keywords'); ?>"/>
<meta name="description" content="<?php echo get_settings('website_description'); ?>" />
<?php endif; ?>
<link name="favicon" type="image/x-icon" href="<?php echo base_url().'uploads/system/favicon.png' ?>" rel="shortcut icon" />
<?php include 'includes_top.php';?>
</head>
<body class="gray-bg">
<?php
if ($this->session->userdata('user_login')) {
include 'logged_in_header.php';
}else {
include 'logged_out_header.php';
}
include $page_name.'.php';
include 'footer.php';
include 'includes_bottom.php';
include 'modal.php';
include 'common_scripts.php';
?>
</body>
</html>