ID, '_mymetaboxname', true ); $layout = get_theme_mod('aff_single_layout', 'layout1'); if (empty($layout)) { $layout ='layout1'; } $options = get_post_meta( get_the_ID(), 'aff_booster_options', true ); $feat_image = get_theme_mod('aff_single_post_image', 'below-title'); $title = get_theme_mod('aff_single_title', 'inside'); $remove_featured = $options ? in_array( 'remove-featured', $options ) : false; $remove_title = $options ? in_array( 'remove-title', $options ) : false; $author_id = get_post_field ('post_author', get_the_ID()); $display_name = get_the_author_meta( 'display_name' , $author_id ); $user_avatar = get_the_author_meta('email', $author_id ); $date_format = get_option( 'date_format' ); $date = get_the_date( $date_format, get_the_ID()); $updated_date = get_the_modified_date($date_format, get_the_ID()); $comment_count = get_comments_number(get_the_ID()); $separator = get_theme_mod( 'aff_single_post_info_separator_type', '/' ); $template_parts = get_theme_mod( 'sortable_single_post_info_setting', array( 'option1', 'option2' ) ); //$current_categoty = get_the_category_list($separator, get_the_ID()); $current_categoty = get_the_category_list($separator, 'multiple', get_the_ID()); $multicheck_post_info = get_theme_mod( 'aff_single_post_info_multicheck', array( 'option-1', 'option-2' ) ); $fea_img = get_the_post_thumbnail_url( get_the_ID(), 'full' ); if ($fea_img == '') { $fea_img = get_template_directory_uri(). '/images/default.webp'; } ?>
style="background-image:url()";>
', '' ); ?>
style="background-image:url()" style="/*background-image:url()*/" >
ID,'aff_bost_temp_value',true); if(empty($tempname1)){ $tempname1 = 'right-sidebar'; } $customlayout = get_theme_mod('aff_sidebar', 'right-sidebar'); $global_layout = get_theme_mod('global_layout', 'right-sidebar'); if(empty($sidebar)) { if(!empty($customlayout)) { get_template_part('templates/post/'.$layout.'/'.$customlayout.'','template'); } else{ get_template_part( 'templates/post/layout2/right-sidebar','template'); } }elseif($sidebar == 'global') { if ( true == get_theme_mod( 'affiliate_booster_field_global_layout_flag_switcher', false) ){ get_template_part('templates/post/'.$layout.'/'.$global_layout.'','template'); } else { if(!empty($customlayout)) { get_template_part('templates/post/'.$layout.'/'.$customlayout.'','template'); } else{ get_template_part( 'templates/post/layout1/right-sidebar','template'); } } } else { get_template_part('templates/post/'.$layout.'/'.$sidebar.'','template'); } endwhile; ?>
ID,'aff_bost_temp_value',true); if(empty($tempname1)){ $tempname1 = 'right-sidebar'; } $customlayout = get_theme_mod('aff_sidebar', 'right-sidebar'); $global_layout = get_theme_mod('global_layout', 'right-sidebar'); if(empty($sidebar)) { if(!empty($customlayout)) { get_template_part('templates/post/'.$layout.'/'.$customlayout.'','template'); } else{ get_template_part( 'templates/post/layout2/right-sidebar','template'); } } elseif($sidebar == 'global') { if ( true == get_theme_mod( 'affiliate_booster_field_global_layout_flag_switcher', false) ){ get_template_part('templates/post/'.$layout.'/'.$global_layout.'','template'); } else { if(!empty($customlayout)) { get_template_part('templates/post/'.$layout.'/'.$customlayout.'','template'); } else{ get_template_part( 'templates/post/layout1/right-sidebar','template'); } } } else { get_template_part('templates/post/'.$layout.'/'.$sidebar.'','template'); } endwhile; ?>