function jigoshop_process_checkout () {
	include_once jigoshop::plugin_path() . '/classes/jigoshop_checkout.class.php';

	jigoshop_checkout::instance()->process_checkout();
	
	die(0);
}
function jigoshop_get_template($template_name, $require_once = true) {
	if (file_exists( STYLESHEETPATH . '/' . JIGOSHOP_TEMPLATE_URL . $template_name )) load_template( STYLESHEETPATH . '/' . JIGOSHOP_TEMPLATE_URL . $template_name, $require_once ); 
	elseif (file_exists( STYLESHEETPATH . '/' . $template_name )) load_template( STYLESHEETPATH . '/' . $template_name , $require_once); 
	else load_template( jigoshop::plugin_path() . '/templates/' . $template_name , $require_once);
}
function jigoshop_return_template( $template_name ) {
	$template = locate_template( array( $template_name, JIGOSHOP_TEMPLATE_URL . $template_name ), false );
	if ( !$template)
		$template = jigoshop::plugin_path() . '/templates/' . $template_name ;
	return $template;
}
Beispiel #4
0
 /**
  * Get the plugin path
  *
  * @note plugin_dir_path() does this
  * @deprecated Use JIGOSHOP_DIR constant instead.
  * @return  string  url
  */
 public static function plugin_path()
 {
     if (!empty(self::$plugin_path)) {
         return self::$plugin_path;
     }
     return self::$plugin_path = dirname(dirname(__FILE__));
 }
Beispiel #5
0
	/**
	 * Get the plugin path
	 *
	 * @return  string	url
	 */
	public static function plugin_path() { 	
		if(self::$plugin_path) return self::$plugin_path;
		return self::$plugin_path = WP_PLUGIN_DIR . "/" . plugin_basename( dirname(dirname(__FILE__))); 
	 }