diff options
author | Mario <mario@mariovavti.com> | 2022-02-23 11:52:11 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-23 11:52:11 +0000 |
commit | a520063265459a6a02c7e39b64aa7fd83bc0b246 (patch) | |
tree | d7938d1626f51085568bc402564d6939034183ad /Zotlabs/Widget/Photo_rand.php | |
parent | 1e171a72a03bfff06888c275b4fc88286ae20c8f (diff) | |
download | volse-hubzilla-a520063265459a6a02c7e39b64aa7fd83bc0b246.tar.gz volse-hubzilla-a520063265459a6a02c7e39b64aa7fd83bc0b246.tar.bz2 volse-hubzilla-a520063265459a6a02c7e39b64aa7fd83bc0b246.zip |
widget descriptions and add content region to all pdl files for convenience
Diffstat (limited to 'Zotlabs/Widget/Photo_rand.php')
-rw-r--r-- | Zotlabs/Widget/Photo_rand.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Photo_rand.php b/Zotlabs/Widget/Photo_rand.php index af80a3b9f..cfe026b19 100644 --- a/Zotlabs/Widget/Photo_rand.php +++ b/Zotlabs/Widget/Photo_rand.php @@ -1,5 +1,10 @@ <?php +/** + * * Name: Random photo + * * Description: Display a random photo + */ + namespace Zotlabs\Widget; require_once('include/photos.php'); @@ -40,15 +45,15 @@ class Photo_rand { if(strpos($url, 'http') !== 0) return ''; - + if(array_key_exists('style', $arr) && isset($arr['style'])) $style = $arr['style']; - + // ensure they can't sneak in an eval(js) function if(strpos($style,'(') !== false) return ''; - + $url = zid($url); $o = '<div class="widget">'; |