-
Notifications
You must be signed in to change notification settings - Fork 0
/
ossn_com.php
33 lines (26 loc) · 1.04 KB
/
ossn_com.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
<?php
/**
* OpenSource-SocialNetwork
*
* @package (Informatikon.com).ossn
* @author OSSN Core Team <info@opensource-socialnetwork.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://opensource-socialnetwork.com/licence
* @link http://www.opensource-socialnetwork.com/licence
*/
define('__OSSN_MOBILE__', ossn_route()->com . 'OssnMobile/');
require_once(__OSSN_MOBILE__ . 'vendors/Mobile_Detect.php');
require_once(__OSSN_MOBILE__ . 'classes/OssnMobile.php');
require_once(__OSSN_MOBILE__ . 'libraries/ossn.lib.mobile.php');
function ossn_mobile_init() {
if (OssnMobile()->isMobile()) {
ossn_new_css('ossn.mobile.default', 'components/OssnMobile/css/default');
ossn_load_css('ossn.mobile.default');
ossn_unload_css('ossn.default');
ossn_add_hook('halt', 'view:components/OssnChat/views/OssnChat/chatbar', 'ossn_mobile_remove_chat');
}
}
function ossn_mobile_remove_chat() {
return false;
}
ossn_register_callback('ossn', 'init', 'ossn_mobile_init');