#wordpress 2021-08-06

2021-08-06 UTC
[tw2113_Slack_] joined the channel
#
GWG
[tw2113_Slack_]: Thanks for the review
#
[tw2113_Slack_]
:thumbsup_all:
#
GWG
[tw2113_Slack_]: Do you use those features?
#
[tw2113_Slack_]
i don't think so overall
#
GWG
[tw2113_Slack_]: Can I pick your brain?
#
[tw2113_Slack_]
sure
#
[tw2113_Slack_]
sorry, not seeing these pings super fast, but I'm paying attention now 😄
#
GWG
I'm redoing my theme, and everythign in it, so that's CSS in eveyr plugin I use.
#
[tw2113_Slack_]
with you so far
#
GWG
The Indieweb plugin has the rel-me icons, which is what you approved the icon and CSS refresh for...
#
GWG
But it also has the h-card code I use on the front of myself, that also works as a widget
#
GWG
Wondering how I can improve that
#
[tw2113_Slack_]
hmm
#
GWG
The idea of it was that the function can be called in the widget, or on the page(which is what I do)
#
GWG
You can see my test site, where I'm tweaking things at https://wpdev.gwg.us
#
GWG
So that h-card is from the Indieweb plugin, just called directly
#
[tw2113_Slack_]
the github/twitter/microblog/etc line?
#
GWG
[tw2113_Slack_]: That's what you just approved. But if you have any ideas about that, or the rest of it
#
GWG
There's a photo, a name, a location..not my real one because this is a test site
#
GWG
I need to study some h-cards, I guess
#
[tw2113_Slack_]
ahh all those parts
#
GWG
I think the row of rel-me icons likes nicer.
#
GWG
It now is better on the coloring
#
GWG
But I didn't want to do too much in the plugin, I might do some tweaks in my theme CSS
#
[tw2113_Slack_]
I know some of my past plugins I've set things up to basically be a "template function" with arguments
#
[tw2113_Slack_]
and then also a shortcode with all their attributes that match the arguments for the template tag
#
GWG
That's how I envisioned the h-card. The widget uses it, but there's a function.
#
[tw2113_Slack_]
and same thing for widget fields
#
[tw2113_Slack_]
all just pass args to the original template function
#
GWG
[tw2113_Slack_]: We're on the same page
#
[tw2113_Slack_]
i'll dare say this. Perhaps it'd be a good React/Gutenberg block starting point
#
[tw2113_Slack_]
get your feet wet in that area
#
GWG
[tw2113_Slack_]: I thought I might try Location for that. I do most of my experimental stuff there first.
#
[tw2113_Slack_]
i know i have https://github.com/tw2113/blogroll-block which basically does the same thing for wp_list_bookmarks from WP core
#
[tw2113_Slack_]
hmm
#
[tw2113_Slack_]
dictating css/layout is difficult and a tough line
#
GWG
Yes.
#
[tw2113_Slack_]
you can make as best decisions as you can for out of box, and hope for the best across devices
#
[tw2113_Slack_]
or you can leave the markup to inherit as much as possible and risk bad reviews because "it's ugly by default"
#
GWG
Did you know that the rel-me fields in the Indieweb plugin are added by default to the REST API author endpoint?
#
[tw2113_Slack_]
i did not, but good to know
#
GWG
I added it in. I have plans for it.
#
[tw2113_Slack_]
ahh dogfooding
#
GWG
The hard thing about what I'm doing is the styling I'm working with is in all the plugins
#
GWG
I had to test color improvements in each.
#
[tw2113_Slack_]
i still think a block version may be the best next step though, especially with the widget screen now being block-ized
#
[tw2113_Slack_]
and it'll only get better/worse from there
#
GWG
[tw2113_Slack_]: What do you know about server side blocks?
#
[tw2113_Slack_]
i'm not going to claim to be a superstar by any means
#
[tw2113_Slack_]
but great at googling/trial+error 😄
#
[tw2113_Slack_]
mostly i think it's extracting saved attributes and settings etc, and parsing it out into the php-side arguments
#
GWG
If I could write blocks in PHP, it would make my life easier
#
[tw2113_Slack_]
it would make so many lives easier
#
[tw2113_Slack_]
especially people who are backend folks, being forced into a React world
#
[tw2113_Slack_]
or prefer the "simpler" web, like I do, and I assume you do
wagle joined the channel
#
GWG
[tw2113_Slack_]: I try to compromise where I can.
neceve, [KevinMarks], [manton], [snarfed], Tomte, [jeremycherfas] and [tantek]1 joined the channel