data-name="Post CP">
'Post Title', 'structure' => array( 'type' => 'object', 'elem' => 'h1', 'linked' => true, 'attr' => array( 'a' => array( 'href' => esc_url( get_permalink() ), 'rel' => 'bookmark', 'title' => esc_attr( $post_title_attr ), ), ), ), 'content' => array( 'object' => esc_html( $post_title ), ), ) ); applicator_post_actions(); // Post Actions | inc > tags > post-actions.php $main_post_title = applicator_htmlok( array( 'name' => 'Main Post Title', 'structure' => array( 'type' => 'component' ), 'content' => array( 'component' => array( $post_title_obj, applicator_post_actions(), ), ), 'echo' => true, ) ); applicator_hook_after_main_post_title(); // After Main Post Title Hook | inc > hooks.php applicator_breadcrumbs(); // Breadcrumbs Navigation | inc > tags > breadcumbs-nav.php $post_meta = applicator_htmlok( array( 'name' => 'Post Meta', 'structure' => array( 'type' => 'component' ), 'content' => array( 'component' => array( // Date and Time Stamp // inc > tags > post-published-modified.php applicator_post_published_modified(), // Author // inc > tags > post-author.php applicator_post_author(), // Categories // inc > tags > post-classification.php applicator_post_categories(), ), ), ) ); $post_header_aside = applicator_htmlok( array( 'name' => 'Post Header', 'structure' => array( 'type' => 'constructor', 'subtype' => 'aside', 'hr_structure' => true, ), 'css' => 'post-hr', 'content' => array( 'constructor' => array( $post_meta, applicator_hook_after_post_meta_header_aside(), applicator_comments_actions_snippet(), // inc/tags/comments-actions-snippet-cp.php ), ), 'echo' => true, ) ); applicator_hook_after_post_header_aside(); // After Post Header Aside Hook ?>
'Post Excerpt', 'structure' => array( 'type' => 'component', ), 'content' => array( 'component' => $excerpt_ob_content, ), ) ); ob_start(); the_content(); $content_ob_content = ob_get_clean(); if ( is_home() || is_singular() || is_archive() ) { if ( has_excerpt() ) { echo $post_excerpt; } $post_content = applicator_htmlok( array( 'name' => 'Post Content', 'structure' => array( 'type' => 'component', 'elem' => 'section', 'h_elem' => 'h1', ), 'content' => array( 'component' => $content_ob_content, ), 'echo' => true, ) ); } else { echo $post_excerpt; } applicator_post_nav(); // Entry Page Navigation | inc > tags > post-nav.php // 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_start(); while ( $the_query->have_posts() ) { $the_query->the_post(); get_template_part( 'content', get_post_format() ); } $query_sub_post_ob_content = ob_get_clean(); $sub_post_cp = applicator_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( applicator_post_tags(), ), ), 'echo' => true, ) ); ?>