| Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 Path : /home/eglisebaa/www/wp-content/themes/hallelujah/plugins/revslider/ |
| Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/plugins/revslider/revslider.php |
<?php
/* Revolution Slider support functions
------------------------------------------------------------------------------- */
// Theme init priorities:
// 9 - register other filters (for installer, etc.)
if ( ! function_exists( 'hallelujah_revslider_theme_setup9' ) ) {
add_action( 'after_setup_theme', 'hallelujah_revslider_theme_setup9', 9 );
function hallelujah_revslider_theme_setup9() {
if ( is_admin() ) {
add_filter( 'hallelujah_filter_tgmpa_required_plugins', 'hallelujah_revslider_tgmpa_required_plugins' );
}
}
}
// Filter to add in the required plugins list
if ( ! function_exists( 'hallelujah_revslider_tgmpa_required_plugins' ) ) {
//Handler of the add_filter('hallelujah_filter_tgmpa_required_plugins', 'hallelujah_revslider_tgmpa_required_plugins');
function hallelujah_revslider_tgmpa_required_plugins( $list = array() ) {
if ( hallelujah_storage_isset( 'required_plugins', 'revslider' ) && hallelujah_storage_get_array( 'required_plugins', 'revslider', 'install' ) !== false && hallelujah_is_theme_activated() ) {
$path = hallelujah_get_plugin_source_path( 'plugins/revslider/revslider.zip' );
if ( ! empty( $path ) || hallelujah_get_theme_setting( 'tgmpa_upload' ) ) {
$list[] = array(
'name' => hallelujah_storage_get_array( 'required_plugins', 'revslider', 'title' ),
'slug' => 'revslider',
'source' => ! empty( $path ) ? $path : 'upload://revslider.zip',
'required' => false,
);
}
}
return $list;
}
}
// Check if RevSlider installed and activated
if ( ! function_exists( 'hallelujah_exists_revslider' ) ) {
function hallelujah_exists_revslider() {
return function_exists( 'rev_slider_shortcode' );
}
}