Pz-LinkCard - Version 2.1.0.1

Version Description

Download this release

Release Info

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

Code changes from version 2.1.0 to 2.1.0.1

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-style.php CHANGED
@@ -321,10 +321,10 @@
321
  }
322
 
323
  // サムネイルの位置とサイズ
324
- $thumbnail_width = preg_replace('/[^0-9]/', '', isset($this->options['thumbnail-width']) ? $this->options['thumbnail-width'] : $this->defaults['thumbnail-width'] ) - 0;
325
- $thumbnail_height = preg_replace('/[^0-9]/', '', isset($this->options['thumbnail-height'] ) ? $this->options['thumbnail-height'] : $this->defaults['thumbnail-height'] ) - 0;
326
- $content_width = preg_replace('/[^0-9]/', '', isset($this->options['width']) ? $this->options['width'] : $this->defaults['thumbnail-width'] ) - 0;
327
- $content_height = preg_replace('/[^0-9]/', '', isset($this->options['content-height'] ) ? $this->options['content-height'] : $this->defaults['content-height'] ) - 0;
328
  switch ($this->options['thumbnail-position']) {
329
  case '1':
330
  $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: right;', $file_text );
321
  }
322
 
323
  // サムネイルの位置とサイズ
324
+ $thumbnail_width = intval(preg_replace('/[^0-9]/', '', isset($this->options['thumbnail-width']) ? $this->options['thumbnail-width'] : $this->defaults['thumbnail-width'] ) );
325
+ $thumbnail_height = intval(preg_replace('/[^0-9]/', '', isset($this->options['thumbnail-height'] ) ? $this->options['thumbnail-height'] : $this->defaults['thumbnail-height'] ) );
326
+ $content_width = intval(preg_replace('/[^0-9]/', '', isset($this->options['width']) ? $this->options['width'] : $this->defaults['thumbnail-width'] ) );
327
+ $content_height = intval(preg_replace('/[^0-9]/', '', isset($this->options['content-height'] ) ? $this->options['content-height'] : $this->defaults['content-height'] ) );
328
  switch ($this->options['thumbnail-position']) {
329
  case '1':
330
  $file_text = str_replace('/*THUMBNAIL_POSITION*/', 'float: right;', $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.1.0
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
@@ -150,7 +150,7 @@ class Pz_LinkCard {
150
  'invalid-time' => null,
151
  'plugin-link' => null,
152
  'plugin-name' => 'Pz-LinkCard',
153
- 'plugin-version' => '2.1.0',
154
  'plugin-url' => 'https://popozure.info/pz-linkcard',
155
  'pz-hbc-options' => null,
156
  'debug-time' => null
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
+ Version: 2.1.0.1
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
150
  'invalid-time' => null,
151
  'plugin-link' => null,
152
  'plugin-name' => 'Pz-LinkCard',
153
+ 'plugin-version' => '2.1.0.1',
154
  'plugin-url' => 'https://popozure.info/pz-linkcard',
155
  'pz-hbc-options' => null,
156
  'debug-time' => null