Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Telegram integration #1306

Merged
merged 6 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions assets/extensions-json/sections/all_extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,22 @@
"setting_url": "admin.php?page=evf-settings&tab=integration&section=onepagecrm",
"demo_video_url": "42EUj-Dlnr0"
},
{
"title": "Telegram",
"slug": "everest-forms-telegram",
"name": "Everest Forms Telegram",
"image": "extensions-json/sections/images/telegram.webp",
"excerpt": "Telegram integration for Everest Forms! Easily integrate this popular messaging platform with Everest Forms to offer your users a smooth and efficient interaction experience.",
"link": "https://docs.everestforms.net/docs/telegram/?utm_source=dashboard-all-feature&utm_medium=card-documentation-link",
"released_date": "xx/xx/2024",
"plan": [
"personal",
"agency",
"themegrill agency"
],
"setting_url": "admin.php?page=evf-settings&tab=integration&section=telegram",
"demo_video_url": ""
},
{
"title": "Brevo",
"slug": "everest-forms-brevo",
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Dev - GetResponse compatibility.
* Dev - Brevo module compatibility.
* Dev - Drip module compatibility.
* Dev - Telegram integration compatibility.

= 3.0.1 - 03-07-2024
* Feature - Import entries in our form using csv file.
Expand Down
4 changes: 4 additions & 0 deletions includes/admin/builder/class-evf-builder-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ public function add_sidebar_tab( $name, $slug, $icon = '', $container_name = 'se
'id' => 'tz4UKBX9WxM',
'name' => esc_html__( 'SMS Notifications', 'everest-forms' ),
),
'telegram' => array(
'id' => '',
'name' => esc_html__( 'Telegram', 'everest-forms' ),
),
);

} else {
Expand Down
1 change: 1 addition & 0 deletions includes/admin/builder/class-evf-builder-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ public function add_custom_css_js_section( $arr, $form_data ) {
'user_registration' => esc_html__( 'User Registration', 'everest-forms' ),
'conversation_forms' => esc_html__( 'Conversation Forms', 'everest-forms' ),
'sms_notifications' => esc_html__( 'SMS Notifications', 'everest-forms' ),
'telegram' => esc_html__( 'Telegram', 'everest-forms' ),
);
$arr = array_merge( $arr, $pro_addons );
}
Expand Down
2 changes: 1 addition & 1 deletion includes/evf-core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@
* @return array of form data.
*/
function evf_get_all_forms( $skip_disabled_entries = false, $check_disable_storing_entry_info = true ) {
if( is_null( evf()->form ) ) {

Check failure on line 1135 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Space after opening control structure is required

Check failure on line 1135 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

No space before opening parenthesis is prohibited

Check failure on line 1135 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Expected 1 space(s) after IF keyword; 0 found
return array();
}
$forms = array();
Expand Down Expand Up @@ -1568,11 +1568,11 @@
return false;
}

/** To handle the backward compatibility for those user who is still using the plus and professional plan license key.

Check failure on line 1571 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Doc comment for parameter "$license_plan" missing
*

Check failure on line 1572 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Expected 1 space(s) before asterisk; 0 found
* @since 3.0.0

Check failure on line 1573 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Expected 1 space(s) before asterisk; 0 found
* @param $license_plan License plan.

Check failure on line 1574 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Expected 1 space(s) before asterisk; 0 found

Check failure on line 1574 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Missing parameter name
*/

Check failure on line 1575 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Expected 1 space(s) before asterisk; 0 found
function evf_handle_license_plan_compatibility( $license_plan ) {
$license_plan = ( 'plus' === $license_plan || 'professional' === $license_plan ) ? 'personal' : $license_plan;
return $license_plan;
Expand Down Expand Up @@ -4543,7 +4543,7 @@
$value = wp_kses_post( $data->value );
} elseif ( 'settings[external_url]' === $data->name ) {
$value = esc_url_raw( $data->value );
} elseif ( preg_match( '/evf_email_message/', $data->name ) ) {
} elseif ( preg_match( '/evf_email_message/', $data->name ) || preg_match( '/telegram_message/', $data->name )) {

Check failure on line 4546 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

No space before closing parenthesis is prohibited
$value = wp_kses_post( $data->value );
} else {
$value = sanitize_text_field( $data->value );
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ Yes you can! Join in on our [GitHub repository](https://github.com/wpeverest/eve
* Dev - GetResponse compatibility.
* Dev - Brevo module compatibility.
* Dev - Drip module compatibility.
* Dev - Telegram integration compatibility.

= 3.0.1 - 03-07-2024
* Feature - Import entries in our form using csv file.
Expand Down
Loading