PKA"]Qfuser_select.j4.fef.blade.phpnu&1i{$field} * @var string $id The id of the field, default is $field * @var bool $readonly Is this a read only field? Default: false * @var string $placeholder Placeholder text, also used as the button's tooltip * @var bool $required Is a value required for this field? Default: false * @var string $width Width of the modal box (default: 800) * @var string $height Height of the modal box (default: 500) * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var mixed $groups The filtering groups (null means no filtering) * @var mixed $excluded The users to exclude from the list of users * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attribute for eg, data-*. * * Variables made automatically available to us by FOF: * * @var \FOF40\View\DataView\DataViewInterface $this */ $id = isset($id) ? $id : $field; $readonly = isset($readonly) ? ($readonly ? true : false) : false; $placeholder = isset($placeholder) ? Text::_($placeholder) : Text::_('JLIB_FORM_SELECT_USER'); $userID = $item->getFieldValue($field, 0); $user = $item->getContainer()->platform->getUser($userID); $width = isset($width) ? $width : 800; $height = isset($height) ? $height : 500; $class = isset($class) ? $class : ''; $size = isset($size) ? $size : 0; $onchange = isset($onchange) ? $onchange : ''; $userName = (is_object($user) && ($user instanceof \Joomla\CMS\User\User) && !$user->guest) ? $user->name : Text::_('JLIB_FORM_SELECT_USER'); if (!$readonly) { Factory::getDocument()->getWebAssetManager() ->useScript('webcomponent.field-user'); } $uri = new Uri('index.php?option=com_users&view=users&layout=modal&tmpl=component&required=0'); $uri->setVar('field', $this->escape($id)); if ($required) { $uri->setVar('required', 1); } if (!empty($groups)) { $uri->setVar('groups', base64_encode(json_encode($groups))); } if (!empty($excluded)) { $uri->setVar('excluded', base64_encode(json_encode($excluded))); } // Invalidate the input value if no user selected if ($this->escape($userName) === Text::_('JLIB_FORM_SELECT_USER')) { $userName = ''; } $inputAttributes = array( 'type' => 'text', 'id' => $id, 'class' => 'form-control field-user-input-name', 'value' => $this->escape($userName) ); if ($class) { $inputAttributes['class'] .= ' ' . $class; } if ($size) { $inputAttributes['size'] = (int) $size; } if ($required) { $inputAttributes['required'] = 'required'; } if (!$readonly) { $inputAttributes['placeholder'] = $placeholder; } ?>
@if (!$readonly) @endif
{{-- Create the real field, hidden, that stored the user id.--}} @if(!$readonly) @jhtml( 'bootstrap.renderModal', 'userModal_' . $id, array( 'url' => $uri, 'title' => $placeholder, 'closeButton' => true, 'height' => '100%', 'width' => '100%', 'modalWidth' => $width / 10, 'bodyHeight' => $height / 10, 'footer' => '', ) ) @endif
PKA"]W(ttbrowse.fef.blade.phpnu&1i * * browse-table-header * The table header. At the very least you need to add the table column headers. You can * optionally add one or more with filters at the top. * * browse-table-body-withrecords * Loop through the records and create s. * * browse-table-body-norecords * [ Optional ] The to show when no records are present. Default is the "no records" text. * * browse-table-footer * [ Optional ] The table footer. By default that's just the pagination footer. * * browse-hidden-fields * [ Optional ] Any additional hidden INPUTs to add to the form. By default this is empty. * The default hidden fields (option, view, task, ordering fields, boxchecked and token) can * not be removed. * * Do not override any other section. The overridden sections should be closed with -at-override instead of -at-stop. *//** @var \FOF40\View\DataView\Html $this */ $ajaxOrderingSupport = $this->hasAjaxOrderingSupport(); ?> {{-- Allow tooltips, used in grid headers --}} @if (version_compare(JVERSION, '3.999.999', 'le')) @jhtml('behavior.tooltip') @endif {{-- Allow SHIFT+click to select multiple rows --}} @jhtml('behavior.multiselect') @section('browse-filters') {{-- Filters above the table. --}} @stop @section('browse-table-header') {{-- Table header. Column headers and optional filters displayed above the column headers. --}} @stop @section('browse-table-body-norecords') {{-- Table body shown when no records are present. --}} @lang($this->getContainer()->componentName . '_COMMON_NORECORDS') @stop @section('browse-table-body-withrecords') {{-- Table body shown when records are present. --}} @foreach($this->items as $row) {{-- You need to implement me! --}} @endforeach @stop @section('browse-table-footer') {{-- Table footer. The default is showing the pagination footer. --}} {{ $this->pagination->getListFooter() }} @stop @section('browse-hidden-fields') {{-- Put your additional hidden fields in this section --}} @stop @section('browse-ordering-bar') @jhtml('FEFHelp.browse.orderjs', $this->lists->order) @jhtml('FEFHelp.browse.orderheader', $this) @stop @yield('browse-page-top') {{-- Administrator form for browse views --}}
{{-- Filters and ordering --}}
@yield('browse-filters')
@yield('browse-ordering-bar')
@yield('browse-table-header') @yield('browse-table-footer') @unless(count($this->items)) @yield('browse-table-body-norecords') @else @yield('browse-table-body-withrecords') @endunless
{{-- Hidden form fields --}}
@section('browse-default-hidden-fields') @show @yield('browse-hidden-fields')
@yield('browse-page-bottom') PKA"]^P user_select.j3.fef.blade.phpnu&1i{$field} * @var string $id The id of the field, default is $field * @var bool $readonly Is this a read only field? Default: false * @var string $placeholder Placeholder text, also used as the button's tooltip * @var bool $required Is a value required for this field? Default: false * @var string $width Width of the modal box (default: 800) * @var string $height Height of the modal box (default: 500) * * Variables made automatically available to us by FOF: * * @var \FOF40\View\DataView\DataViewInterface $this */ $id = isset($id) ? $id : $field; $readonly = isset($readonly) ? ($readonly ? true : false) : false; $placeholder = isset($placeholder) ? JText::_($placeholder) : JText::_('JLIB_FORM_SELECT_USER'); $userID = $item->getFieldValue($field, 0); $user = $item->getContainer()->platform->getUser($userID); $width = isset($width) ? $width : 800; $height = isset($height) ? $height : 500; $class = isset($class) ? $class : ''; $size = isset($size) ? $size : 0; $uri = new JUri('index.php?option=com_users&view=users&layout=modal&tmpl=component'); $uri->setVar('required', (isset($required) ? ($required ? 1 : 0) : 0)); $uri->setVar('field', $field); $url = 'index.php' . $uri->toString(['query']); ?> @unless($readonly) @jhtml('behavior.modal', 'a.userSelectModal_' . $this->escape($field)) @jhtml('script', 'jui/fielduser.min.js', ['version' => 'auto', 'relative' => true]) @endunless
@unless($readonly) @endunless PKA"]5lluser_show.fef.blade.phpnu&1i '', 'showUsername' => true, 'showEmail' => true, 'showName' => true, 'showID' => true, 'showAvatar' => true, 'showLink' => true, 'linkURL' => null, 'avatarMethod' => 'gravatar', 'avatarSize' => 64, 'class' => '', ]; foreach ($defaultParams as $paramName => $paramValue) { if (!isset(${$paramName})) { ${$paramName} = $paramValue; } } unset($defaultParams, $paramName, $paramValue); // Initialization $value = $item->getFieldValue($field); $key = is_numeric($value) ? $value : 'empty'; // Get the user if (!array_key_exists($key, $akeebaSubsShowUserCache)) { $akeebaSubsShowUserCache[$key] = $this->getContainer()->platform->getUser($value); } $user = $akeebaSubsShowUserCache[$key]; // Get the field parameters if ($avatarMethod) { $avatarMethod = strtolower($avatarMethod); } if (!$linkURL && $this->getContainer()->platform->isBackend()) { $linkURL = 'index.php?option=com_users&task=user.edit&id=[USER:ID]'; } elseif (!$linkURL) { // If no link is defined in the front-end, we can't create a default link. Therefore, show no link. $showLink = false; } // Post-process the link URL if ($showLink) { $replacements = array( '[USER:ID]' => $user->id, '[USER:USERNAME]' => $user->username, '[USER:EMAIL]' => $user->email, '[USER:NAME]' => $user->name, ); foreach ($replacements as $key => $value) { $linkURL = str_replace($key, $value, $linkURL); } $linkURL = BrowseView::parseFieldTags($linkURL, $item); } // Get the avatar image, if necessary $avatarURL = ''; if ($showAvatar) { $avatarURL = ''; if ($avatarMethod == 'plugin') { // Use the user plugins to get an avatar $this->getContainer()->platform->importPlugin('user'); $jResponse = $this->getContainer()->platform->runPlugins('onUserAvatar', array($user, $avatarSize)); if (!empty($jResponse)) { foreach ($jResponse as $response) { if ($response) { $avatarURL = $response; } } } } // Fall back to the Gravatar method if (empty($avatarURL)) { $md5 = md5($user->email); $avatarURL = 'https://secure.gravatar.com/avatar/' . $md5 . '.jpg?s=' . $avatarSize . '&d=mm'; } } ?>
@if($showAvatar) {{ $showName ? $user->name : ($showUsername ? $user->username : '') }} @endif @if($showLink) @endif @if($showUsername) {{{ $user->username }}} @endif @if($showID) {{{ $user->id }}} @endif @if($showName) {{{ $user->name }}} @endif @if($showEmail) {{{ $user->email }}} @endif @if($showLink) @endif
PKA"] KN9user_select.j4.blade.phpnu&1i{$field} * @var string $id The id of the field, default is $field * @var bool $readonly Is this a read only field? Default: false * @var string $placeholder Placeholder text, also used as the button's tooltip * @var bool $required Is a value required for this field? Default: false * @var string $width Width of the modal box (default: 800) * @var string $height Height of the modal box (default: 500) * * Variables made automatically available to us by FOF: * * @var \FOF40\View\DataView\DataViewInterface $this */ $id = isset($id) ? $id : $field; $readonly = isset($readonly) ? ($readonly ? true : false) : false; $placeholder = isset($placeholder) ? Text::_($placeholder) : Text::_('JLIB_FORM_SELECT_USER'); $userID = $item->getFieldValue($field, 0); $user = $item->getContainer()->platform->getUser($userID); $width = isset($width) ? $width : 800; $height = isset($height) ? $height : 500; $class = isset($class) ? $class : ''; $size = isset($size) ? $size : 0; $onchange = isset($onchange) ? $onchange : ''; ?> @jlayout('joomla/form/field/user', [ 'name' => $field, 'id' => $id, 'class' => $class, 'size' => $size, 'value' => $userID, 'userName' => $user->name, 'hint' => $placeholder, 'readonly' => $readonly, 'required' => $required, 'onchange' => $onchange, 'dataAttribute' => '', ])PKA"],ÕJHHedit.fef.blade.phpnu&1i @section('edit-form-body') {{-- Put your form body in this section --}} @stop @section('edit-hidden-fields') {{-- Put your additional hidden fields in this section --}} @stop @yield('edit-page-top') {{-- Administrator form for browse views --}}
{{-- Main form body --}} @yield('edit-form-body') {{-- Hidden form fields --}}
@section('browse-default-hidden-fields') @show @yield('edit-hidden-fields')
@yield('edit-page-bottom') PKA"]UIax x user_select.j3.blade.phpnu&1i{$field} * @var string $id The id of the field, default is $field * @var bool $readonly Is this a read only field? Default: false * @var string $placeholder Placeholder text, also used as the button's tooltip * @var bool $required Is a value required for this field? Default: false * @var string $width Width of the modal box (default: 800) * @var string $height Height of the modal box (default: 500) * * Variables made automatically available to us by FOF: * * @var \FOF40\View\DataView\DataViewInterface $this */ $id = isset($id) ? $id : $field; $readonly = isset($readonly) ? ($readonly ? true : false) : false; $placeholder = isset($placeholder) ? JText::_($placeholder) : JText::_('JLIB_FORM_SELECT_USER'); $userID = $item->getFieldValue($field, 0); $user = $item->getContainer()->platform->getUser($userID); $width = isset($width) ? $width : 800; $height = isset($height) ? $height : 500; $class = isset($class) ? $class : ''; $size = isset($size) ? $size : 0; $uri = new JUri('index.php?option=com_users&view=users&layout=modal&tmpl=component'); $uri->setVar('required', (isset($required) ? ($required ? 1 : 0) : 0)); $uri->setVar('field', $field); $url = 'index.php' . $uri->toString(['query']); ?> @unless($readonly) @jhtml('behavior.modal', 'a.userSelectModal_' . $this->escape($field)) @jhtml('script', 'jui/fielduser.min.js', ['version' => 'auto', 'relative' => true]) @endunless
@unless($readonly) @endunlessPKA"]Qfuser_select.j4.fef.blade.phpnu&1iPKA"]W(ttZbrowse.fef.blade.phpnu&1iPKA"]^P 1user_select.j3.fef.blade.phpnu&1iPKA"]5ll=user_show.fef.blade.phpnu&1iPKA"] KN9Puser_select.j4.blade.phpnu&1iPKA"],ÕJHHYedit.fef.blade.phpnu&1iPKA"]UIax x buser_select.j3.blade.phpnu&1iPKeAn