• File: prinox-tools.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/prinox-tools/prinox-tools.php
  • Date Modified: 02/05/2025 11:48 AM
  • File size: 2.29 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/*
Plugin Name: Prinox Tools
Plugin URI: https://themeforest.net/user/themexriver
Description: After install the prinox WordPress Theme, you must need to install this "Prinox Tools" first to get all functions of Prinox WP Theme.
Author: Raziul Islam
Author URI: http://themexriver.com/
Version: 2.1.6
Text Domain: prinox-tools
*/
if ( !defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

define( 'PRINOX_VERSION', '1.0.9' );
define( 'PRINOX_DIR_PATH',plugin_dir_path(__FILE__) );
define( 'PRINOX_DIR_URL',plugin_dir_url(__FILE__) );
define( 'PRINOX_INC_PATH', PRINOX_DIR_PATH . '/inc' );
define( 'PRINOX_PLUGIN_IMG_PATH', PRINOX_DIR_URL . '/assets/img' );

/**
 * Css Framework Load
 */
if ( file_exists(PRINOX_DIR_PATH.'/lib/codestar-framework/codestar-framework.php') ) {
    require_once  PRINOX_DIR_PATH.'/lib/codestar-framework/codestar-framework.php';
}

// Load Script
function prinox_frontend_scripts() {
    wp_enqueue_style( 'prinox-admin-style', PRINOX_DIR_URL . "assets/css/admin-style.css");
}
add_action( 'admin_enqueue_scripts', 'prinox_frontend_scripts' );

/**
 * Post Widget With Thumbnail
 */
function prinox_cw_wisget(){
    register_widget( 'Prinox_Recent_Posts' );
    register_widget( 'Prinox_Social_Icons' );
    register_widget( 'Prinox_Category_List' );
    register_widget( 'Prinox_Recent_Posts_Footer' );
}
add_action('widgets_init', 'prinox_cw_wisget');

//* To remove the Font Awesome http request as well
add_action( 'elementor/frontend/after_enqueue_styles', function () { wp_dequeue_style( 'e-animations' ); } );



if (!class_exists('EFramework_MegaMenu_Register')) {
    require_once PRINOX_INC_PATH . '/mega-menu/class-megamenu.php';
    EFramework_MegaMenu_Register::get_instance();
}

include_once PRINOX_INC_PATH . "/custom-widget/recent-post.php";
include_once PRINOX_INC_PATH . "/custom-widget/recent-post-footer.php";
include_once PRINOX_INC_PATH . "/custom-widget/social-icon.php";
include_once PRINOX_INC_PATH . "/custom-widget/category-list.php";
include_once PRINOX_INC_PATH . "/cpt/prinox-cpt.php";
include_once PRINOX_INC_PATH . "/options/theme-metabox.php";
include_once PRINOX_INC_PATH . "/options/theme-option.php";
include_once PRINOX_INC_PATH . "/helper.php";
include_once PRINOX_INC_PATH . "/prinox-icon.php";
include_once PRINOX_DIR_PATH . "/elementor/elementor-init.php";