Version Description
Download this release
Release Info
Developer | poporon |
Plugin | Pz-LinkCard |
Version | 2.2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2.4 to 2.2.5
- lib/pz-linkcard-style.php +1 -1
- pz-linkcard.php +11 -4
- readme.txt +7 -1
lib/pz-linkcard-style.php
CHANGED
@@ -135,7 +135,7 @@
|
|
135 |
break;
|
136 |
case 'pin': // Pushpin
|
137 |
$file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
|
138 |
-
$file_text = str_replace('/*WRAP-AFTER*/', 'content: ""; display: block; position: absolute; background-image: url("'.$this->plugin_dir_url.'img/pin.png"); background-repeat: no-repeat; background-position: center; left: 47%; top: -16px; width: 40px; height: 40px; z-index: 1;', $file_text );
|
139 |
break;
|
140 |
case 'inN': // Neutral
|
141 |
$file_text = str_replace('/*BORDER*/', 'border: 4px solid #59fbea;', $file_text );
|
135 |
break;
|
136 |
case 'pin': // Pushpin
|
137 |
$file_text = str_replace('/*WRAP*/', 'position: relative;', $file_text );
|
138 |
+
$file_text = str_replace('/*WRAP-AFTER*/', 'content: ""; display: block; position: absolute; background-image: url("'.$this->plugin_dir_url.'img/pin.png"); background-repeat: no-repeat; background-position: center; left: 47%; top: -16px; width: 40px; height: 40px; z-index: 1; pointer-events: none;', $file_text );
|
139 |
break;
|
140 |
case 'inN': // Neutral
|
141 |
$file_text = str_replace('/*BORDER*/', 'border: 4px solid #59fbea;', $file_text );
|
pz-linkcard.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Pz-LinkCard
|
4 |
Plugin URI: http://poporon.poponet.jp/pz-linkcard
|
5 |
Description: リンクをカード形式で表示します。
|
6 |
-
Version: 2.2.
|
7 |
Author: poporon
|
8 |
Author URI: http://poporon.poponet.jp
|
9 |
License: GPLv2 or later
|
@@ -169,7 +169,7 @@ class Pz_LinkCard {
|
|
169 |
'invalid-time' => null,
|
170 |
'plugin-link' => null,
|
171 |
'plugin-name' => 'Pz-LinkCard',
|
172 |
-
'plugin-version' => '2.2.
|
173 |
'plugin-url' => 'https://popozure.info/pz-linkcard',
|
174 |
'pz-hbc-options' => null,
|
175 |
'debug-time' => null
|
@@ -345,7 +345,7 @@ class Pz_LinkCard {
|
|
345 |
$result = update_option('Pz_LinkCard_options', $this->options);
|
346 |
}
|
347 |
}
|
348 |
-
return '<a name="pz-lkc-error"></a><div class="lkc-error"><div class="lkc-card"><div class="lkc-this-wrap"><div class="lkc-excerpt">'.$this->slug.': '.__('Incorrect URL specification.', $text_domain).'(url='.html_entity_decode($url_org).')'.PHP_EOL.'<!-- '.html_entity_decode(print_r($atts, true)).' /-->'.PHP_EOL.'</div></div></div></div>';
|
349 |
}
|
350 |
$atts['url'] = $url;
|
351 |
|
@@ -453,7 +453,13 @@ class Pz_LinkCard {
|
|
453 |
$target = ' target="_blank"'; // 新しいページで開く
|
454 |
}
|
455 |
}
|
456 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
|
458 |
// キャッシュが無い、もしくは強制取得
|
459 |
if ( is_null($data_id) || ( isset($atts['force']) && $atts['force'] == true ) ) {
|
@@ -484,6 +490,7 @@ class Pz_LinkCard {
|
|
484 |
$target = ' target="_blank"'; // 新しいページで開く
|
485 |
}
|
486 |
}
|
|
|
487 |
// followパラメータ
|
488 |
if (isset($this->options['nofollow'] ) || (isset($atts['follow'] ) && mb_strtolower($atts['follow']) == 'no') || (isset($atts['nofollow'] ) && mb_strtolower($atts['nofollow']) == 'true') ) {
|
489 |
$nofollow = ' rel="nofollow"'; // nofollow指定。趣味の問題?
|
3 |
Plugin Name: Pz-LinkCard
|
4 |
Plugin URI: http://poporon.poponet.jp/pz-linkcard
|
5 |
Description: リンクをカード形式で表示します。
|
6 |
+
Version: 2.2.5
|
7 |
Author: poporon
|
8 |
Author URI: http://poporon.poponet.jp
|
9 |
License: GPLv2 or later
|
169 |
'invalid-time' => null,
|
170 |
'plugin-link' => null,
|
171 |
'plugin-name' => 'Pz-LinkCard',
|
172 |
+
'plugin-version' => '2.2.5',
|
173 |
'plugin-url' => 'https://popozure.info/pz-linkcard',
|
174 |
'pz-hbc-options' => null,
|
175 |
'debug-time' => null
|
345 |
$result = update_option('Pz_LinkCard_options', $this->options);
|
346 |
}
|
347 |
}
|
348 |
+
return '<a name="pz-lkc-error"></a><div class="lkc-error"><div class="lkc-card"><div class="lkc-this-wrap"><div class="lkc-excerpt">'.$this->slug.': '.__('Incorrect URL specification.', $this->text_domain).'(url='.html_entity_decode($url_org).')'.PHP_EOL.'<!-- '.html_entity_decode(print_r($atts, true)).' /-->'.PHP_EOL.'</div></div></div></div>';
|
349 |
}
|
350 |
$atts['url'] = $url;
|
351 |
|
453 |
$target = ' target="_blank"'; // 新しいページで開く
|
454 |
}
|
455 |
}
|
456 |
+
|
457 |
+
// followパラメータ
|
458 |
+
if ( (isset($atts['follow'] ) && mb_strtolower($atts['follow']) == 'no') || (isset($atts['nofollow'] ) && mb_strtolower($atts['nofollow']) == 'true') ) {
|
459 |
+
$nofollow = ' rel="nofollow"'; // nofollow指定。趣味の問題?
|
460 |
+
} else {
|
461 |
+
$nofollow = '';
|
462 |
+
}
|
463 |
|
464 |
// キャッシュが無い、もしくは強制取得
|
465 |
if ( is_null($data_id) || ( isset($atts['force']) && $atts['force'] == true ) ) {
|
490 |
$target = ' target="_blank"'; // 新しいページで開く
|
491 |
}
|
492 |
}
|
493 |
+
|
494 |
// followパラメータ
|
495 |
if (isset($this->options['nofollow'] ) || (isset($atts['follow'] ) && mb_strtolower($atts['follow']) == 'no') || (isset($atts['nofollow'] ) && mb_strtolower($atts['nofollow']) == 'true') ) {
|
496 |
$nofollow = ' rel="nofollow"'; // nofollow指定。趣味の問題?
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: poporon
|
3 |
Tags: post, internal link, external link, blogcard, linkcard
|
4 |
Requires at least: 4.3
|
5 |
-
Tested up to: 5.
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -163,6 +163,12 @@ A7.
|
|
163 |
5. "Write shortcode and url"
|
164 |
|
165 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
Ver2.2.4
|
167 |
* WordPress 5.2.2 での動作確認。
|
168 |
Compatible with WordPress 5.2.2.
|
2 |
Contributors: poporon
|
3 |
Tags: post, internal link, external link, blogcard, linkcard
|
4 |
Requires at least: 4.3
|
5 |
+
Tested up to: 5.2.2
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
163 |
5. "Write shortcode and url"
|
164 |
|
165 |
== Changelog ==
|
166 |
+
Ver2.2.5
|
167 |
+
* 内部リンクでもnofollow指定できるように修正。
|
168 |
+
Modified: Fixed to be able to specify nofollow even for internal links.
|
169 |
+
* 押しピンの画像がクリック無効になるように修正。
|
170 |
+
Modified: Fixed push pin image to be click invalid.
|
171 |
+
|
172 |
Ver2.2.4
|
173 |
* WordPress 5.2.2 での動作確認。
|
174 |
Compatible with WordPress 5.2.2.
|