You've already forked joomla_test
first commit
This commit is contained in:
27
layouts/joomla/edit/associations.php
Normal file
27
layouts/joomla/edit/associations.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// JLayout for standard handling of associations fields in the administrator items edit screens.
|
||||
$fields = $displayData->get('form')->getFieldset('item_associations');
|
||||
?>
|
||||
|
||||
<fieldset>
|
||||
<?php foreach ($fields as $field) : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</fieldset>
|
88
layouts/joomla/edit/details.php
Normal file
88
layouts/joomla/edit/details.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// JLayout for standard handling of the details sidebar in administrator edit screens.
|
||||
$title = $displayData->get('form')->getValue('title');
|
||||
$published = $displayData->get('form')->getField('published');
|
||||
?>
|
||||
<div class="span2">
|
||||
<h4><?php echo JText::_('JDETAILS');?></h4>
|
||||
<hr />
|
||||
<fieldset class="form-vertical">
|
||||
<?php if (empty($title)) : ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $displayData->get('form')->getValue('name'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $displayData->get('form')->getValue('title'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($published) : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $displayData->get('form')->getLabel('published'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $displayData->get('form')->getInput('published'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $displayData->get('form')->getLabel('state'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $displayData->get('form')->getInput('state'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $displayData->get('form')->getLabel('access'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $displayData->get('form')->getInput('access'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $displayData->get('form')->getLabel('featured'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $displayData->get('form')->getInput('featured'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $displayData->get('form')->getLabel('language'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $displayData->get('form')->getInput('language'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $displayData->get('form')->getLabel('tags'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $displayData->get('form')->getInput('tags'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
22
layouts/joomla/edit/item_title.php
Normal file
22
layouts/joomla/edit/item_title.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.CMS
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @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('JPATH_BASE') or die;
|
||||
$title = $displayData->get('form')->getValue('title');
|
||||
$name = $displayData->get('form')->getValue('name');
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($title) : ?>
|
||||
<h4><?php echo $title; ?></h4>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($name) : ?>
|
||||
<h4><?php echo $name; ?></h4>
|
||||
<?php endif;
|
45
layouts/joomla/edit/metadata.php
Normal file
45
layouts/joomla/edit/metadata.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// JLayout for standard handling of metadata fields in the administrator content edit screens.
|
||||
$fieldSets = $displayData->get('form')->getFieldsets('metadata');
|
||||
foreach ($fieldSets as $name => $fieldSet) :
|
||||
$metadatatabs = 'metadata-' . $name;
|
||||
if (isset($fieldSet->description) && trim($fieldSet->description)) :
|
||||
echo '<p class="alert alert-info">'.$this->escape(JText::_($fieldSet->description)).'</p>';
|
||||
endif;
|
||||
?>
|
||||
<?php if ($name == 'jmetadata') : // Include the real fields in this panel.
|
||||
?>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $displayData->get('form')->getLabel('metadesc'); ?></div>
|
||||
<div class="controls"><?php echo $displayData->get('form')->getInput('metadesc'); ?></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $displayData->get('form')->getLabel('metakey'); ?></div>
|
||||
<div class="controls"><?php echo $displayData->get('form')->getInput('metakey'); ?></div>
|
||||
</div>
|
||||
<?php if ($displayData->get('form')->getLabel('xreference')):?>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $displayData->get('form')->getLabel('xreference'); ?></div>
|
||||
<div class="controls"><?php echo $displayData->get('form')->getInput('xreference'); ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($displayData->get('form')->getFieldset($name) as $field) : ?>
|
||||
<?php if ($field->name != 'jform[metadata][tags][]') :?>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $field->label; ?></div>
|
||||
<div class="controls"><?php echo $field->input; ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
Reference in New Issue
Block a user