1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

Enhance share feature with modal dialog choices

Add Facebook / Twitter / GooglePlus external share plugins
This commit is contained in:
Afterster 2014-11-15 06:05:41 +01:00
parent 53f12cf2b2
commit 80cde0c626
23 changed files with 478 additions and 12 deletions

View file

@ -187,6 +187,15 @@ switch ($_REQUEST['action']) {
$browse->show_objects();
$results[$browse->get_content_div()] = ob_get_clean();
break;
case 'get_share_links':
$object_type = $_REQUEST['object_type'];
$object_id = intval($_REQUEST['object_id']);
if (Core::is_library_item($object_type) && $object_id > 0) {
Share::display_ui_links($object_type, $object_id);
exit;
}
break;
default:
$results['rfc3514'] = '0x1';
break;