function share_everywhere_theme in Share Everywhere 8
Same name and namespace in other branches
- 2.x share_everywhere.module \share_everywhere_theme()
Implements hook_theme().
File
- ./
share_everywhere.module, line 39 - A module that adds social buttons to your website.
Code
function share_everywhere_theme($existing, $type, $theme, $path) {
$template_vars = [
'url' => NULL,
'content' => NULL,
];
$variables = [
'share_everywhere' => [
'variables' => [
'attributes' => [
'class' => NULL,
],
'title' => NULL,
'share_icon' => NULL,
'se_links_id' => NULL,
'is_active' => NULL,
'facebook_like' => NULL,
'buttons' => NULL,
],
'template' => 'share-everywhere',
],
'se_facebook_like' => [
'variables' => [
'url' => NULL,
],
'template' => 'se-facebook-like',
],
'se_facebook_share' => [
'variables' => $template_vars,
'template' => 'se-facebook-share',
],
'se_twitter' => [
'variables' => $template_vars,
'template' => 'se-twitter',
],
'se_linkedin' => [
'variables' => $template_vars,
'template' => 'se-linkedin',
],
'se_messenger' => [
'variables' => $template_vars,
'template' => 'se-messenger',
],
'se_viber' => [
'variables' => $template_vars,
'template' => 'se-viber',
],
'se_whatsapp' => [
'variables' => $template_vars,
'template' => 'se-whatsapp',
],
'se_copy' => [
'variables' => $template_vars,
'template' => 'se-copy-url',
],
];
return $variables;
}