示例#1
0
function include_style()
{
    global $app;
    if ($app->getMode() != 'production') {
        echo Html::style(Location::css('build.css'));
        echo Html::style(Location::to('bower_components/components-font-awesome/css/font-awesome.css'));
        echo Html::style(Location::to('bower_components/formstone/dist/css/background.css'));
        echo Html::style(Location::to('bower_components/formstone/dist/css/navigation.css'));
        echo Html::style(Location::to('bower_components/formstone/dist/css/carousel.css'));
        //echo Html::style( Location::to('bower_components/formstone/dist/css/checkbox.css') );
        //echo Html::style( Location::to('bower_components/formstone/dist/css/dropdown.css') );
    } else {
        echo Html::style(Location::css('build.min.css'));
    }
}
示例#2
0
 /**
  * @dataProvider aProvider
  */
 public function testA($expected, $text, $href, array $options = [])
 {
     $this->assertEquals($expected, \Helpers\Html::a($text, $href, $options));
 }
示例#3
0
 /**
  * (es) Devuelve el html del elemeto(item)
  * (it) Ritorna il html del elemento(item) menu
  *
  * @return string
  */
 public function render()
 {
     $li = '';
     if ($this->visible === true) {
         if ($this->subMenu instanceof Menu) {
             $liSubMenu = $this->subMenu->render();
             $this->setActiveFromSubMenu();
         }
         $this->setActive();
         $li = '<li';
         if ($this->isActive === true) {
             $li .= ' class="' . $this->activeClass . '"';
         }
         $li .= '>' . Html::a($this->label, $this->href, $this->htmlOptions);
         if (isset($liSubMenu)) {
             $li .= $liSubMenu;
         }
         $li .= '</li>';
     }
     return $li;
 }