<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
<?php
require_once BERUCO_DIR . '/admin/theme-plugins/class-tgm-plugin-activation.php';
add_action( 'tgmpa_register', 'beruco_register_required_plugins' );

/**
 * Register the required plugins for this theme.
 */
function beruco_register_required_plugins() {
	/*
	 * Array of plugin arrays. Required keys are name and slug.
	 * If the source is NOT from the .org repo, then source is also required.
	 */
	$plugins = array(
		array(
			'name'     => 'Elementor Page Builder',
			'slug'     => 'elementor',
			'required' => true,
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/elementor.png' )
		),
		array(
			'name'					=> esc_html__( 'Beruco Addon', 'beruco' ), // The plugin name.
			'slug'					=> 'beruco-addon', // The plugin slug (typically the folder name).
			'source'				=> esc_url( 'http://demo.zozothemes.com/demo-plugins/beruco-addon.zip' ), // The plugin source.
			'required'				=> true, // If false, the plugin is only 'recommended' instead of required.
			'version'				=> '1.0.4',
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'external_url'			=> '', // If set, overrides default API URL and points to an external URL.
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/beruco-addon.png' ),
		),
		array(
			'name'					=> esc_html__( 'Classic Elementor Addon', 'beruco' ), // The plugin name.
			'slug'					=> 'classic-elementor-addons-pro', // The plugin slug (typically the folder name).
			'source'				=> esc_url( 'https://wordpress.zozothemes.com/pro-addons/classic-elementor-addons-pro.zip' ),
			'required'				=> true, // If false, the plugin is only 'recommended' instead of required.
			'version'				=> '1.0.4',
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'external_url'			=> '', // If set, overrides default API URL and points to an external URL.
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/classic-elementor-addons-pro.png' ),
		),
		array(
			'name'					=> esc_html__( 'CEA Post Types', 'beruco' ), // The plugin name.
			'slug'					=> 'cea-post-types', // The plugin slug (typically the folder name).
			'source'				=> esc_url( 'https://wordpress.zozothemes.com/pro-addons/cea-post-types.zip' ),
			'required'				=> true, // If false, the plugin is only 'recommended' instead of required.
			'version'				=> '1.0.4',
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'external_url'			=> '', // If set, overrides default API URL and points to an external URL.
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/cea-post-types.png' ),
		),
		array(
			'name'					=> esc_html__( 'Zozo Header Footer', 'beruco' ), // The plugin name.
			'slug'					=> 'zozo-header-footer', // The plugin slug (typically the folder name).
			'source'				=> esc_url( 'https://wordpress.zozothemes.com/pro-addons/zozo-header-footer.zip' ),
			'required'				=> true, // If false, the plugin is only 'recommended' instead of required.
			'version'				=> '1.0.4',
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'external_url'			=> '', // If set, overrides default API URL and points to an external URL.
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/zozo-header-footer.png' ),
		),
		array(
			'name'					=> esc_html__( 'Slider Revolution', 'beruco' ), // The plugin name.
			'slug'					=> 'revslider', // The plugin slug (typically the folder name).
			'source'				=> esc_url( 'http://demo.zozothemes.com/import/plugins/revslider.zip' ),
			'required'				=> true, // If false, the plugin is only 'recommended' instead of required.
			'version'				=> '6.7.20',
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'external_url'			=> '', // If set, overrides default API URL and points to an external URL.
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/revslider.png' ),
		),
		array(
			'name'					=> esc_html__( 'Cost Calculator', 'tranzkart' ), // The plugin name.
			'slug'					=> 'bt_cost_calculator', // The plugin slug (typically the folder name).
			'source'				=> esc_url( 'http://demo.zozothemes.com/import/plugins/bt_cost_calculator.zip' ),
			'required'				=> true, // If false, the plugin is only 'recommended' instead of required.
			'version'				=> '2.4.3',
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'external_url'			=> '', // If set, overrides default API URL and points to an external URL.
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/cost-calculator.png' ),
		),
		array(
			'name'     => 'Contact Form 7',
			'slug'     => 'contact-form-7',
			'required' => false,
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/contact-form-7.png' )
		),
		array(
			'name'     => 'Woocommerce',
			'slug'     => 'woocommerce',
			'required' => false,
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/woocommerce.png' )
		),
		array(
			'name'					=> esc_html__( 'Envato Market', 'beruco' ), // The plugin name.
			'slug'					=> 'envato-market', // The plugin slug (typically the folder name).
			'source'				=> esc_url( 'http://demo.zozothemes.com/import/plugins/envato-market.zip' ), // The plugin source.
			'required'				=> false, // If false, the plugin is only 'recommended' instead of required.
			'version'				=> '2.0.12',
			'force_activation'		=> false,
			'force_deactivation'	=> false,
			'external_url'			=> '', // If set, overrides default API URL and points to an external URL.
			'image_url' 		 	=> esc_url( get_template_directory_uri() . '/admin/assets/images/plugins/envato-market.png' ),
		)
	);
	/*
	 * Array of configuration settings. Amend each line as needed.
	 *
	 * TGMPA will start providing localized text strings soon. If you already have translations of our standard
	 * strings available, please help us make TGMPA even better by giving us access to these translations or by
	 * sending in a pull-request with .po file(s) with the translations.
	 *
	 * Only uncomment the strings in the config array if you want to customize the strings.
	 */
	$config = array(
        'id'           => 'beruco_tgmpa',           // Unique ID for hashing notices for multiple instances of TGMPA.
        'default_path' => '',                      // Default absolute path to pre-packaged plugins.
        'menu'         => 'tgmpa-install-plugins', // Menu slug.
        'parent_slug'  => 'themes.php',            // beruco-welcome Parent menu slug.
        'capability'   => 'edit_theme_options',   // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
        'has_notices'  => true,                    // Show admin notices or not.
        'dismissable'  => true,                    // If false, a user cannot dismiss the nag message.
        'dismiss_msg'  => '',                      // If 'dismissable' is false, this message will be output at top of nag.
        'is_automatic' => false,                   // Automatically activate plugins after installation or not.
        'message'      => '',                      // Message to output right before the plugins table.
    );
	tgmpa( $plugins, $config );
}
function beruco_tgm_allowed_html_tags(){
	$class_only = array(
		'class' => array(),
		'title' => array()
	);
	$allowed_tags = array(
		'a' => array(
			'href' => array(),
			'title' => array(),
			'class' => array(),
			'title' => array()
		),
		'img' => array(
			'src' => array(),
			'alt' => array(),
			'height' => array(),
			'width' => array(),
			'title' => array()
		),
		'br' => array(),
		'i' => $class_only,
		'span' => $class_only,
		'em' => array(),
		'strong' => array(),
		'p' => $class_only,
		'ul' => $class_only,
		'li' => $class_only,
		'div' => $class_only,
		'h2' => $class_only,
		'h3' => $class_only,
		'h4' => $class_only,
		'h5' => $class_only,
		'h6' => $class_only
	);
	return apply_filters( 'beruco_tgm_allowed_html_tags', $allowed_tags, $class_only );
}