Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758
array( // Add the page to load self::LOAD_JS_PARAMETER => $page, // If we are in the backend, we must load the common scripts self::IS_BACKEND_PARAMETER => $load_backend_script, // If we are on the calendar page we must load the correct option self::IS_CALENDAR_PAGE => $is_calendar_page, ), trailingslashit( ai1ec_get_site_url() ) ); if ( $this->_settings->get( 'cache_dynamic_js' ) && $is_calendar_page && '1' === $this->_registry->get( 'model.option' )->get( 'calendarjsupdated' ) && $this->_registry->get( 'filesystem.checker' )->check_file_exists( AI1EC_PATH . self::CALENDAR_JS_CACHE_FILE, true ) ) { $url = plugin_dir_url( 'all-in-one-event-calendar/public/js_cache/.' ) . $page; } if ( true === $backend ) { $this->_scripts_helper->enqueue_script( self::JS_HANDLE, $url, array( 'postbox' ), true ); } else { $this->_scripts_helper->enqueue_script( self::JS_HANDLE, $url, array(), false ); } } /** * check if we are editing an event * * @return boolean TRUE if we are editing an event FALSE otherwise */ private function _are_we_editing_an_event() { if ( !isset( $_SERVER['SCRIPT_NAME'] ) ) { return FALSE; } $path_details = pathinfo( $_SERVER['SCRIPT_NAME'] ); $post_id = isset( $_GET['post'] ) ? $_GET['post'] : FALSE; $action = isset( $_GET['action'] ) ? $_GET['action'] : FALSE; if( $post_id === FALSE || $action === FALSE ) { return FALSE; } $editing = ( 'post.php' === $path_details['basename'] && 'edit' === $action && $this->_aco->is_our_post_type( $post_id ) ); return $editing; } /** * check if we are viewing events list * * @return boolean TRUE if we are on the events list FALSE otherwise */ private function _are_we_managing_events_list() { if ( !isset( $_SERVER['SCRIPT_NAME'] ) ) { return FALSE; } $path_details = pathinfo( $_SERVER['SCRIPT_NAME'] ); $post_type = isset( $_GET['post_type'] ) ? $_GET['post_type'] : FALSE; if ( FALSE === $post_type ) { return FALSE; } $page = isset( $_GET['page'] ) ? $_GET['page'] : ''; $events_list = ( 'edit.php' === $path_details['basename'] && 'ai1ec_event' === $post_type && ai1ec_is_blank( $page ) ); return $events_list; } /** * check if we are creating a new event * * @return boolean TRUE if we are creating a new event FALSE otherwise */ private function _are_we_creating_a_new_event() { if ( !isset( $_SERVER['SCRIPT_NAME'] ) ) { return FALSE; } $path_details = pathinfo( $_SERVER['SCRIPT_NAME'] ); $post_type = isset( $_GET['post_type'] ) ? $_GET['post_type'] : ''; return $path_details['basename'] === 'post-new.php' && $post_type === AI1EC_POST_TYPE; } /** * Check if we are accessing the settings page * * @return boolean TRUE if we are accessing the settings page FALSE otherwise */ private function _are_we_accessing_the_calendar_settings_page() { if ( !isset( $_SERVER['SCRIPT_NAME'] ) ) { return FALSE; } $path_details = pathinfo( $_SERVER['SCRIPT_NAME'] ); $page = isset( $_GET['page'] ) ? $_GET['page'] : ''; return $path_details['basename'] === 'edit.php' && $page === AI1EC_PLUGIN_NAME . '-settings'; } protected function _are_we_creating_widgets() { if ( !isset( $_SERVER['SCRIPT_NAME'] ) ) { return FALSE; } $path_details = pathinfo( $_SERVER['SCRIPT_NAME'] ); $page = isset( $_GET['page'] ) ? $_GET['page'] : ''; return $path_details['basename'] === 'edit.php' && $page === AI1EC_PLUGIN_NAME . '-widget-creator'; } protected function _are_we_managing_tickets() { if ( !isset( $_SERVER['SCRIPT_NAME'] ) ) { return FALSE; } $path_details = pathinfo( $_SERVER['SCRIPT_NAME'] ); $page = isset( $_GET['page'] ) ? $_GET['page'] : ''; return $path_details['basename'] === 'edit.php' && $page === AI1EC_PLUGIN_NAME . '-tickets'; } /** * Check if we are editing less variables * * @return boolean TRUE if we are accessing a single event page FALSE otherwise */ private function _are_we_editing_less_variables() { if ( !isset( $_SERVER['SCRIPT_NAME'] ) ) { return FALSE; } $path_details = pathinfo( $_SERVER['SCRIPT_NAME'] ); $page = isset( $_GET['page'] ) ? $_GET['page'] : ''; return $path_details['basename'] === 'edit.php' && $page === AI1EC_PLUGIN_NAME . '-edit-css'; } /** * Check if we are accessing the events category page * * @return boolean TRUE if we are accessing the events category page FALSE otherwise */ private function _are_we_editing_event_categories() { if ( !isset( $_SERVER['SCRIPT_NAME'] ) ) { return FALSE; } $path_details = pathinfo( $_SERVER['SCRIPT_NAME'] ); $post_type = isset( $_GET['post_type'] ) ? $_GET['post_type'] : ''; return ( $path_details['basename'] === 'edit-tags.php' || $path_details['basename'] === 'term.php' ) && $post_type === AI1EC_POST_TYPE; } /** * Check if we are accessing a single event page * * @return boolean TRUE if we are accessing a single event page FALSE otherwise */ private function _are_we_accessing_the_single_event_page() { return $this->_aco->is_our_post_type(); } }