/** * 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(); }
/** * The class constructor. */ public function __construct() { parent::__construct(); add_action('tribe_events_asset_package', array(__CLASS__, 'asset_package'), 10, 2); }
/** * Constructor * * @return void * @author Modern Tribe **/ public function __construct() { parent::__construct(); wp_enqueue_style('tribe-agenda-view', get_stylesheet_directory_uri() . "/tribe-events/agenda-view.css", array(), '0.1', 'screen'); wp_enqueue_script('tribe-agenda-view-scripts', get_stylesheet_directory_uri() . "/tribe-events/agenda-view.js", array('jquery'), null, true); }