Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Momtaz v1.3.4 #43

Merged
merged 1 commit into from
Dec 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog:
================

v1.3.4
- Enhancement: Update Nmwdhj to v1.3.4.
- Enhancement: Clean the code and remove the deprecated functions.
...etc

v1.3.3
- Enhancement: Update lessCSS to v2.5.3.
- Enhancement: Update HTML5Shiv to v3.7.3.
Expand Down
6 changes: 3 additions & 3 deletions momtaz/404.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ function momtaz_template_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 _e( 'Not found', 'momtaz' ) ?></h1>
<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 class="error"><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'momtaz' ) ?></p>
<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>

Expand All @@ -37,4 +37,4 @@ function momtaz_template_content() { ?>
}

// Load the structure template.
momtaz_context_template( 'structure' );
momtaz_context_template( 'structure' );
2 changes: 1 addition & 1 deletion momtaz/comment-pingback.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
<small><?php _e( 'Pingback:', '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 /* No closing. WordPress will know where to add it. */
2 changes: 1 addition & 1 deletion momtaz/comment-trackback.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
<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 /* No closing. WordPress will know where to add it. */
4 changes: 2 additions & 2 deletions momtaz/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div<?php momtaz_atts( 'comment-content', array( 'class' => 'comment-content' ) ) ?>>

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

<?php comment_text() ?>
Expand All @@ -53,4 +53,4 @@

<?php Momtaz_Zones::call( 'comment:after' ) ?>

<?php /* No closing. WordPress will know where to add it. */
<?php /* No closing. WordPress will know where to add it. */
6 changes: 3 additions & 3 deletions momtaz/comments-loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@

if ( ! comments_open() && get_comments_number() > 0 ) : ?>

<p class="alert comments-closed">
<?php _e( 'Comments are closed.', 'momtaz' ) ?>
<p class="comments-closed">
<?php esc_html_e( 'Comments are closed.', 'momtaz' ) ?>
</p> <!-- .comments-closed -->

<?php endif;
<?php endif;
2 changes: 1 addition & 1 deletion momtaz/comments-nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

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

<?php endif;
<?php endif;
2 changes: 1 addition & 1 deletion momtaz/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@

</section> <!-- #comments -->

<?php Momtaz_Zones::call( 'comments:after' );
<?php Momtaz_Zones::call( 'comments:after' );
12 changes: 3 additions & 9 deletions momtaz/entry-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@

<?php

printf( __( '<span class="prep entry-utility-prep">Categories:</span> %s', 'momtaz' ),
$post_category
);

printf( __( '<span class="prep entry-utility-prep">Categories:</span> %s', 'momtaz' ), $post_category );
$show_sep = true;

?>
Expand All @@ -57,10 +54,7 @@

<?php

printf( __( '<span class="prep entry-utility-prep">Tags:</span> %s', 'momtaz' ),
$post_tags
);

printf( __( '<span class="prep entry-utility-prep">Tags:</span> %s', 'momtaz' ), $post_tags );
$show_sep = true;

?>
Expand All @@ -71,4 +65,4 @@

?>

</footer>
</footer>
2 changes: 1 addition & 1 deletion momtaz/entry-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@

</div> <!-- .entry-meta -->

</header> <!-- .entry-header -->
</header> <!-- .entry-header -->
6 changes: 3 additions & 3 deletions momtaz/entry-singular.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@

<?php the_content(); ?>

<div class="download">
<div class="attachment-file">
<a href="<?php echo esc_url( wp_get_attachment_url() ) ?>" type="<?php echo esc_attr( get_post_mime_type() ) ?>"><?php printf( __( 'Download &quot;%s&quot;', 'momtaz' ), the_title( '<span class="fn">', '</span>', false ) ) ?></a>
</div> <!-- .download -->
</div> <!-- .attachment-file -->

<?php } ?>

Expand All @@ -83,4 +83,4 @@

Momtaz_Zones::call( 'entry:after' );

comments_template( '/comments.php', true );
comments_template( '/comments.php', true );
14 changes: 7 additions & 7 deletions momtaz/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
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,
'before' => '<div class="entry-thumbnail">',
'after' => '</div><!-- .entry-thumbnail -->',
'image_class' => 'thumbnail',
'scan' => true,
'height' => 150,
'width' => 150,
) );

} // end if
Expand All @@ -50,4 +50,4 @@

</article><?php

