| @@ -24,10 +24,11 @@ | ||
| 24 | 24 | } |
| 25 | 25 | }else{ |
| 26 | 26 | $value=$title; |
| 27 | 27 | } |
| 28 | + $target = ' target="'.($target != 'false' ? '_blank':'_self').'"'; | |
| 28 | 29 | if ($type == 'link') { |
| 29 | - $out = '<a class="btn ' . $style . ' ' . $class . '" href="' . $link . '" target="' . ($target) . '">' . $value . '</a>'; | |
| 30 | + $out = '<a class="btn ' . $style . ' ' . $class . '" href="' . $link . '" ' . ($target) . '>' . $value . '</a>'; | |
| 30 | 31 | } elseif ($type == 'button') { |
| 31 | 32 | $out = '<button class="btn ' . $style . ' ' . $class . '" >' . $value . '</button>'; |
| 32 | 33 | } |
| 33 | 34 | return $out; |