You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defined ( '_JEXEC' ) or die ( 'Restricted access' );
abstract class mod_jmnewstickerHelper {
static function getList($params) {
$db = JFactory::getDbo ();
$query = $db->getQuery ( true );
$query->select ( '*' );
$query->from ( '#__content' );
$category = $params->get ( 'category', '' );
$category = intval ( $category );
if (isset ( $category ) && $category) {
$query->where ( 'catid = ' . $category . ' AND state = 1 AND ((now() >= publish_up OR publish_up = 0) AND (now() <= publish_down OR publish_down = 0))' );