403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.216.43
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/kanboard/app/Helper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/kanboard/app/Helper/ModalHelper.php
<?php

namespace Kanboard\Helper;

use Kanboard\Core\Base;

/**
 * Class ModalHelper
 *
 * @package Kanboard\Helper
 * @author  Frederic Guillot
 */
class ModalHelper extends Base
{
    public function submitButtons(array $params = array())
    {
        return $this->helper->app->component('submit-buttons', array(
            'submitLabel' => isset($params['submitLabel']) ? $params['submitLabel'] : t('Save'),
            'orLabel'     => t('or'),
            'cancelLabel' => t('cancel'),
            'color'       => isset($params['color']) ? $params['color'] : 'blue',
            'tabindex'    => isset($params['tabindex']) ? $params['tabindex'] : null,
            'disabled'    => isset($params['disabled']) ? true : false,
        ));
    }

    public function confirmButtons($controller, $action, array $params = array(), $submitLabel = '', $tabindex = null)
    {
        return $this->helper->app->component('confirm-buttons', array(
            'url'         => $this->helper->url->href($controller, $action, $params, true),
            'submitLabel' => $submitLabel ?: t('Yes'),
            'orLabel'     => t('or'),
            'cancelLabel' => t('cancel'),
            'tabindex'    => $tabindex,
        ));
    }

    public function largeIcon($icon, $label, $controller, $action, array $params = array())
    {
        $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-large" aria-hidden="true"></i>';
        return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-large', $label);
    }

    public function large($icon, $label, $controller, $action, array $params = array())
    {
        $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-large" aria-hidden="true"></i>'.$label;
        return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-large');
    }

    public function medium($icon, $label, $controller, $action, array $params = array(), $title = '')
    {
        $ariaLabel = (empty($title) ? 'aria-hidden="true"' : 'role="img" aria-label="'.$title.'"');
        $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-medium" '.$ariaLabel.'></i>'.$label;
        return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-medium', $title);
    }

    public function small($icon, $label, $controller, $action, array $params = array())
    {
        $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-small" aria-hidden="true"></i>'.$label;
        return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-small');
    }

    public function mediumButton($icon, $label, $controller, $action, array $params = array())
    {
        $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-medium" aria-hidden="true"></i>'.$label;
        return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-medium btn');
    }

    public function mediumIcon($icon, $label, $controller, $action, array $params = array())
    {
        $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-medium" aria-hidden="true"></i>';
        return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-medium', $label);
    }

    public function confirm($icon, $label, $controller, $action, array $params = array())
    {
        $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-confirm" aria-hidden="true"></i>'.$label;
        return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-confirm');
    }

    public function confirmLink($label, $controller, $action, array $params = array())
    {
        return $this->helper->url->link($label, $controller, $action, $params, false, 'js-modal-confirm');
    }

    public function replaceLink($label, $controller, $action, array $params = array())
    {
        return $this->helper->url->link($label, $controller, $action, $params, false, 'js-modal-replace');
    }

    public function replaceIconLink($icon, $label, $controller, $action, array $params = array())
    {
        $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-replace" aria-hidden="true"></i>'.$label;
        return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-replace');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit