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

Health

Dr. Alex Jimenez Presents: The Impact Of Stress (Part 2)

https://youtu.be/J2u4LV-DCQA?t=1188 Introduction Dr. Alex Jimenez, D.C., presents how chronic stress can impact the body and how it is correlated with… Read More

January 27, 2023

Dr. Alex Jimenez Presents: The Impact Of Stress

https://youtu.be/J2u4LV-DCQA Introduction Dr. Alex Jimenez, D.C., presents how stress can impact many individuals and correlate with many conditions in the… Read More

January 26, 2023

Dr. Alex Jimenez Presents: How Hypertension Is Explained (Part 2)

https://youtu.be/DmTGagbkPzg?t=1064 Introduction Dr. Alex Jimenez, D.C., presents how hypertension affects the human body and how to find ways to manage… Read More

January 25, 2023

Weakened Immune System and Sickness: EP Chiropractor

There are various reasons for getting sick, but stress is one of the most common. Stress from family, work, school,… Read More

January 24, 2023

Dr. Alex Jimenez Presents: How Hypertension Is Explained

https://youtu.be/DmTGagbkPzg Introduction Dr. Alex Jimenez, D.C., presents how hypertension affects the human body and some causes that can increase hypertension… Read More

January 24, 2023

Dr. Alex Jimenez Presents: The Effects Of Anti-Inflammatory Phytochemicals

https://youtu.be/njUf43ebHSU?t=1225 Introduction Dr. Alex Jimenez, D.C., presents how anti-inflammatory phytochemicals can reduce inflammation and treat other chronic conditions that inflammation… Read More

January 23, 2023

Dr. Alex Jimenez Presents: Therapeutic Uses Of Anti-Inflammatory Botanicals

https://youtu.be/njUf43ebHSU Introduction Dr. Alex Jimenez, D.C., presents how anti-inflammatory botanicals and phytochemicals can reduce inflammatory cytokines that can cause pain-like… Read More

January 17, 2023

Different Stretches To Improve Hip Mobility

Introduction The hips in the lower portions of the body allow the legs to move the host from one location… Read More

January 16, 2023

Exercises For Upper Back Pain

Introduction The various muscles and ligaments that encompass the back help protect the spine's thoracic region. The spine has three sections:… Read More

January 13, 2023

An Overview Of Parkinson’s Disease Affecting The Body

Introduction The brain is one of the most powerful organs providing somatic and peripheral signals throughout the body. The brain ensures that the body stays functional… Read More

January 12, 2023

Myofascial Pain Syndrome Associated With Fibromyalgia

Introduction When issues like autoimmune disorders start to affect the body for no reason, it can lead to chronic problems and conditions… Read More

January 11, 2023

Different Diagnosis For Myofascial Pain Syndrome In The Body

Introduction The body is a complex machine with various muscles, tendons, ligaments, and vital organs that each play a specific… Read More

January 9, 2023

The Benefits Of Foam Rolling To Reduce Trigger Point Pain

Introduction When exercising, it is very important to warm each muscle group to prevent injuries from occurring when working out. Stretching the arms, legs,… Read More

January 6, 2023

Plantar Fasciitis & Trigger Points On The Feet

Introduction Everyone worldwide knows that feet are important. The feet allow many individuals to run, walk, or jog for long periods… Read More

January 5, 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

Personal Injury, Trauma & Spine Rehab Specialists

Online History & Registration 🔘
Call Us Today 🔘