コード例 #1
0
       <meta name="twitter:app:url:googleplay" content="<?php 
                echo twitter_app_android_url();
                ?>
">
       <?php 
                break;
            default:
                return;
        }
    }
} else {
    ?>
   <meta property="og:title" content="<?php 
    echo default_title();
    ?>
">
   <meta property="og:type" content="article">
   <meta property="og:url" content="<?php 
    echo page_url();
    ?>
">
   <meta property="og:image" content="<?php 
    echo default_image();
    ?>
">
   <meta property="og:description" content="<?php 
    echo default_description();
    ?>
">
   <?php 
}
コード例 #2
0
        <i class="icon-twitter"></i>
    </span>
    <span class="social-share-button" onclick="popUp=window.open('https://www.linkedin.com/shareArticle?mini=true&url=<?php 
    echo page_url();
    ?>
', 'popupwindow', 'scrollbars=yes,width=800,height=400');popUp.focus();return false">
        <i class="icon-linkedin"></i>
    </span>
    <span class="social-share-button" onclick="popUp=window.open('http://pinterest.com/pin/create/link/?url=<?php 
    echo page_url();
    ?>
&media=<?php 
    echo default_image();
    ?>
&description=<?php 
    echo urlencode(default_description());
    ?>
', 'popupwindow', 'scrollbars=yes,width=800,height=400');popUp.focus();return false">
    <i class="icon-pinterest"></i>
    </span>

    <a class="social-share-button mail" href="mailto:?subject=<?php 
    echo email_title();
    ?>
&body=<?php 
    echo email_description();
    ?>
">
        <i class="icon-email"></i>
    </a>
</div>
コード例 #3
0
function email_description()
{
    return email() && email()->getArray()[0]['card_description'] ? email()->getArray()[0]['card_description']->getValue() : default_description();
}