<?php

global $rcl_options;

if ( ! isset( $rcl_options['info_author_recall'] ) )
	$rcl_options['info_author_recall']			 = 1;
if ( ! isset( $rcl_options['moderation_public_post'] ) )
	$rcl_options['moderation_public_post']		 = 1;
if ( ! isset( $rcl_options['id_parent_category'] ) )
	$rcl_options['id_parent_category']			 = '';
if ( ! isset( $rcl_options['user_public_access_recall'] ) )
	$rcl_options['user_public_access_recall']	 = 2;

if ( ! isset( $rcl_options['public_form_page_rcl'] ) ) {
	if ( ! rcl_isset_plugin_page( 'public-editpage' ) ) {
		$rcl_options['public_form_page_rcl'] = rcl_create_plugin_page( 'public-editpage', [
			'post_title'	 => 'Форма публикации',
			'post_content'	 => '[public-form]',
			'post_name'		 => 'rcl-postedit'
			] );
	}
}

if ( ! isset( $rcl_options['publics_block_rcl'] ) )
	$rcl_options['publics_block_rcl']		 = 1;
if ( ! isset( $rcl_options['view_publics_block_rcl'] ) )
	$rcl_options['view_publics_block_rcl']	 = 1;

if ( ! isset( $rcl_options['type_text_editor'] ) ) {
	$rcl_options['type_text_editor'] = 1;
	$rcl_options['wp_editor']		 = array( 1, 2 );
}

if ( ! isset( $rcl_options['output_public_form_rcl'] ) )
	$rcl_options['output_public_form_rcl']		 = 1;
if ( ! isset( $rcl_options['user_public_access_recall'] ) )
	$rcl_options['user_public_access_recall']	 = 2;
if ( ! isset( $rcl_options['front_editing'] ) )
	$rcl_options['front_editing']				 = array( 2 );
if ( ! isset( $rcl_options['media_uploader'] ) )
	$rcl_options['media_uploader']				 = 1;

if ( ! isset( $rcl_options['pm_rcl'] ) )
	$rcl_options['pm_rcl']	 = 1;
if ( ! isset( $rcl_options['pm_place'] ) )
	$rcl_options['pm_place'] = 0;

update_site_option( 'rcl_global_options', $rcl_options );
