當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WFDocument類代碼示例

本文整理匯總了PHP中WFDocument的典型用法代碼示例。如果您正苦於以下問題:PHP WFDocument類的具體用法?PHP WFDocument怎麽用?PHP WFDocument使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了WFDocument類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: display

 /**
  * Display the plugin
  */
 function display()
 {
     parent::display();
     $document = WFDocument::getInstance();
     $settings = $this->getSettings();
     if ($document->get('standalone') == 1) {
         $document->addScript(array('browser'), 'component');
         // load the language file
         if (is_file(WF_EDITOR . DS . 'tiny_mce' . DS . 'langs' . DS . $this->getLanguage() . '_dlg.js')) {
             $document->addScript(array('langs/' . $this->getLanguage() . '_dlg.js'), 'tiny_mce');
         } else {
             $document->addScript(array('langs/en_dlg.js'), 'tiny_mce');
         }
         $options = array('plugin' => array('root' => JURI::root(), 'site' => JURI::base(true) . '/'), 'manager' => $settings);
         // add element
         if (JRequest::getCmd('element')) {
             $options['element'] = JRequest::getCmd('element');
         }
         $document->addScriptDeclaration('jQuery(document).ready(function($){$.WFBrowserWidget.init(' . json_encode($options) . ');});');
         $document->addStyleSheet(array('dialog'), 'libraries');
     } else {
         $document->addScript(array('browser'), 'plugins');
         $document->addScriptDeclaration('BrowserDialog.settings=' . json_encode($settings) . ';');
     }
 }
開發者ID:andreassetiawanhartanto,項目名稱:PDKKI,代碼行數:28,代碼來源:browser.php

示例2: display

 function display()
 {
     // Load css
     $document = WFDocument::getInstance();
     $document->addStyleSheet(array('flexicontentlinks'), 'extensions/links/flexicontentlinks/css');
     // убрать?
 }
開發者ID:jguilloux71,項目名稱:crok-notes,代碼行數:7,代碼來源:flexicontentlinks.php

示例3: display

 public function display()
 {
     parent::display();
     $document = WFDocument::getInstance();
     // get all popups extensions
     $popups = parent::loadExtensions('popups');
     $config = $this->getProperties();
     if ($config) {
         // Create global config
         $document->addScriptDeclaration('WFExtensions.Popups.setConfig(' . json_encode($config) . ');');
     }
     // Create an instance of each popup and check if enabled
     foreach ($popups as $name) {
         $popup = $this->getPopupExtension($name);
         if ($popup->isEnabled()) {
             $this->addPopup($name);
             $params = $popup->getParams();
             if (!empty($params)) {
                 $document->addScriptDeclaration('WFExtensions.Popups.setParams("' . $name . '",' . json_encode($params) . ');');
             }
         }
     }
     $tabs = WFTabs::getInstance();
     // Add popup tab and assign popups reference to document
     if (count($this->getPopups())) {
         $tabs->addTab('popups', 1);
         $tabs->getPanel('popups')->assign('popups', $this);
     }
 }
開發者ID:lyrasoft,項目名稱:lyrasoft.github.io,代碼行數:29,代碼來源:popups.php

示例4: display

 public function display()
 {
     parent::display();
     $document = WFDocument::getInstance();
     $document->addScript(array('link'), 'extensions.search.js');
     $document->addStylesheet(array('link'), 'extensions.search.css');
 }
開發者ID:01J,項目名稱:topm,代碼行數:7,代碼來源:link.php

示例5: display

 public function display()
 {
     parent::display();
     $document = WFDocument::getInstance();
     $document->addScript(array('clipboard'), 'plugins');
     $document->addStyleSheet(array('clipboard'), 'plugins');
 }
開發者ID:acculitx,項目名稱:fleetmatrixsite,代碼行數:7,代碼來源:clipboard.php

示例6: display

    /**
     * Display the plugin
     */
    public function display() {
        parent::display();

        $document = WFDocument::getInstance();

        $document->addScript(array('mediamanager'), 'plugins');
        $document->addStyleSheet(array('mediamanager'), 'plugins');

        $settings = $this->getSettings();

        $document->addScriptDeclaration('MediaManagerDialog.settings=' . json_encode($settings) . ';');

        $tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));

        // Add tabs
        $tabs->addTab('file', 1, array('plugin' => $this));
        $tabs->addTab('media', $this->getParam('tabs_media', 1), array('plugin' => $this));
        $tabs->addTab('advanced', $this->getParam('tabs_advanced', 1));

        // Load Popups instance
        $popups = WFPopupsExtension::getInstance(array(
            // map src value to popup link href
            'map' => array('href' => 'src'),
            'default'   => $this->getParam('mediamanager.popups.default', '')
                ));

        $popups->display();

        // Load Media Player instance
        $mediaplayer = $this->getMediaPlayer();
        $mediaplayer->display();

        // Load video aggregators (Youtube, Vimeo etc)
        $this->loadAggregators();
    }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:38,代碼來源:mediamanager.php

示例7: __construct

 /**
  * Constructor activating the default information of the class
  *
  * @access protected
  */
 function __construct()
 {
     parent::__construct();
     $document =& WFDocument::getInstance();
     // Load Extensions Object
     $document->addScript(array('extensions'));
 }
