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

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/load.php on line 926

Notice: Trying to access array offset on value of type bool in /var/www/html/ticnews.com.br/web/wp-includes/theme.php on line 2360

Notice: Trying to access array offset on value of type bool in /var/www/html/ticnews.com.br/web/wp-content/plugins/download-monitor/src/DLM.php on line 236

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768
'editing-events' => array( 'name' => Ai1ec_I18n::__( 'Adding/Editing Events' ), ), 'advanced' => array( 'name' => Ai1ec_I18n::__( 'Advanced' ), 'items' => array( 'advanced' => Ai1ec_I18n::__( 'Advanced Settings' ), 'embedded-views' => Ai1ec_I18n::__( 'Shortcodes' ), 'email' => Ai1ec_I18n::__( 'Email Templates' ), 'apis' => Ai1ec_I18n::__( 'External Services' ), 'cache' => Ai1ec_I18n::__( 'Cache Report' ), ) ) ); // let other extensions add tabs. $tabs = apply_filters( 'ai1ec_add_setting_tabs', $tabs ); $settings = $this->_registry->get( 'model.settings' ); $plugin_settings = $settings->get_options(); $tabs = $this->_get_tabs_to_show( $plugin_settings, $tabs ); $loader = $this->_registry->get( 'theme.loader' ); $api = $this->_registry->get( 'model.api.api-registration' ); $signup_available = $api->is_api_sign_up_available(); $signed_to_api = $api->is_signed(); $ticketing_message = $api->get_sign_message(); $loader = $this->_registry->get( 'theme.loader' ); $account = $api->get_current_account(); $signup_args = array( 'api_signed' => $signed_to_api, 'signup_available' => $signup_available, 'title' => Ai1ec_I18n::__( 'Please, Sign In to Timely Network.' ), 'nonce' => array( 'action' => 'ai1ec_api_ticketing_signup', 'name' => 'ai1ec_api_ticketing_nonce', 'referrer' => false, ), 'api_action' => '?controller=front&action=ai1ec_api_ticketing_signup&plugin=' . AI1EC_PLUGIN_NAME, 'required_text' => Ai1ec_I18n::__( 'This field is required.' ), 'register_text' => Ai1ec_I18n::__( 'Register' ), 'sign_in_text' => Ai1ec_I18n::__( 'Sign in' ), 'signed_in_text' => Ai1ec_I18n::__( 'You are signed in to Timely Network as ' . $account ), 'sign_out_text' => Ai1ec_I18n::__( 'Sign out' ), 'can_sign_out' => apply_filters( 'ai1ec_api_can_sign_out', true ), 'full_name_text' => Ai1ec_I18n::__( 'Full Name:' ), 'hide_form_text' => Ai1ec_I18n::__( 'Hide form' ), 'show_form_text' => Ai1ec_I18n::__( 'Show form' ), 'email_text' => Ai1ec_I18n::__( 'Email:' ), 'password_text' => Ai1ec_I18n::__( 'Password:' ), 'confirm_password_text' => Ai1ec_I18n::__( 'Confirm Password:' ), 'phone_number_text' => Ai1ec_I18n::__( 'Phone Number:' ), 'terms_text' => Ai1ec_I18n::__( 'I confirm that I have read, understand and agree with the terms of service.' ), 'sign_out_warning' => Ai1ec_I18n::__( '

Attention Required:

If you choose to sign-out of the API Timely Network this will close all the created tickets and remove user access to them. In this case, on the event page, users will see the status “Event closed”.' ), 'sign_out_cancel' => Ai1ec_I18n::__( 'Cancel' ), 'sign_out_confirm' => Ai1ec_I18n::__( 'Sign Out' ), 'sign_up_button_text' => Ai1ec_I18n::__( 'Sign Up' ), 'sign_in_button_text' => Ai1ec_I18n::__( 'Sign In' ), 'calendar_type_text' => Ai1ec_I18n::__( 'Calendar Type:' ), 'calendar_types' => array( 'tourism' => Ai1ec_I18n::__( 'Tourism' ), 'media' => Ai1ec_I18n::__( 'Media' ), 'community_hubs' => Ai1ec_I18n::__( 'Community Hubs' ), 'education' => Ai1ec_I18n::__( 'Education' ), 'venue_business' => Ai1ec_I18n::__( 'Venue/Business' ), 'artist_performer' => Ai1ec_I18n::__( 'Artist/Performer' ), 'church_spiritual' => Ai1ec_I18n::__( 'Church/Spiritual' ), 'association_group' => Ai1ec_I18n::__( 'Association/Group' ), 'other' => Ai1ec_I18n::__( 'Other' ) ), ); $loader->get_file( 'setting/api-signup.twig', $signup_args, true )->render(); $args = array( 'tabs' => $tabs, 'content_class' => 'ai1ec-form-horizontal', 'submit' => array( 'id' => 'ai1ec_save_settings', 'value' => ' ' . Ai1ec_I18n::__( 'Save Settings' ), 'args' => array( 'class' => 'ai1ec-btn ai1ec-btn-primary ai1ec-btn-lg', ), ), 'pre_tabs_markup' => sprintf( '
' . Ai1ec_I18n::__( 'If the form below is not working please follow this link.' ) . '
', wp_nonce_url( add_query_arg( 'ai1ec_disable_gzip_compression', '1' ), 'ai1ec_disable_gzip_compression' ) ) ); $file = $loader->get_file( 'setting/bootstrap_tabs.twig', $args, true ); $file->render(); } /** * Based on the plugin options, decides what tabs to render. * * * * @param array $plugin_settings * @param array $tabs * * @return array */ protected function _get_tabs_to_show( array $plugin_settings, array $tabs ) { $index = 0; $renderer = $this->_registry->get( 'html.element.setting-renderer' ); foreach ( $plugin_settings as $id => $setting ) { // if the setting is shown if ( isset ( $setting['renderer'] ) ) { $tab_to_use = isset( $setting['renderer']['item'] ) ? $setting['renderer']['item'] : $setting['renderer']['tab']; // check if it's the first one if ( ! isset ( $tabs[$tab_to_use]['elements'] ) ) { $tabs[$tab_to_use]['elements'] = array(); } $setting['id'] = $id; // render the settings $weight = 10; if ( isset( $setting['renderer']['weight'] ) ) { $weight = (int)$setting['renderer']['weight']; } // NOTICE: do NOT change order of two first // elements {weight,index}, otherwise sorting will fail. $tabs[$tab_to_use]['elements'][] = array( 'weight' => $weight, 'index' => ++$index, 'html' => $renderer->render( $setting ), ); // if the settings has an item tab, set the item as active. if ( isset( $setting['renderer']['item'] ) ) { if ( ! isset( $tabs[$setting['renderer']['tab']]['items_active'][$setting['renderer']['item']] ) ) { $tabs[$setting['renderer']['tab']]['items_active'][$setting['renderer']['item']] = true; } } } } $tabs_to_display = array(); // now let's see what tabs to display. foreach ( $tabs as $name => $tab ) { // sort by weights if ( isset( $tab['elements'] ) ) { asort( $tab['elements'] ); } // if a tab has more than one item. if ( isset( $tab['items'] ) ) { // if no item is active, nothing is shown if ( empty( $tab['items_active'] ) ) { continue; } // if only one item is active, do not use the dropdown if ( count( $tab['items_active'] ) === 0 ) { $name = key($tab['items_active']); $tab['name'] = $tab['items'][$name]; unset ( $tab['items'] ); } else { // check active items for the dropdown foreach ( $tab['items'] as $item => $longname ) { if ( ! isset( $tab['items_active'][$item] ) ) { unset( $tab['items'][$item] ); } } } // lets make a check to avoid overriding tabs if ( ! isset( $tabs_to_display[$name] ) ) { $tabs_to_display[$name] = $tab; } else { $tabs_to_display[$name]['elements'] = $tab['elements']; } } else { // no items, just check for any element to display. if ( isset( $tab['elements'] ) ) { // lets make a check to avoid overriding tabs if ( ! isset( $tabs_to_display[$name] ) ) { $tabs_to_display[$name] = $tab; } else { $tabs_to_display[$name]['elements'] = $tab['elements']; } } } } return $tabs_to_display; } }