The Daily Text page
Yesterday, a friend in the US sent me a file containing the TMS schedule as well as the es2007 (English) in Excel format. As I was still patching this site together I thought why not use the file in Wordpress, and that was it.
Currently, the page only shows today’s scripture + comments. And I added the weekly reading schedule at the bottom. If you feel something else could be added feel free to contact me.
[ php Code ]
-
-
$dq = ‘"’;
-
$p_verse = ‘/^(.+?)\?(\w+?\.\s\d+:\d+\.)\s\s/’;
-
$r_verse = ‘<div class="contenttitle"><strong>$1</strong> — <em>$2</em>
-
</div>’;
-
$p_ref = ‘/(w\s\d.+?)$/’;
-
$r_ref = ‘<p aligh="right"><em>$1</em></p>’;
-
$p_tms = ‘/^TMS: (.*?)\s(\d+)-(.*)/’;
-
$r_tms = ‘<strong>Bible reading (TMS):</strong> $1: $2-$3′;
-
-
$sql = "SELECT subject, description FROM `ad_dtext_tms` WHERE (";
-
$sql .= ‘ (`start_date` = ‘.$dq .$today.$dq. ‘ AND `subject` = "Daily Text" ) ‘;
-
$sql .= ‘ OR ( `start_date` = ‘.$dq . $this_week .$dq. ‘ AND `subject` = ‘.$dq.‘TMS Reading’.$dq.‘ ) )’;
-
if ($row[’subject’] == ‘Daily Text’) { $daily_text = $row[‘description’]; }
-
if ($row[’subject’] == ‘TMS Reading’) { $tms_reading = $row[‘description’]; }
-
}
-
‘;
-
‘;
Post a comment
You must be logged in to post a comment.