File "api.php"
Full Path: /home/ycoalition/public_html/wp-content/plugins/wp-retina-3x/api.php
File size: 1.28 KB
MIME-type: text/x-php
Charset: utf-8
<?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 wr3x_picture_rewrite( $buffer ) {
global $wr3x_core;
return $wr3x_core->picture_rewrite( $buffer );
}
// Return Retina URL from the Image URL
function wr3x_get_retina_from_url( $url ) {
global $wr3x_core;
return $wr3x_core->get_retina_from_url( $url );
}
// Return the retina file if my found for this normal file
function wr3x_get_retina( $file ) {
global $wr3x_core;
return $wr3x_core->get_retina( $file );
}
// Generate the retina images for the given meta of a media
function wr3x_generate_images( $meta ) {
global $wr3x_core;
return $wr3x_core->generate_images( $meta );
}
// Delete the Retina files for this attachment
function wr3x_delete_attachment( $attach_id, $deleteFullSize = true ) {
global $wr3x_core;
return $wr3x_core->delete_attachment( $attach_id, $deleteFullSize );
}
function wr3x_get_pathinfo_from_image_src( $image_src ) {
global $wr3x_core;
return $wr3x_core->get_pathinfo_from_image_src( $image_src );
}
function wr3x_retina_extension() {
global $wr3x_core;
return $wr3x_core->retina_extension();
}
?>