本文整理匯總了PHP中FSS_Helper::GetPublishedText方法的典型用法代碼示例。如果您正苦於以下問題:PHP FSS_Helper::GetPublishedText方法的具體用法?PHP FSS_Helper::GetPublishedText怎麽用?PHP FSS_Helper::GetPublishedText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::GetPublishedText方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
}
?>
<?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'];
示例2: EditPanel
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;
}