You are here

context_reaction_addcss.inc in Context Add Assets 6

Same filename and directory in other branches
  1. 7 plugins/context_reaction_addcss.inc

The Context reaction plugin to add CSS files

Contextually add CSS files to any page on your site.

File

plugins/context_reaction_addcss.inc
View source
<?php

/**
 * @file
 * The Context reaction plugin to add CSS files
 *
 * Contextually add CSS files to any page on your site.
 */

// Load the base Add Assets Reaction class
if (!class_exists('context_reaction_addassets_base')) {
  module_load_include('inc', 'context_addassets', 'plugins/context_reaction_addassets_base');
}

/**
 * Expose themes as context reactions.
 */
class context_reaction_addcss extends context_reaction_addassets_base {
  var $search_scope;
  function __construct($plugin, $info) {
    parent::__construct($plugin, $info);
    $this->title = t('CSS from Themes');
    $this->search_type = 'css';
  }

}

Classes

Namesort descending Description
context_reaction_addcss Expose themes as context reactions.