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

Mountain Biking Training Beginners: EP Chiropractic Fitness

Mountain and trail biking is a fun way to exercise. Mountain biking requires total body/core strength, explosive power, balance, endurance,… Read More

April 10, 2023

Mountain Biking Gear: EP’s Chiropractic Fitness Team

Mountain biking is a recommended sport for building muscle power and strength, endurance, and agility. Mountain biking uses bicycles designed… Read More

April 7, 2023

Pre-Workout Nutrition: EP’s Chiropractic Fitness Center

Providing the body with adequate hydration and nutrition at the right time can maximize performance abilities, endurance, and muscle repair… Read More

April 6, 2023

Variations Of The MET Technique For Muscle Pain

Introduction The various muscle groups in the body allow the host to move around and function through many actions without… Read More

April 5, 2023

Tibial Stress Fracture Relieved By The MET Technique

Introduction We are constantly on the move throughout the day, from walking, running, or standing doing errands, all because of… Read More

March 24, 2023

Cross Training For Runners: EP’s Chiropractic Team

Too much running can lead to burnout and injuries for even the most hard-core runners and running enthusiasts. Cross-training can… Read More

March 23, 2023

Resistance Bands Injury Therapy: EP Chiropractic Center

Resistance band exercises can be very useful for injury rehabilitation. As a part of a chiropractic neuromusculoskeletal treatment plan, personalized… Read More

March 22, 2023

The MET Technique For Exercise Regime

Introduction An exercise routine is highly important for anyone trying to get a kick start on their health and wellness… Read More

March 22, 2023

Coping With Sports Injuries: EP’s Chiropractic Rehabilitation Center

Athletes, pros, semi-pros, weekend warriors, fitness enthusiasts, and physically active and healthy individuals can feel cheated when they suffer an… Read More

March 15, 2023

The MET Technique On Myofascial Trigger Points & Gait Performance

Introduction How a person walks or their gait performance can determine how their body's balance and stability are functioning. Since… Read More

March 14, 2023

Aerobic Exercise Health: EP Chiropractic Fitness Center

Aerobic Exercise Health: The body adapts differently to different types of exercise. Aerobic, cardio, and endurance all refer to activities… Read More

March 8, 2023

Sports Exercise Medicine: EP’s Chiropractic Rehab Team

Sports exercise medicine - SEM addresses and treats physical activity/sports-related injuries using chiropractic care, physical therapy, therapeutic massage, functional nutrition,… Read More

March 6, 2023

Muscle Imbalances, Gait Patterns, & The MET Technique

Introduction When it comes to the body, the various muscles, tissues, joints, and organs provide functionality and movement when it… Read More

March 6, 2023

Spinal Stenosis Walking Issues: EP’s Chiropractic Center

Spinal Stenosis Walking Issues: Stenosis means a narrowing. Spinal stenosis can happen in any spine region, but the neck and… Read More

March 2, 2023

Wobble Cushions: EP Chiropractic Specialists

Wobble cushions are small round inflatable support pillows made of a flexible material that can be used to stand and… Read More

February 28, 2023

Personal Injury, Trauma & Spine Rehab Specialists

Online History & Registration 🔘
Call Us Today 🔘