diff --git a/classes/shortcodes.php b/classes/shortcodes.php new file mode 100644 index 0000000..3982d49 --- /dev/null +++ b/classes/shortcodes.php @@ -0,0 +1,22 @@ +baseurl; + if ($baseurl[-1] != "/") $baseurl += "/"; + + $ext = array_key_exists("ext", $args) ? "." . $args["ext"] : ""; + + return $baseurl . "meta_media/high/" . $args["id"] . $ext; + } + +} \ No newline at end of file diff --git a/db/shortcodes.php b/db/shortcodes.php new file mode 100644 index 0000000..7dde853 --- /dev/null +++ b/db/shortcodes.php @@ -0,0 +1,8 @@ + [ + 'callback' => 'mod_expcontent\shortcodes::expcontent' + ] +]; \ No newline at end of file diff --git a/lang/en/expcontent.php b/lang/en/expcontent.php index 7e6c02c..1532ba6 100644 --- a/lang/en/expcontent.php +++ b/lang/en/expcontent.php @@ -3,6 +3,7 @@ defined('MOODLE_INTERNAL') || die(); $string['modulename'] = 'EXP360 Content'; +$string['modulename'] = 'EXP360 Contents'; $string['settings'] = 'Settings'; diff --git a/view.php b/view.php index a4c500a..1efe5bb 100644 --- a/view.php +++ b/view.php @@ -78,6 +78,6 @@ img {
  • name); ?>
  • - +