Fix issue reporting link to go to the corresponding `core` project.
[civicrm-core.git] / ext / greenwich / greenwich.php
CommitLineData
f61fdd6a
TO
1<?php
2
3require_once 'greenwich.civix.php';
4// phpcs:disable
5use CRM_Greenwich_ExtensionUtil as E;
6// phpcs:enable
7
8/**
9 * Implements hook_civicrm_config().
10 *
11 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
12 */
13function greenwich_civicrm_config(&$config) {
14 _greenwich_civix_civicrm_config($config);
15}
16
4ae5652e
TO
17///**
18// * Implements hook_civicrm_xmlMenu().
19// *
20// * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu
21// */
22//function greenwich_civicrm_xmlMenu(&$files) {
23// _greenwich_civix_civicrm_xmlMenu($files);
24//}
f61fdd6a
TO
25
26/**
27 * Implements hook_civicrm_alterSettingsFolders().
28 *
29 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders
30 */
31function greenwich_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
32 _greenwich_civix_civicrm_alterSettingsFolders($metaDataFolders);
33}
34
f61fdd6a 35/**
07c0c047 36 * Implements hook_civicrm_themes().
f61fdd6a
TO
37 */
38function greenwich_civicrm_themes(&$themes) {
07c0c047
TO
39 // _greenwich_civix_civicrm_themes($themes);
40 $themes['greenwich'] = [
41 'ext' => 'civicrm',
42 'title' => 'Greenwich',
43 'help' => ts('CiviCRM 4.x look-and-feel'),
44 ];
45}
46
47/**
48 * Implements hook_civicrm_alterBundle().
49 */
50function greenwich_civicrm_alterBundle(CRM_Core_Resources_Bundle $bundle) {
51 $theme = Civi::service('themes')->getActiveThemeKey();
52 switch ($theme . ':' . $bundle->name) {
53 case 'greenwich:bootstrap3':
54 $bundle->clear();
55 $bundle->addStyleFile('greenwich', 'dist/bootstrap3.css');
56 $bundle->addScriptFile('greenwich', 'extern/bootstrap3/assets/javascripts/bootstrap.min.js', [
57 'translate' => FALSE,
58 ]);
c99c68b1
CW
59 $bundle->addScriptFile('greenwich', 'js/noConflict.js', [
60 'translate' => FALSE,
61 ]);
07c0c047
TO
62 break;
63 }
f61fdd6a 64}