mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Change behavior of \@mobile directive in template v2 #2510
This commit is contained in:
parent
82195c3e14
commit
800eb2f444
4 changed files with 15 additions and 5 deletions
|
|
@ -858,10 +858,10 @@ class TemplateParserV2Test extends \Codeception\Test\Unit
|
|||
'@endmobile',
|
||||
]);
|
||||
$target = implode("\n", [
|
||||
"<?php if (!\\Context::get('m')): ?>",
|
||||
'<?php if (!$this->_v2_isMobile()): ?>',
|
||||
'<p>4K or GTFO!</p>',
|
||||
'<?php endif; ?>',
|
||||
"<?php if (\\Context::get('m')): ?>",
|
||||
'<?php if ($this->_v2_isMobile()): ?>',
|
||||
'<p>USB C is the way to go~</p>',
|
||||
'<?php endif; ?>',
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue