/[drupal]/contributions/modules/drigg_external/drigg-external-button-vote.tpl.php
ViewVC logotype

Contents of /contributions/modules/drigg_external/drigg-external-button-vote.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Nov 19 21:14:15 2008 UTC (12 months ago) by pgiro
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
initial pre-release
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>

  ViewVC Help
Powered by ViewVC 1.1.2