schleifengarten-website/bl-plugins/viewerjs/plugin.php

31 lines
658 B
PHP
Raw Normal View History

2022-08-29 19:58:40 +02:00
<?php
class pluginViewerjs extends Plugin {
public function form()
{
global $Language;
$html = '<div>';
$html .= '<p>Your content must have a parent element with id #page_content!</p><p>All pictures must be without links, the script finds all < img > in the parent element with id #page_content.</p>';
$html .= '</div>';
return $html;
}
public function siteHead(){
$html = '<link href="'.HTML_PATH_PLUGINS.'viewerjs/css/viewer.css" rel="stylesheet">';
return $html;
}
public function siteBodyEnd()
{
$html = PHP_EOL.'<script src="'.HTML_PATH_PLUGINS.'viewerjs/js/viewer.js"></script>'.PHP_EOL;
return $html;
}
}