From a8e4452de53420b991a0c63dad4f9f540188529d Mon Sep 17 00:00:00 2001 From: libasys Date: Wed, 19 Dec 2012 20:56:18 +0100 Subject: [PATCH] Update to version 1.1 now supported watermark and other apps install path, some bugfixes --- oc454/README | 9 +- oc454/apps/files_sharing_widget/admin.php | 2 +- .../files_sharing_widget/ajax/saveparam.php | 6 + .../files_sharing_widget/ajax/sharesecret.php | 25 +- .../apps/files_sharing_widget/appinfo/app.php | 2 +- .../apps/files_sharing_widget/appinfo/version | 2 +- .../apps/files_sharing_widget/css/widget.css | 2 +- .../files_sharing_widget/css/widget.full.css | 21 +- .../font/Manfred Klein License.txt | 5 + .../font/MonospaceTypewriter.ttf | Bin 0 -> 38748 bytes oc454/apps/files_sharing_widget/js/admin.js | 114 +++--- .../files_sharing_widget/js/widget.full.js | 378 ++++++++++-------- oc454/apps/files_sharing_widget/js/widget.js | 2 +- .../files_sharing_widget/lib/widgethelper.php | 72 +++- oc454/apps/files_sharing_widget/public.php | 47 ++- oc454/apps/files_sharing_widget/settings.php | 7 + .../files_sharing_widget/templates/admin.php | 20 +- .../templates/settings.php | 81 ++-- .../files_sharing_widget/widgetloader.php | 34 ++ oc454/lib/base.min.php | 21 +- oc454/widget.php | 4 +- oc454/widgetloader.php | 11 - 22 files changed, 524 insertions(+), 341 deletions(-) create mode 100644 oc454/apps/files_sharing_widget/font/Manfred Klein License.txt create mode 100644 oc454/apps/files_sharing_widget/font/MonospaceTypewriter.ttf create mode 100644 oc454/apps/files_sharing_widget/widgetloader.php delete mode 100644 oc454/widgetloader.php diff --git a/oc454/README b/oc454/README index dd29193..0ccb41a 100644 --- a/oc454/README +++ b/oc454/README @@ -1,4 +1,4 @@ -Tested for OC4.5.4 Install instructions +Tested for OC4.5.4 Install instructions And Now also for OC4.5 ------------------------------------------------ 1. Load the files to the structure of your OC installation (No Files would be overwritten!!) 2. Activate the App [Share Gallery Widget] @@ -6,3 +6,10 @@ Tested for OC4.5.4 Install instructions 4. Go To the personal settings [Overview Shared Files and Folders] and enter here your Configurationparameters Picture Widget and save That's all and now when you sharing a folder of images with subfolders you have a nice webwidget gallery. +[UPDATE] +Please delete the widgetloader.php in the root of OC => moved to apps path + +[NEW Features] +Now you can use The Gallery Widget in an other apps folder (e.g. apps2) if this is in config.php iconfigurated +Now you can create your own Watermark text to the pictures (Copyright Hint) +New Js Engine in the widget.js \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/admin.php b/oc454/apps/files_sharing_widget/admin.php index 781ea9c..86fdfe1 100644 --- a/oc454/apps/files_sharing_widget/admin.php +++ b/oc454/apps/files_sharing_widget/admin.php @@ -20,4 +20,4 @@ $tmpl->assign('secretword', $shareSecret); $tmpl->assign('siteemail', $siteEmail); -return $tmpl->fetchPage(); +return $tmpl->fetchPage(); \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/ajax/saveparam.php b/oc454/apps/files_sharing_widget/ajax/saveparam.php index 7642b17..6028b7f 100644 --- a/oc454/apps/files_sharing_widget/ajax/saveparam.php +++ b/oc454/apps/files_sharing_widget/ajax/saveparam.php @@ -18,6 +18,12 @@ $ObjSaveParamter['width']=intval($_POST['spwidth']); $ObjSaveParamter['height']=intval($_POST['spheight']); +$ObjSaveParamter['watermarktxt']=addslashes($_POST['spWMTxt']); +if($_POST['spWMTxt']!='') $ObjSaveParamter['watermark']=1; +else $ObjSaveParamter['watermark']=0; + +$ObjSaveParamter['title']=addslashes($_POST['spTitle']); + $ObjSaveJson=json_encode($ObjSaveParamter); OC_Preferences::setValue( OC_User::getUser(), 'files_sharing_widget', 'parameter', $ObjSaveJson); diff --git a/oc454/apps/files_sharing_widget/ajax/sharesecret.php b/oc454/apps/files_sharing_widget/ajax/sharesecret.php index 5598420..a924bdc 100644 --- a/oc454/apps/files_sharing_widget/ajax/sharesecret.php +++ b/oc454/apps/files_sharing_widget/ajax/sharesecret.php @@ -8,22 +8,21 @@ * * */ - + OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('files_sharing_widget'); OCP\JSON::callCheck(); // Get data -if(isset( $_POST['mySecretWord'] ) && $_POST['mySecretWord'] != '') { - $secretWord=trim($_POST['mySecretWord']); - OCP\Config::setSystemValue('secretword', $secretWord); - - OC_JSON::success(array("data" => array( "message" => 'Saved'))); -}elseif(isset( $_POST['siteemail'] ) && filter_var( $_POST['siteemail'], FILTER_VALIDATE_EMAIL)) { - $siteEmail=trim($_POST['siteemail']); - OCP\Config::setSystemValue('siteemail', $siteEmail); - OC_JSON::success(array("data" => array( "message" => 'Saved'))); -} -else{ - OC_JSON::error(array("data" => array( "message" => 'Error' ))); +if (isset($_POST['mySecretWord']) && $_POST['mySecretWord'] != '') { + $secretWord = trim($_POST['mySecretWord']); + OCP\Config::setSystemValue('secretword', $secretWord); + + OC_JSON::success(array("data" => array("message" => 'Saved'))); +} elseif (isset($_POST['siteemail']) && filter_var($_POST['siteemail'], FILTER_VALIDATE_EMAIL)) { + $siteEmail = trim($_POST['siteemail']); + OCP\Config::setSystemValue('siteemail', $siteEmail); + OC_JSON::success(array("data" => array("message" => 'Saved'))); +} else { + OC_JSON::error(array("data" => array("message" => 'Error'))); } diff --git a/oc454/apps/files_sharing_widget/appinfo/app.php b/oc454/apps/files_sharing_widget/appinfo/app.php index 3f11e1c..cc64448 100644 --- a/oc454/apps/files_sharing_widget/appinfo/app.php +++ b/oc454/apps/files_sharing_widget/appinfo/app.php @@ -12,4 +12,4 @@ OCP\App::registerAdmin('files_sharing_widget', 'admin'); OCP\Util::addscript( 'files_sharing_widget', 'settings'); OCP\Util::addscript( 'files_sharing_widget', 'admin'); -OC::$CLASSPATH['OC_Widget_Helper'] = 'apps/files_sharing_widget/lib/widgethelper.php'; \ No newline at end of file +OC::$CLASSPATH['OC_Widget_Helper'] = 'files_sharing_widget/lib/widgethelper.php'; \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/appinfo/version b/oc454/apps/files_sharing_widget/appinfo/version index b6ee802..ceab6e1 100644 --- a/oc454/apps/files_sharing_widget/appinfo/version +++ b/oc454/apps/files_sharing_widget/appinfo/version @@ -1 +1 @@ -1.0 beta \ No newline at end of file +0.1 \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/css/widget.css b/oc454/apps/files_sharing_widget/css/widget.css index 4be6eb2..60f5533 100644 --- a/oc454/apps/files_sharing_widget/css/widget.css +++ b/oc454/apps/files_sharing_widget/css/widget.css @@ -6,4 +6,4 @@ * * */ -body.widgetbg{background:#fff url('../img/purty_wood.jpg') repeat}#ownWidget-container{position:absolute;margin-left:auto;z-index:200;font-family:arial;font-size:13px;top:10px;left:300px;margin-right:auto;width:700px;height:550px;background:#939393;background:rgba(0,0,0,0.3);border:1px solid #343434;border-radius:8px;-webkit-border-radius:8px;box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:0;color:#636363;padding:5px}a.imgLoading{background:#fff url('../img/loading.gif') 50% 50% no-repeat;display:block;float:left;margin-left:2px;margin-bottom:2px}#ownWidget-Loader{position:absolute;left:50%;top:50%;margin-left:-50px;margin-top:-50px;width:100px;height:100px;display:block;background:url('../img/ajax-loader.gif') 50% 50% no-repeat}.ownWidget-isHidden{display:none}#ownWidget-header{width:100%;top:0;position:relative;float:left;margin-top:5px;line-height:26px;font-size:14px;text-align:left;min-height:26px;display:block;background:transparent}#SlideShowButton{position:absolute;right:10px;margin-top:5px;cursor:pointer;line-height:26px}#ownWidget-header a.loadAlbum,#SlideShowButton,#ownWidget-header a.noAlbum{text-decoration:none;color:#fff;display:block;margin-left:10px;float:left;background:#707070;background:rgba(0,0,0,0.8);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:1px solid rgba(0,0,0,0.9);margin-bottom:2px;padding:3px 5px;border-radius:5px;-webkit-border-radius:5px}#ownWidget-header a:hover,#SlideShowButton:hover{background:#323232}#albumPics{clear:both;margin-top:3px;margin-left:-2px}#albumPics a.loadAlbum,#albumPics a.loadAlbum:hover{background:transparent;border:0;box-shadow:none;-webkit-box-shadow:none}#ownWidget-output img.imgshow{margin:5px;background:#fff;padding:5px;box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8)}#ownWidget-output{background:transparent;display:block;width:98%;float:left;height:0;position:relative;margin-top:10px;padding:5px;z-index:202}#ownWidget-output form{background:rgba(0,0,0,0.6);width:80%;margin-left:10%;border:1px solid #424242;border-radius:10px;-webkit-border-radius:10px;padding:10px}.ownWidget-scrollMe{margin:0;padding:0;margin-left:20px;float:none;width:670px;height:420px}.ownWidget-row{float:none;margin:0;padding:3px;margin-bottom:5px;width:auto}#ownWidget-slider{width:690px}#ownWidget-slider>div,#ownWidget-slider>li{width:auto}.mb-wrapper{margin:0;position:relative;left:0;background:transparent;top:0;z-index:220;display:block;height:auto}.mb-slider,.mb-scroll{width:auto;display:block;overflow:hidden;margin:0 auto;padding:0;position:relative;left:0;top:0;font-size:18px}.mb-active-slider{border-color:#ccc}.mb-slider .mb-panel{margin:0;display:block;cursor:pointer;float:left;list-style:none}.mb-slider .mb-panel.current{cursor:auto}.mb-inside{background:transparent;height:auto;width:auto;display:block;float:left}a.mb-scrollButtons{display:block;position:absolute;top:50%;margin-top:-20px;width:28px;height:40px;line-height:40px;cursor:pointer;color:#fff;background:#707070;background:rgba(0,0,0,0.8);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:rgba(0,0,0,0.9);border-radius:5px;-webkit-border-radius:5px;font-size:20px;text-align:center;text-decoration:none}a.mb-scrollButtons.mb-left{background-position:left top;left:-28px}a.mb-scrollButtons.mb-right{background-position:right top;right:-28px}a.mb-scrollButtons.mb-left:hover{background-position:left bottom}a.mb-scrollButtons.mb-right:hover{background-position:right bottom}a.mb-scrollButtons.disabled{display:none}.mb-controls{margin:0;margin-top:6px;text-align:center;background:transparent;position:relative;z-index:100}.mb-controls a{color:#666;font:20px/2.2 Georgia,Serif;display:inline-block;text-decoration:none;padding:2px;margin:0 5px 0 0;text-align:center;outline:0}.mb-controls a:hover{color:black}.mb-controls a.current{color:#bbb}.mb-active-slider .mb-controls{background:transparent}#ownWidget-output li a{text-decoration:none;color:#7da9ce}#ownWidget-closeButton{position:absolute;z-index:201;top:-10px;right:-10px;width:24px;height:24px;line-height:24px;border:2px solid #fff;background:#000;color:#fff;font-family:arial;font-weight:bold;font-size:14px;text-align:center;box-shadow:0 1px 8px rgba(0,0,0,0.6);-webkit-box-shadow:0 1px 8px rgba(0,0,0,0.6);border-radius:13px;-webkit-border-radius:13px}#ownWidget-overlayWid{top:0;left:0;position:absolute;background:#000;z-index:199}div#ownWidget-displayButton{text-decoration:none;position:absolute;padding:2px 8px;line-height:14pt;font-size:11pt;cursor:pointer;width:100px;text-align:center;min-width:100px;border:1px solid #bbb;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;-khtml-box-sizing:content-box;box-sizing:content-box;background:#dad2d2;background:-webkit-gradient(linear,0% 0,0% 100%,from(#fff),to(#ccc));background:-moz-linear-gradient(top,#fff,#ccc);background:-o-linear-gradient(#fff,#ccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#cccccc');zoom:1;color:#464646;text-shadow:rgba(255,255,255,1) 0 1px 0}.ownWidget-pageScroller{background:red;width:750px;height:400px;float:left}li.ownWidget-row{width:100%;margin:0;padding:0;display:block;line-height:20px}li.ownWidget-row span{float:left;padding-left:5px;display:block}.mCSB_container{width:auto;margin-right:30px;overflow:hidden}.mCSB_container.mCS_no_scrollbar{margin-right:0}.mCustomScrollBox .mCSB_scrollTools{width:16px;height:100%;top:0;right:0}.mCSB_scrollTools .mCSB_draggerContainer{height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mCSB_scrollTools .mCSB_buttonUp+.mCSB_draggerContainer{padding-bottom:40px}.mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_scrollTools .mCSB_dragger{cursor:pointer;width:100%;height:30px}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;text-align:center}.mCSB_scrollTools .mCSB_buttonUp,.mCSB_scrollTools .mCSB_buttonDown{height:20px;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools .mCSB_buttonDown{bottom:0;margin-top:-40px}.mCSB_horizontal .mCSB_container{height:auto;margin-right:0;margin-bottom:30px;overflow:hidden}.mCSB_horizontal .mCSB_container.mCS_no_scrollbar{margin-bottom:0}.mCSB_horizontal.mCustomScrollBox .mCSB_scrollTools{width:100%;height:16px;top:auto;right:auto;bottom:0;left:0;overflow:hidden}.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerContainer{height:100%;width:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft+.mCSB_draggerContainer{padding-bottom:0;padding-right:20px}.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerRail{width:100%;height:2px;margin:7px 0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger{width:30px;height:100%}.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft,.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight{width:20px;height:100%;overflow:hidden;margin:0 auto;cursor:pointer;float:left}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight{right:0;bottom:auto;margin-left:-40px;margin-top:-16px;float:right}.mCustomScrollBox .mCSB_scrollTools{opacity:.75}.mCustomScrollBox:hover .mCSB_scrollTools{opacity:1}.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,0.6);filter:"alpha(opacity=60)";-ms-filter:"alpha(opacity=60)"}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#5e667f;background:rgba(94,102,127,0.75);filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(94,102,127,0.85);filter:"alpha(opacity=85)";-ms-filter:"alpha(opacity=85)"}.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{background:rgba(94,102,127,0.9);filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCSB_scrollTools .mCSB_buttonUp,.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight{background-image:url(../img/mCSB_buttons.png);background-repeat:no-repeat;opacity:.4;filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_buttonUp{background-position:0 0}.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -20px}.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -40px}.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -56px}.mCSB_scrollTools .mCSB_buttonUp:hover,.mCSB_scrollTools .mCSB_buttonDown:hover,.mCSB_scrollTools .mCSB_buttonLeft:hover,.mCSB_scrollTools .mCSB_buttonRight:hover{opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_buttonUp:active,.mCSB_scrollTools .mCSB_buttonDown:active,.mCSB_scrollTools .mCSB_buttonLeft:active,.mCSB_scrollTools .mCSB_buttonRight:active{opacity:.9;filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:1104;display:none}#fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url('../img/fancy/fancybox.png')}#fancybox-overlay{position:fixed;top:0;left:0;width:100%;z-index:1100;display:none}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none}#fancybox-wrap{position:absolute;top:0;left:0;padding:20px;z-index:1101;outline:0;display:none}#fancybox-outer{position:relative;width:100%;height:100%;background:#fff}#fancybox-content{width:0;height:0;padding:0;outline:0;position:relative;overflow:hidden;z-index:1102;border:0 solid #fff}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:1101}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:transparent url('../img/fancy/fancybox.png') -40px 0;cursor:pointer;z-index:1103;display:none}#fancybox-error{color:#444;font:normal 12px/20px Arial;padding:14px;margin:0}#fancybox-img{width:100%;height:100%;padding:0;margin:0;border:0;outline:0;line-height:0;vertical-align:top}#fancybox-frame{width:100%;height:100%;border:0;display:block}#fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;outline:0;background:transparent url('../img/fancy/blank.gif');z-index:1102;display:none}#fancybox-left{left:0}#fancybox-right{right:0}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:1102;display:block}#fancybox-left-ico{background-image:url('../img/fancy/fancybox.png');background-position:-40px -30px}#fancybox-right-ico{background-image:url('../img/fancy/fancybox.png');background-position:-40px -60px}#fancybox-left:hover,#fancybox-right:hover{visibility:visible}#fancybox-left:hover span{left:20px}#fancybox-right:hover span{left:auto;right:20px}.fancybox-bg{position:absolute;padding:0;margin:0;border:0;width:20px;height:20px;z-index:1001}#fancybox-bg-n{top:-20px;left:0;width:100%;background-image:url('../img/fancy/fancybox-x.png')}#fancybox-bg-ne{top:-20px;right:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -162px}#fancybox-bg-e{top:0;right:-20px;height:100%;background-image:url('../img/fancy/fancybox-y.png');background-position:-20px 0}#fancybox-bg-se{bottom:-20px;right:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -182px}#fancybox-bg-s{bottom:-20px;left:0;width:100%;background-image:url('../img/fancy/fancybox-x.png');background-position:0 -20px}#fancybox-bg-sw{bottom:-20px;left:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -142px}#fancybox-bg-w{top:0;left:-20px;height:100%;background-image:url('../img/fancy/fancybox-y.png')}#fancybox-bg-nw{top:-20px;left:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -122px}#fancybox-title{font-family:Helvetica;font-size:12px;z-index:1102}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;background:#fff;position:relative}.fancybox-title-outside{padding-top:10px;color:#fff}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left}#fancybox-title-over{padding:10px;background-image:url('../img/fancy/fancy_title_over.png');display:block}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px}#fancybox-title-float-wrap{border:0;border-collapse:collapse;width:auto}#fancybox-title-float-wrap td{border:0;white-space:nowrap}#fancybox-title-float-left{padding:0 0 0 15px;background:url('../img/fancy/fancybox.png') -40px -90px no-repeat}#fancybox-title-float-main{color:#FFF;line-height:29px;font-weight:bold;padding:0 0 3px 0;background:url('../img/fancy/fancybox-x.png') 0 -40px}#fancybox-title-float-right{padding:0 0 0 15px;background:url('../img/fancy/fancybox.png') -55px -90px no-repeat}.fancybox-ie6 #fancybox-close{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_close.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-left-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_nav_left.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-right-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_nav_right.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-over{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_over.png',sizingMethod='scale');zoom:1}.fancybox-ie6 #fancybox-title-float-left{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_left.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-float-main{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_main.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-float-right{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_right.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-bg-w,.fancybox-ie6 #fancybox-bg-e,.fancybox-ie6 #fancybox-left,.fancybox-ie6 #fancybox-right,#fancybox-hide-sel-frame{height:expression(this.parentNode.clientHeight+"px")}#fancybox-loading.fancybox-ie6{position:absolute;margin-top:0;top:expression((-20+(document.documentElement.clientHeight ? document.documentElement.clientHeight/2:document.body.clientHeight/2)+(ignoreMe = document .documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop))+'px')}#fancybox-loading.fancybox-ie6 div{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_loading.png',sizingMethod='scale')}.fancybox-ie .fancybox-bg{background:transparent!important}.fancybox-ie #fancybox-bg-n{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_n.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-ne{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_ne.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-e{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_e.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-se{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_se.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-s{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_s.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-sw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_sw.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-w{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_w.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-nw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_nw.png',sizingMethod='scale')}#slideshow-content{z-index:202}*{margin:0;padding:0}img{border:0}#supersized-loader{position:absolute;top:50%;left:50%;z-index:0;width:60px;height:60px;margin:-30px 0 0 -30px;text-indent:-999em}#supersized{display:block;position:fixed;left:0;top:0;overflow:hidden;z-index:-999;height:100%;width:100%}#supersized img{width:auto;height:auto;position:relative;display:none;outline:0;border:0}#supersized.speed img{-ms-interpolation-mode:nearest-neighbor;image-rendering:-moz-crisp-edges}#supersized.quality img{-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality}#supersized li{display:block;list-style:none;z-index:-30;position:fixed;overflow:hidden;top:0;left:0;width:100%;height:100%;background:#111}#supersized a{width:100%;height:100%;display:block}#supersized li.prevslide{z-index:-20}#supersized li.activeslide{z-index:-10}#supersized li.image-loading{background:#111 url(../img/progress.gif) no-repeat center center;width:100%;height:100%}#supersized li.image-loading img{visibility:hidden}#supersized li.prevslide img,#supersized li.activeslide img{display:inline}#slideshow-content #controls-wrapper{margin:0 auto;height:42px;width:100%;bottom:0;left:0;z-index:204;background:url('../img/nav-bg.png') repeat-x;position:fixed}#slideshow-content #slideshow-controls{overflow:hidden;height:100%;position:relative;text-align:left;z-index:205}#slideshow-content #slidecounter{float:left;color:#999;font:14px "Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:#000 0 -1px 0;margin:0 10px 0 15px;line-height:42px}#slideshow-content #slidecaption{overflow:hidden;float:left;color:#FFF;font:400 14px "Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:#000 1px 1px 2px;margin:0 20px 0 0;line-height:42px}#slideshow-content #play-button{float:left;margin-top:1px;border-right:1px solid #333;background:url('../img/bg-hover.png') repeat-x 0 44px}#slideshow-content #play-button:hover{background-position:0 1px;cursor:pointer}#slideshow-content #prevslide,#nextslide{position:fixed;height:43px;width:43px;top:50%;margin-top:-21px;opacity:.6;z-index:204}#slideshow-content #prevslide{left:10px;background:url('../img/back.png')}#slideshow-content #nextslide{right:10px;background:url('../img/forward.png')}#slideshow-content #prevslide:active,#nextslide:active{margin-top:-19px}#slideshow-content #prevslide:hover,#nextslide:hover{cursor:pointer}#slideshow-content ul#slide-list{padding:15px 0;float:left;position:absolute;left:50%}#slideshow-content ul#slide-list li{list-style:none;width:12px;height:12px;float:left;margin:0 5px 0 0}#slideshow-content ul#slide-list li.current-slide a,ul#slide-list li.current-slide a:hover{background-position:0 0}#slideshow-content ul#slide-list li a{display:block;width:12px;height:12px;background:url('../img/nav-dot.png') no-repeat 0 -24px}#slideshow-content ul#slide-list li a:hover{background-position:0 -12px;cursor:pointer}#slideshow-content #tray-button{float:right;margin-top:1px;border-left:1px solid #333;background:url('../img/bg-hover.png') repeat-x 0 44px}#slideshow-content #tray-button:hover{background-position:0 1px;cursor:pointer}#slideshow-content #progress-back{z-index:205;position:fixed;bottom:42px;left:0;height:8px;width:100%;background:url('../img/progress-back.png') repeat-x}#slideshow-content #progress-bar{position:relative;height:8px;width:100%;background:url('../img/progress-bar.png') repeat-x}#slideshow-content #nextthumb,#slideshow-content #prevthumb{z-index:202;display:none;position:fixed;bottom:61px;height:75px;width:100px;overflow:hidden;background:#ddd;border:1px solid #fff;-webkit-box-shadow:0 0 5px #000}#slideshow-content #nextthumb{right:12px}#slideshow-content #prevthumb{left:12px}#slideshow-content #nextthumb img,#slideshow-content #prevthumb img{width:150px;height:auto}#slideshow-content #nextthumb:active,#slideshow-content #prevthumb:active{bottom:59px}#slideshow-content #nextthumb:hover,#slideshow-content #prevthumb:hover{cursor:pointer}#slideshow-content #closeSlideShow{position:fixed;right:10px;top:10px;background:#000;width:30px;height:30px;line-height:30px;border-radius:15px;color:#fff;text-align:center}#slideshow-content #thumb-tray{position:fixed;z-index:203;bottom:0;left:0;background:url('../img/bg-black.png');height:150px;width:100%;overflow:hidden;text-align:center;-moz-box-shadow:0 0 4px #000;-webkit-box-shadow:0 0 4px #000;box-shadow:0 0 4px #000}#slideshow-content #thumb-back,#slideshow-content #thumb-forward{position:absolute;z-index:5;bottom:42px;height:108px;width:40px}#slideshow-content #thumb-back{left:0;background:url('../img/thumb-back.png') no-repeat center center}#slideshow-content #thumb-forward{right:0;background:url('../img/thumb-forward.png') no-repeat center center}#slideshow-content #thumb-back:hover,#slideshow-content #thumb-forward:hover{cursor:pointer;background-color:rgba(256,256,256,0.1)}#slideshow-content #thumb-back:hover{border-right:1px solid rgba(256,256,256,0.2)}#slideshow-content #thumb-forward:hover{border-left:1px solid rgba(256,256,256,0.2)}#slideshow-content ul#thumb-list{display:inline-block;list-style:none;position:relative;left:0;padding:0}#slideshow-content ul#thumb-list li{background:#111;list-style:none;display:inline;width:150px;height:108px;overflow:hidden;float:left;margin:0}#slideshow-content ul#thumb-list li img{width:135px;padding:5px;background-color:#fff;margin-left:5px;height:auto;opacity:.5;-ms-filter:"alpha(opacity=60)";filter:alpha(opacity=60);-webkit-transition:all 100ms ease-in-out;-moz-transition:all 100ms ease-in-out;-o-transition:all 100ms ease-in-out;-ms-transition:all 100ms ease-in-out;transition:all 100ms ease-in-out}#slideshow-content ul#thumb-list li.current-thumb img,#slideshow-content ul#thumb-list li:hover img{opacity:1;-ms-filter:"alpha(opacity=100)";filter:alpha(opacity=100)}#slideshow-content ul#thumb-list li:hover{cursor:pointer}div.rotate{background:rgba(0,0,0,0.6);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:1px solid rgba(0,0,0,0.9);z-index:12;display:block;color:#e5e5e5;padding:10px 10px 20px 10px}div.rotate span{clear:both;position:absolute;bottom:5px}div.rotate img{border:1px solid #323232} \ No newline at end of file +body.widgetbg{background:#fff url('../img/purty_wood.jpg') repeat}#ownWidget-container{position:absolute;margin-left:auto;z-index:200;font-family:arial;font-size:13px;top:10px;left:300px;margin-right:auto;width:700px;height:550px;background:#939393;background:rgba(0,0,0,0.3);border:1px solid #343434;border-radius:8px;-webkit-border-radius:8px;box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:0;color:#636363;padding:5px}a.imgLoading{background:#fff url('../img/loading.gif') 50% 50% no-repeat;display:block;float:left;margin-left:2px;margin-bottom:2px}#ownWidget-Loader{position:absolute;left:50%;top:50%;margin-left:-50px;margin-top:-50px;width:100px;height:100px;display:block;background:url('../img/ajax-loader.gif') 50% 50% no-repeat}.ownWidget-isHidden{display:none}#ownWidget-header{width:100%;top:0;position:relative;float:left;margin-top:5px;line-height:26px;font-size:14px;text-align:left;min-height:26px;display:block;background:transparent}#SlideShowButton{position:absolute;right:10px;margin-top:5px;cursor:pointer;line-height:26px}#ownWidget-header a.loadAlbum,#SlideShowButton,#ownWidget-header a.noAlbum{text-decoration:none;color:#fff;display:block;margin-left:10px;float:left;background:#707070;background:rgba(0,0,0,0.8);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:1px solid rgba(0,0,0,0.9);margin-bottom:2px;padding:3px 5px;border-radius:5px;-webkit-border-radius:5px}#ownWidget-header a:hover,#SlideShowButton:hover{background:#323232}#albumPics{clear:both;margin-top:3px;margin-left:-2px}#albumPics a.loadAlbum,#albumPics a.loadAlbum:hover{background:transparent;border:0;box-shadow:none;-webkit-box-shadow:none}#ownWidget-output img.imgshow{margin:5px;background:#fff;padding:5px;box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8)}#ownWidget-output{background:transparent;display:block;width:98%;float:left;height:0;position:relative;margin-top:10px;padding:5px;z-index:202}#ownWidget-output form{background:rgba(0,0,0,0.6);width:80%;margin-left:10%;border:1px solid #424242;border-radius:10px;-webkit-border-radius:10px;padding:10px}.ownWidget-scrollMe{margin:0;padding:0;margin-left:20px;float:none;width:670px;height:420px}.ownWidget-row{float:none;margin:0;padding:3px;margin-bottom:5px;width:auto}#ownWidget-slider{width:690px}#ownWidget-slider>div,#ownWidget-slider>li{width:auto}.mb-wrapper{margin:0;position:relative;left:0;background:transparent;top:0;z-index:220;display:block;height:auto}.mb-slider,.mb-scroll{width:auto;display:block;overflow:hidden;margin:0 auto;padding:0;position:relative;left:0;top:0;font-size:18px}.mb-active-slider{border-color:#ccc}.mb-slider .mb-panel{margin:0;display:block;cursor:pointer;float:left;list-style:none}.mb-slider .mb-panel.current{cursor:auto}.mb-inside{background:transparent;height:auto;width:auto;display:block;float:left}a.mb-scrollButtons{display:block;position:absolute;top:50%;margin-top:-20px;width:28px;height:40px;line-height:40px;cursor:pointer;color:#fff;background:#707070;background:rgba(0,0,0,0.8);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:rgba(0,0,0,0.9);border-radius:5px;-webkit-border-radius:5px;font-size:20px;text-align:center;text-decoration:none}a.mb-scrollButtons.mb-left{background-position:left top;left:-28px}a.mb-scrollButtons.mb-right{background-position:right top;right:-28px}a.mb-scrollButtons.mb-left:hover{background-position:left bottom}a.mb-scrollButtons.mb-right:hover{background-position:right bottom}a.mb-scrollButtons.disabled{display:none}.mb-controls{margin:0;margin-top:6px;text-align:center;background:transparent;position:relative;z-index:100}.mb-controls a{color:#666;font:20px/2.2 Georgia,Serif;display:inline-block;text-decoration:none;padding:2px;margin:0 5px 0 0;text-align:center;outline:0}.mb-controls a:hover{color:black}.mb-controls a.current{color:#bbb}.mb-active-slider .mb-controls{background:transparent}#ownWidget-output li a{text-decoration:none;color:#7da9ce}#ownWidget-closeButton{position:absolute;z-index:201;top:-10px;right:-10px;width:24px;height:24px;line-height:24px;border:2px solid #fff;background:#000;color:#fff;font-family:arial;font-weight:bold;font-size:14px;text-align:center;box-shadow:0 1px 8px rgba(0,0,0,0.6);-webkit-box-shadow:0 1px 8px rgba(0,0,0,0.6);border-radius:13px;-webkit-border-radius:13px}#ownWidget-overlayWid{top:0;left:0;position:absolute;background:#000;z-index:199}div#ownWidget-displayButton{text-decoration:none;position:absolute;padding:2px 8px;line-height:14pt;font-size:11pt;cursor:pointer;width:100px;text-align:center;min-width:100px;border:1px solid #bbb;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;-khtml-box-sizing:content-box;box-sizing:content-box;background:#dad2d2;background:-webkit-gradient(linear,0% 0,0% 100%,from(#fff),to(#ccc));background:-moz-linear-gradient(top,#fff,#ccc);background:-o-linear-gradient(#fff,#ccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#cccccc');zoom:1;color:#464646;text-shadow:rgba(255,255,255,1) 0 1px 0}.ownWidget-pageScroller{background:red;width:750px;height:400px;float:left}li.ownWidget-row{width:100%;margin:0;padding:0;display:block;line-height:20px}li.ownWidget-row span{float:left;padding-left:5px;display:block}.mCSB_container{width:auto;margin-right:30px;overflow:hidden}.mCSB_container.mCS_no_scrollbar{margin-right:0}.mCustomScrollBox .mCSB_scrollTools{width:16px;height:100%;top:0;right:0}.mCSB_scrollTools .mCSB_draggerContainer{height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mCSB_scrollTools .mCSB_buttonUp+.mCSB_draggerContainer{padding-bottom:40px}.mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_scrollTools .mCSB_dragger{cursor:pointer;width:100%;height:30px}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;text-align:center}.mCSB_scrollTools .mCSB_buttonUp,.mCSB_scrollTools .mCSB_buttonDown{height:20px;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools .mCSB_buttonDown{bottom:0;margin-top:-40px}.mCSB_horizontal .mCSB_container{height:auto;margin-right:0;margin-bottom:30px;overflow:hidden}.mCSB_horizontal .mCSB_container.mCS_no_scrollbar{margin-bottom:0}.mCSB_horizontal.mCustomScrollBox .mCSB_scrollTools{width:100%;height:16px;top:auto;right:auto;bottom:0;left:0;overflow:hidden}.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerContainer{height:100%;width:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft+.mCSB_draggerContainer{padding-bottom:0;padding-right:20px}.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerRail{width:100%;height:2px;margin:7px 0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger{width:30px;height:100%}.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft,.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight{width:20px;height:100%;overflow:hidden;margin:0 auto;cursor:pointer;float:left}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight{right:0;bottom:auto;margin-left:-40px;margin-top:-16px;float:right}.mCustomScrollBox .mCSB_scrollTools{opacity:.75}.mCustomScrollBox:hover .mCSB_scrollTools{opacity:1}.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,0.6);filter:"alpha(opacity=60)";-ms-filter:"alpha(opacity=60)"}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#5e667f;background:rgba(94,102,127,0.75);filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(94,102,127,0.85);filter:"alpha(opacity=85)";-ms-filter:"alpha(opacity=85)"}.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{background:rgba(94,102,127,0.9);filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCSB_scrollTools .mCSB_buttonUp,.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight{background-image:url(../img/mCSB_buttons.png);background-repeat:no-repeat;opacity:.4;filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_buttonUp{background-position:0 0}.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -20px}.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -40px}.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -56px}.mCSB_scrollTools .mCSB_buttonUp:hover,.mCSB_scrollTools .mCSB_buttonDown:hover,.mCSB_scrollTools .mCSB_buttonLeft:hover,.mCSB_scrollTools .mCSB_buttonRight:hover{opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_buttonUp:active,.mCSB_scrollTools .mCSB_buttonDown:active,.mCSB_scrollTools .mCSB_buttonLeft:active,.mCSB_scrollTools .mCSB_buttonRight:active{opacity:.9;filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:1104;display:none}#fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url('../img/fancy/fancybox.png')}#fancybox-overlay{position:fixed;top:0;left:0;width:100%;z-index:1100;display:none}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none}#fancybox-wrap{position:absolute;top:0;left:0;padding:20px;z-index:1101;outline:0;display:none}#fancybox-outer{position:relative;width:100%;height:100%;background:#fff}#fancybox-content{width:0;height:0;padding:0;outline:0;position:relative;overflow:hidden;z-index:1102;border:0 solid #fff}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:1101}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:transparent url('../img/fancy/fancybox.png') -40px 0;cursor:pointer;z-index:1103;display:none}#fancybox-error{color:#444;font:normal 12px/20px Arial;padding:14px;margin:0}#fancybox-img{width:100%;height:100%;padding:0;margin:0;border:0;outline:0;line-height:0;vertical-align:top}#fancybox-frame{width:100%;height:100%;border:0;display:block}#fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;outline:0;background:transparent url('../img/fancy/blank.gif');z-index:1102;display:none}#fancybox-left{left:0}#fancybox-right{right:0}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:1102;display:block}#fancybox-left-ico{background-image:url('../img/fancy/fancybox.png');background-position:-40px -30px}#fancybox-right-ico{background-image:url('../img/fancy/fancybox.png');background-position:-40px -60px}#fancybox-left:hover,#fancybox-right:hover{visibility:visible}#fancybox-left:hover span{left:20px}#fancybox-right:hover span{left:auto;right:20px}.fancybox-bg{position:absolute;padding:0;margin:0;border:0;width:20px;height:20px;z-index:1001}#fancybox-bg-n{top:-20px;left:0;width:100%;background-image:url('../img/fancy/fancybox-x.png')}#fancybox-bg-ne{top:-20px;right:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -162px}#fancybox-bg-e{top:0;right:-20px;height:100%;background-image:url('../img/fancy/fancybox-y.png');background-position:-20px 0}#fancybox-bg-se{bottom:-20px;right:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -182px}#fancybox-bg-s{bottom:-20px;left:0;width:100%;background-image:url('../img/fancy/fancybox-x.png');background-position:0 -20px}#fancybox-bg-sw{bottom:-20px;left:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -142px}#fancybox-bg-w{top:0;left:-20px;height:100%;background-image:url('../img/fancy/fancybox-y.png')}#fancybox-bg-nw{top:-20px;left:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -122px}#fancybox-title{font-family:Helvetica;font-size:12px;z-index:1102}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;background:#fff;position:relative}.fancybox-title-outside{padding-top:10px;color:#fff}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left}#fancybox-title-over{padding:10px;background-image:url('../img/fancy/fancy_title_over.png');display:block}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px}#fancybox-title-float-wrap{border:0;border-collapse:collapse;width:auto}#fancybox-title-float-wrap td{border:0;white-space:nowrap}#fancybox-title-float-left{padding:0 0 0 15px;background:url('../img/fancy/fancybox.png') -40px -90px no-repeat}#fancybox-title-float-main{color:#FFF;line-height:29px;font-weight:bold;padding:0 0 3px 0;background:url('../img/fancy/fancybox-x.png') 0 -40px}#fancybox-title-float-right{padding:0 0 0 15px;background:url('../img/fancy/fancybox.png') -55px -90px no-repeat}.fancybox-ie6 #fancybox-close{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_close.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-left-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_nav_left.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-right-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_nav_right.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-over{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_over.png',sizingMethod='scale');zoom:1}.fancybox-ie6 #fancybox-title-float-left{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_left.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-float-main{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_main.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-float-right{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_right.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-bg-w,.fancybox-ie6 #fancybox-bg-e,.fancybox-ie6 #fancybox-left,.fancybox-ie6 #fancybox-right,#fancybox-hide-sel-frame{height:expression(this.parentNode.clientHeight+"px")}#fancybox-loading.fancybox-ie6{position:absolute;margin-top:0;top:expression((-20+(document.documentElement.clientHeight ? document.documentElement.clientHeight/2:document.body.clientHeight/2)+(ignoreMe = document .documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop))+'px')}#fancybox-loading.fancybox-ie6 div{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_loading.png',sizingMethod='scale')}.fancybox-ie .fancybox-bg{background:transparent!important}.fancybox-ie #fancybox-bg-n{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_n.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-ne{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_ne.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-e{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_e.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-se{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_se.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-s{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_s.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-sw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_sw.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-w{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_w.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-nw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_nw.png',sizingMethod='scale')}#slideshow-content{z-index:202}*{margin:0;padding:0}img{border:0}#supersized-loader{position:absolute;top:50%;left:50%;z-index:0;width:60px;height:60px;margin:-30px 0 0 -30px;text-indent:-999em}#supersized{display:block;position:fixed;left:0;top:0;overflow:hidden;z-index:-999;height:100%;width:100%}#supersized img{width:auto;height:auto;position:relative;display:none;outline:0;border:0}#supersized.speed img{-ms-interpolation-mode:nearest-neighbor;image-rendering:-moz-crisp-edges}#supersized.quality img{-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality}#supersized li{display:block;list-style:none;z-index:-30;position:fixed;overflow:hidden;top:0;left:0;width:100%;height:100%;background:#111}#supersized a{width:100%;height:100%;display:block}#supersized li.prevslide{z-index:-20}#supersized li.activeslide{z-index:-10}#supersized li.image-loading{background:#111 url(../img/progress.gif) no-repeat center center;width:100%;height:100%}#supersized li.image-loading img{visibility:hidden}#supersized li.prevslide img,#supersized li.activeslide img{display:inline}#slideshow-content #controls-wrapper{margin:0 auto;height:42px;width:100%;bottom:0;left:0;z-index:204;background:url('../img/nav-bg.png') repeat-x;position:fixed}#slideshow-content #slideshow-controls{overflow:hidden;height:100%;position:relative;text-align:left;z-index:205}#slideshow-content #slidecounter{float:left;color:#999;font:14px "Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:#000 0 -1px 0;margin:0 10px 0 15px;line-height:42px}#slideshow-content #slidecaption{overflow:hidden;float:left;color:#FFF;font:400 14px "Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:#000 1px 1px 2px;margin:0 20px 0 0;line-height:42px}#slideshow-content #play-button{float:left;margin-top:1px;border-right:1px solid #333;background:url('../img/bg-hover.png') repeat-x 0 44px}#slideshow-content #play-button:hover{background-position:0 1px;cursor:pointer}#slideshow-content #prevslide,#nextslide{position:fixed;height:43px;width:43px;top:50%;margin-top:-21px;opacity:.6;z-index:204}#slideshow-content #prevslide{left:10px;background:url('../img/back.png')}#slideshow-content #nextslide{right:10px;background:url('../img/forward.png')}#slideshow-content #prevslide:active,#nextslide:active{margin-top:-19px}#slideshow-content #prevslide:hover,#nextslide:hover{cursor:pointer}#slideshow-content ul#slide-list{padding:15px 0;float:left;position:absolute;left:50%}#slideshow-content ul#slide-list li{list-style:none;width:12px;height:12px;float:left;margin:0 5px 0 0}#slideshow-content ul#slide-list li.current-slide a,ul#slide-list li.current-slide a:hover{background-position:0 0}#slideshow-content ul#slide-list li a{display:block;width:12px;height:12px;background:url('../img/nav-dot.png') no-repeat 0 -24px}#slideshow-content ul#slide-list li a:hover{background-position:0 -12px;cursor:pointer}#slideshow-content #tray-button{float:right;margin-top:1px;border-left:1px solid #333;background:url('../img/bg-hover.png') repeat-x 0 44px}#slideshow-content #tray-button:hover{background-position:0 1px;cursor:pointer}#slideshow-content #progress-back{z-index:205;position:fixed;bottom:42px;left:0;height:8px;width:100%;background:url('../img/progress-back.png') repeat-x}#slideshow-content #progress-bar{position:relative;height:8px;width:100%;background:url('../img/progress-bar.png') repeat-x}#slideshow-content #nextthumb,#slideshow-content #prevthumb{z-index:202;display:none;position:fixed;bottom:61px;height:75px;width:100px;overflow:hidden;background:#ddd;border:1px solid #fff;-webkit-box-shadow:0 0 5px #000}#slideshow-content #nextthumb{right:12px}#slideshow-content #prevthumb{left:12px}#slideshow-content #nextthumb img,#slideshow-content #prevthumb img{width:150px;height:auto}#slideshow-content #nextthumb:active,#slideshow-content #prevthumb:active{bottom:59px}#slideshow-content #nextthumb:hover,#slideshow-content #prevthumb:hover{cursor:pointer}#slideshow-content #closeSlideShow{position:fixed;right:10px;top:10px;z-index:202;width:24px;height:24px;line-height:24px;border:2px solid #fff;background:#000;color:#fff;font-family:arial;font-weight:bold;font-size:14px;text-align:center;box-shadow:0 1px 8px rgba(0,0,0,0.6);-webkit-box-shadow:0 1px 8px rgba(0,0,0,0.6);border-radius:13px;cursor:pointer;-webkit-border-radius:13px}#slideshow-content #thumb-tray{position:fixed;z-index:203;bottom:0;left:0;background:url('../img/bg-black.png');height:150px;width:100%;overflow:hidden;text-align:center;-moz-box-shadow:0 0 4px #000;-webkit-box-shadow:0 0 4px #000;box-shadow:0 0 4px #000}#slideshow-content #thumb-back,#slideshow-content #thumb-forward{position:absolute;z-index:5;bottom:42px;height:108px;width:40px}#slideshow-content #thumb-back{left:0;background:url('../img/thumb-back.png') no-repeat center center}#slideshow-content #thumb-forward{right:0;background:url('../img/thumb-forward.png') no-repeat center center}#slideshow-content #thumb-back:hover,#slideshow-content #thumb-forward:hover{cursor:pointer;background-color:rgba(256,256,256,0.1)}#slideshow-content #thumb-back:hover{border-right:1px solid rgba(256,256,256,0.2)}#slideshow-content #thumb-forward:hover{border-left:1px solid rgba(256,256,256,0.2)}#slideshow-content ul#thumb-list{display:inline-block;list-style:none;position:relative;left:0;padding:0}#slideshow-content ul#thumb-list li{background:#111;list-style:none;display:inline;width:150px;height:108px;overflow:hidden;float:left;margin:0}#slideshow-content ul#thumb-list li img{width:135px;padding:5px;background-color:#fff;margin-left:5px;height:auto;opacity:.5;-ms-filter:"alpha(opacity=60)";filter:alpha(opacity=60);-webkit-transition:all 100ms ease-in-out;-moz-transition:all 100ms ease-in-out;-o-transition:all 100ms ease-in-out;-ms-transition:all 100ms ease-in-out;transition:all 100ms ease-in-out}#slideshow-content ul#thumb-list li.current-thumb img,#slideshow-content ul#thumb-list li:hover img{opacity:1;-ms-filter:"alpha(opacity=100)";filter:alpha(opacity=100)}#slideshow-content ul#thumb-list li:hover{cursor:pointer}div.rotate{background:rgba(0,0,0,0.6);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:1px solid rgba(0,0,0,0.9);z-index:12;display:block;color:#e5e5e5;padding:10px 10px 20px 10px}div.rotate span{clear:both;position:absolute;bottom:5px}div.rotate img{border:1px solid #323232} \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/css/widget.full.css b/oc454/apps/files_sharing_widget/css/widget.full.css index a380edb..90e4ed6 100644 --- a/oc454/apps/files_sharing_widget/css/widget.full.css +++ b/oc454/apps/files_sharing_widget/css/widget.full.css @@ -8,7 +8,7 @@ */ body.widgetbg { - background: #fff url('../img/purty_wood.jpg') repeat + background: #fff url('../img/purty_wood.jpg') repeat; } #ownWidget-container { position: absolute; @@ -1083,13 +1083,22 @@ img { position: fixed; right: 10px; top: 10px; + z-index:202; + width: 24px; + height: 24px; + line-height: 24px; + border: 2px solid #fff; background: #000; - width: 30px; - height: 30px; - line-height: 30px; - border-radius: 15px; color: #fff; - text-align: center + font-family: arial; + font-weight: bold; + font-size: 14px; + text-align: center; + box-shadow: 0 1px 8px rgba(0,0,0,0.6); + -webkit-box-shadow: 0 1px 8px rgba(0,0,0,0.6); + border-radius: 13px; + cursor: pointer; + -webkit-border-radius: 13px; } #slideshow-content #thumb-tray { position: fixed; diff --git a/oc454/apps/files_sharing_widget/font/Manfred Klein License.txt b/oc454/apps/files_sharing_widget/font/Manfred Klein License.txt new file mode 100644 index 0000000..e360962 --- /dev/null +++ b/oc454/apps/files_sharing_widget/font/Manfred Klein License.txt @@ -0,0 +1,5 @@ +Manfred’s fonts are free for private and charity use. They are even free for commercial use – but if there’s any profit, pls make a donation to organizations like Doctors Without Borders. + +These fonts can NOT be included in any compilation CDs, disks or products, either commercial or shareware unless prior permission granted. + +All typefaces were created by Manfred Klein 2001-2008. \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/font/MonospaceTypewriter.ttf b/oc454/apps/files_sharing_widget/font/MonospaceTypewriter.ttf new file mode 100644 index 0000000000000000000000000000000000000000..29e9a6795d2b66abc6ff32b2addd1002cc1eaa5d GIT binary patch literal 38748 zcmbS!2VfgT_V>=pmb+}(mgOc}wk*lLsk+KFwpA>5TejmG$Bs)9(kKZKNZ_cUhtN3) z9KCZKEp$R42}!t+5C{n^#{tLPQST4Y?)RIKTL|H}FR(wYS2J(kym|BHy*INqM>viP z;ns5!F5lgnR~S|MY%a$UE1otEPYo{rlWj1GWuKl#%$ERh~p$%CPr2)y>-VUV;t92!Eq%I zOfDN9jH(vj;JAQ9l-WHsc*b)62W}Ggv8bi8)|E7!-n z@cmJKicy;V8aKz-lVjXC7r-9#3T>&bVVKW=v7KaM2LelDhEcupz>qde!g z9$m+S*?%qvZYwzdqr}Gpc>4(jOK~~4TXFp#u19$ncQZZ@YFt&*_n%JJZNSenmk0Fo@v|SUN?a!VOzXAd(~VEcqaD|Jv|&fT^6|U{ zKU;CRa24QZ+CN&3(xm(s;-YP8a8bEr;7Y_rzuST9YVh#}KG)+4#Qk=B)=krC#?Q3f z7JN2M-}kfc8n}n>**0B{_OBmTJ^Pu~adGG1XAkPMPJc)H5sIq}S23lSwSFEGW5C?7j1{i;t=l;zr|-X zu1|0kfk!GY9#=Tp55ng{To2=l!nFq1T3qJopYOrv?YO8s&&72X>c4@uDUA+XAK~Xm zpi8e$e^2YCOdAbtZnEyXDI%7E(AiI)@Q=3jJNeSM`m`OAyS!GepnGyf`N?fdkvfm#R5Rest! zL}MPqa*%jj(&_0;cs%s;m-?)P?_pq2a7bvFEIdLU85OOFQO3r_CnTzplGQ1xnl!CW zpPrGKm7SBDmtRn5Fq+I3Yf*7YX<50gqOz*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ee!=6Wt7-ckfOqokJMizMuZ4$SycW-O%D=|Vn8k0taiZdLoH@4i49?XZ zy_%lM_4fO-mVeE=@@Ks(eJ$V7cyV zgEhhyRwK7^ighmQ*7Nu`Mm$rD7)GD<-Zs9`XE_V`zF9Tr<*GOzwvzl7w~fCyaeo6$ z?fkz5z9tyr>}c;K9d|p#zLivm?&k#G|2XEuw2-fDRl_&)zctS~2;b@XKmVO0@3ec3 z9#*FH&fr^q%iQJ_cb4BqIp_XN?abmA$nBShuje;XZs02m@8#>>H}a*~_wnUl`(^O= z^F;*v71Iy#>xUoa+ixG`JH9t@wwklloL9YtQ=qe{+uNvtd3-_b_@ZTww67sb?gM)&+bbTvze!vJ$2I){(v`1xi{QN_bb}`gnN-7OZ24#IJ9wP^?tAXHg)8FBlte0idT6! 0) { -if($('#ShareEntreeForm').length >0){ - -$("#savebutton").click( function(){ - if ($('#mySecretW').val() != '') { - // Serialize the data - //var post = $( "#ShareEntreeForm" ).serialize(); - var post ={mySecretWord:$("#mySecretW").val()}; - OC.msg.startSaving('#ShareEntreeForm .msg'); - $.post( OC.filePath('files_sharing_widget', 'ajax', 'sharesecret.php'), post, function(data){ - if( data.status == "success" ){ - OC.msg.finishedSaving('#ShareEntreeForm .msg', data); - - } - - }); - return false; - } else { - - return false; - } + $("#savebutton").click(function() { + if ($('#mySecretW').val() != '') { + // Serialize the data + //var post = $( "#ShareEntreeForm" ).serialize(); + var post = { + mySecretWord : $("#mySecretW").val() + }; + OC.msg.startSaving('#ShareEntreeForm .msg'); + $.post(OC.filePath('files_sharing_widget', 'ajax', 'sharesecret.php'), post, function(data) { + if (data.status == "success") { + OC.msg.finishedSaving('#ShareEntreeForm .msg', data); - }); - $("#saveemailbutton").click( function(){ - if ($('#mySiteEmail').val() != '') { - // Serialize the data - var post ={siteemail:$("#mySiteEmail").val()}; - - OC.msg.startSaving('#ShareEntreeForm .msg'); - $.post( OC.filePath('files_sharing_widget', 'ajax', 'sharesecret.php'), post, function(data){ - if( data.status == "success" ){ - OC.msg.finishedSaving('#ShareEntreeForm .msg', data); - - } - - }); - return false; - } else { - - return false; - } + } + + }); + return false; + } else { + + return false; + } + + }); + $("#saveemailbutton").click(function() { + if ($('#mySiteEmail').val() != '') { + // Serialize the data + var post = { + siteemail : $("#mySiteEmail").val() + }; - }); -} + OC.msg.startSaving('#ShareEntreeForm .msg'); + $.post(OC.filePath('files_sharing_widget', 'ajax', 'sharesecret.php'), post, function(data) { + if (data.status == "success") { + OC.msg.finishedSaving('#ShareEntreeForm .msg', data); + + } + + }); + return false; + } else { + + return false; + } + + }); + } }); -OC.msg={ - startSaving:function(selector){ - $(selector) - .html( t('settings', 'Saving...') ) - .removeClass('success') - .removeClass('error') - .stop(true, true) - .show(); +OC.msg = { + startSaving : function(selector) { + $(selector).html(t('settings', 'Saving...')).removeClass('success').removeClass('error').stop(true, true).show(); }, - finishedSaving:function(selector, data){ - if( data.status == "success" ){ - $(selector).html( data.data.message ) - .addClass('success') - .stop(true, true) - .delay(3000) - .fadeOut(600); - }else{ - $(selector).html( data.data.message ).addClass('error'); + finishedSaving : function(selector, data) { + if (data.status == "success") { + $(selector).html(data.data.message).addClass('success').stop(true, true).delay(3000).fadeOut(600); + } else { + $(selector).html(data.data.message).addClass('error'); } } -}; +}; \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/js/widget.full.js b/oc454/apps/files_sharing_widget/js/widget.full.js index 37e6b35..f9b77c3 100644 --- a/oc454/apps/files_sharing_widget/js/widget.full.js +++ b/oc454/apps/files_sharing_widget/js/widget.full.js @@ -7,22 +7,15 @@ * */ (function() { - var jQuery; - var widOpt=ownWidgetOptions; - var widgetContainer; - var overlay; - var loadPage=""; - var firstShow=true; - var imageSlide = []; - - + if (window.jQuery === undefined || window.jQuery.fn.jquery !== "1.8.2") { var script_tag = document.createElement("script"); script_tag.setAttribute("type", "text/javascript"); - script_tag.setAttribute("src", widOpt.path + "apps/files_sharing_widget/js/jquery-pack.min.js"); + script_tag.setAttribute("src",ownWidgetOptions.path + ownWidgetOptions.appspath+ "/files_sharing_widget/js/jquery-pack.min.js"); if (script_tag.readyState) { + script_tag.onreadystatechange = function() { if (this.readyState == "complete" || this.readyState == "loaded") { scriptLoadHandler(); @@ -51,43 +44,172 @@ str = (str + "").toString(); return encodeURIComponent(str).replace(/!/g, "%21").replace(/'/g, "%27").replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\*/g, "%2A"); } - - function initMovingBox(){ - var h=widgetContainer.height() - 80; - if(jQuery('#albumPics').length > 0) var h=widgetContainer.height() -210; - - jQuery("#ownWidget-slider").movingBoxes({ - reducedSize : 1, - startPanel : 1, - hashTags : false, - speed : 700, - fixedHeight : true, - wrap : false, - buildNav : true, - navFormatter : function() { - return "●" - }, - preinit:function(){ - widgetContainer.prepend('
 
