Skip to content

Commit

Permalink
add hidden directive
Browse files Browse the repository at this point in the history
  • Loading branch information
tszyuloveyou authored Aug 29, 2024
1 parent b74f8a9 commit 27f4ba5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Compilers/Concerns/CompilesConditionals.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,15 @@ protected function compileEndPushIf()
{
return '<?php $__env->stopPush(); endif; ?>';
}

/**
* Compile a readonly block into valid PHP.
*
* @param string $condition
* @return string
*/
protected function compileHidden($condition)
{
return "<?php if{$condition}: echo 'hidden'; endif; ?>";
}
}

0 comments on commit 27f4ba5

Please sign in to comment.