PHP Classes

File: App/Views/Layout/Content.php

Recommend this page to a friend!
  Classes of Maicon gonçalez   Potato PHP MVC Framework   App/Views/Layout/Content.php   Download  
File: App/Views/Layout/Content.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Potato PHP MVC Framework
Framework to develop PHP MVC applications
Author: By
Last change:
Date: 3 years ago
Size: 1,229 bytes
 

Contents

Class file image Download
<?php
   
use \System\Libraries\HtmlBlocks as HtmlBlocks;
?>

<?php include BASE_PATH_VIEWS.$layout ?>

<?php include BASE_PATH_VIEWS."Layout/Header.php" ?>


<?php
    $Blocks
= HtmlBlocks::getInstance()->getBlocks("header_title", 0);
    if (
is_array($Blocks)) {
        foreach (
$Blocks as $block) {
            echo
$block;
        }
    }
?>


<?php
$block_header_title
= HtmlBlocks::getInstance()->getBlocks("header_title", 0);
if (!
is_null($block_header_title) && !empty($block_header_title)){
   
$block_icon_header = HtmlBlocks::getInstance()->getBlocks("icon_header", 0);
    if (!
is_null($block_header_title) && !empty($block_header_title)){
        echo
$block_icon_header;
    }else{
        echo
HtmlBlocks::getInstance()->getBlocks("logo_menu", 0);
    }

    echo
HtmlBlocks::getInstance()->getBlocks("header_title_top", 0);
    echo
HtmlBlocks::getInstance()->getBlocks("header_title", 0);

    echo
getFlashError();
    echo
getFlashSuccess();
    echo
getFlashWarning();
}
?>

<?php
    $Blocks
= HtmlBlocks::getInstance()->getBlocks("content");
    if (
is_array($Blocks)) {
        foreach (
$Blocks as $block) {
            echo
$block;
        }
    }
?>

<?php include BASE_PATH_VIEWS."Layout/Footer.php" ?>