function wii2wx_enqueue_scripts() { // action definition //-- Aspen PLus js lib - requires jQuery... wp_enqueue_script('wii2wxJSLib', wii2wx_plugins_url('/js/wii2wx_jslib', WII2WX_MINIFY . '.js'), array('jquery'), WII2WX_VERSION); // add plugin CSS here, too. wp_register_style('wii2wx-style-sheet', wii2wx_plugins_url('wii2wx_style', WII2WX_MINIFY . '.css'), WII2WX_VERSION, 'all'); wp_enqueue_style('wii2wx-style-sheet'); }
function wii2wx_help_link($ref, $label) { $t_dir = wii2wx_plugins_url('/help/' . $ref, ''); $icon = wii2wx_plugins_url('/help/help.png', ''); $pp_help = '<a href="' . $t_dir . '" target="_blank" title="' . $label . '">' . '<img class="entry-cat-img" src="' . $icon . '" style="position:relative; top:4px; padding-left:4px;" title="Click for help" alt="Click for help" /></a>'; echo $pp_help; }