forked from woocommerce/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
911ae3d
commit 62c1d9d
Showing
49 changed files
with
1,353 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* WooCommerce Integration class | ||
* | ||
* Extended by individual integrations to offer additional functionality. | ||
* | ||
* @class WC_Integration | ||
* @package WooCommerce | ||
* @category Integrations | ||
* @author WooThemes | ||
*/ | ||
class WC_Integration extends WC_Settings_API { | ||
|
||
/** | ||
* Admin Options | ||
* | ||
* Setup the gateway settings screen. | ||
* Override this in your gateway. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
function admin_options() { ?> | ||
|
||
<h3><?php echo isset( $this->method_title ) ? $this->method_title : __( 'Settings', 'woocommerce' ) ; ?></h3> | ||
|
||
<?php echo isset( $this->method_description ) ? wpautop( $this->method_description ) : ''; ?> | ||
|
||
<table class="form-table"> | ||
<?php $this->generate_settings_html(); ?> | ||
</table> | ||
|
||
<!-- Section --> | ||
<div><input type="hidden" name="section" value="<?php echo $this->id; ?>" /></div> | ||
|
||
<?php | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* WooCommerce Integrations class | ||
* | ||
* Loads Integrations into WooCommerce. | ||
* | ||
* @class WC_Integrations | ||
* @package WooCommerce | ||
* @category Integrations | ||
* @author WooThemes | ||
*/ | ||
class WC_Integrations { | ||
|
||
var $integrations = array(); | ||
|
||
/** | ||
* init function. | ||
* | ||
* @access public | ||
*/ | ||
function init() { | ||
|
||
do_action('woocommerce_integrations_init'); | ||
|
||
$load_integrations = apply_filters('woocommerce_integrations', array() ); | ||
|
||
// Load integration classes | ||
foreach ( $load_integrations as $integration ) { | ||
|
||
$load_integration = new $integration(); | ||
|
||
$this->integrations[$load_integration->id] = $load_integration; | ||
|
||
} | ||
|
||
} | ||
|
||
function get_integrations() { | ||
return $this->integrations; | ||
} | ||
|
||
} |
Oops, something went wrong.