fixed logo

This commit is contained in:
2021-07-28 01:06:05 +02:00
parent c90756db39
commit 488e934325
65 changed files with 6080 additions and 3267 deletions

View File

@@ -1,18 +1,15 @@
<?php
/**
* Open Source Social Network
*
* @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 . 'Flexi/');
ossn_register_callback('ossn', 'init', 'ossn_goblue_theme_init');
/*********/
/* Atlas */
/*********/
function ossn_goblue_theme_init(){
define('__THEMEDIR__', ossn_route()->themes . 'atlas/');
ossn_register_callback('ossn', 'init', 'ossn_atlas_theme_init');
function ossn_atlas_theme_init(){
//add bootstrap
ossn_new_css('bootstrap.min', 'css/bootstrap/bootstrap.min.css');
//ossn_new_js('bootstrap.min', 'js/bootstrap/bootstrap.min.js');
@@ -27,44 +24,53 @@ function ossn_goblue_theme_init(){
ossn_load_css('ossn.default');
ossn_load_css('ossn.admin.default', 'admin');
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');
ossn_extend_view('ossn/admin/head', 'ossn_atlas_admin_head');
ossn_extend_view('ossn/site/head', 'ossn_atlas_head');
ossn_extend_view('js/opensource.socialnetwork', 'js/atlas');
ossn_extend_view('profile/newsfeed/info', 'atlas/info');
ossn_register_admin_sidemenu('admin:theme:atlas', 'admin:theme:atlas', ossn_site_url('administrator/settings/atlas'), ossn_print('admin:sidemenu:themes'));
ossn_register_site_settings_page('atlas', 'settings/admin/atlas');
if(ossn_isAdminLoggedin()) {
ossn_register_action('atlas/settings', __THEMEDIR__ . 'actions/settings.php');
//Sanitizing of latest friends widget #6
//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');
ossn_add_hook('newsfeed', 'sidebar:right', 'atlas_latest_members_widget');
ossn_add_hook('newsfeed', 'sidebar:right', 'atlas_latest_friends_widget');
}
}
function flexi_latest_members_widget($hook, $type, $return){
$widget_content = ossn_plugin_view('flexi/members_widget');
}
function atlas_latest_members_widget($hook, $type, $return){
$widget_content = ossn_plugin_view('atlas/members_widget');
$widget = ossn_plugin_view('widget/view', array(
'title' => ossn_print('flexi:latest:members'),
'title' => ossn_print('atlas: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');
function atlas_latest_friends_widget($hook, $type, $return){
$widget_content = ossn_plugin_view('atlas/friends_widget');
$widget = ossn_plugin_view('widget/view', array(
'title' => ossn_print('flexi:latest:friends'),
'title' => ossn_print('atlas:latest:friends'),
'contents' => $widget_content
));
$return[] = $widget;
return $return;
}
function ossn_goblue_head(){
function ossn_atlas_head(){
$head = array();
$head[] = ossn_html_css(array(
'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=Roboto:300,400,500,700'
'href' => 'https://fonts.googleapis.com/css?family=PT+Sans:400italic,700,400'
));
$head[] = ossn_html_js(array(
'src' => ossn_theme_url() . 'vendors/bootstrap/js/bootstrap.min.js'
@@ -74,7 +80,7 @@ function ossn_goblue_head(){
));
return implode('', $head);
}
function ossn_goblue_admin_head(){
function ossn_atlas_admin_head(){
$head = array();
$head[] = ossn_html_css(array(
'href' => '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'