mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
051ed8520e
commit
1972eded06
@ -648,14 +648,15 @@ public static function show_avatar($Avatar, $UserID, $Username, $Setting, $Size
|
|||||||
switch ($Setting) {
|
switch ($Setting) {
|
||||||
case 0:
|
case 0:
|
||||||
if (!empty($Avatar)) {
|
if (!empty($Avatar)) {
|
||||||
$ToReturn = ($ReturnHTML ? "<img src=\"$Avatar\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar $Class />" : $Avatar);
|
$ToReturn = ($ReturnHTML ? "<div><img src=\"$Avatar\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar $Class /></div>" : $Avatar);
|
||||||
} else {
|
} else {
|
||||||
$URL = STATIC_SERVER.'common/avatars/default.png';
|
$URL = STATIC_SERVER.'common/avatars/default.png';
|
||||||
$ToReturn = ($ReturnHTML ? "<img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar />" : $URL);
|
$ToReturn = ($ReturnHTML ? "<div><img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar /></div>" : $URL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$ShowAvatar = true;
|
$ShowAvatar = true;
|
||||||
|
// Fallthrough
|
||||||
case 3:
|
case 3:
|
||||||
switch (G::$LoggedUser['Identicons']) {
|
switch (G::$LoggedUser['Identicons']) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -692,14 +693,14 @@ public static function show_avatar($Avatar, $UserID, $Username, $Setting, $Size
|
|||||||
$URL = 'https://robohash.org/'.md5($Username)."?set=set$Type&size={$Size}x$Size";
|
$URL = 'https://robohash.org/'.md5($Username)."?set=set$Type&size={$Size}x$Size";
|
||||||
}
|
}
|
||||||
if ($ShowAvatar == true && !empty($Avatar)) {
|
if ($ShowAvatar == true && !empty($Avatar)) {
|
||||||
$ToReturn = ($ReturnHTML ? "<img src=\"$Avatar\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar $Class />" : $Avatar);
|
$ToReturn = ($ReturnHTML ? "<div><img src=\"$Avatar\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar $Class /></div>" : $Avatar);
|
||||||
} else {
|
} else {
|
||||||
$ToReturn = ($ReturnHTML ? "<img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar $Class />" : $URL);
|
$ToReturn = ($ReturnHTML ? "<div><img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar $Class /></div>" : $URL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$URL = STATIC_SERVER.'common/avatars/default.png';
|
$URL = STATIC_SERVER.'common/avatars/default.png';
|
||||||
$ToReturn = ($ReturnHTML ? "<img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar $Class/>" : $URL);
|
$ToReturn = ($ReturnHTML ? "<div><img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar $Class/></div>" : $URL);
|
||||||
}
|
}
|
||||||
return $ToReturn;
|
return $ToReturn;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ var ARTIST_AUTOCOMPLETE_URL = 'artist.php?action=autocomplete';
|
|||||||
var TAGS_AUTOCOMPLETE_URL = 'torrents.php?action=autocomplete_tags';
|
var TAGS_AUTOCOMPLETE_URL = 'torrents.php?action=autocomplete_tags';
|
||||||
var SELECTOR = '[data-gazelle-autocomplete="true"]';
|
var SELECTOR = '[data-gazelle-autocomplete="true"]';
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var url = new URL();
|
var url = new gazURL();
|
||||||
|
|
||||||
$('#artistsearch' + SELECTOR).autocomplete({
|
$('#artistsearch' + SELECTOR).autocomplete({
|
||||||
deferRequestBy: 300,
|
deferRequestBy: 300,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var username;
|
var username;
|
||||||
var postid;
|
var postid;
|
||||||
var url = new URL();
|
var url = new gazURL();
|
||||||
|
|
||||||
function QuoteJump(event, post) {
|
function QuoteJump(event, post) {
|
||||||
var button = event.button;
|
var button = event.button;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var url = new URL();
|
var url = new gazURL();
|
||||||
var query = url.query;
|
var query = url.query;
|
||||||
switch (url.path) {
|
switch (url.path) {
|
||||||
case "forums":
|
case "forums":
|
||||||
|
@ -194,7 +194,7 @@ var util = function (selector, context) {
|
|||||||
return new util.fn.init(selector, context);
|
return new util.fn.init(selector, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
function URL() {
|
function gazURL() {
|
||||||
var path = window.location.pathname.split('/');
|
var path = window.location.pathname.split('/');
|
||||||
var path = path[path.length - 1].split(".")[0];
|
var path = path[path.length - 1].split(".")[0];
|
||||||
var splitted = window.location.search.substr(1).split("&");
|
var splitted = window.location.search.substr(1).split("&");
|
||||||
|
@ -14,7 +14,7 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function getSkippedPage() {
|
function getSkippedPage() {
|
||||||
var skip, url = new URL();
|
var skip, url = new gazURL();
|
||||||
switch(url.path) {
|
switch(url.path) {
|
||||||
case "inbox":
|
case "inbox":
|
||||||
if (url.query.length == 0 || (url.query.length == 1 && url.query.hasOwnProperty('sort'))) {
|
if (url.query.length == 0 || (url.query.length == 1 && url.query.hasOwnProperty('sort'))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user