<?php 
    $activeListDesc = "This is the mailing list that you want members added to when the bundle selected above is active on a member&apos;s account. If you have a Canceled List defined as well, members will be removed from this list when the bundle becomes active.";
    $canceledListDesc = "This is the mailing list that you want members added to when the bundle selected above is canceled or paused on a member&apos;s account.  If you have an Active List defined as well, members will be removed from this list when the bundle becomes canceled or paused.";
    ?>
	<td>Active List<?php 
    echo MM_Utils::getInfoIcon($activeListDesc);
    ?>
</td>
	<td><select id="mm_active_list_id" name="mm_active_list_id"><?php 
    echo MM_HtmlUtils::generateSelectionsList($lists, $activeListId);
    ?>
</select></td>
</tr>
<tr>
	<td>Canceled List<?php 
    echo MM_Utils::getInfoIcon($canceledListDesc);
    ?>
</td>
	<td><select id="mm_canceled_list_id" name="mm_canceled_list_id"><?php 
    echo MM_HtmlUtils::generateSelectionsList($lists, $canceledListId);
    ?>
</select></td>
</tr>
</table>
</div>

<div class="mm-dialog-footer-container">
<div class="mm-dialog-button-container">
<a href="javascript:mmjs.save();" class="mm-ui-button blue">Save Bundle Mapping</a>
<a href="javascript:mmjs.closeDialog();" class="mm-ui-button">Cancel</a>
</div>
Esempio n. 2
0
    $validSmartTags .= "[MM_Content_Link] (you must provide an ID)\n";
    $validSmartTags .= "[MM_CorePage_Link]\n";
    $validSmartTags .= "[MM_CustomField_Data]\n";
    $validSmartTags .= "[MM_Employee_Data]\n";
    $validSmartTags .= "[MM_Form] (1clickPurchase type only)\n";
    $validSmartTags .= "[MM_Member_Data]\n";
    $validSmartTags .= "[MM_Member_Decision]\n";
    $validSmartTags .= "[MM_Member_Link]\n";
    $validSmartTags .= "[MM_Purchase_Link]";
    ?>
				<span style="font-size:11px; color:#666666; margin-left: 5px;">
				Insert template: <a href="javascript:insertBasicTemplate();" style="color:#21759B;">Product Information</a>, <a href="javascript:insertAdvancedTemplate();" style="color:#21759B;">Collect Shipping Info and Coupon Code</a>
				<br/>
				<em>Note: Only certain SmartTags can be used here</em></span>
				<?php 
    echo MM_Utils::getInfoIcon($validSmartTags, "");
    ?>
			</div>
			
			<div style="margin-top:5px">
				<textarea id='mm-purchase_confirmation_message' style="width:100%; height:140px; font-family:courier; font-size: 11px;"><?php 
    echo htmlentities($product->getPurchaseConfirmationMessage(), ENT_QUOTES, 'UTF-8', true);
    ?>
</textarea>
			</div>	
		</td>
	</tr>
	<?php 
}
?>
	</table>
Esempio n. 3
0
</div>

<div style="margin-bottom:10px;">
	Notification URL
	
	<p style="margin-left:10px;">
		<?php 
$ipnUrl = MM_PLUGIN_URL . "/x.php?service=coinbase&hash=" . wp_hash("coinbase_ipn_auth");
?>
		 
		<span style="font-family:courier; font-size:11px; margin-top:5px;">
			 <input id="mm-coinbase-ipn-url" type="text" value="<?php 
echo $ipnUrl;
?>
" style="width:550px; background-color:#fff;" readonly onclick="jQuery('#mm-coinbase-ipn-url').focus(); jQuery('#mm-coinbase-ipn-url').select();" />
		</span>
	</p>
	
	<p style="font-size:11px; margin-left:10px; padding-right:20px;">
		<?php 
echo MM_Utils::getInfoIcon("", "");
?>
		Coinbase uses <abbr title="Instant Payment Notifications">IPNs</abbr> to inform 3rd party systems when events happen within Coinbase
		such as successful payments, subscription cancellations, etc. MemberMouse keeps member accounts in sync with Coinbase by listening for these notifications.
		In order for this to work, <strong style="background:#FE9;">you must copy the notification URL above and enter it as your Coinbase callback URL</strong>
		at <a href="https://coinbase.com/merchant_settings">https://coinbase.com/merchant_settings</a>.
	</p>
</div>

