mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update top menu and Main Social Media Integration in user profile
This commit is contained in:
parent
076bdf9433
commit
4bd92c49bb
11 changed files with 799 additions and 618 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -91,3 +91,4 @@ test.php
|
|||
/.env
|
||||
/plugin/User_Location/install/install.sql
|
||||
/plugin/PedagoFlix/
|
||||
/plugin/YPTWebRTC/
|
||||
|
|
|
@ -2961,7 +2961,8 @@ if (typeof gtag !== \"function\") {
|
|||
return $value;
|
||||
}
|
||||
|
||||
public static function getWebsite($users_id = '') {
|
||||
|
||||
public static function getSocialMediaURL($socialMedia, $users_id = '') {
|
||||
global $config;
|
||||
$obj = AVideoPlugin::getObjectDataIfEnabled("CustomizeUser");
|
||||
if (empty($obj)) {
|
||||
|
@ -2971,10 +2972,14 @@ if (typeof gtag !== \"function\") {
|
|||
$users_id = User::getId();
|
||||
}
|
||||
$user = new User($users_id);
|
||||
$value = $user->getExternalOptions('userWebsite');
|
||||
$value = $user->getExternalOptions($socialMedia);
|
||||
return $value;
|
||||
}
|
||||
|
||||
public static function getWebsite($users_id = '') {
|
||||
return self::getSocialMediaURL('website', $users_id);
|
||||
}
|
||||
|
||||
public static function setProfilePassword($users_id, $value) {
|
||||
$obj = AVideoPlugin::getObjectDataIfEnabled("CustomizeUser");
|
||||
if (empty($obj) || !User::isAdmin()) {
|
||||
|
|
|
@ -13,6 +13,49 @@ require_once $global['systemRootPath'] . 'plugin/CustomizeUser/Objects/Users_aff
|
|||
class CustomizeUser extends PluginAbstract
|
||||
{
|
||||
|
||||
|
||||
|
||||
public static function getSocialMedia()
|
||||
{
|
||||
return [
|
||||
'website' => [
|
||||
'class'=>'icoCopy',
|
||||
'icon' => 'fas fa-globe',
|
||||
'label' => __("Website"),
|
||||
'placeholder' => __("Website URL"),
|
||||
'isActive' => User::canUpload(),
|
||||
],
|
||||
'facebook' => [
|
||||
'class'=>'icoFacebook',
|
||||
'icon' => 'fab fa-facebook-f',
|
||||
'label' => __("Facebook"),
|
||||
'placeholder' => __("Facebook URL"),
|
||||
'isActive' => true,
|
||||
],
|
||||
'twitter' => [
|
||||
'class'=>'icoTwitter',
|
||||
'icon' => 'fab fa-twitter',
|
||||
'label' => __("Twitter"),
|
||||
'placeholder' => __("Twitter URL"),
|
||||
'isActive' => true,
|
||||
],
|
||||
'instagram' => [
|
||||
'class'=>'icoInstagram',
|
||||
'icon' => 'fab fa-instagram',
|
||||
'label' => __("Instagram"),
|
||||
'placeholder' => __("Instagram URL"),
|
||||
'isActive' => true,
|
||||
],
|
||||
'linkedin' => [
|
||||
'class'=>'icoLinkedIn',
|
||||
'icon' => 'fab fa-linkedin-in',
|
||||
'label' => __("LinkedIn"),
|
||||
'placeholder' => __("LinkedIn URL"),
|
||||
'isActive' => true,
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
public function getTags()
|
||||
{
|
||||
return [
|
||||
|
|
|
@ -1,41 +1,58 @@
|
|||
<?php
|
||||
if (User::canUpload()) {
|
||||
?>
|
||||
|
||||
|
||||
foreach (CustomizeUser::getSocialMedia() as $platform => $details) {
|
||||
if (empty($details['isActive'])) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">
|
||||
<?php echo __("Website"); ?>
|
||||
<?php echo $details['label']; ?>
|
||||
</label>
|
||||
<div class="col-md-8 inputGroupContainer">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fas fa-globe"></i></span>
|
||||
<input id="userWebsite" placeholder="<?php echo __("Website"); ?>" class="form-control" type="url" value="<?php echo User::getWebsite(); ?>">
|
||||
<span class="input-group-addon"><i class="<?php echo $details['icon']; ?>"></i></span>
|
||||
<input id="user<?php echo ucfirst($platform); ?>" platform="<?php echo $platform; ?>" placeholder="<?php echo $details['placeholder']; ?>" class="form-control CustomizeUserSocialMedia" type="url" value="<?php echo User::getSocialMediaURL($platform); ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#userWebsite').change(function (e) {
|
||||
saveUserSite();
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var saveTimeout;
|
||||
|
||||
$('.CustomizeUserSocialMedia').on('change keyup', function(e) {
|
||||
clearTimeout(saveTimeout); // Clear the existing timeout
|
||||
|
||||
var platform = $(this).attr('platform');
|
||||
var value = $(this).val();
|
||||
|
||||
saveTimeout = setTimeout(function() {
|
||||
saveUserURL(platform, value);
|
||||
}, 500);
|
||||
});
|
||||
});
|
||||
|
||||
function saveUserSite() {
|
||||
var userWebsite = $('#userWebsite').val();
|
||||
if(empty(userWebsite) || validURL(userWebsite)){
|
||||
|
||||
function saveUserURL(platform, val) {
|
||||
if (empty(val) || validURL(val)) {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL + 'plugin/CustomizeUser/getMyAccount.save.json.php',
|
||||
data: {userWebsite: userWebsite},
|
||||
data: {
|
||||
platform: platform,
|
||||
val: val
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
avideoResponse(response);
|
||||
modal.hidePleaseWait();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</script>
|
|
@ -5,22 +5,41 @@ header('Content-Type: application/json');
|
|||
$obj = new stdClass();
|
||||
$obj->error = true;
|
||||
$obj->msg = "";
|
||||
if(!User::canUpload()){
|
||||
$obj->msg = "Cannot Upload";
|
||||
|
||||
if(empty($_REQUEST['platform'])){
|
||||
$obj->msg = "Platform is empty";
|
||||
die(json_encode($obj));
|
||||
}
|
||||
|
||||
$userWebsite = preg_replace('/[^a-z0-9_\/@.:?&=;%-]/i', '', @$_POST['userWebsite']);
|
||||
$platform = array();
|
||||
|
||||
if(!empty($userWebsite) && !isValidURL($userWebsite)){
|
||||
$obj->msg = "User Site is invalid {$_POST['userWebsite']} = {$userWebsite}";
|
||||
foreach (CustomizeUser::getSocialMedia() as $key => $value) {
|
||||
if($_REQUEST['platform'] === $key){
|
||||
$platform = $value;
|
||||
}
|
||||
}
|
||||
|
||||
if(empty($platform)){
|
||||
$obj->msg = "Platform {$_REQUEST['platform']} not found";
|
||||
die(json_encode($obj));
|
||||
}
|
||||
|
||||
if(empty($platform['isActive'])){
|
||||
$obj->msg = "Platform is not active";
|
||||
die(json_encode($obj));
|
||||
}
|
||||
|
||||
$url = preg_replace('/[^a-z0-9_\/@.:?&=;%-]/i', '', @$_POST['val']);
|
||||
|
||||
if(!empty($url) && !isValidURL($url)){
|
||||
$obj->msg = "URL is invalid {$_POST['url']} = {$url}";
|
||||
die(json_encode($obj));
|
||||
}
|
||||
|
||||
$cobj = AVideoPlugin::getObjectData("CustomizeUser");
|
||||
|
||||
$user = new User(User::getId());
|
||||
$obj->added = $user->addExternalOptions('userWebsite', $userWebsite);
|
||||
$obj->added = $user->addExternalOptions($_REQUEST['platform'], $url);
|
||||
|
||||
$obj->error = empty($obj->added);
|
||||
|
||||
|
|
|
@ -5,15 +5,18 @@ $configFile = $global['systemRootPath'] . 'videos/configuration.php';
|
|||
require_once $configFile;
|
||||
require_once $global['systemRootPath'] . 'plugin/TopMenu/Objects/Menu.php';
|
||||
require_once $global['systemRootPath'] . 'plugin/TopMenu/Objects/MenuItem.php';
|
||||
|
||||
$objTopMenu = AVideoPlugin::getDataObject('TopMenu');
|
||||
$menu = Menu::getAllActive(Menu::$typeTopMenu);
|
||||
$dropdownClass = '';
|
||||
?>
|
||||
<!-- right menu start -->
|
||||
<?php
|
||||
foreach ($menu as $key => $value) {
|
||||
?>
|
||||
<li class="dropdown">
|
||||
<a href="#" class=" btn btn-default btn-light navbar-btn" data-toggle="dropdown" data-toggle="tooltip" title="<?php echo $value['menuName']; ?>" data-placement="bottom" >
|
||||
if (count($menu) < $objTopMenu->compactMenuIfIsGreaterThen->value) {
|
||||
$dropdownClass = 'hidden-lg';
|
||||
foreach ($menu as $key => $value) {
|
||||
?>
|
||||
<li class="dropdown visible-lg">
|
||||
<a href="#" class=" btn btn-default btn-light navbar-btn" data-toggle="dropdown" data-toggle="tooltip" title="<?php echo $value['menuName']; ?>" data-placement="bottom">
|
||||
<?php
|
||||
$hiddenClass = "hidden-md hidden-sm";
|
||||
if (!empty($value['icon'])) {
|
||||
|
@ -28,13 +31,13 @@ foreach ($menu as $key => $value) {
|
|||
</span>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right" id="availableLive" style="">
|
||||
<ul class="dropdown-menu dropdown-menu-right" id="availableLive">
|
||||
<?php
|
||||
$menuItems = MenuItem::getAllFromMenu($value['id'], true);
|
||||
foreach ($menuItems as $key2 => $value2) {
|
||||
?>
|
||||
<li style="margin-right: 0;">
|
||||
<a href="<?php echo $value2['finalURL']; ?>" <?php echo $value2['target']; ?> >
|
||||
<a href="<?php echo $value2['finalURL']; ?>" <?php echo $value2['target']; ?>>
|
||||
<?php
|
||||
if (!empty($value2['icon'])) {
|
||||
?>
|
||||
|
@ -50,7 +53,39 @@ foreach ($menu as $key => $value) {
|
|||
?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- This is for smaller screens (the hamburger menu) -->
|
||||
<div class="<?php echo $dropdownClass; ?>">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="btn btn-default btn-light navbar-btn" data-toggle="dropdown">
|
||||
<i class="fas fa-bars"></i> <b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<?php foreach ($menu as $key => $value) : ?>
|
||||
<li class="dropdown-header"><?php echo __($value['menuName']); ?></li>
|
||||
<?php
|
||||
$menuItems = MenuItem::getAllFromMenu($value['id'], true);
|
||||
foreach ($menuItems as $key2 => $value2) :
|
||||
?>
|
||||
<li style="margin-right: 0;">
|
||||
<a href="<?php echo $value2['finalURL']; ?>" <?php echo $value2['target']; ?>>
|
||||
<?php
|
||||
if (!empty($value2['icon'])) {
|
||||
?>
|
||||
<i class="<?php echo $value2['icon'] ?>"></i>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php echo __($value2['title']); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
</div>
|
||||
<!-- right menu start -->
|
|
@ -38,6 +38,14 @@ class TopMenu extends PluginAbstract {
|
|||
$obj = new stdClass();
|
||||
$obj->show_menu_items = true;
|
||||
|
||||
$o = new stdClass();
|
||||
$o->type = [0=>'Do not compact top menu'];
|
||||
for ($i = 1; $i <= 10; $i++) {
|
||||
$o->type[$i] = "Compact top menus if it is greater then $i items";
|
||||
}
|
||||
$o->value = 4;
|
||||
$obj->compactMenuIfIsGreaterThen = $o;
|
||||
|
||||
return $obj;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,27 +16,31 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
|
||||
<head>
|
||||
<title><?php echo __("Top Menu") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css" />
|
||||
<style>
|
||||
#sortable li{
|
||||
#sortable li {
|
||||
list-style: none;
|
||||
margin: 2px;
|
||||
padding: 5px;
|
||||
}
|
||||
#sortable{
|
||||
|
||||
#sortable {
|
||||
padding: 0;
|
||||
}
|
||||
.ui-state-highlight{
|
||||
|
||||
.ui-state-highlight {
|
||||
height: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?> ">
|
||||
</head>
|
||||
|
||||
<body class="<?php echo $global['bodyClass']; ?> ">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
?>
|
||||
|
@ -122,17 +126,19 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Menus Available</div>
|
||||
<div class="panel-body">
|
||||
<table id="example" class="display table table-striped table-hover" width="100%" cellspacing="0">
|
||||
<table id="topMenuGrid" class="display table table-striped table-hover" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Status</th>
|
||||
<th>Type</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Status</th>
|
||||
<th>Type</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
@ -142,7 +148,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="menuItems" class="tab-pane fade" >
|
||||
<div id="menuItems" class="tab-pane fade">
|
||||
<div class="row">
|
||||
<div class="col-md-8 showWhenHaveId" style="display: none;">
|
||||
<div class="panel panel-default">
|
||||
|
@ -156,7 +162,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
|
||||
<input type="hidden" class="form-control" id="menuItemId">
|
||||
<div class="form-group">
|
||||
<label for="title" >Title:</label>
|
||||
<label for="title">Title:</label>
|
||||
<input type="text" class="form-control" id="title">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -273,6 +279,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
?>
|
||||
<script type="text/javascript" src="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.js"></script>
|
||||
<script>
|
||||
var typeName = <?php echo json_encode(Menu::$typeName); ?>;
|
||||
var currentItem = [];
|
||||
|
||||
function checkIfHasId() {
|
||||
|
@ -319,11 +326,11 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
|
||||
function startSortable() {
|
||||
$("#sortable").sortable({
|
||||
stop: function (event, ui) {
|
||||
stop: function(event, ui) {
|
||||
var menu = {};
|
||||
var itens = [];
|
||||
menu.id = $('#menuId').val();
|
||||
$('#sortable li').each(function () {
|
||||
$('#sortable li').each(function() {
|
||||
itens.push($(this).attr('itemId'));
|
||||
});
|
||||
menu.itens = itens;
|
||||
|
@ -335,7 +342,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
"itens": menu.itens
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
console.log(response);
|
||||
}
|
||||
|
@ -349,12 +356,12 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
clearMenuItemForm();
|
||||
$('#sortable').sortable("destroy");
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/TopMenu/menuItems.json.php',
|
||||
url: webSiteRootURL + 'plugin/TopMenu/menuItems.json.php',
|
||||
data: {
|
||||
"menuId": menu_id
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
console.log(response.data.length);
|
||||
currentItem = response.data;
|
||||
|
@ -381,12 +388,12 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
id = $(t).parent('li').attr('itemid');
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/TopMenu/menuItemDelete.json.php',
|
||||
url: webSiteRootURL + 'plugin/TopMenu/menuItemDelete.json.php',
|
||||
data: {
|
||||
"menuItemId": id
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
console.log(response);
|
||||
$('#item' + id).fadeOut();
|
||||
|
@ -439,9 +446,9 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
|
||||
$(".nav-tabs a[data-toggle=tab]").on("click", function (e) {
|
||||
$(".nav-tabs a[data-toggle=tab]").on("click", function(e) {
|
||||
if ($(this).parent().hasClass("disabled")) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
|
@ -449,7 +456,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
});
|
||||
|
||||
|
||||
$('#pageType').change(function () {
|
||||
$('#pageType').change(function() {
|
||||
console.log($(this).val());
|
||||
if ($(this).val() == 'url' || $(this).val() == 'urlIframe') {
|
||||
$('#divText').slideUp();
|
||||
|
@ -462,24 +469,33 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
|
||||
$('#pageType').trigger('change');
|
||||
|
||||
var table = $('#example').DataTable({
|
||||
"ajax": webSiteRootURL+"plugin/TopMenu/menus.json.php",
|
||||
"columns": [
|
||||
{"data": "menuName"},
|
||||
{"data": "status"}
|
||||
var table = $('#topMenuGrid').DataTable({
|
||||
"ajax": webSiteRootURL + "plugin/TopMenu/menus.json.php",
|
||||
"columns": [{
|
||||
"data": "menuName"
|
||||
},
|
||||
{
|
||||
"data": "status"
|
||||
},
|
||||
{
|
||||
"data": "type",
|
||||
"render": function(data, type, row, meta) {
|
||||
return typeName[data] || data;
|
||||
}
|
||||
}
|
||||
],
|
||||
select: true,
|
||||
|
||||
});
|
||||
|
||||
$('#btnNewMenu').click(function () {
|
||||
$('#btnNewMenu').click(function() {
|
||||
clearMenuForm();
|
||||
});
|
||||
$('#btnNewMenuItem').click(function () {
|
||||
$('#btnNewMenuItem').click(function() {
|
||||
clearMenuItemForm();
|
||||
});
|
||||
|
||||
$('#example tbody').on('click', 'tr', function () {
|
||||
$('#topMenuGrid tbody').on('click', 'tr', function() {
|
||||
var data = table.row(this).data();
|
||||
console.log(data);
|
||||
$('#menuId').val(data.id);
|
||||
|
@ -492,10 +508,10 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
$('#users_groups_id').val(data.users_groups_id);
|
||||
$("#menuIcon").val(data.icon);
|
||||
$("#menuIcon").trigger('change');
|
||||
if(data.type == 8){
|
||||
if (data.type == 8) {
|
||||
$("#menuItemIconDiv").hide();
|
||||
$("#menuItemIconMobileDiv").show();
|
||||
}else{
|
||||
} else {
|
||||
$("#menuItemIconDiv").show();
|
||||
$("#menuItemIconMobileDiv").hide();
|
||||
}
|
||||
|
@ -505,7 +521,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
|
||||
startSortable();
|
||||
$("#sortable").disableSelection();
|
||||
$('#btnSaveMenu').click(function () {
|
||||
$('#btnSaveMenu').click(function() {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: '<?php echo $global['webSiteRootURL']; ?>plugin/TopMenu/menuSave.json.php',
|
||||
|
@ -521,7 +537,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
"icon": $("#menuIcon").val()
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
console.log(response);
|
||||
table.ajax.reload();
|
||||
|
@ -529,7 +545,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
}
|
||||
});
|
||||
});
|
||||
$('#btnSaveMenuItem').click(function () {
|
||||
$('#btnSaveMenuItem').click(function() {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: '<?php echo $global['webSiteRootURL']; ?>plugin/TopMenu/menuItemSave.json.php',
|
||||
|
@ -549,14 +565,14 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
"mobileicon": $("#menuItemIconMobile").val()
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
console.log(response);
|
||||
loadItems($('#menuId').val());
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#btnDeleteMenu').click(function () {
|
||||
$('#btnDeleteMenu').click(function() {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: '<?php echo $global['webSiteRootURL']; ?>plugin/TopMenu/menuDelete.json.php',
|
||||
|
@ -564,7 +580,7 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
"menuId": $('#menuId').val()
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
console.log(response);
|
||||
table.ajax.reload();
|
||||
|
@ -572,11 +588,12 @@ $groups = UserGroups::getAllUsersGroups();
|
|||
}
|
||||
});
|
||||
});
|
||||
$('#btnEditMenuItens').click(function () {
|
||||
$('#btnEditMenuItens').click(function() {
|
||||
$('#menuItemsTabButton').tab('show');
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
BIN
view/.rnd
Normal file
BIN
view/.rnd
Normal file
Binary file not shown.
|
@ -87,42 +87,51 @@ $showChannelProgramsTab = $advancedCustomUser->showChannelProgramsTab && !empty(
|
|||
?>
|
||||
|
||||
<style>
|
||||
#aboutArea #aboutAreaPreContent{
|
||||
#aboutArea #aboutAreaPreContent {
|
||||
max-height: 120px;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.25s ease-out;
|
||||
overflow: hidden;
|
||||
}
|
||||
#aboutAreaPreContent{
|
||||
|
||||
#aboutAreaPreContent {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
#aboutArea.expanded #aboutAreaPreContent{
|
||||
|
||||
#aboutArea.expanded #aboutAreaPreContent {
|
||||
max-height: 1500px;
|
||||
overflow: auto;
|
||||
transition: max-height 0.25s ease-in;
|
||||
}
|
||||
#aboutAreaShowMoreBtn{
|
||||
|
||||
#aboutAreaShowMoreBtn {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
#aboutArea .showMore{
|
||||
|
||||
#aboutArea .showMore {
|
||||
display: block;
|
||||
}
|
||||
#aboutArea .showLess{
|
||||
|
||||
#aboutArea .showLess {
|
||||
display: none;
|
||||
}
|
||||
#aboutArea.expanded .showMore{
|
||||
|
||||
#aboutArea.expanded .showMore {
|
||||
display: none;
|
||||
}
|
||||
#aboutArea.expanded .showLess{
|
||||
|
||||
#aboutArea.expanded .showLess {
|
||||
display: block;
|
||||
}
|
||||
#channelHome{
|
||||
|
||||
#channelHome {
|
||||
background-color: rgb(<?php echo $obj->backgroundRGB; ?>);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.feedDropdown{
|
||||
|
||||
.feedDropdown {
|
||||
margin-right: 4px;
|
||||
}
|
||||
</style>
|
||||
|
@ -130,7 +139,7 @@ $showChannelProgramsTab = $advancedCustomUser->showChannelProgramsTab && !empty(
|
|||
<div class="clearfix"></div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="gallery" >
|
||||
<div class="gallery">
|
||||
<div class="row clearfix">
|
||||
<div class="col-lg-12 col-sm-12 col-xs-12">
|
||||
<center style="margin:5px;">
|
||||
|
@ -155,7 +164,7 @@ $showChannelProgramsTab = $advancedCustomUser->showChannelProgramsTab && !empty(
|
|||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;">
|
||||
<img src="<?php echo User::getPhoto($user_id); ?>" alt="<?php echo $user->_getName(); ?>" class="img img-responsive img-thumbnail" style="max-width: 100px;"/>
|
||||
<img src="<?php echo User::getPhoto($user_id); ?>" alt="<?php echo $user->_getName(); ?>" class="img img-responsive img-thumbnail" style="max-width: 100px;" />
|
||||
</div>
|
||||
</a>
|
||||
<?php
|
||||
|
@ -163,7 +172,7 @@ $showChannelProgramsTab = $advancedCustomUser->showChannelProgramsTab && !empty(
|
|||
?>
|
||||
<div class="clearfix" style="clear: both;"></div>
|
||||
<a href="<?php echo User::getWebsite($user_id); ?>" target="_blank">
|
||||
<img src="<?php echo User::getPhoto($user_id); ?>" alt="<?php echo $user->_getName(); ?>" class="img img-responsive img-thumbnail" style="max-width: 100px;"/>
|
||||
<img src="<?php echo User::getPhoto($user_id); ?>" alt="<?php echo $user->_getName(); ?>" class="img img-responsive img-thumbnail" style="max-width: 100px;" />
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
|
@ -178,6 +187,29 @@ $showChannelProgramsTab = $advancedCustomUser->showChannelProgramsTab && !empty(
|
|||
<?php
|
||||
echo User::getEmailVerifiedIcon($user_id)
|
||||
?></h2>
|
||||
<?php
|
||||
$socialMedia = CustomizeUser::getSocialMedia();
|
||||
?>
|
||||
<ul class="social-network social-circle">
|
||||
<?php
|
||||
foreach ($socialMedia as $platform => $details) {
|
||||
if ($details['isActive']) {
|
||||
$url = User::getSocialMediaURL($platform, $user_id);
|
||||
if (!empty($url)) {
|
||||
?>
|
||||
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" target="_blank" class="<?php echo $details['class']; ?>" title="<?php echo $details['label']; ?>" data-toggle="tooltip">
|
||||
<i class="<?php echo $details['icon']; ?>"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<span class="pull-right">
|
||||
<?php
|
||||
echo getUserOnlineLabel($user_id, 'pull-right', 'padding: 0 5px;');
|
||||
|
@ -214,7 +246,7 @@ $showChannelProgramsTab = $advancedCustomUser->showChannelProgramsTab && !empty(
|
|||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
if ($('#aboutArea').height() < $('#aboutAreaContent').height()) {
|
||||
$('#aboutAreaShowMoreBtn').show();
|
||||
}
|
||||
|
@ -316,7 +348,7 @@ $showChannelProgramsTab = $advancedCustomUser->showChannelProgramsTab && !empty(
|
|||
$active = '';
|
||||
}
|
||||
?>
|
||||
<div class="tab-pane <?php echo $active; ?>" id="channelLive" >
|
||||
<div class="tab-pane <?php echo $active; ?>" id="channelLive">
|
||||
<?php
|
||||
//createGallerySection($videos, $crc = "", $get = array(), $ignoreAds = false, $screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0, $galeryDetails = true)
|
||||
//var_dump($screenColsLarge, $screenColsMedium);exit;
|
||||
|
@ -334,10 +366,12 @@ $showChannelProgramsTab = $advancedCustomUser->showChannelProgramsTab && !empty(
|
|||
}
|
||||
$obj = AVideoPlugin::getObjectData("YouPHPFlix2");
|
||||
?>
|
||||
<style>#bigVideo{
|
||||
<style>
|
||||
#bigVideo {
|
||||
top: 0 !important;
|
||||
}</style>
|
||||
<div class="tab-pane <?php echo $active; ?>" id="channelHome" >
|
||||
}
|
||||
</style>
|
||||
<div class="tab-pane <?php echo $active; ?>" id="channelHome">
|
||||
<?php
|
||||
$obj->BigVideo = true;
|
||||
$obj->PlayList = false;
|
||||
|
|
|
@ -24,7 +24,9 @@ ul.social-network li {
|
|||
.social-network a.icoWhatsapp:hover {
|
||||
background-color: #25D366;
|
||||
}
|
||||
|
||||
.social-network a.icoInstagram:hover {
|
||||
background-color: #E4405F;
|
||||
}
|
||||
.social-network a.icoFacebook:hover {
|
||||
background-color: #3B5998;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue