Bugzilla – Attachment 71569 Details for
Bug 20181
Allow plugins to add CSS and Javascript to OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20181: Add POD for new plugin
Bug-20181-Add-POD-for-new-plugin.patch (text/plain), 1.67 KB, created by
Mark Tompsett
on 2018-02-13 19:16:22 UTC
(
hide
)
Description:
Bug 20181: Add POD for new plugin
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-02-13 19:16:22 UTC
Size:
1.67 KB
patch
obsolete
>From 5bb55a9e307fa43b6a01e2b25f26d89ef89617f2 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Tue, 13 Feb 2018 14:08:25 -0500 >Subject: [PATCH] Bug 20181: Add POD for new plugin > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > Koha/Template/Plugin/KohaPlugins.pm | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > >diff --git a/Koha/Template/Plugin/KohaPlugins.pm b/Koha/Template/Plugin/KohaPlugins.pm >index a2b9e29..a6822ca 100644 >--- a/Koha/Template/Plugin/KohaPlugins.pm >+++ b/Koha/Template/Plugin/KohaPlugins.pm >@@ -23,6 +23,29 @@ use base qw( Template::Plugin ); > > use Koha::Plugins; > >+=head1 NAME >+ >+Koha::Template::Plugin::KohaPlugins - A module for adding hooks into Koha for plugins >+ >+=head1 DESCRIPTION >+ >+This plugin contains functions related to adding plugin hooks into various parts >+of Koha. >+ >+To use, include the line '[% USE KohaPlugins %]' at the top of the template >+to enable the plugin >+ >+=head2 Methods >+ >+=head3 get_plugins_opac_head >+ >+[% KohaPlugins.get_plugins_opac_head %] >+ >+This method collects the output of all plugins with an opac_head method >+to output to the head section of opac pages. >+ >+=cut >+ > sub get_plugins_opac_head { > return q{} > unless C4::Context->preference('UseKohaPlugins') >@@ -39,6 +62,15 @@ sub get_plugins_opac_head { > return join( "\n", @data ); > } > >+=head3 get_plugins_opac_js >+ >+[% KohaPlugins.get_plugins_opac_js %] >+ >+This method collects the output of all plugins with an opac_js method >+to output to the javascript section of at the bottom of opac pages. >+ >+=cut >+ > sub get_plugins_opac_js { > return q{} > unless C4::Context->preference('UseKohaPlugins') >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20181
:
71481
|
71483
|
71563
|
71565
|
71566
|
71567
|
71568
|
71569
|
73264
|
73265
|
73266
|
73267
|
73417