plugin updates

This commit is contained in:
Tony Volpe
2024-06-17 15:33:26 -04:00
parent 3751a5a1a6
commit e4e274a9a7
2674 changed files with 0 additions and 507851 deletions

View File

@@ -1,190 +0,0 @@
<?php
/**
* Schema Pro Admin Init
*
* @package Schema Pro
*/
$setting_url = self::get_page_url( 'branding-settings' );
?>
<div class="wrap bsf-aiosrs-pro clear">
<div id="poststuff">
<div id="post-body" class="columns-2">
<div id="post-body-content">
<?php
if ( is_multisite() || is_network_admin() ) {
$settings = get_site_option( 'wp-schema-pro-branding-settings' );
} else {
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
}
$sp_names = isset( $settings['sp_plugin_name'] ) ? $settings['sp_plugin_name'] : '';
$sp_snames = isset( $settings['sp_plugin_sname'] ) ? $settings['sp_plugin_sname'] : '';
$sp_desc = isset( $settings['sp_plugin_desc'] ) ? $settings['sp_plugin_desc'] : '';
$sp_author_name = isset( $settings['sp_plugin_author_name'] ) ? $settings['sp_plugin_author_name'] : '';
$sp_author_url = isset( $settings['sp_plugin_author_url'] ) ? $settings['sp_plugin_author_url'] : '';
$sp_hide_label = isset( $settings['sp_hide_label'] ) ? $settings['sp_hide_label'] : 'disabled';
?>
<!-- White Label -->
<div class="postbox wp-schema-pro-branding-settings" >
<h2 class="hndle">
<span><?php esc_html_e( 'Configure White Label', 'wp-schema-pro' ); ?></span>
</h2>
<div class="inside">
<p>
<?php
esc_html_e( 'White Label lets you change the identity (name, description, etc.) of this plugin on the WordPress Dashboard. You can rename the plugin and present it as your own. This is mostly used by agencies and developers who are building websites for clients. ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://wpschema.com/docs/schema-pro-white-label/" target="_blank">Learn more</a>', 'wp-schema-pro' )
);
?>
</p>
<form method="post" action="options.php">
<?php settings_fields( 'wp-schema-pro-branding-group' ); ?>
<?php do_settings_sections( 'wp-schema-pro-branding-group' ); ?>
<table class="form-table schema-branding">
<tr>
<th><?php esc_html_e( 'Plugin Name', 'wp-schema-pro' ); ?></th>
<td><input type="text" name="wp-schema-pro-branding-settings[sp_plugin_name]" placeholder="Schema Pro" value="<?php echo esc_attr( $sp_names ); ?>" class="regular-text sp_plugin_name" /></td>
</tr>
<tr>
<th><?php esc_html_e( 'Plugin Short Name', 'wp-schema-pro' ); ?></th>
<td><input type="text" name="wp-schema-pro-branding-settings[sp_plugin_sname]" placeholder="Schema Pro" value="<?php echo esc_attr( $sp_snames ); ?>" class="regular-text sp_plugin_sname" /></td>
</tr>
<tr>
<th><?php esc_html_e( 'Plugin Description', 'wp-schema-pro' ); ?></th>
<td><input type="text" name="wp-schema-pro-branding-settings[sp_plugin_desc]" placeholder="Integrate Schema.org JSON-LD code in your website." value="<?php echo esc_attr( $sp_desc ); ?>" class="regular-text sp_plugin_desc" /></td>
</tr>
<tr>
<th><?php esc_html_e( 'Author / Agency Name', 'wp-schema-pro' ); ?></th>
<td><input type="text" name="wp-schema-pro-branding-settings[sp_plugin_author_name]" placeholder="Brainstorm Force" value="<?php echo esc_attr( $sp_author_name ); ?>" class="regular-text sp_plugin_author_name" /></td>
</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="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">
<?php esc_html_e( 'Hide White Label Settings', 'wp-schema-pro' ); ?>
<?php
$message = __( 'Checking this box will enable the White Label features of this plugin and will remove the white label settings.', 'wp-schema-pro' );
$message .= '<br><br>' . __( 'If you want to access it in the future, you would have to deactivate and reactivate the plugin.', 'wp-schema-pro' );
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
?>
</th>
<td>
<label>
<input type="hidden" name="wp-schema-pro-branding-settings[sp_hide_label]" value="disabled" />
<input type="checkbox" name="wp-schema-pro-branding-settings[sp_hide_label]" <?php checked( '1', $sp_hide_label ); ?> value="1" /> <?php esc_html_e( 'Hide White Label Settings', 'wp-schema-pro' ); ?>
</label>
</td>
</tr>
<tr>
<th scope="row" colspan="2">
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
<?php if ( is_multisite() ) : ?>
<p class="install-help"><strong><?php esc_html_e( 'Note:', 'wp-schema-pro' ); ?></strong> <?php esc_html_e( 'Whitelabel settings are applied to all the sites in the Network.', 'wp-schema-pro' ); ?></p>
<?php endif; ?>
<?php wp_nonce_field( 'white-label', 'wp-schema-pro-white-label-nonce' ); ?>
</form>
</div>
</div>
</div>
<div class="postbox-container" id="postbox-container-1">
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Setup Wizard', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<div>
<?php
$sp_name = isset( $settings['sp_plugin_name'] ) ? $settings['sp_plugin_name'] : '';
if ( is_multisite() ) {
$settings = get_site_option( 'wp-schema-pro-branding-settings' );
} else {
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
}
if ( '' !== $sp_name ) {
/* translators: %s: search term */
$brand_name = sprintf( __( 'Need help configure %s step by step?', 'wp-schema-pro' ), $sp_name );
?>
<p><?php echo esc_html( $brand_name ); ?></p>
<?php
} else {
?>
<p>
<?php
esc_html_e( 'Not sure where to start? Check out our video on ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://www.youtube.com/watch?v=xOiMA0am9QY" target="_blank">Initial Setup Wizard first.</a>', 'wp-schema-pro' )
);
?>
</p>
<?php } ?>
<a href="<?php echo esc_url( admin_url( 'index.php?page=aiosrs-pro-setup-wizard' ) ); ?>" class="button button-large button-primary"><?php esc_html_e( 'Start Setup Wizard', 'wp-schema-pro' ); ?></a>
</div>
</div>
</div>
</div>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Regenerate Schema', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<p>
<?php
esc_html_e( 'Having issues with your schema? Try regenerating the code on all your posts/pages. ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://wpschema.com/docs/regenerate-schema/" target="_blank">Learn More</a>', 'wp-schema-pro' )
);
?>
</p>
<div id="wpsp-regenerate-notice" class="notice inline notice-success" style="display: none">
<p> <?php esc_html_e( 'Schema Regenerated Successfully.', 'wp-schema-pro' ); ?> </p>
</div>
<div style="display: inline-block">
<input
type="button"
id="wpsp-regenerate-schema"
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
class="button button-primary"
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
<span class="spinner" ></span>
</div>
</div>
</div>
</div>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Knowledge Base', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<p>
<?php
esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'wp-schema-pro' );
?>
</p>
<a href="https://wpschema.com/docs/" target="_blank" class="button button-large button-primary"><?php esc_html_e( 'Visit Knowledge Base', 'wp-schema-pro' ); ?></a>
</div>
</div>
</div>
<?php
if ( bsf_display_rollback_version_form( 'wp-schema-pro' ) ) {
?>
<div id="side-sortables" style="">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Rollback Version', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<?php
$product_id = 'wp-schema-pro';
bsf_get_version_rollback_form( $product_id );
?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>

View File

@@ -1,240 +0,0 @@
<?php
/**
* Schema Pro Admin Init
*
* @package Schema Pro
*/
$setting_url = self::get_page_url( 'breadcrumb-settings' );
?>
<div class="wrap bsf-aiosrs-pro clear">
<div id="poststuff">
<div id="post-body" class="columns-2">
<div id="post-body-content">
<?php
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-breadcrumb-setting'];
$bread_settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-global-schemas'];
?>
<!-- General Settings -->
<div class="postbox wp-schema-pro-breadcrumb-setting" >
<h2 class="hndle">
<span><?php esc_html_e( 'Configure Breadcrumbs', 'wp-schema-pro' ); ?></span>
</h2>
<div class="inside">
<p>
<?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(
'Breadcrumb schema helps Google to understand the page\'s position in the site hierarchy.',
'wp-schema-pro'
);
} else {
esc_html_e(
'Breadcrumb schema helps Google to understand the page\'s position in the site hierarchy. ',
'wp-schema-pro'
);
echo sprintf(
wp_kses_post( '<a href="https://wpschema.com/docs/how-to-implement-breadcrumbs-with-schema-pro/" target="_blank">Learn more</a>', 'wp-schema-pro' )
);
}
?>
</p>
<form method="post" action="options.php">
<?php settings_fields( 'wp-schema-pro-breadcrumb-setting-group' ); ?>
<?php do_settings_sections( 'wp-schema-pro-breadcrumb-setting-group' ); ?>
<?php
if ( isset( $bread_settings['breadcrumb'] ) ) {
$old_data = $settings['enable_bread'];
$bread_settings['breadcrumb'] = $old_data;
update_option( 'wp-schema-pro-global-schemas', $bread_settings );
}
?>
<table class="form-table">
<tr>
<th class="tooltip-with-image-wrapper" scope="row">
<?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 );
?>
</th>
<td>
<label>
<input type="hidden" name="wp-schema-pro-breadcrumb-setting[enable_bread]" value="disabled" />
<input type="checkbox" name="wp-schema-pro-breadcrumb-setting[enable_bread]" <?php checked( '1', $settings ['enable_bread'] ); ?> value="1" /> <?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?>
</label>
<p style="font-style: italic;"><?php esc_html_e( 'If enabled, Google can add breadcrumbs to your websites and pages search results. ', 'wp-schema-pro' ); ?></p>
</td>
</tr>
<?php
if ( '1' === $settings['enable_bread'] ) {
$post_types = get_post_types( array( 'public' => true ), 'objects' );
if ( array() !== $post_types && is_array( $post_types ) ) {
foreach ( $post_types as $pt ) {
?>
<tr class="wp-schema-pro-breadcrumb-setting-options">
<?php
$taxonomies = get_object_taxonomies( $pt->name, 'objects' );
if ( array() !== $taxonomies && is_array( $taxonomies ) ) {
$values = array( 1 => __( 'None', 'wp-schema-pro' ) );
foreach ( $taxonomies as $taxo ) {
if ( ! $taxo->public ) {
continue;
}
$values[ $taxo->name ] = $taxo->labels->singular_name;
}
$label = $pt->labels->name . ' (<code>' . $pt->name . '</code>)';
$tax_name = str_replace( ' ', '_', strtolower( $pt->name ) );
echo '<th>' . wp_kses_post( $label ) . '</th>';
?>
<td>
<select name="<?php echo 'wp-schema-pro-breadcrumb-setting[' . esc_attr( $tax_name ) . ']'; ?>" class="wp-schema-pro-custom-option-select">
<?php
foreach ( $values as $key => $value ) {
?>
<option value="<?php print wp_kses_post( $key ); ?>"
<?php
if ( isset( $settings[ $tax_name ] ) && $key === $settings[ $tax_name ] ) {
?>
selected <?php } ?> ><?php print wp_kses_post( $value ); ?>
</option>
<?php
}
?>
</select>
<p><?php esc_html_e( 'Select this option to add an extra middle level in a breadcrumb trail. For example - Domain name > Selected Option > Post Name.', 'wp-schema-pro' ); ?> </p>
</td>
<?php
unset( $values, $taxo );
}
unset( $taxonomies );
}
?>
</tr>
<?php
unset( $pt );
}
}
?>
<tr>
<th colspan="2" scope="row">
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
</form>
</div>
</div>
</div>
<div class="postbox-container" id="postbox-container-1">
<?php
if ( is_multisite() ) {
$settings = get_site_option( 'wp-schema-pro-branding-settings' );
} else {
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
}
$sp_hide_label = isset( $settings['sp_hide_label'] ) ? $settings['sp_hide_label'] : 'disabled';
?>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Setup Wizard', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<div>
<?php
$sp_name = isset( $settings['sp_plugin_name'] ) ? $settings['sp_plugin_name'] : '';
if ( '' !== $sp_name ) {
/* translators: %s: search term */
$brand_name = sprintf( __( 'Need help configure %s step by step?', 'wp-schema-pro' ), $sp_name );
?>
<p><?php echo esc_html( $brand_name ); ?></p>
<?php
} else {
?>
<p>
<?php
esc_html_e( 'Not sure where to start? Check out our video on ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://www.youtube.com/watch?v=xOiMA0am9QY" target="_blank">Initial Setup Wizard first.</a>', 'wp-schema-pro' )
);
?>
</p>
<?php } ?>
<a href="<?php echo esc_url( admin_url( 'index.php?page=aiosrs-pro-setup-wizard' ) ); ?>" class="button button-large button-primary"><?php esc_html_e( 'Start Setup Wizard', 'wp-schema-pro' ); ?></a>
</div>
</div>
</div>
</div>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Regenerate Schema', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<p>
<?php
if ( ( '1' === $sp_hide_label ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
esc_html_e(
'Having issues with your schema? Try regenerating the code on all your posts/pages.',
'wp-schema-pro'
);
} else {
esc_html_e( 'Having issues with your schema? Try regenerating the code on all your posts/pages. ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://wpschema.com/docs/regenerate-schema/" target="_blank">Learn More</a>', 'wp-schema-pro' )
);
}
?>
</p>
<div id="wpsp-regenerate-notice" class="notice inline notice-success" style="display: none">
<p> <?php esc_html_e( 'Schema Regenerated Successfully.', 'wp-schema-pro' ); ?> </p>
</div>
<div style="display: inline-block">
<input
type="button"
id="wpsp-regenerate-schema"
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
class="button button-primary"
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
<span class="spinner" ></span>
</div>
</div>
</div>
</div>
<?php if ( 'disabled' === $sp_hide_label ) { ?>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Knowledge Base', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<p>
<?php
esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'wp-schema-pro' );
?>
</p>
<a href="https://wpschema.com/docs/" target="_blank" class="button button-large button-primary"><?php esc_html_e( 'Visit Knowledge Base', 'wp-schema-pro' ); ?></a>
</div>
</div>
</div>
<?php } ?>
<?php
if ( bsf_display_rollback_version_form( 'wp-schema-pro' ) ) {
?>
<div id="side-sortables" style="">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Rollback Version', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<?php
$product_id = 'wp-schema-pro';
bsf_get_version_rollback_form( $product_id );
?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>

View File

@@ -1,40 +0,0 @@
<?php
/**
* Premium License
*
* @since 1.0.0
* @package Schema Pro
*/
?>
<div id="aiosrs-pro-license-form" style="display: none;">
<div class="aiosrs-pro-license-form-overlay"></div>
<div class="aiosrs-pro-license-form-inner">
<button type="button" id="aiosrs-pro-license-form-close-btn">
<span class="screen-reader-text"><?php esc_html_e( 'Close', 'wp-schema-pro' ); ?></span>
<span class="dashicons dashicons-no-alt"></span>
</button>
<?php
$bsf_product_id = bsf_extract_product_id( BSF_AIOSRS_PRO_DIR );
$args = array(
'product_id' => $bsf_product_id,
'button_text_activate' => esc_html__( 'Activate License', 'wp-schema-pro' ),
'button_text_deactivate' => esc_html__( 'Deactivate License', 'wp-schema-pro' ),
'license_form_title' => '',
'license_deactivate_status' => esc_html__( 'Your license is not active!', 'wp-schema-pro' ),
'license_activate_status' => esc_html__( 'Your license is activated!', 'wp-schema-pro' ),
'submit_button_class' => 'bsf-product-license button-default',
'form_class' => 'form-wrap bsf-license-register-' . esc_attr( $bsf_product_id ),
'bsf_license_form_heading_class' => 'bsf-license-heading',
'bsf_license_active_class' => 'success-message',
'bsf_license_not_activate_message' => 'license-error',
'size' => 'regular',
'bsf_license_allow_email' => false,
);
echo esc_html( bsf_license_activation_form( $args ) );
?>
</div>
</div>

View File

@@ -1,644 +0,0 @@
<?php
/**
* Schema Pro Admin Init
*
* @package Schema Pro
*/
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;
}
$setting_url = self::get_page_url( 'settings' );
$wpsp_advanced_settings = self::get_page_url( 'wpsp-advanced-settings' );
$current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : 'general';
?>
<div id="wp-schema-pro-setting-links">
<a href="<?php echo esc_url( $setting_url ); ?>" <?php echo ( 'general' === $current_section ) ? 'class="active"' : ''; ?> ><?php esc_html_e( 'General', 'wp-schema-pro' ); ?></a> |
<a href="<?php echo esc_url( $setting_url . '&section=social-profiles' ); ?>" <?php echo ( 'social-profiles' === $current_section ) ? 'class="active"' : ''; ?>><?php esc_html_e( 'Social Profiles', 'wp-schema-pro' ); ?></a> |
<a href="<?php echo esc_url( $setting_url . '&section=corporate-contact' ); ?>" <?php echo ( 'corporate-contact' === $current_section ) ? 'class="active"' : ''; ?>><?php esc_html_e( 'Contact Information', 'wp-schema-pro' ); ?></a> |
<a href="<?php echo esc_url( $setting_url . '&section=global-schemas' ); ?>" <?php echo ( 'global-schemas' === $current_section ) ? 'class="active"' : ''; ?>><?php esc_html_e( 'Other Schemas', 'wp-schema-pro' ); ?></a>
</div>
<div class="wrap bsf-aiosrs-pro clear">
<div id="poststuff">
<div id="post-body" class="columns-2">
<div id="post-body-content">
<?php
switch ( $current_section ) {
case 'general':
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-general-settings'];
?>
<!-- General Settings -->
<div class="postbox wp-schema-pro-general-settings" >
<h2 class="hndle">
<span><?php esc_html_e( 'General', 'wp-schema-pro' ); ?></span>
<?php
if ( WP_Schema_Pro_Yoast_Compatibility::$activated ) {
$message = __( 'Looks like you have Yoast SEO plugin installed. So we\'ve gone ahead and disabled some features which comes with Yoast SEO as well.', 'wp-schema-pro' );
$message .= '<br><br>' . __( 'If you would still like to enable then,', 'wp-schema-pro' );
$message .= ' <a href="' . esc_url( $wpsp_advanced_settings . '#aiosrs-pro-settings-yoast-compatibility' ) . '">Click Here</a>';
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
}
?>
</h2>
<div class="inside">
<p><?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" action="options.php">
<?php settings_fields( 'wp-schema-pro-general-settings-group' ); ?>
<?php do_settings_sections( 'wp-schema-pro-general-settings-group' ); ?>
<table class="form-table">
<tr>
<th scope="row">
<?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="person"> <?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'] ) {
$settings['site-represent'] = 'person';
}
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>
<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'] ); ?>" />
<?php
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' );
}
$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>
<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 endif; ?>
</div>
</div>
<p style="font-style: italic;"><?php esc_html_e( 'Recommended minimum logo size 112 x 112 pixels.', 'wp-schema-pro' ); ?></p>
<p style="font-style: italic;"><?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>
<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' ) ); ?>" />
</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>
<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' ) ); ?>" />
</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' ); ?>
</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 ) {
?>
<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>
</tr>
<tr>
<th colspan="2">
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
</form>
</div>
</div>
<?php
break;
case 'social-profiles':
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-social-profiles'];
$social_settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-social-profiles'];
?>
<!-- Social Profiles -->
<div class="postbox wp-schema-pro-social-profiles" >
<h2 class="hndle">
<span><?php esc_html_e( 'Social Profiles', 'wp-schema-pro' ); ?></span>
<?php
if ( WP_Schema_Pro_Yoast_Compatibility::$activated ) {
$message = __( 'Looks like you have Yoast SEO plugin installed. So we\'ve gone ahead and disabled some features which comes with Yoast SEO as well.', 'wp-schema-pro' );
$message .= '<br><br>' . __( 'If you would still like to enable then,', 'wp-schema-pro' );
$message .= ' <a href="' . esc_url( $wpsp_advanced_settings . '#aiosrs-pro-settings-yoast-compatibility' ) . '">Click Here</a>';
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
}
?>
</h2>
<div class="inside">
<p><?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" action="options.php">
<?php settings_fields( 'wp-schema-pro-social-profiles-group' ); ?>
<?php do_settings_sections( 'wp-schema-pro-social-profiles-group' ); ?>
<table id="repeatable-fieldset-one" class="form-table">
<tr>
<th><?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><?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><?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><?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><?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><?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><?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><?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><?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><?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><?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 ) && is_array( $settings ) && isset( $settings['other'] ) && ( is_array( $settings['other'] ) || is_object( $settings['other'] ) ) ) {
foreach ( $settings['other'] as $sub_social_profiles => $value ) {
if ( isset( $value ) && ! empty( $value ) ) {
?>
<tr>
<th 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 class="empty-row screen-reader-text"> <!-- empty hidden one for jQuery -->
<th 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><a id="add-row" class="button" href="#">Add +</a></p>
<table class="form-table">
<tr>
<th colspan="2">
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
</form>
</div>
</div>
<?php
break;
case 'corporate-contact':
$contact_settings['contact-type-other'] = '';
$contact_settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-corporate-contact'];
?>
<!-- Corporate Contact -->
<div class="postbox wp-schema-pro-corporate-contact" >
<h2 class="hndle">
<span><?php esc_html_e( 'Contact Information', 'wp-schema-pro' ); ?></span>
<?php
if ( WP_Schema_Pro_Yoast_Compatibility::$activated ) {
$message = __( 'Looks like you have Yoast SEO plugin installed. So we\'ve gone ahead and disabled some features which comes with Yoast SEO as well.', 'wp-schema-pro' );
$message .= '<br><br>' . __( 'If you would still like to enable then,', 'wp-schema-pro' );
$message .= ' <a href="' . esc_url( $wpsp_advanced_settings . '#aiosrs-pro-settings-yoast-compatibility' ) . '">Click Here</a>';
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
}
?>
</h2>
<div class="inside">
<p><?php esc_html_e( 'The information provided here will tell search engines about your website\'s contact details. This can improve your appearance in rich snippets and can be displayed in the Knowledge Panel on some searches. ', 'wp-schema-pro' ); ?></p>
<form method="post" action="options.php">
<?php settings_fields( 'wp-schema-pro-corporate-contact-group' ); ?>
<?php do_settings_sections( 'wp-schema-pro-corporate-contact-group' ); ?>
<table class="form-table" >
<tr>
<th><?php esc_html_e( 'Select Contact Type', 'wp-schema-pro' ); ?></th>
<td><select name="wp-schema-pro-corporate-contact[contact-type]">
<option <?php selected( $contact_settings['contact-type'], '' ); ?> value=""> <?php esc_html_e( '--None--', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'customer support' ); ?> value="customer support"> <?php esc_html_e( 'Customer Support', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'technical support' ); ?> value="technical support"> <?php esc_html_e( 'Technical Support', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'billing support' ); ?> value="billing support"> <?php esc_html_e( 'Billing Support', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'bill payment' ); ?> value="bill payment"> <?php esc_html_e( 'Bill payment', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'sales' ); ?> value="sales"> <?php esc_html_e( 'Sales', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'reservations' ); ?> value="reservations"> <?php esc_html_e( 'Reservations', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'credit card support' ); ?> value="credit card support"> <?php esc_html_e( 'Credit Card Support', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'emergency' ); ?> value="emergency"> <?php esc_html_e( 'Emergency', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'baggage tracking' ); ?> value="baggage tracking"> <?php esc_html_e( 'Baggage Tracking', 'wp-schema-pro' ); ?></option>
<option <?php selected( $contact_settings['contact-type'], 'roadside assistance' ); ?> value="roadside assistance"> <?php esc_html_e( 'Roadside Assistance', 'wp-schema-pro' ); ?>
<option <?php selected( $contact_settings['contact-type'], 'other' ); ?> value="other"> <?php esc_html_e( 'Other', 'wp-schema-pro' ); ?>
</option>
</select>
</td>
</tr>
<tr class="wp-schema-pro-other-wrap" <?php echo ( 'other' !== $contact_settings['contact-type'] ) ? 'style="display: none;"' : ''; ?>>
<th><?php esc_html_e( 'Other Contact Type ', 'wp-schema-pro' ); ?>
</th>
<td><input type="text" name="wp-schema-pro-corporate-contact[contact-type-other]" value="<?php echo esc_attr( $contact_settings['contact-type-other'] ); ?>" /></td>
</tr>
<tr>
<th><?php esc_html_e( 'Contact Page URL', 'wp-schema-pro' ); ?>
</th>
<td>
<?php
if ( empty( $contact_settings['contact-page-id'] ) && ! empty( $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]">
<?php
$post_title = get_the_title( $contact_settings['contact-page-id'] );
if ( '0' === $contact_settings['contact-page-id'] ) {
$post_title = '--None--';
}
?>
<option selected="selected" value="<?php echo esc_attr( $contact_settings['contact-page-id'] ); ?>"><?php echo esc_html( preg_replace( '/^_/', '', esc_html( str_replace( '_', ' ', $post_title ) ) ) ); ?></option>
</select>
</td>
</tr>
<tr>
<th><?php esc_html_e( 'Contact Number', 'wp-schema-pro' ); ?>
</th>
<td><input type="text" name="wp-schema-pro-corporate-contact[telephone]" value="<?php echo esc_attr( $contact_settings['telephone'] ); ?>" placeholder="<?php echo esc_attr( 'e.g. +1-800-555-1212' ); ?>" />
<p style="font-style: italic;"><?php esc_html_e( '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', 'wp-schema-pro' ); ?> <a href="https://countrycode.org/" target="_blank">Learn more</a></p></td>
</tr>
<?php $extra_contact_field = apply_filters( 'wp_schema_pro_contactpoint_extra_field_enabled', true ); ?>
<tr <?php echo ( true === $extra_contact_field ) ? 'style="display: none;"' : ''; ?>>
<th><?php esc_html_e( 'Area Served', 'wp-schema-pro' ); ?>
<?php
$message = __( ' The geographic area where a service or offered item is provided. Supersedes serviceArea. Examples US,ES FR', 'wp-schema-pro' );
self::get_tooltip( $message );
?>
</th>
<td><input type="text" name="wp-schema-pro-corporate-contact[areaServed]" value="<?php echo esc_attr( $contact_settings['areaServed'] ); ?>" placeholder="<?php echo esc_attr( 'e.g. IN, US' ); ?>" /></td>
</tr>
<tr <?php echo ( true === $extra_contact_field ) ? 'style="display: none;"' : ''; ?> >
<th><?php esc_html_e( 'Available Language', 'wp-schema-pro' ); ?>
<?php
$message = __( 'Details about the language spoken. Languages may be specified by their common English name. If omitted, the language defaults to English.', 'wp-schema-pro' );
self::get_tooltip( $message );
?>
</th>
<td><input type="text" name="wp-schema-pro-corporate-contact[availableLanguage]" value="<?php echo esc_attr( $contact_settings['availableLanguage'] ); ?>" placeholder="<?php echo esc_attr( 'e.g. English, French' ); ?>" /></td>
</tr>
<tr <?php echo ( true === $extra_contact_field ) ? 'style="display: none;"' : ''; ?> >
<th><?php esc_html_e( 'Contact Option', 'wp-schema-pro' ); ?>
<?php
$message = __( '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.', 'wp-schema-pro' );
self::get_tooltip( $message );
?>
</th>
<td class="schema-contact-type-option-change schema-contact-type-option ">
<input type="checkbox" name="wp-schema-pro-corporate-contact[contact-hear]" <?php checked( isset( $contact_settings ['contact-hear'] ) ); ?> value="HearingImpairedSupported" /> <?php esc_html_e( 'Hearing Impaired Supported', 'wp-schema-pro' ); ?></td>
<td class=" schema-contact-type-option" >
<input type="checkbox" name="wp-schema-pro-corporate-contact[contact-toll]" <?php checked( isset( $contact_settings ['contact-toll'] ) ); ?> value="TollFree" /> <?php esc_html_e( 'Toll Free', 'wp-schema-pro' ); ?></td>
</tr>
<tr class= "schema-contact-type-option" <?php echo ( true === $extra_contact_field ) ? 'style="display: none;"' : ''; ?>>
<th class="tooltip-with-image-wrapper">
<?php esc_html_e( 'Enable ContactPoint on schema type?', 'wp-schema-pro' ); ?>
<?php
$message = __( 'If enabled, It will add ContactPoint on Local Business and Person schema type.', 'wp-schema-pro' );
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
?>
</th>
<td>
<label>
<input type="hidden" name="wp-schema-pro-corporate-contact[cp-schema-type]" value="disabled" />
<input type="checkbox" name="wp-schema-pro-corporate-contact[cp-schema-type]" <?php checked( '1', $contact_settings ['cp-schema-type'] ); ?> value="1" /> <?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?>
</label>
</td>
</tr>
</tbody>
</table>
<table class="form-table .contact-form">
<tr>
<th colspan="2">
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
</form>
</div>
</div>
<?php
break;
case 'global-schemas':
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-global-schemas'];
?>
<!-- Global Schemas -->
<div class="postbox wp-schema-pro-global-schemas" >
<h2 class="hndle">
<span><?php esc_html_e( 'Other Schema', 'wp-schema-pro' ); ?></span>
<?php
if ( WP_Schema_Pro_Yoast_Compatibility::$activated ) {
$message = __( 'Looks like you have Yoast SEO plugin installed. So we\'ve gone ahead and disabled some features which comes with Yoast SEO as well.', 'wp-schema-pro' );
$message .= '<br><br>' . __( 'If you would still like to enable then,', 'wp-schema-pro' );
$message .= ' <a href="' . esc_url( $wpsp_advanced_settings . '#aiosrs-pro-settings-yoast-compatibility' ) . '">Click Here</a>';
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
}
?>
</h2>
<div class="inside">
<p><?php esc_html_e( 'Fill in additional information about your website to make sure that search engines fully understand what its about. This will help improve your SEO further.', 'wp-schema-pro' ); ?></p>
<form method="post" action="options.php">
<?php settings_fields( 'wp-schema-pro-global-schemas-group' ); ?>
<?php do_settings_sections( 'wp-schema-pro-global-schemas-group' ); ?>
<table class="form-table">
<tr>
<th>
<?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' );
self::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
$post_title = get_the_title( $settings['about-page'] );
if ( '0' === $settings['about-page'] ) {
$post_title = '--None--';
}
?>
<option selected="selected" value="<?php echo esc_attr( $settings['about-page'] ); ?>"><?php echo esc_html( preg_replace( '/^_/', '', esc_html( str_replace( '_', ' ', $post_title ) ) ) ); ?></option>
</select>
</td>
</tr>
<tr>
<th>
<?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' );
self::get_tooltip( $message );
?>
</th>
<td>
<select class = 'wp-select2 wpsp-setup-configuration-settings' name="wp-schema-pro-global-schemas[contact-page]">
<?php
$post_title = get_the_title( $settings['contact-page'] );
if ( '0' === $settings['contact-page'] ) {
$post_title = '--None--';
}
?>
<option selected="selected" value="<?php echo esc_attr( $settings['contact-page'] ); ?>"><?php echo esc_html( preg_replace( '/^_/', '', esc_html( str_replace( '_', ' ', $post_title ) ) ) ); ?></option>
</select>
</td>
</tr>
<tr>
<th class="tooltip-with-image-wrapper">
<?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 );
?>
</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 $nav_menu ) { ?>
<option <?php selected( $nav_menu->term_id, $settings['site-navigation-element'] ); ?> value="<?php echo esc_attr( $nav_menu->term_id ); ?>"><?php echo esc_html( $nav_menu->name ); ?></option>
<?php } ?>
</select>
<p style="font-style: italic;"><?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 class="tooltip-with-image-wrapper" id ="" >
<?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 );
?>
</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' ); ?>
</label>
<p style="font-style: italic;"><?php esc_html_e( 'If enabled, Google can display a search box with your Search results. ', 'wp-schema-pro' ); ?></p>
</td>
</tr>
<tr style="display: none;">
<th class="tooltip-with-image-wrapper" id ="">
<?php esc_html_e( 'Enable Breadcrumbs', 'wp-schema-pro' ); ?>
<?php
$message = __( 'If enabled, Google can add breadcrumbs to your websites and pages search results.', 'wp-schema-pro' );
$message .= '<br /><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' ); ?>
</label>
<p style="font-style: italic;"><?php esc_html_e( 'If enabled, Google can add breadcrumbs to your websites and pages search results. ', 'wp-schema-pro' ); ?></p>
</td>
</tr>
<tr>
<th colspan="2" id ="">
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
</form>
</div>
</div>
<?php
break;
default:
break;
}
?>
</div>
<div class="postbox-container" id="postbox-container-1">
<?php
if ( is_multisite() ) {
$settings = get_site_option( 'wp-schema-pro-branding-settings' );
} else {
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
}
$sp_hide_label = isset( $settings['sp_hide_label'] ) ? $settings['sp_hide_label'] : 'disabled';
?>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Setup Wizard', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<div>
<?php
$sp_name = isset( $settings['sp_plugin_name'] ) ? $settings['sp_plugin_name'] : '';
if ( '' !== $sp_name ) {
/* translators: %s: search term */
$brand_name = sprintf( __( 'Need help configure %s step by step?', 'wp-schema-pro' ), $sp_name );
?>
<p><?php echo esc_html( $brand_name ); ?></p>
<?php
} else {
?>
<p>
<?php
esc_html_e( 'Not sure where to start? Check out our video on ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://www.youtube.com/watch?v=xOiMA0am9QY" target="_blank">Initial Setup Wizard first.</a>', 'wp-schema-pro' )
);
?>
</p>
<?php } ?>
<a href="<?php echo esc_url( admin_url( 'index.php?page=aiosrs-pro-setup-wizard' ) ); ?>" class="button button-large button-primary"><?php esc_html_e( 'Start Setup Wizard', 'wp-schema-pro' ); ?></a>
</div>
</div>
</div>
</div>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Regenerate Schema', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<p>
<?php
if ( ( '1' === $sp_hide_label ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
esc_html_e( 'Having issues with your schema? Try regenerating the code on all your posts/pages.', 'wp-schema-pro' );
} else {
esc_html_e( 'Having issues with your schema? Try regenerating the code on all your posts/pages. ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://wpschema.com/docs/regenerate-schema/" target="_blank">Learn More</a>', 'wp-schema-pro' )
);
}
?>
</p>
<div id="wpsp-regenerate-notice" class="notice inline notice-success" style="display: none">
<p> <?php esc_html_e( 'Schema Regenerated Successfully.', 'wp-schema-pro' ); ?> </p>
</div>
<div style="display: inline-block">
<input
type="button"
id="wpsp-regenerate-schema"
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
class="button button-primary"
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
<span class="spinner" ></span>
</div>
</div>
</div>
</div>
<?php if ( 'disabled' === $sp_hide_label ) { ?>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Knowledge Base', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<p>
<?php
esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'wp-schema-pro' );
?>
</p>
<a href="https://wpschema.com/docs/" target="_blank" class="button button-large button-primary"><?php esc_html_e( 'Visit Knowledge Base', 'wp-schema-pro' ); ?></a>
</div>
</div>
</div>
<?php } ?>
<?php
if ( bsf_display_rollback_version_form( 'wp-schema-pro' ) ) {
?>
<div id="side-sortables" style="">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Rollback Version', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<?php
$product_id = 'wp-schema-pro';
bsf_get_version_rollback_form( $product_id );
?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>

View File

@@ -1,318 +0,0 @@
<?php
/**
* Schema Pro Admin Init
*
* @package Schema Pro
*/
$blocks = BSF_SP_Admin_Helper::get_block_options();
$setting_url = self::get_page_url( 'wpsp-advanced-settings' );
$settings = BSF_AIOSRS_Pro_Helper::$settings['aiosrs-pro-settings'];
// Get list of current General entries.
$entries = self::get_admin_menu_positions();
$select_box = '<select name="aiosrs-pro-settings[menu-position]" >' . "\n";
foreach ( $entries as $entry_page => $entry ) {
$select_box .= '<option ' . selected( $entry_page, $settings['menu-position'], false ) . ' value="' . $entry_page . '">' . $entry . "</option>\n";
}
$select_box .= "</select>\n";
$wpsp_advanced_settings = self::get_page_url( 'wpsp-advanced-settings' );
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;
}
$current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : 'general';
?>
<div class="wrap bsf-aiosrs-pro clear">
<div id="poststuff">
<div id="post-body" class="columns-2">
<div id="post-body-content">
<!-- Plugin Settings -->
<div class="postbox wp-schema-pro-advanced-settings" >
<h2 class="hndle">
<span><?php esc_html_e( 'Plugin Settings', 'wp-schema-pro' ); ?></span>
</h2>
<div class="inside">
<?php
$brand_adv = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
?>
<p><?php esc_html_e( 'Configure your Schema Pro plugins advanced options.', 'wp-schema-pro' ); ?></p>
<form method="post" action="options.php">
<?php settings_fields( 'aiosrs-pro-settings-group' ); ?>
<?php do_settings_sections( 'aiosrs-pro-settings-group' ); ?>
<table class="form-table">
<tr>
<th scope="row">
<?php esc_html_e( 'Enable “Test Schema” Link in Toolbar', 'wp-schema-pro' ); ?>
<?php
if ( ( '1' === $brand_adv['sp_hide_label'] ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
$message = __( 'This allows you to test schema on page/post directly from the toolbar with a click. Enable the option to display the “Test Schema” link in the toolbar.', 'wp-schema-pro' );
} else {
$message = __( 'This allows you to test schema on page/post directly from the toolbar with a click. Enable the option to display the “Test Schema” link in the toolbar.', 'wp-schema-pro' );
$message .= ' <a href="https://wpschema.com/docs/how-to-test-schema-snippet/" target="_blank" rel="noopener">' . __( 'Learn more.', 'wp-schema-pro' ) . '</a>';
}
self::get_tooltip( $message );
?>
</th>
<td>
<select id="aiosrs-pro-settings-quick-test" name="aiosrs-pro-settings[quick-test]" >
<option <?php selected( 1, $settings['quick-test'] ); ?> value="1"><?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?></option>
<option <?php selected( 'disabled', $settings['quick-test'] ); ?> value="disabled"><?php esc_html_e( 'No', 'wp-schema-pro' ); ?></option>
</select>
</td>
</tr>
<tr>
<th scope="row">
<?php
if ( '' !== $brand_adv['sp_plugin_name'] ) {
/* translators: %s: search term */
$brand_name = sprintf( __( 'Display %s Menu Under', 'wp-schema-pro' ), $brand_adv['sp_plugin_name'] );
?>
<?php
echo esc_html( $brand_name );
} else {
esc_html_e( 'Display Schema Pro Menu Under', 'wp-schema-pro' );
}
?>
<?php
if ( ( '1' === $brand_adv['sp_hide_label'] ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
$message = __( 'Decide where you wish to see the Schema Pro menu on your WordPress dashboard.', 'wp-schema-pro' );
} else {
$message = __( 'Decide where you wish to see the Schema Pro menu on your WordPress dashboard.', 'wp-schema-pro' );
$message .= ' <a href="https://wpschema.com/docs/advanced-settings-schema-pro/?utm_source=wp-dashboard&utm_medium=schema-pro-tooltips#admin-menu" target="_blank" rel="noopener">' . __( 'Learn more.', 'wp-schema-pro' ) . '</a>';
}
self::get_tooltip( $message );
?>
</th>
<td><?php echo $select_box; // PHPCS:ignore: WordPress.Security.EscapeOutput.OutputNotEscaped ?></td>
</tr>
<tr>
<th scope="row">
<?php esc_html_e( 'Add Schema Code In', 'wp-schema-pro' ); ?>
<?php
if ( ( '1' === $brand_adv['sp_hide_label'] ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
$message = __( 'Select where you wish to add the schema code.', 'wp-schema-pro' );
} else {
$message = __( 'Select where you wish to add the schema code.', 'wp-schema-pro' );
$message .= ' <a href="https://wpschema.com/docs/advanced-settings-schema-pro/?utm_source=wp-dashboard&utm_medium=schema-pro-tooltips#schema-location" target="_blank" rel="noopener">' . __( 'Learn more.', 'wp-schema-pro' ) . '</a>';
}
self::get_tooltip( $message );
?>
</th>
<td>
<select id="aiosrs-pro-settings-schema-location" name="aiosrs-pro-settings[schema-location]" >
<option <?php selected( 'head', $settings['schema-location'] ); ?> value="head"><?php esc_html_e( 'Head', 'wp-schema-pro' ); ?></option>
<option <?php selected( 'footer', $settings['schema-location'] ); ?> value="footer"><?php esc_html_e( 'Footer', 'wp-schema-pro' ); ?></option>
</select>
</td>
</tr>
<tr>
<th scope="row">
<?php esc_html_e( 'Add Default Image', 'wp-schema-pro' ); ?>
<?php
$message = __( 'Specify a default image to be a fallback for missing Featured Images.', 'wp-schema-pro' );
self::get_tooltip( $message );
?>
</th>
<td>
<div class="custom-field-wrapper site-logo-custom-wrap">
<input type="hidden" class="single-image-field" name="aiosrs-pro-settings[default_image]" value= "<?php echo esc_attr( $settings['default_image'] ); ?>" />
<?php
if ( ! empty( $settings['default_image'] ) ) {
$image_url = wp_get_attachment_url( $settings['default_image'] );
}
?>
<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 endif; ?>
</div>
</div>
</td>
</tr>
<tr>
<th class="tooltip-with-image-wrapper">
<?php esc_html_e( 'Skip Rendering Invalid Schema', 'wp-schema-pro' ); ?>
<?php
if ( ( '1' === $brand_adv['sp_hide_label'] ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
$message = __( 'If schema on posts/pages have empty required(*) fields, it may render invalid schema. Enable this option to skip rendering these invalid schema.', 'wp-schema-pro' );
} else {
$message = __( 'If schema on posts/pages have empty required(*) fields, it may render invalid schema. Enable this option to skip rendering these invalid schema.', 'wp-schema-pro' );
$message .= ' <a href="https://wpschema.com/docs/skip-rendering-invalid-schema/" target="_blank" rel="noopener">' . __( 'Learn more.', 'wp-schema-pro' ) . '</a>';
}
self::get_tooltip( $message );
?>
</th>
<td>
<label>
<input type="hidden" name="aiosrs-pro-settings[schema-validation]" value="disabled" />
<input type="checkbox" name="aiosrs-pro-settings[schema-validation]" <?php checked( '1', $settings['schema-validation'] ); ?> value="1" /> <?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?>
</label>
</td>
</tr>
<?php
$original = get_current_blog_id();
if ( 1 === $original ) {
?>
<tr>
<th class="tooltip-with-image-wrapper">
<?php esc_html_e( 'Delete Data on Uninstall?', 'wp-schema-pro' ); ?>
<?php
if ( ( '1' === $brand_adv['sp_hide_label'] ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
$message = __( 'Check this box if you would like Schema to completely remove all of its data when uninstalling via Plugins > Deactivate > Delete.', 'wp-schema-pro' );
} else {
$message = __( 'Check this box if you would like Schema to completely remove all of its data when uninstalling via Plugins > Deactivate > Delete.', 'wp-schema-pro' );
$message .= ' <a href="https://wpschema.com/docs/delete-schema-data/" target="_blank" rel="noopener">' . __( 'Learn more.', 'wp-schema-pro' ) . '</a>';
}
BSF_AIOSRS_Pro_Admin::get_tooltip( $message );
?>
</th>
<td>
<label>
<input type="hidden" name="aiosrs-pro-settings[delete-schema-data]" value="disabled" />
<input type="checkbox" name="aiosrs-pro-settings[delete-schema-data]" <?php checked( '1', $settings['delete-schema-data'] ); ?> value="1" /> <?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?>
</label>
</td>
</tr><?php } ?>
<?php if ( WP_Schema_Pro_Yoast_Compatibility::$activated ) { ?>
<tr class="wp-schema-pro-yoast-compatibilty-wrap">
<th>
<?php esc_html_e( 'Disable Duplicate Features that Yoast SEO Offers?', 'wp-schema-pro' ); ?>
<?php
$message = __( 'When disabled, Schema Pro does not output duplicate markup that Yoast SEO Offers.', 'wp-schema-pro' );
$message .= '<br/><br/>' . __( 'These are the features that will be disabled:', 'wp-schema-pro' ) . '<br/>';
$message .= '<ol>';
$message .= '<li>' . __( 'Organization/Person', 'wp-schema-pro' ) . '</li>';
$message .= '<li>' . __( 'Social Profiles', 'wp-schema-pro' ) . '</li>';
$message .= '<li>' . __( 'Breadcrumb', 'wp-schema-pro' ) . '</li>';
$message .= '<li>' . __( 'Sitelink Search Box', 'wp-schema-pro' ) . '</li>';
$message .= '</ol>';
self::get_tooltip( $message );
?>
</th>
<td>
<label>
<input type="hidden" name="aiosrs-pro-settings[yoast-compatibility]" value="disabled" />
<input type="checkbox" name="aiosrs-pro-settings[yoast-compatibility]" id="aiosrs-pro-settings-yoast-compatibility" <?php checked( '1', $settings ['yoast-compatibility'] ); ?> value="1" /> <?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?>
</label>
</td>
</tr>
<?php } else { ?>
<input type="hidden" name="aiosrs-pro-settings[yoast-compatibility]" value="<?php echo esc_attr( $settings ['yoast-compatibility'] ); ?>" />
<?php } ?>
<tr>
<th colspan="2">
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
</form>
</div>
</div>
</div>
<div class="postbox-container" id="postbox-container-1">
<?php
if ( is_multisite() ) {
$settings = get_site_option( 'wp-schema-pro-branding-settings' );
} else {
$settings = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings'];
}
$sp_hide_label = isset( $settings['sp_hide_label'] ) ? $settings['sp_hide_label'] : 'disabled';
?>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Setup Wizard', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<div>
<?php
$sp_name = isset( $settings['sp_plugin_name'] ) ? $settings['sp_plugin_name'] : '';
if ( '' !== $sp_name ) {
/* translators: %s: search term */
$brand_name = sprintf( __( 'Need help configure %s step by step?', 'wp-schema-pro' ), $sp_name );
?>
<p><?php echo esc_html( $brand_name ); ?></p>
<?php
} else {
?>
<p>
<?php
esc_html_e( 'Not sure where to start? Check out our video on ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://www.youtube.com/watch?v=xOiMA0am9QY" target="_blank">Initial Setup Wizard first.</a>', 'wp-schema-pro' )
);
?>
</p><?php } ?>
<a href="<?php echo esc_url( admin_url( 'index.php?page=aiosrs-pro-setup-wizard' ) ); ?>" class="button button-large button-primary"><?php esc_html_e( 'Start Setup Wizard', 'wp-schema-pro' ); ?></a>
</div>
</div>
</div>
</div>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Regenerate Schema', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<p>
<?php
if ( ( '1' === $sp_hide_label ) || true === ( defined( 'WP_SP_WL' ) && WP_SP_WL ) ) {
esc_html_e( 'Having issues with your schema? Try regenerating the code on all your posts/pages. ', 'wp-schema-pro' );
} else {
esc_html_e( 'Having issues with your schema? Try regenerating the code on all your posts/pages. ', 'wp-schema-pro' );
echo sprintf(
wp_kses_post( '<a href="https://wpschema.com/docs/regenerate-schema/" target="_blank">Learn More</a>', 'wp-schema-pro' )
);
}
?>
</p>
<div id="wpsp-regenerate-notice" class="notice inline notice-success" style="display: none">
<p> <?php esc_html_e( 'Schema Regenerated Successfully.', 'wp-schema-pro' ); ?> </p>
</div>
<div style="display: inline-block">
<input
type="button"
id="wpsp-regenerate-schema"
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
class="button button-primary"
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
<span class="spinner" ></span>
</div>
</div>
</div>
</div>
<?php if ( 'disabled' === $sp_hide_label ) { ?>
<div id="side-sortables" style="min-height: 0px;">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Knowledge Base', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<p>
<?php
esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'wp-schema-pro' );
?>
</p>
<a href="https://wpschema.com/docs/" target="_blank" class="button button-large button-primary"><?php esc_html_e( 'Visit Knowledge Base', 'wp-schema-pro' ); ?></a>
</div>
</div>
</div>
<?php } ?>
<?php
if ( bsf_display_rollback_version_form( 'wp-schema-pro' ) ) {
?>
<div id="side-sortables" style="">
<div class="postbox">
<h2 class="hndle"><span><?php esc_html_e( 'Rollback Version', 'wp-schema-pro' ); ?></span></h2>
<div class="inside">
<?php
$product_id = 'wp-schema-pro';
bsf_get_version_rollback_form( $product_id );
?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>