| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <Module> |
| <ModulePrefs title="Albums and MediaItems"> |
| <Require feature="osapi" /> |
| <Require feature="dynamic-height" /> |
| <Require feature="open-views" /> |
| </ModulePrefs> |
| |
| <Content type="html" view="default"><![CDATA[ |
| <html> |
| <head> |
| <!-- Source imports --><script src='http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js' type='text/javascript' djConfig='parseOnLoad:true, isDebug:true'></script> |
| <script src='Social.js' type='text/javascript'></script> |
| <script src='MediaUIOpenGadgets.js' type='text/javascript'></script> |
| |
| <!-- Styling --> |
| <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css"></link> |
| <link rel="stylesheet" type="text/css" href="styles.css"> |
| |
| <!-- DOJO requires --> |
| <script type='text/javascript'> |
| dojo.require('dijit.form.Button'); |
| dojo.require('dijit.form.Form'); |
| dojo.require('dijit.form.TextBox'); |
| dojo.require('dijit.form.ValidationTextBox'); |
| dojo.require('dijit.Dialog'); |
| dojo.require('dijit.form.Textarea'); |
| dojo.require('dijit.layout.ContentPane'); |
| dojo.require('dijit.layout.TabContainer'); |
| </script> |
| |
| <!-- JavaScript --> |
| <script type="text/javascript"> |
| <!-- Entry point to the gadget --> |
| function init() { |
| new MediaUI(new SocialWrapper()).init(); |
| } |
| |
| <!-- Register entry point --> |
| gadgets.util.registerOnLoadHandler(function() { |
| dojo.addOnLoad(init); |
| }); |
| </script> |
| </head><body class="tundra"></body> |
| </html> |
| ]]></Content> |
| |
| <Content type="html" view="albumFullView"><![CDATA[ |
| <html> |
| <head> |
| <!-- Source imports --> |
| <script src='http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js' type='text/javascript' djConfig='parseOnLoad:true, isDebug:true'></script> |
| <script src='Social.js' type='text/javascript'></script> |
| <script src='MediaUIOpenGadgets.js' type='text/javascript'></script> |
| |
| <!-- Styling --> |
| <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css"></link> |
| <link rel="stylesheet" type="text/css" href="styles.css"> |
| |
| <!-- DOJO requires --> |
| <script type='text/javascript'> |
| dojo.require('dijit.form.Button'); |
| dojo.require('dijit.form.Form'); |
| dojo.require('dijit.form.TextBox'); |
| dojo.require('dijit.form.ValidationTextBox'); |
| dojo.require('dijit.Dialog'); |
| dojo.require('dijit.form.Textarea'); |
| dojo.require('dijit.layout.ContentPane'); |
| dojo.require('dijit.layout.TabContainer'); |
| </script> |
| |
| <!-- JavaScript --> |
| <script type="text/javascript"> |
| <!-- Entry point to the gadget --> |
| function init() { |
| var params = gadgets.views.getParams(); |
| var m = new MediaUI(new SocialWrapper()); |
| m.openAlbum(params['viewerId'],params['data']); |
| } |
| |
| <!-- Register entry point --> |
| gadgets.util.registerOnLoadHandler(function() { |
| dojo.addOnLoad(init); |
| }); |
| </script> |
| </head><body class="tundra"></body> |
| </html> |
| ]]></Content> |
| |
| <Content type="html" view="editAlbum"><![CDATA[ |
| <html> |
| <head> |
| <!-- Source imports --> |
| <script src='http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js' type='text/javascript' djConfig='parseOnLoad:true, isDebug:true'></script> |
| <script src='Social.js' type='text/javascript'></script> |
| <script src='MediaUIOpenGadgets.js' type='text/javascript'></script> |
| |
| <!-- Styling --> |
| <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css"></link> |
| <link rel="stylesheet" type="text/css" href="styles.css"> |
| |
| <!-- DOJO requires --> |
| <script type='text/javascript'> |
| dojo.require('dijit.form.Button'); |
| dojo.require('dijit.form.Form'); |
| dojo.require('dijit.form.TextBox'); |
| dojo.require('dijit.form.ValidationTextBox'); |
| dojo.require('dijit.Dialog'); |
| dojo.require('dijit.form.Textarea'); |
| dojo.require('dijit.layout.ContentPane'); |
| dojo.require('dijit.layout.TabContainer'); |
| </script> |
| |
| <!-- JavaScript --> |
| <script type="text/javascript"> |
| <!-- Entry point to the gadget --> |
| function init() { |
| var params = gadgets.views.getParams(); |
| var data = params['data']; |
| new MediaUI(new SocialWrapper()).editAlbum(data); |
| } |
| |
| <!-- Register entry point --> |
| gadgets.util.registerOnLoadHandler(function() { |
| dojo.addOnLoad(init); |
| }); |
| </script> |
| </head><body class="tundra"></body> |
| </html> |
| ]]></Content> |
| |
| <Content type="html" view="editMediaItem"><![CDATA[ |
| <html> |
| <head> |
| <!-- Source imports --> |
| <script src='http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js' type='text/javascript' djConfig='parseOnLoad:true, isDebug:true'></script> |
| <script src='Social.js' type='text/javascript'></script> |
| <script src='MediaUIOpenGadgets.js' type='text/javascript'></script> |
| |
| <!-- Styling --> |
| <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css"></link> |
| <link rel="stylesheet" type="text/css" href="styles.css"> |
| |
| <!-- DOJO requires --> |
| <script type='text/javascript'> |
| dojo.require('dijit.form.Button'); |
| dojo.require('dijit.form.Form'); |
| dojo.require('dijit.form.TextBox'); |
| dojo.require('dijit.form.ValidationTextBox'); |
| dojo.require('dijit.Dialog'); |
| dojo.require('dijit.form.Textarea'); |
| dojo.require('dijit.layout.ContentPane'); |
| dojo.require('dijit.layout.TabContainer'); |
| </script> |
| |
| <!-- JavaScript --> |
| <script type="text/javascript"> |
| <!-- Entry point to the gadget --> |
| function init() { |
| var params = gadgets.views.getParams(); |
| new MediaUI(new SocialWrapper()).editMediaItem(params['data'].album,params['data'].mediaItem); |
| } |
| |
| <!-- Register entry point --> |
| gadgets.util.registerOnLoadHandler(function() { |
| dojo.addOnLoad(init); |
| }); |
| </script> |
| </head><body class="tundra"></body> |
| </html> |
| ]]></Content> |
| |
| </Module> |