-
Notifications
You must be signed in to change notification settings - Fork 9
/
esvchroniclesandprophets.php
435 lines (425 loc) · 14 KB
/
esvchroniclesandprophets.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<?php
class bibleplan {
function getVersion() {
return '1.0.0';
}
function getId() {
return 'esvchroniclesandprophets';
}
function getAbbv() {
return 'ecp';
}
function getName() {
return 'Chronicles and Prophets';
}
function getInfo() {
$info = "Chronicles and Prophets<br /><a target='_new' href='http://www.esv.org/biblereadingplans'>www.esv.org</a>";
return $info;
}
function getData() {
$data = array(
1 => '1Chronicles 1',
2 => '1Chronicles 2',
3 => '1Chronicles 3',
4 => '1Chronicles 4',
5 => '1Chronicles 5',
6 => '1Chronicles 6',
7 => '1Chronicles 7',
8 => '1Chronicles 8',
9 => '1Chronicles 9',
10 => '1Chronicles 10',
11 => '1Chronicles 11',
12 => '1Chronicles 12',
13 => '1Chronicles 13',
14 => '1Chronicles 14',
15 => '1Chronicles 15:1-16:3',
16 => '1Chronicles 16:4-43',
17 => '1Chronicles 17',
18 => '1Chronicles 18-20',
19 => '1Chronicles 21:1-17',
20 => '1Chronicles 21:18-22:19',
21 => '1Chronicles 23-24',
22 => '1Chronicles 25',
23 => '1Chronicles 26',
24 => '1Chronicles 27',
25 => '1Chronicles 28',
26 => '1Chronicles 29:1-22a',
27 => '1Chronicles 29:22b-30',
28 => '2Chronicles 1',
29 => '2Chronicles 2',
30 => '2Chronicles 3',
31 => '2Chronicles 4',
32 => '2Chronicles 5',
33 => '2Chronicles 6',
34 => '2Chronicles 7',
35 => '2Chronicles 8',
36 => '2Chronicles 9',
37 => '2Chronicles 10',
38 => '2Chronicles 11',
39 => '2Chronicles 12',
40 => '2Chronicles 13',
41 => '2Chronicles 14',
42 => '2Chronicles 15',
43 => '2Chronicles 16',
44 => '2Chronicles 17',
45 => '2Chronicles 18:1-19:3',
46 => '2Chronicles 19:4-11',
47 => '2Chronicles 20',
48 => '2Chronicles 21',
49 => '2Chronicles 22',
50 => '2Chronicles 23',
51 => '2Chronicles 24',
52 => '2Chronicles 25',
53 => '2Chronicles 26',
54 => '2Chronicles 27',
55 => '2Chronicles 28',
56 => '2Chronicles 29',
57 => '2Chronicles 30',
58 => '2Chronicles 31',
59 => '2Chronicles 32',
60 => '2Chronicles 33',
61 => '2Chronicles 34',
62 => '2Chronicles 35:1-19',
63 => '2Chronicles 35:20-27',
64 => '2Chronicles 36',
65 => 'Ezra 1',
66 => 'Ezra 2',
67 => 'Ezra 3',
68 => 'Ezra 4',
69 => 'Ezra 5',
70 => 'Ezra 6',
71 => 'Ezra 7',
72 => 'Ezra 8',
73 => 'Ezra 9',
74 => 'Ezra 10',
75 => 'Nehemiah 1',
76 => 'Nehemiah 2',
77 => 'Nehemiah 3',
78 => 'Nehemiah 4',
79 => 'Nehemiah 5',
80 => 'Nehemiah 6',
81 => 'Nehemiah 7',
82 => 'Nehemiah 8',
83 => 'Nehemiah 9',
84 => 'Nehemiah 10',
85 => 'Nehemiah 11:1-12:26',
86 => 'Nehemiah 12:27-47',
87 => 'Nehemiah 13',
88 => 'Esther 1',
89 => 'Esther 2',
90 => 'Esther 3',
91 => 'Esther 4',
92 => 'Esther 5',
93 => 'Esther 6',
94 => 'Esther 7',
95 => 'Esther 8',
96 => 'Esther 9-10',
97 => 'Isaiah 1',
98 => 'Isaiah 2',
99 => 'Isaiah 3-4',
100 => 'Isaiah 5',
101 => 'Isaiah 6',
102 => 'Isaiah 7-8',
103 => 'Isaiah 9:1-7',
104 => 'Isaiah 9:8-10:34',
105 => 'Isaiah 11-12',
106 => 'Isaiah 13-14',
107 => 'Isaiah 15-16',
108 => 'Isaiah 17-18',
109 => 'Isaiah 19-20',
110 => 'Isaiah 21',
111 => 'Isaiah 22',
112 => 'Isaiah 23',
113 => 'Isaiah 24',
114 => 'Isaiah 25',
115 => 'Isaiah 26-27',
116 => 'Isaiah 28',
117 => 'Isaiah 29:1-30:17',
118 => 'Isaiah 30:18-32:20',
119 => 'Isaiah 33-34',
120 => 'Isaiah 35',
121 => 'Isaiah 36-37',
122 => 'Isaiah 38',
123 => 'Isaiah 39',
124 => 'Isaiah 40',
125 => 'Isaiah 41',
126 => 'Isaiah 42',
127 => 'Isaiah 43:1-44:5',
128 => 'Isaiah 44:6-28',
129 => 'Isaiah 45',
130 => 'Isaiah 46-47',
131 => 'Isaiah 48-49',
132 => 'Isaiah 50',
133 => 'Isaiah 51:1-52:12',
134 => 'Isaiah 52:13-53:12',
135 => 'Isaiah 54',
136 => 'Isaiah 55',
137 => 'Isaiah 56-57',
138 => 'Isaiah 58',
139 => 'Isaiah 59',
140 => 'Isaiah 60',
141 => 'Isaiah 61-62',
142 => 'Isaiah 63-64',
143 => 'Isaiah 65',
144 => 'Isaiah 66',
145 => 'Obadiah 1-14',
146 => 'Obadiah 15-21',
147 => 'Joel 1',
148 => 'Joel 2:1-17',
149 => 'Joel 2:18-27',
150 => 'Joel 2:28-3:21',
151 => 'Jonah 1',
152 => 'Jonah 2',
153 => 'Jonah 3',
154 => 'Jonah 4',
155 => 'Hosea 1:1-2:1',
156 => 'Hosea 2:2-23',
157 => 'Hosea 3',
158 => 'Hosea 4-5',
159 => 'Hosea 6-7',
160 => 'Hosea 8',
161 => 'Hosea 9',
162 => 'Hosea 10',
163 => 'Hosea 11:1-11',
164 => 'Hosea 11:12-13:16',
165 => 'Hosea 14',
166 => 'Amos 1:1-2:5',
167 => 'Amos 2:6-16',
168 => 'Amos 3',
169 => 'Amos 4',
170 => 'Amos 5',
171 => 'Amos 6',
172 => 'Amos 7-8',
173 => 'Amos 9',
174 => 'Micah 1-2',
175 => 'Micah 3',
176 => 'Micah 4',
177 => 'Micah 5',
178 => 'Micah 6',
179 => 'Micah 7:1-13',
180 => 'Micah 7:14-20',
181 => 'Nahum 1',
182 => 'Nahum 2:1-3:4',
183 => 'Nahum 3:5-19',
184 => 'Zephaniah 1:1-2:3',
185 => 'Zephaniah 2:4-15',
186 => 'Zephaniah 3:1-8',
187 => 'Zephaniah 3:9-20',
188 => 'Jeremiah 1:1-10',
189 => 'Jeremiah 1:11-19',
190 => 'Jeremiah 2:1-3:5',
191 => 'Jeremiah 3:6-4:4',
192 => 'Jeremiah 4:5-31',
193 => 'Jeremiah 5',
194 => 'Jeremiah 6',
195 => 'Jeremiah 7:1-8:3',
196 => 'Jeremiah 8:4-9:22',
197 => 'Jeremiah 9:23-10:25',
198 => 'Jeremiah 11:1-17',
199 => 'Jeremiah 11:18-12:17',
200 => 'Jeremiah 13',
201 => 'Jeremiah 14:1-15:9',
202 => 'Jeremiah 15:10-16:21',
203 => 'Jeremiah 17',
204 => 'Jeremiah 18',
205 => 'Jeremiah 19',
206 => 'Jeremiah 20',
207 => 'Jeremiah 21',
208 => 'Jeremiah 22:1-23:8',
209 => 'Jeremiah 23:9-40',
210 => 'Jeremiah 24',
211 => 'Jeremiah 25:1-14',
212 => 'Jeremiah 25:15-38',
213 => 'Jeremiah 26',
214 => 'Jeremiah 27-28',
215 => 'Jeremiah 29',
216 => 'Jeremiah 30',
217 => 'Jeremiah 31',
218 => 'Jeremiah 32',
219 => 'Jeremiah 33',
220 => 'Jeremiah 34',
221 => 'Jeremiah 35',
222 => 'Jeremiah 36',
223 => 'Jeremiah 37',
224 => 'Jeremiah 38',
225 => 'Jeremiah 39',
226 => 'Jeremiah 40-41',
227 => 'Jeremiah 42-43',
228 => 'Jeremiah 44-45',
229 => 'Jeremiah 46-47',
230 => 'Jeremiah 48',
231 => 'Jeremiah 49',
232 => 'Jeremiah 50',
233 => 'Jeremiah 51',
234 => 'Jeremiah 52',
235 => 'Lamentations 1',
236 => 'Lamentations 2',
237 => 'Lamentations 3',
238 => 'Lamentations 4',
239 => 'Lamentations 5',
240 => 'Habakkuk 1:1-11',
241 => 'Habakkuk 1:12-2:20',
242 => 'Habakkuk 3',
243 => 'Daniel 1',
244 => 'Daniel 2',
245 => 'Daniel 3',
246 => 'Daniel 4',
247 => 'Daniel 5',
248 => 'Daniel 6',
249 => 'Daniel 7',
250 => 'Daniel 8',
251 => 'Daniel 9',
252 => 'Daniel 10:1-11:1',
253 => 'Daniel 11:2-45',
254 => 'Daniel 12',
255 => 'Ezekiel 1',
256 => 'Ezekiel 2-3',
257 => 'Ezekiel 4:1-5:4',
258 => 'Ezekiel 5:5-17',
259 => 'Ezekiel 6',
260 => 'Ezekiel 7',
261 => 'Ezekiel 8',
262 => 'Ezekiel 9',
263 => 'Ezekiel 10:1-11:13',
264 => 'Ezekiel 11:14-25',
265 => 'Ezekiel 12',
266 => 'Ezekiel 13',
267 => 'Ezekiel 14-15',
268 => 'Ezekiel 16',
269 => 'Ezekiel 17',
270 => 'Ezekiel 18',
271 => 'Ezekiel 19',
272 => 'Ezekiel 20',
273 => 'Ezekiel 21',
274 => 'Ezekiel 22',
275 => 'Ezekiel 23',
276 => 'Ezekiel 24',
277 => 'Ezekiel 25',
278 => 'Ezekiel 26',
279 => 'Ezekiel 27',
280 => 'Ezekiel 28',
281 => 'Ezekiel 29-30',
282 => 'Ezekiel 31',
283 => 'Ezekiel 32',
284 => 'Ezekiel 33',
285 => 'Ezekiel 34',
286 => 'Ezekiel 35',
287 => 'Ezekiel 36',
288 => 'Ezekiel 37',
289 => 'Ezekiel 38',
290 => 'Ezekiel 39',
291 => 'Ezekiel 40',
292 => 'Ezekiel 41-42',
293 => 'Ezekiel 43',
294 => 'Ezekiel 44',
295 => 'Ezekiel 45',
296 => 'Ezekiel 46',
297 => 'Ezekiel 47:1-12',
298 => 'Ezekiel 47:13-48:35',
299 => 'Haggai 1',
300 => 'Haggai 2',
301 => 'Zechariah 1:1-17',
302 => 'Zechariah 1:18-2:13',
303 => 'Zechariah 3',
304 => 'Zechariah 4',
305 => 'Zechariah 5',
306 => 'Zechariah 6',
307 => 'Zechariah 7',
308 => 'Zechariah 8',
309 => 'Zechariah 9',
310 => 'Zechariah 10',
311 => 'Zechariah 11',
312 => 'Zechariah 12-13',
313 => 'Zechariah 14',
314 => 'Malachi 1:1-2:9',
315 => 'Malachi 2:10-17',
316 => 'Malachi 3:1-12',
317 => 'Malachi 3:13-4:6',
318 => 'Isaiah 1',
319 => 'Isaiah 2',
320 => 'Isaiah 3-4',
321 => 'Isaiah 5',
322 => 'Isaiah 6',
323 => 'Isaiah 7-8',
324 => 'Isaiah 9:1-7',
325 => 'Isaiah 9:8-10:34',
326 => 'Isaiah 11-12',
327 => 'Isaiah 13-14',
328 => 'Isaiah 15-16',
329 => 'Isaiah 17-18',
330 => 'Isaiah 19-20',
331 => 'Isaiah 21',
332 => 'Isaiah 22',
333 => 'Isaiah 23',
334 => 'Isaiah 24',
335 => 'Isaiah 25',
336 => 'Isaiah 26-27',
337 => 'Isaiah 28',
338 => 'Isaiah 29:1-30:17',
339 => 'Isaiah 30:18-32:20',
340 => 'Isaiah 33-34',
341 => 'Isaiah 35',
342 => 'Isaiah 36-37',
343 => 'Isaiah 38',
344 => 'Isaiah 39',
345 => 'Isaiah 40',
346 => 'Isaiah 41',
347 => 'Isaiah 42',
348 => 'Isaiah 43:1-44:5',
349 => 'Isaiah 44:6-28',
350 => 'Isaiah 45',
351 => 'Isaiah 46-47',
352 => 'Isaiah 48-49',
353 => 'Isaiah 50',
354 => 'Isaiah 51:1-52:12',
355 => 'Isaiah 52:13-53:12',
356 => 'Isaiah 54',
357 => 'Isaiah 55',
358 => 'Isaiah 56-57',
359 => 'Isaiah 58',
360 => 'Isaiah 59',
361 => 'Isaiah 60',
362 => 'Isaiah 61-62',
363 => 'Isaiah 63-64',
364 => 'Isaiah 65',
365 => 'Isaiah 66'
);
return $data;
}
}
$bibleplan = new bibleplan();
/**
* Prepares data for json by trimming it and removing any partial verse annotations
* @param array $day Bible references for a day
* @return array Pepared bible references
*/
function prepare($day) {
$references = array();
foreach (explode(";", $day) as $ref) {
if (strpos($ref, ",") !== FALSE) {
foreach (explode(",", $ref) as $str) {
$references[] = trim(preg_replace('/[a-z]{1}(?=-|$)/', '', $str));
}
} else {
$references[] = trim(preg_replace('/[a-z]{1}(?=-|$)/', '', $ref));
}
}
return $references;
}
$plan = array();
$tmp_plan = array();
$tmp_plan2 = array();
foreach ($bibleplan->getData() as $day) {
$d = prepare($day);
$tmp_plan[] = $d;
$tmp_plan2 = array_merge($tmp_plan2, $d);
}
$plan['data2'] = $tmp_plan;
$plan['data'] = $tmp_plan2;
$plan['id'] = $bibleplan->getId();
$plan['abbv'] = $bibleplan->getAbbv();
$plan['name'] = $bibleplan->getName();
$plan['info'] = $bibleplan->getInfo();
$plan_json = json_encode($plan);
file_put_contents($bibleplan->getId().'.json', $plan_json);
?>