Skip to content

Commit c2ae92e

Browse files
committed
update jquery version and config front page. Qiu
1 parent 6b50e8e commit c2ae92e

File tree

7 files changed

+69
-180
lines changed

7 files changed

+69
-180
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ sites/*/files
77
sites/*/private
88
sites/all/modules/*
99
!custom
10-
10+
!contrib

misc/jquery.js

Lines changed: 2 additions & 168 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
/**
3+
* @file
4+
* admin_feature.features.inc
5+
*/
6+
7+
/**
8+
* Implements hook_ctools_plugin_api().
9+
*/
10+
function admin_feature_ctools_plugin_api() {
11+
list($module, $api) = func_get_args();
12+
if ($module == "strongarm" && $api == "strongarm") {
13+
return array("version" => "1");
14+
}
15+
}

sites/all/modules/custom/admin_feature/admin_feature.info

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ dependencies[] = fe_block
99
dependencies[] = menu
1010
dependencies[] = search
1111
dependencies[] = shortcut
12+
dependencies[] = strongarm
1213
dependencies[] = views
14+
features[ctools][] = strongarm:strongarm:1
1315
features[fe_block_settings][] = comment-recent
1416
features[fe_block_settings][] = devel-execute_php
1517
features[fe_block_settings][] = devel-switch_user
@@ -32,3 +34,7 @@ features[fe_block_settings][] = user-online
3234
features[fe_block_settings][] = views-2b7ac13d6e7259d35a842083a8dbb9b1
3335
features[fe_block_settings][] = views-latest_questions-block
3436
features[features_api][] = api:1
37+
features[variable][] = site_frontpage
38+
features[variable][] = site_mail
39+
features[variable][] = site_name
40+
features[variable][] = site_slogan
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
/**
3+
* @file
4+
* admin_feature.strongarm.inc
5+
*/
6+
7+
/**
8+
* Implements hook_strongarm().
9+
*/
10+
function admin_feature_strongarm() {
11+
$export = array();
12+
13+
$strongarm = new stdClass();
14+
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
15+
$strongarm->api_version = 1;
16+
$strongarm->name = 'site_frontpage';
17+
$strongarm->value = 'homepage';
18+
$export['site_frontpage'] = $strongarm;
19+
20+
$strongarm = new stdClass();
21+
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
22+
$strongarm->api_version = 1;
23+
$strongarm->name = 'site_mail';
24+
$strongarm->value = '[email protected]';
25+
$export['site_mail'] = $strongarm;
26+
27+
$strongarm = new stdClass();
28+
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
29+
$strongarm->api_version = 1;
30+
$strongarm->name = 'site_name';
31+
$strongarm->value = 'Quiz Wall';
32+
$export['site_name'] = $strongarm;
33+
34+
$strongarm = new stdClass();
35+
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
36+
$strongarm->api_version = 1;
37+
$strongarm->name = 'site_slogan';
38+
$strongarm->value = '';
39+
$export['site_slogan'] = $strongarm;
40+
41+
return $export;
42+
}

sites/all/themes/light/light.info

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ stylesheets[all][] = library/bootstrap/css/bootstrap.min.css
1313
stylesheets[all][] = css/style_custom.css
1414
stylesheets[print][] = css/print.css
1515

16-
16+
scripts[] = library/masonry/jquery.masonry.min.js
1717
scripts[] = library/bootstrap/js/bootstrap.min.js
18+
scripts[] = javascript/main.js
1819

1920
regions[header] = Header
2021
regions[help] = Help

sites/all/themes/light/templates/html.tpl.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,7 @@
4848
<?php print $head; ?>
4949
<title><?php print $head_title; ?></title>
5050
<?php print $styles; ?>
51-
<?php
52-
$js_arr = array('/library/jquery/jquery.min.js',
53-
'/library/masonry/jquery.masonry.min.js',
54-
'/library/bootstrap/js/bootstrap.min.js',
55-
'/javascript/main.js');
56-
?>
57-
<!--?php print $scripts; ?-->
58-
<?php foreach($js_arr as $link) { ?>
59-
<script type="text/javascript" src="<?php print drupal_get_path('theme', 'light').$link; ?>"></script>
60-
<?php } ?>
51+
<?php print $scripts; ?>
6152

6253
</head>
6354
<body class="<?php print $classes; ?>" <?php print $attributes;?>>

0 commit comments

Comments
 (0)