Pz-LinkCard - Version 2.1.8.3

Version Description

Download this release

Release Info

Developer poporon
Plugin Icon 128x128 Pz-LinkCard
Version 2.1.8.3
Comparing to
See all releases

Code changes from version 2.1.8.2 to 2.1.8.3

js/mce-pz-lkc.js CHANGED
@@ -2,12 +2,12 @@
2
  tinymce.create('tinymce.plugins.pzlinkcard', {
3
  init: function(ed, url){
4
  ed.addButton('pz_linkcard',{
5
- title: 'Insert Pz-LinkCard',
6
  image: url + '/button.png',
7
  cmd: 'insert_pz_linkcard'
8
  });
9
  ed.addCommand('insert_pz_linkcard', function() {
10
- var insert_tag = window.prompt('Input URL', 'http://');
11
  if (insert_tag !== null) {
12
  ed.execCommand('mceInsertContent', 0, '[blogcard url="' + insert_tag + '"]');
13
  }
2
  tinymce.create('tinymce.plugins.pzlinkcard', {
3
  init: function(ed, url){
4
  ed.addButton('pz_linkcard',{
5
+ title: 'リンクカード作成',
6
  image: url + '/button.png',
7
  cmd: 'insert_pz_linkcard'
8
  });
9
  ed.addCommand('insert_pz_linkcard', function() {
10
+ var insert_tag = window.prompt('リンクカードを作成するURLを入力してください', 'http://');
11
  if (insert_tag !== null) {
12
  ed.execCommand('mceInsertContent', 0, '[blogcard url="' + insert_tag + '"]');
13
  }
lib/pz-linkcard-init.php CHANGED
@@ -25,6 +25,10 @@
25
  $this->options['thumbnail-url'] = $thumbnail_url;
26
 
27
  // 暫定措置
 
 
 
 
28
  if ($this->options['plugin-version'] < '2.1.7') {
29
  $this->options['flg-anker'] = '1';
30
  }
25
  $this->options['thumbnail-url'] = $thumbnail_url;
26
 
27
  // 暫定措置
28
+ if ($this->options['plugin-version'] < '2.1.1') {
29
+ $this->options['flg-edit-insert'] = '1';
30
+ $this->options['flg-edit-qtag'] = '1';
31
+ }
32
  if ($this->options['plugin-version'] < '2.1.7') {
33
  $this->options['flg-anker'] = '1';
34
  }
lib/pz-linkcard-settings.php CHANGED
@@ -1130,10 +1130,10 @@
1130
  </div>
1131
  <?php
1132
  function pz_TrimNum($val, $zero = 0 ) {
1133
- $val = preg_replace('/[^0-9]/', '', $val) - 0;
1134
  if ($val == 0) {
1135
  $val = $zero;
1136
- $val = preg_replace('/[^0-9]/', '', $val) - 0;
1137
  }
1138
  return $val;
1139
  }
1130
  </div>
1131
  <?php
1132
  function pz_TrimNum($val, $zero = 0 ) {
1133
+ $val = intval(preg_replace('/[^0-9]/', '', $val));
1134
  if ($val == 0) {
1135
  $val = $zero;
1136
+ $val = intval(preg_replace('/[^0-9]/', '', $val));
1137
  }
1138
  return $val;
1139
  }
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.1.8.2
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
@@ -164,7 +164,7 @@ class Pz_LinkCard {
164
  'invalid-time' => null,
165
  'plugin-link' => null,
166
  'plugin-name' => 'Pz-LinkCard',
167
- 'plugin-version' => '2.1.8.2',
168
  'plugin-url' => 'https://popozure.info/pz-linkcard',
169
  'pz-hbc-options' => null,
170
  'debug-time' => null
@@ -791,13 +791,13 @@ class Pz_LinkCard {
791
  // HTMLタグ作成
792
  switch (isset($this->options['info-position']) ? $this->options['info-position'] : null) {
793
  case '1':
794
- $tag = $wrap_op.$a_op_all.'<div class="lkc-card">'.$domain_info.'<div class="lkc-content">'.$a_op.$thumbnail.'<div class="lkc-title"><span class="lkc-title-text">'.$title.'</span>'.$a_cl.$sns_title.'</div>'.$url1.'<div class="lkc-excerpt">'.$excerpt.'</div></div><div class="clear"></div></div>'.$a_cl_all.$wrap_cl;
795
  break;
796
  case '2':
797
- $tag = $wrap_op.$a_op_all.'<div class="lkc-card"><div class="lkc-content">'.$a_op.$thumbnail.'<div class="lkc-title"><span class="lkc-title-text">'.$title.'</span>'.$a_cl.$sns_title.'</div>'.$url1.'<div class="lkc-excerpt">'.$excerpt.'</div></div>'.$domain_info.'<div class="clear"></div></div>'.$a_cl_all.$wrap_cl;
798
  break;
799
  case '3':
800
- $tag = $wrap_op.$a_op_all.'<div class="lkc-card"><div class="lkc-content">'.$a_op.$thumbnail.$domain_info.'<div class="lkc-title"><span class="lkc-title-text">'.$title.'</span>'.$a_cl.$sns_title.$url1.'</div><div class="lkc-excerpt">'.$excerpt.'</div></div><div class="clear"></div></div>'.$a_cl_all.$wrap_cl;
801
  break;
802
  default:
803
  $tag = $wrap_op.$a_op_all.'<div class="lkc-card"><div class="lkc-content">'.$a_op.$thumbnail.'<div class="lkc-title"><span class="lkc-title-text">'.$title.'</span>'.$a_cl.$sns_title.'</div>'.$url1.'<div class="lkc-excerpt">'.$excerpt.'</div></div><div class="clear"></div></div>'.$a_cl_all.$wrap_cl;
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
+ Version: 2.1.8.3
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
164
  'invalid-time' => null,
165
  'plugin-link' => null,
166
  'plugin-name' => 'Pz-LinkCard',
167
+ 'plugin-version' => '2.1.8.3',
168
  'plugin-url' => 'https://popozure.info/pz-linkcard',
169
  'pz-hbc-options' => null,
170
  'debug-time' => null
791
  // HTMLタグ作成
792
  switch (isset($this->options['info-position']) ? $this->options['info-position'] : null) {
793
  case '1':
794
+ $tag = $wrap_op.$a_op_all.'<div class="lkc-card">'.$domain_info.'<div class="lkc-content">'.$a_op.$thumbnail.'<div class="lkc-title"><span class="lkc-title-text">'.$title.'</span>'.$a_cl.$sns_title.'</div>'.$url1.'<div class="lkc-excerpt">'.$excerpt.'</div>'.$moretag.'</div><div class="clear"></div></div>'.$a_cl_all.$wrap_cl;
795
  break;
796
  case '2':
797
+ $tag = $wrap_op.$a_op_all.'<div class="lkc-card"><div class="lkc-content">'.$a_op.$thumbnail.'<div class="lkc-title"><span class="lkc-title-text">'.$title.'</span>'.$a_cl.$sns_title.'</div>'.$url1.'<div class="lkc-excerpt">'.$excerpt.'</div>'.$moretag.'</div>'.$domain_info.'<div class="clear"></div></div>'.$a_cl_all.$wrap_cl;
798
  break;
799
  case '3':
800
+ $tag = $wrap_op.$a_op_all.'<div class="lkc-card"><div class="lkc-content">'.$a_op.$thumbnail.$domain_info.'<div class="lkc-title"><span class="lkc-title-text">'.$title.'</span>'.$a_cl.$sns_title.$url1.'</div><div class="lkc-excerpt">'.$excerpt.'</div>'.$moretag.'</div><div class="clear"></div></div>'.$a_cl_all.$wrap_cl;
801
  break;
802
  default:
803
  $tag = $wrap_op.$a_op_all.'<div class="lkc-card"><div class="lkc-content">'.$a_op.$thumbnail.'<div class="lkc-title"><span class="lkc-title-text">'.$title.'</span>'.$a_cl.$sns_title.'</div>'.$url1.'<div class="lkc-excerpt">'.$excerpt.'</div></div><div class="clear"></div></div>'.$a_cl_all.$wrap_cl;
readme.txt CHANGED
@@ -163,6 +163,12 @@ A7.
163
  5. "Write shortcode and url"
164
 
165
  == Changelog ==
 
 
 
 
 
 
166
  Ver2.1.8.2
167
  * 警告エラーが発生していたのを修正しました。
168
  Fixed: Fixed a bug.
163
  5. "Write shortcode and url"
164
 
165
  == Changelog ==
166
+ Ver2.1.8.3
167
+ * カード管理画面で警告エラーが発生していたのを修正しました。(Thanks @sayataro98)
168
+ Fixed: Fixed a bug.
169
+ * 「続きを読む」ボタンが表示されなかったのを修正しました。(Thanks Andrew)
170
+ Fixed: Fixed a bug that the `Read more` button is not displayed.
171
+
172
  Ver2.1.8.2
173
  * 警告エラーが発生していたのを修正しました。
174
  Fixed: Fixed a bug.