function wpfc_podcast_summary($content)
{
    global $post;
    //$content = '';
    $content = strip_tags(get_wpfc_sermon_meta('sermon_description'));
    //$content = wpautop(do_shortcode( get_wpfc_sermon_meta('sermon_description') ) );
    return $content;
}
示例#2
0
function wpfc_sermon_attachments()
{
    global $post;
    $args = array('post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID, 'exclude' => get_post_thumbnail_id());
    $attachments = get_posts($args);
    if ($attachments) {
        echo '<div id="wpfc-attachments" class="cf">';
        echo '<p><strong>' . __('Download Files', 'sermon-manager') . '</strong>';
        foreach ($attachments as $attachment) {
            echo '<br/><a target="_blank" href="' . wp_get_attachment_url($attachment->ID) . '">';
            echo $attachment->post_title;
        }
        echo '</a>';
        echo '</p>';
        echo '</div>';
    } else {
        echo '<div id="wpfc-attachments" class="cf">';
        echo '<p><strong>' . __('Download Files', 'sermon-manager') . '</strong>';
        if (get_wpfc_sermon_meta('sermon_audio')) {
            echo '<a href="' . get_wpfc_sermon_meta('sermon_audio') . '" class="sermon-attachments">' . __('MP3', 'sermon-manager') . '</a>';
        }
        if (get_wpfc_sermon_meta('sermon_docx')) {
            echo '<a href="' . get_wpfc_sermon_meta('sermon_docx') . '" class="sermon-attachments">' . __('Study Questions(docx, print)', 'sermon-manager') . '</a>';
        }
        if (get_wpfc_sermon_meta('sermon_pdf')) {
            echo '<a href="' . get_wpfc_sermon_meta('sermon_pdf') . '" class="sermon-attachments">' . __('Study Questions Print(pdf)', 'sermon-manager') . '</a>';
        }
        echo '</p>';
        echo '</div>';
    }
}