getNullDate(); $config =& JFactory::getConfig(); $now =& JFactory::getDate(); //Ordering allowed ? $ordering = (($lists['order'] == 'fpordering')); JHTML::_('behavior.tooltip'); ?>
:
id ); $publish_up =& JFactory::getDate($row->publish_up); $publish_down =& JFactory::getDate($row->publish_down); $publish_up->setOffset($config->getValue('config.offset')); $publish_down->setOffset($config->getValue('config.offset')); if ( $now->toUnix() <= $publish_up->toUnix() && $row->state == 1 ) { $img = 'publish_y.png'; $alt = JText::_( 'Published' ); } else if ( ( $now->toUnix() <= $publish_down->toUnix() || $row->publish_down == $nullDate ) && $row->state == 1 ) { $img = 'publish_g.png'; $alt = JText::_( 'Published' ); } else if ( $now->toUnix() > $publish_down->toUnix() && $row->state == 1 ) { $img = 'publish_r.png'; $alt = JText::_( 'Expired' ); } else if ( $row->state == 0 ) { $img = 'publish_x.png'; $alt = JText::_( 'Unpublished' ); } else if ( $row->state == -1 ) { $img = 'disabled.png'; $alt = JText::_( 'Archived' ); } $times = ''; if (isset($row->publish_up)) { if ($row->publish_up == $nullDate) { $times .= JText::_( 'Start: Always' ); } else { $times .= JText::_( 'Start' ) .": ". $publish_up->toFormat(); } } if (isset($row->publish_down)) { if ($row->publish_down == $nullDate) { $times .= "
". JText::_( 'Finish: No Expiry' ); } else { $times .= "
". JText::_( 'Finish' ) .": ". $publish_down->toFormat(); } } $access = JHTML::_('grid.access', $row, $i ); $checked = JHTML::_('grid.checkedout', $row, $i ); if ( $user->authorize( 'com_users', 'manage' ) ) { if ( $row->created_by_alias ) { $author = $row->created_by_alias; } else { $linkA = JRoute::_( 'index.php?option=com_users&task=edit&cid[]='. $row->created_by ); $author='' . ''. $row->author .''; } } else { if ( $row->created_by_alias ) { $author = $row->created_by_alias; } else { $author = $row->author; } } // section handling if ($row->sectionid) { $row->sect_link = JRoute::_( 'index.php?option=com_sections&task=edit&cid[]='. $row->sectionid ); $title_sec = JText::_( 'Edit Section' ); } // category handling if ($row->catid) { $row->cat_link = JRoute::_( 'index.php?option=com_categories&task=edit&cid[]='. $row->catid ); $title_cat = JText::_( 'Edit Category' ); } ?> ">
getListFooter(); ?>
getRowOffset( $i ); ?> get ('id'), $row->checked_out ) ) { echo $row->title; } else { ?> title; ?> <?php echo $alt;?> orderUpIcon( $i, true, 'orderup', 'Move Up', $ordering ); ?> orderDownIcon( $i, $n, true, 'orderdown', 'Move Down', $ordering ); ?> class="text_area" style="text-align: center" /> id;?> sectionid) : ?> sect_name; ?> catid) : ?> name; ?>