
<!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: rbs_gallery_button.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php 
/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: https://robosoft.co/robogallery/ 
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2019, Robosoft. All rights reserved.
*      Available only in  https://robosoft.co/robogallery/ 
*/

if ( ! defined( &#039;WPINC&#039; ) ) exit;

function add_robo_gallery_button(){
	global $pagenow;
	if( isset( $pagenow) &amp;&amp;  $pagenow==&#039;admin-ajax.php&#039; ) return ;

	wp_enqueue_style(&quot;wp-jquery-ui-dialog&quot;);
	wp_enqueue_script(&#039;jquery-ui-dialog&#039;);
  
  	wp_enqueue_script(&#039;rbs-robo-gallery-button&#039;, ROBO_GALLERY_URL.&#039;js/admin/editor-button.js&#039;, array( &#039;jquery&#039; ), &#039;1.0.0&#039;, true );    
  	
  	$translation_array = array( 
		&#039;roboGalleryTitle&#039; 	=&gt; __(&#039;Robo Gallery&#039;,&#039;robo-gallery&#039;),
		&#039;closeButton&#039;		=&gt; __(&#039;Close&#039;,&#039;robo-gallery&#039;),
		&#039;insertButton&#039;		=&gt; __(&#039;Insert&#039;,&#039;robo-gallery&#039;),
	);

	wp_localize_script( &#039;rbs-robo-gallery-button&#039;, &#039;robo_gallery_trans&#039;, $translation_array );
	wp_enqueue_script( &#039;rbs-robo-gallery-button&#039; );

  	echo &#039;&lt;a href=&quot;#robo-gallery&quot; id=&quot;insert-robo-gallery&quot; class=&quot;button&quot;&gt;&lt;span class=&quot;dashicons dashicons-format-gallery&quot; style=&quot;margin: 4px 5px 0 0;&quot;&gt;&lt;/span&gt;&#039;.__( &#039;Add Robo Gallery&#039; , &#039;robo-gallery&#039; ).&#039;&lt;/a&gt;&#039;;
	
	$args = array(
	    &#039;child_of&#039;     =&gt; 0,
	    &#039;sort_order&#039;   =&gt; &#039;ASC&#039;,
	    &#039;sort_column&#039;  =&gt; &#039;post_title&#039;,
	    &#039;hierarchical&#039; =&gt; 1,
	    &#039;echo&#039;		=&gt; 0,
	    &#039;post_type&#039; =&gt; &#039;robo_gallery_table&#039;
	);
  	echo &#039;&lt;div id=&quot;robo-gallery&quot; style=&quot;display: none;&quot;&gt;&#039;
  			.__(&#039;Select gallery&#039;, &#039;robo-gallery&#039;).&#039; &#039;.wp_dropdown_pages( $args )
  			.&#039;&lt;p style=&quot;margin-bottom:0;&quot;&gt;&#039;.__( &#039;Configure it in&#039;,&#039;robo-gallery&#039;).&#039; &lt;a href=&quot;edit.php?post_type=robo_gallery_table&quot; target=&quot;_blank&quot;&gt;&#039;.__( &#039;Robo Gallery plugin&#039;,&#039;robo-gallery&#039;).&#039;&lt;/a&gt;&lt;/p&gt;&#039;
  		.&#039;&lt;/div&gt;&#039;;
}
add_action(&#039;media_buttons&#039;, &#039;add_robo_gallery_button&#039;, 15);
</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>
