Lines Matching refs:element

195     foreach($arr as $li_id => $element){
197 if (empty($element) ||
198 !is_array($element) ||
199 !isset($element["text"]) ||
200 (empty($element["href"]) &&
201 empty($element["wiki"]))){
207 if (!empty($element["href"])){
209 $interim = "<a href=\"".hsc($element["href"])."\""; //@TODO: real URL encoding
211 if (!empty($element["nofollow"])){
215 if (substr($element["href"], 0, 4) === "http" ||
216 substr($element["href"], 0, 3) === "ftp"){
220 if (!empty($element["accesskey"])){
221 …$interim .= " accesskey=\"".hsc($element["accesskey"])."\" title=\"[ALT+".hsc(strtoupper($element[…
223 $interim .= "><span>".hsc($element["text"])."</span></a>";
225 }else if (!empty($element["wiki"])){
226 …$interim = "<a href=\"".hsc(wl(cleanID($element["wiki"])))."\"><span>".hsc($element["text"])."</sp…
229 $elements[] = "\n <li id=\"".hsc($li_id)."\"".(!empty($element["class"])
230 … ? " class=\"".hsc($element["class"])."\""
236 foreach ($elements as $element){
237 echo $element;
359 foreach($arr as $li_id => $element){
361 if (empty($element) ||
362 !is_array($element) ||
363 !isset($element["img"]) ||
364 !isset($element["href"])){
370 $interim = "<a href=\"".hsc($element["href"])."\""; //@TODO: real URL encoding
372 if (!empty($element["nofollow"])){
376 if (!empty($element["title"])){
377 $interim .= " title=\"".hsc($element["title"])."\"";
379 $interim .= " target=\"_blank\"><img src=\"".hsc($element["img"])."\"";
381 if (!empty($element["width"]) &&
382 !empty($element["height"])){
383 … $interim .= " width=\"".(int)$element["width"]."\" height=\"".(int)$element["height"]."\"";
386 if (!empty($element["title"])){
387 $interim .= " title=\"".hsc($element["title"])."\" alt=\"".hsc($element["title"])."\"";
400 foreach ($elements as $element){
401 echo $element;