</div>
Esempio n. 4
0
        $employee = MM_Employee::findByUserId($current_user->ID);
        $allowAccess = true;
        if ($employee->isValid()) {
            $allowAccess = $employee->canManageMember($user);
        }
        if ($allowAccess) {
            include_once MM_MODULES . "/details.header.php";
            // prepare data grid
            $view = new MM_SubscriptionsView();
            $dataGrid = new MM_DataGrid($_REQUEST, "date_added", "desc", 10);
            $data = $view->getViewData($user->getId(), $dataGrid);
            $rows = $view->generateRows($data, true);
            $dataGrid->setTotalRecords($data);
            $dataGrid->recordName = "subscription";
            $nextRebillDateInfo = "Next rebill date is only available for subscriptions billed with a card-on-file payment service (i.e. Stripe, Braintree, Authorize.net CIM). When non-card-on-file payment services are used (i.e. PayPal, Authorize.net), the billing schedule is managed on their end so MemberMouse doesn't have access to the next rebill date.";
            $headers = array('date_added' => array('content' => '<a onclick="mmjs.sort(\'date_added\');" href="#">Start Date</a>', "attr" => "style='width:100px;'"), 'order_item_status' => array('content' => 'Status', "attr" => "style='width:50px;'"), 'access_type_name' => array('content' => 'Associated Access'), 'product_id' => array('content' => 'Product Name'), 'billing_description' => array('content' => 'Billing Description'), 'rebill_date' => array('content' => 'Next Rebill Date' . MM_Utils::getInfoIcon($nextRebillDateInfo), "attr" => "style='width:140px;'"), 'actions' => array('content' => 'Actions', "attr" => "style='width:90px;'"));
            $dataGrid->setHeaders($headers);
            $dataGrid->setRows($rows);
            $dgHtml = $dataGrid->generateHtml();
            if ($dgHtml == "") {
                $dgHtml = "<p><i>No active subscriptions.</i></p>";
            }
            ?>
<div class="mm-wrap">
	<div id="mm-form-container">
		<input type="hidden" name="user_id" value="<?php 
            echo $user->getId();
            ?>
"/>
		
		<?php 
			<td colspan="2">
			<div style="width: 600px; margin-top: 8px;" class="mm-divider"></div>
			</td>
		</tr>
		
		<tr>
			<td>Refund Options</td>
			<td>
				<div>
					<input type='checkbox' id='mm-enable-reverse-commissions-checkbox' name='mm-enable-reverse-commissions-checkbox' <?php 
echo $reverseCommissionsChecked;
?>
 /> 
					Cancel commission when customer is refunded
					<?php 
echo MM_Utils::getInfoIcon('Only commissions that have not been paid out yet can be canceled.');
?>
				</div>
			</td>
		</tr>
	</table>
	
	<script type='text/javascript'>
	mmjs.renderRebillOptions();
	</script>
</div>

<div class="mm-dialog-footer-container">
<div class="mm-dialog-button-container">
<a href="javascript:mmjs.save();" class="mm-ui-button blue">Save Commission Profile</a>
<a href="javascript:mmjs.closeDialog();" class="mm-ui-button">Cancel</a>
Esempio n. 6
0
</td>
		<td>
		<span style="font-family:courier; font-size:11px; margin-top:5px;">
			<?php 
        if (!isset($testData[$field->fieldId])) {
            $testData[$field->fieldId] = "";
        }
        echo MM_CheckoutForm::generateInputFormField($field->fieldName, $testData, $form);
        if ($field->fieldName == "ccexpirationdate") {
            $ccExpDateRendered = true;
        } else {
            if ($field->fieldName == "email") {
                echo MM_Utils::getInfoIcon("Click for more information", "", "javascript:showEmailInfo();");
            } else {
                if ($field->fieldName == "username") {
                    echo MM_Utils::getInfoIcon("Enter the base username to use for test accounts. MemberMouse will automatically add a series of numbers to the end of the base username to ensure that it's unique.", "");
                }
            }
        }
        ?>
		</span>
		</td>
	</tr>
	<?php 
    }
}
?>
</table>
</div>
<p><input type='submit' name='submit' value='Save Test Data' class="mm-ui-button blue" /></p>
</form>
function generatePurchaseSection($productId)
{
    ?>
	<div id="mm-purchaselinks-<?php 
    echo $productId;
    ?>
" style="display:none;">
	<p><strong>Purchase Link SmartTag</strong><?php 
    echo MM_Utils::getInfoIcon("You can use this Purchase Link SmartTag in any post or page on your site. When using this SmartTag MemberMouse will automatically generate a link customers can click on to purchase this bundle.");
    ?>
</p>
	
	<?php 
    $smartTag = "<a href=\"[MM_Purchase_Link productId='{$productId}']\">Buy Now</a>";
    ?>
	<input id="mm-smart-tag-<?php 
    echo $productId;
    ?>
" type="text" readonly value="<?php 
    echo htmlentities($smartTag);
    ?>
" style="width:440px; font-family:courier; font-size:11px;" onclick="jQuery('#mm-smart-tag-<?php 
    echo $productId;
    ?>
').focus(); jQuery('#mm-smart-tag-<?php 
    echo $productId;
    ?>
').select();" />
	
	<ul style="margin-left:20px;">
	<li>Set the <code>isGift</code> attribute to <code>true</code> to indicate that this purchase is a gift.</li>
	</ul>
	
	<p style="margin-left:20px;">
	Read this article to 
		<a href="https://membermouse.uservoice.com/knowledgebase/articles/319170-mm-purchase-link-smarttag" target="_blank">learn more about the <code>MM_Purchase_Link</code> SmartTag</a>.
	</p>
	
	<p><strong>Static Link</strong><?php 
    echo MM_Utils::getInfoIcon("You can use this link anywhere -- in a PPC or banner ad, email, on your site, on a 3rd party site, etc. Customers can click on this link to purchase this bundle.");
    ?>
</p>
	
	<input id="mm-static-link-<?php 
    echo $productId;
    ?>
" type="text" readonly value="<?php 
    echo htmlentities(MM_CorePageEngine::getCheckoutPageStaticLink($productId));
    ?>
" style="width:440px; font-family:courier; font-size:11px;" onclick="jQuery('#mm-static-link-<?php 
    echo $productId;
    ?>
').focus(); jQuery('#mm-static-link-<?php 
    echo $productId;
    ?>
').select();" />
	
	<?php 
    $affiliateId = MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_AFFILIATE);
    $subAffiliateId = MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_SUB_AFFILIATE);
    ?>
	<p><strong>Add Affiliate Tracking</strong></p>
	<p>To add affiliate tracking to the above purchase links you simply need to append affiliate tracking parameters to the URL as follows:</p>
	<p><em>Purchase Link SmartTag</em>: <br/><code>&lt;a href="[MM_Purchase_Link productId='#']<strong>&<?php 
    echo $affiliateId;
    ?>
=###&<?php 
    echo $subAffiliateId;
    ?>
=###</strong>"&gt;Buy Now&lt;/a&gt;</code></p>
	<p><em>Static Link</em>: <br/><code>http://yourdomain.com/checkout/?rid=p4K7d<strong>&<?php 
    echo $affiliateId;
    ?>
=###&<?php 
    echo $subAffiliateId;
    ?>
=###</strong></code></p>
	<p>Where all <code>#</code>'s would be replaced with the appropriate values. Read this article to <a href="http://membermouse.uservoice.com/knowledgebase/articles/319248-create-an-affiliate-link" target="_blank">learn more about creating an affiliate link</a>.</p>
	</div>
<?php 
}
Esempio n. 8
0
echo MM_LitleService::$ENVIRONMENT_PRODUCTION;
?>
">Production</option>
		<option value="<?php 
