| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/valence/administrator/components/com_rsform/layouts/ |
Upload File : |
<?php
/**
* @package RSForm! Pro
* @copyright (C) 2007-2019 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
$out = '<div class="rsform-table" id="rsform-table3">'."\n";
// Organize fields into titles, images and other.
$titles = array();
$others = array();
$mainframe = Factory::getApplication();
foreach ($fields as $field) {
if ($field->indetails) {
$placeholders = array();
if ($field->componentId < 0 && isset($headers[$field->componentId])) {
$placeholders['caption'] = Text::_('RSFP_'.$headers[$field->componentId]);
$placeholders['value'] = $this->getStaticPlaceholder($headers[$field->componentId]);
} else {
$placeholders['caption'] = '{'.$field->FieldName.':caption}';
$placeholders['value'] = '{'.$field->FieldName.':value}';
if ($showGoogleMap && $field->FieldType == RSFORM_FIELD_GMAPS)
{
$placeholders['value'] = '{' . $field->FieldName . ':map}';
}
}
$mainframe->triggerEvent('onRsformBackendManageDirectoriesAfterCreatedPlaceholders', array($field, & $placeholders));
// Add to titles
if (count($titles) < 3) {
$titles[] = $placeholders['value'];
continue;
}
// Is it an upload field?
if (in_array($field->FieldName, $imagefields)) {
continue;
}
// No more titles, add to other.
$others[] = (object) array(
'caption' => $placeholders['caption'],
'value' => $placeholders['value']
);
}
}
if ($titles)
{
if (isset($titles[0]))
{
if ($hideEmptyValues)
{
$out .= "\t" . '{if ' . $titles[0] . '}' . "\n";
}
$out .= "\t".'<p class="rsform-main-title rsform-title">'.$titles[0].'</p>'."\n";
if ($hideEmptyValues)
{
$out .= "\t" . '{/if}' . "\n";
}
}
if (isset($titles[1]))
{
if ($hideEmptyValues)
{
$out .= "\t" . '{if ' . $titles[1] . '}' . "\n";
}
$out .= "\t".'<p class="rsform-big-subtitle rsform-title">'.$titles[1].'</p>'."\n";
if ($hideEmptyValues)
{
$out .= "\t" . '{/if}' . "\n";
}
}
if (isset($titles[2]))
{
if ($hideEmptyValues)
{
$out .= "\t" . '{if ' . $titles[2] . '}' . "\n";
}
$out .= "\t".'<p class="rsform-small-subtitle rsform-title">'.$titles[2].'</p>'."\n";
if ($hideEmptyValues)
{
$out .= "\t" . '{/if}' . "\n";
}
}
}
if (!empty($imagefields))
{
foreach ($imagefields as $image)
{
if ($hideEmptyValues)
{
$out .= "\t\t" . '{if {' . $image . ':path}}' . "\n";
}
$out .= "\t\t".'{if {'.$image.':value}}<div class="rsform-gallery"><a href="javascript:void(0)" class="rsform-simple-image-modal"><img src="{'.$image.':path}" alt="" /></a></div>{/if}'."\n";
if ($hideEmptyValues)
{
$out .= "\t\t" . '{/if}' . "\n";
}
}
}
if (!empty($others))
{
$out .= "\t".'<div class="rsfp-table">'."\n";
foreach ($others as $other)
{
if ($hideEmptyValues)
{
$out .= "\t\t" . '{if ' . $other->value . '}' . "\n";
}
$out .= "\t\t".'<div class="rsform-table-row">'."\n";
$out .= "\t\t\t".'<div class="rsform-left-col">'.$other->caption.'</div>'."\n";
$out .= "\t\t\t".'<div class="rsform-right-col">'.$other->value.'</div>'."\n";
$out .= "\t\t".'</div>'."\n";
if ($hideEmptyValues)
{
$out .= "\t\t" . '{/if}' . "\n";
}
}
$out .= "\t".'</div>'."\n";
}
$out .= '</div>';
return $out;