本文整理汇总了PHP中WFTabs类的典型用法代码示例。如果您正苦于以下问题:PHP WFTabs类的具体用法?PHP WFTabs怎么用?PHP WFTabs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WFTabs类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: 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
示例2: 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
示例3: display
function display()
{
parent::display();
$document = WFDocument::getInstance();
$document->addScript(array('fullpage'), 'plugins');
$document->addStyleSheet(array('fullpage'), 'plugins');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
$tabs->addTab('meta');
$tabs->addTab('appearance');
}
开发者ID:adjaika,项目名称:J3Base,代码行数:10,代码来源:fullpage.php
示例4: display
/**
* Display the plugin
*/
public function display()
{
parent::display();
$document = WFDocument::getInstance();
$document->addScript(array('pagebreak'), 'plugins');
//$document->addStyleSheet(array('pagebreak'), 'plugins');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('pagebreak');
}
开发者ID:acculitx,项目名称:fleetmatrixsite,代码行数:13,代码来源:article.php
示例5: display
/**
* Display the plugin
*/
function display()
{
parent::display();
$document = WFDocument::getInstance();
$document->addScript(array('filemanager'), 'plugins');
$document->addStyleSheet(array('filemanager'), 'plugins');
$document->addScriptDeclaration('FileManager.settings=' . json_encode($this->getSettings()) . ';');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('file');
$tabs->addTab('advanced');
}
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:15,代码来源:filemanager.php
示例6: display
/**
* Display the plugin
*/
public function display()
{
parent::display();
$document = WFDocument::getInstance();
$document->addScript(array('searchreplace'), 'plugins');
$document->addStyleSheet(array('searchreplace'), 'plugins');
$settings = $this->getSettings();
$document->addScriptDeclaration('SearchReplaceDialog.settings=' . json_encode($settings) . ';');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('find');
$tabs->addTab('replace');
}
开发者ID:DanyCan,项目名称:wisten.github.io,代码行数:16,代码来源:searchreplace.php
示例7: display
/**
* Display the plugin
*/
function display()
{
parent::display();
$document = WFDocument::getInstance();
$document->setTitle(WFText::_('WF_' . strtoupper($this->getElementName()) . '_TITLE'));
$document->addScript(array('xhtmlxtras'), 'plugins');
$document->addStyleSheet(array('xhtmlxtras'), 'plugins');
$document->addScriptDeclaration('XHTMLXtrasDialog.settings=' . json_encode($this->getSettings()) . ';');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
$tabs->addTab('standard');
if ($this->getElementName() == 'attributes') {
$tabs->addTab('events');
}
}
开发者ID:01J,项目名称:bealtine,代码行数:17,代码来源:xhtmlxtras.php
示例8: display
/**
* Display the plugin
* @access public
*/
public function display()
{
parent::display();
$document = WFDocument::getInstance();
// create new tabs instance
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('image');
$tabs->addTab('rollover', $this->getParam('tabs_rollover', 1));
$tabs->addTab('advanced', $this->getParam('tabs_advanced', 1));
$document->addScript(array('imgmanager'), 'plugins');
$document->addStyleSheet(array('imgmanager'), 'plugins');
$document->addScriptDeclaration('ImageManagerDialog.settings=' . json_encode($this->getSettings()) . ';');
}
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:18,代码来源:imgmanager.php
示例9: display
function display()
{
parent::display();
$document = WFDocument::getInstance();
$settings = $this->getSettings();
$document->addScriptDeclaration('CaptionDialog.settings=' . json_encode($settings) . ';');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('text', 1);
$tabs->addTab('container', 1);
// add link stylesheet
$document->addStyleSheet(array('caption'), 'plugins');
// add link scripts last
$document->addScript(array('caption'), 'plugins');
}
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:15,代码来源:caption.php
示例10: display
/**
* Display the plugin
*/
public function display()
{
parent::display();
$document = WFDocument::getInstance();
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('file');
$tabs->addTab('advanced');
// Load Popups instance
$popups = WFPopupsExtension::getInstance(array('text' => false, 'default' => $this->getParam('filemanager.popups.default', '')));
$popups->addTemplate('popup');
$popups->display();
$document->addScript(array('filemanager'), 'plugins');
$document->addStyleSheet(array('filemanager'), 'plugins');
$document->addScriptDeclaration('FileManager.settings=' . json_encode($this->getSettings()) . ';');
}
开发者ID:alvarovladimir,项目名称:messermeister_ab_rackservers,代码行数:19,代码来源:filemanager.php
示例11: display
/**
* Display the plugin
*/
public function display()
{
parent::display();
$document = WFDocument::getInstance();
$document->addScript(array('table'), 'plugins');
$document->addStyleSheet(array('table'), 'plugins');
$settings = $this->getSettings();
$document->addScriptDeclaration('TableDialog.settings=' . json_encode($settings) . ';');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
if ($this->getContext() == 'merge') {
// Add tabs
$tabs->addTab('merge');
} else {
$tabs->addTab('general', 1, array('plugin' => $this));
$tabs->addTab('advanced', 1, array('plugin' => $this));
}
}
开发者ID:madcsaba,项目名称:li-de,代码行数:20,代码来源:table.php
示例12: display
/**
* Display the plugin
*/
public function display()
{
parent::display();
$document = WFDocument::getInstance();
$document->addScript(array('style'), 'plugins');
$document->addStyleSheet(array('style'), 'plugins');
$settings = $this->getSettings();
$document->addScriptDeclaration('StyleDialog.settings=' . json_encode($settings) . ';');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('text');
$tabs->addTab('background');
$tabs->addTab('block');
$tabs->addTab('box');
$tabs->addTab('border');
$tabs->addTab('list');
$tabs->addTab('positioning');
}
开发者ID:01J,项目名称:topm,代码行数:21,代码来源:style.php
示例13: display
function display()
{
parent::display();
$document = WFDocument::getInstance();
$settings = $this->getSettings();
$document->addScriptDeclaration('LinkDialog.settings=' . json_encode($settings) . ';');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('link', 1);
$tabs->addTab('advanced', $this->getParam('tabs_advanced', 1));
$browser = $this->getBrowser();
$browser->display();
// Load Popups instance
$popups = WFPopupsExtension::getInstance(array('text' => false));
$popups->display();
// add link stylesheet
$document->addStyleSheet(array('link'), 'plugins');
// add link scripts last
$document->addScript(array('link'), 'plugins');
}
开发者ID:optimosolution,项目名称:marhk,代码行数:20,代码来源:link.php
示例14: display
public function display()
{
parent::display();
$document = WFDocument::getInstance();
$settings = $this->getSettings();
$document->addScriptDeclaration('LinkDialog.settings=' . json_encode($settings) . ';');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('link', 1, array('plugin' => $this));
$tabs->addTab('advanced', $this->getParam('tabs_advanced', 1));
// get and display links
$links = $this->getLinks();
$links->display();
// get and display search
$search = $this->getSearch('link');
$search->display();
// Load Popups instance
$popups = WFPopupsExtension::getInstance(array('text' => false, 'default' => $this->getParam('link.popups.default', '')));
$popups->display();
// add link stylesheet
$document->addStyleSheet(array('link'), 'plugins');
// add link scripts last
$document->addScript(array('link'), 'plugins');
}
开发者ID:grlf,项目名称:eyedock,代码行数:24,代码来源:link.php
示例15: display
/**
* Display the plugin
*/
public function display()
{
$browser = $this->getBrowser();
$document = WFDocument::getInstance();
if (JRequest::getCmd('dialog', 'plugin') == 'plugin') {
$browser->addAction('view_mode', '', 'switchMode', WFText::_('WF_IMGMANAGER_EXT_CHANGE_MODE'));
if ($this->canEdit()) {
$request = WFRequest::getInstance();
if ($this->getParam('imgmanager_ext.image_editor', 1)) {
$browser->addButton('file', 'image_editor', array('action' => 'editImage', 'title' => WFText::_('WF_BUTTON_EDIT_IMAGE'), 'restrict' => 'jpg,jpeg,png'));
}
if ($this->getParam('imgmanager_ext.thumbnail_editor', 1)) {
$browser->addButton('file', 'thumb_create', array('action' => 'createThumbnail', 'title' => WFText::_('WF_BUTTON_CREATE_THUMBNAIL'), 'trigger' => true));
$browser->addButton('file', 'thumb_delete', array('action' => 'deleteThumbnail', 'title' => WFText::_('WF_BUTTON_DELETE_THUMBNAIL'), 'trigger' => true));
}
}
if ($this->getParam('imgmanager_ext.insert_multiple', 1)) {
$browser->addButton('file', 'insert_multiple', array('action' => 'selectMultiple', 'title' => WFText::_('WF_BUTTON_INSERT_MULTIPLE'), 'multiple' => true, 'single' => false));
}
// get parent display data
parent::display();
// create new tabs instance
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
// Add tabs
$tabs->addTab('image');
$tabs->addTab('rollover', $this->getParam('tabs_rollover', 1));
$tabs->addTab('advanced', $this->getParam('tabs_advanced', 1));
// Load Popups instance
$popups = WFPopupsExtension::getInstance(array('map' => array('href' => 'popup_src'), 'text' => false, 'default' => $this->getParam('imgmanager_ext.popups.default', '')));
$popups->addTemplate('popup');
$popups->display();
$document->addScript(array('canvas', 'imgmanager'), 'plugins');
$document->addStyleSheet(array('imgmanager'), 'plugins');
// load settings
$document->addScriptDeclaration('ImageManagerDialog.settings=' . json_encode($this->getSettings()) . ';');
} else {
if ($this->getParam('imgmanager_ext.image_editor', 1) == 0) {
JError::raiseError(403, WFText::_('RESTRICTED'));
}
// cleanup tmp files
$this->cleanEditorTmp();
$view = $this->getView();
$view->setLayout('editor');
$view->addTemplatePath(WF_EDITOR_PLUGIN . '/tmpl');
$lists = array();
$lists['resize'] = $this->getPresetsList('resize');
$lists['crop'] = $this->getPresetsList('crop');
$view->assign('lists', $lists);
$document->setTitle(WFText::_('WF_IMGMANAGER_EXT_TITLE') . '::' . WFText::_('WF_IMGMANAGER_EXT_EDITOR_TITLE'));
$wf = new WFEditorPlugin();
// bypass parent and use plugin view
$wf->display();
// get UI Theme
$theme = $this->getParam('editor.dialog_theme', 'jce');
$document->addScript(array('canvas', 'editor'), 'plugins');
$document->addStyleSheet(array('editor.css'), 'plugins');
$document->addScriptDeclaration('tinyMCEPopup.onInit.add(EditorDialog.init, EditorDialog);');
}
$document->addScript(array('transform'), 'plugins');
$document->addStyleSheet(array('transform'), 'plugins');
}
开发者ID:knigherrant,项目名称:decopatio,代码行数:64,代码来源:imgmanager.php
示例16: defined
<?php
/**
* @package JCE
* @copyright Copyright © 2009-2011 Ryan Demmer. All rights reserved.
* @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* JCE is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
defined('WF_EDITOR') or die('RESTRICTED');
$tabs = WFTabs::getInstance();
echo $tabs->render();
?>
<div class="mceActionPanel">
<button type="submit" id="next" name="insert">{#searchreplace_dlg.findnext}</button>
<button type="button" class="button" id="replaceBtn" name="replaceBtn">{#searchreplace_dlg.replace}</button>
<button type="button" class="button" id="replaceAllBtn" name="replaceAllBtn">{#searchreplace_dlg.replaceall}</button>
<button type="button" id="cancel" name="cancel" onclick="tinyMCEPopup.close();">{#cancel}</button>
</div>
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:21,代码来源:default.php
示例17: display
/**
* Show the theme dialog
* @access private
*/
private function display()
{
jimport('joomla.filesystem.folder');
$document = WFDocument::getInstance();
// get UI Theme
$uitheme = $this->getParam('editor.dialog_theme', 'jce');
$document->addScript(array('tiny_mce_popup'), 'tiny_mce');
// jquery versions
$jquery = array('jquery/jquery-' . WF_JQUERY . '.min.js', 'jquery/jquery-ui-' . WF_JQUERYUI . '.custom.min.js');
$document->addScript($jquery, 'libraries');
$ui = JFolder::files(WF_EDITOR_LIBRARIES . DS . 'css' . DS . 'jquery' . DS . $uitheme, '\\.css$');
$document->addStyleSheet(array('jquery/' . $uitheme . '/' . basename($ui[0], '.css'), 'plugin'), 'libraries');
$document->addStyleSheet(array('themes/' . $this->get('theme') . '/css/' . $this->get('dialog')), 'tiny_mce');
if ($this->get('dialog') == 'colorpicker') {
$document->addScript(array('colorpicker'), 'libraries');
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'tools.php';
$settings = array('template_colors' => WFToolsHelper::getTemplateColors(), 'custom_colors' => $this->getParam('editor.custom_colors'));
$document->addScriptDeclaration('ColorPicker.settings=' . json_encode($settings));
}
$document->addScript(array('themes/' . $this->get('theme') . '/js/' . $this->get('dialog')), 'tiny_mce');
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_THEMES . DS . $this->get('theme')));
$tabs->addPanel($this->get('dialog'), 1);
}
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:27,代码来源:theme.php
注:本文中的WFTabs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论