echo $post_meta_separator; } ?> <?php the_tags(__('Tags: ', 'yit'), ', '); ?> </span> <?php yit_edit_post_link(__('Edit', 'yit'), '<span class="yit-edit-post"> ' . $post_meta_separator, '</span>'); ?> <?php } ?> </div> <?php } ?> </div> </div> <div class="yit_the_content"> <?php echo true == $show_read_more ? yit_plugin_content('excerpt', 60, $read_more_text, '', false) : yit_plugin_content('excerpt', 60, '', '', false); ?> </div> </div> <?php } ?> </div> </div> </div>
$html .= '<div class="hentry-post group">' . "\n"; if ($date == "yes") { $html .= '<p class="post-date"><span class="day">' . get_the_time('d') . '</span><span class="month">' . get_the_time('M') . '</span></p>'; } if ($showthumb == 'yes' && $img != '') { $html .= " <div class=\"thumb-img\"><a href=\"" . get_permalink() . "\">{$img}</a></div>\n"; } $html .= '<div class="text">'; $html .= the_title('<a href="' . get_permalink() . '" title="' . get_the_title() . '" class="title">', '</a>', false); if (strpos($readmore, "href='#'")) { $post_readmore = str_replace("href='#'", "href='" . get_permalink() . "'", $readmore); } else { $post_readmore = $readmore; } if ($excerpt != 'no') { $html .= yit_plugin_content('excerpt', $excerpt_length, $post_readmore) . ''; } $html .= '<div class="post-meta">'; if ($author == 'yes') { $html .= '<span class="author">' . __('by', 'yit') . ' ' . '<a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_link() . '</a></span>'; } if ($author == 'yes' && $comments == 'yes') { $html .= " // "; } if ($comments == 'yes') { $html .= '<span class="comments"><a href="' . get_comments_link(get_the_ID()) . '">' . get_comments_number() . (get_comments_number() == 1 ? __(' comment', 'yit') : __(' comments', 'yit')) . '</a></span>'; } $html .= '</div>'; $html .= '</div>' . "\n"; $html .= '</div>' . "\n"; $html .= '<div class="clear"></div>';
<?php } ?> </div> <?php if ($show_title == 'yes') { ?> <h3><?php echo yit_plugin_decode_title(get_the_title()); ?> </h3><?php } ?> <?php if ($show_excerpt == 'yes') { echo yit_plugin_content('content', $excerpt_length); if ($show_services_button == "yes") { ?> <div class="read-more"> <a class="red-button" href="<?php echo esc_url(get_permalink()); ?> "><?php echo $services_button_text; ?> </a> </div> <?php } } ?>
$showtitle = isset($showtitle) && $showtitle == 'yes' ? true : false; $last = isset($last) && $last == 'yes' ? 'last' : ''; $html = "\n"; while ($posts->have_posts()) { $posts->the_post(); global $more, $post; $more = 0; $img = ''; if (isset($icon) && $icon != '') { $img = "<span class=\"fa fa-" . $icon . "\" style=\"font-size: " . $size . "px; color: " . $color . ";\"></span>"; } $html .= "<div class=\"yit_shortcodes last-post col-sm-3 " . $last . " " . $class . "\">\n"; $html .= " <h2>" . $title . "</h2>\n"; if ($showtitle) { $html .= " {$img}\n"; $html .= " <h3 class=\"title-widget-blog\"><a href=\"" . get_permalink() . "\">" . get_the_title() . "</a></h3>\n"; } if ($showdate) { $html .= " <p class=\"date\">" . date('F jS, Y', strtotime($post->post_date)) . "</p>\n"; } $html .= yit_plugin_content('excerpt', $excerpt_lenght, $more_text); $html .= "</div>"; } if ($last == 'last') { $html .= "<div class=\"clearfix\"></div>"; } ?> <?php echo $html; wp_reset_query();
<?php endif; ?> <div class="yit_post_content clearfix"> <h3 class="post-title"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3> <div class="yit_the_content"> <?php if ( strpos( $readmore, "href='#'" ) ) { $post_readmore = str_replace( "href='#'", "href='" . get_permalink() . "'", $readmore ); } else { $post_readmore = $readmore; } if( $excerpt != 'no'): ?> <?php echo yit_plugin_content( 'excerpt', $excerpt_length, $post_readmore, '', false ) ?> <?php endif ?> </div> </div> <div class="yit_post_meta"> <?php if( $author == 'yes' ): ?> <span class="author <?php echo $author_icon_class ?>"> <?php if( $author_icon_type == 'icon' ) echo $author_icon ?> <?php echo __('by', 'yit') . ' '; the_author_posts_link(); ?> </span> <?php endif ?> <?php if( $show_categories ) : ?>