Version Description
- Tweak the new Retina display code to work more accurately
- Fix for share URL being incorrect in certain cases
- Fix for addons being deleted by WordPress on automatic upgrade (this will work from the next version, sorry about that!)
Download this release
Release Info
Developer | Synved |
Plugin | Social Media Feather | social media sharing |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- readme.txt +5 -0
- social-media-feather.php +1 -1
- synved-option/synved-option-item.php +12 -0
- synved-option/synved-option.php +121 -3
- synved-plugout/synved-plugout-core.php +68 -9
- synved-social/synved-social-setup.php +5 -2
- synved-social/synved-social.php +9 -13
readme.txt
CHANGED
@@ -111,6 +111,11 @@ Have a look at [our site](http://synved.com/) or the [Stripefolio portfolio them
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
114 |
= 1.3.0 =
|
115 |
* Added support for Retina and other high resolution displays
|
116 |
* Fix exclusion checks for custom post types
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 1.3.1 =
|
115 |
+
* Tweak the new Retina display code to work more accurately
|
116 |
+
* Fix for share URL being incorrect in certain cases
|
117 |
+
* Fix for addons being deleted by WordPress on automatic upgrade (this will work from the next version, sorry about that!)
|
118 |
+
|
119 |
= 1.3.0 =
|
120 |
* Added support for Retina and other high resolution displays
|
121 |
* Fix exclusion checks for custom post types
|
social-media-feather.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Social Media Feather
|
|
4 |
Plugin URI: http://synved.com/wordpress-social-media-feather/
|
5 |
Description: Super lightweight social media plugin to add nice and effective social sharing and following buttons and icons anywhere on your site without the extra burden
|
6 |
Author: Synved
|
7 |
-
Version: 1.3.
|
8 |
Author URI: http://synved.com/
|
9 |
|
10 |
LEGAL STATEMENTS
|
4 |
Plugin URI: http://synved.com/wordpress-social-media-feather/
|
5 |
Description: Super lightweight social media plugin to add nice and effective social sharing and following buttons and icons anywhere on your site without the extra burden
|
6 |
Author: Synved
|
7 |
+
Version: 1.3.1
|
8 |
Author URI: http://synved.com/
|
9 |
|
10 |
LEGAL STATEMENTS
|
synved-option/synved-option-item.php
CHANGED
@@ -809,6 +809,18 @@ function synved_option_item_addon_is_installed(array $item)
|
|
809 |
return true;
|
810 |
}
|
811 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
812 |
}
|
813 |
}
|
814 |
|
809 |
return true;
|
810 |
}
|
811 |
}
|
812 |
+
|
813 |
+
$module = synved_option_item_property($item, 'module');
|
814 |
+
|
815 |
+
if ($module != null)
|
816 |
+
{
|
817 |
+
$addon_list = synved_plugout_module_addon_list($module);
|
818 |
+
|
819 |
+
if (isset($addon_list[$folder]))
|
820 |
+
{
|
821 |
+
return true;
|
822 |
+
}
|
823 |
+
}
|
824 |
}
|
825 |
}
|
826 |
|
synved-option/synved-option.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Module Name: Synved Option
|
4 |
Description: Easily add options to your themes or plugins with as little or as much coding as you want. Just create an array of your options, the rest is automated. If you need extra flexibility you can then use the powerful API provided to achieve any level of customization.
|
5 |
Author: Synved
|
6 |
-
Version: 1.4.
|
7 |
Author URI: http://synved.com/
|
8 |
License: GPLv2
|
9 |
|
@@ -25,8 +25,8 @@ include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'synved-option-setting.ph
|
|
25 |
|
26 |
|
27 |
define('SYNVED_OPTION_LOADED', true);
|
28 |
-
define('SYNVED_OPTION_VERSION',
|
29 |
-
define('SYNVED_OPTION_VERSION_STRING', '1.4.
|
30 |
|
31 |
|
32 |
$synved_option = array();
|
@@ -852,6 +852,122 @@ function synved_option_wp_upgrader_source_selection($source, $remote_source, $ob
|
|
852 |
return $source;
|
853 |
}
|
854 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
855 |
function synved_option_wp_plugin_action_links($links, $file)
|
856 |
{
|
857 |
global $synved_option_list;
|
@@ -974,6 +1090,8 @@ function synved_option_ajax()
|
|
974 |
add_action('after_setup_theme', 'synved_option_wp_after_setup_theme');
|
975 |
add_action('init', 'synved_option_wp_init');
|
976 |
add_filter('upgrader_source_selection', 'synved_option_wp_upgrader_source_selection', 9, 3);
|
|
|
|
|
977 |
add_filter('plugin_action_links', 'synved_option_wp_plugin_action_links', 10, 2);
|
978 |
|
979 |
if (is_admin())
|
3 |
Module Name: Synved Option
|
4 |
Description: Easily add options to your themes or plugins with as little or as much coding as you want. Just create an array of your options, the rest is automated. If you need extra flexibility you can then use the powerful API provided to achieve any level of customization.
|
5 |
Author: Synved
|
6 |
+
Version: 1.4.2
|
7 |
Author URI: http://synved.com/
|
8 |
License: GPLv2
|
9 |
|
25 |
|
26 |
|
27 |
define('SYNVED_OPTION_LOADED', true);
|
28 |
+
define('SYNVED_OPTION_VERSION', 100040002);
|
29 |
+
define('SYNVED_OPTION_VERSION_STRING', '1.4.2');
|
30 |
|
31 |
|
32 |
$synved_option = array();
|
852 |
return $source;
|
853 |
}
|
854 |
|
855 |
+
function synved_option_wp_upgrader_pre_install($perform, $extra)
|
856 |
+
{
|
857 |
+
$upgrade_transfer = get_option('synved_option_wp_upgrade_addon_transfer');
|
858 |
+
|
859 |
+
if ($upgrade_transfer != null)
|
860 |
+
{
|
861 |
+
$upgrade_transfer_time = get_option('synved_option_wp_upgrade_addon_transfer_time');
|
862 |
+
|
863 |
+
if ($upgrade_transfer_time == null || (time() - $upgrade_transfer_time > (60 * 60 * 1)))
|
864 |
+
{
|
865 |
+
$upgrade_transfer = null;
|
866 |
+
|
867 |
+
update_option('synved_option_wp_upgrade_addon_transfer', '');
|
868 |
+
}
|
869 |
+
}
|
870 |
+
|
871 |
+
$module_list = array();
|
872 |
+
|
873 |
+
if (function_exists('synved_plugout_get_module_list'))
|
874 |
+
{
|
875 |
+
$module_list = synved_plugout_get_module_list();
|
876 |
+
}
|
877 |
+
else
|
878 |
+
{
|
879 |
+
global $synved_plugout;
|
880 |
+
|
881 |
+
$module_list = array_keys($synved_plugout['module-list']);
|
882 |
+
}
|
883 |
+
|
884 |
+
$plugins_dir = WP_PLUGIN_DIR;
|
885 |
+
$plugins_dir = rtrim(str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, realpath($plugins_dir)), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
886 |
+
|
887 |
+
$plugin = $extra['plugin'];
|
888 |
+
$plugin_dir = rtrim(str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, realpath(dirname($plugins_dir . $plugin))), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
889 |
+
|
890 |
+
$dir = get_temp_dir();
|
891 |
+
$name = time();
|
892 |
+
$dir = $dir . wp_unique_filename($dir, $name) . DIRECTORY_SEPARATOR;
|
893 |
+
$list = array();
|
894 |
+
|
895 |
+
foreach ($module_list as $module_id)
|
896 |
+
{
|
897 |
+
$addon_list = synved_plugout_module_addon_list($module_id);
|
898 |
+
|
899 |
+
if ($addon_list != null)
|
900 |
+
{
|
901 |
+
foreach ($addon_list as $addon_name => $addon_file)
|
902 |
+
{
|
903 |
+
if (file_exists($addon_file))
|
904 |
+
{
|
905 |
+
$addon_dir = dirname($addon_file);
|
906 |
+
$parent_dir = dirname($addon_dir);
|
907 |
+
|
908 |
+
// clean names for comparison
|
909 |
+
$addon_dir = rtrim(str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, realpath($addon_dir)), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
910 |
+
$parent_dir = rtrim(str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, realpath($parent_dir)), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
911 |
+
|
912 |
+
if (strtolower($parent_dir) != strtolower($plugins_dir) && strpos(strtolower($addon_dir), strtolower($plugin_dir)) !== false)
|
913 |
+
{
|
914 |
+
$path = $dir;
|
915 |
+
$diff = substr($addon_dir, strlen($plugins_dir));
|
916 |
+
$path .= $diff;
|
917 |
+
|
918 |
+
wp_mkdir_p($path);
|
919 |
+
|
920 |
+
copy_dir($addon_dir, $path);
|
921 |
+
|
922 |
+
$list[] = array('original' => $addon_dir, 'temporary' => $path);
|
923 |
+
}
|
924 |
+
}
|
925 |
+
}
|
926 |
+
}
|
927 |
+
}
|
928 |
+
|
929 |
+
if ($list != null)
|
930 |
+
{
|
931 |
+
update_option('synved_option_wp_upgrade_addon_transfer', array('directory' => $dir, 'list' => $list));
|
932 |
+
update_option('synved_option_wp_upgrade_addon_transfer_time', time());
|
933 |
+
}
|
934 |
+
|
935 |
+
return $perform;
|
936 |
+
}
|
937 |
+
|
938 |
+
function synved_option_wp_upgrader_post_install($perform, $extra, $result = null)
|
939 |
+
{
|
940 |
+
$upgrade_transfer = get_option('synved_option_wp_upgrade_addon_transfer');
|
941 |
+
|
942 |
+
if ($upgrade_transfer != null)
|
943 |
+
{
|
944 |
+
$list = $upgrade_transfer['list'];
|
945 |
+
|
946 |
+
foreach ($list as $upgrade_item)
|
947 |
+
{
|
948 |
+
$original = $upgrade_item['original'];
|
949 |
+
$temporary = $upgrade_item['temporary'];
|
950 |
+
|
951 |
+
wp_mkdir_p($original);
|
952 |
+
|
953 |
+
copy_dir($temporary, $original);
|
954 |
+
}
|
955 |
+
|
956 |
+
global $wp_filesystem;
|
957 |
+
|
958 |
+
if ($wp_filesystem != null)
|
959 |
+
{
|
960 |
+
$directory = $upgrade_transfer['directory'];
|
961 |
+
|
962 |
+
$wp_filesystem->delete($directory, true);
|
963 |
+
}
|
964 |
+
|
965 |
+
update_option('synved_option_wp_upgrade_addon_transfer', '');
|
966 |
+
}
|
967 |
+
|
968 |
+
return $perform;
|
969 |
+
}
|
970 |
+
|
971 |
function synved_option_wp_plugin_action_links($links, $file)
|
972 |
{
|
973 |
global $synved_option_list;
|
1090 |
add_action('after_setup_theme', 'synved_option_wp_after_setup_theme');
|
1091 |
add_action('init', 'synved_option_wp_init');
|
1092 |
add_filter('upgrader_source_selection', 'synved_option_wp_upgrader_source_selection', 9, 3);
|
1093 |
+
add_filter('upgrader_pre_install', 'synved_option_wp_upgrader_pre_install', 6, 2);
|
1094 |
+
add_filter('upgrader_post_install', 'synved_option_wp_upgrader_post_install', 10, 3);
|
1095 |
add_filter('plugin_action_links', 'synved_option_wp_plugin_action_links', 10, 2);
|
1096 |
|
1097 |
if (is_admin())
|
synved-plugout/synved-plugout-core.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
define('SYNVED_PLUGOUT_LOADED', true);
|
4 |
-
define('SYNVED_PLUGOUT_VERSION',
|
5 |
-
define('SYNVED_PLUGOUT_VERSION_STRING', '1.0');
|
6 |
|
7 |
|
8 |
$synved_plugout = array();
|
@@ -50,6 +50,13 @@ function synved_plugout_path_set($path_id, $path)
|
|
50 |
$synved_plugout['path'][$path_id] = $path;
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
function synved_plugout_module_register($module_id, $module_prefix = null, $module_name = null)
|
54 |
{
|
55 |
global $synved_plugout;
|
@@ -70,7 +77,7 @@ function synved_plugout_module_register($module_id, $module_prefix = null, $modu
|
|
70 |
return false;
|
71 |
}
|
72 |
|
73 |
-
function synved_plugout_module_path_add($module_id, $type, $path)
|
74 |
{
|
75 |
global $synved_plugout;
|
76 |
|
@@ -78,7 +85,10 @@ function synved_plugout_module_path_add($module_id, $type, $path)
|
|
78 |
{
|
79 |
$path = str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, $path);
|
80 |
|
81 |
-
$
|
|
|
|
|
|
|
82 |
|
83 |
return true;
|
84 |
}
|
@@ -120,6 +130,7 @@ function synved_plugout_module_path_list_get($module_id, $type, $criteria = null
|
|
120 |
|
121 |
$return_item['type'] = $path_type;
|
122 |
$return_item['path'] = $path_object['path'];
|
|
|
123 |
|
124 |
$return_list[] = $return_item;
|
125 |
}
|
@@ -354,12 +365,11 @@ function synved_plugout_module_addon_scan_path($path, $filter = null)
|
|
354 |
|
355 |
function synved_plugout_module_addon_list($module_id, $filter = null)
|
356 |
{
|
|
|
357 |
$path_list = synved_plugout_module_path_list_get($module_id, 'addon');
|
358 |
|
359 |
if ($path_list != null)
|
360 |
{
|
361 |
-
$addon_list = array();
|
362 |
-
|
363 |
foreach ($path_list as $path_item)
|
364 |
{
|
365 |
$path = $path_item['path'];
|
@@ -370,11 +380,60 @@ function synved_plugout_module_addon_list($module_id, $filter = null)
|
|
370 |
$addon_list = array_merge($addon_list, $extra_list);
|
371 |
}
|
372 |
}
|
373 |
-
|
374 |
-
return $addon_list;
|
375 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
|
377 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
}
|
379 |
|
380 |
?>
|
1 |
<?php
|
2 |
|
3 |
define('SYNVED_PLUGOUT_LOADED', true);
|
4 |
+
define('SYNVED_PLUGOUT_VERSION', 100000001);
|
5 |
+
define('SYNVED_PLUGOUT_VERSION_STRING', '1.0.1');
|
6 |
|
7 |
|
8 |
$synved_plugout = array();
|
50 |
$synved_plugout['path'][$path_id] = $path;
|
51 |
}
|
52 |
|
53 |
+
function synved_plugout_get_module_list()
|
54 |
+
{
|
55 |
+
global $synved_plugout;
|
56 |
+
|
57 |
+
return array_keys($synved_plugout['module-list']);
|
58 |
+
}
|
59 |
+
|
60 |
function synved_plugout_module_register($module_id, $module_prefix = null, $module_name = null)
|
61 |
{
|
62 |
global $synved_plugout;
|
77 |
return false;
|
78 |
}
|
79 |
|
80 |
+
function synved_plugout_module_path_add($module_id, $type, $path, $meta = null)
|
81 |
{
|
82 |
global $synved_plugout;
|
83 |
|
85 |
{
|
86 |
$path = str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, $path);
|
87 |
|
88 |
+
$path_object = $meta ? $meta : array();
|
89 |
+
$path_object['path'] = $path;
|
90 |
+
|
91 |
+
$synved_plugout['module-list'][$module_id]['path-list'][$type][] = $path_object;
|
92 |
|
93 |
return true;
|
94 |
}
|
130 |
|
131 |
$return_item['type'] = $path_type;
|
132 |
$return_item['path'] = $path_object['path'];
|
133 |
+
$return_item['meta'] = $path_object;
|
134 |
|
135 |
$return_list[] = $return_item;
|
136 |
}
|
365 |
|
366 |
function synved_plugout_module_addon_list($module_id, $filter = null)
|
367 |
{
|
368 |
+
$addon_list = array();
|
369 |
$path_list = synved_plugout_module_path_list_get($module_id, 'addon');
|
370 |
|
371 |
if ($path_list != null)
|
372 |
{
|
|
|
|
|
373 |
foreach ($path_list as $path_item)
|
374 |
{
|
375 |
$path = $path_item['path'];
|
380 |
$addon_list = array_merge($addon_list, $extra_list);
|
381 |
}
|
382 |
}
|
|
|
|
|
383 |
}
|
384 |
+
#
|
385 |
+
# $path_list = synved_plugout_module_path_list_get($module_id, 'addon-plugin');
|
386 |
+
#
|
387 |
+
# if ($path_list != null)
|
388 |
+
# {
|
389 |
+
# foreach ($path_list as $path_item)
|
390 |
+
# {
|
391 |
+
# $path = $path_item['path'];
|
392 |
+
# $addon_plugin = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'addon-plugin.php';
|
393 |
+
# $extra_list = null;
|
394 |
+
#
|
395 |
+
# if (file_exists($addon_plugin))
|
396 |
+
# {
|
397 |
+
# $content = file_get_contents($addon_plugin);
|
398 |
+
# $match = null;
|
399 |
+
#
|
400 |
+
# if (preg_match('/\\/(?:\\*)+\\s*(?:synved-)?addon-plugin\\s*\\{\\s*Name\\s*:\\s*(?P<name>[\\w_-]+)(?:\\s*,\\s*\\w+\\s*:\\s*(?:[\\w_-]+))*\\s*\\}/m', $content, $match) > 0)
|
401 |
+
# {
|
402 |
+
# $addon_name = $match['name'];
|
403 |
+
# $extra_list = array($addon_name => $addon_plugin);
|
404 |
+
# }
|
405 |
+
# }
|
406 |
+
#
|
407 |
+
# if ($extra_list != null)
|
408 |
+
# {
|
409 |
+
# $addon_list = array_merge($addon_list, $extra_list);
|
410 |
+
# }
|
411 |
+
# }
|
412 |
+
# }
|
413 |
+
#
|
414 |
+
$path_list = synved_plugout_module_path_list_get($module_id, 'addon-file');
|
415 |
|
416 |
+
if ($path_list != null)
|
417 |
+
{
|
418 |
+
foreach ($path_list as $path_item)
|
419 |
+
{
|
420 |
+
$path = $path_item['path'];
|
421 |
+
$extra_list = null;
|
422 |
+
|
423 |
+
if (file_exists($path) && strtolower(substr($path, -4)) == '.php')
|
424 |
+
{
|
425 |
+
$addon_name = isset($path_item['path']['meta']['addon-name']) ? $path_item['path']['meta']['addon-name'] : basename($path, '.php');
|
426 |
+
$extra_list = array($addon_name => $path);
|
427 |
+
}
|
428 |
+
|
429 |
+
if ($extra_list != null)
|
430 |
+
{
|
431 |
+
$addon_list = array_merge($addon_list, $extra_list);
|
432 |
+
}
|
433 |
+
}
|
434 |
+
}
|
435 |
+
|
436 |
+
return $addon_list;
|
437 |
}
|
438 |
|
439 |
?>
|
synved-social/synved-social-setup.php
CHANGED
@@ -208,6 +208,7 @@ $synved_social_options = array(
|
|
208 |
'type' => 'addon',
|
209 |
'target' => SYNVED_SOCIAL_ADDON_PATH,
|
210 |
'folder' => 'extra-icons',
|
|
|
211 |
'style' => 'addon-important',
|
212 |
'label' => __('Extra Icon Skins', 'synved-social'),
|
213 |
'tip' => synved_option_callback('synved_social_option_addon_extra_icons_tip', __('Click the button to install the "Extra Social Icons" addon, get it <a target="_blank" href="http://synved.com/product/feather-extra-social-icons/">here</a>.', 'synved-social'))
|
@@ -216,6 +217,7 @@ $synved_social_options = array(
|
|
216 |
'type' => 'addon',
|
217 |
'target' => SYNVED_SOCIAL_ADDON_PATH,
|
218 |
'folder' => 'grey-fade',
|
|
|
219 |
'style' => 'addon-important',
|
220 |
'label' => __('Grey Fade Effect', 'synved-social'),
|
221 |
'tip' => synved_option_callback('synved_social_option_addon_grey_fade_tip', __('Click the button to install the "Grey Fade" addon, get it <a target="_blank" href="http://synved.com/product/feather-grey-fade/">here</a>.', 'synved-social'))
|
@@ -224,6 +226,7 @@ $synved_social_options = array(
|
|
224 |
'type' => 'addon',
|
225 |
'target' => SYNVED_SOCIAL_ADDON_PATH,
|
226 |
'folder' => 'light-prompt',
|
|
|
227 |
'style' => 'addon-important',
|
228 |
'label' => __('Light Prompt Overlay', 'synved-social'),
|
229 |
'tip' => synved_option_callback('synved_social_option_addon_light_prompt_tip', __('Click the button to install the "Light Prompt" addon, get it <a target="_blank" href="http://synved.com/product/feather-light-prompt/">here</a>.', 'synved-social'))
|
@@ -536,7 +539,7 @@ display: inline-block;
|
|
536 |
display: inline-block;
|
537 |
}
|
538 |
.synved-social-resolution-hidef {
|
539 |
-
display: none
|
540 |
}
|
541 |
|
542 |
@media only screen and (min--moz-device-pixel-ratio: 2),
|
@@ -546,7 +549,7 @@ only screen and (min-device-pixel-ratio: 2),
|
|
546 |
only screen and (min-resolution: 2dppx),
|
547 |
only screen and (min-resolution: 192dpi) {
|
548 |
.synved-social-resolution-normal {
|
549 |
-
display: none
|
550 |
}
|
551 |
.synved-social-resolution-hidef {
|
552 |
display: inline-block;
|
208 |
'type' => 'addon',
|
209 |
'target' => SYNVED_SOCIAL_ADDON_PATH,
|
210 |
'folder' => 'extra-icons',
|
211 |
+
'module' => 'synved-social',
|
212 |
'style' => 'addon-important',
|
213 |
'label' => __('Extra Icon Skins', 'synved-social'),
|
214 |
'tip' => synved_option_callback('synved_social_option_addon_extra_icons_tip', __('Click the button to install the "Extra Social Icons" addon, get it <a target="_blank" href="http://synved.com/product/feather-extra-social-icons/">here</a>.', 'synved-social'))
|
217 |
'type' => 'addon',
|
218 |
'target' => SYNVED_SOCIAL_ADDON_PATH,
|
219 |
'folder' => 'grey-fade',
|
220 |
+
'module' => 'synved-social',
|
221 |
'style' => 'addon-important',
|
222 |
'label' => __('Grey Fade Effect', 'synved-social'),
|
223 |
'tip' => synved_option_callback('synved_social_option_addon_grey_fade_tip', __('Click the button to install the "Grey Fade" addon, get it <a target="_blank" href="http://synved.com/product/feather-grey-fade/">here</a>.', 'synved-social'))
|
226 |
'type' => 'addon',
|
227 |
'target' => SYNVED_SOCIAL_ADDON_PATH,
|
228 |
'folder' => 'light-prompt',
|
229 |
+
'module' => 'synved-social',
|
230 |
'style' => 'addon-important',
|
231 |
'label' => __('Light Prompt Overlay', 'synved-social'),
|
232 |
'tip' => synved_option_callback('synved_social_option_addon_light_prompt_tip', __('Click the button to install the "Light Prompt" addon, get it <a target="_blank" href="http://synved.com/product/feather-light-prompt/">here</a>.', 'synved-social'))
|
539 |
display: inline-block;
|
540 |
}
|
541 |
.synved-social-resolution-hidef {
|
542 |
+
display: none;
|
543 |
}
|
544 |
|
545 |
@media only screen and (min--moz-device-pixel-ratio: 2),
|
549 |
only screen and (min-resolution: 2dppx),
|
550 |
only screen and (min-resolution: 192dpi) {
|
551 |
.synved-social-resolution-normal {
|
552 |
+
display: none;
|
553 |
}
|
554 |
.synved-social-resolution-hidef {
|
555 |
display: inline-block;
|
synved-social/synved-social.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Module Name: Synved Social
|
4 |
Description: Social sharing and following tools
|
5 |
Author: Synved
|
6 |
-
Version: 1.3.
|
7 |
Author URI: http://synved.com/
|
8 |
License: GPLv2
|
9 |
|
@@ -18,8 +18,8 @@ In no event shall Synved Ltd. be liable to you or any third party for any direct
|
|
18 |
|
19 |
|
20 |
define('SYNVED_SOCIAL_LOADED', true);
|
21 |
-
define('SYNVED_SOCIAL_VERSION',
|
22 |
-
define('SYNVED_SOCIAL_VERSION_STRING', '1.3.
|
23 |
|
24 |
define('SYNVED_SOCIAL_ADDON_PATH', str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, dirname(__FILE__) . '/addons'));
|
25 |
|
@@ -624,7 +624,7 @@ function synved_social_button_list_markup($context, $vars = null, $buttons = nul
|
|
624 |
$full_url = synved_option_get('synved_social', 'share_full_url');
|
625 |
$url = home_url($_SERVER['REQUEST_URI']);
|
626 |
|
627 |
-
if ($id != null)
|
628 |
{
|
629 |
$post_full_url = strtolower(get_post_meta($id, 'synved_social_share_full_url', true));
|
630 |
|
@@ -643,12 +643,7 @@ function synved_social_button_list_markup($context, $vars = null, $buttons = nul
|
|
643 |
|
644 |
if (!$full_url)
|
645 |
{
|
646 |
-
$
|
647 |
-
|
648 |
-
unset($post_types['revision']);
|
649 |
-
unset($post_types['nav_menu_item']);
|
650 |
-
|
651 |
-
if (is_singular($post_types))
|
652 |
{
|
653 |
$use_shortlinks = synved_option_get('synved_social', 'use_shortlinks');
|
654 |
$url = get_permalink();
|
@@ -723,8 +718,9 @@ function synved_social_button_list_markup($context, $vars = null, $buttons = nul
|
|
723 |
{
|
724 |
$vars = urlencode_deep($vars);
|
725 |
|
726 |
-
//
|
727 |
$vars['message'] = str_replace('+', '%20', $vars['message']);
|
|
|
728 |
}
|
729 |
|
730 |
$path = synved_social_path();
|
@@ -889,7 +885,7 @@ function synved_social_button_list_markup($context, $vars = null, $buttons = nul
|
|
889 |
|
890 |
$out_button = array(
|
891 |
'tag' => 'a',
|
892 |
-
'class' => 'synved-social-button synved-social-button-' . $context . ' synved-social-resolution-' . $icon_def . ' synved-social-provider-' . $button_key . $class_extra,
|
893 |
'data-provider' => $button_key,
|
894 |
'target' => $button_key != 'mail' ? '_blank' : '',
|
895 |
'rel' => 'nofollow',
|
@@ -904,7 +900,7 @@ function synved_social_button_list_markup($context, $vars = null, $buttons = nul
|
|
904 |
'class' => 'synved-share-image synved-social-image synved-social-image-' . $context,
|
905 |
'width' => $size,
|
906 |
'height' => $size,
|
907 |
-
'style' => 'display: inline; margin: 0; padding: 0; border: none; box-shadow: none;',
|
908 |
'src' => $image_uri,
|
909 |
)
|
910 |
)
|
3 |
Module Name: Synved Social
|
4 |
Description: Social sharing and following tools
|
5 |
Author: Synved
|
6 |
+
Version: 1.3.1
|
7 |
Author URI: http://synved.com/
|
8 |
License: GPLv2
|
9 |
|
18 |
|
19 |
|
20 |
define('SYNVED_SOCIAL_LOADED', true);
|
21 |
+
define('SYNVED_SOCIAL_VERSION', 100030001);
|
22 |
+
define('SYNVED_SOCIAL_VERSION_STRING', '1.3.1');
|
23 |
|
24 |
define('SYNVED_SOCIAL_ADDON_PATH', str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, dirname(__FILE__) . '/addons'));
|
25 |
|
624 |
$full_url = synved_option_get('synved_social', 'share_full_url');
|
625 |
$url = home_url($_SERVER['REQUEST_URI']);
|
626 |
|
627 |
+
if ($id != null && in_the_loop())
|
628 |
{
|
629 |
$post_full_url = strtolower(get_post_meta($id, 'synved_social_share_full_url', true));
|
630 |
|
643 |
|
644 |
if (!$full_url)
|
645 |
{
|
646 |
+
if ($id != null && in_the_loop())
|
|
|
|
|
|
|
|
|
|
|
647 |
{
|
648 |
$use_shortlinks = synved_option_get('synved_social', 'use_shortlinks');
|
649 |
$url = get_permalink();
|
718 |
{
|
719 |
$vars = urlencode_deep($vars);
|
720 |
|
721 |
+
// urlencode converts space characters to + rather than %20 which messes things up
|
722 |
$vars['message'] = str_replace('+', '%20', $vars['message']);
|
723 |
+
$vars['title'] = str_replace('+', '%20', $vars['title']);
|
724 |
}
|
725 |
|
726 |
$path = synved_social_path();
|
885 |
|
886 |
$out_button = array(
|
887 |
'tag' => 'a',
|
888 |
+
'class' => 'synved-social-button synved-social-button-' . $context . ' synved-social-size-' . $size . ' synved-social-resolution-' . $icon_def . ' synved-social-provider-' . $button_key . $class_extra,
|
889 |
'data-provider' => $button_key,
|
890 |
'target' => $button_key != 'mail' ? '_blank' : '',
|
891 |
'rel' => 'nofollow',
|
900 |
'class' => 'synved-share-image synved-social-image synved-social-image-' . $context,
|
901 |
'width' => $size,
|
902 |
'height' => $size,
|
903 |
+
'style' => 'display: inline; width:' . $size . 'px;' . 'height:' . $size . 'px; margin: 0; padding: 0; border: none; box-shadow: none;',
|
904 |
'src' => $image_uri,
|
905 |
)
|
906 |
)
|