forked from Public/pics
Changes the ConfirmDelete page and updates database code.
The ConfirmDelete page now uses parts of the photopage. The Confirmation dialog is its own template which is based on Alert. The database now updates the album thumb to the most recent addition to the album, when the album thumb asset is being deleted. When there are no pictures left in the album 0 will be set.
This commit is contained in:
27
templates/Button.php
Normal file
27
templates/Button.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/*****************************************************************************
|
||||
* Button.php
|
||||
* Defines the Button template.
|
||||
*
|
||||
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
|
||||
*****************************************************************************/
|
||||
|
||||
class Button extends SubTemplate
|
||||
{
|
||||
private $content = '';
|
||||
private $href = '';
|
||||
private $class = '';
|
||||
|
||||
public function __construct($content = '', $href = '', $class = '')
|
||||
{
|
||||
$this->content = $content;
|
||||
$this->href = $href;
|
||||
$this->class = $class;
|
||||
}
|
||||
|
||||
protected function html_content()
|
||||
{
|
||||
echo '
|
||||
<a class="', $this->class, '" href="', $this->href, '">', $this->content, '</a>';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user