fix movie view icon
This commit is contained in:
parent
a807a12d1f
commit
f49f60c7c3
5 changed files with 23 additions and 16 deletions
|
@ -1,9 +1,9 @@
|
|||
APP_NAME=123movies
|
||||
APP_ENV=local
|
||||
APP_KEY=base64:c+t+ur1YkrxRCrN4AVKv/NntmB+UShx1y/iSw4d3KmM=
|
||||
APP_DEBUG=true
|
||||
APP_DEBUG=false
|
||||
APP_URL=https://playlab.test
|
||||
|
||||
DEBUGBAR_ENABLED=false
|
||||
LOG_CHANNEL=stack
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
LOG_LEVEL=debug
|
||||
|
@ -26,9 +26,9 @@ SESSION_LIFETIME=120
|
|||
|
||||
MEMCACHED_HOST=127.0.0.1
|
||||
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_HOST=/var/lib/redis/redis.sock
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
REDIS_PORT=-1
|
||||
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_HOST=mailhog
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
use App\Supports\Traits\Helpers;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Redis;
|
||||
use Symfony\Component\Cache\Adapter\RedisAdapter;
|
||||
use Symfony\Component\Cache\Adapter\RedisTagAwareAdapter;
|
||||
use Tmdb\Client;
|
||||
|
@ -28,7 +29,7 @@ class TmdbClient
|
|||
use CleanItems, Helpers;
|
||||
private static $instance;
|
||||
private $ttl = 3600*24;
|
||||
private $use_cache = true;
|
||||
private $use_cache = false;
|
||||
/** @var Client $client **/
|
||||
public $client;
|
||||
private static $api_keys = ['aba8176c9250ba755ca1783de87528a2', '5c6763d6500cc611d442a5414e951c05'];
|
||||
|
@ -74,7 +75,7 @@ public function __construct($tmdb_key = null, $use_cache = false, $cache_time =
|
|||
*/
|
||||
// $cache = new FilesystemAdapter('php-tmdb', 86400, '/home/cache');
|
||||
$redisConnection = RedisAdapter::createConnection('redis:///var/lib/redis/redis.sock/15');
|
||||
$cache = new RedisTagAwareAdapter($redisConnection, 43200);
|
||||
$cache = new RedisTagAwareAdapter($redisConnection, 3600*24);
|
||||
// $requestListener = new RequestListener($client->getHttpClient(), $ed);
|
||||
$requestListener = new Psr6CachedRequestListener(
|
||||
$client->getHttpClient(),
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
],
|
||||
'tmdb' => [
|
||||
'key' => env('TMDB_KEY', 'a07e22bc18f5cb106bfe4cc1f83ad8ed'),
|
||||
'use_cache' => env('TMDB_USE_CACHE', true),
|
||||
'use_cache' => env('TMDB_USE_CACHE', false),
|
||||
'cache_ttl' => env('TMDB_CACHE_TTL', 3600*24),
|
||||
],
|
||||
'api' => [
|
||||
|
|
|
@ -21,20 +21,26 @@
|
|||
@if(request()->routeIs('home'))
|
||||
<div class="col-lg-2 col-sm-4 mb-50">
|
||||
<div class="footer-widget">
|
||||
<h4 class="footer-widget__title">@lang('Short Links')</h4>
|
||||
<p class="footer-widget__title h4">Top Sources</p>
|
||||
<ul class="link-list">
|
||||
<li><a href="#">Link</a></li>
|
||||
<li><a href="https://netflix.com">Netflix</a></li>
|
||||
<li><a href="https://primevideo.com">Prime Video</a></li>
|
||||
<li><a href="https://freevee.com">Freevee</a></li>
|
||||
<li><a href="https://fairfan.com">FairFan</a></li>
|
||||
<li><a href="https://disneyplus.com">Disney+</a></li>
|
||||
</ul>
|
||||
</div><!-- footer-widget end -->
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-lg-2 col-sm-4 mb-50">
|
||||
<div class="footer-widget">
|
||||
<h4 class="footer-widget__title">@lang('Category')</h4>
|
||||
<p class="footer-widget__title h4">Best Genres</p>
|
||||
<ul class="link-list">
|
||||
{{-- @foreach ($links as $link)
|
||||
<li><a href="{{ route('links', [$link->id, slug($link->data_values->title)]) }}">{{ __($link->data_values->title) }}</a></li>
|
||||
@endforeach --}}
|
||||
<li><a href="/movies/adventure">Adventure</a></li>
|
||||
<li><a href="/movies/action">Action</a></li>
|
||||
<li><a href="/movies/drama">Drama</a></li>
|
||||
<li><a href="/movies/comedy">Comedy</a></li>
|
||||
<li><a href="/movies/horror">Horror</a></li>
|
||||
</ul>
|
||||
</div><!-- footer-widget end -->
|
||||
</div>
|
||||
|
@ -53,12 +59,12 @@
|
|||
</button>
|
||||
</form>
|
||||
<div class="download-links">
|
||||
<a class="download-links__item" href="javascript:void(0);">
|
||||
{{-- <a class="download-links__item" href="javascript:void(0);">
|
||||
<img class="lazy" data-src="{{asset('images/google_play.png')}}" alt="Google Play">
|
||||
</a>
|
||||
<a class="download-links__item" href="javascript:void(0);">
|
||||
<img class="lazy" data-src="{{asset('images/app_store.png')}}" alt="Apple App Store">
|
||||
</a>
|
||||
</a>--}}
|
||||
|
||||
{{-- @foreach ($footerElement as $footer)
|
||||
<a class="download-links__item" href="#" target="_blank">
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
<span class="movie-widget">
|
||||
<i class="base--color">
|
||||
<svg class="si">
|
||||
<use href="#si-star"></use>
|
||||
<use href="#si-eye"></use>
|
||||
</svg>
|
||||
</i>
|
||||
<span>{{$movie['vote_count']}} views</span>
|
||||
|
|
Loading…
Reference in a new issue