echo MM_LitleService::$ENVIRONMENT_POSTLIVE;
?>
">Post-Live</option>
	</select>
</div>

<div id="litle-url-type-section" style="margin-bottom:10px; display:none;">
	<?php 
$urlTypeDesc = "Litle offers two ways to connect to each environment. In order to use the Whitelisted connection type, you'll need to work with Litle to whitelist your server's IP address. If you don't want to or can't whitelist the IP address of your server then you'll need to use the Open connection type. When using the Open connection type your credentials will automatically be reset by Litle every 3 months.";
?>
	Connection Type<?php 
echo MM_Utils::getInfoIcon($urlTypeDesc);
?>
	<select id="litle-url-type" name="payment_service[litle][url_type]" style="margin-left:10px; font-family:courier; font-size:11px;">
		<option value="<?php 
echo MM_LitleService::$URL_TYPE_OPEN;
?>
">Open</option>
		<option value="<?php 
echo MM_LitleService::$URL_TYPE_WHITELISTED;
?>
">Whitelisted</option>
	</select>
	
	<p>
		Report Group (<em>optional</em>) 
		<input type='text' value='<?php 
Esempio n. 9
0
>Months</option>
					</select>
				</div>
				
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
			<div style="width: 600px; margin-top: 8px;" class="mm-divider"></div>
			</td>
		</tr>
		
		<tr>
			<td>Protected Categories<?php 
echo MM_Utils::getInfoIcon("Select the WordPress categories that should be automatically protected by this bundle.");
?>
</td>
			<td>
				<select id="mm-categories[]" size="5" multiple="multiple" style="width:95%">
				<?php 
echo MM_HtmlUtils::getWordPressCategories($bundle->getCategories());
?>
				</select>
				
				<span style="font-size:11px">
					Select Multiple Categories: PC <code>ctrl + click</code> 
					Mac <code><img width="9" height="9" src="http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1343/ks_command.gif" alt="Command key icon" data-hires="true">
(Command key) + click</code>
				</span>
			</td>
Esempio n. 10
0
 // get access name
 switch ($params[MM_ActivityLog::$PARAM_ACCESS_EVENT]) {
     case MM_Event::$MEMBER_ADD:
     case MM_Event::$MEMBER_STATUS_CHANGE:
     case MM_Event::$MEMBER_MEMBERSHIP_CHANGE:
         $membership = new MM_MembershipLevel($params[MM_ActivityLog::$PARAM_ACCESS_ID]);
         if ($membership->isValid()) {
             $accessName = $membership->getName();
         } else {
             $accessName = "Unknown Membership";
         }
         if (!empty($params[MM_ActivityLog::$PARAM_ACCESS_STATUS])) {
             $accessStatusInfo = MM_Status::getImage($params[MM_ActivityLog::$PARAM_ACCESS_STATUS]);
             $accessStatusInfo .= " <em>" . MM_Status::getName($params[MM_ActivityLog::$PARAM_ACCESS_STATUS], true) . "</em>";
             if ($params[MM_ActivityLog::$PARAM_ACCESS_STATUS] == MM_Status::$ERROR && !empty($params[MM_ActivityLog::$PARAM_ACCESS_STATUS_MESSAGE])) {
                 $accessStatusInfo .= MM_Utils::getInfoIcon(htmlentities($params[MM_ActivityLog::$PARAM_ACCESS_STATUS_MESSAGE], ENT_QUOTES), "margin-left:4px;");
             }
         }
         break;
     case MM_Event::$BUNDLE_ADD:
     case MM_Event::$BUNDLE_STATUS_CHANGE:
         $bundle = new MM_Bundle($params[MM_ActivityLog::$PARAM_ACCESS_ID]);
         if ($bundle->isValid()) {
             $accessName = $bundle->getName();
         } else {
             $accessName = "Unknown Bundle";
         }
         if (!empty($params[MM_ActivityLog::$PARAM_ACCESS_STATUS])) {
             $accessStatusInfo = MM_Status::getImage($params[MM_ActivityLog::$PARAM_ACCESS_STATUS]);
             $accessStatusInfo .= " <em>" . MM_Status::getName($params[MM_ActivityLog::$PARAM_ACCESS_STATUS], true) . "</em>";
         }
			<td width='110' style='vertical-align:top;'>Paid Message<?php 
echo MM_Utils::getInfoIcon("This is the message that will be displayed to customers when a payment is being processed.");
?>
</td>
			<td>
				<span style="font-family: courier; font-size: 11px;">
				<textarea id='mm_checkout_paid_message' name='mm_checkout_paid_message' style="width: 380px; height: 50px;" onkeydown="updatePreviewButton()"><?php 
echo $checkoutPaidMessage;
?>
</textarea>
				</span>
			</td>
		</tr>
		<tr>
			<td style='vertical-align:top;'>Free Message<?php 
echo MM_Utils::getInfoIcon("This is the message that will be displayed to customers when they're signing up for a free account.");
?>
</td>
			<td>
				<span style="font-family: courier; font-size: 11px;">
				<textarea id='mm_checkout_free_message' name='mm_checkout_free_message' style="width: 380px; height: 50px;" onkeydown="updatePreviewButton()"><?php 
echo $checkoutFreeMessage;
?>
</textarea>
				</span>
			</td>
		</tr>
		<tr>
			<td>CSS Class</td>
			<td>
				<span style="font-family: courier; font-size: 11px;">
		<input id="mm-smart-tag" type="text" readonly value="<?php 
echo htmlentities($p->smartTag);
?>
" style="width:440px; font-family:courier; font-size:11px;" onclick="jQuery('#mm-smart-tag').focus(); jQuery('#mm-smart-tag').select();" />
		
		<ul style="margin-left:20px;">
		<li>Set the <code>isGift</code> attribute to <code>true</code> to indicate that this purchase is a gift.</li>
		</ul>
		
		<p style="margin-left:20px;">
		Read this article to 
			<a href="https://membermouse.uservoice.com/knowledgebase/articles/319170-mm-purchase-link-smarttag" target="_blank">learn more about the <code>MM_Purchase_Link</code> SmartTag</a>.
		</p>
		
		<p><strong>Static Link</strong><?php 
echo MM_Utils::getInfoIcon("You can use this link anywhere -- in a PPC or banner ad, email, on your site, on a 3rd party site, etc. Customers can click on this link to purchase this product");
?>
</p>
		
		<input id="mm-static-link" type="text" readonly value="<?php 
echo htmlentities($p->staticLink);
?>
" style="width:440px; font-family:courier; font-size:11px;" onclick="jQuery('#mm-static-link').focus(); jQuery('#mm-static-link').select();" />
	
		<?php 
$affiliateId = MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_AFFILIATE);
$subAffiliateId = MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_SUB_AFFILIATE);
?>
		<p><strong>Add Affiliate Tracking</strong></p>
		<p>To add affiliate tracking to the above purchase links you simply need to append affiliate tracking parameters to the URL as follows:</p>
		<p><em>Purchase Link SmartTag</em>: <br/><code>&lt;a href="[MM_Purchase_Link productId='#']<strong>&<?php 
