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/clone/wp-conte.../themes/herald/core/admin
File: options-fields.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/* Branding */
[2] Fix | Delete
Redux::setSection( $opt_name , array(
[3] Fix | Delete
'icon' => ' el-icon-smiley',
[4] Fix | Delete
'title' => esc_html__( 'Branding', 'herald' ),
[5] Fix | Delete
'desc' => esc_html__( 'Personalize theme by adding your own images', 'herald' ),
[6] Fix | Delete
'fields' => array(
[7] Fix | Delete
[8] Fix | Delete
array(
[9] Fix | Delete
'id' => 'logo',
[10] Fix | Delete
'type' => 'media',
[11] Fix | Delete
'url' => true,
[12] Fix | Delete
'title' => esc_html__( 'Logo', 'herald' ),
[13] Fix | Delete
'subtitle' => esc_html__( 'Upload your logo image here, or leave empty to show the website title instead.', 'herald' ),
[14] Fix | Delete
'default' => herald_get_default_option( 'logo' ),
[15] Fix | Delete
),
[16] Fix | Delete
[17] Fix | Delete
array(
[18] Fix | Delete
'id' => 'logo_retina',
[19] Fix | Delete
'type' => 'media',
[20] Fix | Delete
'url' => true,
[21] Fix | Delete
'title' => esc_html__( 'Retina logo (2x)', 'herald' ),
[22] Fix | Delete
'subtitle' => esc_html__( 'Optionally upload another logo for devices with retina displays. It should be double the size of your standard logo', 'herald' ),
[23] Fix | Delete
'default' => herald_get_default_option( 'logo_retina' ),
[24] Fix | Delete
),
[25] Fix | Delete
[26] Fix | Delete
array(
[27] Fix | Delete
'id' => 'logo_mini',
[28] Fix | Delete
'type' => 'media',
[29] Fix | Delete
'url' => true,
[30] Fix | Delete
'title' => esc_html__( 'Mini logo', 'herald' ),
[31] Fix | Delete
'subtitle' => esc_html__( 'Optionally upload another logo which may be used as mobile/tablet logo', 'herald' ),
[32] Fix | Delete
'default' => herald_get_default_option( 'logo_mini' ),
[33] Fix | Delete
),
[34] Fix | Delete
[35] Fix | Delete
array(
[36] Fix | Delete
'id' => 'logo_mini_retina',
[37] Fix | Delete
'type' => 'media',
[38] Fix | Delete
'url' => true,
[39] Fix | Delete
'title' => esc_html__( 'Mini retina logo (2x)', 'herald' ),
[40] Fix | Delete
'subtitle' => esc_html__( 'Upload double sized mini logo for devices with retina displays', 'herald' ),
[41] Fix | Delete
'default' => herald_get_default_option( 'logo_mini_retina' ),
[42] Fix | Delete
),
[43] Fix | Delete
[44] Fix | Delete
array(
[45] Fix | Delete
'id' => 'default_fimg',
[46] Fix | Delete
'type' => 'media',
[47] Fix | Delete
'url' => true,
[48] Fix | Delete
'title' => esc_html__( 'Default featured image', 'herald' ),
[49] Fix | Delete
'subtitle' => esc_html__( 'Upload your default featured image/placeholder. It will be displayed for posts that do not have a featured image set.', 'herald' ),
[50] Fix | Delete
'default' => herald_get_default_option( 'default_fimg' ),
[51] Fix | Delete
)
[52] Fix | Delete
)
[53] Fix | Delete
)
[54] Fix | Delete
);
[55] Fix | Delete
[56] Fix | Delete
[57] Fix | Delete
/* Header */
[58] Fix | Delete
Redux::setSection( $opt_name , array(
[59] Fix | Delete
'icon' => 'el-icon-bookmark',
[60] Fix | Delete
'title' => esc_html__( 'Header', 'herald' ),
[61] Fix | Delete
'fields' => array()
[62] Fix | Delete
)
[63] Fix | Delete
);
[64] Fix | Delete
[65] Fix | Delete
/* Header General */
[66] Fix | Delete
Redux::setSection( $opt_name , array(
[67] Fix | Delete
'icon' => '',
[68] Fix | Delete
'title' => esc_html__( 'Sections', 'herald' ),
[69] Fix | Delete
'heading' => false,
[70] Fix | Delete
'subsection' => true,
[71] Fix | Delete
'fields' => array(
[72] Fix | Delete
[73] Fix | Delete
array(
[74] Fix | Delete
'id' => 'header_sections',
[75] Fix | Delete
'type' => 'sortable',
[76] Fix | Delete
'mode' => 'checkbox',
[77] Fix | Delete
'title' => esc_html__( 'Header sections', 'herald' ),
[78] Fix | Delete
'subtitle' => esc_html__( 'Select (re-order) header sections you want to display', 'herald' ),
[79] Fix | Delete
'options' => array(
[80] Fix | Delete
'top' => esc_html__( 'Top bar', 'herald' ),
[81] Fix | Delete
'middle' => esc_html__( 'Main area (middle bar)', 'herald' ),
[82] Fix | Delete
'bottom' => esc_html__( 'Bottom bar', 'herald' ),
[83] Fix | Delete
'trending' => esc_html__( 'Trending posts', 'herald' ),
[84] Fix | Delete
),
[85] Fix | Delete
'default' => herald_get_default_option( 'header_sections' ),
[86] Fix | Delete
),
[87] Fix | Delete
)
[88] Fix | Delete
)
[89] Fix | Delete
);
[90] Fix | Delete
[91] Fix | Delete
[92] Fix | Delete
/* Top Bar */
[93] Fix | Delete
Redux::setSection( $opt_name , array(
[94] Fix | Delete
'icon' => '',
[95] Fix | Delete
'title' => esc_html__( 'Top Bar', 'herald' ),
[96] Fix | Delete
'desc' => esc_html__( 'Modify and style your header top bar', 'herald' ),
[97] Fix | Delete
'subsection' => true,
[98] Fix | Delete
'fields' => array(
[99] Fix | Delete
[100] Fix | Delete
array(
[101] Fix | Delete
'id' => 'color_header_top_bg',
[102] Fix | Delete
'type' => 'color',
[103] Fix | Delete
'title' => esc_html__( 'Background color', 'herald' ),
[104] Fix | Delete
'transparent' => false,
[105] Fix | Delete
'default' => herald_get_default_option( 'color_header_top_bg' ),
[106] Fix | Delete
),
[107] Fix | Delete
[108] Fix | Delete
array(
[109] Fix | Delete
'id' => 'color_header_top_txt',
[110] Fix | Delete
'type' => 'color',
[111] Fix | Delete
'title' => esc_html__( 'Text color', 'herald' ),
[112] Fix | Delete
'transparent' => false,
[113] Fix | Delete
'default' => herald_get_default_option( 'color_header_top_txt' ),
[114] Fix | Delete
),
[115] Fix | Delete
[116] Fix | Delete
array(
[117] Fix | Delete
'id' => 'color_header_top_acc',
[118] Fix | Delete
'type' => 'color',
[119] Fix | Delete
'title' => esc_html__( 'Accent color', 'herald' ),
[120] Fix | Delete
'transparent' => false,
[121] Fix | Delete
'default' => herald_get_default_option( 'color_header_top_acc' ),
[122] Fix | Delete
),
[123] Fix | Delete
[124] Fix | Delete
array(
[125] Fix | Delete
'id' => 'header_top_left',
[126] Fix | Delete
'type' => 'sortable',
[127] Fix | Delete
'mode' => 'checkbox',
[128] Fix | Delete
'title' => esc_html__( 'Left slot', 'herald' ),
[129] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in left slot', 'herald' ),
[130] Fix | Delete
'options' => herald_get_header_elements( 'top', 'left' ),
[131] Fix | Delete
'default' => herald_get_default_option( 'header_top_left' ),
[132] Fix | Delete
),
[133] Fix | Delete
[134] Fix | Delete
array(
[135] Fix | Delete
'id' => 'header_top_center',
[136] Fix | Delete
'type' => 'sortable',
[137] Fix | Delete
'mode' => 'checkbox',
[138] Fix | Delete
'title' => esc_html__( 'Center slot', 'herald' ),
[139] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in center slot', 'herald' ),
[140] Fix | Delete
'options' => herald_get_header_elements( 'top', 'center' ),
[141] Fix | Delete
'default' => herald_get_default_option( 'header_top_center' ),
[142] Fix | Delete
),
[143] Fix | Delete
[144] Fix | Delete
array(
[145] Fix | Delete
'id' => 'header_top_right',
[146] Fix | Delete
'type' => 'sortable',
[147] Fix | Delete
'mode' => 'checkbox',
[148] Fix | Delete
'title' => esc_html__( 'Right slot', 'herald' ),
[149] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in right slot', 'herald' ),
[150] Fix | Delete
'options' => herald_get_header_elements( 'top', 'right' ),
[151] Fix | Delete
'default' => herald_get_default_option( 'header_top_right' ),
[152] Fix | Delete
),
[153] Fix | Delete
[154] Fix | Delete
) )
[155] Fix | Delete
);
[156] Fix | Delete
[157] Fix | Delete
/* Main header area */
[158] Fix | Delete
Redux::setSection( $opt_name , array(
[159] Fix | Delete
'icon' => '',
[160] Fix | Delete
'title' => esc_html__( 'Main Area', 'herald' ),
[161] Fix | Delete
'desc' => esc_html__( 'Modify and style your main header area', 'herald' ),
[162] Fix | Delete
'subsection' => true,
[163] Fix | Delete
'fields' => array(
[164] Fix | Delete
[165] Fix | Delete
array(
[166] Fix | Delete
'id' => 'header_height',
[167] Fix | Delete
'type' => 'text',
[168] Fix | Delete
'class' => 'small-text',
[169] Fix | Delete
'title' => esc_html__( 'Height', 'herald' ),
[170] Fix | Delete
'subtitle' => esc_html__( 'Specify a height for your main header area', 'herald' ),
[171] Fix | Delete
'desc' => esc_html__( 'Note: Height value is in px.', 'herald' ),
[172] Fix | Delete
'default' => herald_get_default_option( 'header_height' ),
[173] Fix | Delete
'validate' => 'numeric'
[174] Fix | Delete
),
[175] Fix | Delete
[176] Fix | Delete
array(
[177] Fix | Delete
'id' => 'color_header_middle_bg',
[178] Fix | Delete
'type' => 'color',
[179] Fix | Delete
'title' => esc_html__( 'Background color', 'herald' ),
[180] Fix | Delete
'transparent' => false,
[181] Fix | Delete
'default' => herald_get_default_option( 'color_header_middle_bg' ),
[182] Fix | Delete
),
[183] Fix | Delete
[184] Fix | Delete
array(
[185] Fix | Delete
'id' => 'background_header_middle',
[186] Fix | Delete
'type' => 'background',
[187] Fix | Delete
'title' => esc_html__( 'Background image', 'herald' ),
[188] Fix | Delete
'subtitle' => esc_html__( 'Optionally upload background image or pattern', 'herald' ),
[189] Fix | Delete
'background-color' => false,
[190] Fix | Delete
'default' => herald_get_default_option( 'background_header_middle' ),
[191] Fix | Delete
),
[192] Fix | Delete
[193] Fix | Delete
array(
[194] Fix | Delete
'id' => 'color_header_middle_txt',
[195] Fix | Delete
'type' => 'color',
[196] Fix | Delete
'title' => esc_html__( 'Text color', 'herald' ),
[197] Fix | Delete
'transparent' => false,
[198] Fix | Delete
'default' => herald_get_default_option( 'color_header_middle_txt' ),
[199] Fix | Delete
),
[200] Fix | Delete
[201] Fix | Delete
array(
[202] Fix | Delete
'id' => 'color_header_middle_acc',
[203] Fix | Delete
'type' => 'color',
[204] Fix | Delete
'title' => esc_html__( 'Accent color', 'herald' ),
[205] Fix | Delete
'transparent' => false,
[206] Fix | Delete
'default' => herald_get_default_option( 'color_header_middle_acc' ),
[207] Fix | Delete
),
[208] Fix | Delete
[209] Fix | Delete
array(
[210] Fix | Delete
'id' => 'header_middle_left',
[211] Fix | Delete
'type' => 'sortable',
[212] Fix | Delete
'mode' => 'checkbox',
[213] Fix | Delete
'title' => esc_html__( 'Left slot', 'herald' ),
[214] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in left slot', 'herald' ),
[215] Fix | Delete
'options' => herald_get_header_elements( 'middle', 'left' ),
[216] Fix | Delete
'default' => herald_get_default_option( 'header_middle_left' ),
[217] Fix | Delete
),
[218] Fix | Delete
[219] Fix | Delete
array(
[220] Fix | Delete
'id' => 'header_middle_left_align',
[221] Fix | Delete
'type' => 'radio',
[222] Fix | Delete
'title' => esc_html__( 'Align elements', 'herald' ),
[223] Fix | Delete
'subtitle' => esc_html__( 'If you choose more than one element in the slot, choose if they will be aligned horizontally or vertically', 'herald' ),
[224] Fix | Delete
'options' => array(
[225] Fix | Delete
'hor' => esc_html__( 'Horizontally', 'herald' ),
[226] Fix | Delete
'ver' => esc_html__( 'Vertically', 'herald' ),
[227] Fix | Delete
),
[228] Fix | Delete
'default' => herald_get_default_option( 'header_middle_left_align' ),
[229] Fix | Delete
),
[230] Fix | Delete
[231] Fix | Delete
array(
[232] Fix | Delete
'id' => 'header_middle_center',
[233] Fix | Delete
'type' => 'sortable',
[234] Fix | Delete
'mode' => 'checkbox',
[235] Fix | Delete
'title' => esc_html__( 'Center slot', 'herald' ),
[236] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in center slot', 'herald' ),
[237] Fix | Delete
'options' => herald_get_header_elements( 'middle', 'center' ),
[238] Fix | Delete
'default' => herald_get_default_option( 'header_middle_center' ),
[239] Fix | Delete
),
[240] Fix | Delete
[241] Fix | Delete
array(
[242] Fix | Delete
'id' => 'header_middle_center_align',
[243] Fix | Delete
'type' => 'radio',
[244] Fix | Delete
'title' => esc_html__( 'Align center slot elements', 'herald' ),
[245] Fix | Delete
'subtitle' => esc_html__( 'If you choose more than one element in the slot, choose if they will be aligned horizontally or vertically', 'herald' ),
[246] Fix | Delete
'options' => array(
[247] Fix | Delete
'hor' => esc_html__( 'Horizontally', 'herald' ),
[248] Fix | Delete
'ver' => esc_html__( 'Vertically', 'herald' ),
[249] Fix | Delete
),
[250] Fix | Delete
'default' => herald_get_default_option( 'header_middle_center_align' ),
[251] Fix | Delete
),
[252] Fix | Delete
[253] Fix | Delete
array(
[254] Fix | Delete
'id' => 'header_middle_right',
[255] Fix | Delete
'type' => 'sortable',
[256] Fix | Delete
'mode' => 'checkbox',
[257] Fix | Delete
'title' => esc_html__( 'Right slot', 'herald' ),
[258] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in right slot', 'herald' ),
[259] Fix | Delete
'options' => herald_get_header_elements( 'middle', 'right' ),
[260] Fix | Delete
'default' => herald_get_default_option( 'header_middle_right' ),
[261] Fix | Delete
),
[262] Fix | Delete
[263] Fix | Delete
array(
[264] Fix | Delete
'id' => 'header_middle_right_align',
[265] Fix | Delete
'type' => 'radio',
[266] Fix | Delete
'title' => esc_html__( 'Align elements', 'herald' ),
[267] Fix | Delete
'subtitle' => esc_html__( 'If you choose more than one element in the slot, choose if they will be aligned horizontally or vertically', 'herald' ),
[268] Fix | Delete
'options' => array(
[269] Fix | Delete
'hor' => esc_html__( 'Horizontally', 'herald' ),
[270] Fix | Delete
'ver' => esc_html__( 'Vertically', 'herald' ),
[271] Fix | Delete
),
[272] Fix | Delete
'default' => herald_get_default_option( 'header_middle_right_align' ),
[273] Fix | Delete
),
[274] Fix | Delete
[275] Fix | Delete
[276] Fix | Delete
[277] Fix | Delete
) )
[278] Fix | Delete
);
[279] Fix | Delete
[280] Fix | Delete
/* Bottom header bar */
[281] Fix | Delete
Redux::setSection( $opt_name , array(
[282] Fix | Delete
'icon' => '',
[283] Fix | Delete
'title' => esc_html__( 'Bottom Bar', 'herald' ),
[284] Fix | Delete
'desc' => esc_html__( 'Modify and style your header bottom bar', 'herald' ),
[285] Fix | Delete
'subsection' => true,
[286] Fix | Delete
'fields' => array(
[287] Fix | Delete
[288] Fix | Delete
array(
[289] Fix | Delete
'id' => 'color_header_bottom_bg',
[290] Fix | Delete
'type' => 'color',
[291] Fix | Delete
'title' => esc_html__( 'Background color', 'herald' ),
[292] Fix | Delete
'transparent' => false,
[293] Fix | Delete
'default' => herald_get_default_option( 'color_header_bottom_bg' ),
[294] Fix | Delete
),
[295] Fix | Delete
[296] Fix | Delete
array(
[297] Fix | Delete
'id' => 'color_header_bottom_txt',
[298] Fix | Delete
'type' => 'color',
[299] Fix | Delete
'title' => esc_html__( 'Text color', 'herald' ),
[300] Fix | Delete
'transparent' => false,
[301] Fix | Delete
'default' => herald_get_default_option( 'color_header_bottom_txt' ),
[302] Fix | Delete
),
[303] Fix | Delete
[304] Fix | Delete
array(
[305] Fix | Delete
'id' => 'color_header_bottom_acc',
[306] Fix | Delete
'type' => 'color',
[307] Fix | Delete
'title' => esc_html__( 'Accent color', 'herald' ),
[308] Fix | Delete
'transparent' => false,
[309] Fix | Delete
'default' => herald_get_default_option( 'color_header_bottom_acc' ),
[310] Fix | Delete
),
[311] Fix | Delete
[312] Fix | Delete
array(
[313] Fix | Delete
'id' => 'header_bottom_left',
[314] Fix | Delete
'type' => 'sortable',
[315] Fix | Delete
'mode' => 'checkbox',
[316] Fix | Delete
'title' => esc_html__( 'Left slot', 'herald' ),
[317] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in left slot', 'herald' ),
[318] Fix | Delete
'options' => herald_get_header_elements( 'bottom', 'left' ),
[319] Fix | Delete
'default' => herald_get_default_option( 'header_bottom_left' ),
[320] Fix | Delete
),
[321] Fix | Delete
[322] Fix | Delete
array(
[323] Fix | Delete
'id' => 'header_bottom_center',
[324] Fix | Delete
'type' => 'sortable',
[325] Fix | Delete
'mode' => 'checkbox',
[326] Fix | Delete
'title' => esc_html__( 'Center slot', 'herald' ),
[327] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in center slot', 'herald' ),
[328] Fix | Delete
'options' => herald_get_header_elements( 'bottom', 'center' ),
[329] Fix | Delete
'default' => herald_get_default_option( 'header_bottom_center' ),
[330] Fix | Delete
),
[331] Fix | Delete
[332] Fix | Delete
array(
[333] Fix | Delete
'id' => 'header_bottom_right',
[334] Fix | Delete
'type' => 'sortable',
[335] Fix | Delete
'mode' => 'checkbox',
[336] Fix | Delete
'title' => esc_html__( 'Right slot', 'herald' ),
[337] Fix | Delete
'subtitle' => esc_html__( 'Check which elements to add in right slot', 'herald' ),
[338] Fix | Delete
'options' => herald_get_header_elements( 'bottom', 'right' ),
[339] Fix | Delete
'default' => herald_get_default_option( 'header_bottom_right' ),
[340] Fix | Delete
),
[341] Fix | Delete
[342] Fix | Delete
) )
[343] Fix | Delete
);
[344] Fix | Delete
[345] Fix | Delete
/* Trending */
[346] Fix | Delete
Redux::setSection( $opt_name , array(
[347] Fix | Delete
'icon' => '',
[348] Fix | Delete
'title' => esc_html__( 'Trending Posts', 'herald' ),
[349] Fix | Delete
'desc' => esc_html__( 'Manage settings for you trending posts', 'herald' ),
[350] Fix | Delete
'subsection' => true,
[351] Fix | Delete
'fields' => array(
[352] Fix | Delete
[353] Fix | Delete
array(
[354] Fix | Delete
'id' => 'color_header_trending_bg',
[355] Fix | Delete
'type' => 'color',
[356] Fix | Delete
'title' => esc_html__( 'Background color', 'herald' ),
[357] Fix | Delete
'transparent' => false,
[358] Fix | Delete
'default' => herald_get_default_option( 'color_header_trending_bg' ),
[359] Fix | Delete
),
[360] Fix | Delete
[361] Fix | Delete
[362] Fix | Delete
array(
[363] Fix | Delete
'id' => 'color_header_trending_txt',
[364] Fix | Delete
'type' => 'color',
[365] Fix | Delete
'title' => esc_html__( 'Text color', 'herald' ),
[366] Fix | Delete
'transparent' => false,
[367] Fix | Delete
'default' => herald_get_default_option( 'color_header_trending_txt' ),
[368] Fix | Delete
),
[369] Fix | Delete
[370] Fix | Delete
array(
[371] Fix | Delete
'id' => 'color_header_trending_acc',
[372] Fix | Delete
'type' => 'color',
[373] Fix | Delete
'title' => esc_html__( 'Accent color', 'herald' ),
[374] Fix | Delete
'transparent' => false,
[375] Fix | Delete
'default' => herald_get_default_option( 'color_header_trending_acc' ),
[376] Fix | Delete
),
[377] Fix | Delete
[378] Fix | Delete
array(
[379] Fix | Delete
'id' => 'trending_number',
[380] Fix | Delete
'type' => 'button_set',
[381] Fix | Delete
'title' => esc_html__( 'Number of posts (columns)', 'herald' ),
[382] Fix | Delete
'options' => array(
[383] Fix | Delete
'3' => '3',
[384] Fix | Delete
'4' => '4',
[385] Fix | Delete
'6' => '6'
[386] Fix | Delete
),
[387] Fix | Delete
'default' => herald_get_default_option( 'trending_number' ),
[388] Fix | Delete
),
[389] Fix | Delete
[390] Fix | Delete
array(
[391] Fix | Delete
'id' => 'trending_fimg',
[392] Fix | Delete
'type' => 'switch',
[393] Fix | Delete
'title' => esc_html__( 'Display featured images', 'herald' ),
[394] Fix | Delete
'subtitle' => esc_html__( 'Check if you want display featured images on trending posts', 'herald' ),
[395] Fix | Delete
'default' => herald_get_default_option( 'trending_fimg' ),
[396] Fix | Delete
),
[397] Fix | Delete
[398] Fix | Delete
array(
[399] Fix | Delete
'id' => 'trending_slider',
[400] Fix | Delete
'type' => 'switch',
[401] Fix | Delete
'title' => esc_html__( 'Enable slider', 'herald' ),
[402] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to slide/rotate items', 'herald' ),
[403] Fix | Delete
'default' => herald_get_default_option( 'trending_slider' ),
[404] Fix | Delete
),
[405] Fix | Delete
[406] Fix | Delete
array(
[407] Fix | Delete
'id' => 'trending_slider_post',
[408] Fix | Delete
'type' => 'text',
[409] Fix | Delete
'class' => 'small-text',
[410] Fix | Delete
'title' => esc_html__( 'Specify number of total posts', 'herald' ),
[411] Fix | Delete
'default' => herald_get_default_option( 'trending_slider_post' ),
[412] Fix | Delete
'validate' => 'numeric',
[413] Fix | Delete
'required' => array( 'trending_slider', '=', '1' ),
[414] Fix | Delete
),
[415] Fix | Delete
[416] Fix | Delete
[417] Fix | Delete
[418] Fix | Delete
array(
[419] Fix | Delete
'id' => 'trending_order',
[420] Fix | Delete
'type' => 'radio',
[421] Fix | Delete
'title' => esc_html__( 'Trending posts chooses from', 'herald' ),
[422] Fix | Delete
'options' => herald_get_fa_post_opts(),
[423] Fix | Delete
'default' => herald_get_default_option( 'trending_order' ),
[424] Fix | Delete
),
[425] Fix | Delete
[426] Fix | Delete
array(
[427] Fix | Delete
'id' => 'trending_cat',
[428] Fix | Delete
'type' => 'checkbox',
[429] Fix | Delete
'title' => esc_html__( 'In category', 'herald' ),
[430] Fix | Delete
'subtitle' => esc_html__( 'Select trending posts only from one or more specific categories', 'herald' ),
[431] Fix | Delete
'data' => 'categories',
[432] Fix | Delete
'default' => herald_get_default_option( 'trending_cat' ),
[433] Fix | Delete
),
[434] Fix | Delete
[435] Fix | Delete
array(
[436] Fix | Delete
'id' => 'trending_tag',
[437] Fix | Delete
'type' => 'select',
[438] Fix | Delete
'multi' => true,
[439] Fix | Delete
'title' => esc_html__( 'Tagged with', 'herald' ),
[440] Fix | Delete
'subtitle' => esc_html__( 'Select trending posts only tagged with one or more specific tags', 'herald' ),
[441] Fix | Delete
'data' => 'tag',
[442] Fix | Delete
'default' => herald_get_default_option( 'trending_tag' ),
[443] Fix | Delete
),
[444] Fix | Delete
[445] Fix | Delete
[446] Fix | Delete
array(
[447] Fix | Delete
'id' => 'trending_time',
[448] Fix | Delete
'type' => 'radio',
[449] Fix | Delete
'title' => esc_html__( 'Trending posts are not older than', 'herald' ),
[450] Fix | Delete
'options' => herald_get_time_diff_opts(),
[451] Fix | Delete
'default' => herald_get_default_option( 'trending_time' ),
[452] Fix | Delete
),
[453] Fix | Delete
[454] Fix | Delete
array(
[455] Fix | Delete
'id' => 'trending_manual',
[456] Fix | Delete
'type' => 'text',
[457] Fix | Delete
'title' => esc_html__( 'Manually choose trending posts', 'herald' ),
[458] Fix | Delete
'subtitle' => esc_html__( 'Specify post IDs separated by comma to manually pick trending posts', 'herald' ),
[459] Fix | Delete
'description' => esc_html__( 'Example: 34, 56, 78, 145, 434, 223', 'herald' ),
[460] Fix | Delete
'default' => herald_get_default_option( 'trending_manual' ),
[461] Fix | Delete
),
[462] Fix | Delete
)
[463] Fix | Delete
)
[464] Fix | Delete
);
[465] Fix | Delete
[466] Fix | Delete
/* Sticky header area */
[467] Fix | Delete
Redux::setSection( $opt_name , array(
[468] Fix | Delete
'icon' => '',
[469] Fix | Delete
'title' => esc_html__( 'Sticky Header', 'herald' ),
[470] Fix | Delete
'desc' => esc_html__( 'Modify and style your sticky header area', 'herald' ),
[471] Fix | Delete
'subsection' => true,
[472] Fix | Delete
'fields' => array(
[473] Fix | Delete
[474] Fix | Delete
array(
[475] Fix | Delete
'id' => 'header_sticky',
[476] Fix | Delete
'type' => 'switch',
[477] Fix | Delete
'title' => esc_html__( 'Display sticky header', 'herald' ),
[478] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to enable sticky header', 'herald' ),
[479] Fix | Delete
'default' => herald_get_default_option( 'header_sticky' ),
[480] Fix | Delete
),
[481] Fix | Delete
[482] Fix | Delete
array(
[483] Fix | Delete
'id' => 'header_sticky_offset',
[484] Fix | Delete
'type' => 'text',
[485] Fix | Delete
'class' => 'small-text',
[486] Fix | Delete
'title' => esc_html__( 'Sticky header offset', 'herald' ),
[487] Fix | Delete
'subtitle' => esc_html__( 'Specify after how many px of scrolling the sticky header appears', 'herald' ),
[488] Fix | Delete
'default' => herald_get_default_option( 'header_sticky_offset' ),
[489] Fix | Delete
'validate' => 'numeric',
[490] Fix | Delete
'required' => array( 'header_sticky', '=', true )
[491] Fix | Delete
),
[492] Fix | Delete
[493] Fix | Delete
array(
[494] Fix | Delete
'id' => 'header_sticky_up',
[495] Fix | Delete
'type' => 'switch',
[496] Fix | Delete
'title' => esc_html__( 'Smart sticky', 'herald' ),
[497] Fix | Delete
'subtitle' => esc_html__( 'Sticky header appears only if you scroll up', 'herald' ),
[498] Fix | Delete
'default' => herald_get_default_option( 'header_sticky_up' ),
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function