Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vendasta/business-profile-render
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.0
Choose a base ref
...
head repository: vendasta/business-profile-render
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Aug 6, 2020

  1. WP-868: add a link to the row meta on the plugin screen which takes u…

    …sers to the plugin usage page.
    swang-va committed Aug 6, 2020
    Copy the full SHA
    350ab44 View commit details
  2. Merge pull request #3 from vendasta/WP-868

    WP-868: add a link to the row meta on the plugin screen which takes users to the plugin usage page
    swang-va authored Aug 6, 2020
    Copy the full SHA
    1ee755a View commit details

Commits on Nov 10, 2020

  1. Copy the full SHA
    30b1cc6 View commit details

Commits on Nov 12, 2020

  1. update version

    mzhao-va committed Nov 12, 2020
    Copy the full SHA
    d67c984 View commit details
  2. Merge pull request #4 from vendasta/WP-967

    [WP-967] Add shortcode & reusable block for business contact email
    mzhao-va authored Nov 12, 2020
    Copy the full SHA
    ae4dde2 View commit details
  3. update comment

    mzhao-va committed Nov 12, 2020
    Copy the full SHA
    5d8f3a2 View commit details
  4. Merge pull request #5 from vendasta/WP-967-comment

    Update comment from copy/paste
    mzhao-va authored Nov 12, 2020
    Copy the full SHA
    04182c9 View commit details

Commits on Jul 15, 2022

  1. Copy the full SHA
    2d5e6bd View commit details

Commits on Sep 7, 2023

  1. Version upgrade

    SathishArumuga committed Sep 7, 2023
    Copy the full SHA
    0fe108f View commit details
  2. Merge pull request #7 from vendasta/WSP-61

    Version upgrade
    SathishArumuga authored Sep 7, 2023
    Copy the full SHA
    2b24ffc View commit details

Commits on May 3, 2024

  1. Copy the full SHA
    a1276ba View commit details

Commits on May 7, 2024

  1. Add gutenberg element

    rajanvijayan committed May 7, 2024
    Copy the full SHA
    639d311 View commit details
  2. adding shortcode

    MohanRaj168 committed May 7, 2024
    Copy the full SHA
    7454cf8 View commit details

Commits on May 8, 2024

  1. add build folder

    rajanvijayan committed May 8, 2024
    Copy the full SHA
    20d24f5 View commit details
  2. Copy the full SHA
    7968d7c View commit details
  3. update render alignment

    rajanvijayan committed May 8, 2024
    Copy the full SHA
    060af81 View commit details
  4. Copy the full SHA
    067c110 View commit details
  5. Copy the full SHA
    a51a726 View commit details
  6. Copy the full SHA
    8a82851 View commit details

Commits on May 9, 2024

  1. Copy the full SHA
    543600b View commit details
  2. Merge pull request #8 from vendasta/wsp-1123-shortcode-consolidation

    Adding shortcode consolidation
    rajanvijayan authored May 9, 2024
    Copy the full SHA
    df7f599 View commit details
  3. Copy the full SHA
    5771439 View commit details
  4. Copy the full SHA
    e665a39 View commit details
  5. Copy the full SHA
    12c547f View commit details
  6. Merge pull request #9 from vendasta/wsp-1124-gutenberg-element-integr…

    …ation
    
    Wsp 1124 gutenberg element integration
    MohanRaj168 authored May 9, 2024
    Copy the full SHA
    1f6b24a View commit details
  7. Copy the full SHA
    d06482b View commit details
  8. How to install update

    MohanRaj168 committed May 9, 2024
    Copy the full SHA
    79c120b View commit details
  9. Merge pull request #10 from vendasta/v2-documentation-files-shortcode

    Readme doc shortcode update
    rajanvijayan authored May 9, 2024
    Copy the full SHA
    86bcd62 View commit details

Commits on May 13, 2024

  1. Copy the full SHA
    0b3b39a View commit details

Commits on May 14, 2024

  1. Copy the full SHA
    f343642 View commit details
  2. Copy the full SHA
    fed8418 View commit details

