<?php

namespace WBCR\Factory_Templates_134\Pages;

/**
 * The page Settings.
 *
 * @author        Alex Kovalev <alex.kovalevv@gmail.com>, Github: https://github.com/alexkovalevv
 * @since         1.0.1
 * @package       clearfy
 * @copyright (c) 2018, Webcraftic Ltd
 *
 */

// Exit if accessed directly
if( !defined('ABSPATH') ) {
	exit;
}


class MoreFeatures extends \WBCR\Factory_Templates_134\Impressive {

	/**
	 * {@inheritDoc}
	 *
	 * @var string
	 */
	public $id = "more_features";

	/**
	 * {@inheritDoc}
	 *
	 * @var string
	 */
	public $page_menu_dashicon = 'dashicons-star-filled wbcr-factory-orange-color';

	/**
	 * {@inheritDoc}
	 *
	 * @var string
	 */
	public $page_menu_position = 5;

	/**
	 * {@inheritDoc}
	 *
	 * @var string
	 */
	public $type = 'page';

	/**
	 * {@inheritDoc}
	 *
	 * @var bool
	 */
	public $available_for_multisite = true;

	/**
	 * {@inheritDoc}
	 *
	 * @since  2.0.6 - добавлен
	 * @var bool
	 */
	public $internal = true;

	public function __construct(\Wbcr_Factory480_Plugin $plugin)
	{
		$this->menu_title = __('More features (<b>free</b>)', 'wbcr_factory_templates_134');

		parent::__construct($plugin);

		$this->plugin = $plugin;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @return string
	 */
	public function getPageTitle()
	{
		return __('More features', 'wbcr_factory_templates_134');
	}

	/**
	 * {@inheritDoc}
	 *
	 * @return void
	 */
	public function showPageContent()
	{
		?>
		<div class="row">
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-yes"></span>
					<h3><?php _e('Code cleaning', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('Clears the source code of the page from unused code.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-chart-bar"></span>
					<h3><?php _e('Improve SEO', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('Removes duplicate pages, closes external links, changes the headers of the server.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-shield-alt"></span>
					<h3><?php _e('Site protection', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('Enables and disables features that improve the protection of your site.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-welcome-comments"></span>
					<h3><?php _e('Disable comments', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('Disables comments on the entire site or on specific pages.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-update"></span>
					<h3><?php _e('Manage updates', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('Enables or disables automatically updates for plugins, themes and core. It is also possible
							to disable all updates.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-admin-plugins"></span>
					<h3><?php _e('Manage widgets', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('Allows you to remove unused widgets.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-dashboard"></span>
					<h3><?php _e('Speed Optimization', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('Increases performance by disabling unused functions and reducing the number of requests.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-visibility"></span>
					<h3><?php _e('Site privacy', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('Allows you to hide the version of the site and plugins. Allows you to hide your
							WordPress.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="wbcr-factory-feature-box">
					<span class="dashicons dashicons-admin-settings"></span>
					<h3><?php _e('Easy setup', 'wbcr_factory_templates_134') ?></h3>
					<p><?php _e('In quick mode, you can easily configure the plugin according to your needs.', 'wbcr_factory_templates_134') ?></p>
				</div>
			</div>
		</div>
		<div class="wbcr-factory-buttons-wrap">
			<?php
			$url = 'https://clearfy.pro';

			if( get_locale() == 'ru_RU' ) {
				$url = 'https://ru.clearfy.pro';
			}
			$url .= '?utm_source=wordpress.org&utm_campaign=' . $this->plugin->getPluginName();
			?>
			<a href="<?php echo $url ?>" class="wbcr-factory-premium-button" target="_blank">
				<?php _e('Get the ultimate plugin 100% FREE', 'wbcr_factory_templates_134') ?>
			</a>
		</div>
		<?php
	}
}

