plugin updates
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
v2.7.16
|
||||
# Improvement: Improved codebase for improved security.
|
||||
# Improvement: PHP 8.2 compatibility testing and fixes.
|
||||
# Improvement: Updated placeholder URL from HTTP to HTTPS.
|
||||
# Fix: Resolved conflicts with Avada builder plugin.
|
||||
# Fix: Resolved fatal error caused by identical function name conflicts with other plugins.
|
||||
# Fix: Undefined wpcom_vip_url_to_postid causing fatal error.
|
||||
|
||||
v2.7.15
|
||||
# Fix: Fields data not saving when page is updated.
|
||||
# Fix: Implemented refined guidelines for Product review and rating.
|
||||
|
||||
@@ -140,7 +140,13 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Custom_Fields_Markup' ) ) {
|
||||
$atts
|
||||
);
|
||||
|
||||
$post_id = empty( $args['post_id'] ) ? get_the_ID() : (int) $args['post_id'];
|
||||
$post_id = empty( $args['post_id'] ) ? get_the_ID() : (int) $args['post_id'];
|
||||
$post = get_post( $post_id );
|
||||
|
||||
if ( ! current_user_can( 'edit_post', $post_id ) || ( ! current_user_can( 'read_private_posts' ) && ( 'private' === $post->post_status ) ) ) {
|
||||
return ''; // Insufficient permissions or invalid post.
|
||||
}
|
||||
|
||||
$allowed_post_types = array( 'post', 'page', 'comment', 'term' );
|
||||
if ( ! in_array( $args['post_type'], $allowed_post_types ) ) {
|
||||
return 'Invalid post type';
|
||||
@@ -467,7 +473,7 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Custom_Fields_Markup' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
self::$meta_options = call_user_func_array('array_merge', self::$meta_options);
|
||||
self::$meta_options = call_user_func_array( 'array_merge', self::$meta_options );
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1184,7 +1190,8 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Custom_Fields_Markup' ) ) {
|
||||
* Get meta options
|
||||
*/
|
||||
$this->init_static_fields( $post_id );
|
||||
$post_meta = self::$meta_options;
|
||||
$post_meta = self::$meta_options;
|
||||
$meta_value = null;
|
||||
foreach ( $post_meta as $key => $data ) {
|
||||
if ( is_numeric( $key ) ) {
|
||||
// Sanitize values.
|
||||
@@ -1193,30 +1200,42 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Custom_Fields_Markup' ) ) {
|
||||
switch ( $sanitize_filter ) {
|
||||
|
||||
case 'FILTER_SANITIZE_STRING':
|
||||
$meta_value = filter_input( INPUT_POST, $data['name'], FILTER_DEFAULT ); // phpcs:ignore WordPressVIPMinimum.Security.PHPFilterFunctions.RestrictedFilter
|
||||
if ( isset( $data['name'] ) ) {
|
||||
$meta_value = filter_input( INPUT_POST, $data['name'], FILTER_DEFAULT ); // phpcs:ignore WordPressVIPMinimum.Security.PHPFilterFunctions.RestrictedFilter
|
||||
}
|
||||
break;
|
||||
|
||||
case 'FILTER_SANITIZE_URL':
|
||||
$meta_value = filter_input( INPUT_POST, $data['name'], FILTER_SANITIZE_URL );
|
||||
if ( isset( $data['name'] ) ) {
|
||||
$meta_value = filter_input( INPUT_POST, $data['name'], FILTER_SANITIZE_URL );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'FILTER_SANITIZE_NUMBER_INT':
|
||||
$meta_value = filter_input( INPUT_POST, $data['name'], FILTER_SANITIZE_NUMBER_INT );
|
||||
if ( isset( $data['name'] ) ) {
|
||||
$meta_value = filter_input( INPUT_POST, $data['name'], FILTER_SANITIZE_NUMBER_INT );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'repeater-target':
|
||||
case 'repeater':
|
||||
$meta_value = isset( $_POST[ $data['name'] ] ) ? $_POST[ $data['name'] ] : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
||||
if ( isset( $data['name'] ) ) {
|
||||
$meta_value = isset( $_POST[ $data['name'] ] ) ? $_POST[ $data['name'] ] : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
$meta_value = filter_input( INPUT_POST, $data['name'], FILTER_DEFAULT ); // phpcs:ignore WordPressVIPMinimum.Security.PHPFilterFunctions.RestrictedFilter
|
||||
if ( isset( $data['name'] ) ) {
|
||||
$meta_value = filter_input( INPUT_POST, $data['name'], FILTER_DEFAULT ); // phpcs:ignore WordPressVIPMinimum.Security.PHPFilterFunctions.RestrictedFilter
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
update_post_meta( $post_id, $data['name'] . '-fieldtype', filter_input( INPUT_POST, $data['name'] . '-fieldtype', FILTER_DEFAULT ) ); // phpcs:ignore WordPressVIPMinimum.Security.PHPFilterFunctions.RestrictedFilter
|
||||
update_post_meta( $post_id, $data['name'], $meta_value );
|
||||
if ( isset( $data['name'] ) ) {
|
||||
update_post_meta( $post_id, $data['name'] . '-fieldtype', filter_input( INPUT_POST, $data['name'] . '-fieldtype', FILTER_DEFAULT ) ); // phpcs:ignore WordPressVIPMinimum.Security.PHPFilterFunctions.RestrictedFilter
|
||||
update_post_meta( $post_id, $data['name'], $meta_value );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema_Template' ) ) {
|
||||
}
|
||||
if ( is_array( $value ) ) {
|
||||
foreach ( $value as $val ) {
|
||||
if( is_array( $val ) ) {
|
||||
if ( is_array( $val ) ) {
|
||||
$selected[] = $val['value'];
|
||||
} else {
|
||||
$selected[] = $val;
|
||||
|
||||
@@ -15,6 +15,8 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema_Wizard' ) ) :
|
||||
* BSF_AIOSRS_Pro_Schema_Wizard class.
|
||||
*/
|
||||
class BSF_AIOSRS_Pro_Schema_Wizard {
|
||||
protected $steps = array();
|
||||
protected $step;
|
||||
|
||||
/**
|
||||
* Hook in tabs.
|
||||
@@ -24,25 +26,7 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema_Wizard' ) ) :
|
||||
add_action( 'admin_menu', array( $this, 'admin_menus' ) );
|
||||
add_action( 'admin_init', array( $this, 'setup_wizard' ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add admin menus/screens.
|
||||
*/
|
||||
public function admin_menus() {
|
||||
add_dashboard_page( '', '', 'manage_options', 'aiosrs-pro-setup', '' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the setup wizard.
|
||||
*/
|
||||
public function setup_wizard() {
|
||||
if ( isset( $_REQUEST['wp_schema_pro_admin_page_nonce'] ) && ! wp_verify_nonce( sanitize_text_field( $_REQUEST['wp_schema_pro_admin_page_nonce'] ), 'wp_schema_pro_admin_page' ) ) {
|
||||
return;
|
||||
}
|
||||
if ( empty( $_GET['page'] ) || 'aiosrs-pro-setup' !== $_GET['page'] ) {
|
||||
return;
|
||||
}
|
||||
$this->steps = array(
|
||||
'basic-config' => array(
|
||||
'name' => __( 'Choose Schema Type', 'wp-schema-pro' ),
|
||||
@@ -60,7 +44,27 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema_Wizard' ) ) :
|
||||
'handler' => '',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add admin menus/screens.
|
||||
*/
|
||||
public function admin_menus() {
|
||||
add_dashboard_page( '', '', 'manage_options', 'aiosrs-pro-setup', '' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the setup wizard.
|
||||
*/
|
||||
public function setup_wizard() {
|
||||
if ( isset( $_REQUEST['wp_schema_pro_admin_page_nonce'] ) && ! wp_verify_nonce( sanitize_text_field( $_REQUEST['wp_schema_pro_admin_page_nonce'] ), 'wp_schema_pro_admin_page' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( empty( $_GET['page'] ) || 'aiosrs-pro-setup' !== $_GET['page'] ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->step = isset( $_GET['step'] ) ? sanitize_key( $_GET['step'] ) : current( array_keys( $this->steps ) );
|
||||
|
||||
wp_enqueue_style( 'aiosrs-pro-setup', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_css . 'setup-wizard.' . BSF_AIOSRS_Pro_Admin::$minfy_css_ext, array( 'dashicons', 'install' ), BSF_AIOSRS_PRO_VER );
|
||||
|
||||
@@ -1621,10 +1621,10 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema' ) ) {
|
||||
),
|
||||
),
|
||||
'rating' => array(
|
||||
'label' => esc_html__( 'Rating', 'wp-schema-pro' ),
|
||||
'type' => 'rating',
|
||||
'default' => 'accept-user-rating',
|
||||
'description' => esc_html__( 'To maintain accurate product information, kindly provide at least one rating.', 'wp-schema-pro')
|
||||
'label' => esc_html__( 'Rating', 'wp-schema-pro' ),
|
||||
'type' => 'rating',
|
||||
'default' => 'accept-user-rating',
|
||||
'description' => esc_html__( 'To maintain accurate product information, kindly provide at least one rating.', 'wp-schema-pro' ),
|
||||
),
|
||||
'review-count' => array(
|
||||
'label' => esc_html__( 'Review Count', 'wp-schema-pro' ),
|
||||
@@ -1633,10 +1633,10 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema' ) ) {
|
||||
'description' => esc_html__( 'The count of total number of reviews. e.g. "11"', 'wp-schema-pro' ),
|
||||
),
|
||||
'product-review' => array(
|
||||
'label' => esc_html__( 'Review', 'wp-schema-pro' ),
|
||||
'type' => 'repeater',
|
||||
'description' => esc_html__( 'To ensure the accuracy of our product ratings, kindly provide at least one review.', 'wp-schema-pro'),
|
||||
'fields' => array(
|
||||
'label' => esc_html__( 'Review', 'wp-schema-pro' ),
|
||||
'type' => 'repeater',
|
||||
'description' => esc_html__( 'To ensure the accuracy of our product ratings, kindly provide at least one review.', 'wp-schema-pro' ),
|
||||
'fields' => array(
|
||||
'reviewer-type' => array(
|
||||
'label' => esc_html__( 'Reviewer Type', 'wp-schema-pro' ),
|
||||
'type' => 'text',
|
||||
|
||||
@@ -9,97 +9,102 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
if (!class_exists('BSF_AIOSRS_Pro_Setup_Wizard')) :
|
||||
|
||||
/**
|
||||
* BSF_AIOSRS_Pro_Setup_Wizard class.
|
||||
*/
|
||||
class BSF_AIOSRS_Pro_Setup_Wizard {
|
||||
class BSF_AIOSRS_Pro_Setup_Wizard
|
||||
{
|
||||
|
||||
public $steps = array();
|
||||
public $step;
|
||||
|
||||
/**
|
||||
* Hook in tabs.
|
||||
*/
|
||||
public function __construct() {
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
if ( apply_filters( 'wp_schema_pro_enable_setup_wizard', true ) && current_user_can( 'manage_options' ) ) {
|
||||
|
||||
if ( get_transient( 'wp-schema-pro-activated' ) ) {
|
||||
delete_transient( 'wp-schema-pro-activated' );
|
||||
if (apply_filters('wp_schema_pro_enable_setup_wizard', true) && current_user_can('manage_options')) {
|
||||
if (get_transient('wp-schema-pro-activated')) {
|
||||
delete_transient('wp-schema-pro-activated');
|
||||
}
|
||||
add_action( 'admin_menu', array( $this, 'admin_menus' ) );
|
||||
add_action( 'admin_init', array( $this, 'setup_wizard' ) );
|
||||
|
||||
add_action('admin_menu', array($this, 'admin_menus'));
|
||||
add_action('admin_init', array($this, 'setup_wizard'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add admin menus/screens.
|
||||
*/
|
||||
public function admin_menus() {
|
||||
add_dashboard_page( '', '', 'manage_options', 'aiosrs-pro-setup-wizard', '' );
|
||||
public function admin_menus()
|
||||
{
|
||||
add_dashboard_page('', '', 'manage_options', 'aiosrs-pro-setup-wizard', '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the setup wizard.
|
||||
*/
|
||||
public function setup_wizard() {
|
||||
if ( isset( $_REQUEST['wp_schema_pro_admin_page_nonce'] ) && ! wp_verify_nonce( sanitize_text_field( $_REQUEST['wp_schema_pro_admin_page_nonce'] ), 'wp_schema_pro_admin_page' ) ) {
|
||||
public function setup_wizard()
|
||||
{
|
||||
if (isset($_REQUEST['wp_schema_pro_admin_page_nonce']) && !wp_verify_nonce(sanitize_text_field($_REQUEST['wp_schema_pro_admin_page_nonce']), 'wp_schema_pro_admin_page')) {
|
||||
return;
|
||||
}
|
||||
if ( empty( $_GET['page'] ) || 'aiosrs-pro-setup-wizard' !== $_GET['page'] ) {
|
||||
if (empty($_GET['page']) || 'aiosrs-pro-setup-wizard' !== $_GET['page']) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->steps = array(
|
||||
'welcome' => array(
|
||||
'name' => __( 'Welcome', 'wp-schema-pro' ),
|
||||
'view' => array( $this, 'welcome' ),
|
||||
'name' => __('Welcome', 'wp-schema-pro'),
|
||||
'view' => array($this, 'welcome'),
|
||||
),
|
||||
'general-setting' => array(
|
||||
'name' => __( 'General', 'wp-schema-pro' ),
|
||||
'view' => array( $this, 'general_setting' ),
|
||||
'handler' => array( $this, 'general_setting_save' ),
|
||||
'name' => __('General', 'wp-schema-pro'),
|
||||
'view' => array($this, 'general_setting'),
|
||||
'handler' => array($this, 'general_setting_save'),
|
||||
),
|
||||
'social-profiles' => array(
|
||||
'name' => __( 'Social Profiles', 'wp-schema-pro' ),
|
||||
'view' => array( $this, 'social_profiles' ),
|
||||
'handler' => array( $this, 'social_profiles_save' ),
|
||||
'name' => __('Social Profiles', 'wp-schema-pro'),
|
||||
'view' => array($this, 'social_profiles'),
|
||||
'handler' => array($this, 'social_profiles_save'),
|
||||
),
|
||||
'global-schemas' => array(
|
||||
'name' => __( 'Other Schemas', 'wp-schema-pro' ),
|
||||
'view' => array( $this, 'global_schemas' ),
|
||||
'handler' => array( $this, 'global_schemas_save' ),
|
||||
'name' => __('Other Schemas', 'wp-schema-pro'),
|
||||
'view' => array($this, 'global_schemas'),
|
||||
'handler' => array($this, 'global_schemas_save'),
|
||||
),
|
||||
'success' => array(
|
||||
'name' => __( 'Done', 'wp-schema-pro' ),
|
||||
'view' => array( $this, 'success' ),
|
||||
'name' => __('Done', 'wp-schema-pro'),
|
||||
'view' => array($this, 'success'),
|
||||
'handler' => '',
|
||||
),
|
||||
);
|
||||
|
||||
$this->step = isset( $_GET['step'] ) ? sanitize_key( $_GET['step'] ) : current( array_keys( $this->steps ) );
|
||||
$this->step = isset($_GET['step']) ? sanitize_key($_GET['step']) : current(array_keys($this->steps));
|
||||
|
||||
wp_enqueue_style( 'aiosrs-pro-setup-wizard', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_css . 'setup-wizard.' . BSF_AIOSRS_Pro_Admin::$minfy_css_ext, array( 'dashicons', 'install' ), BSF_AIOSRS_PRO_VER );
|
||||
wp_enqueue_style( 'aiosrs-pro-admin-edit-style', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_css . 'style.' . BSF_AIOSRS_Pro_Admin::$minfy_css_ext, BSF_AIOSRS_PRO_VER, 'false' );
|
||||
wp_enqueue_style( 'aiosrs-pro-admin-settings-style', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_css . 'settings-style.' . BSF_AIOSRS_Pro_Admin::$minfy_css_ext, BSF_AIOSRS_PRO_VER, 'false' );
|
||||
wp_register_script( 'aiosrs-pro-settings-script', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_js . 'settings-script.' . BSF_AIOSRS_Pro_Admin::$minfy_js_ext, array( 'jquery', 'bsf-target-rule-select2', 'wp-i18n' ), BSF_AIOSRS_PRO_VER, true );
|
||||
wp_enqueue_style('aiosrs-pro-setup-wizard', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_css . 'setup-wizard.' . BSF_AIOSRS_Pro_Admin::$minfy_css_ext, array('dashicons', 'install'), BSF_AIOSRS_PRO_VER);
|
||||
wp_enqueue_style('aiosrs-pro-admin-edit-style', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_css . 'style.' . BSF_AIOSRS_Pro_Admin::$minfy_css_ext, BSF_AIOSRS_PRO_VER, 'false');
|
||||
wp_enqueue_style('aiosrs-pro-admin-settings-style', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_css . 'settings-style.' . BSF_AIOSRS_Pro_Admin::$minfy_css_ext, BSF_AIOSRS_PRO_VER, 'false');
|
||||
wp_register_script('aiosrs-pro-settings-script', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_js . 'settings-script.' . BSF_AIOSRS_Pro_Admin::$minfy_js_ext, array('jquery', 'bsf-target-rule-select2', 'wp-i18n'), BSF_AIOSRS_PRO_VER, true);
|
||||
wp_enqueue_media();
|
||||
wp_enqueue_script( 'media' );
|
||||
wp_enqueue_style( 'bsf-target-rule-select2', BSF_AIOSRS_PRO_URI . 'classes/lib/target-rule/select2.css', '', BSF_AIOSRS_PRO_VER, false );
|
||||
wp_register_script( 'bsf-target-rule-select2', BSF_AIOSRS_PRO_URI . 'classes/lib/target-rule/select2.js', array( 'jquery', 'backbone', 'wp-util' ), BSF_AIOSRS_PRO_VER, true );
|
||||
wp_enqueue_script('media');
|
||||
wp_enqueue_style('bsf-target-rule-select2', BSF_AIOSRS_PRO_URI . 'classes/lib/target-rule/select2.css', '', BSF_AIOSRS_PRO_VER, false);
|
||||
wp_register_script('bsf-target-rule-select2', BSF_AIOSRS_PRO_URI . 'classes/lib/target-rule/select2.js', array('jquery', 'backbone', 'wp-util'), BSF_AIOSRS_PRO_VER, true);
|
||||
wp_localize_script(
|
||||
'aiosrs-pro-settings-script',
|
||||
'AIOSRS_search',
|
||||
apply_filters(
|
||||
'aiosrs_pro_settings_script_localize',
|
||||
array(
|
||||
'search_field' => wp_create_nonce( 'spec_schema' ),
|
||||
'search_field' => wp_create_nonce('spec_schema'),
|
||||
)
|
||||
)
|
||||
);
|
||||
wp_register_script( 'aiosrs-pro-setup-wizard', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_js . 'setup-wizard.' . BSF_AIOSRS_Pro_Admin::$minfy_js_ext, array( 'jquery' ), BSF_AIOSRS_PRO_VER, true );
|
||||
if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( $_POST['_wpnonce'] ), 'aiosrs-pro-setup-wizard' ) && ! empty( $_POST['save_step'] ) && isset( $this->steps[ $this->step ]['handler'] ) ) {
|
||||
call_user_func( $this->steps[ $this->step ]['handler'] );
|
||||
wp_register_script('aiosrs-pro-setup-wizard', BSF_AIOSRS_PRO_URI . 'admin/assets/' . BSF_AIOSRS_Pro_Admin::$minfy_js . 'setup-wizard.' . BSF_AIOSRS_Pro_Admin::$minfy_js_ext, array('jquery'), BSF_AIOSRS_PRO_VER, true);
|
||||
if (isset($_POST['_wpnonce']) && wp_verify_nonce(sanitize_text_field($_POST['_wpnonce']), 'aiosrs-pro-setup-wizard') && !empty($_POST['save_step']) && isset($this->steps[$this->step]['handler'])) {
|
||||
call_user_func($this->steps[$this->step]['handler']);
|
||||
}
|
||||
|
||||
ob_start();
|
||||
@@ -113,48 +118,64 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
/**
|
||||
* Get previous step link
|
||||
*/
|
||||
public function get_prev_step_link() {
|
||||
$keys = array_keys( $this->steps );
|
||||
return add_query_arg( 'step', $keys[ array_search( $this->step, array_keys( $this->steps ), true ) - 1 ] );
|
||||
public function get_prev_step_link()
|
||||
{
|
||||
$keys = array_keys($this->steps);
|
||||
return add_query_arg('step', $keys[array_search($this->step, array_keys($this->steps), true) - 1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get next step link
|
||||
*/
|
||||
public function get_next_step_link() {
|
||||
$keys = array_keys( $this->steps );
|
||||
return add_query_arg( 'step', $keys[ array_search( $this->step, array_keys( $this->steps ), true ) + 1 ] );
|
||||
public function get_next_step_link()
|
||||
{
|
||||
$keys = array_keys($this->steps);
|
||||
return add_query_arg('step', $keys[array_search($this->step, array_keys($this->steps), true) + 1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup Wizard Header.
|
||||
*/
|
||||
public function setup_wizard_header() {
|
||||
public function setup_wizard_header()
|
||||
{
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php esc_html_e( 'Schema Setup', 'wp-schema-pro' ); ?></title>
|
||||
<title><?php esc_html_e('Schema Setup', 'wp-schema-pro'); ?></title>
|
||||
<script type="text/javascript">
|
||||
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
|
||||
var ajaxurl = '<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ); ?>';
|
||||
addLoadEvent = function(func) {
|
||||
if (typeof jQuery != "undefined") jQuery(document).ready(func);
|
||||
else if (typeof wpOnload != 'function') {
|
||||
wpOnload = func;
|
||||
} else {
|
||||
var oldonload = wpOnload;
|
||||
wpOnload = function() {
|
||||
oldonload();
|
||||
func();
|
||||
}
|
||||
}
|
||||
};
|
||||
var ajaxurl = '<?php echo esc_url(admin_url('admin-ajax.php', 'relative')); ?>';
|
||||
</script>
|
||||
<?php wp_print_scripts( array( 'aiosrs-pro-admin-edit-script', 'aiosrs-pro-settings-script', 'aiosrs-pro-setup-wizard' ) ); ?>
|
||||
<?php do_action( 'admin_print_styles' ); ?>
|
||||
<?php do_action( 'admin_print_scripts' ); ?>
|
||||
<?php wp_print_scripts(array('aiosrs-pro-admin-edit-script', 'aiosrs-pro-settings-script', 'aiosrs-pro-setup-wizard')); ?>
|
||||
<?php do_action('admin_print_styles'); ?>
|
||||
<?php do_action('admin_print_scripts'); ?>
|
||||
</head>
|
||||
|
||||
<body class="aiosrs-pro-setup-wizard wp-core-ui">
|
||||
<div id="aiosrs-pro-logo">
|
||||
<?php
|
||||
$brand_adv = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
|
||||
if ( '' !== $brand_adv['sp_plugin_name'] ) {
|
||||
if ('' !== $brand_adv['sp_plugin_name']) {
|
||||
?>
|
||||
<h2 class="wpsp-setup-pro-title"><?php echo esc_html( $brand_adv['sp_plugin_name'] ); ?></h2>
|
||||
<h2 class="wpsp-setup-pro-title"><?php echo esc_html($brand_adv['sp_plugin_name']); ?></h2>
|
||||
<?php } else { ?>
|
||||
<a href="https://wpschema.com/" target="_blank"><img src="<?php echo esc_url( BSF_AIOSRS_PRO_URI . '/admin/assets/images/schema-pro.png' ); ?>" alt="<?php esc_attr_e( 'Schema Pro', 'wp-schema-pro' ); ?>" ></a>
|
||||
<?php } ?>
|
||||
<a href="https://wpschema.com/" target="_blank"><img src="<?php echo esc_url(BSF_AIOSRS_PRO_URI . '/admin/assets/images/schema-pro.png'); ?>" alt="<?php esc_attr_e('Schema Pro', 'wp-schema-pro'); ?>"></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@@ -162,16 +183,18 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
/**
|
||||
* Setup Wizard Footer.
|
||||
*/
|
||||
public function setup_wizard_footer() {
|
||||
public function setup_wizard_footer()
|
||||
{
|
||||
|
||||
$admin_url = BSF_AIOSRS_Pro_Admin::get_page_url( 'settings' );
|
||||
$admin_url = BSF_AIOSRS_Pro_Admin::get_page_url('settings');
|
||||
?>
|
||||
<div class="close-button-wrapper">
|
||||
<a href="<?php echo esc_url( $admin_url ); ?>" class="wizard-close-link" ><?php esc_html_e( 'Exit Setup Wizard', 'wp-schema-pro' ); ?></a>
|
||||
<a href="<?php echo esc_url($admin_url); ?>" class="wizard-close-link"><?php esc_html_e('Exit Setup Wizard', 'wp-schema-pro'); ?></a>
|
||||
</div>
|
||||
</body>
|
||||
<?php do_action( 'admin_footer' ); ?>
|
||||
<?php do_action( 'admin_print_footer_scripts' ); ?>
|
||||
</body>
|
||||
<?php do_action('admin_footer'); ?>
|
||||
<?php do_action('admin_print_footer_scripts'); ?>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
@@ -179,23 +202,24 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
/**
|
||||
* Output the steps.
|
||||
*/
|
||||
public function setup_wizard_steps() {
|
||||
public function setup_wizard_steps()
|
||||
{
|
||||
|
||||
$ouput_steps = $this->steps;
|
||||
?>
|
||||
<ol class="aiosrs-pro-setup-wizard-steps">
|
||||
<?php
|
||||
foreach ( $ouput_steps as $step_key => $step ) :
|
||||
foreach ($ouput_steps as $step_key => $step) :
|
||||
$classes = '';
|
||||
if ( $step_key === $this->step ) {
|
||||
if ($step_key === $this->step) {
|
||||
$classes = 'active';
|
||||
} elseif ( array_search( $this->step, array_keys( $this->steps ), true ) > array_search( $step_key, array_keys( $this->steps ), true ) ) {
|
||||
} elseif (array_search($this->step, array_keys($this->steps), true) > array_search($step_key, array_keys($this->steps), true)) {
|
||||
$classes = 'done';
|
||||
}
|
||||
$url = add_query_arg( 'step', $step_key )
|
||||
$url = add_query_arg('step', $step_key)
|
||||
?>
|
||||
<li class="<?php echo esc_attr( $classes ); ?>">
|
||||
<a href="<?php echo esc_url( $url ); ?>"><span><?php echo esc_html( $step['name'] ); ?></span></a>
|
||||
<li class="<?php echo esc_attr($classes); ?>">
|
||||
<a href="<?php echo esc_url($url); ?>"><span><?php echo esc_html($step['name']); ?></span></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
@@ -205,51 +229,53 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
/**
|
||||
* Output the content for the current step.
|
||||
*/
|
||||
public function setup_wizard_content() {
|
||||
echo '<div class="aiosrs-pro-setup-wizard-content ' . esc_attr( $this->step ) . '-content-wrap">';
|
||||
call_user_func( $this->steps[ $this->step ]['view'] );
|
||||
public function setup_wizard_content()
|
||||
{
|
||||
echo '<div class="aiosrs-pro-setup-wizard-content ' . esc_attr($this->step) . '-content-wrap">';
|
||||
call_user_func($this->steps[$this->step]['view']);
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Welcome.
|
||||
*/
|
||||
public function welcome() {
|
||||
if ( is_multisite() ) {
|
||||
$branding_msg = get_site_option( 'wp-schema-pro-branding-settings' );
|
||||
public function welcome()
|
||||
{
|
||||
if (is_multisite()) {
|
||||
$branding_msg = get_site_option('wp-schema-pro-branding-settings');
|
||||
} else {
|
||||
$branding_msg = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
|
||||
}
|
||||
$sp_name = isset( $branding_msg['sp_plugin_name'] ) ? $branding_msg['sp_plugin_name'] : '';
|
||||
if ( '' !== $sp_name ) {
|
||||
/* translators: %s: search term */
|
||||
$brand_msg = sprintf( __( 'Welcome to %s setup wizard !', 'wp-schema-pro' ), $sp_name );
|
||||
/* translators: %s: search term */
|
||||
$brand_steup = sprintf( __( '%s adds Google-recommended schema markups across your site and specific pages. This improves your SEO and allows search engines to display rich snippets for your website.', 'wp-schema-pro' ), $sp_name );
|
||||
$sp_name = isset($branding_msg['sp_plugin_name']) ? $branding_msg['sp_plugin_name'] : '';
|
||||
if ('' !== $sp_name) {
|
||||
/* translators: %s: search term */
|
||||
$brand_msg = sprintf(__('Welcome to %s setup wizard !', 'wp-schema-pro'), $sp_name);
|
||||
/* translators: %s: search term */
|
||||
$brand_steup = sprintf(__('%s adds Google-recommended schema markups across your site and specific pages. This improves your SEO and allows search engines to display rich snippets for your website.', 'wp-schema-pro'), $sp_name);
|
||||
?>
|
||||
<h1><?php echo esc_html( $brand_msg ); ?></h1>
|
||||
<p class="success"><?php echo esc_html( $brand_steup ); ?></p>
|
||||
<h1><?php echo esc_html($brand_msg); ?></h1>
|
||||
<p class="success"><?php echo esc_html($brand_steup); ?></p>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<h1><?php esc_html_e( 'Welcome To Schema Pro Setup Wizard!', 'wp-schema-pro' ); ?></h1>
|
||||
<h1><?php esc_html_e('Welcome To Schema Pro Setup Wizard!', 'wp-schema-pro'); ?></h1>
|
||||
<p class="success">
|
||||
<?php esc_html_e( 'Schema Pro adds Google-recommended schema markups across your site and specific pages. This improves your SEO and allows search engines to display rich snippets for your website.', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('Schema Pro adds Google-recommended schema markups across your site and specific pages. This improves your SEO and allows search engines to display rich snippets for your website.', 'wp-schema-pro'); ?>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<p class="success">
|
||||
<?php esc_html_e( 'This wizard is the first step to making Google understand your site better. Just fill in the required basic information. It’s easy!', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('This wizard is the first step to making Google understand your site better. Just fill in the required basic information. It’s easy!', 'wp-schema-pro'); ?>
|
||||
</p>
|
||||
<?php if ( '' === $sp_name ) { ?>
|
||||
<?php if ('' === $sp_name) { ?>
|
||||
<p class="success">
|
||||
<?php echo sprintf( wp_kses_post( '<a href="https://www.youtube.com/watch?v=xOiMA0am9QY" target="_blank">Watch a detailed video on the setup wizard tutorial.</a>', 'wp-schema-pro' ) ); ?>
|
||||
<?php echo sprintf(wp_kses_post('<a href="https://www.youtube.com/watch?v=xOiMA0am9QY" target="_blank">Watch a detailed video on the setup wizard tutorial.</a>', 'wp-schema-pro')); ?>
|
||||
</p>
|
||||
<?php } ?>
|
||||
<p class="aiosrs-pro-setup-wizard-actions step">
|
||||
<a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button-primary button button-large button-next" ><?php esc_html_e( 'Start', 'wp-schema-pro' ); ?> »</a>
|
||||
<?php wp_nonce_field( 'aiosrs-pro-setup-wizard' ); ?>
|
||||
<a href="<?php echo esc_url($this->get_next_step_link()); ?>" class="button-primary button button-large button-next"><?php esc_html_e('Start', 'wp-schema-pro'); ?> »</a>
|
||||
<?php wp_nonce_field('aiosrs-pro-setup-wizard'); ?>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
@@ -257,126 +283,127 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
/**
|
||||
* General Setting
|
||||
*/
|
||||
public function general_setting() {
|
||||
public function general_setting()
|
||||
{
|
||||
|
||||
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-general-settings'];
|
||||
?>
|
||||
|
||||
<h1><?php esc_html_e( 'General', 'wp-schema-pro' ); ?></h1>
|
||||
<p class="success"><?php esc_html_e( 'To help Google understand what your website is about, select the most suitable type for your website below, and fill in the required basic information.', 'wp-schema-pro' ); ?></p>
|
||||
<h1><?php esc_html_e('General', 'wp-schema-pro'); ?></h1>
|
||||
<p class="success"><?php esc_html_e('To help Google understand what your website is about, select the most suitable type for your website below, and fill in the required basic information.', 'wp-schema-pro'); ?></p>
|
||||
<form method="post">
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th id =''><?php esc_html_e( 'This Website Represents ', 'wp-schema-pro' ); ?></th>
|
||||
<th id=''><?php esc_html_e('This Website Represents ', 'wp-schema-pro'); ?></th>
|
||||
<td>
|
||||
<select name="wp-schema-pro-general-settings[site-represent]">
|
||||
<option <?php selected( $settings['site-represent'], '' ); ?> value=""> <?php esc_html_e( '--None--', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( $settings['site-represent'], 'person' ); ?> value="person"> <?php esc_html_e( 'Personal Website', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( $settings['site-represent'], 'Otherbusiness' ); ?> value="Otherbusiness"> <?php esc_html_e( 'Business Website', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( $settings['site-represent'], 'organization' ); ?> value="organization"> <?php esc_html_e( 'Organization', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( $settings['site-represent'], 'personblog' ); ?> value="personblog"> <?php esc_html_e( 'Personal Blog', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( $settings['site-represent'], 'Smallbusiness' ); ?> value="Smallbusiness"> <?php esc_html_e( 'Community Blog/News Website ', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( $settings['site-represent'], 'Webshop' ); ?> value="Webshop"> <?php esc_html_e( 'Webshop', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected($settings['site-represent'], ''); ?> value=""> <?php esc_html_e('--None--', 'wp-schema-pro'); ?></option>
|
||||
<option <?php selected($settings['site-represent'], 'person'); ?> value="person"> <?php esc_html_e('Personal Website', 'wp-schema-pro'); ?></option>
|
||||
<option <?php selected($settings['site-represent'], 'Otherbusiness'); ?> value="Otherbusiness"> <?php esc_html_e('Business Website', 'wp-schema-pro'); ?></option>
|
||||
<option <?php selected($settings['site-represent'], 'organization'); ?> value="organization"> <?php esc_html_e('Organization', 'wp-schema-pro'); ?></option>
|
||||
<option <?php selected($settings['site-represent'], 'personblog'); ?> value="personblog"> <?php esc_html_e('Personal Blog', 'wp-schema-pro'); ?></option>
|
||||
<option <?php selected($settings['site-represent'], 'Smallbusiness'); ?> value="Smallbusiness"> <?php esc_html_e('Community Blog/News Website ', 'wp-schema-pro'); ?></option>
|
||||
<option <?php selected($settings['site-represent'], 'Webshop'); ?> value="Webshop"> <?php esc_html_e('Webshop', 'wp-schema-pro'); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
if ( 'person' === $settings['site-represent'] || 'personblog' === $settings['site-represent'] ) {
|
||||
if ('person' === $settings['site-represent'] || 'personblog' === $settings['site-represent']) {
|
||||
$settings['site-represent'] = 'person';
|
||||
}
|
||||
if ( 'organization' === $settings['site-represent'] || 'Webshop' === $settings['site-represent'] || 'Smallbusiness' === $settings['site-represent'] || 'Otherbusiness' === $settings['site-represent'] ) {
|
||||
if ('organization' === $settings['site-represent'] || 'Webshop' === $settings['site-represent'] || 'Smallbusiness' === $settings['site-represent'] || 'Otherbusiness' === $settings['site-represent']) {
|
||||
$settings['site-represent'] = 'organization';
|
||||
}
|
||||
?>
|
||||
<tr class="wp-schema-pro-site-logo-wrap">
|
||||
<th id =''><?php esc_html_e( 'Website Logo', 'wp-schema-pro' ); ?></th>
|
||||
<th id=''><?php esc_html_e('Website Logo', 'wp-schema-pro'); ?></th>
|
||||
<td>
|
||||
<select style='display:none' name="wp-schema-pro-general-settings[site-logo]" class="wp-schema-pro-custom-option-select">
|
||||
<option <?php selected( $settings['site-logo'], 'custom' ); ?> value="custom"><?php esc_html_e( 'Add Custom Logo', 'wp-schema-pro' ); ?></option>
|
||||
</select>
|
||||
<div class="custom-field-wrapper site-logo-custom-wrap" >
|
||||
<input type="hidden" class="single-image-field" name="wp-schema-pro-general-settings[site-logo-custom]" value="<?php echo esc_attr( $settings['site-logo-custom'] ); ?>" />
|
||||
<select style='display:none' name="wp-schema-pro-general-settings[site-logo]" class="wp-schema-pro-custom-option-select">
|
||||
<option <?php selected($settings['site-logo'], 'custom'); ?> value="custom"><?php esc_html_e('Add Custom Logo', 'wp-schema-pro'); ?></option>
|
||||
</select>
|
||||
<div class="custom-field-wrapper site-logo-custom-wrap">
|
||||
<input type="hidden" class="single-image-field" name="wp-schema-pro-general-settings[site-logo-custom]" value="<?php echo esc_attr($settings['site-logo-custom']); ?>" />
|
||||
<?php
|
||||
if ( ! empty( $settings['site-logo-custom'] ) ) {
|
||||
$image_url = wp_get_attachment_url( $settings['site-logo-custom'] );
|
||||
if (!empty($settings['site-logo-custom'])) {
|
||||
$image_url = wp_get_attachment_url($settings['site-logo-custom']);
|
||||
} else {
|
||||
$logo_id = '';
|
||||
if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) {
|
||||
$logo_id = get_theme_mod( 'custom_logo' );
|
||||
if (function_exists('the_custom_logo') && has_custom_logo()) {
|
||||
$logo_id = get_theme_mod('custom_logo');
|
||||
}
|
||||
$image_url = wp_get_attachment_url( $logo_id );
|
||||
$image_url = wp_get_attachment_url($logo_id);
|
||||
}
|
||||
?>
|
||||
<div class="image-field-wrap <?php echo ( ! empty( $image_url ) ) ? 'bsf-custom-image-selected' : ''; ?>"">
|
||||
<a href="#" class="aiosrs-image-select button"><span class="dashicons dashicons-format-image"></span><?php esc_html_e( 'Select Image', 'wp-schema-pro' ); ?></a>
|
||||
<div class="image-field-wrap <?php echo (!empty($image_url)) ? 'bsf-custom-image-selected' : ''; ?>"">
|
||||
<a href=" #" class="aiosrs-image-select button"><span class="dashicons dashicons-format-image"></span><?php esc_html_e('Select Image', 'wp-schema-pro'); ?></a>
|
||||
<a href="#" class="aiosrs-image-remove dashicons dashicons-no-alt wp-ui-text-highlight"></a>
|
||||
<?php if ( isset( $image_url ) && ! empty( $image_url ) ) : ?>
|
||||
<a href="#" class="aiosrs-image-select img"><img src="<?php echo esc_url( $image_url ); ?>" /></a>
|
||||
<?php if (isset($image_url) && !empty($image_url)) : ?>
|
||||
<a href="#" class="aiosrs-image-select img"><img src="<?php echo esc_url($image_url); ?>" /></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<p class= 'aiosrs-pro-field-description'><?php esc_html_e( 'Recommended minimum logo size 112 x 112 pixels.', 'wp-schema-pro' ); ?></p>
|
||||
<p class= 'aiosrs-pro-field-description'><?php esc_html_e( 'The image must be in .jpg, .png, .gif, .svg, or .webp format.', 'wp-schema-pro' ); ?></p>
|
||||
<p class='aiosrs-pro-field-description'><?php esc_html_e('Recommended minimum logo size 112 x 112 pixels.', 'wp-schema-pro'); ?></p>
|
||||
<p class='aiosrs-pro-field-description'><?php esc_html_e('The image must be in .jpg, .png, .gif, .svg, or .webp format.', 'wp-schema-pro'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="wp-schema-pro-person-name-wrap" <?php echo ( 'person' !== $settings['site-represent'] ) ? 'style="display: none;"' : ''; ?>>
|
||||
<th class = 'wpsp-organization-label'><?php esc_html_e( 'Website Owner Name', 'wp-schema-pro' ); ?></th>
|
||||
<tr class="wp-schema-pro-person-name-wrap" <?php echo ('person' !== $settings['site-represent']) ? 'style="display: none;"' : ''; ?>>
|
||||
<th class='wpsp-organization-label'><?php esc_html_e('Website Owner Name', 'wp-schema-pro'); ?></th>
|
||||
<td>
|
||||
<input type="text" name="wp-schema-pro-general-settings[person-name]" value="<?php echo esc_attr( $settings['person-name'] ); ?>" placeholder="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" />
|
||||
<input type="text" name="wp-schema-pro-general-settings[person-name]" value="<?php echo esc_attr($settings['person-name']); ?>" placeholder="<?php echo esc_attr(get_bloginfo('name')); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="wp-schema-pro-site-name-wrap" <?php echo ( 'organization' !== $settings['site-represent'] ) ? 'style="display: none;"' : ''; ?>>
|
||||
<th class = 'wpsp-organization-label'><?php esc_html_e( 'Organization Name', 'wp-schema-pro' ); ?></th>
|
||||
<tr class="wp-schema-pro-site-name-wrap" <?php echo ('organization' !== $settings['site-represent']) ? 'style="display: none;"' : ''; ?>>
|
||||
<th class='wpsp-organization-label'><?php esc_html_e('Organization Name', 'wp-schema-pro'); ?></th>
|
||||
<td>
|
||||
<input type="text" name="wp-schema-pro-general-settings[site-name]" value="<?php echo esc_attr( $settings['site-name'] ); ?>" placeholder="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" />
|
||||
<input type="text" name="wp-schema-pro-general-settings[site-name]" value="<?php echo esc_attr($settings['site-name']); ?>" placeholder="<?php echo esc_attr(get_bloginfo('name')); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="wp-schema-pro-site-name-wrap " <?php echo ( 'organization' !== $settings['site-represent'] ) ? 'style="display: none;"' : ''; ?>>
|
||||
<th>
|
||||
<?php
|
||||
esc_html_e(
|
||||
'Organization Type',
|
||||
'wp-schema-pro'
|
||||
);
|
||||
<tr class="wp-schema-pro-site-name-wrap " <?php echo ('organization' !== $settings['site-represent']) ? 'style="display: none;"' : ''; ?>>
|
||||
<th>
|
||||
<?php
|
||||
esc_html_e(
|
||||
'Organization Type',
|
||||
'wp-schema-pro'
|
||||
);
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<?php
|
||||
$option_list = BSF_AIOSRS_Pro_Schema::get_dropdown_options('Organization-type');
|
||||
?>
|
||||
<select class="wpsp-setup-configuration-settings" name="wp-schema-pro-general-settings[organization]">
|
||||
<?php
|
||||
if (!empty($option_list)) {
|
||||
foreach ($option_list as $key => $value) {
|
||||
if ('-- None --' !== $value) {
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<option value="<?php echo esc_attr($key); ?>" <?php selected($settings['organization'], $key); ?>><?php echo esc_html($value); ?></option>
|
||||
<?php
|
||||
$option_list = BSF_AIOSRS_Pro_Schema::get_dropdown_options( 'Organization-type' );
|
||||
?>
|
||||
<select class ="wpsp-setup-configuration-settings" name="wp-schema-pro-general-settings[organization]" >
|
||||
<?php
|
||||
if ( ! empty( $option_list ) ) {
|
||||
foreach ( $option_list as $key => $value ) {
|
||||
if ( '-- None --' !== $value ) {
|
||||
?>
|
||||
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $settings['organization'], $key ); ?>><?php echo esc_html( $value ); ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<p style="font-style: italic;">
|
||||
<?php
|
||||
$brand_bread = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
|
||||
if ( ( '1' === $brand_bread['sp_hide_label'] ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
|
||||
esc_html_e( 'Select the type that best describes your website. If you can\'t find one that applies exactly, use the generic "General/Other" type. Further create Local Business schema for "General/Other" type.', 'wp-schema-pro' );
|
||||
} else {
|
||||
esc_html_e( 'Select the type that best describes your website. If you can\'t find one that applies exactly, use the generic "General/Other" type. Further create Local Business schema for "General/Other" type. ', 'wp-schema-pro' );
|
||||
echo sprintf(
|
||||
wp_kses_post( '<a href="https://wpschema.com/docs/organization-type-in-setup-wizard/" target="_blank">Learn more</a>', 'wp-schema-pro' )
|
||||
);
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<p style="font-style: italic;">
|
||||
<?php
|
||||
$brand_bread = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
|
||||
if (('1' === $brand_bread['sp_hide_label']) || true === (defined('WP_SP_WL') && WP_SP_WL)) {
|
||||
esc_html_e('Select the type that best describes your website. If you can\'t find one that applies exactly, use the generic "General/Other" type. Further create Local Business schema for "General/Other" type.', 'wp-schema-pro');
|
||||
} else {
|
||||
esc_html_e('Select the type that best describes your website. If you can\'t find one that applies exactly, use the generic "General/Other" type. Further create Local Business schema for "General/Other" type. ', 'wp-schema-pro');
|
||||
echo sprintf(
|
||||
wp_kses_post('<a href="https://wpschema.com/docs/organization-type-in-setup-wizard/" target="_blank">Learn more</a>', 'wp-schema-pro')
|
||||
);
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="aiosrs-pro-setup-wizard-actions step">
|
||||
<?php wp_nonce_field( 'aiosrs-pro-setup-wizard' ); ?>
|
||||
<input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e( 'Next', 'wp-schema-pro' ); ?> »" name="save_step" />
|
||||
<a href="<?php echo esc_url( $this->get_prev_step_link() ); ?>" class="button-primary button button-large button-prev" >« <?php esc_html_e( 'Previous', 'wp-schema-pro' ); ?></a>
|
||||
<?php wp_nonce_field('aiosrs-pro-setup-wizard'); ?>
|
||||
<input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e('Next', 'wp-schema-pro'); ?> »" name="save_step" />
|
||||
<a href="<?php echo esc_url($this->get_prev_step_link()); ?>" class="button-primary button button-large button-prev">« <?php esc_html_e('Previous', 'wp-schema-pro'); ?></a>
|
||||
</p>
|
||||
</form>
|
||||
<?php
|
||||
@@ -385,96 +412,98 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
/**
|
||||
* General Setting Save.
|
||||
*/
|
||||
public function general_setting_save() {
|
||||
check_admin_referer( 'aiosrs-pro-setup-wizard' );
|
||||
public function general_setting_save()
|
||||
{
|
||||
check_admin_referer('aiosrs-pro-setup-wizard');
|
||||
|
||||
if ( isset( $_POST['wp-schema-pro-general-settings'] ) ) {
|
||||
update_option( 'wp-schema-pro-general-settings', array_map( 'sanitize_text_field', $_POST['wp-schema-pro-general-settings'] ) );
|
||||
if (isset($_POST['wp-schema-pro-general-settings'])) {
|
||||
update_option('wp-schema-pro-general-settings', array_map('sanitize_text_field', $_POST['wp-schema-pro-general-settings']));
|
||||
}
|
||||
|
||||
$redirect_url = $this->get_next_step_link();
|
||||
wp_safe_redirect( esc_url_raw( $redirect_url ) );
|
||||
wp_safe_redirect(esc_url_raw($redirect_url));
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Social Profiles
|
||||
*/
|
||||
public function social_profiles() {
|
||||
public function social_profiles()
|
||||
{
|
||||
|
||||
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-social-profiles'];
|
||||
?>
|
||||
<h1><?php esc_html_e( 'Social Profiles', 'wp-schema-pro' ); ?></h1>
|
||||
<p class="success"><?php esc_html_e( 'Please enter all your possible social media profiles. These links can appear in the knowledge panel of the search results for your website.', 'wp-schema-pro' ); ?></p>
|
||||
<h1><?php esc_html_e('Social Profiles', 'wp-schema-pro'); ?></h1>
|
||||
<p class="success"><?php esc_html_e('Please enter all your possible social media profiles. These links can appear in the knowledge panel of the search results for your website.', 'wp-schema-pro'); ?></p>
|
||||
<form method="post">
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th id='' ><?php esc_html_e( 'Facebook', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[facebook]" value="<?php echo esc_attr( $settings['facebook'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('Facebook', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[facebook]" value="<?php echo esc_attr($settings['facebook']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'Instagram', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[instagram]" value="<?php echo esc_attr( $settings['instagram'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('Instagram', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[instagram]" value="<?php echo esc_attr($settings['instagram']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'YouTube', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[youtube]" value="<?php echo esc_attr( $settings['youtube'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('YouTube', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[youtube]" value="<?php echo esc_attr($settings['youtube']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'Twitter', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[twitter]" value="<?php echo esc_attr( $settings['twitter'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('Twitter', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[twitter]" value="<?php echo esc_attr($settings['twitter']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'Pinterest', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[pinterest]" value="<?php echo esc_attr( $settings['pinterest'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('Pinterest', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[pinterest]" value="<?php echo esc_attr($settings['pinterest']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'LinkedIn', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[linkedin]" value="<?php echo esc_attr( $settings['linkedin'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('LinkedIn', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[linkedin]" value="<?php echo esc_attr($settings['linkedin']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'SoundCloud', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[soundcloud]" value="<?php echo esc_attr( $settings['soundcloud'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('SoundCloud', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[soundcloud]" value="<?php echo esc_attr($settings['soundcloud']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'Tumblr', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[tumblr]" value="<?php echo esc_attr( $settings['tumblr'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('Tumblr', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[tumblr]" value="<?php echo esc_attr($settings['tumblr']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'Wikipedia', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[wikipedia]" value="<?php echo esc_attr( $settings['wikipedia'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('Wikipedia', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[wikipedia]" value="<?php echo esc_attr($settings['wikipedia']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''><?php esc_html_e( 'MySpace', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[myspace]" value="<?php echo esc_attr( $settings['myspace'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('MySpace', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[myspace]" value="<?php echo esc_attr($settings['myspace']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<tr style="display:none">
|
||||
<th id=''><?php esc_html_e( 'Google+', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[google-plus]" value="<?php echo esc_attr( $settings['google-plus'] ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /></td>
|
||||
<th id=''><?php esc_html_e('Google+', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" name="wp-schema-pro-social-profiles[google-plus]" value="<?php echo esc_attr($settings['google-plus']); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ( isset( $settings ) && ! empty( $settings ) && is_array( $settings['other'] ) ) {
|
||||
foreach ( $settings['other'] as $sub_social_profiles => $value ) {
|
||||
if ( isset( $value ) && ! empty( $value ) ) {
|
||||
?>
|
||||
<tr style="display:none">
|
||||
<th id='' class="wpsp-other-th"><?php esc_html_e( 'Other', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" class="wpsp-other" name="wp-schema-pro-social-profiles[other][<?php echo esc_attr( $sub_social_profiles ); ?>]" value="<?php echo esc_attr( $value ); ?>" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /><span class ="wpsp-field-close remove-row dashicons dashicons-dismiss "><a href="#" class=""></a></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
<tr style="display:none">
|
||||
<th id='' class="wpsp-other-th"><?php esc_html_e('Other', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" class="wpsp-other" name="wp-schema-pro-social-profiles[other][<?php echo esc_attr($sub_social_profiles); ?>]" value="<?php echo esc_attr($value); ?>" placeholder="<?php echo esc_attr('Enter URL'); ?>" /><span class="wpsp-field-close remove-row dashicons dashicons-dismiss "><a href="#" class=""></a></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr style="display:none" class="empty-row screen-reader-text"> <!-- empty hidden one for jQuery -->
|
||||
<th id='' class="wpsp-other-th"><?php esc_html_e( 'Other', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="url" class="wpsp-other" name="wp-schema-pro-social-profiles[other][]" value="" placeholder="<?php echo esc_attr( 'Enter URL' ); ?>" /><span class ="wpsp-field-close remove-row dashicons dashicons-dismiss "><a href="#" class="remove-row"></a></span></td>
|
||||
</tr>
|
||||
<th id='' class="wpsp-other-th"><?php esc_html_e('Other', 'wp-schema-pro'); ?></th>
|
||||
<td><input type="url" class="wpsp-other" name="wp-schema-pro-social-profiles[other][]" value="" placeholder="<?php echo esc_attr('Enter URL'); ?>" /><span class="wpsp-field-close remove-row dashicons dashicons-dismiss "><a href="#" class="remove-row"></a></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="aiosrs-pro-setup-wizard-actions step">
|
||||
<?php wp_nonce_field( 'aiosrs-pro-setup-wizard' ); ?>
|
||||
<input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e( 'Next', 'wp-schema-pro' ); ?> »" name="save_step" />
|
||||
<a href="<?php echo esc_url( $this->get_prev_step_link() ); ?>" class="button-primary button button-large button-prev" >« <?php esc_html_e( 'Previous', 'wp-schema-pro' ); ?></a>
|
||||
<?php wp_nonce_field('aiosrs-pro-setup-wizard'); ?>
|
||||
<input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e('Next', 'wp-schema-pro'); ?> »" name="save_step" />
|
||||
<a href="<?php echo esc_url($this->get_prev_step_link()); ?>" class="button-primary button button-large button-prev">« <?php esc_html_e('Previous', 'wp-schema-pro'); ?></a>
|
||||
</p>
|
||||
</form>
|
||||
<?php
|
||||
@@ -483,119 +512,121 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
/**
|
||||
* Social Profiles Save.
|
||||
*/
|
||||
public function social_profiles_save() {
|
||||
check_admin_referer( 'aiosrs-pro-setup-wizard' );
|
||||
public function social_profiles_save()
|
||||
{
|
||||
check_admin_referer('aiosrs-pro-setup-wizard');
|
||||
|
||||
if ( isset( $_POST['wp-schema-pro-social-profiles'] ) ) {
|
||||
update_option( 'wp-schema-pro-social-profiles', array_map( 'sanitize_text_field', $_POST['wp-schema-pro-social-profiles'] ) );
|
||||
if (isset($_POST['wp-schema-pro-social-profiles'])) {
|
||||
update_option('wp-schema-pro-social-profiles', array_map('sanitize_text_field', $_POST['wp-schema-pro-social-profiles']));
|
||||
}
|
||||
|
||||
$redirect_url = $this->get_next_step_link();
|
||||
wp_safe_redirect( esc_url_raw( $redirect_url ) );
|
||||
wp_safe_redirect(esc_url_raw($redirect_url));
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Global Schemas
|
||||
*/
|
||||
public function global_schemas() {
|
||||
public function global_schemas()
|
||||
{
|
||||
|
||||
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-global-schemas'];
|
||||
?>
|
||||
<h1><?php esc_html_e( 'Other Schemas', 'wp-schema-pro' ); ?></h1>
|
||||
<p class="success"><?php esc_html_e( 'Fill in additional information about your website to make sure that search engines fully understand what it’s about. This will help improve your SEO further.', 'wp-schema-pro' ); ?></p>
|
||||
<h1><?php esc_html_e('Other Schemas', 'wp-schema-pro'); ?></h1>
|
||||
<p class="success"><?php esc_html_e('Fill in additional information about your website to make sure that search engines fully understand what it’s about. This will help improve your SEO further.', 'wp-schema-pro'); ?></p>
|
||||
<form method="post">
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th id=''>
|
||||
<?php esc_html_e( 'Select About Page', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('Select About Page', 'wp-schema-pro'); ?>
|
||||
<?php
|
||||
$message = __( 'Select your about page from the dropdown list. This will add AboutPage schema on the selected page.', 'wp-schema-pro' );
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
|
||||
$message = __('Select your about page from the dropdown list. This will add AboutPage schema on the selected page.', 'wp-schema-pro');
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip($message);
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<select class ="wp-select2 wpsp-setup-configuration-settings" name="wp-schema-pro-global-schemas[about-page]">
|
||||
<option value=""><?php esc_html_e( '--None--', 'wp-schema-pro' ); ?></option>
|
||||
<?php foreach ( BSF_AIOSRS_Pro_Admin::$pages as $page_id => $page_title ) { ?>
|
||||
<option <?php selected( $page_id, $settings['about-page'] ); ?> value="<?php echo esc_attr( $page_id ); ?>"><?php echo esc_html( $page_title ); ?></option>
|
||||
<select class="wp-select2 wpsp-setup-configuration-settings" name="wp-schema-pro-global-schemas[about-page]">
|
||||
<option value=""><?php esc_html_e('--None--', 'wp-schema-pro'); ?></option>
|
||||
<?php foreach (BSF_AIOSRS_Pro_Admin::$pages as $page_id => $page_title) { ?>
|
||||
<option <?php selected($page_id, $settings['about-page']); ?> value="<?php echo esc_attr($page_id); ?>"><?php echo esc_html($page_title); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id=''>
|
||||
<?php esc_html_e( 'Select Contact Page', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('Select Contact Page', 'wp-schema-pro'); ?>
|
||||
<?php
|
||||
$message = __( 'Select your contact page from the dropdown list. This will add ContactPage schema on the selected page.', 'wp-schema-pro' );
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
|
||||
$message = __('Select your contact page from the dropdown list. This will add ContactPage schema on the selected page.', 'wp-schema-pro');
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip($message);
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<select class ="wp-select2 wpsp-setup-configuration-settings" name="wp-schema-pro-global-schemas[contact-page]">
|
||||
<option value=""><?php esc_html_e( '--None--', 'wp-schema-pro' ); ?></option>
|
||||
<?php foreach ( BSF_AIOSRS_Pro_Admin::$pages as $page_id => $page_title ) { ?>
|
||||
<option <?php selected( $page_id, $settings['contact-page'] ); ?> value="<?php echo esc_attr( $page_id ); ?>"><?php echo esc_html( $page_title ); ?></option>
|
||||
<select class="wp-select2 wpsp-setup-configuration-settings" name="wp-schema-pro-global-schemas[contact-page]">
|
||||
<option value=""><?php esc_html_e('--None--', 'wp-schema-pro'); ?></option>
|
||||
<?php foreach (BSF_AIOSRS_Pro_Admin::$pages as $page_id => $page_title) { ?>
|
||||
<option <?php selected($page_id, $settings['contact-page']); ?> value="<?php echo esc_attr($page_id); ?>"><?php echo esc_html($page_title); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id='' class="tooltip-with-image-wrapper">
|
||||
<?php esc_html_e( 'Select Menu for SiteLinks Schema', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('Select Menu for SiteLinks Schema', 'wp-schema-pro'); ?>
|
||||
<?php
|
||||
$message = '<img class="tooltip-image" src="' . esc_url( BSF_AIOSRS_PRO_URI . '/admin/assets/images/sitelinks.jpg' ) . '" />';
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
|
||||
$message = '<img class="tooltip-image" src="' . esc_url(BSF_AIOSRS_PRO_URI . '/admin/assets/images/sitelinks.jpg') . '" />';
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip($message);
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<?php $nav_menus = wp_get_nav_menus(); ?>
|
||||
<select name="wp-schema-pro-global-schemas[site-navigation-element]" >
|
||||
<option <?php selected( '', $settings['site-navigation-element'] ); ?> value=""><?php esc_html_e( '--None--', 'wp-schema-pro' ); ?></option>
|
||||
<?php foreach ( $nav_menus as $menu ) { ?>
|
||||
<option <?php selected( $menu->term_id, $settings['site-navigation-element'] ); ?> value="<?php echo esc_attr( $menu->term_id ); ?>"><?php echo esc_html( $menu->name ); ?></option>
|
||||
<select name="wp-schema-pro-global-schemas[site-navigation-element]">
|
||||
<option <?php selected('', $settings['site-navigation-element']); ?> value=""><?php esc_html_e('--None--', 'wp-schema-pro'); ?></option>
|
||||
<?php foreach ($nav_menus as $menu) { ?>
|
||||
<option <?php selected($menu->term_id, $settings['site-navigation-element']); ?> value="<?php echo esc_attr($menu->term_id); ?>"><?php echo esc_html($menu->name); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<p class="success aiosrs-pro-field-description"><?php esc_html_e( 'This helps Google understand the most important pages on your website and can generate Rich Snippets.', 'wp-schema-pro' ); ?></p>
|
||||
<p class="success aiosrs-pro-field-description"><?php esc_html_e('This helps Google understand the most important pages on your website and can generate Rich Snippets.', 'wp-schema-pro'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id='' class="tooltip-with-image-wrapper">
|
||||
<?php esc_html_e( 'Enable SiteLinks Search Box', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('Enable SiteLinks Search Box', 'wp-schema-pro'); ?>
|
||||
<?php
|
||||
$message = '<img class="tooltip-image" src="' . esc_url( BSF_AIOSRS_PRO_URI . '/admin/assets/images/sitelink-search.jpg' ) . '" />';
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
|
||||
$message = '<img class="tooltip-image" src="' . esc_url(BSF_AIOSRS_PRO_URI . '/admin/assets/images/sitelink-search.jpg') . '" />';
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip($message);
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="hidden" name="wp-schema-pro-global-schemas[sitelink-search-box]" value="disabled" />
|
||||
<input type="checkbox" name="wp-schema-pro-global-schemas[sitelink-search-box]" <?php checked( '1', $settings['sitelink-search-box'] ); ?> value="1" /> <?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?>
|
||||
<input type="checkbox" name="wp-schema-pro-global-schemas[sitelink-search-box]" <?php checked('1', $settings['sitelink-search-box']); ?> value="1" /> <?php esc_html_e('Yes', 'wp-schema-pro'); ?>
|
||||
</label>
|
||||
<p class="success aiosrs-pro-field-description"><?php esc_html_e( 'If enabled, Google can display a search box on your search website’s search results.', 'wp-schema-pro' ); ?></p>
|
||||
<p class="success aiosrs-pro-field-description"><?php esc_html_e('If enabled, Google can display a search box on your search website’s search results.', 'wp-schema-pro'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id='' class="tooltip-with-image-wrapper">
|
||||
<?php esc_html_e( 'Enable Breadcrumbs', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('Enable Breadcrumbs', 'wp-schema-pro'); ?>
|
||||
<?php
|
||||
$message = '<img class="tooltip-image" src="' . esc_url( BSF_AIOSRS_PRO_URI . '/admin/assets/images/breadcrumbs.jpg' ) . '" />';
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
|
||||
$message = '<img class="tooltip-image" src="' . esc_url(BSF_AIOSRS_PRO_URI . '/admin/assets/images/breadcrumbs.jpg') . '" />';
|
||||
BSF_AIOSRS_Pro_Admin::get_tooltip($message);
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="hidden" name="wp-schema-pro-global-schemas[breadcrumb]" value="disabled" />
|
||||
<input type="checkbox" name="wp-schema-pro-global-schemas[breadcrumb]" <?php checked( '1', $settings ['breadcrumb'] ); ?> value="1" /> <?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?>
|
||||
<input type="checkbox" name="wp-schema-pro-global-schemas[breadcrumb]" <?php checked('1', $settings['breadcrumb']); ?> value="1" /> <?php esc_html_e('Yes', 'wp-schema-pro'); ?>
|
||||
</label>
|
||||
<p class="success aiosrs-pro-field-description"><?php esc_html_e( 'If enabled, Google can add breadcrumbs to your website’s and pages search results.', 'wp-schema-pro' ); ?></p>
|
||||
<p class="success aiosrs-pro-field-description"><?php esc_html_e('If enabled, Google can add breadcrumbs to your website’s and pages search results.', 'wp-schema-pro'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="aiosrs-pro-setup-wizard-actions step">
|
||||
<?php wp_nonce_field( 'aiosrs-pro-setup-wizard' ); ?>
|
||||
<input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e( 'Next', 'wp-schema-pro' ); ?> »" name="save_step" />
|
||||
<a href="<?php echo esc_url( $this->get_prev_step_link() ); ?>" class="button-primary button button-large button-prev" >« <?php esc_html_e( 'Previous', 'wp-schema-pro' ); ?></a>
|
||||
<?php wp_nonce_field('aiosrs-pro-setup-wizard'); ?>
|
||||
<input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e('Next', 'wp-schema-pro'); ?> »" name="save_step" />
|
||||
<a href="<?php echo esc_url($this->get_prev_step_link()); ?>" class="button-primary button button-large button-prev">« <?php esc_html_e('Previous', 'wp-schema-pro'); ?></a>
|
||||
</p>
|
||||
</form>
|
||||
<?php
|
||||
@@ -604,67 +635,68 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Setup_Wizard' ) ) :
|
||||
/**
|
||||
* Global Schemas Save.
|
||||
*/
|
||||
public function global_schemas_save() {
|
||||
check_admin_referer( 'aiosrs-pro-setup-wizard' );
|
||||
public function global_schemas_save()
|
||||
{
|
||||
check_admin_referer('aiosrs-pro-setup-wizard');
|
||||
|
||||
if ( isset( $_POST['wp-schema-pro-global-schemas'] ) ) {
|
||||
update_option( 'wp-schema-pro-global-schemas', array_map( 'sanitize_text_field', $_POST['wp-schema-pro-global-schemas'] ) );
|
||||
if (isset($_POST['wp-schema-pro-global-schemas'])) {
|
||||
update_option('wp-schema-pro-global-schemas', array_map('sanitize_text_field', $_POST['wp-schema-pro-global-schemas']));
|
||||
$new_data = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-breadcrumb-setting'];
|
||||
if ( isset( $new_data['enable_bread'] ) ) {
|
||||
$old_data = isset( $_POST['wp-schema-pro-global-schemas']['breadcrumb'] ) ? sanitize_text_field( $_POST['wp-schema-pro-global-schemas']['breadcrumb'] ) : '';
|
||||
if (isset($new_data['enable_bread'])) {
|
||||
$old_data = isset($_POST['wp-schema-pro-global-schemas']['breadcrumb']) ? sanitize_text_field($_POST['wp-schema-pro-global-schemas']['breadcrumb']) : '';
|
||||
$new_data['enable_bread'] = $old_data;
|
||||
update_option( 'wp-schema-pro-breadcrumb-setting', $new_data );
|
||||
update_option('wp-schema-pro-breadcrumb-setting', $new_data);
|
||||
}
|
||||
}
|
||||
|
||||
$redirect_url = $this->get_next_step_link();
|
||||
wp_safe_redirect( esc_url_raw( $redirect_url ) );
|
||||
wp_safe_redirect(esc_url_raw($redirect_url));
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Final step.
|
||||
*/
|
||||
public function success() {
|
||||
public function success()
|
||||
{
|
||||
|
||||
?>
|
||||
<h1><?php esc_html_e( 'Well done!', 'wp-schema-pro' ); ?></h1>
|
||||
<h1><?php esc_html_e('Well done!', 'wp-schema-pro'); ?></h1>
|
||||
|
||||
<div class="aiosrs-pro-setup-wizard-next-steps">
|
||||
<div class="aiosrs-pro-setup-wizard-next-steps-last">
|
||||
<p class="success">
|
||||
<?php esc_html_e( 'You\'ve successfully added schema to your website! You’re on your way to get rich snippets for your pages.', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('You\'ve successfully added schema to your website! You’re on your way to get rich snippets for your pages.', 'wp-schema-pro'); ?>
|
||||
</p>
|
||||
<p class="success">
|
||||
<?php esc_html_e( 'The information you provided is globally applied to the website. You can always go back, change, and add more to this later from your dashboard.', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('The information you provided is globally applied to the website. You can always go back, change, and add more to this later from your dashboard.', 'wp-schema-pro'); ?>
|
||||
</p>
|
||||
<p class="success">
|
||||
<?php esc_html_e( 'From the dashboard, you can also explore other advanced features like breadcrumbs and white label services.', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('From the dashboard, you can also explore other advanced features like breadcrumbs and white label services.', 'wp-schema-pro'); ?>
|
||||
</p>
|
||||
<p class="success">
|
||||
<span class ="wpsp-text-strong"><?php esc_html_e( 'Wondering what’s next?', 'wp-schema-pro' ); ?></span>
|
||||
<?php esc_html_e( ' The next step would be to create and set schema markups for your individual pages.', 'wp-schema-pro' ); ?>
|
||||
<span class="wpsp-text-strong"><?php esc_html_e('Wondering what’s next?', 'wp-schema-pro'); ?></span>
|
||||
<?php esc_html_e(' The next step would be to create and set schema markups for your individual pages.', 'wp-schema-pro'); ?>
|
||||
</p>
|
||||
<p class="success">
|
||||
<?php esc_html_e( 'Give it a try now!', 'wp-schema-pro' ); ?>
|
||||
<?php esc_html_e('Give it a try now!', 'wp-schema-pro'); ?>
|
||||
</p>
|
||||
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="<?php echo esc_url( admin_url( 'index.php?page=aiosrs-pro-setup' ) ); ?>" type="button" class="button button-primary button-hero" ><?php esc_html_e( 'Create First Schema', 'wp-schema-pro' ); ?></a>
|
||||
<a href="<?php echo esc_url(admin_url('index.php?page=aiosrs-pro-setup')); ?>" type="button" class="button button-primary button-hero"><?php esc_html_e('Create First Schema', 'wp-schema-pro'); ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
new BSF_AIOSRS_Pro_Setup_Wizard();
|
||||
|
||||
endif;
|
||||
|
||||
?>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# This file is distributed under the GPL2.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Schema Pro 2.7.15\n"
|
||||
"Project-Id-Version: Schema Pro 2.7.16\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-schema-pro\n"
|
||||
"POT-Creation-Date: 2024-02-12 05:31:48+00:00\n"
|
||||
"POT-Creation-Date: 2024-02-27 05:41:13+00:00\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
@@ -143,23 +143,23 @@ msgstr ""
|
||||
msgid "(0 Reviews)"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:249
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:255
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:1117
|
||||
msgid "Applicant Location"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:253
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:259
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:1121
|
||||
msgid ""
|
||||
"The geographic location(s) in which employees may be located to be eligible "
|
||||
"for the Remote job."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:797
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:805
|
||||
msgid "Reset"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:813
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:821
|
||||
#: classes/class-bsf-aiosrs-pro-markup.php:153
|
||||
#: classes/class-bsf-aiosrs-pro-markup.php:299
|
||||
#. translators: 1: number of reviews
|
||||
@@ -168,18 +168,18 @@ msgid_plural "(%1s Reviews)"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:850
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:858
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:3794
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:311 template/settings.php:93
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:338 template/settings.php:93
|
||||
#: template/wpsp-advanced-settings.php:127
|
||||
msgid "Select Image"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:865
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:873
|
||||
msgid "Add your snippet here..."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:918
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:926
|
||||
msgid "By clicking on this, it will allow you to fill advanced data."
|
||||
msgstr ""
|
||||
|
||||
@@ -204,103 +204,103 @@ msgstr ""
|
||||
msgid "You searched for "
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:48
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:32
|
||||
msgid "Choose Schema Type"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:53
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:37
|
||||
msgid "Set Target Pages"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:58
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:42
|
||||
msgid "Ready!"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:116
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:139
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:120
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:148
|
||||
msgid "Schema Setup"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:146
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:170
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:150
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:192
|
||||
msgid "Exit Setup Wizard"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:192
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:196
|
||||
msgid "Select the Schema Type:"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:210
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:350
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:378
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:476
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:597
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:214
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:354
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:405
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:505
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:628
|
||||
msgid "Next"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:308
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:312
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:3368
|
||||
#. translators: 1 schema title
|
||||
msgid "Enable On"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:309
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:313
|
||||
msgid "Add target pages where this Schema should appear."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:316
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:320
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:3376
|
||||
msgid "Display Rules"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:320
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:324
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:3380
|
||||
msgid "Add “AND” Rule"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:329
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:333
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:3389
|
||||
msgid "Exclude From"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:330
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:334
|
||||
msgid "This Schema will not appear at these pages."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:337
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:341
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:3397
|
||||
msgid "Exclude On"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:340
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:344
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:3400
|
||||
msgid "Add “OR” Rule"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:440
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:444
|
||||
msgid "Your Schema is Ready!"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:455
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:459
|
||||
#. translators: 1 schema title
|
||||
msgid "Here’s what to do next:"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:456
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:460
|
||||
msgid ""
|
||||
"Step 1: Complete the setup and proceed to fill the required properties of "
|
||||
"this schema."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:457
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:461
|
||||
msgid "Step 2: Add necessary Schema information on individual pages and posts."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:458
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:462
|
||||
msgid "Step 3: Test if Schema is integrated correctly."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:464
|
||||
#: classes/class-bsf-aiosrs-pro-schema-wizard.php:468
|
||||
msgid "Complete Setup"
|
||||
msgstr ""
|
||||
|
||||
@@ -1102,8 +1102,8 @@ msgid "Local Business Type"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:1204
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:59
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:265 template/settings.php:16
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:64
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:292 template/settings.php:16
|
||||
#: template/settings.php:33
|
||||
msgid "General"
|
||||
msgstr ""
|
||||
@@ -1325,7 +1325,7 @@ msgstr ""
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:1646
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:1699
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:2279
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:276 template/settings.php:58
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:303 template/settings.php:58
|
||||
msgid "Organization"
|
||||
msgstr ""
|
||||
|
||||
@@ -2203,7 +2203,7 @@ msgid "Movie Director Name"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-schema.php:2896
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:329 template/settings.php:111
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:356 template/settings.php:111
|
||||
msgid "Organization Name"
|
||||
msgstr ""
|
||||
|
||||
@@ -4384,31 +4384,31 @@ msgstr ""
|
||||
msgid "%s draft updated."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:55
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:60
|
||||
msgid "Welcome"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:64
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:407 template/settings.php:17
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:69
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:436 template/settings.php:17
|
||||
#: template/settings.php:171 template/wpsp-advanced-settings.php:190
|
||||
msgid "Social Profiles"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:69
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:505 template/settings.php:19
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:74
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:536 template/settings.php:19
|
||||
msgid "Other Schemas"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:74
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:79
|
||||
msgid "Done"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:226
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:252
|
||||
#. translators: %s: search term
|
||||
msgid "Welcome to %s setup wizard !"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:228
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:254
|
||||
#. translators: %s: search term
|
||||
msgid ""
|
||||
"%s adds Google-recommended schema markups across your site and specific "
|
||||
@@ -4416,212 +4416,212 @@ msgid ""
|
||||
"snippets for your website."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:235
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:261
|
||||
msgid "Welcome To Schema Pro Setup Wizard!"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:237
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:263
|
||||
msgid ""
|
||||
"Schema Pro adds Google-recommended schema markups across your site and "
|
||||
"specific pages. This improves your SEO and allows search engines to display "
|
||||
"rich snippets for your website."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:243
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:269
|
||||
msgid ""
|
||||
"This wizard is the first step to making Google understand your site better. "
|
||||
"Just fill in the required basic information. It’s easy!"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:251
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:277
|
||||
msgid "Start"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:266 template/settings.php:44
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:293 template/settings.php:44
|
||||
msgid ""
|
||||
"To help Google understand what your website is about, select the most "
|
||||
"suitable type for your website below, and fill in the required basic "
|
||||
"information."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:270
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:297
|
||||
msgid "This Website Represents "
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:273
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:519
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:536
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:554 template/settings.php:55
|
||||
#: template/settings.php:294 template/settings.php:435
|
||||
#: template/settings.php:477
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:300
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:550
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:567
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:585 template/settings.php:55
|
||||
#: template/settings.php:294 template/settings.php:440
|
||||
#: template/settings.php:482
|
||||
msgid "--None--"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:274 template/settings.php:56
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:301 template/settings.php:56
|
||||
msgid "Personal Website"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:275 template/settings.php:57
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:302 template/settings.php:57
|
||||
msgid "Business Website"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:277 template/settings.php:59
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:304 template/settings.php:59
|
||||
msgid "Personal Blog"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:278 template/settings.php:60
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:305 template/settings.php:60
|
||||
msgid "Community Blog/News Website "
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:279 template/settings.php:61
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:306 template/settings.php:61
|
||||
msgid "Webshop"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:292 template/settings.php:74
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:319 template/settings.php:74
|
||||
msgid "Website Logo"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:295 template/settings.php:77
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:322 template/settings.php:77
|
||||
msgid "Add Custom Logo"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:318 template/settings.php:100
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:345 template/settings.php:100
|
||||
msgid "Recommended minimum logo size 112 x 112 pixels."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:319 template/settings.php:101
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:346 template/settings.php:101
|
||||
msgid "The image must be in .jpg, .png, .gif, .svg, or .webp format."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:323 template/settings.php:105
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:350 template/settings.php:105
|
||||
msgid "Website Owner Name"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:337 template/settings.php:118
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:364 template/settings.php:118
|
||||
msgid "Organization Type"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:364 template/settings.php:141
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:391 template/settings.php:141
|
||||
msgid ""
|
||||
"Select the type that best describes your website. If you can't find one "
|
||||
"that applies exactly, use the generic \"General/Other\" type. Further "
|
||||
"create Local Business schema for \"General/Other\" type."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:366 template/settings.php:143
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:393 template/settings.php:143
|
||||
msgid ""
|
||||
"Select the type that best describes your website. If you can't find one "
|
||||
"that applies exactly, use the generic \"General/Other\" type. Further "
|
||||
"create Local Business schema for \"General/Other\" type. "
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:379
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:477
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:598
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:406
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:506
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:629
|
||||
msgid "Previous"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:408 template/settings.php:182
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:437 template/settings.php:182
|
||||
msgid ""
|
||||
"Please enter all your possible social media profiles. These links can "
|
||||
"appear in the knowledge panel of the search results for your website."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:412 template/settings.php:189
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:441 template/settings.php:189
|
||||
msgid "Facebook"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:416 template/settings.php:193
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:445 template/settings.php:193
|
||||
msgid "Instagram"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:420 template/settings.php:197
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:449 template/settings.php:197
|
||||
msgid "YouTube"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:424 template/settings.php:201
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:453 template/settings.php:201
|
||||
msgid "Twitter"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:428 template/settings.php:205
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:457 template/settings.php:205
|
||||
msgid "Pinterest"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:432 template/settings.php:209
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:461 template/settings.php:209
|
||||
msgid "LinkedIn"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:436 template/settings.php:213
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:465 template/settings.php:213
|
||||
msgid "SoundCloud"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:440 template/settings.php:217
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:469 template/settings.php:217
|
||||
msgid "Tumblr"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:444 template/settings.php:221
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:473 template/settings.php:221
|
||||
msgid "Wikipedia"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:448 template/settings.php:225
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:477 template/settings.php:225
|
||||
msgid "MySpace"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:452 template/settings.php:229
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:481 template/settings.php:229
|
||||
msgid "Google+"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:461
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:470 template/settings.php:238
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:490
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:499 template/settings.php:238
|
||||
#: template/settings.php:250 template/settings.php:305
|
||||
msgid "Other"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:506 template/settings.php:420
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:537 template/settings.php:425
|
||||
msgid ""
|
||||
"Fill in additional information about your website to make sure that search "
|
||||
"engines fully understand what it’s about. This will help improve your SEO "
|
||||
"further."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:511 template/settings.php:427
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:542 template/settings.php:432
|
||||
msgid "Select About Page"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:513 template/settings.php:429
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:544 template/settings.php:434
|
||||
msgid ""
|
||||
"Select your about page from the dropdown list. This will add AboutPage "
|
||||
"schema on the selected page."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:528 template/settings.php:448
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:559 template/settings.php:453
|
||||
msgid "Select Contact Page"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:530 template/settings.php:450
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:561 template/settings.php:455
|
||||
msgid ""
|
||||
"Select your contact page from the dropdown list. This will add ContactPage "
|
||||
"schema on the selected page."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:545 template/settings.php:468
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:576 template/settings.php:473
|
||||
msgid "Select Menu for SiteLinks Schema"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:559
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:590
|
||||
msgid ""
|
||||
"This helps Google understand the most important pages on your website and "
|
||||
"can generate Rich Snippets."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:564 template/settings.php:487
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:595 template/settings.php:492
|
||||
msgid "Enable SiteLinks Search Box"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:573
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:589
|
||||
#: template/breadcrumb-settings.php:66 template/settings.php:383
|
||||
#: template/settings.php:496 template/settings.php:513
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:604
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:620
|
||||
#: template/breadcrumb-settings.php:66 template/settings.php:388
|
||||
#: template/settings.php:501 template/settings.php:518
|
||||
#: template/wpsp-advanced-settings.php:60
|
||||
#: template/wpsp-advanced-settings.php:153
|
||||
#: template/wpsp-advanced-settings.php:177
|
||||
@@ -4629,60 +4629,60 @@ msgstr ""
|
||||
msgid "Yes"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:575
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:606
|
||||
msgid ""
|
||||
"If enabled, Google can display a search box on your search website’s search "
|
||||
"results."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:580
|
||||
#: template/breadcrumb-settings.php:57 template/settings.php:503
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:611
|
||||
#: template/breadcrumb-settings.php:57 template/settings.php:508
|
||||
msgid "Enable Breadcrumbs"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:591 template/settings.php:505
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:622 template/settings.php:510
|
||||
msgid ""
|
||||
"If enabled, Google can add breadcrumbs to your website’s and pages search "
|
||||
"results."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:631
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:664
|
||||
msgid "Well done!"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:636
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:669
|
||||
msgid ""
|
||||
"You've successfully added schema to your website! You’re on your way to get "
|
||||
"rich snippets for your pages."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:639
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:672
|
||||
msgid ""
|
||||
"The information you provided is globally applied to the website. You can "
|
||||
"always go back, change, and add more to this later from your dashboard."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:642
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:675
|
||||
msgid ""
|
||||
"From the dashboard, you can also explore other advanced features like "
|
||||
"breadcrumbs and white label services."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:645
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:678
|
||||
msgid "Wondering what’s next?"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:646
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:679
|
||||
msgid ""
|
||||
" The next step would be to create and set schema markups for your "
|
||||
"individual pages."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:649
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:682
|
||||
msgid "Give it a try now!"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:655
|
||||
#: classes/class-bsf-aiosrs-pro-setup-wizard.php:688
|
||||
msgid "Create First Schema"
|
||||
msgstr ""
|
||||
|
||||
@@ -4933,7 +4933,7 @@ msgstr ""
|
||||
|
||||
#: template/branding-settings.php:84 template/breadcrumb-settings.php:127
|
||||
#: template/settings.php:154 template/settings.php:258
|
||||
#: template/settings.php:393 template/settings.php:520
|
||||
#: template/settings.php:398 template/settings.php:525
|
||||
#: template/wpsp-advanced-settings.php:209
|
||||
msgid "Save Changes"
|
||||
msgstr ""
|
||||
@@ -4947,33 +4947,33 @@ msgid "Whitelabel settings are applied to all the sites in the Network."
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:99 template/breadcrumb-settings.php:146
|
||||
#: template/settings.php:546 template/wpsp-advanced-settings.php:228
|
||||
#: template/settings.php:551 template/wpsp-advanced-settings.php:228
|
||||
msgid "Setup Wizard"
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:111 template/breadcrumb-settings.php:153
|
||||
#: template/settings.php:553 template/wpsp-advanced-settings.php:235
|
||||
#: template/settings.php:558 template/wpsp-advanced-settings.php:235
|
||||
#. translators: %s: search term
|
||||
msgid "Need help configure %s step by step?"
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:119 template/breadcrumb-settings.php:161
|
||||
#: template/settings.php:561 template/wpsp-advanced-settings.php:243
|
||||
#: template/settings.php:566 template/wpsp-advanced-settings.php:243
|
||||
msgid "Not sure where to start? Check out our video on "
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:126 template/breadcrumb-settings.php:168
|
||||
#: template/settings.php:569 template/wpsp-advanced-settings.php:249
|
||||
#: template/settings.php:574 template/wpsp-advanced-settings.php:249
|
||||
msgid "Start Setup Wizard"
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:133 template/breadcrumb-settings.php:175
|
||||
#: template/settings.php:577 template/wpsp-advanced-settings.php:256
|
||||
#: template/settings.php:582 template/wpsp-advanced-settings.php:256
|
||||
msgid "Regenerate Schema"
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:137 template/breadcrumb-settings.php:185
|
||||
#: template/settings.php:584 template/wpsp-advanced-settings.php:261
|
||||
#: template/settings.php:589 template/wpsp-advanced-settings.php:261
|
||||
#: template/wpsp-advanced-settings.php:263
|
||||
msgid ""
|
||||
"Having issues with your schema? Try regenerating the code on all your "
|
||||
@@ -4981,32 +4981,32 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:144 template/breadcrumb-settings.php:193
|
||||
#: template/settings.php:592 template/wpsp-advanced-settings.php:271
|
||||
#: template/settings.php:597 template/wpsp-advanced-settings.php:271
|
||||
msgid "Schema Regenerated Successfully."
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:152 template/breadcrumb-settings.php:201
|
||||
#: template/settings.php:600 template/wpsp-advanced-settings.php:279
|
||||
#: template/settings.php:605 template/wpsp-advanced-settings.php:279
|
||||
msgid "Regenerate Now"
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:160 template/breadcrumb-settings.php:210
|
||||
#: template/settings.php:609 template/wpsp-advanced-settings.php:288
|
||||
#: template/settings.php:614 template/wpsp-advanced-settings.php:288
|
||||
msgid "Knowledge Base"
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:164 template/breadcrumb-settings.php:214
|
||||
#: template/settings.php:613 template/wpsp-advanced-settings.php:292
|
||||
#: template/settings.php:618 template/wpsp-advanced-settings.php:292
|
||||
msgid "Not sure how something works? Take a peek at the knowledge base and learn."
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:167 template/breadcrumb-settings.php:217
|
||||
#: template/settings.php:616 template/wpsp-advanced-settings.php:295
|
||||
#: template/settings.php:621 template/wpsp-advanced-settings.php:295
|
||||
msgid "Visit Knowledge Base"
|
||||
msgstr ""
|
||||
|
||||
#: template/branding-settings.php:176 template/breadcrumb-settings.php:227
|
||||
#: template/settings.php:626 template/wpsp-advanced-settings.php:305
|
||||
#: template/settings.php:631 template/wpsp-advanced-settings.php:305
|
||||
msgid "Rollback Version"
|
||||
msgstr ""
|
||||
|
||||
@@ -5026,7 +5026,7 @@ msgid ""
|
||||
"site hierarchy. "
|
||||
msgstr ""
|
||||
|
||||
#: template/breadcrumb-settings.php:68 template/settings.php:515
|
||||
#: template/breadcrumb-settings.php:68 template/settings.php:520
|
||||
msgid ""
|
||||
"If enabled, Google can add breadcrumbs to your website’s and pages search "
|
||||
"results. "
|
||||
@@ -5038,7 +5038,7 @@ msgid ""
|
||||
"example - Domain name > Selected Option > Post Name."
|
||||
msgstr ""
|
||||
|
||||
#: template/breadcrumb-settings.php:180 template/settings.php:582
|
||||
#: template/breadcrumb-settings.php:180 template/settings.php:587
|
||||
msgid ""
|
||||
"Having issues with your schema? Try regenerating the code on all your "
|
||||
"posts/pages."
|
||||
@@ -5069,14 +5069,14 @@ msgid "Contact Information"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:36 template/settings.php:174 template/settings.php:278
|
||||
#: template/settings.php:412
|
||||
#: template/settings.php:417
|
||||
msgid ""
|
||||
"Looks like you have Yoast SEO plugin installed. So we've gone ahead and "
|
||||
"disabled some features which comes with Yoast SEO as well."
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:37 template/settings.php:175 template/settings.php:279
|
||||
#: template/settings.php:413
|
||||
#: template/settings.php:418
|
||||
msgid "If you would still like to enable then,"
|
||||
msgstr ""
|
||||
|
||||
@@ -5143,77 +5143,77 @@ msgstr ""
|
||||
msgid "Contact Page URL"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:336
|
||||
#: template/settings.php:341
|
||||
msgid "Contact Number"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:339
|
||||
#: template/settings.php:344
|
||||
msgid ""
|
||||
"Enter the international version of your contact phone number starting with "
|
||||
"the “+” sign and country code, e.g., +1 for the US and Canada. Example: "
|
||||
"+1-800-555-1212. Search your country code here"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:343
|
||||
#: template/settings.php:348
|
||||
msgid "Area Served"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:345
|
||||
#: template/settings.php:350
|
||||
msgid ""
|
||||
"\tThe geographic area where a service or offered item is provided. "
|
||||
"Supersedes serviceArea. Examples US,ES FR"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:352
|
||||
#: template/settings.php:357
|
||||
msgid "Available Language"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:354
|
||||
#: template/settings.php:359
|
||||
msgid ""
|
||||
"Details about the language spoken. Languages may be specified by their "
|
||||
"common English name. If omitted, the language defaults to English."
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:361
|
||||
#: template/settings.php:366
|
||||
msgid "Contact Option"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:363
|
||||
#: template/settings.php:368
|
||||
msgid ""
|
||||
"An option available on this contact point (e.g. a toll-free number or "
|
||||
"support for hearing-impaired callers). Hearing Impaired Supported:- Uses "
|
||||
"devices to support users with hearing impairments."
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:368
|
||||
#: template/settings.php:373
|
||||
msgid "Hearing Impaired Supported"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:370
|
||||
#: template/settings.php:375
|
||||
msgid "Toll Free"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:374
|
||||
#: template/settings.php:379
|
||||
msgid "Enable ContactPoint on schema type?"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:376
|
||||
#: template/settings.php:381
|
||||
msgid ""
|
||||
"If enabled, It will add ContactPoint on Local Business and Person schema "
|
||||
"type."
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:409
|
||||
#: template/settings.php:414
|
||||
msgid "Other Schema"
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:482
|
||||
#: template/settings.php:487
|
||||
msgid ""
|
||||
"This helps Google understand the most important pages on your website and "
|
||||
"can generate Rich Snippets. "
|
||||
msgstr ""
|
||||
|
||||
#: template/settings.php:498
|
||||
#: template/settings.php:503
|
||||
msgid "If enabled, Google can display a search box with your Search results. "
|
||||
msgstr ""
|
||||
|
||||
@@ -5401,7 +5401,7 @@ msgctxt "rating out of"
|
||||
msgid "0/5"
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:804
|
||||
#: classes/class-bsf-aiosrs-pro-custom-fields-markup.php:812
|
||||
#: classes/class-bsf-aiosrs-pro-markup.php:129
|
||||
#: classes/class-bsf-aiosrs-pro-markup.php:148
|
||||
#: classes/class-bsf-aiosrs-pro-markup.php:290
|
||||
|
||||
@@ -61,7 +61,7 @@ $setting_url = self::get_page_url( 'branding-settings' );
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e( 'Author / Agency URL', 'wp-schema-pro' ); ?></th>
|
||||
<td><input type="text" name="wp-schema-pro-branding-settings[sp_plugin_author_url]" placeholder="http://www.brainstormforce.com" value="<?php echo esc_attr( $sp_author_url ); ?>" class="regular-text sp_plugin_author_url" /></td>
|
||||
<td><input type="text" name="wp-schema-pro-branding-settings[sp_plugin_author_url]" placeholder="https://www.brainstormforce.com" value="<?php echo esc_attr( $sp_author_url ); ?>" class="regular-text sp_plugin_author_url" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="tooltip-with-image-wrapper">
|
||||
|
||||
@@ -318,7 +318,12 @@ $current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET
|
||||
<td>
|
||||
<?php
|
||||
if ( empty( $contact_settings['contact-page-id'] ) && ! empty( $contact_settings['url'] ) ) {
|
||||
$contact_settings['contact-page-id'] = wpcom_vip_url_to_postid( $contact_settings['url'] );
|
||||
|
||||
if ( function_exists( 'wpcom_vip_url_to_postid' ) ) {
|
||||
$contact_settings['contact-page-id'] = wpcom_vip_url_to_postid( $contact_settings['url'] );
|
||||
} else {
|
||||
$contact_settings['contact-page-id'] = url_to_postid( $contact_settings['url'] );
|
||||
}
|
||||
}
|
||||
?>
|
||||
<select class = ' wp-select2 wpsp-setup-configuration-settings' name="wp-schema-pro-corporate-contact[contact-page-id]">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Author: Brainstorm Force
|
||||
* Author URI: https://www.brainstormforce.com
|
||||
* Description: Schema Pro is the go-to plugin to adding Schema Markup on your website with ease. Enables you to display rich snippets on search engines and improve your overall page SEO.
|
||||
* Version: 2.7.15
|
||||
* Version: 2.7.16
|
||||
* Text Domain: wp-schema-pro
|
||||
* License: GPL2
|
||||
*
|
||||
@@ -70,7 +70,7 @@ define( 'BSF_AIOSRS_PRO_FILE', __FILE__ );
|
||||
define( 'BSF_AIOSRS_PRO_BASE', plugin_basename( BSF_AIOSRS_PRO_FILE ) );
|
||||
define( 'BSF_AIOSRS_PRO_DIR', plugin_dir_path( BSF_AIOSRS_PRO_FILE ) );
|
||||
define( 'BSF_AIOSRS_PRO_URI', plugins_url( '/', BSF_AIOSRS_PRO_FILE ) );
|
||||
define( 'BSF_AIOSRS_PRO_VER', '2.7.15' );
|
||||
define( 'BSF_AIOSRS_PRO_VER', '2.7.16' );
|
||||
define( 'BSF_AIOSRS_PRO_CACHE_KEY', 'wp_schema_pro_optimized_structured_data' );
|
||||
define( 'BSF_AIOSRS_PRO_WEBSITE_URL', 'https://wpschema.com/' );
|
||||
|
||||
@@ -125,7 +125,7 @@ require_once BSF_AIOSRS_PRO_DIR . 'wpsp-blocks/classes/class-bsf-sp-admin.php';
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function wpsp_fail_php_version() {
|
||||
function wpsp_fail_php_version_notice() {
|
||||
/* translators: %s: PHP version */
|
||||
$message = sprintf( esc_html__( 'Schema Pro blocks requires PHP version %s+, plugin is currently NOT RUNNING.', 'wp-schema-pro' ), '5.6' );
|
||||
$html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
|
||||
@@ -142,7 +142,7 @@ function wpsp_fail_php_version() {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function wpsp_fail_wp_version() {
|
||||
function wpsp_fail_wp_version_notice() {
|
||||
/* translators: %s: WordPress version */
|
||||
$message = sprintf( esc_html__( 'Schema Pro blocks requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'wp-schema-pro' ), '4.7' );
|
||||
$html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
|
||||
|
||||
Reference in New Issue
Block a user