album_id * * @return bool|object */ public function get_album_info( $album_id ) { $url = 'https://api.vimeo.com/albums/' . $album_id; $data = $this->fetch_remote( $url ); if ( $data && is_object( $data ) ) { return (object) array( 'title' => $data->name, 'description' => $data->description, 'username' => $data->user->name, ); } return false; } /** * Filters attribute * * @param $attrs * * @return mixed */ public function filter_attrs( $attrs ) { if ( ! empty( $attrs['videos'] ) ) { $videos = &$attrs['videos']; $videos = explode( "\n", $videos ); $videos = array_map( array( $this, 'get_video_ID' ), $videos ); } if ( ! empty( $attrs['playlist_url'] ) ) { $attrs['playlist_url'] = $this->get_album_ID( $attrs['playlist_url'] ); } return $attrs; } /** * Returns video id from URL * * @param $vimeo_url * * @return mixed */ protected function get_video_ID( $vimeo_url ) { $vimeo_url = trim( str_replace( '&', '&', $vimeo_url ) ); if ( preg_match( '#^(?: https? \: )? (?: //)? w* \.? vimeo \.com /* ([^\s]+)$#ix', $vimeo_url, $matched ) ) { return $matched[1]; } else { $video_ID = &$vimeo_url; return $video_ID; } } /** * Returns album ID from URL * * @param $vimeo_album_url * * @return mixed */ protected function get_album_ID( $vimeo_album_url ) { if ( preg_match( '#^(?: https? \: )? (?: //)? w* \.? vimeo \.com /*album/* ([^\s]+)$#ix', $vimeo_album_url, $matched ) ) { return $matched[1]; } return $vimeo_album_url; } /** * Returns playlist/album info * * @param $play_list_id * * @param int $limit * * @return array|bool */ public function get_playlist_videos_info( $play_list_id, $limit = 50 ) { return $this->get_album_videos_info( $play_list_id ); } /** * Fetches album info from Vimeo * * @param $album_id * * @return array|bool */ public function get_album_videos_info( $album_id ) { if ( empty( $album_id ) ) { return false; } $url = 'https://api.vimeo.com/albums/' . $album_id . '/videos'; $data = $this->fetch_remote( $url ); if ( $data && isset( $data->data ) && is_array( $data->data ) ) { $videos_info = array(); foreach ( $data->data as $video ) { $video_id = $this->get_video_ID( $video->link ); $videos_info[ $video_id ] = array( 'title' => $video->name, // 'description' => $video->description, 'thumbnails' => $this->prepare_thumbnails( $video->pictures->sizes ), 'duration' => (int) $video->duration, ); } return $videos_info; } return false; } /** * Prepares thumbnails * * @param $sizes * * @return bool|\stdClass */ private function prepare_thumbnails( $sizes ) { if ( empty( $sizes ) || ! is_array( $sizes ) ) { return false; } $sizes_name = array( 0 => 'default', 1 => 'small', 2 => 'medium', 3 => 'high', 4 => 'xhigh', 5 => 'standard', 6 => 'large', 7 => 'xlarge', 8 => 'huge', 9 => 'xhuge', ); $result = new stdClass(); usort( $sizes, array( $this, '_sort_by_width' ) ); $max_resolution = array_pop( $sizes ); $result->maxres = array( 'url' => $max_resolution->link, 'width' => $max_resolution->width, 'height' => $max_resolution->height, ); foreach ( $sizes as $index => $size ) { $sz_index = floor( $size->width / 100 ) - 1; if ( isset( $sizes_name[ $sz_index ] ) ) { $sz_name = &$sizes_name[ $sz_index ]; $result->$sz_name = array( 'url' => $size->link, 'width' => $size->width, 'height' => $size->height, ); } } return $result; } /** * Handy function for usort * * @param $a * @param $b * * @return bool */ private function _sort_by_width( $a, $b ) { return $a->width > $b->width; } /** * Handy function for default frame url * * @param $attrs * * @return string */ public function default_frame_url( $attrs ) { return 'https://player.vimeo.com/video/{video-id}?autoplay=0'; } /** * Handy function for video frame URL * * @param $attrs * * @return string */ public function change_video_frame_url( $attrs ) { return 'https://player.vimeo.com/video/{video-id}?autoplay=1'; } } Fitness Health Coach Archives - Page 14 of 17 - PushAsRx Athletic Training Centers El Paso, TX
Mission Spine Injury Clinic
11860 Vista Del Sol, Ste 128
P: 915-412-6677

Fitness Health Coach

What is Immune Dysfunction and Inflammation? – A Primary Mechanism | El Paso, Tx (2021)

https://www.youtube.com/watch?v=bqAT0DUBn1s In this new functional medicine episode Dr. Alex Jimenez brings to you this presentation titled Immune Dysfunction and Inflammation:… Read More

January 6, 2021

Tired Of Being Sick Chiropractic and Health Coaching Wellness Benefits

Individuals are tired of feeling sick. Many doctors prescribe medications to just control the symptoms of the various ailments. Headaches… Read More

January 4, 2021

Thyroid Dysfunction presentation *PART 3* | (2021) EL PASO, TX

https://www.youtube.com/watch?v=Otvu_n_GgZE Dr. Alex Jimenez brings to you this part three of a Functional Medicine Presentation where Medical Specialists will help… Read More

December 31, 2020

What do Hormones do? | El Paso, Tx (2021)

https://www.youtube.com/watch?v=XIBrKKXtxh8 This is the third episode Dr. Alex Jimenez brings to you this Medical Specialist Talk about the complex role… Read More

December 29, 2020

What do HORMONES do in our body? | El Paso, Tx (2021)

https://www.youtube.com/watch?v=MWDBaaJ6Ge4 This is the first of three episodes Dr. Alex Jimenez brings to you where a Medical Specialist will talk… Read More

December 29, 2020

What is Thyroid Dysfunction? | El Paso, Tx (2021)

https://www.youtube.com/watch?v=n_nE2v_Dv50 Dr. Alex Jimenez brings to you this episode of Functional Medicine where Medical Specialists will help you recognize the… Read More

December 28, 2020

Calcium and Vitamin D for Optimal Bone Health

Calcium and Vitamin D for optimal bone health. The body's bones/skeletal system contains a huge amount of calcium. Close to… Read More

December 17, 2020

An Olympic Athlete’s Journey | El Paso, Tx (2021)

https://www.youtube.com/watch?v=pOqt3W37UW8 In this episode (3 of 4) Dr. Alex Jimenez presents Evonne Britton, and unbelievable track star and olympic athlete… Read More

November 6, 2020

Becoming an Olympic Athlete | Evonne Britton (2021) El Paso, Tx

https://www.youtube.com/watch?v=xMozvbLA0Ck In this episode (2 of 4) Dr. Alex Jimenez presents Evonne Britton, and unbelievable track star and olympic athlete… Read More

November 6, 2020

WHO IS EVONNE BRITTON? | El Paso, Tx (2021)

https://www.youtube.com/watch?v=kKFn2bZlQM8 In this episode (2 of 4) Dr. Alex Jimenez presents Evonne Britton, and unbelievable track star and olympic athlete… Read More

November 6, 2020

Dynamic Heel Regulator Genesis & What it is | El Paso, Tx (2020)

https://www.youtube.com/watch?v=I3545MK1p7k UTEP Engineering Program Presents: Dr. Sarkodie's Team, Juan Corna, Valeria Alramirano, and Dr. Jimenez discussing the New Dynamic Foot… Read More

July 27, 2020

Personal Injury, Trauma & Spine Rehab Specialists

Online History & Registration 🔘
Call Us Today 🔘