示例#1
0
 public static function addDependencies($view, $layout, $tmpl = '')
 {
     $doc = JFactory::getDocument();
     $script = $tmpl == 'ajax' ? false : true;
     if ($script !== false) {
         if (JCck::on()) {
             JHtml::_('behavior.framework', false);
             JHtml::_('bootstrap.tooltip');
         }
         JCck::loadjQuery(true, true, true);
     }
     Helper_Include::addStyleSheets(true);
 }
示例#2
0
 public function display($tpl = NULL)
 {
     $app = JFactory::getApplication();
     if ($this->getlayout() != 'select') {
         $preconfig = array();
         $preconfig['action'] = '';
         $preconfig['client'] = 'admin';
         $preconfig['formId'] = 'seblod_form';
         $preconfig['submit'] = 'JCck.Core.submit';
         $preconfig['task'] = $app->input->get('task', '');
         $preconfig['type'] = $app->input->get('type', '');
         $preconfig['url'] = JFactory::getURI()->toString();
         JCck::loadjQuery();
         Helper_Include::addStyleSheets(false);
         $this->prepareDisplay($preconfig);
     }
     parent::display($tpl);
 }
 public static function addDependencies($view, $layout, $tmpl = '')
 {
     $doc = JFactory::getDocument();
     $script = $tmpl == 'ajax' ? false : true;
     Helper_Include::addStyleSheets(true);
     // Additional
     switch ($view) {
         case 'box':
             JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js', 'jquery.ui.effects.min.js', 'jquery.json.min.js'));
             Helper_Include::addSmoothScrool(500);
             break;
         case 'folder':
             JCck::loadjQuery(true, true, true);
             break;
         case 'template':
             JCck::loadjQuery(true, true, true);
             Helper_Include::addJSTree('cck_tree', $script);
             break;
         case 'site':
             JCck::loadjQuery(true, true, true);
             break;
         case 'field':
             if ($script === true) {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js'));
                 JCck::loadjQueryUI();
             }
             Helper_Include::addTooltip('span[title].qtip_cck', 'left center', 'right center', 'ui-tooltip-cck-indigo_dye ui-tooltip-shadow', $script, $tmpl);
             Helper_Include::addTooltip('img[title].qtip_cck', 'right center', 'left center', 'ui-tooltip-cck-indigo_dye ui-tooltip-shadow', false, $tmpl);
             break;
         case 'type':
         case 'search':
             if ($script === true) {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js', 'jquery.biscuit.min.js'));
                 JCck::loadjQueryUI();
                 $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/css/ui-construction.css');
                 $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/styles/seblod/ui-construction.css');
             }
             Helper_Include::addColorbox_Live('930', '550', $script, 'cbox', ', onLoad: function(){ $("#cboxClose").remove();}');
             Helper_Include::addColorpicker($script);
             Helper_Include::addTooltip('', '', '', '', $script);
             break;
         case 'version':
             JCck::loadjQuery(true, true, true);
             break;
             // --------
         // --------
         case 'templates':
         case 'types':
         case 'fields':
         case 'searchs':
         case 'folders':
         case 'sites':
         case 'variations':
         case 'versions':
             if ($view == 'folders') {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js'));
             } else {
                 JCck::loadjQuery();
             }
             if (JCck::on()) {
                 JHtml::_('bootstrap.tooltip');
                 JHtml::_('formbehavior.chosen', 'select:not(.no-chosen)');
             }
             Helper_Include::addLavalamp('#submenu');
             Helper_Include::addSmoothScrool();
             if ($view == 'fields') {
                 Helper_Include::addColorbox('500', '300', $script, 'cbox', ', onLoad: function(){ $("#cboxClose").remove();}');
             } elseif ($view == 'templates') {
                 Helper_Include::addColorbox('850', '585', $script);
             } elseif ($view == 'types' || $view == 'searchs') {
                 Helper_Include::addColorbox('850', '430', true, 'cbox_button', ', scrolling:false');
             } elseif ($view == 'variations') {
                 JHtml::_('behavior.framework', false);
             }
             if ($view == 'searchs' || $view == 'sites') {
                 $doc->addStyleSheet(JROOT_MEDIA_CCK . '/css/jquery.sly.css');
                 $doc->addScript(JROOT_MEDIA_CCK . '/js/jquery.sly.min.js');
             }
             break;
         case 'cck':
             $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/css/cpanel.css');
             JCck::loadjQuery();
             Helper_Include::addColorbox('930', '430', true, 'cbox_button');
             Helper_Include::addLavalamp('#submenu');
             break;
         default:
             break;
     }
 }
示例#4
0
        $legacy = $options->get('add_alt', 2);
    }
}
if ($legacy == 1) {
    $legend = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>', '<span style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM')) . '</span>');
    $legend2 = '';
} elseif ($legacy == 2) {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND2', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>');
} else {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = '';
}
// Set
JCck::loadjQuery();
Helper_Include::addStyleSheets(true);
if (JCck::on()) {
    JHtml::_('stylesheet', 'administrator/components/com_cck/assets/css/cpanel.css', array(), false);
}
$doc = JFactory::getDocument();
$js = 'jQuery(document).ready(function($){ $("#standard-content").attr("onclick","parent."+parent.jQuery("#toolbar-new a").attr("onclick2")); });';
$doc->addScriptDeclaration($js);
?>

<form action="<?php 
echo JRoute::_('index.php');
?>
" method="post" id="adminForm" name="adminForm">

<div class="seblod">
    <?php