/** * Set the notices used on month view * * @param array $args Set of $wp_query params for the month view, if none passed then will default to $wp_query * @since 3.0 */ public function __construct($args = null) { if ($args === null) { global $wp_query; $args = $wp_query->query; } self::$args = $args; self::$posts_per_page_limit = apply_filters('tribe_events_month_day_limit', tribe_get_option('monthEventAmount', '3')); if (!tribe_is_month()) { $this->asset_packages = array(); } parent::__construct(); }
/** * Set the notices used on month view * * @param array $args Set of $wp_query params for the month view, if none passed then will default to $wp_query */ public function __construct($args = null) { if ($args === null) { global $wp_query; $args = $wp_query->query; } self::$args = $args; self::$posts_per_page_limit = apply_filters('tribe_events_month_day_limit', tribe_get_option('monthEventAmount', '3')); // don't enqueue scripts and js when we're not constructing month view, // they'll have to be enqueued separately if (!tribe_is_month()) { $this->asset_packages = array(); } parent::__construct(); }