예제 #1
0
    //manage
    ?>
		<div class="clear"></div>
		<a href="<?php 
    echo $url . '&tab=levels&new_level=true';
    ?>
" class="indeed-add-new-like-wp">
			<?php 
    _e('Add New', 'ihc');
    ?>
		</a>		
	<form>
			<div>					
				<?php 
    $levels = get_option('ihc_levels');
    $levels = ihc_reorder_arr($levels);
    $currency = get_option('ihc_currency');
    if (!$currency) {
        $currency = '';
    }
    if ($levels && count($levels)) {
        ?>
						<div class="iump-page-title">Ultimate Membership Pro - 
							<span class="second-text">
								<?php 
        _e('MemberShip Levels', 'ihc');
        ?>
							</span>
						</div>
							
							<div onclick="ihc_sortable_on_off(this, '#ihc-levels-table tbody');" class="ihc-sortable-off" id="ihc-bttn-on-off-sortable">
예제 #2
0
function ihc_user_select_level($template = false, $custom_css = false)
{
    $levels = get_option('ihc_levels');
    if ($levels) {
        $levels = ihc_reorder_arr($levels);
        if (!$template) {
            $template = get_option('ihc_level_template');
            if (!$template) {
                $template = 'ihc_level_template_1';
            }
        }
        $register_page = get_option('ihc_general_register_default_page');
        if ($register_page) {
            $register_url = get_permalink($register_page);
        }
        include IHC_PATH . 'public/subscription-layouts.php';
        return ihc_print_subscription_layout($template, $levels, $register_url, $custom_css);
    }
    return false;
}