This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lmce_owncloud [2014/06/09 21:35] – admin | lmce_owncloud [2014/06/10 11:47] (current) – admin | ||
|---|---|---|---|
| Line 42: | Line 42: | ||
| </ | </ | ||
| + | Get users ID: | ||
| + | |||
| + | <code php> | ||
| + | OCP\User:: | ||
| + | </ | ||
| Translate in Template | Translate in Template | ||
| Line 47: | Line 52: | ||
| <code php> | <code php> | ||
| <?php echo $l-> | <?php echo $l-> | ||
| + | </ | ||
| + | |||
| + | Check for logged in user: | ||
| + | |||
| + | <code php> | ||
| + | OCP\JSON:: | ||
| + | </ | ||
| + | |||
| + | Check for enabled app: | ||
| + | |||
| + | <code php> | ||
| + | OCP\JSON:: | ||
| </ | </ | ||
| ==== Javascript ==== | ==== Javascript ==== | ||
| Line 55: | Line 72: | ||
| OCP\Util:: | OCP\Util:: | ||
| </ | </ | ||
| + | |||
| + | Includes file app_folder/ | ||
| Translate: | Translate: | ||
| Line 100: | Line 119: | ||
| OCP\Util:: | OCP\Util:: | ||
| </ | </ | ||
| + | |||
| + | Includes file app_folder/ | ||
| Line 110: | Line 131: | ||
| </ | </ | ||
| + | Good to know vars in JS: | ||
| + | <code javascript> | ||
| + | oc_debug=false; | ||
| + | oc_webroot="/ | ||
| + | oc_appswebroots={" | ||
| + | dayNames=[" | ||
| + | var monthNames=[" | ||
| + | var firstDay=0; | ||
| + | var oc_config={" | ||
| + | </ | ||