/** * [draw_header] * [draw_header excerpt='excerpt' bg='post1' parallax='css' height='full'] * [draw_header excerpt='bla bla bla' bg='featured' parallax='js'] * @param type $atts * @return type */ function draw_post_header_shortcode($atts) { $atts = shortcode_atts(array('title' => '', 'excerpt' => '', 'bg' => '', 'size' => '', 'parallax' => '', 'height' => ''), $atts); ob_start(); draw_post_header($atts['title'], $atts['excerpt'], $atts['bg'], $atts['size'], $atts['parallax'], $atts['height']); $output = ob_get_clean(); return $output; }
* archive list * author list * search list * unknown bla bla * * ($title = '', $bg = '', $size = 'full', $parallax = 'off') */ if (is_author()) { draw_post_header('author', '', '', '', ''); } else { if (is_archive()) { draw_post_header(single_cat_title('', false), '', 'featured', 'blog', ''); } elseif (is_search()) { draw_post_header(get_search_query(), '', 'featured'); } else { draw_post_header('title', 'excerpt', 'featured', 'blog', 'off'); } } ?> <div class="container"> <div id="content-area" class="clearfix"> <div id="left-area"> <?php if (have_posts()) { while (have_posts()) { the_post(); $post_format = et_pb_post_format(); ?> <article id="post-<?php
?> <div id="main-content"> <?php if (!$is_page_builder_used) { ?> <?php /* * SDM * single post * V1.1 */ draw_post_header('title', 'excerpt', 'featured'); ?> <div class="container"> <div id="content-area" class="clearfix"> <div id="left-area"> <?php } ?> <?php while (have_posts()) { the_post(); ?>
* unknown bla bla * * ($title = '', $bg = '', $size = 'full', $parallax = 'off') */ //draw_post_header('title', 'excerpt', 'featured', 'blog', 'off', 'full'); $sdm_parallex = ''; $sdm_height = ''; if (is_author()) { draw_post_header('author', '', '', '', $sdm_parallex, $sdm_height); } else { if (is_archive()) { draw_post_header(single_cat_title('', false), '', 'featured', 'blog', $sdm_parallex, $sdm_height); } elseif (is_search()) { draw_post_header(get_search_query(), '', 'featured', '', $sdm_parallex, $sdm_height); } else { draw_post_header('title', 'excerpt', 'featured', 'blog', $sdm_parallex, $sdm_height); } } ?> <div class="container"> <div id="content-area" class="clearfix"> <div id="left-area"> <?php if (have_posts()) { while (have_posts()) { the_post(); $post_format = et_pb_post_format(); ?> <article id="post-<?php
get_header(); $show_default_title = 'off'; //SDM = get_post_meta( get_the_ID(), '_et_pb_show_title', true ); $is_page_builder_used = et_pb_is_pagebuilder_used(get_the_ID()); ?> <div id="main-content"> <?php /* * SDM * single post * V1.3 */ draw_post_header('title', 'excerpt', 'featured', 'et-pb-post-main-image-fullwidth', 'off', 'full'); ?> <div class="container"> <div id="content-area" class="clearfix"> <div id="left-area"> <?php while (have_posts()) { the_post(); ?> <?php if (et_get_option('divi_integration_single_top') != '' && et_get_option('divi_integrate_singletop_enable') == 'on') { echo et_get_option('divi_integration_single_top'); } ?>