Ejemplo n.º 1
0
function jigoshop_process_checkout () {
	include_once jigoshop::plugin_path() . '/classes/jigoshop_checkout.class.php';

	jigoshop_checkout::instance()->process_checkout();
	
	die(0);
}
Ejemplo n.º 2
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);
}
Ejemplo n.º 3
0
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;
}
Ejemplo n.º 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__));
 }
Ejemplo n.º 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__))); 
	 }