PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 152
Lasso Lite – Affiliate Link Manager & Product Displays v152
157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 116 All 56 releases
simple-urls / classes / class-config.php

class-config.php in Lasso Lite – Affiliate Link Manager & Product Displays 152, at classes/class-config.php

41 lines 712 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Declare class Config
4 *
5 * @package Config
6 */
7
8 namespace LassoLite\Classes;
9
10 /**
11 * Config
12 */
13 class Config {
14 /**
15 * Track whether we opened the layout wrapper in get_header().
16 *
17 * @var bool
18 */
19 private static $layout_wrapper_open = false;
20
21 /**
22 * Print header html
23 */
24 public static function get_header() {
25 self::$layout_wrapper_open = true;
26 echo '<div class="lasso-lite-layout">';
27 require_once SIMPLE_URLS_DIR . '/admin/views/header.php';
28 }
29
30 /**
31 * Print footer html
32 */
33 public static function get_footer() {
34 require_once SIMPLE_URLS_DIR . '/admin/views/footer.php';
35 if ( self::$layout_wrapper_open ) {
36 echo '</div>';
37 self::$layout_wrapper_open = false;
38 }
39 }
40 }
41