first commit

This commit is contained in:
alazhar
2020-01-02 22:20:31 +07:00
commit 10eb3340ad
5753 changed files with 631345 additions and 0 deletions

View File

@ -0,0 +1,118 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_plugins
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.formvalidation');
JHtml::_('formbehavior.chosen', 'select');
$this->fieldsets = $this->form->getFieldsets('params');
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'plugin.cancel' || document.formvalidator.isValid(document.id('style-form')))
{
Joomla.submitform(task, document.getElementById('style-form'));
}
}
</script>
<form action="<?php echo JRoute::_('index.php?option=com_plugins&layout=edit&extension_id='.(int) $this->item->extension_id); ?>" method="post" name="adminForm" id="style-form" class="form-validate form-horizontal">
<fieldset>
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'details')); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'details', JText::_('JDETAILS', true)); ?>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('name'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('name'); ?>
<span class="readonly plg-name"><?php echo JText::_($this->item->name);?></span>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('enabled'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('enabled'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('access'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('access'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('ordering'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('ordering'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('folder'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('folder'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('element'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('element'); ?>
</div>
</div>
<?php if ($this->item->extension_id) : ?>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('extension_id'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('extension_id'); ?>
</div>
</div>
<?php endif; ?>
<!-- Plugin metadata -->
<?php if ($this->item->xml) : ?>
<?php if ($text = trim($this->item->xml->description)) : ?>
<div class="control-group">
<label id="jform_extdescription-lbl" class="control-label">
<?php echo JText::_('JGLOBAL_DESCRIPTION'); ?>
</label>
<div class="controls disabled">
<?php echo JText::_($text); ?>
</div>
</div>
<?php endif; ?>
<?php else : ?>
<div class="alert alert-error">
<?php echo JText::_('COM_PLUGINS_XML_ERR'); ?>
</div>
<?php endif; ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo $this->loadTemplate('options'); ?>
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
</fieldset>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</form>

View File

@ -0,0 +1,38 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_plugins
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
foreach ($this->fieldsets as $name => $fieldset) :
$label = !empty($fieldset->label) ? JText::_($fieldset->label, true) : JText::_('COM_PLUGINS_'.$fieldset->name.'_FIELDSET_LABEL', true);
$optionsname = 'options-' . $fieldset->name;
echo JHtml::_('bootstrap.addTab', 'myTab', $optionsname, $label);
if (isset($fieldset->description) && trim($fieldset->description)) :
echo '<p class="tip">'.$this->escape(JText::_($fieldset->description)).'</p>';
endif;
?>
<?php $hidden_fields = ''; ?>
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
<?php if (!$field->hidden) : ?>
<div class="control-group">
<div class="control-label">
<?php echo $field->label; ?>
</div>
<div class="controls">
<?php echo $field->input; ?>
</div>
</div>
<?php else : $hidden_fields .= $field->input; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php echo $hidden_fields; ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endforeach; ?>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>