Server IP : 192.250.235.76 / Your IP : 45.90.210.12
System : Linux s2968.sgp1.stableserver.net 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
PHP Version : 8.2.29
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
1902120114081995
Server IP : 198.54.116.172 / Your IP : 216.73.216.36
System : Linux server322.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/sadasgfe/fashiondebate.pk/wp-content/plugins/revslider/includes/external//vimeo.class.php
<?php
/**
* External Sources Vimeo Class
* @since: 5.0
* @author ThemePunch <info@themepunch.com>
* @link https://www.sliderrevolution.com/
* @copyright 2024 ThemePunch
*/
if(!defined('ABSPATH')) exit();
/**
* Vimeo
*
* with help of the API this class delivers all kind of Images/Videos from Vimeo
*
* @package socialstreams
* @subpackage socialstreams/vimeo
* @author ThemePunch <info@themepunch.com>
*/
class RevSliderVimeo extends RevSliderFunctions {
/**
* Stream Array
*
* @since 1.0.0
* @access private
* @var array $stream Stream Data Array
*/
private $stream;
/**
* Transient seconds
*
* @since 1.0.0
* @access private
* @var number $transient Transient time in seconds
*/
private $transient_sec;
/**
* Initialize the class and set its properties.
*
* @since 1.0.0
* @param string $api_key Youtube API key.
*/
public function __construct($transient_sec = 1200){
$this->transient_sec = $transient_sec;
}
/**
* Get Vimeo User Videos
*
* @since 1.0.0
*/
public function get_vimeo_videos($type, $value, $elements = 20){
//call the API and decode the response
$url = 'https://vimeo.com/api/v2/';
$url .= ($type == 'user') ? $value.'/videos.json' : $type.'/'.$value.'/videos.json';
$transient_name = 'revslider_' . md5($url.$elements);
if($this->transient_sec > 0 && false !== ($data = get_transient($transient_name)))
return ($data);
$elements = intval($elements);
$page = 1;
$rsp = array();
do {
$_rsp = json_decode(wp_remote_fopen($url.'?page='.$page));
if(!empty($_rsp) && is_array($_rsp)) $rsp = array_merge($rsp, $_rsp);
$page++;
$elements -= 20;
} while($elements > 0);
set_transient($transient_name, $rsp, $this->transient_sec);
return $rsp;
}
} // End Class
Name
Size
Last Modified
Owner / Group
Permissions
Options
.. -- April 05 2025 16:43:05 sadasgfe / sadasgfe 0755 facebook.class.php 9.575 KB April 05 2025 16:43:05 sadasgfe / sadasgfe 0644 flickr.class.php 8.4 KB April 05 2025 16:43:05 sadasgfe / sadasgfe 0644 index.php 0.026 KB April 05 2025 16:43:05 sadasgfe / sadasgfe 0644 instagram.class.php 11.68 KB April 05 2025 16:43:05 sadasgfe / sadasgfe 0644 vimeo.class.php 1.802 KB April 05 2025 16:43:05 sadasgfe / sadasgfe 0644 youtube.class.php 3.751 KB April 05 2025 16:43:05 sadasgfe / sadasgfe 0644