This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wp-content/plugins/webp-express/lib/classes/Convert.php | |
public static function convertFile($source, $config = null, $convertOptions = null, $converter = null) | |
{ | |
try { | |
// fix arabic file names | |
$oldPath = pathinfo($source); | |
$basename = $oldPath['basename']; | |
copy($source, $oldPath['dirname'] . '/imageCopy.' . $oldPath['extension']); | |
$newPath = $oldPath['dirname'] . '/imageCopy.' . $oldPath['extension']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Firebase\JWT\JWT; | |
function social_token($request) | |
{ | |
$user_name = $request['email']; | |
if( email_exists( $user_name ) == true ) | |
{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function curl_get_contents($url) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
$data = curl_exec($ch); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
function bs_fix_vc_full_width_row(){ | |
var $elements = jQuery('[data-vc-full-width="true"]'); | |
jQuery.each($elements, function () { | |
var $el = jQuery(this); | |
$el.css('right', $el.css('left')).css('left', ''); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********************************************************************** | |
* | |
* Poll | |
* | |
**********************************************************************/ | |
function get_poll_template_by_me($poll_id, $display_loading = true) | |
{ | |
global $wpdb; | |
$data = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!class_exists('aduta_Category_Template')){ | |
class aduta_Category_Template{ | |
/* | |
* class constructor | |
*/ | |
public function __construct() | |
{ | |
/* |