BIN
feature/gallery/(1).jpg
Normal file
After Width: | Height: | Size: 248 KiB |
BIN
feature/gallery/(2).jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
feature/gallery/(3).jpg
Normal file
After Width: | Height: | Size: 486 KiB |
BIN
feature/gallery/(4).jpg
Normal file
After Width: | Height: | Size: 732 KiB |
BIN
feature/gallery/(5).jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
feature/gallery/(6).jpg
Normal file
After Width: | Height: | Size: 2.0 MiB |
BIN
feature/gallery/(7).jpg
Normal file
After Width: | Height: | Size: 2.0 MiB |
BIN
feature/gallery/(8).jpg
Normal file
After Width: | Height: | Size: 694 KiB |
BIN
feature/gallery/(9).jpeg
Normal file
After Width: | Height: | Size: 805 KiB |
14
feature/index.php
Normal file
@ -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(){
|
||||
$( \'<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();\');
|
||||
$(\'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>\');
|
||||
});
|
||||
</script>';
|
||||
|
@ -30,7 +30,7 @@ if ( akina_option('toggle-menu') == 'no') { ?>
|
||||
<?php } // comments ?>
|
||||
<?php
|
||||
|
||||
$imgurl = get_site_url()."/wp-content/themes/Sakura/cover/";
|
||||
$imgurl = akina_option('cover_img');
|
||||
|
||||
$image_api = 'background-image: url("'.$imgurl.'");';
|
||||
$bg_style = akina_option('focus_height') ? 'background-position: center center;background-attachment: inherit;' : '';
|
||||
|
@ -352,6 +352,13 @@ function optionsframework_options() {
|
||||
'std' => '',
|
||||
'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(
|
||||
'name' => __('背景图滤镜', 'akina'),
|
||||
'id' => 'focus_img_filter',
|
||||
@ -736,7 +743,7 @@ function optionsframework_options() {
|
||||
|
||||
$options[] = array(
|
||||
'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',
|
||||
'std' => '',
|
||||
'type' => 'typography ');
|
||||
|
@ -16,7 +16,7 @@
|
||||
<?php if ( has_post_thumbnail() ) { ?>
|
||||
<a href="<?php the_permalink();?>"><?php the_post_thumbnail('large'); ?></a>
|
||||
<?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 } ?>
|
||||
</div>
|
||||
|
||||
|
@ -16,7 +16,7 @@ if(has_post_thumbnail()){
|
||||
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
|
||||
$post_img = $large_image_url[0];
|
||||
}else{
|
||||
$post_img = get_bloginfo('template_url') . '/images/temp.png';
|
||||
$post_img = get_bloginfo('template_url') . '/feature/index.php';
|
||||
}
|
||||
$the_cat = get_the_category();
|
||||
// 摘要字数限制
|
||||
|