<?php 
    }
    ?>
    </ul>
  <?php 
}
?>

  </div>

</header><!-- /#content-head -->

<main id="content-main">
<?php 
if (have_posts()) {
    fc_custom_loop($query_string . '&template=demo-%view%');
    ?>

  <?php 
    if (fc_show_posts_nav()) {
        ?>
    <?php 
        if (function_exists('fc_pagination')) {
            fc_pagination();
        } else {
            ?>
      <ul class="nav-paging">
        <?php 
            if ($paged < $wp_query->max_num_pages) {
                ?>
<li class="prev"><?php 
Esempio n. 2
0
><a class="view-complete" href="<?php 
echo tmh_by_as_url(TRUE, 'complete');
?>
" title="Show full articles">Complete</a><?php 
tmh_has_query_var('tmh_view_as', 'complete', ' <em>(this is the current view)</em>');
?>
</li>
    </ul>
  </div>

</header><!-- /#content-head -->

<main id="content-main">
<?php 
if (have_posts()) {
    fc_custom_loop($query_string . '&template=article-%view%');
    ?>

  <?php 
    if (fc_show_posts_nav()) {
        ?>
    <?php 
        if (function_exists('fc_pagination')) {
            fc_pagination();
        } else {
            ?>
      <ul class="nav-paging">
        <?php 
            if ($paged < $wp_query->max_num_pages) {
                ?>
<li class="prev"><?php 
Esempio n. 3
0
    ?>
 Articles</h1>
  <?php 
} else {
    ?>
    <h1 class="page-title">Articles</h1>
  <?php 
}
?>

  <?php 
if (have_posts()) {
    ?>
  <ul class="article-list">
    <?php 
    fc_custom_loop($query_string . '&template=article-list');
    ?>
  </ul>

  <?php 
    if (fc_show_posts_nav()) {
        ?>
    <?php 
        if (function_exists('fc_pagination')) {
            fc_pagination();
        } else {
            ?>
      <nav class="nav-paging">
        <?php 
            if ($paged < $wp_query->max_num_pages) {
                ?>
Esempio n. 4
0
    </ul>

  </div>
</header><!-- /#content-head -->

<main id="content-main">
<?php 
if (have_posts()) {
    ?>
  <?php 
    if (is_front_page()) {
        // if this is the front page, show everything (just in case the static home page isn't used)
        fc_custom_loop($query_string . '&template=article-%view%');
    } else {
        // otherwise this is the Articles page and excludes Demos
        fc_custom_loop($query_string . '&cat=-' . $demo_id . ',-' . $featureddemo_id . '&template=article-%view%');
    }
    ?>

  <?php 
    if (fc_show_posts_nav()) {
        ?>
    <?php 
        if (function_exists('fc_pagination')) {
            fc_pagination();
        } else {
            ?>
      <ul class="nav-paging">
        <?php 
            if ($paged < $wp_query->max_num_pages) {
                ?>
Esempio n. 5
0
<?php

get_header();
?>

<?php 
fc_custom_loop('cat=' . $featured_id . '&posts_per_page=1&template=home-head-featarticles');
?>

<section class="recent content section">
  <h2 class="heading">Recent Articles</h2>
  <ul class="grid">
    <?php 
fc_custom_loop('template=article-grid');
?>
  </ul>
</section>

<?php 
get_footer();
Esempio n. 6
0
if (count($feat_demos) == 0) {
    ?>
      <p class="err">Sorry. there are no featured demos at the moment.</p>
    <?php 
}
?>
  </div>
</header><!-- /#content-head -->

<main id="content-main" class="demos">
  <h2 class="lead"><a href="<?php 
echo get_category_link($demo_id);
?>
page/2/"><span>More</span> recent demos</a></h2>
  <?php 
$recent_demos = fc_custom_loop('cat=' . $demo_id . '&template=demo-list');
if (count($recent_demos) == 0) {
    ?>
  <p class="err">Sorry. there are no demos at the moment.</p>
  <?php 
}
?>
  <p class="more"><a href="<?php 
echo get_category_link($demo_id);
?>
page/2/">More recent demos</a></p>
</main><!-- /#content-main -->

<aside id="content-sub">
  <ul id="widgets">
<?php 
Esempio n. 7
0
      <p class="err">Sorry, there are no featured demos at the moment.</p>
      <?php 
}
?>
    </div>

  </div>
</header><!-- /#content-head -->

<main id="content-main" class="home">
  <h2 class="lead"><a href="<?php 
echo get_permalink(get_page_by_path('articles'));
?>
page/2/"><span>More</span> recent articles</a></h2>
  <?php 
$recent_arts = fc_custom_loop('template=article-brief');
if (count($recent_arts) == 0) {
    ?>
  <p class="fail">Sorry, there are no articles at the moment.</p>
  <?php 
}
?>
  <p class="more"><a href="<?php 
echo get_permalink(get_page_by_path('articles'));
?>
page/2/">More recent articles</a></p>
</main><!-- /#content-main -->

<aside id="content-sub">
  <ul id="widgets">
<?php 
Esempio n. 8
0
get_header();
$featured_id = get_cat_ID('Featured Article');
$categories = array("Add-ons", "Animations", "Apps", "Canvas", "CSS", "Developer Tools", "Firefox", "Firefox OS", "Games", "HTML5", "Javascript", "Mobile", "Performance", "Security", "SVG", "Video", "WebGL");
?>

<?php 
fc_custom_loop('cat=' . $featured_id . '&posts_per_page=1&template=home-head-featarticles');
?>

<section class="recent content section row">
  <div class="block block--2">
    <h2 class="heading">Recent Articles</h2>
    <ul class="article-list">
      <?php 
fc_custom_loop('template=article-list');
?>
    </ul>
    <h3 class="read-more"><a href="<?php 
echo get_permalink(get_page_by_path('articles'));
?>
page/2/">Browse All Articles &rarr;</a></h3>
  </div>
  <div class="block block--1">
    <h2 class="heading">Categories</h2>
    <ul class="category-list" role="navigation">
      <?php 
foreach ($categories as $id) {
    ?>
        <?php 
    $cat = get_category(get_cat_ID($id));