Skip to content
Merged
6 changes: 3 additions & 3 deletions bitwpfi.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Plugin Name: Bit Integrations
* Plugin URI: https://bitapps.pro/bit-integrations
* Description: Bit Integrations is a platform that integrates with over 240+ different platforms to help with various tasks on your WordPress site, like WooCommerce, Form builder, Page builder, LMS, Sales funnels, Bookings, CRM, Webhooks, Email marketing, Social media and Spreadsheets, etc
* Version: 2.4.3
* Description: Bit Integrations is a platform that integrates with over 250+ different platforms to help with various tasks on your WordPress site, like WooCommerce, Form builder, Page builder, LMS, Sales funnels, Bookings, CRM, Webhooks, Email marketing, Social media and Spreadsheets, etc
* Version: 2.4.4
* Author: Automation & Integration Plugin - Bit Apps
* Author URI: https://bitapps.pro
* Text Domain: bit-integrations
Expand All @@ -24,7 +24,7 @@
$btcbi_db_version = '1.1';

// Define most essential constants.
define('BTCBI_VERSION', '2.4.3');
define('BTCBI_VERSION', '2.4.4');
define('BTCBI_PLUGIN_MAIN_FILE', __FILE__);

require_once plugin_dir_path(__FILE__) . 'includes/loader.php';
Expand Down
11 changes: 9 additions & 2 deletions frontend-dev/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"semi": false,
"tabWidth": 2,
"bracketSpacing": true,
"printWidth": 105,
"useTabs": false,
"tabWidth": 2,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"bracketSameLine": false,
"endOfLine": "lf",
"trailingComma": "none",
"jsxBracketSameLine": true
"arrowParens": "avoid",
"plugins": ["prettier-plugin-tailwindcss"]
}
5 changes: 4 additions & 1 deletion frontend-dev/src/Utils/StaticData/webhookIntegrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export const customFormIntegrations = [
'PieForms',
'Asgaros',
'AvadaForms',
'FluentCommunity'
'FluentCommunity',
'Buddypress',
'NinjaTables',
'AdvancedAds'
]

