From 28c30a8a961f329e222efbcb224ad3d81fd94fdb Mon Sep 17 00:00:00 2001 From: libasys Date: Fri, 21 Dec 2012 10:00:27 +0100 Subject: [PATCH] Now we don't need widgetloader.php, we call the widget.js directly! --- oc454/README | 3 --- .../files_sharing_widget/lib/widgethelper.php | 4 ++-- .../files_sharing_widget/templates/settings.php | 4 ++-- oc454/widgetloader.php | 16 ---------------- 4 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 oc454/widgetloader.php diff --git a/oc454/README b/oc454/README index 6fe6db9..3f7c3af 100644 --- a/oc454/README +++ b/oc454/README @@ -7,9 +7,6 @@ Tested for OC4.5.4 Install instructions And Now also for OC4.5 That's all and now when you sharing a folder of images with subfolders you have a nice webwidget gallery. -[UPDATE] -If you have another apps directory as default (apps) where files_sharing_widget would be installed than you have to change the appspath -in the widgetloader.php [NEW Features] Now you can use The Gallery Widget in an other apps folder (e.g. apps2) if this is in config.php iconfigurated diff --git a/oc454/apps/files_sharing_widget/lib/widgethelper.php b/oc454/apps/files_sharing_widget/lib/widgethelper.php index ccead32..4bb8720 100644 --- a/oc454/apps/files_sharing_widget/lib/widgethelper.php +++ b/oc454/apps/files_sharing_widget/lib/widgethelper.php @@ -99,10 +99,10 @@ public static function loadTemplateReal($WIDTH="770",$HEIGHT="570",$TITLE='Zeus- $tpl="\n\n\n".htmlentities(utf8_decode($TITLE))." \n \n - \n + \n \n \n - \n\n + \n\n \n \n \n
diff --git a/oc454/apps/files_sharing_widget/templates/settings.php b/oc454/apps/files_sharing_widget/templates/settings.php index 7a23100..ebe36bb 100644 --- a/oc454/apps/files_sharing_widget/templates/settings.php +++ b/oc454/apps/files_sharing_widget/templates/settings.php @@ -9,7 +9,7 @@ */ ?>
- Geteilte Dateien und Ordner + Shared Files and Folders
diff --git a/oc454/widgetloader.php b/oc454/widgetloader.php deleted file mode 100644 index 0fd42f9..0000000 --- a/oc454/widgetloader.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * - */ - -$pathload= "apps/files_sharing_widget/js/widget.full.js"; - -header ("Content-type: text/javascript"); -readfile($pathload); - -?> \ No newline at end of file