Esempio n. 13
0
    if (empty($error)) {
        MM_OptionUtils::setOption(MM_OptionUtils::$OPTION_KEY_LOGIN_TOKEN_LIFESPAN, $_POST[MM_OptionUtils::$OPTION_KEY_LOGIN_TOKEN_LIFESPAN]);
    }
}
$lifespan = MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_LOGIN_TOKEN_LIFESPAN);
if (!preg_match("/[0-9]+/", $lifespan)) {
    $lifespan = MM_OptionUtils::$DEFAULT_LOGIN_TOKEN_LIFESPAN;
}
$loginTokenLifespanDesc = "When the auto-login attribute is set to true on certain [MM_..._Link] SmartTags, a login token is created that allows the customer to be automatically logged in when they click the link. ";
$loginTokenLifespanDesc .= "This setting indicates how long that login token will be valid.";
?>

<div style="width: 600px; margin-top: 8px;" class="mm-divider"></div> 

<div class="mm-wrap">
	<p class="mm-header-text">Login Token Settings <span style="font-size:12px;"><a href="http://membermouse.uservoice.com/knowledgebase/articles/776460" target="_blank">Learn more</a></span></p>
	
	<div style="margin-top:10px;">
		Login tokens are valid for
		<input type='text' style='width: 50px;' name='<?php 
echo MM_OptionUtils::$OPTION_KEY_LOGIN_TOKEN_LIFESPAN;
?>
' value='<?php 
echo $lifespan;
?>
' /> days
		<?php 
echo MM_Utils::getInfoIcon($loginTokenLifespanDesc, "");
?>
	</div>
</div>
Esempio n. 14
0
		<?php 
