/**
 * Prints Admin Feature Setting
 */
function grve_print_admin_feature_setting($item_type, $item_label, $item_name = '', $item_value = '')
{
    $setting_class = 'grve-setting';
    if ('label' == $item_type) {
        $setting_class = 'grve-setting grve-setting-label';
    }
    ?>
	<li>
		<div class="<?php 
    echo $setting_class;
    ?>
">
			<label><?php 
    echo $item_label;
    ?>
</label>
			<?php 
    if ('textfield' == $item_type) {
        ?>

			<input type="text" name="<?php 
        echo esc_attr($item_name);
        ?>
" value="<?php 
        echo esc_attr($item_value);
        ?>
"/>

			<?php 
    } elseif ('select-color' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_color_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-style' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_style_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-header-style' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_header_style_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-align' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_align_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-text-animation' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_text_animation_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-button-target' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_button_target_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-button-color' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_button_color_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-button-size' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_button_size_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-button-shape' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_button_shape_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-button-type' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_button_type_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-pattern-overlay' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_pattern_overlay_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-color-overlay' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_color_overlay_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-opacity-overlay' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_opacity_overlay_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-bg-position' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_bg_position_selection($item_value);
        ?>
				</select>

			<?php 
    } elseif ('select-bg-effect' == $item_type) {
        ?>

				<select name="<?php 
        echo esc_attr($item_name);
        ?>
" class="grve-modal-select">
					<?php 
        grve_print_media_bg_effect_selection($item_value);
        ?>
				</select>

			<?php 
    }
    ?>
		</div>
	</li>
<?php 
}
Ejemplo n.º 2
0
function grve_portfolio_options_box($post)
{
    wp_nonce_field('grve_nonce_save', 'grve_portfolio_save_nonce');
    $portfolio_description = get_post_meta($post->ID, 'grve_portfolio_description', true);
    $portfolio_details = get_post_meta($post->ID, 'grve_portfolio_details', true);
    $portfolio_layout = get_post_meta($post->ID, 'grve_portfolio_layout', true);
    $portfolio_sidebar = get_post_meta($post->ID, 'grve_portfolio_sidebar', true);
    $fixed_sidebar = get_post_meta($post->ID, 'grve_fixed_sidebar', true);
    $sidebar_bg_color = get_post_meta($post->ID, 'grve_sidebar_bg_color', true);
    $grve_main_navigation_menu = get_post_meta($post->ID, 'grve_main_navigation_menu', true);
    $grve_main_navigation_menu_type = get_post_meta($post->ID, 'grve_main_navigation_menu_type', true);
    $grve_go_to_section = get_post_meta($post->ID, 'grve_go_to_section', true);
    $grve_disable_sticky = get_post_meta($post->ID, 'grve_disable_sticky', true);
    $grve_disable_menu = get_post_meta($post->ID, 'grve_disable_menu', true);
    $grve_disable_menu_items = get_post_meta($post->ID, 'grve_disable_menu_items', true);
    $grve_disable_title = get_post_meta($post->ID, 'grve_disable_title', true);
    $grve_disable_safe_button = get_post_meta($post->ID, 'grve_disable_safe_button', true);
    $grve_disable_top_bar = get_post_meta($post->ID, 'grve_disable_top_bar', true);
    $grve_disable_portfolio_fields_bar = get_post_meta($post->ID, 'grve_disable_portfolio_fields_bar', true);
    $grve_disable_portfolio_recent = get_post_meta($post->ID, 'grve_disable_portfolio_recent', true);
    $grve_disable_comments = get_post_meta($post->ID, 'grve_disable_comments', true);
    $grve_disable_bottom_bar = get_post_meta($post->ID, 'grve_disable_bottom_bar', true);
    $grve_disable_footer = get_post_meta($post->ID, 'grve_disable_footer', true);
    $grve_disable_copyright = get_post_meta($post->ID, 'grve_disable_copyright', true);
    ?>
		<table class="form-table grve-metabox">
			<tbody>
				<tr class="grve-border-bottom">
					<th>
						<label for="grve-portfolio-description">
							<strong><?php 
    _e('Description', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Enter your portfolio description.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="text" id="grve-portfolio-description" class="grve-meta-text" name="grve_portfolio_description" value="<?php 
    echo esc_attr($portfolio_description);
    ?>
"/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-portfolio-details">
							<strong><?php 
    _e('Project Details', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Enter your project details.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<textarea id="grve-portfolio-details" name="grve_portfolio_details" cols="40" rows="5"><?php 
    echo $portfolio_details;
    ?>
</textarea>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-portfolio-layout">
							<strong><?php 
    _e('Layout', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select portfolio content and sidebar alignment.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Theme Options - Portfolio Options.', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_layout_selection($portfolio_layout, 'grve-portfolio-layout', 'grve_portfolio_layout');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-portfolio-sidebar">
							<strong><?php 
    _e('Sidebar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select portfolio sidebar.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Theme Options - Portfolio Options.', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_sidebar_selection($portfolio_sidebar, 'grve-portfolio-sidebar', 'grve_portfolio_sidebar');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-sidebar-color">
							<strong><?php 
    _e('Sidebar Background Color', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select sidebar background color.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Appearance - Customize - Colors - Sidebars - Portfolio Sidebar Background Color', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<select id="grve-sidebar-bg-color" name="grve_sidebar_bg_color">
							<option value="" <?php 
    selected('', $sidebar_bg_color);
    ?>
><?php 
    _e('Default', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<option value="none" <?php 
    selected('none', $sidebar_bg_color);
    ?>
><?php 
    _e('None', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<?php 
    grve_print_media_color_selection($sidebar_bg_color);
    ?>
						</select>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-fixed-sidebar">
							<strong><?php 
    _e('Fixed Sidebar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, sidebar will be fixed.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-fixed-sidebar" name="grve_fixed_sidebar" value="yes" <?php 
    checked($fixed_sidebar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-main-navigation-menu">
							<strong><?php 
    _e('Main Navigation Menu', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select alternative main navigation menu.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default: Menus - Theme Locations - Header Menu.', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_menu_selection($grve_main_navigation_menu, 'grve-main-navigation-menu', 'grve_main_navigation_menu', 'default');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-main-navigation-menu-type">
							<strong><?php 
    _e('Main Navigation Menu Type', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select main navigation menu type.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Appearance - Customize - Logo Background & Menu Type - Menu Type', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_menu_type_selection($grve_main_navigation_menu_type, 'grve-main-navigation-menu-type', 'grve_main_navigation_menu_type');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-go-to-section">
							<strong><?php 
    _e('Go To Section', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, all sections with Section ID will be enhanced with navigation.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-go-to-section" name="grve_go_to_section" value="yes" <?php 
    checked($grve_go_to_section, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-sticky-header">
							<strong><?php 
    _e('Disable Sticky Header', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, sticky header will be disabled.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-sticky-header" name="grve_disable_sticky" value="yes" <?php 
    checked($grve_disable_sticky, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-menu">
							<strong><?php 
    _e('Disable Main Menu', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, main menu will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-menu" name="grve_disable_menu" value="yes" <?php 
    checked($grve_disable_menu, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-menu-items">
							<strong><?php 
    _e('Disable Main Menu Items', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, main menu items will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-menu-items" name="grve_disable_menu_items" value="yes" <?php 
    checked($grve_disable_menu_items, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-title">
							<strong><?php 
    _e('Disable Title/Description', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, title and decription will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-title" name="grve_disable_title" value="yes" <?php 
    checked($grve_disable_title, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-safe-button">
							<strong><?php 
    _e('Disable Safe Button', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, safe button will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-safe-button" name="grve_disable_safe_button" value="yes" <?php 
    checked($grve_disable_safe_button, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-top-bar">
							<strong><?php 
    _e('Disable Top Bar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, top bar will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-top-bar" name="grve_disable_top_bar" value="yes" <?php 
    checked($grve_disable_top_bar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-portfolio-fields-bar">
							<strong><?php 
    _e('Disable Fields Bar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, fields bar will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-portfolio-fields-bar" name="grve_disable_portfolio_fields_bar" value="yes" <?php 
    checked($grve_disable_portfolio_fields_bar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-portfolio-recent">
							<strong><?php 
    _e('Disable Recent Entries', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, recent entries will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-portfolio-recent" name="grve_disable_portfolio_recent" value="yes" <?php 
    checked($grve_disable_portfolio_recent, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-comments">
							<strong><?php 
    _e('Disable Comments', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, comments will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-comments" name="grve_disable_comments" value="yes" <?php 
    checked($grve_disable_comments, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-bottom-bar">
							<strong><?php 
    _e('Disable Bottom Bar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, bottom bar will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-bottom-bar" name="grve_disable_bottom_bar" value="yes" <?php 
    checked($grve_disable_bottom_bar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-footer">
							<strong><?php 
    _e('Disable Footer Widgets', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, footer widgets will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-footer" name="grve_disable_footer" value="yes" <?php 
    checked($grve_disable_footer, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-copyright">
							<strong><?php 
    _e('Disable Footer Copyright', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, footer copyright area will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-copyright" name="grve_disable_copyright" value="yes" <?php 
    checked($grve_disable_copyright, 'yes');
    ?>
/>
					</td>
				</tr>
			</tbody>
		</table>


	<?php 
}
Ejemplo n.º 3
0
function grve_event_layout_options_box($post)
{
    wp_nonce_field('grve_nonce_save', 'grve_event_save_nonce');
    $event_layout = get_post_meta($post->ID, 'grve_event_layout', true);
    $event_sidebar = get_post_meta($post->ID, 'grve_event_sidebar', true);
    $fixed_sidebar = get_post_meta($post->ID, 'grve_fixed_sidebar', true);
    $sidebar_bg_color = get_post_meta($post->ID, 'grve_sidebar_bg_color', true);
    $grve_disable_bottom_bar = get_post_meta($post->ID, 'grve_disable_bottom_bar', true);
    $grve_disable_footer = get_post_meta($post->ID, 'grve_disable_footer', true);
    ?>
		<table class="form-table grve-metabox">
			<tbody>
				<tr>
					<th>
						<label for="grve-event-layout">
							<strong><?php 
    _e('Layout', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select event content and sidebar alignment.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Theme Options - Event Calendar Options - Single Event', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_layout_selection($event_layout, 'grve-event-layout', 'grve_event_layout');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-event-sidebar">
							<strong><?php 
    _e('Sidebar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select event sidebar.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Theme Options - Event Calendar Options - Single Event', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_sidebar_selection($event_sidebar, 'grve-event-sidebar', 'grve_event_sidebar');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-sidebar-color">
							<strong><?php 
    _e('Sidebar Background Color', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select sidebar background color.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default: None', GRVE_THEME_TRANSLATE);
    ?>
</strong>				
							</span>
						</label>
					</th>
					<td>
						<select id="grve-sidebar-bg-color" name="grve_sidebar_bg_color">
							<option value=""><?php 
    _e('Default', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<option value="none"><?php 
    _e('None', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<?php 
    grve_print_media_color_selection($sidebar_bg_color);
    ?>
						</select>
					</td>
				</tr>	
				<tr>
					<th>
						<label for="grve-fixed-sidebar">
							<strong><?php 
    _e('Fixed Sidebar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, sidebar will be fixed.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-fixed-sidebar" name="grve_fixed_sidebar" value="yes" <?php 
    checked($fixed_sidebar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-bottom-bar">
							<strong><?php 
    _e('Disable Bottom Bar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, bottom bar will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-bottom-bar" name="grve_disable_bottom_bar" value="yes" <?php 
    checked($grve_disable_bottom_bar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-footer">
							<strong><?php 
    _e('Disable Footer Widgets', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, footer widgets will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-footer" name="grve_disable_footer" value="yes" <?php 
    checked($grve_disable_footer, 'yes');
    ?>
/>
					</td>
				</tr>
			</tbody>
		</table>


	<?php 
}
Ejemplo n.º 4
0
?>
				</select>
			</div>
		</div>
	</script>

	<script type="text/html" id='grve-select-color-template'>
		<div class="grve-modal-element-container">
			<div class="grve-modal-element grve-modal-element-left">
				<span class="grve-modal-label"><%= title %></span>
				<span class="grve-modal-description"><%= desc %></span>
			</div>
			<div class="grve-modal-element grve-modal-element-left">
			<select name="<%= name %>" data-meta-id="<%= id %>" data-meta-value="<%=value%>" class="grve-modal-select">
				<?php 
grve_print_media_color_selection();
?>
			</select>
			</div>
		</div>
	</script>

	<script type="text/html" id='grve-select-bg-position-template'>
		<div class="grve-modal-element-container">
			<div class="grve-modal-element grve-modal-element-left">
				<span class="grve-modal-label"><%= title %></span>
				<span class="grve-modal-description"><%= desc %></span>
			</div>
			<div class="grve-modal-element grve-modal-element-left">
			<select name="<%= name %>" data-meta-id="<%= id %>" data-meta-value="<%=value%>" class="grve-modal-select">
				<?php 
Ejemplo n.º 5
0
function grve_page_options_box($post)
{
    wp_nonce_field('grve_nonce_save', 'grve_page_save_nonce');
    $page_description = get_post_meta($post->ID, 'grve_page_description', true);
    $page_layout = get_post_meta($post->ID, 'grve_page_layout', true);
    $page_sidebar = get_post_meta($post->ID, 'grve_page_sidebar', true);
    $fixed_sidebar = get_post_meta($post->ID, 'grve_fixed_sidebar', true);
    $sidebar_bg_color = get_post_meta($post->ID, 'grve_sidebar_bg_color', true);
    $page_navigation_menu = get_post_meta($post->ID, 'grve_page_navigation_menu', true);
    $grve_main_navigation_menu = get_post_meta($post->ID, 'grve_main_navigation_menu', true);
    $grve_main_navigation_menu_type = get_post_meta($post->ID, 'grve_main_navigation_menu_type', true);
    $grve_go_to_section = get_post_meta($post->ID, 'grve_go_to_section', true);
    $grve_disable_sticky = get_post_meta($post->ID, 'grve_disable_sticky', true);
    $grve_disable_menu = get_post_meta($post->ID, 'grve_disable_menu', true);
    $grve_disable_menu_items = get_post_meta($post->ID, 'grve_disable_menu_items', true);
    $grve_disable_title = get_post_meta($post->ID, 'grve_disable_title', true);
    $grve_disable_safe_button = get_post_meta($post->ID, 'grve_disable_safe_button', true);
    $grve_disable_content = get_post_meta($post->ID, 'grve_disable_content', true);
    $grve_disable_top_bar = get_post_meta($post->ID, 'grve_disable_top_bar', true);
    $grve_disable_bottom_bar = get_post_meta($post->ID, 'grve_disable_bottom_bar', true);
    $grve_disable_footer = get_post_meta($post->ID, 'grve_disable_footer', true);
    $grve_disable_copyright = get_post_meta($post->ID, 'grve_disable_copyright', true);
    ?>
		<table class="form-table grve-metabox">
			<tbody>
				<tr class="grve-border-bottom">
					<th>
						<label for="grve-page-description">
							<strong><?php 
    _e('Description', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Enter your page description.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="text" id="grve-page-description" class="grve-meta-text" name="grve_page_description" value="<?php 
    echo esc_attr($page_description);
    ?>
"/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-page-layout">
							<strong><?php 
    _e('Layout', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select page content and sidebar alignment.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<?php 
    if (grve_woocommerce_enabled() && $post->ID == wc_get_page_id('shop')) {
        ?>
								<strong><?php 
        _e('Default: Right Sidebar', GRVE_THEME_TRANSLATE);
        ?>
</strong>
								<?php 
    } else {
        ?>
								<strong><?php 
        _e('Default is configured in Theme Options - Page Options.', GRVE_THEME_TRANSLATE);
        ?>
</strong>
								<?php 
    }
    ?>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_layout_selection($page_layout, 'grve-page-layout', 'grve_page_layout');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-page-sidebar">
							<strong><?php 
    _e('Sidebar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select page sidebar.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<?php 
    if (grve_woocommerce_enabled() && $post->ID == wc_get_page_id('shop')) {
        ?>
								<strong><?php 
        _e('Default: Shop Overview Page', GRVE_THEME_TRANSLATE);
        ?>
</strong>
								<?php 
    } else {
        ?>
								<strong><?php 
        _e('Default is configured in Theme Options - Page Options.', GRVE_THEME_TRANSLATE);
        ?>
</strong>
								<?php 
    }
    ?>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_sidebar_selection($page_sidebar, 'grve-page-sidebar', 'grve_page_sidebar');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-sidebar-color">
							<strong><?php 
    _e('Sidebar Background Color', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select sidebar background color.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<?php 
    if (grve_woocommerce_enabled() && $post->ID == wc_get_page_id('shop')) {
        ?>
								<strong><?php 
        _e('Default: None', GRVE_THEME_TRANSLATE);
        ?>
</strong>
								<?php 
    } else {
        ?>
								<strong><?php 
        _e('Default is configured in Appearance - Customize - Colors - Sidebars - Page Sidebar Background Color.', GRVE_THEME_TRANSLATE);
        ?>
</strong>
								<?php 
    }
    ?>
							</span>
						</label>
					</th>
					<td>
						<select id="grve-sidebar-bg-color" name="grve_sidebar_bg_color">
							<option value="" <?php 
    selected('', $sidebar_bg_color);
    ?>
><?php 
    _e('Default', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<option value="none" <?php 
    selected('none', $sidebar_bg_color);
    ?>
><?php 
    _e('None', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<?php 
    grve_print_media_color_selection($sidebar_bg_color);
    ?>
						</select>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-fixed-sidebar">
							<strong><?php 
    _e('Fixed Sidebar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, sidebar will be fixed.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-fixed-sidebar" name="grve_fixed_sidebar" value="yes" <?php 
    checked($fixed_sidebar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-page-navigation-menu">
							<strong><?php 
    _e('Anchor Navigation Menu', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select page anchor navigation menu.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Only first level will be displayed.', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_menu_selection($page_navigation_menu, 'grve-page-navigation-menu', 'grve_page_navigation_menu');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-main-navigation-menu">
							<strong><?php 
    _e('Main Navigation Menu', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select alternative main navigation menu.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default: Menus - Theme Locations - Header Menu.', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_menu_selection($grve_main_navigation_menu, 'grve-main-navigation-menu', 'grve_main_navigation_menu', 'default');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-main-navigation-menu-type">
							<strong><?php 
    _e('Main Navigation Menu Type', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select main navigation menu type.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Appearance - Customize - Logo Background & Menu Type - Menu Type', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_menu_type_selection($grve_main_navigation_menu_type, 'grve-main-navigation-menu-type', 'grve_main_navigation_menu_type');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-go-to-section">
							<strong><?php 
    _e('Go To Section', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, all sections with Section ID will be enhanced with navigation.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-go-to-section" name="grve_go_to_section" value="yes" <?php 
    checked($grve_go_to_section, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-sticky-header">
							<strong><?php 
    _e('Disable Sticky Header', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, sticky header will be disabled.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-sticky-header" name="grve_disable_sticky" value="yes" <?php 
    checked($grve_disable_sticky, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-menu">
							<strong><?php 
    _e('Disable Main Menu', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, main menu will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-menu" name="grve_disable_menu" value="yes" <?php 
    checked($grve_disable_menu, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-menu-items">
							<strong><?php 
    _e('Disable Main Menu Items', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, main menu items will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-menu-items" name="grve_disable_menu_items" value="yes" <?php 
    checked($grve_disable_menu_items, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-title">
							<strong><?php 
    _e('Disable Title/Description', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, title and decription will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-title" name="grve_disable_title" value="yes" <?php 
    checked($grve_disable_title, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-safe-button">
							<strong><?php 
    _e('Disable Safe Button', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, safe button will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-safe-button" name="grve_disable_safe_button" value="yes" <?php 
    checked($grve_disable_safe_button, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-top-bar">
							<strong><?php 
    _e('Disable Top Bar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, top bar will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-top-bar" name="grve_disable_top_bar" value="yes" <?php 
    checked($grve_disable_top_bar, 'yes');
    ?>
/>
					</td>
				</tr>
				<?php 
    if (grve_woocommerce_enabled() && $post->ID == wc_get_page_id('shop')) {
        ?>
				<input type="hidden" name="grve_disable_content" value="" />
				<?php 
    } else {
        ?>
				<tr>
					<th>
						<label for="grve-disable-content">
							<strong><?php 
        _e('Disable Content Area', GRVE_THEME_TRANSLATE);
        ?>
</strong>
							<span>
								<?php 
        _e('If selected, content area will be hidden (including sidebar and comments).', GRVE_THEME_TRANSLATE);
        ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-content" name="grve_disable_content" value="yes" <?php 
        checked($grve_disable_content, 'yes');
        ?>
/>
					</td>
				</tr>
				<?php 
    }
    ?>
				<tr>
					<th>
						<label for="grve-disable-bottom-bar">
							<strong><?php 
    _e('Disable Bottom Bar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, bottom bar will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-bottom-bar" name="grve_disable_bottom_bar" value="yes" <?php 
    checked($grve_disable_bottom_bar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-footer">
							<strong><?php 
    _e('Disable Footer Widgets', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, footer widgets will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-footer" name="grve_disable_footer" value="yes" <?php 
    checked($grve_disable_footer, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-copyright">
							<strong><?php 
    _e('Disable Footer Copyright', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, footer copyright area will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-copyright" name="grve_disable_copyright" value="yes" <?php 
    checked($grve_disable_copyright, 'yes');
    ?>
/>
					</td>
				</tr>
			</tbody>
		</table>


	<?php 
}
Ejemplo n.º 6
0
function grve_post_options_box($post)
{
    wp_nonce_field('grve_nonce_save', 'grve_post_save_nonce');
    $post_layout = get_post_meta($post->ID, 'grve_post_layout', true);
    $post_sidebar = get_post_meta($post->ID, 'grve_post_sidebar', true);
    $fixed_sidebar = get_post_meta($post->ID, 'grve_fixed_sidebar', true);
    $grve_disable_title = get_post_meta($post->ID, 'grve_disable_title', true);
    $grve_disable_media = get_post_meta($post->ID, 'grve_disable_media', true);
    $grve_disable_bottom_bar = get_post_meta($post->ID, 'grve_disable_bottom_bar', true);
    $sidebar_bg_color = get_post_meta($post->ID, 'grve_sidebar_bg_color', true);
    $grve_disable_footer = get_post_meta($post->ID, 'grve_disable_footer', true);
    $grve_post_title_bg = get_post_meta($post->ID, 'grve_post_title_bg', true);
    $grve_post_title_bg_mode = grve_array_value($grve_post_title_bg, 'mode');
    $grve_post_title_bg_image = grve_array_value($grve_post_title_bg, 'image');
    $grve_post_title_bg_position = grve_array_value($grve_post_title_bg, 'position', 'center-center');
    $grve_post_title_bg_height = grve_array_value($grve_post_title_bg, 'height', '350');
    ?>
		<table class="form-table grve-metabox">
			<tbody>
				<tr>
					<th>
						<label for="grve-post-layout">
							<strong><?php 
    _e('Layout', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select post content and sidebar alignment.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Theme Options - Blog Options - Single Post.', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_layout_selection($post_layout, 'grve-post-layout', 'grve_post_layout');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-post-sidebar">
							<strong><?php 
    _e('Sidebar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select post sidebar.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Theme Options - Blog Options - Single Post.', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<?php 
    grve_print_sidebar_selection($post_sidebar, 'grve-post-sidebar', 'grve_post_sidebar');
    ?>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-sidebar-color">
							<strong><?php 
    _e('Sidebar Background Color', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select sidebar background color.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Default is configured in Appearance - Customize - Colors - Sidebars - Post Sidebar Background Color', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<select id="grve-sidebar-bg-color" name="grve_sidebar_bg_color">
							<option value="" <?php 
    selected('', $sidebar_bg_color);
    ?>
><?php 
    _e('Default', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<option value="none" <?php 
    selected('none', $sidebar_bg_color);
    ?>
><?php 
    _e('None', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<?php 
    grve_print_media_color_selection($sidebar_bg_color);
    ?>
						</select>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-fixed-sidebar">
							<strong><?php 
    _e('Fixed Sidebar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, sidebar will be fixed.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-fixed-sidebar" name="grve_fixed_sidebar" value="yes" <?php 
    checked($fixed_sidebar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-title">
							<strong><?php 
    _e('Disable Title', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, title will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-title" name="grve_disable_title" value="yes" <?php 
    checked($grve_disable_title, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-media">
							<strong><?php 
    _e('Disable Media Area', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, media area will be hidden in single post.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-media" name="grve_disable_media" value="yes" <?php 
    checked($grve_disable_media, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-bottom-bar">
							<strong><?php 
    _e('Disable Bottom Bar', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, bottom bar will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-bottom-bar" name="grve_disable_bottom_bar" value="yes" <?php 
    checked($grve_disable_bottom_bar, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-disable-footer">
							<strong><?php 
    _e('Disable Footer Widgets', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('If selected, footer widgets will be hidden.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="checkbox" id="grve-disable-footer" name="grve_disable_footer" value="yes" <?php 
    checked($grve_disable_footer, 'yes');
    ?>
/>
					</td>
				</tr>
				<tr>
					<th>
						<label for="grve-post-title-bg-mode">
							<strong><?php 
    _e('Title Background Image', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select title background mage.', GRVE_THEME_TRANSLATE);
    ?>
								<br/>
								<strong><?php 
    _e('Note: Featured/Custom title is not available for simple style.', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							</span>
						</label>
					</th>
					<td>
						<select id="grve-post-title-bg-mode" name="grve_post_title_bg_mode">
							<option value="" <?php 
    selected('', $grve_post_title_bg_mode);
    ?>
><?php 
    _e('Default', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<option value="featured" <?php 
    selected('featured', $grve_post_title_bg_mode);
    ?>
><?php 
    _e('Featured', GRVE_THEME_TRANSLATE);
    ?>
</option>
							<option value="custom" <?php 
    selected('custom', $grve_post_title_bg_mode);
    ?>
><?php 
    _e('Custom', GRVE_THEME_TRANSLATE);
    ?>
</option>
						</select>
					</td>
				</tr>
				<tr class="grve-post-title-bg grve-post-title-bg-position"<?php 
    if ("" == $grve_post_title_bg_mode) {
        ?>
 style="display:none;" <?php 
    }
    ?>
>
					<th>
						<label for="grve-post-title-bg-position">
							<strong><?php 
    _e('Title Background Image Position', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select the background position.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<select id="grve-post-title-bg-position" name="grve_post_title_bg_position">
							<?php 
    grve_print_media_bg_position_selection($grve_post_title_bg_position);
    ?>
						</select>
					</td>
				</tr>
				<tr class="grve-post-title-bg grve-post-title-bg-height"<?php 
    if ("" == $grve_post_title_bg_mode) {
        ?>
 style="display:none;" <?php 
    }
    ?>
>
					<th>
						<label for="grve-post-title-bg-height">
							<strong><?php 
    _e('Title Height', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Select height of title. Default is 350.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="text" id="grve-post-title-bg-height" name="grve_post_title_bg_height" value="<?php 
    echo esc_attr($grve_post_title_bg_height);
    ?>
"/>
					</td>
				</tr>
				<tr class="grve-post-title-bg grve-post-title-bg-image"<?php 
    if ("custom" != $grve_post_title_bg_mode) {
        ?>
 style="display:none;" <?php 
    }
    ?>
>
					<th>
						<label for="grve-post-title-bg-image">
							<strong><?php 
    _e('Title Bakcground image URL', GRVE_THEME_TRANSLATE);
    ?>
</strong>
							<span>
								<?php 
    _e('Upload the background image.', GRVE_THEME_TRANSLATE);
    ?>
							</span>
						</label>
					</th>
					<td>
						<input type="text" id="grve-post-title-bg-image" class="grve-upload-simple-media-field grve-meta-text" name="grve_post_title_bg_image" value="<?php 
    echo esc_attr($grve_post_title_bg_image);
    ?>
"/>
						<input type="button" data-media-type="image" class="grve-upload-simple-media-button button" value="<?php 
    _e('Upload Image', GRVE_THEME_TRANSLATE);
    ?>
"/>
						<input type="button" class="grve-remove-simple-media-button button" value="<?php 
    _e('Remove', GRVE_THEME_TRANSLATE);
    ?>
"/>
					</td>
				</tr>
			</tbody>
		</table>


	<?php 
}