code/HTMLBlock.php
public static function parse_shortcode($attributes, $content, $parser, $shortcode)
    {
      
        // check the gallery exists
        if (isset($attributes['id']) && $gallery = HTMLBlock::get()->byID($attributes['id'])) {
           return HTMLBlock::get()->byID($attributes['id'])->forTemplate();
        }

    }
public static function parse_shortcode($attributes, $content, $parser, $shortcode)
    {
      
        // check the gallery exists
        if (isset($attributes['id']) && $gallery = HTMLBlock::get()->byID($attributes['id'])) {
           return HTMLBlock::get()->byID($attributes['id'])->forTemplate();
        }

    }
public static function parse_shortcode ( $ attributes , $ content , $ parser , $ shortcode ) { // check the gallery exists if ( isset ( $ attributes [ 'id' ] ) && $ gallery = HTMLBlock :: get ( ) -> byID ( $ attributes [ 'id' ] ) ) { return HTMLBlock :: get ( ) -> byID ( $ attributes [ 'id' ] ) -> forTemplate ( ) ; } }
Parse the shortcode and render as a string, probably with a template
@param array $attributes the list of attributes of the shortcode
@param string $content the shortcode content
@param ShortcodeParser $parser the ShortcodeParser instance
@param string $shortcode the raw shortcode being parsed
@return String
Parse the shortcode and render as a string probably with a template