crmMosaico.ang.php 984 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php
// This file declares an Angular module which can be autoloaded
// in CiviCRM. See also:
// http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_angularModules

$result = array (
  'js' =>
  array (
    0 => 'ang/crmMosaico.js',
    1 => 'ang/crmMosaico/*.js',
    2 => 'ang/crmMosaico/*/*.js',
  ),
  'css' =>
  array (
    0 => 'css/main.css',
  ),
  'partials' =>
  array (
    0 => 'ang/crmMosaico',
  ),
  'settings' =>
  array (
    'canDelete' => Civi::service('civi_api_kernel')->runAuthorize('MosaicoTemplate', 'delete', array('version' => 3, 'check_permissions' => 1)),
    // If there are any navbars that we should try to avoid, include them
    // in these jQuery selectors.
    'topNav' => '#civicrm-menu',
27 28
    'drupalNav' => '#toolbar',
    'joomlaNav' => '.com_civicrm > .navbar',
29 30 31 32 33 34 35 36 37
    'leftNav' => '.wp-admin #adminmenu',
  ),
);

if (version_compare(CRM_Utils_System::version(), '4.7', '<')) {
  $result['css'][]= 'css/legacy.css';
}

return $result;