You are here

facebook-comments--block.tpl.php in Facebook Comments Block 7.2

Same filename and directory in other branches
  1. 7 templates/facebook-comments--block.tpl.php

Default theme implementation to display a facebook comments block.

Available variables:

  • $facebook: array contains all available variables.
  • url: the page url. the fb script to include fb app id.
  • facebook_comments_block_settings_width: The width of the plugin.
  • facebook_comments_block_settings_number_of_posts: The number of comments to show by default.
  • facebook_comments_block_settings_color_schema: The color scheme used by the plugin.

File

templates/facebook-comments--block.tpl.php
View source
<?php

/**
 * @file
 * Default theme implementation to display a facebook comments block.
 *
 * Available variables:
 * - $facebook: array contains all available variables.
 * - url: the page url.
 *   the fb script to include fb app id.
 * - facebook_comments_block_settings_width: The width of the plugin.
 * - facebook_comments_block_settings_number_of_posts: The number of comments
 *   to show by default.
 * - facebook_comments_block_settings_color_schema:
 *   The color scheme used by the plugin.
 */
?>

<div id="fb-root"></div>
<div class="fb-comments" <?php

print drupal_attributes($facebook['data_attributes']);
?>></div>