trailingslashit( plugin_dir_url( __FILE__ ) ) )); wp_print_scripts($handle); } } public function registerStylefront($handle, $path) { $currStyleFile = plugin_dir_path( __FILE__ )."/../".$path; $currStyleUrl = plugins_url("/../".$path, __FILE__); if ( file_exists($currStyleFile) ) { wp_register_style($handle, $currStyleUrl); } } public function registerScryptfront($handle, $path) { $currScryptFile = plugin_dir_path( __FILE__ )."/../".$path; $currScryptUrl = plugins_url("/../".$path, __FILE__); if ( file_exists($currScryptFile) ) { wp_register_script($handle, $currScryptUrl, array('jquery'), '1.0', true); } } public function printStylefront($handle, $path) { $currStyleFile = plugin_dir_path( __FILE__ )."/../".$path; $currStyleUrl = plugins_url("/../".$path, __FILE__); if ( file_exists($currStyleFile) ) { wp_enqueue_style($handle); } } public function printScryptfront($handle, $path) { $currScryptFile = plugin_dir_path( __FILE__ )."/../".$path; $currScryptUrl = plugins_url("/../".$path, __FILE__); if ( file_exists($currScryptFile) ) { wp_localize_script($handle, 'animated_al_WPURLS', array( 'pluginurl' => trailingslashit( plugin_dir_url( __FILE__ ) ) )); wp_print_scripts($handle); } } } ?>