CMS
Version 3.9
show.inc
Go to the documentation of this file.
1
<?php
2
Fakoli::using
(
"terms_and_conditions"
,
"page"
,
"settings"
);
3
4
$identifier
=
Settings::getValue
(
"terms_and_conditions"
,
"terms_page_identifier"
);
5
$title
=
Settings::getValue
(
"terms_and_conditions"
,
"title"
);
6
$button
=
Settings::getValue
(
"terms_and_conditions"
,
"button_label"
);
7
8
if
(!
$button
)
$button
=
"I Agree to the {$title} as Shown Above"
;
9
10
$page
=
Page::findByIdentifier
(
$identifier
);
11
12
?>
13
<div
class
=
"terms_container"
><?echo
$page
->description?></div>
14
<button
class
=
"button terms_button"
onclick=
"TermsAndConditions.approve()"
><?echo
$button
?></button>
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
Page\findByIdentifier
static findByIdentifier($identifier)
Definition:
page.inc:85
Settings\getValue
static getValue($component, $name)
Retrieve the value of the specified Setting.
Definition:
settings.inc:104
$page
$page
Definition:
show.inc:10
$identifier
$identifier
Definition:
show.inc:4
$title
$title
Definition:
show.inc:5
$button
$button
Definition:
show.inc:6
code
cms.sonjara.com
cms
components
terms_and_conditions
handlers
show.inc
Generated on Tue Mar 23 2021 15:36:12 for CMS by
1.9.1