PluginProbe
WP Click to Chat – Email, Live Chat, Call & Book Now Buttons / trunk
WP Click to Chat – Email, Live Chat, Call & Book Now Buttons vtrunk
trunk 1.2.2 2.0 2.1 2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.6
support-chat / src / WpSaioView.class.php

WpSaioView.class.php in WP Click to Chat – Email, Live Chat, Call & Book Now Buttons trunk, at src/WpSaioView.class.php

29 lines 651 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 class WpSaioView
3 {
4 protected static $dir = '';
5 protected static $view_root_folder = '';
6
7 public function __construct()
8 {
9
10 }
11 public static function load($path, $args = array())
12 {
13 self::setDefaultValues();
14
15 if (count($args) > 0) {
16 extract($args);
17 }
18 $path = self::$dir . '/' . self::$view_root_folder . '/' . str_replace('.', '/', $path) . '.php';
19 ob_start();
20 require $path;
21 return ob_get_clean();
22 }
23 protected static function setDefaultValues()
24 {
25 self::$dir = WP_SAIO_DIR;
26 self::$view_root_folder = 'views';
27 }
28 }
29