'insta_token',
'name' => esc_html__( 'Connect instagram account', 'woodmart' ),
'description' => wp_kses(
__( 'To get this data, follow the instructions in our documentation here.', 'woodmart' ),
true
),
'type' => 'instagram_api',
'section' => 'instagram_api_section',
'priority' => 10,
)
);
Options::add_field(
array(
'id' => 'google_map_api_key',
'name' => esc_html__( 'Google map API key', 'woodmart' ),
'type' => 'text_input',
'description' => wp_kses(
__( 'Obtain API key here to use our Google Map VC element.', 'woodmart' ),
true
),
'section' => 'google_api_section',
'tags' => 'google api key',
'priority' => 20,
)
);
Options::add_field(
array(
'id' => 'fb_app_id',
'name' => esc_html__( 'Facebook app ID', 'woodmart' ),
'type' => 'text_input',
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-facebook',
'tab' => esc_html__( 'Facebook', 'woodmart' ),
'style' => 'default',
],
'priority' => 30,
'class' => 'xts-col-6',
)
);
Options::add_field(
array(
'id' => 'fb_app_secret',
'name' => esc_html__( 'Facebook app secret', 'woodmart' ),
'type' => 'text_input',
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-facebook',
'tab' => esc_html__( 'Facebook', 'woodmart' ),
],
'priority' => 40,
'class' => 'xts-col-6',
)
);
Options::add_field(
array(
'id' => 'fb_notice',
'type' => 'notice',
'style' => 'info',
'name' => '',
'content' => wp_kses(
__(
'Enable login with Facebook on your web-site.
To do that you need to create an APP on the Facebook https://developers.facebook.com/.
Then go to APP settings and copy App ID and App Secret there. You also need to insert Redirect URI like this example {{PERMALINK}}facebook/int_callback More information you can get in our documentation.',
'woodmart'
),
true
),
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-facebook',
'tab' => esc_html__( 'Facebook', 'woodmart' ),
],
'priority' => 50,
)
);
Options::add_field(
array(
'id' => 'goo_app_id',
'name' => esc_html__( 'Google app ID', 'woodmart' ),
'type' => 'text_input',
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-google',
'tab' => esc_html__( 'Google', 'woodmart' ),
],
'priority' => 60,
'class' => 'xts-col-6',
)
);
Options::add_field(
array(
'id' => 'goo_app_secret',
'name' => esc_html__( 'Google app secret', 'woodmart' ),
'type' => 'text_input',
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-google',
'tab' => esc_html__( 'Google', 'woodmart' ),
],
'priority' => 70,
'class' => 'xts-col-6',
)
);
Options::add_field(
array(
'id' => 'goo_notice',
'type' => 'notice',
'style' => 'info',
'name' => '',
'content' => wp_kses(
__(
'You can enable login with Google on your web-site.
To do that you need to Create a Google APIs project at https://console.developers.google.com/apis/dashboard/.
Make sure to go to API Access tab and Create an OAuth 2.0 client ID. Choose Web application for Application type. Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually {{PERMALINK}}google/oauth2callback More information you can get in our documentation.',
'woodmart'
),
true
),
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-google',
'tab' => esc_html__( 'Google', 'woodmart' ),
],
'priority' => 80,
)
);
Options::add_field(
array(
'id' => 'vk_app_id',
'name' => esc_html__( 'VKontakte app ID', 'woodmart' ),
'type' => 'text_input',
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-vk',
'tab' => esc_html__( 'VKontakte', 'woodmart' ),
],
'priority' => 90,
'class' => 'xts-col-6',
)
);
Options::add_field(
array(
'id' => 'vk_app_secret',
'name' => esc_html__( 'VKontakte app secret', 'woodmart' ),
'type' => 'text_input',
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-vk',
'tab' => esc_html__( 'VKontakte', 'woodmart' ),
],
'priority' => 100,
'class' => 'xts-col-6',
)
);
Options::add_field(
array(
'id' => 'vk_notice',
'type' => 'notice',
'style' => 'info',
'name' => '',
'content' => wp_kses(
__(
'To enable login with vk.com you need to create an APP here https://vk.com/dev.
Then go to APP settings and copy App ID and App Secret there.
You also need to insert Redirect URI like this example {{PERMALINK}}vkontakte/int_callback',
'woodmart'
),
true
),
'section' => 'social_login_api_section',
't_tab' => [
'id' => 'social_login_tabs',
'icon' => 'xts-i-vk',
'tab' => esc_html__( 'VKontakte', 'woodmart' ),
],
'priority' => 110,
)
);
Options::add_field(
array(
'id' => 'alt_auth_method',
'name' => esc_html__( 'Alternative login mechanism', 'woodmart' ),
'description' => esc_html__( 'Enable it if you are redirected to my account page without signing in after click on the social login button.', 'woodmart' ),
'type' => 'switcher',
'section' => 'social_login_api_section',
'default' => '0',
'priority' => 120,
)
);