<?php
// Exit if accessed directly
defined( 'ABSPATH' ) or die( 'Cheatin&#8217; uh?' );

//Define Constants
define( 'YMVI_VERSION',     '2.0.0' );                       // Plugin version
define( 'YMVI_DIR',         plugin_dir_path( __FILE__ ) );   // Plugin Folder Path
define( 'YMVI_URL',         plugin_dir_url( __FILE__ ) );    // Plugin Folder URL
define( 'YMVI_FILE',        __FILE__ );                      // Plugin Root File
define( 'YMVI_LANG',        'youtube-mass-videos-importer' );// Plugin lang

//navigation config
self::$config['nav']  = array(
    '50' => array(
        'slug'      => 'ymvi-import-videos',
        'callback'  => 'YMVI_import_videos_page',
        'title'     => 'Youtube Mass Videos Importer',
        'icon'      => 'fa-youtube-play'
    ),
    'ymvi-options' => array(
        'slug'      => 'ymvi-options',
    )
);

//js config
self::$config['scripts']['js'] = array(
    //vendor
    'YMVI_bootstrap-select.js'  => array(
                                    'in_pages'  => array('ymvi-import-videos'),
                                    'path'      => 'admin/vendors/bootstrap-select/bootstrap-select.min.js',
                                    'require'   => array(),
                                    'version'   => '1.12.4',
                                    'in_footer' => false,
    ),
    //pages
    'YMVI_import-videos.js'     => array(
                                    'in_pages'  => array('ymvi-import-videos'),
                                    'path'      => 'admin/pages/page-import-videos.js',
                                    'require'   => array(),
                                    'version'   => '1.0.0',
                                    'in_footer' => false,
                                    'localize'  => array(
                                                            'ajax'      => true,
                                                            'objectL10n'=> array(
                                                                            //'sentence_id'     => __( 'Sentence', 'WPSCORE_LANG' ),
                                                            )
                                    )
    )
);
//css config
self::$config['scripts']['css'] = array(
    //vendor
    'YMVI_bootstrap-select.css' => array(
                                            'in_pages'  => array('ymvi-import-videos'),
                                            'path'      => 'admin/vendors/bootstrap-select/bootstrap-select.min.css',
                                            'require'   => array(),
                                            'version'   => '1.12.4',
                                            'media'     => 'all'
    ),
    //assets
    'YMVI_admin.css'          => array(
                                            'in_pages'  => array('ymvi-import-videos'),
                                            'path'      => 'admin/assets/css/admin.css',
                                            'require'   => array(),
                                            'version'   => '1.0.0',
                                            'media'     => 'all'
    )
);
