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 
11 
12 ?>
13 <div class="terms_container"><?echo $page->description?></div>
14 <button class="button terms_button" onclick="TermsAndConditions.approve()"><?echo $button?></button>
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
static findByIdentifier($identifier)
Definition: page.inc:85
static getValue($component, $name)
Retrieve the value of the specified Setting.
Definition: settings.inc:104
$page
Definition: show.inc:10
$identifier
Definition: show.inc:4
$title
Definition: show.inc:5
$button
Definition: show.inc:6