mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-16 19:50:44 +01:00
56 lines
1.2 KiB
PHP
56 lines
1.2 KiB
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Base plugin class.
|
||
|
*/
|
||
|
require_once 'Savant2/Plugin.php';
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Outputs a <link ... /> to a CSS stylesheet.
|
||
|
*
|
||
|
* $Id$
|
||
|
*
|
||
|
* @author Paul M. Jones <pmjones@ciaweb.net>
|
||
|
*
|
||
|
* @package Savant2
|
||
|
*
|
||
|
* @license http://www.gnu.org/copyleft/lesser.html LGPL
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Lesser General Public License as
|
||
|
* published by the Free Software Foundation; either version 2.1 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful, but
|
||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
class Savant2_Plugin_stylesheet extends Savant2_Plugin {
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Output a <link ... /> to a CSS stylesheet.
|
||
|
*
|
||
|
* @access public
|
||
|
*
|
||
|
* @param object &$savant A reference to the calling Savant2 object.
|
||
|
*
|
||
|
* @param string $href The HREF leading to the stylesheet file.
|
||
|
*
|
||
|
* @return string
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
function plugin($href)
|
||
|
{
|
||
|
return '<link rel="stylesheet" type="text/css" href="' .
|
||
|
htmlspecialchars($href) . '" />';
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|