開發者ID:neoandrew1000,項目名稱:crao_journal,代碼行數:12,代碼來源:extensions.php

示例8: display

 function display()
 {
     parent::display();
     $document = WFDocument::getInstance();
     $document->addScript(array('paste'), 'plugins');
     $document->addStyleSheet(array('paste'), 'plugins');
 }
開發者ID:andreassetiawanhartanto,項目名稱:PDKKI,代碼行數:7,代碼來源:paste.php

示例9: display

 public function display()
 {
     $document = WFDocument::getInstance();
     $view = $this->getView();
     $view->addTemplatePath(WF_EDITOR_PLUGIN . '/tmpl');
     $document->setTitle(WFText::_('WF_' . strtoupper($this->getName() . '_TITLE')));
     $theme = $this->getParam('source.theme', 'textmate');
     //$editor = 'codemirror';
     $document->addScript(array('tiny_mce_popup'), 'tiny_mce');
     $document->addScript(array('editor', 'format'), 'plugins');
     $document->addStyleSheet(array('editor'), 'plugins');
     $document->addScript(array('codemirror-compressed'), 'jce.tiny_mce.plugins.source.js.codemirror');
     $document->addStyleSheet(array('codemirror', 'theme/' . $theme), 'jce.tiny_mce.plugins.source.css.codemirror');
     /*switch ($editor) {
                 case 'ace':
                     $document->addScript(array('ace', 'mode-html'), 'jce.tiny_mce.plugins.source.js.ace');
                     
                     if ($theme != 'textmate') {
                         $document->addScript(array('theme-' . $theme), 'jce.tiny_mce.plugins.source.js.ace');
                     }
                     break;
                 case 'codemirror':
                     $document->addScript(array('codemirror-compressed'), 'jce.tiny_mce.plugins.source.js.codemirror');
                     $document->addStyleSheet(array('codemirror', 'theme/' . $theme), 'jce.tiny_mce.plugins.source.css.codemirror');
     
                     break;
             }*/
 }
開發者ID:jimyb3,項目名稱:mathematicalteachingsite,代碼行數:28,代碼來源:source.php

示例10: display

    /**
     * Display the plugin
     * @access public
     */
    public function display() {
        parent::display();

        $document = WFDocument::getInstance();
        $settings = $this->getSettings();

        if ($document->get('standalone') == 1) {
            $document->addScript(array('browser'), 'component');
            
            $element = JRequest::getCmd('element', '');

            $options = array(
                'plugin' => array(
                    'root' => JURI::root(),
                    'site' => JURI::base(true) . '/'
                ),
                'manager' => $settings,
                'element' => $element
            );

            $document->addScriptDeclaration('jQuery(document).ready(function($){$.WFBrowserWidget.init(' . json_encode($options) . ');});');

            $document->addStyleSheet(array(
                'dialog'
                    ), 'libraries');
        } else {
            $document->addScript(array('browser'), 'plugins');
            $document->addScriptDeclaration('BrowserDialog.settings=' . json_encode($settings) . ';');
        }
    }
開發者ID:networksoft,項目名稱:seekerplus2.com,代碼行數:34,代碼來源:browser.php

示例11: display

 public function display()
 {
     parent::display();
     $document = WFDocument::getInstance();
     $document->addScript(array('link.full'), 'libraries');
     foreach ($this->extensions as $extension) {
         $extension->display();
     }
 }
開發者ID:creativeprogramming,項目名稱:jce,代碼行數:9,代碼來源:link.php

示例12: __construct

 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct($options = array())
 {
     // only if enabled
     if (self::isEnabled()) {
         $document = WFDocument::getInstance();
         $document->addScript('window', 'extensions/popups/window/js');
         $document->addStyleSheet('window', 'extensions/popups/window/css');
     }
 }
開發者ID:omarmm,項目名稱:MangLuoiBDS,代碼行數:14,代碼來源:window.php

示例13: __construct

 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 public function __construct()
 {
     if (self::isEnabled()) {
         $scripts = array();
         $document = WFDocument::getInstance();
         $document->addScript('widgetkit', 'extensions/popups/widgetkit/js');
         $document->addStyleSheet('widgetkit', 'extensions/popups/widgetkit/css');
     }
 }
開發者ID:adjaika,項目名稱:J3Base,代碼行數:14,代碼來源:widgetkit.php

示例14: __construct

 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct($options = array())
 {
     if (self::isEnabled()) {
         $scripts = array();
         $document = WFDocument::getInstance();
         $document->addScript('rokbox', 'extensions/popups/rokbox/js');
         $document->addStyleSheet('rokbox', 'extensions/popups/rokbox/css');
     }
 }
開發者ID:srbsnkr,項目名稱:sellingonlinemadesimple,代碼行數:14,代碼來源:rokbox.php

示例15: display

 public function display()
 {
     parent::display();
     $document = WFDocument::getInstance();
     $document->addScript(array('colorpicker'), 'libraries');
     $document->addScript(array('colorpicker'), 'plugins');
     $document->addStyleSheet(array('colorpicker'), 'plugins');
     $document->addScriptDeclaration('ColorPicker.settings=' . json_encode($this->getSettings()) . ';');
 }
開發者ID:greyhat777,項目名稱:vuslinterliga,代碼行數:9,代碼來源:colorpicker.php


注:本文中的WFDocument類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。