forked from blallo/rss-bridge
[HTMLUtils] Change getHelperButtonsFormat to private scope
This commit is contained in:
parent
a6da16feb7
commit
646ae57326
1 changed files with 11 additions and 11 deletions
|
@ -1,17 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
class HTMLUtils {
|
class HTMLUtils {
|
||||||
|
|
||||||
public static function getHelperButtonsFormat($formats){
|
|
||||||
$buttons = '';
|
|
||||||
|
|
||||||
foreach( $formats as $name => $infos ){
|
|
||||||
if ( isset($infos['name']) )
|
|
||||||
$buttons .= '<button type="submit" name="format" value="' . $name . '">' . $infos['name'] . '</button>' . PHP_EOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $buttons;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function displayBridgeCard($bridgeName, $formats, $isActive = true){
|
public static function displayBridgeCard($bridgeName, $formats, $isActive = true){
|
||||||
$bridgeElement = Bridge::create($bridgeName);
|
$bridgeElement = Bridge::create($bridgeName);
|
||||||
|
|
||||||
|
@ -126,6 +115,17 @@ CARD;
|
||||||
return $card;
|
return $card;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static function getHelperButtonsFormat($formats){
|
||||||
|
$buttons = '';
|
||||||
|
|
||||||
|
foreach( $formats as $name => $infos ){
|
||||||
|
if ( isset($infos['name']) )
|
||||||
|
$buttons .= '<button type="submit" name="format" value="' . $name . '">' . $infos['name'] . '</button>' . PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $buttons;
|
||||||
|
}
|
||||||
|
|
||||||
private static function getFormHeader($bridge){
|
private static function getFormHeader($bridge){
|
||||||
return <<<EOD
|
return <<<EOD
|
||||||
<form method="GET" action="?">
|
<form method="GET" action="?">
|
||||||
|
|
Loading…
Reference in a new issue