Exemplo n.º 1
0
 public static function app()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->controller = ControllerPage::getInstance();
     $this->model = ModelPage::getInstance();
     require_once CORE_ROOT . THREEPARTY_REQ . "template" . DIRECTORY_SEPARATOR . "Template.php";
     $this->template = new \Template(WEBSITE_ROOT . 'templates' . DIRECTORY_SEPARATOR, WEBSITE_ROOT . 'cache/');
 }
Exemplo n.º 3
0
 public function getModelPage()
 {
     if (!class_exists('ModelPage')) {
         require_once CORE_ROOT . MODELS . DIRECTORY_SEPARATOR . 'ModelPage.php';
     }
     if (!is_object($this->page)) {
         $this->page = ModelPage::getInstance();
     }
 }
Exemplo n.º 4
0
 function _init()
 {
     self::$relationships = array('user' => ORM::belongs_to('\\Model\\Blog'));
     self::$fields = array('id' => ORM::field('auto[11]'), 'title' => ORM::field('char[3,155]', array('required', 'max_length[155]')), 'summary' => ORM::field('string', array(), 'LONGTEXT'), 'content_raw' => ORM::field('string', array(), 'LONGTEXT'), 'content' => ORM::field('string', array(), 'LONGTEXT'), 'modified' => ORM::field('datetime'), 'created' => ORM::field('datetime'));
     $this->ts_fields = array('modified', '[created]');
 }
Exemplo n.º 5
0
<?php

/**
 * Vue: Sidebar principale (à gauche)
 *
 * Menu de navigation vertical à gauche de la page, contient aussi le logo
 * 
 */
$listePages = ModelPage::obtenirTout($utilisateurConnecter);
?>

<aside class="main-sidebar">
<!-- sidebar: style dispo dans le fichier sidebar.less -->
<section class="sidebar">
    <!-- LOGO -->
    <div class="hidden-xs hidden-sm sosP-logo">
        <div class="pull-left favicon ">
                <img src="vue/images/favicon.png">
        </div>
        <!-- Logo Sos Préma -->
        <div class="pull-left logo">
            <img src="vue/images/logo.png" title="Sos Préma">
        </div>
    </div>
    <!-- Panneau utilisateur -->
    <div class="user-panel">
        <div class="pull-left image">
            <img src="<?php 
echo $utilisateurConnecter->avatar;
?>
" class="img-circle" alt="User Image">
Exemplo n.º 6
0
<?php

/**
 * Vue En tête du site 
 *   
 *  inclusion des classes bootstrap  + vérification du type d'écran, etc...   + appel des menus / sidebar
 *                   
 */
$pageActuelle = ModelPage::rechercherPage($_GET['action']);
?>
<script src="vue/style/plugins/feedback/td.js" async data-trackduck-id="56afbc363c5a000f1734a9c3"></script>
<!DOCTYPE html>
<html>
  <head>
    <!-- Utilisation de UTF-8 -->
    <meta charset="utf-8">
    
    <!-- Vérification concernant internet explorer -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    
    <!-- Titre du site -->
    <title>SOS Pr&eacutema - Espace b&eacuten&eacutevoles</title>
    
    <!-- Favicon -->
    <link rel="icon" type="image/png" href="/vue/images/favicon.png">
    
    <!-- Paramètres pour que l'affichage soit responsive -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    
    <!-- Chargement des éléments de Bootstrap -->
         <!-- jQuery -->