コード例 #1
0
ファイル: functions.php プロジェクト: proudchild/sdmblog
/**
 * Output for the fields above
 * @param array $options - current options set
 */
function simple_layout_fields_output($post)
{
    // get the stored values of the options implemented by this theme
    $theme_options = fa_get_theme_options(__FILE__, $post);
    $theme_details = fa_theme_simple_details(false);
    ?>
<h2><?php 
    printf(__('%s : theme specific settings', 'fapro'), $theme_details['name']);
    ?>
</h2>
<table class="form-table">
	<tbody>
		<tr>
			<th><label for="simple_timer"><?php 
    _e('Show timer', 'fapro');
    ?>
:</label></th>
			<td>
				<input id="simple_timer" type="checkbox" name="<?php 
    fa_theme_var_name('show_timer', __FILE__);
    ?>
" value="1" <?php 
    fa_checked($theme_options['show_timer']);
    ?>
 />
				<span class="description"><?php 
    _e('When checked, will display the bar timer when slider is set to auto slide.', 'fapro');
    ?>
</span>
			</td>
		</tr>
	</tbody>
</table>
<?php 
}
コード例 #2
0
							</td>
						</tr>
						
						<?php 
if (fa_is_wptouch_installed()) {
    ?>
						<tr valign="top">
							<th scope="row">
								<label for="load_in_wptouch"><?php 
    _e('Load in WPtouch', 'fapro');
    ?>
:</label>
							</th>
							<td>
								<input type="checkbox" name="load_in_wptouch" id="load_in_wptouch" value="1"<?php 
    fa_checked($settings['load_in_wptouch']);
    ?>
 />
								<span class="description">
									<?php 
    _e('By enabling this option you will allow slideshows to be displayed and run into your WPtouch mobile version website.', 'fapro');
    ?>
<br />
									<?php 
    if (!fa_is_wptouch_exclusive()) {
        ?>
										<?php 
        _e('Please note that if you have enabled WPtouch <strong>Restricted Mode</strong> setting, no slideshows will be displayed into your website mobile version.', 'fapro');
        ?>
									<?php 
    } else {
コード例 #3
0
						<label for="content-image-wp"><?php 
_e('Image size', 'fapro');
?>
:</label>						
					</th>
					<td>
						<input class="toggler" data-show="wp-image" data-hide="custom-image" autocomplete="off" type="radio" name="content_image[sizing]" id="content-image-wp" value="wp"<?php 
fa_checked($options['content_image']['sizing'] == 'wp');
?>
 />
						<label for="content-image-wp"><?php 
_e('use WordPress image sizes', 'fapro');
?>
</label><br />
						<input class="toggler"  data-show="custom-image" data-hide="wp-image" autocomplete="off"  type="radio" name="content_image[sizing]" id="content-image-custom" value="custom"<?php 
fa_checked($options['content_image']['sizing'] == 'custom');
?>
 />
						<label for="content-image-custom"><?php 
_e('use custom image size', 'fapro');
?>
</label>						
					</td>
				</tr>
				<?php 
$show_wp = !$show_image ? $show_image : $options['content_image']['sizing'] == 'wp';
?>
				<tr class="image-options wp-image" <?php 
fa_hide(!$show_wp);
?>
>
コード例 #4
0
_e('Slider will be displayed on all WordPress pages.', 'fapro');
?>
						</span>
					</td>
				</tr>
				<tr class="publish-settings" <?php 
fa_hide($publish_everywhere);
?>
>
					<th><label for="display-all-categories"><?php 
_e('Display on all categories/taxonomies', 'fapro');
?>
:</label></th>
					<td>
						<input autocomplete="off" type="checkbox" name="display[all_categories]" class="toggler" data-toggle="publish-categories" data-action="hide" value="1" id="display-all-categories" <?php 
fa_checked($options['display']['all_categories']);
?>
 />
						<span class="description">
							<?php 
_e('Slider will be displayed on all WordPress categories and taxonomies.', 'fapro');
?>
						</span>
					</td>
				</tr>
				<?php 
$publish_pages = $publish_everywhere ? $publish_everywhere : $options['display']['all_pages'];
?>
				<tr class="publish-settings publish-pages" <?php 
fa_hide($publish_pages);
?>