Reverted Wishlist Share
This commit is contained in:
parent
0b63f8150c
commit
eb5f49dba8
|
|
@ -268,46 +268,6 @@ return [
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
], [
|
|
||||||
'key' => 'catalog.products.wishlist_social_share',
|
|
||||||
'name' => 'Wishlist Social Share',
|
|
||||||
'sort' => 9,
|
|
||||||
'fields' => [
|
|
||||||
[
|
|
||||||
'name' => 'enabled',
|
|
||||||
'title' => 'Enable Social Share?',
|
|
||||||
'type' => 'boolean',
|
|
||||||
], [
|
|
||||||
'name' => 'facebook',
|
|
||||||
'title' => 'Enable Share in Facebook?',
|
|
||||||
'type' => 'boolean',
|
|
||||||
], [
|
|
||||||
'name' => 'twitter',
|
|
||||||
'title' => 'Enable Share in Twitter?',
|
|
||||||
'type' => 'boolean',
|
|
||||||
], [
|
|
||||||
'name' => 'pinterest',
|
|
||||||
'title' => 'Enable Share in Pinterest?',
|
|
||||||
'type' => 'boolean',
|
|
||||||
], [
|
|
||||||
'name' => 'whatsapp',
|
|
||||||
'title' => 'Enable Share in What\'s App?',
|
|
||||||
'type' => 'boolean',
|
|
||||||
'info' => 'What\'s App share link just will appear to mobile devices.'
|
|
||||||
], [
|
|
||||||
'name' => 'linkedin',
|
|
||||||
'title' => 'Enable Share in Linkedin?',
|
|
||||||
'type' => 'boolean',
|
|
||||||
], [
|
|
||||||
'name' => 'email',
|
|
||||||
'title' => 'Enable Share in Email?',
|
|
||||||
'type' => 'boolean',
|
|
||||||
], [
|
|
||||||
'name' => 'share_message',
|
|
||||||
'title' => 'Share Message',
|
|
||||||
'type' => 'text',
|
|
||||||
]
|
|
||||||
],
|
|
||||||
], [
|
], [
|
||||||
'key' => 'catalog.inventory',
|
'key' => 'catalog.inventory',
|
||||||
'name' => 'admin::app.admin.system.inventory',
|
'name' => 'admin::app.admin.system.inventory',
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@
|
||||||
'additionalAttributes' => true,
|
'additionalAttributes' => true,
|
||||||
'btnText' => $moveToCartText,
|
'btnText' => $moveToCartText,
|
||||||
'addToCartBtnClass' => 'small-padding',
|
'addToCartBtnClass' => 'small-padding',
|
||||||
'wishlistShare' => core()->getConfigData('catalog.products.wishlist_social_share.enabled')
|
|
||||||
])
|
])
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
|
|
@ -68,4 +67,4 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!! view_render_event('bagisto.shop.customers.account.wishlist.list.after', ['wishlist' => $items]) !!}
|
{!! view_render_event('bagisto.shop.customers.account.wishlist.list.after', ['wishlist' => $items]) !!}
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
||||||
|
|
@ -11,78 +11,10 @@
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bb-social-share {
|
|
||||||
padding: 1rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bb-social-share__title {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bb-social-share__items {
|
|
||||||
list-style: none;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bb-social-share__item {
|
|
||||||
margin-right: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bb-social-share__item a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bb-social-share__item a:hover {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bb-social-share__item a svg {
|
|
||||||
display: inline-block;
|
|
||||||
width: 2rem;
|
|
||||||
height: 2rem;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
@php
|
@php
|
||||||
$links = [];
|
|
||||||
|
|
||||||
$keysCollection = [
|
|
||||||
[
|
|
||||||
"config_key" => "catalog.products.wishlist_social_share.facebook",
|
|
||||||
"link" => "facebook",
|
|
||||||
], [
|
|
||||||
"config_key" => "catalog.products.wishlist_social_share.instagram",
|
|
||||||
"link" => "instagram",
|
|
||||||
], [
|
|
||||||
"config_key" => "catalog.products.wishlist_social_share.pinterest",
|
|
||||||
"link" => "pinterest",
|
|
||||||
], [
|
|
||||||
"config_key" => "catalog.products.wishlist_social_share.twitter",
|
|
||||||
"link" => "twitter",
|
|
||||||
], [
|
|
||||||
"config_key" => "catalog.products.wishlist_social_share.linkedin",
|
|
||||||
"link" => "linkedin",
|
|
||||||
], [
|
|
||||||
"config_key" => "catalog.products.wishlist_social_share.whatsapp",
|
|
||||||
"link" => "whatsapp",
|
|
||||||
], [
|
|
||||||
"config_key" => "catalog.products.wishlist_social_share.email",
|
|
||||||
"link" => "email",
|
|
||||||
]
|
|
||||||
];
|
|
||||||
|
|
||||||
foreach($keysCollection as $key) {
|
|
||||||
if (core()->getConfigData($key['config_key'])) {
|
|
||||||
$links[] = $key['link'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$message = core()->getConfigData('catalog.products.wishlist_social_share.share_message');
|
|
||||||
|
|
||||||
if (isset($checkmode) && $checkmode && $toolbarHelper->getCurrentMode() == "list") {
|
if (isset($checkmode) && $checkmode && $toolbarHelper->getCurrentMode() == "list") {
|
||||||
$list = true;
|
$list = true;
|
||||||
}
|
}
|
||||||
|
|
@ -179,24 +111,6 @@
|
||||||
? true : false,
|
? true : false,
|
||||||
])
|
])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($wishlistShare)
|
|
||||||
<div class="share-wishlist">
|
|
||||||
<aside class="bb-social-share">
|
|
||||||
<div class="bb-social-share__title">
|
|
||||||
{{ __('Share Now') }}
|
|
||||||
</div>
|
|
||||||
<ul class="bb-social-share__items">
|
|
||||||
@foreach($links as $link)
|
|
||||||
@include(
|
|
||||||
'social_share::links.' . $link,
|
|
||||||
compact('product', 'message')
|
|
||||||
)
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</aside>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue