| Current Path : /home/azimutno/www/demo/libraries/nextend/smartslider/admin/controllers/ |
| Current File : /home/azimutno/www/demo/libraries/nextend/smartslider/admin/controllers/settings.php |
<?php
/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?><?php
class NextendSmartsliderAdminControllerSettings extends NextendSmartsliderAdminController {
function NextendSmartsliderAdminControllerSettings($key) {
parent::NextendSmartsliderAdminController($key);
}
function defaultAction($form = 'default') {
if ($this->canDo('core.admin')) {
$settingsModel = $this->getModel('settings');
if (NextendRequest::getInt('save')) {
if ($settingsModel->save()) {
header('LOCATION: ' . $this->route('controller=settings'));
exit;
}
}
$this->display($form, 'default');
}else{
$this->noaccess();
}
}
function layoutAction() {
$this->defaultAction('layout');
}
function fontAction() {
$this->defaultAction('font');
}
function clearfontsAction() {
if ($this->canDo('core.admin')) {
$sliderid = NextendRequest::getInt('sliderid');
$settingsModel = $this->getModel('settings');
if ($sliderid) {
if ($settingsModel->clearfonts($sliderid)) {
header('LOCATION: ' . $this->route('controller=settings&view=sliders_settings&action=font&sliderid='.$sliderid));
exit;
}
}
$this->display($form, 'default');
}else{
$this->noaccess();
}
}
function joomlaAction() {
if(nextendIsJoomla()) $this->defaultAction('joomla');
}
}