FsPages laisse la place à Gitlab Pages ! Voici la documentation pour vous en servir : https://docs.gitlab.com/ce/user/project/pages/index.html

Public
Snippet $381 authored by Denis Chenu

checkBeforeCloseHtml2

checkBeforeCloseHtml2.php
<?php
/**
 * checkBeforeCloseHtml2 : bug report
 *
 * @author Denis Chenu <denis@sondages.pro>
 * @copyright 2017 Denis Chenu <http://www.sondages.pro>
 * @license WTFPL
 * @version 0.0.1
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
class checkBeforeCloseHtml2 extends PluginBase {

  static protected $description = 'Did it work ?';
  static protected $name = 'checkBeforeCloseHtml2';


  public function init()
  {
    $this->subscribe('beforeCloseHtml');
  }

  /**
   * Set the alias to get the file
   */
  public function beforeCloseHtml()
  {
    $now=microtime(1);
    $time=date('H:i:s.',$now).(int)(($now-(int)$now)*1000000);
    $html=$this->event->get("html")."<p class='alert alert-warning'>Did you see it from 2, time : {$time}</p>";
    $this->event->set("html",$html);
    tracevar($html);
  }
}