本文整理汇总了PHP中PhocaGalleryFile::existsCss方法的典型用法代码示例。如果您正苦于以下问题:PHP PhocaGalleryFile::existsCss方法的具体用法?PHP PhocaGalleryFile::existsCss怎么用?PHP PhocaGalleryFile::existsCss使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhocaGalleryFile
的用法示例。
在下文中一共展示了PhocaGalleryFile::existsCss方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
echo "\n\n";
//echo '<tr class="row'.$iD.'" sortable-group-id="'.$item->type.'" item-id="'.$item->id.'" parents="'.$item->type.'" level="0">'. "\n";
echo '<tr class="row' . $iD . '" sortable-group-id="' . $item->type . '" >' . "\n";
echo $r->tdOrder($canChange, $saveOrder, $orderkey);
echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
$checkO = '';
if ($item->checked_out) {
$checkO .= JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, $tasks . '.', $canCheckin);
}
if ($canCreate || $canEdit) {
$checkO .= '<a href="' . JRoute::_($linkEdit) . '">' . $this->escape($item->title) . '</a>';
} else {
$checkO .= $this->escape($item->title);
}
echo $r->td($checkO, "small hidden-phone");
$filename = PhocaGalleryFile::existsCss($item->filename, $item->type);
$main = '';
if ((int) $item->type == 1) {
$main = ' <span class="label label-warning">' . JText::_('COM_PHOCAGALLERY_MAIN') . '</span>';
}
if ($filename) {
echo $r->td($item->filename . $main . ' <span class="label label-success">' . JText::_('COM_PHOCAGALLERY_FILE_EXISTS') . '</span>', "small hidden-phone");
} else {
echo $r->td($item->filename . $main . ' <span class="label label-important">' . JText::_('COM_PHOCAGALLERY_FILE_DOES_NOT_EXIST') . '</span>', "small hidden-phone");
}
echo $r->td(JHtml::_('jgrid.published', $item->published, $i, $tasks . '.', $canChange), "small hidden-phone");
switch ($item->type) {
case 2:
echo $r->td(JText::_('COM_PHOCAGALLERY_CUSTOM_CSS'), "small hidden-phone");
break;
case 1: