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

Add new social icon bluesky in a mosaico template #663

Open
wyde22 opened this issue Jan 6, 2025 · 6 comments
Open

Add new social icon bluesky in a mosaico template #663

wyde22 opened this issue Jan 6, 2025 · 6 comments

Comments

@wyde22
Copy link

wyde22 commented Jan 6, 2025

Hi,

I need to add a new icon of social network for a customer. This social network is bluesky.

For the newsletter in the project of customer, i use CiviVersafix-FR.

How add a new social media icon in mosaico ?

Thanks

@artfulrobot
Copy link
Contributor

Link to mattermost thread

@totten
Copy link
Collaborator

totten commented Jan 7, 2025

I believe that everything around the social-network icon/link is part of the of the Mosaico HTML template -- i.e. Versafix.

There are multiple copies of the Versafix template floating around, eg

  1. https://github.com/voidlabs/versafix-template (canonical upstream)
  2. https://github.com/voidlabs/mosaico/blob/master/templates/versafix-1/ (copy bundled with Mosaico JS)
  3. https://github.com/civicrm/mosaico/tree/v0.18.10-civicrm-1/templates/versafix-1 (copy of ^^^ bundled with this Civi-Moasico add-on; maybe with a few small tweaks)
  4. https://lab.civicrm.org/homotechsual/CiviVersafix/ (copy of ^^^ with more tweaks)
  5. https://github.com/MAKOA-France/CiviVersafix-FR/ (translation of ^^^)

Ideally, one can start with an issue/patch for voidlabs/versafix-template. The author there should have the strongest sense for good+bad ways to write the patch. If it's updated, then I expect all the downstreams to be receptive. (They may need a little nudge to act.)

(If upstream isn't keen, then fallback is to talk to someone downstream -- like here or CiviVersafix or CiviVersafix-FR.)

There's also the question of how exactly to write the patch. I don't have any clever advice... I suppose... search the code for twitter or tw, then understand that example, and then imitate it? 🙃

@francescbassas
Copy link
Contributor

I think this repo would be the first place to start pushing it https://github.com/voidlabs/versafix-social-icons

@wyde22
Copy link
Author

wyde22 commented Jan 8, 2025

i try this solution : https://chat.civicrm.org/civicrm/pl/affxgr6j6bnz38bm3ba6xzak8r and i can generate an icon

@artfulrobot
Copy link
Contributor

I've added a PR for this
voidlabs/versafix-social-icons#15

It includes Mastodon too

@agileware-justin
Copy link
Contributor

From what I can tell, there are three blocks in the Mosaico template that need to be updated with the new social network links and icons:

  1. Big Social Block
  2. Share Block
  3. Social Block

As shown below.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants