1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 09:10:23 +02:00

HTML5 validation fixes.

This commit is contained in:
Cameron
2015-04-09 01:39:37 -07:00
parent 4c7c3dfd47
commit 1df3d1a2b0
4 changed files with 22 additions and 7 deletions

View File

@@ -65,9 +65,13 @@ function tablestyle($caption, $text, $id='', $info=array())
if($style == 'jumbotron')
{
echo '<div class="jumbotron">
<div class="container">
<h1>'.$caption.'</h1>
<p>'.$text.'</p>
<div class="container">';
if(!empty($caption))
{
echo '<h1>'.$caption.'</h1>';
}
echo '
'.$text.'
</div>
</div>';
return;
@@ -75,8 +79,14 @@ function tablestyle($caption, $text, $id='', $info=array())
if($style == 'col-md-4' || $style == 'col-md-6' || $style == 'col-md-8')
{
echo ' <div class="col-xs-12 '.$style.'">
<h2>'.$caption.'</h2>
echo ' <div class="col-xs-12 '.$style.'">';
if(!empty($caption))
{
echo '<h2>'.$caption.'</h2>';
}
echo '
'.$text.'
</div>';
return;