1 |
|
<?php
|
|
1 |
|
<?php
|
2 |
|
|
|
2 |
|
|
3 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
3 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
4 |
|
// | Class
Definitio
n
|
|
|
4 |
|
// | Class
Definitio
n
|
|
5 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
5 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
6 |
|
|
|
6 |
|
|
7 |
|
class KHXC
_SkinFunc
extends KH
XC_Display
{
|
|
7 |
|
class KHXC
_SkinFunc
extends KH
XC_Display
{
|
8 |
|
|
|
8 |
|
|
9 |
|
// +--
|
|
9 |
|
// +--
|
10 |
|
// | This
file holds
functions
used by t
he main sk
in file.
It's
|
|
10 |
|
// | This
file holds
functions
used by t
he main sk
in file.
It's
|
11 |
|
// | purpo
se is to e
nsure the
main skin
file is as
free of P
HP
|
|
11 |
|
// | purpo
se is to e
nsure the
main skin
file is as
free of P
HP
|
12 |
|
// | code
as possibl
e to make
editing ea
sier on en
d users.
|
|
12 |
|
// | code
as possibl
e to make
editing ea
sier on en
d users.
|
13 |
|
// +--
|
|
13 |
|
// +--
|
14 |
|
|
|
14 |
|
|
15 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
15 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
16 |
|
// | Class
Variables
|
|
|
16 |
|
// | Class
Variables
|
|
17 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
17 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
18 |
|
|
|
18 |
|
|
19 |
|
var $class
= 'KHXC
_SkinFunc'
;
|
|
19 |
|
var $class
= 'KHXC
_SkinFunc'
;
|
20 |
|
var $versi
on = '1.0.
0';
|
|
20 |
|
var $versi
on = '1.0.
0';
|
21 |
|
var $cerro
r;
|
|
21 |
|
var $cerro
r;
|
22 |
|
|
|
22 |
|
|
23 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
23 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
24 |
|
// | Const
ructor Fun
ction
|
|
|
24 |
|
// | Const
ructor Fun
ction
|
|
25 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
25 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
26 |
|
|
|
26 |
|
|
27 |
|
function K
HXC_SkinFu
nc () {
|
|
27 |
|
function K
HXC_SkinFu
nc () {
|
28 |
|
|
|
28 |
|
|
29 |
|
// +--
|
|
29 |
|
// +--
|
30 |
|
// | This
is the con
structor f
unction.
This funct
ion starts
up the
|
|
30 |
|
// | This
is the con
structor f
unction.
This funct
ion starts
up the
|
31 |
|
// | class
. Any pre
-load vari
able assig
nments go
here.
|
|
31 |
|
// | class
. Any pre
-load vari
able assig
nments go
here.
|
32 |
|
// +--
|
|
32 |
|
// +--
|
33 |
|
|
|
33 |
|
|
34 |
|
// +--
|
|
34 |
|
// +--
|
35 |
|
// | Retur
n $this.
|
|
35 |
|
// | Retur
n $this.
|
36 |
|
// +--
|
|
36 |
|
// +--
|
37 |
|
|
|
37 |
|
|
38 |
|
return;
|
|
38 |
|
return;
|
39 |
|
|
|
39 |
|
|
40 |
|
} // End o
f function
.
|
|
40 |
|
} // End o
f function
.
|
41 |
|
|
|
41 |
|
|
42 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
42 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
43 |
|
// | Funct
ion: start
up
|
|
|
43 |
|
// | Funct
ion: start
up
|
|
44 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
44 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
45 |
|
|
|
45 |
|
|
46 |
|
function s
tartup ()
{
|
|
46 |
|
function s
tartup ()
{
|
47 |
|
|
|
47 |
|
|
48 |
|
// +--
|
|
48 |
|
// +--
|
49 |
|
// | This
function l
oads varia
bles for u
se within
the skin.
|
|
49 |
|
// | This
function l
oads varia
bles for u
se within
the skin.
|
50 |
|
// +--
|
|
50 |
|
// +--
|
51 |
|
|
|
51 |
|
|
52 |
|
$x = array
();
|
|
52 |
|
$x = array
();
|
53 |
|
|
|
53 |
|
|
54 |
|
// +--
|
|
54 |
|
// +--
|
55 |
|
// | Gener
al variabl
es.
|
|
55 |
|
// | Gener
al variabl
es.
|
56 |
|
// +--
|
|
56 |
|
// +--
|
57 |
|
|
|
57 |
|
|
58 |
|
$x['eol']
= $this->
globals('k
hxc.eol');
|
|
58 |
|
$x['eol']
= $this->
globals('k
hxc.eol');
|
59 |
|
$x['app_id
']
= $this->
globals('k
hxc.app');
|
|
59 |
|
$x['app_id
']
= $this->
globals('k
hxc.app');
|
60 |
|
$x['ns_id'
]
= $this->
globals('k
hxc.namesp
ace');
|
|
60 |
|
$x['ns_id'
]
= $this->
globals('k
hxc.namesp
ace');
|
61 |
|
$x['ns_nam
e']
= $this->
globals('k
hxc.namesp
ace.name')
;
|
|
61 |
|
$x['ns_nam
e']
= $this->
globals('k
hxc.namesp
ace.name')
;
|
62 |
|
$x['disp_b
aseurl']
= $this->
globals('k
hxc_displa
y.base_url
');
|
|
62 |
|
$x['disp_b
aseurl']
= $this->
globals('k
hxc_displa
y.base_url
');
|
63 |
|
$x['disp_y
ear']
= $this->
xhtml_enco
de($this->
globals('k
hxc_dateti
me.year'))
;
|
|
63 |
|
$x['disp_y
ear']
= $this->
xhtml_enco
de($this->
globals('k
hxc_dateti
me.year'))
;
|
64 |
|
$x['disp_d
ate']
= $this->
xhtml_enco
de($this->
globals('k
hxc_dateti
me.full'))
;
|
|
64 |
|
$x['disp_d
ate']
= $this->
xhtml_enco
de($this->
globals('k
hxc_dateti
me.full'))
;
|
65 |
|
|
|
65 |
|
|
66 |
|
$x['site_n
ame']
= $this->
globals('k
hxc_settin
gs.' . $x[
'app_id']
. '.site_n
ame');
|
|
66 |
|
$x['site_n
ame']
= $this->
globals('k
hxc_settin
gs.' . $x[
'app_id']
. '.site_n
ame');
|
67 |
|
|
|
67 |
|
|
68 |
|
// +--
|
|
68 |
|
// +--
|
69 |
|
// | HREFs
: These ar
e account
independen
t:
|
|
69 |
|
// | HREFs
: These ar
e account
independen
t:
|
70 |
|
// +--
|
|
70 |
|
// +--
|
71 |
|
|
|
71 |
|
|
72 |
|
$x['link_c
ontact']
= $this->l
ink_namesp
ace($x['ap
p_id'],'co
ntact',arr
ay());
|
|
72 |
|
$x['link_c
ontact']
= $this->l
ink_namesp
ace($x['ap
p_id'],'co
ntact',arr
ay());
|
73 |
|
$x['link_h
ome']
= $this->l
ink_namesp
ace($x['ap
p_id'],'di
splay',arr
ay('ref' =
> 'splash'
));
|
|
73 |
|
$x['link_h
ome']
= $this->l
ink_namesp
ace($x['ap
p_id'],'di
splay',arr
ay('ref' =
> 'splash'
));
|
74 |
|
$x['link_c
art']
= $this->l
ink_namesp
ace($x['ap
p_id'],'vi
ewcart',ar
ray());
|
|
74 |
|
$x['link_c
art']
= $this->l
ink_namesp
ace($x['ap
p_id'],'vi
ewcart',ar
ray());
|
75 |
|
$x['link_c
heckout']
= $this->l
ink_namesp
ace($x['ap
p_id'],'ch
eckout',ar
ray());
|
|
75 |
|
$x['link_c
heckout']
= $this->l
ink_namesp
ace($x['ap
p_id'],'ch
eckout',ar
ray());
|
76 |
|
|
|
76 |
|
|
77 |
|
// +--
|
|
77 |
|
// +--
|
78 |
|
// | HREFs
: This one
is accoun
t dependen
t:
|
|
78 |
|
// | HREFs
: This one
is accoun
t dependen
t:
|
79 |
|
// +--
|
|
79 |
|
// +--
|
80 |
|
|
|
80 |
|
|
81 |
|
if ($this-
>globals('
khxc_user.
id')) {
|
|
81 |
|
if ($this-
>globals('
khxc_user.
id')) {
|
82 |
|
|
|
82 |
|
|
83 |
|
$x['l
ink_accoun
t'] = $thi
s->link_na
mespace($x
['app_id']
,'accounto
ver',array
());
|
|
83 |
|
$x['l
ink_accoun
t'] = $thi
s->link_na
mespace($x
['app_id']
,'accounto
ver',array
());
|
84 |
|
|
|
84 |
|
|
85 |
|
} else {
|
|
85 |
|
} else {
|
86 |
|
|
|
86 |
|
|
87 |
|
$x['l
ink_accoun
t'] = $thi
s->link_na
mespace($x
['app_id']
,'login',a
rray());
|
|
87 |
|
$x['l
ink_accoun
t'] = $thi
s->link_na
mespace($x
['app_id']
,'login',a
rray());
|
88 |
|
|
|
88 |
|
|
89 |
|
} // End o
f if state
ment.
|
|
89 |
|
} // End o
f if state
ment.
|
90 |
|
|
|
90 |
|
|
91 |
|
// +--
|
|
91 |
|
// +--
|
92 |
|
// | Meta
tag and ti
tle variab
les.
|
|
92 |
|
// | Meta
tag and ti
tle variab
les.
|
93 |
|
// +--
|
|
93 |
|
// +--
|
94 |
|
|
|
94 |
|
|
95 |
|
$x['metati
tle'] =
$this->gl
obals('khx
c_display.
metatitle'
);
|
|
95 |
|
$x['metati
tle'] =
$this->gl
obals('khx
c_display.
metatitle'
);
|
96 |
|
$x['metake
ywords'] =
$this->gl
obals('khx
c_display.
metakeywor
ds');
|
|
96 |
|
$x['metake
ywords'] =
$this->gl
obals('khx
c_display.
metakeywor
ds');
|
97 |
|
$x['metade
sc'] =
$this->gl
obals('khx
c_display.
metadesc')
;
|
|
97 |
|
$x['metade
sc'] =
$this->gl
obals('khx
c_display.
metadesc')
;
|
98 |
|
$x['disp_t
itle'] =
$this->xh
tml_encode
($x['ns_na
me']);
|
|
98 |
|
$x['disp_t
itle'] =
$this->xh
tml_encode
($x['ns_na
me']);
|
99 |
|
$x['disp_t
itle'] =
preg_repl
ace('/ \-
Process$/'
,'',$x['di
sp_title']
);
|
|
99 |
|
$x['disp_t
itle'] =
preg_repl
ace('/ \-
Process$/'
,'',$x['di
sp_title']
);
|
100 |
|
|
|
100 |
|
|
101 |
|
// +--
|
|
101 |
|
// +--
|
102 |
|
// | Strip
XHTML tag
s from the
meta info
rmation.
|
|
102 |
|
// | Strip
XHTML tag
s from the
meta info
rmation.
|
103 |
|
// +--
|
|
103 |
|
// +--
|
104 |
|
|
|
104 |
|
|
105 |
|
$x['metati
tle'] =
$this->xh
tml_encode
(strip_tag
s($x['meta
title']));
|
|
105 |
|
$x['metati
tle'] =
$this->xh
tml_encode
(strip_tag
s($x['meta
title']));
|
106 |
|
$x['metake
ywords'] =
$this->xh
tml_encode
(strip_tag
s($x['meta
keywords']
));
|
|
106 |
|
$x['metake
ywords'] =
$this->xh
tml_encode
(strip_tag
s($x['meta
keywords']
));
|
107 |
|
$x['metade
sc'] =
$this->xh
tml_encode
(strip_tag
s($x['meta
desc']));
|
|
107 |
|
$x['metade
sc'] =
$this->xh
tml_encode
(strip_tag
s($x['meta
desc']));
|
108 |
|
|
|
108 |
|
|
109 |
|
if ($this-
>globals('
khxc.ref_d
isp')) {
|
|
109 |
|
if ($this-
>globals('
khxc.ref_d
isp')) {
|
110 |
|
|
|
110 |
|
|
111 |
|
$x['d
isp_title'
] = $this-
>xhtml_enc
ode($this-
>globals('
khxc.ref_d
isp'));
|
|
111 |
|
$x['d
isp_title'
] = $this-
>xhtml_enc
ode($this-
>globals('
khxc.ref_d
isp'));
|
112 |
|
|
|
112 |
|
|
113 |
|
} // End o
f if state
ment.
|
|
113 |
|
} // End o
f if state
ment.
|
114 |
|
|
|
114 |
|
|
115 |
|
// +--
|
|
115 |
|
// +--
|
116 |
|
// | Retur
n our vari
able array
.
|
|
116 |
|
// | Retur
n our vari
able array
.
|
117 |
|
// +--
|
|
117 |
|
// +--
|
118 |
|
|
|
118 |
|
|
119 |
|
return $x;
|
|
119 |
|
return $x;
|
120 |
|
|
|
120 |
|
|
121 |
|
} // End o
f function
.
|
|
121 |
|
} // End o
f function
.
|
122 |
|
|
|
122 |
|
|
123 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
123 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
124 |
|
// | Funct
ion: names
pace
|
|
|
124 |
|
// | Funct
ion: names
pace
|
|
125 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
125 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
126 |
|
|
|
126 |
|
|
127 |
|
function
namespace
($app = ''
, $namespa
ce = '', $
params = '
') {
|
|
127 |
|
function
skin
namespace
($app = ''
, $namespa
ce = '', $
params = '
') {
|
128 |
|
|
|
128 |
|
|
129 |
|
// +--
|
|
129 |
|
// +--
|
130 |
|
// | This
function l
oads a req
uested nam
espace.
|
|
130 |
|
// | This
function l
oads a req
uested nam
espace.
|
131 |
|
// +--
|
|
131 |
|
// +--
|
132 |
|
|
|
132 |
|
|
133 |
|
// +--
|
|
133 |
|
// +--
|
134 |
|
// | Runs
a namespac
e include
via the KH
XC_Display
include_n
amespace()
|
|
134 |
|
// | Runs
a namespac
e include
via the KH
XC_Display
include_n
amespace()
|
135 |
|
// | metho
d.
|
|
135 |
|
// | metho
d.
|
136 |
|
// +--
|
|
136 |
|
// +--
|
137 |
|
|
|
137 |
|
|
138 |
|
$this->inc
lude_names
pace($app,
$namespace
,$params,0
);
|
|
138 |
|
$this->inc
lude_names
pace($app,
$namespace
,$params,0
);
|
139 |
|
|
|
139 |
|
|
140 |
|
// +--
|
|
140 |
|
// +--
|
141 |
|
// | Retur
n true.
|
|
141 |
|
// | Retur
n true.
|
142 |
|
// +--
|
|
142 |
|
// +--
|
143 |
|
|
|
143 |
|
|
144 |
|
return 1;
|
|
144 |
|
return 1;
|
145 |
|
|
|
145 |
|
|
146 |
|
} // End o
f function
.
|
|
146 |
|
} // End o
f function
.
|
147 |
|
|
|
147 |
|
|
148 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
148 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
149 |
|
// | Funct
ion: debug
|
|
|
149 |
|
// | Funct
ion: debug
|
|
150 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
150 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
151 |
|
|
|
151 |
|
|
152 |
|
function d
ebug () {
|
|
152 |
|
function d
ebug () {
|
153 |
|
|
|
153 |
|
|
154 |
|
// +--
|
|
154 |
|
// +--
|
155 |
|
// | This
function p
rints clos
ure and de
bug info.
It handle
including
|
|
155 |
|
// | This
function p
rints clos
ure and de
bug info.
It handle
including
|
156 |
|
// | the d
ebug and c
losure div
s.
|
|
156 |
|
// | the d
ebug and c
losure div
s.
|
157 |
|
// +--
|
|
157 |
|
// +--
|
158 |
|
|
|
158 |
|
|
159 |
|
if ($this-
>debug ==
2) {$this-
>include_f
ile('khxc'
,'debug.ph
p');}
|
|
159 |
|
if ($this-
>debug ==
2) {$this-
>include_f
ile('khxc'
,'debug.ph
p');}
|
160 |
|
|
|
160 |
|
|
161 |
|
$this->inc
lude_file(
'khxc','cl
osure.php'
);
|
|
161 |
|
$this->inc
lude_file(
'khxc','cl
osure.php'
);
|
162 |
|
|
|
162 |
|
|
163 |
|
// +--
|
|
163 |
|
// +--
|
164 |
|
// | Retur
n true.
|
|
164 |
|
// | Retur
n true.
|
165 |
|
// +--
|
|
165 |
|
// +--
|
166 |
|
|
|
166 |
|
|
167 |
|
return 1;
|
|
167 |
|
return 1;
|
168 |
|
|
|
168 |
|
|
169 |
|
} // End o
f function
.
|
|
169 |
|
} // End o
f function
.
|
170 |
|
|
|
170 |
|
|
171 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
171 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
172 |
|
// | Funct
ion: bodyt
ag
|
|
|
172 |
|
// | Funct
ion: bodyt
ag
|
|
173 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
173 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
174 |
|
|
|
174 |
|
|
175 |
|
function b
odytag ()
{
|
|
175 |
|
function b
odytag ()
{
|
176 |
|
|
|
176 |
|
|
177 |
|
// +--
|
|
177 |
|
// +--
|
178 |
|
// | This
function p
rints the
body tag.
|
|
178 |
|
// | This
function p
rints the
body tag.
|
179 |
|
// +--
|
|
179 |
|
// +--
|
180 |
|
|
|
180 |
|
|
181 |
|
$eol
= $t
his->globa
ls('khxc.e
ol');
|
|
181 |
|
$eol
= $t
his->globa
ls('khxc.e
ol');
|
182 |
|
$load_ligh
tbox = $t
his->globa
ls('khxc.l
oad_lightb
ox');
|
|
182 |
|
$load_ligh
tbox = $t
his->globa
ls('khxc.l
oad_lightb
ox');
|
|
|
|
|
183 |
|
// +--
|
|
|
|
|
184 |
|
// | Retri
eve Google
Analytics
settings.
|
|
|
|
|
185 |
|
// +--
|
|
|
|
|
186 |
|
$app
= $this
->globals(
'khxc.app'
);
|
|
|
|
|
187 |
|
|
|
|
|
|
188 |
|
$googleana
lyticsuse
= $this->g
lobals('kh
xc_setting
s.' . $app
. '.googl
eanalytics
use');
|
|
|
|
|
189 |
|
$googleana
lyticsid
= $this->g
lobals('kh
xc_setting
s.' . $app
. '.googl
eanalytics
id');
|
|
|
|
|
190 |
|
$order = $
this->glob
als('ecom.
thirdparty
aff_order'
);
|
183 |
|
|
|
191 |
|
|
184 |
|
if (!(empt
y($load_li
ghtbox)))
{
|
|
192 |
|
if (!(empt
y($load_li
ghtbox)))
{
|
185 |
|
|
|
193 |
|
|
186 |
|
print '<bo
dy onload=
"initLight
box();">'
. $eol;
|
|
194 |
|
if ((
$googleana
lyticsuse)
&& (!(emp
ty($google
analyticsi
d))) && (!
empty($ord
er))) {
|
|
|
|
|
195 |
|
p
rint '<bod
y onLoad="
javascript
:__utmSetT
rans()" on
load="init
Lightbox()
;">' . $eo
l;
|
|
|
|
|
196 |
|
} els
e {
|
|
|
|
|
197 |
|
print '<bo
dy onload=
"initLight
box();">'
. $eol;
|
|
|
|
|
198 |
|
} //
End of if
statement.
|
|
|
|
|
199 |
|
|
187 |
|
|
|
200 |
|
|
188 |
|
} else {
|
|
201 |
|
} else {
|
|
|
|
|
202 |
|
if ((
$googleana
lyticsuse)
&& (!(emp
ty($google
analyticsi
d))) && (!
empty($ord
er))) {
|
|
|
|
|
203 |
|
p
rint '<bod
y onLoad="
javascript
:__utmSetT
rans()">'
. $eol;
|
|
|
|
|
204 |
|
} els
e {
|
|
|
|
|
205 |
|
print '<bo
dy>' . $eo
l;
|
|
|
|
|
206 |
|
} //
End of if
statement.
|
189 |
|
|
|
207 |
|
|
190 |
|
print
'<body>'
. $eol;
|
|
|
|
|
191 |
|
|
|
208 |
|
|
192 |
|
} // End o
f if state
ment.
|
|
209 |
|
} // End o
f if state
ment.
|
193 |
|
|
|
210 |
|
|
194 |
|
// +--
|
|
211 |
|
// +--
|
195 |
|
// | Retur
n true.
|
|
212 |
|
// | Retur
n true.
|
196 |
|
// +--
|
|
213 |
|
// +--
|
197 |
|
|
|
214 |
|
|
198 |
|
return 1;
|
|
215 |
|
return 1;
|
199 |
|
|
|
216 |
|
|
200 |
|
} // End o
f function
.
|
|
217 |
|
} // End o
f function
.
|
201 |
|
|
|
218 |
|
|
202 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
219 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
203 |
|
// | Funct
ion: title
tag
|
|
|
220 |
|
// | Funct
ion: title
tag
|
|
204 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
221 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
205 |
|
|
|
222 |
|
|
206 |
|
function t
itletag ($
title = ''
) {
|
|
223 |
|
function t
itletag ($
title = ''
) {
|
207 |
|
|
|
224 |
|
|
208 |
|
// +--
|
|
225 |
|
// +--
|
209 |
|
// | This
function p
rints the
title tag.
|
|
226 |
|
// | This
function p
rints the
title tag.
|
210 |
|
// +--
|
|
227 |
|
// +--
|
211 |
|
|
|
228 |
|
|
212 |
|
$eol
= $t
his->globa
ls('khxc.e
ol');
|
|
229 |
|
$eol
= $t
his->globa
ls('khxc.e
ol');
|
213 |
|
$suppress_
title = $t
his->globa
ls('khxc_d
isplay.sup
press_titl
e');
|
|
230 |
|
$suppress_
title = $t
his->globa
ls('khxc_d
isplay.sup
press_titl
e');
|
214 |
|
$ns
= $t
his->globa
ls('khxc.n
amespace')
;
|
|
231 |
|
$ns
= $t
his->globa
ls('khxc.n
amespace')
;
|
215 |
|
$ref
= $t
his->globa
ls('khxc.r
ef');
|
|
232 |
|
$ref
= $t
his->globa
ls('khxc.r
ef');
|
216 |
|
|
|
233 |
|
|
217 |
|
if ((empty
($suppress
_title)) &
& (!(empty
($title)))
) {
|
|
234 |
|
if ((empty
($suppress
_title)) &
& (!(empty
($title)))
) {
|
218 |
|
|
|
235 |
|
|
219 |
|
print
' <di
v id="skin
_pgtitle">
' . $eol;
|
|
236 |
|
print
' <di
v id="skin
_pgtitle">
' . $eol;
|
220 |
|
print
' <p
class="inl
ine">' . $
title . '<
/p>' . $eo
l;
|
|
237 |
|
print
' <p
class="inl
ine">' . $
title . '<
/p>' . $eo
l;
|
221 |
|
print
' </d
iv>' . $eo
l . $eol;
|
|
238 |
|
print
' </d
iv>' . $eo
l . $eol;
|
222 |
|
|
|
239 |
|
|
223 |
|
} // End o
f if state
ment.
|
|
240 |
|
} // End o
f if state
ment.
|
224 |
|
|
|
241 |
|
|
225 |
|
// +--
|
|
242 |
|
// +--
|
226 |
|
// | Retur
n true.
|
|
243 |
|
// | Retur
n true.
|
227 |
|
// +--
|
|
244 |
|
// +--
|
228 |
|
|
|
245 |
|
|
229 |
|
return 1;
|
|
246 |
|
return 1;
|
230 |
|
|
|
247 |
|
|
231 |
|
} // End o
f function
.
|
|
248 |
|
} // End o
f function
.
|
232 |
|
|
|
249 |
|
|
233 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
250 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
234 |
|
// | Funct
ion: light
box
|
|
|
251 |
|
// | Funct
ion: light
box
|
|
235 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
252 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
236 |
|
|
|
253 |
|
|
237 |
|
function l
ightbox ()
{
|
|
254 |
|
function l
ightbox ()
{
|
238 |
|
|
|
255 |
|
|
239 |
|
// +--
|
|
256 |
|
// +--
|
240 |
|
// | This
function p
rints the
lightbox c
ode.
|
|
257 |
|
// | This
function p
rints the
lightbox c
ode.
|
241 |
|
// +--
|
|
258 |
|
// +--
|
242 |
|
|
|
259 |
|
|
243 |
|
$eol
= $t
his->globa
ls('khxc.e
ol');
|
|
260 |
|
$eol
= $t
his->globa
ls('khxc.e
ol');
|
244 |
|
$load_ligh
tbox = $t
his->globa
ls('khxc.l
oad_lightb
ox');
|
|
261 |
|
$load_ligh
tbox = $t
his->globa
ls('khxc.l
oad_lightb
ox');
|
245 |
|
|
|
262 |
|
|
246 |
|
if (!(empt
y($load_li
ghtbox)))
{
|
|
263 |
|
if (!(empt
y($load_li
ghtbox)))
{
|
247 |
|
|
|
264 |
|
|
248 |
|
print
'<link re
l="stylesh
eet" type=
"text/css"
media="al
l" href="m
edia/light
box/css/li
ghtbox.css
" />' . $e
ol;
|
|
265 |
|
print
'<link re
l="stylesh
eet" type=
"text/css"
media="al
l" href="m
edia/light
box/css/li
ghtbox.css
" />' . $e
ol;
|
249 |
|
print
'<script
type="text
/javascrip
t" src="me
dia/lightb
ox/js/prot
otype.js">
</script>'
. $eol;
|
|
266 |
|
print
'<script
type="text
/javascrip
t" src="me
dia/lightb
ox/js/prot
otype.js">
</script>'
. $eol;
|
250 |
|
print
'<script
type="text
/javascrip
t" src="me
dia/lightb
ox/js/scri
ptaculous.
js?load=ef
fects"></s
cript>' .
$eol;
|
|
267 |
|
print
'<script
type="text
/javascrip
t" src="me
dia/lightb
ox/js/scri
ptaculous.
js?load=ef
fects"></s
cript>' .
$eol;
|
251 |
|
print
'<script
type="text
/javascrip
t" src="me
dia/lightb
ox/js/ligh
tbox.js"><
/script>'
. $eol;
|
|
268 |
|
print
'<script
type="text
/javascrip
t" src="me
dia/lightb
ox/js/ligh
tbox.js"><
/script>'
. $eol;
|
252 |
|
|
|
269 |
|
|
253 |
|
} // End o
f if state
ment.
|
|
270 |
|
} // End o
f if state
ment.
|
254 |
|
|
|
271 |
|
|
255 |
|
// +--
|
|
272 |
|
// +--
|
256 |
|
// | Retur
n true.
|
|
273 |
|
// | Retur
n true.
|
257 |
|
// +--
|
|
274 |
|
// +--
|
258 |
|
|
|
275 |
|
|
259 |
|
return 1;
|
|
276 |
|
return 1;
|
260 |
|
|
|
277 |
|
|
261 |
|
} // End o
f function
.
|
|
278 |
|
} // End o
f function
.
|
|
|
|
|
279 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
|
|
|
280 |
|
// | Funct
ion: calen
dar
|
|
|
|
|
|
281 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
|
|
|
282 |
|
|
|
|
|
|
283 |
|
function c
alendar ()
{
|
|
|
|
|
284 |
|
|
|
|
|
|
285 |
|
// +--
|
|
|
|
|
286 |
|
// | This
function p
rints the
calendar c
ode.
|
|
|
|
|
287 |
|
// +--
|
|
|
|
|
288 |
|
|
|
|
|
|
289 |
|
$eol
= $
this->glob
als('khxc.
eol');
|
|
|
|
|
290 |
|
$load_cale
ndar = $
this->glob
als('khxc.
load_calen
dar');
|
|
|
|
|
291 |
|
$app
= $
this->glob
als('khxc.
app');
|
|
|
|
|
292 |
|
$datetime_
format = $
this->glob
als('khxc_
settings.'
. $app .
'.datetime
_format');
|
|
|
|
|
293 |
|
|
|
|
|
|
294 |
|
if (!(empt
y($load_ca
lendar)))
{
|
|
|
|
|
295 |
|
|
|
|
|
|
296 |
|
print
'<link re
l="stylesh
eet" type=
"text/css"
media="al
l" href="m
edia/calen
dar/css/ca
lendar.css
" />' . $e
ol;
|
|
|
|
|
297 |
|
if ($
datetime_f
ormat == '
d/m/Y H:i:
s') {
|
|
|
|
|
298 |
|
/
/ Internat
ional Form
at (d/m/Y
H:i:s)
|
|
|
|
|
299 |
|
p
rint '<scr
ipt type="
text/javas
cript" src
="media/ca
lendar/js/
calendar_e
u.js"></sc
ript>' . $
eol;
|
|
|
|
|
300 |
|
|
|
|
|
|
301 |
|
} els
eif ($date
time_forma
t == 'm/d/
Y h:i:s A'
) {
|
|
|
|
|
302 |
|
/
/ US Forma
t (m/d/Y h
:i:s A)
|
|
|
|
|
303 |
|
p
rint '<scr
ipt type="
text/javas
cript" src
="media/ca
lendar/js/
calendar_u
s.js"></sc
ript>' . $
eol;
|
|
|
|
|
304 |
|
|
|
|
|
|
305 |
|
} els
e {
|
|
|
|
|
306 |
|
p
rint '<scr
ipt type="
text/javas
cript" src
="media/ca
lendar/js/
calendar_d
b.js"></sc
ript>' . $
eol;
|
|
|
|
|
307 |
|
} //
End of if
statement.
|
|
|
|
|
308 |
|
|
|
|
|
|
309 |
|
} // End o
f if state
ment.
|
|
|
|
|
310 |
|
|
|
|
|
|
311 |
|
// +--
|
|
|
|
|
312 |
|
// | Retur
n true.
|
|
|
|
|
313 |
|
// +--
|
|
|
|
|
314 |
|
|
|
|
|
|
315 |
|
return 1;
|
|
|
|
|
316 |
|
|
|
|
|
|
317 |
|
} // End o
f function
.
|
262 |
|
|
|
318 |
|
|
263 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
319 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
264 |
|
// | Funct
ion: conte
nt
|
|
|
320 |
|
// | Funct
ion: conte
nt
|
|
265 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
321 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
266 |
|
|
|
322 |
|
|
267 |
|
function c
ontent ()
{
|
|
323 |
|
function c
ontent ()
{
|
268 |
|
|
|
324 |
|
|
269 |
|
// +--
|
|
325 |
|
// +--
|
270 |
|
// | This
function p
rints the
content pl
aceholder.
|
|
326 |
|
// | This
function p
rints the
content pl
aceholder.
|
271 |
|
// +--
|
|
327 |
|
// +--
|
272 |
|
|
|
328 |
|
|
273 |
|
print '<kh
xc:content
/>';
|
|
329 |
|
print '<kh
xc:content
/>';
|
274 |
|
|
|
330 |
|
|
275 |
|
// +--
|
|
331 |
|
// +--
|
276 |
|
// | Retur
n true.
|
|
332 |
|
// | Retur
n true.
|
277 |
|
// +--
|
|
333 |
|
// +--
|
278 |
|
|
|
334 |
|
|
279 |
|
return 1;
|
|
335 |
|
return 1;
|
280 |
|
|
|
336 |
|
|
281 |
|
} // End o
f function
.
|
|
337 |
|
} // End o
f function
.
|
282 |
|
|
|
338 |
|
|
283 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
339 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
284 |
|
// | Funct
ion: print
addphone
|
|
|
340 |
|
// | Funct
ion: print
addphone
|
|
285 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
341 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
286 |
|
|
|
342 |
|
|
287 |
|
function p
rintaddpho
ne () {
|
|
343 |
|
function p
rintaddpho
ne () {
|
288 |
|
|
|
344 |
|
|
289 |
|
// +--
|
|
345 |
|
// +--
|
290 |
|
// | This
function p
rints the
applicatio
n owner's
address an
d
|
|
346 |
|
// | This
function p
rints the
applicatio
n owner's
address an
d
|
291 |
|
// | phone
/fax numbe
rs.
|
|
347 |
|
// | phone
/fax numbe
rs.
|
292 |
|
// +--
|
|
348 |
|
// +--
|
293 |
|
|
|
349 |
|
|
294 |
|
$app
= $this-
>globals('
khxc.app')
;
|
|
350 |
|
$app
= $this-
>globals('
khxc.app')
;
|
295 |
|
$eol
= $this-
>globals('
khxc.eol')
;
|
|
351 |
|
$eol
= $this-
>globals('
khxc.eol')
;
|
296 |
|
|
|
352 |
|
|
297 |
|
$phone
= $this-
>xhtml_enc
ode($this-
>globals('
khxc_setti
ngs.' . $a
pp . '.sit
eownerphon
e'));
|
|
353 |
|
$phone
= $this-
>xhtml_enc
ode($this-
>globals('
khxc_setti
ngs.' . $a
pp . '.sit
eownerphon
e'));
|
298 |
|
$fax
= $this-
>xhtml_enc
ode($this-
>globals('
khxc_setti
ngs.' . $a
pp . '.sit
eownerfax'
));
|
|
354 |
|
$fax
= $this-
>xhtml_enc
ode($this-
>globals('
khxc_setti
ngs.' . $a
pp . '.sit
eownerfax'
));
|
299 |
|
|
|
355 |
|
|
300 |
|
$address
= array(
'addone'
=> $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerad
d'),
|
|
356 |
|
$address
= array(
'addone'
=> $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerad
d'),
|
301 |
|
'addtwo'
=> '',
|
|
357 |
|
'addtwo'
=> '',
|
302 |
|
'city'
=> $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerci
ty'),
|
|
358 |
|
'city'
=> $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerci
ty'),
|
303 |
|
'stateprov
' => $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerst
ateprov'),
|
|
359 |
|
'stateprov
' => $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerst
ateprov'),
|
304 |
|
'country'
=> $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerco
untry'),
|
|
360 |
|
'country'
=> $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerco
untry'),
|
305 |
|
'postalcod
e' => $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerzi
p'));
|
|
361 |
|
'postalcod
e' => $thi
s->globals
('khxc_set
tings.' .
$app . '.s
iteownerzi
p'));
|
306 |
|
|
|
362 |
|
|
307 |
|
$address
= $this-
>include_n
amespace($
app,'getad
dress',arr
ay('addres
s' => $add
ress, 'for
mat' => 'T
EXTNOBR'))
;
|
|
363 |
|
$address
= $this-
>include_n
amespace($
app,'getad
dress',arr
ay('addres
s' => $add
ress, 'for
mat' => 'T
EXTNOBR'))
;
|
308 |
|
|
|
364 |
|
|
309 |
|
if ((!($th
is->IsErro
r($address
))) && (!(
empty($add
ress)))) {
|
|
365 |
|
if ((!($th
is->IsErro
r($address
))) && (!(
empty($add
ress)))) {
|
310 |
|
|
|
366 |
|
|
311 |
|
$addr
ess = $
this->xhtm
l_encode($
address);
|
|
367 |
|
$addr
ess = $
this->xhtm
l_encode($
address);
|
312 |
|
|
|
368 |
|
|
313 |
|
print
'<p>' . $
address .
'</p>' . $
eol . $eol
;
|
|
369 |
|
print
'<p>' . $
address .
'</p>' . $
eol . $eol
;
|
314 |
|
print
'<p>Telep
hone: ' .
$phone . '
&nbs
p; &n
bsp;';
|
|
370 |
|
print
'<p>Telep
hone: ' .
$phone . '
&nbs
p; &n
bsp;';
|
315 |
|
print
'Fax: ' .
$fax . '<
/p>' . $eo
l . $eol;
|
|
371 |
|
print
'Fax: ' .
$fax . '<
/p>' . $eo
l . $eol;
|
316 |
|
|
|
372 |
|
|
317 |
|
} // End o
f if state
ment.
|
|
373 |
|
} // End o
f if state
ment.
|
318 |
|
|
|
374 |
|
|
319 |
|
// +--
|
|
375 |
|
// +--
|
320 |
|
// | Retur
n true.
|
|
376 |
|
// | Retur
n true.
|
321 |
|
// +--
|
|
377 |
|
// +--
|
322 |
|
|
|
378 |
|
|
323 |
|
return 1;
|
|
379 |
|
return 1;
|
324 |
|
|
|
380 |
|
|
325 |
|
} // End o
f function
.
|
|
381 |
|
} // End o
f function
.
|
326 |
|
|
|
382 |
|
|
327 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
383 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
328 |
|
// | Funct
ion: robot
stag
|
|
|
384 |
|
// | Funct
ion: robot
stag
|
|
329 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
385 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
330 |
|
|
|
386 |
|
|
331 |
|
function r
obotstag (
) {
|
|
387 |
|
function r
obotstag (
) {
|
332 |
|
|
|
388 |
|
|
333 |
|
// +--
|
|
389 |
|
// +--
|
334 |
|
// | This
function p
rints the
robots tag
. Follow/
Index tags
are
|
|
390 |
|
// | This
function p
rints the
robots tag
. Follow/
Index tags
are
|
335 |
|
// | print
ed only wh
en pages w
ere not re
quested wi
th SID in
the URL.
|
|
391 |
|
// | print
ed only wh
en pages w
ere not re
quested wi
th SID in
the URL.
|
336 |
|
// +--
|
|
392 |
|
// +--
|
337 |
|
|
|
393 |
|
|
338 |
|
$eol
= $this->g
lobals('kh
xc.eol');
|
|
394 |
|
$eol
= $this->g
lobals('kh
xc.eol');
|
339 |
|
$cgi_sid
= $this->g
lobals('kh
xc_cgi.sid
');
|
|
395 |
|
$cgi_sid
= $this->g
lobals('kh
xc_cgi.sid
');
|
340 |
|
|
|
396 |
|
|
341 |
|
if (!(empt
y($cgi_sid
))) {
|
|
397 |
|
if (!(empt
y($cgi_sid
))) {
|
342 |
|
|
|
398 |
|
|
343 |
|
print
'<meta na
me="robots
" content=
"noindex,f
ollow" />'
. $eol;
|
|
399 |
|
print
'<meta na
me="robots
" content=
"noindex,f
ollow" />'
. $eol;
|
344 |
|
|
|
400 |
|
|
345 |
|
} else {
|
|
401 |
|
} else {
|
346 |
|
|
|
402 |
|
|
347 |
|
print
'<meta na
me="robots
" content=
"index,fol
low" />' .
$eol;
|
|
403 |
|
print
'<meta na
me="robots
" content=
"index,fol
low" />' .
$eol;
|
348 |
|
|
|
404 |
|
|
349 |
|
} // End o
f if state
ment.
|
|
405 |
|
} // End o
f if state
ment.
|
350 |
|
|
|
406 |
|
|
351 |
|
// +--
|
|
407 |
|
// +--
|
352 |
|
// | Retur
n true.
|
|
408 |
|
// | Retur
n true.
|
353 |
|
// +--
|
|
409 |
|
// +--
|
354 |
|
|
|
410 |
|
|
355 |
|
return 1;
|
|
411 |
|
return 1;
|
356 |
|
|
|
412 |
|
|
357 |
|
} // End o
f function
.
|
|
413 |
|
} // End o
f function
.
|
358 |
|
|
|
414 |
|
|
359 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
415 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
360 |
|
// | End o
f Class
|
|
|
416 |
|
// | End o
f Class
|
|
361 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
417 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
362 |
|
|
|
418 |
|
|
363 |
|
} // End o
f class.
|
|
419 |
|
} // End o
f class.
|
364 |
|
|
|
420 |
|
|
365 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
421 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
366 |
|
// | End O
f File
|
|
|
422 |
|
// | End O
f File
|
|
367 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
|
423 |
|
// +------
----------
----------
----------
----------
----------
----------
+
|
368 |
|
|
|
424 |
|
|
369 |
|
?>
|
|
425 |
|
?>
|
Araxis Merge (but not the data content of this report) is Copyright © 1993-2008 Araxis Ltd (www.araxis.com). All rights reserved.