<?php //フェイスブックページのURLを設定↓ $facebook_page_url = 'https://www.facebook.com/' . get_facebook_follow_id(); ?> <div class="article-like"> <div class="article-like-thumb"> <?php if (has_post_thumbnail()) { // サムネイルを持っているとき ?> <?php the_post_thumbnail('thumb100', array('class' => 'article-like-entry-thumnail', 'alt' => get_the_title())); ?> <?php } else { // サムネイルを持っていない ?> <img src="<?php echo get_template_directory_uri(); //get_stylesheet_directory_uri();子テーマに画像を置いた場合 ?> /images/no-image.png" alt="NO IMAGE" class="article-like-entry-thumnail no-image" /> <?php } ?> </div> <div class="article-like-arrow-box"> <div class="article-like-arrow-box-in"> <div class="article-like-button"> <div class="fb-like fb-like-pc" data-href="<?php
<ul class="snsp"> <?php if (get_twitter_follow_id()) { //Twitterフォローボタンを表示するか ?> <li class="twitter-page"><a href="//twitter.com/<?php echo esc_html(get_twitter_follow_id()); //TwitterフォローIDの取得 ?> " target="_blank" title="Twitterをフォロー" rel="nofollow"><span class="fa fa-twitter-square"></span></a></li><?php } if (get_facebook_follow_id()) { //Facebookフォローボタンを表示するか ?> <li class="facebook-page"><a href="//www.facebook.com/<?php echo esc_html(get_facebook_follow_id()); //FacebookフォローIDの取得 ?> " target="_blank" title="Facebookをフォロー" rel="nofollow"><span class="fa fa-facebook-square"></span></a></li><?php } if (get_google_plus_follow_id()) { //Google+フォローボタンを表示するか ?> <li class="google-plus-page"><a href="//plus.google.com/<?php echo esc_html(get_google_plus_follow_id()); //Google+フォローIDの取得 ?> " target="_blank" title="Google+をフォロー" rel="nofollow publisher"><span class="fa fa-google-plus-square"></span></a></li><?php } if (get_hatebu_id()) { //はてブフォローボタンを表示するか
</label> <textarea class="widefat" id="<?php echo $this->get_field_id('text_facebook_page_like'); ?> " name="<?php echo $this->get_field_name('text_facebook_page_like'); ?> " cols="20" rows="16"><?php echo $text; ?> </textarea> </p> <?php } } if (get_facebook_follow_id()) { //FacebookページのIDがカスタマイザーで設定されている時 add_action('widgets_init', create_function('', 'return register_widget("FacebookPageLikeWidgetItem");')); } /////////////////////////////////////////////////// //モバイル用広告ウイジェットの追加 /////////////////////////////////////////////////// class MobileAdWidgetItem extends WP_Widget { function MobileAdWidgetItem() { parent::__construct(false, $name = '[S] モバイル用広告ウィジェット', array('description' => 'モバイルのみで表示されるSimplicity用の広告ウィジェットです。(※アドセンスの場合は広告コードのみを記入してください。)')); //ウイジェット名 } function widget($args, $instance) {