function app_event_test_part($values) { global $config; $login = rea_template::part('login_box'); $login->login_brand->write('<span class="fa fa-tablet fa-2x" style="color: #484848; font-weight: 600; text-shadow: none;"></span> id.pr.gov'); $login->footer->write('Use of this service implies agreement with the institutional policy for the use of technology resources. For more information read our terms of service.'); $login->username->write('jose'); $page->view->body->write($login); }
public function getHTML() { $mp = $this->manifest_path != null ? $this->manifest_path : REA_SELF_DIRECTORY . 'manifest.js'; if (file_exists($mp)) { $this->loadManifest($mp); } $payload = ['name' => $this->name, 'backend_url' => $this->backend_url]; $s = "<script type='text/javascript'>\n"; $s .= "var view_options = {\"" . $this->name . "\" : " . json_encode($payload) . "};\n"; if (!empty($this->data)) { $s .= "rea_views.setViewDataFromJSON(\"{$this->name}\", " . json_encode($this->data) . ");\n"; } $s .= "</script>"; $this->body->write($s); $html = parent::getHTML(); return $html; }