| @@ -1,16 +1,12 @@ | ||
| 1 | 1 | <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly |
| 2 | 2 | class HC3_Layout implements HC3_ILayout |
| 3 | 3 | { |
| 4 | - public $enqueuer, $request; | |
| 5 | - | |
| 6 | 4 | public function __construct( |
| 7 | - HC3_Enqueuer $enqueuer, | |
| 8 | - HC3_Request $request | |
| 5 | + HC3_Enqueuer $enqueuer | |
| 9 | 6 | ) |
| 10 | 7 | { |
| 11 | 8 | $this->enqueuer = $enqueuer; |
| 12 | - $this->request = $request; | |
| 13 | 9 | } |
| 14 | 10 | |
| 15 | 11 | public function renderPrint( $content ) |
| 16 | 12 | { |
| @@ -18,15 +14,11 @@ | ||
| 18 | 14 | |
| 19 | 15 | $content = str_replace( 'hc-table-header-wpadmin', '', $content ); |
| 20 | 16 | $content = str_replace( 'hc-table-header', '', $content ); |
| 21 | 17 | |
| 22 | - | |
| 23 | 18 | $body = array(); |
| 24 | 19 | $body[] = '<body>'; |
| 25 | - | |
| 26 | - $slug = $this->request->getSlug(); | |
| 27 | - $body[] = '<div class="hc-app-container" id="hc3" data-pw-slug="' . esc_attr($slug) . '">'; | |
| 28 | - | |
| 20 | + $body[] = '<div class="hc-app-container" id="hc3">'; | |
| 29 | 21 | $body[] = $content; |
| 30 | 22 | $body[] = '</div>'; |
| 31 | 23 | $body[] = '</body>'; |
| 32 | 24 | $body = implode("\n", $body); |
| @@ -70,14 +62,11 @@ | ||
| 70 | 62 | |
| 71 | 63 | $body = array(); |
| 72 | 64 | // $body[] = '<body>'; |
| 73 | 65 | $body[] = '<div class="wrap">'; |
| 74 | - | |
| 75 | - $slug = $this->request->getSlug(); | |
| 76 | - $body[] = '<div class="hc-app-container" id="hc3" data-pw-slug="' . esc_attr($slug) . '">'; | |
| 77 | - | |
| 66 | + $body[] = '<div class="hc-app-container" id="hc3">'; | |
| 78 | 67 | $body[] = $content; |
| 79 | - $body[] = '</div><!-- #hc3 -->'; | |
| 68 | + $body[] = '</div>'; | |
| 80 | 69 | $body[] = '</div>'; |
| 81 | 70 | // $body[] = '</body>'; |
| 82 | 71 | $body = implode("\n", $body); |
| 83 | 72 | |