woocommerce/includes/abstracts/abstract-wc-integration.php

43 lines
995 B
PHP
Raw Normal View History

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
}
2013-02-20 17:14:46 +00:00
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
* @extends WC_Settings_API
* @version 2.0.0
* @package WooCommerce/Abstracts
* @category Abstract Class
* @author WooThemes
2012-04-30 19:50:35 +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.
*/
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
}
}