<?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 /** * The image.php Fractal template * * * @package Rocket Lift Parent Theme * @since Rocket Lift Parent Theme 1.0 */ ?> <?php fractal_template(); ?> <?php fractal_block( 'content-loop-inside', function(){?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="entry-meta"> <?php $metadata = wp_get_attachment_metadata(); printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'rocket_lift_parent_theme' ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), wp_get_attachment_url(), $metadata['width'], $metadata['height'], get_permalink( $post->post_parent ), get_the_title( $post->post_parent ) ); ?>