Esempio n. 1
0
    function access_metabox()
    {
        global $post;
        ?>
		<p>
			<?php 
        _e('Select Protection', 'premise');
        ?>
:
			<br />
			<label><input type="radio" name="accesspress_post_meta[_acp_protection]" id="accesspress_post_meta[_acp_protection]" value="" <?php 
        checked('' == accesspress_get_custom_field('_acp_protection'));
        ?>
 /> <?php 
        _e('No Membership Required', 'premise');
        ?>
</label>
			<br />
			<label><input type="radio" name="accesspress_post_meta[_acp_protection]" id="accesspress_post_meta[_acp_protection][member]" value="member" <?php 
        checked('member', accesspress_get_custom_field('_acp_protection'));
        ?>
 /> <?php 
        _e('Has Member Access to', 'premise');
        ?>
</label>
			<br />
			<label><input type="radio" name="accesspress_post_meta[_acp_protection]" id="accesspress_post_meta[_acp_protection][nonmember]" value="nonmember" <?php 
        checked('nonmember' == accesspress_get_custom_field('_acp_protection'));
        ?>
 /> <?php 
        _e('Does not have Member Access to', 'premise');
        ?>
</label>
		</p>

		<p><?php 
        _e('Choose the access level(s):', 'premise');
        ?>
</p>
		<p>
			<?php 
        echo accesspress_get_access_level_checklist(array('name' => 'accesspress_post_meta[_acp_access_levels][]', 'selected' => get_post_meta($post->ID, '_acp_access_levels', true), 'style' => 'style="width: auto;"'));
        ?>
		</p>

	<?php 
    }
Esempio n. 2
0
_e('Delay access to this file by X days after signup.', 'premise');
?>
</p>
</div>

<div class="form-field">
	<label><?php 
_e('Access Level(s)', 'premise');
?>
</label>
	<p><?php 
_e('Choose the access level(s) the logged in member must have in order to access this file.', 'premise');
?>
</p>
	<p>
		<?php 
echo accesspress_get_access_level_checklist(array('name' => 'create_link[access-levels][]', 'style' => 'style="width: auto;"'));
?>
	</p>
</div>

<p class="submit"><?php 
submit_button(__('Add New Link', 'premise'), 'secondary', 'submit', false);
?>
</p>
</form></div>

</div>
</div><!-- /col-left -->

</div><!-- /col-container -->
Esempio n. 3
0
_e('Delay access to this file by X days after signup.', 'premise');
?>
</p></td>
	</tr>
	
	<tr class="form-field">
		<th scope="row" valign="top"><?php 
_e('Access Level(s)', 'premise');
?>
</th>
		<td>
			<p class="description"><?php 
_e('Choose the access level(s) the logged in member must have in order to access this file.', 'premise');
?>
</p>
			<p><?php 
echo accesspress_get_access_level_checklist(array('name' => 'edit_link[access-levels][]', 'selected' => $info['access-levels'], 'style' => 'style="width: auto;"'));
?>
</p>
		</td>
	</tr>


</table>

<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php 
_e('Update', 'premise');
?>
" /></p>

</form>