Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.

Commit

Permalink
First version
Browse files Browse the repository at this point in the history
  • Loading branch information
rodica-andronache committed Nov 23, 2015
1 parent ac2c22a commit b69a319
Show file tree
Hide file tree
Showing 73 changed files with 16,503 additions and 0 deletions.
56 changes: 56 additions & 0 deletions 404.php
@@ -0,0 +1,56 @@
<?php
/**
* The template for displaying 404 pages (not found).
*
* @package FlyMag
*/

get_header(); ?>

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'flymag' ); ?></h1>
</header><!-- .page-header -->

<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'flymag' ); ?></p>

<?php get_search_form(); ?>

<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>

<?php if ( flymag_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php _e( 'Most Used Categories', 'flymag' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>

<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'flymag' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>

<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>

</div><!-- .page-content -->
</section><!-- .error-404 -->

</main><!-- #main -->
</div><!-- #primary -->

<?php get_footer(); ?>
67 changes: 67 additions & 0 deletions archive.php
@@ -0,0 +1,67 @@
<?php
/**
* The template for displaying archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package FlyMag
*/

get_header(); ?>

<?php if ( get_theme_mod('blog_layout', 'classic') == 'fullwidth' ) {
$layout = 'fullwidth';
} else {
$layout = '';
} ?>
<?php if ( get_theme_mod('blog_layout', 'classic') == 'masonry' ) {
$masonry = 'home-masonry';
} else {
$masonry = '';
} ?>

<div id="primary" class="content-area <?php echo $layout; ?>">
<main id="main" class="site-main" role="main">

<?php if ( have_posts() ) : ?>

<header class="page-header">
<?php
if (is_author()) :
echo get_avatar( get_the_author_meta('ID'), 60, '');
endif;
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header><!-- .page-header -->

<?php /* Start the Loop */ ?>
<div class="home-wrapper <?php echo $masonry; ?>">
<?php while ( have_posts() ) : the_post(); ?>

<?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>

<?php endwhile; ?>
</div>

<?php flymag_paging_nav(); ?>

<?php else : ?>

<?php get_template_part( 'content', 'none' ); ?>

<?php endif; ?>

</main><!-- #main -->
</div><!-- #primary -->

<?php if ( get_theme_mod('blog_layout', 'classic') != 'fullwidth' ) {
get_sidebar();
} ?>
<?php get_footer(); ?>

0 comments on commit b69a319

Please sign in to comment.