Exemple #1
0
 public function renderView()
 {
     $header = new HeaderView();
     $header->render();
     $this->view->render();
     $footer = new FooterView();
     $footer->render();
 }
Exemple #2
0
 public function render()
 {
     $header = new HeaderView();
     $header->render();
     echo "  <div  id='top' class='callbacks_container'>\n\n                <!--- slider --->\n\n                    <link rel='stylesheet' href='/myshop/css/flickity.css' media='screen'>\n                    <script src='/myshop/js/flickity.js'></script>\n\n                    <div class='slider'>\n                        <div class='slider-cell'>\n                            <img src='images/slide1.png' alt=''>\n                            <div class='caption'>\n                                <div class='slide-text-info'>\n                                    <h1>WILL HELM</h1>\n                                    <label>SCHNAPS</label>\n                                    <a class='slide-btn' href='#'><span>99.90\$</span> <small>GET NOW</small><label> </label></a>\n                                </div>\n                            </div>\n                        </div>\n                        <div class='slider-cell'>\n                            <img src='images/slide2.png' alt=''>\n                            <div class='caption'>\n                                <div class='slide-text-info'>\n                                    <h1>FAST NER2</h1>\n                                    <label>Dress Shoe</label>\n                                    <a class='slide-btn' href='#'><span>99.90\$</span> <small>GET NOW</small><label> </label></a>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n\n\n\n                <!--- end slider --->\n\n                ";
     //render Products
     $products = new Products();
     $productsview = new ProductView($products);
     $productsview->render();
     echo "</div>";
     echo "<script>\n                    \$('.slider').flickity({\n                          // options\n                          cellAlign: 'left',\n                          contain: true,\n                          wrapAround: true,\n                          autoPlay: 10000\n                        });\n                    </script>";
     $footer = new FooterView();
     $footer->render();
 }
Exemple #3
0
 */
require_once "inc/autoloader.php";
session_start();
?>
<!DOCTYPE html>
<html>
    <head>
        <?php 
require_once "inc/head.php";
?>
    </head>
    <body>
        <!--- menu and header --->
        <?php 
$header = new HeaderView();
$header->render();
?>
        <!--- end menu and header --->

        <!--- content --->
        <?php 
$routecontroller->renderView();
//update headerinfo (buttons)
$header->update();
?>
        <!--- end content --->

        <!--- footer --->
        <?php 
$footer = new FooterView();
$footer->render();