first commit
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?php defined( 'ABSPATH' ) or exit; ?>
|
||||
|
||||
<div class="mc4wp-admin">
|
||||
<h2><?php echo esc_html__( 'Add more fields', 'mailchimp-for-wp' ); ?></h2>
|
||||
|
||||
<div>
|
||||
|
||||
<p>
|
||||
<?php echo esc_html__( 'To add more fields to your form, you will need to create those fields in Mailchimp first.', 'mailchimp-for-wp' ); ?>
|
||||
</p>
|
||||
|
||||
<p><strong><?php echo esc_html__( "Here's how:", 'mailchimp-for-wp' ); ?></strong></p>
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
<p>
|
||||
<?php echo esc_html__( 'Log in to your Mailchimp account.', 'mailchimp-for-wp' ); ?>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<?php echo esc_html__( 'Add list fields to any of your selected lists.', 'mailchimp-for-wp' ); ?>
|
||||
<?php echo esc_html__( 'Clicking the following links will take you to the right screen.', 'mailchimp-for-wp' ); ?>
|
||||
</p>
|
||||
<ul class="children lists--only-selected">
|
||||
<?php
|
||||
foreach ( $lists as $list ) {
|
||||
?>
|
||||
<li data-list-id="<?php echo $list->id; ?>" style="display: <?php echo in_array( $list->id, $opts['lists'] ) ? '' : 'none'; ?>">
|
||||
<a href="https://admin.mailchimp.com/lists/settings/merge-tags?id=<?php echo $list->web_id; ?>">
|
||||
<span class="screen-reader-text"><?php echo esc_html__( 'Edit list fields for', 'mailchimp-for-wp' ); ?> </span>
|
||||
<?php echo $list->name; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<?php echo esc_html__( 'Click the following button to have Mailchimp for WordPress pick up on your changes.', 'mailchimp-for-wp' ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a class="button button-primary" href="
|
||||
<?php
|
||||
echo esc_attr(
|
||||
add_query_arg(
|
||||
array(
|
||||
'_mc4wp_action' => 'empty_lists_cache',
|
||||
'_wpnonce' => wp_create_nonce( '_mc4wp_action' ),
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
">
|
||||
<?php echo esc_html__( 'Renew Mailchimp lists', 'mailchimp-for-wp' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
defined( 'ABSPATH' ) or exit;
|
||||
|
||||
$tags = mc4wp( 'forms' )->get_tags();
|
||||
?>
|
||||
<h2><?php echo esc_html__( 'Add dynamic form variable', 'mailchimp-for-wp' ); ?></h2>
|
||||
<p>
|
||||
<?php echo sprintf( wp_kses( __( 'The following list of variables can be used to <a href="%s">add some dynamic content to your form or success and error messages</a>.', 'mailchimp-for-wp' ), array( 'a' => array( 'href' => array() ) ) ), 'https://www.mc4wp.com/kb/using-variables-in-your-form-or-messages/' ) . ' ' . __( 'This allows you to personalise your form or response messages.', 'mailchimp-for-wp' ); ?>
|
||||
</p>
|
||||
<table class="widefat striped">
|
||||
<?php
|
||||
foreach ( $tags as $tag => $config ) {
|
||||
$tag = ! empty( $config['example'] ) ? $config['example'] : $tag;
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" class="widefat" value="<?php echo esc_attr( sprintf( '{%s}', $tag ) ); ?>" readonly="readonly" onfocus="this.select();" />
|
||||
<p class="description" style="margin-bottom:0;"><?php echo strip_tags( $config['description'], '<strong><b><em><i><a><code>' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
Reference in New Issue
Block a user