'); - jQuery("#ownWidget-output").hide(); - jQuery(".mb-wrapper").css({height : h}); - }, - initialized:function(e, slider, tar){ - jQuery(".mb-scroll").height(h-20); - jQuery("#ownWidget-slider").height(h-20); - jQuery("#ownWidget-Loader").remove(); - jQuery("#ownWidget-output").show(); - - } - }); - } - - function loadData() { + + function main() { + jQuery(document).ready(function($) { + // if($.browser.msie && $.browser.version<9){ + //widgetContainer.css('opacity',0.3); + // } + OwnWidget.init(ownWidgetOptions); + }); + } + +var OwnWidget={ + + init:function(options){ + var defaults={ + crypt:'', + path:'', + appspath:'apps', + display:'', + fbAppid:'', + modal:true, + cssAddWidget:{'width':1000,'height':560}, + cssAddButton:{'top':20,'left':20}, + buttonlabel:'Fotogalerie' + } + this.options=jQuery.extend(true,defaults,options); + this.loadCssFile(); + this.imageSlide = []; + this.loadPage=''; + this.widgetContainer=jQuery("#ownWidget-container"); + this.firstShow=true; + if(this.options.fbAppid!=''){ + this.loginToFacebookApp(); + } + + if (this.options.display == "hidden") { + this.createShowButton(); + } else { + this.showWidget(); + } + this.initSupersized() + }, + + loadCssFile:function(){ + if(jQuery('#ownWidgetCss').length<1){ + jQuery("", {id:'ownWidgetCss',rel : "stylesheet",type : "text/css",href :this.options.path + this.options.appspath+ "/files_sharing_widget/css/widget.css"}).appendTo("head"); + } + }, + + createShowButton:function () { + self=this; + this.widgetContainer.hide(); + if (this.options.modal) { + this.overlay = jQuery('
').appendTo("body"); + } + this.addWidgetControls(); + var DisplayButton = jQuery('
' + this.options.buttonlabel + "
"); + DisplayButton.css(this.options.cssAddButton); + DisplayButton.appendTo("body"); + DisplayButton.click(function() { + if (self.options.modal) { + self.overlay.height(jQuery(window).height()); + self.overlay.width(jQuery(window).width()); + self.overlay.animate({ + opacity : 0.5 + }, 500, function() { + self.loadData(); + }); + } else { + self.loadData(); + } + }); + }, + + showWidget: function (){ + this.widgetContainer.hide(); + this.addWidgetControls(); + this.loadData(); + + }, + + addWidgetControls:function() { + var self=this; + if (this.options.display == "hidden") { + var CloseButton = jQuery('
X
'); + this.widgetContainer.prepend(CloseButton); + } + this.widgetContainer.prepend('
'); + var wHeader = jQuery('
Slideshow
'); + this.widgetContainer.prepend(wHeader); + + jQuery("#SlideShowButton").click(function() { + self.widgetContainer.animate({ + opacity : "toggle" + }, 500, function() { + jQuery("body").append("
"); + jQuery("#supersized-loader").remove(); + jQuery("#supersized").remove(); + jQuery("#supersized-holder").append("
    "); + jQuery("#supersized").show(); + jQuery("#slideshow-content").animate({opacity : "toggle"}); + jQuery("a[rel=fancyArea]").each(function(i, el) { + self.imageSlide.push({ + image : el.href, + title : el.title.replace(//, ">"), + thumb : el.children[0].src + }); + }); + self.loadSupersized(); + }); + }); + jQuery("#SlideShowButton").hide(); + if (this.options.display == "hidden") { + CloseButton.click(function() { + self.widgetContainer.animate({ + opacity : "toggle" + }, 500, function() { + if (self.options.modal) { + self.overlay.height(0); + self.overlay.width(0); + } + self.firstShow = true; + self.widgetContainer.hide(); + }); + }); + } + }, + initMovingBox:function(){ + + var self=this; + var h=this.widgetContainer.height() - 80; + + if(jQuery('#albumPics').length > 0) var h=this.widgetContainer.height() -210; + + jQuery("#ownWidget-slider").movingBoxes({ + reducedSize : 1, + startPanel : 1, + hashTags : false, + speed : 700, + fixedHeight : true, + wrap : false, + buildNav : true, + navFormatter : function() { + return "●" + }, + preinit:function(){ + self.widgetContainer.prepend('
     
    '); + jQuery("#ownWidget-output").hide(); + jQuery(".mb-wrapper").css({height : h}); + }, + initialized:function(e, slider, tar){ + jQuery(".mb-scroll").height(h-20); + jQuery("#ownWidget-slider").height(h-20); + jQuery("#ownWidget-Loader").remove(); + jQuery("#ownWidget-output").show(); + + } + }); + }, + + loadData:function() { + var self = this; jQuery.ajax({ dataType : "jsonp", jsonp : "jsonp_callback", - url : widOpt.path + "widget.php?iToken=" + rawurlencode(widOpt.crypt) + loadPage, + url : self.options.path + "widget.php?iToken=" + rawurlencode(self.options.crypt) + self.loadPage, success : function(data) { @@ -99,44 +221,44 @@ if (jQuery("#loginForm").length > 0) { jQuery("#loginForm #iSubmit").click(function(event) { event.preventDefault(); - loadPage = "&password=" + jQuery("#password").val(); - loadData(); + self.loadPage = "&password=" + jQuery("#password").val(); + self.loadData(); }); } jQuery("#ownWidget-header .loadAlbum").each(function(i, el) { jQuery(el).click(function() { if (jQuery(el).attr("title") == "") { - loadPage = ""; + self.loadPage = ""; } else { - loadPage = "&path=/" + jQuery(el).attr("title"); + self.loadPage = "&path=/" + jQuery(el).attr("title"); } - loadData(); + self.loadData(); }) }); - if (firstShow) { + if (self.firstShow) { - widgetContainer.css(widOpt.cssAddWidget); + self.widgetContainer.css(self.options.cssAddWidget); - if (!widOpt.cssAddWidget.top && !widOpt.cssAddWidget.left) { - widgetContainer.css({ - top : (jQuery(window).height() / 2) - (widgetContainer.height() / 2), - left : (jQuery(window).width() / 2) - (widgetContainer.width() / 2) + if (!self.options.cssAddWidget.top && !self.options.cssAddWidget.left) { + self.widgetContainer.css({ + top : (jQuery(window).height() / 2) - (self.widgetContainer.height() / 2), + left : (jQuery(window).width() / 2) - (self.widgetContainer.width() / 2) }); } - widgetContainer.show(); + self.widgetContainer.show(); - firstShow = false; + self.firstShow = false; } if (jQuery("#ownWidget-slider").length > 0) { - jQuery("#ownWidget-slider").css({width : widgetContainer.width() - 12}); - jQuery("#ownWidget-slider > div").css({width : widgetContainer.width() - 15 }); + jQuery("#ownWidget-slider").css({width : self.widgetContainer.width() - 12}); + jQuery("#ownWidget-slider > div").css({width : self.widgetContainer.width() - 15 }); if (jQuery("#ownWidget-slider > div").length > 1) { - initMovingBox(); + self.initMovingBox(); } else { if (jQuery("#ownWidget-slider").html() == "") { jQuery("#ownWidget-slider").html("
    No images found!
    "); @@ -161,14 +283,13 @@ } }); - } - - function loadSuperSizedTheme() { + }, + loadSuperSizedTheme:function() { jQuery.supersized.themeVars = { progress_delay : false, thumb_page : false, thumb_interval : false, - image_path : widOpt.path + "apps/files_sharing_widget/img/", + image_path : this.options.path + this.options.appspath+ "/files_sharing_widget/img/", play_button : "#pauseplay", next_slide : "#nextslide", prev_slide : "#prevslide", @@ -186,25 +307,25 @@ tray_button : "#tray-button", progress_bar : "#progress-bar" } - } - - function initSupersized() { - var htmlString = ''; + }, + initSupersized:function() { + var self=this; + var htmlString = ''; jQuery(htmlString).appendTo("body"); jQuery("#closeSlideShow").click(function() { if (jQuery.supersized.vars.slideshow_interval) { clearInterval(jQuery.supersized.vars.slideshow_interval); } - imageSlide = []; + self.imageSlide = []; jQuery("#supersized-holder").remove(); jQuery("#slideshow-content").animate({opacity : "toggle"}); jQuery("#thumb-list").remove(); - widgetContainer.animate({opacity : "toggle"}); + self.widgetContainer.animate({opacity : "toggle"}); }); - } + }, - function loadSupersized() { - loadSuperSizedTheme(); + loadSupersized:function() { + this.loadSuperSizedTheme(); jQuery.supersized({ slideshow : 1, autoplay : 0, @@ -230,107 +351,26 @@ new_window : false, thumb_links : 1, thumbnail_navigation : 0, - slides : imageSlide, + slides : this.imageSlide, progress_bar : 1, mouse_scrub : 0 }); - } + }, + loginToFacebookApp:function(){ + jQuery('body').append('
    '); + jQuery.getScript(document.location.protocol + '//connect.facebook.net/de_DE/all.js'); + window.fbAsyncInit = function() { + FB.init({appId:this.options.fbAppid, status: true, cookie: true, xfbml: true}); + }; + + } - function addWidgetControls() { - if (widOpt.display == "hidden") { - var CloseButton = jQuery('
    X
    '); - widgetContainer.prepend(CloseButton); - } - widgetContainer.prepend('
    '); - var wHeader = jQuery('
    Slideshow
    '); - widgetContainer.prepend(wHeader); - - jQuery("#SlideShowButton").click(function() { - widgetContainer.animate({ - opacity : "toggle" - }, 500, function() { - jQuery("body").append("
    "); - jQuery("#supersized-loader").remove(); - jQuery("#supersized").remove(); - jQuery("#supersized-holder").append("
      "); - jQuery("#supersized").show(); - jQuery("#slideshow-content").animate({opacity : "toggle"}); - jQuery("a[rel=fancyArea]").each(function(i, el) { - imageSlide.push({ - image : el.href, - title : el.title.replace(//, ">"), - thumb : el.children[0].src - }); - }); - loadSupersized(); - }); - }); - jQuery("#SlideShowButton").hide(); - if (widOpt.display == "hidden") { - CloseButton.click(function() { - widgetContainer.animate({ - opacity : "toggle" - }, 500, function() { - if (widOpt.modal) { - overlay.height(0); - overlay.width(0); - } - firstShow = true; - widgetContainer.hide(); - }); - }); - } - } - function showWidget(){ - widgetContainer.hide(); - addWidgetControls(); - loadData(); - initSupersized(); - } - - function createShowButton() { - widgetContainer.hide(); - if (widOpt.modal) { - overlay = jQuery('
      ').appendTo("body"); - } - addWidgetControls(); - var DisplayButton = jQuery('
      ' + widOpt.buttonlabel + "
      "); - DisplayButton.css(widOpt.cssAddButton); - DisplayButton.appendTo("body"); - DisplayButton.click(function() { - if (widOpt.modal) { - overlay.height(jQuery(window).height()); - overlay.width(jQuery(window).width()); - overlay.animate({ - opacity : 0.5 - }, 500, function() { - loadData(); - }); - } else { - loadData(); - } - }); - } - function main() { - jQuery(document).ready(function($) { - widgetContainer = $("#ownWidget-container"); - $("", { - rel : "stylesheet", - type : "text/css", - href : widOpt.path + "apps/files_sharing_widget/css/widget.full.css" - }).appendTo("head"); - if($.browser.msie && $.browser.version<9){ - //widgetContainer.css('opacity',0.3); - } - if (widOpt.display == "hidden") { - createShowButton(); - } else { - showWidget(); - } - - }); - } + + +} + +})(); + -})(); \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/js/widget.js b/oc454/apps/files_sharing_widget/js/widget.js index 0c1f268..b8b9c33 100644 --- a/oc454/apps/files_sharing_widget/js/widget.js +++ b/oc454/apps/files_sharing_widget/js/widget.js @@ -6,4 +6,4 @@ * * */ -(function(){var i;var k=ownWidgetOptions;var b;var o;var e="";var r=true;var l=[];if(window.jQuery===undefined||window.jQuery.fn.jquery!=="1.8.2"){var m=document.createElement("script");m.setAttribute("type","text/javascript");m.setAttribute("src",k.path+"apps/files_sharing_widget/js/jquery-pack.min.js");if(m.readyState){m.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){q()}}}else{m.onload=q}(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(m)}else{i=window.jQuery;c()}function q(){i=window.jQuery.noConflict(true);c()}function h(t){t=(t+"").toString();return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function n(){var t=b.height()-80;if(i("#albumPics").length>0){var t=b.height()-210}i("#ownWidget-slider").movingBoxes({reducedSize:1,startPanel:1,hashTags:false,speed:700,fixedHeight:true,wrap:false,buildNav:true,navFormatter:function(){return"●"},preinit:function(){b.prepend('
       
      ');i("#ownWidget-output").hide();i(".mb-wrapper").css({height:t})},initialized:function(w,v,u){i(".mb-scroll").height(t-20);i("#ownWidget-slider").height(t-20);i("#ownWidget-Loader").remove();i("#ownWidget-output").show()}})}function a(){i.ajax({dataType:"jsonp",jsonp:"jsonp_callback",url:k.path+"widget.php?iToken="+h(k.crypt)+e,success:function(t){i("#ownWidget-output").html("");i("#ownWidget-output").html(t.databack);i("#ownWidget-header").html(t.nav+" "+t.folder);if(i("#loginForm").length>0){i("#loginForm #iSubmit").click(function(u){u.preventDefault();e="&password="+i("#password").val();a()})}i("#ownWidget-header .loadAlbum").each(function(u,v){i(v).click(function(){if(i(v).attr("title")==""){e=""}else{e="&path=/"+i(v).attr("title")}a()})});if(r){b.css(k.cssAddWidget);if(!k.cssAddWidget.top&&!k.cssAddWidget.left){b.css({top:(i(window).height()/2)-(b.height()/2),left:(i(window).width()/2)-(b.width()/2)})}b.show();r=false}if(i("#ownWidget-slider").length>0){i("#ownWidget-slider").css({width:b.width()-12});i("#ownWidget-slider > div").css({width:b.width()-15});if(i("#ownWidget-slider > div").length>1){n()}else{if(i("#ownWidget-slider").html()==""){i("#ownWidget-slider").html("
      No images found!
      ");i("#SlideShowButton").hide()}}}if(i("a[rel=fancyArea]").length>0){i("a[rel=fancyArea]").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:600,speedOut:200,titlePosition:"over",titleFormat:function(y,z,B,A){return'Image '+(B+1)+" / "+z.length+" "+y+""}});i("#SlideShowButton").show()}}})}function d(){i.supersized.themeVars={progress_delay:false,thumb_page:false,thumb_interval:false,image_path:k.path+"apps/files_sharing_widget/img/",play_button:"#pauseplay",next_slide:"#nextslide",prev_slide:"#prevslide",next_thumb:"#nextthumb",prev_thumb:"#prevthumb",slide_caption:"#slidecaption",slide_current:".slidenumber",slide_total:".totalslides",slide_list:"#slide-list",thumb_tray:"#thumb-tray",thumb_list:"#thumb-list",thumb_forward:"#thumb-forward",thumb_back:"#thumb-back",tray_arrow:"#tray-arrow",tray_button:"#tray-button",progress_bar:"#progress-bar"}}function g(){var t='';i(t).appendTo("body");i("#closeSlideShow").click(function(){if(i.supersized.vars.slideshow_interval){clearInterval(i.supersized.vars.slideshow_interval)}l=[];i("#supersized-holder").remove();i("#slideshow-content").animate({opacity:"toggle"});i("#thumb-list").remove();b.animate({opacity:"toggle"})})}function p(){d();i.supersized({slideshow:1,autoplay:0,start_slide:1,stop_loop:0,random:0,slide_interval:3000,transition:6,transition_speed:1000,new_window:1,pause_hover:0,keyboard_nav:1,performance:1,image_protect:1,min_width:0,min_height:0,vertical_center:1,horizontal_center:1,fit_always:0,fit_portrait:1,fit_landscape:0,slide_links:false,new_window:false,thumb_links:1,thumbnail_navigation:0,slides:l,progress_bar:1,mouse_scrub:0})}function j(){if(k.display=="hidden"){var u=i('
      X
      ');b.prepend(u)}b.prepend('
      ');var t=i('
      Slideshow
      ');b.prepend(t);i("#SlideShowButton").click(function(){b.animate({opacity:"toggle"},500,function(){i("body").append("
      ");i("#supersized-loader").remove();i("#supersized").remove();i("#supersized-holder").append("
        ");i("#supersized").show();i("#slideshow-content").animate({opacity:"toggle"});i("a[rel=fancyArea]").each(function(v,w){l.push({image:w.href,title:w.title.replace(//,">"),thumb:w.children[0].src})});p()})});i("#SlideShowButton").hide();if(k.display=="hidden"){u.click(function(){b.animate({opacity:"toggle"},500,function(){if(k.modal){o.height(0);o.width(0)}r=true;b.hide()})})}}function s(){b.hide();j();a();g()}function f(){b.hide();if(k.modal){o=i('
        ').appendTo("body")}j();var t=i('
        '+k.buttonlabel+"
        ");t.css(k.cssAddButton);t.appendTo("body");t.click(function(){if(k.modal){o.height(i(window).height());o.width(i(window).width());o.animate({opacity:0.5},500,function(){a()})}else{a()}})}function c(){i(document).ready(function(t){b=t("#ownWidget-container");t("",{rel:"stylesheet",type:"text/css",href:k.path+"apps/files_sharing_widget/css/widget.css"}).appendTo("head");if(k.display=="hidden"){f()}else{s()}})}})(); \ No newline at end of file +(function(){var d;if(window.jQuery===undefined||window.jQuery.fn.jquery!=="1.8.2"){var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("src",ownWidgetOptions.path+ownWidgetOptions.appspath+"/files_sharing_widget/js/jquery-pack.min.js");if(e.readyState){e.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){b()}}}else{e.onload=b}(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(e)}else{d=window.jQuery;a()}function b(){d=window.jQuery.noConflict(true);a()}function f(g){g=(g+"").toString();return encodeURIComponent(g).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function a(){d(document).ready(function(g){c.init(ownWidgetOptions)})}var c={init:function(g){var h={crypt:"",path:"",appspath:"apps",display:"",fbAppid:"",modal:true,cssAddWidget:{width:1000,height:560},cssAddButton:{top:20,left:20},buttonlabel:"Fotogalerie"};this.options=d.extend(true,h,g);this.loadCssFile();this.imageSlide=[];this.loadPage="";this.widgetContainer=d("#ownWidget-container");this.firstShow=true;if(this.options.fbAppid!=""){this.loginToFacebookApp()}if(this.options.display=="hidden"){this.createShowButton()}else{this.showWidget()}this.initSupersized()},loadCssFile:function(){if(d("#ownWidgetCss").length<1){d("",{id:"ownWidgetCss",rel:"stylesheet",type:"text/css",href:this.options.path+this.options.appspath+"/files_sharing_widget/css/widget.css"}).appendTo("head")}},createShowButton:function(){self=this;this.widgetContainer.hide();if(this.options.modal){this.overlay=d('
        ').appendTo("body")}this.addWidgetControls();var g=d('
        '+this.options.buttonlabel+"
        ");g.css(this.options.cssAddButton);g.appendTo("body");g.click(function(){if(self.options.modal){self.overlay.height(d(window).height());self.overlay.width(d(window).width());self.overlay.animate({opacity:0.5},500,function(){self.loadData()})}else{self.loadData()}})},showWidget:function(){this.widgetContainer.hide();this.addWidgetControls();this.loadData()},addWidgetControls:function(){var g=this;if(this.options.display=="hidden"){var i=d('
        X
        ');this.widgetContainer.prepend(i)}this.widgetContainer.prepend('
        ');var h=d('
        Slideshow
        ');this.widgetContainer.prepend(h);d("#SlideShowButton").click(function(){g.widgetContainer.animate({opacity:"toggle"},500,function(){d("body").append("
        ");d("#supersized-loader").remove();d("#supersized").remove();d("#supersized-holder").append("
          ");d("#supersized").show();d("#slideshow-content").animate({opacity:"toggle"});d("a[rel=fancyArea]").each(function(j,k){g.imageSlide.push({image:k.href,title:k.title.replace(//,">"),thumb:k.children[0].src})});g.loadSupersized()})});d("#SlideShowButton").hide();if(this.options.display=="hidden"){i.click(function(){g.widgetContainer.animate({opacity:"toggle"},500,function(){if(g.options.modal){g.overlay.height(0);g.overlay.width(0)}g.firstShow=true;g.widgetContainer.hide()})})}},initMovingBox:function(){var g=this;var i=this.widgetContainer.height()-80;if(d("#albumPics").length>0){var i=this.widgetContainer.height()-210}d("#ownWidget-slider").movingBoxes({reducedSize:1,startPanel:1,hashTags:false,speed:700,fixedHeight:true,wrap:false,buildNav:true,navFormatter:function(){return"●"},preinit:function(){g.widgetContainer.prepend('
           
          ');d("#ownWidget-output").hide();d(".mb-wrapper").css({height:i})},initialized:function(k,j,h){d(".mb-scroll").height(i-20);d("#ownWidget-slider").height(i-20);d("#ownWidget-Loader").remove();d("#ownWidget-output").show()}})},loadData:function(){var g=this;d.ajax({dataType:"jsonp",jsonp:"jsonp_callback",url:g.options.path+"widget.php?iToken="+f(g.options.crypt)+g.loadPage,success:function(h){d("#ownWidget-output").html("");d("#ownWidget-output").html(h.databack);d("#ownWidget-header").html(h.nav+" "+h.folder);if(d("#loginForm").length>0){d("#loginForm #iSubmit").click(function(i){i.preventDefault();g.loadPage="&password="+d("#password").val();g.loadData()})}d("#ownWidget-header .loadAlbum").each(function(j,k){d(k).click(function(){if(d(k).attr("title")==""){g.loadPage=""}else{g.loadPage="&path=/"+d(k).attr("title")}g.loadData()})});if(g.firstShow){g.widgetContainer.css(g.options.cssAddWidget);if(!g.options.cssAddWidget.top&&!g.options.cssAddWidget.left){g.widgetContainer.css({top:(d(window).height()/2)-(g.widgetContainer.height()/2),left:(d(window).width()/2)-(g.widgetContainer.width()/2)})}g.widgetContainer.show();g.firstShow=false}if(d("#ownWidget-slider").length>0){d("#ownWidget-slider").css({width:g.widgetContainer.width()-12});d("#ownWidget-slider > div").css({width:g.widgetContainer.width()-15});if(d("#ownWidget-slider > div").length>1){g.initMovingBox()}else{if(d("#ownWidget-slider").html()==""){d("#ownWidget-slider").html("
          No images found!
          ");d("#SlideShowButton").hide()}}}if(d("a[rel=fancyArea]").length>0){d("a[rel=fancyArea]").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:600,speedOut:200,titlePosition:"over",titleFormat:function(i,j,l,k){return'Image '+(l+1)+" / "+j.length+" "+i+""}});d("#SlideShowButton").show()}}})},loadSuperSizedTheme:function(){d.supersized.themeVars={progress_delay:false,thumb_page:false,thumb_interval:false,image_path:this.options.path+this.options.appspath+"/files_sharing_widget/img/",play_button:"#pauseplay",next_slide:"#nextslide",prev_slide:"#prevslide",next_thumb:"#nextthumb",prev_thumb:"#prevthumb",slide_caption:"#slidecaption",slide_current:".slidenumber",slide_total:".totalslides",slide_list:"#slide-list",thumb_tray:"#thumb-tray",thumb_list:"#thumb-list",thumb_forward:"#thumb-forward",thumb_back:"#thumb-back",tray_arrow:"#tray-arrow",tray_button:"#tray-button",progress_bar:"#progress-bar"}},initSupersized:function(){var g=this;var h='';d(h).appendTo("body");d("#closeSlideShow").click(function(){if(d.supersized.vars.slideshow_interval){clearInterval(d.supersized.vars.slideshow_interval)}g.imageSlide=[];d("#supersized-holder").remove();d("#slideshow-content").animate({opacity:"toggle"});d("#thumb-list").remove();g.widgetContainer.animate({opacity:"toggle"})})},loadSupersized:function(){this.loadSuperSizedTheme();d.supersized({slideshow:1,autoplay:0,start_slide:1,stop_loop:0,random:0,slide_interval:3000,transition:6,transition_speed:1000,new_window:1,pause_hover:0,keyboard_nav:1,performance:1,image_protect:1,min_width:0,min_height:0,vertical_center:1,horizontal_center:1,fit_always:0,fit_portrait:1,fit_landscape:0,slide_links:false,new_window:false,thumb_links:1,thumbnail_navigation:0,slides:this.imageSlide,progress_bar:1,mouse_scrub:0})},loginToFacebookApp:function(){d("body").append('
          ');d.getScript(document.location.protocol+"//connect.facebook.net/de_DE/all.js");window.fbAsyncInit=function(){FB.init({appId:this.options.fbAppid,status:true,cookie:true,xfbml:true})}}}})(); \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/lib/widgethelper.php b/oc454/apps/files_sharing_widget/lib/widgethelper.php index 04acc8d..4e51e35 100644 --- a/oc454/apps/files_sharing_widget/lib/widgethelper.php +++ b/oc454/apps/files_sharing_widget/lib/widgethelper.php @@ -29,8 +29,16 @@ public static function linkToWidget($service, $add_slash = false) { * @param int thumgheight *@return Thumb */ + public static function txtWaterMark($imgSrc,$height,$txt){ + $white = imagecolorallocate($imgSrc, 255, 255, 255); + $font_path = OC_App::getAppPath('files_sharing_widget')."/font/MonospaceTypewriter.ttf"; + //print $font_path; + if(is_file($font_path)){ + imagettftext($imgSrc,10, 0, 10, ($height-10), $white, $font_path, $txt); + } + } - public static function makeThumb($path,$imgHeight=150) { + public static function makeThumb($path,$imgHeight=150,$bWatermark=true,$sWatermarkTxt='(c) zeus-cloud') { $img = $path; @@ -39,13 +47,32 @@ public static function makeThumb($path,$imgHeight=150) { if (!$image -> valid()) return false; $image -> fixOrientation(); + $ret = $image -> preciseResize(floor(($imgHeight * $image -> width()) / $image -> height()), $imgHeight); + if($bWatermark) OC_Widget_Helper::txtWaterMark($image ->resource(),$imgHeight,$sWatermarkTxt); + if ($image) { + OCP\Response::enableCaching(3600 * 24); + // 24 hour + $image -> show(); + } + } + + + public static function makeNormPic($path,$bWatermark=true,$sWatermarkTxt='(c) zeus-cloud') { + $img = $path; + + $image = new \OC_Image(); + $image -> loadFromFile(OC_Filesystem::getLocalFile($img)); + if (!$image -> valid()) return false; + $image -> fixOrientation(); + $ret = $image -> preciseResize($image -> width(), $image -> height()); + if($bWatermark) OC_Widget_Helper::txtWaterMark($image ->resource(),$image -> height(),$sWatermarkTxt); if ($image) { OCP\Response::enableCaching(3600 * 24); // 24 hour $image -> show(); } - } + } /** * @load Template for real view @@ -54,16 +81,28 @@ public static function makeThumb($path,$imgHeight=150) { * @return return the template * */ + public static function getRelativeAppWebPath() { + + foreach(OC::$APPSROOTS as $dir) { + if(file_exists($dir['path'].'/files_sharing_widget')) { + return $dir['url']; + } + } + return false; + } - public static function loadTemplateReal($WIDTH="770",$HEIGHT="570") { + public static function loadTemplateReal($WIDTH="770",$HEIGHT="570",$TITLE='Zeus-Cloud Picture Widget') { - $tpl="\n\n\nPicture Widget + $getRelativeAppsPath=OC_Widget_Helper::getRelativeAppWebPath(); + if(strripos(OC::$WEBROOT,'/')) $getRelativeAppsPath=substr($getRelativeAppsPath,1,strlen($getRelativeAppsPath)-1); + + $tpl="\n\n\n".htmlentities(utf8_decode($TITLE))." \n \n - \n - \n - \n - \n\n + \n + \n + \n + \n\n \n \n \n
          @@ -130,9 +169,12 @@ public static function getAllSharesUser($SECRET){ // USER = 0; GROUP = 1;LINK = 3; // link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&'+$('tr[data-id='+String(itemSource)+']').attr('data-type')+'='+file; - + $SQLMORE=''; + if(OCP\Config::getSystemValue('version')>='4.90.5'){ + $SQLMORE=",s.token "; + } - $SQL="SELECT s.id,s.share_with,s.file_target,.s.item_type,s.share_type,s.expiration,s.uid_owner,s.token, f.path FROM *PREFIX*share s + $SQL="SELECT s.id,s.share_with,s.file_target,.s.item_type,s.share_type,s.expiration,s.uid_owner, f.path $SQLMORE FROM *PREFIX*share s LEFT JOIN *PREFIX*fscache f ON s.item_source=f.id WHERE s.uid_owner='".\OC_User::getUser()."' "; $stmt = \OCP\DB::prepare( $SQL); @@ -158,7 +200,7 @@ public static function getAllSharesUser($SECRET){ 'shareName'=>$share['share_with'], 'link'=>'#', 'name'=>$share['file_target'], - 'date'=>'Gültig bis: '.$EXPDATE, + 'date'=>$EXPDATE, 'iToken'=>'' ); } @@ -169,20 +211,22 @@ public static function getAllSharesUser($SECRET){ 'shareName'=>$share['share_with'], 'link'=>'#', 'name'=>$share['file_target'], - 'date'=>'Gültig bis: '.$EXPDATE, + 'date'=>$EXPDATE, 'iToken'=>'' ); } if($share['share_type']==3){ $addPassImg=''; + $tokenLink='&'.$itemTypeChoose.'='.$share['path']; + if($SQLMORE!='') $tokenLink='&t='.$share['token']; if($share['share_with']!='') $addPassImg=' [Password]'; $output[]=array( 'id'=>$share['id'], 'shareType'=>'Link', 'shareName'=>'Guest'.$addPassImg, - 'link'=>\OC_Helper::linkToPublic('files').'&t='.$share['token'], + 'link'=> \OC_Helper::linkToPublic('files').$tokenLink, 'name'=>$share['file_target'], - 'date'=>'Gültig bis: '.$EXPDATE, + 'date'=>$EXPDATE, 'iToken'=>rawurlencode(self::encrypt($share['path'],$SECRET)) ); } diff --git a/oc454/apps/files_sharing_widget/public.php b/oc454/apps/files_sharing_widget/public.php index 2509bc6..7949632 100644 --- a/oc454/apps/files_sharing_widget/public.php +++ b/oc454/apps/files_sharing_widget/public.php @@ -7,9 +7,9 @@ * * */ -OC::$CLASSPATH['OC_Share_Backend_File'] = "apps/files_sharing/lib/share/file.php"; -OC::$CLASSPATH['OC_Share_Backend_Folder'] = 'apps/files_sharing/lib/share/folder.php'; -OC::$CLASSPATH['OC_Filestorage_Shared'] = "apps/files_sharing/lib/sharedstorage.php"; +OC::$CLASSPATH['OC_Share_Backend_File'] = "files_sharing/lib/share/file.php"; +OC::$CLASSPATH['OC_Share_Backend_Folder'] = 'files_sharing/lib/share/folder.php'; +OC::$CLASSPATH['OC_Filestorage_Shared'] = "files_sharing/lib/sharedstorage.php"; OCP\Util::connectHook('OC_Filesystem', 'setup', 'OC_Filestorage_Shared', 'setup'); OCP\Share::registerBackend('file', 'OC_Share_Backend_File'); OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file'); @@ -49,7 +49,21 @@ $passwordProtect=false; $Param=OC_Preferences::getValue($uidOwner, 'files_sharing_widget', 'parameter',''); - $ObjParamter=json_decode($Param,true); + if($Param) $ObjParamter=json_decode($Param,true); + else{ + $ObjParamter['maxpicsperpage']=10; + $ObjParamter['imgheight']=150; + $ObjParamter['width']=750; + $ObjParamter['height']=550; + $ObjParamter['watermark']=1; + $ObjParamter['watermarktxt']=''; + $ObjParamter['title']=''; + } + if(!isset($ObjParamter['watermarktxt'])) { + $ObjParamter['watermark']=0; + $ObjParamter['watermarktxt']=''; + } + if(!isset($ObjParamter['title'])) $ObjParamter['title']=''; @@ -67,16 +81,16 @@ } else { // Save item id in session for future requests - $_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated'] = $linkItem['id']; + $_SESSION['public_link_authenticated'] = $linkItem['id']; $passwordProtect=false; } // Check if item id is set in session - } else if (!isset($_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated']) || $_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated'] !== $linkItem['id']) { + } else if (!isset($_SESSION['public_link_authenticated']) || $_SESSION['public_link_authenticated'] !== $linkItem['id']) { $passwordProtect=true; } - if(isset($_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated']) && $_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated']==$linkItem['id']){ + if(isset($_SESSION['public_link_authenticated']) && $_SESSION['public_link_authenticated']==$linkItem['id']){ $passwordProtect=false; } } @@ -95,7 +109,8 @@ if (isset($_GET['action']) && $_GET['action']=='norm') { if (isset($_GET['dir'])) { if (isset($_GET['path']) && $_GET['path'] != '') {// download a file from a shared directory - OC_Files::get('', $path, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false); + //OC_Files::get('', $path, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false); + OC_Widget_Helper::makeNormPic($path,$ObjParamter['watermark'],$ObjParamter['watermarktxt']); } } @@ -103,7 +118,7 @@ if (isset($_GET['dir'])) { if (isset($_GET['path']) && $_GET['path'] != '') { - OC_Widget_Helper::makeThumb($path,$ObjParamter['imgheight']); + OC_Widget_Helper::makeThumb($path,$ObjParamter['imgheight'],$ObjParamter['watermark'],$ObjParamter['watermarktxt']); } } }else{ @@ -179,7 +194,7 @@ $i['permissions'] = OCP\Share::PERMISSION_READ; } - if($dataFolder=='') $dataFolder='Alben: --'; + if($dataFolder=='') $dataFolder=''; else $dataFolder='
          '.$dataFolder.'
          '; // Make breadcrumb @@ -217,17 +232,17 @@ $data = json_encode($aBack); echo $_GET['jsonp_callback'] . '(' . $data . ');'; }else{ - echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height']); + echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height'],$ObjParamter['title']); } }else{ if($passwordProtect ){ $dataFolder=''; - $breadCrumbOutput='Passwort eingeben'; + $breadCrumbOutput='Password'; $dataOutput='
          - Passwort: + Password: - +
          '; } @@ -237,7 +252,7 @@ $data = json_encode($aBack); echo $_GET['jsonp_callback'] . '(' . $data . ');'; }else{ - echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height']); + echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height'],$ObjParamter['title']); } @@ -253,7 +268,7 @@ $data = json_encode($aBack); echo $_GET['jsonp_callback'] . '(' . $data . ');'; }else{ - echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height']); + echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height'],$ObjParamter['title']); } } } diff --git a/oc454/apps/files_sharing_widget/settings.php b/oc454/apps/files_sharing_widget/settings.php index 3d4dca6..aa84ce9 100644 --- a/oc454/apps/files_sharing_widget/settings.php +++ b/oc454/apps/files_sharing_widget/settings.php @@ -16,7 +16,14 @@ $ObjParamter['imgheight']=150; $ObjParamter['width']=750; $ObjParamter['height']=550; + $ObjParamter['watermark']=1; + $ObjParamter['watermarktxt']=''; + $ObjParamter['title']=''; } +if(!isset($ObjParamter['watermarktxt'])) $ObjParamter['watermarktxt']=''; +if(!isset($ObjParamter['title'])) $ObjParamter['title']=''; + + $shareSecret=OCP\Config::getSystemValue('secretword'); if($shareSecret=='') $shareSecret='mySecretWord'; diff --git a/oc454/apps/files_sharing_widget/templates/admin.php b/oc454/apps/files_sharing_widget/templates/admin.php index cf9c4c1..612eed4 100644 --- a/oc454/apps/files_sharing_widget/templates/admin.php +++ b/oc454/apps/files_sharing_widget/templates/admin.php @@ -9,10 +9,18 @@ */ ?>
          - Share Pics Widget Secret Key and Site-E-Mail -
          -
          -
          - -
          + + Share Pics Widget Secret Key and Site-E-Mail + +
          + + + + +
          + + + +
          +
          \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/templates/settings.php b/oc454/apps/files_sharing_widget/templates/settings.php index 8293b6a..abb14cc 100644 --- a/oc454/apps/files_sharing_widget/templates/settings.php +++ b/oc454/apps/files_sharing_widget/templates/settings.php @@ -9,44 +9,59 @@ */ ?>
          - Overview Shared Files and Folders -
            -
          • ShareType NameShare ItemExpiration DatePicture Widget Token
          • - -

          • - - -

          - Configurationparameters Picture Widget:
          -
          -
          -
          - px
          - px
          - -
          -

          - Use as Widget: (For Integration HP, Facebook)
          - - + +
          diff --git a/oc454/apps/files_sharing_widget/widgetloader.php b/oc454/apps/files_sharing_widget/widgetloader.php new file mode 100644 index 0000000..9b65aed --- /dev/null +++ b/oc454/apps/files_sharing_widget/widgetloader.php @@ -0,0 +1,34 @@ + + * + * + */ +$cleanText='widgetloader.php'; +$pathload=str_replace($cleanText,'',$_SERVER['REQUEST_URI']); +$pathload= webUrl().$pathload."js/widget.full.js"; +//print $pathload; +header ("Content-type: text/javascript"); +readfile($pathload); + + + function webUrl() { + + if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { + $proto = 'https'; + $host=$_SERVER['HTTP_X_FORWARDED_HOST'].'/'.$_SERVER['SERVER_NAME']; + }else{ + if(isset($_SERVER['HTTPS']) and !empty($_SERVER['HTTPS']) and ($_SERVER['HTTPS']!='off')) { + $proto = 'https'; + }else{ + $proto = 'http'; + } + $host = $_SERVER['HTTP_HOST']; + } + return $proto.'://'.$host; + } + +?> \ No newline at end of file diff --git a/oc454/lib/base.min.php b/oc454/lib/base.min.php index 3251806..8259b7c 100644 --- a/oc454/lib/base.min.php +++ b/oc454/lib/base.min.php @@ -55,7 +55,7 @@ class OC{ * MULTI INSTANCE OF cloud installation */ - public static $SESSIONPREFIX = ''; + // public static $SESSIONPREFIX = ''; /** * SPL autoload @@ -141,7 +141,18 @@ public static function initPaths() { echo("3rdparty directory not found! Please put the ownCloud 3rdparty folder in the ownCloud folder or the folder above. You can also configure the location in the config.php file."); exit; } - if(file_exists(OC::$SERVERROOT.'/apps')) { + + // search the apps folder + $config_paths = OC_Config::getValue('apps_paths', array()); + if(! empty($config_paths)) { + foreach($config_paths as $paths) { + if( isset($paths['url']) && isset($paths['path'])) { + $paths['url'] = rtrim($paths['url'], '/'); + $paths['path'] = rtrim($paths['path'], '/'); + OC::$APPSROOTS[] = $paths; + } + } + }elseif(file_exists(OC::$SERVERROOT.'/apps')) { OC::$APPSROOTS[] = array('path'=> OC::$SERVERROOT.'/apps', 'url' => '/apps', 'writable' => true); }elseif(file_exists(OC::$SERVERROOT.'/../apps')) { OC::$APPSROOTS[] = array('path'=> rtrim(dirname(OC::$SERVERROOT), '/').'/apps', 'url' => '/apps', 'writable' => true); @@ -151,9 +162,9 @@ public static function initPaths() { echo("apps directory not found! Please put the ownCloud apps folder in the ownCloud folder or the folder above. You can also configure the location in the config.php file."); exit; } + $paths = array(); - foreach( OC::$APPSROOTS as $path) - $paths[] = $path['path']; + foreach( OC::$APPSROOTS as $path) $paths[] = $path['path']; // set the right include path set_include_path( @@ -204,7 +215,7 @@ public static function init() { @ini_set('post_max_size', '10G'); @ini_set('file_uploads', '50'); //print OC::$SERVERROOT; - OC::$SESSIONPREFIX=OC_Config::getValue('SESSIONPREFIX'); + // session_save_path('/is/htdocs/wp11048482_6MQ454GFGE/www/demo/tmp'); //try to set the session lifetime to 60min @ini_set('gc_maxlifetime', '3600'); diff --git a/oc454/widget.php b/oc454/widget.php index 7b82228..24cf999 100644 --- a/oc454/widget.php +++ b/oc454/widget.php @@ -17,12 +17,12 @@ $_GET['dir']=$getSchluessel; $_GET['service']='pics'; - +/* $file='files_sharing_widget/public.php'; if(is_null($file)) { header('HTTP/1.0 404 Not Found'); exit; -} +}*/ OC_Util::checkAppEnabled('files_sharing_widget'); OC_App::loadApp('files_sharing_widget'); diff --git a/oc454/widgetloader.php b/oc454/widgetloader.php deleted file mode 100644 index 6c1a1c0..0000000 --- a/oc454/widgetloader.php +++ /dev/null @@ -1,11 +0,0 @@ - - * - * - */ -header ("Content-type: text/javascript"); -readfile("apps/files_sharing_widget/js/widget.js"); \ No newline at end of file