Lines 24-30
use base qw( Template::Plugin );
Link Here
|
24 |
use C4::Context; |
24 |
use C4::Context; |
25 |
use Koha; |
25 |
use Koha; |
26 |
|
26 |
|
27 |
=pod |
27 |
=head1 NAME |
|
|
28 |
|
29 |
Koha::Template::Plugin::Koha - General Koha Template Toolkit plugin |
30 |
|
31 |
=head1 SYNOPSIS |
28 |
|
32 |
|
29 |
This plugin contains various Koha replated Template Toolkit functions |
33 |
This plugin contains various Koha replated Template Toolkit functions |
30 |
to help streamline Koha and to move logic from the Perl code into the |
34 |
to help streamline Koha and to move logic from the Perl code into the |
Lines 40-45
is necessary.
Link Here
|
40 |
|
44 |
|
41 |
=cut |
45 |
=cut |
42 |
|
46 |
|
|
|
47 |
=head1 API |
48 |
|
49 |
=head2 Class Methods |
50 |
|
51 |
=cut |
52 |
|
43 |
sub Preference { |
53 |
sub Preference { |
44 |
my ( $self, $pref ) = @_; |
54 |
my ( $self, $pref ) = @_; |
45 |
return C4::Context->preference( $pref ); |
55 |
return C4::Context->preference( $pref ); |
Lines 58-63
sub Version {
Link Here
|
58 |
}; |
68 |
}; |
59 |
} |
69 |
} |
60 |
|
70 |
|
|
|
71 |
=head3 ArePluginsEnabled |
72 |
|
73 |
Returns true if plugins are enabled, false otherwise. |
74 |
|
75 |
=cut |
76 |
|
61 |
sub ArePluginsEnabled { |
77 |
sub ArePluginsEnabled { |
62 |
return C4::Context->config('enable_plugins'); |
78 |
return C4::Context->config('enable_plugins'); |
63 |
} |
79 |
} |
64 |
- |
|
|