help-v2.php
71 lines
| 1 | <?php |
| 2 | |
| 3 | use AC\View; ?> |
| 4 | <div class="acu-mx-[50px] acu-pt-[70px]"> |
| 5 | <div class="acu-hidden"> |
| 6 | <hr class="wp-header-end acu-hidden"> |
| 7 | </div> |
| 8 | <main class="acu-flex acu-gap-4 acu-w-full"> |
| 9 | <div class="acu-bg-[white] acu-border acu-border-solid acu-border-ui-border acu-mb-[15px] acu-shadow acu-rounded-[10px] acu-flex-grow acu-max-w-[1200px]"> |
| 10 | <div class="acu-px-[20px] acu-pt-[20px] acu-pb-[20px] acu-border-0 acu-border-b acu-border-solid acu-border-ui-border"> |
| 11 | <h2 class="acu-my-[0] acu-text-2xl acu-font-normal"> |
| 12 | <?= __('Help', 'codepress-admin-columns') ?> |
| 13 | </h2> |
| 14 | <span class="acu-pt-1 acu-block"> |
| 15 | <?php |
| 16 | printf( |
| 17 | __( |
| 18 | 'This site is using some actions or filters that have changed. Please read %s to resolve them.', |
| 19 | 'codepress-admin-columns' |
| 20 | ), |
| 21 | sprintf( |
| 22 | '<a href="%s" target="_blank">%s</a>', |
| 23 | $this->documentation_url, |
| 24 | __('our documentation', 'codepress-admin-columns') |
| 25 | ) |
| 26 | ); |
| 27 | ?> |
| 28 | |
| 29 | </span> |
| 30 | </div> |
| 31 | <div> |
| 32 | <table class="acui-table"> |
| 33 | <thead> |
| 34 | <tr> |
| 35 | <th class="acu-p-1 acu-px-3 acu-py-3 acu-text-left">Deprecated Hook</th> |
| 36 | <th class="acu-p-1 acu-px-3 acu-py-3 acu-text-left">Description</th> |
| 37 | <th class="acu-p-1 acu-px-3 acu-py-3 acu-text-left">Documentation</th> |
| 38 | </tr> |
| 39 | </thead> |
| 40 | <tbody> |
| 41 | <?php |
| 42 | foreach ($this->deprecated_filters as $hook) { |
| 43 | $view = new View([ |
| 44 | 'type' => 'filter', |
| 45 | 'hook' => $hook, |
| 46 | 'documentation_url' => $this->documentation_url, |
| 47 | ]); |
| 48 | $view->set_template('admin/page/component/deprecated-hook-row'); |
| 49 | echo $view->render(); |
| 50 | } |
| 51 | ?> |
| 52 | |
| 53 | <?php |
| 54 | foreach ($this->deprecated_actions as $hook) { |
| 55 | $view = new View([ |
| 56 | 'type' => 'action', |
| 57 | 'hook' => $hook, |
| 58 | 'documentation_url' => $this->documentation_url, |
| 59 | ]); |
| 60 | $view->set_template('admin/page/component/deprecated-hook-row'); |
| 61 | echo $view->render(); |
| 62 | } |
| 63 | ?> |
| 64 | |
| 65 | |
| 66 | </tbody> |
| 67 | </table> |
| 68 | </div> |
| 69 | </div> |
| 70 | </main> |
| 71 | </div> |