owncloud/core — pull request #9592 by libasys (2014-07-11 10:29:17+00:00)
Title: Easier use for other Apps working with Global Sharing API 

Now if you would like to use the global share api so it's much easier to work with!
No additional share js code for an app is needed!
For example e.g. calendar
init share calendar we need:

I. Checking global rights of the share Api
```
$tmpl->assign("mailNotificationEnabled", \OC_Appconfig::getValue('core', 'shareapi_allow_mail_notification', 'yes'));
$tmpl->assign("allowShareWithLink", \OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes'));
```
II. we need the global input fields
```

```
III. we need the share link e.g. sharing Calendar
```

```
```
data-title=""
```
is new and needed if we would like to send an email to an external!

IV. need init the Icons
```
OC.Share.loadIcons('calendar');
```
That's all!
Now you can manage your shares with the global share api, automatically you can define Share via Link, Send E-Mail internal or send E-Mail for external User!