all-in-one-event-calendar/lib/script/helper.php

37 lines
793 B
PHP
Raw Permalink Normal View History

2017-03-16 16:59:53 +01:00
<?php
/**
* Helper for scripts.
*
* @author Time.ly Network Inc.
* @since 2.0
*
* @package AI1EC
* @subpackage AI1EC.Script
*/
class Ai1ec_Script_Helper {
2017-11-09 17:36:04 +01:00
/**
*
* @param $name string
* Unique identifer for the script
*
* @param $file string
* Filename of the script
*
* @param $deps array
* Dependencies of the script
*
* @param $in_footer bool
* Whether to add the script to the footer of the page
*
*
* @return void
*
* @see Ai1ec_Scripts::enqueue_admin_script()
*
*/
public function enqueue_script( $name, $file, $deps = array(), $in_footer = false ) {
wp_enqueue_script( $name, $file, $deps, AI1EC_VERSION, $in_footer );
}
2017-03-16 16:59:53 +01:00
}