File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -208,12 +208,13 @@ function themeAsset($path){
208
208
209
209
@else
210
210
<?php $ShowShrBtn = ' true' ; ? >
211
+
211
212
@endif
212
213
213
- @ if ($ShowShrBtn == ' true' and UserData:: getData ($userinfo -> id , ' disable-sharebtn' ) != " true" )
214
+ <?php if ($ShowShrBtn == ' true' && UserData:: getData ($userinfo -> id , ' disable-sharebtn' ) != " true" ){ $DisplayShowShrBtn = true ;} else { $DisplayShowShrBtn = false ;} ? >
214
215
215
- <script >{!! file_get_contents (base_path (" assets/linkstack/js/jquery.min.js" )) ! !} </script >
216
- <div align =" right" class =" sharediv" >
216
+ @if ( $DisplayShowShrBtn == true ) <script >{!! file_get_contents (base_path (" assets/linkstack/js/jquery.min.js" )) ! !} </script >@endif
217
+ <div align =" right" @if ( $DisplayShowShrBtn == false ) style = " visibility : hidden " @endif class =" sharediv" >
217
218
<div >
218
219
<span class =" sharebutton button-hover icon-hover share-button" data-share =" {{ url ()-> current ()} }" tabindex =" 0" role =" button" aria-label =" {{ __ (' messages.Share this page' )} }" >
219
220
<i style =" color : black ;" class =" fa-solid fa-share sharebutton-img share-icon hvr-icon" ></i >
@@ -223,7 +224,7 @@ function themeAsset($path){
223
224
</div >
224
225
<span class =" copy-icon" tabindex =" 0" role =" button" aria-label =" {{ __ (' messages.Copy URL to clipboard' )} }" >
225
226
</span >
226
-
227
+ @if ( $DisplayShowShrBtn == true )
227
228
<script >
228
229
const shareButtons = document .querySelectorAll (' .share-button' );
229
230
shareButtons .forEach (button => {
@@ -247,9 +248,8 @@ function themeAsset($path){
247
248
});
248
249
});
249
250
</script >
250
-
251
-
252
251
@endif
252
+
253
253
<?php // //end share button//// ? >
254
254
255
255
<div class =" container" >
You can’t perform that action at this time.
0 commit comments