?> <?php echo $this->form->getInput('catid'); ?> <?php echo $this->form->getLabel('tag'); ?> <?php echo $this->form->getInput('tag'); ?> </fieldset> <?php foreach ($this->searchareas['search'] as $val => $txt) { ?> <?php hwdMediaShareFactory::load('customfields'); $customfields = hwdMediaShareCustomFields::get(null, $elementSet[$val]); ?> <?php foreach ($customfields['fields'] as $group => $groupFields) { ?> <fieldset id="<?php echo $val; ?> -search-fieldset" class="only <?php echo $val; ?> -search-fieldset"> <legend><?php echo JText::_('COM_HWDMS_' . $txt); ?>
public function getAvatar() { $sql = Komento::getSql(); $sql->select('#__hwdms_users')->where('id', $this->profile->id); $result = $sql->loadObject(); if (isset($result->key)) { hwdMediaShareFactory::load('files'); hwdMediaShareFiles::getLocalStoragePath(); $folders = hwdMediaShareFiles::getFolders($result->key); $filename = hwdMediaShareFiles::getFilename($result->key, 10); $ext = hwdMediaShareFiles::getExtension($result, 10); $path = hwdMediaShareFiles::getPath($folders, $filename, $ext); if (file_exists($path)) { return hwdMediaShareFiles::getUrl($folders, $filename, $ext); } } return JURI::root(true) . '/media/com_hwdmediashare/assets/images/default-avatar.png'; }