Commit 05912747 authored by Nigel McNie's avatar Nigel McNie
Browse files

Export a class for each blockinstance which reveals what type of block it is.



Needed for view import.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent c3bf8f19
......@@ -538,6 +538,7 @@ class BlockInstance {
$smarty = smarty_core();
$smarty->assign('id', $this->get('id'));
$smarty->assign('blocktype', $this->get('blocktype'));
$title = call_static_method(generate_class_name('blocktype', $this->get('blocktype')), 'override_instance_title', $this);
$smarty->assign('title', $title ? $title : $this->get('title'));
......
<div class="blockinstance" id="blockinstance_{$id}">
<div class="blockinstance bt-{$blocktype|escape}" id="blockinstance_{$id}">
{if $title}<div class="blockinstance-header">
<h4>{if $viewartefacturl}<a href="{$viewartefacturl|escape}" title="{str tag=clickformoreinformation section=view}">{/if}{$title|escape}{if $viewartefacturl}</a>{/if}</h4>
</div>{/if}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment