<?php

class Meow_Gallery_Custom_Links_Extra
{
  public function __construct() {
		if ( class_exists( 'Meow_Gallery_Core' ) )
			add_filter( 'gallery_custom_links_classes', array( $this, 'meow_gallery' ), 10, 1 );
		if ( function_exists( 'kadence_gallery' ) )
			add_filter( 'gallery_custom_links_classes', array( $this, 'kadence_gallery' ), 10, 1 );
		if ( class_exists( 'Vc_Manager' ) ) {
			add_filter( 'gallery_custom_links_classes', array( $this, 'wpbakery' ), 10, 1 );
		}
	}

	function meow_gallery( $classes ) {
		array_push( $classes, '.mgl-gallery' );
		return $classes;
	}

	function kadence_gallery( $classes ) {
		array_push( $classes, '.kad-wp-gallery' );
		return $classes;
	}

	function wpbakery( $classes ) {
		array_push( $classes, '.w-gallery' );
		return $classes;
	}
}

?>