Пример #1
0
<?php

//check social share is Enable or not
$socialshare = get_post_meta(get_the_ID(), "post-social-share", true);
?>
<div <?php 
post_class();
?>
>
    <div class="post-media">
        <?php 
//Parse the content for the first occurrence of video url
$audio = ep_extract_audio_info(ep_get_meta('audio-url'));
if ($audio != null) {
    //Extract video ID
    ?>
            <div class="post-media audio-frame">
                <?php 
    echo ep_soundcloud_get_embed($audio['url']);
    ?>
            </div>
        <?php 
}
?>
    </div>
    
    <?php 
get_template_part('templates/single', "post-meta");
the_content();
wp_link_pages();
?>
Пример #2
0
<?php

get_template_part('templates/loop', "blog-meta");
?>
<div class="post-content">
    <?php 
//Parse the content for the first occurrence of video url
$audio = ep_extract_audio_info(get_post_meta(get_the_ID(), 'audio-url', true));
if ($audio != null) {
    //Extract video ID
    ?>
        <div class="post-media audio-frame">
        <?php 
    echo ep_soundcloud_get_embed($audio['url']);
    ?>
        </div>
    <?php 
}
// blog Post text excerpt
the_excerpt();
?>
    <div class="redmore_line"></div>

    <!-- post link button -->
    <a class="redmore_button button right" href="<?php 
the_permalink();
?>
" title="" target="">
        <div class="frame top">
            <div></div>
        </div>