当前位置: 首页>>代码示例>>PHP>>正文


PHP NextendText::l方法代码示例

本文整理汇总了PHP中NextendText::l方法的典型用法代码示例。如果您正苦于以下问题:PHP NextendText::l方法的具体用法?PHP NextendText::l怎么用?PHP NextendText::l使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在NextendText的用法示例。


在下文中一共展示了NextendText::l方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: loadXMLFile

 function loadXMLFile($file)
 {
     $this->_xml = simplexml_load_file($file);
     $this->_xmlfile = $file;
     $this->_xmlfolder = dirname($file) . '/';
     $this->_root = dirname($file) . DIRECTORY_SEPARATOR;
     $translate = NextendXmlGetAttribute($this->_xml, 'translate');
     if ($translate) {
         NextendText::l('common', nextendSubLibraryPath($translate) . 'languages/');
     }
 }
开发者ID:Gordondalos,项目名称:smart-event,代码行数:11,代码来源:form.php

示例2: nextendimportsmartslider2

<?php

nextendimportsmartslider2('nextend.smartslider.settings');
nextendimportsmartslider2('nextend.smartslider.check');
nextendimport('nextend.mvc.controller');
nextendimport('nextend.environment.request');
nextendimport('nextend.message.message');
nextendimport('nextend.language.language');
NextendText::l('common');
NextendText::l('common', nextendSubLibraryPath('smartslider') . 'languages/');
require_once dirname(__FILE__) . '/jslanguage.php';
class NextendSmartsliderAdminController extends NextendController
{
    var $_name = 'smartslideradmin';
    function NextendSmartsliderAdminController($key)
    {
        global $smartslidercontroller;
        $smartslidercontroller = $this;
        parent::NextendController($key);
        if (!$this->canDo('core.manage')) {
            $this->access = 0;
            $this->message(NextendText::_('Access not allowed to this resource.'));
            return;
        }
        nextendimport('nextend.css.css');
        $css = NextendCss::getInstance();
        $css->addCssLibraryFile('ni.css');
        $this->_baseControllerPath = dirname(__FILE__);
        $this->_routeMap = array('sliders' => array('sliders_slider' => array('default', 'create', 'edit', 'full'), 'sliders_generator' => array('default', 'edit')), 'slides' => array('sliders_slides' => array('default', 'create', 'edit', 'order')), 'layouts' => array('sliders_layouts' => array('default', 'create', 'edit')), 'settings' => array('sliders_settings' => array('default', 'layout', 'font')), 'help' => array('sliders_help' => array('default')));
        $this->init();
        if (nextendIsJoomla()) {
开发者ID:AndyHuntDesign,项目名称:andyhuntdesign,代码行数:31,代码来源:controller.php

示例3: fetchElement

 function fetchElement($name, $value, &$node, $control_name)
 {
     $html = '';
     jimport('nextend.library');
     NextendText::l('common');
     nextendimport('nextend.css.css');
     nextendimport('nextend.javascript.javascript');
     $css = NextendCss::getInstance();
     $js = NextendJavascript::getInstance();
     $css->addCssLibraryFile('common.css');
     $css->addCssLibraryFile('window.css');
     $css->addCssLibraryFile('configurator.css');
     $configurationXmlFile = JPATH_SITE . $node->attributes('xml');
     if (NextendFilesystem::fileexists($configurationXmlFile)) {
         $js->loadLibrary('dojo');
         $js->addLibraryJsLibraryFile('dojo', 'dojo/window.js');
         $js->addLibraryJsAssetsFile('dojo', 'window.js');
         $js->addLibraryJs('dojo', '
             new NextendWindow({
               button: dojo.byId("nextend-configurator-button"),
               node: dojo.byId("nextend-configurator-lightbox"),
               save: dojo.byId("nextend-configurator-save"),
               message: dojo.byId("nextend-configurator-message"),
               onHide: function(){
                 this.message.innerHTML = "' . NextendText::_('Now_you_should_save_the_module_settings_to_apply_changes') . '";
               }
             });
         ');
         $html .= '<div id="nextend-configurator-lightbox" class="gk_hack nextend-window ' . $node->attributes('identifier') . '">';
         $html .= '<div class="gk_hack nextend-window-container">';
         $html .= '<div class="gk_hack nextend-topbar"><div class="gk_hack nextend-topbar-logo"></div>';
         $manual = $node->attributes('manual');
         if ($manual != "") {
             $html .= '<a href="' . $manual . '" target="_blank" class="gk_hack nextend-topbar-button nextend-topbar-manual">' . NextendText::_('Manual') . '</a>';
         }
         $support = $node->attributes('support');
         if ($support != "") {
             $html .= '<a href="' . $support . '" target="_blank" class="gk_hack nextend-topbar-button nextend-topbar-support">' . NextendText::_('Support') . '</a>';
         }
         $html .= '<div id="nextend-configurator-save" class="nextend-window-save"><div class="NextendWindowSave">' . NextendText::_('APPLY') . '</div></div>';
         $html .= '</div>';
         $html .= '<div class="gk_hack nextend-window-container-inner">';
         $html .= '<fieldset id="nextend-configurator-panels" class="gk_hack panelform">';
         $html .= '<div id="menu-pane" class="gk_hack pane-sliders">';
         nextendimport('nextend.form.form');
         $form = new NextendForm();
         $form->loadArray($this->_parent->toArray());
         $form->set('manual', $manual);
         $form->set('support', $support);
         $form->loadXMLFile($configurationXmlFile);
         ob_start();
         $form->render($control_name);
         $html .= ob_get_clean();
         $html .= '</div>';
         $html .= '</fieldset>';
         $html .= '</div>';
         $html .= '</div>';
         $html .= '</div>';
         $html .= '<a id="nextend-configurator-button" class="nextend-configurator-button" href="#">' . NextendText::_('Configure') . '<span></span></a>
                   <span id="nextend-configurator-message">&nbsp;</span>';
         $js->addLibraryJsAssetsFile('dojo', 'form.js');
         $js->addLibraryJs('dojo', '
             new NextendForm({
               container: "nextend-configurator-lightbox",
               data: ' . json_encode($form->_data) . ',
               xml: "' . NextendFilesystem::toLinux(NextendFilesystem::pathToRelativePath($configurationXmlFile)) . '",
               control_name: "' . $control_name . '",
               url: "' . JUri::current() . '",
               loadedJSS: ' . json_encode($js->generateArrayJs()) . ',
               loadedCSS: ' . json_encode($css->generateArrayCSS()) . '
             });
         ', true);
         return $html;
     } else {
         return NextendText::_("Not_found_xml_configuration") . $configurationXmlFile;
     }
     return "asd";
     return '<input type="hidden" name="' . $control_name . '[' . $name . ']" id="' . $control_name . $name . '" value="' . $value . '" ' . $class . ' />';
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:79,代码来源:configurator.php


注:本文中的NextendText::l方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。