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

Contents of /contributions/modules/drigg_external/drigg-external-button-add.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, 1 week 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 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>

  ViewVC Help
Powered by ViewVC 1.1.2