SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > pinterest-for-woocommerce > src > Admin


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/pinterest-for-woocommerce/src/Admin

NameTypeSizeLast ModifiedActions
Input Directory - -
Product Directory - -
Tasks Directory - -
ActivationRedirect.php File 3091 bytes June 18 2022 00:23:22.
Admin.php File 1713 bytes February 03 2022 13:03:56.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/pinterest-for-woocommerce/src/Admin/Admin.php

<?php
/**
 * Class Admin
 *
 * @package Automattic\WooCommerce\Pinterest\Admin
 */

declare( strict_types=1 );

namespace Automattic\WooCommerce\Pinterest\Admin;

use Automattic\WooCommerce\Pinterest\Product\GoogleCategorySearch;
use Automattic\WooCommerce\Pinterest\View\ViewException;
use Automattic\WooCommerce\Pinterest\View\ViewFactory;

/**
 * Class Admin
 */
class Admin {

	/**
	 * View factory.
	 *
	 * @var ViewFactory
	 */
	protected $view_factory;

	/**
	 * Admin constructor.
	 *
	 * @param ViewFactory $view_factory View factory.
	 */
	public function __construct( ViewFactory $view_factory ) {
		$this->view_factory = $view_factory;
	}

	/**
	 * Register a service.
	 */
	public function register(): void {
		add_action(
			'admin_enqueue_scripts',
			function() {
				$this->enqueue_assets();
			}
		);

		( new GoogleCategorySearch() )->register();
	}

	/**
	 * Enqueues any assets.
	 */
	protected function enqueue_assets() {
		$screen = get_current_screen();

		if ( $screen && 'product' === $screen->id ) {
			wp_enqueue_style(
				'pinterest-product-attributes-css',
				Pinterest_For_Woocommerce()->plugin_url() . '/assets/build/style-product-attributes.css',
				array(),
				PINTEREST_FOR_WOOCOMMERCE_VERSION
			);
		}
	}

	/**
	 * Get the admin view.
	 *
	 * @param string $view              Name of the view.
	 * @param array  $context_variables Array of variables to pass to the view.
	 *
	 * @return string The rendered view
	 *
	 * @throws ViewException If the view doesn't exist or can't be loaded.
	 */
	public function get_view( string $view, array $context_variables = array() ): string {
		return $this->view_factory->create( $view )
							->render( $context_variables );
	}

}

SILENT KILLER Tool