This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Theme Name: Handmade's Tale | |
* Description: Custom theme for Handmade's Tale website | |
* Version: 1.0.0 | |
* Author: Mohammad Ashour | |
* Author URI: http://www.ashour.ca | |
* | |
* License: MIT | |
* License URI: http://opensource.org/licenses/mit-license.php | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_template_part('header'); ?> | |
<main role="main" aria-label="Content"> | |
<!-- section --> | |
<section> | |
<!-- Content will go here --> | |
</section> | |
<!-- /section --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<!-- article --> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<!-- post thumbnail --> | |
<?php if (has_post_thumbnail()) : ?> | |
<a | |
href="<?php the_permalink(); ?>" | |
title="<?php the_title_attribute(); ?>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php printf( | |
_n('%d post', '%d posts', hmt_published_post_count(), 'handmadestale'), | |
hmt_published_post_count() | |
); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#: index.php:12 | |
#, php-format | |
msgid "%d post" | |
msgid_plural "%d posts" | |
msgstr[0] "" | |
msgstr[1] "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100 >= 3 " | |
"&& n%100<=10 ? 3 : n%100 >= 11 && n%100<=99 ? 4 : 5;\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="date"> | |
<time | |
datetime="<?php the_time('Y-m-d'); ?> <?php the_time('H:i'); ?>" | |
> | |
<?php the_date(); ?> | |
<?php the_time(); ?> | |
</time> | |
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Place A in our UI | |
echo _x('Menu', 'Hamburger icon for mobile devices', 'handmadestale'); | |
?> | |
<?php | |
// Place B in our UI | |
_ex('Menu', 'Footer menu header', 'handmadestale'); | |
?> |
OlderNewer