<?php
/**
 * All extensions are listed in this file and can be seen under Newsletters > Extensions in the plugin.
 *
 * @todo Temporary solution — keep plain strings here (no translation functions) to avoid
 * early `_load_textdomain_just_in_time` notices. Once this file is loaded/registered in a
 * standard way (e.g., included on or after `init`/`admin_init`), reintroduce translation
 * wrappers for these texts (e.g., `__( ...)`, `esc_html__( ...)`, `wp_kses_post( __( ... ) )`)
 * with the 'wp-mailinglist' textdomain, or translate at render time.
 */
global $extensions;

$extensions = array(
	'embedimages'		=>	array(
		'name' 				=> 	'Embedded Images',
		'description'		=>	"Attach/embed images into emails instead of loading them remotely to prevent image disabling and immediate loading of newsletters.",
		'link'				=>	"https://tribulant.com/extensions/view/6/embedded-images",
		'slug'				=>	'embedimages',
		'plugin_name'		=>	'newsletters-embedimages',
		'plugin_file'		=>	'embedimages.php',
	),
	'formidable'		=>	array(
		'name' 				=> 	'Formidable Subscribers',
		'description'		=>	"Subscribe users from Formidable forms entries into the Newsletter plugin.",
		'link'				=>	"https://tribulant.com/extensions/view/16/formidable-subscribers",
		'slug'				=>	'formidable',
		'plugin_name'		=>	'newsletters-formidable',
		'plugin_file'		=>	'formidable.php',
	),
	'gforms'			=>	array(
		'name' 				=> 	'Gravity Forms',
		'description'		=>	"Capture subscribers through Gravity Forms into the Newsletter plugin.",
		'link'				=>	"https://tribulant.com/extensions/view/17/gravity-forms",
		'slug'				=>	'gforms',
		'plugin_name'		=>	'newsletters-gforms',
		'plugin_file'		=>	'gforms.php',
	),
	'mscontrol'			=>	array(
		'name'				=>	'Total MS Control',
		'link'				=>	"https://tribulant.com/extensions/view/26/total-ms-control",
		'description'		=>	"Total control over your Newsletter plugin installation for WordPress multi-site.",
		'slug'				=>	'mscontrol',
		'plugin_name'		=>	'newsletters-mscontrol',
		'plugin_file'		=>	'mscontrol.php',
	),
	'cf7'				=>	array(
		'name'				=>	'Contact Form 7 Subscribers',
		'link'				=>	"https://tribulant.com/extensions/view/28/contact-form7-subscribers",
		'description'		=>	'Capture newsletter subscribers into the Newsletter plugin from your Contact Form 7 plugin forms.',
		'slug'				=>	'cf7',
		'plugin_name'		=>	'newsletters-cf7',
		'plugin_file'		=>	'cf7.php',
	),
	'dap'				=>	array(
		'name'				=>	'Digital Access Pass',
		'link'				=>	"https://tribulant.com/extensions/view/43/digital-access-pass",
		'description'		=>	"Capture email/newsletters subscribes from <a href=\"https://digitalaccesspass.com\" target=\"_blank\">Digital Access Pass</a>.",
		'slug'				=>	'dap',
		'plugin_name'		=>	'newsletters-dap',
		'plugin_file'		=>	'dap.php',
	),
	'newsletters_ga'	=>	array(
		'name'				=>	'Google Analytics',
		'link'				=>	"https://tribulant.com/extensions/",
		'description'		=>	"Google Analytics link tracking for the <a href=\"https://tribulant.com/plugins/view/1/wordpress-newsletter-plugin\" target=\"_blank\">Newsletter plugin</a>.",
		'slug'				=>	'newsletters_ga',
		'plugin_name'		=>	'newsletters-ga',
		'plugin_file'		=>	'ga.php',
	),
	'wpemember'			=>	array(
		'name'				=>	'WP eMember Subscribers',
		'link'				=>	"https://tribulant.com/extensions/view/31/wp-emember-subscribers",
		'description'		=>	'Capture subscribers from WP eMember into the Newsletter plugin.',
		'slug'				=>	'wpemember',
		'plugin_name'		=>	'newsletters-wpemember',
		'plugin_file'		=>	'wpemember.php',
	),
	's2member'			=>	array(
		'name'				=>	's2Member Subscribers',
		'link'				=>	"https://tribulant.com/extensions/view/32/s2member-subscribers",
		'description'		=>	'Capture subscribers from s2Member into the Newsletter plugin.',
		'slug'				=>	's2member',
		'plugin_name'		=>	'newsletters-s2member',
		'plugin_file'		=>	's2member.php',
	),
	'sendtofriend' 		=> array(
		'name'				=>	'Send to Friend',
		'link'				=>	"https://tribulant.com/extensions/",
		'description'		=>	"Let subscribers suggest newsletters to friends for the <a href=\"https://tribulant.com/plugins/view/1/wordpress-newsletter-plugin\" target=\"_blank\">Newsletter plugin</a>.",
		'slug'				=>	'sendtofriend',
		'plugin_name'		=>	'newsletters-sendtofriend',
		'plugin_file'		=>	'sendtofriend.php',
	),
	'control'			=>	array(
		'name'				=>	'Total Control',
		'link'				=>	"https://tribulant.com/extensions/view/36/total-control",
		'description'		=>	'Total control over your Newsletter plugin for WordPress.',
		'slug'				=>	'control',
		'plugin_name'		=>	'newsletters-control',
		'plugin_file'		=>	'control.php',
	),
	'newsletters_woocommerce'	=>	array(
		'name'				=>	'WooCommerce Subscribers',
		'link'				=>	"https://tribulant.com/extensions/view/42/woocommerce-subscribers",
		'description'		=>	"Capture email subscribers from the WooCommerce plugin to the <a href=\"https://tribulant.com/plugins/view/1/wordpress-newsletter-plugin\" target=\"_blank\">Newsletter plugin</a>.",
		'slug'				=>	'woocommerce',
		'plugin_name'		=>	'newsletters-woocommerce',
		'plugin_file'		=>	'woocommerce.php',
	),
	'profilebuilder' 			=> array(	//13
		'name'				=>	'Profile Builder',
		'link'				=>	"https://tribulant.com/extensions/view//66/profile-builder-subscribers",
		'description'		=>	'Capture newsletter subscribers from Profile Builder registration',
		'slug'				=>	'profilebuilder',
		'plugin_name'		=>	'newsletters-profilebuilder',
		'plugin_file'		=>	'profilebuilder.php',
	),
	'eventsmanager'				=>	array(	//14
		'name'				=>	'Events Manager',
		'link'				=>	"https://tribulant.com/extensions/view/68/events-manager-subscribers",
		'description'		=>	'Capture newsletter subscribers from Events Manager registration',
		'slug'				=>	'eventsmanager',
		'plugin_name'		=>	'newsletters-eventsmanager',
		'plugin_file'		=>	'eventsmanager.php',
	),
	'dates'						=>	array(	//15
		'name'				=>	'Special Dates Autoresponder',
		'link'				=>	"https://tribulant.com/extensions/view/63/special-dates-autoresponder",
		'description'		=>	"Send autoresponder emails to subscribers on special/specific dates based on custom field values for <a href=\"https://tribulant.com/plugins/view/1/wordpress-newsletter-plugin\" target=\"_blank\">Newsletter plugin</a>.",
		'slug'				=>	'dates',
		'plugin_name'		=>	'newsletters-dates',
		'plugin_file'		=>	'dates.php',
	),
	'newsletters_bloom'			=>	array(	//16
		'name'				=>	'Bloom Subscribers',
		'link'				=>	"https://tribulant.com/extensions/view/69/bloom-subscribers",
		'description'		=>	"Capture email subscribers from the Bloom plugin to the <a href=\"https://tribulant.com/plugins/view/1/wordpress-newsletter-plugin\" target=\"_blank\">Newsletter plugin</a>.",
		'slug'				=>	'newsletters_bloom',
		'plugin_name'		=>	'newsletters-bloom',
		'plugin_file'		=>	'bloom.php',
	)
);

$titles = array();
foreach ($extensions as $ext) {
	$titles[] = $ext['name'];
}

array_multisort($titles, SORT_ASC, $extensions);

?>
