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.
|
|
|
|
*
|
|
|
|
* @class WC_Integration
|
2012-08-15 18:15:06 +00:00
|
|
|
* @extends WC_Settings_API
|
2012-12-31 18:25:09 +00:00
|
|
|
* @version 2.0.0
|
2013-02-20 17:14:46 +00:00
|
|
|
* @package WooCommerce/Abstracts
|
|
|
|
* @category Abstract Class
|
2012-08-15 18:15:06 +00:00
|
|
|
* @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.
|
|
|
|
*
|
2012-08-15 18:15:06 +00:00
|
|
|
* @access public
|
|
|
|
* @return void
|
2012-04-30 19:50:35 +00:00
|
|
|
*/
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|