After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 486 KiB |
After Width: | Height: | Size: 732 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 2.0 MiB |
After Width: | Height: | Size: 2.0 MiB |
After Width: | Height: | Size: 694 KiB |
After Width: | Height: | Size: 805 KiB |
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
$img_array = glob("gallery/*.{gif,jpg,png}",GLOB_BRACE);
|
||||||
|
|
||||||
|
$img = array_rand($img_array);
|
||||||
|
|
||||||
|
$imgurl=$img_array[$img];
|
||||||
|
|
||||||
|
if($imgurl) {
|
||||||
|
header("Location: " . $imgurl);
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
exit('error');
|
||||||
|
}
|
||||||
|
?>
|
|
@ -759,7 +759,7 @@ function custom_html() {
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$( \'<p><div id="verification-slider"><div id="slider"><div id="slider_bg"></div><span id="label">»</span><span id="labelTip">Slide to Verificate</span></div><input type="hidden" name="verification" value="verification" /></div><p>\' ).insertBefore( $( ".submit" ) );
|
$( \'<p><div id="verification-slider"><div id="slider"><div id="slider_bg"></div><span id="label">»</span><span id="labelTip">Slide to Verificate</span></div><input type="hidden" name="verification" value="verification" /></div><p>\' ).insertBefore( $( ".submit" ) );
|
||||||
$(\'form\').attr(\'onsubmit\',\'return verificationOK();\');
|
$(\'form\').attr(\'onsubmit\',\'return verificationOK();\');
|
||||||
$(\'a\').attr(\'style\',\'background-image: url('.akina_option('logo_img').'); width: 130px; height: 130px;\');
|
$(\'a\').attr(\'style\',\'background-image: url('.akina_option('logo_img').'); \');
|
||||||
$(".forgetmenot").replaceWith(\'<p class="forgetmenot">Remember Me<input name="rememberme" id="rememberme" value="forever" type="checkbox"><label for="rememberme" style="float: right;margin-top: 5px;transform: scale(2);margin-right: -10px;"></label></p>\');
|
$(".forgetmenot").replaceWith(\'<p class="forgetmenot">Remember Me<input name="rememberme" id="rememberme" value="forever" type="checkbox"><label for="rememberme" style="float: right;margin-top: 5px;transform: scale(2);margin-right: -10px;"></label></p>\');
|
||||||
});
|
});
|
||||||
</script>';
|
</script>';
|
||||||
|
|
|
@ -30,7 +30,7 @@ if ( akina_option('toggle-menu') == 'no') { ?>
|
||||||
<?php } // comments ?>
|
<?php } // comments ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$imgurl = get_site_url()."/wp-content/themes/Sakura/cover/";
|
$imgurl = akina_option('cover_img');
|
||||||
|
|
||||||
$image_api = 'background-image: url("'.$imgurl.'");';
|
$image_api = 'background-image: url("'.$imgurl.'");';
|
||||||
$bg_style = akina_option('focus_height') ? 'background-position: center center;background-attachment: inherit;' : '';
|
$bg_style = akina_option('focus_height') ? 'background-position: center center;background-attachment: inherit;' : '';
|
||||||
|
|
11
options.php
|
@ -345,13 +345,20 @@ function optionsframework_options() {
|
||||||
'std' => '',
|
'std' => '',
|
||||||
'type' => 'text');
|
'type' => 'text');
|
||||||
|
|
||||||
$options[] = array(
|
$options[] = array(
|
||||||
'name' => __('视频名称', 'options_framework_theme'),
|
'name' => __('视频名称', 'options_framework_theme'),
|
||||||
'desc' => __('abc.mp4 ,只需要填写视频文件名 abc 即可,多个用英文逗号隔开如 abc,efg ,无需在意顺序,因为加载是随机的抽取的 ', 'options_framework_theme'),
|
'desc' => __('abc.mp4 ,只需要填写视频文件名 abc 即可,多个用英文逗号隔开如 abc,efg ,无需在意顺序,因为加载是随机的抽取的 ', 'options_framework_theme'),
|
||||||
'id' => 'amv_title',
|
'id' => 'amv_title',
|
||||||
'std' => '',
|
'std' => '',
|
||||||
'type' => 'text');
|
'type' => 'text');
|
||||||
|
|
||||||
|
$options[] = array(
|
||||||
|
'name' => __('封面图', 'options_framework_theme'),
|
||||||
|
'desc' => __('此处留空则使用内置API(将需要随机展示的图片放入 /cover/gallery/ 目录)', 'options_framework_theme'),
|
||||||
|
'id' => 'cover_img',
|
||||||
|
'std' => get_site_url()."/wp-content/themes/Sakura/cover/index.php",
|
||||||
|
'type' => 'upload');
|
||||||
|
|
||||||
$options[] = array(
|
$options[] = array(
|
||||||
'name' => __('背景图滤镜', 'akina'),
|
'name' => __('背景图滤镜', 'akina'),
|
||||||
'id' => 'focus_img_filter',
|
'id' => 'focus_img_filter',
|
||||||
|
@ -736,7 +743,7 @@ function optionsframework_options() {
|
||||||
|
|
||||||
$options[] = array(
|
$options[] = array(
|
||||||
'name' => __('关于', 'options_framework_theme'),
|
'name' => __('关于', 'options_framework_theme'),
|
||||||
'desc' => __('Theme Sakura v3.0.7 | <a href="https://2heng.xin/theme-sakura/">主题说明</a> | <a href="https://github.com/mashirozx/Sakura/">源码</a>', 'options_framework_theme'),
|
'desc' => __('Theme Sakura v'.SAKURA_VERSION.' | <a href="https://2heng.xin/theme-sakura/">主题说明</a> | <a href="https://github.com/mashirozx/Sakura/">源码</a>', 'options_framework_theme'),
|
||||||
'id' => 'theme_intro',
|
'id' => 'theme_intro',
|
||||||
'std' => '',
|
'std' => '',
|
||||||
'type' => 'typography ');
|
'type' => 'typography ');
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<?php if ( has_post_thumbnail() ) { ?>
|
<?php if ( has_post_thumbnail() ) { ?>
|
||||||
<a href="<?php the_permalink();?>"><?php the_post_thumbnail('large'); ?></a>
|
<a href="<?php the_permalink();?>"><?php the_post_thumbnail('large'); ?></a>
|
||||||
<?php } else {?>
|
<?php } else {?>
|
||||||
<a href="<?php the_permalink();?>"><img src="<?php bloginfo('template_url'); ?>/images/temp.png" /></a>
|
<a href="<?php the_permalink();?>"><img src="<?php bloginfo('template_url'); ?>/feature/index.php" /></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ if(has_post_thumbnail()){
|
||||||
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
|
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
|
||||||
$post_img = $large_image_url[0];
|
$post_img = $large_image_url[0];
|
||||||
}else{
|
}else{
|
||||||
$post_img = get_bloginfo('template_url') . '/images/temp.png';
|
$post_img = get_bloginfo('template_url') . '/feature/index.php';
|
||||||
}
|
}
|
||||||
$the_cat = get_the_category();
|
$the_cat = get_the_category();
|
||||||
// 摘要字数限制
|
// 摘要字数限制
|
||||||
|
|