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
1ec_I18n::__( 'Loading preview ' ) ), 'ticketing' => array( 'details' => Ai1ec_I18n::__( 'Ticketing Details' ), 'hide_details' => Ai1ec_I18n::__( 'Hide Ticketing Details' ), 'loading_details' => Ai1ec_I18n::__( 'Loading tickets details...' ), 'type_and_price' => Ai1ec_I18n::__( 'Type and price' ), 'info' => Ai1ec_I18n::__( 'Info' ), 'information' => Ai1ec_I18n::__( 'Information' ), 'report' => Ai1ec_I18n::__( 'Report' ), 'sale_dates' => Ai1ec_I18n::__( 'Sale dates' ), 'limits' => Ai1ec_I18n::__( 'Limits' ), 'actions' => Ai1ec_I18n::__( 'Actions' ), 'sold' => Ai1ec_I18n::__( 'Sold:' ), 'left' => Ai1ec_I18n::__( 'Left:' ), 'start' => Ai1ec_I18n::__( 'Start:' ), 'end' => Ai1ec_I18n::__( 'End:' ), 'min' => Ai1ec_I18n::__( 'Min:' ), 'max' => Ai1ec_I18n::__( 'Max:' ), 'attendees' => Ai1ec_I18n::__( 'Attendees' ), 'hide_attendees' => Ai1ec_I18n::__( 'Hide Attendees' ), 'attendees_list' => Ai1ec_I18n::__( 'Attendees List' ), 'guest_name' => Ai1ec_I18n::__( 'Guest Name' ), 'status' => Ai1ec_I18n::__( 'Status' ), 'email' => Ai1ec_I18n::__( 'Email' ), 'no_attendees' => Ai1ec_I18n::__( 'No attendees for this ticket type.' ), 'edit' => Ai1ec_I18n::__( 'Edit' ), 'code' => Ai1ec_I18n::__( 'Code' ), 'unlimited' => Ai1ec_I18n::__( 'Unlimited' ), 'open_for_sale' => Ai1ec_I18n::__( 'Open for sale' ), 'no_delete_text' => Ai1ec_I18n::__( 'You have sold tickets for this ticket type. Please change it\'s status to "Canceled" and make refunds to all users that purchased tickets.' ), 'cancel_message' => Ai1ec_I18n::__( 'You have sold tickets for this ticket type. Please make refunds to all users that purchased tickets' ) ), 'review' => array( 'message_sent' => Ai1ec_I18n::__( 'Your message has been sent. Thank you for your feedback.' ), 'message_error' => Ai1ec_I18n::__( 'Your message has not been sent. Please try again or contact us.' ) ), 'load_views_error' => Ai1ec_I18n::__( 'Something went wrong while fetching events.
The request status is: %STATUS%
The error thrown was: %ERROR%' ), 'load_views_error_popup_title' => Ai1ec_I18n::__( 'Response text received from server' ), 'load_views_error_link_popup' => Ai1ec_I18n::__( 'Click here for technical details' ), 'cookie_path' => $this->_registry->get( 'cookie.utility' )->get_path_for_cookie(), 'disable_autocompletion' => $settings->get( 'disable_autocompletion' ), 'end_must_be_after_start' => __( 'The end date can\'t be earlier than the start date.', AI1EC_PLUGIN_NAME ), 'show_at_least_six_hours' => __( 'For week and day view, you must select an interval of at least 6 hours.', AI1EC_PLUGIN_NAME ), 'ai1ec_permalinks_enabled' => $application->get( 'permalinks_enabled' ), ); return apply_filters( 'ai1ec_js_translations', $data ); } /** * Get the array with translated data for the frontend * * @return array */ public function get_frontend_translation_data() { $data = array( 'export_url' => AI1EC_EXPORT_URL, ); // Replace desired CSS selector with calendar, if selector has been set $calendar_selector = $this->_settings->get( 'calendar_css_selector' ); if( $calendar_selector ) { $page = get_post( $this->_settings->get( 'calendar_page_id' ) ); $data['selector'] = $calendar_selector; $data['title'] = $page->post_title; } // DEPRECATED: Only still here for backwards compatibility with Ai1ec 1.x. $data['fonts'] = array(); $fonts_dir = AI1EC_DEFAULT_THEME_URL . 'font_css/'; $data['fonts'][] = array( 'name' => 'League Gothic', 'url' => $fonts_dir . 'font-league-gothic.css', ); $data['fonts'][] = array( 'name' => 'fontawesome', 'url' => $fonts_dir . 'font-awesome.css', ); return $data; } /** * Echoes the Javascript if not cached. * * Echoes the javascript with the correct content. * Since the content is dinamic, i use the hash function. * * @param string $javascript * * @return void */ private function _echo_javascript( $javascript ) { $conditional_get = new HTTP_ConditionalGet( array( 'contentHash' => md5( $javascript ) ) ); $conditional_get->sendHeaders(); if ( ! $conditional_get->cacheIsValid ) { $http_encoder = $this->_registry->get( 'http.encoder', array( 'content' => $javascript, 'type' => 'text/javascript' ) ); $compression_level = null; if ( $this->_registry->get( 'model.settings' )->get( 'disable_gzip_compression' ) ) { // set the compression level to 0 to disable it. $compression_level = 0; } $http_encoder->encode( $compression_level ); $http_encoder->sendAll(); } Ai1ec_Http_Response_Helper::stop( 0 ); } /** * Create the config object for requirejs. * * @return string */ public function create_require_js_config_object() { $js_url = AI1EC_ADMIN_THEME_JS_URL; $version = AI1EC_VERSION; $namespace = self::REQUIRE_NAMESPACE; $config = <<_settings->get( 'calendar_page_id' ) ) || self::CALENDAR_PAGE_JS === $page ) { $is_calendar_page = self::TRUE_PARAM; } $url = add_query_arg( 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(); } }