Changeset 2723556
- Timestamp:
- 05/13/2022 07:54:47 PM (4 years ago)
- Location:
- pxl-tools
- Files:
-
- 3 edited
- 11 copied
-
tags/1.1.23 (copied) (copied from pxl-tools/trunk)
-
tags/1.1.23/README.md (copied) (copied from pxl-tools/trunk/README.md)
-
tags/1.1.23/helpers/Youtube.php (copied) (copied from pxl-tools/trunk/helpers/Youtube.php) (1 diff)
-
tags/1.1.23/pxl-tools.php (copied) (copied from pxl-tools/trunk/pxl-tools.php) (1 diff)
-
tags/1.1.23/readme.txt (copied) (copied from pxl-tools/trunk/readme.txt) (1 diff)
-
tags/1.1.23/vendor/autoload.php (copied) (copied from pxl-tools/trunk/vendor/autoload.php)
-
tags/1.1.23/vendor/composer/InstalledVersions.php (copied) (copied from pxl-tools/trunk/vendor/composer/InstalledVersions.php)
-
tags/1.1.23/vendor/composer/autoload_real.php (copied) (copied from pxl-tools/trunk/vendor/composer/autoload_real.php)
-
tags/1.1.23/vendor/composer/autoload_static.php (copied) (copied from pxl-tools/trunk/vendor/composer/autoload_static.php)
-
tags/1.1.23/vendor/composer/installed.php (copied) (copied from pxl-tools/trunk/vendor/composer/installed.php)
-
tags/1.1.23/vendor/symfony/polyfill-mbstring/bootstrap.php (copied) (copied from pxl-tools/trunk/vendor/symfony/polyfill-mbstring/bootstrap.php)
-
trunk/helpers/Youtube.php (modified) (1 diff)
-
trunk/pxl-tools.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pxl-tools/tags/1.1.23/helpers/Youtube.php
r2723539 r2723556 15 15 public static function get_embeded_url($url = null, $default = null) 16 16 { 17 if (strpos($url, 'embed')) { 18 return $url; 19 } 20 17 21 parse_str(parse_url($url, PHP_URL_QUERY), $params); 18 22 $video_id = $params['v'] ?? null; 19 23 if (!$video_id) { 20 return $default;24 return '//www.youtube.com/embed/' . $video_id; 21 25 } 22 return '//www.youtube.com/embed/' . $video_id; 26 27 return $default; 23 28 } 24 29 } -
pxl-tools/tags/1.1.23/pxl-tools.php
r2723539 r2723556 10 10 * License: GPL-2.0 11 11 * License URI: https://opensource.org/licenses/GPL-2.0 12 * Version: 1.1.2 212 * Version: 1.1.23 13 13 * 14 14 * -
pxl-tools/tags/1.1.23/readme.txt
r2723539 r2723556 7 7 License: https://opensource.org/licenses/GPL-2.0 8 8 License URI: https://opensource.org/licenses/GPL-2.0 9 Stable tag: 1.1.2 29 Stable tag: 1.1.23 10 10 A Toolbelt for Wordpress development 11 11 12 12 == Description == 13 13 Helpers, Functions and Shortcuts to Wordpress development 14 15 =1.1.22= 16 * Add Youtube helper, and get_embeded url method 14 17 15 18 =1.1.21= -
pxl-tools/trunk/helpers/Youtube.php
r2723539 r2723556 15 15 public static function get_embeded_url($url = null, $default = null) 16 16 { 17 if (strpos($url, 'embed')) { 18 return $url; 19 } 20 17 21 parse_str(parse_url($url, PHP_URL_QUERY), $params); 18 22 $video_id = $params['v'] ?? null; 19 23 if (!$video_id) { 20 return $default;24 return '//www.youtube.com/embed/' . $video_id; 21 25 } 22 return '//www.youtube.com/embed/' . $video_id; 26 27 return $default; 23 28 } 24 29 } -
pxl-tools/trunk/pxl-tools.php
r2723539 r2723556 10 10 * License: GPL-2.0 11 11 * License URI: https://opensource.org/licenses/GPL-2.0 12 * Version: 1.1.2 212 * Version: 1.1.23 13 13 * 14 14 * -
pxl-tools/trunk/readme.txt
r2723539 r2723556 7 7 License: https://opensource.org/licenses/GPL-2.0 8 8 License URI: https://opensource.org/licenses/GPL-2.0 9 Stable tag: 1.1.2 29 Stable tag: 1.1.23 10 10 A Toolbelt for Wordpress development 11 11 12 12 == Description == 13 13 Helpers, Functions and Shortcuts to Wordpress development 14 15 =1.1.22= 16 * Add Youtube helper, and get_embeded url method 14 17 15 18 =1.1.21=
Note: See TracChangeset
for help on using the changeset viewer.