Advertisement
smaction

Short Code Handler

May 19th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1.  public static function IframeShortCodeHandler($arguments) {
  2.         // first things first, if we dont have ID, then we don't need to
  3.         // go any further
  4.     if (empty($arguments['id'])) {
  5.         return;
  6.        
  7.     }
  8.     $customise = array();
  9.     $customise['url'] = $arguments['id'];
  10.     //get our Iframe template
  11.     $template = new SSViewer('Iframe');
  12.      
  13.     //return the customised template
  14.     return $template->process(new ArrayData($customise));
  15.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement