#wordpress 2017-12-04

2017-12-04 UTC
[miklb] joined the channel
#
GWG
[miklb]: Problem solved
#
[miklb]
which one?
#
[miklb]
oh, the json/css?
#
GWG
[miklb]: Someone already wrote a converter
#
GWG
I just modded it
#
GWG
So, now Syndication Links has a set of icons that are actively maintained upstream.
#
[miklb]
maintained in that new ones added?
#
GWG
Social Icons, the set I was using before, from Automattic, hasn't had an update in months
#
GWG
[miklb]: New CSS and icons are added automatically. I need to rewrite the code that maps URLs to icons though.
#
GWG
This is the new icon set: https://simpleicons.org/
#
GWG
Right now, the mapping is hand coded.
#
[miklb]
I guess I haven’t given the syndication link icons much thought, more on the post-kinds
#
GWG
I can use their file for the names for each icon as well, but not the domains.
#
GWG
[miklb]: My plan is to deploy the same code to the Indieweb plugin, once I figure out the domain issue. Then I won't have to mod it again and will just have to run the code every time I want to generate the information
tantek joined the channel
#
[miklb]
ah, yes, rel-me links too. That makes sense
#
GWG
[miklb]: This solution is a bit hacky though.
#
[miklb]
how so? You’re using another open project & some automation tools.
#
GWG
[miklb]: Let me commit and I'll show you.
#
GWG
I have the automation generating a PHP file that has a function that returns the SVG file names.
#
GWG
Have a look at this
#
GWG
The next step is simplifying the icon list so it will try to find an icon more easily.
#
[miklb]
what if the stored value and the icon file used same name?
#
[miklb]
that’s obnoxious
#
GWG
What do you mean?
#
[miklb]
the meme generator is obnoxious
#
GWG
i meant your prior statement...same name?
#
[miklb]
I assume the need to display the icon is from a stored value in the db
#
GWG
Well, the store value is a URL.
#
[miklb]
and then you check the url to see if there’s a matching pattern to an icon?
#
GWG
So, right now, the function converts the URL to a domain name. An array converts domain names to either icons or site name.
#
GWG
That was fine when there were 10
#
GWG
I just got a bunch more.
#
GWG
I need to switch it
#
[miklb]
would it be less of a hit to do the lookup and store that on create than every time on output?
#
GWG
So, what is next is that the domain name, less the tld, will be generated, which should be the site. There will be a filter to override and a few special cases.
#
GWG
[miklb]: I suppose I could do a transient.
#
[miklb]
meaning, when you store the url, do the lookup and store the value of the icon then, as the icon file name, you could just pull that $var.svg
#
GWG
I meant, figure out the domain to icon mapping and store that in a transient. So it will be recalculated periodically.
#
[miklb]
sure, you mean incase the url changes for some reason? I’m just not thinking of a situation where a syndication link would change. Maybe a delete?
#
GWG
[miklb]: I don't want to store a piece of post meta in every post when I just need the same piece of information for all URLs that match that domain.
#
GWG
So, parse out the domain, and storing the domain to icon mappings, and regenerating those...
#
[miklb]
hmm. Never thought about it that way. I guess I’ve always assumed you are grabbing the entire post object anyway, so one more bit of meta didn’t matter
#
GWG
Right now, I've just pushed the first part. The new icons.
j12t joined the channel
#
tantek
is there anyway to export a WordPress blog as a single h-feed of h-entrys with all the replies as nested h-entrys?
#
GWG
tantek: Not at this time.
#
GWG
Why?
#
tantek
I suppose another way to ask that question is, is there an "h-feed export" plugin that will do that
#
tantek
because I'd like to use that as a standards-based way to export from WordPress and possibly import as well
#
GWG
Well, there isn't one right now. I can't say it is a high priority for me. I don't want to leave.
#
tantek
GWG, it would preferably be bidirectional
#
tantek
export is the easier half to write
#
GWG
I did write a class that does return WordPress Post object as a microformats version.
#
GWG
I've been scratching a lot of mini-itches.
#
tantek
GWG, is there a place where we can make / track feature requests like this? indieweb related feature requests for WP Plugins?
#
GWG
We probably could add a page to the wiki.
#
GWG
We don't have one for things people might work on that no one has claimed.
#
tantek
GWG - you would be the right person to pick where it should go
#
[miklb]
we could create a repo in the working group to track requests I suppose, then if someone picks up the request in a specific plugin, link back to the request to track it’s source and progress.
#
GWG
I wouldn't mind putting it on Github, but the wiki seems more the appropriate place for now.
#
GWG
We don't have enough activity to need a repo.
#
[miklb]
ok. I doubt I’d keep an eye on wiki page, but a repo I could subscribe to and would know if someone added something.
#
[miklb]
I would also keep in mind that with micro.blog opening up more users, we may see a greater interest really quickly, if the early beta testers are any indication.
#
GWG
[miklb]: Okay. In the Indieweb Repo or somewhere else?
#
[miklb]
yes, I would recommend the IndieWeb repo under the WordPress group. I can set it up if you’d like, add a readme, etc
#
GWG
[miklb]: All yours
[manton] joined the channel
#
GWG
[manton]: We were just talking about you.
#
Loqi
[indieweb] wordpress-feature-requests: An issue tracker for general requests for the WordPress IndieWeb plugin ecosystem.
#
[miklb]
tantek ^
#
tantek
miklb++ thank you!
#
Loqi
miklb has 7 karma in this channel (59 overall)
#
Loqi
[tantek] #1 h-feed export and import plugin
#
GWG
I wonder if I should put in my crazy ideas
#
[miklb]
someone else may very well have the same idea add to it, start fleshing out it in discussions
tbbrown, [manton], tantek and [pfefferle] joined the channel
#
[pfefferle]
good morning
#
Loqi
good morning
[kevinmarks], tantek, rMdes, jeremycherfas, tbbrown, [miklb] and dougbeal|imac joined the channel
#
[miklb]
I haz some questions about the h-card widget and what does/doesn’t get displayed. Should I put that into an issue like I did for the icons or would someone care to discuss?
HongPong, tantek, [manton], tbbrown and [pfefferle] joined the channel
#
[pfefferle]
I would do both
#
[miklb]
I’m currently looking for examples of widgets in the customizer and how can enhance this widget. One example, for name it’s showing nickname and not display name, but I could see a use case of displaying both
#
tantek
what is a widget
#
Loqi
It looks like we don't have a page for "widget" yet. Would you like to create it?
#
[pfefferle]
miklb are there any settings for the widget or best guess?
#
[miklb]
no settings except for avatar size
#
[pfefferle]
what do you prefer? settings or best guess?
#
[miklb]
I’m not sure yet. This is my first time testing the widget so as to work with the time I’m building and am looking at the output vs all of the fields in the extended profile. Ideally this would have more user testing and feedback to get a better idea. Hopefully when I’m done with the initial version of this theme that supports it out of the box, we can get that feedback.
#
[miklb]
work with the theme I’m building. no idea where time came from
#
tantek
hey WordPress folks, I really like the RSVP icon on jonl's post: http://weblogsky.com/2017/12/04/indiewebcamp-austin-december-9-10-2017-austin-texas/ - from the source it looks like it comes from "Post Kinds" - is that SVG (or its suite?) available somewhere else for re-use outside of the plugin?
#
Loqi
[jonl] IndieWebCamp Austin – December 9-10, 2017 – Austin, Texas
#
tantek
GWG ^^^ presumably you added that icon (is it part of a suite?)
#
[miklb]
svg icons though GWG is in process of switching sources of svg so I don’t know if that’s the new set or old.
#
tantek
who designed it / them?
#
[miklb]
I _think_ this library https://github.com/Automattic/genericons-neue is what was being used
#
Loqi
[Automattic] genericons-neue: Genericons Neue are generic looking icons, suitable for a blog or simple website
#
[miklb]
the later I think contains that “scheduled” svg icon in that post
#
tantek
I couldn't see it in that list
#
[miklb]
fourth row up from bottom, in middle
#
[miklb]
nope, not same. hmm. GWG will have to weigh in
#
tantek
thanks miklb, apparently I need more coffee this morning
#
tantek
miklb oh yeah, subtly different. I like the one in the plugin better
#
tantek
what are icons
#
Loqi
An icon in the context of the indieweb typically refers to a home page icon for an indieweb site https://indieweb.org/icons
#
Loqi
pfefferle has 9 karma in this channel (39 overall)
#
[pfefferle]
thanks 🙂
#
[pfefferle]
GWG should be careful with copying icons… the SIL OFL license says that you have to include the license text…
#
tantek
which is why I was asking before simplying copying to my site :)
#
tantek
falls into the rabbithole of improving /icon for this use-case
#
GWG
Icon questions?
#
GWG
Post Kinds does use genericons.
#
GWG
Except where they have none
#
tantek
GWG, the RSVP icon from post kinds in jonl's post does not seem like it is the same one in genericons
#
GWG
Let me check my notes
#
GWG
I backfilled missing icons from FontAwesome, I believe
#
GWG
I am working on the license issue
#
tantek
what is Post Kinds
#
Loqi
Post or posts may refer to individual pieces of content published on an indieweb site such as notes, articles, & responses, or the act of creating the aforementioned content (present tense), or Posts about the IndieWeb https://indieweb.org/post_kinds
#
tantek
What is WordPress Post Kinds
#
Loqi
It looks like we don't have a page for "WordPress Post Kinds" yet. Would you like to create it?
#
tantek
^^^ GWG can you create/redirect that to the wiki page (or section) for the Post Kinds Plugin?
#
tantek
what is the Post Kinds Plugin?
#
Loqi
The Post Kinds Plugin is a WordPress plugin that adds support for responding and interacting with other sites to WordPress https://indieweb.org/Post_Kinds_Plugin
#
tantek
nm I got it
#
tantek
WordPress Post Kinds is /Post_Kinds_Plugin
#
loqi.me
created /WordPress_Post_Kinds (+30) "prompted by tantek and dfn added by tantek"
(view diff)
tbbrown joined the channel
#
GWG
Just started my lunch break. I have not had one consistently for weeks
tbbrown joined the channel
#
GWG
But the new icon set that I am switching to for Syndication Links and rel me is CC0
#
tantek
that sounds good
#
GWG
Genericons I believe is GPLv2
#
tantek
GWG, can you add a link to the new icon set here? https://indieweb.org/icon#icon_sets
#
tantek
crawls back out of that rabbithole, checks time
#
GWG
Font Awesome is MIT
#
GWG
So, how do I explain this in my plugin documentation
#
GWG
What do I need to document in repository?
#
tantek
for the wiki page, at least a link and heads-up about the license of the set is sufficient
#
GWG
I just spent a night automating new additions, pfefferle recently adding composer php-mf2 updates inspired me to automate repeated tasks.
#
tantek
for the plugin documentation, start with opening a GH issue with that question (how do I explain ... )
#
tantek
to at least capture your concern and allow others to contribute answers
#
GWG
I have been hopping from plugin to plugin doing maintenance
#
GWG
I was going to check on a few others
#
GWG
I need to write a blog post about it all
#
GWG
Maybe after work
#
GWG
miklb, saw your comment re the H-Card widget. It is ripe for options and enhancements
#
GWG
Start documenting and pull requesting as needed
#
[miklb]
yeah. I’m trying to walk this line of using the existing tools to build this theme with and wanting to improve/customize.
#
GWG
[miklb]: I walked that line
#
[miklb]
But also wanting to get the site launched with it. So probably going to be more issues/notes/questions than PR until I get launched and then iterate.
#
GWG
I started building more generic tools and customizing the output rather than hardcoding quite as much
#
GWG
That's why the H-Card inside the widget can be called as a function if you want to embed it in a theme.
#
GWG
Same with Syndication Links, Simple Location, etc
#
GWG
Probably needs to be better documented, but it is a good philosophy
#
[miklb]
I’m guessing that’s not documented yet
#
GWG
No, but implemented
#
GWG
When I finish the icon fixes in Syndication Links, I will likely port same to Indieweb.
#
[miklb]
have quick example of how I might use it?
#
GWG
The automation is worth the effort. Let the upstream people do the work
#
GWG
Same with rel me
#
GWG
You can call it yourself if you want
#
[miklb]
I’m going to add a probot to my theme repo that doesn’t allow code merged into master without an updated README with it.
#
[miklb]
So instead of having a widget area, I would just call that function and then could customize the output? I’m not following immediately after reading the function.
#
GWG
That is the idea
#
GWG
I should put comments too
#
GWG
A docblock
#
[miklb]
maybe I need more caffeine. I’m not exactly sure how I to use that function in my theme. (could be I suck as a developer too)
#
GWG
miklb, if the signature needs to change, I appreciate input
#
GWG
But the idea you get
#
[miklb]
signature?
#
GWG
The function arguments
#
GWG
Basically, what you give it and what comes out
#
[miklb]
I’m just not following. Seems like I could just as easy write my own function to customize the output using that as an example.
#
GWG
Yes. I just figured it would be easier to expand the built in stuff
#
GWG
So community
#
GWG
I have a lot of refactoring planned
#
[miklb]
apologies. I’m sincerely not following how I would expand/customize the existing function in my theme, otherwise I would offer upstream changes
#
GWG
miklb, stick with functionality you want as issues on repo
#
GWG
I will continue to iterate
#
GWG
I want to add the icon improvements plus more to rel me and h-card, so stay tuned.
HongPong, tbbrown, [eddie], [kevinmarks] and [pfefferle] joined the channel
#
[pfefferle]
GWG tantek fontawesome is SIL OFL, only the code is MIT
#
[pfefferle]
I am not sure what the SVG is 🤔
#
tantek
what is SIL
#
Loqi
It looks like we don't have a page for "SIL" yet. Would you like to create it?
#
tantek
what is OFL
#
Loqi
It looks like we don't have a page for "OFL" yet. Would you like to create it?
#
tantek
what is SVG
#
Loqi
SVG is Scalable Vector Graphics, a standard way to display vector images that integrates well into HTML and is implemented in all modern browsers https://indieweb.org/svg
#
GWG
I still don't know what SIL is.
#
tantek
me neither
#
GWG
Google time
#
sknebel
SIL is the place the license is named for
#
sknebel
SIL Open Font License
#
GWG
I am working on fixing my attribution
#
GWG
And my fonts in general
#
GWG
I hope to write a blog post tonight
tbbrown_ and [kevinmarks] joined the channel