Commits on May 15, 2024

  1. Merge pull request #11 from vendasta/wsp-1125-backward-compatibility

    Wsp 1125 backward compatibility
    rajanvijayan authored May 15, 2024
    Copy the full SHA
    f6342f8 View commit details
  2. Merge pull request #12 from vendasta/v2-documentation-deprecated

    V2 documentation deprecated
    rajanvijayan authored May 15, 2024
    Copy the full SHA
    4fddc30 View commit details

Commits on May 16, 2024

  1. Helper page for bpr

    MohanRaj168 committed May 16, 2024
    Copy the full SHA
    3a14f52 View commit details
  2. beautify the helper page

    MohanRaj168 committed May 16, 2024
    Copy the full SHA
    2114781 View commit details

Commits on May 20, 2024

  1. Copy the full SHA
    6906aee View commit details

Commits on May 21, 2024

  1. Copy the full SHA
    b06f7f3 View commit details
  2. Copy the full SHA
    cd1adc1 View commit details
  3. Merge pull request #13 from vendasta/v2-documentation-files

    V2 documentation files
    rajanvijayan authored May 21, 2024
    Copy the full SHA
    57ad025 View commit details
  4. Copy the full SHA
    5f2ab82 View commit details
  5. Copy the full SHA
    148d468 View commit details
  6. Copy the full SHA
    3f4ef5e View commit details

Commits on May 29, 2024

  1. Add updater

    rajanvijayan committed May 29, 2024
    Copy the full SHA
    3b7dc0e View commit details
  2. update vendasta git repo

    rajanvijayan committed May 29, 2024
    Copy the full SHA
    6597879 View commit details

Commits on Jun 20, 2024

  1. Json changes

    MohanRaj168 committed Jun 20, 2024
    Copy the full SHA
    ef39c85 View commit details
  2. Merge pull request #15 from vendasta/WSP-1187_packagejason_file_update

    Wsp 1187 package json file update
    MohanRaj168 authored Jun 20, 2024
    Copy the full SHA
    74499ea View commit details
  3. Update version

    rajanvijayan authored Jun 20, 2024
    Copy the full SHA
    d18357f View commit details
  4. Update org repo

    rajanvijayan authored Jun 20, 2024
    Copy the full SHA
    6022b7a View commit details
  5. Merge pull request #16 from vendasta/v2-final-corrections

    V2 final corrections
    MohanRaj168 authored Jun 20, 2024
    Copy the full SHA
    1bfd3d2 View commit details
  6. shortcode fix

    MohanRaj168 committed Jun 20, 2024
    Copy the full SHA
    5a78c76 View commit details
Showing with 42,896 additions and 2,520 deletions.
  1. +14 −2 .gitignore
  2. +49 −0 CHANGELOG.md
  3. +89 −5 README.md
  4. +64 −0 assets/css/style.css
  5. 0 {public → assets}/images/facebook.svg
  6. 0 {public → assets}/images/foursquare.svg
  7. 0 {public → assets}/images/instagram.svg
  8. 0 {public → assets}/images/linkedin.svg
  9. 0 {public → assets}/images/pinterest.svg
  10. 0 {public → assets}/images/rss.svg
  11. 0 {public → assets}/images/twitter.svg
  12. 0 {public → assets}/images/youtube.svg
  13. +154 −0 assets/js/gutenberg-block.js
  14. +24 −0 assets/js/helper-page.js
  15. +1 −0 build/gutenberg-block.asset.php
  16. +1 −0 build/gutenberg-block.js
  17. +23 −45 business-profile-render.php
  18. +7 −0 composer.json
  19. +18 −0 composer.lock
  20. +18 −0 gulpfile.js
  21. +0 −14 includes/access-control.php
  22. +0 −175 includes/class-controller.php
  23. +0 −153 includes/class-data-storage.php
  24. +0 −138 includes/class-updater.php
  25. +0 −2 includes/index.php
  26. +0 −35 includes/profile-fields/class-address.php
  27. +0 −34 includes/profile-fields/class-city.php
  28. +0 −34 includes/profile-fields/class-company-description.php
  29. +0 −34 includes/profile-fields/class-company-name.php
  30. +0 −34 includes/profile-fields/class-company-short-description.php
  31. +0 −34 includes/profile-fields/class-country.php
  32. +0 −41 includes/profile-fields/class-facebook.php
  33. +0 −43 includes/profile-fields/class-foursquare.php
  34. +0 −77 includes/profile-fields/class-full-address.php
  35. +0 −112 includes/profile-fields/class-hoursofoperation.php
  36. +0 −65 includes/profile-fields/class-imagefield.php
  37. +0 −42 includes/profile-fields/class-instagram.php
  38. +0 −42 includes/profile-fields/class-linkedin.php
  39. +0 −33 includes/profile-fields/class-logoimage.php
  40. +0 −42 includes/profile-fields/class-pinterest.php
  41. +0 −33 includes/profile-fields/class-primaryimage.php
  42. +0 −116 includes/profile-fields/class-profilefield.php
  43. +0 −42 includes/profile-fields/class-rss.php
  44. +0 −50 includes/profile-fields/class-services.php
  45. +0 −38 includes/profile-fields/class-sociallink.php
  46. +0 −34 includes/profile-fields/class-state.php
  47. +0 −34 includes/profile-fields/class-toll-free-number.php
  48. +0 −43 includes/profile-fields/class-twitter.php
  49. +0 −48 includes/profile-fields/class-worknumber.php
  50. +0 −42 includes/profile-fields/class-youtube.php
  51. +0 −34 includes/profile-fields/class-zip.php
  52. +0 −2 includes/profile-fields/index.php
  53. +0 −37 includes/render/class-full-address-reusable-block.php
  54. +0 −22 includes/render/class-full-address-short-code.php
  55. +0 −32 includes/render/class-hoursofoperation-reusable-block.php
  56. +0 −22 includes/render/class-hoursofoperation-short-code.php
  57. +0 −41 includes/render/class-image-reusable-block.php
  58. +0 −32 includes/render/class-image-short-code.php
  59. +0 −63 includes/render/class-linked-image-reusable-block.php
  60. +0 −53 includes/render/class-linked-image-short-code.php
  61. +0 −30 includes/render/class-plaintext-reusable-block.php
  62. +0 −65 includes/render/class-plaintext-short-code.php
  63. +0 −85 includes/render/class-renderer.php
  64. +0 −85 includes/render/class-reusable-block.php
  65. +0 −41 includes/render/class-unordered-list-reusable-block.php
  66. +0 −22 includes/render/class-unordered-list-short-code.php
  67. +0 −74 includes/render/hoursofoperation.php
  68. +0 −2 includes/render/index.php
  69. +0 −23 includes/render/unordered-list.php
  70. +0 −2 index.php
  71. +47 −0 language/business-profile-render.pot
  72. +40,128 −0 package-lock.json
  73. +23 −0 package.json
  74. +0 −37 public/styles/admin-instruction.css
  75. +34 −0 src/Admin/AdminNotice.php
  76. +77 −0 src/Blocks/GutenbergBlock.php
  77. +609 −0 src/Deprecated/Deprecated.php
  78. +143 −0 src/Helper/Page.php
  79. +115 −0 src/Shortcode/Shortcode.php
  80. +145 −0 src/Update/Updater.php
  81. +25 −0 vendor/autoload.php
  82. +579 −0 vendor/composer/ClassLoader.php
  83. +359 −0 vendor/composer/InstalledVersions.php
  84. +21 −0 vendor/composer/LICENSE
  85. +10 −0 vendor/composer/autoload_classmap.php
  86. +9 −0 vendor/composer/autoload_namespaces.php
  87. +10 −0 vendor/composer/autoload_psr4.php
  88. +36 −0 vendor/composer/autoload_real.php
  89. +36 −0 vendor/composer/autoload_static.php
  90. +5 −0 vendor/composer/installed.json
  91. +23 −0 vendor/composer/installed.php
16 changes: 14 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Folders #
######################
/dist/
/docs/
/node_modules/

# OS generated files #
######################
.DS_Store
.idea
.vscode
.DS_Store?
._*
.Trashes
Icon?
ehthumbs.db
Thumbs.db
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,55 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.5.2]

#### Fixes

