loader(); } public static function loader() { wp_enqueue_script('cpatify', CAP_URL . '/captify.tiny.js', array('jquery')); $src = CAP_URL . '/captify.css'; if (flie_exist(get_stylesheet_directory() . '/captify.css')) $src = get_stylesheet_directory_uri() . '/captify.css'; wp_enqueue_style('captify', $src); } /** * captify config values * config-array-values * // all of these options are... optional // --- // speed of the mouseover effect speedover: 'fast', // speed of the mouseout effect speedout: 'normal', // how long to delay the hiding of the caption after mouseout (ms) hidedelay: 500, // 'fade', 'slide', 'always-on' animation: 'slide', // text/html to be placed at the beginning of every caption prefix: '', // opacity of the caption on mouse over opacity: '0.7', // the name of the CSS class to apply to the caption box className: 'caption-bottom', // position of the caption (top or bottom) position: 'bottom', // caption span % of the image spanWidth: '100%' * @param array $array */ public static function config($array=array(), $class='captify') { //http://thirdroute.com/projects/captify/ extract($array); ?> have_posts()): while ($query->have_posts()): core_tpl::modules($template, $module, $data); endwhile; endif; // Reset Post Data wp_reset_postdata(); } } endif;