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
<?php | |
if (!function_exists('ordinal')) { | |
/** | |
* Number to ordinal format | |
* | |
* @param int $number | |
* @return string | |
*/ | |
function ordinal($number) | |
{ |
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
<?php | |
# get video info | |
$video_photo = base_url() .'images/profiles/no-thumb.jpg'; | |
preg_match('/http:\/\/vimeo.com\/(\d+)$/', $video['link'], $vimeo); | |
preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $video['link'], $youtube); | |
if(count($vimeo) > 0) { | |
$vimeo_id = $vimeo[1]; | |
$vimeo_photo = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$vimeo_id.php")); | |
$video_photo = $vimeo_photo[0]['thumbnail_small']; |
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
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | |
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | |
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | |
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | |
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | |
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |