]> git.mxchange.org Git - friendica.git/commitdiff
Add icon placeholder for images in image grid
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Sep 2023 21:03:59 +0000 (17:03 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 24 Sep 2023 02:20:16 +0000 (22:20 -0400)
src/Model/Profile.php
src/Module/Photo.php
view/global.css
view/theme/frio/scheme/black.css
view/theme/frio/scheme/dark.css

index b80c83881adda94b03b4788306bbcd476d7a3019..9c7aab54ad6aa1b59ed4f3e079415b562f08ad17 100644 (file)
@@ -813,12 +813,14 @@ class Profile
 
        /**
         * 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
+        * @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)) {
                        return [];
                }
index c8e0656d2df62ac9014697cdabd14a636ad73526..be2408edf21c94f70be6bbc1493d1522c045f1bd 100644 (file)
@@ -77,7 +77,7 @@ class Photo extends BaseApi
                        throw new NotModifiedException();
                }
 
-               Profile::addVisitorCookieForHTTPSigner();
+               Profile::addVisitorCookieForHTTPSigner($this->server);
 
                $customsize = 0;
                $square_resize = true;
index 054ac05159f8cb2e1e85b478e805566433b07dce..6bee34b8bc6f3b3391bc0d0a9f476c396af5df1c 100644 (file)
@@ -697,6 +697,7 @@ audio {
  */
 .imagegrid-row figure {
        position: relative;
+       background: center / auto rgba(0, 0, 0, 0.05) url(/images/icons/image.png) no-repeat;
 }
 .imagegrid-row figure img{
        position: absolute;
index debf9d99b3e12af2f6d5b23b97a245c310c67a8f..21a40f1c7c4d47b0a6bacf96c5bf94a7fea9ce71 100644 (file)
@@ -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 {
        border-color: $link_color;
 }
+
+.imagegrid-row figure {
+       background-color: rgba(255, 255, 255, 0.15);
+}
index add36fff1041d9eaac4a9b22cb2feed393cff8e6..29b2782da28e893ea8494e8f334d71d5ed718fb6 100644 (file)
@@ -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 {
        border-color: $link_color;
 }
+
+.imagegrid-row figure {
+       background-color: rgba(255, 255, 255, 0.05);
+}