1. Question 1
a) Answer 1
b) Answer 2
1. Question 2
a) 2 Answer 1
b) 2 Answer 2
$lines = file('quest.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
Array
(
[0] => 1. Question 1
[1] => a) Answer 1
[2] => b) Answer 2
[3] => 1. Question 2
[4] => a) 2 Answer 1
[5] => b) 2 Answer 2
)
ob_start();
require( THEMES_DIR . $theme . '/index.php' );
$content = ob_get_contents();
ob_end_clean();
die($content);