try again
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
/**
|
||||
* Open Source Social Network
|
||||
*
|
||||
* @package (Informatikon.com).ossn
|
||||
* @author OSSN Core Team <info@opensource-socialnetwork.org>
|
||||
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
|
||||
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
|
||||
* @link http://www.opensource-socialnetwork.org/licence
|
||||
* @package (softlab24.com).ossn
|
||||
* @author OSSN Core Team <info@softlab24.com>
|
||||
* @copyright (C) SOFTLAB24 LIMITED
|
||||
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
|
||||
* @link https://www.opensource-socialnetwork.org/
|
||||
*/
|
||||
define('__THEMEDIR__', ossn_route()->themes . 'goblue/');
|
||||
define('__THEMEDIR__', ossn_route()->themes . 'Flexi/');
|
||||
|
||||
ossn_register_callback('ossn', 'init', 'ossn_goblue_theme_init');
|
||||
|
||||
@@ -30,15 +30,41 @@ function ossn_goblue_theme_init(){
|
||||
ossn_extend_view('ossn/admin/head', 'ossn_goblue_admin_head');
|
||||
ossn_extend_view('ossn/site/head', 'ossn_goblue_head');
|
||||
ossn_extend_view('js/opensource.socialnetwork', 'js/goblue');
|
||||
|
||||
//Sanitizing of latest friends widget #6
|
||||
if(ossn_isLoggedin()){
|
||||
ossn_add_hook('newsfeed', 'sidebar:right', 'flexi_latest_members_widget');
|
||||
ossn_add_hook('newsfeed', 'sidebar:right', 'flexi_latest_friends_widget');
|
||||
}
|
||||
}
|
||||
function flexi_latest_members_widget($hook, $type, $return){
|
||||
$widget_content = ossn_plugin_view('flexi/members_widget');
|
||||
$widget = ossn_plugin_view('widget/view', array(
|
||||
'title' => ossn_print('flexi:latest:members'),
|
||||
'contents' => $widget_content
|
||||
));
|
||||
$return[] = $widget;
|
||||
return $return;
|
||||
}
|
||||
|
||||
function flexi_latest_friends_widget($hook, $type, $return){
|
||||
$widget_content = ossn_plugin_view('flexi/friends_widget');
|
||||
$widget = ossn_plugin_view('widget/view', array(
|
||||
'title' => ossn_print('flexi:latest:friends'),
|
||||
'contents' => $widget_content
|
||||
));
|
||||
$return[] = $widget;
|
||||
return $return;
|
||||
}
|
||||
|
||||
function ossn_goblue_head(){
|
||||
$head = array();
|
||||
|
||||
$head[] = ossn_html_css(array(
|
||||
'href' => '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'
|
||||
'href' => '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'
|
||||
));
|
||||
$head[] = ossn_html_css(array(
|
||||
'href' => 'https://fonts.googleapis.com/css?family=PT+Sans:400italic,700,400'
|
||||
'href' => 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700'
|
||||
));
|
||||
$head[] = ossn_html_js(array(
|
||||
'src' => ossn_theme_url() . 'vendors/bootstrap/js/bootstrap.min.js'
|
||||
@@ -51,7 +77,7 @@ function ossn_goblue_head(){
|
||||
function ossn_goblue_admin_head(){
|
||||
$head = array();
|
||||
$head[] = ossn_html_css(array(
|
||||
'href' => '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'
|
||||
'href' => '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'
|
||||
));
|
||||
$head[] = ossn_html_css(array(
|
||||
'href' => '//fonts.googleapis.com/css?family=Roboto+Slab:300,700,400'
|
||||
|
Reference in New Issue
Block a user