Skip to content

Commit

Permalink
Now we don't need widgetloader.php, we call the widget.js directly!
Browse files Browse the repository at this point in the history
  • Loading branch information
libasys committed Dec 21, 2012
1 parent c65963b commit 28c30a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
3 changes: 0 additions & 3 deletions oc454/README
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions oc454/apps/files_sharing_widget/lib/widgethelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public static function loadTemplateReal($WIDTH="770",$HEIGHT="570",$TITLE='Zeus-
$tpl="<!DOCTYPE html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"de-DE\" lang=\"de-DE\">\n<head>\n<title>".htmlentities(utf8_decode($TITLE))."</title>
\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><meta content=\"yes\" name=\"apple-mobile-web-app-capable\" />
\n<meta content=\"minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no\" name=\"viewport\" />
\n<link href=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT).$getRelativeAppsPath."/files_sharing_widget/img/startup.png\" rel=\"apple-touch-startup-image\" />
\n<link rel=\"shortcut icon\" href=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT)."/core/img/favicon.png\" /><link href=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT).$getRelativeAppsPath."/files_sharing_widget/img/startup.png\" rel=\"apple-touch-startup-image\" />
\n<link href=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT).$getRelativeAppsPath."/files_sharing_widget/img/homescreen.png\" rel=\"apple-touch-icon\" />
\n<script>var ownWidgetOptions = {crypt:'".$_GET['iToken']."',path:'".OC_HELPER::makeURLAbsolute(OC::$WEBROOT)."',appspath:'".$getRelativeAppsPath."',cssAddWidget:{'width':'".$WIDTH."','height':'".$HEIGHT."'}};</script>
\n<script src=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT)."widgetloader.php\" type=\"text/javascript\"></script>\n
\n<script src=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT).$getRelativeAppsPath."/files_sharing_widget/js/widget.js\" type=\"text/javascript\"></script>\n
\n</head>
\n<body class=\"widgetbg\">
\n<div id=\"ownWidget-container\"></div>
Expand Down
4 changes: 2 additions & 2 deletions oc454/apps/files_sharing_widget/templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
?>
<fieldset class="personalblock">
<legend>Geteilte Dateien und Ordner</legend>
<legend>Shared Files and Folders</legend>
<ul class="shareSettings">
<li class="shareHeading">
<span style="width:10%; float:left;display:block;">ShareType </span>
Expand Down Expand Up @@ -55,7 +55,7 @@
cssAddWidget:{'width':670,'height':400}
}
</script>
<script src="<?php echo OC_HELPER::makeURLAbsolute(OC::$WEBROOT); ?>/widgetloader.php" type="text/javascript"></script></textarea>
<script src="<?php echo OC_HELPER::makeURLAbsolute(OC::$WEBROOT).'/'.$getRelativeAppsPath; ?>/files_sharing_widget/js/widget.js" type="text/javascript"></script></textarea>

</fieldset>
<!-- Dialogs -->
Expand Down
16 changes: 0 additions & 16 deletions oc454/widgetloader.php

This file was deleted.

0 comments on commit 28c30a8

Please sign in to comment.