Exemple #1
0
/**
 * Outputs the current template content.
 *
 * @return void
 * @since 1.3
 */
function momtaz_template_content()
{
    ?>

	<section id="primary-content">

		<article<?php 
    momtaz_atts('entry', array('id' => 'post-0', 'class' => 'hentry not-found error-404'));
    ?>
>

			<header<?php 
    momtaz_atts('entry-header', array('class' => 'entry-header'));
    ?>
>
				<h1<?php 
    momtaz_atts('entry-title', array('class' => 'entry-title'));
    ?>
><?php 
    esc_html_e('Not found', 'momtaz');
    ?>
</h1>
			</header>

			<div<?php 
    momtaz_atts('entry-content', array('class' => 'entry-content'));
    ?>
>
				<p><?php 
    esc_html_e('Apologies, but the page you requested could not be found. Perhaps searching will help.', 'momtaz');
    ?>
</p>
				<?php 
    get_search_form();
    ?>
			</div>

		</article>

	</section> <!-- #primary-content --><?php 
}
/**
 * Entry Footer Template
 *
 * This template must be included in <article> tag .
 *
 * @package Momtaz
 * @subpackage Template
 */
if (in_array(get_post_type(), array('page', 'attachment'))) {
    return;
}
?>

<footer<?php 
momtaz_atts('entry-footer', array('class' => 'entry-meta entry-footer'));
?>
>

	<?php 
