43 lines
946 B
PHP
43 lines
946 B
PHP
<?php
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Abstract Integration Class
|
|
*
|
|
* Extended by individual integrations to offer additional functionality.
|
|
*
|
|
* @class WC_Integration
|
|
* @extends WC_Settings_API
|
|
* @version 2.0.0
|
|
* @package WooCommerce/Abstracts
|
|
* @category Abstract Class
|
|
* @author WooThemes
|
|
*/
|
|
abstract class WC_Integration extends WC_Settings_API {
|
|
|
|
/**
|
|
* Admin Options.
|
|
*
|
|
* Setup the gateway settings screen.
|
|
* Override this in your gateway.
|
|
*/
|
|
public 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
|
|
}
|
|
}
|