Function getCodeblock
Gets the content of a codeblock for an image, album or Zenpage newsarticle or page.
The priority for codeblocks will be (based on context) 1: articles 2: pages 3: images 4: albums 5: gallery.
This means, for instance, if we are in ZP_ZENPAGE_NEWS_ARTICLE context we will use the news article codeblock even if others are available.
Note: Echoing this array's content does not execute it. Also no special chars will be escaped. Use printCodeblock() if you need to execute script code.
integer |
$number = 1 |
The codeblock you want to get |
mixed |
$object = NULL |
$what optonal object for which you want the codeblock |
string
|
string |