mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 19:36:52 +03:00
[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
|
||||
class HTMLUtils {
|
||||
|
||||
public static function getHelperButtonFormat($value, $name){
|
||||
return '<button type="submit" name="format" value="' . $value . '">' . $name . '</button>';
|
||||
}
|
||||
|
||||
public static function getHelperButtonsFormat($formats){
|
||||
$buttons = '';
|
||||
|
||||
foreach( $formats as $name => $infos ){
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue