1 | <?php |
||
12 | class General implements Page |
||
13 | { |
||
14 | /** |
||
15 | * The forms table component. |
||
16 | * |
||
17 | * @var FormsTable |
||
18 | */ |
||
19 | private $formsTable; |
||
20 | |||
21 | /** |
||
22 | * Constructor. |
||
23 | * |
||
24 | * @param FormsTable $formsTable The logs table component |
||
25 | */ |
||
26 | public function __construct(FormsTable $formsTable) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function display() |
||
35 | { |
||
36 | $wpFormTable = $this->formsTable->load(); |
||
37 | $wpFormTable->prepare_items(); ?> |
||
38 | <div class="wrap"> |
||
39 | <h2><?php _e('General', \WPSymfonyForm::TRANSLATION_DOMAIN); ?></h2> |
||
40 | <div id="poststuff"> |
||
41 | <div id="post-body" class="metabox-holder"> |
||
42 | <div id="post-body-content"> |
||
43 | <?php $wpFormTable->display(); ?> |
||
44 | </div> |
||
45 | </div> |
||
46 | <br class="clear"> |
||
47 | </div> |
||
48 | </div> |
||
49 | <?php |
||
50 | |||
51 | } |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function screenOptions() |
||
64 | } |
||
65 |