52 lines
1.9 KiB
PHP
52 lines
1.9 KiB
PHP
<?php
|
|
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
VDM
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
@version 1.0.0
|
|
@build 5th May, 2018
|
|
@created 20th September, 2017
|
|
@package Hello World
|
|
@subpackage metadata.php
|
|
@author Llewellyn <https://www.vdm.io>
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
|
|
/------------------------------------------------------------------------------------------------------*/
|
|
|
|
// No direct access to this file
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
$form = $displayData->getForm();
|
|
|
|
// JLayout for standard handling of metadata fields in the administrator content edit screens.
|
|
$fieldSets = $form->getFieldsets('metadata');
|
|
?>
|
|
|
|
<?php foreach ($fieldSets as $name => $fieldSet) : ?>
|
|
<?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?>
|
|
<p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
// Include the real fields in this panel.
|
|
if ($name == 'vdmmetadata')
|
|
{
|
|
echo $form->renderField('metadesc');
|
|
echo $form->renderField('metakey');
|
|
}
|
|
|
|
foreach ($form->getFieldset($name) as $field)
|
|
{
|
|
if ($field->name != 'jform[metadata][tags][]')
|
|
{
|
|
echo $field->renderField();
|
|
}
|
|
} ?>
|
|
<?php endforeach; ?>
|