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
=> ai1ec_admin_url(
'edit.php?post_type=ai1ec_event&page=all-in-one-event-calendar-settings'
),
'query_args' => array(
'updated' => 1
)
);
}
/**
* Handle saving enabled_views.
*
* @return array
*/
protected function _handle_saving_enabled_views() {
$settings = $this->_registry->get( 'model.settings' );
$enabled_views = $settings->get( 'enabled_views' );
foreach ( $enabled_views as $view => &$options ) {
$options['enabled'] = isset( $_POST['view_' . $view . '_enabled'] );
$options['default'] = isset( $_POST['default_calendar_view'] )
? $_POST['default_calendar_view'] === $view
: false;
$options['enabled_mobile'] =
isset( $_POST['view_' . $view . '_enabled_mobile'] );
$options['default_mobile'] =
isset( $_POST['default_calendar_view_mobile'] ) &&
$_POST['default_calendar_view_mobile'] === $view;
}
return $enabled_views;
}
/**
* Handle saving default_tag_categories option
*
* @return array
*/
protected function _handle_saving_default_tags_categories() {
return array(
'tags' => isset( $_POST['default_tags_categories_default_tags'] ) ?
$_POST['default_tags_categories_default_tags'] :
array(),
'categories' => isset( $_POST['default_tags_categories_default_categories'] ) ?
$_POST['default_tags_categories_default_categories'] :
array(),
);
}
/**
* Creates the calendar page if a string is passed.
*
* @param int|string $calendar_page
*
* @return int
*/
protected function _handle_saving_calendar_page_id( $calendar_page ) {
if (
! is_numeric( $calendar_page ) &&
preg_match( '#^__auto_page:(.*?)$#', $calendar_page, $matches )
) {
return wp_insert_post(
array(
'post_title' => $matches[1],
'post_type' => 'page',
'post_status' => 'publish',
'comment_status' => 'closed'
)
);
} else {
return (int)$calendar_page;
}
}
}