'social-menu', 'container' => 'ul', 'menu_class' => 'social-menu menu', 'menu_id' => 'menu-social', )); endif; } } if (!function_exists('blockwp_show_menu_button')) { /** * Add button on logo Section * * @since 1.0.0 * */ function blockwp_show_menu_button() { if ( !empty(get_theme_mod('blockwp_menu_button_link', __('#', 'blockwp'))) && !empty(get_theme_mod('blockwp_menu_button_text', __('Subscribe', 'blockwp'))) ) { ?> ' class='btn btn-dark text-uppercase'> ID; } $categories = get_the_category($post_id); $output = ''; $separator = ' '; if ($categories) { $output .= '
'; foreach ($categories as $category) { $output .= ' ' . esc_html($category->cat_name) . ' ' . $separator; } $output .= '
'; return $output; } } endif; /** * List down the category of a post * * @param int $post_id * @return string list of category * * @since 1.0.0 * */ if (!function_exists('blockwp_posted_category')) : function blockwp_posted_category($post_id = 0) { if (0 == $post_id) { global $post; $post_id = $post->ID; } $categories = get_the_category($post_id); $output = ''; $separator = ' '; if ($categories) { $output .= '
'; foreach ($categories as $category) { $output .= ' ' . esc_html($category->cat_name) . ' ' . $separator; } $output .= '
'; echo $output; } } endif; /** * Show/hide tags on single post * * @param null * @return string list of tags of a post * * @since 1.0.0 * */ if (!function_exists('blockwp_entry_tags')) : function blockwp_entry_tags() { // Hide tag text for pages. if ('post' === get_post_type()) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', esc_html_x(', ', 'list item separator', 'blockwp')); if ($tags_list) { /* translators: 1: list of tags. */ printf(' ' . esc_html__('%1$s', 'blockwp') . '', $tags_list); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } } endif; /** * BreadCrumb Settings */ if (!function_exists('blockwp_breadcrumbs')) : function blockwp_breadcrumbs() { $breadcrumb_args = array( 'container' => 'div', 'show_browse' => false ); echo ""; } endif;