<?php

 /*
 * gotoviar.php
 * 
 * This file is part of the "gotoviar" project.
 * See "LICENSE" for license information.
 */

/**
 * @package gotoviar
*/

/**
* Plugin Name: GoToViaR
* Plugin URI: https://gotoviar.com/wordpress-plugin/
* Description: GoToViaR plugin to run your site in VR.
* Version: 1.2.2
* Author: gotoviar
* Author URI: https://gotoviar.com/
* License: GPLv3
* Text Domain: gotoviar
**/

// If this file is called firectly, abort!!!
defined( 'ABSPATH' ) or die( 'Hey, what are you doing here ?!' );

// Require once the Composer Autoload
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
	require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}

/**
 * The code that runs during plugin activation
 */
function gotoviar_activate_plugin() {
	GTVR\Base\GTVR_Activate::activate();
}
register_activation_hook( __FILE__, 'gotoviar_activate_plugin' );

/**
 * The code that runs during plugin deactivation
 */
function gotoviar_deactivate_plugin() {
	GTVR\Base\GTVR_Deactivate::deactivate();
}
register_deactivation_hook( __FILE__, 'gotoviar_deactivate_plugin' );

/**
 * Initialize all the core classes of the plugin
 */
if ( class_exists( 'GTVR\\GTVR_Init' ) ) {
	GTVR\GTVR_Init::register_services();
}
