| @@ -1,258 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -defined('ABSPATH') || die('Restricted Access'); | |
| 4 | - | |
| 5 | -define('ACYM_CMS', 'wordpress'); | |
| 6 | -define('ACYM_CMS_TITLE', 'WordPress'); | |
| 7 | -define('ACYM_COMPONENT', 'acymailing'); | |
| 8 | -define('ACYM_DEFAULT_LANGUAGE', 'en-US'); | |
| 9 | - | |
| 10 | -define('ACYM_BASE', ''); | |
| 11 | -// On wordpress.com, websites have access restrictions on the base folder. According to them we need $_SERVER['DOCUMENT_ROOT'] instead of the standard ABSPATH | |
| 12 | -$acymailingAbsPath = ABSPATH; | |
| 13 | -if (!empty($_SERVER['DOCUMENT_ROOT'])) { | |
| 14 | - $acymailingDocRoot = sanitize_text_field(wp_unslash($_SERVER['DOCUMENT_ROOT'])); | |
| 15 | - $acymailingPos = strpos(ABSPATH, $acymailingDocRoot); | |
| 16 | - if ($acymailingPos !== false) { | |
| 17 | - $acymailingDocRoot .= substr(ABSPATH, $acymailingPos + strlen($acymailingDocRoot)); | |
| 18 | - } | |
| 19 | - $acymailingDocRoot = rtrim($acymailingDocRoot, DS.'/').DS; | |
| 20 | - if (str_replace($acymailingDocRoot, '', WP_PLUGIN_DIR.DS) === 'wp-content/plugins/') { | |
| 21 | - $acymailingAbsPath = $acymailingDocRoot; | |
| 22 | - } | |
| 23 | -} | |
| 24 | -// For WordPress bedrock | |
| 25 | -if (defined('CONTENT_DIR') && substr($acymailingAbsPath, -3) === 'wp/') { | |
| 26 | - $acymailingAbsPath = substr($acymailingAbsPath, 0, -3); | |
| 27 | -} | |
| 28 | -define('ACYM_ROOT', rtrim($acymailingAbsPath, DS.'/').DS); | |
| 29 | -define('ACYM_FOLDER', WP_PLUGIN_DIR.DS.ACYM_COMPONENT.DS); | |
| 30 | -define('ACYM_WIDGETS', ACYM_FOLDER.'widgets'.DS); | |
| 31 | -define('ACYM_FRONT', ACYM_FOLDER.'front'.DS); | |
| 32 | -define('ACYM_BACK', ACYM_FOLDER.'back'.DS); | |
| 33 | -define('ACYM_VIEW', ACYM_BACK.'Views'.DS); | |
| 34 | -define('ACYM_PARTIAL', ACYM_BACK.'Partial'.DS); | |
| 35 | -define('ACYM_NEW_FEATURES_SPLASHSCREEN', ACYM_PARTIAL.'update'.DS.'new_features.php'); | |
| 36 | -define('ACYM_NEW_FEATURES_SPLASHSCREEN_JSON', ACYM_PARTIAL.'update'.DS.'changelogs_splashscreen.json'); | |
| 37 | -define('ACYM_VIEW_FRONT', ACYM_FRONT.'FrontViews'.DS); | |
| 38 | -define('ACYM_HELPER', ACYM_BACK.'Helpers'.DS); | |
| 39 | -define('ACYM_CLASS', ACYM_BACK.'Classes'.DS); | |
| 40 | -define('ACYM_CORE', ACYM_BACK.'Core'.DS); | |
| 41 | -define('ACYM_TYPE', ACYM_BACK.'Types'.DS); | |
| 42 | -define('ACYM_CONTROLLER', ACYM_BACK.'Controllers'.DS); | |
| 43 | -define('ACYM_CONTROLLER_FRONT', ACYM_FRONT.'FrontControllers'.DS); | |
| 44 | -define('ACYM_MEDIA', ACYM_FOLDER.'media'.DS); | |
| 45 | - | |
| 46 | -define('ACYM_WP_UPLOADS', basename(WP_CONTENT_DIR).DS.'uploads'.DS.ACYM_COMPONENT.DS); | |
| 47 | -define('ACYM_UPLOADS_PATH', ACYM_ROOT.ACYM_WP_UPLOADS); | |
| 48 | -define('ACYM_UPLOAD_FOLDER_URL', WP_CONTENT_URL.'/uploads/'.ACYM_COMPONENT.'/'); | |
| 49 | -define('ACYM_OVERRIDES', ACYM_UPLOADS_PATH.'overrides'.DS); | |
| 50 | - | |
| 51 | -define('ACYM_LANGUAGE', ACYM_UPLOADS_PATH.'language'.DS); | |
| 52 | -define('ACYM_LIBRARIES', ACYM_BACK.'Libraries'.DS); | |
| 53 | -define('ACYM_UPLOAD_FOLDER', ACYM_WP_UPLOADS.'upload'.DS); | |
| 54 | -define('ACYM_TEMPLATE', ACYM_UPLOADS_PATH.'templates'.DS); | |
| 55 | -define('ACYM_TEMPLATE_URL', ACYM_UPLOAD_FOLDER_URL.'templates/'); | |
| 56 | -define('ACYM_TMP_FOLDER', ACYM_UPLOADS_PATH.'tmp'.DS); | |
| 57 | -define('ACYM_TMP_URL', ACYM_UPLOAD_FOLDER_URL.'tmp/'); | |
| 58 | -define('ACYM_UPLOADS_URL', ACYM_UPLOAD_FOLDER_URL.'upload/'); | |
| 59 | - | |
| 60 | -define('ACYM_PLUGINS_URL', plugins_url()); | |
| 61 | -define('ACYM_MEDIA_RELATIVE', str_replace(ACYM_ROOT, '', ACYM_MEDIA)); | |
| 62 | -define('ACYM_MEDIA_URL', ACYM_PLUGINS_URL.'/'.ACYM_COMPONENT.'/media/'); | |
| 63 | -define('ACYM_IMAGES', ACYM_MEDIA_URL.'images/'); | |
| 64 | -define('ACYM_CSS', ACYM_MEDIA_URL.'css/'); | |
| 65 | -define('ACYM_JS', ACYM_MEDIA_URL.'js/'); | |
| 66 | -define('ACYM_TEMPLATE_THUMBNAILS', ACYM_UPLOAD_FOLDER_URL.'thumbnails/'); | |
| 67 | -define('ACYM_CORE_DYNAMICS_URL', ACYM_PLUGINS_URL.'/'.ACYM_COMPONENT.'/back/dynamics/'); | |
| 68 | -define('ACYM_DYNAMICS_URL', ACYM_UPLOAD_FOLDER_URL.'addons/'); | |
| 69 | -define('ACYM_ADDONS_FOLDER_PATH', ACYM_UPLOADS_PATH.'addons'.DS); | |
| 70 | - | |
| 71 | -define('ACYM_WP_BLOCK', ACYM_FOLDER.'wpblock'.DS); | |
| 72 | - | |
| 73 | -define('ACYM_MEDIA_FOLDER', str_replace([ABSPATH, ACYM_ROOT], '', WP_PLUGIN_DIR).DS.ACYM_COMPONENT.DS.'media'.DS); | |
| 74 | -define('ACYM_UPLOAD_FOLDER_THUMBNAIL', WP_CONTENT_DIR.DS.'uploads'.DS.ACYM_COMPONENT.DS.'thumbnails'.DS); | |
| 75 | -define('ACYM_CUSTOM_PLUGIN_LAYOUT', ACYM_UPLOADS_PATH.'plugins'.DS); | |
| 76 | -define('ACYM_LOGS_FOLDER', ACYM_WP_UPLOADS.'logs'.DS); | |
| 77 | - | |
| 78 | -define('ACYM_CMSV', get_bloginfo('version')); | |
| 79 | - | |
| 80 | -define('ACYM_ALLOWRAW', 2); | |
| 81 | -define('ACYM_ALLOWHTML', 4); | |
| 82 | -define('ACYM_ADMIN_GROUP', 'administrator'); | |
| 83 | -define( | |
| 84 | - 'ACYM_AVAILABLE_PLUGINS', | |
| 85 | - [ | |
| 86 | - [ | |
| 87 | - 'name' => 'Advanced Custom Fields (ACF)', | |
| 88 | - 'description' => '- Insert custom post types in your emails<br />- Insert them by category', | |
| 89 | - 'file_name' => 'acf', | |
| 90 | - 'level' => 'starter', | |
| 91 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/advanced-custom-fields-acf', | |
| 92 | - 'category' => 'Content management', | |
| 93 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-acf/', | |
| 94 | - ], | |
| 95 | - [ | |
| 96 | - 'name' => 'Business Directory', | |
| 97 | - 'description' => '- Insert individual listings in your emails<br />- Insert listings by category', | |
| 98 | - 'file_name' => 'businessdirectory', | |
| 99 | - 'level' => 'starter', | |
| 100 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/business-directory', | |
| 101 | - 'category' => 'Content management', | |
| 102 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-business-directory/', | |
| 103 | - ], | |
| 104 | - [ | |
| 105 | - 'name' => 'Contact Form 7', | |
| 106 | - 'description' => '- Add AcyMailing lists on contact forms', | |
| 107 | - 'file_name' => 'contactform7', | |
| 108 | - 'level' => 'starter', | |
| 109 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/contact-form-7', | |
| 110 | - 'category' => 'Subscription system', | |
| 111 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-contact-form-7/', | |
| 112 | - ], | |
| 113 | - [ | |
| 114 | - 'name' => 'Custom headers', | |
| 115 | - 'description' => '- Add custom email headers to the sent emails', | |
| 116 | - 'file_name' => 'customheaders', | |
| 117 | - 'level' => 'starter', | |
| 118 | - 'documentation' => ACYM_DOCUMENTATION.'addons/all-cms-add-ons/custom-headers', | |
| 119 | - 'category' => 'Content management', | |
| 120 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-custom-headers/', | |
| 121 | - ], | |
| 122 | - [ | |
| 123 | - 'name' => 'Easy Digital Downloads', | |
| 124 | - 'description' => '- Insert digital downloads and generate coupons in your emails', | |
| 125 | - 'file_name' => 'easydigitaldownloads', | |
| 126 | - 'level' => 'starter', | |
| 127 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/easydigitaldownloads', | |
| 128 | - 'category' => 'E-commerce solutions', | |
| 129 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-easy-digital-downloads/', | |
| 130 | - ], | |
| 131 | - [ | |
| 132 | - 'name' => 'EventOn', | |
| 133 | - 'description' => '- Add events from Events Manager to your emails.', | |
| 134 | - 'file_name' => 'eventon', | |
| 135 | - 'level' => 'starter', | |
| 136 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/eventon', | |
| 137 | - 'category' => 'Events management', | |
| 138 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-eventon/', | |
| 139 | - ], | |
| 140 | - [ | |
| 141 | - 'name' => 'Events Manager', | |
| 142 | - 'description' => '- Add events from Events Manager to your emails.<br />- Filter users on events participation.', | |
| 143 | - 'file_name' => 'eventsmanager', | |
| 144 | - 'level' => 'starter', | |
| 145 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/events-manager', | |
| 146 | - 'category' => 'Events management', | |
| 147 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-events-manager/', | |
| 148 | - ], | |
| 149 | - [ | |
| 150 | - 'name' => 'Export in automations', | |
| 151 | - 'description' => '- Export the filtered users in the automations', | |
| 152 | - 'file_name' => 'automationexport', | |
| 153 | - 'level' => 'starter', | |
| 154 | - 'documentation' => ACYM_DOCUMENTATION.'addons/all-cms-add-ons/automation-export-action', | |
| 155 | - 'category' => 'User management', | |
| 156 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-automation-export/', | |
| 157 | - ], | |
| 158 | - [ | |
| 159 | - 'name' => 'Gravity Forms', | |
| 160 | - 'description' => '- Add AcyMailing lists to your forms', | |
| 161 | - 'file_name' => 'gravityforms', | |
| 162 | - 'level' => 'starter', | |
| 163 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/gravity-forms', | |
| 164 | - 'category' => 'Subscription system', | |
| 165 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-gravity-forms/', | |
| 166 | - ], | |
| 167 | - [ | |
| 168 | - 'name' => 'Learndash', | |
| 169 | - 'description' => '- Filter AcyMailing users on Learndash groups<br />- Filter AcyMailing users on started Learndash courses', | |
| 170 | - 'file_name' => 'learndash', | |
| 171 | - 'level' => 'starter', | |
| 172 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/learndash', | |
| 173 | - 'category' => 'User management', | |
| 174 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-learndash/', | |
| 175 | - ], | |
| 176 | - [ | |
| 177 | - 'name' => 'MemberPress', | |
| 178 | - 'description' => '- Insert MemberPress custom fields in your emails<br />- Filter users based on their subscription<br />-Trigger automation when a user subscribe to a membership', | |
| 179 | - 'file_name' => 'memberpress', | |
| 180 | - 'level' => 'starter', | |
| 181 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/memberpress', | |
| 182 | - 'category' => 'User management', | |
| 183 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-memberpress/', | |
| 184 | - ], | |
| 185 | - [ | |
| 186 | - 'name' => 'Modern Events Calendar', | |
| 187 | - 'description' => '- Insert events in your emails<br />- Filter users attending your events', | |
| 188 | - 'file_name' => 'moderneventscalendar', | |
| 189 | - 'level' => 'starter', | |
| 190 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/modern-events-calendar', | |
| 191 | - 'category' => 'Events management', | |
| 192 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-modern-events-calendar/', | |
| 193 | - ], | |
| 194 | - [ | |
| 195 | - 'name' => 'RSS and Atom feeds', | |
| 196 | - 'description' => '- Insert content in your emails from an RSS feed<br />- Insert content in your emails from an Atom feed', | |
| 197 | - 'file_name' => 'rss', | |
| 198 | - 'level' => 'starter', | |
| 199 | - 'documentation' => ACYM_DOCUMENTATION.'addons/all-cms-add-ons/rss-feed', | |
| 200 | - 'category' => 'Content management', | |
| 201 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-rss-content/', | |
| 202 | - ], | |
| 203 | - [ | |
| 204 | - 'name' => 'Table of contents', | |
| 205 | - 'description' => '- Insert a dynamic table of contents in your emails based on their contents', | |
| 206 | - 'file_name' => 'tableofcontents', | |
| 207 | - 'level' => 'starter', | |
| 208 | - 'documentation' => ACYM_DOCUMENTATION.'addons/all-cms-add-ons/table-of-contents-generator', | |
| 209 | - 'category' => 'Content management', | |
| 210 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-table-of-contents-generator/', | |
| 211 | - ], | |
| 212 | - [ | |
| 213 | - 'name' => 'The Events Calendar', | |
| 214 | - 'description' => '- Insert events in your emails<br />- Filter users by event subscription', | |
| 215 | - 'file_name' => 'theeventscalendar', | |
| 216 | - 'level' => 'starter', | |
| 217 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/the-events-calendar', | |
| 218 | - 'category' => 'Events management', | |
| 219 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-the-events-calendar/', | |
| 220 | - ], | |
| 221 | - [ | |
| 222 | - 'name' => 'Ultimate Member', | |
| 223 | - 'description' => '- insert AcyMailing list on your Ultimate Member register form', | |
| 224 | - 'file_name' => 'ultimatemember', | |
| 225 | - 'level' => 'starter', | |
| 226 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/ultimate-member', | |
| 227 | - 'category' => 'Subscription system', | |
| 228 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-ultimate-member/', | |
| 229 | - ], | |
| 230 | - [ | |
| 231 | - 'name' => 'Uncanny Automator', | |
| 232 | - 'description' => '- Trigger recipes on AcyMailing subscriber creation/update<br />- Create new AcyMailing subscribers<br />- Subscribe users to lists<br />- Unsubscribe users from lists<br />- <br />- Update AcyMailing subscribers email addresses<br />- Create new tags<br />- Remove old tags', | |
| 233 | - 'file_name' => 'uncannyautomator', | |
| 234 | - 'level' => 'starter', | |
| 235 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/uncanny-automator', | |
| 236 | - 'category' => 'User management', | |
| 237 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-uncanny-automator/', | |
| 238 | - ], | |
| 239 | - [ | |
| 240 | - 'name' => 'Universal filter', | |
| 241 | - 'description' => '- Filter AcyMailing subscribers based on any data from your database<br />- Filter users based on email addresses in a specified text', | |
| 242 | - 'file_name' => 'universalfilter', | |
| 243 | - 'level' => 'enterprise', | |
| 244 | - 'documentation' => ACYM_DOCUMENTATION.'addons/all-cms-add-ons/universal-filter', | |
| 245 | - 'category' => 'User management', | |
| 246 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-universal-filter/', | |
| 247 | - ], | |
| 248 | - [ | |
| 249 | - 'name' => 'WooCommerce', | |
| 250 | - 'description' => '- Insert products and generate coupons in your emails<br />- Filter users based on their purchases', | |
| 251 | - 'file_name' => 'woocommerce', | |
| 252 | - 'level' => 'starter', | |
| 253 | - 'documentation' => ACYM_DOCUMENTATION.'addons/wordpress-add-ons/woocommerce', | |
| 254 | - 'category' => 'E-commerce solutions', | |
| 255 | - 'downloadlink' => 'https://wordpress.org/plugins/acymailing-integration-for-woocommerce/', | |
| 256 | - ], | |
| 257 | - ] | |
| 258 | -); | |