|
42 | 42 | . '<strong>' . $shortname . '</strong> v' . $release . ' <span style="color:#868e96;">(' . $versionnum . ')</span>' |
43 | 43 | . '</div>'; |
44 | 44 |
|
45 | | - // ── Create the SOLA admin category ────────────────────────────────────── |
46 | | - // All SOLA admin settings pages and admin tools live under this category, |
47 | | - // reachable at: Site admin > Plugins > Local plugins > SOLA |
| 45 | + // ── Create the plugin admin category ──────────────────────────────────── |
| 46 | + // All settings pages and admin tools live under this category, |
| 47 | + // reachable at: Site admin > Plugins > Local plugins > AI Course Assistant |
48 | 48 | $ADMIN->add('localplugins', new admin_category( |
49 | 49 | 'local_ai_course_assistant', |
50 | | - $shortname . ' (' . get_string('pluginname', 'local_ai_course_assistant') . ')' |
| 50 | + get_string('pluginname', 'local_ai_course_assistant') |
51 | 51 | )); |
52 | 52 |
|
53 | 53 | // ── Page 1: General ───────────────────────────────────────────────────── |
54 | | - $settings = new admin_settingpage('local_ai_course_assistant_general', 'SOLA: General'); |
| 54 | + $settings = new admin_settingpage('local_ai_course_assistant_general', 'General'); |
55 | 55 |
|
56 | 56 | $settings->add(new admin_setting_description( |
57 | 57 | 'local_ai_course_assistant/version_banner', |
|
77 | 77 | $ADMIN->add('local_ai_course_assistant', $settings); |
78 | 78 |
|
79 | 79 | // ── Page 2: AI Provider & Models ──────────────────────────────────────── |
80 | | - $settings = new admin_settingpage('local_ai_course_assistant_ai', 'SOLA: AI Provider & Models'); |
| 80 | + $settings = new admin_settingpage('local_ai_course_assistant_ai', 'AI Provider & Models'); |
81 | 81 |
|
82 | 82 | $settings->add(new admin_setting_heading( |
83 | 83 | 'local_ai_course_assistant/provider_heading', |
|
184 | 184 | $ADMIN->add('local_ai_course_assistant', $settings); |
185 | 185 |
|
186 | 186 | // ── Page 3: Content & RAG ─────────────────────────────────────────────── |
187 | | - $settings = new admin_settingpage('local_ai_course_assistant_content', 'SOLA: Content & RAG'); |
| 187 | + $settings = new admin_settingpage('local_ai_course_assistant_content', 'Content & RAG'); |
188 | 188 |
|
189 | 189 | $settings->add(new admin_setting_heading( |
190 | 190 | 'local_ai_course_assistant/rag_heading', |
|
294 | 294 | $ADMIN->add('local_ai_course_assistant', $settings); |
295 | 295 |
|
296 | 296 | // ── Page 4: Safety & Moderation ───────────────────────────────────────── |
297 | | - $settings = new admin_settingpage('local_ai_course_assistant_safety', 'SOLA: Safety & Moderation'); |
| 297 | + $settings = new admin_settingpage('local_ai_course_assistant_safety', 'Safety & Moderation'); |
298 | 298 |
|
299 | 299 | $settings->add(new admin_setting_heading( |
300 | 300 | 'local_ai_course_assistant/quiz_hide_heading', |
|
402 | 402 | $ADMIN->add('local_ai_course_assistant', $settings); |
403 | 403 |
|
404 | 404 | // ── Page 5: Engagement ────────────────────────────────────────────────── |
405 | | - $settings = new admin_settingpage('local_ai_course_assistant_engagement', 'SOLA: Engagement'); |
| 405 | + $settings = new admin_settingpage('local_ai_course_assistant_engagement', 'Engagement'); |
406 | 406 |
|
407 | 407 | // Study plans and reminders. |
408 | 408 | $settings->add(new admin_setting_heading( |
|
608 | 608 | $ADMIN->add('local_ai_course_assistant', $settings); |
609 | 609 |
|
610 | 610 | // ── Page 6: Branding & UI ─────────────────────────────────────────────── |
611 | | - $settings = new admin_settingpage('local_ai_course_assistant_branding', 'SOLA: Branding & UI'); |
| 611 | + $settings = new admin_settingpage('local_ai_course_assistant_branding', 'Branding & UI'); |
612 | 612 |
|
613 | 613 | $settings->add(new admin_setting_heading( |
614 | 614 | 'local_ai_course_assistant/branding_heading', |
|
717 | 717 | $ADMIN->add('local_ai_course_assistant', $settings); |
718 | 718 |
|
719 | 719 | // ── Page 7: Integrations & Delivery ───────────────────────────────────── |
720 | | - $settings = new admin_settingpage('local_ai_course_assistant_integrations', 'SOLA: Integrations & Delivery'); |
| 720 | + $settings = new admin_settingpage('local_ai_course_assistant_integrations', 'Integrations & Delivery'); |
721 | 721 |
|
722 | 722 | // FAQ & Zendesk. |
723 | 723 | $settings->add(new admin_setting_heading( |
|
832 | 832 |
|
833 | 833 | $ADMIN->add('local_ai_course_assistant', new admin_externalpage( |
834 | 834 | 'local_ai_course_assistant_survey', |
835 | | - 'SOLA: Survey Editor', |
| 835 | + 'Survey Editor', |
836 | 836 | new moodle_url('/local/ai_course_assistant/survey_admin.php'), |
837 | 837 | 'moodle/site:config' |
838 | 838 | )); |
839 | 839 |
|
840 | 840 | $ADMIN->add('local_ai_course_assistant', new admin_externalpage( |
841 | 841 | 'local_ai_course_assistant_usertesting', |
842 | | - 'SOLA: Usability Testing Editor', |
| 842 | + 'Usability Testing Editor', |
843 | 843 | new moodle_url('/local/ai_course_assistant/usertesting_admin.php'), |
844 | 844 | 'moodle/site:config' |
845 | 845 | )); |
846 | 846 |
|
847 | 847 | $ADMIN->add('local_ai_course_assistant', new admin_externalpage( |
848 | 848 | 'local_ai_course_assistant_rubric', |
849 | | - 'SOLA: Rubric Editor', |
| 849 | + 'Rubric Editor', |
850 | 850 | new moodle_url('/local/ai_course_assistant/rubric_admin.php'), |
851 | 851 | 'moodle/site:config' |
852 | 852 | )); |
|
879 | 879 | if (file_exists(__DIR__ . '/whatsapp_test.php')) { |
880 | 880 | $ADMIN->add('local_ai_course_assistant', new admin_externalpage( |
881 | 881 | 'local_ai_course_assistant_whatsapptest', |
882 | | - 'SOLA: WhatsApp Integration Test', |
| 882 | + 'WhatsApp Integration Test', |
883 | 883 | new moodle_url('/local/ai_course_assistant/whatsapp_test.php'), |
884 | 884 | 'moodle/site:config', |
885 | 885 | true |
|
0 commit comments