File manager - Edit - /home/opticamezl/www/newok/contact.zip
Back
PK ���\�_{ { default_user_custom_fields.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Application\ApplicationHelper; use Joomla\CMS\Language\Text; $params = $this->item->params; $displayGroups = $params->get('show_user_custom_fields'); $userFieldGroups = []; ?> <?php if (!$displayGroups || !$this->contactUser) : ?> <?php return; ?> <?php endif; ?> <?php foreach ($this->contactUser->jcfields as $field) : ?> <?php if ($field->value && (in_array('-1', $displayGroups) || in_array($field->group_id, $displayGroups))) : ?> <?php $userFieldGroups[$field->group_title][] = $field; ?> <?php endif; ?> <?php endforeach; ?> <?php foreach ($userFieldGroups as $groupTitle => $fields) : ?> <?php $id = ApplicationHelper::stringURLSafe($groupTitle); ?> <?php echo '<h3>' . ($groupTitle ?: Text::_('COM_CONTACT_USER_FIELDS')) . '</h3>'; ?> <div class="com-contact__user-fields contact-profile" id="user-custom-fields-<?php echo $id; ?>"> <dl class="dl-horizontal"> <?php foreach ($fields as $field) : ?> <?php if (!$field->value) : ?> <?php continue; ?> <?php endif; ?> <?php if ($field->params->get('showlabel')) : ?> <?php echo '<dt>' . Text::_($field->label) . '</dt>'; ?> <?php endif; ?> <?php echo '<dd>' . $field->value . '</dd>'; ?> <?php endforeach; ?> </dl> </div> <?php endforeach; ?> PK ���\��2=� � default_links.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; ?> <?php echo '<h3>' . Text::_('COM_CONTACT_LINKS') . '</h3>'; ?> <div class="com-contact__links contact-links"> <ul class="list-unstyled"> <?php // Letters 'a' to 'e' foreach (range('a', 'e') as $char) : $link = $this->item->params->get('link' . $char); $label = $this->item->params->get('link' . $char . '_name'); if (!$link) : continue; endif; // Add 'http://' if not present $link = (0 === strpos($link, 'http')) ? $link : 'http://' . $link; // If no label is present, take the link $label = $label ?: $link; ?> <li> <a href="<?php echo $link; ?>" itemprop="url" rel="noopener noreferrer"> <?php echo $label; ?> </a> </li> <?php endforeach; ?> </ul> </div> PK ���\a�m߳ � default_profile.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\String\PunycodeHelper; ?> <?php if (PluginHelper::isEnabled('user', 'profile')) : $fields = $this->item->profile->getFieldset('profile'); ?> <div class="com-contact__profile contact-profile" id="users-profile-custom"> <dl class="dl-horizontal"> <?php foreach ($fields as $profile) : if ($profile->value) : echo '<dt>' . $profile->label . '</dt>'; $profile->text = htmlspecialchars($profile->value, ENT_COMPAT, 'UTF-8'); switch ($profile->id) : case 'profile_website': $v_http = substr($profile->value, 0, 4); if ($v_http === 'http') : echo '<dd><a href="' . $profile->text . '">' . $this->escape(PunycodeHelper::urlToUTF8($profile->text)) . '</a></dd>'; else : echo '<dd><a href="http://' . $profile->text . '">' . $this->escape(PunycodeHelper::urlToUTF8($profile->text)) . '</a></dd>'; endif; break; case 'profile_dob': echo '<dd>' . HTMLHelper::_('date', $profile->text, Text::_('DATE_FORMAT_LC4'), false) . '</dd>'; break; default: echo '<dd>' . $profile->text . '</dd>'; break; endswitch; endif; endforeach; ?> </dl> </div> <?php endif; ?> PK ���\���* * default.xmlnu �[��� <?xml version="1.0" encoding="UTF-8"?> <metadata> <layout title="COM_CONTACT_CONTACT_VIEW_DEFAULT_TITLE" option="COM_CONTACT_CONTACT_VIEW_DEFAULT_OPTION"> <help key = "Menu_Item:_Single_Contact" /> <message> <![CDATA[COM_CONTACT_CONTACT_VIEW_DEFAULT_DESC]]> </message> </layout> <!-- Add fields to the request variables for the layout. --> <fields name="request"> <fieldset name="request" addfieldprefix="Joomla\Component\Contact\Administrator\Field" > <field name="id" type="modal_contact" label="COM_CONTACT_SELECT_CONTACT_LABEL" required="true" select="true" new="true" edit="true" clear="true" /> </fieldset> </fields> <!-- Add fields to the parameters object for the layout. --> <fields name="params"> <!-- Basic options. --> <fieldset name="params" label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL" > <field name="show_contact_category" type="list" label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="hide">JHIDE</option> <option value="show_no_link">COM_CONTACT_FIELD_VALUE_NO_LINK</option> <option value="show_with_link">COM_CONTACT_FIELD_VALUE_WITH_LINK</option> </field> <field name="show_contact_list" type="list" label="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_name" type="list" label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_tags" type="list" label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_info" type="list" label="COM_CONTACT_FIELD_SHOW_INFO_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_position" type="list" label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email" type="list" label="JGLOBAL_EMAIL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="add_mailto_link" type="list" label="COM_CONTACT_FIELD_PARAMS_ADD_MAILTO_LINK_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="show_street_address" type="list" label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_suburb" type="list" label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_state" type="list" label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_postcode" type="list" label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_country" type="list" label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_telephone" type="list" label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_mobile" type="list" label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_fax" type="list" label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_webpage" type="list" label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_image" type="list" label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL" useglobal="true" showon="show_info:1" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="allow_vcard" type="list" label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_misc" type="list" label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_articles" type="list" label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="articles_display_num" type="list" label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL" default="" useglobal="true" validate="options" > <option value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option> <option value="5">J5</option> <option value="10">J10</option> <option value="15">J15</option> <option value="20">J20</option> <option value="25">J25</option> <option value="30">J30</option> <option value="50">J50</option> <option value="75">J75</option> <option value="100">J100</option> <option value="150">J150</option> <option value="200">J200</option> <option value="250">J250</option> <option value="300">J300</option> <option value="0">JALL</option> </field> <field name="show_profile" type="list" label="COM_CONTACT_FIELD_PROFILE_SHOW_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_user_custom_fields" type="fieldgroups" label="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_LABEL" multiple="true" context="com_users.user" addfieldprefix="Joomla\Component\Fields\Administrator\Field" layout="joomla.form.field.list-fancy-select" > <option value="-1">JALL</option> </field> <field name="show_links" type="list" label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="linka_name" type="text" label="COM_CONTACT_FIELD_LINKA_NAME_LABEL" useglobal="true" /> <field name="linkb_name" type="text" label="COM_CONTACT_FIELD_LINKB_NAME_LABEL" useglobal="true" /> <field name="linkc_name" type="text" label="COM_CONTACT_FIELD_LINKC_NAME_LABEL" useglobal="true" /> <field name="linkd_name" type="text" label="COM_CONTACT_FIELD_LINKD_NAME_LABEL" useglobal="true" /> <field name="linke_name" type="text" label="COM_CONTACT_FIELD_LINKE_NAME_LABEL" useglobal="true" /> </fieldset> <!-- Form options. --> <fieldset name="Contact_Form" label="COM_CONTACT_MAIL_FIELDSET_LABEL" > <field name="show_email_form" type="list" label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email_copy" type="list" label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="validate_session" type="list" label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="custom_reply" type="list" label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="redirect" type="text" label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL" useglobal="true" /> </fieldset> </fields> </metadata> PK ���\⾯\� � default.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Helper\ContentHelper; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\FileLayout; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\Router\Route; use Joomla\Component\Contact\Site\Helper\RouteHelper; $tparams = $this->item->params; $canDo = ContentHelper::getActions('com_contact', 'category', $this->item->catid); $canEdit = $canDo->get('core.edit') || ($canDo->get('core.edit.own') && $this->item->created_by === Factory::getUser()->id); $htag = $tparams->get('show_page_heading') ? 'h2' : 'h1'; ?> <div class="com-contact contact" itemscope itemtype="https://schema.org/Person"> <?php if ($tparams->get('show_page_heading')) : ?> <h1> <?php echo $this->escape($tparams->get('page_heading')); ?> </h1> <?php endif; ?> <?php if ($this->item->name && $tparams->get('show_name')) : ?> <div class="page-header"> <<?php echo $htag; ?>> <?php if ($this->item->published == 0) : ?> <span class="badge bg-warning text-light"><?php echo Text::_('JUNPUBLISHED'); ?></span> <?php endif; ?> <span class="contact-name" itemprop="name"><?php echo $this->item->name; ?></span> </<?php echo $htag; ?>> </div> <?php endif; ?> <?php if ($canEdit) : ?> <div class="icons"> <div class="float-end"> <div> <?php echo HTMLHelper::_('contacticon.edit', $this->item, $tparams); ?> </div> </div> </div> <?php endif; ?> <?php $show_contact_category = $tparams->get('show_contact_category'); ?> <?php if ($show_contact_category === 'show_no_link') : ?> <h3> <span class="contact-category"><?php echo $this->item->category_title; ?></span> </h3> <?php elseif ($show_contact_category === 'show_with_link') : ?> <?php $contactLink = RouteHelper::getCategoryRoute($this->item->catid, $this->item->language); ?> <h3> <span class="contact-category"><a href="<?php echo $contactLink; ?>"> <?php echo $this->escape($this->item->category_title); ?></a> </span> </h3> <?php endif; ?> <?php echo $this->item->event->afterDisplayTitle; ?> <?php if ($tparams->get('show_contact_list') && count($this->contacts) > 1) : ?> <form action="#" method="get" name="selectForm" id="selectForm"> <label for="select_contact"><?php echo Text::_('COM_CONTACT_SELECT_CONTACT'); ?></label> <?php echo HTMLHelper::_( 'select.genericlist', $this->contacts, 'select_contact', 'class="form-select" onchange="document.location.href = this.value"', 'link', 'name', $this->item->link ); ?> </form> <?php endif; ?> <?php if ($tparams->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> <div class="com-contact__tags"> <?php $this->item->tagLayout = new FileLayout('joomla.content.tags'); ?> <?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?> </div> <?php endif; ?> <?php echo $this->item->event->beforeDisplayContent; ?> <?php if ($this->params->get('show_info', 1)) : ?> <div class="com-contact__container"> <?php echo '<h3>' . Text::_('COM_CONTACT_DETAILS') . '</h3>'; ?> <?php if ($this->item->image && $tparams->get('show_image')) : ?> <div class="com-contact__thumbnail thumbnail"> <?php echo LayoutHelper::render( 'joomla.html.image', [ 'src' => $this->item->image, 'alt' => $this->item->name, 'itemprop' => 'image', ] ); ?> </div> <?php endif; ?> <?php if ($this->item->con_position && $tparams->get('show_position')) : ?> <dl class="com-contact__position contact-position dl-horizontal"> <dt><?php echo Text::_('COM_CONTACT_POSITION'); ?>:</dt> <dd itemprop="jobTitle"> <?php echo $this->item->con_position; ?> </dd> </dl> <?php endif; ?> <div class="com-contact__info"> <?php echo $this->loadTemplate('address'); ?> <?php if ($tparams->get('allow_vcard')) : ?> <?php echo Text::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS'); ?> <a href="<?php echo Route::_('index.php?option=com_contact&view=contact&catid=' . $this->item->catslug . '&id=' . $this->item->slug . '&format=vcf'); ?>"> <?php echo Text::_('COM_CONTACT_VCARD'); ?></a> <?php endif; ?> </div> </div> <?php endif; ?> <?php if ($tparams->get('show_email_form') && ($this->item->email_to || $this->item->user_id)) : ?> <?php echo '<h3>' . Text::_('COM_CONTACT_EMAIL_FORM') . '</h3>'; ?> <?php echo $this->loadTemplate('form'); ?> <?php endif; ?> <?php if ($tparams->get('show_links')) : ?> <?php echo $this->loadTemplate('links'); ?> <?php endif; ?> <?php if ($tparams->get('show_articles') && $this->item->user_id && $this->item->articles) : ?> <?php echo '<h3>' . Text::_('JGLOBAL_ARTICLES') . '</h3>'; ?> <?php echo $this->loadTemplate('articles'); ?> <?php endif; ?> <?php if ($tparams->get('show_profile') && $this->item->user_id && PluginHelper::isEnabled('user', 'profile')) : ?> <?php echo '<h3>' . Text::_('COM_CONTACT_PROFILE') . '</h3>'; ?> <?php echo $this->loadTemplate('profile'); ?> <?php endif; ?> <?php if ($tparams->get('show_user_custom_fields') && $this->contactUser) : ?> <?php echo $this->loadTemplate('user_custom_fields'); ?> <?php endif; ?> <?php if ($this->item->misc && $tparams->get('show_misc')) : ?> <?php echo '<h3>' . Text::_('COM_CONTACT_OTHER_INFORMATION') . '</h3>'; ?> <div class="com-contact__miscinfo contact-miscinfo"> <dl class="dl-horizontal"> <dt> <?php if (!$this->params->get('marker_misc')) : ?> <span class="icon-info-circle" aria-hidden="true"></span> <span class="visually-hidden"><?php echo Text::_('COM_CONTACT_OTHER_INFORMATION'); ?></span> <?php else : ?> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_misc'); ?> </span> <?php endif; ?> </dt> <dd> <span class="contact-misc"> <?php echo $this->item->misc; ?> </span> </dd> </dl> </div> <?php endif; ?> <?php echo $this->item->event->afterDisplayContent; ?> </div> PK ���\�&��j j default_articles.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Router\Route; use Joomla\Component\Content\Site\Helper\RouteHelper; ?> <?php if ($this->params->get('show_articles')) : ?> <div class="com-contact__articles contact-articles"> <ul class="list-unstyled"> <?php foreach ($this->item->articles as $article) : ?> <li> <?php echo HTMLHelper::_('link', Route::_(RouteHelper::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> PK ���\�� � � default_form.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('keepalive') ->useScript('form.validate'); ?> <div class="com-contact__form contact-form"> <form id="contact-form" action="<?php echo Route::_('index.php'); ?>" method="post" class="form-validate form-horizontal well"> <?php foreach ($this->form->getFieldsets() as $fieldset) : ?> <?php if ($fieldset->name === 'captcha' && $this->captchaEnabled) : ?> <?php continue; ?> <?php endif; ?> <?php $fields = $this->form->getFieldset($fieldset->name); ?> <?php if (count($fields)) : ?> <fieldset class="m-0"> <?php if (isset($fieldset->label) && ($legend = trim(Text::_($fieldset->label))) !== '') : ?> <legend><?php echo $legend; ?></legend> <?php endif; ?> <?php foreach ($fields as $field) : ?> <?php echo $field->renderField(); ?> <?php endforeach; ?> </fieldset> <?php endif; ?> <?php endforeach; ?> <?php if ($this->captchaEnabled) : ?> <?php echo $this->form->renderFieldset('captcha'); ?> <?php endif; ?> <div class="control-group"> <div class="controls"> <button class="btn btn-primary validate" type="submit"><?php echo Text::_('COM_CONTACT_CONTACT_SEND'); ?></button> <input type="hidden" name="option" value="com_contact"> <input type="hidden" name="task" value="contact.submit"> <input type="hidden" name="return" value="<?php echo $this->return_page; ?>"> <input type="hidden" name="id" value="<?php echo $this->item->slug; ?>"> <?php echo HTMLHelper::_('form.token'); ?> </div> </div> </form> </div> PK ���\��ِ� � default_address.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; use Joomla\CMS\String\PunycodeHelper; $icon = $this->params->get('contact_icons') == 0; /** * Marker_class: Class based on the selection of text, none, or icons * jicon-text, jicon-none, jicon-icon */ ?> <dl class="com-contact__address contact-address dl-horizontal" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> <?php if ( ($this->params->get('address_check') > 0) && ($this->item->address || $this->item->suburb || $this->item->state || $this->item->country || $this->item->postcode) ) : ?> <dt> <?php if ($icon && !$this->params->get('marker_address')) : ?> <span class="icon-address" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_ADDRESS'); ?></span> <?php else : ?> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_address'); ?> </span> <?php endif; ?> </dt> <?php if ($this->item->address && $this->params->get('show_street_address')) : ?> <dd> <span class="contact-street" itemprop="streetAddress"> <?php echo nl2br($this->item->address, false); ?> </span> </dd> <?php endif; ?> <?php if ($this->item->suburb && $this->params->get('show_suburb')) : ?> <dd> <span class="contact-suburb" itemprop="addressLocality"> <?php echo $this->item->suburb; ?> </span> </dd> <?php endif; ?> <?php if ($this->item->state && $this->params->get('show_state')) : ?> <dd> <span class="contact-state" itemprop="addressRegion"> <?php echo $this->item->state; ?> </span> </dd> <?php endif; ?> <?php if ($this->item->postcode && $this->params->get('show_postcode')) : ?> <dd> <span class="contact-postcode" itemprop="postalCode"> <?php echo $this->item->postcode; ?> </span> </dd> <?php endif; ?> <?php if ($this->item->country && $this->params->get('show_country')) : ?> <dd> <span class="contact-country" itemprop="addressCountry"> <?php echo $this->item->country; ?> </span> </dd> <?php endif; ?> <?php endif; ?> <?php if ($this->item->email_to && $this->params->get('show_email')) : ?> <dt> <?php if ($icon && !$this->params->get('marker_email')) : ?> <span class="icon-envelope" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_EMAIL_LABEL'); ?></span> <?php else : ?> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_email'); ?> </span> <?php endif; ?> </dt> <dd> <span class="contact-emailto"> <?php echo $this->item->email_to; ?> </span> </dd> <?php endif; ?> <?php if ($this->item->telephone && $this->params->get('show_telephone')) : ?> <dt> <?php if ($icon && !$this->params->get('marker_telephone')) : ?> <span class="icon-phone" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_TELEPHONE'); ?></span> <?php else : ?> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_telephone'); ?> </span> <?php endif; ?> </dt> <dd> <span class="contact-telephone" itemprop="telephone"> <?php echo $this->item->telephone; ?> </span> </dd> <?php endif; ?> <?php if ($this->item->fax && $this->params->get('show_fax')) : ?> <dt> <?php if ($icon && !$this->params->get('marker_fax')) : ?> <span class="icon-fax" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_FAX'); ?></span> <?php else : ?> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_fax'); ?> </span> <?php endif; ?> </dt> <dd> <span class="contact-fax" itemprop="faxNumber"> <?php echo $this->item->fax; ?> </span> </dd> <?php endif; ?> <?php if ($this->item->mobile && $this->params->get('show_mobile')) : ?> <dt> <?php if ($icon && !$this->params->get('marker_mobile')) : ?> <span class="icon-mobile" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_MOBILE'); ?></span> <?php else : ?> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_mobile'); ?> </span> <?php endif; ?> </dt> <dd> <span class="contact-mobile" itemprop="telephone"> <?php echo $this->item->mobile; ?> </span> </dd> <?php endif; ?> <?php if ($this->item->webpage && $this->params->get('show_webpage')) : ?> <dt> <?php if ($icon && !$this->params->get('marker_webpage')) : ?> <span class="icon-home" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_WEBPAGE'); ?></span> <?php else : ?> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_webpage'); ?> </span> <?php endif; ?> </dt> <dd> <span class="contact-webpage"> <a href="<?php echo $this->item->webpage; ?>" target="_blank" rel="noopener noreferrer" itemprop="url"> <?php echo $this->escape(PunycodeHelper::urlToUTF8($this->item->webpage)); ?></a> </span> </dd> <?php endif; ?> </dl> PK �\otsXx x contact.xmlnu �[��� <?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="webservices" method="upgrade"> <name>plg_webservices_contact</name> <author>Joomla! Project</author> <creationDate>2019-09</creationDate> <copyright>(C) 2019 Open Source Matters, Inc.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>4.0.0</version> <description>PLG_WEBSERVICES_CONTACT_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\WebServices\Contact</namespace> <files> <folder plugin="contact">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_webservices_contact.ini</language> <language tag="en-GB">language/en-GB/plg_webservices_contact.sys.ini</language> </languages> </extension> PK �\�}љ � src/Extension/Contact.phpnu �[��� <?php /** * @package Joomla.Plugin * @subpackage Webservices.contact * * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\WebServices\Contact\Extension; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Router\ApiRouter; use Joomla\Router\Route; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Web Services adapter for com_contact. * * @since 4.0.0 */ final class Contact extends CMSPlugin { /** * Load the language file on instantiation. * * @var boolean * @since 4.0.0 */ protected $autoloadLanguage = true; /** * Registers com_contact's API's routes in the application * * @param ApiRouter &$router The API Routing object * * @return void * * @since 4.0.0 */ public function onBeforeApiRoute(&$router) { $route = new Route( ['POST'], 'v1/contacts/form/:id', 'contact.submitForm', ['id' => '(\d+)'], ['component' => 'com_contact'] ); $router->addRoute($route); $router->createCRUDRoutes( 'v1/contacts', 'contact', ['component' => 'com_contact'] ); $router->createCRUDRoutes( 'v1/contacts/categories', 'categories', ['component' => 'com_categories', 'extension' => 'com_contact'] ); $this->createFieldsRoutes($router); $this->createContentHistoryRoutes($router); } /** * Create fields routes * * @param ApiRouter &$router The API Routing object * * @return void * * @since 4.0.0 */ private function createFieldsRoutes(&$router) { $router->createCRUDRoutes( 'v1/fields/contacts/contact', 'fields', ['component' => 'com_fields', 'context' => 'com_contact.contact'] ); $router->createCRUDRoutes( 'v1/fields/contacts/mail', 'fields', ['component' => 'com_fields', 'context' => 'com_contact.mail'] ); $router->createCRUDRoutes( 'v1/fields/contacts/categories', 'fields', ['component' => 'com_fields', 'context' => 'com_contact.categories'] ); $router->createCRUDRoutes( 'v1/fields/groups/contacts/contact', 'groups', ['component' => 'com_fields', 'context' => 'com_contact.contact'] ); $router->createCRUDRoutes( 'v1/fields/groups/contacts/mail', 'groups', ['component' => 'com_fields', 'context' => 'com_contact.mail'] ); $router->createCRUDRoutes( 'v1/fields/groups/contacts/categories', 'groups', ['component' => 'com_fields', 'context' => 'com_contact.categories'] ); } /** * Create contenthistory routes * * @param ApiRouter &$router The API Routing object * * @return void * * @since 4.0.0 */ private function createContentHistoryRoutes(&$router) { $defaults = [ 'component' => 'com_contenthistory', 'type_alias' => 'com_contact.contact', 'type_id' => 2, ]; $getDefaults = array_merge(['public' => false], $defaults); $routes = [ new Route(['GET'], 'v1/contacts/:id/contenthistory', 'history.displayList', ['id' => '(\d+)'], $getDefaults), new Route(['PATCH'], 'v1/contacts/:id/contenthistory/keep', 'history.keep', ['id' => '(\d+)'], $defaults), new Route(['DELETE'], 'v1/contacts/:id/contenthistory', 'history.delete', ['id' => '(\d+)'], $defaults), ]; $router->addRoutes($routes); } } PK �\j��9 9 services/provider.phpnu �[��� <?php /** * @package Joomla.Plugin * @subpackage Webservices.contact * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\WebServices\Contact\Extension\Contact; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since 4.4.0 */ public function register(Container $container): void { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new Contact( $dispatcher, (array) PluginHelper::getPlugin('webservices', 'contact') ); $plugin->setApplication(Factory::getApplication()); return $plugin; } ); } }; PK ���\�_{ { default_user_custom_fields.phpnu �[��� PK ���\��2=� � � default_links.phpnu �[��� PK ���\a�m߳ � � default_profile.phpnu �[��� PK ���\���* * � default.xmlnu �[��� PK ���\⾯\� � >