HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/iskcon/public_html/wp-content/plugins/tow-widgets/tow-widgets.php
<?php
/**
 * Plugin Name:       TOW Plugins
 * Description:       Custom Element with this plugin.
 * Author:            TemplateOnWeb
 * Version:           1.0.0
 * Author URI:        https://www.templateonweb.com/
 */

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

function add_elementor_widget_categories( $elements_manager ) {

    $elements_manager->add_category(
        'tow-theme-element',
        [
            'title' => esc_html__( 'TOW Theme Element', 'tow' ),
        ]
    );
}
add_action( 'elementor/elements/categories_registered', 'add_elementor_widget_categories' );


/* ------------------------
Register Custom Widget
------------------------*/



/* Elementor Widget */
function register_tow_widget( $widgets_manager ) {

    
	require_once( __DIR__ . '/widgets/elementor/tow-accordian.php' );	
    require_once( __DIR__ . '/widgets/elementor/tow-button.php' );
    require_once( __DIR__ . '/widgets/elementor/feature-box.php' );
	require_once( __DIR__ . '/widgets/elementor/custom-title-block.php' );
	require_once( __DIR__ . '/widgets/elementor/feature-box-1.php' );
	require_once( __DIR__ . '/widgets/elementor/tow-member.php' );
	require_once( __DIR__ . '/widgets/elementor/tow-timeline.php' );
	require_once( __DIR__ . '/widgets/elementor/tow-tabs.php' );
	require_once( __DIR__ . '/widgets/elementor/tow-donation-box.php' );
	require_once( __DIR__ . '/widgets/elementor/tow-blogs-box.php' );
	
	$widgets_manager->register( new \Elementor_tow_accordian_Widget() );
    $widgets_manager->register( new \Elementor_tow_button_Widget() );
    $widgets_manager->register( new \Elementor_feature_box_Widget() );
	$widgets_manager->register( new \Elementor_custom_title_block_Widget() );
	$widgets_manager->register( new \Elementor_feature_box_1_Widget() );
	$widgets_manager->register( new \Elementor_member_Widget() );
	$widgets_manager->register( new \Elementor_timeline_Widget() );
	$widgets_manager->register( new \Elementor_tow_tabs_Widget() );
	$widgets_manager->register( new \Elementor_tow_donation_box_Widget );
	$widgets_manager->register( new \Elementor_tow_blogs_box_Widget );
    
}

/* Widget class */
add_action( 'elementor/widgets/register', 'register_tow_widget' );


//include dirname( __FILE__ ) . '/custom-post-type/post-type.php';
//print "----------------".dirname( __FILE__ ) . '/widgets/custom/tow-recent-post.php';
include dirname( __FILE__ ) . '/widgets/custom/tow-recent-post.php';
include dirname( __FILE__ ) . '/widgets/custom/tow-post-categories.php';
include dirname( __FILE__ ) . '/widgets/custom/tow-recent-events.php';

include dirname( __FILE__ ) . '/widgets/elementor/custom-icon/bootstrap-icon.php';

//include dirname( __FILE__ ) . '/custom-icon/flat-icon.php';

return true;