diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-07-30 12:29:12 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-07-30 12:33:54 +0200 |
commit | ac6a3133eca86b853da838ae310534b76e9fb662 (patch) | |
tree | d74eab54dcc560ca77b5561892363971d710ee19 /lib/template/functions.php | |
parent | 7425efade78a04f20cb3cc83f964c6a00094b6ce (diff) | |
download | nextcloud-server-ac6a3133eca86b853da838ae310534b76e9fb662.tar.gz nextcloud-server-ac6a3133eca86b853da838ae310534b76e9fb662.zip |
style fixes
Diffstat (limited to 'lib/template/functions.php')
-rw-r--r-- | lib/template/functions.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/template/functions.php b/lib/template/functions.php index a864614c9a1..842f28c90e0 100644 --- a/lib/template/functions.php +++ b/lib/template/functions.php @@ -48,6 +48,22 @@ function image_path( $app, $image ) { } /** + * @brief make preview_icon available as a simple function + * Returns the path to the preview of the image. + * @param $path path of file + * @returns link to the preview + * + * For further information have a look at OC_Helper::previewIcon + */ +function preview_icon( $path ) { + return OC_Helper::previewIcon( $path ); +} + +function publicPreview_icon ( $path, $token ) { + return OC_Helper::publicPreviewIcon( $path, $token ); +} + +/** * @brief make OC_Helper::mimetypeIcon available as a simple function * @param string $mimetype mimetype * @return string link to the image |