function do_preview($f3, $args) { rStaff::_chkLogin(); $cu = fPress::get_row('/' . $args['slug'], 'slug', '', true); if (empty($cu)) { f3()->error(404); } f3()->set('cu', $cu); parent::wrapper('press/content.html', $cu['title'], '/press' . $cu['slug']); }
function do_comingsoon($f3, $args) { parent::wrapper('comingsoon.html', 'Coming Soon', '/'); }
function do_contact($f3, $args) { $f3->set('act_link', 'contact'); parent::wrapper('contact.html', 'Contact me', '/contact'); }