if (MM_MemberMouseService::hasPermission(MM_MemberMouseService::$FEATURE_EMPLOYEE_ACCOUNTS)) {
    $selectedMemberships = array();
    $restrictions = $employee->getAccessRescrictions(MM_Employee::$ACCESS_TYPE_MEMBERSHIP);
    foreach ($restrictions as $key => $value) {
        $selectedMemberships[$value] = $value;
    }
    ?>
		<tr id="mm-access-restriction-row" style="display:none;">
			<td>Access Restrictions</td>
			<td>
			<?php 
    $accessDesc = "By selecting one or more membership levels below you're indicating that the employee should only be able to manage members with one of those membership levels. When no membership levels are selected this indicates that the employee should be able to manage all members.";
    ?>
			Allowed Membership Levels<?php 
    echo MM_Utils::getInfoIcon($accessDesc);
    ?>
			<select id="mm-memberships[]" size="6" multiple="multiple" style="margin-top:5px; width:400px;">
			<?php 
    echo MM_HtmlUtils::getMemberships($selectedMemberships);
    ?>
			</select>
			
			<p style="margin-top:5px; font-size:11px">
					Select Multiple Membership Levels: PC <code>ctrl + click</code> 
					Mac <code><img width="9" height="9" src="http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1343/ks_command.gif" alt="Command key icon" data-hires="true">
(Command key) + click</code>
			</p>
			</td>
		</tr>
		<?php 
Esempio n. 15
0
function updatePreviewSettingsBarForm()
{	
	if(jQuery("#mm_show_preview_settings_bar_cb").is(":checked")) 
	{
		jQuery("#mm_show_preview_settings_bar").val("1");
	} 
	else 
	{
		jQuery("#mm_show_preview_settings_bar").val("0");
	}
}
</script>

<div class="mm-wrap">
	<a name="preview-settings-bar-options"></a>
    <p class="mm-header-text">Preview Settings Bar Options <span style="font-size:12px;"><a href="https://membermouse.uservoice.com/knowledgebase/articles/319084-show-hide-the-preview-settings-bar" target="_blank">Learn more</a></span></p>
    
	<div style="margin-top:10px;">
		<input id="mm_show_preview_settings_bar_cb" type="checkbox" <?php 
echo $showPreviewBar == "1" ? "checked" : "";
?>
 onchange="updatePreviewSettingsBarForm();" />
		Show Preview Settings Bar<?php 
echo MM_Utils::getInfoIcon($showPreviewBarDesc);
?>
		<input id="mm_show_preview_settings_bar" name="mm_show_preview_settings_bar" type="hidden" value="<?php 
echo $showPreviewBar;
?>
" />
	</div>
</div>
    }
    ?>

<?php 
    if ($appliedBundle->isPendingCancellation()) {
        $cancellationDate = MM_Utils::dateToLocal($appliedBundle->getCancellationDate(false), "m/d/Y");
        ?>
<div style="width: 360px; margin-top: 8px; margin-bottom: 8px;" class="mm-divider"></div>
<p>Bundle Pending <?php 
        echo $appliedBundle->getPendingStatus() == MM_Status::$CANCELED ? "Cancellation" : "Pause";
        ?>
</p>

<p>
	<?php 
        echo MM_Utils::getInfoIcon();
        ?>
	<em>You can force <?php 
        echo $appliedBundle->getPendingStatus() == MM_Status::$CANCELED ? "cancel" : "pause";
        ?>
 the bundle by setting the cancellation date to any date in the past.</em>
	
	<br/><br/>

	Bundle will be <?php 
        echo $appliedBundle->getPendingStatus() == MM_Status::$CANCELED ? "canceled" : "paused";
        ?>
 on 
	
	<input id="mm-cancellation-date" name="mm-cancellation-date" type="text" style="width: 152px" value="<?php 
        echo $cancellationDate;
Esempio n. 17
0
				</span>
			</td>
		</tr>
		<?php 
}
?>
		
		<tr>
			<td colspan="2">
			<div style="width: 600px; margin-top: 8px;" class="mm-divider"></div>
			</td>
		</tr>
		
		<tr>
			<td>Protected Categories<?php 
echo MM_Utils::getInfoIcon("Select the WordPress categories that should be automatically protected by this membership level.");
?>
</td>
			<td>
				<select id="mm-categories[]" size="5" multiple="multiple" style="width:100%">
				<?php 
echo MM_HtmlUtils::getWordPressCategories($membership->getCategoryIds());
?>
				</select>
				
				<span style="font-size:11px">
					Select Multiple Categories: PC <code>ctrl + click</code> 
					Mac <code><img width="9" height="9" src="http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1343/ks_command.gif" alt="Command key icon" data-hires="true">
(Command key) + click</code>
				</span>
			</td>
Esempio n. 18
0
		<input id="mm_hide_admin_bar_cb" type="checkbox" <?php 
echo $hideAdminBar == "1" ? "checked" : "";
?>
 onchange="udpateWPUserForm();" />
		Hide the admin bar for new members<?php 
echo MM_Utils::getInfoIcon($hideAdminBarDesc);
?>
		<input id="mm_hide_admin_bar" name="mm_hide_admin_bar" type="hidden" value="<?php 
