Example #1
0
 public function render($name, $noInclude = false)
 {
     if ($noInclude) {
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/' . $name . '.php';
     } else {
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/header.php';
         //replace by navbar eventually
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/navbar/index.php';
         //Rudementary alerts
         if (isset($this->alerts)) {
             foreach ($this->alerts as $alert) {
                 Controller::anAlert($alert[0], $alert[1]);
             }
         }
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/' . $name . '.php';
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/footer.php';
     }
 }
Example #2
0
 public function render($name, $noInclude = false)
 {
     if ($noInclude === 'fuckoff') {
         require PATH . 'views/' . $name . '.php';
     } elseif ($noInclude) {
         require PATH . 'views/header.php';
         require PATH . 'views/' . $name . '.php';
     } else {
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/header.php';
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/navbar/index.php';
         //Rudementary alerts
         if (isset($this->alerts)) {
             foreach ($this->alerts as $alert) {
                 Controller::anAlert($alert[0], $alert[1]);
             }
         }
         if (isset($this->qtips)) {
             foreach ($this->qtips as $qtip) {
                 Controller::aTooltip($qtip[0]);
             }
         }
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/' . $name . '.php';
         /** @noinspection PhpIncludeInspection */
         /** @noinspection PhpIncludeInspection */
         require PATH . 'views/footer.php';
     }
 }
                                <input type="file" name="picture" class="upload" accept="image/*"/>
                                <input type="hidden" name="origin"
                                       value="<?php 
    echo ltrim($_GET['url'], 'public/') . '?g=' . $_GET['g'];
    ?>
"/>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php 
} else {
    Controller::anAlert('You\'re not a member of this group, therefore you can\'t post. Maybe join ' . $this->name . ' group?', 'warning');
}
?>

<div class="container-fluid">
    <div class="row">
        <div class=" jumbotron col-md-3 col-lg-3 col-xs-1 col-sm-1">
            <div class="media">
                <h4 class="media-heading">Group Description</h4>

                <p><?php 
echo $this->description;
?>
</p>
                <?php 
/**