Current File : /home/kelaby89/muzza.fit/wp-content/themes/deadlift/config/plugins.php |
<?php
/**
* Deadlift recommended plugins
*
* @package WordPress
* @subpackage Deadlift
* @since Deadlift 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! get_option('_deadlift_hide_theme_plugin_notice_flag') ) {
return;
}
// delete_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_tgmpa' );
/* Require TGM Plugin Activation class */
require_once get_template_directory() . '/inc/admin/lib/class-tgm-plugin-activation.php';
function wolf_theme_register_required_plugins() {
$plugins = array(
array(
'name' => esc_html__( 'WPBakery Page Builder', 'deadlift' ),
'slug' => 'js_composer',
'source' => 'js_composer.zip',
'required' => true,
),
array(
'name' => esc_html__( 'Slider Revolution', 'deadlift' ),
'slug' => 'revslider',
'source' => 'revslider.zip',
'version' => '6.2',
),
array(
'name' => esc_html__( 'WPBakery Page Builder Extension', 'deadlift' ),
'slug' => 'wolf-visual-composer',
'source' => 'https://github.com/wolfthemes/wolf-visual-composer/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-visual-composer/archive/master.zip',
'required' => true,
),
array(
'name' => esc_html__( 'WPBakery Page Builder Content Blocks', 'deadlift' ),
'slug' => 'wolf-vc-content-block',
'source' => 'https://github.com/wolfthemes/wolf-vc-content-block/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-vc-content-block/archive/master.zip',
),
array(
'name' => esc_html__( 'Portfolio', 'deadlift' ),
'slug' => 'wolf-portfolio',
'source' => 'https://github.com/wolfthemes/wolf-portfolio/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-portfolio/archive/master.zip',
),
array(
'name' => esc_html__( 'Videos', 'deadlift' ),
'slug' => 'wolf-videos',
'source' => 'https://github.com/wolfthemes/wolf-videos/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-videos/archive/master.zip',
),
array(
'name' => esc_html__( 'Custom Post Meta', 'deadlift' ),
'slug' => 'wolf-custom-post-meta',
'source' => 'https://github.com/wolfthemes/wolf-custom-post-meta/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-custom-post-meta/archive/master.zip',
),
array(
'name' => esc_html__( 'Instagram Feed (Smash Balloon)', 'deadlift' ),
'slug' => 'instagram-feed',
),
array(
'name' => esc_html__( 'Facebook Page Box', 'deadlift' ),
'slug' => 'wolf-facebook-page-box',
'source' => 'http://plugins.wolfthemes.com/wolf-facebook-page-box/wolf-facebook-page-box.zip',
'external_url' => 'http://plugins.wolfthemes.com/wolf-facebook-page-box/wolf-facebook-page-box.zip',
),
array(
'name' => esc_html__( 'Video Thumbnail Generator', 'deadlift' ),
'slug' => 'wolf-video-thumbnail-generator',
'source' => 'https://github.com/wolfthemes/wolf-video-thumbnail-generator/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-video-thumbnail-generator/archive/master.zip',
),
array(
'name' => esc_html__( 'Metaboxes', 'deadlift' ),
'slug' => 'wolf-metaboxes',
'source' => 'https://github.com/wolfthemes/wolf-metaboxes/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-metaboxes/archive/master.zip',
),
array(
'name' => esc_html__( 'WooCommerce', 'deadlift' ),
'slug' => 'woocommerce',
),
array(
'name' => esc_html__( 'WooCommerce Wishlist', 'deadlift' ),
'slug' => 'wolf-woocommerce-wishlist',
'source' => 'https://github.com/wolfthemes/wolf-woocommerce-wishlist/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-woocommerce-wishlist/archive/master.zip',
),
array(
'name' => esc_html__( 'WooCommerce Quickview', 'deadlift' ),
'slug' => 'wolf-woocommerce-quickview',
'source' => 'https://github.com/wolfthemes/wolf-woocommerce-quickview/archive/master.zip',
'external_url' => 'https://github.com/wolfthemes/wolf-woocommerce-quickview/archive/master.zip',
),
array(
'name' => esc_html__( 'WooCommerce Variation Swatches', 'deadlift' ),
'slug' => 'variation-swatches-for-woocommerce',
),
array(
'name' => esc_html__( 'Timetable and Event Schedule', 'deadlift' ),
'slug' => 'mp-timetable',
),
array(
'name' => esc_html__( 'Contact Form 7', 'deadlift' ),
'slug' => 'contact-form-7',
),
array(
'name' => esc_html__( 'Envato Market WordPress Plugin', 'deadlift' ),
'slug' => 'envato-market',
'source' => 'https://goo.gl/pkJS33',
'external_url' => 'https://goo.gl/pkJS33',
),
array(
'name' => esc_html__( 'Disable Gutenberg', 'deadlift' ),
'slug' => 'disable-gutenberg',
),
array(
'name' => esc_html__( 'One Click Demo Import', 'deadlift' ),
'slug' => 'one-click-demo-import',
),
);
// Change this to your theme text domain, used for internationalising strings
$theme_text_domain = 'deadlift';
/*
* 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' => 'tgmpa',
'default_path' => get_template_directory() . '/config/plugins/',
'menu' => 'tgmpa-install-plugins',
'parent_slug' => 'themes.php',
'capability' => 'edit_theme_options',
'has_notices' => true,
'dismissable' => true,
'dismiss_msg' => '',
'is_automatic' => false,
'message' => '',
);
tgmpa( $plugins, $config );
}
add_action( 'tgmpa_register', 'wolf_theme_register_required_plugins' );