C:\xampp\htdocs\landing\wp-content\plugins\mailchimp-for-wp\includes\forms\admin-functions.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php

/**
 * Gets the absolute url to edit a form
 *
 * @param int $form_id ID of the form
 * @param string $tab Tab identifier to open
 *
 * @return string
 */
function mc4wp_get_edit_form_url$form_id$tab '' ) {
    
$url admin_urlsprintf'admin.php?page=mailchimp-for-wp-forms&view=edit-form&form_id=%d'$form_id ) );

    if ( ! empty( 
$tab ) ) {
        
$url .= sprintf'&tab=%s'$tab );
    }

    return 
$url;
}

/**
 * Get absolute URL to create a new form
 *
 * @return string
 */
function mc4wp_get_add_form_url() {
    
$url admin_url'admin.php?page=mailchimp-for-wp-forms&view=add-form' );
    return 
$url;
}

/**
 * @param        $key
 * @param        $label
 * @param        $value
 * @param string $help_text
 *
 * @return string
 */
//function mc4wp_form_message_setting_row( $key, $label, $value = '', $help_text = '' ) {
//
//
//    $id = 'mc4wp_form_message_' . $key;
//    echo $name = sprintf( 'mc4wp_form[messages][%s]', $key );
//
//    echo '<tr valign="top">';
//
//    # Label
//    echo '<th scope="row">';
//    echo sprintf( '<label for="%s">%s</label>', $id, $label );
//    echo '</th>';
//
//    # Input
//    echo '<td>';
//    echo sprintf( '<input type="text" class="widefat" id="%s" name="%s" value="%s" />', $id, $name, esc_attr( $value ) );
//
//    # Help text
//    if( ! empty( $help_text ) ) {
//        echo sprintf( '<p class="help">%s</p>', $help_text );
//    }
//
//    echo '</td>';
//    echo '</tr>';
//
//    return '';
//}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586