@@ -1259,15 +1257,16 @@ public function html( $contact, $metabox ) {
// PerfTest: zeroBSCRM_performanceTest_finishTimer('custmetabox');
// PerfTest: zeroBSCRM_performanceTest_debugOut();
+ $jpcrm_metabox_files_lang = array(
+ 'error' => __( 'Error', 'zero-bs-crm' ),
+ 'unabletodelete' => __( 'Unable to delete this file.', 'zero-bs-crm' ),
+ );
+
?>
+
+ __( 'Error', 'zero-bs-crm' ),
+ 'unabletodel' => __( 'Unable to delete this file', 'zero-bs-crm' ),
+ 'viewcontact' => __( 'View contact', 'zero-bs-crm' ),
+ 'viewcompany' => __( 'View', 'zero-bs-crm' ) . ' ' . jpcrm_label_company(),
+ );
+ ?>
+
+ __( 'Error', 'zero-bs-crm' ),
+ 'unabletodel' => __( 'Unable to delete this file', 'zero-bs-crm' ),
+ );
+ ?>
diff --git a/projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Tasks.php b/projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Tasks.php
index 3e974b0d95c1..fa4795404553 100644
--- a/projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Tasks.php
+++ b/projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Tasks.php
@@ -98,7 +98,7 @@ public function html( $task, $metabox ) {
// PerfTest: zeroBSCRM_performanceTest_finishTimer('custmetabox-dataget');
// PerfTest: zeroBSCRM_performanceTest_startTimer('custmetabox-draw'); ?>
-
+
-
+
+ __( 'No Invoices Found!', 'zero-bs-crm' ),
+ 'none' => __( 'None', 'zero-bs-crm' ),
+ 'view' => __( 'View', 'zero-bs-crm' ),
+ 'contact' => __( 'Contact', 'zero-bs-crm' ),
+ 'company' => jpcrm_label_company(),
+ 'selectinv' => __( 'Select Invoice', 'zero-bs-crm' ),
+ );
+ $jpcrm_transactionedit_links = array(
+ 'editinvprefix' => jpcrm_esc_link( 'edit', -1, 'zerobs_invoice', true ),
+ 'editcontactprefix' => jpcrm_esc_link( 'edit', -1, 'zerobs_customer', true ),
+ 'editcompanyprefix' => jpcrm_esc_link( 'edit', -1, 'zerobs_company', true ),
+ );
+ ?>
DAL->getTagsForObjType(
- array(
-
- 'objtypeid' => $zbs->DAL->objTypeID( $this->objType ), // ZBS_TYPE_CONTACT in place of 'contact'=>1, 'transaction'=> etc.
- 'excludeEmpty' => false,
- 'withCount' => false,
- 'ignoreowner' => true,
-
- )
- );
- $tagsArr = array(); if ( is_array( $tags ) && count( $tags ) > 0 ) {
+ // make simpler
+ $tags = $zbs->DAL->getTagsForObjType(
+ array(
+
+ 'objtypeid' => $zbs->DAL->objTypeID( $this->objType ), // ZBS_TYPE_CONTACT in place of 'contact'=>1, 'transaction'=> etc.
+ 'excludeEmpty' => false,
+ 'withCount' => false,
+ 'ignoreowner' => true,
+
+ )
+ );
+ $tagsArr = array(); if ( is_array( $tags ) && count( $tags ) > 0 ) {
foreach ( $tags as $t ) {
$tagsArr[] = $t['name'];
}
- }
- $tags = $tagsArr;
+ }
+ $tags = $tagsArr;
- ?>
+ $jpcrm_edit_view_lang_labels = array_merge(
+ array( 'today' => __( 'Today', 'zero-bs-crm' ) ),
+ is_array( $this->langLabels ) ? $this->langLabels : array(),
+ );
+ ?>
// this forces firing of our custom init in admin.tags.metabox.js
var zbsCustomTagInitFunc = 'zbsJS_bindTagManagerInit';
@@ -298,44 +302,20 @@ public function drawTagView() {
// General options for listview
var zbsEditSettings = {
- objID; ?>,*/ ?>
- objdbname: 'objType ); ?>'
+ objdbname: objType, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ); ?>
};
var zbsDrawEditViewBlocker = false;
var zbsDrawEditAJAXBlocker = false;
- var zbsObjectViewLinkPrefixCustomer = '';
- var zbsObjectEditLinkPrefixCustomer = '';
- var zbsObjectViewLinkPrefixCompany = '';
- var zbsListViewLink = 'listViewSlug ); ?>';
- var zbsClick2CallType = parseInt('');
- var zbsEditViewLangLabels = {
-
- 'today': '',
-
- langLabels ) && count( $this->langLabels ) > 0 ) {
- foreach ( $this->langLabels as $labelK => $labelV ) {
-
- if ( $labelCount > 0 ) {
- echo ',';
- }
-
- echo esc_html( $labelK ) . ":'" . esc_html( zeroBSCRM_slashOut( $labelV ) ) . "'";
-
- ++$labelCount;
-
- }
- }
- ?>
-
- };
-
-
- ;
+ var zbsObjectEditLinkPrefixCustomer = ;
+ var zbsObjectViewLinkPrefixCompany = ;
+ var zbsListViewLink = listViewSlug ), JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ); ?>;
+ var zbsClick2CallType = ;
+ var zbsEditViewLangLabels = ;
+
+ var zbscrmjs_secToken = ;
+
+ typeInt; ?>,
emid: emailid,
sec: window.zbs_root.zbsnonce,
};
diff --git a/projects/plugins/crm/js/ZeroBSCRM.admin.tags.metabox.js b/projects/plugins/crm/js/ZeroBSCRM.admin.tags.metabox.js
index 35e9e7a479c5..785b46b90ed6 100644
--- a/projects/plugins/crm/js/ZeroBSCRM.admin.tags.metabox.js
+++ b/projects/plugins/crm/js/ZeroBSCRM.admin.tags.metabox.js
@@ -344,7 +344,6 @@ function zeroBSCRMJS_tagManager_bindTagEditButtons() {
const data = {
action: 'zbs_delete_tag',
- // don't need, is unique id 'objtype': typeInt; ?>,
tagid: lTagID,
sec: window.zbscrmjs_secToken,
};
diff --git a/projects/plugins/crm/modules/mailpoet/admin/mailpoet-hub/main.page.php b/projects/plugins/crm/modules/mailpoet/admin/mailpoet-hub/main.page.php
index 69a6992e10a0..b649b6d08e99 100644
--- a/projects/plugins/crm/modules/mailpoet/admin/mailpoet-hub/main.page.php
+++ b/projects/plugins/crm/modules/mailpoet/admin/mailpoet-hub/main.page.php
@@ -128,7 +128,7 @@ function jpcrm_mailpoet_render_hub_page() {
diff --git a/projects/plugins/crm/modules/portal/endpoints/class-single-quote-endpoint.php b/projects/plugins/crm/modules/portal/endpoints/class-single-quote-endpoint.php
index d1f558495398..03c16c91430a 100644
--- a/projects/plugins/crm/modules/portal/endpoints/class-single-quote-endpoint.php
+++ b/projects/plugins/crm/modules/portal/endpoints/class-single-quote-endpoint.php
@@ -104,13 +104,16 @@ function single_quote_html_output( $quote_id = -1, $quote_hash = '' ) {