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 0000000..29e9a67 Binary files /dev/null and b/oc454/apps/files_sharing_widget/font/MonospaceTypewriter.ttf differ diff --git a/oc454/apps/files_sharing_widget/js/admin.js b/oc454/apps/files_sharing_widget/js/admin.js index 35d9ddd..ebd66d2 100644 --- a/oc454/apps/files_sharing_widget/js/admin.js +++ b/oc454/apps/files_sharing_widget/js/admin.js @@ -7,73 +7,67 @@ * */ -$(document).ready(function(){ +$(document).ready(function() { + if ($('#ShareEntreeForm').length > 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 -
- 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