PHP Classes

File: contents/themes/simplecolor/shortcode.php

Recommend this page to a friend!
  Classes of Minh Tien   Noblesse CMS   contents/themes/simplecolor/shortcode.php   Download  
File: contents/themes/simplecolor/shortcode.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Noblesse CMS
Content management system with custom plugins
Author: By
Last change:
Date: 9 years ago
Size: 323 bytes
 

Contents

Class file image Download
<?php

/*Shortcode
Title: Youtube Shortcode
Description: Show youtube video.
Code: youtube
*/

// Shortcode::templateAdd('youtube','simple_youtube_parse');


function simple_youtube_parse($inputData=array())
{
   
$value=$inputData['value'];

    return
'<a href="http://youtube.com?v='.$value.'">Click to watch video</a>';
}

?>