- Changed admin notices
- Fixed full address Shortcode
- Fixed Gutenberg Elements
- Social Links with icon
- Logo Images

## [1.5.1]

#### Fixes

- Deployment issue

## [1.5.0]

### Revamp the new version

#### Fixes

- Multiple revision issues

#### Enhancement

- Introduced psr-4 model
- Reduced multiple shortcodes
- Implemented font awesome
- Added click-to-copy option

## [1.4.0]

### Updated

- Update to overcome WordFence plugin

## [1.3.0]

### Added

- short code and reusable block for business contact email.

## [1.2.0]

### Added

- a link to the row meta on the plugin screen which takes users to the plugin usage page.

## [1.1.0]

### Added
94 changes: 89 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,97 @@

# Business Profile Render

**Contributors:** Website Pro Team
**Tags:** Business, Local SEO, WebsitePro
**Requires PHP:** 7.4
**Requires at least:** 6.0
**Tested up to:** 6.5.3

## Description

This plugin provides tools to display business information easily and automatically.

The hosting platform syncs the relevant business information to the WP Options table.
This plugin provides ways to automatically render this information on your site.
This includes both [Shortcodes](https://codex.wordpress.org/Shortcode)and reusable
[Blocks](https://wordpress.org/support/article/blocks/).

After the plugin is installed and activated please refer to the documentation page
provided under the Tools section of your site for more details about how to use it.
This includes both [Shortcodes](https://codex.wordpress.org/Shortcode) and [Gutenberg Components](https://developer.wordpress.org/block-editor/reference-guides/components/).
### Shortcodes

#### How to use this shortcode

To utilize this shortcode, follow the format below:

**[business_profile attr="company_name"]**

Here, the `attr` parameter specifies the attribute you want to display. Replace `"company_name"` with the desired attribute you wish to retrieve from the business profile.

**For example:** if you want to display the company's name, you would use `"company_name"` as the attribute value. Similarly, you can replace it with other attributes such as address, phone number, or any other pertinent information stored in the business profile.

Make sure to enclose the attribute name within double quotation marks (" "). This ensures that the shortcode accurately identifies the attribute you intend to retrieve.

| Shortcode | Attribute | Preview |
|--|--|--|
|`[business_profile]`| company_name | ABC Media Pvt Ltd |
|`[business_profile]`| description | |
|`[business_profile]`| short_description | |
|`[business_profile]`| services_offered | |
|`[business_profile]`| contact_first_name | |
|`[business_profile]`| contact_last_name | |
|`[business_profile]`| contact_email |hello@abcmedia.com |
|`[business_profile]`| cell_number | |
|`[business_profile]`| fax_number | |
|`[business_profile]`| toll_free_number | |
|`[business_profile]`| work_number | '+99 879 00 12 12' |
|`[business_profile]`| address | 123 4th Street |
|`[business_profile]`| city | Fairbanks |
|`[business_profile]`| state | Alaska |
|`[business_profile]`| country | United States |
|`[business_profile]`| zip | 99654 |
|`[business_profile]`| time_zone | |
|`[business_profile]`| longitude | -1.8769149 |
|`[business_profile]`| latitude | 37.1418673 |
|`[business_profile]`| hours_of_operation | |
|`[business_profile]`| rss_url | |
|`[business_profile]`| twitter_url | |
|`[business_profile]`| foursquare_url | |
|`[business_profile]`| facebook_url | |
|`[business_profile]`| youtube_url | |
|`[business_profile]`| instagram_url | |
|`[business_profile]`| pinterest_url | |
|`[business_profile]`| linkedin_url | |
|`[business_profile]`| tax_ids | |


### Old Shortcodes

Our "Business Profile Data" and "Business Profile Render" plugins use distinct shortcodes and operate on separate versions 1.2.0 and 1.5.x.

| Shortcode | Description | Preview |
|--|--|--|
|`[business-profile-render-company-name] & [business-profile-data-company-name]`| Company Name | ABC Media Pvt Ltd |
|`[business-profile-render-full-address] & [business-profile-data-full-address]`|Full Address|123, Sample Address, CA - 12345|
|`[business-profile-render-address] & [business-profile-data-address]`|Address|123, Sample Address
|`[business-profile-render-city] & [business-profile-data-city]`|City|Saskatoon
|`[business-profile-render-state] & [business-profile-data-state]`|State|Saskatchewan
|`[business-profile-render-zip-code] & [business-profile-data-zip-code]`|ZIP Code|12345
|`[business-profile-render-country] & [business-profile-data-country]`|Country|Canada
|`[business-profile-render-work-number] & [business-profile-data-work-number]`|Work Number|8877665544
|`[business-profile-render-toll-free-number] & [business-profile-data-toll-free-number]`|Toll Free Number|1800-000-000
|`[business-profile-render-hours-of-operation] & [business-profile-data-hours-of-operation]`|Working Hours|
|`[business-profile-render-company-description] & [business-profile-data-company-description]`|Description|
|`[business-profile-render-company-short-description] & [business-profile-data-company-short-description]`|Short Description|
|`[business-profile-render-primary] & [business-profile-data-primary]`|Primary|
|`[business-profile-render-logo] & [business-profile-data-logo]`|Logo|
|`[business-profile-render-services] & [business-profile-data-services]`|Services|
|`[business-profile-render-image-link-foursquare-url] & [business-profile-data-image-link-foursquare-url]`|| Foursquare Link
|`[business-profile-render-image-link-twitter-url] & [business-profile-data-image-link-twitter-url]`|| Twitter Link
|`[business-profile-render-image-link-instagram-url] & [business-profile-data-image-link-instagram-url]`|| Instagram Link
|`[business-profile-render-image-link-linkedin-url] & [business-profile-data-image-link-linkedin-url]`|| LinkedeIn Link
|`[business-profile-render-image-link-pinterest-url] & [business-profile-data-image-link-pinterest-url]`|| Pinterest Link
|`[business-profile-render-image-link-facebook-url] & [business-profile-data-image-link-facebook-url]`|| Facebook Link
|`[business-profile-render-image-link-rss-url] & [business-profile-data-image-link-rss-url]`|| RSS Link
|`[business-profile-render-image-link-youtube-url] & [business-profile-data-image-link-youtube-url]`|| Youtube Link


### Credits

1. Thanks [Font Awesome](https://fontawesome.com/license/free)
64 changes: 64 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.bpr_shortcode_lable input {
width: 90%;
}
button.bpr_btncpy {
position: relative;
left: -38px;
}
.bpr_copy-text input.bpr_text {
padding: 10px;
font-size: 14px;
color: #555;
border: none;
outline: none;
background-color: #fff;
}
.bpr_copy-text button {
padding: 6px;
font-size: 18px;
border: none;
outline: none;
border-radius: 3px;
cursor: pointer;
}
.form-table{
width: 90%;
}
.bpr_preview_lable {
font-size: 18px;
color: #555;
}
.bpr_shortcode_title {
font-size: 22px;
margin-left: 18px;
}
.bpr_preview_title{
font-size: 22px;
}
.bpr_text{
position: relative;
}
.bpr_tooltip {
position: absolute;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 5px 10px;
text-align: center;
border-radius: 5px;
font-size: 12px;
left: 21%;
right: 68%;
transform: translateY(10%);
}
.bpr_shortcode_lable .bpr_tooltip:after {
border-left: solid transparent 10px;
border-right: solid transparent 10px;
border-top: solid #515151 10px;
content: " ";
top: -9px;
left: 38%;
right: 62%;
width: 0;
transform: rotate(0.5turn);
position: absolute;
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
154 changes: 154 additions & 0 deletions assets/js/gutenberg-block.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
(() => {
"use strict";
const e = window.React,
{ registerBlockType: t } = wp.blocks,
{ SelectControl: l } = wp.components,
{ useState: n, useEffect: s } = wp.element;

t("business-profile-render/bpr-block", {
title: "Business Profile",
icon: "admin-site",
category: "common",
attributes: {
option: { type: "string", default: "--" }
},
edit: t => {
const { attributes: a, setAttributes: o } = t,
{ option: i } = a,
[r, c] = n([]);

s(() => {
const e = window.businessProfileData || {},
t = Object.entries(e).map(([e, t]) => ({ label: e, value: t }));
c(t);
}, []);

const isImageUrl = (url) => {
try {
// Remove trailing commas before parsing the URL
const cleanUrl = url.replace(/,+$/, '');
const parsedUrl = new URL(cleanUrl);
return parsedUrl.hostname === 'media-prod.apigateway.co';
} catch (e) {
return false;
}
};

const getSocialIcon = (url) => {
try {
const parsedUrl = new URL(url);
if (parsedUrl.hostname.includes("facebook.com")) {
return "fab fa-facebook";
} else if (parsedUrl.hostname.includes("rss")) {
return "fab fa-rss";
} else if (parsedUrl.hostname.includes("twitter.com")) {
return "fab fa-twitter";
} else if (parsedUrl.hostname.includes("youtube.com")) {
return "fab fa-youtube";
} else if (parsedUrl.hostname.includes("foursquare.com")) {
return "fab fa-foursquare";
} else if (parsedUrl.hostname.includes("instagram.com")) {
return "fab fa-instagram";
} else if (parsedUrl.hostname.includes("pinterest.com")) {
return "fab fa-pinterest";
} else if (parsedUrl.hostname.includes("linkedin.com")) {
return "fab fa-linkedin";
} else {
return null;
}
} catch (_) {
return null;
}
};

const socialIcon = getSocialIcon(i);

return (
e.createElement("div", null,
e.createElement(l, {
label: "Select which field you want to show",
value: i,
options: r.map(e => ({ label: e.label, value: e.value })),
onChange: e => { o({ option: e }) }
}),
e.createElement("div", null,
isImageUrl(i) ?
e.createElement("p", null,
e.createElement("span", { className: "css-1imalal" }, "Preview:"),
e.createElement("br", null),
e.createElement("img", { src: i.replace(/,+$/, ''), alt: "Business Profile Image", style: { width: "100px", height: "100px" } })
) :
socialIcon ?
e.createElement("p", null,
e.createElement("span", { className: "css-1imalal" }, "Preview:"),
e.createElement("br", null),
e.createElement("a", { href: i, target: "_blank", rel: "noopener noreferrer" },
e.createElement("i", { className: socialIcon })
)
) :
e.createElement("p", null, i)
)
)
);
},
save: ({ attributes: t }) => {
const { option: l } = t;

const isImageUrl = (url) => {
try {
// Remove trailing commas before parsing the URL
const cleanUrl = url.replace(/,+$/, '');
const parsedUrl = new URL(cleanUrl);
return parsedUrl.hostname === 'media-prod.apigateway.co';
} catch (e) {
return false;
}
};

const getSocialIcon = (url) => {
try {
const parsedUrl = new URL(url);
if (parsedUrl.hostname.includes("facebook.com")) {
return "fab fa-facebook";
} else if (parsedUrl.hostname.includes("rss")) {
return "fab fa-rss";
} else if (parsedUrl.hostname.includes("twitter.com")) {
return "fab fa-twitter";
} else if (parsedUrl.hostname.includes("youtube.com")) {
return "fab fa-youtube";
} else if (parsedUrl.hostname.includes("foursquare.com")) {
return "fab fa-foursquare";
} else if (parsedUrl.hostname.includes("instagram.com")) {
return "fab fa-instagram";
} else if (parsedUrl.hostname.includes("pinterest.com")) {
return "fab fa-pinterest";
} else if (parsedUrl.hostname.includes("linkedin.com")) {
return "fab fa-linkedin";
} else {
return null;
}
} catch (_) {
return null;
}
};

const socialIcon = getSocialIcon(l);

return (
e.createElement("div", null,
isImageUrl(l) ?
e.createElement("p", null,
e.createElement("img", { src: l.replace(/,+$/, ''), alt: "Business Profile Image", style: { width: "100px", height: "auto" } })
) :
socialIcon ?
e.createElement("p", null,
e.createElement("a", { href: l, target: "_blank", rel: "noopener noreferrer" },
e.createElement("i", { className: socialIcon })
)
) :
e.createElement("p", null, l)
)
);
}
});
})();
Loading