X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FLayout%2FSplit.pm;h=a262b5bebe2334173f1b8d2ec0da3e5af1dfb5f8;hb=08e48f66590f580cbe2c8e3df76883d88b4c0fef;hp=e8e2a88f074a4cbf126d84bf7bc0729822d24645;hpb=0466a6b348893b3e245713b9967e1f6dbff4c72f;p=kivitendo-erp.git diff --git a/SL/Layout/Split.pm b/SL/Layout/Split.pm index e8e2a88f0..a262b5beb 100644 --- a/SL/Layout/Split.pm +++ b/SL/Layout/Split.pm @@ -3,7 +3,7 @@ package SL::Layout::Split; use strict; use parent qw(SL::Layout::Base); -use SL::Presenter; +use SL::Presenter::Tag qw(html_tag); use Rose::Object::MakeMethods::Generic ( 'scalar' => [ qw(left right) ], @@ -18,8 +18,8 @@ sub pre_content { my $left = join '', map { $_->pre_content } @{ $_[0]->left || [] }; my $right = join '', map { $_->pre_content } @{ $_[0]->right || [] }; - SL::Presenter->get->html_tag('div', $left, class => 't-layout-left') - .'
' . $right; + html_tag('div', $left, class => 'layout-split-left') + .'
' . $right; } sub post_content { @@ -27,7 +27,7 @@ sub post_content { my $right = join '', map { $_->post_content } @{ $_[0]->right || [] }; $right . '
' - . SL::Presenter->get->html_tag('div', $left, class => 't-layout-left'); + . html_tag('div', $left, class => 't-layout-left'); } 1; @@ -42,9 +42,9 @@ SL::Layout::Split =head1 SYNOPSIS - use SL::Layout::TLayout; + use SL::Layout::Split; - SL::Layout::TLayout->new( + SL::Layout::Split->new( left => [ LIST OF SUBLAYOUTS ], right => [ LIST OF SUBLAYOUTS ], );