/home/techb158/public_html/wp-content/plugins/optinmonster/OMAPI
NameSizeModeActions
EasyDigitalDownloads/-0755rm
Elementor/-0755rm
Integrations/-0755rm
MemberPress/-0755rm
Plugins/-0755rm
Promos/-0755rm
Rules/-0755rm
Shortcodes/-0755rm
WooCommerce/-0755rm
WPForms/-0755rm
Actions.php79700666editdlrm
Ajax.php14940666editdlrm
Api.php145070666editdlrm
ApiAuth.php24630666editdlrm
ApiKey.php52030666editdlrm
AssetLoader.php54890666editdlrm
BaseRestApi.php68890666editdlrm
Blocks.php131050666editdlrm
ClassicEditor.php70840666editdlrm
ConstantContact.php75910666editdlrm
Debug.php45920666editdlrm
EasyDigitalDownloads.php95530666editdlrm
Elementor.php54930666editdlrm
Inserter.php115710666editdlrm
InstallSkin.php13860666editdlrm
InstallSkinCompat.php13950666editdlrm
MailPoet.php139740666editdlrm
MemberPress.php42160666editdlrm
Menu.php173010666editdlrm
Notifications.php189100666editdlrm
OmuApi.php41220666editdlrm
Output.php258480666editdlrm
Pages.php180190666editdlrm
Partners.php55570666editdlrm
Plugins.php249230666editdlrm
Promos.php11310666editdlrm
Refresh.php65530666editdlrm
RestApi.php441900666editdlrm
RevenueAttribution.php30370666editdlrm
Review.php14820666editdlrm
Rules.php240000666editdlrm
Save.php119990666editdlrm
Shortcode.php36670666editdlrm
Sites.php85530666editdlrm
Support.php91920666editdlrm
Type.php37220666editdlrm
Urls.php89510666editdlrm
Utils.php75890666editdlrm
Validate.php92660666editdlrm
Welcome.php49290666editdlrm
Widget.php66620666editdlrm
WooCommerce.php200450666editdlrm
WpErrorException.php7140666editdlrm
WPForms.php26650666editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/optinmonster/OMAPI/Utils.php (7589B)
getTimezone() ); return $compare < $start; } /** * Check if given date is between provided start/end date. * * @since 2.11.1 * * @param DateTime $compare The date to compare against the start/end date. * @param string $start The start date to compare against, in 'Y-m-d H:i:s' format. * @param string $end The end date to compare against, in 'Y-m-d H:i:s' format. * * @return bool Whether the given date is between provided start/end date. */ public static function date_within( DateTime $compare, $start, $end ) { return ! self::date_before( $compare, $start ) && $compare < DateTime::createFromFormat( 'Y-m-d H:i:s', $end, $compare->getTimezone() ); } /** * Get the domains for each language when WPML is enabled. * * @since 2.16.19 * * @return array $language_switcher The array of language code and domains. */ public static function get_wpml_language_domains() { if ( ! self::is_wpml_active() ) { return array(); } global $sitepress; // Get the language switcher settings. $language_switcher = $sitepress->get_setting( 'language_domains', array() ); return $language_switcher; } /** * Check if WPML is enabled. * * If "A different domain per language" is selected for "Language URL format", * only then we are considering WPML is active. For language_negotiation_type setting: * 1 = Different languages in directories; * 2 = A different domain per language; * 3 = Language name added as a parameter. * * @since 2.16.19 * * @return bool True if WPML is active, false otherwise. */ public static function is_wpml_active() { global $sitepress; return defined( 'ICL_SITEPRESS_VERSION' ) && $sitepress && 2 === (int) $sitepress->get_setting( 'language_negotiation_type' ); } }