<?php
|
|
|
|
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
|
|
//
|
|
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
|
|
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
|
|
// $Id$
|
|
|
|
function wikiplugin_pdfpagebreak_info()
|
|
{
|
|
return [
|
|
'name' => tra('PluginPDF Page Break'),
|
|
'documentation' => 'PluginPDFPageBreak',
|
|
'description' => tra('Helpful to format PDF files created, plugin adds page break in PDF file generated.'),
|
|
'tags' => [ 'basic' ],
|
|
'iconname' => 'pdf',
|
|
'prefs' => [ 'wikiplugin_pdf' ],
|
|
'introduced' => 17,
|
|
|
|
];
|
|
}
|
|
|
|
function wikiplugin_pdfpagebreak()
|
|
{
|
|
if (! empty($_GET['display']) && strstr($_GET['display'], 'pdf') == '') {
|
|
return;
|
|
}
|
|
return '<pagebreak></pagebreak>';
|
|
}
|