Version Description
- Very minor changes that do not affect the operation of the plugin.
Download this release
Release Info
Developer | s56bouya |
Plugin | Newpost Catch |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.7
- class.php +46 -22
- languages/newpost-catch-ja.mo +0 -0
- languages/newpost-catch-ja.po +41 -0
- languages/newpost-catch.pot +45 -0
- newpost-catch.php +1 -1
- readme.txt +25 -13
- style.css +7 -84
class.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
if ( !class_exists('NewpostCatch') ) {
|
6 |
class NewpostCatch extends WP_Widget {
|
7 |
/*** plugin variables ***/
|
8 |
-
var $version = "1.0.
|
9 |
var $pluginDir = "";
|
10 |
|
11 |
/*** plugin structure ***/
|
@@ -37,13 +37,13 @@ if ( !class_exists('NewpostCatch') ) {
|
|
37 |
load_plugin_textdomain ( 'newpost-catch', false, basename( rtrim(dirname(__FILE__), '/') ) . '/languages' );
|
38 |
}
|
39 |
|
40 |
-
/** insert header stylesheet **/
|
41 |
function NewpostCatch_print_stylesheet() {
|
42 |
$css_path = ( @file_exists(TEMPLATEPATH.'/css/newpost-catch.css') ) ? get_stylesheet_directory_uri().'/css/newpost-catch.css' : plugin_dir_url( __FILE__ ).'style.css';
|
43 |
echo "\n"."<!-- Newpost Catch ver".$this->version." -->"."\n".'<link rel="stylesheet" href="' . $css_path . '" type="text/css" media="screen" />'."\n"."<!-- End Newpost Catch ver".$this->version." -->"."\n";
|
44 |
}
|
45 |
|
46 |
-
|
47 |
function widget($args, $instance) {
|
48 |
extract( $args );
|
49 |
|
@@ -51,6 +51,21 @@ if ( !class_exists('NewpostCatch') ) {
|
|
51 |
$width = apply_filters('NewpostCatch_widget_width', $instance['width']);
|
52 |
$height = apply_filters('NewpostCatch_widget_height', $instance['height']);
|
53 |
$number = apply_filters('NewpostCatch_widget_number', $instance['number']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
echo $before_widget;
|
56 |
|
@@ -62,28 +77,34 @@ if ( !class_exists('NewpostCatch') ) {
|
|
62 |
<?php if( have_posts() ) : ?>
|
63 |
<?php while( have_posts() ) : the_post(); ?>
|
64 |
<li>
|
65 |
-
<
|
66 |
-
<?php if( has_post_thumbnail() )
|
67 |
-
<?php
|
68 |
-
<?php
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
<?php if ( $instance['date']['active'] ) { ?>
|
74 |
-
<span class="date"><?php the_time('[Y/m/d]' , '' , '' ); ?></span>
|
75 |
<?php } ?>
|
76 |
</a></span>
|
77 |
</li>
|
78 |
<?php endwhile; ?>
|
79 |
<?php else : ?>
|
80 |
<p>no post</p>
|
81 |
-
<?php endif; ?>
|
82 |
</ul>
|
83 |
<?php
|
84 |
echo $after_widget;
|
85 |
}
|
86 |
-
|
87 |
|
88 |
/** @see WP_Widget::update **/
|
89 |
// updates each widget instance when user clicks the "save" button
|
@@ -97,7 +118,6 @@ if ( !class_exists('NewpostCatch') ) {
|
|
97 |
$instance['number'] = is_numeric($new_instance['number']) ? $new_instance['number'] : 5;
|
98 |
$instance['date']['active'] = $new_instance['date'];
|
99 |
|
100 |
-
//return $instance;
|
101 |
return $instance;
|
102 |
}
|
103 |
|
@@ -110,24 +130,28 @@ if ( !class_exists('NewpostCatch') ) {
|
|
110 |
$defaults = array( 'date' => array( 'active' => false ) );
|
111 |
?>
|
112 |
<p>
|
113 |
-
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:' , 'newpost-catch');
|
114 |
<input id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" class="widefat" value="<?php echo $title; ?>" /></label>
|
115 |
</p>
|
116 |
<p>
|
117 |
<?php _e('Thumbnail Size' , 'newpost-catch'); ?><br />
|
118 |
-
<label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Width:' , 'newpost-catch');
|
119 |
-
<input id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name( 'width' ); ?>" type="
|
120 |
<br />
|
121 |
-
<label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:' , 'newpost-catch');
|
122 |
-
<input id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="
|
123 |
</p>
|
124 |
<p>
|
125 |
-
<label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Showposts:' , 'newpost-catch');
|
126 |
-
<input style="width:30px;" id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="
|
127 |
</p>
|
128 |
<p>
|
129 |
<input type="checkbox" class="checkbox" <?php echo ($instance['date']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'date' ); ?>" name="<?php echo $this->get_field_name( 'date' ); ?>" /> <label for="<?php echo $this->get_field_id( 'date' ); ?>"><?php _e('Display date', 'newpost-catch'); ?></label>
|
130 |
</p>
|
|
|
|
|
|
|
|
|
131 |
<?php
|
132 |
}
|
133 |
}
|
5 |
if ( !class_exists('NewpostCatch') ) {
|
6 |
class NewpostCatch extends WP_Widget {
|
7 |
/*** plugin variables ***/
|
8 |
+
var $version = "1.0.7";
|
9 |
var $pluginDir = "";
|
10 |
|
11 |
/*** plugin structure ***/
|
37 |
load_plugin_textdomain ( 'newpost-catch', false, basename( rtrim(dirname(__FILE__), '/') ) . '/languages' );
|
38 |
}
|
39 |
|
40 |
+
/** plugin insert header stylesheet **/
|
41 |
function NewpostCatch_print_stylesheet() {
|
42 |
$css_path = ( @file_exists(TEMPLATEPATH.'/css/newpost-catch.css') ) ? get_stylesheet_directory_uri().'/css/newpost-catch.css' : plugin_dir_url( __FILE__ ).'style.css';
|
43 |
echo "\n"."<!-- Newpost Catch ver".$this->version." -->"."\n".'<link rel="stylesheet" href="' . $css_path . '" type="text/css" media="screen" />'."\n"."<!-- End Newpost Catch ver".$this->version." -->"."\n";
|
44 |
}
|
45 |
|
46 |
+
/**▼ create widget ▼**/
|
47 |
function widget($args, $instance) {
|
48 |
extract( $args );
|
49 |
|
51 |
$width = apply_filters('NewpostCatch_widget_width', $instance['width']);
|
52 |
$height = apply_filters('NewpostCatch_widget_height', $instance['height']);
|
53 |
$number = apply_filters('NewpostCatch_widget_number', $instance['number']);
|
54 |
+
|
55 |
+
function no_thumb_image() {
|
56 |
+
$set_img = '';
|
57 |
+
ob_start();
|
58 |
+
ob_end_clean();
|
59 |
+
$output = preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content(), $matches );
|
60 |
+
$set_img = $matches[1][0];
|
61 |
+
|
62 |
+
/* if not exist images */
|
63 |
+
if( empty( $set_img ) )
|
64 |
+
{
|
65 |
+
$set_img = WP_PLUGIN_URL . '/newpost-catch' . '/no_thumb.png';
|
66 |
+
}
|
67 |
+
return $set_img;
|
68 |
+
}
|
69 |
|
70 |
echo $before_widget;
|
71 |
|
77 |
<?php if( have_posts() ) : ?>
|
78 |
<?php while( have_posts() ) : the_post(); ?>
|
79 |
<li>
|
80 |
+
<a href="<?php esc_attr( the_permalink() ); ?>" title="<?php esc_attr( the_title() ); ?>" >
|
81 |
+
<?php if( has_post_thumbnail() ) { ?>
|
82 |
+
<?php //\n . the_post_thumbnail( array( $width , $height ),array( 'alt' => $title_attr , 'title' => $title_attr )); ?>
|
83 |
+
<?php
|
84 |
+
$thumb_id = get_post_thumbnail_id();
|
85 |
+
$thumb_url = wp_get_attachment_image_src($thumb_id);
|
86 |
+
$thumb_url = $thumb_url[0];
|
87 |
+
?>
|
88 |
+
<img src="<?php echo esc_attr( $thumb_url ); ?>" width="<?php echo esc_attr( $width ); ?>" height="<?php echo esc_attr( $height ); ?>" alt="<?php esc_attr( the_title() ); ?>" title="<?php esc_attr( the_title() ); ?>" />
|
89 |
+
<?php } else { ?>
|
90 |
+
<img src="<?php echo esc_attr( no_thumb_image() ); ?>" width="<?php echo esc_attr( $width ); ?>" height="<?php echo esc_attr( $height ); ?>" alt="<?php esc_attr( the_title() ); ?>" title="<?php esc_attr( the_title() ); ?>" />
|
91 |
+
<?php } ?>
|
92 |
+
</a>
|
93 |
+
<span class="title"><a href="<?php esc_attr( the_permalink() ); ?>" title="<?php esc_attr( the_title() ); ?>"><?php esc_html( the_title() ); ?>
|
94 |
<?php if ( $instance['date']['active'] ) { ?>
|
95 |
+
<span class="date"><?php esc_html( the_time('[Y/m/d]' , '' , '' ) ); ?></span>
|
96 |
<?php } ?>
|
97 |
</a></span>
|
98 |
</li>
|
99 |
<?php endwhile; ?>
|
100 |
<?php else : ?>
|
101 |
<p>no post</p>
|
102 |
+
<?php endif; wp_reset_query(); ?>
|
103 |
</ul>
|
104 |
<?php
|
105 |
echo $after_widget;
|
106 |
}
|
107 |
+
/**▲ create widget ▲**/
|
108 |
|
109 |
/** @see WP_Widget::update **/
|
110 |
// updates each widget instance when user clicks the "save" button
|
118 |
$instance['number'] = is_numeric($new_instance['number']) ? $new_instance['number'] : 5;
|
119 |
$instance['date']['active'] = $new_instance['date'];
|
120 |
|
|
|
121 |
return $instance;
|
122 |
}
|
123 |
|
130 |
$defaults = array( 'date' => array( 'active' => false ) );
|
131 |
?>
|
132 |
<p>
|
133 |
+
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:' , 'newpost-catch'); ?></label>
|
134 |
<input id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" class="widefat" value="<?php echo $title; ?>" /></label>
|
135 |
</p>
|
136 |
<p>
|
137 |
<?php _e('Thumbnail Size' , 'newpost-catch'); ?><br />
|
138 |
+
<label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Width:' , 'newpost-catch'); ?></label>
|
139 |
+
<input id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name( 'width' ); ?>" type="text" style="width:30px" value="<?php echo $width; ?>" /> px</label>
|
140 |
<br />
|
141 |
+
<label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:' , 'newpost-catch'); ?></label>
|
142 |
+
<input id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="text" style="width:30px;" value="<?php echo $height; ?>" /> px</label>
|
143 |
</p>
|
144 |
<p>
|
145 |
+
<label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Showposts:' , 'newpost-catch'); ?></label>
|
146 |
+
<input style="width:30px;" id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" /></label> <?php _e('Posts', 'newpost-catch'); ?>
|
147 |
</p>
|
148 |
<p>
|
149 |
<input type="checkbox" class="checkbox" <?php echo ($instance['date']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'date' ); ?>" name="<?php echo $this->get_field_name( 'date' ); ?>" /> <label for="<?php echo $this->get_field_id( 'date' ); ?>"><?php _e('Display date', 'newpost-catch'); ?></label>
|
150 |
</p>
|
151 |
+
<p>
|
152 |
+
<label><?php _e('Are you satisfied?' , 'newpost-catch'); ?></label>
|
153 |
+
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fimamura.tetsuya&width=226&height=190&colorscheme=light&show_faces=true&border_color=%23ccc&stream=false&header=true&appId=352152184854708" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:226px; height:190px;" allowTransparency="true"></iframe>
|
154 |
+
</p>
|
155 |
<?php
|
156 |
}
|
157 |
}
|
languages/newpost-catch-ja.mo
ADDED
Binary file
|
languages/newpost-catch-ja.po
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Newpost Catch\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-03-19 +900\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Tetsuya Imamura <plugins@imamura.biz>\n"
|
8 |
+
"Language-Team: Tetsuya Imamura <wpdev@imamura.biz>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: Japanese\n"
|
13 |
+
"X-Poedit-Country: JAPAN\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
|
16 |
+
#: newpost-catch/class.php:112
|
17 |
+
msgid "Title:"
|
18 |
+
msgstr "タイトル:"
|
19 |
+
|
20 |
+
msgid "Thumbnail Size"
|
21 |
+
msgstr "サムネイルのサイズ"
|
22 |
+
|
23 |
+
msgid "Width:"
|
24 |
+
msgstr "幅:"
|
25 |
+
|
26 |
+
msgid "Height:"
|
27 |
+
msgstr "高さ:"
|
28 |
+
|
29 |
+
msgid "Showposts:"
|
30 |
+
msgstr "投稿件数"
|
31 |
+
|
32 |
+
msgid "Posts"
|
33 |
+
msgstr "件"
|
34 |
+
|
35 |
+
msgid "Display date"
|
36 |
+
msgstr "投稿日(チェックすると表示)"
|
37 |
+
|
38 |
+
#: newpost-catch/class.php:152
|
39 |
+
msgid "Are you satisfied?"
|
40 |
+
msgstr "気に入っていただけましたら、長く使っていただけると幸いです。この先も新しいプラグインを作りますので、この機会にどうぞよろしくお願いします!"
|
41 |
+
|
languages/newpost-catch.pot
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright 2012 Newpost Catch
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: Newpost Catch\n"
|
5 |
+
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2012-03-19 +900\n"
|
7 |
+
"PO-Revision-Date: \n"
|
8 |
+
"Last-Translator: Tetsuya Imamura <wpdev@imamura.biz>\n"
|
9 |
+
"Language-Team: Tetsuya Imamura <wpdev@imamura.biz>\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
|
14 |
+
#: newpost-catch/class.php:112
|
15 |
+
msgid "Title:"
|
16 |
+
msgstr ""
|
17 |
+
|
18 |
+
#: newpost-catch/class.php:116
|
19 |
+
msgid "Thumbnail Size"
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#: newpost-catch/class.php:117
|
23 |
+
msgid "Width:"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: newpost-catch/class.php:120
|
27 |
+
msgid "Height:"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: newpost-catch/class.php:124
|
31 |
+
msgid "Showposts:"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: newpost-catch/class.php:125
|
35 |
+
msgid "Posts"
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#: newpost-catch/class.php:128
|
39 |
+
msgid "Display date"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: newpost-catch/class.php:152
|
43 |
+
msgid "Are you satisfied?"
|
44 |
+
msgstr ""
|
45 |
+
|
newpost-catch.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Newpost Catch
|
4 |
Plugin URI: http://www.imamura.biz/blog/newpost-catch/
|
5 |
Description: Thumbnails in new articles setting widget.
|
6 |
-
Version: 1.0.
|
7 |
Author: Tetsuya Imamura
|
8 |
Text Domain: newpost-catch
|
9 |
Author URI: http://www.imamura.biz/blog/
|
3 |
Plugin Name: Newpost Catch
|
4 |
Plugin URI: http://www.imamura.biz/blog/newpost-catch/
|
5 |
Description: Thumbnails in new articles setting widget.
|
6 |
+
Version: 1.0.7
|
7 |
Author: Tetsuya Imamura
|
8 |
Text Domain: newpost-catch
|
9 |
Author URI: http://www.imamura.biz/blog/
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: s56bouya
|
|
3 |
Donate link: http://www.imamura.biz/blog/
|
4 |
Tags: widget, plugin, posts, sidebar, image, images
|
5 |
Requires at least: 3.3.1
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.0.
|
8 |
|
9 |
Thumbnails in new articles setting widget.
|
10 |
|
@@ -23,12 +23,11 @@ Thumbnails in new articles setting widget.
|
|
23 |
|
24 |
== Frequently Asked Questions ==
|
25 |
|
26 |
-
|
27 |
|
28 |
-
(Located in the plug-in directory) CSS
|
29 |
-
|
30 |
-
(Please create a directory under the theme/css/) CSS file for customization �� newpost-catch.css
|
31 |
|
|
|
32 |
|
33 |
Priority
|
34 |
|
@@ -36,23 +35,20 @@ newpost-catch.css > style.css
|
|
36 |
|
37 |
Will be applied at.
|
38 |
|
39 |
-
|
40 |
-
style.css are marked with the movement when the mouse is moved over in the webkit of css3.
|
41 |
-
|
42 |
-
(You can check the behavior of firefox-enabled browser webkit, such as google Chrome)
|
43 |
-
|
44 |
With regard to CSS will either use the default CSS,
|
45 |
|
46 |
I used the CSS that you created in your own, please change to your liking.
|
47 |
|
48 |
|
49 |
-
|
|
|
|
|
50 |
|
51 |
I think how to directly edit the "style.css" file and how would you or declined.
|
52 |
|
53 |
If you wish to apply a CSS style on its own,
|
54 |
|
55 |
-
In the "theme directory
|
56 |
|
57 |
Please the name of the file to create and "newpost-catch.css". The other is the file name, does not apply.
|
58 |
|
@@ -65,6 +61,22 @@ Please the name of the file to create and "newpost-catch.css". The other is the
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
= 1.0.2 =
|
69 |
* [Dedicated plugin public page.](http://www.imamura.biz/blog/newpost-catch/)
|
70 |
* Described in the [FAQ page](http://wordpress.org/extend/plugins/newpost-catch/faq/) "How to customize the css".
|
3 |
Donate link: http://www.imamura.biz/blog/
|
4 |
Tags: widget, plugin, posts, sidebar, image, images
|
5 |
Requires at least: 3.3.1
|
6 |
+
Tested up to: 3.4.2
|
7 |
+
Stable tag: 1.0.7
|
8 |
|
9 |
Thumbnails in new articles setting widget.
|
10 |
|
23 |
|
24 |
== Frequently Asked Questions ==
|
25 |
|
26 |
+
**Apply your own css style**
|
27 |
|
28 |
+
(Located in the plug-in directory) CSS "style.css" file the default
|
|
|
|
|
29 |
|
30 |
+
(Please create a directory under the "/wp-content/themes/theme directory/css/") CSS file for customization "newpost-catch.css"
|
31 |
|
32 |
Priority
|
33 |
|
35 |
|
36 |
Will be applied at.
|
37 |
|
|
|
|
|
|
|
|
|
|
|
38 |
With regard to CSS will either use the default CSS,
|
39 |
|
40 |
I used the CSS that you created in your own, please change to your liking.
|
41 |
|
42 |
|
43 |
+
**notice**
|
44 |
+
|
45 |
+
With the version up of the plug-in, so will be overwritten "style.css" file each time,
|
46 |
|
47 |
I think how to directly edit the "style.css" file and how would you or declined.
|
48 |
|
49 |
If you wish to apply a CSS style on its own,
|
50 |
|
51 |
+
In the "/wp-content/themes/theme directory/css/" as you please create a "newpost-catch.css".
|
52 |
|
53 |
Please the name of the file to create and "newpost-catch.css". The other is the file name, does not apply.
|
54 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.0.7 =
|
65 |
+
* Very minor changes that do not affect the operation of the plugin.
|
66 |
+
|
67 |
+
= 1.0.6 =
|
68 |
+
* Bugfix.
|
69 |
+
|
70 |
+
= 1.0.5 =
|
71 |
+
* Has been deleted in the action, webkit css3.
|
72 |
+
|
73 |
+
= 1.0.4 =
|
74 |
+
* If you do not have eye-catching image, the display the first image in the post.
|
75 |
+
* In the setting of the widget, so that you can change the ratio of variable width and height of the image size.
|
76 |
+
|
77 |
+
= 1.0.3 =
|
78 |
+
* Update the [FAQ page](http://wordpress.org/extend/plugins/newpost-catch/faq/)
|
79 |
+
|
80 |
= 1.0.2 =
|
81 |
* [Dedicated plugin public page.](http://www.imamura.biz/blog/newpost-catch/)
|
82 |
* Described in the [FAQ page](http://wordpress.org/extend/plugins/newpost-catch/faq/) "How to customize the css".
|
style.css
CHANGED
@@ -1,116 +1,39 @@
|
|
1 |
/*
|
2 |
Newpost Catch StyleSheet
|
3 |
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
*/
|
6 |
|
7 |
#npcatch li{
|
8 |
-
-webkit-transition: all 300ms linear;
|
9 |
-
-moz-transition: all 300ms linear;
|
10 |
-
-o-transition: all 300ms linear;
|
11 |
-
-ms-transition: all 300ms linear;
|
12 |
-
transition: all 300ms linear;
|
13 |
overflow:hidden;
|
14 |
clear:both;
|
15 |
margin:0px 0px 0px;
|
16 |
}
|
17 |
|
18 |
-
#npcatch
|
19 |
-
-webkit-transition: all 200ms linear;
|
20 |
-
-moz-transition: all 200ms linear;
|
21 |
-
-o-transition: all 200ms linear;
|
22 |
-
-ms-transition: all 200ms linear;
|
23 |
-
transition: all 200ms linear;
|
24 |
float:left;
|
25 |
padding:5px 10px;
|
26 |
}
|
27 |
|
28 |
#npcatch .title{
|
29 |
-
opacity: 0.8;
|
30 |
-
-webkit-transition: all 200ms linear;
|
31 |
-
-moz-transition: all 200ms linear;
|
32 |
-
-o-transition: all 200ms linear;
|
33 |
-
-ms-transition: all 200ms linear;
|
34 |
-
transition: all 200ms linear;
|
35 |
width:135px;
|
36 |
float:left;
|
37 |
padding:5px 5px 5px 0px;
|
38 |
}
|
39 |
|
40 |
#npcatch li:hover{
|
41 |
-
background:#ffffff;
|
42 |
-
}
|
43 |
-
|
44 |
-
#npcatch li:hover .thumb{
|
45 |
-
color: transparent;
|
46 |
-
-webkit-animation: moveFromTop 400ms ease;
|
47 |
-
-moz-animation: moveFromTop 400ms ease;
|
48 |
-
-ms-animation: moveFromTop 400ms ease;
|
49 |
}
|
50 |
|
51 |
#npcatch li:hover .title{
|
52 |
-
-webkit-animation: moveFromTop 500ms ease;
|
53 |
-
-moz-animation: moveFromTop 500ms ease;
|
54 |
-
-ms-animation: moveFromTop 500ms ease;
|
55 |
}
|
56 |
|
57 |
#npcatch li:hover .title a{
|
58 |
-
color:#000000;
|
59 |
}
|
60 |
|
61 |
#npcatch li:hover .date{
|
62 |
}
|
63 |
-
|
64 |
-
|
65 |
-
/** Define Webkit **/
|
66 |
-
|
67 |
-
@-webkit-keyframes moveFromTop {
|
68 |
-
from {
|
69 |
-
-webkit-transform: translateY(-300%);
|
70 |
-
}
|
71 |
-
to {
|
72 |
-
-webkit-transform: translateY(0%);
|
73 |
-
}
|
74 |
-
}
|
75 |
-
@-moz-keyframes moveFromTop {
|
76 |
-
from {
|
77 |
-
-moz-transform: translateY(-300%);
|
78 |
-
}
|
79 |
-
to {
|
80 |
-
-moz-transform: translateY(0%);
|
81 |
-
}
|
82 |
-
}
|
83 |
-
@-ms-keyframes moveFromTop {
|
84 |
-
from {
|
85 |
-
-ms-transform: translateY(-300%);
|
86 |
-
}
|
87 |
-
to {
|
88 |
-
-ms-transform: translateY(0%);
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
@-webkit-keyframes moveFromBottom {
|
93 |
-
from {
|
94 |
-
-webkit-transform: translateY(200%);
|
95 |
-
}
|
96 |
-
to {
|
97 |
-
-webkit-transform: translateY(0%);
|
98 |
-
}
|
99 |
-
}
|
100 |
-
@-moz-keyframes moveFromBottom {
|
101 |
-
from {
|
102 |
-
-moz-transform: translateY(200%);
|
103 |
-
}
|
104 |
-
to {
|
105 |
-
-moz-transform: translateY(0%);
|
106 |
-
}
|
107 |
-
}
|
108 |
-
@-ms-keyframes moveFromBottom {
|
109 |
-
from {
|
110 |
-
-ms-transform: translateY(200%);
|
111 |
-
}
|
112 |
-
to {
|
113 |
-
-ms-transform: translateY(0%);
|
114 |
-
}
|
115 |
-
}
|
116 |
-
|
1 |
/*
|
2 |
Newpost Catch StyleSheet
|
3 |
|
4 |
+
With the version up of the plug-in, so will be overwritten "style.css" file each time,
|
5 |
+
I think how to directly edit the "style.css" file and how would you or declined.
|
6 |
+
If you wish to apply a CSS style on its own,
|
7 |
+
In the "/wp-content/themes/theme directory/css/" as you please create a "newpost-catch.css".
|
8 |
+
Please the name of the file to create and "newpost-catch.css". The other is the file name, does not apply.
|
9 |
+
|
10 |
*/
|
11 |
|
12 |
#npcatch li{
|
|
|
|
|
|
|
|
|
|
|
13 |
overflow:hidden;
|
14 |
clear:both;
|
15 |
margin:0px 0px 0px;
|
16 |
}
|
17 |
|
18 |
+
#npcatch img{
|
|
|
|
|
|
|
|
|
|
|
19 |
float:left;
|
20 |
padding:5px 10px;
|
21 |
}
|
22 |
|
23 |
#npcatch .title{
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
width:135px;
|
25 |
float:left;
|
26 |
padding:5px 5px 5px 0px;
|
27 |
}
|
28 |
|
29 |
#npcatch li:hover{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
#npcatch li:hover .title{
|
|
|
|
|
|
|
33 |
}
|
34 |
|
35 |
#npcatch li:hover .title a{
|
|
|
36 |
}
|
37 |
|
38 |
#npcatch li:hover .date{
|
39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|