diff --git a/bootstrap/app.php b/bootstrap/app.php index 49a445dcc..efe3bb62f 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -8,6 +8,7 @@ return Application::configure(basePath: dirname(__DIR__)) ->withProviders([ \Laravel\Tinker\TinkerServiceProvider::class, \Jrean\UserVerification\UserVerificationServiceProvider::class, + \Creativeorange\Gravatar\GravatarServiceProvider::class, ]) ->withRouting( web: __DIR__.'/../routes/web.php', diff --git a/composer.json b/composer.json index 758b10ae4..c99f8d184 100644 --- a/composer.json +++ b/composer.json @@ -48,6 +48,7 @@ "bacon/bacon-qr-code": "^3.0", "bhuvidya/laravel-countries": "^12.0", "canihavesomecoffee/thetvdbapi": "^2.0", + "creativeorange/gravatar": "^1.0", "dariusiii/php-itunes-api": "^1.0", "dariusiii/rarinfo": "^2.7", "dariusiii/tmdb-laravel": "^12.0.2", diff --git a/composer.lock b/composer.lock index 9573526fb..60ed5ddab 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d0809773ded068c21a774f5f691a8a4c", + "content-hash": "32bc7137edb3722892750a12718cec6f", "packages": [ { "name": "aharen/omdbapi", @@ -853,6 +853,69 @@ ], "time": "2025-03-06T14:30:56+00:00" }, + { + "name": "creativeorange/gravatar", + "version": "v1.0.25", + "source": { + "type": "git", + "url": "https://github.com/brainpink/gravatar.git", + "reference": "21ba6cbe125d57965c58468047ea29dfa822b4d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brainpink/gravatar/zipball/21ba6cbe125d57965c58468047ea29dfa822b4d3", + "reference": "21ba6cbe125d57965c58468047ea29dfa822b4d3", + "shasum": "" + }, + "require": { + "illuminate/support": "^5|^6|^7|^8|^9|^10.0|^11.0|^12.0", + "php": ">=5.4.0" + }, + "require-dev": { + "nunomaduro/larastan": "^0.6.2|^2.4", + "orchestra/testbench": "^5.4|^8.0|^9.0|^10.0", + "php": ">=7.2" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Gravatar": "Creativeorange\\Gravatar\\Facades\\Gravatar" + }, + "providers": [ + "Creativeorange\\Gravatar\\GravatarServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Creativeorange\\Gravatar\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaco Tijssen", + "email": "jaco@creativeorange.nl", + "homepage": "https://www.creativeorange.nl", + "role": "Developer" + } + ], + "description": "A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.", + "keywords": [ + "avatar", + "gravatar", + "laravel" + ], + "support": { + "issues": "https://github.com/brainpink/gravatar/issues", + "source": "https://github.com/brainpink/gravatar/tree/v1.0.25" + }, + "time": "2025-02-22T19:11:54+00:00" + }, { "name": "dariusiii/php-itunes-api", "version": "1.0.12", diff --git a/config/app.php b/config/app.php index d004fa8c5..988c13f53 100644 --- a/config/app.php +++ b/config/app.php @@ -7,6 +7,7 @@ return [ 'aliases' => Facade::defaultAliases()->merge([ 'RedisManager' => Illuminate\Support\Facades\Redis::class, 'UserVerification' => Jrean\UserVerification\Facades\UserVerification::class, + 'Gravatar' => Creativeorange\Gravatar\Facades\Gravatar::class, ])->toArray(), ]; diff --git a/config/gravatar.php b/config/gravatar.php new file mode 100644 index 000000000..7fb602fc2 --- /dev/null +++ b/config/gravatar.php @@ -0,0 +1,34 @@ + [ + + // By default, images are presented at 80px by 80px if no size parameter is supplied. + // You may request a specific image size, which will be dynamically delivered from Gravatar + // by passing a single pixel dimension (since the images are square): + 'size' => 80, + + // the fallback image, can be a string or a url + // for more info, visit: https://docs.gravatar.com/api/avatars/images/#default-image + 'fallback' => 'mp', + + // would you like to return a https://... image + 'secure' => false, + + // Gravatar allows users to self-rate their images so that they can indicate if an image + // is appropriate for a certain audience. By default, only 'G' rated images are displayed + // unless you indicate that you would like to see higher ratings. + // Available options: + // g: suitable for display on all websites with any audience type. + // pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence. + // r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use. + // x: may contain hardcore sexual imagery or extremely disturbing violence. + 'maximumRating' => 'g', + + // If for some reason you wanted to force the default image to always load, you can do that setting this to true + 'forceDefault' => false, + + // If you require a file-type extension (some places do) then you may also add an (optional) .jpg extension to that URL + 'forceExtension' => 'jpg', + ] +]; diff --git a/resources/views/themes/Gentele/headermenu.tpl b/resources/views/themes/Gentele/headermenu.tpl index b58f89ef7..177135e9e 100755 --- a/resources/views/themes/Gentele/headermenu.tpl +++ b/resources/views/themes/Gentele/headermenu.tpl @@ -225,19 +225,9 @@ - - +