Revision 25663f29
Von Hans Peter Schlaepfer vor etwa 4 Jahren hinzugefügt
SL/Layout/Split.pm | ||
---|---|---|
my $left = join '', map { $_->pre_content } @{ $_[0]->left || [] };
|
||
my $right = join '', map { $_->pre_content } @{ $_[0]->right || [] };
|
||
|
||
html_tag('div', $left, class => 'layout-split-left')
|
||
.'<div class="layout-split-right">' . $right;
|
||
html_tag('div', $left, id => 'layout-split-left')
|
||
.'<div id="layout-split-right">' . $right;
|
||
}
|
||
|
||
sub post_content {
|
||
my $left = join '', map { $_->post_content } @{ $_[0]->left || [] };
|
||
my $right = join '', map { $_->post_content } @{ $_[0]->right || [] };
|
||
|
||
$right . '</div>'
|
||
$right . '</div><!-- /#layout-split-right -->'
|
||
. html_tag('div', $left, class => 't-layout-left');
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Design 4.0: Layout::Split: id statt class; Kommentar in css