本文整理汇总了PHP中drupal_get_js函数的典型用法代码示例。如果您正苦于以下问题:PHP drupal_get_js函数的具体用法?PHP drupal_get_js怎么用?PHP drupal_get_js使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了drupal_get_js函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: favrskovtheme_preprocess_html
/**
* Preprocess html.tpl.php
*/
function favrskovtheme_preprocess_html(&$vars)
{
drupal_add_library('system', 'ui.widget');
drupal_add_js(libraries_get_path('swiper') . '/idangerous.swiper.min.js', array('scope' => 'header', 'group' => JS_LIBRARY, 'every_page' => TRUE));
drupal_add_css('https://fast.fonts.net/cssapi/cb2b1123-533e-44b1-af78-e3702f6bd579.css', array('type' => 'external', 'group' => 'CSS_THEME', 'every_page' => TRUE, 'media' => 'projection, screen'));
$jwplayer = drupal_get_js('jwplayer');
$vars['jwplayer'] = $jwplayer;
// Added meta tag for IE.
$meta_ie_render_engine = array('#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array('content' => 'IE=10', 'http-equiv' => 'X-UA-Compatible'));
// Add header meta tag for IE to head
drupal_add_html_head($meta_ie_render_engine, 'meta_ie_render_engine');
$multisite_links = theme_get_setting('favrskovtheme_multisite_links');
if (!empty($multisite_links)) {
$vars['classes_array'][] = theme_get_setting('favrskovtheme_multisite_links');
}
$header_links = theme_get_setting('favrskovtheme_header_links');
if (!empty($header_links)) {
$vars['classes_array'][] = $header_links;
}
if (!empty($vars['background'])) {
$vars['classes_array'][] = 'dynamic-background';
}
// jQuery custom content scroller
drupal_add_js(libraries_get_path('malihu') . '/js/minified/jquery.mCustomScrollbar.min.js', array('scope' => 'header', 'group' => JS_LIBRARY, 'every_page' => TRUE));
drupal_add_css(libraries_get_path('malihu') . '/jquery.mCustomScrollbar.min.css', array('scope' => 'header', 'group' => CSS_THEME, 'every_page' => TRUE));
}
示例2: theme_block_overlay_store_form
function theme_block_overlay_store_form($form, $language)
{
$output = "";
$output .= drupal_get_css();
$output .= drupal_get_js();
$output .= '<div id="block-overlay-store" class="page-store">';
$output .= '<div id="block-map">';
$output .= '<img src="' . base_path() . drupal_get_path('module', 'storelocator_app') . '/images/carteBE-overlay.jpg' . '" ';
$output .= ' class="maphilight" usemap="#Map" />';
$output .= '<map name="Map" id="Map">';
$output .= '<AREA SHAPE=POLY COORDS="19,53,70,30,73,41,68,58,76,86,47,82,34,90,24,83" HREF="javascript:displayRegion(\'' . t('Province Flandre Occidentale', array(), $language) . '\');" ALT="' . t('Province Flandre Occidentale', array(), $language) . '" TITLE="' . t('Province Flandre Occidentale', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="73,40,80,41,79,36,97,43,114,41,123,33,129,52,119,55,120,67,103,90,75,87,71,73,68,57,71,49" HREF="javascript:displayRegion(\'' . t('Province Flandre Orientale', array(), $language) . '\');" ALT="' . t('Province Flandre Orientale', array(), $language) . '" TITLE="' . t('Province Flandre Orientale', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="39,94,34,91,46,82,48,85,54,86,57,87,68,90,75,88,79,89,82,92,87,87,95,90,103,91,103,96,113,94,114,101,119,100,128,111,134,109,138,111,145,113,145,121,145,132,133,135,126,140,132,141,131,149,132,158,134,171,124,167,116,166,113,160,120,157,113,151,116,140,111,132,106,129,99,132,96,129,89,130,89,134,85,129,83,117,70,115,63,109,59,100,62,94,57,92,52,85" HREF="javascript:displayRegion(\'' . t('Province de Hainaut', array(), $language) . '\');" ALT="' . t('Province de Hainaut', array(), $language) . '" TITLE="' . t('Province de Hainaut', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="141,111,150,108,165,106,173,111,182,119,187,126,194,127,194,136,189,140,184,144,191,151,172,155,169,161,171,167,172,175,168,179,165,185,159,184,158,177,159,172,155,167,158,154,159,149,149,155,149,164,140,166,135,170,128,157,129,147,130,141,124,140,132,134,142,133,144,123,142,116" HREF="javascript:displayRegion(\'' . t('Province de Namur', array(), $language) . '\');" ALT="' . t('Province de Namur', array(), $language) . '" TITLE="' . t('Province de Namur', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="195,123,211,131,215,138,222,139,221,131,231,132,233,148,219,167,216,177,214,187,225,198,222,208,200,212,189,202,166,184,171,176,171,167,167,159,171,153,184,152,183,142,193,137" HREF="javascript:displayRegion(\'' . t('Province de Luxembourg', array(), $language) . '\');" ALT="' . t('Province de Luxembourg', array(), $language) . '" TITLE="' . t('Province de Luxembourg', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="171,96,199,93,211,86,215,92,224,93,231,91,239,94,247,102,247,105,243,106,247,116,253,115,255,124,255,126,257,134,242,143,241,153,232,146,230,133,222,133,224,140,212,140,211,131,196,125,186,128,174,113,167,102" HREF="javascript:displayRegion(\'' . t('Province de Liège', array(), $language) . '\');" ALT="' . t('Province de Liège', array(), $language) . '" TITLE="' . t('Province de Liège', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="183,42,199,38,204,47,212,50,221,52,215,72,209,81,210,86,193,94,176,97,180,78,169,75,175,65,167,62,184,53,179,47,181,45" HREF="javascript:displayRegion(\'' . t('Province du Limbourg', array(), $language) . '\');" ALT="' . t('Province du Limbourg', array(), $language) . '" TITLE="' . t('Province du Limbourg', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="122,28,133,31,132,22,141,20,143,26,150,25,154,18,159,20,160,26,166,27,170,20,176,24,175,30,179,36,183,37,182,48,185,53,170,62,157,65,145,66,131,67,124,63,120,64,120,54,128,54,126,41" HREF="javascript:displayRegion(\'' . t('Province Anvers', array(), $language) . '\');" ALT="' . t('Province d\'Anvers', array(), $language) . '" TITLE="' . t('Province d\'Anvers', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="111,99,111,94,113,92,118,96,125,96,126,93,129,93,130,91,135,89,137,92,143,90,147,90,149,84,156,84,159,87,164,88,166,90,171,88,171,97,157,103,147,102,145,107,141,107,141,110,137,110,136,108,127,107,121,102,117,101,117,98,114,97,111,98,111,99" HREF="javascript:displayRegion(\'' . t('Province du Brabant wallon', array(), $language) . '\');" ALT="' . t('Province du Brabant wallon', array(), $language) . '" TITLE="' . t('Province du Brabant wallon', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="124,78,133,74,135,79,136,81,134,88,129,89,123,85" HREF="javascript:displayRegion(\'' . t('Région de Bruxelles', array(), $language) . '\');" ALT="' . t('Région de Bruxelles', array(), $language) . '" TITLE="' . t('Région de Bruxelles', array(), $language) . '">';
$output .= '<AREA SHAPE=POLY COORDS="122,62,133,67,175,65,178,64,171,74,175,76,181,76,174,96,167,90,153,89,134,90,134,80,131,76,124,79,123,84,129,89,133,89,126,95,119,95,115,93,101,95,101,88,112,86,109,80,114,74,116,72,117,58,122,65" HREF="javascript:displayRegion(\'' . t('Province du Brabant flamand', array(), $language) . '\');" ALT="' . t('Province du Brabant flamand', array(), $language) . '" TITLE="' . t('Province du Brabant flamand', array(), $language) . '">';
$output .= '</map>';
$output .= '</div>';
$output .= drupal_render($form);
$output .= '</div>';
return $output;
}
示例3: equinox_preprocess_page
/**
* @file template.php
* This file provides theme functions to override or extend Drupal behavior.
*
* @author Raymond Jelierse
*/
function equinox_preprocess_page(&$variables) {
// Default JavaScript settings
$theme_settings = array(
'carouselTimeout' => 10000,
'carouselTransitionSpeed' => 500,
);
// Refresh theme settings
theme_get_setting('', TRUE);
if (theme_get_setting('carousel_timeout') !== NULL) {
$theme_settings['carouselTimeout'] = intval(theme_get_setting('carousel_timeout'));
}
if (theme_get_setting('carousel_transition_speed') !== NULL) {
$theme_settings['carouselTransitionSpeed'] = intval(theme_get_setting('carousel_transition_speed'));
}
drupal_add_js(array('equinox' => $theme_settings), 'setting');
$variables['scripts'] = drupal_get_js();
// Create user menu
$variables['user_menu'] = theme('links', menu_navigation_links('navigation'), array('id' => 'user-links-menu', 'class' => 'links user-links'));
// Add check variable for administration section.
$variables['is_admin'] = (arg(0) == 'admin');
// Remove breadcrumb if not in the administration section.
if (!$variables['is_admin']) {
$variables['breadcrumb'] = '';
}
// Multilanguage site logo
$variables['logo'] = sprintf('%s/images/logo-%s.png', url(drupal_get_path('theme', 'equinox')), $variables['language']->language);
}
示例4: testLibraryInfoAlter
/**
* Verifies that the datepicker can be localized.
*
* @see locale_library_info_alter()
*/
public function testLibraryInfoAlter()
{
$attached['#attached']['library'][] = 'core/jquery.ui.datepicker';
drupal_render($attached);
$scripts = drupal_get_js();
$this->assertTrue(strpos($scripts, 'locale.datepicker.js'), 'locale.datepicker.js added to scripts.');
}
示例5: lotusPD_img_assist_page
/**
* Image assist module support.
*/
function lotusPD_img_assist_page($content, $attributes = NULL)
{
$title = drupal_get_title();
$output = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";
$output .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">' . "\n";
$output .= "<head>\n";
$output .= '<title>' . $title . "</title>\n";
// Note on CSS files from Benjamin Shell:
// Stylesheets are a problem with image assist. Image assist works great as a
// TinyMCE plugin, so I want it to LOOK like a TinyMCE plugin. However, it's
// not always a TinyMCE plugin, so then it should like a themed Drupal page.
// Advanced users will be able to customize everything, even TinyMCE, so I'm
// more concerned about everyone else. TinyMCE looks great out-of-the-box so I
// want image assist to look great as well. My solution to this problem is as
// follows:
// If this image assist window was loaded from TinyMCE, then include the
// TinyMCE popups_css file (configurable with the initialization string on the
// page that loaded TinyMCE). Otherwise, load drupal.css and the theme's
// styles. This still leaves out sites that allow users to use the TinyMCE
// plugin AND the Add Image link (visibility of this link is now a setting).
// However, on my site I turned off the text link since I use TinyMCE. I think
// it would confuse users to have an Add Images link AND a button on the
// TinyMCE toolbar.
//
// Note that in both cases the img_assist.css file is loaded last. This
// provides a way to make style changes to img_assist independently of how it
// was loaded.
$output .= drupal_get_html_head();
$output .= drupal_get_js();
$output .= "\n<script type=\"text/javascript\"><!-- \n";
$output .= " if (parent.tinyMCE && parent.tinyMCEPopup && parent.tinyMCEPopup.getParam('popups_css')) {\n";
$output .= " document.write('<link href=\"' + parent.tinyMCEPopup.getParam('popups_css') + '\" rel=\"stylesheet\" type=\"text/css\">');\n";
$output .= " } else {\n";
foreach (drupal_add_css() as $media => $type) {
$paths = array_merge($type['module'], $type['theme']);
foreach (array_keys($paths) as $path) {
// Don't import img_assist.css twice.
if (!strstr($path, 'img_assist.css')) {
$output .= " document.write('<style type=\"text/css\" media=\"{$media}\">@import \"" . base_path() . $path . "\";<\\/style>');\n";
}
}
}
$output .= " }\n";
$output .= "--></script>\n";
// Ensure that img_assist.js is imported last.
$path = drupal_get_path('module', 'img_assist') . '/img_assist_popup.css';
$output .= "<style type=\"text/css\" media=\"all\">@import \"" . base_path() . $path . "\";</style>\n";
$output .= '<!--[if IE 6]><link rel="stylesheet" href="' . get_full_path_to_theme() . '/style.ie6.css" type="text/css" /><![endif]-->' . "\n";
$output .= '<!--[if IE 7]><link rel="stylesheet" href="' . get_full_path_to_theme() . '/style.ie7.css" type="text/css" /><![endif]-->' . "\n";
$output .= "</head>\n";
$output .= '<body' . drupal_attributes($attributes) . ">\n";
$output .= theme_status_messages();
$output .= "\n";
$output .= $content;
$output .= "\n";
$output .= '</body>';
$output .= '</html>';
return $output;
}
示例6: phptemplate_preprocess_page
/**
* Override or insert PHPTemplate variables into the templates.
*/
function phptemplate_preprocess_page(&$vars)
{
/* Load js and css files */
drupal_add_js(path_to_theme() . '/js/aasa.js');
drupal_add_css(path_to_theme() . '/editor.css');
$node = aasa_theme_current_node();
$url = explode('/', $_GET['q']);
/* BROWSER TITLE */
$vars['head_title'] = $node->field_browser_title[0]['value'];
$vars['template'] = 'admin.inc.php';
$vars['classes'] = $node->type;
switch ($node->type) {
case 'front_page':
$vars['template'] = 'front.inc.php';
if ($url[2] != 'edit') {
drupal_add_js(path_to_theme() . '/js/jquery-1.6.2.js');
drupal_add_js(path_to_theme() . '/js/nivo-slider/jquery.nivo.slider.js');
}
break;
case 'internal_page':
case 'board_of_director':
case 'education_and_event':
case 'member_resources':
case 'membership':
case 'sponsorship':
case 'the_cutting_edge':
case 'the_cutting_edge_past':
case 'national_conference':
case 'regional_conferences':
case 'contact_form':
case 'webinars_widget':
case 'widget_container':
case 'widget_gallery':
$vars['template'] = 'node.tpl.php';
if ($url[2] != 'edit') {
drupal_add_js(path_to_theme() . '/js/jquery-1.6.2.js');
drupal_add_js(path_to_theme() . '/js/nivo-slider/jquery.nivo.slider.js');
}
break;
}
$vars['node_nid_widget'] = $node->nid;
if ($url[0] == 'admin' || $url[2] == 'edit' || $url[1] == 'add' || $url[2] == 'delete') {
$vars['template'] = 'admin.inc.php';
}
if ($url[0] == 'node' && $url[1] == 'add' && $url[2] == 'profile') {
$vars['template'] = 'node.tpl.php';
drupal_add_css(path_to_theme() . '/profile.css');
}
$globals = node_load(56);
/* FOOTER TEXT*/
$vars['title'] = $globals->title;
$vars['field_footer_text'] = $globals->field_footer_text[0]['value'];
$vars['node_nid_widget'] = $globals->title;
/* Reload the javascript and css files */
$vars['scripts'] = drupal_get_js();
$vars['styles'] = drupal_get_css();
$vars['active_menu'] = title_internal();
}
示例7: kalypso_preprocess_page
function kalypso_preprocess_page(&$vars, $hook)
{
if (isset($vars['node'])) {
$suggest = "page__node__{$vars['node']->type}";
$vars['theme_hook_suggestions'][] = $suggest;
}
$status = drupal_get_http_header("status");
if ($status == "404 Not Found") {
$vars['theme_hook_suggestions'][] = 'page__404';
}
// We need to rebuild the scripts variable with the new script included.
$variables['scripts'] = drupal_get_js();
}
示例8: autoservice_process_html
function autoservice_process_html(&$variables)
{
// The JavaScript file to load.
$js = 'http://html5shim.googlecode.com/svn/trunk/html5.js';
// Compile the necessary HTML code.
$output = "\n";
$output .= "<!--[if lt IE 9]>\n";
$output .= "<script src=\"{$js}\"></script>\n";
$output .= "<![endif]-->\n";
// Add the code after the other scripts.
$variables['scripts'] .= $output;
$variables['head_scripts'] = drupal_get_js('head_scripts');
}
示例9: sgarchive_preprocess_html
/**
* Override or insert variables into the html template.
*/
function sgarchive_preprocess_html(&$variables)
{
drupal_add_css(path_to_theme() . '/css/style.css', array('group' => CSS_THEME, 'type' => 'file', 'preprocess' => FALSE));
if (!theme_get_setting('responsive_respond', 'sgarchive')) {
drupal_add_css(path_to_theme() . '/css/basic-layout.css', array('group' => CSS_THEME, 'browsers' => array('IE' => '(lte IE 8)&(!IEMobile)', '!IE' => FALSE), 'preprocess' => FALSE));
}
drupal_add_css(path_to_theme() . '/css/ie.css', array('group' => CSS_THEME, 'browsers' => array('!IE' => FALSE), 'preprocess' => FALSE));
drupal_add_css('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css', array('group' => CSS_THEME, 'type' => 'file', 'preprocess' => FALSE, 'weight' => '-1000'));
drupal_add_css('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', array('group' => CSS_THEME, 'type' => 'file', 'preprocess' => FALSE, 'weight' => '-1000'));
drupal_add_js('//code.jquery.com/ui/1.9.2/jquery-ui.min.js');
drupal_add_js('//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js');
drupal_add_js(path_to_theme() . '/js/main.js');
$variables['bottom_scripts'] = drupal_get_js('bottom_scripts');
}
示例10: phptemplate_preprocess_page
/**
* Override or insert PHPTemplate variables into the templates.
*/
function phptemplate_preprocess_page(&$vars)
{
// print_r($vars);
$vars['primary_links'] = _opensourcery_primary_links($vars['primary_links']);
$vars['secondary_links'] = _opensourcery_secondary_links($vars['secondary_links']);
$vars['tabs2'] = menu_secondary_local_tasks();
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
// Render the slideshow view for homepage
$vars['embedded_slideshow'] = views_embed_view('homeslideshow', 'block_1');
//Reload the javascript into the scripts due to a problem with slideshow.
$vars['scripts'] = drupal_get_js();
}
示例11: mycinema_preprocess_page
function mycinema_preprocess_page(&$vars, $hook)
{
if (true) {
drupal_add_js(drupal_get_path('theme', 'mycinema') . '/js/custom.js');
$vars['scripts'] = drupal_get_js();
// necessary in D7?
}
//add news class
//dpm( $vars['navbar_classes_array']);
//$vars['navbar_classes_array'][] = 'new-class';
//remove class
//unset($vars['navbar_classes_array'][1]);
// you need change value 0 to value you want remove class
// Default
// 0 'navbar', 1 => 'container', 2 => 'navbar-default'
}
示例12: _phptemplate_variables
function _phptemplate_variables($hook, $vars = array())
{
switch ($hook) {
case 'page':
global $theme;
drupal_add_css($vars['directory'] . '/additional.css', 'theme', 'all');
drupal_add_js($vars['directory'] . '/jquery.color.js', 'theme');
drupal_add_js($vars['directory'] . '/scripts.js', 'theme');
// turn off title?
$vars['suppress_title'] = $vars['node']->type == 'crime';
break;
}
$vars['css'] = drupal_add_css();
$vars['styles'] = drupal_get_css();
$vars['scripts'] = drupal_get_js();
return $vars;
}
示例13: u21dk2011_preprocess_page
/**
* Override or insert variables into page templates.
*
* @param $vars
* A sequential array of variables to pass to the theme template.
* @param $hook
* The name of the theme function being called.
*/
function u21dk2011_preprocess_page(&$vars, $hook)
{
global $theme;
global $theme_path;
// Detect if page is shown in a regional context
$vars['is_region'] = FALSE;
if ($hook == 'page') {
if (isset($vars['node']) && property_exists($vars['node'], 'field_slug_ref') && $vars['node']->field_slug_ref[0]['nid']) {
$vars['is_region'] = TRUE;
}
}
// Don't display empty help from node_help().
if ($vars['help'] == "<div class=\"help\"> \n</div>") {
$vars['help'] = '';
}
// Set variables for the logo and site_name.
if (!empty($vars['logo'])) {
// Return the site_name even when site_name is disabled in theme settings.
$vars['logo_alt_text'] = empty($vars['logo_alt_text']) ? variable_get('site_name', '') : $vars['logo_alt_text'];
$vars['site_logo'] = '<a id="site-logo" href="' . $vars['front_page'] . '" title="' . t('Home page') . '" rel="home"><img src="' . $vars['logo'] . '" alt="' . $vars['logo_alt_text'] . '" /></a>';
}
$vars['tournament_logo'] = '<img id="tournament-logo" src="/' . $theme_path . '/images/graphic-dk2011.png" alt="Denmark 2011" />';
if (!empty($vars['site_slogan'])) {
$vars['tournament_date'] = '<img id="tournament-date" src="/' . $theme_path . '/images/graphic-date.png" alt="' . $vars['site_slogan'] . '" />';
} else {
$vars['tournament_date'] = '';
}
// Add regional context to body classes
if (!$vars['is_front']) {
$path_request = explode('/', $_SERVER['REQUEST_URI']);
if ($path_request[1] == "location") {
$vars['body_classes'] .= ' page-regional';
}
}
// Add profiles js
if (isset($vars['node'])) {
$node = $vars['node'];
if ($node->type == 'profile') {
jquery_ui_add('ui.tabs');
drupal_add_js(path_to_theme() . '/scripts/profiles.js');
$vars['scripts'] = drupal_get_js();
}
}
}
示例14: comunececina_process_html
function comunececina_process_html(&$vars)
{
$before = array("/>\\s\\s+/", "/\\s\\s+</", "/>\t+</", "/\\s\\s+(?=\\w)/", "/(?<=\\w)\\s\\s+/");
$after = array('> ', ' <', '> <', ' ', ' ');
// Page top.
$page_top = $vars['page_top'];
$page_top = preg_replace($before, $after, $page_top);
$vars['page_top'] = $page_top;
// Page content.
if (!preg_match('/<pre|<textarea/', $vars['page'])) {
$page = $vars['page'];
$page = preg_replace($before, $after, $page);
$vars['page'] = $page;
}
// Page bottom.
$page_bottom = $vars['page_bottom'];
$page_bottom = preg_replace($before, $after, $page_bottom);
$vars['page_bottom'] = $page_bottom . drupal_get_js('footer');
}
示例15: ringstedtheme_preprocess_html
/**
* Preprocess html.tpl.php
*/
function ringstedtheme_preprocess_html(&$vars)
{
drupal_add_library('system', 'ui.widget');
drupal_add_js(libraries_get_path('swiper') . '/idangerous.swiper.min.js', array('scope' => 'header', 'group' => JS_LIBRARY, 'every_page' => TRUE));
drupal_add_js(libraries_get_path('selectboxit') . '/jquery.selectBoxIt.min.js', array('scope' => 'footer', 'group' => JS_LIBRARY, 'every_page' => TRUE));
// Add resnponsive tables to all pages
drupal_add_js(drupal_get_path('theme', 'ringstedtheme') . '/responsive_tables/responsive-tables.js');
drupal_add_css(drupal_get_path('theme', 'ringstedtheme') . '/responsive_tables/responsive-tables.css');
// drupal_add_css('http://fast.fonts.net/cssapi/424e6723-b2e3-4f68-8517-2854576d35a6.css',
// array('type' => 'external', 'group' => 'CSS_THEME', 'every_page' => TRUE, 'media' => 'projection, screen')
// );
$jwplayer = drupal_get_js('jwplayer');
$vars['jwplayer'] = $jwplayer;
// Color scheme selector
$color_scheme = theme_get_setting('color_scheme');
if ($color_scheme != 'default') {
drupal_add_css(drupal_get_path('theme', 'ringstedtheme') . '/css/color-schemes/' . $color_scheme . '.css', array('group' => CSS_THEME, 'every_page' => TRUE));
}
$vars['classes_array'][] = $color_scheme;
}