Changeset 1497571
- Timestamp:
- 09/17/2016 10:14:55 PM (10 years ago)
- Location:
- socialcompare-embed/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
socialcompare_embed.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
socialcompare-embed/trunk/readme.txt
r636589 r1497571 3 3 Tags: socialcompare, embed, comparison, table, matrix, compare, grid, chart, csv, excel 4 4 Requires at least: 2.9 5 Tested up to: 3.4.26 Stable tag: 1. 25 Tested up to: 4.6.1 6 Stable tag: 1.3 7 7 8 8 Allows to easily embed a comparison table from SocialCompare or SocialCompare.biz within a post or page. … … 64 64 == Changelog == 65 65 66 = 1.3 = 67 Fix HTTPS support 68 66 69 = 1.2 = 67 70 Add scrolling option -
socialcompare-embed/trunk/socialcompare_embed.php
r636589 r1497571 4 4 Plugin URI: http://socialcompare.com/ 5 5 Description: Allows to easily embed a SocialCompare comparison within a post. [socialcompare]http://socialcompare.com/en/comparison/apples-and-oranges[/socialcompare] or [sc]http://socialcompare.com/en/w/apples-and-oranges[/sc] 6 Version: 1. 26 Version: 1.3 7 7 Author: SocialCompare (Alexis) 8 8 Author URI: http://socialcompare.com/en/member/alexis 9 9 License: GPL2 10 10 */ 11 /* Copyright 2010-201 2Alexis Fruhinsholz (email: alexis@socialcompare.com)11 /* Copyright 2010-2016 Alexis Fruhinsholz (email: alexis@socialcompare.com) 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 31 31 //check if the url is a SocialCompare embeddable url 32 32 if (preg_match('@^https?://((?:[^/]*\.)?socialcompare.com/\w\w/)(w|comparison)(/[a-z\-_0-9]+)(#.*)?$@i', $content, $matches)) { 33 $widgetUrl='http ://'.$matches[1].'w'.$matches[3];33 $widgetUrl='https://'.$matches[1].'w'.$matches[3]; 34 34 if (isset($matches[4])) { 35 35 $widgetUrl.=$matches[4]; … … 200 200 201 201 /* Add SocialCompare oembed definition to include wordpress builtin oembed support for SocialCompare's url. Include the comparison url on a single line during post or page edition. See Wordpress oembed documentation for detail */ 202 wp_oembed_add_provider('#http ://socialcompare.com/\w\w/(w|comparison)/*#i', 'http://socialcompare.com/oembed', true);202 wp_oembed_add_provider('#https?://socialcompare.com/\w\w/(w|comparison)/*#i', 'https://socialcompare.com/oembed', true); 203 203 204 204 add_action('admin_menu', 'socialcompare_admin_menu');
Note: See TracChangeset
for help on using the changeset viewer.