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

Health

Gut Microbiome Injury Rehabilitation Guide to Recovery

Gut Health: The Hidden Key to Musculoskeletal Recovery and Performance Introduction: Beyond Muscles and Bones Athletes and active individuals often… Read More

August 13, 2025

Chiropractic Care: What You Need to Know About Calisthenics

Integrate calisthenics and chiropractic care into your routine and unlock the potential for improved strength and recovery. Chiropractic Care and… Read More

August 12, 2025

Chiropractic Care: A Holistic Approach for Fibromyalgia

Find out how fibromyalgia and chiropractic care can help you regain control and reduce discomfort in your daily life. Understanding… Read More

August 11, 2025

Chiropractic Care: Skeletal & Cardiovascular Health for Better Living

Learn the benefits of chiropractic care for skeletal health and its positive impact on your cardiovascular health. Chiropractic Care: The… Read More

August 7, 2025

Chiropractic Care Guide for Ligament Injuries & Knee Pain

Uncover the benefits of chiropractic care for knee pain and ligament injuries and restore your active lifestyle today. Chiropractic Care… Read More

August 5, 2025

Nurse Practitioner Detox Guide for Faster Recovery

Environmental Detoxification and Injury Recovery: How Functional Medicine Nurse Practitioners Support Whole-Body Healing Introduction: Healing After Injury Goes Beyond the… Read More

August 5, 2025

Top 10 Foods & Vitamins: Boost Your Wellbeing & Spinal Health

Find out about the importance of vitamins for spinal health. Keep your spine healthy with proper nutrition and healthy foods.… Read More

August 4, 2025

Chiropractic Insights: Bone Health & The Musculoskeletal System

Chiropractic care plays a vital role in promoting bone health and supporting the musculoskeletal system. Learn more here. Chiropractic Care:… Read More

August 1, 2025

Chiropractic Care: Essential Guide for Poses to Reduce Sciatica

Explore effective poses for relief from sciatica with chiropractic care. Discover how chiropractic treatment can help you. Understanding Sciatica and… Read More

July 31, 2025

Chiropractic Care Solutions That Work for Low Back Pain

Find relief from discomfort with chiropractic care for low back pain. Discover effective treatments tailored for you. Why Chiropractic Care… Read More

July 24, 2025

Toxicity Recovery Dr. Jimenez: Overcoming MVAs Together

Healing from Motor Vehicle Accidents: Addressing Toxicity with Functional Recovery Motor vehicle accidents (MVAs) can leave lasting physical and systemic… Read More

July 23, 2025

Physical Activity & Chiropractic Care Insights to Reduce Inflammation

Explore the relationship between physical activity, chiropractic care, and inflammation for enhanced wellness and recovery. Chiropractic Care and Physical Activity:… Read More

July 23, 2025

Chiropractic Care for Five Musculoskeletal Issues Relief

Find out the benefits of chiropractic care in treating various musculoskeletal issues for a healthier lifestyle. Chiropractic Care for Common… Read More

July 21, 2025

Chiropractic Care Solutions for Musculoskeletal Inflammation

Find out how musculoskeletal inflammation is treated with chiropractic care, which can support your body’s healing process. Chiropractic Care for… Read More

July 18, 2025

Chiropractic Care for Joint Pain and Biomechanical Restoration

Find out how biomechanical restoration through chiropractic care can help you regain strength and improve joint health. Chiropractic Care for… Read More

July 17, 2025

Personal Injury, Trauma & Spine Rehab Specialists

Online History & Registration 🔘
Call Us Today 🔘