debug-layout.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | /* @var Loco_mvc_View $this */ |
| 4 | $this->extend('../layout'); |
| 5 | ?> |
| 6 | <style> |
| 7 | code.po { |
| 8 | font-weight: bold; |
| 9 | } |
| 10 | #loco-log textarea { |
| 11 | width: 100%; |
| 12 | font-size: 12px; |
| 13 | } |
| 14 | </style> |
| 15 | <?php |
| 16 | |
| 17 | $this->block('header'); |
| 18 | |
| 19 | /* @var Loco_mvc_View $params */ |
| 20 | /* @var ArrayIterator|null $log */ |
| 21 | if( $params->has('log') ):?> |
| 22 | <div class="panel" id="loco-log"> |
| 23 | <h3> |
| 24 | Trace log: |
| 25 | </h3> |
| 26 | <p> |
| 27 | If you're asking for help on the WordPress forum, please post the full text below. |
| 28 | </p> |
| 29 | <form action="#"> |
| 30 | <textarea spellcheck="false" class="code" name="l" rows="<?=$log->count()?>"><?php echo $params->escape( implode("\n",iterator_to_array($log) ) );?></textarea> |
| 31 | </form> |
| 32 | </div><?php |
| 33 | endif; |
| 34 | |
| 35 | |
| 36 | /* @var string $form */ |
| 37 | echo $form; |
| 38 |