ver. 0.285: Tpl → Shared\Tpl namespace, CurlServer removal, thumb.php fix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 00:13:59 +01:00
parent 6922b66eed
commit d2c9d97710
144 changed files with 385 additions and 285 deletions

View File

@@ -5,21 +5,21 @@ class Html
{
public static function form_text( array $params = array() )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> params = $params;
return $tpl -> render( 'html/form-text' );
}
public static function input_switch( array $params = array() )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> params = $params;
return $tpl -> render( 'html/input-switch' );
}
public static function select( array $params = array() )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> params = $params;
return $tpl -> render( 'html/select' );
}
@@ -32,7 +32,7 @@ class Html
$params = array_merge( $defaults, $params );
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> params = $params;
return $tpl -> render( 'html/textarea' );
}
@@ -45,7 +45,7 @@ class Html
$params = array_merge( $defaults, $params );
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> params = $params;
return $tpl -> render( 'html/input-icon' );
}
@@ -58,7 +58,7 @@ class Html
$params = array_merge( $defaults, $params );
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> params = $params;
return $tpl -> render( 'html/input' );
}
@@ -71,7 +71,7 @@ class Html
$params = array_merge( $defaults, $params );
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> params = $params;
return $tpl -> render( 'html/button' );
}
@@ -86,7 +86,7 @@ class Html
$params = array_merge( $defaults, $params );
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> params = $params;
return $tpl -> render( 'html/panel' );
}