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...
File: template-list.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Review box templates list
[2] Fix | Delete
* This file contains the list of review box templates used in plugin
[3] Fix | Delete
*
[4] Fix | Delete
* @package WP_Review
[5] Fix | Delete
* @since 3.0.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Gets review templates.
[10] Fix | Delete
*
[11] Fix | Delete
* @return array
[12] Fix | Delete
*/
[13] Fix | Delete
function wp_review_get_box_templates() {
[14] Fix | Delete
$default = array(
[15] Fix | Delete
'title' => __( 'Default', 'wp-review' ),
[16] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/default.jpg',
[17] Fix | Delete
'color' => '#1e73be',
[18] Fix | Delete
'inactive_color' => '#95bae0',
[19] Fix | Delete
'fontcolor' => '#555',
[20] Fix | Delete
'bgcolor1' => '#e7e7e7',
[21] Fix | Delete
'bgcolor2' => '#fff',
[22] Fix | Delete
'bordercolor' => '#e7e7e7',
[23] Fix | Delete
'width' => 100, // In percentage.
[24] Fix | Delete
'align' => 'left',
[25] Fix | Delete
'custom_comment_colors' => false,
[26] Fix | Delete
'rating_icon' => 'fa fa-star',
[27] Fix | Delete
'comment_color' => '#ffb300',
[28] Fix | Delete
'comment_inactive_color' => '#ffb300',
[29] Fix | Delete
);
[30] Fix | Delete
[31] Fix | Delete
$templates = apply_filters(
[32] Fix | Delete
'wp_review_box_templates',
[33] Fix | Delete
array(
[34] Fix | Delete
'amazon' => array(
[35] Fix | Delete
'title' => __( 'Amazon', 'wp-review' ),
[36] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/amazon.jpg',
[37] Fix | Delete
'color' => '#ffbe01',
[38] Fix | Delete
'inactive_color' => '#f4f4f4',
[39] Fix | Delete
'fontcolor' => '#111111',
[40] Fix | Delete
'bgcolor1' => '#ffbe01',
[41] Fix | Delete
'bgcolor2' => '#ffffff',
[42] Fix | Delete
'bordercolor' => '#ffffff',
[43] Fix | Delete
),
[44] Fix | Delete
'aqua' => array(
[45] Fix | Delete
'title' => __( 'Aqua', 'wp-review' ),
[46] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/aqua.jpg',
[47] Fix | Delete
'color' => '#de5ea4',
[48] Fix | Delete
'inactive_color' => '#f5d9e8',
[49] Fix | Delete
'fontcolor' => '#4e565b',
[50] Fix | Delete
'bgcolor1' => '#8e74ea',
[51] Fix | Delete
'bgcolor2' => '#ffffff',
[52] Fix | Delete
'bordercolor' => '#dfdaea',
[53] Fix | Delete
),
[54] Fix | Delete
'blue' => array(
[55] Fix | Delete
'title' => __( 'Blue', 'wp-review' ),
[56] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/blue.jpg',
[57] Fix | Delete
'color' => '#689FCE',
[58] Fix | Delete
'inactive_color' => '#b1c6dc',
[59] Fix | Delete
'fontcolor' => '#999999',
[60] Fix | Delete
'bgcolor1' => '#f3f3f3',
[61] Fix | Delete
'bgcolor2' => '#f3f3f3',
[62] Fix | Delete
'bordercolor' => '#f3f3f3',
[63] Fix | Delete
),
[64] Fix | Delete
'darkside' => array(
[65] Fix | Delete
'title' => __( 'Darkside', 'wp-review' ),
[66] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/darkside.jpg',
[67] Fix | Delete
'color' => '#ed576c',
[68] Fix | Delete
'fontcolor' => '#d0d0d0',
[69] Fix | Delete
'bgcolor1' => '#20253b',
[70] Fix | Delete
'bgcolor2' => '#20253b',
[71] Fix | Delete
'bordercolor' => '#41465c',
[72] Fix | Delete
'inactive_color' => '#41465c',
[73] Fix | Delete
'comment_inactive_color' => '',
[74] Fix | Delete
),
[75] Fix | Delete
'dash' => array(
[76] Fix | Delete
'title' => __( 'Dash', 'wp-review' ),
[77] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/dash.jpg',
[78] Fix | Delete
'color' => '#378bcb',
[79] Fix | Delete
'inactive_color' => '#8bbddb',
[80] Fix | Delete
'fontcolor' => '#3f3f3f',
[81] Fix | Delete
'bgcolor1' => '#378bcb',
[82] Fix | Delete
'bgcolor2' => '#ffffff',
[83] Fix | Delete
'bordercolor' => '#e8e8e8',
[84] Fix | Delete
),
[85] Fix | Delete
'edge' => array(
[86] Fix | Delete
'title' => __( 'Edge', 'wp-review' ),
[87] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/edge.jpg',
[88] Fix | Delete
'color' => '#f1c274',
[89] Fix | Delete
'inactive_color' => '#f1e3cd',
[90] Fix | Delete
'fontcolor' => '#6a788a',
[91] Fix | Delete
'bgcolor1' => '#e77e34',
[92] Fix | Delete
'bgcolor2' => '#ffffff',
[93] Fix | Delete
'bordercolor' => '#edf2f9',
[94] Fix | Delete
),
[95] Fix | Delete
'enterprise' => array(
[96] Fix | Delete
'title' => __( 'Enterprise', 'wp-review' ),
[97] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/enterprise.jpg',
[98] Fix | Delete
'color' => '#f8937e',
[99] Fix | Delete
'fontcolor' => '#666666',
[100] Fix | Delete
'bgcolor1' => '#f8937e',
[101] Fix | Delete
'bgcolor2' => '#f7e4c5',
[102] Fix | Delete
'bordercolor' => '#ead7bb',
[103] Fix | Delete
'inactive_color' => '#efbfa7',
[104] Fix | Delete
),
[105] Fix | Delete
'facebook' => array(
[106] Fix | Delete
'title' => __( 'Facebook', 'wp-review' ),
[107] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/facebook.jpg',
[108] Fix | Delete
'color' => '#4267b2',
[109] Fix | Delete
'fontcolor' => '#333333',
[110] Fix | Delete
'bgcolor1' => '#4267b2',
[111] Fix | Delete
'bgcolor2' => '#ffffff',
[112] Fix | Delete
'bordercolor' => '#e9eaed',
[113] Fix | Delete
'inactive_color' => '#b7ceff',
[114] Fix | Delete
),
[115] Fix | Delete
'fizzy' => array(
[116] Fix | Delete
'title' => __( 'Fizzy', 'wp-review' ),
[117] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/fizzy.jpg',
[118] Fix | Delete
'color' => '#71CD7B',
[119] Fix | Delete
'inactive_color' => '#cde6cf',
[120] Fix | Delete
'fontcolor' => '#658694',
[121] Fix | Delete
'bgcolor1' => '#F5F8F8',
[122] Fix | Delete
'bgcolor2' => '#ffffff',
[123] Fix | Delete
'bordercolor' => '#c8dde6',
[124] Fix | Delete
),
[125] Fix | Delete
'gamer' => array(
[126] Fix | Delete
'title' => __( 'Gamer', 'wp-review' ),
[127] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/gamer.jpg',
[128] Fix | Delete
'color' => '#d04622',
[129] Fix | Delete
'inactive_color' => '#e2d4d1',
[130] Fix | Delete
'fontcolor' => '#262626',
[131] Fix | Delete
'bgcolor1' => '#2c2d31',
[132] Fix | Delete
'bgcolor2' => '#f2f2f3',
[133] Fix | Delete
'bordercolor' => '#cececf',
[134] Fix | Delete
),
[135] Fix | Delete
'gravity' => array(
[136] Fix | Delete
'title' => __( 'Gravity', 'wp-review' ),
[137] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/gravity.jpg',
[138] Fix | Delete
'color' => '#f2b852',
[139] Fix | Delete
'fontcolor' => '#243a23',
[140] Fix | Delete
'bgcolor1' => '#243a24',
[141] Fix | Delete
'bgcolor2' => '#f1f0ec',
[142] Fix | Delete
'bordercolor' => '#e3e2df',
[143] Fix | Delete
'inactive_color' => '#f9e097',
[144] Fix | Delete
'comment_inactive_color' => '',
[145] Fix | Delete
),
[146] Fix | Delete
'shell' => array(
[147] Fix | Delete
'title' => __( 'Shell', 'wp-review' ),
[148] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/shell.jpg',
[149] Fix | Delete
'color' => '#ec7d77',
[150] Fix | Delete
'inactive_color' => '#d1eaef',
[151] Fix | Delete
'fontcolor' => '#459cad',
[152] Fix | Delete
'bgcolor1' => '#ffffff',
[153] Fix | Delete
'bgcolor2' => '#f2f8f9',
[154] Fix | Delete
'bordercolor' => '#d1eaef',
[155] Fix | Delete
),
[156] Fix | Delete
'tabbed-layout' => array(
[157] Fix | Delete
'title' => __( 'Tabbed layout', 'wp-review' ),
[158] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/tabbed.jpg',
[159] Fix | Delete
'color' => '#1e73be',
[160] Fix | Delete
'inactive_color' => '#95bae0',
[161] Fix | Delete
'fontcolor' => '#555',
[162] Fix | Delete
'bgcolor1' => '#e7e7e7',
[163] Fix | Delete
'bgcolor2' => '#fff',
[164] Fix | Delete
'bordercolor' => '#e7e7e7',
[165] Fix | Delete
),
[166] Fix | Delete
'tabbed-layout2' => array(
[167] Fix | Delete
'title' => __( 'Tabbed layout 2', 'wp-review' ),
[168] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/tabbed2.jpg',
[169] Fix | Delete
'color' => '#98ba3b',
[170] Fix | Delete
'inactive_color' => '#eff1e9',
[171] Fix | Delete
'fontcolor' => '#413a43',
[172] Fix | Delete
'bgcolor1' => '#615a63',
[173] Fix | Delete
'bgcolor2' => '#ffffff',
[174] Fix | Delete
'bordercolor' => '#f1edf1',
[175] Fix | Delete
),
[176] Fix | Delete
'xiaomi' => array(
[177] Fix | Delete
'title' => __( 'Xiaomi', 'wp-review' ),
[178] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/xiaomi.jpg',
[179] Fix | Delete
'color' => '#795548',
[180] Fix | Delete
'inactive_color' => '#bcaaa4',
[181] Fix | Delete
'fontcolor' => '#474747',
[182] Fix | Delete
'bgcolor1' => '#efebe9',
[183] Fix | Delete
'bgcolor2' => '#efebe9',
[184] Fix | Delete
'bordercolor' => '#efebe9',
[185] Fix | Delete
),
[186] Fix | Delete
'zine' => array(
[187] Fix | Delete
'title' => __( 'Zine', 'wp-review' ),
[188] Fix | Delete
'image' => WP_REVIEW_ASSETS . 'images/zine.jpg',
[189] Fix | Delete
'color' => '#04A9F5',
[190] Fix | Delete
'inactive_color' => '#B3E5FC',
[191] Fix | Delete
'fontcolor' => '#6a6a6a',
[192] Fix | Delete
'bgcolor1' => '#f3fafb',
[193] Fix | Delete
'bgcolor2' => '#f3fafb',
[194] Fix | Delete
'bordercolor' => '#ffffff',
[195] Fix | Delete
),
[196] Fix | Delete
)
[197] Fix | Delete
);
[198] Fix | Delete
[199] Fix | Delete
foreach ( $templates as $index => $template ) {
[200] Fix | Delete
$templates[ $index ] = wp_parse_args( $template, $default );
[201] Fix | Delete
}
[202] Fix | Delete
[203] Fix | Delete
return array( 'default' => $default ) + $templates;
[204] Fix | Delete
}
[205] Fix | Delete
[206] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function