Skip to content

Instantly share code, notes, and snippets.

Created October 25, 2016 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ccbc8b5061303d9512fc354bc45009c0 to your computer and use it in GitHub Desktop.
Save anonymous/ccbc8b5061303d9512fc354bc45009c0 to your computer and use it in GitHub Desktop.
// Shortcode to display a container blockquote
public static function ShortcodeContainer($arguments, $content = null,
$parser = null, $tagName){
$container = new ArrayList();
$container->Content = $content;
if (isset($arguments['CustomClass']) && $arguments['CustomClass'] !== ''){
$container->CC = $arguments['CustomClass'];
}
return $container->renderWith(array('Shortcodes', 'Container'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment