|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/www/wp/wp-content/plugins/wp-retina-2x/classes/ | |
|
Path: //home2/gazetufm/www/wp/wp-content/plugins/wp-retina-2x/classes/api.php
Size: 1.3 KB
Permissions: 0644
<?php
/**
*
* FUNCTIONS THAT CAN BE USED BY THEMES/PLUGINS DEVELOPERS
* FOR ADDITIONAL RETINA SUPPORT
*
*/
// Rewrite the HTML to add Retina support (not recommended, that is
// done automatically by the plugin through the Method)
function wr2x_picture_rewrite( $buffer ) {
global $wr2x_core;
return $wr2x_core->picture_rewrite( $buffer );
}
// Return Retina URL from the Image URL
function wr2x_get_retina_from_url( $url ) {
global $wr2x_core;
return $wr2x_core->get_retina_from_url( $url );
}
// Return the retina file if my found for this normal file
function wr2x_get_retina( $file ) {
global $wr2x_core;
return $wr2x_core->get_retina( $file );
}
// Generate the retina images for the given meta of a media
function wr2x_generate_images( $meta ) {
global $wr2x_engine;
return $wr2x_engine->generate_retina_images( $meta );
}
// Delete the Retina files for this attachment
function wr2x_delete_attachment( $attach_id, $deleteFullSize = true ) {
global $wr2x_engine;
return $wr2x_engine->delete_retina_attachment( $attach_id, $deleteFullSize );
}
function wr2x_get_pathinfo_from_image_src( $image_src ) {
global $wr2x_core;
return $wr2x_core->get_pathinfo_from_image_src( $image_src );
}
function wr2x_retina_extension() {
global $wr2x_core;
return $wr2x_core->retina_extension();
}
?>