| 1 |
<?php
|
| 2 |
// $Id
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Default theme implementation for displaying the vote button on an external site
|
| 7 |
*
|
| 8 |
* Available variables:
|
| 9 |
* - $node: A drigg node (so node id is ->dnid)
|
| 10 |
* - $widget_html : the HTML vote the vote button, ready to be displayed
|
| 11 |
*
|
| 12 |
* @ingroup drigg_external
|
| 13 |
*/
|
| 14 |
|
| 15 |
//set header or else IE won't save the user's vote or find his session
|
| 16 |
drupal_set_header('P3P: CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"');
|
| 17 |
?>
|
| 18 |
|
| 19 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
| 20 |
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">
|
| 21 |
|
| 22 |
<head>
|
| 23 |
<?php
|
| 24 |
//this could be optimized as we will be loading all the CSS even those we don't need
|
| 25 |
//for the vote button. But it allows this module to work with any vote button with no
|
| 26 |
//extra config. Plus, these CSS files are cached so it only hurts the first call
|
| 27 |
//Plus, Drupal can be configured to collapse all of them into one so it doesn't really
|
| 28 |
//matter
|
| 29 |
print drupal_get_css();
|
| 30 |
print drupal_get_js();
|
| 31 |
?>
|
| 32 |
</head>
|
| 33 |
<body style='background-color:transparent;' title='titre' onload="parent.DRIGG_EVB_process_buttons()">
|
| 34 |
<div class="drigg_external_button" id="drigg_external_button_<?php print $node->dnid; ?>">
|
| 35 |
<center title="<?php print t('Support this author by voting !');?>"><?php print $widget_html; ?></center>
|
| 36 |
</div>
|
| 37 |
</body>
|
| 38 |
</html>
|