Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion about.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Moodle Mobile",
"name": "mootes14",
"license": {
"name": "Apache 2.0",
"link": "http://www.apache.org/licenses/LICENSE-2.0"
Expand Down
14 changes: 7 additions & 7 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"app_id" : "com.moodle.moodlemobile",
"versioncode" : "383",
"versionname" : "1.9",
"app_id" : "net.moodlemoot.mootes14",
"versioncode" : "1",
"versionname" : "1.0",
"cache_expiration_time" : 300000,
"default_lang" : "en",
"default_lang" : "es",
"languages": {"ar": "عربي", "bg": "Български", "ca": "Català", "cs": "Čeština", "de": "Deutsch","en": "English", "es": "Español", "es_mx": "Español - México", "eu": "Euskara", "fa": "فارسی", "fr" : "Français", "he" : "עברית", "hu": "magyar", "it": "Italiano", "ja": "日本語","nl": "Nederlands", "ru": "Русский", "sv": "Svenska", "tr" : "Türkçe", "zh_cn" : "简体中文", "zh_tw" : "正體中文"},
"plugins" : ["notifications", "messages", "upload", "events", "myfiles", "contents", "participants", "grades","addcontact", "addnote", "sendmessage", "forum", "label", "url", "page", "resource"],
"plugins" : ["notifications", "messages", "events", "contents", "participants", "addcontact", "sendmessage", "forum", "label", "url", "page", "resource", "mootes14"],
"wsservice" : "moodle_mobile_app",
"wsextservice" : "local_mobile",
"presets" : {"url": "", "username": ""},
"presets" : {"url": "http://2014.moodlemoot.net", "username": ""},
"sync_ws_on" : true,
"sync_css_on" : true,
"sync_cron": 300000,
Expand All @@ -17,7 +17,7 @@
"log_length" : 100,
"dev_debug": false,
"extra_js": [],
"demo_sites": [{"key": "student", "url": "http://school.demo.moodle.net", "username": "student", "password": "moodle"}, {"key": "teacher", "url": "http://school.demo.moodle.net", "username": "teacher", "password": "moodle"}, {"key": "cva", "url": "http://mm.cvaconsulting.com/moodle", "username": "student", "password": "student"}],
"demo_sites": [],
"notifications_enabled": true,
"gcmpn": "694767596569",
"reportbugmail": "mobile@moodle.com"
Expand Down
14 changes: 7 additions & 7 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android"
id = "com.moodle.moodlemobile"
versionCode = "383"
version = "1.9">
<name>Moodle Mobile</name>
id = "net.moodlemoot.mootes14"
versionCode = "1"
version = "1.0">
<name>mootes14</name>

<description>
Moodle Mobile official app
MoodleMoot Spain 2014 official app
</description>

<author href="http://moodle.com" email="juan@moodle.com">
Juan Leyva
</author>

<gap:config-file platform="ios" parent="CFBundleShortVersionString">
<string>1.9</string>
<string>1.0</string>
</gap:config-file>

<feature name="http://api.phonegap.com/1.0/device" />
Expand Down Expand Up @@ -88,7 +88,7 @@
<gap:plugin name="com.phonegap.plugins.pushplugin" />
<gap:plugin name="net.tunts.webintent" />
<gap:plugin name="nl.x-services.plugins.launchmyapp">
<param name="URL_SCHEME" value="moodlemobile" />
<param name="URL_SCHEME" value="mootes14" />
</gap:plugin>
<gap:plugin name="com.ionic.keyboard" version="1.0.3" />

Expand Down
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon/android/icon-36-ldpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon/android/icon-48-mdpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon/android/icon-72-hdpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon/android/icon-96-xhdpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon/ios/icon-120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/splash/android/android_hdpi_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/splash/android/android_ldpi_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/splash/android/android_mdpi_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/splash/android/android_xhdpi_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@
"modulename": "Nombre del módulo",
"months": "Meses",
"moodlehelp": "Ayuda",
"mycourses": "Mis cursos",
"mootes14": "Programa",
"mycourses": "El evento",
"myfiles": "Mis archivos",
"name": "Nombre",
"networkerror": "Conexión no disponible",
Expand All @@ -152,7 +153,7 @@
"offlinemode": "Modo desconectado",
"ok": "OK",
"openinbrowser": "Abrir en navegador",
"participants": "Participantes",
"participants": "Asistentes",
"password": "Contraseña",
"passwordlabel": "Contraseña",
"passwordnotnull": "Por favor indica tu contraseña",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "Moodle Mobile for desktop",
"name": "mootes14 for desktop",
"main": "index.html",
"window": {
"title": "Moodle Mobile for desktop",
"title": "mootes14 for desktop",
"icon": "icon.png",
"toolbar": true,
"frame": true,
Expand All @@ -12,5 +12,5 @@
"resizable": false
},
"plugin": true,
"description": "Moodle Mobile for desktop"
"description": "mootes14 for desktop"
}
15 changes: 15 additions & 0 deletions plugins/mootes14/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<center><img src="plugins/mootes14/logo.png" width ="200" alt="Moodle"></center>
<form action="" novalidate>
<div id="login-details">

