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

$twitter_account = get_option('twitter_account');
$facebook_url = get_option('facebook_url');
$g = get_option('prof_g');
$line_id = strtolower(get_option('line_id'));
?>

<!--  フォローボタン  -->
<div class="box follow-box">
<h2 class="box-header main-color-font">フォローする</h2>

<?php 
if (is_twitter_follow()) {
    ?>
	<?php 
    if ($twitter_account) {
        ?>
		<a href="https://twitter.com/<?php 
        echo $twitter_account;
        ?>
" rel="nofollow" target="_blank">
	<?php 
    }
    ?>
	<p class="lsf follow-icon twitter<?php 
    if (!$twitter_account) {
        echo " not";
    }
    ?>
">twitter</p>
Пример #2
0
function customize_css()
{
    ?>
	<style>
	.main-color-background,
	.content h2{background-color: <?php 
    echo get_main_color();
    ?>
;}
	.main-color-font{color: <?php 
    echo get_main_color();
    ?>
;}
	.site-title, .site-title a, .site-desc, .content h2, .more-link, .min-more-link, .go-comment-arrow{color: <?php 
    echo get_title_color();
    ?>
;}
	.content h3{border-bottom: 3px solid <?php 
    echo get_main_color();
    ?>
;}
	.content h4{border-left: 8px solid <?php 
    echo get_main_color();
    ?>
;}
	.content h5{border-left: 3px solid <?php 
    echo get_main_color();
    ?>
}
	.share, .comments-header{border-bottom: 2px solid <?php 
    echo get_main_color();
    ?>
;}
	.sub-color-background{background-color: <?php 
    echo get_sub_color();
    ?>
;}

	.no-thumbnail p:hover,
	.post-title a:hover,
	.bread ul li a:hover,
	.site-title a:hover,
	.kanren-post-name a:hover,
	.same-tag a:hover,
	.same-category a:hover,
	.side .box a:hover,
	.footer a:hover{color: <?php 
    echo get_link_hover_color();
    ?>
;}

	.nav-inner ul li a:hover,
	.cat-link a:hover,
	.more-link:hover,
	.min-more-link:hover,
	.pagenavi .current,
	.pagenavi a:hover,
	.com-nav a:hover,
	.go-comment-arrow:hover,
	.search-submit:hover,
	.move-button:hover{background-color: <?php 
    echo get_link_hover_color();
    ?>
;}
	.no-thumbnail{height: <?php 
    echo get_thumbnail_height();
    ?>
;}
	.thumb-box{max-height: <?php 
    echo get_thumbnail_height();
    ?>
;}
	<?php 
    if (get_option("is_shadow")) {
        echo ".main-color-font, .content h2{text-shadow: 1px 1px 1px #333;}";
    }
    $count_followButtons = 1;
    if (is_twitter_follow()) {
        $count_followButtons += 1;
    }
    if (is_fb_follow()) {
        $count_followButtons += 1;
    }
    if (is_g_follow()) {
        $count_followButtons += 1;
    }
    if (is_line_follow()) {
        $count_followButtons += 1;
    }
    $width_followButton = floor(100 / $count_followButtons);
    ?>
	.follow-icon{width: <?php 
    echo $width_followButton;
    ?>
%;}
	</style>
<?php 
}