<?php

get_template_part('includes/post-standard-header');
?>

	<?php 
if ($media = om_get_audio_player(get_the_ID())) {
    ?>
		<div class="post-media">
			<?php 
    echo om_esc_sg($media);
    ?>
		</div>
	<?php 
}
?>
	
<?php 
get_template_part('includes/post-standard-footer');
Esempio n. 2
0
function om_options_page()
{
    $options = om_get_options_template();
    ?>

	<div class="wrap" id="om-container">
		<div id="om-popup-save" class="om-popup"><div><?php 
    _e('Options Updated', 'om_theme');
    ?>
</div></div>
		<div id="om-popup-reset" class="om-popup"><div><?php 
    _e('Options Reset', 'om_theme');
    ?>
</div></div>
		<div id="om-popup-import-ok" class="om-popup"><div><?php 
    _e('Options Imported', 'om_theme');
    ?>
</div></div>
		<div id="om-popup-import-error" class="om-popup"><div><?php 
    _e('Sorry, there has been an error while import', 'om_theme');
    ?>
</div></div>
		<form action="" enctype="multipart/form-data" id="om-options-form">
			<div id="om-container-header">
				<div class="icon-options"></div>
				<div class="logo">
					<h2><?php 
    _e('Theme Options', 'om_theme');
    ?>
</h2>
				</div>
				<div class="clear"></div>
		   </div>
			<?php 
    $options_html = om_options_generator($options);
    ?>
			<div class="save_bar top">
				<img style="display:none;margin-right:7px;vertical-align:middle" src="<?php 
    echo TEMPLATE_DIR_URI;
    ?>
/admin/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." />
				<input type="submit" value="<?php 
    _e('Save All Changes', 'om_theme');
    ?>
" class="button-primary" />
			</div>
			<div id="om-container-pane">
				<div id="om-options-sections">
					<ul>
						<?php 
    echo om_esc_sg($options_html['menu']);
    ?>
					</ul>
				</div>
				<div id="om-options-content">
					<?php 
    echo om_esc_sg($options_html['options']);
    ?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="save_bar bottom">
				<input type="button" value="<?php 
    _e('Reset Options', 'om_theme');
    ?>
" class="button submit-button reset-button" onclick="if(confirm('Click OK to reset. Any settings will be lost!')){document.getElementById('om-options-form-reset').submit()}">
				<img style="display:none;margin-right:7px;vertical-align:middle" src="<?php 
    echo TEMPLATE_DIR_URI;
    ?>
/admin/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." />
				<input type="submit" value="<?php 
    _e('Save All Changes', 'om_theme');
    ?>
" class="button-primary" />
			</div>
		</form>
		<form action="<?php 
    echo esc_attr($_SERVER['REQUEST_URI']);
    ?>
" method="post" id="om-options-form-reset">
			<input type="hidden" name="om_options_action" value="reset" />
		</form>
	</div>
	
	<div class="clear"></div>
	<p><a href="#" onclick="jQuery('#om_options_import_export').slideToggle(200);return false;"><?php 
    _e('(+) Export / Import Options', 'om_theme');
    ?>
</a></p>
	
	<div id="om_options_import_export" style="display:none;border-left:1px solid #eee;padding-left:20px">
		<b><?php 
    _e('Export:', 'om_theme');
    ?>
</b>
		<form action="<?php 
    echo esc_attr($_SERVER['REQUEST_URI']);
    ?>
" method="post" target="_blank">
			<input type="submit" value="<?php 
    _e('Download Export File', 'om_theme');
    ?>
" class="button" />
			<input type="hidden" name="om_options_action" value="export" />
		</form>
	
		<br />
		<b><?php 
    _e('Import:', 'om_theme');
    ?>
</b>
		<form action="<?php 
    echo esc_attr($_SERVER['REQUEST_URI']);
    ?>
" method="post" enctype="multipart/form-data">
			<?php 
    _e('Choose a file from your computer:', 'om_theme');
    ?>
			<input type="file" name="import_file" size="25" />
			<input type="submit" value="<?php 
    _e('Upload and Import', 'om_theme');
    ?>
" class="button" />
			<input type="hidden" name="om_options_action" value="import" />
		</form>
	</div>

	<div class="clear"></div>
<?php 
}
<?php

get_template_part('includes/post-single-header');
?>

	<?php 
$gallery = om_get_custom_gallery(get_the_ID(), array('image_size' => 'post-media-large', 'show_captions' => get_post_meta(get_the_ID(), OM_THEME_SHORT_PREFIX . 'gallery_captions', true) == 'true', 'mode' => get_post_meta(get_the_ID(), OM_THEME_SHORT_PREFIX . 'gallery_mode', true)));
if ($gallery) {
    ?>
		<div class="post-media">
			<?php 
    echo om_esc_sg($gallery);
    ?>
		</div>
	<?php 
}
?>

<?php 
get_template_part('includes/post-single-footer');
Esempio n. 4
0
            ?>
				<div class="header-slider layout-<?php 
            echo esc_attr($slider['layout']);
            ?>
 clearfix">
					<div class="container">
						<div class="container-inner">
							<?php 
            echo om_esc_sg($slider_html);
            ?>
                            <a href="#post-85"><div class="down-arrow"><i class="fa fa-angle-down"></i></div></a>
						</div>
					</div>
				</div>
				<?php 
        } else {
            ?>
				<div class="header-slider layout-<?php 
            echo esc_attr($slider['layout']);
            ?>
 clearfix">
					<?php 
            echo om_esc_sg($slider_html);
            ?>
                    <a href="#post-85"><div class="down-arrow"><i class="fa fa-angle-down"></i></div></a>
                </div>
				<?php 
        }
    }
    unset($slider_html);
}