Changeset 2285821
- Timestamp:
- 04/17/2020 03:39:55 PM (6 years ago)
- Location:
- cf7-db-tool/trunk
- Files:
-
- 4 edited
-
assets/css/cf7-bulk-mail.css (modified) (1 diff)
-
cf7-db-tool.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
-
src/Plugin.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cf7-db-tool/trunk/assets/css/cf7-bulk-mail.css
r2279382 r2285821 202 202 width: 150px; 203 203 } 204 .captcha-shortcode{ 205 border: 2px solid #ddd; padding: 0 10px 206 } 207 .captcha-shortcode h3{ 208 border-bottom: 2px solid #000;width: max-content 209 } 210 .captcha-shortcode p{ 211 display: flex;align-items: center 212 } 204 213 205 214 -
cf7-db-tool/trunk/cf7-db-tool.php
r2282421 r2285821 8 8 * Text Domain: cf7-db-tool 9 9 * Tags: contact, cf7, zapier, integration, webhook, bulk mail, contact form 7, db, export, save, wpcf7, contact form 7 db, contact form 7 database, contact form 7 data export, contact form 7 database addon 10 * Version: 4.2. 710 * Version: 4.2.8 11 11 */ 12 12 13 define('CF7_DBT_VERSION', '4.2. 7');14 define('CF7_DBT_DB_VERSION', '4.2. 7');13 define('CF7_DBT_VERSION', '4.2.8'); 14 define('CF7_DBT_DB_VERSION', '4.2.8'); 15 15 define('CF7_DBT_PATH', __DIR__); 16 16 define('CF7_DBT_URL', plugins_url(basename(CF7_DBT_PATH))); -
cf7-db-tool/trunk/readme.txt
r2282421 r2285821 1 1 === CF7 DB Tool & Webhook & Zapier & Bulk Email - All in one. === 2 2 Contributors: orangetoolz 3 Tags: contact, cf7, zapier, integration, webhook, bulk mail, contact form 7, db, export, save, wpcf7, contact form 7 db, contact form 7 database, contact form 7 data export, contact form 7 database addon 3 Tags: contact, cf7, zapier, integration, webhook, bulk mail, contact form 7, db, export, save, wpcf7, contact form 7 db, 4 contact form 7 database, contact form 7 data export, contact form 7 database addon,Anti-spam security, Antispam,Captcha, Captha,Recaptcha 4 5 Requires at least: 4.8 5 6 Tested up to: 5.4 6 Stable tag: 4.2. 77 Stable tag: 4.2.8 7 8 License: GPLv2 or later 8 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 11 12 12 13 == Description == 13 14 The “CF7 DB TOOL” plugin saves contact form 7 submissions to your WordPress database. 15 Enable Bulk Email, and Zapier. 14 16 After installing the plugin it automatically captures and stores all contact form 7 submission inside the wp-admin interface. 15 17 … … 32 34 Email integration with bulk mail [Mailgun](https://www.mailgun.com/) 33 35 Email integration with bulk mail with [sendgrid](https://sendgrid.com/) 36 Captcha Enable to protect spam. 37 34 38 35 39 … … 179 183 *Email integration with bulk mail with 180 184 185 = 4.2.8 = 186 *Release Date - April 17, 2020* 187 *Captcha Enable to protect spam. 181 188 182 189 183 190 184 191 192 193 -
cf7-db-tool/trunk/src/Plugin.php
r2282421 r2285821 61 61 require_once'BulkMail.php'; 62 62 require_once 'Integration/integration.php'; 63 require_once 'captcha/cf7DbToolcaptcha.php'; 63 64 $this->config = new Config(); 64 65 add_action('admin_menu', [$this, 'addOptionsPage'], 5); … … 112 113 [$this, 'cf7BulkMail'] 113 114 ); 114 115 /** 116 * Submenu for mail settings 117 * */ 115 118 add_submenu_page( 'cf7_dbt', 'Mail Settings', 'Mail settings', 'manage_options', 'Mail-Settings',[$this, 'cf7BulkMailSettings'] ); 116 117 add_action( 'admin_init', [$this, 'custom_mail_settings'] ); 119 /** 120 * Submenu for captcha settings 121 * */ 122 add_submenu_page( 'cf7_dbt', 'Captcha Settings', 'Captcha Settings', 'manage_options', 'Captcha-Settings',[$this, 'cf7BulkCaptchaSettings'] ); 123 124 125 /** 126 * Register filed function call 127 * */ 128 add_action( 'admin_init', [$this, 'custom_settings_fields'] ); 118 129 119 130 } … … 170 181 */ 171 182 public function cf7BulkMailSettings(){ 172 require_once 'mail-setting-options/mail-fields-support.php'; 173 } 183 require_once 'setting-options-fileds/mail-fields-support.php'; 184 } 185 186 187 /** 188 * Callback for captcha File include 189 * @return void 190 */ 191 public function cf7BulkCaptchaSettings(){ 192 require_once 'setting-options-fileds/captcha-settings-fields.php'; 193 } 174 194 175 195 /** … … 177 197 */ 178 198 179 function custom_ mail_settings() {199 function custom_settings_fields() { 180 200 /** 181 201 * Mail Provider registered fileds … … 211 231 add_settings_field('sendgrid_username','SendGrid Username', [$this, 'sendgrid_userName'],'mail-support-options','sendgrid_mail_setting'); 212 232 add_settings_field('sendgrid_password','SendGrid Password', [$this, 'sendgrid_userPassword'],'mail-support-options','sendgrid_mail_setting'); 213 } 214 233 234 /** 235 * Captcha registered fileds 236 * */ 237 register_setting('captcha-settings-group', 'cf7db-captcha-active'); 238 register_setting('captcha-settings-group', 'cf7db-captcha-keyLenght'); 239 240 241 /** 242 * captcha settings Section 243 * */ 244 add_settings_section( 'cf7_db_captcha_setting', 'Customize your captcha settings', [$this, 'cf7DbToolCaptcha__section_cb'], 'Captcha-Settings' ); 245 /** 246 * Captcha Settings fileds 247 * */ 248 add_settings_field('active_cf7DbToolCaptcha','Active Captcha', [$this, 'active_captcha_cb'],'Captcha-Settings','cf7_db_captcha_setting'); 249 add_settings_field('cf7DbToolCaptchaKeyLenght','Captcha Key Length', [$this, 'cf7DbKeyLength'],'Captcha-Settings','cf7_db_captcha_setting'); 250 251 } 252 253 254 /** 255 * Captcha Fields Design 256 * */ 257 //Active / Deactive captcha 258 public function active_captcha_cb(){ 259 $active_captcha = get_option('cf7db-captcha-active'); 260 $checkded = ($active_captcha? 'checked' : ''); 261 echo '<label><input type="checkbox" '.$checkded.' name="cf7db-captcha-active" class="active_captcha" value="1"> </label>'; 262 echo '<span>(If you already using <i><b>Really Simple CAPTCHA</b></i>, you dont need to active this.)</span>'; 263 264 } 265 //Captcha Length 266 public function cf7DbKeyLength(){ 267 $capthcaLenght = get_option('cf7db-captcha-keyLenght'); 268 $capthcaLenght = ($capthcaLenght? $capthcaLenght : 4); 269 echo '<input type="number" class="captcha-keylenght" value="'.$capthcaLenght.'" name="cf7db-captcha-keyLenght" > '; 270 } 215 271 216 272 /** 217 273 * Mail provider inputs Fileds design 218 274 * */ 219 //Active / Deactive mail provider220 function active_mail_provider_cb(){275 //Active / Deactive mail provider 276 public function active_mail_provider_cb(){ 221 277 $active_mailer = get_option('active_mailer'); 222 278 $checkded = ($active_mailer? 'checked' : ''); 223 279 echo '<label><input type="checkbox" '.$checkded.' name="active_mailer" class="active_mail_provider" value="1"> Active Thirdparty Mail Service </label>'; 224 280 } 281 225 282 226 283 //Choose mail provider … … 292 349 293 350 } 351 public function cf7DbToolCaptcha__section_cb(){} 294 352 295 353 /** … … 302 360 wp_enqueue_style('cf7-dbt-bulkmail', CF7_DBT_URL . '/assets/css/cf7-bulk-mail.css', '', CF7_DBT_VERSION); 303 361 wp_enqueue_script('cf7-dbt-script', CF7_DBT_URL . '/assets/js/cf7-db-tool.js', ['jquery'], CF7_DBT_VERSION,true); 304 305 362 306 363 wp_localize_script('cf7-dbt-script','cf7DbtObj',[ … … 308 365 'nonce' => wp_create_nonce('cf7-dbt-reply-nonce') 309 366 ]); 310 311 367 312 368 }
Note: See TracChangeset
for help on using the changeset viewer.