| 1 |
<div class="weforms-settings clearfix" id="weforms-settings"> |
| 2 |
|
| 3 |
<h1><?php _e( 'Settings', 'weforms' ); ?></h1> |
| 4 |
<div id="weforms-settings-tabs-warp" class="<?php echo !function_exists( 'weforms_pro' ) ? 'weforms-pro-deactivate' : ''; ?>"> |
| 5 |
<div id="weforms-settings-tabs"> |
| 6 |
<ul> |
| 7 |
<?php |
| 8 |
$tabs = apply_filters( 'weforms_settings_tabs', [] ); |
| 9 |
|
| 10 |
foreach ( $tabs as $key => $tab ) { |
| 11 |
?> |
| 12 |
<li> |
| 13 |
<a |
| 14 |
href="#" |
| 15 |
:class="['we-settings-nav-tab', isActiveTab( '<?php echo $key; ?>' ) ? 'we-settings-nav-tab-active' : '']" |
| 16 |
v-on:click.prevent="makeActive( '<?php echo $key; ?>' )" |
| 17 |
> |
| 18 |
<?php |
| 19 |
|
| 20 |
if ( !empty( $tab['icon'] ) ) { |
| 21 |
printf( '<img src="%s">', $tab['icon'] ); |
| 22 |
} ?> |
| 23 |
<?php _e( $tab['label'], 'weforms' ); ?> |
| 24 |
</a> |
| 25 |
</li> |
| 26 |
|
| 27 |
<?php |
| 28 |
} |
| 29 |
|
| 30 |
do_action( 'weforms_settings_tabs_area' ); |
| 31 |
?> |
| 32 |
</ul> |
| 33 |
</div> |
| 34 |
|
| 35 |
<div id="weforms-settings-tabs-contents"> |
| 36 |
|
| 37 |
<?php |
| 38 |
foreach ( $tabs as $key => $tab ) { |
| 39 |
?> |
| 40 |
<div id="weforms-settings-<?php echo $key; ?>" class="tab-content" v-show="isActiveTab('<?php echo $key; ?>')"> |
| 41 |
<?php do_action( 'weforms_settings_tab_content_' . $key, $tab ); ?> |
| 42 |
</div> |
| 43 |
<?php |
| 44 |
} |
| 45 |
|
| 46 |
do_action( 'weforms_settings_tabs_contents' ); |
| 47 |
?> |
| 48 |
|
| 49 |
</div> |
| 50 |
</div> |
| 51 |
|
| 52 |
<?php if ( !function_exists( 'weforms_pro' ) ) { ?> |
| 53 |
|
| 54 |
<div id="weforms-settings-page-sidebar" class="weforms-settings-page-sidebar"> |
| 55 |
<div class="weforms-settings-page-sidebar-content"> |
| 56 |
<h2>Upgrade to <br><strong style="color:#57AB64">weForms Pro</strong></h2> |
| 57 |
|
| 58 |
<ul class="weforms-pro-features"> |
| 59 |
<li><span class="dashicons dashicons-yes"></span> Integration with email marketing solutions such as Aweber, GetResponse, ConvertKit etc.</li> |
| 60 |
<li><span class="dashicons dashicons-yes"></span> Connect with productivity tools such as Google Analytics, Zapier, Trello, Google Sheets.</li> |
| 61 |
<li><span class="dashicons dashicons-yes"></span> Manage payments directly from your forms with PayPal & Stripe.</li> |
| 62 |
<li><span class="dashicons dashicons-yes"></span> Integrate with popular CRM tools such as Zoho, Salesforce, HubSpot and better manage your relationship with your customers.</li> |
| 63 |
<li><span class="dashicons dashicons-yes"></span> Create quiz forms, calculate numbers directly in your form, set geolocation and more in weForms Pro.</li> |
| 64 |
</ul> |
| 65 |
|
| 66 |
<a href="https://weformspro.com/pricing" target="_blank" class="button button-primary">Get weForms Pro</a> |
| 67 |
</div> |
| 68 |
</div> |
| 69 |
|
| 70 |
<?php } ?> |
| 71 |
</div> |
| 72 |
|