forked from blallo/rss-bridge
[HTMLUtils] Remove getHelperButtonFormat
This commit is contained in:
parent
5d66af7a29
commit
a6da16feb7
1 changed files with 1 additions and 5 deletions
|
@ -1,16 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
class HTMLUtils {
|
class HTMLUtils {
|
||||||
|
|
||||||
public static function getHelperButtonFormat($value, $name){
|
|
||||||
return '<button type="submit" name="format" value="' . $value . '">' . $name . '</button>';
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getHelperButtonsFormat($formats){
|
public static function getHelperButtonsFormat($formats){
|
||||||
$buttons = '';
|
$buttons = '';
|
||||||
|
|
||||||
foreach( $formats as $name => $infos ){
|
foreach( $formats as $name => $infos ){
|
||||||
if ( isset($infos['name']) )
|
if ( isset($infos['name']) )
|
||||||
$buttons .= HTMLUtils::getHelperButtonFormat($name, $infos['name']) . PHP_EOL;
|
$buttons .= '<button type="submit" name="format" value="' . $name . '">' . $infos['name'] . '</button>' . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $buttons;
|
return $buttons;
|
||||||
|
|
Loading…
Reference in a new issue