From f83f95e9c7d1953b7e760feea862e45304cd9443 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sun, 28 Apr 2019 09:54:37 +0200 Subject: New version of mobile support --- db/mobile.php | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 db/mobile.php (limited to 'db') diff --git a/db/mobile.php b/db/mobile.php new file mode 100644 index 0000000..3ce7338 --- /dev/null +++ b/db/mobile.php @@ -0,0 +1,50 @@ +. + +/** + * algebra question type capability definition + * + * @package qtype_algebra + * @copyright 2019 Jean-Michel Vedrine + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +defined('MOODLE_INTERNAL') || die(); + +$addons = [ + "qtype_algebra" => [ + "handlers" => [ // Different places where the add-on will display content. + 'algebra' => [ // Handler unique name (can be anything). + 'displaydata' => [ + 'title' => 'algebra question', + 'icon' => '/question/type/algebra/pix/icon.gif', + 'class' => '', + ], + 'delegate' => 'CoreQuestionDelegate', // Delegate (where to display the link to the add-on). + 'method' => 'mobile_get_algebra', + 'offlinefunctions' => [ + 'mobile_get_algebra' => [],// function in classes/output/mobile.php + ], // Function needs caching for offline. + 'styles' => [ + 'url' => '/question/type/algebra/mobile/styles_app.css', + 'version' => '1.00' + ] + ] + ], + 'lang' => [ + ['pluginname', 'qtype_algebra'], // matching value in lang/en/qtype_algebra + ], + ] +]; -- cgit v1.2.3