mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
70 lines
4.9 KiB
HTML
70 lines
4.9 KiB
HTML
<?php if (!defined("RX_VERSION")) exit(); ?><?php $this->config->version = 2; ?>
|
|
|
|
|
|
<div><?php echo $this->_v2_include('include', '^/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 = 'FOOFOO<"FOO">BAR';
|
|
?>
|
|
<?php
|
|
$__Context->bar = ['Rhy', 'miX', 'is', 'da', 'BEST!'];
|
|
?>
|
|
|
|
{{ $foo }}
|
|
|
|
|
|
<form action="<?php echo $this->config->context === 'HTML' ? htmlspecialchars(\RX_BASEURL, \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape(\RX_BASEURL); ?>" 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 $this->config->context === 'HTML' ? htmlspecialchars($__Context->bar[0] ?? '', \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape($__Context->bar[0] ?? ''); ?>"<?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 $this->config->context === 'HTML' ? htmlspecialchars(implode('|', array_map(function($i) { return strtoupper($i); }, $__Context->bar)), \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape(implode('|', array_map(function($i) { return strtoupper($i); }, $__Context->bar))); ?></p>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<?php ob_start(); $__last_fragment_name = 'rhymix'; ?>
|
|
<?php $__tmp_RANDOM_LOOP_ID = Context::get('bar') ?? []; if($__tmp_RANDOM_LOOP_ID): $__loop_RANDOM_LOOP_ID = $this->_v2_initLoopVar("RANDOM_LOOP_ID", $__tmp_RANDOM_LOOP_ID); foreach ($__tmp_RANDOM_LOOP_ID 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 $this->config->context === 'HTML' ? htmlspecialchars($__Context->val ?? '', \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape($__Context->val ?? ''); ?>"<?php endif; ?>></span>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php $this->_v2_incrLoopVar($__loop_RANDOM_LOOP_ID); endforeach; $this->_v2_removeLoopVar($__loop_RANDOM_LOOP_ID); unset($__loop_RANDOM_LOOP_ID); else: ?><div>Nothing here...</div><?php endif; ?>
|
|
<?php $this->_fragments[$__last_fragment_name] = ob_get_flush(); ?>
|
|
|
|
<?php (function($__filename, $__vars, $__varname, $__empty = null) { if (!$__vars): $__vars = []; if ($__empty): $__filename = $__empty; $__vars[] = ''; endif; endif; foreach ($__vars as $__var): echo $this->_v2_include("include", $__filename, [(string)$__varname => $__var]); endforeach; })('incl/eachtest', $__Context->bar, 'var'); ?>
|
|
<?php (function($__filename, $__vars, $__varname, $__empty = null) { if (!$__vars): $__vars = []; if ($__empty): $__filename = $__empty; $__vars[] = ''; endif; endif; foreach ($__vars as $__var): echo $this->_v2_include("include", $__filename, [(string)$__varname => $__var]); endforeach; })('incl/eachtest', [], 'anything', 'incl/empty'); ?>
|
|
|
|
<?php if (!$this->_v2_isMobile()): ?>
|
|
<p>The full class name is <?php echo htmlspecialchars(get_class(new Rhymix\Framework\Push), \ENT_QUOTES, 'UTF-8', true); ?>, <?php echo $this->config->context === 'HTML' ? htmlspecialchars(Rhymix\Framework\Push::class, \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape(Rhymix\Framework\Push::class); ?> really.</p>
|
|
<?php endif; ?>
|
|
|
|
<div class="barContainer" data-bar="<?php echo $this->config->context === 'JS' ? json_encode($__Context->bar ?? '', self::$_json_options) : htmlspecialchars(json_encode($__Context->bar ?? '', self::$_json_options), \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 foo = '<?php echo $this->config->context === 'HTML' ? htmlspecialchars($__Context->foo ?? '', \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape($__Context->foo ?? ''); ?>';
|
|
const bar = <?php echo $this->config->context === 'JS' ? json_encode($__Context->bar, self::$_json_options2) : htmlspecialchars(json_encode($__Context->bar, self::$_json_options), \ENT_QUOTES, 'UTF-8', false); ?>;
|
|
<?php $this->config->context = 'HTML'; ?></script>
|
|
|
|
<style<?php $this->config->context = 'CSS'; ?>>
|
|
body { background-color: <?php echo $this->config->context === 'HTML' ? htmlspecialchars('#ffffff', \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape('#ffffff'); ?>; }
|
|
<?php $this->config->context = 'HTML'; ?></style>
|