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){
208208
209209@else
210210<?php $ShowShrBtn = ' true' ; ? >
211+
211212@endif
212213
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 ;} ? >
214215
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" >
217218 <div >
218219 <span class =" sharebutton button-hover icon-hover share-button" data-share =" {{ url ()-> current ()} }" tabindex =" 0" role =" button" aria-label =" {{ __ (' messages.Share this page' )} }" >
219220 <i style =" color : black ;" class =" fa-solid fa-share sharebutton-img share-icon hvr-icon" ></i >
@@ -223,7 +224,7 @@ function themeAsset($path){
223224</div >
224225<span class =" copy-icon" tabindex =" 0" role =" button" aria-label =" {{ __ (' messages.Copy URL to clipboard' )} }" >
225226</span >
226-
227+ @if ( $DisplayShowShrBtn == true )
227228<script >
228229 const shareButtons = document .querySelectorAll (' .share-button' );
229230 shareButtons .forEach (button => {
@@ -247,9 +248,8 @@ function themeAsset($path){
247248 });
248249 });
249250 </script >
250-
251-
252251@endif
252+
253253<?php // //end share button//// ? >
254254
255255 <div class =" container" >
You can’t perform that action at this time.
0 commit comments