%4$s'; if (get_the_time('U') !== get_the_modified_time('U')) { $time_string = ''; } printf('' . __('Posted on', "business-elite") . '' . $time_string . '', esc_url(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_date(DATE_W3C)), esc_html(get_the_date()), esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', "business-elite"), get_the_author())), get_the_author(), esc_attr(get_the_modified_date(DATE_W3C)), esc_attr(get_the_modified_date()) ); } /*----- PAGE/POST INFORMATION ------*/ public static function top_posts($paged = 1) { global $wdwt_front; $top_posts_enable = $wdwt_front->get_param('top_posts_enable'); $top_posts_title = stripcslashes($wdwt_front->get_param('top_posts_title')); $top_posts_description = stripslashes($wdwt_front->get_param('top_posts_description')); $top_posts_categories = $wdwt_front->get_param('top_posts_categories', array(), array('')); $top_posts_categories = isset($top_posts_categories[0]) && empty($top_posts_categories[0]) ? array() : $top_posts_categories; $orderby = $wdwt_front->get_param('top_posts_orderby', array(), array('date')); $orderby = $orderby[0]; $order = $wdwt_front->get_param('top_posts_order', array(), array('desc')); $order = $order[0]; if ($top_posts_enable) { $args = array( 'paged' => $paged, 'posts_per_page' => 3, 'orderby' => $orderby, 'order' => $order, 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $top_posts_categories, 'operator' => empty($top_posts_categories) ? 'EXISTS' : 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $top_posts_categories, 'operator' => empty($top_posts_categories) ? 'EXISTS' : 'IN', ), ), ); $wp_query = new WP_Query($args); if ($wp_query->have_posts()) { ?>
" . substr(strip_tags($recent["post_content"]), 0, 50) . "...
\r\n \t\t\t\t\t\t\t\t" . $recent["post_date"] . "\r\n \t\t\t\t\t\t\t' . substr(strip_tags(get_the_excerpt()), 0, 250) . '...
'; if ($wdwt_front->get_param('date_enable')) { $listt .= '' . substr(strip_tags(get_the_excerpt()), 0, 250) . '...
'; if ($wdwt_front->get_param('date_enable')) { $listt .= 'ID); ?>