2012-04-30 19:50:35 +00:00
|
|
|
<?php
|
2013-02-20 17:14:46 +00:00
|
|
|
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
|
|
|
2012-04-30 19:50:35 +00:00
|
|
|
/**
|
|
|
|
* WooCommerce Integration class
|
2012-08-15 18:15:06 +00:00
|
|
|
*
|
2012-04-30 19:50:35 +00:00
|
|
|
* Extended by individual integrations to offer additional functionality.
|
|
|
|
*
|
2014-08-31 05:49:58 +00:00
|
|
|
* @class WC_Integration
|
|
|
|
* @extends WC_Settings_API
|
|
|
|
* @version 2.0.0
|
|
|
|
* @package WooCommerce/Abstracts
|
|
|
|
* @category Abstract Class
|
|
|
|
* @author WooThemes
|
2012-04-30 19:50:35 +00:00
|
|
|
*/
|
2012-12-31 18:25:09 +00:00
|
|
|
abstract class WC_Integration extends WC_Settings_API {
|
2012-08-15 18:15:06 +00:00
|
|
|
|
2012-04-30 19:50:35 +00:00
|
|
|
/**
|
|
|
|
* Admin Options
|
|
|
|
*
|
|
|
|
* Setup the gateway settings screen.
|
|
|
|
* Override this in your gateway.
|
|
|
|
*/
|
2013-09-26 16:01:29 +00:00
|
|
|
public function admin_options() { ?>
|
2012-08-15 18:15:06 +00:00
|
|
|
|
2012-04-30 19:50:35 +00:00
|
|
|
<h3><?php echo isset( $this->method_title ) ? $this->method_title : __( 'Settings', 'woocommerce' ) ; ?></h3>
|
2012-08-15 18:15:06 +00:00
|
|
|
|
2012-04-30 19:50:35 +00:00
|
|
|
<?php echo isset( $this->method_description ) ? wpautop( $this->method_description ) : ''; ?>
|
2012-08-15 18:15:06 +00:00
|
|
|
|
2012-04-30 19:50:35 +00:00
|
|
|
<table class="form-table">
|
|
|
|
<?php $this->generate_settings_html(); ?>
|
|
|
|
</table>
|
2012-08-15 18:15:06 +00:00
|
|
|
|
2012-04-30 19:50:35 +00:00
|
|
|
<!-- Section -->
|
|
|
|
<div><input type="hidden" name="section" value="<?php echo $this->id; ?>" /></div>
|
2012-08-15 18:15:06 +00:00
|
|
|
|
2012-04-30 19:50:35 +00:00
|
|
|
<?php
|
|
|
|
}
|
2014-08-31 05:49:58 +00:00
|
|
|
}
|