form.php
4.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* @copyright Copyright (c) 2009-2017 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('_JEXEC') or die('RESTRICTED');
$language = JFactory::getLanguage();
$direction = $language->isRTL() ? 'right' : 'left';
?>
<div class="ui-jce loading">
<form action="index.php" method="post" name="adminForm" id="adminForm" class="form-horizontal">
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;"><?php echo JText :: _('WF_MESSAGE_LOAD'); ?></div>
</div>
<div id="tabs">
<ul class="nav nav-tabs">
<li class="active wf-tooltip" title="<?php echo JText :: _('WF_PROFILES_SETUP').'::'.JText :: _('WF_PROFILES_SETUP_DESC'); ?>"><a href="#tabs-setup"><?php echo JText :: _('WF_PROFILES_SETUP'); ?></a></li>
<li class="wf-tooltip" title="<?php echo JText :: _('WF_PROFILES_FEATURES').'::'.JText :: _('WF_PROFILES_FEATURES_DESC'); ?>"><a href="#tabs-features"><?php echo JText :: _('WF_PROFILES_FEATURES'); ?></a></li>
<li class="wf-tooltip" title="<?php echo JText :: _('WF_PROFILES_EDITOR_PARAMETERS').'::'.JText :: _('WF_PROFILES_EDITOR_PARAMETERS_DESC'); ?>"><a href="#tabs-editor"><?php echo JText :: _('WF_PROFILES_EDITOR_PARAMETERS'); ?></a></li>
<li class="wf-tooltip" title="<?php echo JText :: _('WF_PROFILES_PLUGIN_PARAMETERS').'::'.JText :: _('WF_PROFILES_PLUGIN_PARAMETERS_DESC'); ?>"><a href="#tabs-plugins"><?php echo JText :: _('WF_PROFILES_PLUGIN_PARAMETERS'); ?></a></li>
</ul>
<div class="tab-content">
<div id="tabs-setup" class="tab-pane active">
<?php echo $this->loadTemplate('setup'); ?>
</div>
<div id="tabs-features" class="tab-pane">
<?php echo $this->loadTemplate('features'); ?>
</div>
<div id="tabs-editor" class="tab-pane tabbable tabs-<?php echo $direction; ?>">
<ul class="nav nav-tabs">
<?php
$x = 0;
foreach ($this->profile->editor_groups as $group) :
echo '<li><a href="#tabs-editor-'.$group.'"><span>'.WFText::_('WF_PROFILES_EDITOR_'.strtoupper($group)).'</span></a></li>';
++$x;
endforeach;
?>
</ul>
<?php echo $this->loadTemplate('editor'); ?>
</div>
<div id="tabs-plugins" class="tab-pane tabbable tabs-<?php echo $direction; ?>">
<ul class="nav nav-tabs">
<?php
// Build tabs
foreach ($this->plugins as $name => $plugin) :
if ($plugin->editable) :
$icon = '';
$class = '';
if ($plugin->icon) :
$icon = $this->model->getIcon($plugin);
endif;
$class = in_array($name, explode(',', $this->profile->plugins)) ? '' : 'tab-disabled';
echo '<li class="defaultSkin '.$class.'" data-name="'.$name.'"><a href="#tabs-plugin-'.$name.'" class="mceToolBarItem">'.$icon.'<span class="tabs-label">'.WFText::_($plugin->title).'</span></a></li>';
endif;
endforeach;
?>
</ul>
<div class="tab-content">
<?php echo $this->loadTemplate('plugin'); ?>
</div>
</div>
</div>
</div>
<input type="hidden" name="users[]" value="" />
<input type="hidden" name="option" value="com_jce" />
<input type="hidden" name="id" value="<?php echo $this->profile->id; ?>" />
<input type="hidden" name="cid[]" value="<?php echo $this->profile->id; ?>" />
<input type="hidden" name="view" value="profiles" />
<input type="hidden" name="task" value="" />
<?php echo JHTML::_('form.token'); ?>
</form>
</div>