Skip to content

Commit

Permalink
[fix]Wordpress Popular Postsの仕様変更に伴う修正
Browse files Browse the repository at this point in the history
WPPプラグインのアップデートによりパラメータによる表示内容が変更になったため調整。
  • Loading branch information
ultimate-ez committed Oct 25, 2017
1 parent c9cd6ac commit dfe393a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions se-widgets.php
Expand Up @@ -394,6 +394,7 @@ function widget( $args, $instance ){
'limit' => $count,
'post_type' => 'post',
'stats_comments' => '0',
'stats_date' => '1',
'stats_date_format' => "Y.n.j",
'thumbnail_width' => '300',
'thumbnail_height' => '200',
Expand All @@ -403,7 +404,7 @@ function widget( $args, $instance ){
<figure class="thumbnail">{thumb_img}</figure>
<div class="content">
{text_title}
<span class="post-stats"><time>{date}</time> | {stats}</span>
<span class="post-stats"><time>{date}</time> | {views}<small>views</small></span>
</div>
</a>
</li>
Expand All @@ -421,6 +422,7 @@ function widget( $args, $instance ){
'limit' => $count,
'post_type' => 'post',
'stats_comments' => '0',
'stats_date' => '1',
'stats_date_format' => "Y.n.j",
'thumbnail_width' => '300',
'thumbnail_height' => '200',
Expand All @@ -430,7 +432,7 @@ function widget( $args, $instance ){
<figure class="thumbnail">{thumb_img}</figure>
<div class="content">
{text_title}
<span class="post-stats"><time>{date}</time> | {stats}</span>
<span class="post-stats"><time>{date}</time> | {views}<small>views</small></span>
</div>
</a>
</li>
Expand All @@ -448,6 +450,7 @@ function widget( $args, $instance ){
'limit' => $count,
'post_type' => 'post',
'stats_comments' => '0',
'stats_date' => '1',
'stats_date_format' => "Y.n.j",
'thumbnail_width' => '300',
'thumbnail_height' => '200',
Expand All @@ -457,7 +460,7 @@ function widget( $args, $instance ){
<figure class="thumbnail">{thumb_img}</figure>
<div class="content">
{text_title}
<span class="post-stats"><time>{date}</time> | {stats}</span>
<span class="post-stats"><time>{date}</time> | {views}<small>views</small></span>
</div>
</a>
</li>
Expand Down
3 changes: 2 additions & 1 deletion sentry-top/wpp.php
Expand Up @@ -8,6 +8,7 @@
'limit' => 5,
'post_type' => 'post',
'stats_comments' => '0',
'stats_date' => '1',
'stats_date_format' => "Y.n.j",
'thumbnail_width' => '300',
'thumbnail_height' => '200',
Expand All @@ -16,7 +17,7 @@
<a href= "{url}">
<div class="content">
<div class="post-text">{text_title}</div>
<span class="post-stats"><time>{date}</time> | {stats}</span>
<span class="post-stats"><time>{date}</time> | {views}<small>views</small></span>
</div>
<figure class="thumbnail">{thumb_img}</figure>
</a>
Expand Down

0 comments on commit dfe393a

Please sign in to comment.