| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/novablog/includes/ |
Upload File : |
<?php
require_once get_template_directory() . '/includes/class-tgm-plugin-activation.php';
add_action( 'tgmpa_register', 'novablog_theme_register_required_plugins' );
function novablog_theme_register_required_plugins() {
$plugins = array(
array(
'name' => 'Redux Framework',
'slug' => 'redux-framework',
'required' => true,
),
array(
'name' => 'Contact Form 7',
'slug' => 'contact-form-7',
'required' => false,
),
array(
'name' => 'WP-PostViews',
'slug' => 'wp-postviews',
'required' => false,
),
array(
'name' => 'Hercules Core',
'slug' => 'hercules-core',
'source' => esc_url('http://novablog-plugins.hercules-design.com/hercules-core.zip'),
'required' => true,
'version' => '1.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => '',
),
);
$config = array(
'id' => 'novablog',
'default_path' => '',
'menu' => 'tgmpa-install-plugins',
'has_notices' => true,
'dismissable' => true,
'dismiss_msg' => '',
'is_automatic' => false,
'message' => '',
);
tgmpa( $plugins, $config );
}
add_action( 'vc_before_init', 'novablog_vcSetAsTheme' );
function novablog_vcSetAsTheme() {
vc_set_as_theme();
}