예제 #1
0
 /**
  * Get the singleton instance of this class.
  *
  * This allows the class to only be instantiated once.
  *
  * @since 1.1-beta-2
  *
  * @return object
  */
 public static function get_instance()
 {
     if (!self::$instance instanceof self) {
         self::$instance = new self();
     }
     return self::$instance;
 }
예제 #2
0
 /**
  * Initializes tracking.
  *
  * @since 1.1-beta-2
  */
 private static function _tracking_init()
 {
     // Only do it if it's been approved
     if (get_option('render_allow_tracking') === '1') {
         Render_Tracking::get_instance();
     }
 }