diff --git a/config.xml b/config.xml index fe3425c69..841e92ecd 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ mootes14 @@ -88,7 +88,7 @@ - + diff --git a/img/icon/android/icon-36-ldpi.png b/img/icon/android/icon-36-ldpi.png index a5304fe8f..ac3394a07 100644 Binary files a/img/icon/android/icon-36-ldpi.png and b/img/icon/android/icon-36-ldpi.png differ diff --git a/img/icon/android/icon-36.png b/img/icon/android/icon-36.png new file mode 100644 index 000000000..3847d85ea Binary files /dev/null and b/img/icon/android/icon-36.png differ diff --git a/img/icon/android/icon-48-mdpi.png b/img/icon/android/icon-48-mdpi.png index a5304fe8f..ac3394a07 100644 Binary files a/img/icon/android/icon-48-mdpi.png and b/img/icon/android/icon-48-mdpi.png differ diff --git a/img/icon/android/icon-72-hdpi.png b/img/icon/android/icon-72-hdpi.png index f4d758681..999ea0ec2 100644 Binary files a/img/icon/android/icon-72-hdpi.png and b/img/icon/android/icon-72-hdpi.png differ diff --git a/img/icon/android/icon-72.png b/img/icon/android/icon-72.png new file mode 100644 index 000000000..999ea0ec2 Binary files /dev/null and b/img/icon/android/icon-72.png differ diff --git a/img/icon/android/icon-96-xhdpi.png b/img/icon/android/icon-96-xhdpi.png index 2c6187632..34c003ecc 100644 Binary files a/img/icon/android/icon-96-xhdpi.png and b/img/icon/android/icon-96-xhdpi.png differ diff --git a/img/icon/android/icon.png b/img/icon/android/icon.png new file mode 100644 index 000000000..7bee32bf9 Binary files /dev/null and b/img/icon/android/icon.png differ diff --git a/package.json b/package.json index 7a83ebd18..8fa21dd01 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "mootes14 for desktop", + "name": "lesroches for desktop", "main": "index.html", "window": { - "title": "mootes14 for desktop", + "title": "lesroches for desktop", "icon": "icon.png", "toolbar": true, "frame": true, @@ -12,5 +12,5 @@ "resizable": false }, "plugin": true, - "description": "mootes14 for desktop" + "description": "lesroches for desktop" } \ No newline at end of file diff --git a/plugins/lesroches/login.html b/plugins/lesroches/login.html new file mode 100644 index 000000000..22ff4f354 --- /dev/null +++ b/plugins/lesroches/login.html @@ -0,0 +1,15 @@ +
Moodle
+
+
+ + +

+ "> +

+

+ "> +

+ +

+
+
\ No newline at end of file diff --git a/plugins/lesroches/logo.png b/plugins/lesroches/logo.png new file mode 100644 index 000000000..7bee32bf9 Binary files /dev/null and b/plugins/lesroches/logo.png differ diff --git a/plugins/lesroches/main.js b/plugins/lesroches/main.js new file mode 100644 index 000000000..7a51858e6 --- /dev/null +++ b/plugins/lesroches/main.js @@ -0,0 +1,53 @@ +var templates = [ + "root/externallib/text!root/plugins/lesroches/theme.css", + "root/externallib/text!root/plugins/lesroches/login.html", + "root/externallib/text!root/plugins/lesroches/program.html" +]; + +define(templates, function (theme, loginForm, program) { + var plugin = { + settings: { + name: "lesroches", + type: "general", + menuURL: "#lesroches", + icon: "plugins/events/icon.png", + lang: { + component: "core" + } + }, + + routes: [ + ["lesroches", "show_program", "showProgram"] + ], + + showProgram: function() { + var tpl = {}; + var html = MM.tpl.render(program, tpl); + MM.panels.show('center', html, {title: MM.lang.s("lesroches")}); + } + }; + + // 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); + +}); \ No newline at end of file diff --git a/plugins/lesroches/program.html b/plugins/lesroches/program.html new file mode 100644 index 000000000..11b4df8b1 --- /dev/null +++ b/plugins/lesroches/program.html @@ -0,0 +1,3 @@ +
+

Some custom html here

+
\ No newline at end of file diff --git a/plugins/lesroches/theme.css b/plugins/lesroches/theme.css new file mode 100644 index 000000000..77a281da4 --- /dev/null +++ b/plugins/lesroches/theme.css @@ -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 ; +} \ No newline at end of file