Skip to content
Snippets Groups Projects
Commit f29539a2 authored by Reiner Jung's avatar Reiner Jung
Browse files

Added moopage wordpress extension to the repository.

parent 4e38ef1e
No related branches found
No related tags found
No related merge requests found
<?php
/*
Plugin Name: moopage
Description: [moopage url="partial-url"] shortcode
Author: Reiner Jung
*/
if ( !function_exists( 'moopage_embed_shortcode' ) ) {
function moopage_embed_shortcode($atts) {
extract(shortcode_atts(array(
'url' => ''
), $atts));
$url = 'https://maui.se.informatik.uni-kiel.de/repo/moobench/' . $url;
return file_get_contents($url);
}
add_shortcode('moopage', 'moopage_embed_shortcode');
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment