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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/herald/core/admin
File: options-fields.php
'desc' => esc_html__( 'Note: put 3:4 or 2:1 or any custom ratio you want', 'herald' ),
[1000] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_a_custom' ),
[1001] Fix | Delete
'required' => array( 'img_size_lay_a_ratio', '=', 'custom' ),
[1002] Fix | Delete
),
[1003] Fix | Delete
)
[1004] Fix | Delete
)
[1005] Fix | Delete
);
[1006] Fix | Delete
[1007] Fix | Delete
/* Layout A1 */
[1008] Fix | Delete
Redux::setSection( $opt_name , array(
[1009] Fix | Delete
'icon' => '',
[1010] Fix | Delete
'title' => esc_html__( 'Layout A1', 'herald' ),
[1011] Fix | Delete
'heading' => false,
[1012] Fix | Delete
'subsection' => true,
[1013] Fix | Delete
'fields' => array(
[1014] Fix | Delete
[1015] Fix | Delete
array(
[1016] Fix | Delete
'id' => 'section_layout_a1',
[1017] Fix | Delete
'type' => 'herald_section',
[1018] Fix | Delete
'title' => '<img src="'.esc_url( get_parent_theme_file_uri( '/assets/img/admin/layout_a1.png' ) ).'"/>'.esc_html__( 'Layout A1', 'herald' ),
[1019] Fix | Delete
'subtitle' => esc_html__( 'Manage options for posts displayed in Layout A1', 'herald' ),
[1020] Fix | Delete
'indent' => false
[1021] Fix | Delete
),
[1022] Fix | Delete
[1023] Fix | Delete
array(
[1024] Fix | Delete
'id' => 'lay_a1_cat',
[1025] Fix | Delete
'type' => 'switch',
[1026] Fix | Delete
'title' => esc_html__( 'Display category', 'herald' ),
[1027] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to display a category link for posts in Layout A1', 'herald' ),
[1028] Fix | Delete
'default' => herald_get_default_option( 'lay_a1_cat' ),
[1029] Fix | Delete
),
[1030] Fix | Delete
[1031] Fix | Delete
array(
[1032] Fix | Delete
'id' => 'lay_a1_meta',
[1033] Fix | Delete
'type' => 'sortable',
[1034] Fix | Delete
'mode' => 'checkbox',
[1035] Fix | Delete
'title' => esc_html__( 'Meta data', 'herald' ),
[1036] Fix | Delete
'subtitle' => esc_html__( 'Check which meta data to show for posts in Layout A1', 'herald' ),
[1037] Fix | Delete
'options' => herald_get_meta_opts(),
[1038] Fix | Delete
'default' => herald_get_default_option( 'lay_a1_meta' ),
[1039] Fix | Delete
),
[1040] Fix | Delete
[1041] Fix | Delete
array(
[1042] Fix | Delete
'id' => 'lay_a1_excerpt',
[1043] Fix | Delete
'type' => 'switch',
[1044] Fix | Delete
'title' => esc_html__( 'Layout A1 excerpt', 'herald' ),
[1045] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to show a text excerpt for posts in Layout A1', 'herald' ),
[1046] Fix | Delete
'default' => herald_get_default_option( 'lay_a1_excerpt' ),
[1047] Fix | Delete
),
[1048] Fix | Delete
[1049] Fix | Delete
[1050] Fix | Delete
array(
[1051] Fix | Delete
'id' => 'lay_a1_excerpt_limit',
[1052] Fix | Delete
'type' => 'text',
[1053] Fix | Delete
'class' => 'small-text',
[1054] Fix | Delete
'title' => esc_html__( 'Excerpt limit', 'herald' ),
[1055] Fix | Delete
'subtitle' => esc_html__( 'Specify your excerpt limit', 'herald' ),
[1056] Fix | Delete
'desc' => esc_html__( 'Note: Value represents number of characters', 'herald' ),
[1057] Fix | Delete
'default' => herald_get_default_option( 'lay_a1_excerpt_limit' ),
[1058] Fix | Delete
'validate' => 'numeric',
[1059] Fix | Delete
'required' => array( 'lay_a1_excerpt', '=', true )
[1060] Fix | Delete
),
[1061] Fix | Delete
[1062] Fix | Delete
array(
[1063] Fix | Delete
'id' => 'lay_a1_rm',
[1064] Fix | Delete
'type' => 'switch',
[1065] Fix | Delete
'title' => esc_html__( 'Read more link', 'herald' ),
[1066] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to enable read more link for Layout A1', 'herald' ),
[1067] Fix | Delete
'default' => herald_get_default_option( 'lay_a1_rm' ),
[1068] Fix | Delete
'required' => array( 'lay_a1_excerpt', '=', true )
[1069] Fix | Delete
),
[1070] Fix | Delete
[1071] Fix | Delete
array(
[1072] Fix | Delete
'id' => 'img_size_lay_a1_ratio',
[1073] Fix | Delete
'type' => 'radio',
[1074] Fix | Delete
'title' => esc_html__( 'Layout A1 image ratio', 'herald' ),
[1075] Fix | Delete
'subtitle' => esc_html__( 'Choose an image ratio for Layout A1', 'herald' ),
[1076] Fix | Delete
'options' => herald_get_image_ratio_opts(),
[1077] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_a1_ratio' ),
[1078] Fix | Delete
),
[1079] Fix | Delete
[1080] Fix | Delete
array(
[1081] Fix | Delete
'id' => 'img_size_lay_a1_custom',
[1082] Fix | Delete
'type' => 'text',
[1083] Fix | Delete
'class' => 'small-text',
[1084] Fix | Delete
'title' => esc_html__( 'Layout A1 image custom ratio', 'herald' ),
[1085] Fix | Delete
'subtitle' => esc_html__( 'Specify your custom ratio for Layout A1 images', 'herald' ),
[1086] Fix | Delete
'desc' => esc_html__( 'Note: put 3:4 or 2:1 or any custom ratio you want', 'herald' ),
[1087] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_a1_custom' ),
[1088] Fix | Delete
'required' => array( 'img_size_lay_a1_ratio', '=', 'custom' ),
[1089] Fix | Delete
),
[1090] Fix | Delete
[1091] Fix | Delete
)
[1092] Fix | Delete
)
[1093] Fix | Delete
);
[1094] Fix | Delete
[1095] Fix | Delete
/* Layout A2 */
[1096] Fix | Delete
Redux::setSection( $opt_name , array(
[1097] Fix | Delete
'icon' => '',
[1098] Fix | Delete
'title' => esc_html__( 'Layout A2', 'herald' ),
[1099] Fix | Delete
'heading' => false,
[1100] Fix | Delete
'subsection' => true,
[1101] Fix | Delete
'fields' => array(
[1102] Fix | Delete
[1103] Fix | Delete
array(
[1104] Fix | Delete
'id' => 'section_layout_a2',
[1105] Fix | Delete
'type' => 'herald_section',
[1106] Fix | Delete
'title' => '<img src="'.esc_url( get_parent_theme_file_uri( '/assets/img/admin/layout_a2.png' ) ).'"/>'.esc_html__( 'Layout A2', 'herald' ),
[1107] Fix | Delete
'subtitle' => esc_html__( 'Manage options for posts displayed in Layout A2', 'herald' ),
[1108] Fix | Delete
'indent' => false
[1109] Fix | Delete
),
[1110] Fix | Delete
[1111] Fix | Delete
array(
[1112] Fix | Delete
'id' => 'lay_a2_cat',
[1113] Fix | Delete
'type' => 'switch',
[1114] Fix | Delete
'title' => esc_html__( 'Display category', 'herald' ),
[1115] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to display a category link for posts in Layout A2', 'herald' ),
[1116] Fix | Delete
'default' => herald_get_default_option( 'lay_a2_cat' ),
[1117] Fix | Delete
),
[1118] Fix | Delete
[1119] Fix | Delete
array(
[1120] Fix | Delete
'id' => 'lay_a2_meta',
[1121] Fix | Delete
'type' => 'sortable',
[1122] Fix | Delete
'mode' => 'checkbox',
[1123] Fix | Delete
'title' => esc_html__( 'Meta data', 'herald' ),
[1124] Fix | Delete
'subtitle' => esc_html__( 'Check which meta data to show for posts in Layout A2', 'herald' ),
[1125] Fix | Delete
'options' => herald_get_meta_opts(),
[1126] Fix | Delete
'default' => herald_get_default_option( 'lay_a2_meta' ),
[1127] Fix | Delete
),
[1128] Fix | Delete
[1129] Fix | Delete
array(
[1130] Fix | Delete
'id' => 'lay_a2_excerpt',
[1131] Fix | Delete
'type' => 'switch',
[1132] Fix | Delete
'title' => esc_html__( 'Layout A2 excerpt', 'herald' ),
[1133] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to show a text excerpt for posts in Layout A2', 'herald' ),
[1134] Fix | Delete
'default' => herald_get_default_option( 'lay_a2_excerpt' ),
[1135] Fix | Delete
),
[1136] Fix | Delete
[1137] Fix | Delete
[1138] Fix | Delete
array(
[1139] Fix | Delete
'id' => 'lay_a2_excerpt_limit',
[1140] Fix | Delete
'type' => 'text',
[1141] Fix | Delete
'class' => 'small-text',
[1142] Fix | Delete
'title' => esc_html__( 'Excerpt limit', 'herald' ),
[1143] Fix | Delete
'subtitle' => esc_html__( 'Specify your excerpt limit', 'herald' ),
[1144] Fix | Delete
'desc' => esc_html__( 'Note: Value represents number of characters', 'herald' ),
[1145] Fix | Delete
'default' => herald_get_default_option( 'lay_a2_excerpt_limit' ),
[1146] Fix | Delete
'validate' => 'numeric',
[1147] Fix | Delete
'required' => array( 'lay_a2_excerpt', '=', true )
[1148] Fix | Delete
),
[1149] Fix | Delete
[1150] Fix | Delete
array(
[1151] Fix | Delete
'id' => 'lay_a2_rm',
[1152] Fix | Delete
'type' => 'switch',
[1153] Fix | Delete
'title' => esc_html__( 'Read more link', 'herald' ),
[1154] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to enable read more link for Layout A2', 'herald' ),
[1155] Fix | Delete
'default' => herald_get_default_option( 'lay_a2_rm' ),
[1156] Fix | Delete
'required' => array( 'lay_a2_excerpt', '=', true )
[1157] Fix | Delete
),
[1158] Fix | Delete
[1159] Fix | Delete
array(
[1160] Fix | Delete
'id' => 'img_size_lay_a2_ratio',
[1161] Fix | Delete
'type' => 'radio',
[1162] Fix | Delete
'title' => esc_html__( 'Layout A2 image ratio', 'herald' ),
[1163] Fix | Delete
'subtitle' => esc_html__( 'Choose an image ratio for Layout A2', 'herald' ),
[1164] Fix | Delete
'options' => herald_get_image_ratio_opts(),
[1165] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_a2_ratio' ),
[1166] Fix | Delete
),
[1167] Fix | Delete
[1168] Fix | Delete
array(
[1169] Fix | Delete
'id' => 'img_size_lay_a2_custom',
[1170] Fix | Delete
'type' => 'text',
[1171] Fix | Delete
'class' => 'small-text',
[1172] Fix | Delete
'title' => esc_html__( 'Layout A2 image custom ratio', 'herald' ),
[1173] Fix | Delete
'subtitle' => esc_html__( 'Specify your custom ratio for Layout A2 images', 'herald' ),
[1174] Fix | Delete
'desc' => esc_html__( 'Note: put 3:4 or 2:1 or any custom ratio you want', 'herald' ),
[1175] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_a2_custom' ),
[1176] Fix | Delete
'required' => array( 'img_size_lay_a2_ratio', '=', 'custom' ),
[1177] Fix | Delete
),
[1178] Fix | Delete
[1179] Fix | Delete
)
[1180] Fix | Delete
)
[1181] Fix | Delete
);
[1182] Fix | Delete
[1183] Fix | Delete
/* Layout A3 */
[1184] Fix | Delete
Redux::setSection( $opt_name , array(
[1185] Fix | Delete
'icon' => '',
[1186] Fix | Delete
'title' => esc_html__( 'Layout A3', 'herald' ),
[1187] Fix | Delete
'heading' => false,
[1188] Fix | Delete
'subsection' => true,
[1189] Fix | Delete
'fields' => array(
[1190] Fix | Delete
[1191] Fix | Delete
array(
[1192] Fix | Delete
'id' => 'section_layout_a3',
[1193] Fix | Delete
'type' => 'herald_section',
[1194] Fix | Delete
'title' => '<img src="'.esc_url( get_parent_theme_file_uri( '/assets/img/admin/layout_a3.png' ) ).'"/>'.esc_html__( 'Layout A3', 'herald' ),
[1195] Fix | Delete
'subtitle' => esc_html__( 'Manage options for posts displayed in Layout A3', 'herald' ),
[1196] Fix | Delete
'indent' => false
[1197] Fix | Delete
),
[1198] Fix | Delete
[1199] Fix | Delete
array(
[1200] Fix | Delete
'id' => 'lay_a3_cat',
[1201] Fix | Delete
'type' => 'switch',
[1202] Fix | Delete
'title' => esc_html__( 'Display category', 'herald' ),
[1203] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to display a category link for posts in Layout A3', 'herald' ),
[1204] Fix | Delete
'default' => herald_get_default_option( 'lay_a3_cat' ),
[1205] Fix | Delete
),
[1206] Fix | Delete
[1207] Fix | Delete
array(
[1208] Fix | Delete
'id' => 'lay_a3_meta',
[1209] Fix | Delete
'type' => 'sortable',
[1210] Fix | Delete
'mode' => 'checkbox',
[1211] Fix | Delete
'title' => esc_html__( 'Meta data', 'herald' ),
[1212] Fix | Delete
'subtitle' => esc_html__( 'Check which meta data to show for posts in Layout A3', 'herald' ),
[1213] Fix | Delete
'options' => herald_get_meta_opts(),
[1214] Fix | Delete
'default' => herald_get_default_option( 'lay_a3_meta' ),
[1215] Fix | Delete
),
[1216] Fix | Delete
[1217] Fix | Delete
array(
[1218] Fix | Delete
'id' => 'lay_a3_excerpt',
[1219] Fix | Delete
'type' => 'switch',
[1220] Fix | Delete
'title' => esc_html__( 'Layout A3 excerpt', 'herald' ),
[1221] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to show a text excerpt for posts in Layout A3', 'herald' ),
[1222] Fix | Delete
'default' => herald_get_default_option( 'lay_a3_excerpt' ),
[1223] Fix | Delete
),
[1224] Fix | Delete
[1225] Fix | Delete
[1226] Fix | Delete
array(
[1227] Fix | Delete
'id' => 'lay_a3_excerpt_limit',
[1228] Fix | Delete
'type' => 'text',
[1229] Fix | Delete
'class' => 'small-text',
[1230] Fix | Delete
'title' => esc_html__( 'Excerpt limit', 'herald' ),
[1231] Fix | Delete
'subtitle' => esc_html__( 'Specify your excerpt limit', 'herald' ),
[1232] Fix | Delete
'desc' => esc_html__( 'Note: Value represents number of characters', 'herald' ),
[1233] Fix | Delete
'default' => herald_get_default_option( 'lay_a3_excerpt_limit' ),
[1234] Fix | Delete
'validate' => 'numeric',
[1235] Fix | Delete
'required' => array( 'lay_a3_excerpt', '=', true )
[1236] Fix | Delete
),
[1237] Fix | Delete
[1238] Fix | Delete
array(
[1239] Fix | Delete
'id' => 'lay_a3_rm',
[1240] Fix | Delete
'type' => 'switch',
[1241] Fix | Delete
'title' => esc_html__( 'Read more link', 'herald' ),
[1242] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to enable read more link for Layout A3', 'herald' ),
[1243] Fix | Delete
'default' => herald_get_default_option( 'lay_a3_rm' ),
[1244] Fix | Delete
'required' => array( 'lay_a3_excerpt', '=', true )
[1245] Fix | Delete
),
[1246] Fix | Delete
[1247] Fix | Delete
array(
[1248] Fix | Delete
'id' => 'img_size_lay_a3_ratio',
[1249] Fix | Delete
'type' => 'radio',
[1250] Fix | Delete
'title' => esc_html__( 'Layout A3 image ratio', 'herald' ),
[1251] Fix | Delete
'subtitle' => esc_html__( 'Choose an image ratio for Layout A3', 'herald' ),
[1252] Fix | Delete
'options' => herald_get_image_ratio_opts(),
[1253] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_a3_ratio' ),
[1254] Fix | Delete
),
[1255] Fix | Delete
[1256] Fix | Delete
array(
[1257] Fix | Delete
'id' => 'img_size_lay_a3_custom',
[1258] Fix | Delete
'type' => 'text',
[1259] Fix | Delete
'class' => 'small-text',
[1260] Fix | Delete
'title' => esc_html__( 'Layout A3 image custom ratio', 'herald' ),
[1261] Fix | Delete
'subtitle' => esc_html__( 'Specify your custom ratio for Layout A3 images', 'herald' ),
[1262] Fix | Delete
'desc' => esc_html__( 'Note: put 3:4 or 2:1 or any custom ratio you want', 'herald' ),
[1263] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_a3_custom' ),
[1264] Fix | Delete
'required' => array( 'img_size_lay_a3_ratio', '=', 'custom' ),
[1265] Fix | Delete
),
[1266] Fix | Delete
)
[1267] Fix | Delete
)
[1268] Fix | Delete
);
[1269] Fix | Delete
[1270] Fix | Delete
[1271] Fix | Delete
[1272] Fix | Delete
/* Layout B */
[1273] Fix | Delete
Redux::setSection( $opt_name , array(
[1274] Fix | Delete
'icon' => '',
[1275] Fix | Delete
'title' => esc_html__( 'Layout B', 'herald' ),
[1276] Fix | Delete
'heading' => false,
[1277] Fix | Delete
'subsection' => true,
[1278] Fix | Delete
'fields' => array(
[1279] Fix | Delete
[1280] Fix | Delete
array(
[1281] Fix | Delete
'id' => 'section_layout_b',
[1282] Fix | Delete
'type' => 'herald_section',
[1283] Fix | Delete
'title' => '<img src="'.esc_url( get_parent_theme_file_uri( '/assets/img/admin/layout_b.png' ) ).'"/>'.esc_html__( 'Layout B', 'herald' ),
[1284] Fix | Delete
'subtitle' => esc_html__( 'Manage options for posts displayed in Layout B', 'herald' ),
[1285] Fix | Delete
'indent' => false
[1286] Fix | Delete
),
[1287] Fix | Delete
[1288] Fix | Delete
array(
[1289] Fix | Delete
'id' => 'lay_b_cat',
[1290] Fix | Delete
'type' => 'switch',
[1291] Fix | Delete
'title' => esc_html__( 'Display category', 'herald' ),
[1292] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to display a category link for posts in Layout B', 'herald' ),
[1293] Fix | Delete
'default' => herald_get_default_option( 'lay_b_cat' ),
[1294] Fix | Delete
),
[1295] Fix | Delete
[1296] Fix | Delete
array(
[1297] Fix | Delete
'id' => 'lay_b_meta',
[1298] Fix | Delete
'type' => 'sortable',
[1299] Fix | Delete
'mode' => 'checkbox',
[1300] Fix | Delete
'title' => esc_html__( 'Meta data', 'herald' ),
[1301] Fix | Delete
'subtitle' => esc_html__( 'Check which meta data to show for posts in Layout B', 'herald' ),
[1302] Fix | Delete
'options' => herald_get_meta_opts(),
[1303] Fix | Delete
'default' => herald_get_default_option( 'lay_b_meta' ),
[1304] Fix | Delete
),
[1305] Fix | Delete
[1306] Fix | Delete
array(
[1307] Fix | Delete
'id' => 'lay_b_excerpt',
[1308] Fix | Delete
'type' => 'switch',
[1309] Fix | Delete
'title' => esc_html__( 'Layout B excerpt', 'herald' ),
[1310] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to show a text excerpt for posts in Layout B', 'herald' ),
[1311] Fix | Delete
'default' => herald_get_default_option( 'lay_b_excerpt' ),
[1312] Fix | Delete
),
[1313] Fix | Delete
[1314] Fix | Delete
array(
[1315] Fix | Delete
'id' => 'lay_b_excerpt_limit',
[1316] Fix | Delete
'type' => 'text',
[1317] Fix | Delete
'class' => 'small-text',
[1318] Fix | Delete
'title' => esc_html__( 'Excerpt limit', 'herald' ),
[1319] Fix | Delete
'subtitle' => esc_html__( 'Specify your excerpt limit', 'herald' ),
[1320] Fix | Delete
'desc' => esc_html__( 'Note: Value represents number of characters', 'herald' ),
[1321] Fix | Delete
'default' => herald_get_default_option( 'lay_b_excerpt_limit' ),
[1322] Fix | Delete
'validate' => 'numeric',
[1323] Fix | Delete
'required' => array( 'lay_b_excerpt', '=', true )
[1324] Fix | Delete
),
[1325] Fix | Delete
[1326] Fix | Delete
array(
[1327] Fix | Delete
'id' => 'lay_b_rm',
[1328] Fix | Delete
'type' => 'switch',
[1329] Fix | Delete
'title' => esc_html__( 'Read more link', 'herald' ),
[1330] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to enable read more link for Layout B', 'herald' ),
[1331] Fix | Delete
'default' => herald_get_default_option( 'lay_b_rm' ),
[1332] Fix | Delete
'required' => array( 'lay_b_excerpt', '=', true )
[1333] Fix | Delete
),
[1334] Fix | Delete
[1335] Fix | Delete
array(
[1336] Fix | Delete
'id' => 'img_size_lay_b_ratio',
[1337] Fix | Delete
'type' => 'radio',
[1338] Fix | Delete
'title' => esc_html__( 'Layout B image ratio', 'herald' ),
[1339] Fix | Delete
'subtitle' => esc_html__( 'Choose an image ratio for Layout B', 'herald' ),
[1340] Fix | Delete
'options' => herald_get_image_ratio_opts(),
[1341] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_b_ratio' ),
[1342] Fix | Delete
),
[1343] Fix | Delete
[1344] Fix | Delete
array(
[1345] Fix | Delete
'id' => 'img_size_lay_b_custom',
[1346] Fix | Delete
'type' => 'text',
[1347] Fix | Delete
'class' => 'small-text',
[1348] Fix | Delete
'title' => esc_html__( 'Layout B image custom ratio', 'herald' ),
[1349] Fix | Delete
'subtitle' => esc_html__( 'Specify your custom ratio for Layout B images', 'herald' ),
[1350] Fix | Delete
'desc' => esc_html__( 'Note: put 3:4 or 2:1 or any custom ratio you want', 'herald' ),
[1351] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_b_custom' ),
[1352] Fix | Delete
'required' => array( 'img_size_lay_b_ratio', '=', 'custom' ),
[1353] Fix | Delete
),
[1354] Fix | Delete
)
[1355] Fix | Delete
)
[1356] Fix | Delete
);
[1357] Fix | Delete
[1358] Fix | Delete
[1359] Fix | Delete
/* Layout B1 */
[1360] Fix | Delete
Redux::setSection( $opt_name , array(
[1361] Fix | Delete
'icon' => '',
[1362] Fix | Delete
'title' => esc_html__( 'Layout B1', 'herald' ),
[1363] Fix | Delete
'heading' => false,
[1364] Fix | Delete
'subsection' => true,
[1365] Fix | Delete
'fields' => array(
[1366] Fix | Delete
[1367] Fix | Delete
array(
[1368] Fix | Delete
'id' => 'section_layout_b1',
[1369] Fix | Delete
'type' => 'herald_section',
[1370] Fix | Delete
'title' => '<img src="'.esc_url( get_parent_theme_file_uri( '/assets/img/admin/layout_b1.png' ) ).'"/>'.esc_html__( 'Layout B1', 'herald' ),
[1371] Fix | Delete
'subtitle' => esc_html__( 'Manage options for posts displayed in Layout B1', 'herald' ),
[1372] Fix | Delete
'indent' => false
[1373] Fix | Delete
),
[1374] Fix | Delete
[1375] Fix | Delete
array(
[1376] Fix | Delete
'id' => 'lay_b1_cat',
[1377] Fix | Delete
'type' => 'switch',
[1378] Fix | Delete
'title' => esc_html__( 'Display category', 'herald' ),
[1379] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to display a category link for posts in Layout B1', 'herald' ),
[1380] Fix | Delete
'default' => herald_get_default_option( 'lay_b1_cat' ),
[1381] Fix | Delete
),
[1382] Fix | Delete
[1383] Fix | Delete
array(
[1384] Fix | Delete
'id' => 'lay_b1_meta',
[1385] Fix | Delete
'type' => 'sortable',
[1386] Fix | Delete
'mode' => 'checkbox',
[1387] Fix | Delete
'title' => esc_html__( 'Meta data', 'herald' ),
[1388] Fix | Delete
'subtitle' => esc_html__( 'Check which meta data to show for posts in Layout B1', 'herald' ),
[1389] Fix | Delete
'options' => herald_get_meta_opts(),
[1390] Fix | Delete
'default' => herald_get_default_option( 'lay_b1_meta' ),
[1391] Fix | Delete
),
[1392] Fix | Delete
[1393] Fix | Delete
array(
[1394] Fix | Delete
'id' => 'lay_b1_excerpt',
[1395] Fix | Delete
'type' => 'switch',
[1396] Fix | Delete
'title' => esc_html__( 'Layout B1 excerpt', 'herald' ),
[1397] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to show a text excerpt for posts in Layout B1', 'herald' ),
[1398] Fix | Delete
'default' => herald_get_default_option( 'lay_b1_excerpt' ),
[1399] Fix | Delete
),
[1400] Fix | Delete
[1401] Fix | Delete
[1402] Fix | Delete
array(
[1403] Fix | Delete
'id' => 'lay_b1_excerpt_limit',
[1404] Fix | Delete
'type' => 'text',
[1405] Fix | Delete
'class' => 'small-text',
[1406] Fix | Delete
'title' => esc_html__( 'Excerpt limit', 'herald' ),
[1407] Fix | Delete
'subtitle' => esc_html__( 'Specify your excerpt limit', 'herald' ),
[1408] Fix | Delete
'desc' => esc_html__( 'Note: Value represents number of characters', 'herald' ),
[1409] Fix | Delete
'default' => herald_get_default_option( 'lay_b1_excerpt_limit' ),
[1410] Fix | Delete
'validate' => 'numeric',
[1411] Fix | Delete
'required' => array( 'lay_b1_excerpt', '=', true )
[1412] Fix | Delete
),
[1413] Fix | Delete
[1414] Fix | Delete
array(
[1415] Fix | Delete
'id' => 'lay_b1_rm',
[1416] Fix | Delete
'type' => 'switch',
[1417] Fix | Delete
'title' => esc_html__( 'Read more link', 'herald' ),
[1418] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to enable read more link for Layout B1', 'herald' ),
[1419] Fix | Delete
'default' => herald_get_default_option( 'lay_b1_rm' ),
[1420] Fix | Delete
'required' => array( 'lay_b1_excerpt', '=', true )
[1421] Fix | Delete
),
[1422] Fix | Delete
[1423] Fix | Delete
array(
[1424] Fix | Delete
'id' => 'img_size_lay_b1_ratio',
[1425] Fix | Delete
'type' => 'radio',
[1426] Fix | Delete
'title' => esc_html__( 'Layout B1 image ratio', 'herald' ),
[1427] Fix | Delete
'subtitle' => esc_html__( 'Choose an image ratio for Layout B1', 'herald' ),
[1428] Fix | Delete
'options' => herald_get_image_ratio_opts(),
[1429] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_b1_ratio' ),
[1430] Fix | Delete
),
[1431] Fix | Delete
[1432] Fix | Delete
array(
[1433] Fix | Delete
'id' => 'img_size_lay_b1_custom',
[1434] Fix | Delete
'type' => 'text',
[1435] Fix | Delete
'class' => 'small-text',
[1436] Fix | Delete
'title' => esc_html__( 'Layout B1 image custom ratio', 'herald' ),
[1437] Fix | Delete
'subtitle' => esc_html__( 'Specify your custom ratio for Layout B1 images', 'herald' ),
[1438] Fix | Delete
'desc' => esc_html__( 'Note: put 3:4 or 2:1 or any custom ratio you want', 'herald' ),
[1439] Fix | Delete
'default' => herald_get_default_option( 'img_size_lay_b1_custom' ),
[1440] Fix | Delete
'required' => array( 'img_size_lay_b1_ratio', '=', 'custom' ),
[1441] Fix | Delete
),
[1442] Fix | Delete
[1443] Fix | Delete
)
[1444] Fix | Delete
)
[1445] Fix | Delete
);
[1446] Fix | Delete
[1447] Fix | Delete
/* Layout C */
[1448] Fix | Delete
Redux::setSection( $opt_name , array(
[1449] Fix | Delete
'icon' => '',
[1450] Fix | Delete
'title' => esc_html__( 'Layout C', 'herald' ),
[1451] Fix | Delete
'heading' => false,
[1452] Fix | Delete
'subsection' => true,
[1453] Fix | Delete
'fields' => array(
[1454] Fix | Delete
[1455] Fix | Delete
array(
[1456] Fix | Delete
'id' => 'section_layout_c',
[1457] Fix | Delete
'type' => 'herald_section',
[1458] Fix | Delete
'title' => '<img src="'.esc_url( get_parent_theme_file_uri( '/assets/img/admin/layout_c.png' ) ).'"/>'.esc_html__( 'Layout C', 'herald' ),
[1459] Fix | Delete
'subtitle' => esc_html__( 'Manage options for posts displayed in Layout C', 'herald' ),
[1460] Fix | Delete
'indent' => false
[1461] Fix | Delete
),
[1462] Fix | Delete
[1463] Fix | Delete
array(
[1464] Fix | Delete
'id' => 'lay_c_cat',
[1465] Fix | Delete
'type' => 'switch',
[1466] Fix | Delete
'title' => esc_html__( 'Display category', 'herald' ),
[1467] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to display a category link for posts in Layout C', 'herald' ),
[1468] Fix | Delete
'default' => herald_get_default_option( 'lay_c_cat' ),
[1469] Fix | Delete
),
[1470] Fix | Delete
[1471] Fix | Delete
array(
[1472] Fix | Delete
'id' => 'lay_c_meta',
[1473] Fix | Delete
'type' => 'sortable',
[1474] Fix | Delete
'mode' => 'checkbox',
[1475] Fix | Delete
'title' => esc_html__( 'Meta data', 'herald' ),
[1476] Fix | Delete
'subtitle' => esc_html__( 'Check which meta data to show for posts in Layout C', 'herald' ),
[1477] Fix | Delete
'options' => herald_get_meta_opts(),
[1478] Fix | Delete
'default' => herald_get_default_option( 'lay_c_meta' ),
[1479] Fix | Delete
),
[1480] Fix | Delete
[1481] Fix | Delete
array(
[1482] Fix | Delete
'id' => 'lay_c_excerpt',
[1483] Fix | Delete
'type' => 'switch',
[1484] Fix | Delete
'title' => esc_html__( 'Layout C excerpt', 'herald' ),
[1485] Fix | Delete
'subtitle' => esc_html__( 'Check if you want to show a text excerpt for posts in Layout C', 'herald' ),
[1486] Fix | Delete
'default' => herald_get_default_option( 'lay_c_excerpt' ),
[1487] Fix | Delete
),
[1488] Fix | Delete
[1489] Fix | Delete
[1490] Fix | Delete
array(
[1491] Fix | Delete
'id' => 'lay_c_excerpt_limit',
[1492] Fix | Delete
'type' => 'text',
[1493] Fix | Delete
'class' => 'small-text',
[1494] Fix | Delete
'title' => esc_html__( 'Excerpt limit', 'herald' ),
[1495] Fix | Delete
'subtitle' => esc_html__( 'Specify your excerpt limit', 'herald' ),
[1496] Fix | Delete
'desc' => esc_html__( 'Note: Value represents number of characters', 'herald' ),
[1497] Fix | Delete
'default' => herald_get_default_option( 'lay_c_excerpt_limit' ),
[1498] Fix | Delete
'validate' => 'numeric',
[1499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function