File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,14 @@ public function setFluid() {
115115 return $ this ->addToProperty ("class " , "fluid " );
116116 }
117117
118+ /**
119+ *
120+ * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
121+ */
122+ public function asHeader (){
123+ return $ this ->addToProperty ("class " , "header " );
124+ }
125+
118126 /**
119127 * show it is currently the active user selection
120128 * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
Original file line number Diff line number Diff line change 33namespace Ajax \semantic \html \collections \menus ;
44
55use Ajax \semantic \html \collections \menus \HtmlMenu ;
6- use Ajax \bootstrap \html \HtmlLink ;
76use Ajax \semantic \html \elements \HtmlIcon ;
7+ use Ajax \semantic \html \elements \html5 \HtmlLink ;
88
99/**
1010 * Semantic Menu component with only labeled icons
Original file line number Diff line number Diff line change 99use Ajax \semantic \html \base \constants \Wide ;
1010use Ajax \common \html \html5 \HtmlImg ;
1111use Ajax \semantic \html \modules \HtmlDropdown ;
12- use Ajax \common \html \BaseHtml ;
1312use Ajax \semantic \html \modules \HtmlPopup ;
1413use Ajax \semantic \html \elements \HtmlIcon ;
1514use Ajax \semantic \html \elements \html5 \HtmlLink ;
@@ -98,6 +97,9 @@ public function generateMenuAsItem($menu, $header=null) {
9897 $ item ->addContent ($ headerItem );
9998 $ this ->_itemHeader =$ headerItem ;
10099 }
100+ if (\is_array ($ menu )){
101+ $ menu =new HtmlMenu ("menu- " . $ this ->identifier . "- " . $ count ,$ menu );
102+ }
101103 $ menu ->setClass ("menu " );
102104 $ item ->addContent ($ menu );
103105 return $ item ;
You can’t perform that action at this time.
0 commit comments