| 1 |
<?php |
<?php |
| 2 |
// Launchpad 1.x |
// $Id$ |
| 3 |
// $Id: template.php,v 1.1 2008/07/11 15:07:39 humaneasy Exp $ |
// 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'); |