/[drupal]/contributions/themes/launchpad/template.php
ViewVC logotype

Contents of /contributions/themes/launchpad/template.php

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


Revision 1.3 - (show annotations) (download) (as text)
Thu Jul 17 15:19:14 2008 UTC (16 months, 1 week ago) by humaneasy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +28 -2 lines
File MIME type: text/x-php
First working version of Launchpad for Drupal
1 <?php
2 // $Id$
3 // Launchpad for Drupal by iPublicis.com
4 // Original for Wordpress by ThemeShaper.com
5
6 if (is_null(theme_get_setting('launchpad_feedburner_user'))) {
7 global $theme_key;
8
9 // Save default theme settings
10 $defaults = array(
11 'launchpad_feedburner_user' => '',
12 'launchpad_feedburner_fid' => 0,
13 );
14
15 variable_set(
16 str_replace('/', '_', 'theme_'. $theme_key .'_settings'),
17 array_merge(theme_get_settings($theme_key), $defaults)
18 );
19 // Force refresh of Drupal internals
20 theme_get_setting('', TRUE);
21
22 }
23
24 // Theme Styles
25 drupal_add_css(drupal_get_path('theme', 'launchpad') . '/css/style.css', 'theme');
26 drupal_add_css(drupal_get_path('theme', 'launchpad') . '/css/fancy.css', 'theme');
27
28 // Theme Scripts
29 drupal_add_js(drupal_get_path('theme', 'launchpad') . '/js/jquery.fancybox.js', 'theme');
30 drupal_add_js(drupal_get_path('theme', 'launchpad') . '/js/jquery.pngFix.js', 'theme');

  ViewVC Help
Powered by ViewVC 1.1.2