data-name="Post CP">
'Main Post Title', 'structure' => array( 'type' => 'object', 'elem' => 'h1', 'linked' => true, 'attr' => array( 'a' => array( 'href' => esc_url( get_permalink() ), 'rel' => 'bookmark', 'title' => get_the_title(), ), ), ), 'content' => array( 'object' => get_the_title(), ), 'echo' => true, ) ); // After Post Heading Hook | inc > hooks.php applicator_hook_after_post_heading(); // Post Actions | inc > tags > entry-actions.php applicator_func_post_actions(); // Breadcrumbs Navigation | inc > tags > breadcumbs-nav.php applicator_func_breadcrumbs_nav(); // E: Post Meta $post_meta = htmlok( array( 'name' => 'Post Meta', 'structure' => array( 'type' => 'component' ), 'content' => array( 'component' => array( // Date and Time Stamp // inc > tags > post-published-modified-cp.php applicator_func_post_published_modified(), // Author // inc > tags > post-author.php applicator_func_post_author(), // Categories // inc > tags > post-classification.php applicator_func_post_categories(), ), ), ) ); // E: Post Header Aside $post_header_aside = htmlok( array( 'name' => 'Post Header', 'structure' => array( 'type' => 'constructor', 'subtype' => 'aside', 'hr_structure' => true, ), 'css' => 'post-hr-as', 'content' => array( 'constructor' => array( // Post Meta $post_meta, // Post Banner Visual | inc > tags > post-banner-visual.php applicator_func_post_banner_visual(), // inc > tags > comments-actions-snippet-cp.php applicator_func_comments_actions_snippet_cp(), ), ), 'echo' => true, ) ); // After Post Header Aside Hook applicator_hook_after_post_header_aside(); ?>
'Post Excerpt', 'structure' => array( 'type' => 'component', ), 'content' => array( 'component' => $excerpt_ob_content, ), ) ); // OB: Content ob_start(); the_content(); $content_ob_content = ob_get_contents(); ob_end_clean(); if ( is_home() || is_singular() || ( is_front_page() && ! is_page() ) ) { if ( has_excerpt() ) { // E: Post Excerpt echo $post_excerpt; } // E: Post Content $post_content = htmlok( array( 'name' => 'Post Content', 'structure' => array( 'type' => 'component', ), 'content' => array( 'component' => $content_ob_content, ), 'echo' => true, ) ); } else { // E: Post Excerpt echo $post_excerpt; } // Entry Page Navigation // inc > tags > post-nav.php applicator_func_post_nav(); // Sub-Post if ( is_page_template( 'page-templates/sub-pages.php' ) ) { $parent = $post->ID; $args = array( 'post_type' => 'page', 'post_status' => 'publish', 'post_parent' => $parent, 'order' => 'ASC' ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { // OB: Query Sub-Post Content ob_start(); while ( $the_query->have_posts() ) { $the_query->the_post(); get_template_part( 'content', get_post_format() ); } $query_sub_post_ob_content = ob_get_contents(); ob_end_clean(); // E: Sub-Post Content $sub_post_cp = htmlok( array( 'name' => 'Sub-Post Content', 'structure' => array( 'type' => 'component', ), 'content' => array( 'component' => $query_sub_post_ob_content, ), 'echo' => true, ) ); } wp_reset_postdata(); } ?>
'Post Meta', 'structure' => array( 'type' => 'component' ), 'content' => array( 'component' => array( // Tags applicator_func_post_tags(), ), ), 'echo' => true, ) ); ?>