Hi Gareth,
What does this do and is it necessary? What I mean is could Essential live without it?
/**
* Get the HTML for blocks in the given region.
*
* @since 2.5.1 2.6
* @param string $region The region to get HTML for.
* @return string HTML.
* Written by G J Barnard
*/
public function essentialblocks($region, $classes = array(), $tag = 'aside') {
$classes = (array)$classes;
$classes[] = 'block-region';
$attributes = array(
'id' => 'block-region-'.preg_replace('#[^a-zA-Z0-9_\-]+#', '-', $region),
'class' => join(' ', $classes),
'data-blockregion' => $region,
'data-droptarget' => '1'
);
return html_writer::tag($tag, $this->blocks_for_region($region), $attributes);
}
Thanks
Mary