echo $hideAdminBar;
?>
" />
		
		<span style="font-size:12px;"><a href="https://membermouse.uservoice.com/knowledgebase/articles/319085-hide-the-wordpress-admin-bar-from-new-members" target="_blank">Learn more</a></span>
	</div>
	
	<div style="margin-top:10px;">
		<input id="mm_enable_username_change_cb" type="checkbox" <?php 
echo $enableUsernameChange == "1" ? "checked" : "";
?>
 onchange="udpateWPUserForm();" />
		Allow members to change their username<?php 
echo MM_Utils::getInfoIcon($enableUsernameChangeDesc);
?>
		<input id="mm_enable_username_change" name="mm_enable_username_change" type="hidden" value="<?php 
echo $enableUsernameChange;
?>
" />
		
		<span style="font-size:12px;"><a href="https://membermouse.uservoice.com/knowledgebase/articles/319089-configure-if-member-can-change-their-username" target="_blank">Learn more</a></span>
	</div>
</div>
Esempio n. 19
0
    <p class="mm-header-text">WordPress Menu Options</p>
    
	<div style="margin-top:10px;">
		<input id="mm_hide_menu_items_cb" type="checkbox" <?php 
echo $hideMenuItems == "1" ? "checked" : "";
?>
 onchange="mmjs.updateWPMenuSettingsForm();" />
		Hide Protected Menu Items<?php 
echo MM_Utils::getInfoIcon($hideMenuItemsDesc);
?>
		<input id="mm_hide_menu_items" name="mm_hide_menu_items" type="hidden" value="<?php 
echo $hideMenuItems;
?>
" />
		<a href="https://membermouse.uservoice.com/knowledgebase/articles/319082-hide-protected-wordpress-pages-from-menus" target="_blank">Learn more</a>
	</div>
	<div style="margin-top:10px;">
		<input id="mm_show_login_logout_link_cb" type="checkbox" <?php 
echo $showLoginLogoutLink == "1" ? "checked" : "";
?>
 onchange="mmjs.updateWPMenuSettingsForm();" />
		Show Login/Logout Link<?php 
echo MM_Utils::getInfoIcon($showLinkDesc);
?>
		<input id="mm_show_login_logout_link" name="mm_show_login_logout_link" type="hidden" value="<?php 
echo $showLoginLogoutLink;
?>
" />
		<a href="https://membermouse.uservoice.com/knowledgebase/articles/319081-add-login-logout-link-to-main-menu" target="_blank">Learn more</a>
	</div>
</div>
Esempio n. 20
0
    	<p><code>http://yourdomain.com/checkout/?rid=4DuFx8</code></p>
    	
    	<div id="mm-disable-explicit-link-options">
    		<p>
    			<label>
				<input id="mm_disable_explicit_links_cb" value='1' type="checkbox" <?php 
echo $disableExplicitLinks == "1" ? "checked" : "";
?>
 onchange="disableExplicitLinksChangeHandler();" />
				<input id="mm_disable_explicit_links" name="mm_disable_explicit_links" value='<?php 
echo $disableExplicitLinks;
?>
' type="hidden" />
				Increase security by disabling support for explicit links (<em>recommended</em>)
				</label><?php 
echo MM_Utils::getInfoIcon($linkSecurityDescription);
?>
			</p>
			<p></p>
    
			
		</div>
    </div>
    
    <p><input onchange="linkStyleChangeHandler();" name="mm_purchase_link_style" value='<?php 
echo MM_LINK_STYLE_EXPLICIT;
?>
' type="radio" <?php 
echo $crntLinkStyle == MM_LINK_STYLE_EXPLICIT ? "checked" : "";
?>
  />
Esempio n. 21
0
			<td>
				Grant access to the following membership level:
			</td>
		</tr>
		<tr>
			<td>
				<select id='mm_member_types_opt' ><?php 
echo isset($p->options) ? $p->options : "";
?>
</select>
			</td>
		</tr>
		<tr>
			<td>
				<?php 
echo MM_Utils::getInfoIcon("Access starts at zero so to grant access on the first day set this to 0, to grant access on the second day set this to 1, for access on the tenth set this to 9 and so on.", "");
?>
				Grant access on day 
				<input type='text' name='mt_day' id='mt_day' style="width:40px;" value='<?php 
echo $p->day;
?>
' />
			</td>
		</tr>
	</table>
	
<input type='hidden' id='edit_id' name='edit_id' value='<?php 
echo isset($p->access_id) ? $p->access_id : '';
?>
' />
</div>