PluginProbe
Quick View for WooCommerce – Reno QuickView / trunk
Quick View for WooCommerce – Reno QuickView vtrunk
2.3.0 trunk 1.0 1.0.1 1.0.10 1.0.11 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 2.0.0 2.0.1 2.0.10 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 All 48 releases
woo-quickview / class / router.php

router.php in Quick View for WooCommerce – Reno QuickView trunk, at class/router.php

82 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This class defines all code necessary to include framework .
4 *
5 * @since 1.0.7
6 * @package Woo_Quick_View
7 * @subpackage Woo_Quick_View/includes
8 * @author ShapedPlugin <support@shapedplugin.com>
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit; // Exit if accessed directly.
13 }
14
15 /**
16 * Woo Quick View- route class
17 *
18 * @since 1.0
19 */
20 class SP_WQV_Router {
21
22 /**
23 * Instance
24 *
25 * @var SP_WQV_Router single instance of the class
26 *
27 * @since 1.0
28 */
29 protected static $_instance = null;
30
31
32 /**
33 * Class Instance
34 *
35 * @since 1.0
36 *
37 * @static
38 *
39 * @return SP_WQV_Router
40 */
41 public static function instance() {
42 if ( is_null( self::$_instance ) ) {
43 self::$_instance = new self();
44 }
45
46 return self::$_instance;
47 }
48
49 /**
50 * Include the required files
51 *
52 * @since 1.0
53 *
54 * @return void
55 */
56 public function includes() {
57 include_once SP_WQV_PATH . 'includes/loader.php';
58 }
59
60 /**
61 * Function
62 *
63 * @since 1.0
64 *
65 * @return void
66 */
67 public function sp_wqv_function() {
68 include_once SP_WQV_PATH . 'includes/functions.php';
69 }
70
71 /**
72 * Function
73 *
74 * @since 1.0
75 *
76 * @return void
77 */
78 public function sp_wqv_framework() {
79 include_once SP_WQV_PATH . 'admin/views/sp-framework/classes/setup.class.php';
80 }
81 }
82