uawdijnntqw1x1x1
IP : 216.73.216.231
Hostname : 213-108-241-110.cprapid.com
Kernel : Linux 213-108-241-110.cprapid.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
digilove
/
public_html
/
media
/
..
/
media
/
..
/
41423
/
views.tar
/
/
installed/tmpl/default.php000064400000011722152326013670011644 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @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; // Add specific helper files for html generation JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('bootstrap.tooltip'); $user = JFactory::getUser(); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?> <form action="<?php echo JRoute::_('index.php?option=com_languages&view=installed'); ?>" method="post" id="adminForm" name="adminForm"> <?php if (!empty($this->sidebar)) : ?> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> </div> <div id="j-main-container" class="span10"> <?php else : ?> <div id="j-main-container"> <?php endif; ?> <?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> <?php if ($this->total > 0) : ?> <table class="table table-striped"> <thead> <tr> <th width="1%">   </th> <th width="15%" class="nowrap"> <?php echo JHtml::_('searchtools.sort', 'JGLOBAL_TITLE', 'name', $listDirn, $listOrder); ?> </th> <th width="15%" class="hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_TITLE_NATIVE', 'nativeName', $listDirn, $listOrder); ?> </th> <th class="nowrap"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_LANG_TAG', 'language', $listDirn, $listOrder); ?> </th> <th class="nowrap center"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_DEFAULT', 'published', $listDirn, $listOrder); ?> </th> <th class="nowrap center"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_VERSION', 'version', $listDirn, $listOrder); ?> </th> <th class="hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_DATE', 'creationDate', $listDirn, $listOrder); ?> </th> <th class="hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_AUTHOR', 'author', $listDirn, $listOrder); ?> </th> <th class="hidden-phone hidden-tablet"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_AUTHOR_EMAIL', 'authorEmail', $listDirn, $listOrder); ?> </th> <th class="nowrap hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'JGRID_HEADING_ID', 'extension_id', $listDirn, $listOrder); ?> </th> </tr> </thead> <tfoot> <tr> <td colspan="10"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php $version = new JVersion; $currentShortVersion = preg_replace('#^([0-9\.]+)(|.*)$#', '$1', $version->getShortVersion()); foreach ($this->rows as $i => $row) : $canCreate = $user->authorise('core.create', 'com_languages'); $canEdit = $user->authorise('core.edit', 'com_languages'); $canChange = $user->authorise('core.edit.state', 'com_languages'); ?> <tr class="row<?php echo $i % 2; ?>"> <td> <?php echo JHtml::_('languages.id', $i, $row->language); ?> </td> <td> <label for="cb<?php echo $i; ?>"> <?php echo $this->escape($row->name); ?> </label> </td> <td class="hidden-phone"> <?php echo $this->escape($row->nativeName); ?> </td> <td> <?php echo $this->escape($row->language); ?> </td> <td class="center"> <?php echo JHtml::_('jgrid.isdefault', $row->published, $i, 'installed.', !$row->published && $canChange); ?> </td> <td class="center small"> <?php $minorVersion = $version::MAJOR_VERSION . '.' . $version::MINOR_VERSION; ?> <?php // Display a Note if language pack version is not equal to Joomla version ?> <?php if (strpos($row->version, $minorVersion) !== 0 || strpos($row->version, $currentShortVersion) !== 0) : ?> <span class="label label-warning hasTooltip" title="<?php echo JText::_('JGLOBAL_LANGUAGE_VERSION_NOT_PLATFORM'); ?>"><?php echo $row->version; ?></span> <?php else : ?> <span class="label label-success"><?php echo $row->version; ?></span> <?php endif; ?> </td> <td class="hidden-phone"> <?php echo $this->escape($row->creationDate); ?> </td> <td class="hidden-phone"> <?php echo $this->escape($row->author); ?> </td> <td class="hidden-phone hidden-tablet"> <?php echo JStringPunycode::emailToUTF8($this->escape($row->authorEmail)); ?> </td> <td class="hidden-phone"> <?php echo $this->escape($row->extension_id); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <?php echo JHtml::_('form.token'); ?> </div> </form> installed/tmpl/default.xml000064400000000330152326013670011646 0ustar00<?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_LANGUAGES_INSTALLED_VIEW_DEFAULT_TITLE"> <message> <![CDATA[COM_LANGUAGES_INSTALLED_VIEW_DEFAULT_DESC]]> </message> </layout> </metadata> installed/tmpl/index.html000064400000000037152326013670011501 0ustar00<!DOCTYPE html><title></title> installed/index.html000064400000000037152326013670010525 0ustar00<!DOCTYPE html><title></title> installed/view.html.php000064400000005700152326013670011160 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @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; /** * Displays a list of the installed languages. * * @since 1.6 */ class LanguagesViewInstalled extends JViewLegacy { /** * @var object client object. * @deprecated 4.0 */ protected $client = null; /** * @var boolean|JException True, if FTP settings should be shown, or an exception. */ protected $ftp = null; /** * @var string option name. */ protected $option = null; /** * @var object pagination information. */ protected $pagination = null; /** * @var array languages information. */ protected $rows = null; /** * @var object user object */ protected $user = null; /** * Display the view. * * @param string $tpl The name of the template file to parse. * * @return void */ public function display($tpl = null) { $this->ftp = $this->get('Ftp'); $this->option = $this->get('Option'); $this->pagination = $this->get('Pagination'); $this->rows = $this->get('Data'); $this->total = $this->get('Total'); $this->state = $this->get('State'); $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); LanguagesHelper::addSubmenu('installed'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors), 500); } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_languages'); if ((int) $this->state->get('client_id') === 1) { JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_ADMIN_TITLE'), 'comments-2 langmanager'); } else { JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_SITE_TITLE'), 'comments-2 langmanager'); } if ($canDo->get('core.edit.state')) { JToolbarHelper::makeDefault('installed.setDefault'); JToolbarHelper::divider(); } if ($canDo->get('core.admin')) { // Add install languages link to the lang installer component. $bar = JToolbar::getInstance('toolbar'); // Switch administrator language if ($this->state->get('client_id', 0) == 1) { JToolbarHelper::custom('installed.switchadminlanguage', 'refresh', 'refresh', 'COM_LANGUAGES_SWITCH_ADMIN', false); JToolbarHelper::divider(); } $bar->appendButton('Link', 'upload', 'COM_LANGUAGES_INSTALL', 'index.php?option=com_installer&view=languages'); JToolbarHelper::divider(); JToolbarHelper::preferences('com_languages'); JToolbarHelper::divider(); } JToolbarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_INSTALLED'); $this->sidebar = JHtmlSidebar::render(); } } language/tmpl/edit.php000064400000006047152326013670010755 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @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; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); JHtml::_('behavior.formvalidator'); JHtml::_('formbehavior.chosen', 'select'); JFactory::getDocument()->addScriptDeclaration( ' Joomla.submitbutton = function(task) { if (task == "language.cancel" || document.formvalidator.isValid(document.getElementById("language-form"))) { Joomla.submitform(task, document.getElementById("language-form")); } }; jQuery(document).ready(function() { jQuery("#jform_image").on("change", function() { var flag = this.value; if (flag) { jQuery("#flag img").attr("src", "' . JUri::root(true) . '" + "/media/mod_languages/images/" + flag + ".gif").attr("alt", flag); } else { jQuery("#flag img").removeAttr("src").removeAttr("alt"); } }); });' ); ?> <form action="<?php echo JRoute::_('index.php?option=com_languages&view=language&layout=edit&lang_id=' . (int) $this->item->lang_id); ?>" method="post" name="adminForm" id="language-form" class="form-validate form-horizontal"> <?php echo JLayoutHelper::render('joomla.edit.item_title', $this); ?> <fieldset> <?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'details')); ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'details', JText::_('JDETAILS')); ?> <?php echo $this->form->renderField('title'); ?> <?php echo $this->form->renderField('title_native'); ?> <?php echo $this->form->renderField('lang_code'); ?> <?php echo $this->form->renderField('sef'); ?> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('image'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('image'); ?> <span id="flag"> <?php echo JHtml::_('image', 'mod_languages/' . $this->form->getValue('image') . '.gif', $this->form->getValue('image'), null, true); ?> </span> </div> </div> <?php if ($this->canDo->get('core.edit.state')) : ?> <?php echo $this->form->renderField('published'); ?> <?php endif; ?> <?php echo $this->form->renderField('access'); ?> <?php echo $this->form->renderField('description'); ?> <?php echo $this->form->renderField('lang_id'); ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'metadata', JText::_('JGLOBAL_FIELDSET_METADATA_OPTIONS')); ?> <?php echo $this->form->renderFieldset('metadata'); ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'site_name', JText::_('COM_LANGUAGES_FIELDSET_SITE_NAME_LABEL')); ?> <?php echo $this->form->renderFieldset('site_name'); ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php echo JHtml::_('bootstrap.endTabSet'); ?> </fieldset> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </form> language/tmpl/index.html000064400000000037152326013670011305 0ustar00<!DOCTYPE html><title></title> language/index.html000064400000000037152326013670010331 0ustar00<!DOCTYPE html><title></title> language/view.html.php000064400000004064152326013670010766 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @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; /** * HTML View class for the Languages component. * * @since 1.5 */ class LanguagesViewLanguage extends JViewLegacy { public $item; public $form; public $state; /** * Display the view. * * @param string $tpl The name of the template file to parse. * * @return void */ public function display($tpl = null) { $this->item = $this->get('Item'); $this->form = $this->get('Form'); $this->state = $this->get('State'); $this->canDo = JHelperContent::getActions('com_languages'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors), 500); } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { JLoader::register('LanguagesHelper', JPATH_ADMINISTRATOR . '/components/com_languages/helpers/languages.php'); JFactory::getApplication()->input->set('hidemainmenu', 1); $isNew = empty($this->item->lang_id); $canDo = $this->canDo; JToolbarHelper::title( JText::_($isNew ? 'COM_LANGUAGES_VIEW_LANGUAGE_EDIT_NEW_TITLE' : 'COM_LANGUAGES_VIEW_LANGUAGE_EDIT_EDIT_TITLE'), 'comments-2 langmanager' ); if (($isNew && $canDo->get('core.create')) || (!$isNew && $canDo->get('core.edit'))) { JToolbarHelper::apply('language.apply'); JToolbarHelper::save('language.save'); } // If an existing item, can save to a copy only if we have create rights. if ($canDo->get('core.create')) { JToolbarHelper::save2new('language.save2new'); } if ($isNew) { JToolbarHelper::cancel('language.cancel'); } else { JToolbarHelper::cancel('language.cancel', 'JTOOLBAR_CLOSE'); } JToolbarHelper::divider(); JToolbarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_EDIT'); } } languages/tmpl/default.php000064400000015010152326013670011625 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright (C) 2008 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); JHtml::_('behavior.multiselect'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('bootstrap.tooltip'); $user = JFactory::getUser(); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $saveOrder = $listOrder == 'a.ordering'; if ($saveOrder) { $saveOrderingUrl = 'index.php?option=com_languages&task=languages.saveOrderAjax&tmpl=component'; JHtml::_('sortablelist.sortable', 'contentList', 'adminForm', strtolower($listDirn), $saveOrderingUrl); } ?> <form action="<?php echo JRoute::_('index.php?option=com_languages&view=languages'); ?>" method="post" name="adminForm" id="adminForm"> <?php if (!empty( $this->sidebar)) : ?> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> </div> <div id="j-main-container" class="span10"> <?php else : ?> <div id="j-main-container"> <?php endif; ?> <?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> <div class="clearfix"></div> <?php if (empty($this->items)) : ?> <div class="alert alert-no-items"> <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> </div> <?php else : ?> <table class="table table-striped" id="contentList"> <thead> <tr> <th width="1%" class="nowrap center hidden-phone"> <?php echo JHtml::_('searchtools.sort', '', 'a.ordering', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?> </th> <th width="1%" class="nowrap center"> <?php echo JHtml::_('grid.checkall'); ?> </th> <th width="1%" class="nowrap center"> <?php echo JHtml::_('searchtools.sort', 'JSTATUS', 'a.published', $listDirn, $listOrder); ?> </th> <th class="title nowrap"> <?php echo JHtml::_('searchtools.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?> </th> <th class="title nowrap hidden-phone hidden-tablet"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_TITLE_NATIVE', 'a.title_native', $listDirn, $listOrder); ?> </th> <th width="1%" class="nowrap"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_LANG_TAG', 'a.lang_code', $listDirn, $listOrder); ?> </th> <th width="1%" class="nowrap"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_LANG_CODE', 'a.sef', $listDirn, $listOrder); ?> </th> <th width="8%" class="nowrap hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_LANG_IMAGE', 'a.image', $listDirn, $listOrder); ?> </th> <th width="5%" class="nowrap hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'JGRID_HEADING_ACCESS', 'a.access', $listDirn, $listOrder); ?> </th> <th width="5%" class="nowrap hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_HEADING_HOMEPAGE', 'l.home', $listDirn, $listOrder); ?> </th> <th width="1%" class="nowrap hidden-phone hidden-tablet"> <?php echo JHtml::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.lang_id', $listDirn, $listOrder); ?> </th> </tr> </thead> <tfoot> <tr> <td colspan="11"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php foreach ($this->items as $i => $item) : $canCreate = $user->authorise('core.create', 'com_languages'); $canEdit = $user->authorise('core.edit', 'com_languages'); $canChange = $user->authorise('core.edit.state', 'com_languages'); ?> <tr class="row<?php echo $i % 2; ?>"> <td class="order nowrap center hidden-phone"> <?php if ($canChange) : $disableClassName = ''; $disabledLabel = ''; if (!$saveOrder) : $disabledLabel = JText::_('JORDERINGDISABLED'); $disableClassName = 'inactive tip-top'; endif; ?> <span class="sortable-handler hasTooltip <?php echo $disableClassName; ?>" title="<?php echo $disabledLabel; ?>"> <span class="icon-menu" aria-hidden="true"></span> </span> <input type="text" style="display:none" name="order[]" size="5" value="<?php echo $item->ordering; ?>" class="width-20 text-area-order" /> <?php else : ?> <span class="sortable-handler inactive"> <span class="icon-menu" aria-hidden="true"></span> </span> <?php endif; ?> </td> <td> <?php echo JHtml::_('grid.id', $i, $item->lang_id); ?> </td> <td class="center"> <?php echo JHtml::_('jgrid.published', $item->published, $i, 'languages.', $canChange); ?> </td> <td> <span class="editlinktip hasTooltip" title="<?php echo JHtml::_('tooltipText', JText::_('JGLOBAL_EDIT_ITEM'), $item->title, 0); ?>"> <?php if ($canEdit) : ?> <a href="<?php echo JRoute::_('index.php?option=com_languages&task=language.edit&lang_id=' . (int) $item->lang_id); ?>"><?php echo $this->escape($item->title); ?></a> <?php else : ?> <?php echo $this->escape($item->title); ?> <?php endif; ?> </span> </td> <td class="hidden-phone hidden-tablet"> <?php echo $this->escape($item->title_native); ?> </td> <td> <?php echo $this->escape($item->lang_code); ?> </td> <td> <?php echo $this->escape($item->sef); ?> </td> <td class="hidden-phone"> <?php if ($item->image) : ?> <?php echo JHtml::_('image', 'mod_languages/' . $item->image . '.gif', $item->image, null, true); ?> <?php echo $this->escape($item->image); ?> <?php else : ?> <?php echo JText::_('JNONE'); ?> <?php endif; ?> </td> <td class="hidden-phone"> <?php echo $this->escape($item->access_level); ?> </td> <td class="hidden-phone"> <?php echo ($item->home == '1') ? JText::_('JYES') : JText::_('JNO'); ?> </td> <td class="hidden-phone hidden-tablet"> <?php echo $this->escape($item->lang_id); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <?php echo JHtml::_('form.token'); ?> </div> </form> languages/tmpl/default.xml000064400000000330152326013670011635 0ustar00<?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_LANGUAGES_LANGUAGES_VIEW_DEFAULT_TITLE"> <message> <![CDATA[COM_LANGUAGES_LANGUAGES_VIEW_DEFAULT_DESC]]> </message> </layout> </metadata> languages/tmpl/index.html000064400000000037152326013670011470 0ustar00<!DOCTYPE html><title></title> languages/index.html000064400000000037152326013670010514 0ustar00<!DOCTYPE html><title></title> languages/view.html.php000064400000006731152326013670011154 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright (C) 2008 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * HTML Languages View class for the Languages component. * * @since 1.6 */ class LanguagesViewLanguages extends JViewLegacy { protected $items; protected $pagination; protected $state; /** * Display the view. * * @param string $tpl The name of the template file to parse. * * @return void */ public function display($tpl = null) { $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); LanguagesHelper::addSubmenu('languages'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors), 500); } $this->addToolbar(); $this->sidebar = JHtmlSidebar::render(); return parent::display($tpl); } /** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_languages'); JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_LANGUAGES_TITLE'), 'comments-2 langmanager'); if ($canDo->get('core.create')) { JToolbarHelper::addNew('language.add'); } if ($canDo->get('core.edit')) { JToolbarHelper::editList('language.edit'); JToolbarHelper::divider(); } if ($canDo->get('core.edit.state')) { if ($this->state->get('filter.published') != 2) { JToolbarHelper::publishList('languages.publish'); JToolbarHelper::unpublishList('languages.unpublish'); } } if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) { JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'languages.delete', 'JTOOLBAR_EMPTY_TRASH'); JToolbarHelper::divider(); } elseif ($canDo->get('core.edit.state')) { JToolbarHelper::trash('languages.trash'); JToolbarHelper::divider(); } if ($canDo->get('core.admin')) { // Add install languages link to the lang installer component. $bar = JToolbar::getInstance('toolbar'); $bar->appendButton('Link', 'upload', 'COM_LANGUAGES_INSTALL', 'index.php?option=com_installer&view=languages'); JToolbarHelper::divider(); JToolbarHelper::preferences('com_languages'); JToolbarHelper::divider(); } JToolbarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_CONTENT'); JHtmlSidebar::setAction('index.php?option=com_languages&view=languages'); } /** * Returns an array of fields the table can be sorted by. * * @return array Array containing the field name to sort by as the key and display text as value. * * @since 3.0 */ protected function getSortFields() { return array( 'a.ordering' => JText::_('JGRID_HEADING_ORDERING'), 'a.published' => JText::_('JSTATUS'), 'a.title' => JText::_('JGLOBAL_TITLE'), 'a.title_native' => JText::_('COM_LANGUAGES_HEADING_TITLE_NATIVE'), 'a.lang_code' => JText::_('COM_LANGUAGES_FIELD_LANG_TAG_LABEL'), 'a.sef' => JText::_('COM_LANGUAGES_FIELD_LANG_CODE_LABEL'), 'a.image' => JText::_('COM_LANGUAGES_HEADING_LANG_IMAGE'), 'a.access' => JText::_('JGRID_HEADING_ACCESS'), 'a.lang_id' => JText::_('JGRID_HEADING_ID'), ); } } multilangstatus/tmpl/default.php000064400000023560152326013670013130 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $notice_homes = $this->homes == 2 || $this->homes == 1 || $this->homes - 1 != count($this->contentlangs) && ($this->language_filter || $this->switchers != 0); $notice_disabled = !$this->language_filter && ($this->homes > 1 || $this->switchers != 0); $notice_switchers = !$this->switchers && ($this->homes > 1 || $this->language_filter); ?> <div class="mod-multilangstatus"> <?php if (!$this->language_filter && $this->switchers == 0) : ?> <?php if ($this->homes == 1) : ?> <div class="alert alert-info"><?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_NONE'); ?></div> <?php else : ?> <div class="alert alert-info"><?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_USELESS_HOMES'); ?></div> <?php endif; ?> <?php else : ?> <table class="table table-striped table-condensed"> <tbody> <?php if ($this->defaultHome == true) : ?> <tr class="warning"> <td> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_DEFAULT_HOME_MODULE_PUBLISHED'); ?> </td> </tr> <?php endif; ?> <?php if ($notice_homes) : ?> <tr class="warning"> <td> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_MISSING'); ?> </td> </tr> <?php endif; ?> <?php if ($notice_disabled) : ?> <tr class="warning"> <td> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_LANGUAGEFILTER_DISABLED'); ?> </td> </tr> <?php endif; ?> <?php if ($notice_switchers) : ?> <tr class="warning"> <td> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_LANGSWITCHER_UNPUBLISHED'); ?> </td> </tr> <?php endif; ?> <?php foreach ($this->contentlangs as $contentlang) : ?> <?php if (array_key_exists($contentlang->lang_code, $this->homepages) && (!array_key_exists($contentlang->lang_code, $this->site_langs) || !$contentlang->published)) : ?> <tr class="warning"> <td> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td> <?php echo JText::sprintf('COM_LANGUAGES_MULTILANGSTATUS_ERROR_CONTENT_LANGUAGE', $contentlang->lang_code); ?> </td> </tr> <?php endif; ?> <?php if (!array_key_exists($contentlang->lang_code, $this->site_langs)) : ?> <tr class="warning"> <td> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td> <?php echo JText::sprintf('COM_LANGUAGES_MULTILANGSTATUS_ERROR_LANGUAGE_TAG', $contentlang->lang_code); ?> </td> </tr> <?php endif; ?> <?php if ($contentlang->published == -2) : ?> <tr class="warning"> <td> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td> <?php echo JText::sprintf('COM_LANGUAGES_MULTILANGSTATUS_ERROR_CONTENT_LANGUAGE_TRASHED', $contentlang->lang_code); ?> </td> </tr> <?php endif; ?> <?php endforeach; ?> <?php if ($this->listUsersError) : ?> <tr class="warning"> <td> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_CONTACTS_ERROR_TIP'); ?> <ul> <?php foreach ($this->listUsersError as $user) : ?> <li> <?php echo JText::sprintf('COM_LANGUAGES_MULTILANGSTATUS_CONTACTS_ERROR', $user->name); ?> </li> <?php endforeach; ?> </ul> </td> </tr> <?php endif; ?> </tbody> </table> <table class="table table-striped table-condensed" style="border-top: 1px solid #CCCCCC;"> <thead> <tr> <th> <?php echo JText::_('JDETAILS'); ?> </th> <th class="center"> <?php echo JText::_('JSTATUS'); ?> </th> </tr> </thead> <tbody> <tr> <th scope="row"> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_LANGUAGEFILTER'); ?> </th> <td class="center"> <?php if ($this->language_filter) : ?> <?php echo JText::_('JENABLED'); ?> <?php else : ?> <?php echo JText::_('JDISABLED'); ?> <?php endif; ?> </td> </tr> <tr> <th scope="row"> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_LANGSWITCHER_PUBLISHED'); ?> </th> <td class="center"> <?php if ($this->switchers != 0) : ?> <?php echo $this->switchers; ?> <?php else : ?> <?php echo JText::_('JNONE'); ?> <?php endif; ?> </td> </tr> <tr> <th scope="row"> <?php if ($this->homes > 1) : ?> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_PUBLISHED_INCLUDING_ALL'); ?> <?php else : ?> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_PUBLISHED'); ?> <?php endif; ?> </th> <td class="center"> <?php if ($this->homes > 1) : ?> <?php echo $this->homes; ?> <?php else : ?> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_PUBLISHED_ALL'); ?> <?php endif; ?> </td> </tr> </tbody> </table> <table class="table table-striped table-condensed" style="border-top: 1px solid #CCCCCC;"> <thead> <tr> <th> <?php echo JText::_('JGRID_HEADING_LANGUAGE'); ?> </th> <th class="center"> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_SITE_LANG_PUBLISHED'); ?> </th> <th class="center"> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_CONTENT_LANGUAGE_PUBLISHED'); ?> </th> <th class="center"> <?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_PUBLISHED'); ?> </th> </tr> </thead> <tbody> <?php foreach ($this->statuses as $status) : ?> <?php if ($status->element) : ?> <tr> <td> <?php echo $status->element; ?> </td> <?php endif; ?> <?php // Published Site languages ?> <?php if ($status->element) : ?> <td class="center"> <span class="icon-ok" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('JYES'); ?></span> </td> <?php else : ?> <td class="center"> <?php echo JText::_('JNO'); ?> </td> <?php endif; ?> <?php // Published Content languages ?> <?php if ($status->lang_code && $status->published == 1) : ?> <td class="center"> <span class="icon-ok" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('JYES'); ?></span> </td> <?php elseif ($status->lang_code && $status->published == 0) : ?> <td class="center"> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <?php elseif ($status->lang_code && $status->published == -2) : ?> <td class="center"> <span class="icon-trash" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <?php else : ?> <td class="center"> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <?php endif; ?> <?php // Published Home pages ?> <?php if ($status->home_language) : ?> <td class="center"> <span class="icon-ok" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('JYES'); ?></span> </td> <?php else : ?> <td class="center"> <span class="icon-not-ok" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('JNO'); ?></span> </td> <?php endif; ?> </tr> <?php endforeach; ?> <?php foreach ($this->contentlangs as $contentlang) : ?> <?php if (!array_key_exists($contentlang->lang_code, $this->site_langs)) : ?> <tr> <td> <?php echo $contentlang->lang_code; ?> </td> <td class="center"> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> </td> <td class="center"> <?php if ($contentlang->published) : ?> <span class="icon-ok" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('JYES'); ?></span> <?php elseif (!$contentlang->published && array_key_exists($contentlang->lang_code, $this->homepages)) : ?> <span class="icon-not-ok" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('JNO'); ?></span> <?php elseif (!$contentlang->published) : ?> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> <?php endif; ?> </td> <td class="center"> <?php if (!array_key_exists($contentlang->lang_code, $this->homepages)) : ?> <span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span> <?php else : ?> <span class="icon-ok" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('JYES'); ?></span> <?php endif; ?> </td> </tr> <?php endif; ?> <?php endforeach; ?> </tbody> </table> <?php endif; ?> </div> multilangstatus/tmpl/index.html000064400000000037152326013670012762 0ustar00<!DOCTYPE html><title></title> multilangstatus/index.html000064400000000037152326013670012006 0ustar00<!DOCTYPE html><title></title> multilangstatus/view.html.php000064400000002435152326013670012443 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Displays the multilang status. * * @since 1.7.1 */ class LanguagesViewMultilangstatus extends JViewLegacy { /** * Display the view. * * @param string $tpl The name of the template file to parse. * * @return void */ public function display($tpl = null) { JLoader::register('MultilangstatusHelper', JPATH_ADMINISTRATOR . '/components/com_languages/helpers/multilangstatus.php'); $this->homes = MultilangstatusHelper::getHomes(); $this->language_filter = JLanguageMultilang::isEnabled(); $this->switchers = MultilangstatusHelper::getLangswitchers(); $this->listUsersError = MultilangstatusHelper::getContacts(); $this->contentlangs = MultilangstatusHelper::getContentlangs(); $this->site_langs = JLanguageHelper::getInstalledLanguages(0); $this->statuses = MultilangstatusHelper::getStatus(); $this->homepages = JLanguageMultilang::getSiteHomePages(); $this->defaultHome = MultilangstatusHelper::getDefaultHomeModule(); parent::display($tpl); } } override/tmpl/edit.php000064400000011427152326013670011007 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); JHtml::_('behavior.formvalidator'); JHtml::_('behavior.keepalive'); JHtml::_('formbehavior.chosen', 'select'); $expired = ($this->state->get('cache_expired') == 1 ) ? '1' : ''; JHtml::_('stylesheet', 'overrider/overrider.css', array('version' => 'auto', 'relative' => true)); JHtml::_('behavior.core'); JHtml::_('jquery.framework'); JHtml::_('script', 'overrider/overrider.min.js', array('version' => 'auto', 'relative' => true)); JFactory::getDocument()->addScriptDeclaration(' jQuery(document).ready(function($) { $("#jform_searchstring").on("focus", function() { if (!Joomla.overrider.states.refreshed) { var expired = "' . $expired . '"; if (expired) { Joomla.overrider.refreshCache(); Joomla.overrider.states.refreshed = true; } } $(this).removeClass("invalid"); }); }); Joomla.submitbutton = function(task) { if (task == "override.cancel" || document.formvalidator.isValid(document.getElementById("override-form"))) { Joomla.submitform(task, document.getElementById("override-form")); } }; '); ?> <form action="<?php echo JRoute::_('index.php?option=com_languages&id=' . $this->item->key); ?>" method="post" name="adminForm" id="override-form" class="form-validate form-horizontal"> <div class="row-fluid"> <div class="span6"> <fieldset> <legend><?php echo empty($this->item->key) ? JText::_('COM_LANGUAGES_VIEW_OVERRIDE_EDIT_NEW_OVERRIDE_LEGEND') : JText::_('COM_LANGUAGES_VIEW_OVERRIDE_EDIT_EDIT_OVERRIDE_LEGEND'); ?></legend> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('language'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('language'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('client'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('client'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('key'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('key'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('override'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('override'); ?> </div> </div> <?php if ($this->state->get('filter.client') == 'administrator') : ?> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('both'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('both'); ?> </div> </div> <?php endif; ?> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('file'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('file'); ?> </div> </div> </fieldset> </div> <div class="span6"> <fieldset> <legend><?php echo JText::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_LEGEND'); ?></legend> <div class="alert alert-info"><p><?php echo JText::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_TIP'); ?></p></div> <div class="control-group"> <?php echo $this->form->getInput('searchstring'); ?> <button type="submit" class="btn btn-primary" onclick="Joomla.overrider.searchStrings();return false;" formnovalidate> <?php echo JText::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_BUTTON'); ?> </button> <span id="refresh-status" class="overrider-spinner help-block"> <?php echo JText::_('COM_LANGUAGES_VIEW_OVERRIDE_REFRESHING'); ?> </span> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('searchtype'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('searchtype'); ?> </div> </div> </fieldset> <fieldset id="results-container" class="adminform"> <legend><?php echo JText::_('COM_LANGUAGES_VIEW_OVERRIDE_RESULTS_LEGEND'); ?></legend> <span id="more-results"> <a href="javascript:Joomla.overrider.searchStrings(Joomla.overrider.states.more);"> <?php echo JText::_('COM_LANGUAGES_VIEW_OVERRIDE_MORE_RESULTS'); ?></a> </span> </fieldset> <input type="hidden" name="task" value="" /> <input type="hidden" name="id" value="<?php echo $this->item->key; ?>" /> <?php echo JHtml::_('form.token'); ?> </div> </div> </form> override/tmpl/index.html000064400000000037152326013670011341 0ustar00<!DOCTYPE html><title></title> override/index.html000064400000000037152326013670010365 0ustar00<!DOCTYPE html><title></title> override/view.html.php000064400000005541152326013670011023 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * View to edit a language override * * @since 2.5 */ class LanguagesViewOverride extends JViewLegacy { /** * The form to use for the view. * * @var object * @since 2.5 */ protected $form; /** * The item to edit. * * @var object * @since 2.5 */ protected $item; /** * The model state. * * @var object * @since 2.5 */ protected $state; /** * Displays the view. * * @param string $tpl The name of the template file to parse * * @return void * * @since 2.5 */ public function display($tpl = null) { $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); $app = JFactory::getApplication(); $languageClient = $app->getUserStateFromRequest('com_languages.overrides.language_client', 'language_client'); if ($languageClient == null) { $app->enqueueMessage(JText::_('COM_LANGUAGES_OVERRIDE_FIRST_SELECT_MESSAGE'), 'warning'); $app->redirect('index.php?option=com_languages&view=overrides'); } // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors)); } // Check whether the cache has to be refreshed. $cached_time = JFactory::getApplication()->getUserState( 'com_languages.overrides.cachedtime.' . $this->state->get('filter.client') . '.' . $this->state->get('filter.language'), 0 ); if (time() - $cached_time > 60 * 5) { $this->state->set('cache_expired', true); } // Add strings for translations in Javascript. JText::script('COM_LANGUAGES_VIEW_OVERRIDE_NO_RESULTS'); JText::script('COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR'); $this->addToolbar(); parent::display($tpl); } /** * Adds the page title and toolbar. * * @return void * * @since 2.5 */ protected function addToolbar() { JFactory::getApplication()->input->set('hidemainmenu', true); $canDo = JHelperContent::getActions('com_languages'); JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_OVERRIDE_EDIT_TITLE'), 'comments-2 langmanager'); if ($canDo->get('core.edit')) { JToolbarHelper::apply('override.apply'); JToolbarHelper::save('override.save'); } // This component does not support Save as Copy. if ($canDo->get('core.edit') && $canDo->get('core.create')) { JToolbarHelper::save2new('override.save2new'); } if (empty($this->item->key)) { JToolbarHelper::cancel('override.cancel'); } else { JToolbarHelper::cancel('override.cancel', 'JTOOLBAR_CLOSE'); } JToolbarHelper::divider(); JToolbarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_OVERRIDES_EDIT'); } } overrides/tmpl/default.php000064400000007665152326013670011702 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('formbehavior.chosen', 'select'); JHtml::_('bootstrap.tooltip'); JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); $client = $this->state->get('filter.client') == 'site' ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); $language = $this->state->get('filter.language'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $oppositeClient = $this->state->get('filter.client') == 'administrator' ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); $oppositeFileName = constant('JPATH_' . strtoupper($this->state->get('filter.client') === 'site' ? 'administrator' : 'site')) . '/language/overrides/' . $this->state->get('filter.language', 'en-GB') . '.override.ini'; $oppositeStrings = JLanguageHelper::parseIniFile($oppositeFileName); ?> <form action="<?php echo JRoute::_('index.php?option=com_languages&view=overrides'); ?>" method="post" name="adminForm" id="adminForm"> <?php if (!empty( $this->sidebar)) : ?> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> </div> <div id="j-main-container" class="span10"> <?php else : ?> <div id="j-main-container"> <?php endif; ?> <?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> <div class="clearfix"></div> <?php if (empty($this->items)) : ?> <div class="alert alert-no-items"> <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> </div> <?php else : ?> <table class="table table-striped" id="overrideList"> <thead> <tr> <th width="1%" class="center"> <?php echo JHtml::_('grid.checkall'); ?> </th> <th width="30%" class="left"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_VIEW_OVERRIDES_KEY', 'key', $listDirn, $listOrder); ?> </th> <th class="left hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'COM_LANGUAGES_VIEW_OVERRIDES_TEXT', 'text', $listDirn, $listOrder); ?> </th> <th class="nowrap hidden-phone"> <?php echo JText::_('COM_LANGUAGES_FIELD_LANG_TAG_LABEL'); ?> </th> <th class="hidden-phone"> <?php echo JText::_('JCLIENT'); ?> </th> </tr> </thead> <tfoot> <tr> <td colspan="5"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php $canEdit = JFactory::getUser()->authorise('core.edit', 'com_languages'); ?> <?php $i = 0; ?> <?php foreach ($this->items as $key => $text) : ?> <tr class="row<?php echo $i % 2; ?>" id="overriderrow<?php echo $i; ?>"> <td class="center"> <?php echo JHtml::_('grid.id', $i, $key); ?> </td> <td> <?php if ($canEdit) : ?> <a id="key[<?php echo $this->escape($key); ?>]" href="<?php echo JRoute::_('index.php?option=com_languages&task=override.edit&id=' . $key); ?>"><?php echo $this->escape($key); ?></a> <?php else : ?> <?php echo $this->escape($key); ?> <?php endif; ?> </td> <td class="hidden-phone"> <span id="string[<?php echo $this->escape($key); ?>]"><?php echo $this->escape($text); ?></span> </td> <td class="hidden-phone"> <?php echo $language; ?> </td> <td class="hidden-phone"> <?php echo $client; ?><?php if (isset($oppositeStrings[$key]) && $oppositeStrings[$key] === $text) { echo '/' . $oppositeClient; } ?> </td> </tr> <?php $i++; ?> <?php endforeach; ?> </tbody> </table> <?php endif; ?> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <?php echo JHtml::_('form.token'); ?> </div> </form> overrides/tmpl/default.xml000064400000000326152326013670011676 0ustar00<?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_LANGUAGES_OVERRIDE_VIEW_DEFAULT_TITLE"> <message> <![CDATA[COM_LANGUAGES_OVERRIDE_VIEW_DEFAULT_DESC]]> </message> </layout> </metadata> overrides/tmpl/index.html000064400000000036152326013670011523 0ustar00<!DOCTYPE html><title></title>overrides/index.html000064400000000036152326013670010547 0ustar00<!DOCTYPE html><title></title>overrides/view.html.php000064400000004775152326013670011216 0ustar00<?php /** * @package Joomla.Administrator * @subpackage com_languages * * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * View for language overrides list. * * @since 2.5 */ class LanguagesViewOverrides extends JViewLegacy { /** * The items to list. * * @var array * @since 2.5 */ protected $items; /** * The pagination object. * * @var object * @since 2.5 */ protected $pagination; /** * The model state. * * @var object * @since 2.5 */ protected $state; /** * Displays the view. * * @param string $tpl The name of the template file to parse. * * @return void * * @since 2.5 */ public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Overrides'); $this->languages = $this->get('Languages'); $this->pagination = $this->get('Pagination'); $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); LanguagesHelper::addSubmenu('overrides'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors)); } $this->addToolbar(); parent::display($tpl); } /** * Adds the page title and toolbar. * * @return void * * @since 2.5 */ protected function addToolbar() { // Get the results for each action $canDo = JHelperContent::getActions('com_languages'); JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_OVERRIDES_TITLE'), 'comments-2 langmanager'); if ($canDo->get('core.create')) { JToolbarHelper::addNew('override.add'); } if ($canDo->get('core.edit') && $this->pagination->total) { JToolbarHelper::editList('override.edit'); } if ($canDo->get('core.delete') && $this->pagination->total) { JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'overrides.delete', 'JTOOLBAR_DELETE'); } if (JFactory::getUser()->authorise('core.admin')) { JToolbarHelper::custom('overrides.purge', 'refresh.png', 'refresh_f2.png', 'COM_LANGUAGES_VIEW_OVERRIDES_PURGE', false); } if ($canDo->get('core.admin')) { JToolbarHelper::preferences('com_languages'); } JToolbarHelper::divider(); JToolbarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_OVERRIDES'); JHtmlSidebar::setAction('index.php?option=com_languages&view=overrides'); $this->sidebar = JHtmlSidebar::render(); } } index.html000064400000000054152326013670006545 0ustar00<html><body bgcolor="#FFFFFF"></body></html>categories/tmpl/default.php000064400000002355152326013700012006 0ustar00<?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2008 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); JHtml::_('behavior.caption'); JHtml::_('behavior.core'); // Add strings for translations in Javascript. JText::script('JGLOBAL_EXPAND_CATEGORIES'); JText::script('JGLOBAL_COLLAPSE_CATEGORIES'); JFactory::getDocument()->addScriptDeclaration(" jQuery(function($) { $('.categories-list').find('[id^=category-btn-]').each(function(index, btn) { var btn = $(btn); btn.on('click', function() { btn.find('span').toggleClass('icon-plus'); btn.find('span').toggleClass('icon-minus'); if (btn.attr('aria-label') === Joomla.JText._('JGLOBAL_EXPAND_CATEGORIES')) { btn.attr('aria-label', Joomla.JText._('JGLOBAL_COLLAPSE_CATEGORIES')); } else { btn.attr('aria-label', Joomla.JText._('JGLOBAL_EXPAND_CATEGORIES')); } }); }); });"); ?> <div class="categories-list<?php echo $this->pageclass_sfx; ?>"> <?php echo JLayoutHelper::render('joomla.content.categories_default', $this); echo $this->loadTemplate('items'); ?> </div> categories/tmpl/default.xml000064400000046465152326013700012031 0ustar00<?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_CONTACT_CATEGORIES_VIEW_DEFAULT_TITLE" option="COM_CONTACT_CATEGORIES_VIEW_DEFAULT_OPTION"> <help key = "JHELP_MENUS_MENU_ITEM_CONTACT_CATEGORIES" /> <message> <![CDATA[COM_CONTACT_CATEGORIES_VIEW_DEFAULT_DESC]]> </message> </layout> <!-- Add fields to the request variables for the layout. --> <fields name="request"> <fieldset name="request" > <field name="id" type="category" label="JGLOBAL_FIELD_CATEGORIES_CHOOSE_CATEGORY_LABEL" description="JGLOBAL_FIELD_CATEGORIES_CHOOSE_CATEGORY_DESC" extension="com_contact" show_root="true" required="true" /> </fieldset> </fields> <fields name="params"> <fieldset name="basic" label="JGLOBAL_CATEGORIES_OPTIONS"> <field name="show_base_description" type="list" label="JGLOBAL_FIELD_SHOW_BASE_DESCRIPTION_LABEL" description="JGLOBAL_FIELD_SHOW_BASE_DESCRIPTION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="categories_description" type="textarea" label="JGLOBAL_FIELD_CATEGORIES_DESC_LABEL" description="JGLOBAL_FIELD_CATEGORIES_DESC_DESC" cols="25" rows="5" /> <field name="maxLevelcat" type="list" label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL" description="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_DESC" useglobal="true" > <option value="-1">JALL</option> <option value="1">J1</option> <option value="2">J2</option> <option value="3">J3</option> <option value="4">J4</option> <option value="5">J5</option> </field> <field name="show_empty_categories_cat" type="list" label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL" description="COM_CONTACT_SHOW_EMPTY_CATEGORIES_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_subcat_desc_cat" type="list" label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL" description="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_cat_items_cat" type="list" label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL" description="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> <fieldset name="category" label="JGLOBAL_CATEGORY_OPTIONS"> <field name="spacer1" type="spacer" label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL" class="text" /> <field name="show_category_title" type="list" label="JGLOBAL_SHOW_CATEGORY_TITLE" description="JGLOBAL_SHOW_CATEGORY_TITLE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_description" type="list" label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL" description="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_description_image" type="list" label="JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL" description="JGLOBAL_SHOW_CATEGORY_IMAGE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="maxLevel" type="list" label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL" description="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_DESC" useglobal="true" > <option value="-1">JALL</option> <option value="0">JNONE</option> <option value="1">J1</option> <option value="2">J2</option> <option value="3">J3</option> <option value="4">J4</option> <option value="5">J5</option> </field> <field name="show_empty_categories" type="list" label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL" description="COM_CONTACT_SHOW_EMPTY_CATEGORIES_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_subcat_desc" type="list" label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL" description="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_cat_items" type="list" label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL" description="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> <fieldset name="advanced" label="JGLOBAL_LIST_LAYOUT_OPTIONS"> <field name="spacer2" type="spacer" label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL" class="text" /> <field name="filter_field" type="list" label="JGLOBAL_FILTER_FIELD_LABEL" description="JGLOBAL_FILTER_FIELD_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_pagination_limit" type="list" label="JGLOBAL_DISPLAY_SELECT_LABEL" description="JGLOBAL_DISPLAY_SELECT_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_headings" type="list" label="JGLOBAL_SHOW_HEADINGS_LABEL" description="JGLOBAL_SHOW_HEADINGS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_position_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL" description="COM_CONTACT_FIELD_CONFIG_POSITION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email_headings" type="list" label="JGLOBAL_EMAIL" description="COM_CONTACT_FIELD_CONFIG_EMAIL_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_telephone_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL" description="COM_CONTACT_FIELD_CONFIG_PHONE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_mobile_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL" description="COM_CONTACT_FIELD_CONFIG_MOBILE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_fax_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL" description="COM_CONTACT_FIELD_CONFIG_FAX_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_suburb_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL" description="COM_CONTACT_FIELD_CONFIG_SUBURB_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_state_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL" description="COM_CONTACT_FIELD_CONFIG_STATE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_country_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL" description="COM_CONTACT_FIELD_CONFIG_COUNTRY_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_pagination" type="list" label="JGLOBAL_PAGINATION_LABEL" description="JGLOBAL_PAGINATION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> <option value="2">JGLOBAL_AUTO</option> </field> <field name="show_pagination_results" type="list" label="JGLOBAL_PAGINATION_RESULTS_LABEL" description="JGLOBAL_PAGINATION_RESULTS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> <fieldset name="contact" label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL"> <field name="presentation_style" type="list" label="COM_CONTACT_FIELD_PRESENTATION_LABEL" description="COM_CONTACT_FIELD_PRESENTATION_DESC" useglobal="true" > <option value="sliders">COM_CONTACT_FIELD_VALUE_SLIDERS</option> <option value="tabs">COM_CONTACT_FIELD_VALUE_TABS</option> <option value="plain">COM_CONTACT_FIELD_VALUE_PLAIN</option> </field> <field name="show_contact_category" type="list" label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL" description="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_name" type="list" label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL" description="COM_CONTACT_FIELD_PARAMS_NAME_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_tags" type="list" label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL" description="COM_CONTACT_FIELD_SHOW_TAGS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_info" type="list" label="COM_CONTACT_FIELD_SHOW_INFO_LABEL" description="COM_CONTACT_FIELD_SHOW_INFO_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email" type="list" label="JGLOBAL_EMAIL" description="COM_CONTACT_FIELD_PARAMS_CONTACT_E_MAIL_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_street_address" type="list" label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL" description="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_suburb" type="list" description="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_DESC" label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_country" type="list" label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL" description="COM_CONTACT_FIELD_PARAMS_COUNTRY_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_telephone" type="list" label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL" description="COM_CONTACT_FIELD_PARAMS_TELEPHONE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_mobile" type="list" label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL" description="COM_CONTACT_FIELD_PARAMS_MOBILE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_fax" type="list" label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL" description="COM_CONTACT_FIELD_PARAMS_FAX_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_webpage" type="list" label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL" description="COM_CONTACT_FIELD_PARAMS_WEBPAGE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_image" type="list" label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL" description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="allow_vcard" type="list" label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL" description="COM_CONTACT_FIELD_PARAMS_VCARD_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_MISC_INFO_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_articles" type="list" label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL" description="COM_CONTACT_FIELD_ARTICLES_SHOW_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_DESC" default="" useglobal="true" > <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_links" type="list" label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL" description="COM_CONTACT_FIELD_SHOW_LINKS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="linka_name" type="text" label="COM_CONTACT_FIELD_LINKA_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkb_name" type="text" label="COM_CONTACT_FIELD_LINKB_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkc_name" type="text" label="COM_CONTACT_FIELD_LINKC_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkd_name" type="text" label="COM_CONTACT_FIELD_LINKD_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linke_name" type="text" label="COM_CONTACT_FIELD_LINKE_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" 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" description="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC" useglobal="true" class="chzn-color" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="redirect" type="text" label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL" description="COM_CONTACT_FIELD_CONFIG_REDIRECT_DESC" size="30" useglobal="true" /> </fieldset> <fieldset name="integration"> <field name="show_feed_link" type="list" label="JGLOBAL_SHOW_FEED_LINK_LABEL" description="JGLOBAL_SHOW_FEED_LINK_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> </fields> </metadata> categories/tmpl/default_items.php000064400000004634152326013700013211 0ustar00<?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('bootstrap.tooltip'); $class = ' class="first"'; if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) : ?> <?php foreach ($this->items[$this->parent->id] as $id => $item) : ?> <?php if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : if (!isset($this->items[$this->parent->id][$id + 1])) { $class = ' class="last"'; } ?> <div <?php echo $class; ?> > <?php $class = ''; ?> <h3 class="page-header item-title"> <a href="<?php echo JRoute::_(ContactHelperRoute::getCategoryRoute($item->id, $item->language)); ?>"> <?php echo $this->escape($item->title); ?></a> <?php if ($this->params->get('show_cat_items_cat') == 1) :?> <span class="badge badge-info tip hasTooltip" title="<?php echo JHtml::_('tooltipText', 'COM_CONTACT_NUM_ITEMS'); ?>"> <?php echo JText::_('COM_CONTACT_NUM_ITEMS'); ?> <?php echo $item->numitems; ?> </span> <?php endif; ?> <?php if ($this->maxLevelcat > 1 && count($item->getChildren()) > 0) : ?> <a id="category-btn-<?php echo $item->id; ?>" href="#category-<?php echo $item->id; ?>" data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right" aria-label="<?php echo JText::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"><span class="icon-plus" aria-hidden="true"></span></a> <?php endif; ?> </h3> <?php if ($this->params->get('show_subcat_desc_cat') == 1) : ?> <?php if ($item->description) : ?> <div class="category-desc"> <?php echo JHtml::_('content.prepare', $item->description, '', 'com_contact.categories'); ?> </div> <?php endif; ?> <?php endif; ?> <?php if ($this->maxLevelcat > 1 && count($item->getChildren()) > 0) : ?> <div class="collapse fade" id="category-<?php echo $item->id; ?>"> <?php $this->items[$item->id] = $item->getChildren(); $this->parent = $item; $this->maxLevelcat--; echo $this->loadTemplate('items'); $this->parent = $item->getParent(); $this->maxLevelcat++; ?> </div> <?php endif; ?> </div> <?php endif; ?> <?php endforeach; ?><?php endif; ?> categories/tmpl/index.html000064400000000037152326013700011641 0ustar00<!DOCTYPE html><title></title> categories/index.html000064400000000037152326013700010665 0ustar00<!DOCTYPE html><title></title> categories/view.html.php000064400000001206152326013700011315 0ustar00<?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2008 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Content categories view. * * @since 1.6 */ class ContactViewCategories extends JViewCategories { /** * Language key for default page heading * * @var string * @since 3.2 */ protected $pageHeading = 'COM_CONTACT_DEFAULT_PAGE_TITLE'; /** * @var string The name of the extension for the category * @since 3.2 */ protected $extension = 'com_contact'; } category/tmpl/default.php000064400000000550152326013700011471 0ustar00<?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; $this->subtemplatename = 'items'; echo JLayoutHelper::render('joomla.content.category_default', $this); category/tmpl/default.xml000064400000045714152326013700011515 0ustar00<?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_CONTACT_CATEGORY_VIEW_DEFAULT_TITLE" option="COM_CONTACT_CATEGORY_VIEW_DEFAULT_OPTION"> <help key = "JHELP_MENUS_MENU_ITEM_CONTACT_CATEGORY" /> <message> <![CDATA[COM_CONTACT_CATEGORY_VIEW_DEFAULT_DESC]]> </message> </layout> <!-- Add fields to the request variables for the layout. --> <fields name="request" addfieldpath="/administrator/components/com_categories/models/fields" > <fieldset name="request" addfieldpath="/administrator/components/com_contact/models/fields" > <field name="id" type="modal_category" label="COM_CONTACT_FIELD_CATEGORY_LABEL" description="COM_CONTACT_FIELD_CATEGORY_DESC" extension="com_contact" required="true" select="true" new="true" edit="true" clear="true" /> </fieldset> </fields> <!-- Add fields to the parameters object for the layout. --> <fields name="params"> <fieldset name="basic" label="JGLOBAL_CATEGORY_OPTIONS"> <field name="spacer1" type="spacer" label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL" class="text" /> <field name="show_category_title" type="list" label="JGLOBAL_SHOW_CATEGORY_TITLE" description="JGLOBAL_SHOW_CATEGORY_TITLE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_description" type="list" label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL" description="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_description_image" type="list" label="JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL" description="JGLOBAL_SHOW_CATEGORY_IMAGE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="maxLevel" type="list" label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL" description="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_DESC" useglobal="true" > <option value="-1">JALL</option> <option value="0">JNONE</option> <option value="1">J1</option> <option value="2">J2</option> <option value="3">J3</option> <option value="4">J4</option> <option value="5">J5</option> </field> <field name="show_empty_categories" type="list" label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL" description="COM_CONTACT_SHOW_EMPTY_CATEGORIES_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_subcat_desc" type="list" label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL" description="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_cat_items" type="list" label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL" description="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> <fieldset name="advanced" label="JGLOBAL_LIST_LAYOUT_OPTIONS"> <field name="spacer2" type="spacer" label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL" class="text" /> <field name="filter_field" type="list" label="JGLOBAL_FILTER_FIELD_LABEL" description="JGLOBAL_FILTER_FIELD_DESC" default="" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_pagination_limit" type="list" label="JGLOBAL_DISPLAY_SELECT_LABEL" description="JGLOBAL_DISPLAY_SELECT_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_headings" type="list" label="JGLOBAL_SHOW_HEADINGS_LABEL" description="JGLOBAL_SHOW_HEADINGS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_image_heading" type="list" label="COM_CONTACT_FIELD_CONFIG_SHOW_IMAGE_LABEL" description="COM_CONTACT_FIELD_CONFIG_SHOW_IMAGE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_position_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL" description="COM_CONTACT_FIELD_CONFIG_POSITION_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email_headings" type="list" label="JGLOBAL_EMAIL" description="COM_CONTACT_FIELD_CONFIG_EMAIL_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_telephone_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL" description="COM_CONTACT_FIELD_CONFIG_PHONE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_mobile_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL" description="COM_CONTACT_FIELD_CONFIG_MOBILE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_fax_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL" description="COM_CONTACT_FIELD_CONFIG_FAX_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_suburb_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL" description="COM_CONTACT_FIELD_CONFIG_SUBURB_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_state_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL" description="COM_CONTACT_FIELD_CONFIG_STATE_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_country_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL" description="COM_CONTACT_FIELD_CONFIG_COUNTRY_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_pagination" type="list" label="JGLOBAL_PAGINATION_LABEL" description="JGLOBAL_PAGINATION_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> <option value="2">JGLOBAL_AUTO</option> </field> <field name="show_pagination_results" type="list" label="JGLOBAL_PAGINATION_RESULTS_LABEL" description="JGLOBAL_PAGINATION_RESULTS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="initial_sort" type="list" label="COM_CONTACT_FIELD_INITIAL_SORT_LABEL" description="COM_CONTACT_FIELD_INITIAL_SORT_DESC" useglobal="true" > <option value="name">COM_CONTACT_FIELD_VALUE_NAME</option> <option value="sortname">COM_CONTACT_FIELD_VALUE_SORT_NAME</option> <option value="ordering">COM_CONTACT_FIELD_VALUE_ORDERING</option> </field> </fieldset> <fieldset name="contact" label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL" addfieldpath="/administrator/components/com_fields/models/fields"> <field name="contact_layout" type="componentlayout" label="JGLOBAL_FIELD_LAYOUT_LABEL" description="JGLOBAL_FIELD_LAYOUT_DESC" menuitems="true" extension="com_contact" view="contact" /> <field name="presentation_style" type="list" label="COM_CONTACT_FIELD_PRESENTATION_LABEL" description="COM_CONTACT_FIELD_PRESENTATION_DESC" useglobal="true" > <option value="sliders">COM_CONTACT_FIELD_VALUE_SLIDERS</option> <option value="tabs">COM_CONTACT_FIELD_VALUE_TABS</option> <option value="plain">COM_CONTACT_FIELD_VALUE_PLAIN</option> </field> <field name="show_contact_category" type="list" label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL" description="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_name" type="list" label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL" description="COM_CONTACT_FIELD_PARAMS_NAME_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_tags" type="list" label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL" description="COM_CONTACT_FIELD_SHOW_TAGS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_info" type="list" label="COM_CONTACT_FIELD_SHOW_INFO_LABEL" description="COM_CONTACT_FIELD_SHOW_INFO_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email" type="list" label="JGLOBAL_EMAIL" description="COM_CONTACT_FIELD_PARAMS_CONTACT_E_MAIL_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_street_address" type="list" label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL" description="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_country" type="list" label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL" description="COM_CONTACT_FIELD_PARAMS_COUNTRY_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_telephone" type="list" label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL" description="COM_CONTACT_FIELD_PARAMS_TELEPHONE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_mobile" type="list" label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL" description="COM_CONTACT_FIELD_PARAMS_MOBILE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_fax" type="list" label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL" description="COM_CONTACT_FIELD_PARAMS_FAX_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_webpage" type="list" label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL" description="COM_CONTACT_FIELD_PARAMS_WEBPAGE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_image" type="list" label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL" description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="allow_vcard" type="list" label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL" description="COM_CONTACT_FIELD_PARAMS_VCARD_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_MISC_INFO_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_articles" type="list" label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL" description="COM_CONTACT_FIELD_ARTICLES_SHOW_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_DESC" default="" useglobal="true" > <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_links" type="list" label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL" description="COM_CONTACT_FIELD_SHOW_LINKS_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_DESC" multiple="true" context="com_users.user" > <option value="-1">JALL</option> </field> <field name="linka_name" type="text" label="COM_CONTACT_FIELD_LINKA_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkb_name" type="text" label="COM_CONTACT_FIELD_LINKB_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkc_name" type="text" label="COM_CONTACT_FIELD_LINKC_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkd_name" type="text" label="COM_CONTACT_FIELD_LINKD_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linke_name" type="text" label="COM_CONTACT_FIELD_LINKE_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" 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" description="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC" useglobal="true" class="chzn-color" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="redirect" type="text" label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL" description="COM_CONTACT_FIELD_CONFIG_REDIRECT_DESC" size="30" useglobal="true" /> </fieldset> <fieldset name="integration"> <field name="show_feed_link" type="list" label="JGLOBAL_Show_Feed_Link_Label" description="JGLOBAL_Show_Feed_Link_Desc" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> </fields> </metadata> category/tmpl/default_children.php000064400000003372152326013700013346 0ustar00<?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; $class = ' class="first"'; if ($this->maxLevel != 0 && count($this->children[$this->category->id]) > 0) : ?> <ul class="list-striped list-condensed"> <?php foreach ($this->children[$this->category->id] as $id => $child) : ?> <?php if ($this->params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) : if (!isset($this->children[$this->category->id][$id + 1])) { $class = ' class="last"'; } ?> <li<?php echo $class; ?>> <?php $class = ''; ?> <h4 class="item-title"> <a href="<?php echo JRoute::_(ContactHelperRoute::getCategoryRoute($child->id)); ?>"> <?php echo $this->escape($child->title); ?> </a> <?php if ($this->params->get('show_cat_items') == 1) : ?> <span class="badge badge-info pull-right" title="<?php echo JText::_('COM_CONTACT_CAT_NUM'); ?>"><?php echo $child->numitems; ?></span> <?php endif; ?> </h4> <?php if ($this->params->get('show_subcat_desc') == 1) : ?> <?php if ($child->description) : ?> <div class="category-desc"> <?php echo JHtml::_('content.prepare', $child->description, '', 'com_contact.category'); ?> </div> <?php endif; ?> <?php endif; ?> <?php if (count($child->getChildren()) > 0 ) : $this->children[$child->id] = $child->getChildren(); $this->category = $child; $this->maxLevel--; echo $this->loadTemplate('children'); $this->category = $child->getParent(); $this->maxLevel++; endif; ?> </li> <?php endif; ?> <?php endforeach; ?> </ul> <?php endif; ?> category/tmpl/default_items.php000064400000012672152326013700012702 0ustar00<?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; JHtml::_('behavior.core'); ?> <form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm"> <?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?> <fieldset class="filters btn-toolbar"> <?php if ($this->params->get('filter_field')) : ?> <div class="btn-group"> <label class="filter-search-lbl element-invisible" for="filter-search"> <span class="label label-warning"> <?php echo JText::_('JUNPUBLISHED'); ?> </span> <?php echo JText::_('COM_CONTACT_FILTER_LABEL') . ' '; ?> </label> <input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>" /> </div> <?php endif; ?> <?php if ($this->params->get('show_pagination_limit')) : ?> <div class="btn-group pull-right"> <label for="limit" class="element-invisible"> <?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?> </label> <?php echo $this->pagination->getLimitBox(); ?> </div> <?php endif; ?> </fieldset> <?php endif; ?> <?php if (empty($this->items)) : ?> <p> <?php echo JText::_('COM_CONTACT_NO_CONTACTS'); ?> </p> <?php else : ?> <ul class="category row-striped"> <?php foreach ($this->items as $i => $item) : ?> <?php if (in_array($item->access, $this->user->getAuthorisedViewLevels())) : ?> <?php if ($this->items[$i]->published == 0) : ?> <li class="row-fluid system-unpublished cat-list-row<?php echo $i % 2; ?>"> <?php else : ?> <li class="row-fluid cat-list-row<?php echo $i % 2; ?>" > <?php endif; ?> <?php if ($this->params->get('show_image_heading')) : ?> <?php $contactWidth = 7; ?> <div class="span2 col-md-2"> <?php if ($this->items[$i]->image) : ?> <a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>"> <?php echo JHtml::_( 'image', $this->items[$i]->image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('class' => 'contact-thumbnail img-thumbnail') ); ?> </a> <?php endif; ?> </div> <?php else : ?> <?php $contactWidth = 9; ?> <?php endif; ?> <div class="list-title span<?php echo $contactWidth; ?> col-md-<?php echo $contactWidth; ?>"> <a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>"> <?php echo $item->name; ?> </a> <?php if ($this->items[$i]->published == 0) : ?> <span class="label label-warning"> <?php echo JText::_('JUNPUBLISHED'); ?> </span> <?php endif; ?> <?php echo $item->event->afterDisplayTitle; ?> <?php echo $item->event->beforeDisplayContent; ?> <?php if ($this->params->get('show_position_headings')) : ?> <?php echo $item->con_position; ?><br /> <?php endif; ?> <?php if ($this->params->get('show_email_headings')) : ?> <?php echo $item->email_to; ?><br /> <?php endif; ?> <?php $location = array(); ?> <?php if ($this->params->get('show_suburb_headings') && !empty($item->suburb)) : ?> <?php $location[] = $item->suburb; ?> <?php endif; ?> <?php if ($this->params->get('show_state_headings') && !empty($item->state)) : ?> <?php $location[] = $item->state; ?> <?php endif; ?> <?php if ($this->params->get('show_country_headings') && !empty($item->country)) : ?> <?php $location[] = $item->country; ?> <?php endif; ?> <?php echo implode(', ', $location); ?> </div> <div class="span3 col-md-3"> <?php if ($this->params->get('show_telephone_headings') && !empty($item->telephone)) : ?> <?php echo JText::sprintf('COM_CONTACT_TELEPHONE_NUMBER', $item->telephone); ?><br /> <?php endif; ?> <?php if ($this->params->get('show_mobile_headings') && !empty ($item->mobile)) : ?> <?php echo JText::sprintf('COM_CONTACT_MOBILE_NUMBER', $item->mobile); ?><br /> <?php endif; ?> <?php if ($this->params->get('show_fax_headings') && !empty($item->fax)) : ?> <?php echo JText::sprintf('COM_CONTACT_FAX_NUMBER', $item->fax); ?><br /> <?php endif; ?> </div> <?php echo $item->event->afterDisplayContent; ?> </li> <?php endif; ?> <?php endforeach; ?> </ul> <?php endif; ?> <?php if ($this->params->get('show_pagination', 2)) : ?> <div class="pagination"> <?php if ($this->params->def('show_pagination_results', 1)) : ?> <p class="counter"> <?php echo $this->pagination->getPagesCounter(); ?> </p> <?php endif; ?> <?php echo $this->pagination->getPagesLinks(); ?> </div> <?php endif; ?> <div> <input type="hidden" name="filter_order" value="<?php echo $this->escape($this->state->get('list.ordering')); ?>" /> <input type="hidden" name="filter_order_Dir" value="<?php echo $this->escape($this->state->get('list.direction')); ?>" /> </div> </form> category/tmpl/index.html000064400000000037152326013700011331 0ustar00<!DOCTYPE html><title></title> category/index.html000064400000000037152326013700010355 0ustar00<!DOCTYPE html><title></title> category/view.feed.php000064400000001622152326013700010746 0ustar00<?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; /** * HTML View class for the Contact component * * @since 1.5 */ class ContactViewCategory extends JViewCategoryfeed { /** * @var string The name of the view to link individual items to * @since 3.2 */ protected $viewName = 'contact'; /** * Method to reconcile non standard names from components to usage in this class. * Typically overridden in the component feed view class. * * @param object $item The item for a feed, an element of the $items array. * * @return void * * @since 3.2 */ protected function reconcileNames($item) { parent::reconcileNames($item); $item->description = $item->address; } } category/view.html.php000064400000005645152326013700011020 0ustar00<?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; /** * HTML View class for the Contacts component * * @since 1.5 */ class ContactViewCategory extends JViewCategory { /** * @var string The name of the extension for the category * @since 3.2 */ protected $extension = 'com_contact'; /** * @var string Default title to use for page title * @since 3.2 */ protected $defaultPageTitle = 'COM_CONTACT_DEFAULT_PAGE_TITLE'; /** * @var string The name of the view to link individual items to * @since 3.2 */ protected $viewName = 'contact'; /** * Run the standard Joomla plugins * * @var bool * @since 3.5 */ protected $runPlugins = true; /** * Execute and display a template script. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise an Error object. */ public function display($tpl = null) { parent::commonCategoryDisplay(); // Flag indicates to not add limitstart=0 to URL $this->pagination->hideEmptyLimitstart = true; // Prepare the data. // Compute the contact slug. foreach ($this->items as $item) { $item->slug = $item->alias ? ($item->id . ':' . $item->alias) : $item->id; $temp = $item->params; $item->params = clone $this->params; $item->params->merge($temp); if ($item->params->get('show_email_headings', 0) == 1) { $item->email_to = trim($item->email_to); if (!empty($item->email_to) && JMailHelper::isEmailAddress($item->email_to)) { $item->email_to = JHtml::_('email.cloak', $item->email_to); } else { $item->email_to = ''; } } } return parent::display($tpl); } /** * Prepares the document * * @return void */ protected function prepareDocument() { parent::prepareDocument(); $menu = $this->menu; $id = (int) @$menu->query['id']; if ($menu && (!isset($menu->query['option']) || $menu->query['option'] != $this->extension || $menu->query['view'] == $this->viewName || $id != $this->category->id)) { $path = array(array('title' => $this->category->title, 'link' => '')); $category = $this->category->getParent(); while ($category !== null && $category->id !== 'root ' && (!isset($menu->query['option']) || $menu->query['option'] !== 'com_contact' || $menu->query['view'] === 'contact' || $id != $category->id)) { $path[] = array('title' => $category->title, 'link' => ContactHelperRoute::getCategoryRoute($category->id)); $category = $category->getParent(); } $path = array_reverse($path); foreach ($path as $item) { $this->pathway->addItem($item['title'], $item['link']); } } parent::addFeed(); } } contact/tmpl/default.php000064400000024573152326013700011322 0ustar00<?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; $tparams = $this->item->params; ?> <div class="contact<?php echo $this->pageclass_sfx; ?>" 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->contact->name && $tparams->get('show_name')) : ?> <div class="page-header"> <h2> <?php if ($this->item->published == 0) : ?> <span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span> <?php endif; ?> <span class="contact-name" itemprop="name"><?php echo $this->contact->name; ?></span> </h2> </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->contact->category_title; ?></span> </h3> <?php elseif ($show_contact_category === 'show_with_link') : ?> <?php $contactLink = ContactHelperRoute::getCategoryRoute($this->contact->catid); ?> <h3> <span class="contact-category"><a href="<?php echo $contactLink; ?>"> <?php echo $this->escape($this->contact->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 JText::_('COM_CONTACT_SELECT_CONTACT'); ?></label> <?php echo JHtml::_('select.genericlist', $this->contacts, 'select_contact', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->contact->link); ?> </form> <?php endif; ?> <?php if ($tparams->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> <?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> <?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?> <?php endif; ?> <?php echo $this->item->event->beforeDisplayContent; ?> <?php $presentation_style = $tparams->get('presentation_style'); ?> <?php $accordionStarted = false; ?> <?php $tabSetStarted = false; ?> <?php if ($this->params->get('show_info', 1)) : ?> <?php if ($presentation_style === 'sliders') : ?> <?php echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'basic-details')); ?> <?php $accordionStarted = true; ?> <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_DETAILS'), 'basic-details'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'basic-details')); ?> <?php $tabSetStarted = true; ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'basic-details', JText::_('COM_CONTACT_DETAILS')); ?> <?php elseif ($presentation_style === 'plain') : ?> <?php echo '<h3>' . JText::_('COM_CONTACT_DETAILS') . '</h3>'; ?> <?php endif; ?> <?php if ($this->contact->image && $tparams->get('show_image')) : ?> <div class="thumbnail pull-right"> <?php echo JHtml::_('image', $this->contact->image, htmlspecialchars($this->contact->name, ENT_QUOTES, 'UTF-8'), array('itemprop' => 'image')); ?> </div> <?php endif; ?> <?php if ($this->contact->con_position && $tparams->get('show_position')) : ?> <dl class="contact-position dl-horizontal"> <dt><?php echo JText::_('COM_CONTACT_POSITION'); ?>:</dt> <dd itemprop="jobTitle"> <?php echo $this->contact->con_position; ?> </dd> </dl> <?php endif; ?> <?php echo $this->loadTemplate('address'); ?> <?php if ($tparams->get('allow_vcard')) : ?> <?php echo JText::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS'); ?> <a href="<?php echo JRoute::_('index.php?option=com_contact&view=contact&id=' . $this->contact->id . '&format=vcf'); ?>"> <?php echo JText::_('COM_CONTACT_VCARD'); ?></a> <?php endif; ?> <?php if ($presentation_style === 'sliders') : ?> <?php echo JHtml::_('bootstrap.endSlide'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> <?php endif; ?> <?php if ($tparams->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?> <?php if ($presentation_style === 'sliders') : ?> <?php if (!$accordionStarted) { echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'display-form')); $accordionStarted = true; } ?> <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_EMAIL_FORM'), 'display-form'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php if (!$tabSetStarted) { echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-form')); $tabSetStarted = true; } ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-form', JText::_('COM_CONTACT_EMAIL_FORM')); ?> <?php elseif ($presentation_style === 'plain') : ?> <?php echo '<h3>' . JText::_('COM_CONTACT_EMAIL_FORM') . '</h3>'; ?> <?php endif; ?> <?php echo $this->loadTemplate('form'); ?> <?php if ($presentation_style === 'sliders') : ?> <?php echo JHtml::_('bootstrap.endSlide'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> <?php endif; ?> <?php if ($tparams->get('show_links')) : ?> <?php if ($presentation_style === 'sliders') : ?> <?php if (!$accordionStarted) : ?> <?php echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'display-links')); ?> <?php $accordionStarted = true; ?> <?php endif; ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php if (!$tabSetStarted) : ?> <?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-links')); ?> <?php $tabSetStarted = true; ?> <?php endif; ?> <?php endif; ?> <?php echo $this->loadTemplate('links'); ?> <?php endif; ?> <?php if ($tparams->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?> <?php if ($presentation_style === 'sliders') : ?> <?php if (!$accordionStarted) { echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'display-articles')); $accordionStarted = true; } ?> <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('JGLOBAL_ARTICLES'), 'display-articles'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php if (!$tabSetStarted) { echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-articles')); $tabSetStarted = true; } ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-articles', JText::_('JGLOBAL_ARTICLES')); ?> <?php elseif ($presentation_style === 'plain') : ?> <?php echo '<h3>' . JText::_('JGLOBAL_ARTICLES') . '</h3>'; ?> <?php endif; ?> <?php echo $this->loadTemplate('articles'); ?> <?php if ($presentation_style === 'sliders') : ?> <?php echo JHtml::_('bootstrap.endSlide'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> <?php endif; ?> <?php if ($tparams->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?> <?php if ($presentation_style === 'sliders') : ?> <?php if (!$accordionStarted) { echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'display-profile')); $accordionStarted = true; } ?> <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_PROFILE'), 'display-profile'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php if (!$tabSetStarted) { echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-profile')); $tabSetStarted = true; } ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-profile', JText::_('COM_CONTACT_PROFILE')); ?> <?php elseif ($presentation_style === 'plain') : ?> <?php echo '<h3>' . JText::_('COM_CONTACT_PROFILE') . '</h3>'; ?> <?php endif; ?> <?php echo $this->loadTemplate('profile'); ?> <?php if ($presentation_style === 'sliders') : ?> <?php echo JHtml::_('bootstrap.endSlide'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> <?php endif; ?> <?php if ($tparams->get('show_user_custom_fields') && $this->contactUser) : ?> <?php echo $this->loadTemplate('user_custom_fields'); ?> <?php endif; ?> <?php if ($this->contact->misc && $tparams->get('show_misc')) : ?> <?php if ($presentation_style === 'sliders') : ?> <?php if (!$accordionStarted) { echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'display-misc')); $accordionStarted = true; } ?> <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_OTHER_INFORMATION'), 'display-misc'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php if (!$tabSetStarted) { echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-misc')); $tabSetStarted = true; } ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-misc', JText::_('COM_CONTACT_OTHER_INFORMATION')); ?> <?php elseif ($presentation_style === 'plain') : ?> <?php echo '<h3>' . JText::_('COM_CONTACT_OTHER_INFORMATION') . '</h3>'; ?> <?php endif; ?> <div class="contact-miscinfo"> <dl class="dl-horizontal"> <dt> <span class="<?php echo $tparams->get('marker_class'); ?>"> <?php echo $tparams->get('marker_misc'); ?> </span> </dt> <dd> <span class="contact-misc"> <?php echo $this->contact->misc; ?> </span> </dd> </dl> </div> <?php if ($presentation_style === 'sliders') : ?> <?php echo JHtml::_('bootstrap.endSlide'); ?> <?php elseif ($presentation_style === 'tabs') : ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> <?php endif; ?> <?php if ($accordionStarted) : ?> <?php echo JHtml::_('bootstrap.endAccordion'); ?> <?php elseif ($tabSetStarted) : ?> <?php echo JHtml::_('bootstrap.endTabSet'); ?> <?php endif; ?> <?php echo $this->item->event->afterDisplayContent; ?> </div> contact/tmpl/default.xml000064400000030000152326013700011311 0ustar00<?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 = "JHELP_MENUS_MENU_ITEM_CONTACT_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" addfieldpath="/administrator/components/com_contact/models/fields" > <field name="id" type="modal_contact" label="COM_CONTACT_SELECT_CONTACT_LABEL" description="COM_CONTACT_SELECT_CONTACT_DESC" 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" addfieldpath="/administrator/components/com_fields/models/fields" > <field name="presentation_style" type="list" label="COM_CONTACT_FIELD_PRESENTATION_LABEL" description="COM_CONTACT_FIELD_PRESENTATION_DESC" useglobal="true" > <option value="sliders">COM_CONTACT_FIELD_VALUE_SLIDERS</option> <option value="tabs">COM_CONTACT_FIELD_VALUE_TABS</option> <option value="plain">COM_CONTACT_FIELD_VALUE_PLAIN</option> </field> <field name="show_contact_category" type="list" label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL" description="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_name" type="list" label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL" description="COM_CONTACT_FIELD_PARAMS_NAME_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_tags" type="list" label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL" description="COM_CONTACT_FIELD_SHOW_TAGS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_info" type="list" label="COM_CONTACT_FIELD_SHOW_INFO_LABEL" description="COM_CONTACT_FIELD_SHOW_INFO_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email" type="list" label="JGLOBAL_EMAIL" description="COM_CONTACT_FIELD_PARAMS_CONTACT_E_MAIL_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_ADD_MAILTO_LINK_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_country" type="list" label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL" description="COM_CONTACT_FIELD_PARAMS_COUNTRY_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_telephone" type="list" label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL" description="COM_CONTACT_FIELD_PARAMS_TELEPHONE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_mobile" type="list" label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL" description="COM_CONTACT_FIELD_PARAMS_MOBILE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_fax" type="list" label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL" description="COM_CONTACT_FIELD_PARAMS_FAX_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_webpage" type="list" label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL" description="COM_CONTACT_FIELD_PARAMS_WEBPAGE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_image" type="list" label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL" description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="allow_vcard" type="list" label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL" description="COM_CONTACT_FIELD_PARAMS_VCARD_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_MISC_INFO_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_articles" type="list" label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL" description="COM_CONTACT_FIELD_ARTICLES_SHOW_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_DESC" default="" useglobal="true" > <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" description="COM_CONTACT_FIELD_PROFILE_SHOW_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_DESC" multiple="true" context="com_users.user" > <option value="-1">JALL</option> </field> <field name="show_links" type="list" label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL" description="COM_CONTACT_FIELD_SHOW_LINKS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="linka_name" type="text" label="COM_CONTACT_FIELD_LINKA_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkb_name" type="text" label="COM_CONTACT_FIELD_LINKB_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkc_name" type="text" label="COM_CONTACT_FIELD_LINKC_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkd_name" type="text" label="COM_CONTACT_FIELD_LINKD_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linke_name" type="text" label="COM_CONTACT_FIELD_LINKE_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" 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" description="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC" useglobal="true" class="chzn-color" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="redirect" type="text" label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL" description="COM_CONTACT_FIELD_CONFIG_REDIRECT_DESC" size="30" useglobal="true" /> </fieldset> </fields> </metadata> contact/tmpl/default_address.php000064400000007607152326013700013026 0ustar00<?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; /** * Marker_class: Class based on the selection of text, none, or icons * jicon-text, jicon-none, jicon-icon */ ?> <dl class="contact-address dl-horizontal" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> <?php if (($this->params->get('address_check') > 0) && ($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : ?> <dt> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_address'); ?> </span> </dt> <?php if ($this->contact->address && $this->params->get('show_street_address')) : ?> <dd> <span class="contact-street" itemprop="streetAddress"> <?php echo nl2br($this->contact->address); ?> <br /> </span> </dd> <?php endif; ?> <?php if ($this->contact->suburb && $this->params->get('show_suburb')) : ?> <dd> <span class="contact-suburb" itemprop="addressLocality"> <?php echo $this->contact->suburb; ?> <br /> </span> </dd> <?php endif; ?> <?php if ($this->contact->state && $this->params->get('show_state')) : ?> <dd> <span class="contact-state" itemprop="addressRegion"> <?php echo $this->contact->state; ?> <br /> </span> </dd> <?php endif; ?> <?php if ($this->contact->postcode && $this->params->get('show_postcode')) : ?> <dd> <span class="contact-postcode" itemprop="postalCode"> <?php echo $this->contact->postcode; ?> <br /> </span> </dd> <?php endif; ?> <?php if ($this->contact->country && $this->params->get('show_country')) : ?> <dd> <span class="contact-country" itemprop="addressCountry"> <?php echo $this->contact->country; ?> <br /> </span> </dd> <?php endif; ?> <?php endif; ?> <?php if ($this->contact->email_to && $this->params->get('show_email')) : ?> <dt> <span class="<?php echo $this->params->get('marker_class'); ?>" itemprop="email"> <?php echo nl2br($this->params->get('marker_email')); ?> </span> </dt> <dd> <span class="contact-emailto"> <?php echo $this->contact->email_to; ?> </span> </dd> <?php endif; ?> <?php if ($this->contact->telephone && $this->params->get('show_telephone')) : ?> <dt> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_telephone'); ?> </span> </dt> <dd> <span class="contact-telephone" itemprop="telephone"> <?php echo $this->contact->telephone; ?> </span> </dd> <?php endif; ?> <?php if ($this->contact->fax && $this->params->get('show_fax')) : ?> <dt> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_fax'); ?> </span> </dt> <dd> <span class="contact-fax" itemprop="faxNumber"> <?php echo $this->contact->fax; ?> </span> </dd> <?php endif; ?> <?php if ($this->contact->mobile && $this->params->get('show_mobile')) : ?> <dt> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_mobile'); ?> </span> </dt> <dd> <span class="contact-mobile" itemprop="telephone"> <?php echo $this->contact->mobile; ?> </span> </dd> <?php endif; ?> <?php if ($this->contact->webpage && $this->params->get('show_webpage')) : ?> <dt> <span class="<?php echo $this->params->get('marker_class'); ?>"> <?php echo $this->params->get('marker_webpage'); ?> </span> </dt> <dd> <span class="contact-webpage"> <a href="<?php echo $this->contact->webpage; ?>" target="_blank" rel="noopener noreferrer" itemprop="url"> <?php echo JStringPunycode::urlToUTF8($this->contact->webpage); ?></a> </span> </dd> <?php endif; ?> </dl> contact/tmpl/default_articles.php000064400000001441152326013700013175 0ustar00<?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; JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php'); ?> <?php if ($this->params->get('show_articles')) : ?> <div class="contact-articles"> <ul class="nav nav-tabs nav-stacked"> <?php foreach ($this->item->articles as $article) : ?> <li> <?php echo JHtml::_('link', JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> contact/tmpl/default_form.php000064400000003176152326013700012341 0ustar00<?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; JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidator'); ?> <div class="contact-form"> <form id="contact-form" action="<?php echo JRoute::_('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> <?php if (isset($fieldset->label) && ($legend = trim(JText::_($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; ?> <div class="control-group"> <div class="controls"> <button class="btn btn-primary validate" type="submit"><?php echo JText::_('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->contact->slug; ?>" /> <?php echo JHtml::_('form.token'); ?> </div> </div> </form> </div> contact/tmpl/default_links.php000064400000003231152326013700012506 0ustar00<?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; ?> <?php if ($this->params->get('presentation_style') === 'sliders') : ?> <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_LINKS'), 'display-links'); ?> <?php endif; ?> <?php if ($this->params->get('presentation_style') === 'tabs') : ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-links', JText::_('COM_CONTACT_LINKS')); ?> <?php endif; ?> <?php if ($this->params->get('presentation_style') === 'plain') : ?> <?php echo '<h3>' . JText::_('COM_CONTACT_LINKS') . '</h3>'; ?> <?php endif; ?> <div class="contact-links"> <ul class="nav nav-tabs nav-stacked"> <?php // Letters 'a' to 'e' foreach (range('a', 'e') as $char) : $link = $this->contact->params->get('link' . $char); $label = $this->contact->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"> <?php echo $label; ?> </a> </li> <?php endforeach; ?> </ul> </div> <?php if ($this->params->get('presentation_style') === 'sliders') : ?> <?php echo JHtml::_('bootstrap.endSlide'); ?> <?php endif; ?> <?php if ($this->params->get('presentation_style') === 'tabs') : ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> contact/tmpl/default_profile.php000064400000002525152326013700013033 0ustar00<?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; ?> <?php if (JPluginHelper::isEnabled('user', 'profile')) : $fields = $this->item->profile->getFieldset('profile'); ?> <div class="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 . '">' . JStringPunycode::urlToUTF8($profile->text) . '</a></dd>'; else : echo '<dd><a href="http://' . $profile->text . '">' . JStringPunycode::urlToUTF8($profile->text) . '</a></dd>'; endif; break; case 'profile_dob': echo '<dd>' . JHtml::_('date', $profile->text, JText::_('DATE_FORMAT_LC4'), false) . '</dd>'; break; default: echo '<dd>' . $profile->text . '</dd>'; break; endswitch; endif; endforeach; ?> </dl> </div> <?php endif; ?> contact/tmpl/default_user_custom_fields.php000064400000004415152326013700015271 0ustar00<?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; $params = $this->item->params; $presentation_style = $params->get('presentation_style'); $displayGroups = $params->get('show_user_custom_fields'); $userFieldGroups = array(); ?> <?php if (!$displayGroups || !$this->contactUser) : ?> <?php return; ?> <?php endif; ?> <?php foreach ($this->contactUser->jcfields as $field) : ?> <?php if (!in_array('-1', $displayGroups) && (!$field->group_id || !in_array($field->group_id, $displayGroups))) : ?> <?php continue; ?> <?php endif; ?> <?php if (!key_exists($field->group_title, $userFieldGroups)) : ?> <?php $userFieldGroups[$field->group_title] = array(); ?> <?php endif; ?> <?php $userFieldGroups[$field->group_title][] = $field; ?> <?php endforeach; ?> <?php foreach ($userFieldGroups as $groupTitle => $fields) : ?> <?php $id = JApplicationHelper::stringURLSafe($groupTitle); ?> <?php if ($presentation_style == 'sliders') : ?> <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', $groupTitle ?: JText::_('COM_CONTACT_USER_FIELDS'), 'display-' . $id); ?> <?php elseif ($presentation_style == 'tabs') : ?> <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-' . $id, $groupTitle ?: JText::_('COM_CONTACT_USER_FIELDS')); ?> <?php elseif ($presentation_style == 'plain') : ?> <?php echo '<h3>' . ($groupTitle ?: JText::_('COM_CONTACT_USER_FIELDS')) . '</h3>'; ?> <?php endif; ?> <div class="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>' . JText::_($field->label) . '</dt>'; ?> <?php endif; ?> <?php echo '<dd>' . $field->value . '</dd>'; ?> <?php endforeach; ?> </dl> </div> <?php if ($presentation_style == 'sliders') : ?> <?php echo JHtml::_('bootstrap.endSlide'); ?> <?php elseif ($presentation_style == 'tabs') : ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> <?php endforeach; ?> contact/tmpl/index.html000064400000000037152326013700011147 0ustar00<!DOCTYPE html><title></title> contact/index.html000064400000000037152326013700010173 0ustar00<!DOCTYPE html><title></title> contact/view.html.php000064400000034512152326013700010631 0ustar00<?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; /** * HTML Contact View class for the Contact component * * @since 1.5 */ class ContactViewContact extends JViewLegacy { /** * The item model state * * @var \Joomla\Registry\Registry * @since 1.6 */ protected $state; /** * The form object for the contact item * * @var JForm * @since 1.6 */ protected $form; /** * The item object details * * @var JObject * @since 1.6 */ protected $item; /** * The page to return to on submission * * @var string * @since 1.6 * @deprecated 4.0 Variable not used */ protected $return_page; /** * Should we show a captcha form for the submission of the contact request? * * @var bool * @since 3.6.3 */ protected $captchaEnabled = false; /** * Execute and display a template script. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise an Error object. */ public function display($tpl = null) { $app = JFactory::getApplication(); $user = JFactory::getUser(); $item = $this->get('Item'); $state = $this->get('State'); $contacts = array(); // Get submitted values $data = $app->getUserState('com_contact.contact.data', array()); // Add catid for selecting custom fields $data['catid'] = $item->catid; $app->setUserState('com_contact.contact.data', $data); $this->form = $this->get('Form'); $params = $state->get('params'); $temp = clone $params; $active = $app->getMenu()->getActive(); if ($active) { // If the current view is the active item and a contact view for this contact, then the menu item params take priority if (strpos($active->link, 'view=contact') && strpos($active->link, '&id=' . (int) $item->id)) { // $item->params are the contact params, $temp are the menu item params // Merge so that the menu item params take priority $item->params->merge($temp); } else { // Current view is not a single contact, so the contact params take priority here // Merge the menu item params with the contact params so that the contact params take priority $temp->merge($item->params); $item->params = $temp; } } else { // Merge so that contact params take priority $temp->merge($item->params); $item->params = $temp; } // Collect extra contact information when this information is required if ($item && $item->params->get('show_contact_list')) { // Get Category Model data $categoryModel = JModelLegacy::getInstance('Category', 'ContactModel', array('ignore_request' => true)); $categoryModel->setState('category.id', $item->catid); $categoryModel->setState('list.ordering', 'a.name'); $categoryModel->setState('list.direction', 'asc'); $categoryModel->setState('filter.published', 1); $contacts = $categoryModel->getItems(); } // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseWarning(500, implode("\n", $errors)); return false; } // Check if access is not public $groups = $user->getAuthorisedViewLevels(); $return = ''; if ((!in_array($item->access, $groups)) || (!in_array($item->category_access, $groups))) { $app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error'); $app->setHeader('status', 403, true); return false; } $options['category_id'] = $item->catid; $options['order by'] = 'a.default_con DESC, a.ordering ASC'; /** * Handle email cloaking * * Keep a copy of the raw email address so it can * still be accessed in the layout if needed. */ $item->email_raw = $item->email_to; if ($item->email_to && $item->params->get('show_email')) { $item->email_to = JHtml::_('email.cloak', $item->email_to, (bool) $item->params->get('add_mailto_link', true)); } if ($item->params->get('show_street_address') || $item->params->get('show_suburb') || $item->params->get('show_state') || $item->params->get('show_postcode') || $item->params->get('show_country')) { if (!empty($item->address) || !empty($item->suburb) || !empty($item->state) || !empty($item->country) || !empty($item->postcode)) { $item->params->set('address_check', 1); } } else { $item->params->set('address_check', 0); } // Manage the display mode for contact detail groups switch ($item->params->get('contact_icons')) { case 1 : // Text $item->params->set('marker_address', JText::_('COM_CONTACT_ADDRESS') . ': '); $item->params->set('marker_email', JText::_('JGLOBAL_EMAIL') . ': '); $item->params->set('marker_telephone', JText::_('COM_CONTACT_TELEPHONE') . ': '); $item->params->set('marker_fax', JText::_('COM_CONTACT_FAX') . ': '); $item->params->set('marker_mobile', JText::_('COM_CONTACT_MOBILE') . ': '); $item->params->set('marker_webpage', JText::_('COM_CONTACT_WEBPAGE') . ': '); $item->params->set('marker_misc', JText::_('COM_CONTACT_OTHER_INFORMATION') . ': '); $item->params->set('marker_class', 'jicons-text'); break; case 2 : // None $item->params->set('marker_address', ''); $item->params->set('marker_email', ''); $item->params->set('marker_telephone', ''); $item->params->set('marker_mobile', ''); $item->params->set('marker_webpage', ''); $item->params->set('marker_fax', ''); $item->params->set('marker_misc', ''); $item->params->set('marker_class', 'jicons-none'); break; default : if ($item->params->get('icon_address')) { $image1 = JHtml::_('image', $item->params->get('icon_address', 'con_address.png'), JText::_('COM_CONTACT_ADDRESS') . ': ', null, false); } else { $image1 = JHtml::_( 'image', 'contacts/' . $item->params->get('icon_address', 'con_address.png'), JText::_('COM_CONTACT_ADDRESS') . ': ', null, true ); } if ($item->params->get('icon_email')) { $image2 = JHtml::_('image', $item->params->get('icon_email', 'emailButton.png'), JText::_('JGLOBAL_EMAIL') . ': ', null, false); } else { $image2 = JHtml::_('image', 'contacts/' . $item->params->get('icon_email', 'emailButton.png'), JText::_('JGLOBAL_EMAIL') . ': ', null, true); } if ($item->params->get('icon_telephone')) { $image3 = JHtml::_('image', $item->params->get('icon_telephone', 'con_tel.png'), JText::_('COM_CONTACT_TELEPHONE') . ': ', null, false); } else { $image3 = JHtml::_( 'image', 'contacts/' . $item->params->get('icon_telephone', 'con_tel.png'), JText::_('COM_CONTACT_TELEPHONE') . ': ', null, true ); } if ($item->params->get('icon_fax')) { $image4 = JHtml::_('image', $item->params->get('icon_fax', 'con_fax.png'), JText::_('COM_CONTACT_FAX') . ': ', null, false); } else { $image4 = JHtml::_('image', 'contacts/' . $item->params->get('icon_fax', 'con_fax.png'), JText::_('COM_CONTACT_FAX') . ': ', null, true); } if ($item->params->get('icon_misc')) { $image5 = JHtml::_('image', $item->params->get('icon_misc', 'con_info.png'), JText::_('COM_CONTACT_OTHER_INFORMATION') . ': ', null, false); } else { $image5 = JHtml::_( 'image', 'contacts/' . $item->params->get('icon_misc', 'con_info.png'), JText::_('COM_CONTACT_OTHER_INFORMATION') . ': ', null, true ); } if ($item->params->get('icon_mobile')) { $image6 = JHtml::_('image', $item->params->get('icon_mobile', 'con_mobile.png'), JText::_('COM_CONTACT_MOBILE') . ': ', null, false); } else { $image6 = JHtml::_( 'image', 'contacts/' . $item->params->get('icon_mobile', 'con_mobile.png'), JText::_('COM_CONTACT_MOBILE') . ': ', null, true ); } $item->params->set('marker_address', $image1); $item->params->set('marker_email', $image2); $item->params->set('marker_telephone', $image3); $item->params->set('marker_fax', $image4); $item->params->set('marker_misc', $image5); $item->params->set('marker_mobile', $image6); $item->params->set('marker_webpage', ' '); $item->params->set('marker_class', 'jicons-icons'); break; } // Add links to contacts if ($item->params->get('show_contact_list') && count($contacts) > 1) { foreach ($contacts as &$contact) { $contact->link = JRoute::_(ContactHelperRoute::getContactRoute($contact->slug, $contact->catid), false); } $item->link = JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid), false); } // Process the content plugins JPluginHelper::importPlugin('content'); $dispatcher = JEventDispatcher::getInstance(); $offset = $state->get('list.offset'); // Fix for where some plugins require a text attribute $item->text = null; if (!empty($item->misc)) { $item->text = $item->misc; } $dispatcher->trigger('onContentPrepare', array('com_contact.contact', &$item, &$item->params, $offset)); // Store the events for later $item->event = new stdClass; $results = $dispatcher->trigger('onContentAfterTitle', array('com_contact.contact', &$item, &$item->params, $offset)); $item->event->afterDisplayTitle = trim(implode("\n", $results)); $results = $dispatcher->trigger('onContentBeforeDisplay', array('com_contact.contact', &$item, &$item->params, $offset)); $item->event->beforeDisplayContent = trim(implode("\n", $results)); $results = $dispatcher->trigger('onContentAfterDisplay', array('com_contact.contact', &$item, &$item->params, $offset)); $item->event->afterDisplayContent = trim(implode("\n", $results)); if (!empty($item->text)) { $item->misc = $item->text; } $contactUser = null; if ($item->params->get('show_user_custom_fields') && $item->user_id && $contactUser = JFactory::getUser($item->user_id)) { $contactUser->text = ''; JEventDispatcher::getInstance()->trigger('onContentPrepare', array ('com_users.user', &$contactUser, &$item->params, 0)); if (!isset($contactUser->jcfields)) { $contactUser->jcfields = array(); } } // Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($item->params->get('pageclass_sfx', '')); $this->contact = &$item; $this->params = &$item->params; $this->return = &$return; $this->state = &$state; $this->item = &$item; $this->user = &$user; $this->contacts = &$contacts; $this->contactUser = $contactUser; // Override the layout only if this is not the active menu item // If it is the active menu item, then the view and item id will match if ((!$active) || ((strpos($active->link, 'view=contact') === false) || (strpos($active->link, '&id=' . (string) $this->item->id) === false))) { if (($layout = $item->params->get('contact_layout'))) { $this->setLayout($layout); } } elseif (isset($active->query['layout'])) { // We need to set the layout in case this is an alternative menu item (with an alternative layout) $this->setLayout($active->query['layout']); } $model = $this->getModel(); $model->hit(); $captchaSet = $item->params->get('captcha', JFactory::getApplication()->get('captcha', '0')); foreach (JPluginHelper::getPlugin('captcha') as $plugin) { if ($captchaSet === $plugin->name) { $this->captchaEnabled = true; break; } } $this->_prepareDocument(); return parent::display($tpl); } /** * Prepares the document * * @return void * * @since 1.6 */ protected function _prepareDocument() { $app = JFactory::getApplication(); $menus = $app->getMenu(); $pathway = $app->getPathway(); $title = null; // Because the application sets a default page title, // we need to get it from the menu item itself $menu = $menus->getActive(); if ($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); } else { $this->params->def('page_heading', JText::_('COM_CONTACT_DEFAULT_PAGE_TITLE')); } $title = $this->params->get('page_title', ''); $id = (int) @$menu->query['id']; // If the menu item does not concern this contact if ($menu && (!isset($menu->query['option']) || $menu->query['option'] !== 'com_contact' || $menu->query['view'] !== 'contact' || $id != $this->item->id)) { // If this is not a single contact menu item, set the page title to the contact title if ($this->item->name) { $title = $this->item->name; } $path = array(array('title' => $this->contact->name, 'link' => '')); $category = JCategories::getInstance('Contact')->get($this->contact->catid); while ($category && (!isset($menu->query['option']) || $menu->query['option'] !== 'com_contact' || $menu->query['view'] === 'contact' || $id != $category->id) && $category->id > 1) { $path[] = array('title' => $category->title, 'link' => ContactHelperRoute::getCategoryRoute($this->contact->catid)); $category = $category->getParent(); } $path = array_reverse($path); foreach ($path as $item) { $pathway->addItem($item['title'], $item['link']); } } if (empty($title)) { $title = $app->get('sitename'); } elseif ($app->get('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->get('sitename'), $title); } elseif ($app->get('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->get('sitename')); } if (empty($title)) { $title = $this->item->name; } $this->document->setTitle($title); if ($this->item->metadesc) { $this->document->setDescription($this->item->metadesc); } elseif ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } if ($this->item->metakey) { $this->document->setMetadata('keywords', $this->item->metakey); } elseif ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } $mdata = $this->item->metadata->toArray(); foreach ($mdata as $k => $v) { if ($v) { $this->document->setMetadata($k, $v); } } } } contact/view.vcf.php000064400000006225152326013700010443 0ustar00<?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * View to create a VCF for a contact item * * @since 1.6 */ class ContactViewContact extends JViewLegacy { /** * The item model state * * @var \Joomla\Registry\Registry * @deprecated 4.0 Variable not used */ protected $state; /** * The contact item * * @var JObject */ protected $item; /** * Execute and display a template script. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise an Error object. */ public function display($tpl = null) { // Get model data. $item = $this->get('Item'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseWarning(500, implode("\n", $errors)); return false; } JFactory::getDocument()->setMimeEncoding('text/directory', true); // Compute lastname, firstname and middlename $item->name = trim($item->name); // "Lastname, Firstname Midlename" format support // e.g. "de Gaulle, Charles" $namearray = explode(',', $item->name); if (count($namearray) > 1) { $lastname = $namearray[0]; $card_name = $lastname; $name_and_midname = trim($namearray[1]); $firstname = ''; if (!empty($name_and_midname)) { $namearray = explode(' ', $name_and_midname); $firstname = $namearray[0]; $middlename = (count($namearray) > 1) ? $namearray[1] : ''; $card_name = $firstname . ' ' . ($middlename ? $middlename . ' ' : '') . $card_name; } } // "Firstname Middlename Lastname" format support else { $namearray = explode(' ', $item->name); $middlename = (count($namearray) > 2) ? $namearray[1] : ''; $firstname = array_shift($namearray); $lastname = count($namearray) ? end($namearray) : ''; $card_name = $firstname . ($middlename ? ' ' . $middlename : '') . ($lastname ? ' ' . $lastname : ''); } $rev = date('c', strtotime($item->modified)); JFactory::getApplication()->setHeader('Content-disposition', 'attachment; filename="' . $card_name . '.vcf"', true); $vcard = array(); $vcard[] .= 'BEGIN:VCARD'; $vcard[] .= 'VERSION:3.0'; $vcard[] = 'N:' . $lastname . ';' . $firstname . ';' . $middlename; $vcard[] = 'FN:' . $item->name; $vcard[] = 'TITLE:' . $item->con_position; $vcard[] = 'TEL;TYPE=WORK,VOICE:' . $item->telephone; $vcard[] = 'TEL;TYPE=WORK,FAX:' . $item->fax; $vcard[] = 'TEL;TYPE=WORK,MOBILE:' . $item->mobile; $vcard[] = 'ADR;TYPE=WORK:;;' . $item->address . ';' . $item->suburb . ';' . $item->state . ';' . $item->postcode . ';' . $item->country; $vcard[] = 'LABEL;TYPE=WORK:' . $item->address . "\n" . $item->suburb . "\n" . $item->state . "\n" . $item->postcode . "\n" . $item->country; $vcard[] = 'EMAIL;TYPE=PREF,INTERNET:' . $item->email_to; $vcard[] = 'URL:' . $item->webpage; $vcard[] = 'REV:' . $rev . 'Z'; $vcard[] = 'END:VCARD'; echo implode("\n", $vcard); } } featured/tmpl/default.php000064400000002155152326013700011456 0ustar00<?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); // If the page class is defined, add to class as suffix. // It will be a separate class if the user starts it with a space ?> <div class="blog-featured<?php echo $this->pageclass_sfx; ?>"> <?php if ($this->params->get('show_page_heading') != 0 ) : ?> <h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1> <?php endif; ?> <?php echo $this->loadTemplate('items'); ?> <?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?> <div class="pagination"> <?php if ($this->params->def('show_pagination_results', 1)) : ?> <p class="counter"> <?php echo $this->pagination->getPagesCounter(); ?> </p> <?php endif; ?> <?php echo $this->pagination->getPagesLinks(); ?> </div> <?php endif; ?> </div> featured/tmpl/default.xml000064400000032237152326013700011473 0ustar00<?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_CONTACT_FEATURED_VIEW_DEFAULT_TITLE" option="COM_CONTACT_FEATURED_VIEW_DEFAULT_OPTION"> <help key = "JHELP_MENUS_MENU_ITEM_CONTACT_FEATURED" /> <message> <![CDATA[COM_CONTACT_FEATURED_VIEW_DEFAULT_DESC]]> </message> </layout> <!-- Add fields to the parameters object for the layout. --> <fields name="params"> <fieldset name="advanced" label="JGLOBAL_LIST_LAYOUT_OPTIONS"> <field name="spacer" type="spacer" label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL" class="text" /> <field name="show_pagination_limit" type="list" label="JGLOBAL_DISPLAY_SELECT_LABEL" description="JGLOBAL_DISPLAY_SELECT_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_headings" type="list" label="JGLOBAL_SHOW_HEADINGS_LABEL" description="JGLOBAL_SHOW_HEADINGS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_position_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL" description="COM_CONTACT_FIELD_CONFIG_POSITION_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email_headings" type="list" label="JGLOBAL_EMAIL" description="COM_CONTACT_FIELD_CONFIG_EMAIL_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_telephone_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL" description="COM_CONTACT_FIELD_CONFIG_PHONE_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_mobile_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL" description="COM_CONTACT_FIELD_CONFIG_MOBILE_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_fax_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL" description="COM_CONTACT_FIELD_CONFIG_FAX_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_suburb_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL" description="COM_CONTACT_FIELD_CONFIG_SUBURB_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_state_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL" description="COM_CONTACT_FIELD_CONFIG_STATE_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_country_headings" type="list" label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL" description="COM_CONTACT_FIELD_CONFIG_COUNTRY_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_pagination" type="list" label="JGLOBAL_PAGINATION_LABEL" description="JGLOBAL_PAGINATION_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> <option value="2">JGLOBAL_AUTO</option> </field> <field name="show_pagination_results" type="list" label="JGLOBAL_PAGINATION_RESULTS_LABEL" description="JGLOBAL_PAGINATION_RESULTS_DESC" useglobal="true" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> <fieldset name="contact" label="COM_CONTACT_FIELDSET_CONTACT_LABEL"> <field name="presentation_style" type="list" label="COM_CONTACT_FIELD_PRESENTATION_LABEL" description="COM_CONTACT_FIELD_PRESENTATION_DESC" useglobal="true" > <option value="sliders">COM_CONTACT_FIELD_VALUE_SLIDERS</option> <option value="tabs">COM_CONTACT_FIELD_VALUE_TABS</option> <option value="plain">COM_CONTACT_FIELD_VALUE_PLAIN</option> </field> <field name="show_tags" type="list" label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL" description="COM_CONTACT_FIELD_SHOW_TAGS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_info" type="list" label="COM_CONTACT_FIELD_SHOW_INFO_LABEL" description="COM_CONTACT_FIELD_SHOW_INFO_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_name" type="list" label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL" description="COM_CONTACT_FIELD_PARAMS_NAME_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_email" type="list" label="JGLOBAL_EMAIL" description="COM_CONTACT_FIELD_PARAMS_CONTACT_E_MAIL_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_street_address" type="list" label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL" description="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_country" type="list" label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL" description="COM_CONTACT_FIELD_PARAMS_COUNTRY_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_telephone" type="list" label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL" description="COM_CONTACT_FIELD_PARAMS_TELEPHONE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_mobile" type="list" label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL" description="COM_CONTACT_FIELD_PARAMS_MOBILE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_fax" type="list" label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL" description="COM_CONTACT_FIELD_PARAMS_FAX_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_webpage" type="list" label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL" description="COM_CONTACT_FIELD_PARAMS_WEBPAGE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_image" type="list" label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL" description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC" useglobal="true" showon="show_info:1" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="allow_vcard" type="list" label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL" description="COM_CONTACT_FIELD_PARAMS_VCARD_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_PARAMS_MISC_INFO_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_articles" type="list" label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL" description="COM_CONTACT_FIELD_ARTICLES_SHOW_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_DESC" default="" useglobal="true" > <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_links" type="list" label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL" description="COM_CONTACT_FIELD_SHOW_LINKS_DESC" useglobal="true" class="chzn-color" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="linka_name" type="text" label="COM_CONTACT_FIELD_LINKA_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkb_name" type="text" label="COM_CONTACT_FIELD_LINKB_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkc_name" type="text" label="COM_CONTACT_FIELD_LINKC_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linkd_name" type="text" label="COM_CONTACT_FIELD_LINKD_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> <field name="linke_name" type="text" label="COM_CONTACT_FIELD_LINKE_NAME_LABEL" description="COM_CONTACT_FIELD_LINK_NAME_DESC" size="30" useglobal="true" /> </fieldset> <fieldset name="Contact_Form" label="COM_CONTACT_FIELDSET_CONTACTFORM_LABEL"> <field name="show_email_form" type="list" label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL" description="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_DESC" useglobal="true" class="chzn-color" > <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" description="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC" useglobal="true" class="chzn-color" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="redirect" type="text" label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL" description="COM_CONTACT_FIELD_CONFIG_REDIRECT_DESC" size="30" useglobal="true" /> </fieldset> </fields> </metadata> featured/tmpl/default_items.php000064400000012654152326013700012664 0ustar00<?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.core'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?> <?php if (empty($this->items)) : ?> <p> <?php echo JText::_('COM_CONTACT_NO_CONTACTS'); ?> </p> <?php else : ?> <form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm"> <fieldset class="filters"> <legend class="hidelabeltxt"><?php echo JText::_('JGLOBAL_FILTER_LABEL'); ?></legend> <?php if ($this->params->get('show_pagination_limit')) : ?> <div class="display-limit"> <?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>  <?php echo $this->pagination->getLimitBox(); ?> </div> <?php endif; ?> <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" /> <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" /> </fieldset> <table class="category"> <?php if ($this->params->get('show_headings')) : ?> <thead><tr> <th class="item-num"> <?php echo JText::_('JGLOBAL_NUM'); ?> </th> <th class="item-title"> <?php echo JHtml::_('grid.sort', 'COM_CONTACT_CONTACT_EMAIL_NAME_LABEL', 'a.name', $listDirn, $listOrder); ?> </th> <?php if ($this->params->get('show_position_headings')) : ?> <th class="item-position"> <?php echo JHtml::_('grid.sort', 'COM_CONTACT_POSITION', 'a.con_position', $listDirn, $listOrder); ?> </th> <?php endif; ?> <?php if ($this->params->get('show_email_headings')) : ?> <th class="item-email"> <?php echo JText::_('JGLOBAL_EMAIL'); ?> </th> <?php endif; ?> <?php if ($this->params->get('show_telephone_headings')) : ?> <th class="item-phone"> <?php echo JText::_('COM_CONTACT_TELEPHONE'); ?> </th> <?php endif; ?> <?php if ($this->params->get('show_mobile_headings')) : ?> <th class="item-phone"> <?php echo JText::_('COM_CONTACT_MOBILE'); ?> </th> <?php endif; ?> <?php if ($this->params->get('show_fax_headings')) : ?> <th class="item-phone"> <?php echo JText::_('COM_CONTACT_FAX'); ?> </th> <?php endif; ?> <?php if ($this->params->get('show_suburb_headings')) : ?> <th class="item-suburb"> <?php echo JHtml::_('grid.sort', 'COM_CONTACT_SUBURB', 'a.suburb', $listDirn, $listOrder); ?> </th> <?php endif; ?> <?php if ($this->params->get('show_state_headings')) : ?> <th class="item-state"> <?php echo JHtml::_('grid.sort', 'COM_CONTACT_STATE', 'a.state', $listDirn, $listOrder); ?> </th> <?php endif; ?> <?php if ($this->params->get('show_country_headings')) : ?> <th class="item-state"> <?php echo JHtml::_('grid.sort', 'COM_CONTACT_COUNTRY', 'a.country', $listDirn, $listOrder); ?> </th> <?php endif; ?> </tr> </thead> <?php endif; ?> <tbody> <?php foreach ($this->items as $i => $item) : ?> <tr class="<?php echo ($i % 2) ? 'odd' : 'even'; ?>" itemscope itemtype="https://schema.org/Person"> <td class="item-num"> <?php echo $i; ?> </td> <td class="item-title"> <?php if ($this->items[$i]->published == 0) : ?> <span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span> <?php endif; ?> <a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>" itemprop="url"> <span itemprop="name"><?php echo $item->name; ?></span> </a> </td> <?php if ($this->params->get('show_position_headings')) : ?> <td class="item-position" itemprop="jobTitle"> <?php echo $item->con_position; ?> </td> <?php endif; ?> <?php if ($this->params->get('show_email_headings')) : ?> <td class="item-email" itemprop="email"> <?php echo $item->email_to; ?> </td> <?php endif; ?> <?php if ($this->params->get('show_telephone_headings')) : ?> <td class="item-phone" itemprop="telephone"> <?php echo $item->telephone; ?> </td> <?php endif; ?> <?php if ($this->params->get('show_mobile_headings')) : ?> <td class="item-phone" itemprop="telephone"> <?php echo $item->mobile; ?> </td> <?php endif; ?> <?php if ($this->params->get('show_fax_headings')) : ?> <td class="item-phone" itemprop="faxNumber"> <?php echo $item->fax; ?> </td> <?php endif; ?> <?php if ($this->params->get('show_suburb_headings')) : ?> <td class="item-suburb" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> <span itemprop="addressLocality"><?php echo $item->suburb; ?></span> </td> <?php endif; ?> <?php if ($this->params->get('show_state_headings')) : ?> <td class="item-state" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> <span itemprop="addressRegion"><?php echo $item->state; ?></span> </td> <?php endif; ?> <?php if ($this->params->get('show_country_headings')) : ?> <td class="item-state" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> <span itemprop="addressCountry"><?php echo $item->country; ?></span> </td> <?php endif; ?> </tr> <?php endforeach; ?> </tbody> </table> </form> <?php endif; ?> featured/tmpl/index.html000064400000000037152326013700011313 0ustar00<!DOCTYPE html><title></title> featured/index.html000064400000000037152326013700010337 0ustar00<!DOCTYPE html><title></title> featured/view.html.php000064400000010721152326013700010771 0ustar00<?php /** * @package Joomla.Site * @subpackage com_contact * * @copyright (C) 2010 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\Registry\Registry; /** * Featured View class * * @since 1.6 */ class ContactViewFeatured extends JViewLegacy { /** * The item model state * * @var \Joomla\Registry\Registry * @since 1.6.0 */ protected $state; /** * The item details * * @var JObject * @since 1.6.0 */ protected $items; /** * Who knows what this variable was intended for - but it's never been used * * @var array * @since 1.6.0 * @deprecated 4.0 This variable has been null since 1.6.0-beta8 */ protected $category; /** * Who knows what this variable was intended for - but it's never been used * * @var JObject Maybe. * @since 1.6.0 * @deprecated 4.0 This variable has never been used ever */ protected $categories; /** * The pagination object * * @var JPagination * @since 1.6.0 */ protected $pagination; /** * Method to display the view. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed Exception on failure, void on success. * * @since 1.6 */ public function display($tpl = null) { $app = JFactory::getApplication(); $params = $app->getParams(); // Get some data from the models $state = $this->get('State'); $items = $this->get('Items'); $category = $this->get('Category'); $children = $this->get('Children'); $parent = $this->get('Parent'); $pagination = $this->get('Pagination'); // Flag indicates to not add limitstart=0 to URL $pagination->hideEmptyLimitstart = true; // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseWarning(500, implode("\n", $errors)); return false; } // Prepare the data. // Compute the contact slug. for ($i = 0, $n = count($items); $i < $n; $i++) { $item = &$items[$i]; $item->slug = $item->alias ? ($item->id . ':' . $item->alias) : $item->id; $temp = $item->params; $item->params = clone $params; $item->params->merge($temp); if ($item->params->get('show_email', 0) == 1) { $item->email_to = trim($item->email_to); if (!empty($item->email_to) && JMailHelper::isEmailAddress($item->email_to)) { $item->email_to = JHtml::_('email.cloak', $item->email_to); } else { $item->email_to = ''; } } } // Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx', ''), ENT_COMPAT, 'UTF-8'); $maxLevel = $params->get('maxLevel', -1); $this->maxLevel = &$maxLevel; $this->state = &$state; $this->items = &$items; $this->category = &$category; $this->children = &$children; $this->params = &$params; $this->parent = &$parent; $this->pagination = &$pagination; $this->_prepareDocument(); return parent::display($tpl); } /** * Prepares the document * * @return void * * @since 1.6 */ protected function _prepareDocument() { $app = JFactory::getApplication(); $menus = $app->getMenu(); $title = null; // Because the application sets a default page title, // we need to get it from the menu item itself $menu = $menus->getActive(); if ($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); } else { $this->params->def('page_heading', JText::_('COM_CONTACT_DEFAULT_PAGE_TITLE')); } $title = $this->params->get('page_title', ''); if (empty($title)) { $title = $app->get('sitename'); } elseif ($app->get('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->get('sitename'), $title); } elseif ($app->get('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->get('sitename')); } $this->document->setTitle($title); if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } if ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } } } config/tmpl/ajax_config.php000064400000002236152326036460011760 0ustar00<?php /** * BDThemes Shortcodes Component * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com */ defined('_JEXEC') or die; require_once BDT_SU_CONFIG . '/inc/tools.php'; require_once BDT_SU_CONFIG . '/inc/wp_override.php'; require_once BDT_SU_CONFIG . '/data.php'; require_once BDT_SU_CONFIG . '/generator.php'; require_once BDT_SU_CONFIG . '/inc/generator-views.php'; $generator = new Su_Generator(); $action = $_REQUEST["action"]; switch ($action) { case 'su_generator_settings': $generator->settings(); break; case 'su_generator_add_preset': $generator->ajax_add_preset(); exit; break; case 'su_generator_preview': $generator->preview(); break; case 'su_generator_show_shortcode': $generator->show_shortcode(); break; case 'su_generator_get_icons': $generator->ajax_get_icons(); break; case 'su_generator_get_licons': $generator->ajax_get_licons(); break; default : break; }config/tmpl/default.php000064400000013046152326036460011135 0ustar00<?php /** * BDThemes Shortcodes Component * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com */ defined('_JEXEC') or die; $doc = JFactory::getDocument(); $doc->addStyleSheet(BDT_SU_URI . '/css/generator.css'); $doc->addStyleSheet(BDT_SU_URI . '/css/simpleslider.css'); $doc->addStyleSheet(BDT_SU_URI . '/css/farbtastic-rtl.min.css'); $doc->addStyleSheet(BDT_SU_URI . '/css/farbtastic.css'); $doc->addStyleSheet(BDT_SU_URI . '/css/linea.css'); JHtml::_('bootstrap.framework'); JHtml::_('jquery.ui', array('core', 'sortable')); $doc->addScript(BDT_SU_URI . '/js/simpleslider.js'); $doc->addScript(BDT_SU_URI . '/js/farbtastic.js'); $doc->addScript(BDT_SU_URI . '/js/generator.js'); JHtml::_('behavior.modal'); $doc->addScriptDeclaration(' function appendHtml(targetC, htmldata) { var theDiv = document.getElementById(targetC); theDiv.innerHTML = theDiv.innerHTML + htmldata; } function jInsertFieldValue(value,id) { if(id == "su-generator-attr-source") { var old_id = document.getElementById(id).value; if (old_id != "none") { document.getElementById(id).value = document.getElementById(id).value + "," + value; } else { var theDiv = document.getElementById("su-generator-attr-image").innerHTML =""; document.getElementById(id).value = "media: " + value; } value1 = \'<span data-id="\' + value + \'" title="\' + this.title + \'"><img src="'.JUri::root().'\' + value + \'" alt="" /><i class="fa fa-times"></i></span>\'; appendHtml( "su-generator-attr-image",value1); console.log(value1); jQuery("#"+id).trigger(\'keyup\'); } else { var old_id = document.getElementById(id).value; if (old_id != id) { document.getElementById(id).value = value; } jQuery("#"+id).trigger(\'keyup\'); } } '); $doc->addScriptDeclaration(' var ajaxurl = "' . ('index.php?option=com_bdthemes_shortcodes&view=config&layout=ajax_config&e_name='.$_REQUEST['e_name']) . '"; var ajaxurl_prev = "' . ('index.php?option=com_bdthemes_shortcodes&view=config&layout=ajax_config&layout=preview') . '"; '); ?> <div id="su-generator-wrap" style="display:block"> <div id="su-generator"> <div id="su-generator-header"> <div class="su-search-wrapper"> <a href="http://goo.gl/BCVIN6" target="_blank" title="<?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_NEED_HELP_DESC') ?>" class="su-help-link"><?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_NEED_HELP') ?></a> <a href="<?php echo JUri::base().'index.php?option=com_bdthemes_shortcodes&view=config&layout=generate_html&tmpl=component' ?>" target="_blank" style="right: 85px" title="<?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CHEATSHEET_DESC') ?>" class="su-help-link"><?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CHEATSHEET') ?></a> <input type="text" name="su_generator_search" id="su-generator-search" value="" placeholder="<?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SEARCH_DESC') ?>" /> <span class="su-search-hints"><?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SEARCH_HINTS'); ?></span> </div> <div id="su-generator-filter"> <strong><?php echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FILTER_DESC') ?></strong> <?php foreach ((array) Su_Data::groups() as $group => $label) echo '<a href="#" data-filter="' . $group . '">' . $label . '</a>'; ?> </div> <div id="su-generator-choices" class="su-generator-clearfix"> <?php // Choices loop foreach ((array) Su_Data::shortcodes() as $name => $shortcode) { $icon = ( isset($shortcode['icon']) ) ? $shortcode['icon'] : 'puzzle-piece'; $badge = (isset($shortcode['badge'])) ? '<strong class="sug-badge badge-'.strtolower($shortcode['badge']).'">'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODE_'.$shortcode['badge']).'</strong>' : ''; $shortcode['name'] = ( isset($shortcode['name']) ) ? $shortcode['name'] : $name; $visible = isset($shortcode['visible']) ? $shortcode['visible'] : true; if ($visible==true) { echo '<span data-name="' . $shortcode['name'] . '" data-shortcode="' . $name . '" title="' . ( $shortcode['desc'] ) . '" data-desc="' . ( $shortcode['desc'] ) . '" data-group="' . $shortcode['group'] . '">' . Su_Tools::icon($icon) . $shortcode['name'] .$badge . '</span>' . "\n"; } } ?> </div> </div> <input type="hidden" name="su-generator-selected" id="su-generator-selected" value="" /> <input type="hidden" name="su-generator-url" id="su-generator-url" value="" /> <input type="hidden" name="su-compatibility-mode-prefix" id="su-compatibility-mode-prefix" value="<?php echo su_compatibility_mode_prefix(); ?>" /> <div id="su-generator-settings"></div> <div id="su-generator-result" style="display:none"></div> </div> </div>config/tmpl/generate_html.php000064400000044326152326036460012334 0ustar00<?php // Check to ensure this file is included in Joomla! defined( '_JEXEC' ) or die( 'Restricted access' ); /** * BDThemes Shortcode Ultimate * * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com * */ JHtml::_('bootstrap.framework'); ?> <style type="text/css"> body { font-family: sans-serif; margin: 0px; padding: 1em !important; } .content_wrappwer { margin-bottom: 1em; } #su-cheatsheet-print-head{ margin-bottom: 15px; background: #f5f5f5; padding: 12px 20px; box-sizing: border-box; position: relative; } #su-cheatsheet-print-head h1{ text-align: left; font-size: 20px; text-transform: uppercase; } #su-cheatsheet-print-head label { display: inline-block; } #su-cheatsheet-print-head .su-search { position: absolute; right: 20px; top: 20px; } #su-cheatsheet-print-head .su-search input { padding: 7px; border: 1px solid #ddd; } .shortcode_example{ display: none; } #su-cheatsheet-screen ul{ margin: 0; } #su-cheatsheet-screen li{ margin-bottom: 0; border-bottom: 1px solid #E8E8E8; list-style: none; } #su-cheatsheet-screen .title{ font-weight: bold; background: #F7F7F7; color: #4E4E4E; margin: 0; padding: 12px; font-size: 14px; cursor: pointer; } #su-cheatsheet-screen .title:hover { background:#f4f4f4; color: #000; } #su-cheatsheet-screen .title .su-shortcode-icon{ margin-right: 10px; padding-right: 10px; border-right: 1px solid #e8e8e8; } #su-cheatsheet-screen .title .su-shortcode-icon i{ width: 1.28571429em; text-align: center; } #su-cheatsheet-screen table { width: 100%; margin: 0; border: solid 1px #ddd; background: #fff; } #su-cheatsheet-screen table thead { background: #f5f5f5; } #su-cheatsheet-screen table thead tr th, #su-cheatsheet-screen table thead tr td { padding: 0.8rem 1rem 0.8rem; color: #222; font-weight: bold; } #su-cheatsheet-screen table tfoot { background: #f5f5f5; } #su-cheatsheet-screen table tfoot tr th, #su-cheatsheet-screen table tfoot tr td { padding: 0.8rem 1rem 0.8rem; color: #222; font-weight: bold; } #su-cheatsheet-screen table tr th, #su-cheatsheet-screen table tr td { padding: 1em; color: #222; text-align: left; } #su-cheatsheet-screen table tr.even, #su-cheatsheet-screen table tr.alt, #su-cheatsheet-screen table tr:nth-of-type(even) { background: #f9f9f9; } #su-cheatsheet-screen table thead tr th, #su-cheatsheet-screen table tfoot tr th, #su-cheatsheet-screen table tfoot tr td, #su-cheatsheet-screen table tbody tr th, #su-cheatsheet-screen table tbody tr td, #su-cheatsheet-screen table tr td { display: table-cell; vertical-align: top; } #su-cheatsheet-screen table .su-shortcode-icon { display: inline-block; width: 24px; opacity: 0.5; filter: alpha(opacity=50); } #su-cheatsheet-screen table .su-shortcode-desc { font-size: 0.8em; color: #777; margin: 5px 0 0 0; font-style: normal; } #su-cheatsheet-screen table .su-shortcode-attribute { margin-top: 1.5em; color: #666; } #su-cheatsheet-screen table .su-shortcode-attribute:first-child { margin-top: 0; } #su-cheatsheet-screen table .su-shortcode-attribute p { font-size: .9em; line-height: 1.3em; background-color: #f5f5f5; padding: 5px 10px; margin: 0; } #su-cheatsheet-screen table .su-shortcode-attribute p:first-child { margin-top: 5px !important;} #su-cheatsheet-screen table .su-shortcode-attribute p:nth-child(odd) { background-color: #fff; } #su-cheatsheet-screen table .su-shortcode-attribute .su-atts-name { font-weight: bold; margin-bottom: 8px; } #su-cheatsheet-screen table .su-shortcode-attribute .su-atts-name, #su-cheatsheet-screen table .su-shortcode-attribute em { color: #000; font-style: normal; } #su-cheatsheet-screen table .su-shortcode-attribute .su-atts-name em { color: #666; font-weight: normal; font-style: normal; } #su-cheatsheet-screen table .code,#su-cheatsheet-screen table code { display: block; white-space: pre-wrap; font-family: monospace; max-width: 310px; } body.su-print-cheatsheet #su-cheatsheet-print { display: none; } .su-shortcode-attribute .su-atts-name pre { background: #FFECB2; padding: 0px 5px; font-size: 13px; font-weight: normal; margin: 0; display: inline-block; } code, kbd { padding: 10px; margin: 0 1px 10px; background: #eaeaea; background: rgba(0,0,0,.07); font-size: 13px; } .su-shortcode-note { background: rgba(52, 152, 219, 0.1); border: 2px solid rgba(52, 152, 219, 0.6); padding: 15px; margin: 10px 0; color: #000; font-size: 13px; } </style> <div class="content_wrappwer" id="result"> <div id="su-cheatsheet-screen"> <div> <div id="su-cheatsheet-print-head"> <h1>Shortcodes Ultimate: Cheatsheet</h1> <div class="su-search"> <input id="search" value="" placeholder="Search Shortcode" size="30" autofocus /> </div> </div> </div> <ul> <?php foreach ((array) Su_Data::shortcodes() as $name => $shortcode) { $visible = isset($shortcode['visible']) ? $shortcode['visible'] : true; if ($visible == FALSE) { continue; } $ex_code = '[' . $name . ' '; $icon = ( isset($shortcode['icon']) ) ? $shortcode['icon'] : 'puzzle-piece'; $shortcode['name'] = ( isset($shortcode['name']) ) ? $shortcode['name'] : $name; $attrs = @$shortcode["atts"]; $content = @$shortcode["content"]; ?> <li> <p class="title"><span class="su-shortcode-icon"><?php echo Su_Tools::icon($icon) ?></span><?php echo $shortcode['name'] ?> <span style="display: none"><?php echo strtolower($shortcode['name']) ?></span></p> <div class="shortcode_example"> <table> <thead> <tr> <th style="width: 18%">Shortcode</th> <th style="width: 49%">Attributes</th> <th style="width: 33%">Example code</th> </tr> </thead> <tbody> <tr> <td><span class="su-shortcode-icon"><?php echo Su_Tools::icon($icon) ?></span><?php echo $shortcode['name'] ?> <br><em class="su-shortcode-desc"><?php echo $shortcode['desc'] ?></em> </td> <td> <?php foreach ($attrs as $attr_key => $attr) { getAttr($attr, $attr_key, $ex_code); if (isset($attr["child"])) { foreach ($attr["child"] as $child_key => $child_attr) { getAttr($child_attr, $child_key, $ex_code); } } } $ex_code = substr($ex_code, 0, -1); $ex_code .= ']'; if (isset($shortcode["content"])): ?> <div class="su-shortcode-attribute"> <div class="su-atts-name">Content - <pre>content</pre> </div> <p><em>Possible values:</em>Any Content Value!</p> <p><em>Default value:</em> <?php $content = str_replace("__content_slide", "content_slide", $shortcode["content"]); $ct = str_replace("%prefix_", "", $content); echo $ct; $ex_code.= $ct . '[/' . $name . ']'; ?> </p> </div> <?php endif; ?> </td> <td class="code"><code><?php echo $ex_code ?></code> </td> </tr> </tbody> </table> </div> </li> <?php } ?> </ul> </div> </div> <?php function getAttr($attr, $attr_key, &$ex_code) { ?> <div class="su-shortcode-attribute"> <div class="su-atts-name"><?php echo $attr["name"] ?> - <pre><?php echo $attr_key ?></pre> </div> <p> <em>Possible values:</em> <?php switch (@$attr["type"]): case "select": $df = null; if (isset($attr["values"])): foreach ($attr["values"] as $temp) { $df = $temp; echo $temp . ', '; } endif; if (isset($attr["default"]) && trim($attr["default"]) != ""): ?> <p><em>Default value:</em> <?php if (isset($attr["values"][$attr["default"]])) { echo $attr["values"][$attr["default"]]; } else { echo $attr["default"]; } $ex_code .= $attr_key . '="' . $attr["default"] . '" '; ?> </p> <?php else: $ex_code .= $attr_key . '="'.$df.'" '; endif; break; case "number": case "slider": echo $attr["min"] . ' - ' . $attr['max']; if (isset($attr["default"])): ?> <p><em>Default value:</em> <?php echo $attr["default"]; $ex_code .= $attr_key . '="' . $attr["default"] . '" '; ?> </p> <?php else: $ex_code .= $attr_key . '="'.$attr["min"].'" '; endif; break; case "bool": echo 'yes, no'; if (isset($attr["default"])): ?> <p><em>Default value:</em> <?php echo $attr["default"]; $ex_code .= $attr_key . '="' . $attr["default"] . '" '; ?> </p> <?php else: $ex_code .= $attr_key . '="yes" '; endif; break; case "icon": echo 'icon: music, icon: envelope … full list'; if (isset($attr["default"]) && trim($attr["default"]) != ""): ?> <p><em>Default value:</em> <?php echo $attr["default"]; $ex_code .= $attr_key . '="' . $attr["default"] . '" '; ?> </p> <?php else: $ex_code .= $attr_key . '="" '; endif; break; case "border": echo 'CSS supported border!'; if (isset($attr["default"])): ?> <p><em>Default value:</em> <?php echo $attr["default"]; if (strpos($attr["default"], '0px') === 0) { $default = str_replace('0', '1', $attr["default"]); } else { $default = str_replace('0', '1px', $attr["default"]); } $ex_code .= $attr_key . '="' . $default . '" '; ?> </p> <?php endif; break; case "shadow": echo 'CSS supporte shadow!'; if (isset($attr["default"])): ?> <p><em>Default value:</em> <?php echo $attr["default"]; $ex_code .= $attr_key . '="0px 1px 2px #eee" '; ?> </p> <?php else: $ex_code .= $attr_key . '="2px 1px 2px #333" '; endif; break; case "color": echo '#RGB and rgba() colors'; if (isset($attr["default"])): ?> <p><em>Default value:</em> <?php echo $attr["default"]; $ex_code .= $attr_key . '="' . $attr["default"] . '" '; ?> </p> <?php else: $ex_code .= $attr_key . '="#333333" '; endif; break; case "article_source": echo 'Images from media manager or article or K2 category item.'; if (isset($attr["default"])): ?> <p><em>Default value:</em> <?php echo $attr["default"]; $ex_code .= $attr_key . '="" '; ?> </p> <?php else: $ex_code .= $attr_key . '="category: 2" '; endif; break; case "upload": echo 'Url From Meida!'; if (isset($attr["default"])): ?> <p><em>Default value:</em> <?php echo $attr["default"]; $ex_code .= $attr_key . '="' . $attr["default"] . '" '; ?> </p> <?php else: $ex_code .= $attr_key . '="" '; endif; break; default: ?> Any Custom Value! <?php if (isset($attr["default"]) && trim($attr["default"]) != ""): ?> <p><em>Default value:</em> <?php echo $attr["default"]; $ex_code .= $attr_key . '="' . $attr["default"] . '" '; ?> </p> <?php else: $ex_code .= $attr_key . '="" '; endif; ?> <?php endswitch; ?> </p> </div> <?php } ?> <script> jQuery(document).ready(function () { jQuery('li .title').click(function (e) { e.preventDefault(); // disable text selection jQuery('.shortcode_example').slideUp(500); var container = jQuery(this).parent().find('.shortcode_example'); if (container.hasClass('active')) { container.removeClass('active') return; } jQuery('.shortcode_example').removeClass('active'); container.slideToggle(500).addClass('active'); return false; // disable text selection }); jQuery('#search').keyup(function (e) { var s = jQuery(this).val().trim(); if (s === '') { jQuery('#result li').show(); return true; } jQuery('#result ul .title:not(:contains(' + s.toLocaleLowerCase() + '))').parent().hide(); jQuery('#result ul .title:contains(' + s.toLocaleLowerCase() + ')').parent().show(); return true; }); }); // end document ready </script>config/tmpl/index.html000064400000000000152326036460010757 0ustar00config/tmpl/preview.php000064400000000642152326036460011170 0ustar00<?php /** * BDThemes Shortcodes Component * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com */ defined('_JEXEC') or die; echo do_shortcode($action = $_REQUEST["shortcode"]); config/index.html000064400000000054152326036460010014 0ustar00<html><body bgcolor="#FFFFFF"></body></html>config/view.html.php000064400000001254152326036460010450 0ustar00<?php /** * BDThemes Shortcodes Component * * @package Joomla * @subpackage BDThemes Schortcodes Component * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * @author BDThemes * @author url http://bdthemes.com */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.view'); class Bdthemes_shortcodesViewConfig extends JMasterViewSU { /** * the main disply function */ public function display($tpl = null) { parent::display($tpl); } } download/index.html000064400000000054152326036460010356 0ustar00<html><body bgcolor="#FFFFFF"></body></html>download/view.html.php000064400000002016152326036460011007 0ustar00<?php /** * BDThemes Shortcodes Component * * @package Joomla * @subpackage BDThemes Schortcodes Component * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * @author BDThemes * @author url http://bdthemes.com */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.view'); class Bdthemes_shortcodesViewDownload extends JMasterViewSU { /** * the main disply function */ public function display($tpl = null) { $jinput = JFactory::getApplication()->input; /* * download file */ if ( ($jinput->get->get('id', -1) != -1) || ($jinput->post->get('download', -1) != -1)) { require_once( BDT_SU_ROOT . DIRECTORY_SEPARATOR . 'shortcodes' . DIRECTORY_SEPARATOR . 'file_download' . DIRECTORY_SEPARATOR . 'helper' . DIRECTORY_SEPARATOR . 'download.php'); } exit; } } item/tmpl/default.php000064400000013174152326036460010630 0ustar00<?php /** * BDThemes Shortcodes Component * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com */ defined('_JEXEC') or die; require_once BDT_SU_CONFIG . '/inc/tools.php'; function load_item($atts = null) { $atts = su_shortcode_atts(array( 'source' => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null, 'layout' => (isset($_REQUEST["layout"]))?$_REQUEST["layout"]:null, 'item_link' => (isset($_REQUEST["item_link"]))?$_REQUEST["item_link"]:null, 'limit' => (isset($_REQUEST["show_more_item"]))? ($_REQUEST["show_more_item"] + 1 ):null, 'order' => (isset($_REQUEST["order"]))?$_REQUEST["order"]:null, 'order_by' => (isset($_REQUEST["order_by"]))?$_REQUEST["order_by"]:null, 'thumb_resize' => (isset($_REQUEST["thumb_resize"]))?$_REQUEST["thumb_resize"]:null, 'thumb_width' => (isset($_REQUEST["thumb_width"]))?$_REQUEST["thumb_width"]:null, 'thumb_height' => (isset($_REQUEST["thumb_height"]))?$_REQUEST["thumb_height"]:null, 'show_more_item' => (isset($_REQUEST["show_more_item"]))?$_REQUEST["show_more_item"]:null, 'include_article_image' => (isset($_REQUEST["include_article_image"]))?$_REQUEST["include_article_image"]:null, 'popup_image' => (isset($_REQUEST["popup_image"]))?$_REQUEST["popup_image"]:null, 'popup_category' => (isset($_REQUEST["popup_category"]))?$_REQUEST["popup_category"]:null, 'popup_date' => (isset($_REQUEST["popup_date"]))?$_REQUEST["popup_date"]:null, 'popup_detail_button' => (isset($_REQUEST["popup_detail_button"]))?$_REQUEST["popup_detail_button"]:null, 'offset' => (isset($_REQUEST["offset"]))?$_REQUEST["offset"]:null ), $atts); $slides = (array) Su_Tools::get_slides($atts); $return = array(); $item_block = $atts["offset"]; /** 12/11 */ $block = (isset($_REQUEST["numberOfClicks"]))? $_REQUEST["numberOfClicks"] : 1; /** end 12/11 */ if (preg_match('/k2-category/', $atts['source'])) { $source = 'k2'; } else { $source = 'article'; } if ($atts['item_link'] === 'inline') { $item_link_class = 'cbp-singlePageInline'; $page = 'data-url="'.JRoute::_('index.php?option=com_bdthemes_shortcodes&view=item&layout=inline').'"'; } elseif ($atts['item_link'] === 'single') { $item_link_class = 'cbp-singlePage'; $page = 'data-url="'.JRoute::_('index.php?option=com_bdthemes_shortcodes&view=item&layout=single').'"'; } elseif ($atts['item_link'] === 'link') { $item_link_class = 'cbp-linkPage'; $page = ''; } else { $item_link_class = 'cbp-linkNoPage'; $page = ''; } $thumb_resize_check = ($atts['thumb_resize'] === 'yes' and ($atts['layout'] != 'mosaic' or $atts['layout'] != 'masonry')) ? true : false; $return[] = '<div class="cbp-loadMore-block'.$block.'">'; $size = sizeof($slides); $limit = $atts["limit"]; foreach ((array) $slides as $slide) { if($limit-- == 1){ break; } $size--; $thumb_url = su_image_resize($slide['image'], $atts['thumb_width'], $atts['thumb_height'], $thumb_resize_check, 95); // Title condition if($slide['title']) $title = stripslashes($slide['title']); $category = su_title_class($slide['category']); $item_link = ($atts['item_link'] != 'no') ? JRoute::_($slide['link']) : 'javascript:void(0);'; // if($item_block%$atts['show_more_item']==0) { // $return[] = $item_block > 0 ? "</div>" : ""; // close div if it's not the first // $block++; // } $return[] = '<div class="cbp-item '.$category.'"> <a data-id="'.$slide['id'].'" data-source = "'.$source.'" data-include_article_image = "'.$atts['include_article_image'].'" data-popup_image = "'.$atts['popup_image'].'" data-popup_category = "'.$atts['popup_category'].'" data-popup_date = "'.$atts['popup_date'].'" href="'.$item_link.'" '.$page.' class="cbp-caption '.$item_link_class.'" data-title="'.$title.' // '.$slide['category'].'"> <div class="cbp-caption-defaultWrap">'; if (isset($thumb_url['url'])) { $return[] = '<img src="'. image_media($thumb_url['url']) .'" alt="'. $title .'" width="'. $atts['thumb_width'] .'" height="'. $atts['thumb_height'] .'">'; } else { $return[] = '<img src="'. image_media(BDT_SU_IMG.'no-image.svg') .'" alt="'. $title .'">'; } $return[] = '</div> <div class="cbp-caption-activeWrap"> <div class="cbp-l-caption-alignLeft"> <div class="cbp-l-caption-body"> <div class="cbp-l-caption-title">'. $title .'</div> <div class="cbp-l-caption-desc">'.$slide['category'].'</div> </div> </div> </div> </a> </div>'; $item_block++; } $return[] = '</div>'; if($size > 0) $return[] = '<div class="cbp-loadMore-block'.($block+1).'"> </div>'; return implode("\n", $return); } echo load_item(); die(); ?>item/tmpl/index.html000064400000000037152326036460010462 0ustar00<!DOCTYPE html><title></title> item/tmpl/inline.php000064400000007242152326036460010461 0ustar00<?php /** * BDThemes Shortcodes Component * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com */ defined('_JEXEC') or die; require_once BDT_SU_CONFIG . '/inc/tools.php'; function item_inline($atts = null) { $atts = su_shortcode_atts(array( 'source' => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null, 'id' => (isset($_REQUEST["id"]))?$_REQUEST["id"]:null, 'include_article_image' => (isset($_REQUEST["include_article_image"]))?$_REQUEST["include_article_image"]:null, 'popup_category' => (isset($_REQUEST["popup_category"]))?$_REQUEST["popup_category"]:null, 'popup_date' => (isset($_REQUEST["popup_date"]))?$_REQUEST["popup_date"]:null, 'popup_detail_button' => (isset($_REQUEST["popup_detail_button"]))?$_REQUEST["popup_detail_button"]:null, 'popup_image' => (isset($_REQUEST["popup_image"]))?$_REQUEST["popup_image"]:null ), $atts); $data = new bdthemes_shortcodesHelperItem(); if ($atts['source'] === 'k2') { $slides = $data->getDataK2($_REQUEST["id"]); } elseif( $atts['source'] === 'article') { $slides = $data->getData($_REQUEST["id"]); } else { $slides =''; } $return = array(); foreach ((array) $slides as $slide) { $category = ($atts['popup_category'] === 'yes') ? '<div class="cpb-category">' . $slide['category'] . '</div>' : ''; $date = ($atts['popup_date'] === 'yes') ? '<div class="cpb-date">' . JHTML::_('date', $slide['created'], JText::_('DATE_FORMAT_LC3')) . '</div>' : ''; $textImg = ($atts['include_article_image'] === 'yes') ? su_all_images(@$slide['fulltext']) : null; $alignClass = ($atts['popup_image'] === 'yes') ? 'cbp-l-inline-right' : ''; $return[] = ' <div> <div class="cbp-l-inline">'; if ($atts['popup_image'] === 'yes') { $return[] = '<div class="cbp-l-inline-left">'; if ($textImg != null) { $return[] =' <div class="cbp-slider"> <ul class="cbp-slider-wrap"> <li class="cbp-slider-item"><img src="'.image_media($slide['image']).'" alt="'.$slide['title'].'"></li>'; foreach ($textImg as $img) { $return[] = '<li class="cbp-slider-item"><img src="'.image_media($img).'" alt="'.$slide['title'].'"></li>'; } $return[] ='</ul> </div>'; } else { $return[] ='<img src="'.image_media($slide['image']).'" alt="'.$slide['title'].'">'; } $return[] = '</div>'; } $return[] = ' <div class="'.$alignClass.'"> <div class="cbp-l-inline-title">'. $slide['title'] .'</div> <div class="cbp-l-inline-subtitle">' .$category.$date.'</div> <div class="cbp-l-inline-desc">'.su_do_shortcode($slide['introtext']).'</div>'; if ($atts['popup_detail_button'] === 'yes') { $return[] ='<a href="'.$slide['link'].'" class="cbp-l-inline-view">'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SHOWCASE_VIEWDETAILS').'</a>'; } $return[] =' </div> </div> </div>'; } return implode('', $return); } echo item_inline(); die(); ?> item/tmpl/single.php000064400000011454152326036460010464 0ustar00<?php /** * BDThemes Shortcodes Component * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com */ defined('_JEXEC') or die; require_once BDT_SU_CONFIG . '/inc/tools.php'; function item_single($atts = null) { $atts = su_shortcode_atts(array( 'source' => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null, 'id' => (isset($_REQUEST["id"]))?$_REQUEST["id"]:null, 'include_article_image' => (isset($_REQUEST["include_article_image"]))?$_REQUEST["include_article_image"]:null, 'popup_category' => (isset($_REQUEST["popup_category"]))?$_REQUEST["popup_category"]:null, 'popup_date' => (isset($_REQUEST["popup_date"]))?$_REQUEST["popup_date"]:null, 'popup_image' => (isset($_REQUEST["popup_image"]))?$_REQUEST["popup_image"]:null, 'popup_detail_button' => (isset($_REQUEST["popup_detail_button"]))?$_REQUEST["popup_detail_button"]:null ), $atts); $data = new bdthemes_shortcodesHelperItem(); if ($atts['source'] === 'k2') { $slides = $data->getDataK2($_REQUEST["id"]); } elseif( $atts['source'] === 'article') { $slides = $data->getData($_REQUEST["id"]); } else { $slides =''; } $return = array(); foreach ((array) $slides as $slide) { $category = ($atts['popup_category'] === 'yes') ? '<div class="cpb-category">' . $slide['category'] . '</div>' : ''; $date = ($atts['popup_date'] === 'yes') ? '<div class="cpb-date">' . JHTML::_('date', $slide['created'], JText::_('DATE_FORMAT_LC3')) . '</div>' : ''; $textImg = ($atts['include_article_image'] === 'yes') ? su_all_images(@$slide['fulltext']) : null; $alignClass = ($atts['popup_image'] === 'yes') ? 'cbp-l-inline-right' : ''; $return[] = ' <div class="su-sc-single-item"> <div class="cbp-l-project-title">'.$slide['title'].'</div> <div class="cbp-l-project-subtitle">'.$category.$date.'</div>'; if ($atts['popup_image'] === 'yes') { if ($textImg != null) { $return[] =' <div class="cbp-slider"> <ul class="cbp-slider-wrap"> <li class="cbp-slider-item"><img src="'.image_media($slide['image']).'" alt="'.$slide['title'].'"></li>'; foreach ($textImg as $img) { $return[] = '<li class="cbp-slider-item"><img src="'.image_media($img).'" alt="'.$slide['title'].'"></li>'; } $return[] ='</ul> </div>'; } else { $return[] ='<img src="'.image_media($slide['image']).'" alt="'.$slide['title'].'">'; } } $return[] ='<div class="cbp-l-project-container"> <div class="cbp-project-desc"> <div class="cbp-l-project-desc-title"><span>'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SHOWCASE_PD').'</span></div> <div class="cbp-l-project-desc-text"> '.su_do_shortcode($slide['introtext']).' </div>'; $return[] =' <br> <div class="cbp-l-project-social-wrapper"> <iframe src="http://www.facebook.com/plugins/like.php?href='.JUri::root().$slide['link'].'&layout=button_count&show_faces=false&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" height="25"></iframe> </div> <div class="cbp-l-project-social-wrapper"> <iframe src="https://platform.twitter.com/widgets/tweet_button.html?url='.JUri::root().$slide['link'].'&text=Check%20out%20this%20site" height="25" title="Twitter Tweet Button" style="border: 0; overflow: hidden;"></iframe> </div> <div class="cbp-l-project-social-wrapper" style="width: 71px"> <iframe src="https://plusone.google.com/_/+1/fastbutton?bsv&size=medium&hl=en-US&url='.JUri::root().$slide['link'].'" allowtransparency="true" frameborder="0" scrolling="no" title="+1" height="25" style="border: 0; overflow: hidden;"></iframe> </div>'; if ($atts['popup_detail_button'] === 'yes') { $return[] =' <a href="'.$slide['link'].'" class="cbp-l-project-details-visit">'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SHOWCASE_VIEWDETAILS').'</a>'; } $return[] =' <hr class="su-horizontal-line"><br><br><br> </div> </div>'; $return[] = '</div>'; } return implode('', $return); } echo item_single(); die(); ?> item/index.html000064400000000037152326036460007506 0ustar00<!DOCTYPE html><title></title> item/view.html.php000064400000001215152326036460010136 0ustar00<?php /** * BDThemes Shortcodes Component * * @package Joomla * @subpackage BDThemes Schortcodes Component * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * @author BDThemes * @author url http://bdthemes.com */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.view'); class Bdthemes_shortcodesViewItem extends JMasterViewSU { /** * the main disply function */ public function display($tpl = null) { parent::display($tpl); } }like/index.html000064400000000054152326036460007473 0ustar00<html><body bgcolor="#FFFFFF"></body></html>like/view.html.php000064400000001771152326036460010133 0ustar00<?php /** * BDThemes Shortcodes Component * * @package Joomla * @subpackage BDThemes Schortcodes Component * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * @author BDThemes * @author url http://bdthemes.com */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.view'); class Bdthemes_shortcodesViewLike extends JMasterViewSU { /** * the main disply function */ public function display($tpl = null) { $jinput = JFactory::getApplication()->input; /* * like file */ if ($jinput->post->get('id',-1) != -1) { require_once( BDT_SU_ROOT . DIRECTORY_SEPARATOR . 'shortcodes' . DIRECTORY_SEPARATOR . 'file_download' . DIRECTORY_SEPARATOR . 'helper' . DIRECTORY_SEPARATOR . 'like.php'); } exit; parent::display($tpl); } } portfolio/tmpl/default.php000064400000015661152326036460011712 0ustar00<?php /** * BDThemes Shortcodes Component * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com */ defined('_JEXEC') or die; require_once BDT_SU_CONFIG . '/inc/tools.php'; function portfolio_item($atts = null) { $atts = su_shortcode_atts(array( 'source' => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null, 'style' => (isset($_REQUEST["style"]))?$_REQUEST["style"]:null, 'layout' => (isset($_REQUEST["layout"]))?$_REQUEST["layout"]:null, 'limit' => (isset($_REQUEST["show_more_item"]))? ($_REQUEST["show_more_item"] + 1 ):null, 'order' => (isset($_REQUEST["order"]))?$_REQUEST["order"]:null, 'order_by' => (isset($_REQUEST["order_by"]))?$_REQUEST["order_by"]:null, 'thumb_resize' => (isset($_REQUEST["thumb_resize"]))?$_REQUEST["thumb_resize"]:null, 'thumb_width' => (isset($_REQUEST["thumb_width"]))?$_REQUEST["thumb_width"]:null, 'thumb_height' => (isset($_REQUEST["thumb_height"]))?$_REQUEST["thumb_height"]:null, 'show_more_item' => (isset($_REQUEST["show_more_item"]))?$_REQUEST["show_more_item"]:null, 'show_zoom' => (isset($_REQUEST["show_zoom"]))?$_REQUEST["show_zoom"]:null, 'show_link' => (isset($_REQUEST["show_link"]))?$_REQUEST["show_link"]:null, 'include_article_image' => (isset($_REQUEST["include_article_image"]))?$_REQUEST["include_article_image"]:null, 'offset' => (isset($_REQUEST["offset"]))?$_REQUEST["offset"]:null ), $atts); $slides = (array) Su_Tools::get_slides($atts); $return = array(); $item_block = $atts["offset"]; $block = (isset($_REQUEST["numberOfClicks"]))? $_REQUEST["numberOfClicks"] : 1; $zoom_link_icon = ''; $thumb_resize_check = ($atts['thumb_resize'] === 'yes' and ($atts['layout'] != 'mosaic' or $atts['layout'] != 'masonry')) ? true : false; $size = sizeof($slides); $limit = $atts["limit"]; $return[] = '<div class="cbp-loadMore-block'.$block.'">'; foreach ((array) $slides as $slide) { if($limit-- == 1){ break; } $size--; // Title condition if($slide['title']) $title = stripslashes($slide['title']); $category = su_title_class($slide['category']); $item_link = JRoute::_($slide['link']); if ($atts['show_zoom']==='yes' or $atts['show_link']==='yes') { $zoom_link_icon = '<div class="sup-link-wrap">'; if ($atts['show_zoom']==='yes') { $zoom_link_icon .= '<a href="'.image_media($slide['image']).'" class="su-lightbox-item sup-zoom" title="'. $title .'"></a>'; } if ($atts['show_link']==='yes') { $zoom_link_icon .= '<a href="'.$item_link.'" class="sup-link" title="'. $title .'"></a>'; } $zoom_link_icon .= '</div>'; } if ($atts['style'] === '3') { $return[] = '<div class="cbp-item '.$category.'"> <div class="cbp-caption"> <div class="sup-img-wrap">'; $return[] = su_portfolio_image($atts, $slide); $return[] = '</div> <div class="cbp-caption-activeWrap"> <div class="sup-desc-wrap"> <div class="sup-desc-inner"> <div class="sup-meta-wrap"> <a href="'.$item_link.'" class="sup-title"><h4>'. $title .'</h4></a> <div class="sup-meta">'.$slide['category'].'</div> </div>'; $return[] = $zoom_link_icon; $return[] = '</div> </div> </div> </div> </div>'; } elseif ($atts['style'] === '9' || $atts['style'] === '10') { $return[] = '<div class="cbp-item '.$category.'"> <div class="sup-img-wrap">'; $return[] = su_portfolio_image($atts, $slide); $return[] = $zoom_link_icon; $return[] = '</div> <div class="sup-desc-wrap"> <a href="'.$item_link.'" class="sup-title" rel="nofollow"><h4>'. $title .'</h4></a> <div class="sup-meta">'.$slide['category'].'</div> </div> </div>'; } elseif ($atts['style'] === '4' || $atts['style'] === '5' || $atts['style'] === '7') { $return[] = '<div class="cbp-item '.$category.'"> <div class="cbp-caption"> <div class="sup-img-wrap">'; $return[] = su_portfolio_image($atts, $slide); $return[] = '</div> <div class="cbp-caption-activeWrap"> <div class="sup-desc-wrap"> <div class="sup-desc-inner">'; $return[] = $zoom_link_icon; $return[] = '<div class="sup-meta-wrap"> <a href="'.$item_link.'" class="sup-title"><h4>'. $title .'</h4></a> <div class="sup-meta">'.$slide['category'].'</div> </div> </div> </div> </div> </div> </div>'; } else { $return[] = '<div class="cbp-item '.$category.'"> <div class="cbp-caption"> <div class="sup-img-wrap">'; $return[] = su_portfolio_image($atts, $slide); $return[] = '</div> <div class="cbp-caption-activeWrap"> <div class="cbp-l-caption-alignCenter"> <div class="cbp-l-caption-body">'; $return[] = $zoom_link_icon; $return[] = ' </div> </div> </div> </div> <div class="sup-meta-wrap"> <a href="'.$item_link.'" class="sup-title"><h4>'. $title .'</h4></a> <div class="sup-meta">'.$slide['category'].'</div> </div> </div>'; } $item_block++; } $return[] = '</div>'; if($size > 0) $return[] = '<div class="cbp-loadMore-block'.($block+1).'"> </div>'; return implode("\n", $return); } echo portfolio_item(); die(); ?> portfolio/tmpl/index.html000064400000000037152326036460011541 0ustar00<!DOCTYPE html><title></title> portfolio/index.html000064400000000037152326036460010565 0ustar00<!DOCTYPE html><title></title> portfolio/view.html.php000064400000001222152326036460011213 0ustar00<?php /** * BDThemes Shortcodes Component * * @package Joomla * @subpackage BDThemes Schortcodes Component * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * @author BDThemes * @author url http://bdthemes.com */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.view'); class Bdthemes_shortcodesViewPortfolio extends JMasterViewSU { /** * the main disply function */ public function display($tpl = null) { parent::display($tpl); } }post/tmpl/default.php000064400000011714152326036460010655 0ustar00<?php /** * BDThemes Shortcodes Component * @package Shortcode Ultimate Joomla 3.0 * @subpackage BDThemes Schortcodes * @copyright Copyright (C) 2011-2014 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @author BDThemes * @author url http://bdthemes.com */ defined('_JEXEC') or die; require_once BDT_SU_CONFIG . '/inc/tools.php'; function load_post($atts = null) { $atts = su_shortcode_atts(array( 'source' => (isset($_REQUEST["source"]))?$_REQUEST["source"]:null, 'limit' => (isset($_REQUEST["show_more_item"]))? ($_REQUEST["show_more_item"] + 1 ):null, 'layout' => (isset($_REQUEST["layout"]))?$_REQUEST["layout"]:null, 'order' => (isset($_REQUEST["order"]))?$_REQUEST["order"]:null, 'date' => (isset($_REQUEST["date"]))?$_REQUEST["date"]:null, 'category' => (isset($_REQUEST["category"]))?$_REQUEST["category"]:null, 'order_by' => (isset($_REQUEST["order_by"]))?$_REQUEST["order_by"]:null, 'thumb_resize' => (isset($_REQUEST["thumb_resize"]))?$_REQUEST["thumb_resize"]:null, 'thumb_width' => (isset($_REQUEST["thumb_width"]))?$_REQUEST["thumb_width"]:null, 'thumb_height' => (isset($_REQUEST["thumb_height"]))?$_REQUEST["thumb_height"]:null, 'show_thumb' => (isset($_REQUEST["show_thumb"]))?$_REQUEST["show_thumb"]:null, 'show_more_item' => (isset($_REQUEST["show_more_item"]))?$_REQUEST["show_more_item"]:null, 'intro_text_limit' => (isset($_REQUEST["intro_text_limit"]))?$_REQUEST["intro_text_limit"]:null, 'offset' => (isset($_REQUEST["offset"]))?$_REQUEST["offset"]:null ), $atts); $slides = (array) Su_Tools::get_slides($atts); $return = array(); $item_block = $atts["offset"]; $block = (isset($_REQUEST["numberOfClicks"]))? $_REQUEST["numberOfClicks"] : 1; if (preg_match('/k2-category/', $atts['source'])) { $source = 'k2'; } else { $source = 'article'; } $thumb_resize_check = ($atts['thumb_resize'] === 'yes' and ($atts['layout'] != 'mosaic' or $atts['layout'] != 'masonry')) ? true : false; $return[] = '<div class="cbp-loadMore-block'.$block.'">'; $size = sizeof($slides); $limit = $atts["limit"]; foreach ((array) $slides as $slide) { if($limit-- == 1){ break; } $size--; $thumb_url = su_image_resize($slide['image'], $atts['thumb_width'], $atts['thumb_height'], $thumb_resize_check, 95); // Title condition if($slide['title']) $title = stripslashes($slide['title']); $category = su_title_class($slide['category']); $date = ($atts['date'] == 'yes') ? '<span class="cbp-l-grid-blog-date">' . JHTML::_('date', $slide['created'], JText::_('DATE_FORMAT_LC3')) . '</span>' : ''; $show_category = ($atts['category'] == 'yes') ? '<span class="cpb-category">' . $slide['category'] . '</span>' : ''; if (isset($slide['introtext'])) { if ($atts['intro_text_limit'] != 0) { $intro_text = '<div class="cbp-l-grid-blog-desc">'.su_char_limit($slide['introtext'], $atts['intro_text_limit']).'</div>'; } } $return[] = ' <div class="cbp-item '.$category.'">'; if (isset($thumb_url['url']) and $atts['show_thumb'] === 'yes') { $return[] = '<a data-id="'.$slide['id'].'" href="'.$slide['link'].'" class="cbp-caption su-blog-img"> <div class="cbp-caption-defaultWrap">'; $return[] = '<img src="'. image_media($thumb_url['url']) .'" alt="'. $title .'">'; $return[] = '</div>'; $return[] = '<div class="cbp-caption-activeWrap"> <div class="cbp-l-caption-alignCenter"> <div class="cbp-l-caption-body"> <div class="cbp-l-caption-text">'.JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_POST_GRID_VIEW_POST').'</div> </div> </div> </div>'; $return[] = '</a>'; } $return[] = '<a href="'.$slide['link'].'" class="cbp-l-grid-blog-title">'.$title.'</a> <div class="su-pgrid-meta"> '.$date.' '.$show_category.' </div> '.$intro_text.' </div>'; $item_block++; } $return[] = '</div>'; if($size > 0) $return[] = '<div class="cbp-loadMore-block'.($block+1).'"> </div>'; return implode("\n", $return); } echo load_post(); die(); ?>post/tmpl/index.html000064400000000037152326036460010511 0ustar00<!DOCTYPE html><title></title> post/index.html000064400000000037152326036460007535 0ustar00<!DOCTYPE html><title></title> post/view.html.php000064400000001215152326036460010165 0ustar00<?php /** * BDThemes Shortcodes Component * * @package Joomla * @subpackage BDThemes Schortcodes Component * @copyright Copyright (C) 2011 BDThemes Ltd. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * @author BDThemes * @author url http://bdthemes.com */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.view'); class Bdthemes_shortcodesViewPost extends JMasterViewSU { /** * the main disply function */ public function display($tpl = null) { parent::display($tpl); } }
/home/digilove/public_html/media/../media/../41423/views.tar