mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
65 lines
4.6 KiB
HTML
65 lines
4.6 KiB
HTML
<?php if (!defined("RX_VERSION")) exit(); ?><?php $this->config->version = 2; ?>
|
|
|
|
|
|
<div><?php (function($__dir, $__path, $__vars = null) { $__tpl = new \Rhymix\Framework\Template($__dir, $__path, "html"); if ($__vars) $__tpl->setVars($__vars); echo $__tpl->compile(); })("common/tpl", 'refresh.html'); ?></div>
|
|
<div><?php $this->_v2_loadResource('^/common/js/plugins/ckeditor/'); ?></div>
|
|
<?php $this->_v2_loadResource('css/style.scss', 'print', '', []); ?>
|
|
|
|
<?php
|
|
$__Context->foo = 'FOOFOOFOO';
|
|
?>
|
|
<?php
|
|
$__Context->bar = ['Rhy', 'miX', 'is', 'da', 'BEST!'];
|
|
?>
|
|
|
|
{{ $foo }}
|
|
|
|
|
|
<form action="<?php echo htmlspecialchars(\RX_BASEURL, \ENT_QUOTES, 'UTF-8', false); ?>" method="post">
|
|
<input type="hidden" name="_rx_csrf_token" value="<?php echo \Rhymix\Framework\Session::getGenericToken(); ?>" />
|
|
<input type="text"<?php if (Context::getInstance()->get('foo')): ?> required="required"<?php endif; ?>>
|
|
<input type="text" value="<?php echo htmlspecialchars($__Context->bar[0] ?? '', \ENT_QUOTES, 'UTF-8', false); ?>"<?php if ($__Context->bar[3] === 'da'): ?> required="required"<?php endif; ?> />
|
|
</form>
|
|
|
|
<div<?php if (!(isset($__Context->baz))): ?> class="foobar"<?php endif; ?>>
|
|
<?php if ($__Context->foo || $__Context->bar): ?>
|
|
<p>Hello <?php if ($__Context->bar): ?><?php echo $__Context->foo ?? ''; ?><?php endif; ?></p>
|
|
<p><?php echo htmlspecialchars(implode('|', array_map(function($i) { return strtoupper($i); }, $__Context->bar)), \ENT_QUOTES, 'UTF-8', false); ?></p>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<?php ob_start(); $__last_fragment_name = 'rhymix'; ?>
|
|
<?php $__tmp_64b3371f38fea1 = Context::get('bar') ?? []; if($__tmp_64b3371f38fea1): $__loop_64b3371f38fea1 = $this->_v2_initLoopVar("64b3371f38fea1", $__tmp_64b3371f38fea1); foreach ($__tmp_64b3371f38fea1 as $__Context->k => $__Context->val): ?>
|
|
<div>
|
|
<?php if (empty($__Context->nosuchvar)): ?>
|
|
<img src="/rhymix/tests/_data/template/bar/rhymix.svg" alt="unit tests are cool" />
|
|
<span <?php if ($__Context->k >= 2): ?>class="<?php echo htmlspecialchars($__Context->val ?? '', \ENT_QUOTES, 'UTF-8', false); ?>"<?php endif; ?>></span>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php $this->_v2_incrLoopVar($__loop_64b3371f38fea1); endforeach; $this->_v2_removeLoopVar($__loop_64b3371f38fea1); unset($__loop_64b3371f38fea1); else: ?><div>Nothing here...</div><?php endif; ?>
|
|
<?php $this->_fragments[$__last_fragment_name] = ob_get_flush(); ?>
|
|
|
|
<?php (function($__dir, $__path, $__vars, $__varname, $__empty = null) { if (!$__vars): $__vars = []; if ($__empty): $__path = $__empty; $__vars[] = ''; endif; endif; foreach ($__vars as $__var): $__tpl = new \Rhymix\Framework\Template($__dir, $__path, "html"); $__tpl->setVars([(string)$__varname => $__var]); echo $__tpl->compile(); endforeach; })($this->relative_dirname, 'incl/eachtest', $__Context->bar, 'var'); ?>
|
|
<?php (function($__dir, $__path, $__vars, $__varname, $__empty = null) { if (!$__vars): $__vars = []; if ($__empty): $__path = $__empty; $__vars[] = ''; endif; endif; foreach ($__vars as $__var): $__tpl = new \Rhymix\Framework\Template($__dir, $__path, "html"); $__tpl->setVars([(string)$__varname => $__var]); echo $__tpl->compile(); endforeach; })($this->relative_dirname, 'incl/eachtest', [], 'anything', 'incl/empty'); ?>
|
|
|
|
<?php if (!$__Context->m): ?>
|
|
<p>The full class name is <?php echo htmlspecialchars(get_class(new Rhymix\Framework\Push), \ENT_QUOTES, 'UTF-8', true); ?>, <?php echo htmlspecialchars(Rhymix\Framework\Push::class, \ENT_QUOTES, 'UTF-8', false); ?> really.</p>
|
|
<?php endif; ?>
|
|
|
|
<div class="barContainer" data-bar="<?php echo $this->config->context === 'JS' ? (json_encode($__Context->bar ?? '', \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES | \JSON_HEX_TAG | \JSON_HEX_QUOT)) : htmlspecialchars(json_encode($__Context->bar ?? '', \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES | \JSON_HEX_TAG | \JSON_HEX_QUOT), \ENT_QUOTES, 'UTF-8', false); ?>">
|
|
<span<?php echo $this->_v2_buildAttribute('class', [
|
|
'a-1',
|
|
'font-normal' => $__Context->foo,
|
|
'text-blue' => false,
|
|
'bg-gray-200' => true
|
|
]); ?>></span>
|
|
<span<?php echo $this->_v2_buildAttribute('style', [
|
|
'border-radius: 0.25rem',
|
|
'margin: 1rem' => Context::get('bar'),
|
|
'padding: 2rem' => false,
|
|
]); ?>></span>
|
|
</div>
|
|
|
|
<script type="text/javascript"<?php $this->config->context = "JS"; ?>>
|
|
const bar = <?php echo $this->config->context === 'JS' ? json_encode($__Context->bar, \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES | \JSON_HEX_TAG | \JSON_HEX_QUOT) : htmlspecialchars(json_encode($__Context->bar, \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES | \JSON_HEX_TAG | \JSON_HEX_QUOT), \ENT_QUOTES, 'UTF-8', false); ?>;
|
|
<?php $this->config->context = "HTML"; ?></script>
|