Exemplo n.º 1
0
 public function addJavascriptInclude($relativePath)
 {
     $node = new keyvaluenode("script");
     $node->addKeyValue("type", "text/javascript");
     $node->addKeyValue("src", $relativePath);
     $this->addChildren($node);
 }
Exemplo n.º 2
0
 public function getHeadNodes()
 {
     $nodes = array();
     $node = new keyvaluenode("script");
     $node->addKeyValue("src", "//maps.google.com/maps/api/js");
     $nodes[] = $node;
     return $nodes;
 }
Exemplo n.º 3
0
 public function addCssInclude($relativePath)
 {
     $node = new keyvaluenode("link");
     $node->addKeyValue("rel", "stylesheet");
     $node->addKeyValue("type", "text/css");
     $node->addKeyValue("href", $relativePath);
     $this->addChildren($node);
 }