<?php if (has_post_thumbnail()) { $column1 = ' two_fifth'; $column2 = ' three_fifth last'; } else { $column1 = NULL; $column2 = NULL; } ?> <header class="entry-header<?php echo $column1; ?> "> <?php thinkup_input_blogimage(); ?> </header> <div class="entry-content<?php echo $column2; ?> "> <?php think_input_blogtitle(); ?> <?php thinkup_input_blogmeta(); ?>
function thinkup_input_blogcommentclass() { global $thinkup_blog_style; global $thinkup_blog_date; global $post; global $thinkup_blog_pageid; // Set variables to avoid php non-object notice error $_thinkup_meta_blogstyle = NULL; // Assign meta data variable if (!empty($thinkup_blog_pageid)) { $_thinkup_meta_blogstyle = get_post_meta($thinkup_blog_pageid, '_thinkup_meta_blogstyle', true); $_thinkup_meta_blogdate = get_post_meta($thinkup_blog_pageid, '_thinkup_meta_blogdate', true); } // Ensure entry-ontent displays correctly if post has no featured media $check_blogimage = thinkup_input_blogimage(); if (empty($check_blogimage)) { $class_aligndate = '1'; } else { $class_aligndate = NULL; } // Only output for blog layout 1 if (get_page_template_slug($thinkup_blog_pageid) !== 'template-blog.php') { if ($thinkup_blog_date !== '1' and $class_aligndate == '1') { echo ' date-icon'; } } else { if (get_page_template_slug($thinkup_blog_pageid) == 'template-blog.php') { if (empty($_thinkup_meta_blogdate)) { if ($thinkup_blog_date !== '1' and $class_aligndate == '1') { echo ' date-icon'; } } else { if ($_thinkup_meta_blogdate == 'on' and $class_aligndate == '1') { echo ' date-icon'; } } } } }