(.*?)<\/select>/s', '
$2
', $dropdown_list ); // Output $html = '
'; $html .= sprintf( '', esc_attr( $input_placeholder ) ); $html .= ''; $html .= '
'; if ( $echo ) { echo $html; } else { return $html; } } /** * Outputs a list of categories. * * @since 1.0.0 * @param array $attributes Array of attributes to control the output. * @return string|null The HTML string if 'echo' is false. Otherwise, echoes the output. */ function aiopod_the_categories( $attributes = array() ) { $echo = isset( $attributes['echo'] ) ? (bool) $attributes['echo'] : true; $categories = AIOPOD_Public_Categories::get_instance(); $html = $categories->render_shortcode_categories( $attributes ); if ( $echo ) { echo $html; } else { return $html; } } /** * Outputs a category card layout with header, image, and metadata. * * @since 1.0.0 * @param WP_Term $term WP term object. * @param array $attributes Array of attributes to control the output. */ function aiopod_the_category_card( $term, $attributes = array() ) { if ( empty( $term ) ) { return; } include apply_filters( 'aiopod_load_template', AIOPOD_PLUGIN_DIR . 'public/templates/categories/category-card.php', $attributes ); } /** * Outputs an episode card layout with header, image, and metadata. * * @since 1.0.0 * @param WP_Post $post WP post object. * @param array $attributes Array of attributes to control the output. */ function aiopod_the_episode_card( $post, $attributes = array() ) { if ( empty( $post ) ) { return; } include apply_filters( 'aiopod_load_template', AIOPOD_PLUGIN_DIR . 'public/templates/episodes/episode-card.php', $attributes ); } /** * Outputs the