<?php
/*
Plugin Name: Breadcrumb
Plugin URI: http://pickplugins.com
Description: Awesome Breadcrumb for wordpress.
Version: 1.5.0
Author: pickplugins
Author URI: http://pickplugins.com
Text Domain: breadcrumb
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

if ( ! defined('ABSPATH')) exit;  // if direct access 


class BreadcrumbMain{
	
	public function __construct(){
		
		define('breadcrumb_plugin_url', plugins_url('/', __FILE__)  );
		define('breadcrumb_plugin_dir', plugin_dir_path( __FILE__ ) );
		define('breadcrumb_wp_url', 'https://wordpress.org/plugins/breadcrumb/' );
		define('breadcrumb_wp_reviews', 'https://wordpress.org/support/plugin/breadcrumb/reviews/' );
		define('breadcrumb_pro_url','http://www.pickplugins.com/item/breadcrumb-awesome-breadcrumbs-style-navigation-for-wordpress/' );
		define('breadcrumb_demo_url', 'http://pickplugins.com' );
		define('breadcrumb_conatct_url', 'http://pickplugins.com/contact/' );
		define('breadcrumb_qa_url', 'https://www.pickplugins.com/support/' );
		define('breadcrumb_plugin_name', 'Breadcrumb' );
		define('breadcrumb_plugin_version', '1.5.0' );
		define('breadcrumb_customer_type', 'free' );	 // free	
		define('breadcrumb_share_url', 'https://wordpress.org/plugins/breadcrumb/' );
		define('breadcrumb_tutorial_video_url', '' );
		
		
		require_once( plugin_dir_path( __FILE__ ) . 'includes/functions.php');
		
		require_once( plugin_dir_path( __FILE__ ) . 'includes/themes-css.php');
		
		require_once( plugin_dir_path( __FILE__ ) . 'includes/class-breadcrumb.php');
		require_once( plugin_dir_path( __FILE__ ) . 'includes/class-shortcodes.php');		
		require_once( plugin_dir_path( __FILE__ ) . 'includes/class-settings.php');		
		
		
		add_action( 'wp_enqueue_scripts', array( $this, 'breadcrumb_front_scripts' ) );
		add_action( 'admin_enqueue_scripts', array( $this, 'breadcrumb_admin_scripts' ) );
		
		add_action( 'plugins_loaded', array( $this, 'breadcrumb_load_textdomain' ));
		
		}

	public function breadcrumb_load_textdomain() {
	  load_plugin_textdomain( 'breadcrumb', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' ); 
	}
	



	
	public function breadcrumb_front_scripts(){
		//wp_enqueue_script('jquery');
		//wp_enqueue_script('breadcrumb_js', plugins_url( 'assets/front/js/scripts.js' , __FILE__ ) , array( 'jquery' ));
		wp_enqueue_style('breadcrumb_style', breadcrumb_plugin_url.'assets/front/css/style.css');
	
	}
	
	
	public function breadcrumb_admin_scripts(){
		
		//ParaAdmin
		wp_enqueue_style('ParaAdmin', breadcrumb_plugin_url.'assets/admin/ParaAdmin/css/ParaAdmin.css');
		wp_enqueue_script('ParaAdmin', plugins_url( 'assets/admin/ParaAdmin/js/ParaAdmin.js' , __FILE__ ) , array( 'jquery' ));
		
		wp_enqueue_style( 'wp-color-picker' );
		wp_enqueue_script( 'breadcrumb_color_picker', plugins_url('/assets/admin/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
			
	}
	
	
	
	}

new BreadcrumbMain();

