context_reaction_addcss.inc in Context Add Assets 7
Same filename and directory in other branches
The Context reaction plugin to add CSS files
Contextually add CSS files to any page on your site.
File
plugins/context_reaction_addcss.incView 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|sass|scss|less';
}
}
Classes
Name | Description |
---|---|
context_reaction_addcss | Expose themes as context reactions. |