2018-07-08 10:19:37 +02:00
|
|
|
<?php
|
|
|
|
/*****************************************************************************
|
|
|
|
* Button.php
|
|
|
|
* Defines the Button template.
|
|
|
|
*
|
|
|
|
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2023-03-12 01:00:50 +01:00
|
|
|
class Button extends Template
|
2018-07-08 10:19:37 +02:00
|
|
|
{
|
|
|
|
private $content = '';
|
|
|
|
private $href = '';
|
|
|
|
private $class = '';
|
|
|
|
|
|
|
|
public function __construct($content = '', $href = '', $class = '')
|
|
|
|
{
|
|
|
|
$this->content = $content;
|
|
|
|
$this->href = $href;
|
|
|
|
$this->class = $class;
|
|
|
|
}
|
|
|
|
|
2023-03-12 01:00:50 +01:00
|
|
|
public function html_main()
|
2018-07-08 10:19:37 +02:00
|
|
|
{
|
|
|
|
echo '
|
|
|
|
<a class="', $this->class, '" href="', $this->href, '">', $this->content, '</a>';
|
|
|
|
}
|
|
|
|
}
|