| 1 |
<?php |
| 2 |
/** |
| 3 |
* General Setting Form |
| 4 |
* |
| 5 |
* @package CARTFLOWS |
| 6 |
*/ |
| 7 |
|
| 8 |
$extensions = array( |
| 9 |
'common' => array( |
| 10 |
'title' => __( 'Selec', 'cartflows' ), |
| 11 |
'setting_url' => admin_url( 'admin.php?page=' . CARTFLOWS_SETTINGS . '&action=common-settings' ), |
| 12 |
), |
| 13 |
); |
| 14 |
|
| 15 |
?> |
| 16 |
|
| 17 |
<div class="wcf-container wcf-<?php echo $action; ?>"> |
| 18 |
<div id="poststuff"> |
| 19 |
<div id="post-body" class="columns-2"> |
| 20 |
<div id="post-body-content"> |
| 21 |
<!-- All WordPress Notices below header --> |
| 22 |
<h1 class="screen-reader-text"> <?php _e( 'General', 'cartflows' ); ?> </h1> |
| 23 |
<div class="widgets postbox"> |
| 24 |
<h2 class="hndle wcf-flex wcf-widgets-heading"><span><?php esc_html_e( 'Welcome', 'cartflows' ); ?></span> |
| 25 |
</h2> |
| 26 |
<div class="inside"> |
| 27 |
<ul class="wcf-setting-tab-wrapper" > |
| 28 |
<?php |
| 29 |
|
| 30 |
foreach ( $extensions as $key => $data ) { |
| 31 |
echo '<li id="' . esc_attr( $key ) . '" class="wcf-setting-tab ' . esc_attr( $key ) . '">'; |
| 32 |
echo '<a class="wcf-tab-title" href="#" target="_blank" rel="noopener">' . esc_attr( $data['title'] ) . '</a>'; |
| 33 |
echo '<div class="wcf-tab-link-wrapper">'; |
| 34 |
echo '<a class="wcf-tab-link" href="' . esc_url( $data['setting_url'] ) . '">' . __( 'Settings', 'cartflows' ) . '</a>'; |
| 35 |
echo '</div>'; |
| 36 |
echo '</li>'; |
| 37 |
} |
| 38 |
?> |
| 39 |
</ul> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
<!-- /post-body --> |
| 45 |
<br class="clear"> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
|