echo '<a href="javascript:void(0)" class="file noLink ' . $class . '" title="">' . $name . '</a>'; } } if ($access->canRename && !$access->isTrashed) { echo '<div class="rename blind" style="width: 305px; padding: 5px 5px 0px;">'; echo '<div class="btn-group pull-left">'; echo '<input class="pull-left" style="position: relative; width: 165px;" type="text" name="rename" value="' . $this->escape($access->name) . '" />'; echo '</div>'; echo '<div class="btn-group pull-left">'; echo '<button class="btn" style="position: relative;" onclick="return JoomDOC.rename(this, \'' . addslashes(JoomDOCHelper::getTask(JOOMDOC_DOCUMENT, JOOMDOC_TASK_RENAME)) . '\', \'' . addslashes($access->name) . '\', \'' . addslashes($access->relativePath) . '\',\'' . JText::_('JOOMDOC_RENAME_SAME_NAME', true) . '\',\'' . JText::_('JOOMDOC_RENAME_EMPTY_NAME', true) . '\', \'' . JText::_('JOOMDOC_RENAME_FILE_EXISTS', true) . '\', \'' . JText::_('JOOMDOC_RENAME_DIR_EXISTS', true) . '\')">' . JText::_('JOOMDOC_RENAME_SAVE') . '</button>'; echo '<button class="btn" style="position: relative;" onclick="return JoomDOC.closeRename(this, \'' . addslashes($access->name) . '\')">' . JText::_('JOOMDOC_RENAME_CLOSE') . '</button>'; echo '</div>'; echo '</div>'; } if ($access->isTrashed && $access->canUntrash) { echo '<a href="' . JRoute::_(JoomDOCRoute::untrash($access->relativePath)) . '" class="untrash hasTip" title="' . $this->getTooltip($access->relativePath, 'JOOMDOC_UNTRASH_FILE') . '"></a>'; } echo '</td>'; echo '<td class="rename">'; echo '<div class="btn-group pull-left">'; if ($access->canRename && !$access->isTrashed) { if (JOOMDOC_ISJ3) { //jui button echo '<a href="javascript:void(0)" class="btn btn-smaller hasTip" id="openRename' . $i . '" onclick="JoomDOC.openRename(' . $i . ')" title="' . $this->getTooltip($access->relativePath, 'JOOMDOC_RENAME') . '" style="margin-left: 4px;"><i class="icon-pencil-2"> </i></a>'; } else { echo '<a href="javascript:void(0)" class="rename hasTip" id="openRename' . $i . '" onclick="JoomDOC.openRename(' . $i . ')" title="' . $this->getTooltip($access->relativePath, 'JOOMDOC_RENAME') . '"></a>'; } } echo '</div>'; echo '</td>'; if ($access->docid && !$access->isTrashed) {