} ?> <?php if ($this->list_published) { ?> <td nowrap> <a href="#" id="publish_<?php echo $item['id']; ?> " class="fss_publish_button" state="<?php echo $item['published']; ?> "> <?php echo FSS_Helper::GetPublishedText($item['published']); ?> </a> </td> <?php } ?> <?php if (FSS_Permission::auth("core.edit", $this->getAsset())) { ?> <?php if ($this->list_user) { ?> <td><?php echo $item['name'];
function EditPanel($item, $changeclass = true) { $this->Init(); $this->changeclass = $changeclass; $output = ""; if (FSS_Permission::auth("core.edit", $this->getAsset()) || FSS_Permission::auth("core.edit.own", $this->getAsset()) && $item['author'] == $this->userid) { $label_type = "success"; if (!$item['published']) { $label_type = "warning"; } $output = "<div class='pull-right label label-" . $label_type . "'>"; $output .= "<a href='" . FSSRoute::_("index.php?option=com_fss&view=admin_content&type={$this->id}&what=edit&id={$item['id']}&option=com_fss&return=1") . "' class='fssTip' title='" . JText::_('EDIT_ARTICLE') . "'><img src='" . JURI::root(true) . "/components/com_fss/assets/images/edit.png' alt='Edit' /></a>"; if ($item['published']) { $tip = JText::_("CONTENT_PUB_TIP"); } else { $tip = JText::_('CONTENT_UNPUB_TIP'); } if (FSS_Permission::auth("core.edit.state", $this->getAsset())) { $output .= '<a href="#" id="publish_' . $item['id'] . '" class="fss_publish_button fssTip" state="' . $item['published'] . '" title="' . $tip . '">'; $output .= FSS_Helper::GetPublishedText($item['published'], true); $output .= '</a>'; } else { $output .= str_replace("_16.png", "_g_16.png", FSS_Helper::GetPublishedText($item['published'])); } $output .= "</div>"; } return $output; }