forked from damoang/theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·88 lines (81 loc) · 2.3 KB
/
Copy pathindex.php
File metadata and controls
executable file
·88 lines (81 loc) · 2.3 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
if (!defined('_INDEX_')) define('_INDEX_', true);
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (G5_IS_MOBILE) {
include_once(G5_THEME_MOBILE_PATH.'/index.php');
return;
}
if(G5_COMMUNITY_USE === false) {
include_once(G5_THEME_SHOP_PATH.'/index.php');
return;
}
//banner array 2024.04.24 by munbbok
function getDisplayAdBanner($type = 1){
$arrBanner = array(
array(
'type'=>1,
'img'=> LAYOUT_URL.'/banners/images/dmb-1.jpg',
'link'=>'https://smartstore.naver.com/damoang-net',
'target'=>'_blank',
'display'=>true
),
array(
'type'=>1,
'img'=> LAYOUT_URL.'/banners/images/dmb-2.jpg',
'link'=>'https://smartstore.naver.com/damoang-net',
'target'=>'_blank',
'display'=>true
),
array(
'type'=>1,
'img'=> LAYOUT_URL.'/banners/images/dmb-3.jpg',
'link'=>'https://smartstore.naver.com/damoang-net',
'target'=>'_blank',
'display'=>true
),
array(
'type'=>1,
'img'=> LAYOUT_URL.'/banners/images/dmb-4.jpg',
'link'=>'https://smartstore.naver.com/damoang-net',
'target'=>'_blank',
'display'=>true
),
array(
'type'=>1,
'img'=> LAYOUT_URL.'/banners/images/dmb-5.jpg',
'link'=>'https://smartstore.naver.com/damoang-net',
'target'=>'_blank',
'display'=>true
),
array(
'type'=>1,
'img'=> LAYOUT_URL.'/banners/images/dmb-6.jpg',
'link'=>'https://smartstore.naver.com/damoang-net',
'target'=>'_blank',
'display'=>true
),
array(
'type'=>1,
'img'=> LAYOUT_URL.'/banners/images/dmb-7.jpg',
'link'=>'https://smartstore.naver.com/damoang-net',
'target'=>'_blank',
'display'=>true
),
array(
'type'=>2,
'img'=> LAYOUT_URL.'/banners/images/dmb-s1.jpg',
'link'=>'https://smartstore.naver.com/damoang-net',
'target'=>'_blank',
'display'=>true
),
);
$_result = Array();
foreach($arrBanner as $k => $v){
if($type === $v['type']) $_result[] = $v;
}
shuffle($_result);
return $_result[0];
}
include_once(G5_THEME_PATH.'/head.php');
include_once(LAYOUT_PATH.'/index.php');
include_once(G5_THEME_PATH.'/tail.php');