Welcome Guest, Not a member yet? Register   Sign In
Visual bootstrap editor
#5

Mine is similar but there are special views that need to be taken into account. But all shown pages go through this function:

function showpage($type = '', $data = array())
{
if($type == '') { $type = 'one-block'; }
$headerView = 'headers/header';
$footerView = 'footers/footer';

$CI =& get_instance();
$CI->load->view($headerView, $data);
$CI->load->view($type, $data);
$CI->load->view($footerView, $data);

unset($data);

return(true);
}

####################################
the one-block view is simply:

<div class="row">
<div class="col-12">
<?php if($title == '') { print ''; } else { print '<h1 class="entry-title">' . $title . '</h1>'; } ?>
<?php echo $content; ?>

</div>
</div>
Reply


Messages In This Thread
Visual bootstrap editor - by clancey - 11-01-2020, 09:09 AM
RE: Visual bootstrap editor - by captain-sensible - 11-01-2020, 10:39 AM
RE: Visual bootstrap editor - by clancey - 11-01-2020, 11:11 AM
RE: Visual bootstrap editor - by captain-sensible - 11-01-2020, 11:56 AM
RE: Visual bootstrap editor - by clancey - 11-01-2020, 12:37 PM
RE: Visual bootstrap editor - by InsiteFX - 11-01-2020, 02:38 PM
RE: Visual bootstrap editor - by nc03061981 - 11-01-2020, 05:56 PM
RE: Visual bootstrap editor - by clancey - 11-02-2020, 04:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB