<?php
/*
Plugin Name: YIT Testimonial
Plugin URI: http://wordpress.org/plugins/hello-dolly/
Description: YIT plugin for the add Testimonial Manager
Author: Yithemes
Text Domain: yit
Domain Path: /languages/
Version: 1.0.6
Author URI: http://yithemes.com/
*/

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * YIT Testimonials version
 */
define( 'YIT_TESTIMONIALS_VERSION', '1.0.6' );

// load the core plugins library from an yit-theme
add_action( 'after_setup_theme', 'yit_testimonials_loader', 1 );
add_action( 'plugins_loaded', 'yit_testimonials_load_text_domain' );


/**
 * Load the plugin text domain for localization
 *
 * @return void
 * @since  1.0
 * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
 */
function yit_testimonials_load_text_domain(){
    load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
}

/**
 * Load the core of the plugin, added to "after_theme_setup" so you can load the core only if it isn't loaded by plugin
 *
 * @return void
 * @since  1.0
 * @author Antonino Scarfì <antonino.scarfi@yithemes.com>
 * @author Andrea Grillo   <andrea.grillo@yithemes.com>
 */
function yit_testimonials_loader() {
    if( yit_check_plugin_support() ) {
        require_once 'yit-testimonials.php';
    }
}