Пример #1
0
/**
 * Builds the settings panel.
 *
 * @since 2.2.2
 */
function wpmem_a_build_options()
{
    global $wpmem;
    $admin_email = apply_filters('wpmem_notify_addr', get_option('admin_email'));
    $chg_email = __(sprintf('%sChange%s or %sFilter%s this address', '<a href="' . site_url('wp-admin/options-general.php', 'admin') . '">', '</a>', '<a href="http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_notify_addr/">', '</a>'), 'wp-members');
    $help_link = __(sprintf('See the %sUsers Guide on plugin options%s.', '<a href="http://rocketgeek.com/plugins/wp-members/users-guide/plugin-settings/options/" target="_blank">', '</a>'), 'wp-members');
    // Build an array of post types
    $post_types = get_post_types(array('public' => true, '_builtin' => false), 'names', 'and');
    $post_arr = array('post' => 'Posts', 'page' => 'Pages');
    if ($post_types) {
        foreach ($post_types as $post_type) {
            $cpt_obj = get_post_type_object($post_type);
            $post_arr[$cpt_obj->name] = $cpt_obj->labels->name;
        }
    }
    ?>
	
	<div class="metabox-holder has-right-sidebar">

		<div class="inner-sidebar">
			<?php 
    wpmem_a_meta_box();
    ?>
			<div class="postbox">
				<h3><span><?php 
    _e('Need help?', 'wp-members');
    ?>
</span></h3>
				<div class="inside">
					<strong><i><?php 
    echo $help_link;
    ?>
</i></strong>
				</div>
			</div>
			<?php 
    wpmem_a_rss_box();
    ?>
		</div> <!-- .inner-sidebar -->

		<div id="post-body">
			<div id="post-body-content">
				<div class="postbox">
					<h3><span><?php 
    _e('Manage Options', 'wp-members');
    ?>
</span></h3>
					<div class="inside">
						<form name="updatesettings" id="updatesettings" method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
						<?php 
    wp_nonce_field('wpmem-update-settings');
    ?>
							<h3>Content</h3>
							<ul>
							<?php 
    // Content Blocking option group.
    $i = 0;
    $len = count($post_arr);
    foreach ($post_arr as $key => $val) {
        if ($key == 'post' || $key == 'page') {
            // @todo - holding off on CPT support.
            ?>
								<li<?php 
            echo $i == $len - 1 ? ' style="border-bottom:1px solid #eee;"' : '';
            ?>
>
									<label><?php 
            echo $i == 0 ? 'Content Blocking' : '&nbsp;';
            ?>
</label>
									<select name="wpmem_block_<?php 
            echo $key;
            ?>
">
										<option value="0"<?php 
            echo isset($wpmem->block[$key]) && $wpmem->block[$key] == 0 ? ' selected' : '';
            ?>
><?php 
            _e('Do not block', 'wp-members');
            ?>
</option>
										<option value="1"<?php 
            echo isset($wpmem->block[$key]) && $wpmem->block[$key] == 1 ? ' selected' : '';
            ?>
><?php 
            _e('Block', 'wp-members');
            ?>
</option>
										<!--<option value="2"<?php 
            echo isset($wpmem->block[$key]) && $wpmem->block[$key] == 2 ? ' selected' : '';
            ?>
><?php 
            _e('Hide', 'wp-members');
            ?>
</option>-->
									</select>
									<span><?php 
            echo $val;
            ?>
</span>
								</li>
								<?php 
            $i++;
        }
    }
    // Show Excerpts, Login Form, and Registration Form option groups.
    $option_group_array = array('show_excerpt' => __('Show Excerpts', 'wp-members'), 'show_login' => __('Show Login Form', 'wp-members'), 'show_reg' => __('Show Registration Form', 'wp-members'));
    foreach ($option_group_array as $item_key => $item_val) {
        $i = 0;
        $len = count($post_arr);
        foreach ($post_arr as $key => $val) {
            if ($key == 'post' || $key == 'page') {
                // @todo - holding off on CPT support.
                $setting = isset($wpmem->{$item_key}[$key]) ? $wpmem->{$item_key}[$key] : 0;
                ?>
									<li<?php 
                echo $i == $len - 1 ? ' style="border-bottom:1px solid #eee;"' : '';
                ?>
>
										<label><?php 
                echo $i == 0 ? $item_val : '&nbsp;';
                ?>
</label>
										<input name="wpmem_<?php 
                echo $item_key;
                ?>
_<?php 
                echo $key;
                ?>
" type="checkbox" id="" value="1"<?php 
                echo wpmem_selected(1, $setting);
                ?>
 /> <span><?php 
                echo $val;
                ?>
</span>
									</li>
									<?php 
                $i++;
            }
        }
    }
    ?>
							</ul>
							<?php 
    if (WPMEM_EXP_MODULE == true) {
        $arr = array(array(__('Time-based expiration', 'wp-members'), 'wpmem_settings_time_exp', __('Allows for access to expire', 'wp-members'), 'use_exp'), array(__('Trial period', 'wp-members'), 'wpmem_settings_trial', __('Allows for a trial period', 'wp-members'), 'use_trial'));
        ?>
							<h3>Subscription Settings</h3>	
							<ul><?php 
        for ($row = 0; $row < count($arr); $row++) {
            ?>
							  <li>
								<label><?php 
            echo $arr[$row][0];
            ?>
</label>
								<?php 
            if (WPMEM_DEBUG == true) {
                echo $wpmem->{$arr}[$row][3];
            }
            ?>
								<input name="<?php 
            echo $arr[$row][1];
            ?>
" type="checkbox" id="<?php 
            echo $arr[$row][1];
            ?>
" value="1" <?php 
            if ($wpmem->{$arr}[$row][3] == 1) {
                echo "checked";
            }
            ?>
 />&nbsp;&nbsp;
								<?php 
            if ($arr[$row][2]) {
                ?>
<span class="description"><?php 
                echo $arr[$row][2];
                ?>
</span><?php 
            }
            ?>
							  </li>
							<?php 
        }
    }
    ?>
</ul>
							<h3>Other Settings</h3>
							<ul>
							<?php 
    $arr = array(array(__('Notify admin', 'wp-members'), 'wpmem_settings_notify', sprintf(__('Notify %s for each new registration? %s', 'wp-members'), $admin_email, $chg_email), 'notify'), array(__('Moderate registration', 'wp-members'), 'wpmem_settings_moderate', __('Holds new registrations for admin approval', 'wp-members'), 'mod_reg'), array(__('Ignore warning messages', 'wp-members'), 'wpmem_settings_ignore_warnings', __('Ignores WP-Members warning messages in the admin panel', 'wp-members'), 'warnings'));
    for ($row = 0; $row < count($arr); $row++) {
        ?>
							  <li>
								<label><?php 
        echo $arr[$row][0];
        ?>
</label>
								<?php 
        if (WPMEM_DEBUG == true) {
            echo $wpmem->{$arr}[$row][3];
        }
        ?>
								<input name="<?php 
        echo $arr[$row][1];
        ?>
" type="checkbox" id="<?php 
        echo $arr[$row][1];
        ?>
" value="1" <?php 
        if ($wpmem->{$arr}[$row][3] == 1) {
            echo "checked";
        }
        ?>
 />&nbsp;&nbsp;
								<?php 
        if ($arr[$row][2]) {
            ?>
<span class="description"><?php 
            echo $arr[$row][2];
            ?>
</span><?php 
        }
        ?>
							  </li>
							<?php 
    }
    ?>
							<?php 
    $attribution = $wpmem->attrib;
    ?>
							  <li>
								<label><?php 
    _e('Attribution', 'wp-members');
    ?>
</label>
								<input name="attribution" type="checkbox" id="attribution" value="1" <?php 
    if ($attribution == 1) {
        echo "checked";
    }
    ?>
 />&nbsp;&nbsp;
								<span class="description"><?php 
    _e('Attribution is appreciated!  Display "powered by" link on register form?', 'wp-members');
    ?>
</span>
							  </li>
							<?php 
    $auto_ex = $wpmem->autoex;
    ?>
							  <li>
								<label><?php 
    _e('Auto Excerpt:', 'wp-members');
    ?>
</label>
								<input type="checkbox" name="wpmem_autoex" value="1" <?php 
    if ($auto_ex['auto_ex'] == 1) {
        echo "checked";
    }
    ?>
 />&nbsp;&nbsp;&nbsp;&nbsp;<?php 
    _e('Number of words in excerpt:', 'wp-members');
    ?>
 <input name="wpmem_autoex_len" type="text" size="5" value="<?php 
    if ($auto_ex['auto_ex_len']) {
        echo $auto_ex['auto_ex_len'];
    }
    ?>
" />&nbsp;<span class="description"><?php 
    _e('Optional', 'wp-members');
    ?>
. <?php 
    _e('Automatically creates an excerpt', 'wp-members');
    ?>
</span>
							  </li>
							  <li>
								<label><?php 
    _e('Enable CAPTCHA', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_captcha">
									<option value="0"<?php 
    echo $wpmem->captcha == 0 ? ' selected ' : '';
    ?>
><?php 
    _e('None', 'wp-members');
    ?>
</option>
									<option value="1"<?php 
    echo $wpmem->captcha == 1 ? ' selected ' : '';
    ?>
>reCAPTCHA</option>
									<option value="2"<?php 
    echo $wpmem->captcha == 2 ? ' selected ' : '';
    ?>
>Really Simple CAPTCHA</option>
								</select>
							  </li>
							<h3><?php 
    _e('Pages');
    ?>
</h3>
							  <?php 
    $wpmem_logurl = $wpmem->user_pages['login'];
    if (!$wpmem_logurl) {
        $wpmem_logurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('Login Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_logpage" id="wpmem_logpage_select">
								<?php 
    wpmem_admin_page_list($wpmem_logurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('Specify a login page (optional)', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_logpage_custom">
									<label>&nbsp;</label>
									<input class="regular-text code" type="text" name="wpmem_settings_logurl" value="<?php 
    echo $wpmem_logurl;
    ?>
" size="50" />
								</div>
							  </li>
							  <?php 
    $wpmem_regurl = $wpmem->user_pages['register'];
    if (!$wpmem_regurl) {
        $wpmem_regurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('Register Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_regpage" id="wpmem_regpage_select">
									<?php 
    wpmem_admin_page_list($wpmem_regurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('For creating a register link in the login form', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_regpage_custom">
									<label>&nbsp;</label>
									<input class="regular-text code" type="text" name="wpmem_settings_regurl" value="<?php 
    echo $wpmem_regurl;
    ?>
" size="50" />
								</div>
							  </li>
							  <?php 
    $wpmem_msurl = $wpmem->user_pages['profile'];
    if (!$wpmem_msurl) {
        $wpmem_msurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('User Profile Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_mspage" id="wpmem_mspage_select">
								<?php 
    wpmem_admin_page_list($wpmem_msurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('For creating a forgot password link in the login form', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_mspage_custom">
									<label>&nbsp;</label>
									<input class="regular-text code" type="text" name="wpmem_settings_msurl" value="<?php 
    echo $wpmem_msurl;
    ?>
" size="50" />
								</div>
							  </li>
							<h3><?php 
    _e('Stylesheet');
    ?>
</h3>
							  <li>
								<label><?php 
    _e('Stylesheet');
    ?>
:</label>
								<select name="wpmem_settings_style" id="wpmem_stylesheet_select">
								<?php 
    wpmem_admin_style_list($wpmem->style);
    ?>
								</select>
							  </li>
							  <?php 
    $wpmem_cssurl = $wpmem->cssurl;
    if (!$wpmem_cssurl) {
        $wpmem_cssurl = wpmem_use_ssl();
    }
    ?>
							  <div id="wpmem_stylesheet_custom">
								  <li>
									<label><?php 
    _e('Custom Stylesheet:', 'wp-members');
    ?>
</label>
									<input class="regular-text code" type="text" name="wpmem_settings_cssurl" value="<?php 
    echo $wpmem_cssurl;
    ?>
" size="50" />
								  </li>
							  </div>
								<br /></br />
								<input type="hidden" name="wpmem_admin_a" value="update_settings">
								<input type="submit" name="UpdateSettings"  class="button-primary" value="<?php 
    _e('Update Settings', 'wp-members');
    ?>
 &raquo;" /> 
							</ul>
						</form>
					</div><!-- .inside -->
				</div>
			</div><!-- #post-body-content -->
		</div><!-- #post-body -->
	</div><!-- .metabox-holder -->
	<?php 
}
Пример #2
0
/**
 * Builds the settings panel.
 *
 * @since 2.2.2
 */
function wpmem_a_build_options()
{
    global $wpmem;
    /** This filter is documented in wp-members/inc/email.php */
    $admin_email = apply_filters('wpmem_notify_addr', get_option('admin_email'));
    $chg_email = __(sprintf('%sChange%s or %sFilter%s this address', '<a href="' . site_url('wp-admin/options-general.php', 'admin') . '">', '</a>', '<a href="http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_notify_addr/">', '</a>'), 'wp-members');
    $help_link = __(sprintf('See the %sUsers Guide on plugin options%s.', '<a href="http://rocketgeek.com/plugins/wp-members/users-guide/plugin-settings/options/" target="_blank">', '</a>'), 'wp-members');
    // Build an array of post types
    $post_types = get_post_types(array('public' => true, '_builtin' => false), 'names', 'and');
    $post_arr = array('post' => 'Posts', 'page' => 'Pages');
    if ($post_types) {
        foreach ($post_types as $post_type) {
            $cpt_obj = get_post_type_object($post_type);
            $post_arr[$cpt_obj->name] = $cpt_obj->labels->name;
        }
    }
    ?>
	
	<div class="metabox-holder has-right-sidebar">

		<div class="inner-sidebar">
			<?php 
    wpmem_a_meta_box();
    ?>
			<div class="postbox">
				<h3><span><?php 
    _e('Need help?', 'wp-members');
    ?>
</span></h3>
				<div class="inside">
					<strong><i><?php 
    echo $help_link;
    ?>
</i></strong>
				</div>
			</div>
			<?php 
    wpmem_a_rss_box();
    ?>
		</div> <!-- .inner-sidebar -->

		<div id="post-body">
			<div id="post-body-content">
				<div class="postbox">
					<h3><span><?php 
    _e('Manage Options', 'wp-members');
    ?>
</span></h3>
					<div class="inside">
						<form name="updatesettings" id="updatesettings" method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
						<?php 
    wp_nonce_field('wpmem-update-settings');
    ?>
							<h3><?php 
    _e('Content', 'wp-members');
    ?>
</h3>
							<ul>
							<?php 
    // Content Blocking option group.
    $i = 0;
    $len = count($post_arr);
    foreach ($post_arr as $key => $val) {
        if ($key == 'post' || $key == 'page' || isset($wpmem->post_types) && array_key_exists($key, $wpmem->post_types)) {
            ?>
								<li<?php 
            echo $i == $len - 1 ? ' style="border-bottom:1px solid #eee;"' : '';
            ?>
>
									<label><?php 
            echo $i == 0 ? 'Content Blocking' : '&nbsp;';
            ?>
</label>
                                    <?php 
            $block = isset($wpmem->block[$key]) ? $wpmem->block[$key] : '';
            $values = array(__('Do not block', 'wp-members') . '|0', __('Block', 'wp-members') . '|1');
            echo wpmem_create_formfield('wpmem_block_' . $key, 'select', $values, $block);
            ?>
									<span><?php 
            echo $val;
            ?>
</span>
								</li>
								<?php 
            $i++;
        }
    }
    // Show Excerpts, Login Form, and Registration Form option groups.
    $option_group_array = array('show_excerpt' => __('Show Excerpts', 'wp-members'), 'show_login' => __('Show Login Form', 'wp-members'), 'show_reg' => __('Show Registration Form', 'wp-members'), 'autoex' => __('Auto Excerpt:', 'wp-members'));
    foreach ($option_group_array as $item_key => $item_val) {
        $i = 0;
        $len = count($post_arr);
        foreach ($post_arr as $key => $val) {
            if ($key == 'post' || $key == 'page' || isset($wpmem->post_types) && array_key_exists($key, $wpmem->post_types)) {
                ?>
									<li<?php 
                echo $i == $len - 1 ? ' style="border-bottom:1px solid #eee;"' : '';
                ?>
>
										<label><?php 
                echo $i == 0 ? $item_val : '&nbsp;';
                ?>
</label>
									<?php 
                if ('autoex' == $item_key) {
                    if (isset($wpmem->{$item_key}[$key]) && $wpmem->{$item_key}[$key]['enabled'] == 1) {
                        $setting = 1;
                        $ex_len = $wpmem->{$item_key}[$key]['length'];
                    } else {
                        $setting = 0;
                        $ex_len = '';
                    }
                    echo wpmem_create_formfield('wpmem_' . $item_key . '_' . $key, 'checkbox', '1', $setting);
                    ?>
 <span><?php 
                    echo $val;
                    ?>
</span>&nbsp;&nbsp;&nbsp;&nbsp;
										<span><?php 
                    _e('Number of words in excerpt:', 'wp-members');
                    ?>
 </span><input name="wpmem_autoex_<?php 
                    echo $key;
                    ?>
_len" type="text" size="5" value="<?php 
                    echo $ex_len;
                    ?>
" />
									<?php 
                } else {
                    $setting = isset($wpmem->{$item_key}[$key]) ? $wpmem->{$item_key}[$key] : 0;
                    echo wpmem_create_formfield('wpmem_' . $item_key . '_' . $key, 'checkbox', '1', $setting);
                    ?>
 <span><?php 
                    echo $val;
                    ?>
</span>
									<?php 
                }
                ?>
                                    </li>
									<?php 
                $i++;
            }
        }
    }
    ?>
							</ul>
							<?php 
    if (WPMEM_EXP_MODULE == true) {
        $arr = array(array(__('Time-based expiration', 'wp-members'), 'wpmem_settings_time_exp', __('Allows for access to expire', 'wp-members'), 'use_exp'), array(__('Trial period', 'wp-members'), 'wpmem_settings_trial', __('Allows for a trial period', 'wp-members'), 'use_trial'));
        ?>
							<h3><?php 
        _e('Subscription Settings', 'wp-members');
        ?>
</h3>	
							<ul><?php 
        for ($row = 0; $row < count($arr); $row++) {
            ?>
							  <li>
								<label><?php 
            echo $arr[$row][0];
            ?>
</label>
								<?php 
            echo wpmem_create_formfield($arr[$row][1], 'checkbox', '1', $wpmem->{$arr[$row][3]});
            ?>
&nbsp;&nbsp;
								<?php 
            if ($arr[$row][2]) {
                ?>
<span class="description"><?php 
                echo $arr[$row][2];
                ?>
</span><?php 
            }
            ?>
							  </li>
							<?php 
        }
    }
    ?>
</ul>
							<h3><?php 
    _e('Other Settings', 'wp-members');
    ?>
</h3>
							<ul>
							<?php 
    $arr = array(array(__('Notify admin', 'wp-members'), 'wpmem_settings_notify', sprintf(__('Notify %s for each new registration? %s', 'wp-members'), $admin_email, $chg_email), 'notify'), array(__('Moderate registration', 'wp-members'), 'wpmem_settings_moderate', __('Holds new registrations for admin approval', 'wp-members'), 'mod_reg'), array(__('Ignore warning messages', 'wp-members'), 'wpmem_settings_ignore_warnings', __('Ignores WP-Members warning messages in the admin panel', 'wp-members'), 'warnings'));
    for ($row = 0; $row < count($arr); $row++) {
        ?>
							  <li>
								<label><?php 
        echo $arr[$row][0];
        ?>
</label>
                                <?php 
        echo wpmem_create_formfield($arr[$row][1], 'checkbox', '1', $wpmem->{$arr[$row][3]});
        ?>
&nbsp;&nbsp;
								<?php 
        if ($arr[$row][2]) {
            ?>
<span class="description"><?php 
            echo $arr[$row][2];
            ?>
</span><?php 
        }
        ?>
							  </li>
							<?php 
    }
    ?>
							  <li>
								<label><?php 
    _e('Attribution', 'wp-members');
    ?>
</label>
                                <?php 
    echo wpmem_create_formfield('attribution', 'checkbox', '1', $wpmem->attrib);
    ?>
&nbsp;&nbsp;
								<span class="description"><?php 
    _e('Attribution is appreciated!  Display "powered by" link on register form?', 'wp-members');
    ?>
</span>
							  </li>
							  <li>
								<label><?php 
    _e('Enable CAPTCHA', 'wp-members');
    ?>
</label>
                                <?php 
    $captcha = array(__('None', 'wp-members') . '|0', 'reCAPTCHA|1', 'reCAPTCHA v2|3', 'Really Simple CAPTCHA|2');
    echo wpmem_create_formfield('wpmem_settings_captcha', 'select', $captcha, $wpmem->captcha);
    ?>
							  </li>
							<h3><?php 
    _e('Pages');
    ?>
</h3>
							  <?php 
    $wpmem_logurl = $wpmem->user_pages['login'];
    if (!$wpmem_logurl) {
        $wpmem_logurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('Login Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_logpage" id="wpmem_logpage_select">
								<?php 
    wpmem_admin_page_list($wpmem_logurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('Specify a login page (optional)', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_logpage_custom">
									<label>&nbsp;</label>
									<input class="regular-text code" type="text" name="wpmem_settings_logurl" value="<?php 
    echo $wpmem_logurl;
    ?>
" size="50" />
								</div>
							  </li>
							  <?php 
    $wpmem_regurl = $wpmem->user_pages['register'];
    if (!$wpmem_regurl) {
        $wpmem_regurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('Register Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_regpage" id="wpmem_regpage_select">
									<?php 
    wpmem_admin_page_list($wpmem_regurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('For creating a register link in the login form', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_regpage_custom">
									<label>&nbsp;</label>
									<input class="regular-text code" type="text" name="wpmem_settings_regurl" value="<?php 
    echo $wpmem_regurl;
    ?>
" size="50" />
								</div>
							  </li>
							  <?php 
    $wpmem_msurl = $wpmem->user_pages['profile'];
    if (!$wpmem_msurl) {
        $wpmem_msurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('User Profile Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_mspage" id="wpmem_mspage_select">
								<?php 
    wpmem_admin_page_list($wpmem_msurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('For creating a forgot password link in the login form', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_mspage_custom">
									<label>&nbsp;</label>
									<input class="regular-text code" type="text" name="wpmem_settings_msurl" value="<?php 
    echo $wpmem_msurl;
    ?>
" size="50" />
								</div>
							  </li>
							<h3><?php 
    _e('Stylesheet');
    ?>
</h3>
							  <li>
								<label><?php 
    _e('Stylesheet');
    ?>
:</label>
								<select name="wpmem_settings_style" id="wpmem_stylesheet_select">
								<?php 
    wpmem_admin_style_list($wpmem->style);
    ?>
								</select>
							  </li>
							  <?php 
    $wpmem_cssurl = $wpmem->cssurl;
    if (!$wpmem_cssurl) {
        $wpmem_cssurl = wpmem_use_ssl();
    }
    ?>
							  <div id="wpmem_stylesheet_custom">
								  <li>
									<label><?php 
    _e('Custom Stylesheet:', 'wp-members');
    ?>
</label>
									<input class="regular-text code" type="text" name="wpmem_settings_cssurl" value="<?php 
    echo $wpmem_cssurl;
    ?>
" size="50" />
								  </li>
							  </div>
								<br /></br />
								<input type="hidden" name="wpmem_admin_a" value="update_settings">
								<?php 
    submit_button(__('Update Settings', 'wp-members'));
    ?>
							</ul>
						</form>
					</div><!-- .inside -->
				</div>
                <?php 
    if ($post_types) {
        ?>
                <div class="postbox">
                    <h3><span><?php 
        _e('Custom Post Types', 'wp-members');
        ?>
</span></h3>
                    <div class="inside">
                    	<form name="updatecpts" id="updatecpts" method="post" action="<?php 
        echo $_SERVER['REQUEST_URI'];
        ?>
">
						<?php 
        wp_nonce_field('wpmem-update-cpts');
        ?>
                    		<table class="form-table">
                                <tr>
                                    <th scope="row"><?php 
        _e('Add to WP-Members Settings', 'wp-members');
        ?>
</th>
                                    <td><fieldset><?php 
        foreach ($post_arr as $key => $val) {
            if ('post' != $key && 'page' != $key) {
                $checked = isset($wpmem->post_types) && array_key_exists($key, $wpmem->post_types) ? ' checked' : '';
                echo '<label for="' . $key . '"><input type="checkbox" name="wpmembers_handle_cpts[]" value="' . $key . '"' . $checked . ' />' . $val . '</label><br />';
            }
        }
        ?>
</fieldset>
                                    </td>
                                </tr>
                                <tr>
                                	<input type="hidden" name="wpmem_admin_a" value="update_cpts" />
                                	<td colspan="2"><?php 
        submit_button(__('Update Settings', 'wp-members'));
        ?>
</td>
                                </tr>
                        	</table>
                        </form>
                    </div>
                </div>
                <?php 
    }
    ?>
			</div><!-- #post-body-content -->
		</div><!-- #post-body -->
	</div><!-- .metabox-holder -->
	<?php 
}
Пример #3
0
function wpmem_a_build_about_tab()
{
    ?>
	<div class="metabox-holder has-right-sidebar">

		<div class="inner-sidebar">
			<?php 
    wpmem_a_meta_box();
    ?>
			<?php 
    wpmem_a_rss_box();
    ?>
		</div> <!-- .inner-sidebar -->

		<div id="post-body">
			<div id="post-body-content">
				<div class="postbox">
                    <div style="width:20%;max-width:300px;min-width:200px;padding:10px;margin:10px;border:#c4c4c4 1px solid;float:right;">
                        <h4><a href="http://rkt.bz/3O">WordPass</a></h4>
                        <p>Default random passwords can be difficult to for users to use.  WordPass simplifies this process by using words to create passwords. Passwords will be generated in the style of 2*Kayak29, 2Bigcranium2#, or %36POTATOE6.
                        </p>
                        <p>This plugin works with WordPress as well as with any plugin that uses the WordPress password generation function.</p>
                        <p><strong><a href="http://rkt.bz/3O">Try WordPass Free!</a></strong></p>
                     </div>
					<h3><?php 
    _e('About WP-Members', 'wp-members');
    ?>
</h3>
					<div class="inside">
                    	<p>WP-Members is a WordPress membership plugin that is simple to use but incorporates a powerful framework for customization.
                        A simple installation can be up and running in just a few minutes. Using the plugin's API, filters, and actions, the plugin can
                        also be fully customized without touching the main plugin files.</p>
                        <p>I would encourage you to join the premium support site as a paid support subscriber.  Not only does this provide access to 
                        subscriber-exclusive tutorials on customizing the plugin, a members only forum, priority direct email support, and a host of 
                        exclusive plugin extensions, it also supports the ongoing development of the plugin.  The only way this plugin can continue to 
                        be actively developed and supported is through <b><i>your</i></b> support.  So if you like the plugin and find it integral 
                        to your site and/or business, please consider joining today!  (And if you're already a premium support subscriber - Thank You!  
                        You make this plugin possible.)</p>
                        <p>Introduced in 2006, WP-Members was the first WordPress Membership plugin and through support of the WP community it continues to grow
                        and be developed.  Why put your trust in an unknown?  WP-Members has a 10 year track record of active development and support.</p>
                        <p><strong><a href="http://rkt.bz/KB">Plugin Documentation</a></strong> |
                        <strong><a href="http://rkt.bz/about">Premium Support</a></strong> | 
                        <strong><a href="http://rkt.bz/join">Join Today!</a></strong></p>
                    </div>
                    <h3>Premium Extensions</h3>
                    <div class="inside">
                    	<p>These are some of the popular extensions that are <strong>available to premium support subscribers</strong>:</p>
                        <p><strong><a href="http://rkt.bz/0h">Advanced Options</a></strong><br />
                        This exclusive extension adds a host of extra features to the plugin that are as simple to set up as checking a box. Hides the dashboard,
                        override WP default URLs for login and registration, disable certain WP defaults, change WP-Members defaults, notify admin on user profile
                        update, integrate with other popular plugins like WooCommerce, BuddyPress, and ACF (Advanced Custom Fields), and more.  See a list
                        of available settings here.
                        <p><strong><a href="http://rkt.bz/r3">PayPal Subscriptions</a></strong><br />
                        Start charging for access to your membership site.  Easy to set up and manages user expiration dates.  Uses basic PayPal IPN (Instant
                        Payment Notification).</p>
                        <p><strong><a href="http://rkt.bz/3b">MailChimp Integration</a></strong><br />
                        Integrate MainChimp newsletter signup directly into your WP-Members registration form and allow users to subscribe/unsubscribe
                        from their profile.</p>
                        <p><strong><a href="http://rkt.bz/fh">User List</a></strong><br />
                        Provides a configurable shortcode to create user/member directories.  The extension allows you to set defaults for the shortcode and
                        to override any of those defaults with shortcode parameters for an unlimited number of lists.</p>
                        <p><strong><a href="http://rkt.bz/C6">Registration Blacklist</a></strong><br />
                        Do you need to block certain IPs or email addresses from registering?  How about restricting users from trying to register certain
                        usernames like "admin" or "support"?  This extension allows you to block IPs, emails, and restrict username selection.  It can also
                        be used to block registration from wildcard email domains such as *@hotmail.com or *.ru</p>
                        <p><strong><a href="http://rkt.bz/6k">And More!</a></strong><br />
                        Invitation codes, email as username, salesforce integration, and more.  View a full list of available extensions here.  
                        Or signup as a support subscriber and start taking your WP-Members installation to the next level today!</p>
                </div>
            </div>
        </div>
    </div><?php 
}
Пример #4
0
/**
 * builds the settings panel
 *
 * @since 2.2.2
 *
 * @param array $wpmem_settings
 */
function wpmem_a_build_options($wpmem_settings)
{
    ?>
	<div class="metabox-holder has-right-sidebar">
	
		<div class="inner-sidebar">
			<?php 
    wpmem_a_meta_box();
    ?>
			<div class="postbox">
				<h3><span><?php 
    _e('Need help?', 'wp-members');
    ?>
</span></h3>
				<div class="inside">
					<strong><i>See the <a href="http://rocketgeek.com/plugins/wp-members/users-guide/plugin-settings/options/" target="_blank">Users Guide on plugin options</a>.</i></strong>
				</div>
			</div>
			<?php 
    wpmem_a_rss_box();
    ?>
		</div> <!-- .inner-sidebar -->	

		<div id="post-body">
			<div id="post-body-content">
				<div class="postbox">
					<h3><span><?php 
    _e('Manage Options', 'wp-members');
    ?>
</span></h3>
					<div class="inside">
						<form name="updatesettings" id="updatesettings" method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
						<?php 
    wp_nonce_field('wpmem-update-settings');
    ?>
							<table class="form-table">
							<?php 
    $arr = array(array(__('Block Posts by default', 'wp-members'), 'wpmem_settings_block_posts', __('Note: Posts can still be individually blocked or unblocked at the article level', 'wp-members')), array(__('Block Pages by default', 'wp-members'), 'wpmem_settings_block_pages', __('Note: Pages can still be individually blocked or unblocked at the article level', 'wp-members')), array(__('Show excerpts', 'wp-members'), 'wpmem_settings_show_excerpts', __('Shows excerpted content above the login/registration on both Posts and Pages', 'wp-members')), array(__('Notify admin', 'wp-members'), 'wpmem_settings_notify', __('Sends email to admin for each new registration?', 'wp-members')), array(__('Moderate registration', 'wp-members'), 'wpmem_settings_moderate', __('Holds new registrations for admin approval', 'wp-members')), array(__('Use reCAPTCHA', 'wp-members'), 'wpmem_settings_captcha', __('Turns on CAPTCHA for registration', 'wp-members')), array(__('Turn off registration', 'wp-members'), 'wpmem_settings_turnoff', __('Turns off the registration process, only allows login', 'wp-members')), array(__('Legacy forms', 'wp-members'), 'wpmem_settings_legacy', __('Uses the pre-2.5.1 table-based forms (leave off to use CSS table-less forms)', 'wp-members')), array(__('Time-based expiration', 'wp-members'), 'wpmem_settings_time_exp', __('Allows for access to expire', 'wp-members')), array(__('Trial period', 'wp-members'), 'wpmem_settings_trial', __('Allows for a trial period', 'wp-members')), array(__('Ignore warning messages', 'wp-members'), 'wpmem_settings_ignore_warnings', __('Ignores WP-Members warning messages in the admin panel', 'wp-members')));
    ?>
							<?php 
    for ($row = 0; $row < count($arr); $row++) {
        ?>
							<?php 
        if ($row < 8 || $row > 9 || WPMEM_EXP_MODULE == true) {
            ?>
							  <tr valign="top">
								<th align="left" scope="row"><?php 
            echo $arr[$row][0];
            ?>
</th>
								<td><?php 
            if (WPMEM_DEBUG == true) {
                echo $wpmem_settings[$row + 1];
            }
            ?>
									<input name="<?php 
            echo $arr[$row][1];
            ?>
" type="checkbox" id="<?php 
            echo $arr[$row][1];
            ?>
" value="1" <?php 
            if ($wpmem_settings[$row + 1] == 1) {
                echo "checked";
            }
            ?>
 />&nbsp;&nbsp;
									<?php 
            if ($arr[$row][2]) {
                ?>
<span class="description"><?php 
                echo $arr[$row][2];
                ?>
</span><?php 
            }
            ?>
								</td>
							  </tr>
							  <?php 
        }
        ?>
							  <?php 
    }
    ?>
							  <?php 
    $wpmem_msurl = get_option('wpmembers_msurl');
    if (!$wpmem_msurl) {
        $wpmem_msurl = "http://";
    }
    ?>
							  <tr>
								<th align="left" scope="row"><?php 
    _e('User Profile Page:', 'wp-members');
    ?>
</th>
								<td>
									<select name="wpmem_settings_mspage">
										<?php 
    wpmem_admin_page_list($wpmem_msurl);
    ?>
									</select>&nbsp;<?php 
    _e('custom URL:', 'wp-members');
    ?>
&nbsp;
									<input type="text" name="wpmem_settings_msurl" value="<?php 
    echo $wpmem_msurl;
    ?>
" size="50" />&nbsp;<span class="description"><?php 
    _e('Optional', 'wp-members');
    ?>
</span></td>
							  </tr>
							  <?php 
    $wpmem_regurl = get_option('wpmembers_regurl');
    if (!$wpmem_regurl) {
        $wpmem_regurl = "http://";
    }
    ?>
							  <tr>
								<th align="left" scope="row"><?php 
    _e('Register Page:', 'wp-members');
    ?>
</th>
								<td>
									<select name="wpmem_settings_regpage">
										<?php 
    wpmem_admin_page_list($wpmem_regurl);
    ?>
									</select>&nbsp;<?php 
    _e('custom URL:', 'wp-members');
    ?>
&nbsp;	
									<input type="text" name="wpmem_settings_regurl" value="<?php 
    echo $wpmem_regurl;
    ?>
" size="50" />&nbsp;<span class="description"><?php 
    _e('Optional', 'wp-members');
    ?>
</span></td>
							  </tr>
							  <?php 
    $wpmem_style = get_option('wpmembers_style');
    ?>
							  <tr>
							    <th align="left" scope="row"><?php 
    _e('Stylesheet:', 'wp-members');
    ?>
</th>
								<td><select name="wpmem_settings_style">
								<?php 
    wpmem_admin_style_list();
    ?>
								  </select>&nbsp;<span class="description"><?php 
    _e('Select a stylesheet or specify a custom stylesheet below', 'wp-members');
    ?>
</span>
								</td>
							  </tr>							  
							  <?php 
    $wpmem_cssurl = get_option('wpmembers_cssurl');
    if (!$wpmem_cssurl) {
        $wpmem_cssurl = "http://";
    }
    ?>
							  <tr>
								<th align="left" scope="row"><?php 
    _e('Custom Stylesheet:', 'wp-members');
    ?>
</th>
								<td><input type="text" name="wpmem_settings_cssurl" value="<?php 
    echo $wpmem_cssurl;
    ?>
" size="50" />&nbsp;<span class="description"><?php 
    _e('Optional', 'wp-members');
    ?>
</span></td>
							  </tr>
							  <?php 
    $auto_ex = get_option('wpmembers_autoex');
    ?>
							  <tr>
							    <th align="left" scope="row"><?php 
    _e('Auto Excerpt:', 'wp-members');
    ?>
</th>
								<td><input type="checkbox" name="wpmem_autoex" value="1" <?php 
    if ($auto_ex['auto_ex'] == 1) {
        echo "checked";
    }
    ?>
 />&nbsp;&nbsp;&nbsp;&nbsp;<?php 
    _e('Number of words in excerpt:', 'wp-members');
    ?>
 <input name="wpmem_autoex_len" type="text" size="5" value="<?php 
    if ($auto_ex['auto_ex_len']) {
        echo $auto_ex['auto_ex_len'];
    }
    ?>
" />&nbsp;<span class="description"><?php 
    _e('Optional', 'wp-members');
    ?>
. <?php 
    _e('Automatically creates an excerpt', 'wp-members');
    ?>
</span></td>
							  </tr>
							  <tr valign="top">
								<td>&nbsp;</td>
								<td><input type="hidden" name="wpmem_admin_a" value="update_settings">
									<input type="submit" name="UpdateSettings"  class="button-primary" value="<?php 
    _e('Update Settings', 'wp-members');
    ?>
 &raquo;" /> 
								</td>
							  </tr>
							</table>
						</form>
					</div><!-- .inside -->
				</div>
			</div><!-- #post-body-content -->
		</div><!-- #post-body -->
	</div><!-- .metabox-holder -->
	<?php 
}
Пример #5
0
/**
 * builds the settings panel
 *
 * @since 2.2.2
 *
 * @param array $wpmem_settings
 */
function wpmem_a_build_options($wpmem_settings)
{
    $admin_email = apply_filters('wpmem_notify_addr', get_option('admin_email'));
    $chg_email = __(sprintf('%sChange%s or %sFilter%s this address', '<a href="' . site_url('wp-admin/options-general.php', 'admin') . '">', '</a>', '<a href="http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_notify_addr/">', '</a>'), 'wp-members');
    $help_link = __(sprintf('See the %sUsers Guide on plugin options%s.', '<a href="http://rocketgeek.com/plugins/wp-members/users-guide/plugin-settings/options/" target="_blank">', '</a>'), 'wp-members');
    ?>
	<div class="metabox-holder has-right-sidebar">
	
		<div class="inner-sidebar">
			<?php 
    wpmem_a_meta_box();
    ?>
			<div class="postbox">
				<h3><span><?php 
    _e('Need help?', 'wp-members');
    ?>
</span></h3>
				<div class="inside">
					<strong><i><?php 
    echo $help_link;
    ?>
</i></strong>
				</div>
			</div>
			<?php 
    wpmem_a_rss_box();
    ?>
		</div> <!-- .inner-sidebar -->

		<div id="post-body">
			<div id="post-body-content">
				<div class="postbox">
					<h3><span><?php 
    _e('Manage Options', 'wp-members');
    ?>
</span></h3>
					<div class="inside">
						<form name="updatesettings" id="updatesettings" method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
						<?php 
    wp_nonce_field('wpmem-update-settings');
    ?>
							<ul>
							<?php 
    $arr = array(array(__('Block Posts by default', 'wp-members'), 'wpmem_settings_block_posts', __('Note: Posts can still be individually blocked or unblocked at the article level', 'wp-members')), array(__('Block Pages by default', 'wp-members'), 'wpmem_settings_block_pages', __('Note: Pages can still be individually blocked or unblocked at the article level', 'wp-members')), array(__('Show excerpts', 'wp-members'), 'wpmem_settings_show_excerpts', __('Shows excerpted content above the login/registration on both Posts and Pages', 'wp-members')), array(__('Notify admin', 'wp-members'), 'wpmem_settings_notify', sprintf(__('Notify %s for each new registration? %s', 'wp-members'), $admin_email, $chg_email)), array(__('Moderate registration', 'wp-members'), 'wpmem_settings_moderate', __('Holds new registrations for admin approval', 'wp-members')), array(__('Use reCAPTCHA', 'wp-members'), 'wpmem_settings_captcha', __('Turns on CAPTCHA for registration', 'wp-members')), array(__('Hide registration', 'wp-members'), 'wpmem_settings_turnoff', __('Removes the registration form from blocked content', 'wp-members')), array('', '', ''), array(__('Time-based expiration', 'wp-members'), 'wpmem_settings_time_exp', __('Allows for access to expire', 'wp-members')), array(__('Trial period', 'wp-members'), 'wpmem_settings_trial', __('Allows for a trial period', 'wp-members')), array(__('Ignore warning messages', 'wp-members'), 'wpmem_settings_ignore_warnings', __('Ignores WP-Members warning messages in the admin panel', 'wp-members')));
    for ($row = 0; $row < count($arr); $row++) {
        if ($row != 7 && $row != 5) {
            //if( $row != 7 ) {
            if ($row < 8 || $row > 9 || WPMEM_EXP_MODULE == true) {
                ?>
							  <li>
								<label><?php 
                echo $arr[$row][0];
                ?>
</label>
								<?php 
                if (WPMEM_DEBUG == true) {
                    echo $wpmem_settings[$row + 1];
                }
                ?>
								<input name="<?php 
                echo $arr[$row][1];
                ?>
" type="checkbox" id="<?php 
                echo $arr[$row][1];
                ?>
" value="1" <?php 
                if ($wpmem_settings[$row + 1] == 1) {
                    echo "checked";
                }
                ?>
 />&nbsp;&nbsp;
								<?php 
                if ($arr[$row][2]) {
                    ?>
<span class="description"><?php 
                    echo $arr[$row][2];
                    ?>
</span><?php 
                }
                ?>
							  </li>
							  <?php 
            }
        }
    }
    ?>
							<?php 
    $attribution = get_option('wpmembers_attrib');
    ?>
							  <li>
								<label><?php 
    _e('Attribution', 'wp-members');
    ?>
</label>
								<input name="attribution" type="checkbox" id="attribution" value="1" <?php 
    if ($attribution == 1) {
        echo "checked";
    }
    ?>
 />&nbsp;&nbsp;
								<span class="description"><?php 
    _e('Attribution is appreciated!  Display "powered by" link on register form?', 'wp-members');
    ?>
</span>
							  </li>
							<?php 
    $auto_ex = get_option('wpmembers_autoex');
    ?>
							  <li>
							    <label><?php 
    _e('Auto Excerpt:', 'wp-members');
    ?>
</label>
								<input type="checkbox" name="wpmem_autoex" value="1" <?php 
    if ($auto_ex['auto_ex'] == 1) {
        echo "checked";
    }
    ?>
 />&nbsp;&nbsp;&nbsp;&nbsp;<?php 
    _e('Number of words in excerpt:', 'wp-members');
    ?>
 <input name="wpmem_autoex_len" type="text" size="5" value="<?php 
    if ($auto_ex['auto_ex_len']) {
        echo $auto_ex['auto_ex_len'];
    }
    ?>
" />&nbsp;<span class="description"><?php 
    _e('Optional', 'wp-members');
    ?>
. <?php 
    _e('Automatically creates an excerpt', 'wp-members');
    ?>
</span>
							  </li>
							  <li>
								<label><?php 
    _e('Enable CAPTCHA', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_captcha">
									<option value="0"<?php 
    echo $wpmem_settings[6] == 0 ? ' selected ' : '';
    ?>
><?php 
    _e('None');
    ?>
</option>
									<option value="1"<?php 
    echo $wpmem_settings[6] == 1 ? ' selected ' : '';
    ?>
>reCAPTCHA</option>
									<?php 
    // if rs captcha is enabled
    ?>
									<option value="2"<?php 
    echo $wpmem_settings[6] == 2 ? ' selected ' : '';
    ?>
>Really Simple CAPTCHA</option>
								</select>
							  </li>
							<h3><?php 
    _e('Pages');
    ?>
</h3>
							  <?php 
    $wpmem_logurl = get_option('wpmembers_logurl');
    if (!$wpmem_logurl) {
        $wpmem_logurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('Login Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_logpage" id="wpmem_logpage_select">
								<?php 
    wpmem_admin_page_list($wpmem_logurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('Specify a login page (optional)', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_logpage_custom">
									<label>&nbsp;</label>
									<input class="regular-text code" type="text" name="wpmem_settings_logurl" value="<?php 
    echo $wpmem_logurl;
    ?>
" size="50" />
								</div>
							  </li>
							  <?php 
    $wpmem_regurl = get_option('wpmembers_regurl');
    if (!$wpmem_regurl) {
        $wpmem_regurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('Register Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_regpage" id="wpmem_regpage_select">
									<?php 
    wpmem_admin_page_list($wpmem_regurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('For creating a register link in the login form', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_regpage_custom">
									<label>&nbsp;</label>	
									<input class="regular-text code" type="text" name="wpmem_settings_regurl" value="<?php 
    echo $wpmem_regurl;
    ?>
" size="50" />
								</div>
							  </li>
							  <?php 
    $wpmem_msurl = get_option('wpmembers_msurl');
    if (!$wpmem_msurl) {
        $wpmem_msurl = wpmem_use_ssl();
    }
    ?>
							  <li>
								<label><?php 
    _e('User Profile Page:', 'wp-members');
    ?>
</label>
								<select name="wpmem_settings_mspage" id="wpmem_mspage_select">
								<?php 
    wpmem_admin_page_list($wpmem_msurl);
    ?>
								</select>&nbsp;<span class="description"><?php 
    _e('For creating a forgot password link in the login form', 'wp-members');
    ?>
</span><br />
								<div id="wpmem_mspage_custom">
									<label>&nbsp;</label>
									<input class="regular-text code" type="text" name="wpmem_settings_msurl" value="<?php 
    echo $wpmem_msurl;
    ?>
" size="50" />
								</div>
							  </li>
							  <?php 
    $wpmem_style = get_option('wpmembers_style');
    ?>
							<h3><?php 
    _e('Stylesheet');
    ?>
</h3>
							  <li>
							    <label><?php 
    _e('Stylesheet');
    ?>
:</label>
								<select name="wpmem_settings_style" id="wpmem_stylesheet_select">
								<?php 
    wpmem_admin_style_list();
    ?>
								</select>
							  </li>							  
							  <?php 
    $wpmem_cssurl = get_option('wpmembers_cssurl');
    if (!$wpmem_cssurl) {
        $wpmem_cssurl = wpmem_use_ssl();
    }
    ?>
							  <div id="wpmem_stylesheet_custom">
								  <li>
									<label><?php 
    _e('Custom Stylesheet:', 'wp-members');
    ?>
</label>
									<input class="regular-text code" type="text" name="wpmem_settings_cssurl" value="<?php 
    echo $wpmem_cssurl;
    ?>
" size="50" />
								  </li>
							  </div>
								<br /></br />
								<input type="hidden" name="wpmem_admin_a" value="update_settings">
								<input type="submit" name="UpdateSettings"  class="button-primary" value="<?php 
    _e('Update Settings', 'wp-members');
    ?>
 &raquo;" /> 
							</ul>
						</form>
					</div><!-- .inside -->
				</div>
			</div><!-- #post-body-content -->
		</div><!-- #post-body -->
	</div><!-- .metabox-holder -->
	<?php 
}