Add icon placeholder for images in image grid
This commit is contained in:
parent
3cc469c0b7
commit
fad760f46a
5 changed files with 15 additions and 4 deletions
|
@ -813,12 +813,14 @@ class Profile
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the visitor cookies (see remote_user()) for signed HTTP requests
|
* Set the visitor cookies (see remote_user()) for signed HTTP requests
|
||||||
(
|
*
|
||||||
|
* @param array $server The content of the $_SERVER superglobal
|
||||||
* @return array Visitor contact array
|
* @return array Visitor contact array
|
||||||
|
* @throws InternalServerErrorException
|
||||||
*/
|
*/
|
||||||
public static function addVisitorCookieForHTTPSigner(): array
|
public static function addVisitorCookieForHTTPSigner(array $server): array
|
||||||
{
|
{
|
||||||
$requester = HTTPSignature::getSigner('', $_SERVER);
|
$requester = HTTPSignature::getSigner('', $server);
|
||||||
if (empty($requester)) {
|
if (empty($requester)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ class Photo extends BaseApi
|
||||||
throw new NotModifiedException();
|
throw new NotModifiedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
Profile::addVisitorCookieForHTTPSigner();
|
Profile::addVisitorCookieForHTTPSigner($this->server);
|
||||||
|
|
||||||
$customsize = 0;
|
$customsize = 0;
|
||||||
$square_resize = true;
|
$square_resize = true;
|
||||||
|
|
|
@ -697,6 +697,7 @@ audio {
|
||||||
*/
|
*/
|
||||||
.imagegrid-row figure {
|
.imagegrid-row figure {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background: center / auto rgba(0, 0, 0, 0.05) url(/images/icons/image.png) no-repeat;
|
||||||
}
|
}
|
||||||
.imagegrid-row figure img{
|
.imagegrid-row figure img{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -394,3 +394,7 @@ input[type="text"].tt-input {
|
||||||
textarea#profile-jot-text:focus + #preview_profile-jot-text, textarea.comment-edit-text:focus + .comment-edit-form .preview {
|
textarea#profile-jot-text:focus + #preview_profile-jot-text, textarea.comment-edit-text:focus + .comment-edit-form .preview {
|
||||||
border-color: $link_color;
|
border-color: $link_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imagegrid-row figure {
|
||||||
|
background-color: rgba(255, 255, 255, 0.15);
|
||||||
|
}
|
||||||
|
|
|
@ -354,3 +354,7 @@ input[type="text"].tt-input {
|
||||||
textarea#profile-jot-text:focus + #preview_profile-jot-text, textarea.comment-edit-text:focus + .comment-edit-form .preview {
|
textarea#profile-jot-text:focus + #preview_profile-jot-text, textarea.comment-edit-text:focus + .comment-edit-form .preview {
|
||||||
border-color: $link_color;
|
border-color: $link_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imagegrid-row figure {
|
||||||
|
background-color: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue