function get_fb_app_id() { $o = get_sns_options(); return $o['fb_app_id']; }
<?php if (is_all_sns_follow_btns_not_visible()) { ?> <!-- SNSページ --> <?php $options = get_sns_options(); //外観→カスタム→SNSの設定の取得 if ($options) { ?> <div class="sns-pages"> <?php if ($options['follow_msg']) { ?> <p class="sns-follow-msg"><?php echo esc_html($options['follow_msg']); ?> </p> <?php } ?> <ul class="snsp"> <?php if ($options['twitter']) { //Twitter ?> <li class="twitter-page"><a href="https://twitter.com/<?php echo esc_html($options['twitter']); ?> " target="_blank" title="Twitterをフォロー"><i class="fa fa-twitter-square"></i></a></li> <?php
function get_the_description() { $options = get_sns_options(); if ($options['ogp_description'] == 'meta') { global $post; //All in One SEO PackプラグインのDescriptionを取得 $s = get_post_meta($post->ID, _aioseop_description, true); } else { $s = strip_shotcodes(get_the_excerpt()); $s = mb_substr(str_replace(array("\r\n", "\r", "\n"), '', strip_tags($s)), 0, 100); } return $s; }