rebase from live enviornment
This commit is contained in:
@@ -81,7 +81,7 @@ $setting_url = self::get_page_url( 'branding-settings' );
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" colspan="2">
|
||||
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -149,7 +149,7 @@ $setting_url = self::get_page_url( 'branding-settings' );
|
||||
id="wpsp-regenerate-schema"
|
||||
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
|
||||
class="button button-primary"
|
||||
value="<?php esc_html_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
|
||||
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
|
||||
<span class="spinner" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -124,7 +124,7 @@ $setting_url = self::get_page_url( 'breadcrumb-settings' );
|
||||
|
||||
<tr>
|
||||
<th colspan="2" scope="row">
|
||||
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -198,7 +198,7 @@ $setting_url = self::get_page_url( 'breadcrumb-settings' );
|
||||
id="wpsp-regenerate-schema"
|
||||
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
|
||||
class="button button-primary"
|
||||
value="<?php esc_html_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
|
||||
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
|
||||
<span class="spinner" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
<?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>
|
||||
<?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>
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
* @package Schema Pro
|
||||
*/
|
||||
|
||||
if ( isset( $_REQUEST['wp_schema_pro_admin_page_nonce'] ) && ! wp_verify_nonce( $_REQUEST['wp_schema_pro_admin_page_nonce'], 'wp_schema_pro_admin_page' ) ) {
|
||||
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'] ) ? $_GET['section'] : 'general';
|
||||
$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> |
|
||||
@@ -127,7 +127,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
|
||||
foreach ( $option_list as $key => $value ) {
|
||||
if ( '-- None --' !== $value ) {
|
||||
?>
|
||||
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $settings['organization'], $key ); ?>><?php echo esc_attr( $value ); ?></option>
|
||||
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $settings['organization'], $key ); ?>><?php echo esc_html( $value ); ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -151,7 +151,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -252,7 +252,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -315,7 +315,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
|
||||
<td>
|
||||
<?php
|
||||
if ( empty( $contact_settings['contact-page-id'] ) && ! empty( $contact_settings['url'] ) ) {
|
||||
$contact_settings['contact-page-id'] = url_to_postid( $contact_settings['url'] );
|
||||
$contact_settings['contact-page-id'] = wpcom_vip_url_to_postid( $contact_settings['url'] );
|
||||
}
|
||||
?>
|
||||
<select class = ' wp-select2 wpsp-setup-configuration-settings' name="wp-schema-pro-corporate-contact[contact-page-id]">
|
||||
@@ -387,7 +387,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
|
||||
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -514,7 +514,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" id ="">
|
||||
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -594,7 +594,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
|
||||
id="wpsp-regenerate-schema"
|
||||
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
|
||||
class="button button-primary"
|
||||
value="<?php esc_html_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
|
||||
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
|
||||
<span class="spinner" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -18,10 +18,10 @@ foreach ( $entries as $entry_page => $entry ) {
|
||||
$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( $_REQUEST['wp_schema_pro_admin_page_nonce'], 'wp_schema_pro_admin_page' ) ) {
|
||||
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'] ) ? $_GET['section'] : 'general';
|
||||
$current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : 'general';
|
||||
?>
|
||||
<div class="wrap bsf-aiosrs-pro clear">
|
||||
<div id="poststuff">
|
||||
@@ -57,8 +57,8 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'general';
|
||||
</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_attr_e( 'Yes', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( 'disabled', $settings['quick-test'] ); ?> value="disabled"><?php esc_attr_e( 'No', 'wp-schema-pro' ); ?></option>
|
||||
<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>
|
||||
@@ -206,7 +206,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'general';
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -276,7 +276,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'general';
|
||||
id="wpsp-regenerate-schema"
|
||||
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
|
||||
class="button button-primary"
|
||||
value="<?php esc_html_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
|
||||
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
|
||||
<span class="spinner" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user