Commit 857e30dd by Bagus Pambudi

sharing berita

parent 60f1671d
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:0DY3LE2PKSClukVHI7ObFr0HvWfr9mNdPsKWiNa2LE0=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=wpss
DB_USERNAME=bagus
DB_PASSWORD=root
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
......@@ -202,9 +202,11 @@ class PostController extends Controller
return $data;
}
// public function ShareWidget()
// public function ShareWidget($title)
// {
// // $setting = webprofilesetting();
// $setting = webprofilesetting();
// $data=$this->getDataId($setting, $title);
// $shareComponent = \Share::page(
// 'https://www.positronx.io/create-autocomplete-search-in-laravel-with-typeahead-js/',
// 'Your share text comes here',
......@@ -215,7 +217,7 @@ class PostController extends Controller
// ->telegram()
// ->whatsapp()
// ->reddit();
// return view('webprofile.front.'.$setting['theme'].'.post', $data, compact('shareComponent'));
// // dd($shareComponent);
// return view('webprofile.front.'.$setting['theme'].'.post', compact('shareComponent', 'data', 'title'));
// }
}
......@@ -14,7 +14,6 @@
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.4",
"jenssegers/agent": "^2.6",
"jorenvanhocht/laravel-share": "^4.1",
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^5.8.0",
......
......@@ -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": "76275e824b26125a38259cb591e61a71",
"content-hash": "58b660faa54f724bff327d673b4851f0",
"packages": [
{
"name": "anhskohbo/no-captcha",
......@@ -605,24 +605,21 @@
},
{
"name": "ezyang/htmlpurifier",
"version": "v4.13.0",
"version": "v4.14.0",
"source": {
"type": "git",
"url": "https://github.com/ezyang/htmlpurifier.git",
"reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75"
"reference": "12ab42bd6e742c70c0a52f7b82477fcd44e64b75"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
"reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
"url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/12ab42bd6e742c70c0a52f7b82477fcd44e64b75",
"reference": "12ab42bd6e742c70c0a52f7b82477fcd44e64b75",
"shasum": ""
},
"require": {
"php": ">=5.2"
},
"require-dev": {
"simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd"
},
"type": "library",
"autoload": {
"psr-0": {
......@@ -653,9 +650,9 @@
],
"support": {
"issues": "https://github.com/ezyang/htmlpurifier/issues",
"source": "https://github.com/ezyang/htmlpurifier/tree/master"
"source": "https://github.com/ezyang/htmlpurifier/tree/v4.14.0"
},
"time": "2020-06-29T00:56:53+00:00"
"time": "2021-12-25T01:21:49+00:00"
},
{
"name": "facebook/graph-sdk",
......@@ -1262,69 +1259,6 @@
"time": "2020-06-13T08:05:20+00:00"
},
{
"name": "jorenvanhocht/laravel-share",
"version": "4.1.0",
"source": {
"type": "git",
"url": "https://github.com/jorenvh/laravel-share.git",
"reference": "9ad09ee5f65a64cf993169636366d9fa0b6a993c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/jorenvh/laravel-share/zipball/9ad09ee5f65a64cf993169636366d9fa0b6a993c",
"reference": "9ad09ee5f65a64cf993169636366d9fa0b6a993c",
"shasum": ""
},
"require": {
"php": ">=7.3"
},
"require-dev": {
"orchestra/testbench": "~6.7",
"phpunit/phpunit": "9.4.*"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Jorenvh\\Share\\Providers\\ShareServiceProvider"
],
"aliases": {
"Share": "Jorenvh\\Share\\ShareFacade"
}
}
},
"autoload": {
"psr-4": {
"Jorenvh\\Share\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Joren Van Hocht",
"email": "joren@codeswitch.be",
"homepage": "https://codeswitch.be",
"role": "Developer"
}
],
"description": "Optional package for Laravel to generate social share links.",
"homepage": "https://github.com/jorenvh/laravel-share",
"keywords": [
"laravel",
"share",
"social links",
"social share links"
],
"support": {
"issues": "https://github.com/jorenvh/laravel-share/issues",
"source": "https://github.com/jorenvh/laravel-share/tree/4.1.0"
},
"time": "2021-08-09T18:48:08+00:00"
},
{
"name": "laravel/framework",
"version": "v5.8.38",
"source": {
......@@ -8306,5 +8240,5 @@
"php": "^7.1.3"
},
"platform-dev": [],
"plugin-api-version": "2.0.0"
"plugin-api-version": "2.1.0"
}
......@@ -161,7 +161,7 @@ return [
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Jorenvh\Share\Providers\ShareServiceProvider::class,
/*
* Package Service Providers...
......@@ -228,7 +228,7 @@ return [
'View' => Illuminate\Support\Facades\View::class,
'Image' => Intervention\Image\Facades\Image::class,
'InseoHelper' => App\Helpers\InseoHelper::class,
'Share' => Jorenvh\Share\ShareFacade::class,
],
......
......@@ -60,6 +60,34 @@
</div>
{!! $data->content !!}
{{-- $shareComponent --}}
<p>
<i><b>Share It On:</b></i> </p>
<div class="social-icons">
<span>
<a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Facebook" href="https://www.facebook.com/sharer.php?u={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #1877f2;"><i class="fa fa-facebook" style="color: white;"></i></a>
</span>
<span>
<a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Twitter" href="https://twitter.com/share?url={!! url('/') !!}&amp;text={!! url($data->title) !!}&amp;hashtags={!! $data->rCategory->name !!}" data-original-title="" style="background-color: #55acee;"><i class="fa fa-twitter" style="color: white;"></i></a>
</span>
<span>
<a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #007bb5;"><i class="fa fa-linkedin" style="color: white;"></i></a>
</span>
<span>
<a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Email" href="mailto:?Subject={!! $data->rCategory->name !!}&amp;Body={!! url($data->title) !!} {!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #0166ff;"><i class="fa fa-envelope" style="color: white;"></i></a>
</span>
<span>
<a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Whatsapp" href="https://wa.me/?text={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #12af0a;"><i class="fa fa-phone" style="color: white;"></i></a>
</span>
<span class="last">
<a data-toggle="tooltip" data-placement="bottom" target="_blank" title="" href="https://telegram.me/share/url?url={!! url('post/'.$data->slug) !!}&amp;text={!! url($data->title) !!}" data-original-title="Telegram" style="background-color: #2ca5e0;"><i class="fa fa-location-arrow" style="color: white;"></i></a>
</span>
</div>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment