WP Social Bookmarking Light - Version 2.0.4

Version Description

  • minimum fix
Download this release

Release Info

Developer utahvich
Plugin Icon wp plugin WP Social Bookmarking Light
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.2 to 2.0.4

public/images/line80x20.png ADDED
Binary file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://gumroad.com/l/rWLrL
4
  Tags: social, bookmarks, bookmarking, Hatena, Twitter, Facebook, Tumblr, Google Bookmark, Delicious, Digg, reddit, LinkedIn, Instapaper, StumbleUpon, mixi, gree, atode, toread, line, pocket, Pinterest
5
  Requires at least: 4.0.0
6
  Tested up to: 4.7
7
- Stable tag: 2.0.2
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -49,6 +49,12 @@ This is the list of used social sites:
49
 
50
  == Changelog ==
51
 
 
 
 
 
 
 
52
  = 2.0.2 =
53
  * Added: iframe option to twitter [#52](https://github.com/utahta/WP-Social-Bookmarking-Light/pull/52)
54
 
4
  Tags: social, bookmarks, bookmarking, Hatena, Twitter, Facebook, Tumblr, Google Bookmark, Delicious, Digg, reddit, LinkedIn, Instapaper, StumbleUpon, mixi, gree, atode, toread, line, pocket, Pinterest
5
  Requires at least: 4.0.0
6
  Tested up to: 4.7
7
+ Stable tag: 2.0.4
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
49
 
50
  == Changelog ==
51
 
52
+ = 2.0.4 =
53
+ * minimum fix
54
+
55
+ = 2.0.3 =
56
+ * Added: a new line button design [#53](https://github.com/utahta/WP-Social-Bookmarking-Light/pull/53)
57
+
58
  = 2.0.2 =
59
  * Added: iframe option to twitter [#52](https://github.com/utahta/WP-Social-Bookmarking-Light/pull/52)
60
 
src/WpSocialBookmarkingLight/Resources/views/Admin/page.html.twig CHANGED
@@ -560,7 +560,7 @@
560
  <th scope="row">Button type:</th>
561
  <td>
562
  <select name='line_button_type' onchange='jQuery("#line_img").attr("src", "{{ "" | images }}/"+this.form.line_button_type.value+".png")'>
563
- {% set line_button_types = ['line20x20', 'line88x20'] %}
564
  {% for button_type in line_button_types %}
565
  <option value='{{ button_type }}' {{ option.line.button_type == button_type ? 'selected' : '' }}>{{ button_type }}</option>
566
  {% endfor %}
560
  <th scope="row">Button type:</th>
561
  <td>
562
  <select name='line_button_type' onchange='jQuery("#line_img").attr("src", "{{ "" | images }}/"+this.form.line_button_type.value+".png")'>
563
+ {% set line_button_types = ['line20x20', 'line88x20', 'line80x20'] %}
564
  {% for button_type in line_button_types %}
565
  <option value='{{ button_type }}' {{ option.line.button_type == button_type ? 'selected' : '' }}>{{ button_type }}</option>
566
  {% endfor %}
src/WpSocialBookmarkingLight/Service.php CHANGED
@@ -604,6 +604,10 @@ class Service
604
  $icon = Url::images("line88x20.png");
605
  $width = 88;
606
  $height = 20;
 
 
 
 
607
  } else {
608
  $icon = Url::images("line20x20.png");
609
  $width = 20;
604
  $icon = Url::images("line88x20.png");
605
  $width = 88;
606
  $height = 20;
607
+ } elseif ($options['line']['button_type'] == "line80x20") {
608
+ $icon = Url::images("line80x20.png");
609
+ $width = 80;
610
+ $height = 20;
611
  } else {
612
  $icon = Url::images("line20x20.png");
613
  $width = 20;
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit4449dff69f882aebbd49ab4f69fa1770::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit0c3e97af9fc7c5a329af24bb741b5b91::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -374,9 +374,13 @@ class ClassLoader
374
 
375
  $first = $class[0];
376
  if (isset($this->prefixLengthsPsr4[$first])) {
377
- foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
378
- if (0 === strpos($class, $prefix)) {
379
- foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
 
 
 
 
380
  if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
381
  return $file;
382
  }
374
 
375
  $first = $class[0];
376
  if (isset($this->prefixLengthsPsr4[$first])) {
377
+ $subPath = $class;
378
+ while (false !== $lastPos = strrpos($subPath, '\\')) {
379
+ $subPath = substr($subPath, 0, $lastPos);
380
+ $search = $subPath.'\\';
381
+ if (isset($this->prefixDirsPsr4[$search])) {
382
+ foreach ($this->prefixDirsPsr4[$search] as $dir) {
383
+ $length = $this->prefixLengthsPsr4[$first][$search];
384
  if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
385
  return $file;
386
  }
vendor/composer/LICENSE CHANGED
@@ -1,5 +1,5 @@
1
 
2
- Copyright (c) 2016 Nils Adermann, Jordi Boggiano
3
 
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
  of this software and associated documentation files (the "Software"), to deal
1
 
2
+ Copyright (c) Nils Adermann, Jordi Boggiano
3
 
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
  of this software and associated documentation files (the "Software"), to deal
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit4449dff69f882aebbd49ab4f69fa1770
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit4449dff69f882aebbd49ab4f69fa1770
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit4449dff69f882aebbd49ab4f69fa1770', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit4449dff69f882aebbd49ab4f69fa1770', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit4449dff69f882aebbd49ab4f69fa1770::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit0c3e97af9fc7c5a329af24bb741b5b91
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit0c3e97af9fc7c5a329af24bb741b5b91', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit0c3e97af9fc7c5a329af24bb741b5b91', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit0c3e97af9fc7c5a329af24bb741b5b91::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit4449dff69f882aebbd49ab4f69fa1770
8
  {
9
  public static $fallbackDirsPsr4 = array (
10
  0 => __DIR__ . '/../..' . '/src',
@@ -23,8 +23,8 @@ class ComposerStaticInit4449dff69f882aebbd49ab4f69fa1770
23
  public static function getInitializer(ClassLoader $loader)
24
  {
25
  return \Closure::bind(function () use ($loader) {
26
- $loader->fallbackDirsPsr4 = ComposerStaticInit4449dff69f882aebbd49ab4f69fa1770::$fallbackDirsPsr4;
27
- $loader->prefixesPsr0 = ComposerStaticInit4449dff69f882aebbd49ab4f69fa1770::$prefixesPsr0;
28
 
29
  }, null, ClassLoader::class);
30
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit0c3e97af9fc7c5a329af24bb741b5b91
8
  {
9
  public static $fallbackDirsPsr4 = array (
10
  0 => __DIR__ . '/../..' . '/src',
23
  public static function getInitializer(ClassLoader $loader)
24
  {
25
  return \Closure::bind(function () use ($loader) {
26
+ $loader->fallbackDirsPsr4 = ComposerStaticInit0c3e97af9fc7c5a329af24bb741b5b91::$fallbackDirsPsr4;
27
+ $loader->prefixesPsr0 = ComposerStaticInit0c3e97af9fc7c5a329af24bb741b5b91::$prefixesPsr0;
28
 
29
  }, null, ClassLoader::class);
30
  }
wp-social-bookmarking-light.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://github.com/utahta/WP-Social-Bookmarking-Light
5
  Description: This plugin inserts social share links at the top or bottom of each post.
6
  Author: utahta
7
  Author URI: https://github.com/utahta/WP-Social-Bookmarking-Light
8
- Version: 2.0.2
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
5
  Description: This plugin inserts social share links at the top or bottom of each post.
6
  Author: utahta
7
  Author URI: https://github.com/utahta/WP-Social-Bookmarking-Light
8
+ Version: 2.0.4
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)