Example #1
0
        echo ' | ' . sprintf(__('Page %s', 'ocmx'), max($paged, $page));
    }
    ?>

        </title>

<?php 
}
?>

<!-- Setup OpenGraph support-->

<?php 
if (get_option("ocmx_open_graph") != "yes") {
    $default_thumb = get_option('ocmx_site_thumbnail');
    $fb_image = get_fbimage();
    if (is_home()) {
        ?>

        <meta property="og:title" content="<?php 
        bloginfo('name');
        ?>
"/>

        <meta property="og:description" content="<?php 
        bloginfo('description');
        ?>
"/>

        <meta property="og:url" content="<?php 
        echo home_url();
function fb_og()
{
    if (have_posts()) {
        while (have_posts()) {
            the_post();
        }
    }
    ?>
    <meta property="fb:app_id" content="508692752556567" />  
    <meta property="fb:admins" content="1849668240" /> 
    <?php 
    if (is_single()) {
        ?>
  
    <meta property="og:url" content="<?php 
        the_permalink();
        ?>
"/>  
    <meta property="og:title" content="<?php 
        the_title();
        ?>
" />  
    <meta property="og:description" content="<?php 
        echo strip_shortcodes(get_the_excerpt($post->ID));
        ?>
" />  
    <meta property="og:type" content="<?php 
        if (is_single() || is_page()) {
            echo "article";
        } else {
            echo "website";
        }
        ?>
"/>
    <meta property="og:image" content="<?php 
        echo get_fbimage();
        ?>
" />    
    <?php 
    }
}