You are here

public static function ShareaholicPublic::insert_widgets in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

Same name and namespace in other branches
  1. 7.3 public.php \ShareaholicPublic::insert_widgets()

Inserts the Shareaholic widget/apps on the page By drawing the canvas on a piece of content

Parameters

$node The node object representing a piece of content:

$view_mode The view that tells how to show the content:

$lang_code The language code:

1 call to ShareaholicPublic::insert_widgets()
shareaholic_node_view in includes/node.php
Implements hook_node_view()

File

./public.php, line 286

Class

ShareaholicPublic
This class is all about drawing the stuff in publishers' templates that visitors can see.

Code

public static function insert_widgets($node, $view_mode, $lang_code) {
  if ($view_mode === 'rss') {
    return;
  }
  if (isset($node->content)) {
    self::draw_canvases($node, $view_mode);
  }
}