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'; } } Athletes Archives - Page 24 of 100 - PushAsRx Athletic Training Centers El Paso, TX
Mission Spine Injury Clinic
11860 Vista Del Sol, Ste 128
P: 915-412-6677

Agility Enhancement: EP’s Chiropractic Fitness Team

Agility is the ability to accelerate, decelerate, stabilize, and quickly change directions with proper form and posture. Everyone, athletes and… Read More

January 4, 2023

Foot Pain, Plantar Fasciitis, & Trigger Point Pain

Introduction The various muscles and tendons surrounding the foot play an important role as they provide stability to the lower… Read More

January 4, 2023

Power Walking: EP’s Chiropractic Functional Fitness Team

Power walking is a fast-paced walking activity quicker than a typical walking pace. It is an exercise technique emphasizing speed… Read More

December 20, 2022

Skiing Training: Chiropractic Functional Fitness

Skiing sports require balance, strength, endurance, and muscle power. It is recommended to start training for ski season about eight… Read More

December 6, 2022

Issues In Your Calves? It Might Be Trigger Points In The Soleus Muscles

Introduction The calves are extremely important to the lower portions of the legs as they allow the individual to move around and… Read More

November 18, 2022

Muscle Cramps In The Calves? Might Be Trigger Point Pain

Introduction Various muscles help support the lower legs in the body and allow movement to the host. The lower extremities… Read More

November 17, 2022

Peroneal Muscles, Weak Ankles, & Trigger Points

Introduction The ankles and the lower legs have a casual relationship by allowing movement to the foot that causes an up-and-down motion.… Read More

November 16, 2022

Shin Splints & Myofascial Trigger Points

Introduction The legs are crucial for many individuals to move, jump, run, walk, and stand in various locations. The legs involve the… Read More

November 15, 2022

Having Unquestionable Knee Pain? Could Be Trigger Points

Introduction As one of the stabilizers for the body, the knees are located between the thighs and legs, allowing flexion and… Read More

November 14, 2022

Running With A Prosthetic Leg: Chiropractic Fitness Team

Before you begin running, talk with your physician, prosthetist, and other clinicians involved in your rehabilitation/health care treatment. Learning to… Read More

November 10, 2022

Dealing With Upper Thigh Pain? Could Be Trigger Points In the Hamstrings

Introduction Many individuals utilize their lower muscles to move around and stay active as each muscle does its job and… Read More

November 10, 2022

Pain In Your Adductor Muscles? Could Be Myofascial Trigger Points

Introduction The hips and thighs have a working relationship as their jobs are to maintain stability for the legs and… Read More

November 9, 2022

Baseball Training: Chiropractic Fitness Clinic

All sports differ in the relative importance of various physical skills contributing to the game and individual performance. Baseball is… Read More

October 25, 2022

Muscle Recovery Supplements: Chiropractic Fitness Clinic

Workout recovery is as important as working out. Pushing muscle past its normal levels creates tiny tears in the muscle… Read More

October 21, 2022

The Pectoralis Minor Being Affected By Myofascial Pain

Introduction The chest has the pectoralis major muscle that works with the upper half of the body that provides mobility and power.… Read More

October 11, 2022

Personal Injury, Trauma & Spine Rehab Specialists

Online History & Registration 🔘
Call Us Today 🔘