/*** Post Categories List *********************************************/
$post_category = get_the_category_list(_x(' , ', 'categories-list', 'momtaz'));
if ($post_category) {
    ?>

			<span class="category-links">

				<?php 
    printf(__('<span class="prep entry-utility-prep">Categories:</span> %s', 'momtaz'), $post_category);
    $show_sep = true;
    ?>
Exemple #3
0
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />
<meta name="viewport" content="width=device-width,initial-scale=1" />

<!--[if lt IE 9]>
	<script src="<?php 
echo esc_url(momtaz_theme_uri('content/scripts/html5shiv.min.js'));
?>
"></script>
<![endif]-->

<?php 
Momtaz_Zones::call('head');
?>
<!-- end Momtaz Head -->

<!-- WP Head -->
<?php 
wp_head();
?>
<!-- end WP Head -->
</head>

<body<?php 
momtaz_atts('body');
?>
>
<?php

/**
 * Comments Navigation Template
 *
 * @package Momtaz
 * @subpackage Template
 * @since Momtaz Theme 1.1
 */
if (get_option('page_comments') && get_comment_pages_count() > 1) {
    ?>

	<nav<?php 
    momtaz_atts('nav-comments', array('class' => 'navigation comment-navigation'));
    ?>
>

		<div class="previous"><?php 
    previous_comments_link(__('&larr; Older Comments', 'momtaz'));
    ?>
</div>
		<div class="next"><?php 
    next_comments_link(__('Newer Comments &rarr;', 'momtaz'));
    ?>
</div>

	</nav> <!-- .comment-navigation -->

<?php 
}
Exemple #5
0
</time></a>
				</div> <!-- .comment-datetime -->

			</header>

			<div class="comment-utility">
				<?php 
edit_comment_link(__('Edit', 'momtaz'), '<span class="edit-link">', '</span>');
?>
				<?php 
comment_reply_link(array('reply_text' => __('Reply <span>&darr;</span>', 'momtaz'), 'depth' => $comment_depth, 'max_depth' => $max_depth, 'before' => '<span class="reply-link">', 'after' => '</span>'));
?>
			</div> <!-- .comment-utility -->

			<div<?php 
momtaz_atts('comment-content', array('class' => 'comment-content'));
?>
>

				<?php 
if ($comment->comment_approved == 0) {
    ?>
					 <em class="comment-awaiting-moderation"><?php 
    esc_html_e('Your comment is awaiting moderation.', 'momtaz');
    ?>
</em>
				<?php 
}
?>

				<?php 
momtaz_atts('entry');
?>
>

	<?php 
momtaz_template_part('entry-header');
?>

	<div class="entry-body">

		<?php 
Momtaz_Zones::call('entry_content:before');
?>

		<div<?php 
momtaz_atts('entry-content', array('class' => 'entry-content'));
?>
>

			<?php 
if (momtaz_is_the_single(get_the_ID(), 'attachment')) {
    ?>

				<?php 
    if (wp_attachment_is_image()) {
        ?>

					<div class="entry-attachment">

						<div class="attachment attachment-image">
Exemple #7
0
/**
 * Primary Sidebar Template
 *
 * This template houses the HTML used for the 'Primary' sidebar.
 * It will first check if the sidebar is active before displaying anything.
 *
 * @package Momtaz
 * @subpackage Template
 * @since Momtaz Theme 1.1
 */
if (is_active_sidebar('primary')) {
    ?>

	<div<?php 
    momtaz_atts('sidebar', array('id' => 'sidebar'));
    ?>
>

		<?php 
    Momtaz_Zones::call('primary_sidebar:before');
    ?>

			<div id="primary-sidebar" class="widget-area">
				<?php 
    dynamic_sidebar('primary');
    ?>
			</div> <!-- #primary-sidebar -->

		<?php 
    Momtaz_Zones::call('primary_sidebar:after');
<?php

/**
 * Trackback Comment Template
 *
 * This template displays an individual trackback comment.
 *
 * @package Momtaz
 * @subpackage Template
 * @since Momtaz Theme 1.1
 */
?>
<li<?php 
momtaz_atts('comment');
?>
>

	<small><?php 
_e('Trackback:', 'momtaz');
?>
</small> <?php 
comment_author_link();
?>
	<?php 
edit_comment_link(__('Edit', 'momtaz'), '<span class="edit-link">', '</span>');
?>

<?php 
/* No closing. WordPress will know where to add it. */
<?php

/**
 * Primary Menu Template
 *
 * Displays the primary menu if it has active menu items.
 *
 * @package Momtaz
 * @subpackage Template
 * @since Momtaz Theme 1.0
 */
if (has_nav_menu('primary')) {
    Momtaz_Zones::call('primary_menu:before');
    ?>

	<nav<?php 
    momtaz_atts('nav-primary', array('id' => 'primary-menu', 'class' => 'menu-container'));
    ?>
>

		<?php 
    wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav-menu dropdown'));
    ?>

	</nav><?php 
    Momtaz_Zones::call('primary_menu:after');
}
<?php

/**
 * Main Header Template
 *
 * @package Momtaz
 * @subpackage Template
 * @since Momtaz Theme 1.3
 */
Momtaz_Zones::call('footer:before');
?>

<footer<?php 
momtaz_atts('footer', array('id' => 'footer'));
?>
>
	<p class="site-credits"><?php 
printf(__('Proudly powered by %1$s and %2$s Theme', 'momtaz'), momtaz_get_wp_link(), momtaz_get_theme_link(get_stylesheet()));
?>
</p>
</footer>

<?php 
Momtaz_Zones::call('footer:after');
Exemple #11
0
	<div class="entry-body">

		<?php 
Momtaz_Zones::call('entry_content:before');
?>

		<?php 
if (function_exists('get_the_image')) {
    get_the_image(array('before' => '<div class="entry-thumbnail">', 'after' => '</div><!-- .entry-thumbnail -->', 'image_class' => 'thumbnail', 'scan' => true, 'height' => 150, 'width' => 150));
}
// end if
?>

		<div<?php 
momtaz_atts('entry-summary', array('class' => 'entry-summary'));
?>
>
			<?php 
the_excerpt();
?>
		</div> <!-- .entry-summary -->

		<?php 
wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', 'momtaz') . '</span>', 'after' => '</div>'));
?>

		<?php 
Momtaz_Zones::call('entry_content:after');
?>
		<?php 
momtaz_template_header('main');
?>

		<?php 
Momtaz_Zones::call('container:before');
?>

		<div<?php 
momtaz_atts('container', array('id' => 'container'));
?>
>

			<main<?php 
momtaz_atts('content', array('id' => 'content'));
?>
>
				<?php 
Momtaz_Zones::call('content');
?>
			</main> <!-- #content -->

			<?php 
momtaz_template_sidebar();
?>

		</div> <!-- #container -->

		<?php 
Momtaz_Zones::call('container:after');
$show_sep = true;
?>

			</span> <!-- .entry-date -->

			<?php 
if ('post' === get_post_type() && is_multi_author()) {
    ?>

				<span class="sep"><?php 
    _ex(' | ', 'entry-meta-sep', 'momtaz');
    ?>
</span>

				<span<?php 
    momtaz_atts('entry-author', array('class' => 'vcard entry-author'));
    ?>
>

					<?php 
    printf(__('<span class="prep entry-utility-prep">By:</span> %s', 'momtaz'), sprintf('<a class="url fn n" href="%1$s" rel="author">%2$s</a>', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_html(get_the_author())));
    $show_sep = true;
    ?>

				</span> <!-- .by-author -->

			<?php 
}
?>

			<?php 
momtaz_atts('branding', array('id' => 'branding'));
?>
>

		<h1<?php 
momtaz_atts('site-title', array('id' => 'site-title'));
?>
>
			<a href="<?php 
echo esc_url(home_url('/'));
?>
" rel="home"><?php 
bloginfo('name');
?>
</a>
		</h1> <!-- #site-title -->

		<h2<?php 
momtaz_atts('site-description', array('id' => 'site-description'));
?>
>
			<?php 
bloginfo('description');
?>
		</h2> <!-- #site-description -->

	</div> <!-- #branding -->

</header><?php 
Momtaz_Zones::call('header:after');
momtaz_template_part('menu', 'primary');