You are here

public static function ShareaholicAdmin::include_css_js_assets in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 admin.php \ShareaholicAdmin::include_css_js_assets()

Inserts the necessary css and js assets for the Shareaholic Admin Pages

1 call to ShareaholicAdmin::include_css_js_assets()
header.php in templates/header.php

File

./admin.php, line 105

Class

ShareaholicAdmin
This class takes care of all of the admin interface.

Code

public static function include_css_js_assets() {
  $module_path = drupal_get_path('module', 'shareaholic');
  drupal_add_css('//fonts.googleapis.com/css?family=Open+Sans:400,300,700', array(
    'type' => 'external',
    'group' => CSS_DEFAULT,
  ));
  drupal_add_css($module_path . '/assets/css/bootstrap.css', array(
    'group' => CSS_DEFAULT,
  ));
  drupal_add_css($module_path . '/assets/css/bootstrap-responsive.css', array(
    'group' => CSS_DEFAULT,
  ));
  drupal_add_css($module_path . '/assets/css/reveal.css', array(
    'group' => CSS_DEFAULT,
  ));
  drupal_add_css($module_path . '/assets/css/main.css', array(
    'group' => CSS_DEFAULT,
  ));
  drupal_add_js(ShareaholicUtilities::asset_url('assets/pub/utilities.js'), array(
    'type' => 'external',
    'group' => JS_DEFAULT,
  ));
  drupal_add_js(ShareaholicUtilities::asset_url('assets/pub/shareaholic_sdk.js'), array(
    'type' => 'external',
    'group' => JS_DEFAULT,
  ));
  drupal_add_js($module_path . '/assets/js/jquery_custom.js', array(
    'group' => JS_DEFAULT,
  ));
  drupal_add_js($module_path . '/assets/js/jquery_ui_custom.js', array(
    'group' => JS_DEFAULT,
  ));
  drupal_add_js($module_path . '/assets/js/jquery.reveal.modified.js', array(
    'group' => JS_DEFAULT,
  ));
  drupal_add_js($module_path . '/assets/js/bootstrap.js', array(
    'group' => JS_DEFAULT,
  ));
  drupal_add_js($module_path . '/assets/js/main.js', array(
    'group' => JS_DEFAULT,
  ));
}