-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from JulianGroshaupt/dev
version 1.0.3
- Loading branch information
Showing
25 changed files
with
622 additions
and
43 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
functions/privacy_embed__twitter_hashtag_link_to_twitter_hashtag.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* Converts a link to a twitter hashtag into an hashtag. | ||
* | ||
* @param $twitter_link the link to the hashtag | ||
* | ||
* @return string the hashtag | ||
*/ | ||
|
||
// exit if accessed directly | ||
if (!defined('ABSPATH')) { | ||
exit; | ||
} | ||
|
||
if (!function_exists('privacy_embed__twitter_hashtag_link_to_twitter_hashtag')) { | ||
function privacy_embed__twitter_hashtag_link_to_twitter_hashtag($twitter_link) | ||
{ | ||
$url_parts = explode('/', $twitter_link); | ||
if (substr($twitter_link, -1) == '/') { | ||
$url_parts = array_slice($url_parts, 0, -1); | ||
} | ||
return end($url_parts); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
functions/privacy_embed__twitter_profile_link_to_twitter_username.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* Converts a link to a twitter profile into an username. | ||
* | ||
* @param $twitter_link the link to the profile of a user | ||
* | ||
* @return string the username the profile belongs to | ||
*/ | ||
|
||
// exit if accessed directly | ||
if (!defined('ABSPATH')) { | ||
exit; | ||
} | ||
|
||
if (!function_exists('privacy_embed__twitter_profile_link_to_twitter_username')) { | ||
function privacy_embed__twitter_profile_link_to_twitter_username($twitter_link) | ||
{ | ||
$url_parts = explode('/', $twitter_link); | ||
if (substr($twitter_link, -1) == '/') { | ||
$url_parts = array_slice($url_parts, 0, -1); | ||
} | ||
return end($url_parts); | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.