separated modifiers, added standard

This commit is contained in:
2020-12-07 06:21:31 +08:00
parent 5c11fc0552
commit 92f6e190dc
5 changed files with 35 additions and 33 deletions

View File

@@ -0,0 +1,25 @@
<?php
class APIgoatListModifiers
{
static function init($atts, $content = null)
{
$APIgoatFetchAPI = new APIgoatFetchAPI();
$Behaviors = $APIgoatFetchAPI->fetchBehaviors();
/*if (isset($Behaviors['debug'])) {
echo "<br>" . preprint($Behaviors['debug']) . "<br>";
}
if (isset($Behaviors['messages'])) {
echo "<br>" . preprint($Behaviors['messages']) . "<br>";
}*/
if ($Behaviors['data']) {
$table = APIgoatDoc::getDocs($Behaviors['data'], ['Code' => 'Parameters']);
return $content . div($table, '', "class='site-main'");
} else {
return $content . "<br>Error" . preprint($Behaviors);
}
}
}