<input type="hidden" id="url" value="http://2014.moodlemoot.net">
<p>
<input type="text" id="username" autocapitalize="off" autocorrect="off" placeholder="<%= MM.lang.s("username") %>">
</p>
<p>
<input type="password" id="password" placeholder="<%= MM.lang.s("password") %>">
<p>
<input type="submit" name="add" id="addsitebutton" value="Sign-in">
</p>
</div>
</form>
Binary file added plugins/mootes14/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions plugins/mootes14/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
var templates = [
"root/externallib/text!root/plugins/mootes14/theme.css",
"root/externallib/text!root/plugins/mootes14/login.html",
"root/externallib/text!root/plugins/mootes14/program.html"
];

define(templates, function (theme, loginForm, program) {
var plugin = {
settings: {
name: "mootes14",
type: "general",
menuURL: "#mootes14",
icon: "plugins/events/icon.png",
lang: {
component: "core"
}
},

routes: [
["mootes14", "show_program", "showProgram"]
],

showProgram: function() {
var tpl = {};
var html = MM.tpl.render(program, tpl);
MM.panels.show('center', html, {title: MM.lang.s("mootes14")});
}
};

// Inject allways our custom theme.
$("#mobilecssurl").html(theme);

// Replace the sign-up form with our custom template.
$("#add-site_template").html(loginForm);

// Automatically use the URL of the moodle moot without further checks.
MM.checkSite = function(e) {
MM.addSite(e);
};

// Inject allways our custom theme.
MM.loadCachedRemoteCSS = function(e) {
$("#mobilecssurl").html(theme);
};

// Do not display the manage accounts page.
MM._displayManageAccounts = function() {
MM._displayAddSite();
};

MM.registerPlugin(plugin);

});
3 changes: 3 additions & 0 deletions plugins/mootes14/program.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="content-index">
<p>Some custom html here</p>
</div>
44 changes: 44 additions & 0 deletions plugins/mootes14/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
body {
background: #FFFFFF;
}
h1 {
color: #fa8f1c;
}
.user-menu header h1 {
color: #fa8f1c;
}
h2 {
color: #fa8f1c;
background-color: #7a8a94;
}
.header-main {
color: #fa8f1c;
background: #EDEDED;
}
#page-title {
text-shadow: none;
}
.user-menu {
background: #FFFFFF;
}
.user-menu h2 {
color: #4b565d;
background: #ffffff;
box-shadow: none;
}
.user-menu .nav-item > a {
color: #fa8f1c;
}
.user-menu .nav-item .plugin-ico,
.user-menu .nav-item .course-ico {
background-color: #4b565d;
}
.grades .section-name {
color: #ffffff;
background-color: #7a8a94;
}

.user-menu header {
color: #fa8f1c;
background: #EDEDED ;
}