# image-source-control-isc/trunk/includes/plugin.php

Image Source Control Lite – Show Image Credits and Captions, version trunk. 38 lines.

- Page: https://pluginprobe.com/plugins/image-source-control-isc/trunk/code/includes/plugin.php
- Raw: https://pluginprobe.com/plugins/image-source-control-isc/trunk/raw/includes/plugin.php
- Modified: 2025-03-10T11:27:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/image-source-control-isc/trunk/code/includes/plugin.php#L10-L20`.

```php
<?php

namespace ISC;

/**
 * Plugin class
 */
class Plugin {
	use Options;

	/**
	 * Check if this is the pro version
	 *
	 * @return bool
	 */
	public static function is_pro(): bool {
		return defined( 'ISCPRO' );
	}

	/**
	 * Return true if the mentioned module is enabled
	 *
	 * @param string $module module name.
	 *
	 * @return bool
	 */
	public static function is_module_enabled( string $module ) {
		$options = self::get_options();

		// all modules are enabled by default; i.e., when the option is not set
		if ( ! isset( $options['modules'] ) ) {
			return true;
		}

		return ( is_array( $options['modules'] ) && in_array( $module, $options['modules'], true ) );
	}
}

```
