evenmt_social will use the first image from the
entry for the OpenGrahp "og:image" meta property
used by Facebook and Twitter; if there is none,
it will fall back to the default image from the
plugin configuration.
The timeline and photo themes support setting
a featured image that is used instead.
Add the possibility to set a social media
image for each entry, regardless of theme.
If there is none set, fall back to timeline
or photo featured images, or the first image
in the enttry body, or the default image from
the plugin configuration (in that order).
Signed-off-by: Thomas Hochstein <thh@inter.net>
This version uses locally hosted webfonts. In order to save space
and bandwith, we'll only bundle .ttf, woff and .woff2. That means
no support for legacy iOS (.svg) or IE < 9 (.eot).
References s9y/Serendipity#553
Quotes in a manually supplied description - or the first
200 characters of the entry body - have to be escaped
before the text can become the content attribute of
the og:description meta tag.
It doesn't hurt to escape everything, then.
Signed-off-by: Thomas Hochstein <thh@inter.net>
serendipity_event_metadesc makes it possible to
specify a description for every entry that is used
to set the "description" meta tag.
This description, if present, should be used for
the "og:description" meta tag, too. Using the first
200 chars can remain as a fallback solution.
Signed-off-by: Thomas Hochstein <thh@inter.net>