: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Review box templates list
* This file contains the list of review box templates used in plugin
function wp_review_get_box_templates() {
'title' => __( 'Default', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/default.jpg',
'inactive_color' => '#95bae0',
'bordercolor' => '#e7e7e7',
'width' => 100, // In percentage.
'custom_comment_colors' => false,
'rating_icon' => 'fa fa-star',
'comment_color' => '#ffb300',
'comment_inactive_color' => '#ffb300',
$templates = apply_filters(
'wp_review_box_templates',
'title' => __( 'Amazon', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/amazon.jpg',
'inactive_color' => '#f4f4f4',
'fontcolor' => '#111111',
'bordercolor' => '#ffffff',
'title' => __( 'Aqua', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/aqua.jpg',
'inactive_color' => '#f5d9e8',
'fontcolor' => '#4e565b',
'bordercolor' => '#dfdaea',
'title' => __( 'Blue', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/blue.jpg',
'inactive_color' => '#b1c6dc',
'fontcolor' => '#999999',
'bordercolor' => '#f3f3f3',
'title' => __( 'Darkside', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/darkside.jpg',
'fontcolor' => '#d0d0d0',
'bordercolor' => '#41465c',
'inactive_color' => '#41465c',
'comment_inactive_color' => '',
'title' => __( 'Dash', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/dash.jpg',
'inactive_color' => '#8bbddb',
'fontcolor' => '#3f3f3f',
'bordercolor' => '#e8e8e8',
'title' => __( 'Edge', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/edge.jpg',
'inactive_color' => '#f1e3cd',
'fontcolor' => '#6a788a',
'bordercolor' => '#edf2f9',
'title' => __( 'Enterprise', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/enterprise.jpg',
'fontcolor' => '#666666',
'bordercolor' => '#ead7bb',
'inactive_color' => '#efbfa7',
'title' => __( 'Facebook', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/facebook.jpg',
'fontcolor' => '#333333',
'bordercolor' => '#e9eaed',
'inactive_color' => '#b7ceff',
'title' => __( 'Fizzy', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/fizzy.jpg',
'inactive_color' => '#cde6cf',
'fontcolor' => '#658694',
'bordercolor' => '#c8dde6',
'title' => __( 'Gamer', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/gamer.jpg',
'inactive_color' => '#e2d4d1',
'fontcolor' => '#262626',
'bordercolor' => '#cececf',
'title' => __( 'Gravity', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/gravity.jpg',
'fontcolor' => '#243a23',
'bordercolor' => '#e3e2df',
'inactive_color' => '#f9e097',
'comment_inactive_color' => '',
'title' => __( 'Shell', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/shell.jpg',
'inactive_color' => '#d1eaef',
'fontcolor' => '#459cad',
'bordercolor' => '#d1eaef',
'tabbed-layout' => array(
'title' => __( 'Tabbed layout', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/tabbed.jpg',
'inactive_color' => '#95bae0',
'bordercolor' => '#e7e7e7',
'tabbed-layout2' => array(
'title' => __( 'Tabbed layout 2', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/tabbed2.jpg',
'inactive_color' => '#eff1e9',
'fontcolor' => '#413a43',
'bordercolor' => '#f1edf1',
'title' => __( 'Xiaomi', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/xiaomi.jpg',
'inactive_color' => '#bcaaa4',
'fontcolor' => '#474747',
'bordercolor' => '#efebe9',
'title' => __( 'Zine', 'wp-review' ),
'image' => WP_REVIEW_ASSETS . 'images/zine.jpg',
'inactive_color' => '#B3E5FC',
'fontcolor' => '#6a6a6a',
'bordercolor' => '#ffffff',
foreach ( $templates as $index => $template ) {
$templates[ $index ] = wp_parse_args( $template, $default );
return array( 'default' => $default ) + $templates;