From 52dc6775254fbe7f0cb10bc21d03590af5e04077 Mon Sep 17 00:00:00 2001 From: marcusgreen Date: Sat, 22 Jun 2024 13:27:44 +0000 Subject: [PATCH] Displahing and basic rendereing in mobile --- classes/output/mobile.php | 3 +-- db/mobile.php | 2 +- mobile/qtype_aitext.html | 12 +++++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/classes/output/mobile.php b/classes/output/mobile.php index 2673978..a2af9da 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -41,8 +41,7 @@ class mobile { public static function mobile_get_aitext($args) { global $CFG; $args = (object) $args; - $folder = $args->appversioncode >= 3950 ? 'latest' : 'ionic3'; - $templatepath = $CFG->dirroot."/question/type/aitext/mobile/$folder/addon-qtype-aitext.html"; + $templatepath = $CFG->dirroot."/question/type/aitext/mobile/qtype_aitext.html"; return [ 'templates' => [ [ diff --git a/db/mobile.php b/db/mobile.php index 1b04244..6fd7189 100644 --- a/db/mobile.php +++ b/db/mobile.php @@ -41,7 +41,7 @@ 'mobile_get_aitext' => [], // Function in classes/output/mobile.php. ], // Function needs caching for offline. 'styles' => [ - 'url' => $CFG->wwwroot.'/question/type/aitext/mobile/styles_app.css', + 'url' => $CFG->wwwroot.'/question/type/aitext/mobile/qtype_aitext_app.css', 'version' => '0.1' ] ] diff --git a/mobile/qtype_aitext.html b/mobile/qtype_aitext.html index 60e3629..ebad0fa 100644 --- a/mobile/qtype_aitext.html +++ b/mobile/qtype_aitext.html @@ -1,8 +1,10 @@ -
-

- -

+
+ +

+ +

+