コード例 #1
0
ファイル: wps-admin-menu.php プロジェクト: KimcoBlogSC/Blog
<?php

$menus = wps_get_menus();
?>

<div class="wps-admin-option-group" id="wps-admin-menu">
	
	<div class="wps-admin-left-column metabox-holder">
		
		<p class="wps-admin-input-checkbox wps-admin-menu-enable">
			<input type="hidden" name="enable_menu" value="0"/>
			<input type="checkbox" name="enable_menu" id="enable-menu" value="1" <?php 
echo wps_checkbox_text('enable_menu');
?>
/><label for="enable-menu">Enable drop-down pages/links menu.</label>
		</p>
		
		<!-- change the menu -->
		<div id="menu-options" class="postbox">
			<h3><span>Available Menus</span></h3>
			<div class="inside">
				<p>To change the mobile menu, select whether you'd like to use a current menu or a create a new one.</p>
				<p>
					<select id="site-menu" style="width:100%;">
						<option value=""></option>
						<option value="new">New Custom Menu</option>
						<?php 
foreach ($menus as $menu) {
    ?>
						
						<option value="<?php 
コード例 #2
0
				<input type="checkbox" name="show_post_categories" id="show_post_categories" value="1" <?php 
echo wps_checkbox_text('show_post_categories');
?>
/><label for="show_post_categories">Show categories when viewing a post</label>
			</div>
			<div class="wps-admin-input-checkbox">
				<input type="hidden" name="show_thumbnails" value="0"/>
				<input type="checkbox" name="show_thumbnails" id="show_thumbnails" value="1" <?php 
echo wps_checkbox_text('show_thumbnails');
?>
/><label for="show_thumbnails">Show image thumbnails in post listings (not applicable on some themes)</label>
			</div>
            <div class="wps-admin-input-checkbox">
                <input type="hidden" name="show_featured_image_in_post" value="0"/>
                <input type="checkbox" name="show_featured_image_in_post" id="show_featured_image_in_post" value="1" <?php 
echo wps_checkbox_text('show_featured_image_in_post');
?>
/><label for="show_featured_image_in_post">Show featured images on post pages</label>
            </div>
		</div>
	</div>
		
	<div class="wps-admin-section">
		<div class="wps-admin-section-title">
			<span>Analytics</span>
		</div>
		<div class="wps-admin-section-input-group">
			<div class="wps-admin-section-input">
				<select name="analytics_type" id="analytics_type">
					<option value="none" <?php 
echo wps_get_option('analytics_type') == 'none' ? 'selected="selected"' : null;