Revision d6a9eb6c
Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
84 | 84 |
sub date_tag { return _call_presenter('date_tag', @_); } |
85 | 85 |
sub div_tag { return _call_presenter('div_tag', @_); } |
86 | 86 |
sub radio_button_tag { return _call_presenter('radio_button_tag', @_); } |
87 |
sub img_tag { return _call_presenter('img_tag', @_); } |
|
87 | 88 |
|
88 | 89 |
sub _set_id_attribute { |
89 | 90 |
my ($attributes, $name, $unique) = @_; |
90 | 91 |
SL::Presenter::Tag::_set_id_attribute($attributes, $name, $unique); |
91 | 92 |
} |
92 | 93 |
|
93 |
sub img_tag { |
|
94 |
my ($self, %options) = _hashify(1, @_); |
|
95 |
|
|
96 |
$options{alt} ||= ''; |
|
97 |
|
|
98 |
return $self->html_tag('img', undef, %options); |
|
99 |
} |
|
100 |
|
|
101 | 94 |
sub ul_tag { |
102 | 95 |
my ($self, $content, @slurp) = @_; |
103 | 96 |
return $self->html_tag('ul', $content, @slurp); |
Auch abrufbar als: Unified diff
Presenter::Tag: img_tag aus Plugin/L verschoben