Skip to content

Commit

Permalink
Merge pull request #15 from mirai-mamori/beta
Browse files Browse the repository at this point in the history
1.11.3(とおはなび Update 4)
  • Loading branch information
mirai-mamori authored Apr 18, 2020
2 parents 387d0a8 + 9250527 commit 6049cc9
Show file tree
Hide file tree
Showing 8 changed files with 712 additions and 643 deletions.
8 changes: 8 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ class="aplayer"
<link rel="stylesheet" href="<?php echo akina_option('logo_zt', ''); ?>" media="all">
<link rel="stylesheet" href="https://fonts.loli.net/css?family=Noto+SerifMerriweather|Merriweather+Sans|Source+Code+Pro|Ubuntu:400,700|Noto+Serif+SC" media="all">

<!-- 收缩、展开 -->
<script>jQuery(document).ready(
function(jQuery){
jQuery('.collapseButton').click(function(){
jQuery(this).parent().parent().find('.xContent').slideToggle('slow');
});
});</script>


</body>
</html>
16 changes: 16 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1957,4 +1957,20 @@ function mimvp_file_is_displayable_image($result, $path) {
}
add_filter( 'file_is_displayable_image', 'mimvp_file_is_displayable_image', 10, 2 );

//code end

//展开收缩功能
function xcollapse($atts, $content = null){
extract(shortcode_atts(array("title"=>""),$atts));
return '<div style="margin: 0.5em 0;">
<div class="xControl">
<i class="fa fa-arrow-down" style="color: #9F6F26;"></i> &nbsp;&nbsp;
<span class="xTitle">'.$title.'</span>&nbsp;&nbsp;==>&nbsp;&nbsp;<a href="javascript:void(0)" class="collapseButton xButton"><span class="xbtn02">展开 / 收缩</span></a>
<div style="clear: both;"></div>
</div>
<div class="xContent" style="display: none;">'.$content.'</div>
</div>';
}
add_shortcode('collapse', 'xcollapse');

//code end
5 changes: 5 additions & 0 deletions inc/decorate.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@ function customizer_css() { ?>

a:active {cursor: url(<?php echo akina_option('cursor-work'); ?>), alias}

/*其他*/
.comment-respond textarea {
background-image: url(<?php echo akina_option('comment-image'); ?>);
}

</style>
<?php }
add_action('wp_head', 'customizer_css');
Loading

0 comments on commit 6049cc9

Please sign in to comment.