Hi Marc,
this is the patch
1 . open this file components/com_community/controllers/photos.php, add this code after line 1192 :
$json['enablesharing'] = $config->get('enablesharethis') == 1;
Open this file components/com_community/assets/source/js/popups/photo.open.js
2. find this code :
canEdit, canTag, albumName, albumUrl, photoUrl, userId, isRegistered, isOwner, isAdmin, enableDownload, enableReporting;
replace to :
canEdit, canTag, albumName, albumUrl, photoUrl, userId, isRegistered, isOwner, isAdmin, enableDownload, enableReporting, enableSharing;
3. add this code after line 47 :
enableSharing = +json.enablesharing;
4. find this code :
html += '<a href="javascript:" class="joms-popup__btn-share">' + lang.share + '</a>';
replace to :
if ( enableSharing ) {
html += '<a href="javascript:" class="joms-popup__btn-share">' + lang.share + '</a>';
}
5. find this code :
html += '<div class="sep"></div>';
replace to :
html += ( enableSharing || enableDownload ? '<div class="sep"></div>' : '' );
thank you