protected function addToolbar()
 {
     $bar = JToolBar::getInstance('toolbar');
     $canDo = ARKHelper::getActions();
     JToolBarHelper::title(JText::_('COM_ARKEDITOR_SUBMENU_PLUGIN_NAME'), 'puzzle');
     require_once JPATH_COMPONENT . DS . 'helper.php';
     $links = ARKHelper::getExternalLinks();
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('list.edit');
     }
     //end if
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::publishList('list.publish');
         JToolBarHelper::unpublishList('list.unpublish');
         JToolbarHelper::checkin('list.checkin');
     }
     //end if
     JToolBarHelper::help($this->app->input->get('view'), false, $links['ark-guide']);
     ARKHelper::addSubmenu($this->app->input->get('view'));
     JHtmlSidebar::setAction('index.php?option=com_arkeditor&view=list');
     // FILTERS
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', ARKHelper::getStateOptions(), 'value', 'text', $this->state->get('filter.state')));
     JHtmlSidebar::addFilter(JText::_('- Select Core Type -'), 'filter_iscore', JHtml::_('select.options', array(JHtml::_('select.option', '1', 'Core Plugins'), JHtml::_('select.option', '0', 'Not Core Plugins')), 'value', 'text', $this->state->get('filter.iscore')));
     $this->sidebar = JHtmlSidebar::render();
 }
 protected function addToolbar()
 {
     $bar = JToolBar::getInstance('toolbar');
     JToolBarHelper::title(JText::_('COM_ARKEDITOR_SUBMENU_LAYOUT_NAME'), 'layout.png');
     require_once JPATH_COMPONENT . DS . 'helper.php';
     $links = ARKHelper::getExternalLinks();
     if ($this->canDo->get('core.create')) {
         JToolBarHelper::addNew('toolbars.add');
     }
     if ($this->canDo->get('core.edit')) {
         JToolBarHelper::editList('toolbars.edit');
     }
     if ($this->canDo->get('core.create')) {
         JToolBarHelper::custom('toolbars.copy', 'copy', 'copy', JText::_('JLIB_HTML_BATCH_COPY'), true);
     }
     if ($this->canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'toolbars.remove');
     }
     if ($this->canDo->get('core.edit.state')) {
         JToolbarHelper::checkin('toolbars.checkin');
     }
     JToolBarHelper::help($this->app->input->get('view'), false, $links['ark-guide']);
     JHtmlSidebar::setAction('index.php?option=com_arkeditor&view=' . JFactory::getApplication()->input->get('view', 'toolbars'));
     ARKHelper::addSubmenu($this->app->input->get('view'));
     $this->sidebar = JHtmlSidebar::render();
 }
 function addItem($label = '', $type = 'ok')
 {
     $links = ARKHelper::getExternalLinks();
     $html = array();
     $html[] = '<td width="6%"><i class="icon-' . $type . '"></i></td>';
     $html[] = '<td width="44%" class="stat">';
     $html[] = '<span>' . $label . '</span>';
     $html[] = '<a href="' . $links['ark-pro'] . '" target="_blank">' . JText::_('COM_ARKEDITOR_PRO_MORE_NAME') . '</a>';
     $html[] = '</td>';
     return implode("\n", $html);
 }
 protected function addToolbar()
 {
     $bar = JToolBar::getInstance('toolbar');
     JToolBarHelper::title(JText::_('COM_ARKEDITOR'), 'arkeditor');
     require_once JPATH_COMPONENT . DS . 'helper.php';
     $links = ARKHelper::getExternalLinks();
     // TODO: Plumb In
     // JToolbarHelper::custom( $links['ark-guide'], 'help', 'help', 'Help' );
     // JToolbarHelper::custom( $links['ark'], 'warning', 'warning', 'Report a Bug' );
     JToolBarHelper::help($this->app->input->get('view'), false, $links['ark-guide']);
     if ($this->canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_arkeditor');
     }
     ARKHelper::addSubmenu($this->app->input->get('view'));
     $this->sidebar = JHtmlSidebar::render();
 }
# @license - GPLv2.0
# Author: WebxSolution Ltd
# Websites:  http://webx.solutions
# Terms of Use: An extension that is derived from the Ark Editor will only be allowed under the following conditions: http://arkextensions.com/terms-of-use
# ------------------------------------------------------------------------*/
defined('_JEXEC') or die;
// NOTE - For Non-Ajax Version Call Model Directly (See: administrator/components/com_installer/controllers/update.php)
if (!defined('_ARK_UPDATE_MODULE')) {
    /** ensure that functions are declared only once */
    define('_ARK_UPDATE_MODULE', 1);
    require_once JPATH_COMPONENT . DS . 'helper.php';
    JHtml::_('jquery.framework');
    $app = JFactory::getApplication();
    $doc = JFactory::getDocument();
    $eid = ARKHelper::getEID();
    $links = ARKHelper::getExternalLinks();
    $names = (object) array('root' => 'box-arkupdate', 'version' => 'version');
    $root = 'box-arkupdate';
    echo '<div id="arkupdate">';
    echo '<table class="table table-striped">';
    echo '<tr>';
    echo '<td class="muted ' . $names->version . '">' . JText::_('COM_ARKEDITOR_UPDATE_INTRO_NAME') . '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td class="buttoncol">';
    echo '<a class="btn btn-success pull-right" href="' . $links['joomla-update'] . '">' . JText::_('COM_ARKEDITOR_UPDATE_UPDATE_NAME') . '</a>';
    echo '<a class="btn btn-info pull-right" href="' . $links['ark-update'] . '" target="_blank">' . JText::_('COM_ARKEDITOR_UPDATE_MANUAL_NAME') . '</a>';
    echo '</td>';
    echo '</tr>';
    echo '</table>';
    echo '</div>';