Skip to content

Commit e022a07

Browse files
committed
Update to 0.2.5
1. Add APlayer as global music player. 2.fix the bug of #9 . 3.others
1 parent 374784d commit e022a07

File tree

354 files changed

+266
-1056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+266
-1056
lines changed

css/font-awesome.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/kratos.min.css

Lines changed: 108 additions & 2 deletions
Large diffs are not rendered by default.

fonts/fontawesome-webfont.svg

Lines changed: 1 addition & 1 deletion

footer.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,34 @@
3333
</footer>
3434
</div>
3535
</div>
36+
<?php if(kratos_option('ap_footer')){ ?>
37+
<div class="aplayer-footer">
38+
<div class="ap-f" id="ap-f"></div>
39+
<script>
40+
$(function(){
41+
$.ajax({
42+
url:"<?php echo kratos_option('ap_json'); ?>",
43+
success:function(e){
44+
var a = new APlayer({
45+
element:document.getElementById("ap-f"),
46+
autoplay:<?php if(kratos_option('ap_autoplay')) echo 'true'; else echo 'false'; ?>,
47+
fixed:true,
48+
loop:"<?php echo kratos_option('ap_loop'); ?>",
49+
order:"<?php echo kratos_option('ap_order'); ?>",
50+
listFolded:true,
51+
showlrc:3,
52+
theme:"#e6d0b2",
53+
listmaxheight:"200px",
54+
music:eval(e)
55+
});
56+
window.aplayers || (window.aplayers = []),
57+
window.aplayers.push(a)
58+
}
59+
})
60+
})
61+
</script>
62+
</div>
63+
<?php } ?>
3664
<?php if(kratos_option('site_girl')=='spig'&&!wp_is_mobile()){ ?>
3765
<div id="spig" class="spig">
3866
<div id="message">Loading...</div>

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
define('KRATOS_VERSION','0.1.0');
3+
define('KRATOS_VERSION','0.2.5');
44

55
require_once(get_template_directory().'/inc/core.php');
66
require_once(get_template_directory().'/inc/shortcode.php');

header.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@
2323
<meta name="robots" content="index,follow" />
2424
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
2525
<meta name="format-detection" content="telphone=no, email=no" />
26-
<meta itemprop="name" content="<?php wp_title('-',true,'right'); ?>" />
27-
<meta itemprop="image" content="<?php echo kratos_option('site_ico'); ?>" />
2826
<meta name="description" itemprop="description" content="<?php kratos_description(); ?>" />
2927
<meta name="keywords" content="<?php kratos_keywords(); ?>">
3028
<link rel="icon" type="image/x-icon" href="<?php echo kratos_option('site_ico'); ?>" />
31-
<?php wp_head();wp_print_scripts('jquery');?>
29+
<?php wp_head();wp_print_scripts('theme-jq');?>
3230
<style><?php
3331
echo '#offcanvas-menu{background:rgba('.kratos_option('mobi_color').')}';
3432
if(kratos_option('background_mode')=='image'&&!wp_is_mobile()&&!kratos_option('site_bw')) echo '@media(min-width:768px){.pagination>li>a{background-color:rgba(255,255,255,.8)}.kratos-hentry,.navigation div,.comments-area .comment-list li,#kratos-widget-area .widget,.comment-respond{background-color:rgba(253,253,253,.85)!important}.comment-list .children li{background-color:rgba(255,253,232,.7)!important}body.custom-background{background-image:url('.kratos_option('background_index_image').');background-size:cover;background-attachment:fixed}}';

images/net/abolimba.png

-872 Bytes
Binary file not shown.

images/net/abrowse.png

-1.49 KB
Binary file not shown.

images/net/acoobrowser.png

-1.73 KB
Binary file not shown.

images/net/alienforce.png

-1.79 KB
Binary file not shown.

0 commit comments

Comments
 (0)