myaac icon indicating copy to clipboard operation
myaac copied to clipboard

No OG for friendly sharing

Open brunowoelke opened this issue 4 years ago • 1 comments

Description

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#>"/>

brunowoelke avatar Aug 17 '20 21:08 brunowoelke

@slawkens I haven't got git setup atm for commits.

but I was thinking something like this config.php '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 %}

functions.php function template_header $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,

Leesneaks avatar May 29 '21 01:05 Leesneaks