We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Allow "friendly sharing box" when tiping links on any apps.
Example to implement on index.php of templates:
<meta property="og:type" content="website"/> <meta property="og:title" content="<?=$title_full?>"/> <meta property="og:url" content="<#PAGE_URL#>"/> <meta property="og:image" content="<#400x400_ICON_PATH#>"/> <meta property="og:description" content="<#PAGE_DESCRIPTION#>"/>
The text was updated successfully, but these errors were encountered:
@slawkens I haven't got git setup atm for commits.
but I was thinking something like this config.php 'meta_og_logo' => 'oglogo.png',
'meta_og_logo' => 'oglogo.png',
templates.header.html.twig <meta property="og:type" content="website"/> <meta property="og:title" content="{{ title }}"/> <meta property="og:url" content="{{ constant('BASE_URL') }}"/> <meta property="og:description" content="{{ config.meta_description }}"/> {% if og_logo %} <meta property="og:image" content="{{og_logo}}"/> {% endif %}
<meta property="og:type" content="website"/>
<meta property="og:title" content="{{ title }}"/>
<meta property="og:url" content="{{ constant('BASE_URL') }}"/>
<meta property="og:description" content="{{ config.meta_description }}"/>
{% if og_logo %}
<meta property="og:image" content="{{og_logo}}"/>
{% endif %}
functions.php function template_header $oglogo = isset($config['meta_og_logo']) ? $template_path .'/images/'.$config['meta_og_logo'] : null;
$oglogo = isset($config['meta_og_logo']) ? $template_path .'/images/'.$config['meta_og_logo'] : null;
in the render('templates.header.html.twig 'og_logo' => ($oglogo and file_exists($oglogo)) ? $oglogo : null,
'og_logo' => ($oglogo and file_exists($oglogo)) ? $oglogo : null,
Sorry, something went wrong.
No branches or pull requests
Description
Allow "friendly sharing box" when tiping links on any apps.
Example to implement on index.php of templates:
The text was updated successfully, but these errors were encountered: