Exemplo n.º 1
0
 public function makeHTML()
 {
     global $p;
     parent::makeHTML();
     if (!in_array('/lib/vfolder/css/vf.css', $p->css)) {
         $p->css[] = '/lib/vfolder/css/vf.css';
     }
     if (!in_array('/lib/js/jquery.hoverIntent.js', $p->js)) {
         $p->js[] = '/lib/js/jquery.hoverIntent.js';
     }
     if (!in_array('/lib/vfolder/js/vf.js', $p->js)) {
         $p->js[] = '/lib/vfolder/js/vf.js';
     }
 }
Exemplo n.º 2
0
 /**
  *  @global $p  \Sky\Page
  */
 public function makeHTML()
 {
     global $p;
     if (!$this->identifier) {
         $this->identifier = 'vf-gallery-' . self::$count . '-' . md5(rand());
     }
     self::$count++;
     $this->setMemToken();
     parent::makeHTML();
     if (!in_array('/lib/vfolder/css/vf.css', $p->css)) {
         $p->css[] = '/lib/vfolder/css/vf.css';
     }
     if (!in_array('/lib/vfolder/js/vf.js', $p->js)) {
         $p->js[] = '/lib/vfolder/js/vf.js';
     }
     if ($this->contextMenu) {
         $p->css[] = '/lib/jquery.contextMenu/jquery.contextMenu.css';
         $p->js[] = '/lib/jquery.contextMenu/jquery.contextMenu.js';
     }
 }