コード例 #1
0
ファイル: functions.php プロジェクト: netdust/ntdst-project
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
ファイル: HtmlTest.php プロジェクト: jamieynonan/helpers
 /**
  * @dataProvider aProvider
  */
 public function testA($expected, $text, $href, array $options = [])
 {
     $this->assertEquals($expected, \Helpers\Html::a($text, $href, $options));
 }
コード例 #3
0
ファイル: Item.php プロジェクト: jamieynonan/php-simple-menu
 /**
  * (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;
 }