Skip to content

Commit

Permalink
remove /
Browse files Browse the repository at this point in the history
  • Loading branch information
akilli committed Oct 3, 2024
1 parent 7339ac7 commit ae158fc
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/attr.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function frontend(array $data, array $attr, bool $wrap = false, bool $label = fa

if (!empty($data['_error'][$attr['id']])) {
$div['data-invalid'] = true;
$html .= html\element('div', ['class' => 'error'], implode('<br />', $data['_error'][$attr['id']]));
$html .= html\element('div', ['class' => 'error'], implode('<br>', $data['_error'][$attr['id']]));
}

return $wrap ? html\element('div', $div, $html) : $html;
Expand Down
2 changes: 1 addition & 1 deletion src/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
function element(string $tag, array $attrs = [], string|int|float $val = null): string
{
return '<' . $tag . attr($attrs) . (in_array($tag, APP['html.void']) ? '/>' : '>' . $val . '</' . $tag . '>');
return '<' . $tag . attr($attrs) . '>' . (in_array($tag, APP['html.void']) ? '' : $val . '</' . $tag . '>');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tpl/filter.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ $data = $var('data');
name="q"
value="<?php echo $var('q'); ?>"
placeholder="<?php echo i18n('Search Term'); ?>"
/>
>
</div>
<?php endif; ?>
</fieldset>
<div class="action">
<a href="<?php echo data('request', 'url'); ?>" role="button"><?php echo i18n('Reset'); ?></a>
<input type="submit" value="<?php echo i18n('Submit'); ?>"/>
<input type="submit" value="<?php echo i18n('Submit'); ?>">
</div>
</form>
</details>
Expand Down
4 changes: 2 additions & 2 deletions tpl/form.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $title = $var('title');
<?php if (in_array($app['action'], ['add', 'edit']) && allowed(id($app['entity_id'], 'index'))): ?>
<a href="<?php echo actionurl($app['entity_id'], 'index'); ?>" role="button"><?php echo i18n('Back'); ?></a>
<?php endif; ?>
<input type="submit" value="<?php echo i18n('Submit'); ?>"/>
<input type="hidden" name="token" value="<?php echo token(); ?>"/>
<input type="submit" value="<?php echo i18n('Submit'); ?>">
<input type="hidden" name="token" value="<?php echo token(); ?>">
</div>
</form>
28 changes: 14 additions & 14 deletions tpl/head.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ namespace app;
$desc = $var('description');
$isAdmin = data('app', 'action') !== 'view';
?>
<meta charset="utf-8"/>
<meta charset="utf-8">
<?php if ($desc): ?>
<meta name="description" content="<?php echo $desc; ?>"/>
<meta name="description" content="<?php echo $desc; ?>">
<?php endif; ?>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0">
<title><?php echo $var('title'); ?></title>
<meta name="msapplication-config" content="<?php echo guiurl('icon/browserconfig.xml'); ?>"/>
<link rel="manifest" href="<?php echo guiurl('icon/manifest.json'); ?>"/>
<link rel="shortcut icon" href="<?php echo guiurl('icon/favicon.ico'); ?>"/>
<link rel="shortcut icon" href="<?php echo guiurl('icon/favicon.png'); ?>" sizes="32x32"/>
<link rel="shortcut icon" href="<?php echo guiurl('cms.svg'); ?>" sizes="any"/>
<link rel="mask-icon" href="<?php echo guiurl('cms.svg'); ?>"/>
<link rel="apple-touch-icon-precomposed" href="<?php echo guiurl('icon/apple-touch.png'); ?>"/>
<link rel="stylesheet" href="<?php echo guiurl('base.css'); ?>"/>
<link rel="stylesheet" href="<?php echo guiurl('all.css'); ?>"/>
<meta name="msapplication-config" content="<?php echo guiurl('icon/browserconfig.xml'); ?>">
<link rel="manifest" href="<?php echo guiurl('icon/manifest.json'); ?>">
<link rel="shortcut icon" href="<?php echo guiurl('icon/favicon.ico'); ?>">
<link rel="shortcut icon" href="<?php echo guiurl('icon/favicon.png'); ?>" sizes="32x32">
<link rel="shortcut icon" href="<?php echo guiurl('cms.svg'); ?>" sizes="any">
<link rel="mask-icon" href="<?php echo guiurl('cms.svg'); ?>">
<link rel="apple-touch-icon-precomposed" href="<?php echo guiurl('icon/apple-touch.png'); ?>">
<link rel="stylesheet" href="<?php echo guiurl('base.css'); ?>">
<link rel="stylesheet" href="<?php echo guiurl('all.css'); ?>">
<script src="<?php echo guiurl('all.js'); ?>" type="module"></script>
<?php if ($isAdmin): ?>
<link rel="stylesheet" href="<?php echo guiurl('editor/editor.css'); ?>"/>
<link rel="stylesheet" href="<?php echo guiurl('admin.css'); ?>"/>
<link rel="stylesheet" href="<?php echo guiurl('editor/editor.css'); ?>">
<link rel="stylesheet" href="<?php echo guiurl('admin.css'); ?>">
<script src="<?php echo guiurl('admin.js'); ?>" type="module"></script>
<?php endif; ?>
2 changes: 1 addition & 1 deletion tpl/header.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace app;
$title = $var('title');
?>
<header id="header">
<a href="<?php echo url(); ?>" class="name"><img src="<?php echo guiurl('cms-dark.svg'); ?>" alt="akıllı CMS"/></a>
<a href="<?php echo url(); ?>" class="name"><img src="<?php echo guiurl('cms-dark.svg'); ?>" alt="akıllı CMS"></a>
<?php if ($title): ?>
<h1><?php echo $title; ?></h1>
<?php endif; ?>
Expand Down

0 comments on commit ae158fc

Please sign in to comment.