<?php
/**
* @package   Gridbox
* @author    Balbooa http://www.balbooa.com/
* @copyright Copyright @ Balbooa
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;

defined('_JEXEC') or die;

$str = '<div class="ba-edit-section row-fluid" id="ba-edit-section">'.$this->item->params.'</div>';
echo $this->schema;
?>
<div class="row-fluid">
<?php
if ($this->canEdit) {
?>
    <a class="edit-page-btn" target="_blank"
        href="<?php echo Uri::root().'index.php?option=com_gridbox&view=editor&tmpl=component&id='.$this->item->id; ?>">
        <i class="ba-icons ba-icon-settings"></i>
        <span class="ba-tooltip ba-top"><?php echo Text::_('EDIT_PAGE'); ?></span>
    </a>
<?php
}
?>
    <div class="ba-gridbox-page row-fluid">
<?php
        echo str_replace('[blog_content]', $str, $this->pageLayout);
?>
    </div>
</div>