Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Update of widget_sample, contributed by Ecappa
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 26, 2015
1 parent 2b7e58f commit 53a6dad
Showing 1 changed file with 71 additions and 58 deletions.
129 changes: 71 additions & 58 deletions core/src/plugins/gui.ajax/widget_sample.html
@@ -1,61 +1,74 @@
<html xmlns:ajxp>
<head>
<title>Pydio</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" type="image/x-png" href="res/themes/vision/images/html-folder.png">
<link rel="stylesheet" type="text/css" href="res/themes/vision/css/allz.css">
<link rel="stylesheet" href="res/themes/vision/css/font-awesome.css"/>
<link rel="stylesheet" href="res/themes/vision/css/media.css"/>
<style type="text/css">
.widget_title{
font-family: "Trebuchet MS", Arial, Helvetica;
font-size: 20px;
font-weight: bold;
color: white;
padding: 5px;
}
#ajxp_widget{
width:400px;
height:500px;
border:1px solid #999;
-moz-box-shadow: 3px 4px 4px #666;
-webkit-box-shadow: 3px 4px 4px #666;
box-shadow: 3px 4px 4px #666;
text-align:left;
/* THESE ONE ARE IMPORTANT */
overflow:hidden;
position:relative;
}
.action_bar{
background-color: #ffffff;
}
.action_bar > .toolbarGroup{
height: 40px;
}
</style>
<script language="javascript" type="text/javascript" src="res/js/ajaxplorer_boot.js"></script>
<script type="text/javascript">
// Initialize booter. Do not remove the commented line AJXP_JSON_START_PARAMETERS, as it is
// dynamically replaced by the application!
var ajaxplorer, startParameters = {}, MessageHash={};
startParameters = {
"BOOTER_URL":"../../index.php?get_action=get_boot_conf",
"EXT_REP":"\/",
"MAIN_ELEMENT":"ajxp_widget",
"SERVER_PREFIX_URI": "../../"
};
document.observe("ajaxplorer:before_gui_load", function(e){
ajaxplorer.currentThemeUsesIconFonts = true;
document.documentElement.className += " ajxp_theme_vision";
});
window.ajxpBootstrap = new AjxpBootstrap(startParameters);
</script>
</head>
<head>
<title>Pydio Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<body bgcolor="#cccccc" text="#000000" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<div align="center">
<div class="widget_title">Pydio Widget Sample</div>
<div id="ajxp_widget" ajxpClass="AjxpPane" ajxpOptions="{}"></div>
</div>
</body>
<link rel="icon" type="image/x-png" href="res/themes/vision/images/html-folder.png">

<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/ajaxplorer.css">
<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/allz.css">
<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/animate-custom.css">
<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/chosen.css">
<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/fontfaces.css">
<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/media.css">
<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/screen.css">
<link rel="stylesheet" type="text/css" href="res/themes/orbit/css/xtree.css">


<style type="text/css">
/*
Refers to manifest.xml, can be ajxp_widget, ajxp_film_strip, ajxp_dropbox_template...
*/
#ajxp_desktop {
width: 90%;
height: 90%;
border: 1px solid #999;
-moz-box-shadow: 3px 4px 4px #666;
-webkit-box-shadow: 3px 4px 4px #666;
box-shadow: 3px 4px 4px #666;
text-align: left;
/* THESE ONE ARE IMPORTANT */
overflow: hidden;
position: relative;
}
/* Patch - for right toolbar */
.action_bar > .toolbarGroup {
height: 32px;
}
.widget_title {
font-family: "Trebuchet MS", Arial, Helvetica;
font-size: 20px;
font-weight: bold;
color: white;
padding: 5px;
}
</style>
<script language="javascript" type="text/javascript" src="res/js/ajaxplorer_boot.js"></script>
<script type="text/javascript">
// Initialize booter. Do not remove the commented line AJXP_JSON_START_PARAMETERS, as it is
// dynamically replaced by the application!
var ajaxplorer, startParameters = {}, MessageHash = {};
startParameters = {
//"BOOTER_URL": "index.php?get_action=get_boot_conf&goto=default/Organizations",
"BOOTER_URL": "../../index.php?get_action=get_boot_conf",
"FORCE_REGISTRY_RELOAD": true,
"EXT_REP": "\/",
"MAIN_ELEMENT": "ajxp_desktop",
"SERVER_PREFIX_URI": "../../"
};
document.observe("ajaxplorer:before_gui_load", function (e) {
ajaxplorer.currentThemeUsesIconFonts = true;
document.documentElement.className += " ajxp_theme_vision";
});
window.ajxpBootstrap = new AjxpBootstrap(startParameters);
</script>
</head>

<body bgcolor="#cccccc" text="#000000" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<div class="widget_title">Pydio Widget Sample</div>
<div align="center">
<div id="ajxp_desktop" ajxpClass="AjxpPane" ajxpOptions="{}"></div>
</div>
</body>
</html>

0 comments on commit 53a6dad

Please sign in to comment.