Skip to content

Commit

Permalink
CRM: Updating core Noto Sans fonts and adding new CJK fonts (#36962)
Browse files Browse the repository at this point in the history
Co-authored-by: tbradsha <[email protected]>
  • Loading branch information
coder-karen and tbradsha authored Apr 22, 2024
1 parent 222c807 commit 48c697d
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 31 deletions.
24 changes: 24 additions & 0 deletions projects/plugins/crm/admin/settings/locale.page.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,30 @@
?>
</select>
<p><?php echo wp_kses( sprintf( __( 'All Noto fonts are licensed under the <a href="%s" target="_blank">SIL Open Font License</a>.', 'zero-bs-crm' ) . ' ' . __( 'For more information, please go <a href="%s" target="_blank">here</a>.', 'zero-bs-crm' ), 'https://fonts.google.com/attribution', 'https://fonts.google.com/noto/specimen/Noto+Sans/about' ), $zbs->acceptable_restricted_html ); ?></p>
<p>
<?php
echo wp_kses(
sprintf(
/* translators: %s is the URL of the CRM notifications page. */
__( 'If a font does not install, please <a href="%s" >check your notifications</a> for any error messages. Note that some larger font files may take up to a minute to download.', 'zero-bs-crm' ),
esc_url( get_site_url() . '/wp-admin/admin.php?page=zerobscrm-notifications' )
),
$zbs->acceptable_restricted_html
);
?>
</p>
<p>
<?php
echo wp_kses(
sprintf(
/* translators: %s is the URL of the CRM support doc explaining how to add styles to pdf templates. */
__( 'Once a new font is installed, <a href="%s" target="_blank">learn more about using the custom fonts in CRM PDFs here</a>.', 'zero-bs-crm' ),
esc_url( $zbs->urls['kb-pdf-custom-fonts'] )
),
$zbs->acceptable_restricted_html
);
?>
</p>
<button type="submit" class="ui small green button"><?php esc_html_e( 'Install font', 'zero-bs-crm' ); ?></button>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: added

Fonts: Updated core Noto Sans, and added new CJK fonts
Binary file modified projects/plugins/crm/data/pdffonts.zip
Binary file not shown.
8 changes: 5 additions & 3 deletions projects/plugins/crm/includes/ZeroBSCRM.Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,10 @@ final class ZeroBSCRM {
*/
public $acceptable_restricted_html = array(
'a' => array(
'href' => array(),
'title' => array(),
'id' => array(),
'href' => array(),
'title' => array(),
'id' => array(),
'target' => array(),
),
'br' => array(),
'em' => array(),
Expand Down Expand Up @@ -1007,6 +1008,7 @@ private function setupUrlsSlugsEtc() {
$this->urls['kb-mailpoet'] = 'https://kb.jetpackcrm.com/knowledge-base/mailpoet-crm-sync/';
$this->urls['kb-automations'] = 'https://kb.jetpackcrm.com/knowledge-base/automations/';
$this->urls['kb-contact-fields'] = 'https://kb.jetpackcrm.com/knowledge-base/contact-field-list/';
$this->urls['kb-pdf-custom-fonts'] = 'https://kb.jetpackcrm.com/knowledge-base/using-custom-fonts-in-crm-pdfs-e-g-invoice-templates/';

// coming soon
$this->urls['soon'] = 'https://jetpackcrm.com/coming-soon/';
Expand Down
Loading

0 comments on commit 48c697d

Please sign in to comment.