Ejemplo n.º 1
0
 public static function &getButtons()
 {
     $uix = JCck::getUIX();
     if (empty(self::$buttons)) {
         if ($uix == 'compact') {
             self::$buttons = array(array('link' => JRoute::_('index.php?option=com_cck&view=types'), 'icon' => 'icon-48-types.png', 'image' => 'cck-form', 'label' => JText::_('MOD_CCK_QUICKICON_FORM_MANAGER'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_FORM_MANAGER')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_CONSTRUCTION'), array('link' => JRoute::_('index.php?option=com_cck&view=folders'), 'icon' => 'icon-48-folders.png', 'image' => 'cck-application', 'label' => JText::_('MOD_CCK_QUICKICON_APP_FOLDER_MANAGER'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_APP_FOLDER_MANAGER')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_CONSTRUCTION'), array('link' => JRoute::_('http://www.seblod.com/products'), 'target' => '_blank', 'icon' => 'icon-48-seblod.png', 'image' => 'cck-products', 'label' => JText::_('MOD_CCK_QUICKICON_SEBLOD_MARKET'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_SEBLOD_MARKET_EXTEND')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_SEBLOD_MARKET'));
         } else {
             self::$buttons = array(array('link' => JRoute::_('index.php?option=com_cck&view=types'), 'icon' => 'icon-48-types.png', 'image' => 'cck-form', 'label' => JText::_('MOD_CCK_QUICKICON_CONTENT_TYPE_MANAGER'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_CONTENT_TYPE_MANAGER')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_CONSTRUCTION'), array('link' => JRoute::_('index.php?option=com_cck&view=fields'), 'icon' => 'icon-48-fields.png', 'image' => 'cck-plugin', 'label' => JText::_('MOD_CCK_QUICKICON_FIELD_MANAGER'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_FIELD_MANAGER')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_CONSTRUCTION'), array('link' => JRoute::_('index.php?option=com_cck&view=searchs'), 'icon' => 'icon-48-searchs.png', 'image' => 'cck-search', 'label' => JText::_('MOD_CCK_QUICKICON_SEARCH_TYPE_MANAGER'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_SEARCH_TYPE_MANAGER')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_CONSTRUCTION'), array('link' => JRoute::_('index.php?option=com_cck&view=templates'), 'icon' => 'icon-48-templates.png', 'image' => 'cck-template', 'label' => JText::_('MOD_CCK_QUICKICON_TEMPLATE_MANAGER'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_TEMPLATE_MANAGER')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_CONSTRUCTION'));
             if (!JCck::on()) {
                 self::$buttons[] = array('link' => JRoute::_('index.php?option=com_cck&view=folders'), 'icon' => 'icon-48-folders.png', 'image' => 'cck-application', 'label' => JText::_('MOD_CCK_QUICKICON_APP_FOLDER_MANAGER'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_APP_FOLDER_MANAGER')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_CONSTRUCTION');
                 self::$buttons[] = array('link' => JRoute::_('index.php?option=com_cck&view=sites'), 'icon' => 'icon-48-sites.png', 'image' => 'cck-multisite', 'label' => JText::_('MOD_CCK_QUICKICON_SITE_MANAGER'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_SITE_MANAGER')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_CONSTRUCTION');
             }
             self::$buttons[] = array('link' => JRoute::_('http://www.seblod.com/products'), 'target' => '_blank', 'icon' => 'icon-48-seblod.png', 'image' => 'cck-products', 'label' => JText::_('MOD_CCK_QUICKICON_SEBLOD_MARKET'), 'text' => str_replace('<br />', ' ', JText::_('MOD_CCK_QUICKICON_SEBLOD_MARKET_EXTEND')), 'access' => array('core.manage', 'com_cck'), 'group' => 'MOD_CCK_QUICKICON_SEBLOD_MARKET');
         }
     }
     return self::$buttons;
 }
Ejemplo n.º 2
0
/**
* @version 			SEBLOD 3.x Core ~ $Id: default.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
if (JCck::on()) {
    $html = JHtml::_('links.linksgroups', modCCKQuickIconHelper::groupButtons($buttons));
    if (!empty($html)) {
        ?>
    <div class="sidebar-nav quick-icons">
        <?php 
        echo $html;
        ?>
    </div>
<?php 
    }
} else {
    ?>
    <div id="cpanel">
    <?php 
    foreach ($buttons as $button) {
        echo modCCKQuickIconHelper::button($button);
    }
    ?>
    </div>
<?php 
}
Ejemplo n.º 3
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: mod_cck_quickicon.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
require_once dirname(__FILE__) . '/helper.php';
$buttons = modCCKQuickIconHelper::getButtons();
if (JCck::on()) {
    JHtml::_('stylesheet', 'administrator/components/com_cck/assets/css/font.css', array(), false);
}
require JModuleHelper::getLayoutPath('mod_cck_quickicon', $params->get('layout', 'default'));