[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.23.92.50: ~ $
<?php

namespace MailPoet\WooCommerce;

if (!defined('ABSPATH')) exit;


use MailPoet\Config\Renderer;
use MailPoet\Settings\SettingsController;

class Settings {

  /** @var Renderer */
  private $renderer;

  /** @var SettingsController */
  private $settings;

  public function __construct(
    Renderer $renderer,
    SettingsController $settings
  ) {
    $this->renderer = $renderer;
    $this->settings = $settings;
  }

  public function disableWooCommerceSettings() {
    if (
      !isset($_GET['tab'])
      || $_GET['tab'] !== 'email'
      || isset($_GET['section'])
    ) {
      return;
    }
    echo $this->renderer->render('woocommerce/settings_button.html', [
      'woocommerce_template_id' => $this->settings->get(TransactionalEmails::SETTING_EMAIL_ID),
    ]);
    if (!(bool)$this->settings->get('woocommerce.use_mailpoet_editor')) {
      return;
    }
    echo $this->renderer->render('woocommerce/settings_overlay.html', [
      'woocommerce_template_id' => $this->settings->get(TransactionalEmails::SETTING_EMAIL_ID),
    ]);
  }
}

Filemanager

Name Type Size Permission Actions
TransactionalEmails Folder 0700
Helper.php File 1.73 KB 0644
Settings.php File 1.04 KB 0644
SubscriberEngagement.php File 1 KB 0644
Subscription.php File 6.75 KB 0644
TransactionalEmailHooks.php File 4.12 KB 0644
TransactionalEmails.php File 5.01 KB 0644
index.php File 0 B 0644