Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-revie.../admin/options
File: review.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Review options tab
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Review
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
$options = get_option( 'wp_review_options' );
[7] Fix | Delete
[8] Fix | Delete
$default_options = array(
[9] Fix | Delete
'colors' => array(
[10] Fix | Delete
'color' => '',
[11] Fix | Delete
'inactive_color' => '',
[12] Fix | Delete
'fontcolor' => '',
[13] Fix | Delete
'bgcolor1' => '',
[14] Fix | Delete
'bgcolor2' => '',
[15] Fix | Delete
'bordercolor' => '',
[16] Fix | Delete
),
[17] Fix | Delete
'default_features' => array(),
[18] Fix | Delete
'default_link_texts' => array(),
[19] Fix | Delete
'default_link_urls' => array(),
[20] Fix | Delete
'default_schema_type' => 'Thing',
[21] Fix | Delete
'default_user_review_type' => WP_REVIEW_REVIEW_DISABLED,
[22] Fix | Delete
'image_sizes' => array(),
[23] Fix | Delete
);
[24] Fix | Delete
// Set defaults.
[25] Fix | Delete
if ( empty( $options ) ) {
[26] Fix | Delete
$options = $default_options;
[27] Fix | Delete
update_option( 'wp_review_options', $options );
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
if ( empty( $options['image_sizes'] ) ) {
[31] Fix | Delete
$options['image_sizes'] = array();
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
$opt_name = 'wp_review_options_' . wp_get_theme();
[35] Fix | Delete
$options_updated = get_option( $opt_name );
[36] Fix | Delete
$suggest_theme_defaults = true;
[37] Fix | Delete
if ( ! empty( $_GET['wp-review-theme-defaults'] ) && empty( $_GET['settings-updated'] ) ) { // WPCS: csrf ok.
[38] Fix | Delete
wp_review_theme_defaults( $options_updated, true );
[39] Fix | Delete
$options = get_option( 'wp_review_options' );
[40] Fix | Delete
$suggest_theme_defaults = false;
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
// Test to see if we need to sugges setting theme defaults.
[44] Fix | Delete
if ( empty( $options_updated ) ) {
[45] Fix | Delete
$options_updated = array();
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
$opts_tmp = array_merge( $options, $options_updated );
[49] Fix | Delete
if ( $opts_tmp === $options ) {
[50] Fix | Delete
$suggest_theme_defaults = false;
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
// Migrate.
[54] Fix | Delete
global $wpdb;
[55] Fix | Delete
$current_blog_id = get_current_blog_id();
[56] Fix | Delete
$total_rows = 0;
[57] Fix | Delete
$rows_left = 0;
[58] Fix | Delete
$migrated_rows = get_option( 'wp_review_migrated_rows', 0 );
[59] Fix | Delete
$has_migrated = get_option( 'wp_review_has_migrated', false );
[60] Fix | Delete
if ( ! $has_migrated && $wpdb->get_var( "SHOW TABLES LIKE '{$wpdb->base_prefix}mts_wp_reviews'" ) === "{$wpdb->base_prefix}mts_wp_reviews" ) {
[61] Fix | Delete
// Table exists and not migrated (fully) yet.
[62] Fix | Delete
$total_rows = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->base_prefix}mts_wp_reviews WHERE blog_id = {$current_blog_id}" ); // WPCS: unprepared SQL ok.
[63] Fix | Delete
$rows_left = $total_rows - $migrated_rows;
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
$comment_form_integration = ( ! empty( $options['comment_form_integration'] ) ? $options['comment_form_integration'] : 'replace' );
[67] Fix | Delete
if ( 'replace' !== $comment_form_integration ) {
[68] Fix | Delete
$comment_form_integration = 'extend';
[69] Fix | Delete
}
[70] Fix | Delete
[71] Fix | Delete
$comments_template = ( ! empty( $options['comments_template'] ) ? $options['comments_template'] : 'theme' );
[72] Fix | Delete
if ( 'theme' !== $comments_template ) {
[73] Fix | Delete
$comments_template = 'plugin';
[74] Fix | Delete
}
[75] Fix | Delete
[76] Fix | Delete
$default_colors = wp_review_get_default_colors();
[77] Fix | Delete
$default_location = wp_review_get_default_location();
[78] Fix | Delete
$default_criteria = wp_review_get_default_criteria();
[79] Fix | Delete
[80] Fix | Delete
$default_items = array();
[81] Fix | Delete
foreach ( $default_criteria as $item ) {
[82] Fix | Delete
$default_items[] = array(
[83] Fix | Delete
'wp_review_item_title' => $item,
[84] Fix | Delete
'wp_review_item_star' => '',
[85] Fix | Delete
);
[86] Fix | Delete
}
[87] Fix | Delete
$default_schema = wp_review_option( 'default_schema_type' ) ? wp_review_option( 'default_schema_type' ) : $default_options['default_schema_type'];
[88] Fix | Delete
$default_user_review_type = empty( $options['default_user_review_type'] ) ? WP_REVIEW_REVIEW_DISABLED : $options['default_user_review_type'];
[89] Fix | Delete
[90] Fix | Delete
$options['colors'] = apply_filters( 'wp_review_colors', $options['colors'], 0 );
[91] Fix | Delete
if ( ! isset( $options['default'] ) ) {
[92] Fix | Delete
$options['default'] = array();
[93] Fix | Delete
}
[94] Fix | Delete
/* Retrieve an existing value from the database. */
[95] Fix | Delete
$items = ! empty( $options['default_features'] ) ? $options['default_features'] : '';
[96] Fix | Delete
$link_texts = ! empty( $options['default_link_text'] ) ? $options['default_link_text'] : array();
[97] Fix | Delete
$link_urls = ! empty( $options['default_link_url'] ) ? $options['default_link_url'] : array();
[98] Fix | Delete
$location = wp_review_option( 'review_location' );
[99] Fix | Delete
$color = ! empty( $options['colors']['color'] ) ? $options['colors']['color'] : '';
[100] Fix | Delete
$inactive_color = ! empty( $options['colors']['inactive_color'] ) ? $options['colors']['inactive_color'] : '';
[101] Fix | Delete
$fontcolor = ! empty( $options['colors']['fontcolor'] ) ? $options['colors']['fontcolor'] : '';
[102] Fix | Delete
$bgcolor1 = ! empty( $options['colors']['bgcolor1'] ) ? $options['colors']['bgcolor1'] : '';
[103] Fix | Delete
$bgcolor2 = ! empty( $options['colors']['bgcolor2'] ) ? $options['colors']['bgcolor2'] : '';
[104] Fix | Delete
$bordercolor = ! empty( $options['colors']['bordercolor'] ) ? $options['colors']['bordercolor'] : '';
[105] Fix | Delete
[106] Fix | Delete
$force_user_ratings = wp_review_option( 'force_user_ratings' );
[107] Fix | Delete
[108] Fix | Delete
$rating_icon = wp_review_option( 'rating_icon', apply_filters( 'wp_review_default_rating_icon', 'fa fa-star' ) );
[109] Fix | Delete
$rating_image = wp_review_option( 'rating_image' );
[110] Fix | Delete
[111] Fix | Delete
$review_templates = wp_review_get_box_templates();
[112] Fix | Delete
$box_template = wp_review_option( 'box_template', 'default' );
[113] Fix | Delete
$box_template_img = ! empty( $review_templates[ $box_template ] ) ? $review_templates[ $box_template ]['image'] : WP_REVIEW_ASSETS . 'images/largethumb.png';
[114] Fix | Delete
[115] Fix | Delete
$review_types = wp_review_get_rating_types();
[116] Fix | Delete
$review_type = wp_review_option( 'review_type', 'none' );
[117] Fix | Delete
[118] Fix | Delete
if ( '' === $items ) {
[119] Fix | Delete
$items = $default_items;
[120] Fix | Delete
}
[121] Fix | Delete
if ( '' === $color ) {
[122] Fix | Delete
$color = $default_colors['color'];
[123] Fix | Delete
}
[124] Fix | Delete
if ( '' === $inactive_color ) {
[125] Fix | Delete
$inactive_color = $default_colors['inactive_color'];
[126] Fix | Delete
}
[127] Fix | Delete
if ( '' === $location ) {
[128] Fix | Delete
$location = $default_location;
[129] Fix | Delete
}
[130] Fix | Delete
if ( '' === $fontcolor ) {
[131] Fix | Delete
$fontcolor = $default_colors['fontcolor'];
[132] Fix | Delete
}
[133] Fix | Delete
if ( '' === $bgcolor1 ) {
[134] Fix | Delete
$bgcolor1 = $default_colors['bgcolor1'];
[135] Fix | Delete
}
[136] Fix | Delete
if ( '' === $bgcolor2 ) {
[137] Fix | Delete
$bgcolor2 = $default_colors['bgcolor2'];
[138] Fix | Delete
}
[139] Fix | Delete
if ( '' === $bordercolor ) {
[140] Fix | Delete
$bordercolor = $default_colors['bordercolor'];
[141] Fix | Delete
}
[142] Fix | Delete
if ( empty( $width ) ) {
[143] Fix | Delete
$width = 100;
[144] Fix | Delete
}
[145] Fix | Delete
[146] Fix | Delete
$fields = array(
[147] Fix | Delete
'location' => true,
[148] Fix | Delete
'color' => true,
[149] Fix | Delete
'inactive_color' => true,
[150] Fix | Delete
'fontcolor' => true,
[151] Fix | Delete
'bgcolor1' => true,
[152] Fix | Delete
'bgcolor2' => true,
[153] Fix | Delete
'bordercolor' => true,
[154] Fix | Delete
'custom_colors' => true,
[155] Fix | Delete
'custom_location' => true,
[156] Fix | Delete
);
[157] Fix | Delete
[158] Fix | Delete
$displayed_fields = apply_filters( 'wp_review_metabox_item_fields', $fields );
[159] Fix | Delete
[160] Fix | Delete
$available_types = apply_filters(
[161] Fix | Delete
'wp_review_metabox_types',
[162] Fix | Delete
array(
[163] Fix | Delete
'star' => __( 'Star', 'wp-review' ),
[164] Fix | Delete
'point' => __( 'Point', 'wp-review' ),
[165] Fix | Delete
'percentage' => __( 'Percentage', 'wp-review' ),
[166] Fix | Delete
'circle' => __( 'Circle', 'wp-review' ),
[167] Fix | Delete
'thumbs' => __( 'Thumbs', 'wp-review' ),
[168] Fix | Delete
)
[169] Fix | Delete
);
[170] Fix | Delete
[171] Fix | Delete
$form_field = new WP_Review_Form_Field();
[172] Fix | Delete
?>
[173] Fix | Delete
<div data-nav-tabs>
[174] Fix | Delete
<div class="nav-tab-wrapper">
[175] Fix | Delete
<a href="#review-general" class="nav-tab nav-tab-active"><?php esc_html_e( 'General', 'wp-review' ); ?></a>
[176] Fix | Delete
<a href="#review-styling" class="nav-tab"><?php esc_html_e( 'Styling', 'wp-review' ); ?></a>
[177] Fix | Delete
<a href="#review-defaults" class="nav-tab"><?php esc_html_e( 'Defaults', 'wp-review' ); ?></a>
[178] Fix | Delete
<a href="#review-embed" class="nav-tab"><?php esc_html_e( 'Embed', 'wp-review' ); ?></a>
[179] Fix | Delete
<?php if ( $rows_left ) : ?>
[180] Fix | Delete
<a href="#review-migrate" class="nav-tab"><?php esc_html_e( 'Migrate Ratings', 'wp-review' ); ?></a>
[181] Fix | Delete
<?php endif; ?>
[182] Fix | Delete
</div>
[183] Fix | Delete
[184] Fix | Delete
<div id="review-general" class="settings-tab-general tab-content">
[185] Fix | Delete
<h3><?php esc_html_e( 'General Settings', 'wp-review' ); ?></h3>
[186] Fix | Delete
<?php
[187] Fix | Delete
$location = apply_filters( 'wp_review_location', $location, 0 );
[188] Fix | Delete
if ( has_filter( 'wp_review_location' ) ) {
[189] Fix | Delete
echo '<p class="wp-review-filter-msg"><div class="dashicons dashicons-info"></div>' . esc_html__( 'There is a filter set for the review location that may modify the options below.', 'wp-review' ) . '</p>';
[190] Fix | Delete
}
[191] Fix | Delete
[192] Fix | Delete
if ( $suggest_theme_defaults ) {
[193] Fix | Delete
?>
[194] Fix | Delete
<div class="wp-review-theme-defaults-msg updated settings-error">
[195] Fix | Delete
<p class="wp-review-field">
[196] Fix | Delete
<?php esc_html_e( 'The current theme provides default settings for the plugin.', 'wp-review' ); ?><br />
[197] Fix | Delete
</p>
[198] Fix | Delete
<a href="<?php echo admin_url( 'options-general.php?page=wp-review/admin/options.php&wp-review-theme-defaults=1' ); // WPCS: xss ok. ?>" class="button button-primary"><?php esc_html_e( 'Set to theme defaults', 'wp-review' ); ?></a>
[199] Fix | Delete
<a href="#" class="dashicons dashicons-no-alt close-notice"></a>
[200] Fix | Delete
</div>
[201] Fix | Delete
<?php } ?>
[202] Fix | Delete
[203] Fix | Delete
<div class="wp-review-field">
[204] Fix | Delete
<div class="wp-review-field-label">
[205] Fix | Delete
<label><?php esc_html_e( 'Restrict rating to registered users only', 'wp-review' ); ?></label>
[206] Fix | Delete
</div>
[207] Fix | Delete
[208] Fix | Delete
<div class="wp-review-field-option">
[209] Fix | Delete
<?php
[210] Fix | Delete
$form_field->render_switch(
[211] Fix | Delete
array(
[212] Fix | Delete
'id' => 'wp_review_registered_only',
[213] Fix | Delete
'name' => 'wp_review_options[registered_only]',
[214] Fix | Delete
'value' => ! empty( $options['registered_only'] ),
[215] Fix | Delete
)
[216] Fix | Delete
);
[217] Fix | Delete
?>
[218] Fix | Delete
</div>
[219] Fix | Delete
</div>
[220] Fix | Delete
[221] Fix | Delete
<div class="wp-review-field">
[222] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[223] Fix | Delete
<label><?php esc_html_e( 'Add total rating to thumbnails', 'wp-review' ); ?></label>
[224] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[225] Fix | Delete
</div>
[226] Fix | Delete
[227] Fix | Delete
<div class="wp-review-field-option">
[228] Fix | Delete
<?php
[229] Fix | Delete
$form_field->render_switch(
[230] Fix | Delete
array(
[231] Fix | Delete
'id' => 'wp_review_show_on_thumbnails',
[232] Fix | Delete
'name' => 'wp_review_options[show_on_thumbnails]',
[233] Fix | Delete
'disabled' => true,
[234] Fix | Delete
)
[235] Fix | Delete
);
[236] Fix | Delete
?>
[237] Fix | Delete
</div>
[238] Fix | Delete
</div>
[239] Fix | Delete
[240] Fix | Delete
<div class="wp-review-field">
[241] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[242] Fix | Delete
<label><?php esc_html_e( 'Enable User rating in old posts', 'wp-review' ); ?></label>
[243] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[244] Fix | Delete
</div>
[245] Fix | Delete
[246] Fix | Delete
<div class="wp-review-field-option">
[247] Fix | Delete
<?php
[248] Fix | Delete
$form_field->render_switch(
[249] Fix | Delete
array(
[250] Fix | Delete
'id' => 'wp_review_global_user_rating',
[251] Fix | Delete
'name' => 'wp_review_options[global_user_rating]',
[252] Fix | Delete
'disabled' => true,
[253] Fix | Delete
)
[254] Fix | Delete
);
[255] Fix | Delete
?>
[256] Fix | Delete
</div>
[257] Fix | Delete
</div>
[258] Fix | Delete
[259] Fix | Delete
<?php if ( class_exists( 'WooCommerce' ) ) : ?>
[260] Fix | Delete
<div class="wp-review-field">
[261] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[262] Fix | Delete
<label><?php esc_html_e( 'Replace WooCommerce rating', 'wp-review' ); ?></label>
[263] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[264] Fix | Delete
</div>
[265] Fix | Delete
[266] Fix | Delete
<div class="wp-review-field-option">
[267] Fix | Delete
<?php
[268] Fix | Delete
$form_field->render_switch(
[269] Fix | Delete
array(
[270] Fix | Delete
'id' => 'wp_review_replace_wc_rating',
[271] Fix | Delete
'name' => 'wp_review_options[replace_wc_rating]',
[272] Fix | Delete
'disabled' => true,
[273] Fix | Delete
)
[274] Fix | Delete
);
[275] Fix | Delete
?>
[276] Fix | Delete
</div>
[277] Fix | Delete
</div>
[278] Fix | Delete
<?php endif; ?>
[279] Fix | Delete
[280] Fix | Delete
<div class="wp-review-field">
[281] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[282] Fix | Delete
<label><?php esc_html_e( 'Disable Map Script in the Backend', 'wp-review' ); ?></label>
[283] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[284] Fix | Delete
</div>
[285] Fix | Delete
[286] Fix | Delete
<div class="wp-review-field-option">
[287] Fix | Delete
<?php
[288] Fix | Delete
$form_field->render_switch(
[289] Fix | Delete
array(
[290] Fix | Delete
'id' => 'wp_review_dequeue_map_backend',
[291] Fix | Delete
'name' => 'wp_review_options[dequeue_map_backend]',
[292] Fix | Delete
'disabled' => true,
[293] Fix | Delete
)
[294] Fix | Delete
);
[295] Fix | Delete
?>
[296] Fix | Delete
</div>
[297] Fix | Delete
[298] Fix | Delete
<p class="description" style="margin-top: 10px;"><?php esc_html_e( 'If map script is conflicting with other plugin in the single post editor, please enable this option.', 'wp-review' ); ?></p>
[299] Fix | Delete
</div>
[300] Fix | Delete
[301] Fix | Delete
<div class="wp-review-field">
[302] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[303] Fix | Delete
<label><?php esc_html_e( 'Comments template', 'wp-review' ); ?></label>
[304] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[305] Fix | Delete
</div>
[306] Fix | Delete
[307] Fix | Delete
<div class="wp-review-field-option">
[308] Fix | Delete
<div class="wpr-flex">
[309] Fix | Delete
<div class="pr-10 wpr-col-1-2">
[310] Fix | Delete
<label for="wp_review_comments_template_theme">
[311] Fix | Delete
<span class="wp-review-disabled inline-block has-bg">
[312] Fix | Delete
<input name="wp_review_options[comments_template]" id="wp_review_comments_template_theme" type="radio" value="theme" <?php checked( $comments_template, 'theme' ); ?> disabled />
[313] Fix | Delete
<strong><?php esc_html_e( 'Theme', 'wp-review' ); ?></strong>
[314] Fix | Delete
</span>
[315] Fix | Delete
</label>
[316] Fix | Delete
<br>
[317] Fix | Delete
<span class="description"><?php esc_html_e( 'Use theme comments template. Might need customization of comments.php', 'wp-review' ); ?></span>
[318] Fix | Delete
</div>
[319] Fix | Delete
[320] Fix | Delete
<div class="pl-10 wpr-col-1-2">
[321] Fix | Delete
<label for="wp_review_comments_template_plugin">
[322] Fix | Delete
<span class="wp-review-disabled inline-block has-bg">
[323] Fix | Delete
<input name="wp_review_options[comments_template]" id="wp_review_comments_template_plugin" type="radio" value="plugin" <?php checked( $comments_template, 'plugin' ); ?> disabled />
[324] Fix | Delete
<strong><?php esc_html_e( 'WP Review', 'wp-review' ); ?></strong>
[325] Fix | Delete
</span>
[326] Fix | Delete
</label>
[327] Fix | Delete
<br>
[328] Fix | Delete
<span class="description"><?php esc_html_e( 'Use WP Review comments template. Better chances for out of the box integration.', 'wp-review' ); ?></span>
[329] Fix | Delete
</div>
[330] Fix | Delete
</div>
[331] Fix | Delete
</div>
[332] Fix | Delete
</div>
[333] Fix | Delete
[334] Fix | Delete
<div class="wp-review-field">
[335] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[336] Fix | Delete
<label><?php esc_html_e( 'Comment form integration', 'wp-review' ); ?></label>
[337] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[338] Fix | Delete
</div>
[339] Fix | Delete
[340] Fix | Delete
<div class="wp-review-field-option">
[341] Fix | Delete
<div class="wpr-flex">
[342] Fix | Delete
<div class="pr-10 wpr-col-1-2">
[343] Fix | Delete
<label for="wp_review_comment_form_integration_replace">
[344] Fix | Delete
<span class="wp-review-disabled inline-block has-bg">
[345] Fix | Delete
<input name="wp_review_options[comment_form_integration]" id="wp_review_comment_form_integration_replace" type="radio" value="replace" <?php checked( $comment_form_integration, 'replace' ); ?> disabled />
[346] Fix | Delete
<strong><?php esc_html_e( 'Replace', 'wp-review' ); ?></strong>
[347] Fix | Delete
</span>
[348] Fix | Delete
</label>
[349] Fix | Delete
<br>
[350] Fix | Delete
<span class="description"><?php esc_html_e( 'Replace form fields.', 'wp-review' ); ?></span>
[351] Fix | Delete
</div>
[352] Fix | Delete
[353] Fix | Delete
<div class="pl-10 wpr-col-1-2">
[354] Fix | Delete
<label for="wp_review_comment_form_integration_extend">
[355] Fix | Delete
<span class="wp-review-disabled inline-block has-bg">
[356] Fix | Delete
<input name="wp_review_options[comment_form_integration]" id="wp_review_comment_form_integration_extend" type="radio" value="extend" <?php checked( $comment_form_integration, 'extend' ); ?> disabled />
[357] Fix | Delete
<strong><?php esc_html_e( 'Extend', 'wp-review' ); ?></strong>
[358] Fix | Delete
</span>
[359] Fix | Delete
</label>
[360] Fix | Delete
<br>
[361] Fix | Delete
<span class="description"><?php esc_html_e( 'Add new fields without modifying the default fields.', 'wp-review' ); ?></span>
[362] Fix | Delete
</div>
[363] Fix | Delete
</div>
[364] Fix | Delete
</div>
[365] Fix | Delete
</div>
[366] Fix | Delete
[367] Fix | Delete
<div class="wp-review-field">
[368] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[369] Fix | Delete
<label><?php esc_html_e( 'Require a rating when commenting', 'wp-review' ); ?></label>
[370] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[371] Fix | Delete
</div>
[372] Fix | Delete
[373] Fix | Delete
<div class="wp-review-field-option">
[374] Fix | Delete
<?php
[375] Fix | Delete
$form_field->render_switch(
[376] Fix | Delete
array(
[377] Fix | Delete
'id' => 'wp_review_require_rating',
[378] Fix | Delete
'name' => 'wp_review_options[require_rating]',
[379] Fix | Delete
'disabled' => true,
[380] Fix | Delete
)
[381] Fix | Delete
);
[382] Fix | Delete
?>
[383] Fix | Delete
</div>
[384] Fix | Delete
</div>
[385] Fix | Delete
[386] Fix | Delete
<div class="wp-review-field">
[387] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[388] Fix | Delete
<label><?php esc_html_e( 'Allow comment feedback (helpful/unhelpful)', 'wp-review' ); ?></label>
[389] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[390] Fix | Delete
</div>
[391] Fix | Delete
[392] Fix | Delete
<div class="wp-review-field-option">
[393] Fix | Delete
<?php
[394] Fix | Delete
$form_field->render_switch(
[395] Fix | Delete
array(
[396] Fix | Delete
'id' => 'wp_review_allow_comment_feedback',
[397] Fix | Delete
'name' => 'wp_review_options[allow_comment_feedback]',
[398] Fix | Delete
'disabled' => true,
[399] Fix | Delete
)
[400] Fix | Delete
);
[401] Fix | Delete
?>
[402] Fix | Delete
</div>
[403] Fix | Delete
</div>
[404] Fix | Delete
[405] Fix | Delete
<div class="wp-review-field">
[406] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[407] Fix | Delete
<label for="wp_review_record_ratings_by"><?php esc_html_e( 'Record User Ratings', 'wp-review' ); ?></label>
[408] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[409] Fix | Delete
</div>
[410] Fix | Delete
[411] Fix | Delete
<div class="wp-review-field-option">
[412] Fix | Delete
<span class="wp-review-disabled inline-block has-bg">
[413] Fix | Delete
<select name="wp_review_options[record_ratings_by]" id="wp_review_record_ratings_by" disabled>
[414] Fix | Delete
<option value="ip"><?php esc_html_e( 'Based on IP address', 'wp-review' ); ?></option>
[415] Fix | Delete
<option value="cookie"><?php esc_html_e( 'Based on browser cookie', 'wp-review' ); ?></option>
[416] Fix | Delete
</select>
[417] Fix | Delete
</span>
[418] Fix | Delete
</div>
[419] Fix | Delete
</div>
[420] Fix | Delete
[421] Fix | Delete
<?php
[422] Fix | Delete
// phpcs:disable
[423] Fix | Delete
/*<div class="wp-review-field">
[424] Fix | Delete
<div class="wp-review-field-label">
[425] Fix | Delete
<label><?php esc_html_e( 'Show text count with Star ratings', 'wp-review' ); ?></label>
[426] Fix | Delete
</div>
[427] Fix | Delete
[428] Fix | Delete
<div class="wp-review-field-option">
[429] Fix | Delete
<?php
[430] Fix | Delete
$form_field->render_switch( array(
[431] Fix | Delete
'id' => 'wp_review_show_star_rating_count',
[432] Fix | Delete
'name' => 'wp_review_options[show_star_rating_count]',
[433] Fix | Delete
'value' => ! empty( $options['show_star_rating_count'] ),
[434] Fix | Delete
) );
[435] Fix | Delete
?>
[436] Fix | Delete
</div>
[437] Fix | Delete
</div>*/
[438] Fix | Delete
// phpcs:enable
[439] Fix | Delete
?>
[440] Fix | Delete
[441] Fix | Delete
<div class="wp-review-field">
[442] Fix | Delete
<div class="wp-review-field-label">
[443] Fix | Delete
<label><?php esc_html_e( 'Allow multiple reviews per account', 'wp-review' ); ?></label>
[444] Fix | Delete
</div>
[445] Fix | Delete
[446] Fix | Delete
<div class="wp-review-field-option">
[447] Fix | Delete
<?php
[448] Fix | Delete
$form_field->render_switch(
[449] Fix | Delete
array(
[450] Fix | Delete
'id' => 'wp_review_multi_reviews_per_account',
[451] Fix | Delete
'name' => 'wp_review_options[multi_reviews_per_account]',
[452] Fix | Delete
'value' => ! empty( $options['multi_reviews_per_account'] ),
[453] Fix | Delete
)
[454] Fix | Delete
);
[455] Fix | Delete
?>
[456] Fix | Delete
</div>
[457] Fix | Delete
</div>
[458] Fix | Delete
[459] Fix | Delete
<div class="wp-review-field">
[460] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[461] Fix | Delete
<label><?php esc_html_e( 'Include Pros/Cons in comment reviews', 'wp-review' ); ?></label>
[462] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[463] Fix | Delete
</div>
[464] Fix | Delete
[465] Fix | Delete
<div class="wp-review-field-option">
[466] Fix | Delete
<?php
[467] Fix | Delete
$form_field->render_switch(
[468] Fix | Delete
array(
[469] Fix | Delete
'id' => 'wp_review_comment_pros_cons',
[470] Fix | Delete
'name' => 'wp_review_options[comment_pros_cons]',
[471] Fix | Delete
'disabled' => true,
[472] Fix | Delete
)
[473] Fix | Delete
);
[474] Fix | Delete
?>
[475] Fix | Delete
</div>
[476] Fix | Delete
</div>
[477] Fix | Delete
[478] Fix | Delete
<div class="wp-review-field">
[479] Fix | Delete
<div class="wp-review-disabled wp-review-field-label">
[480] Fix | Delete
<label><?php esc_html_e( 'Approve Comment Reviews without Moderation', 'wp-review' ); ?></label>
[481] Fix | Delete
<?php wp_review_print_pro_text(); ?>
[482] Fix | Delete
</div>
[483] Fix | Delete
[484] Fix | Delete
<div class="wp-review-field-option">
[485] Fix | Delete
<?php
[486] Fix | Delete
$form_field->render_switch(
[487] Fix | Delete
array(
[488] Fix | Delete
'id' => 'wp_review_approve_ratings',
[489] Fix | Delete
'name' => 'wp_review_options[approve_ratings]',
[490] Fix | Delete
'disabled' => true,
[491] Fix | Delete
)
[492] Fix | Delete
);
[493] Fix | Delete
?>
[494] Fix | Delete
</div>
[495] Fix | Delete
</div>
[496] Fix | Delete
<?php
[497] Fix | Delete
if ( current_user_can( 'wp_review_purge_visitor_ratings' ) ) {
[498] Fix | Delete
?>
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function