Found a bug that occurs when teachers have no title.
If teacher has no title, then their name appears as:
"Firstname Surname -"
on the teacherdisplay.. this is because we assume a title which would give:
"Firstname Surname - Title".
Change needs to be made to default.php in both:
com_biblestudy\views\teacherdisplay\tmpl
and
com_biblestudy\views\teacherlist\tmpl
In teachersdisplay, line 42 should be changed to:
<img src="<?php echo $image->path;?>" width="<?php echo $image->width;?>" height="<?php echo $image->height;?>" border="1" alt="<?php echo $teacher->teachername; if ($teacher->title) { echo ' - '.$teacher->title; } ?>" />
and line 51 should be changed to:
<?php if ($teacher->title) { echo ' - '.$teacher->title; }?></td></tr>
similar change in teacherlist - coming later...
Update: seems the forum didnt like the php code, so i've attached the file instead.
Rename the file to default.php and put in the teacherdisplay/tmpl/ directory.