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