web/wp-content/plugins/wptouch/html/page-area.php
changeset 136 bde1974c263b
equal deleted inserted replaced
135:53cff4b4a802 136:bde1974c263b
       
     1 <?php global $wptouch_settings; ?>
       
     2 
       
     3 <div class="metabox-holder">
       
     4 	<div class="postbox">
       
     5 		<h3><span class="page-options">&nbsp;</span><?php _e( "Logo Icon // Menu Items &amp; Pages Icons", "wptouch" ); ?></h3>
       
     6 
       
     7 			<div class="left-content">
       
     8 				<h4><?php _e( "Logo / Home Screen Icon <br />&amp; Default Menu Items", "wptouch" ); ?></h4>
       
     9 				<p><?php _e( "Choose the logo displayed in the header (also your bookmark icon), and the pages you want included in the WPtouch drop-down menu.", "wptouch" ); ?> 						
       
    10 				<strong><?php _e( "Remember, only those checked will be shown.", "wptouch" ); ?></strong></p>
       
    11 				<p><?php _e( "Enable/Disable default items in the WPtouch site menu.", "wptouch"); ?></p>
       
    12 <br /><br />
       
    13 				<h4><?php _e( "Pages + Icons", "wptouch" ); ?></h4>
       
    14 				<p><?php _e( "Next, select the icons from the lists that you want to pair with each page menu item.", "wptouch" ); ?></p>
       
    15 				<p><?php _e( "You can also decide if pages are listed by the page order (ID) in WordPress, or by name (default).", "wptouch" ); ?></p>
       
    16 			</div><!-- left-content -->
       
    17 		
       
    18 	<div class="right-content wptouch-pages">
       
    19 		<ul>
       
    20 			<li><select name="enable_main_title">
       
    21 					<?php bnc_get_icon_drop_down_list( $wptouch_settings['main_title']); ?>
       
    22 				</select>
       
    23 				<?php _e( "Logo &amp; Home Screen Bookmark Icon", "wptouch" ); ?>
       
    24 				<br />
       
    25 			</li>
       
    26 		</ul>
       
    27 		<ul>
       
    28 			<li><input type="checkbox" class="checkbox" name="enable-main-home" <?php if (isset($wptouch_settings['enable-main-home']) && $wptouch_settings['enable-main-home'] == 1) echo('checked'); ?> /><label for="enable-main-home"><?php _e( "Enable Home Menu Item", "wptouch" ); ?></label></li>
       
    29 			<li><input type="checkbox" class="checkbox" name="enable-main-rss" <?php if (isset($wptouch_settings['enable-main-rss']) && $wptouch_settings['enable-main-rss'] == 1) echo('checked'); ?> /><label for="enable-main-rss"><?php _e( "Enable RSS Menu Item", "wptouch" ); ?></label></li>
       
    30 			<li><input type="checkbox" class="checkbox" name="enable-main-email" <?php if (isset($wptouch_settings['enable-main-email']) && $wptouch_settings['enable-main-email'] == 1) echo('checked'); ?> /><label for="enable-main-email"><?php _e( "Enable Email Menu Item", "wptouch" ); ?> <small>(<?php _e( "Uses default WordPress admin e-mail", "wptouch" ); ?>)</small></label><br /><br /><br /></li>
       
    31 		
       
    32 		<?php if ( count( $pages ) ) { ?>
       
    33 			<li><br /><br />
       
    34 			<select name="sort-order">
       
    35 					<option value="name"<?php if ( $wptouch_settings['sort-order'] == 'name') echo " selected"; ?>><?php _e( "By Name", "wptouch" ); ?></option>
       
    36 					<option value="page"<?php if ( $wptouch_settings['sort-order'] == 'page') echo " selected"; ?>><?php _e( "By Page ID", "wptouch" ); ?></option>
       
    37 				</select>
       
    38 				<?php _e( "Menu List Sort Order", "wptouch" ); ?>
       
    39 			</li>
       
    40 			<?php } ?>
       
    41 			<?php $pages = bnc_get_pages_for_icons(); ?>
       
    42 			<?php if ( count( $pages ) ) { ?>
       
    43 				<?php foreach ( $pages as $page ) { ?>
       
    44 				<li><span>
       
    45 						<input class="checkbox" type="checkbox" name="enable_<?php echo $page->ID; ?>"<?php if ( isset( $wptouch_settings[$page->ID] ) ) echo " checked"; ?> />
       
    46 						<label class="wptouch-page-label" for="enable_<?php echo $page->ID; ?>"><?php echo $page->post_title; ?> <?php _e( "Page", "wptouch" ); ?></label>
       
    47 					</span>
       
    48 					<select class="page-select" name="icon_<?php echo $page->ID; ?>">
       
    49 						<?php bnc_get_icon_drop_down_list( $wptouch_settings[ $page->ID ]); ?>
       
    50 					</select>
       
    51 					
       
    52 				</li>
       
    53 				<?php } ?>
       
    54 			<?php } else { ?>
       
    55 				<strong ><?php _e( "You have no pages yet. Create some first!", "wptouch" ); ?></strong>
       
    56 			<?php } ?>
       
    57 		</ul>
       
    58 	</div><!-- right-content -->		
       
    59 	<div class="bnc-clearer"></div>
       
    60 	</div><!-- postbox -->
       
    61 </div><!-- metabox -->