<?php fractal_template(); fractal_block('section-1', function () { ?> <h1>Section 1</h1> <?php fractal_parent(); }); ?> <?php fractal_block('section-2', function () { ?> <h1>Section 2</h1> <?php fractal_parent(); }); ?> <?php fractal_block('section-3', function () { ?> <h1>Section 3</h1> <?php fractal_parent(); }); fractal('index-2');
<?php fractal_block('section-1', function () { ?> <p>Paragraph from 'base'</p> <?php }); ?> <?php fractal_block('section-2', function () { ?> <p>Paragraph from 'base'</p> <?php }); ?> <?php fractal_block('section-3', function () { ?> <p>Paragraph from 'base'</p> <?php }); ?> <?php }); /* 'base' */ ?> <?php fractal();
/* end 'sidebar' fractal block */ ?> </div><!-- #secondary .widget-area --> <?php }); ?> </div><!-- #main .site-main --> <footer id="colophon" class="site-footer" role="contentinfo"> <?php fractal_block('html-footer', function () { ?> <div class="site-info"> <?php do_action('rocket_lift_parent_theme_site_info'); ?> <?php do_action('rocket_lift_parent_theme_attribution'); ?> </div><!-- .site-info --> <?php }); /* end 'html-footer' fractal */ ?> </footer><!-- #colophon .site-footer --> </div><!-- #page .hfeed .site --> <?php fractal_wp_footer(); ?>
<div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'rocket_lift_parent_theme'), 'after' => '</div>')); ?> <?php edit_post_link(__('Edit', 'rocket_lift_parent_theme'), '<span class="edit-link">', '</span>'); ?> </div><!-- .entry-content --> </article><!-- #post-<?php the_ID(); ?> --> <?php fractal_block('comments', function () { ?> <?php fractal_parent(); ?> <?php }); /* end 'comments' fractal_block */ }); /* end 'content-loop-inside' */ ?> <?php fractal('base');
fractal_block('content', function () { ?> <article id="post-0" class="post error404 not-found"> <header class="entry-header"> <h1 class="entry-title"><?php _e('Oops! That page can’t be found.', 'rocket_lift_parent_theme'); ?> </h1> </header><!-- .entry-header --> <div class="entry-content"> <p><?php _e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'rocket_lift_parent_theme'); ?> </p> <?php get_search_form(); ?> <?php the_widget('WP_Widget_Recent_Posts'); ?> <div class="widget"> <h2 class="widgettitle"><?php _e('Most Used Categories', 'rocket_lift_parent_theme'); ?> </h2> <ul> <?php wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10)); ?> </ul> </div><!-- .widget --> <?php /* translators: %1$s: smilie */ $archive_content = '<p>' . sprintf(__('Try looking in the monthly archives. %1$s', 'rocket_lift_parent_theme'), convert_smilies(':)')) . '</p>'; the_widget('WP_Widget_Archives', 'dropdown=1', "after_title=</h2>{$archive_content}"); ?> <?php the_widget('WP_Widget_Tag_Cloud'); ?> </div><!-- .entry-content --> </article><!-- #post-0 .post .error404 .not-found --> <?php });
<h4>Section 2, Subsection 2 (from index-3)</h4> <p>The first paragraph of 2-2 (from index-3)</p> <?php }); }); ?> <?php fractal_block('section-3', function () { ?> <h3>sub-title, level 3 (from index-3)</h3> <?php fractal_parent(); ?> <?php fractal_block('section-3-subsection-1', function () { ?> <h4>Subsection 1, section 3 (from index-3)</h4> <p>The first paragraph of this subsection (from index-3)</p> <?php }); ?> <?php fractal_block('section-3-subsection-2', function () { ?> <h4>Subsection 2, section 3 (from index-3)</h4> <p>The first paragraph of this subsection (from index-3)</p> <?php }); }); fractal('base');
<?php edit_post_link(__('Edit', 'rocket_lift_parent_theme'), '<span class="edit-link">', '</span>'); ?> </footer><!-- .entry-meta --> </article><!-- #post-<?php the_ID(); ?> --> <?php rocket_lift_parent_theme_content_nav('nav-below'); ?> <?php // If comments are open or we have at least one comment, load up the comment template if (comments_open() || '0' != get_comments_number()) { fractal_block('comments', function () { fractal_parent(); }); } /* end 'comments' fractal block */ ?> <?php }); /* end 'content-loop-inside' */ ?> <?php fractal('base');
fractal_block('content-loop-inside', function () { ?> <header class="page-header"> <h1 class="page-title"><?php printf(__('Search Results for: %s', 'rocket_lift_parent_theme'), '<span>' . get_search_query() . '</span>'); ?> </h1> </header><!-- .page-header --> <?php rocket_lift_parent_theme_content_nav('nav-above'); ?> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php get_template_part('content', 'search'); ?> <?php } ?> <?php rocket_lift_parent_theme_content_nav('nav-below'); });
?> <?php } ?> <?php rocket_lift_parent_theme_content_nav('nav-below'); ?> <?php } else { ?> <?php fractal_block('no-results', function () { fractal_parent(); }); ?> <?php } ?> <?php }); /* end 'content' fractal block */ ?> <?php fractal('base');
<p>Second paragraph of this subsection.</p> <?php }); ?> <?php fractal_block('section-1', function () { ?> <h2>sub-title section 1 (from index-2)</h2> <?php fractal_parent(); }); ?> <?php fractal_block('section-2', function () { ?> <h2>sub-title section 2 (from index-2) </h2> <?php fractal_parent(); }); ?> <?php fractal_block('section-3', function () { ?> <h2>sub-title section 3 (from index-2)</h2> <?php fractal_parent(); }); fractal('index-3');