try again

This commit is contained in:
2021-07-28 00:32:13 +02:00
parent e14f8642f3
commit e77c62e381
58 changed files with 3129 additions and 2671 deletions

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
$friend = $params['entity'];
?>

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
$friend = $params['entity'];
if ($friend->isOnline(10)) {
@@ -16,9 +16,8 @@ if ($friend->isOnline(10)) {
}
?>
<div class="friends-list-item" id="friend-list-item-<?php echo $friend->guid; ?>"
onClick="Ossn.ChatnewTab(<?php echo $friend->guid; ?>);">
onClick="Ossn.ChatnewTab(<?php echo $friend->guid; ?>);" data-toggle="tooltip" title="<?php echo $friend->fullname;?>">
<div class="friends-item-inner">
<div class="icon"><img class="<?php echo $status; ?> ustatus" src="<?php echo $params['icon']; ?>"/></div>
<div class="name"><?php echo $friend->fullname; ?></div>
</div>
</div>

View File

@@ -0,0 +1,548 @@
.ossn-chat-base {
border-bottom: 0;
bottom: 0px;
left: 15px;
display: block;
font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif;
font-size: 11px;
height: 33px;
position: fixed;
text-align: left;
z-index: 1028;
margin-top: 8px;
left: 15%;
color: #000;
width: 850px;
}
.ossn-chat-base .ossn-chat-bar {
display: block;
bottom: 0px;
cursor: pointer;
width: 200px;
float: right;
}
.ossn-chat-base .ossn-chat-bar .inner {
padding: 10px;
margin-left: 5px;
background: #F7F7F7;
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.5);
border: 1px solid #BAC0CD;
height: 35px;
border-top-right-radius: 4px;
border-top-left-radius: 4px;
}
.ossn-chat-base .ossn-chat-bar .inner:hover {
background: #fff;
}
.ossn-chat-windows-long .friends-list-item img {
border: 3px solid #ec2828;
}
.ossn-chat-base .ossn-chat-bar .friends-list {
background: #F9F9FB;
width: 195px;
min-height: 271px;
margin-top: -271px;
margin-left: 5px;
position: fixed;
height: 268px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
display: none;
}
img.ustatus {
border-radius: 32px;
}
img.ustatus.ossn-chat-icon-online {
border: 3px solid #4cae4c;
}
.ossn-chat-inner-text {
width: 145px;
margin-left: 20px;
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ossn-chat-tab-titles {
background: #0b769c;
color: #fff;
padding: 3px;
border: 1px solid #086c90;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.ossn-chat-inline-table {
display: inline-table;
}
.ossn-chat-tab-titles .options {
float: right;
margin-right: 10px;
color: #FFF;
margin-top: 2px;
font-size: 12px;
cursor: pointer;
}
.ossn-chat-tab-titles .options .item:hover {
background: #5E72A2;
width: 17px;
margin-right: -4px;
text-align: center;
}
.ossn-chat-tab-titles:hover {
background: #086c90;
border: 1px solid #0b769c;
}
.ossn-chat-tab-titles .text {
color: #FFF;
font-weight: bold;
margin-left: 9px;
padding: 2px;
max-width: 190px;
white-space: nowrap;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
}
.ossn-chat-bar .friends-list .data {
width: 195px;
overflow: hidden;
overflow-y: scroll;
height: 236px;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
}
.ossn-chat-base .ossn-chat-bar .friends-list-item:hover {
background: #eee;
}
.ossn-chat-base .ossn-chat-bar .friends-list-item .friends-item-inner {
margin: 5px 5px 5px 5px;
height: 36px;
padding: 2px;
}
.ossn-chat-base .ossn-chat-bar .friends-list-item .icon {
display: inline-table;
width: 32px;
height: 32px;
}
.ossn-chat-base .ossn-chat-bar .friends-list-item .name {
margin-top: -28px;
margin-left: 40px;
max-width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ossn-chat-base .ossn-chat-bar .friends-list-item .ossn-chat-icon-online {
border: 3px solid #4cae4c;
border-radius: 32px;
}
.ossn-chat-none {
padding: 5px;
margin-top:10px;
color:#fff;
}
.friend-tab-item {
display: block;
bottom: 0px;
cursor: pointer;
width: 200px;
float: right;
}
.friend-tab-item .friend-tab {
padding: 12px;
margin-left: 5px;
background: #F7F7F7;
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.5);
border: 1px solid #ccc;
height: 35px;
border-top-right-radius: 2px;
border-top-left-radius: 2px;
}
.ossn-chat-tab-active {
background: #5D7D91 !important;
border: 1px solid #2F4959 !important;
color: #fff;
}
.friend-tab-item .tab-container {
margin-top: -268px;
position: absolute;
height: 265px;
width: 251px;
margin-left: 5px;
display: none;
}
.friend-tab-item .tab-container .data {
background: #eee;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
width: 251px;
height: 237px;
overflow: hidden;
overflow-y: scroll;
}
.friend-tab-item .data .message-reciever .text,
.friend-tab-item .data .message-sender .text {
position: relative;
margin-top: 5px;
margin-bottom: 5px;
max-width: 80%;
clear: both;
}
.friend-tab-item .data .message-reciever .text {
margin-right: auto;
background-image: -webkit-linear-gradient(bottom, #F2F2F2, #FFF);
background-image: -moz-linear-gradient(bottom, #F2F2F2, #FFF);
background-image: -ms-linear-gradient(bottom, #F2F2F2, #FFF);
background-image: linear-gradient(bottom, #F2F2F2, #FFF);
border-radius: 3px;
border: 1px solid #ccc;
text-shadow: rgba(255, 255, 255, .5) 0 1px 0;
color: #000;
display: inline-table;
}
.friend-tab-item .data .message-reciever .text .inner {
padding: 5px;
line-height: 15px;
max-width: 165px;
word-wrap: break-word;
}
.friend-tab-item .data .message-sender {
width: 210px;
float: right;
}
.friend-tab-item .data .message-reciever {
width: 222px;
float: left;
}
.friend-tab-item .data .message-reciever .user-icon {
display: inline-table;
padding: 3px;
}
.friend-tab-item .data .message-reciever .user-icon img {
width:32px;
height:32px;
}
.friend-tab-item .data .message-sender .text {
margin-left: 35px;
background: linear-gradient(#C7DEFE, #E7F1FE);
background-image: -webkit-gradient(linear, center bottom, center top, from(#C7DEFE), to(#E7F1FE));
background-image: -webkit-linear-gradient(bottom, #C7DEFE, #E7F1FE);
border: 1px solid #DFDFDF;
border: 1px solid rgba(0, 0, 0, 0.18);
border-bottom-color: rgba(0, 0, 0, 0.29);
-webkit-border-radius: 4px;
-webkit-box-shadow: 0 1px 0 #DCE0E6;
display: inline-table;
}
.friend-tab-item .data .message-sender .text .inner {
padding: 5px;
line-height: 15px;
max-width: 158px;
word-wrap: break-word;
}
.ossn-chat-triangle {
border-top: 5px solid rgba(0, 0, 0, 0);
border-bottom: 5px solid rgba(0, 0, 0, 0);
}
.ossn-chat-triangle-blue {
border-left: 5px solid #AFD0FE;
margin-top: 10px;
float: right;
}
.ossn-chat-triangle-white {
border-right: 5px solid #B8B8B8;
margin-top: 10px;
margin-left: 38px;
float: left;
}
.ossn-chat-text-data {
margin-top: -40px;
}
.ossn-chat-text-data-right {
float: right;
}
.friend-tab-item .friend-tab form {
display: none;
}
.friend-tab-item .friend-tab input[type='text'] {
width: 213px;
height: 30px;
padding: 2px;
margin-top: -12px;
margin-left: -12px;
position: absolute;
font-size: 12px;
border:0px;
outline:none;
}
.ossn-chat-tab-close {
width: 17px;
margin-right: -4px;
text-align: center;
}
.ossn-chat-new-message {
background-color: #dc0d17;
background-image: -webkit-gradient(linear, center top, center bottom, from(#fa3c45), to(#dc0d17));
background-image: -webkit-linear-gradient(#fa3c45, #dc0d17);
color: #fff;
min-height: 13px;
padding: 1px 3px;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .4);
font-size: 10px;
float: left;
display: none;
margin-top: -2px;
position: absolute;
}
.ossn-chat-icon-smilies {
background: #FFF;
width: 235px;
min-height: 40px;
padding: 5px;
position: fixed;
border: 1px solid #CCC;
z-index: 1;
}
.ossn-chat-item-smiles {
padding: 3px;
}
.ossn-chat-icon-smile-set {
margin-top: -12px;
background: #fff;
width: 37px;
padding: 4px;
height: 27px;
position: absolute;
margin-left: 200px;
}
.ossn-chat-icon-smilies {
display: none;
}
/** Icons **/
.ossn-chat-icon {}
.ossn-chat-icon-online:before {
content: "\f111 ";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
color: #57B540;
font-size: 12px;
float: left;
}
.ossn-chat-icon-offline:before {
content: "\f111 ";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
color: #D23636;
font-size: 12px;
float: left;
}
.ossn-chat-icon-expend:before {
content: "\f0b2";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
color: #fff;
font-size: 12px;
}
.ossn-chat-icon-expend:hover {
opacity: 0.9;
}
.ossn-chat-icon-smile:before {
content: "\f118";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
font-size: 16px;
margin-left: 10px;
}
.ossn-chat-icon {
width: 16px !important;
height: 16px !important;
}
.ossn-chat-windows-long {
display: none;
}
@media only screen
and (min-width : 1280px) {
.ossn-chat-base {
width: 910px !important;
}
}
@media only screen
and (min-width : 1360px) {
.ossn-chat-bar {
display: none !important;
}
.ossn-chat-windows-long {
float: right;
position: fixed;
min-height: 500px;
width: 80px;
border-left: 1px solid #333;
bottom: 0px;
right: 0;
top: 0;
background: #333;
display: block;
}
.ossn-chat-windows-long .inner {
margin-top: 45px;
border-top: 1px solid #ccc;
overflow-x: hidden;
overflow-y: auto;
}
.ossn-chat-windows-long .friends-list-item .friends-item-inner {
margin: 5px 10px 5px 5px;
height: 55px;
}
.ossn-chat-windows-long .friends-list-item {
margin-bottom: 5px;
padding-left: 2px;
text-align: center;
}
.ossn-chat-windows-long .friends-list-item:hover {
background: #4a4a4a;
cursor: pointer;
}
.ossn-chat-windows-long .friends-list-item .icon {
display: inline-block;
width: 50px;
height: 50px;
}
.ossn-chat-windows-long .friends-list-item .name {
margin-top: -25px;
margin-left: 40px;
max-width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ossn-chat-windows-long .friends-list-item .ossn-chat-icon-online:before {
float: right;
margin-right:4px;
margin-top: -17px;
content: "\f111 ";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
color: #57B540;
font-size: 12px;
}
}
/** Document **/
#ossn-chat-sound {
display: none;
}
.ossn-chat-message-sending {
position: absolute;
width: 218px;
height: 11px;
margin-top: -9px;
margin-left: -9px;
padding: 10px;
background: #fff;
display: none;
}
.friend-tab .ossn-chat-inner-text {
margin-top: -2px;
}
.ossn-chat-sending-icon {
background: url("<?php echo ossn_site_url();?>components/OssnChat/images/loading-small.gif") no-repeat;
width: 16px;
height: 11px;
}
.ossnchat-scroll-top {
margin-top:0px !important;
}
@media (max-width: 480px){
.ossn-chat-base {
display:none !important;
}
}
@media only screen and (max-width: 480px) {
.ossn-chat-base {
display:none !important;
}
}
@media only screen and (max-width: 768px) {
.ossn-chat-base {
display:none !important;
}
}
footer {
margin-bottom:50px;
}
@-ms-viewport {
width: auto;
}
.friend-tab-item .container-table-pagination {
visibility:hidden;
}
.friend-tab-item .pagination {
margin:0;
}

View File

@@ -2,21 +2,21 @@
/**
* 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/
*/
?>
/**
* 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/
*/
body {
font-family: 'Roboto Slab', serif;
@@ -25,7 +25,7 @@ body {
}
.header {
height:65px;
height: 70px;
color:#fff;
background: #3D3D3D;
}
@@ -143,11 +143,14 @@ label {
float: right;
}
.page-title {
font-size: 20px;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
margin-bottom:10px;
text-transform: uppercase;
background-color: #f8f8f8;
border: 1px solid #e7e7e7;
padding: 10px;
font-weight: 700;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
text-transform: uppercase;
margin-bottom:10px;
}
.page-botton-notice {
margin-top:10px;
@@ -211,6 +214,8 @@ label {
border: 1px solid #e7e7e7;
padding: 10px;
font-weight: 700;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.admin-dashboard-contents .text {
font-size: 40px;
@@ -295,3 +300,30 @@ footer a {
padding: 0px;
display: inline-block;
}
.admin-dashboard-box-small {
min-height:100px;
}
.admin-dashboard-contents-small {
max-height: 100px;
}
.admin-dashboard-contents-small .text {
padding:10px;
}
.navbar-default {
background-color: #585858;
border-color: #6f6f6f;
border-radius: 0;
border:0;
}
.navbar-default .navbar-nav>li>a {
color:#fff;
}
.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
color: #f1f1f1;
background-color: transparent;
}
@media (max-width: 480px) {
.topbar-menu .nav li {
padding-left: 15px;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,26 @@
<?php
/**
* Open Source Social Network
*
* @package Open Source Social Network
* @author Open Social Website Core Team <info@softlab24.com>
* @copyright 2014-2018 SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-socialnetwork.org/
*/
$attr = array(
'limit' => 12,
'order_by' => 'r.relation_id DESC'
);
$friends = ossn_loggedin_user()->getFriends('', $attr);
if ($friends) {
foreach($friends as $user) { ?>
<a title="<?php echo $user->first_name . ' ' . $user->last_name; ?>"
class="com-members-memberlist-item"
href="<?php echo ossn_site_url() . 'u/' . $user->username; ?>">
<img class="user-img" src="<?php echo $user->iconURL()->small;?>"></a>
<?php
}
}

View File

@@ -0,0 +1,32 @@
<?php
/**
* Open Source Social Network
*
* @package Open Source Social Network
* @author Open Social Website Core Team <info@softlab24.com>
* @copyright 2014-2018 SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-socialnetwork.org/
*/
$count = 12;
if(isset($params['count'])){
$count = $params['count'];
}
$users = new OssnUser;
$attr = array(
'keyword' => false,
'order_by' => 'guid DESC',
'limit' => $count,
'page_limit' => 12,
'offset' => 1
);
$users = $users->searchUsers($attr);
foreach($users as $user) { ?>
<a title="<?php echo $user->first_name . ' ' . $user->last_name; ?>"
class="com-members-memberlist-item"
href="<?php echo ossn_site_url() . 'u/' . $user->username; ?>">
<img class="user-img" src="<?php echo $user->iconURL()->small;?>"></a>
<?php
}

View File

@@ -1,153 +0,0 @@
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Open Social Website Core Team <info@informatikon.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
*/
Ossn.ViewLikes = function($post, $type) {
if (!$type) {
$type = 'post';
}
Ossn.MessageBox('likes/view?guid=' + $post + '&type=' + $type);
};
Ossn.PostUnlike = function(post) {
Ossn.PostRequest({
url: Ossn.site_url + 'action/post/unlike',
beforeSend: function() {
$('#ossn-like-' + post).html('<img src="' + Ossn.site_url + 'components/OssnComments/images/loading.gif" />');
},
params: '&post=' + post,
callback: function(callback) {
if (callback['done'] !== 0) {
$('#ossn-like-' + post).html(callback['button']);
$('#ossn-like-' + post).attr('onclick', 'Ossn.PostLike(' + post + ');');
} else {
$('#ossn-like-' + post).html(Ossn.Print('unlike'));
}
},
});
};
Ossn.PostLike = function(post) {
Ossn.PostRequest({
url: Ossn.site_url + 'action/post/like',
beforeSend: function() {
$('#ossn-like-' + post).html('<img src="' + Ossn.site_url + 'components/OssnComments/images/loading.gif" />');
},
params: '&post=' + post,
callback: function(callback) {
if (callback['done'] !== 0) {
$('#ossn-like-' + post).html(callback['button']);
$('#ossn-like-' + post).attr('onClick', 'Ossn.PostUnlike(' + post + ');');
} else {
$('#ossn-like-' + post).html(Ossn.Print('like'));
}
},
});
};
Ossn.EntityUnlike = function(entity) {
Ossn.PostRequest({
url: Ossn.site_url + 'action/post/unlike',
beforeSend: function() {
$('#ossn-like-' + entity).html('<img src="' + Ossn.site_url + 'components/OssnComments/images/loading.gif" />');
},
params: '&entity=' + entity,
callback: function(callback) {
if (callback['done'] !== 0) {
$('#ossn-like-' + entity).html(callback['button']);
$('#ossn-like-' + entity).attr('onclick', 'Ossn.EntityLike(' + entity + ');');
} else {
$('#ossn-like-' + entity).html(Ossn.Print('unlike'));
}
},
});
};
Ossn.EntityLike = function(entity) {
Ossn.PostRequest({
url: Ossn.site_url + 'action/post/like',
beforeSend: function() {
$('#ossn-like-' + entity).html('<img src="' + Ossn.site_url + 'components/OssnComments/images/loading.gif" />');
},
params: '&entity=' + entity,
callback: function(callback) {
if (callback['done'] !== 0) {
$('#ossn-like-' + entity).html(callback['button']);
$('#ossn-like-' + entity).attr('onClick', 'Ossn.EntityUnlike(' + entity + ');');
} else {
$('#ossn-like-' + post).html(Ossn.Print('like'));
}
},
});
};
Ossn.RegisterStartupFunction(function() {
$(document).ready(function() {
$(document).delegate('.ossn-like-comment', 'click', function(e) {
e.preventDefault();
var $item = $(this);
var $type = $.trim($item.attr('data-type'));
var $url = $item.attr('href');
Ossn.PostRequest({
url: $url,
action: false,
beforeSend: function() {
$item.html('<img src="' + Ossn.site_url + 'components/OssnComments/images/loading.gif" />');
},
callback: function(callback) {
if (callback['done'] == 1) {
$total_guid = Ossn.UrlParams('annotation', $url);
$total = $('.ossn-total-likes-' + $total_guid).attr('data-likes');
if ($type == 'Like') {
$item.html(Ossn.Print('unlike'));
$item.attr('data-type', 'Unlike');
var unlike = $url.replace("like", "unlike");
$item.attr('href', unlike);
$total_likes = $total;
$total_likes++;
$('.ossn-total-likes-' + $total_guid).attr('data-likes', $total_likes);
$('.ossn-total-likes-' + $total_guid).html('<i class="fa fa-thumbs-up"></i>' + $total_likes);
}
if ($type == 'Unlike') {
$item.html(Ossn.Print('like'));
$item.attr('data-type', 'Like');
var like = $url.replace("unlike", "like");
$item.attr('href', like);
if ($total > 1) {
$like_remove = $total;
0
$like_remove--;
$('.ossn-total-likes-' + $total_guid).attr('data-likes', $like_remove);
$('.ossn-total-likes-' + $total_guid).html('<i class="fa fa-thumbs-up"></i>' + $like_remove);
}
if ($total == 1) {
$('.ossn-total-likes-' + $total_guid).attr('data-likes', 0);
$('.ossn-total-likes-' + $total_guid).html('');
}
}
}
if (callback['done'] == 0) {
if ($type == 'Like') {
$item.html(Ossn.Print('like'));
$item.attr('data-type', 'Like');
Ossn.MessageBox('syserror/unknown');
}
if ($type == 'Unlike') {
$item.html(Ossn.Print('unlike'));
$item.attr('data-type', 'Unlike');
Ossn.MessageBox('syserror/unknown');
}
}
},
});
});
});
});

View File

@@ -1,19 +1,49 @@
//<script>
$(document).ready(function() {
$(document).on('click', '#sidebar-toggle', function() {
var $toggle = $(this).attr('data-toggle');
if ($toggle == 0) {
$(this).attr('data-toggle', 1);
$('.sidebar').addClass('sidebar-open');
$('.ossn-page-container').addClass('sidebar-open-page-container');
$('[data-toggle="tooltip"]').tooltip({
placement:'left',
});
//duplicate tooltips in opened left menu #5
$('.sidebar [data-toggle="collapse"]').each(function(){
$text = $(this).text();
$(this).attr('title', $text);
$(this).tooltip();
});
$('.sidebar .sub-menu a').each(function(){
$href = $(this).attr('href');
$text = $(this).text();
$(this).parent().attr('title', $text);
//Sidebar links isn't working as its not actually type of 'a' #4
$(this).parent().attr('data-href-flexi', $href);
$(this).parent().tooltip();
});
//same as $FlexiSidebarToggle only revert toogle == 0, toogel = 1 (if)
$FlexiSidebarToggleRotate = function(){
var $toggle = $('#sidebar-toggle').attr('data-toggle');
if ($toggle == 1) {
$('#sidebar-toggle').attr('data-toggle', 1);
$('[data-toggle="tooltip"]').tooltip('enable');
if($(document).innerWidth() >= 1300 && $('.ossn-page-loading-annimation').is(':visible')){
$('.sidebar').addClass('sidebar-open-no-annimation');
$('.ossn-page-container').addClass('sidebar-open-page-container-no-annimation');
} else {
$('.sidebar').addClass('sidebar-open');
$('.sidebar').removeClass('sidebar-close');
$('.ossn-page-container').addClass('sidebar-open-page-container');
}
$('.topbar .right-side').addClass('right-side-space');
$('.topbar .right-side').addClass('sidebar-hide-contents-xs');
$('.ossn-inner-page').addClass('sidebar-hide-contents-xs');
}
if ($toggle == 1) {
$(this).attr('data-toggle', 0);
if ($toggle == 0) {
$('#sidebar-toggle').attr('data-toggle', 0);
$('[data-toggle="tooltip"]').tooltip('disable');
$('.sidebar').removeClass('sidebar-open');
$('.sidebar').removeClass('sidebar-open-no-annimation');
$('.ossn-page-container').removeClass('sidebar-open-page-container');
$('.ossn-page-container').removeClass('sidebar-open-page-container-no-annimation');
$('.topbar .right-side').removeClass('right-side-space');
$('.topbar .right-side').removeClass('sidebar-hide-contents-xs');
$('.ossn-inner-page').removeClass('sidebar-hide-contents-xs');
@@ -21,16 +51,64 @@ $(document).ready(function() {
$('.topbar .right-side').addClass('right-side-nospace');
$('.sidebar').addClass('sidebar-close');
$('.ossn-page-container').addClass('sidebar-close-page-container');
}
var document_height = $(document).height();
$(".sidebar").height(document_height);
};
$FlexiSidebarToggleRotate();
$FlexiSidebarToggle = function(){
var $toggle = $('#sidebar-toggle').attr('data-toggle');
if ($toggle == 0) {
$('#sidebar-toggle').attr('data-toggle', 1);
$('[data-toggle="tooltip"]').tooltip('enable');
if($(document).innerWidth() >= 1300 && $('.ossn-page-loading-annimation').is(':visible')){
$('.sidebar').addClass('sidebar-open-no-annimation');
$('.ossn-page-container').addClass('sidebar-open-page-container-no-annimation');
} else {
$('.sidebar').addClass('sidebar-open');
$('.sidebar').removeClass('sidebar-close');
$('.ossn-page-container').addClass('sidebar-open-page-container');
}
$('.topbar .right-side').addClass('right-side-space');
$('.topbar .right-side').addClass('sidebar-hide-contents-xs');
$('.ossn-inner-page').addClass('sidebar-hide-contents-xs');
}
if ($toggle == 1) {
$('[data-toggle="tooltip"]').tooltip('disable');
$('#sidebar-toggle').attr('data-toggle', 0);
$('.sidebar').removeClass('sidebar-open');
$('.sidebar').removeClass('sidebar-open-no-annimation');
$('.ossn-page-container').removeClass('sidebar-open-page-container');
$('.ossn-page-container').removeClass('sidebar-open-page-container-no-annimation');
$('.topbar .right-side').removeClass('right-side-space');
$('.topbar .right-side').removeClass('sidebar-hide-contents-xs');
$('.ossn-inner-page').removeClass('sidebar-hide-contents-xs');
$('.topbar .right-side').addClass('right-side-nospace');
$('.sidebar').addClass('sidebar-close');
$('.ossn-page-container').addClass('sidebar-close-page-container');
}
var document_height = $(document).height();
$(".sidebar").height(document_height);
};
$(window).on('orientationchange', function(){
$FlexiSidebarToggleRotate();
});
$(document).on('click', '#sidebar-toggle', function(){
$FlexiSidebarToggle();
});
var $chatsidebar = $('.ossn-chat-windows-long .inner');
if($chatsidebar.length){
$chatsidebar.css('height', $(window).height() - 45);
}
$(document).scroll(function() {
$document_height = $(document).height();
$(".sidebar").height($document_height);
if($chatsidebar.length){
if ($(document).scrollTop() >= 50) {
$chatsidebar.addClass('ossnchat-scroll-top');
@@ -41,4 +119,22 @@ $(document).ready(function() {
}
}
});
if($(document).innerWidth() >= 1300){
$('#sidebar-toggle').click();
$('#sidebar-toggle').click();
}
//Sidebar links isn't working as its not actually type of 'a' #4
$("body").on('click', '.sidebar-menu .menu-content .sub-menu li', function(e){
e.stopPropagation();
$data = $(this).attr('data-href-flexi');
if(e.target !== e.currentTarget) return;
if($data == 'javascript:void(0);'){
$(this).find('a').click();
} else {
window.location = $data;
}
});
});
$(document).ready(function() {
$(".ossn-page-loading-annimation").fadeOut("slow");
});

View File

@@ -1,6 +1,12 @@
<?php
/**
* Atlas
* 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/
*/
foreach ($params['menu'] as $key => $value) {
echo "<li><a href='javascript:void(0);' class='dropdown-toggle' data-toggle='dropdown'>" . $key . "<i class='fa fa-sort-desc'></i></a>";

View File

@@ -1,6 +1,12 @@
<?php
/**
* Atlas
* 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/
*/
$entityextra = $params['menu'];
if($entityextra && ossn_isLoggedin()) {

View File

@@ -1,8 +1,13 @@
<?php
/**
* Atlas
* 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/
*/
$menus = $params['menu'];
foreach($menus as $menu) {
foreach($menu as $link) {

View File

@@ -1,6 +1,12 @@
<?php
/**
* Atlas
* 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/
*/
echo '<ul>';
$i = 0;

View File

@@ -1,6 +1,12 @@
<?php
/**
* Atlas
* 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/
*/
$menus = $params['menu'];
echo "<div class='ossn-menu-search'>";

View File

@@ -1,6 +1,12 @@
<?php
/**
* Atlas
* 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/
*/
$menus = $params['menu'];
?>

View File

@@ -1,4 +1,4 @@
<div class="navbar navbar-default" role="navigation">
<div class="navbar navbar-default navbar-admin-second" role="navigation">
<div class="container">
<div class="row">
<div class="col-12">
@@ -9,7 +9,7 @@
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse" id="navigationbar">
<ul class="nav navbar-nav">
<ul class="nav navbar-nav navbar-right">
<?php echo ossn_view_admin_sidemenu(); ?>
</ul>
<ul class="nav navbar-nav">

View File

@@ -1,6 +1,12 @@
<?php
/**
* Atlas
* 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/
*/
$menus = $params['menu'];
if($menus){

View File

@@ -1,11 +1,32 @@
<?php
/**
* Atlas
* 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/
*/
// get menu_width of profile menu
$menu_width = $params['menu_width'];
global $Ossn;
$ossnmenu = new OssnMenu;
$ossnmenu->sortMenu('user_timeline');
$params['menu'] = $Ossn->menu['user_timeline'];
echo '<ul>';
$i = 0;
$dropdown = false;
foreach($params['menu'] as $menu) {
if($i <= 10) {
if($menu_width != 1) {
// ignore string length in bootstrap xs mode
// and unconditionally display dropdown menu
$i = $i + mb_strlen(ossn_print($menu[0]['text']));
}
if($menu_width != 1 && $i <= $menu_width) {
foreach($menu as $name => $link) {
$class = "menu-user-timeline-" . $link['name'];
if(isset($link['class'])) {
@@ -19,8 +40,18 @@ foreach($params['menu'] as $menu) {
echo "<li>{$link}</li>";
}
} else {
echo "<li class='dropdown'><a href='javascript:void(0);' data-toggle='dropdown' class='dropdown-toggle'>" . ossn_print('more') . "<i class='fa fa-caret-down'></i></a>
<ul class='dropdown-menu'>";
if(!$dropdown) {
if($menu_width == 1) {
// special case for mobile devices
echo "<li class='dropdown'><a href='javascript:void(0);' data-toggle='dropdown' class='dropdown-toggle'>" . "<i class='fa fa-bars fa-2x'></i></a>
<ul class='dropdown-menu'>";
}
else {
echo "<li class='dropdown'><a href='javascript:void(0);' data-toggle='dropdown' class='dropdown-toggle'>" . ossn_print('more') . "<i class='fa fa-caret-down'></i></a>
<ul class='dropdown-menu'>";
}
$dropdown = true;
}
foreach($menu as $name => $link) {
$class = "menu-user-timeline-" . $link['name'];
if(isset($link['class'])) {
@@ -33,9 +64,9 @@ foreach($params['menu'] as $menu) {
$link = ossn_plugin_view('output/url', $link);
echo "<li>{$link}</li>";
}
echo "</ul>
</li>";
}
$i++;
}
echo '</ul>';
if($dropdown) {
echo "</ul></li>";
}
echo '</ul>';

View File

@@ -1,22 +0,0 @@
<?php
/**
* 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
*/
foreach ($params['menu'] as $key => $value) {
echo "<li><a href='javascript:void(0);' class='dropdown-toggle' data-toggle='dropdown'>" . $key . "<i class='fa fa-sort-desc'></i></a>";
echo '<ul class="dropdown-menu multi-level">';
foreach ($value as $link) {
unset($link['parent']);
unset($link['name']);
$link['text'] = ossn_print($link['text']);
$link = ossn_plugin_view('output/url', $link);
echo "<li>{$link}</li>";
}
echo '</ul></li>';
}

View File

@@ -1,28 +0,0 @@
<?php
/**
* 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
*/
$entityextra = $params['menu'];
if($entityextra && ossn_isLoggedin()) {
if(!empty($entityextra)) {
foreach($entityextra as $menu) {
foreach($menu as $link) {
$class = "entity-menu-extra-" . $link['name'];
if(isset($link['class'])) {
$link['class'] = $class . ' ' . $link['class'];
} else {
$link['class'] = $class;
}
unset($link['name']);
$link = ossn_plugin_view('output/url', $link);
echo "<li>$link</li>";
}
}
}
}

View File

@@ -1,23 +0,0 @@
<?php
/**
* 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
*/
$menus = $params['menu'];
foreach($menus as $menu) {
foreach($menu as $link) {
$class = "menu-footer-" . $link['name'];
if(isset($link['class'])) {
$link['class'] = $class . ' ' . $link['class'];
} else {
$link['class'] = $class;
}
unset($link['name']);
echo ossn_plugin_view('output/url', $link);
}
}

View File

@@ -1,47 +0,0 @@
<?php
/**
* 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
*/
echo '<ul>';
$i = 0;
foreach($params['menu'] as $menu) {
if($i <= 3) {
foreach($menu as $name => $link) {
$class = "menu-group-timeline-" . $link['name'];
if(isset($link['class'])) {
$link['class'] = $class . ' ' . $link['class'];
} else {
$link['class'] = $class;
}
unset($link['name']);
$link['text'] = ossn_print($link['text']);
$link = ossn_plugin_view('output/url', $link);
echo "<li>{$link}</li>";
}
} else {
echo "<li><a href='javascript:void(0);'>" . ossn_print('more') . "</a>
<ul>";
foreach($menu as $name => $link) {
$class = "menu-group-timeline-" . $link['name'];
if(isset($link['class'])) {
$link['class'] = $class . ' ' . $link['class'];
} else {
$link['class'] = $class;
}
unset($link['name']);
$link['text'] = ossn_print($link['text']);
$link = ossn_plugin_view('output/url', $link);
echo "<li>{$link}</li>";
}
echo "</ul>
</li>";
}
$i++;
}
echo '</ul>';

View File

@@ -1,26 +0,0 @@
<?php
/**
* 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
*/
$menus = $params['menu'];
echo "<div class='ossn-menu-search'>";
echo '<div class="title">' . ossn_print('result:type') . '</div>';
foreach ($menus as $menu => $val) {
foreach ($val as $link) {
$text = ossn_print($link['text']);
$link = $link['href'];
$class = OssnTranslit::urlize($menu);
echo "<li class='ossn-menu-search-{$class}'>
<a href='{$link}'>
<div class='text'>{$text}</div>
</a>
</li>";
}
}
echo '</div>';

View File

@@ -1,51 +0,0 @@
<?php
/**
* 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
*/
$menus = $params['menu'];
?>
<div class="sidebar-menu-nav">
<div class="sidebar-menu">
<ul id="menu-content" class="menu-content collapse out">
<?php
foreach ($menus as $key => $menu) {
$section = ossn_print($key);
$expend = '';
$icon = "fa-angle-right";
if($key == 'links'){
$expend = 'in';
$icon = "fa-newspaper-o";
}
if($key == 'groups'){
$icon = "fa-users";
}
$hash = md5($key);
?>
<li data-toggle="collapse" data-target="#<?php echo $hash;?>" class="collapsed active">
<a href="#"><i class="fa <?php echo $icon;?> fa-lg"></i><?php echo $section;?><span class="arrow"></span></a>
</li>
<ul class="sub-menu collapse <?php echo $expend;?>" id="<?php echo $hash;?>">
<?php
foreach ($menu as $text => $data) {
$menu = str_replace(':', '-', $text);
$icon = $data[1];
if (!is_array($data[2])) {
$data[2] = array();
}
$args = ossn_args($data[2]);
echo "<li><a {$args} href='{$data[0]}'>{$text}</a></li>";
}
echo "</ul>";
}
?>
</ul>
</div>
</div>

View File

@@ -1,62 +0,0 @@
<div class="navbar navbar-default navbar-admin-second" role="navigation">
<div class="container">
<div class="row">
<div class="col-12">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigationbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse" id="navigationbar">
<ul class="nav navbar-nav navbar-right">
<?php echo ossn_view_admin_sidemenu(); ?>
</ul>
<ul class="nav navbar-nav">
<?php
foreach ($params['menu'] as $key => $links) {
if (count($links) > 1) {
$menu_parent = '<li>
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">'
. ossn_print($key) .
'<i class="fa fa-sort-desc"></i></a>
<ul class="dropdown-menu multi-level">';
foreach ($links as $item) {
$class = "menu-topbar-admin-" . $item['name'];
if(isset($item['class'])) {
$item['class'] = $class . ' ' . $item['class'];
} else {
$item['class'] = $class;
}
unset($item['name']);
unset($item['parent']);
$item['text'] = ossn_print($item['text']);
$link = ossn_plugin_view('output/url', $item);
$menu_parent .= '<li>'.$link.'</li>';
}
$menu_parent .= '</ul></li>';
echo $menu_parent;
} else {
foreach ($links as $item) {
$class = "menu-topbar-admin-" . $item['name'];
if(isset($item['class'])) {
$item['class'] = $class . ' ' . $item['class'];
} else {
$item['class'] = $class;
}
unset($item['name']);
$item['text'] = ossn_print($item['text']);
$link = ossn_plugin_view('output/url', $item);
$menu = '<li>'.$link.'</li>';
}
echo $menu;
}
}
?>
</ul>
</div>
</div>
</div>
</div>
</div>

View File

@@ -1,27 +0,0 @@
<?php
/**
* 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
*/
$menus = $params['menu'];
if($menus){
echo '<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">';
foreach($menus as $menu) {
foreach($menu as $link) {
$class = "menu-topbar-dropdown-" . $link['name'];
if(isset($link['class'])) {
$link['class'] = $class . ' ' . $link['class'];
} else {
$link['class'] = $class;
}
unset($link['name']);
echo "<li>".ossn_plugin_view('output/url', $link)."</li>";
}
}
echo "</ul>";
}

View File

@@ -1,47 +0,0 @@
<?php
/**
* 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
*/
echo '<ul>';
$i = 0;
foreach($params['menu'] as $menu) {
if($i <= 10) {
foreach($menu as $name => $link) {
$class = "menu-user-timeline-" . $link['name'];
if(isset($link['class'])) {
$link['class'] = $class . ' ' . $link['class'];
} else {
$link['class'] = $class;
}
unset($link['name']);
$link['text'] = ossn_print($link['text']);
$link = ossn_plugin_view('output/url', $link);
echo "<li>{$link}</li>";
}
} else {
echo "<li class='dropdown'><a href='javascript:void(0);' data-toggle='dropdown' class='dropdown-toggle'>" . ossn_print('more') . "<i class='fa fa-caret-down'></i></a>
<ul class='dropdown-menu'>";
foreach($menu as $name => $link) {
$class = "menu-user-timeline-" . $link['name'];
if(isset($link['class'])) {
$link['class'] = $class . ' ' . $link['class'];
} else {
$link['class'] = $class;
}
unset($link['name']);
$link['text'] = ossn_print($link['text']);
$link = ossn_plugin_view('output/url', $link);
echo "<li>{$link}</li>";
}
echo "</ul>
</li>";
}
$i++;
}
echo '</ul>';

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
$users = $params['users'];
if (!isset($params['icon_size'])) {

View File

@@ -0,0 +1,43 @@
<?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/
*/
?>
<div class="row ossn-page-contents">
<div class="col-md-7 home-left-contents">
<?php
$contents = ossn_view_form('login2', array(
'id' => 'ossn-login',
'action' => ossn_site_url('action/user/login'),
));
echo ossn_plugin_view('widget/view', array(
'title' => ossn_print('site:login'),
'contents' => $contents,
));
echo ossn_plugin_view('widget/view', array(
'title' => ossn_print('flexi:latest:members'),
'contents' => ossn_plugin_view('flexi/members_widget', array('count' => 20))
));
?>
</div>
<div class="col-md-5">
<?php
$contents = ossn_view_form('signup', array(
'id' => 'ossn-home-signup',
'action' => ossn_site_url('action/user/register')
));
$heading = "<p>".ossn_print('its:free')."</p>";
echo ossn_plugin_view('widget/view', array(
'title' => ossn_print('create:account'),
'contents' => $heading.$contents,
));
?>
</div>
</div>

View File

@@ -2,21 +2,21 @@
/**
* 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/
*/
$pages = range(1, $params['total']);
$args = $params['options'];
//unset non-required vars
unset($_GET['h']);
unset($_GET['p']);
unset($_GET['offset']);
unset($_GET[$args['offset_name']]);
$args_url = OssnPagination::constructUrlArgs();
//if there is only one page don't show pagination
if (count($pages) !== 1) {
@@ -55,27 +55,27 @@ if (count($pages) !== 1) {
}
echo '
<div class="container-table">
<div class="container-table container-table-pagination">
<div class="center-row">
<ul class="pagination ossn-pagination">';
//disaply first if first page is exist
if(isset($first) && !empty($first)){
$url = "?offset={$first}{$args_url}";
$url = "{$args['href']}?{$args['offset_name']}={$first}{$args_url}";
echo "<li><a href='{$url}' class='ossn-pagination-page'>".ossn_print('ossn:pagination:first')."</a></li>";
}
foreach ($pages as $page) {
if ($page == $params['offset']) {
$selected = 'class="active"';
$url = "?offset={$page}{$args_url}";
$url = "{$args['href']}?{$args['offset_name']}={$page}{$args_url}";
echo "<li {$selected}><a href='{$url}'>{$page}</a></li>";
} else {
$url = "?offset={$page}{$args_url}";
$url = "{$args['href']}?{$args['offset_name']}={$page}{$args_url}";
echo "<li><a href='{$url}'>{$page}</a></li>";
}
}
//disply last page if it exist
if(isset($last) && !empty($last)){
$url = "?offset={$last}{$args_url}";
$url = "{$args['href']}?{$args['offset_name']}={$last}{$args_url}";
echo "<li><a href='{$url}'>".ossn_print('ossn:pagination:last')."</a></li>";
}
echo '</ul></div></div>';

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
$site_name = ossn_site_settings('site_name');
if (isset($params['title'])) {
@@ -26,10 +26,10 @@ if (isset($params['contents'])) {
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="<?php echo ossn_add_cache_to_url(ossn_theme_url().'images/favicon.ico');?>" type="image/x-icon" />
<title><?php echo $title; ?></title>
<?php echo ossn_fetch_extend_views('ossn/endpoint'); ?>
<?php echo ossn_fetch_extend_views('ossn/endpoint'); ?>
<?php echo ossn_fetch_extend_views('ossn/admin/head'); ?>
<script>
@@ -53,12 +53,11 @@ if (isset($params['contents'])) {
<div class="container">
<div class="row">
<div class="col-md-6">
<img src="<?php echo ossn_theme_url(); ?>images/logo_admin.jpg"/>
</div>
<div class="col-md-6 col-sm-6 col-xs-6">
<img src="<?php echo ossn_theme_url(); ?>images/logo_admin.jpg"/>
</div>
<?php if(ossn_isAdminLoggedin()){ ?>
<div class="col-md-6 header-dropdown">
<div class="col-md-6 col-sm-6 col-xs-6 header-dropdown">
<ul class="navbar-right">
<div class="dropdown">
<a id="dLabel" role="button" data-toggle="dropdown" data-target="#"><i class="fa fa-bars fa-3"></i></a>
@@ -94,11 +93,10 @@ if (isset($params['contents'])) {
<?php echo ossn_print('copyright'); ?> <?php echo date("Y"); ?> <a href="<?php echo ossn_site_url(); ?>"><?php echo $site_name; ?></a>
</div>
<div class="col-md-6 text-right">
<?php echo 'POWERED <a href="http://www.opensource-socialnetwork.org">OPEN SOURCE SOCIAL NETWORK</a>'; ?>
</div>
</div>
</footer>
<!-- /footer -->
</div> <!-- /container -->
</body>
</html>
</html>

View File

@@ -1,9 +1,10 @@
<footer>
<div class="col-md-11">
<div class="footer-contents">
<div class="ossn-footer-menu">
<?php echo ossn_view_menu('footer'); ?>
</div>
</div>
</div>
</footer>
<div class="col-md-11">
<div class="footer-contents">
<div class="ossn-footer-menu">
<?php echo ossn_view_menu('footer'); ?>
</div>
<?php echo ossn_fetch_extend_views('ossn/page/footer/contents'); ?>
</div>
</div>
</footer>

View File

@@ -3,7 +3,7 @@
return;
}
?>
<div class="sidebar">
<div class="sidebar ">
<div class="sidebar-contents">
<?php
@@ -13,12 +13,12 @@
}
echo ossn_view_form('search', array(
'component' => 'OssnSearch',
'class' => 'ossn-search',
'class' => 'ossn-search visible-xs visible-sm visible',
'autocomplete' => 'off',
'method' => 'get',
'security_tokens' => false,
'action' => ossn_site_url("search"),
), false);
), false);
?>
</div>
</div>

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
$col = "col-md-11";
if($params['admin'] === true){

View File

@@ -1,13 +1,4 @@
<?php
if(ossn_isLoggedin()){
$hide_loggedin = "hidden-xs hidden-sm";
}
?>
<!-- ossn topbar -->
<div class="topbar">
<div class="container">
<div class="row">
<div class="col-md-2 left-side left">
<?php if(ossn_isLoggedin()){ ?>
<div class="topbar-menu-left">
<li id="sidebar-toggle" data-toggle='0'>
@@ -15,12 +6,23 @@
</li>
</div>
<?php } ?>
</div>
<div class="col-md-7 site-name text-center <?php echo $hide_loggedin;?>">
<div class="container-fluid">
<div class="col-md-2 col-sm-4 col-lg-3 hidden-xs site-name <?php echo $hide_loggedin;?>">
<span><a href="<?php echo ossn_site_url();?>"><?php echo ossn_site_settings('site_name');?></a></span>
</div>
<div class="col-md-3 text-right right-side">
</div>
<?php if(ossn_isLoggedin()){ ?>
<div class="col-md-5 hidden-xs hidden-sm">
<div class="topbar-search">
<form method="get" action="<?php echo ossn_site_url("search");?>">
<input type="text" name="q" placeholder="<?php echo ossn_print('ossn:search');?>" onblur="if (this.value=='') { this.value=Ossn.Print('ossn:search'); }" onFocus="if (this.value==Ossn.Print('ossn:search')) { this.value='' };"/>
</form>
</div>
</div>
<?php } ?>
<div class="col-md-4 col-lg-3 col-sm-6 text-right right-side">
<div class="topbar-menu-right">
<ul>
<li class="ossn-topbar-dropdown-menu">
<div class="dropdown">
<?php
@@ -41,9 +43,61 @@
echo ossn_plugin_view('notifications/page/topbar');
}
?>
</ul>
</div>
</div>
</div>
</div>
<?php
if(ossn_isLoggedin()){
$hide_loggedin = "hidden-xs hidden-sm";
}
return;
?>
<!-- ossn topbar -->
<div class="topbar">
<div class="container">
<div class="row">
<div class="col-md-2 left-side left">
<?php if(ossn_isLoggedin()){ ?>
<div class="topbar-menu-left">
<li id="sidebar-toggle" data-toggle='0'>
<a role="button" data-target="#"> <i class="fa fa-th-list"></i></a>
</li>
</div>
<?php } ?>
</div>
<div class="col-md-7 site-name text-center <?php echo $hide_loggedin;?>">
<span><a href="<?php echo ossn_site_url();?>"><?php echo ossn_site_settings('site_name');?></a></span>
</div>
<div class="col-md-3 text-right right-side">
<div class="topbar-menu-right">
<ul>
<li class="ossn-topbar-dropdown-menu">
<div class="dropdown">
<?php
if(ossn_isLoggedin()){
echo ossn_plugin_view('output/url', array(
'role' => 'button',
'data-toggle' => 'dropdown',
'data-target' => '#',
'text' => '<i class="fa fa-sort-desc"></i>',
));
echo ossn_view_menu('topbar_dropdown');
}
?>
</div>
</li>
<?php
if(ossn_isLoggedin()){
echo ossn_plugin_view('notifications/page/topbar');
}
?>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ./ ossn topbar -->
<!-- ./ ossn topbar -->

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
?>
<div class="ossn-layout-admin">
@@ -15,8 +15,8 @@
));
?>
<div class="row">
<div class="page-title"><?php echo $params['title']; ?></div>
<div class="col-md-12 contents">
<div class="page-title"><?php echo $params['title']; ?></div>
<?php echo $params['contents']; ?>
</div>
</div>

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
?>
<div class="ossn-layout-admin">

View File

@@ -2,11 +2,11 @@
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Open Social Website Core Team <info@informatikon.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
* @package Open Source Social Network
* @author Open Social Website 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/
*/
?>
<div class="container">

View File

@@ -2,18 +2,12 @@
/**
* 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/
*/
//unused pagebar skeleton when ads are disabled #628
if(com_is_active('OssnAds')){
$ads = ossn_plugin_view('ads/page/view');
$ads = trim($ads);
}
?>
<div class="container">
<div class="row">
@@ -26,16 +20,17 @@
</div>
</div>
<div class="col-md-3">
<?php if(!empty($ads)){ ?>
<div class="page-sidebar">
<?php if (ossn_is_hook( 'theme', 'sidebar:right')) { ?>
<div class="page-sidebar">
<?php
echo $ads;
?>
</div>
<?php } ?>
$modules = ossn_call_hook('theme', 'sidebar:right', null);
echo implode( '', $modules);
?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php echo ossn_plugin_view('theme/page/elements/footer');?>
</div>
</div>

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
$params['controls'] = (isset($params['controls'])) ? $params['controls'] : '';

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
//unused pagebar skeleton when ads are disabled #628

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
//unused pagebar skeleton when ads are disabled #628

View File

@@ -2,11 +2,11 @@
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Open Social Website Core Team <info@informatikon.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
* @package Open Source Social Network
* @author Open Social Website 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/
*/
?>
<div class="ossn-layout-startup">

View File

@@ -2,13 +2,14 @@
/**
* 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/
*/
$sitename = ossn_site_settings('site_name');
$sitelanguage = ossn_site_settings('language');
if (isset($params['title'])) {
$title = $params['title'] . ' : ' . $sitename;
} else {
@@ -21,13 +22,14 @@ if (isset($params['contents'])) {
}
?>
<!DOCTYPE html>
<html>
<html lang="<?php echo $sitelanguage; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?php echo $title; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="<?php echo ossn_add_cache_to_url(ossn_theme_url().'images/favicon.ico');?>" type="image/x-icon" />
<?php echo ossn_fetch_extend_views('ossn/endpoint'); ?>
<?php echo ossn_fetch_extend_views('ossn/endpoint'); ?>
<?php echo ossn_fetch_extend_views('ossn/site/head'); ?>
<script>
@@ -36,6 +38,11 @@ if (isset($params['contents'])) {
</head>
<body>
<div class="ossn-page-loading-annimation">
<div class="ossn-page-loading-annimation-inner">
<div class="ossn-loading"></div>
</div>
</div>
<div class="ossn-halt ossn-light"></div>
<div class="ossn-message-box"></div>

View File

@@ -2,11 +2,11 @@
/**
* 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/
*/
$class = '';
if(isset($params['class'])){