compare.php
7 years ago
discount.php
7 years ago
general_settings.php
7 years ago
javascript_settings.php
7 years ago
mail.png
7 years ago
selected_products.php
7 years ago
settings.php
7 years ago
settings_footer.php
7 years ago
settings_head.php
7 years ago
style_settings.php
7 years ago
text_settings.php
7 years ago
settings.php
49 lines
| 1 | <div class="wrap"> |
| 2 | <?php |
| 3 | $dplugin_name = 'WooCommerce Products Compare'; |
| 4 | $dplugin_link = 'http://berocket.com/product/woocommerce-products-compare'; |
| 5 | $dplugin_price = 20; |
| 6 | $dplugin_lic = 7; |
| 7 | $dplugin_desc = ''; |
| 8 | @ include 'settings_head.php'; |
| 9 | @ include 'discount.php'; |
| 10 | ?> |
| 11 | <div class="wrap show_premium"> |
| 12 | <div id="icon-themes" class="icon32"></div> |
| 13 | <h2>Compare Products Settings</h2> |
| 14 | <?php settings_errors(); ?> |
| 15 | |
| 16 | <?php $active_tab = isset( $_GET[ 'tab' ] ) ? @ $_GET[ 'tab' ] : 'general'; ?> |
| 17 | |
| 18 | <h2 class="nav-tab-wrapper"> |
| 19 | <a href="?page=br-compare-products&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General', 'BeRocket_Compare_Products_domain') ?></a> |
| 20 | <a href="?page=br-compare-products&tab=style" class="nav-tab <?php echo $active_tab == 'style' ? 'nav-tab-active' : ''; ?>"><?php _e('Style', 'BeRocket_Compare_Products_domain') ?></a> |
| 21 | <a href="?page=br-compare-products&tab=text" class="nav-tab <?php echo $active_tab == 'text' ? 'nav-tab-active' : ''; ?>"><?php _e('Text', 'BeRocket_Compare_Products_domain') ?></a> |
| 22 | <a href="?page=br-compare-products&tab=javascript" class="nav-tab <?php echo $active_tab == 'javascript' ? 'nav-tab-active' : ''; ?>"><?php _e('JavaScript', 'BeRocket_Compare_Products_domain') ?></a> |
| 23 | </h2> |
| 24 | |
| 25 | <form class="lmp_submit_form" method="post" action="options.php"> |
| 26 | <?php |
| 27 | if( $active_tab == 'general' ) { |
| 28 | settings_fields( 'br_compare_products_general_settings' ); |
| 29 | do_settings_sections( 'br_compare_products_general_settings' ); |
| 30 | } else if( $active_tab == 'style' ) { |
| 31 | settings_fields( 'br_compare_products_style_settings' ); |
| 32 | do_settings_sections( 'br_compare_products_style_settings' ); |
| 33 | } else if( $active_tab == 'text' ) { |
| 34 | settings_fields( 'br_compare_products_text_settings' ); |
| 35 | do_settings_sections( 'br_compare_products_text_settings' ); |
| 36 | } else if( $active_tab == 'javascript' ) { |
| 37 | settings_fields( 'br_compare_products_javascript_settings' ); |
| 38 | do_settings_sections( 'br_compare_products_javascript_settings' ); |
| 39 | } |
| 40 | ?> |
| 41 | <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'BeRocket_Compare_Products_domain') ?>" /> |
| 42 | </form> |
| 43 | </div> |
| 44 | <?php |
| 45 | $feature_list = array(); |
| 46 | @ include 'settings_footer.php'; |
| 47 | ?> |
| 48 | </div> |
| 49 |