/**
  * 	@deprecated
  * 	@since 4.4.0
  */
 public static function posts_where_sql_for_show_expired($show_expired = FALSE)
 {
     EE_Registry::instance()->load_helper('Event_Query');
     EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
     return EEH_Event_Query::posts_where_sql_for_show_expired($show_expired);
 }
コード例 #2
0
 /**
  *    posts_where
  *
  * @access    public
  * @param string   $SQL
  * @param WP_Query $wp_query
  * @return    string
  */
 public static function posts_where($SQL = '', WP_Query $wp_query)
 {
     if (EEH_Event_Query::apply_query_filters($wp_query)) {
         // Show Expired ?
         $SQL .= EEH_Event_Query::posts_where_sql_for_show_expired(EEH_Event_Query::$_event_query_show_expired);
         // Category
         $SQL .= EEH_Event_Query::posts_where_sql_for_event_category_slug(EEH_Event_Query::$_event_query_category);
         // Start Date
         $SQL .= EEH_Event_Query::posts_where_sql_for_event_list_month(EEH_Event_Query::$_event_query_month);
     }
     return $SQL;
 }
コード例 #3
0
 /**
  *    posts_where
  *
  * @access    public
  * @param string   $SQL
  * @param WP_Query $wp_query
  * @return    string
  */
 public static function posts_where($SQL = '', WP_Query $wp_query)
 {
     if (isset($wp_query->query_vars) && isset($wp_query->query_vars['post_type']) && $wp_query->query_vars['post_type'] == 'espresso_events') {
         // Show Expired ?
         $SQL .= EEH_Event_Query::posts_where_sql_for_show_expired(EEH_Event_Query::$_event_query_show_expired);
         // Category
         $SQL .= EEH_Event_Query::posts_where_sql_for_event_category_slug(EEH_Event_Query::$_event_query_category);
         // Start Date
         $SQL .= EEH_Event_Query::posts_where_sql_for_event_list_month(EEH_Event_Query::$_event_query_month);
         //			echo '<h5 style="color:#2EA2CC;">$SQL : <span style="color:#E76700">' . $SQL . '</span><br/><span style="font-size:9px;font-weight:normal;color:#666">' . __FILE__ . '</span>    <b style="font-size:10px;color:#333">  ' . __LINE__ . ' </b></h5>';
     }
     return $SQL;
 }
コード例 #4
0
 /**
  * 	@deprecated
  * 	@since 4.4.0
  */
 public static function posts_where_sql_for_show_expired($show_expired = FALSE)
 {
     EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
     return EEH_Event_Query::posts_where_sql_for_show_expired($show_expired);
 }