forked from unacms/una
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplash.php
44 lines (34 loc) · 1.29 KB
/
splash.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup UnaCore UNA Core
* @{
*/
require_once('./inc/header.inc.php');
require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
bx_import('BxDolLanguages');
function getPageMainCode()
{
$oTemplate = BxDolTemplate::getInstance();
$bEnabled = getParam('sys_site_splash_enabled');
if(!$bEnabled)
$oTemplate->displayPageNotFound();
$oPermalink = BxDolPermalinks::getInstance();
$oTemplate->addJs(array('skrollr/skrollr.min.js'));
$s = $oTemplate->parseHtmlByContent(getParam('sys_site_splash_code'), array(
'join_link' => BX_DOL_URL_ROOT . $oPermalink->permalink('page.php?i=create-account'),
'login_link' => BX_DOL_URL_ROOT . $oPermalink->permalink('page.php?i=login'),
'login_form' => BxDolService::call('system', 'login_form', array(), 'TemplServiceLogin')
));
if (getParam('add_to_mobile_homepage') == 'on')
$s .= BxDolService::call('system', 'add_to_mobile_homepage', array(), 'TemplServices');
return $s;
}
check_logged();
$oTemplate = BxDolTemplate::getInstance();
$oTemplate->setPageNameIndex(BX_PAGE_DEFAULT);
$oTemplate->setPageContent ('page_main_code', getPageMainCode());
$oTemplate->getPageCode();
/** @} */