/[drupal]/contributions/modules/chipin/chipin.module
ViewVC logotype

Diff of /contributions/modules/chipin/chipin.module

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

revision 1.2, Mon Aug 28 20:19:33 2006 UTC revision 1.3, Mon Aug 28 21:31:42 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: $  // $Id: chipin.module,v 1.2 2006/08/28 20:19:33 robroy Exp $
3    
4  /**  /**
5   * @file   * @file
6   *   Lets users easily insert a ChipIn Flash widget into content.   *   Lets users easily insert a ChipIn Flash widget into content.
7   */   */
8    
9  define('CHIPIN_ACCESS_PAGES_DEFAULT', "node/*\nuser/*\ncomment/*");  define('CHIPIN_ACCESS_PAGES_DEFAULT', "node/*\nadmin/block/*");
10    
11  /**  /**
12   * Implementation of hook_help().   * Implementation of hook_help().
# Line 42  function chipin_help($section) { Line 42  function chipin_help($section) {
42    <li>Read the <a href="http://faq.chipin.com/">ChipIn FAQ</a> for frequently asked questions about ChipIn</li>    <li>Read the <a href="http://faq.chipin.com/">ChipIn FAQ</a> for frequently asked questions about ChipIn</li>
43  </ul>  </ul>
44  <h2 id="widget">What\'s a widget?</h2>  <h2 id="widget">What\'s a widget?</h2>
45  <img src="'. base_path() . drupal_get_path('module', 'chipin') .'/images/widget.mini.png" alt="An example of a ChipIn widget." style="margin-right: 20px; float: left;" height="200" width="204" />  <img src="'. base_path() . drupal_get_path('module', 'chipin') .'/images/widget.mini.png" alt="An example of a ChipIn widget." style="margin: 0 20px; float: right;" height="200" width="204" />
46  <p>The <strong>ChipIn widget</strong> is a small indicator of the progress of your event that you can add to your Web pages.</p>  <p>The <strong>ChipIn widget</strong> is a small indicator of the progress of your event that you can add to your Web pages.</p>
47  <ul style="padding-left: 50px;">  <ul>
48    <li>The ChipIn widget can be easily added to your Web page and helps to promote your ChipIn event to your site visitors.</li>    <li>The ChipIn widget can be easily added to your Web page and helps to promote your ChipIn event to your site visitors.</li>
49    <li>The widget provides real-time updates on the amount contributed to date, the percentage of the goal reached, and the number of people contributing.</li>    <li>The widget provides real-time updates on the amount contributed to date, the percentage of the goal reached, and the number of people contributing.</li>
50    <li>By clicking on the "ChipIn!" button on the widget, visitors will be taken to your event invitation page where they can contribute to your ChipIn.</li>    <li>By clicking on the "ChipIn!" button on the widget, visitors will be taken to your event invitation page where they can contribute to your ChipIn.</li>
# Line 782  function theme_chipin_popup_page($conten Line 782  function theme_chipin_popup_page($conten
782    $output .= '<html xmlns="http://www.w3.org/1999/xhtml">'. "\n";    $output .= '<html xmlns="http://www.w3.org/1999/xhtml">'. "\n";
783    $output .= '<head>'. "\n";    $output .= '<head>'. "\n";
784    $output .= '  <title>'. drupal_get_title() .'</title>'. "\n";    $output .= '  <title>'. drupal_get_title() .'</title>'. "\n";
785    $output .= '  <script type="text/javascript" src="'. drupal_get_path('module', 'chipin') .'/js/jquery.js"></script>'. "\n";    $output .= '  <script type="text/javascript" src="'. base_path() . drupal_get_path('module', 'chipin') .'/js/jquery.js"></script>'. "\n";
786    $output .= '  <script type="text/javascript" src="'. drupal_get_path('module', 'chipin') .'/js/chipin_textarea.js"></script>'. "\n";    $output .= '  <script type="text/javascript" src="'. base_path() . drupal_get_path('module', 'chipin') .'/js/chipin_textarea.js"></script>'. "\n";
787    $output .= '  <script type="text/javascript" src="'. drupal_get_path('module', 'chipin') .'/js/chipin.js"></script>'. "\n";    $output .= '  <script type="text/javascript" src="'. base_path() . drupal_get_path('module', 'chipin') .'/js/chipin.js"></script>'. "\n";
788    $output .= '  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'. "\n";    $output .= '  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'. "\n";
789    $output .= '  <link rel="shortcut icon" href="'. base_path() .'misc/favicon.ico" type="image/x-icon" />';    $output .= '  <link rel="shortcut icon" href="'. base_path() .'misc/favicon.ico" type="image/x-icon" />';
790    $output .= theme('stylesheet_import', base_path() . drupal_get_path('module', 'chipin') .'/chipin.css', 'all');    $output .= theme('stylesheet_import', base_path() . drupal_get_path('module', 'chipin') .'/chipin.css', 'all');

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2