/** * Order by options * * @return array */ static function orderby() { $result = array(); $result['common'] = array(array('label' => array('text' => __('Order by', PT_CV_TEXTDOMAIN)), 'params' => array(array('type' => 'select', 'name' => 'orderby', 'options' => PT_CV_Values::post_regular_orderby(), 'std' => '', 'desc' => __('Select a criteria to sort by', PT_CV_TEXTDOMAIN)))), array('label' => array('text' => __('Order', PT_CV_TEXTDOMAIN)), 'params' => array(array('type' => 'radio', 'name' => 'order', 'options' => PT_CV_Values::orders(), 'std' => 'asc')))); $result = apply_filters(PT_CV_PREFIX_ . 'orderby', $result); return $result; }
/** * Order by options * * @return array */ static function orderby() { $result = array(); $result['common'] = array(array('label' => array('text' => __('Sort by', 'content-views-query-and-display-post-page')), 'params' => array(array('type' => 'select', 'name' => 'orderby', 'options' => PT_CV_Values::post_regular_orderby(), 'std' => ''))), apply_filters(PT_CV_PREFIX_ . 'orders', array('label' => array('text' => __('Order')), 'params' => array(array('type' => 'radio', 'name' => 'order', 'options' => PT_CV_Values::orders(), 'std' => 'asc'))))); $result = apply_filters(PT_CV_PREFIX_ . 'orderby', $result); return $result; }