Momtaz_Zones::call( 'entry:after' );
Momtaz_Zones::call( 'entry:after' );
2 changes: 1 addition & 1 deletion momtaz/footer-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
<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' );
<?php Momtaz_Zones::call( 'footer:after' );
2 changes: 1 addition & 1 deletion momtaz/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

wp_footer() ?>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion momtaz/header-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@

Momtaz_Zones::call( 'header:after' );

momtaz_template_part( 'menu', 'primary' );
momtaz_template_part( 'menu', 'primary' );
2 changes: 1 addition & 1 deletion momtaz/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
<!-- end WP Head -->
</head>

<body<?php momtaz_atts( 'body' ) ?>>
<body<?php momtaz_atts( 'body' ) ?>>
37 changes: 18 additions & 19 deletions momtaz/humans.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
/* TEAM */
Founding Developer: Nashwan Doaqan
Site: http://nashwan-d.com
Location: Ta'izz, Yemen
\
Core Contributor: Aboelabbas Shahwan‎‏
Site: http://wphawy.com
Location: Zagazig, Egypt

/* THANKS */
Rasheed Bydousi (http://rasheed-bydousi.com)

/* Projects */
Hybrid Theme, Genesis Theme,
Normalize.CSS, Semantic.gs,
HTML5 Shiv, Less.js,
jQuery, Superfish

/* META */
/* TEAM */
Founding Developer: Nashwan Doaqan
Site: http://nashwan-d.com
Location: Ta'izz, Yemen

Core Contributor: Aboelabbas Shahwan‎‏
Site: http://wphawy.com
Location: Zagazig, Egypt

/* THANKS */
Rasheed Bydousi (http://rasheed-bydousi.com)

/* Projects */
Hybrid Theme, Genesis Theme,
Normalize.CSS, HTML5 Shiv,
Less.js, jQuery

/* META */
Last update: 2014/8/13
6 changes: 3 additions & 3 deletions momtaz/includes/admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
function momtaz_admin_register_styles() {

// Register the core admin style.
wp_register_style( 'momtaz-core-admin', momtaz_theme_uri( 'content/styles/admin.css' ), false, Momtaz::VERSION );
wp_register_style( 'momtaz-core-admin', momtaz_theme_uri( 'content/styles/admin.css' ), array(), Momtaz::VERSION );

}

Expand All @@ -33,7 +33,7 @@ function momtaz_verify_common_post_meta_box( $post, $args ){

$args = wp_parse_args( $args, array(
'nonce_action' => -1,
'nonce_name' => '',
'nonce_name' => '',
) );

if ( ! empty( $args['nonce_name'] ) ) {
Expand Down Expand Up @@ -102,4 +102,4 @@ function momtaz_save_post_meta_array( $post_id, $meta ){

return true;

}
}
8 changes: 4 additions & 4 deletions momtaz/includes/admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,19 +374,19 @@ function momtaz_meta_box_theme_display_about( $object, $box ) {

<table class="form-table">
<tr>
<th><?php _e( 'Theme:', 'momtaz' ) ?></th>
<th><?php esc_html_e( 'Theme:', 'momtaz' ) ?></th>
<td><a href="<?php echo esc_url( $theme_data->display( 'ThemeURI' ) ) ?>"><?php echo $theme_data->display( 'Name' ) ?> <?php echo $theme_data->display( 'Version' ) ?></a></td>
</tr>
<tr>
<th><?php _e( 'Author:', 'momtaz' ) ?></th>
<th><?php esc_html_e( 'Author:', 'momtaz' ) ?></th>
<td><?php echo $theme_data->display( 'Author' ) ?></td>
</tr>
<tr>
<th><?php _e( 'Description:', 'momtaz' ) ?></th>
<th><?php esc_html_e( 'Description:', 'momtaz' ) ?></th>
<td><?php echo $theme_data->display( 'Description' ) ?></td>
</tr>
</table> <!-- .form-table -->

<?php }

new Momtaz_Settings_Page();
new Momtaz_Settings_Page();
2 changes: 1 addition & 1 deletion momtaz/includes/core/context.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ function momtaz_get_post_context( $post = null ) {

return (array) apply_filters( 'momtaz_post_context', $context[ $post->ID ], $post );

}
}
2 changes: 1 addition & 1 deletion momtaz/includes/core/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,4 +625,4 @@ public function offsetUnset( $offset ) {
*
* @since 1.1
*/
class Momtaz_Module_Exception extends Exception {}
class Momtaz_Module_Exception extends Exception {}
Loading