export const actionHookIntegrations = ['ActionHook']
Expand Down
83 changes: 36 additions & 47 deletions frontend-dev/src/pages/ChangelogToggle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export default function ChangelogToggle() {
const [show, setShow] = useState(btcbi.changelogVersion !== btcbi.version)
const [showAnalyticsOptin, setShowAnalyticsOptin] = useState(false)
const [loading, setLoading] = useState('')
const [step, setStep] = useState(1)
const [step, setStep] = useState(2)

const source = !btcbi.isPro ? 'bit-integrations' : 'bit-integrations-pro'
const dealURL = `https://bitapps.pro/new-year-deal/#bit-integrations-pricing`
const releaseDate = '12th January 2025'
// const source = !btcbi.isPro ? 'bit-integrations' : 'bit-integrations-pro'
// const dealURL = `https://bitapps.pro/new-year-deal/#bit-integrations-pricing`
const releaseDate = '16th January 2025'

// Changelog items format [{ 'label': '', 'desc': '', 'isPro': true }]
const changeLog = [
Expand All @@ -32,42 +32,30 @@ export default function ChangelogToggle() {
label: __('New Actions', 'bit-integrations'),
headClass: 'new-integration',
itemClass: 'integration-list',
items: []
items: [{ 'label': 'SmartSuite', 'desc': '', 'isPro': false }]
},
{
label: __('New Triggers', 'bit-integrations'),
headClass: 'new-trigger',
itemClass: 'integration-list',
items: []
items: [
{ 'label': 'Advanced Ads', 'desc': '', 'isPro': true },
{ 'label': 'BuddyPress', 'desc': '', 'isPro': true },
{ 'label': 'Ninja Tables', 'desc': '', 'isPro': true },
{ 'label': 'Sensei LMS', 'desc': '', 'isPro': true }
]
},
{
label: __('New Features', 'bit-integrations'),
headClass: 'new-feature',
itemClass: 'feature-list',
items: [
{
label: 'FluentCRM (Trigger)',
desc: 'Added company data, including custom field data, to contacts-related triggers.',
isPro: true
}
]
items: []
},
{
label: __('New Improvements', 'bit-integrations'),
headClass: 'new-improvement',
itemClass: 'feature-list',
items: [
{
label: 'BuddyBoss (Action)',
desc: 'Added sender and recipient user details in the send private message module.',
isPro: false
},
{
label: 'Freshsales',
desc: 'Increased the fetching quantity for accounts and contacts.',
isPro: false
}
]
items: []
}
]

Expand Down Expand Up @@ -112,7 +100,7 @@ export default function ChangelogToggle() {
type="button"
className="changelog-btn"
onClick={() => {
setStep(1)
setStep(2)
setShow(true)
}}>
<ChangelogIcn size={25} />
Expand All @@ -127,27 +115,28 @@ export default function ChangelogToggle() {
height: 'auto',
width: '550px'
}}>
{(step === 1 && show === true && (
<>
<div>
<a href={dealURL} target="_blank" rel="noreferrer">
<img
src={NewYear}
style={{ width: '100%', height: 'auto', marginTop: '-2px', borderRadius: '20px' }}
alt=""
/>
</a>
</div>
<div className="txt-right" style={{ marginTop: '-2px' }}>
<button
type="button"
className="btn round btcd-btn-lg purple purple-sh"
onClick={() => setStep(2)}>
{__('Next', 'bit-integrations')}
</button>
</div>
</>
)) ||
{
// (step === 1 && show === true && (
// <>
// <div>
// <a href={dealURL} target="_blank" rel="noreferrer">
// <img
// src={NewYear}
// style={{ width: '100%', height: 'auto', marginTop: '-2px', borderRadius: '20px' }}
// alt=""
// />
// </a>
// </div>
// <div className="txt-right" style={{ marginTop: '-2px' }}>
// <button
// type="button"
// className="btn round btcd-btn-lg purple purple-sh"
// onClick={() => setStep(2)}>
// {__('Next', 'bit-integrations')}
// </button>
// </div>
// </>
// )) ||
(step === 2 && (
<div className="changelog content">
<div className="flx flx-col flx-center whats-new">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions includes/Admin/AdminAjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AdminAjax
{
public function register()
{
Route::post('app/config', [$this, 'updatedAppConfig']);
Route::post('app/config', [$this, 'updatedAppConfig']);
Route::get('get/config', [$this, 'getAppConfig']);
// CHANGELOG VERSION OPTIONS
Route::post('changelog_version', [$this, 'setChangelogVersion']);
Expand All @@ -33,12 +33,13 @@ public function getAppConfig()

public function setChangelogVersion()
{

if (wp_verify_nonce(sanitize_text_field($_REQUEST['_ajax_nonce']), 'btcbi_nonce')) {
$inputJSON = file_get_contents('php://input');
$inputJSON = stripslashes($_REQUEST['data']);
$input = json_decode($inputJSON);
$version = isset($input->version) ? $input->version : '';

update_option('btcbi_changelog_version', $version);

wp_send_json_success($version, 200);
} else {
wp_send_json_error(
Expand Down
26 changes: 14 additions & 12 deletions includes/Admin/Admin_Bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace BitCode\FI\Admin;

use BitCode\FI\Core\Util\Hooks;
use BitCode\FI\Core\Util\Capabilities;
use BitCode\FI\Core\Util\DateTimeHelper;
use BitCode\FI\Core\Util\Hooks;

/**
* The admin menu and page handler class
Expand Down Expand Up @@ -109,17 +109,17 @@ public function AdminAssets($current_screen)
$btcbi = apply_filters(
'btcbi_localized_script',
[
'nonce' => wp_create_nonce('btcbi_nonce'),
'assetsURL' => BTCBI_ASSET_URI,
'baseURL' => $base_path_admin . 'admin.php?page=bit-integrations#',
'siteURL' => site_url(),
'ajaxURL' => admin_url('admin-ajax.php'),
'api' => $api,
'dateFormat' => get_option('date_format'),
'timeFormat' => get_option('time_format'),
'timeZone' => DateTimeHelper::wp_timezone_string(),
'userMail' => $userMails,
'currentUser'=> wp_get_current_user(),
'nonce' => wp_create_nonce('btcbi_nonce'),
'assetsURL' => BTCBI_ASSET_URI,
'baseURL' => $base_path_admin . 'admin.php?page=bit-integrations#',
'siteURL' => site_url(),
'ajaxURL' => admin_url('admin-ajax.php'),
'api' => $api,
'dateFormat' => get_option('date_format'),
'timeFormat' => get_option('time_format'),
'timeZone' => DateTimeHelper::wp_timezone_string(),
'userMail' => $userMails,
'currentUser' => wp_get_current_user(),
]
);

Expand All @@ -129,10 +129,12 @@ public function AdminAssets($current_screen)

$changelogVersion = get_option('btcbi_changelog_version', '0.0.0');
$btcbi['changelogVersion'] = $changelogVersion;

if ((get_locale() !== 'en_US' || get_user_locale() !== 'en_US') && file_exists(BTCBI_PLUGIN_BASEDIR . '/languages/generatedString.php')) {
include_once BTCBI_PLUGIN_BASEDIR . '/languages/generatedString.php';
$btcbi['translations'] = $bit_integrations_i18n_strings;
}

wp_localize_script('index-BTCBI-MODULE', 'btcbi', $btcbi);
}

Expand Down
2 changes: 1 addition & 1 deletion includes/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Config

public const VAR_PREFIX = 'btcbi_';

public const VERSION = '2.4.3';
public const VERSION = '2.4.4';

public const DB_VERSION = '1.0';

Expand Down
Loading