Beispiel #1
0
<?php

$links = array(array('id' => 'settings', 'title' => __('Memberful'), 'url' => memberful_wp_plugin_settings_url()), array('id' => 'bulk_protect', 'title' => __('Bulk restrict access tool'), 'url' => memberful_wp_plugin_bulk_protect_url()), array('id' => 'advanced_settings', 'title' => __('Advanced Role Mapping'), 'url' => memberful_wp_plugin_advanced_settings_url()), array('id' => 'private_user_feed_settings', 'title' => __('Private RSS Feeds'), 'url' => memberful_wp_plugin_private_user_feed_settings_url()));
if (is_plugin_active('bbpress/bbpress.php')) {
    $links[] = array('id' => 'protect_bbpress', 'title' => __('bbPress Forums'), 'url' => memberful_wp_plugin_protect_bbpress_url());
}
?>
<h2 class="nav-tab-wrapper">
<?php 
foreach ($links as $link) {
    ?>
  <a href="<?php 
    echo $link['url'];
    ?>
" id="nav_tab_<?php 
    echo $link['id'];
    ?>
" class="nav-tab <?php 
    echo $link['id'] === $active ? 'nav-tab-active' : '';
    ?>
"><?php 
    echo $link['title'];
    ?>
</a>
<?php 
}
?>
</h2>
Beispiel #2
0
function memberful_wp_plugin_protect_bbpress_url($no_header = FALSE)
{
    return memberful_wp_plugin_settings_url($no_header, 'protect_bbpress');
}
Beispiel #3
0
	<div id="memberful-wrap">
		<div id="memberful-registered" class="postbox">
			<h1><?php 
_e('Integration Active', 'memberful');
?>
</h1>
			<h2><?php 
printf(__('Syncing %d products and %d subscriptions.', 'memberful'), count($products), count($subscriptions));
?>
</h2>
			<p><?php 
printf(__('<a href="%s">Sign in to your Memberful account</a> to manage products, subscriptions, members, and orders.'), memberful_url('admin'));
?>
</p>
			<form method="POST" action="<?php 
echo memberful_wp_plugin_settings_url(TRUE);
?>
">
				<?php 
memberful_wp_nonce_field('memberful_options');
?>
				<button type="submit" name="manual_sync" class="button action"><?php 
_e('Run manual sync', 'memberful');
?>
</button>
				<button type="submit" name="reset_plugin" class="memberful-red-button"><?php 
_e('Disconnect', 'memberful');
?>
</button>
			</form>
		</div>