| Server IP : 89.108.64.180 / Your IP : 216.73.216.229 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/testsite1441.ru/wp-content/themes/hotello/inc/admin/tgm/ |
Upload File : |
<?php
/*Require TGM CLASS*/
require_once HOTELLO_ADMIN_INCLUDE_PATH . '/tgm/class-tgm-plugin-activation.php';
/*Register plugins to activate*/
add_action( 'tgmpa_register', 'hotello_require_plugins' );
function hotello_require_plugins( $return = false ) {
$plugins_path = get_template_directory() . '/inc/admin/tgm/plugins';
$plugins = array(
'stm-configurations' => array(
'name' => 'STM Configurations',
'slug' => 'stm-configurations',
'source' => get_package( 'stm-configurations', 'zip' ),
'required' => true,
'version' => '1.3.5',
'external_url' => 'https://stylemixthemes.com/',
),
'wp-hotelier' => array(
'name' => 'Easy WP Hotelier',
'slug' => 'wp-hotelier',
'required' => true,
'external_url' => 'https://wphotelier.com',
),
'js_composer' => array(
'name' => 'WPBakery Page Builder',
'slug' => 'js_composer',
'source' => get_package( 'js_composer', 'zip' ),
'required' => true,
'version' => '7.3',
'external_url' => 'http://vc.wpbakery.com',
),
'contact-form-7' => array(
'name' => 'Contact Form 7',
'slug' => 'contact-form-7',
'required' => false,
'force_activation' => false,
),
/*Not required for all layouts*/
'mailchimp-for-wp' => array(
'name' => 'MailChimp for WordPress',
'slug' => 'mailchimp-for-wp',
'required' => false,
'external_url' => 'https://mc4wp.com/',
),
'revslider' => array(
'name' => 'Revolution Slider',
'slug' => 'revslider',
'source' => get_package( 'revslider', 'zip' ),
'required' => false,
'version' => '6.6.20',
'external_url' => 'http://www.themepunch.com/revolution/',
),
'instagram-feed' => array(
'name' => 'Instagram Feed',
'slug' => 'instagram-feed',
'required' => false,
'external_url' => 'https://smashballoon.com/',
),
'cultbooking-booking-engine' => array(
'name' => 'CultBooking Hotel Booking Engine & Channel Manager',
'slug' => 'cultbooking-booking-engine',
'required' => false,
'external_url' => 'https://www.cultbooking.com/en/',
),
);
if ( $return ) {
return $plugins;
} else {
$config = array(
'id' => 'hotel_id23432432432',
'is_automatic' => false,
);
tgmpa( $plugins, $config );
}
}