Cosmic Hellcats fame. Requires comic-easel by Philip M. Hofer (Frumph)
Version: 1.2
Author: Christoper Maverick
Author URI: http://chrismaverick.com
License: GPL2
Copyright 2012 Christopher Maverick (email : mav@cosmichellcats.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if (!defined('ABSPATH')) exit;
// Only enqueue if the widget is active
if (is_active_widget(false, false, 'ceo_casthover_reference_widget', true)) {
add_filter('ceo_display_comic_characters', 'ceo_add_characters_hovercards');
add_action('wp_enqueue_scripts', 'ceo_casthover_res_init_scripts');
add_action('wp_print_styles', 'ceo_casthover_res_init_styles');
}
function ceo_casthover_res_init_styles() {
wp_register_style('casthover-css', ceo_pluginfo('plugin_url').'css/casthover.css', array(), '1.2');
wp_enqueue_style('casthover-css');
}
function ceo_casthover_res_init_scripts() {
wp_enqueue_script('casthover-js', ceo_pluginfo('plugin_url').'js/casthoverfunc.js', array('jquery'), '1.2', true);
}
function ceo_insert_character_hovercard($character) {
$ccard = '';
if ($character) {
$ccard .= '