/home/lnzliplg/public_html/inc.zip
PK���\��������#TGM/class-tgm-plugin-activation.phpnu�[���<?php
/**
 * Plugin installation and activation for WordPress themes.
 *
 * Please note that this is a drop-in library for a theme or plugin.
 * The authors of this library (Thomas, Gary and Juliette) are NOT responsible
 * for the support of your plugin or theme. Please contact the plugin
 * or theme author for support.
 *
 * @package   TGM-Plugin-Activation
 * @version   2.6.1 for parent theme Lawyer Hub for publication on WordPress.org
 * @link      http://tgmpluginactivation.com/
 * @author    Thomas Griffin, Gary Jones, Juliette Reinders Folmer
 * @copyright Copyright (c) 2011, Thomas Griffin
 * @license   GPL-2.0+
 */

/*
	Copyright 2011 Thomas Griffin (thomasgriffinmedia.com)

	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License, version 2, as
	published by the Free Software Foundation.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {

	/**
	 * Automatic plugin installation and activation library.
	 *
	 * Creates a way to automatically install and activate plugins from within themes.
	 * The plugins can be either bundled, downloaded from the WordPress
	 * Plugin Repository or downloaded from another external source.
	 *
	 * @since 1.0.0
	 *
	 * @package TGM-Plugin-Activation
	 * @author  Thomas Griffin
	 * @author  Gary Jones
	 */
	class TGM_Plugin_Activation {
		/**
		 * TGMPA version number.
		 *
		 * @since 2.5.0
		 *
		 * @const string Version number.
		 */
		const TGMPA_VERSION = '2.6.1';

		/**
		 * Regular expression to test if a URL is a WP plugin repo URL.
		 *
		 * @const string Regex.
		 *
		 * @since 2.5.0
		 */
		const WP_REPO_REGEX = '|^http[s]?://wordpress\.org/(?:extend/)?plugins/|';

		/**
		 * Arbitrary regular expression to test if a string starts with a URL.
		 *
		 * @const string Regex.
		 *
		 * @since 2.5.0
		 */
		const IS_URL_REGEX = '|^http[s]?://|';

		/**
		 * Holds a copy of itself, so it can be referenced by the class name.
		 *
		 * @since 1.0.0
		 *
		 * @var TGM_Plugin_Activation
		 */
		public static $instance;

		/**
		 * Holds arrays of plugin details.
		 *
		 * @since 1.0.0
		 * @since 2.5.0 the array has the plugin slug as an associative key.
		 *
		 * @var array
		 */
		public $plugins = array();

		/**
		 * Holds arrays of plugin names to use to sort the plugins array.
		 *
		 * @since 2.5.0
		 *
		 * @var array
		 */
		protected $sort_order = array();

		/**
		 * Whether any plugins have the 'force_activation' setting set to true.
		 *
		 * @since 2.5.0
		 *
		 * @var bool
		 */
		protected $has_forced_activation = false;

		/**
		 * Whether any plugins have the 'force_deactivation' setting set to true.
		 *
		 * @since 2.5.0
		 *
		 * @var bool
		 */
		protected $has_forced_deactivation = false;

		/**
		 * Name of the unique ID to hash notices.
		 *
		 * @since 2.4.0
		 *
		 * @var string
		 */
		public $id = 'tgmpa';

		/**
		 * Name of the query-string argument for the admin page.
		 *
		 * @since 1.0.0
		 *
		 * @var string
		 */
		protected $menu = 'tgmpa-install-plugins';

		/**
		 * Parent menu file slug.
		 *
		 * @since 2.5.0
		 *
		 * @var string
		 */
		public $parent_slug = 'themes.php';

		/**
		 * Capability needed to view the plugin installation menu item.
		 *
		 * @since 2.5.0
		 *
		 * @var string
		 */
		public $capability = 'edit_theme_options';

		/**
		 * Default absolute path to folder containing bundled plugin zip files.
		 *
		 * @since 2.0.0
		 *
		 * @var string Absolute path prefix to zip file location for bundled plugins. Default is empty string.
		 */
		public $default_path = '';

		/**
		 * Flag to show admin notices or not.
		 *
		 * @since 2.1.0
		 *
		 * @var boolean
		 */
		public $has_notices = true;

		/**
		 * Flag to determine if the user can dismiss the notice nag.
		 *
		 * @since 2.4.0
		 *
		 * @var boolean
		 */
		public $dismissable = true;

		/**
		 * Message to be output above nag notice if dismissable is false.
		 *
		 * @since 2.4.0
		 *
		 * @var string
		 */
		public $dismiss_msg = '';

		/**
		 * Flag to set automatic activation of plugins. Off by default.
		 *
		 * @since 2.2.0
		 *
		 * @var boolean
		 */
		public $is_automatic = false;

		/**
		 * Optional message to display before the plugins table.
		 *
		 * @since 2.2.0
		 *
		 * @var string Message filtered by wp_kses_post(). Default is empty string.
		 */
		public $message = '';

		/**
		 * Holds configurable array of strings.
		 *
		 * Default values are added in the constructor.
		 *
		 * @since 2.0.0
		 *
		 * @var array
		 */
		public $strings = array();

		/**
		 * Holds the version of WordPress.
		 *
		 * @since 2.4.0
		 *
		 * @var int
		 */
		public $wp_version;

		/**
		 * Holds the hook name for the admin page.
		 *
		 * @since 2.5.0
		 *
		 * @var string
		 */
		public $page_hook;

		/**
		 * Adds a reference of this object to $instance, populates default strings,
		 * does the tgmpa_init action hook, and hooks in the interactions to init.
		 *
		 * {@internal This method should be `protected`, but as too many TGMPA implementations
		 * haven't upgraded beyond v2.3.6 yet, this gives backward compatibility issues.
		 * Reverted back to public for the time being.}}
		 *
		 * @since 1.0.0
		 *
		 * @see TGM_Plugin_Activation::init()
		 */
		public function __construct() {
			// Set the current WordPress version.
			$this->wp_version = $GLOBALS['wp_version'];

			// Announce that the class is ready, and pass the object (for advanced use).
			do_action_ref_array( 'tgmpa_init', array( $this ) );



			// When the rest of WP has loaded, kick-start the rest of the class.
			add_action( 'init', array( $this, 'init' ) );
		}

		/**
		 * Magic method to (not) set protected properties from outside of this class.
		 *
		 * {@internal hackedihack... There is a serious bug in v2.3.2 - 2.3.6  where the `menu` property
		 * is being assigned rather than tested in a conditional, effectively rendering it useless.
		 * This 'hack' prevents this from happening.}}
		 *
		 * @see https://github.com/TGMPA/TGM-Plugin-Activation/blob/2.3.6/tgm-plugin-activation/class-tgm-plugin-activation.php#L1593
		 *
		 * @since 2.5.2
		 *
		 * @param string $name  Name of an inaccessible property.
		 * @param mixed  $value Value to assign to the property.
		 * @return void  Silently fail to set the property when this is tried from outside of this class context.
		 *               (Inside this class context, the __set() method if not used as there is direct access.)
		 */
		public function __set( $name, $value ) {
			return;
		}

		/**
		 * Magic method to get the value of a protected property outside of this class context.
		 *
		 * @since 2.5.2
		 *
		 * @param string $name Name of an inaccessible property.
		 * @return mixed The property value.
		 */
		public function __get( $name ) {
			return $this->{$name};
		}

		/**
		 * Initialise the interactions between this class and WordPress.
		 *
		 * Hooks in three new methods for the class: admin_menu, notices and styles.
		 *
		 * @since 2.0.0
		 *
		 * @see TGM_Plugin_Activation::admin_menu()
		 * @see TGM_Plugin_Activation::notices()
		 * @see TGM_Plugin_Activation::styles()
		 */
		public function init() {
			/**
			 * By default TGMPA only loads on the WP back-end and not in an Ajax call. Using this filter
			 * you can overrule that behaviour.
			 *
			 * @since 2.5.0
			 *
			 * @param bool $load Whether or not TGMPA should load.
			 *                   Defaults to the return of `is_admin() && ! defined( 'DOING_AJAX' )`.
			 */
			if ( true !== apply_filters( 'tgmpa_load', ( is_admin() && ! defined( 'DOING_AJAX' ) ) ) ) {
				return;
			}

			// Load class strings.
			$this->strings = array(
				'page_title'                      => __( 'Install Required Plugins', 'lawyer-hub' ),
				'menu_title'                      => __( 'Install Plugins', 'lawyer-hub' ),
				/* translators: %s: plugin name. */
				'installing'                      => __( 'Installing Plugin: %s', 'lawyer-hub' ),
				/* translators: %s: plugin name. */
				'updating'                        => __( 'Updating Plugin: %s', 'lawyer-hub' ),
				'oops'                            => __( 'Something went wrong with the plugin API.', 'lawyer-hub' ),
				'notice_can_install_required'     => _n_noop(
					/* translators: 1: plugin name(s). */
					'This theme requires the following plugin: %1$s.',
					'This theme requires the following plugins: %1$s.',
					'lawyer-hub'
				),
				'notice_can_install_recommended'  => _n_noop(
					/* translators: 1: plugin name(s). */
					'This theme recommends the following plugin: %1$s.',
					'This theme recommends the following plugins: %1$s.',
					'lawyer-hub'
				),
				'notice_ask_to_update'            => _n_noop(
					/* translators: 1: plugin name(s). */
					'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
					'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
					'lawyer-hub'
				),
				'notice_ask_to_update_maybe'      => _n_noop(
					/* translators: 1: plugin name(s). */
					'There is an update available for: %1$s.',
					'There are updates available for the following plugins: %1$s.',
					'lawyer-hub'
				),
				'notice_can_activate_required'    => _n_noop(
					/* translators: 1: plugin name(s). */
					'The following required plugin is currently inactive: %1$s.',
					'The following required plugins are currently inactive: %1$s.',
					'lawyer-hub'
				),
				'notice_can_activate_recommended' => _n_noop(
					/* translators: 1: plugin name(s). */
					'The following recommended plugin is currently inactive: %1$s.',
					'The following recommended plugins are currently inactive: %1$s.',
					'lawyer-hub'
				),
				'install_link'                    => _n_noop(
					'Begin installing plugin',
					'Begin installing plugins',
					'lawyer-hub'
				),
				'update_link'                     => _n_noop(
					'Begin updating plugin',
					'Begin updating plugins',
					'lawyer-hub'
				),
				'activate_link'                   => _n_noop(
					'Begin activating plugin',
					'Begin activating plugins',
					'lawyer-hub'
				),
				'return'                          => __( 'Return to Required Plugins Installer', 'lawyer-hub' ),
				'dashboard'                       => __( 'Return to the Dashboard', 'lawyer-hub' ),
				'plugin_activated'                => __( 'Plugin activated successfully.', 'lawyer-hub' ),
				'activated_successfully'          => __( 'The following plugin was activated successfully:', 'lawyer-hub' ),
				/* translators: 1: plugin name. */
				'plugin_already_active'           => __( 'No action taken. Plugin %1$s was already active.', 'lawyer-hub' ),
				/* translators: 1: plugin name. */
				'plugin_needs_higher_version'     => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'lawyer-hub' ),
				/* translators: 1: dashboard link. */
				'complete'                        => __( 'All plugins installed and activated successfully. %1$s', 'lawyer-hub' ),
				'dismiss'                         => __( 'Dismiss this notice', 'lawyer-hub' ),
				'notice_cannot_install_activate'  => __( 'There are one or more required or recommended plugins to install, update or activate.', 'lawyer-hub' ),
				'contact_admin'                   => __( 'Please contact the administrator of this site for help.', 'lawyer-hub' ),
			);

			do_action( 'tgmpa_register' );

			/* After this point, the plugins should be registered and the configuration set. */

			// Proceed only if we have plugins to handle.
			if ( empty( $this->plugins ) || ! is_array( $this->plugins ) ) {
				return;
			}

			// Set up the menu and notices if we still have outstanding actions.
			if ( true !== $this->is_tgmpa_complete() ) {
				// Sort the plugins.
				array_multisort( $this->sort_order, SORT_ASC, $this->plugins );

				add_action( 'admin_menu', array( $this, 'admin_menu' ) );
				add_action( 'admin_head', array( $this, 'dismiss' ) );

				// Prevent the normal links from showing underneath a single install/update page.
				add_filter( 'install_plugin_complete_actions', array( $this, 'actions' ) );
				add_filter( 'update_plugin_complete_actions', array( $this, 'actions' ) );

				if ( $this->has_notices ) {
					add_action( 'admin_notices', array( $this, 'notices' ) );
					add_action( 'admin_init', array( $this, 'admin_init' ), 1 );
					add_action( 'admin_enqueue_scripts', array( $this, 'thickbox' ) );
				}
			}

			// If needed, filter plugin action links.
			add_action( 'load-plugins.php', array( $this, 'add_plugin_action_link_filters' ), 1 );

			// Make sure things get reset on switch theme.
			add_action( 'switch_theme', array( $this, 'flush_plugins_cache' ) );

			if ( $this->has_notices ) {
				add_action( 'switch_theme', array( $this, 'update_dismiss' ) );
			}

			// Setup the force activation hook.
			if ( true === $this->has_forced_activation ) {
				add_action( 'admin_init', array( $this, 'force_activation' ) );
			}

			// Setup the force deactivation hook.
			if ( true === $this->has_forced_deactivation ) {
				add_action( 'switch_theme', array( $this, 'force_deactivation' ) );
			}
		}







		/**
		 * Hook in plugin action link filters for the WP native plugins page.
		 *
		 * - Prevent activation of plugins which don't meet the minimum version requirements.
		 * - Prevent deactivation of force-activated plugins.
		 * - Add update notice if update available.
		 *
		 * @since 2.5.0
		 */
		public function add_plugin_action_link_filters() {
			foreach ( $this->plugins as $slug => $plugin ) {
				if ( false === $this->can_plugin_activate( $slug ) ) {
					add_filter( 'plugin_action_links_' . $plugin['file_path'], array( $this, 'filter_plugin_action_links_activate' ), 20 );
				}

				if ( true === $plugin['force_activation'] ) {
					add_filter( 'plugin_action_links_' . $plugin['file_path'], array( $this, 'filter_plugin_action_links_deactivate' ), 20 );
				}

				if ( false !== $this->does_plugin_require_update( $slug ) ) {
					add_filter( 'plugin_action_links_' . $plugin['file_path'], array( $this, 'filter_plugin_action_links_update' ), 20 );
				}
			}
		}

		/**
		 * Remove the 'Activate' link on the WP native plugins page if the plugin does not meet the
		 * minimum version requirements.
		 *
		 * @since 2.5.0
		 *
		 * @param array $actions Action links.
		 * @return array
		 */
		public function filter_plugin_action_links_activate( $actions ) {
			unset( $actions['activate'] );

			return $actions;
		}

		/**
		 * Remove the 'Deactivate' link on the WP native plugins page if the plugin has been set to force activate.
		 *
		 * @since 2.5.0
		 *
		 * @param array $actions Action links.
		 * @return array
		 */
		public function filter_plugin_action_links_deactivate( $actions ) {
			unset( $actions['deactivate'] );

			return $actions;
		}

		/**
		 * Add a 'Requires update' link on the WP native plugins page if the plugin does not meet the
		 * minimum version requirements.
		 *
		 * @since 2.5.0
		 *
		 * @param array $actions Action links.
		 * @return array
		 */
		public function filter_plugin_action_links_update( $actions ) {
			$actions['update'] = sprintf(
				'<a href="%1$s" title="%2$s" class="edit">%3$s</a>',
				esc_url( $this->get_tgmpa_status_url( 'update' ) ),
				esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'lawyer-hub' ),
				esc_html__( 'Update Required', 'lawyer-hub' )
			);

			return $actions;
		}

		/**
		 * Handles calls to show plugin information via links in the notices.
		 *
		 * We get the links in the admin notices to point to the TGMPA page, rather
		 * than the typical plugin-install.php file, so we can prepare everything
		 * beforehand.
		 *
		 * WP does not make it easy to show the plugin information in the thickbox -
		 * here we have to require a file that includes a function that does the
		 * main work of displaying it, enqueue some styles, set up some globals and
		 * finally call that function before exiting.
		 *
		 * Down right easy once you know how...
		 *
		 * Returns early if not the TGMPA page.
		 *
		 * @since 2.1.0
		 *
		 * @global string $tab Used as iframe div class names, helps with styling
		 * @global string $body_id Used as the iframe body ID, helps with styling
		 *
		 * @return null Returns early if not the TGMPA page.
		 */
		public function admin_init() {
			if ( ! $this->is_tgmpa_page() ) {
				return;
			}

			if ( isset( $_REQUEST['tab'] ) && 'plugin-information' === $_REQUEST['tab'] ) {
				// Needed for install_plugin_information().
				require_once ABSPATH . 'wp-admin/includes/plugin-install.php';

				wp_enqueue_style( 'plugin-install' );

				global $tab, $body_id;
				$body_id = 'plugin-information';
				// @codingStandardsIgnoreStart
				$tab     = 'plugin-information';
				// @codingStandardsIgnoreEnd

				install_plugin_information();

				exit;
			}
		}

		/**
		 * Enqueue thickbox scripts/styles for plugin info.
		 *
		 * Thickbox is not automatically included on all admin pages, so we must
		 * manually enqueue it for those pages.
		 *
		 * Thickbox is only loaded if the user has not dismissed the admin
		 * notice or if there are any plugins left to install and activate.
		 *
		 * @since 2.1.0
		 */
		public function thickbox() {
			if ( ! get_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, true ) ) {
				add_thickbox();
			}
		}

		/**
		 * Adds submenu page if there are plugin actions to take.
		 *
		 * This method adds the submenu page letting users know that a required
		 * plugin needs to be installed.
		 *
		 * This page disappears once the plugin has been installed and activated.
		 *
		 * @since 1.0.0
		 *
		 * @see TGM_Plugin_Activation::init()
		 * @see TGM_Plugin_Activation::install_plugins_page()
		 *
		 * @return null Return early if user lacks capability to install a plugin.
		 */
		public function admin_menu() {
			// Make sure privileges are correct to see the page.
			if ( ! current_user_can( 'install_plugins' ) ) {
				return;
			}

			$args = apply_filters(
				'tgmpa_admin_menu_args',
				array(
					'parent_slug' => $this->parent_slug,                     // Parent Menu slug.
					'page_title'  => $this->strings['page_title'],           // Page title.
					'menu_title'  => $this->strings['menu_title'],           // Menu title.
					'capability'  => $this->capability,                      // Capability.
					'menu_slug'   => $this->menu,                            // Menu slug.
					'function'    => array( $this, 'install_plugins_page' ), // Callback.
				)
			);

			$this->add_admin_menu( $args );
		}

		/**
		 * Add the menu item.
		 *
		 * {@internal IMPORTANT! If this function changes, review the regex in the custom TGMPA
		 * generator on the website.}}
		 *
		 * @since 2.5.0
		 *
		 * @param array $args Menu item configuration.
		 */
		protected function add_admin_menu( array $args ) {
			$this->page_hook = add_theme_page( $args['page_title'], $args['menu_title'], $args['capability'], $args['menu_slug'], $args['function'] );
		}

		/**
		 * Echoes plugin installation form.
		 *
		 * This method is the callback for the admin_menu method function.
		 * This displays the admin page and form area where the user can select to install and activate the plugin.
		 * Aborts early if we're processing a plugin installation action.
		 *
		 * @since 1.0.0
		 *
		 * @return null Aborts early if we're processing a plugin installation action.
		 */
		public function install_plugins_page() {
			// Store new instance of plugin table in object.
			$plugin_table = new TGMPA_List_Table;

			// Return early if processing a plugin installation action.
			if ( ( ( 'tgmpa-bulk-install' === $plugin_table->current_action() || 'tgmpa-bulk-update' === $plugin_table->current_action() ) && $plugin_table->process_bulk_actions() ) || $this->do_plugin_install() ) {
				return;
			}

			// Force refresh of available plugin information so we'll know about manual updates/deletes.
			wp_clean_plugins_cache( false );

			?>
			<div class="tgmpa wrap">
				<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
				<?php $plugin_table->prepare_items(); ?>

				<?php
				if ( ! empty( $this->message ) && is_string( $this->message ) ) {
					echo wp_kses_post( $this->message );
				}
				?>
				<?php $plugin_table->views(); ?>

				<form id="tgmpa-plugins" action="" method="post">
					<input type="hidden" name="tgmpa-page" value="<?php echo esc_attr( $this->menu ); ?>" />
					<input type="hidden" name="plugin_status" value="<?php echo esc_attr( $plugin_table->view_context ); ?>" />
					<?php $plugin_table->display(); ?>
				</form>
			</div>
			<?php
		}

		/**
		 * Installs, updates or activates a plugin depending on the action link clicked by the user.
		 *
		 * Checks the $_GET variable to see which actions have been
		 * passed and responds with the appropriate method.
		 *
		 * Uses WP_Filesystem to process and handle the plugin installation
		 * method.
		 *
		 * @since 1.0.0
		 *
		 * @uses WP_Filesystem
		 * @uses WP_Error
		 * @uses WP_Upgrader
		 * @uses Plugin_Upgrader
		 * @uses Plugin_Installer_Skin
		 * @uses Plugin_Upgrader_Skin
		 *
		 * @return boolean True on success, false on failure.
		 */
		protected function do_plugin_install() {
			if ( empty( $_GET['plugin'] ) ) {
				return false;
			}

			// All plugin information will be stored in an array for processing.
			$slug = $this->sanitize_key( urldecode( $_GET['plugin'] ) );

			if ( ! isset( $this->plugins[ $slug ] ) ) {
				return false;
			}

			// Was an install or upgrade action link clicked?
			if ( ( isset( $_GET['tgmpa-install'] ) && 'install-plugin' === $_GET['tgmpa-install'] ) || ( isset( $_GET['tgmpa-update'] ) && 'update-plugin' === $_GET['tgmpa-update'] ) ) {

				$install_type = 'install';
				if ( isset( $_GET['tgmpa-update'] ) && 'update-plugin' === $_GET['tgmpa-update'] ) {
					$install_type = 'update';
				}

				check_admin_referer( 'tgmpa-' . $install_type, 'tgmpa-nonce' );

				// Pass necessary information via URL if WP_Filesystem is needed.
				$url = wp_nonce_url(
					add_query_arg(
						array(
							'plugin'                 => urlencode( $slug ),
							'tgmpa-' . $install_type => $install_type . '-plugin',
						),
						$this->get_tgmpa_url()
					),
					'tgmpa-' . $install_type,
					'tgmpa-nonce'
				);

				$method = ''; // Leave blank so WP_Filesystem can populate it as necessary.

				if ( false === ( $creds = request_filesystem_credentials( esc_url_raw( $url ), $method, false, false, array() ) ) ) {
					return true;
				}

				if ( ! WP_Filesystem( $creds ) ) {
					request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, array() ); // Setup WP_Filesystem.
					return true;
				}

				/* If we arrive here, we have the filesystem. */

				// Prep variables for Plugin_Installer_Skin class.
				$extra         = array();
				$extra['slug'] = $slug; // Needed for potentially renaming of directory name.
				$source        = $this->get_download_url( $slug );
				$api           = ( 'repo' === $this->plugins[ $slug ]['source_type'] ) ? $this->get_plugins_api( $slug ) : null;
				$api           = ( false !== $api ) ? $api : null;

				$url = add_query_arg(
					array(
						'action' => $install_type . '-plugin',
						'plugin' => urlencode( $slug ),
					),
					'update.php'
				);

				if ( ! class_exists( 'Plugin_Upgrader', false ) ) {
					require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
				}

				$title     = ( 'update' === $install_type ) ? $this->strings['updating'] : $this->strings['installing'];
				$skin_args = array(
					'type'   => ( 'bundled' !== $this->plugins[ $slug ]['source_type'] ) ? 'web' : 'upload',
					'title'  => sprintf( $title, $this->plugins[ $slug ]['name'] ),
					'url'    => esc_url_raw( $url ),
					'nonce'  => $install_type . '-plugin_' . $slug,
					'plugin' => '',
					'api'    => $api,
					'extra'  => $extra,
				);
				unset( $title );

				if ( 'update' === $install_type ) {
					$skin_args['plugin'] = $this->plugins[ $slug ]['file_path'];
					$skin                = new Plugin_Upgrader_Skin( $skin_args );
				} else {
					$skin = new Plugin_Installer_Skin( $skin_args );
				}

				// Create a new instance of Plugin_Upgrader.
				$upgrader = new Plugin_Upgrader( $skin );

				// Perform the action and install the plugin from the $source urldecode().
				add_filter( 'upgrader_source_selection', array( $this, 'maybe_adjust_source_dir' ), 1, 3 );

				if ( 'update' === $install_type ) {
					// Inject our info into the update transient.
					$to_inject                    = array( $slug => $this->plugins[ $slug ] );
					$to_inject[ $slug ]['source'] = $source;
					$this->inject_update_info( $to_inject );

					$upgrader->upgrade( $this->plugins[ $slug ]['file_path'] );
				} else {
					$upgrader->install( $source );
				}

				remove_filter( 'upgrader_source_selection', array( $this, 'maybe_adjust_source_dir' ), 1 );

				// Make sure we have the correct file path now the plugin is installed/updated.
				$this->populate_file_path( $slug );

				// Only activate plugins if the config option is set to true and the plugin isn't
				// already active (upgrade).
				if ( $this->is_automatic && ! $this->is_plugin_active( $slug ) ) {
					$plugin_activate = $upgrader->plugin_info(); // Grab the plugin info from the Plugin_Upgrader method.
					if ( false === $this->activate_single_plugin( $plugin_activate, $slug, true ) ) {
						return true; // Finish execution of the function early as we encountered an error.
					}
				}

				$this->show_tgmpa_version();

				// Display message based on if all plugins are now active or not.
				if ( $this->is_tgmpa_complete() ) {
					echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'lawyer-hub' ) . '</a>' ), '</p>';
					echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
				} else {
					echo '<p><a href="', esc_url( $this->get_tgmpa_url() ), '" target="_parent">', esc_html( $this->strings['return'] ), '</a></p>';
				}

				return true;
			} elseif ( isset( $this->plugins[ $slug ]['file_path'], $_GET['tgmpa-activate'] ) && 'activate-plugin' === $_GET['tgmpa-activate'] ) {
				// Activate action link was clicked.
				check_admin_referer( 'tgmpa-activate', 'tgmpa-nonce' );

				if ( false === $this->activate_single_plugin( $this->plugins[ $slug ]['file_path'], $slug ) ) {
					return true; // Finish execution of the function early as we encountered an error.
				}
			}

			return false;
		}

		/**
		 * Inject information into the 'update_plugins' site transient as WP checks that before running an update.
		 *
		 * @since 2.5.0
		 *
		 * @param array $plugins The plugin information for the plugins which are to be updated.
		 */
		public function inject_update_info( $plugins ) {
			$repo_updates = get_site_transient( 'update_plugins' );

			if ( ! is_object( $repo_updates ) ) {
				$repo_updates = new stdClass;
			}

			foreach ( $plugins as $slug => $plugin ) {
				$file_path = $plugin['file_path'];

				if ( empty( $repo_updates->response[ $file_path ] ) ) {
					$repo_updates->response[ $file_path ] = new stdClass;
				}

				// We only really need to set package, but let's do all we can in case WP changes something.
				$repo_updates->response[ $file_path ]->slug        = $slug;
				$repo_updates->response[ $file_path ]->plugin      = $file_path;
				$repo_updates->response[ $file_path ]->new_version = $plugin['version'];
				$repo_updates->response[ $file_path ]->package     = $plugin['source'];
				if ( empty( $repo_updates->response[ $file_path ]->url ) && ! empty( $plugin['external_url'] ) ) {
					$repo_updates->response[ $file_path ]->url = $plugin['external_url'];
				}
			}

			set_site_transient( 'update_plugins', $repo_updates );
		}

		/**
		 * Adjust the plugin directory name if necessary.
		 *
		 * The final destination directory of a plugin is based on the subdirectory name found in the
		 * (un)zipped source. In some cases - most notably GitHub repository plugin downloads -, this
		 * subdirectory name is not the same as the expected slug and the plugin will not be recognized
		 * as installed. This is fixed by adjusting the temporary unzipped source subdirectory name to
		 * the expected plugin slug.
		 *
		 * @since 2.5.0
		 *
		 * @param string       $source        Path to upgrade/zip-file-name.tmp/subdirectory/.
		 * @param string       $remote_source Path to upgrade/zip-file-name.tmp.
		 * @param \WP_Upgrader $upgrader      Instance of the upgrader which installs the plugin.
		 * @return string $source
		 */
		public function maybe_adjust_source_dir( $source, $remote_source, $upgrader ) {
			if ( ! $this->is_tgmpa_page() || ! is_object( $GLOBALS['wp_filesystem'] ) ) {
				return $source;
			}

			// Check for single file plugins.
			$source_files = array_keys( $GLOBALS['wp_filesystem']->dirlist( $remote_source ) );
			if ( 1 === count( $source_files ) && false === $GLOBALS['wp_filesystem']->is_dir( $source ) ) {
				return $source;
			}

			// Multi-file plugin, let's see if the directory is correctly named.
			$desired_slug = '';

			// Figure out what the slug is supposed to be.
			if ( false === $upgrader->bulk && ! empty( $upgrader->skin->options['extra']['slug'] ) ) {
				$desired_slug = $upgrader->skin->options['extra']['slug'];
			} else {
				// Bulk installer contains less info, so fall back on the info registered here.
				foreach ( $this->plugins as $slug => $plugin ) {
					if ( ! empty( $upgrader->skin->plugin_names[ $upgrader->skin->i ] ) && $plugin['name'] === $upgrader->skin->plugin_names[ $upgrader->skin->i ] ) {
						$desired_slug = $slug;
						break;
					}
				}
				unset( $slug, $plugin );
			}

			if ( ! empty( $desired_slug ) ) {
				$subdir_name = untrailingslashit( str_replace( trailingslashit( $remote_source ), '', $source ) );

				if ( ! empty( $subdir_name ) && $subdir_name !== $desired_slug ) {
					$from_path = untrailingslashit( $source );
					$to_path   = trailingslashit( $remote_source ) . $desired_slug;

					if ( true === $GLOBALS['wp_filesystem']->move( $from_path, $to_path ) ) {
						return trailingslashit( $to_path );
					} else {
						return new WP_Error( 'rename_failed', esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'lawyer-hub' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'lawyer-hub' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
					}
				} elseif ( empty( $subdir_name ) ) {
					return new WP_Error( 'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'lawyer-hub' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'lawyer-hub' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
				}
			}

			return $source;
		}

		/**
		 * Activate a single plugin and send feedback about the result to the screen.
		 *
		 * @since 2.5.0
		 *
		 * @param string $file_path Path within wp-plugins/ to main plugin file.
		 * @param string $slug      Plugin slug.
		 * @param bool   $automatic Whether this is an automatic activation after an install. Defaults to false.
		 *                          This determines the styling of the output messages.
		 * @return bool False if an error was encountered, true otherwise.
		 */
		protected function activate_single_plugin( $file_path, $slug, $automatic = false ) {
			if ( $this->can_plugin_activate( $slug ) ) {
				$activate = activate_plugin( $file_path );

				if ( is_wp_error( $activate ) ) {
					echo '<div id="message" class="error"><p>', wp_kses_post( $activate->get_error_message() ), '</p></div>',
						'<p><a href="', esc_url( $this->get_tgmpa_url() ), '" target="_parent">', esc_html( $this->strings['return'] ), '</a></p>';

					return false; // End it here if there is an error with activation.
				} else {
					if ( ! $automatic ) {
						// Make sure message doesn't display again if bulk activation is performed
						// immediately after a single activation.
						if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK.
							echo '<div id="message" class="updated"><p>', esc_html( $this->strings['activated_successfully'] ), ' <strong>', esc_html( $this->plugins[ $slug ]['name'] ), '.</strong></p></div>';
						}
					} else {
						// Simpler message layout for use on the plugin install page.
						echo '<p>', esc_html( $this->strings['plugin_activated'] ), '</p>';
					}
				}
			} elseif ( $this->is_plugin_active( $slug ) ) {
				// No simpler message format provided as this message should never be encountered
				// on the plugin install page.
				echo '<div id="message" class="error"><p>',
					sprintf(
						esc_html( $this->strings['plugin_already_active'] ),
						'<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>'
					),
					'</p></div>';
			} elseif ( $this->does_plugin_require_update( $slug ) ) {
				if ( ! $automatic ) {
					// Make sure message doesn't display again if bulk activation is performed
					// immediately after a single activation.
					if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK.
						echo '<div id="message" class="error"><p>',
							sprintf(
								esc_html( $this->strings['plugin_needs_higher_version'] ),
								'<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>'
							),
							'</p></div>';
					}
				} else {
					// Simpler message layout for use on the plugin install page.
					echo '<p>', sprintf( esc_html( $this->strings['plugin_needs_higher_version'] ), esc_html( $this->plugins[ $slug ]['name'] ) ), '</p>';
				}
			}

			return true;
		}

		/**
		 * Echoes required plugin notice.
		 *
		 * Outputs a message telling users that a specific plugin is required for
		 * their theme. If appropriate, it includes a link to the form page where
		 * users can install and activate the plugin.
		 *
		 * Returns early if we're on the Install page.
		 *
		 * @since 1.0.0
		 *
		 * @global object $current_screen
		 *
		 * @return null Returns early if we're on the Install page.
		 */
		public function notices() {
			// Remove nag on the install page / Return early if the nag message has been dismissed or user < author.
			if ( ( $this->is_tgmpa_page() || $this->is_core_update_page() ) || get_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, true ) || ! current_user_can( apply_filters( 'tgmpa_show_admin_notice_capability', 'publish_posts' ) ) ) {
				return;
			}

			// Store for the plugin slugs by message type.
			$message = array();

			// Initialize counters used to determine plurality of action link texts.
			$install_link_count          = 0;
			$update_link_count           = 0;
			$activate_link_count         = 0;
			$total_required_action_count = 0;

			foreach ( $this->plugins as $slug => $plugin ) {
				if ( $this->is_plugin_active( $slug ) && false === $this->does_plugin_have_update( $slug ) ) {
					continue;
				}

				if ( ! $this->is_plugin_installed( $slug ) ) {
					if ( current_user_can( 'install_plugins' ) ) {
						$install_link_count++;

						if ( true === $plugin['required'] ) {
							$message['notice_can_install_required'][] = $slug;
						} else {
							$message['notice_can_install_recommended'][] = $slug;
						}
					}
					if ( true === $plugin['required'] ) {
						$total_required_action_count++;
					}
				} else {
					if ( ! $this->is_plugin_active( $slug ) && $this->can_plugin_activate( $slug ) ) {
						if ( current_user_can( 'activate_plugins' ) ) {
							$activate_link_count++;

							if ( true === $plugin['required'] ) {
								$message['notice_can_activate_required'][] = $slug;
							} else {
								$message['notice_can_activate_recommended'][] = $slug;
							}
						}
						if ( true === $plugin['required'] ) {
							$total_required_action_count++;
						}
					}

					if ( $this->does_plugin_require_update( $slug ) || false !== $this->does_plugin_have_update( $slug ) ) {

						if ( current_user_can( 'update_plugins' ) ) {
							$update_link_count++;

							if ( $this->does_plugin_require_update( $slug ) ) {
								$message['notice_ask_to_update'][] = $slug;
							} elseif ( false !== $this->does_plugin_have_update( $slug ) ) {
								$message['notice_ask_to_update_maybe'][] = $slug;
							}
						}
						if ( true === $plugin['required'] ) {
							$total_required_action_count++;
						}
					}
				}
			}
			unset( $slug, $plugin );

			// If we have notices to display, we move forward.
			if ( ! empty( $message ) || $total_required_action_count > 0 ) {
				krsort( $message ); // Sort messages.
				$rendered = '';

				// As add_settings_error() wraps the final message in a <p> and as the final message can't be
				// filtered, using <p>'s in our html would render invalid html output.
				$line_template = '<span style="display: block; margin: 0.5em 0.5em 0 0; clear: both;">%s</span>' . "\n";

				if ( ! current_user_can( 'activate_plugins' ) && ! current_user_can( 'install_plugins' ) && ! current_user_can( 'update_plugins' ) ) {
					$rendered  = esc_html( $this->strings['notice_cannot_install_activate'] ) . ' ' . esc_html( $this->strings['contact_admin'] );
					$rendered .= $this->create_user_action_links_for_notice( 0, 0, 0, $line_template );
				} else {

					// If dismissable is false and a message is set, output it now.
					if ( ! $this->dismissable && ! empty( $this->dismiss_msg ) ) {
						$rendered .= sprintf( $line_template, wp_kses_post( $this->dismiss_msg ) );
					}

					// Render the individual message lines for the notice.
					foreach ( $message as $type => $plugin_group ) {
						$linked_plugins = array();

						// Get the external info link for a plugin if one is available.
						foreach ( $plugin_group as $plugin_slug ) {
							$linked_plugins[] = $this->get_info_link( $plugin_slug );
						}
						unset( $plugin_slug );

						$count          = count( $plugin_group );
						$linked_plugins = array_map( array( 'TGMPA_Utils', 'wrap_in_em' ), $linked_plugins );
						$last_plugin    = array_pop( $linked_plugins ); // Pop off last name to prep for readability.
						$imploded       = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'lawyer-hub' ) . ' ' . $last_plugin );

						$rendered .= sprintf(
							$line_template,
							sprintf(
								translate_nooped_plural( $this->strings[ $type ], $count, 'lawyer-hub' ),
								$imploded,
								$count
							)
						);

					}
					unset( $type, $plugin_group, $linked_plugins, $count, $last_plugin, $imploded );

					$rendered .= $this->create_user_action_links_for_notice( $install_link_count, $update_link_count, $activate_link_count, $line_template );
				}

				// Register the nag messages and prepare them to be processed.
				add_settings_error( 'tgmpa', 'tgmpa', $rendered, $this->get_admin_notice_class() );
			}

			// Admin options pages already output settings_errors, so this is to avoid duplication.
			if ( 'options-general' !== $GLOBALS['current_screen']->parent_base ) {
				$this->display_settings_errors();
			}
		}

		/**
		 * Generate the user action links for the admin notice.
		 *
		 * @since 2.6.0
		 *
		 * @param int $install_count  Number of plugins to install.
		 * @param int $update_count   Number of plugins to update.
		 * @param int $activate_count Number of plugins to activate.
		 * @param int $line_template  Template for the HTML tag to output a line.
		 * @return string Action links.
		 */
		protected function create_user_action_links_for_notice( $install_count, $update_count, $activate_count, $line_template ) {
			// Setup action links.
			$action_links = array(
				'install'  => '',
				'update'   => '',
				'activate' => '',
				'dismiss'  => $this->dismissable ? '<a href="' . esc_url( wp_nonce_url( add_query_arg( 'tgmpa-dismiss', 'dismiss_admin_notices' ), 'tgmpa-dismiss-' . get_current_user_id() ) ) . '" class="dismiss-notice" target="_parent">' . esc_html( $this->strings['dismiss'] ) . '</a>' : '',
			);

			$link_template = '<a href="%2$s">%1$s</a>';

			if ( current_user_can( 'install_plugins' ) ) {
				if ( $install_count > 0 ) {
					$action_links['install'] = sprintf(
						$link_template,
						translate_nooped_plural( $this->strings['install_link'], $install_count, 'lawyer-hub' ),
						esc_url( $this->get_tgmpa_status_url( 'install' ) )
					);
				}
				if ( $update_count > 0 ) {
					$action_links['update'] = sprintf(
						$link_template,
						translate_nooped_plural( $this->strings['update_link'], $update_count, 'lawyer-hub' ),
						esc_url( $this->get_tgmpa_status_url( 'update' ) )
					);
				}
			}

			if ( current_user_can( 'activate_plugins' ) && $activate_count > 0 ) {
				$action_links['activate'] = sprintf(
					$link_template,
					translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'lawyer-hub' ),
					esc_url( $this->get_tgmpa_status_url( 'activate' ) )
				);
			}

			$action_links = apply_filters( 'tgmpa_notice_action_links', $action_links );

			$action_links = array_filter( (array) $action_links ); // Remove any empty array items.

			if ( ! empty( $action_links ) ) {
				$action_links = sprintf( $line_template, implode( ' | ', $action_links ) );
				return apply_filters( 'tgmpa_notice_rendered_action_links', $action_links );
			} else {
				return '';
			}
		}

		/**
		 * Get admin notice class.
		 *
		 * Work around all the changes to the various admin notice classes between WP 4.4 and 3.7
		 * (lowest supported version by TGMPA).
		 *
		 * @since 2.6.0
		 *
		 * @return string
		 */
		protected function get_admin_notice_class() {
			if ( ! empty( $this->strings['nag_type'] ) ) {
				return sanitize_html_class( strtolower( $this->strings['nag_type'] ) );
			} else {
				if ( version_compare( $this->wp_version, '4.2', '>=' ) ) {
					return 'notice-warning';
				} elseif ( version_compare( $this->wp_version, '4.1', '>=' ) ) {
					return 'notice';
				} else {
					return 'updated';
				}
			}
		}

		/**
		 * Display settings errors and remove those which have been displayed to avoid duplicate messages showing
		 *
		 * @since 2.5.0
		 */
		protected function display_settings_errors() {
			global $wp_settings_errors;

			settings_errors( 'tgmpa' );

			foreach ( (array) $wp_settings_errors as $key => $details ) {
				if ( 'tgmpa' === $details['setting'] ) {
					unset( $wp_settings_errors[ $key ] );
					break;
				}
			}
		}

		/**
		 * Register dismissal of admin notices.
		 *
		 * Acts on the dismiss link in the admin nag messages.
		 * If clicked, the admin notice disappears and will no longer be visible to this user.
		 *
		 * @since 2.1.0
		 */
		public function dismiss() {
			if ( isset( $_GET['tgmpa-dismiss'] ) && check_admin_referer( 'tgmpa-dismiss-' . get_current_user_id() ) ) {
				update_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, 1 );
			}
		}

		/**
		 * Add individual plugin to our collection of plugins.
		 *
		 * If the required keys are not set or the plugin has already
		 * been registered, the plugin is not added.
		 *
		 * @since 2.0.0
		 *
		 * @param array|null $plugin Array of plugin arguments or null if invalid argument.
		 * @return null Return early if incorrect argument.
		 */
		public function register( $plugin ) {
			if ( empty( $plugin['slug'] ) || empty( $plugin['name'] ) ) {
				return;
			}

			if ( empty( $plugin['slug'] ) || ! is_string( $plugin['slug'] ) || isset( $this->plugins[ $plugin['slug'] ] ) ) {
				return;
			}

			$defaults = array(
				'name'               => '',      // String
				'slug'               => '',      // String
				'source'             => 'repo',  // String
				'required'           => false,   // Boolean
				'version'            => '',      // String
				'force_activation'   => false,   // Boolean
				'force_deactivation' => false,   // Boolean
				'external_url'       => '',      // String
				'is_callable'        => '',      // String|Array.
			);

			// Prepare the received data.
			$plugin = wp_parse_args( $plugin, $defaults );

			// Standardize the received slug.
			$plugin['slug'] = $this->sanitize_key( $plugin['slug'] );

			// Forgive users for using string versions of booleans or floats for version number.
			$plugin['version']            = (string) $plugin['version'];
			$plugin['source']             = empty( $plugin['source'] ) ? 'repo' : $plugin['source'];
			$plugin['required']           = TGMPA_Utils::validate_bool( $plugin['required'] );
			$plugin['force_activation']   = TGMPA_Utils::validate_bool( $plugin['force_activation'] );
			$plugin['force_deactivation'] = TGMPA_Utils::validate_bool( $plugin['force_deactivation'] );

			// Enrich the received data.
			$plugin['file_path']   = $this->_get_plugin_basename_from_slug( $plugin['slug'] );
			$plugin['source_type'] = $this->get_plugin_source_type( $plugin['source'] );

			// Set the class properties.
			$this->plugins[ $plugin['slug'] ]    = $plugin;
			$this->sort_order[ $plugin['slug'] ] = $plugin['name'];

			// Should we add the force activation hook ?
			if ( true === $plugin['force_activation'] ) {
				$this->has_forced_activation = true;
			}

			// Should we add the force deactivation hook ?
			if ( true === $plugin['force_deactivation'] ) {
				$this->has_forced_deactivation = true;
			}
		}

		/**
		 * Determine what type of source the plugin comes from.
		 *
		 * @since 2.5.0
		 *
		 * @param string $source The source of the plugin as provided, either empty (= WP repo), a file path
		 *                       (= bundled) or an external URL.
		 * @return string 'repo', 'external', or 'bundled'
		 */
		protected function get_plugin_source_type( $source ) {
			if ( 'repo' === $source || preg_match( self::WP_REPO_REGEX, $source ) ) {
				return 'repo';
			} elseif ( preg_match( self::IS_URL_REGEX, $source ) ) {
				return 'external';
			} else {
				return 'bundled';
			}
		}

		/**
		 * Sanitizes a string key.
		 *
		 * Near duplicate of WP Core `sanitize_key()`. The difference is that uppercase characters *are*
		 * allowed, so as not to break upgrade paths from non-standard bundled plugins using uppercase
		 * characters in the plugin directory path/slug. Silly them.
		 *
		 * @see https://developer.wordpress.org/reference/hooks/sanitize_key/
		 *
		 * @since 2.5.0
		 *
		 * @param string $key String key.
		 * @return string Sanitized key
		 */
		public function sanitize_key( $key ) {
			$raw_key = $key;
			$key     = preg_replace( '`[^A-Za-z0-9_-]`', '', $key );

			/**
			 * Filter a sanitized key string.
			 *
			 * @since 2.5.0
			 *
			 * @param string $key     Sanitized key.
			 * @param string $raw_key The key prior to sanitization.
			 */
			return apply_filters( 'tgmpa_sanitize_key', $key, $raw_key );
		}

		/**
		 * Amend default configuration settings.
		 *
		 * @since 2.0.0
		 *
		 * @param array $config Array of config options to pass as class properties.
		 */
		public function config( $config ) {
			$keys = array(
				'id',
				'default_path',
				'has_notices',
				'dismissable',
				'dismiss_msg',
				'menu',
				'parent_slug',
				'capability',
				'is_automatic',
				'message',
				'strings',
			);

			foreach ( $keys as $key ) {
				if ( isset( $config[ $key ] ) ) {
					if ( is_array( $config[ $key ] ) ) {
						$this->$key = array_merge( $this->$key, $config[ $key ] );
					} else {
						$this->$key = $config[ $key ];
					}
				}
			}
		}

		/**
		 * Amend action link after plugin installation.
		 *
		 * @since 2.0.0
		 *
		 * @param array $install_actions Existing array of actions.
		 * @return false|array Amended array of actions.
		 */
		public function actions( $install_actions ) {
			// Remove action links on the TGMPA install page.
			if ( $this->is_tgmpa_page() ) {
				return false;
			}

			return $install_actions;
		}

		/**
		 * Flushes the plugins cache on theme switch to prevent stale entries
		 * from remaining in the plugin table.
		 *
		 * @since 2.4.0
		 *
		 * @param bool $clear_update_cache Optional. Whether to clear the Plugin updates cache.
		 *                                 Parameter added in v2.5.0.
		 */
		public function flush_plugins_cache( $clear_update_cache = true ) {
			wp_clean_plugins_cache( $clear_update_cache );
		}

		/**
		 * Set file_path key for each installed plugin.
		 *
		 * @since 2.1.0
		 *
		 * @param string $plugin_slug Optional. If set, only (re-)populates the file path for that specific plugin.
		 *                            Parameter added in v2.5.0.
		 */
		public function populate_file_path( $plugin_slug = '' ) {
			if ( ! empty( $plugin_slug ) && is_string( $plugin_slug ) && isset( $this->plugins[ $plugin_slug ] ) ) {
				$this->plugins[ $plugin_slug ]['file_path'] = $this->_get_plugin_basename_from_slug( $plugin_slug );
			} else {
				// Add file_path key for all plugins.
				foreach ( $this->plugins as $slug => $values ) {
					$this->plugins[ $slug ]['file_path'] = $this->_get_plugin_basename_from_slug( $slug );
				}
			}
		}

		/**
		 * Helper function to extract the file path of the plugin file from the
		 * plugin slug, if the plugin is installed.
		 *
		 * @since 2.0.0
		 *
		 * @param string $slug Plugin slug (typically folder name) as provided by the developer.
		 * @return string Either file path for plugin if installed, or just the plugin slug.
		 */
		protected function _get_plugin_basename_from_slug( $slug ) {
			$keys = array_keys( $this->get_plugins() );

			foreach ( $keys as $key ) {
				if ( preg_match( '|^' . $slug . '/|', $key ) ) {
					return $key;
				}
			}

			return $slug;
		}

		/**
		 * Retrieve plugin data, given the plugin name.
		 *
		 * Loops through the registered plugins looking for $name. If it finds it,
		 * it returns the $data from that plugin. Otherwise, returns false.
		 *
		 * @since 2.1.0
		 *
		 * @param string $name Name of the plugin, as it was registered.
		 * @param string $data Optional. Array key of plugin data to return. Default is slug.
		 * @return string|boolean Plugin slug if found, false otherwise.
		 */
		public function _get_plugin_data_from_name( $name, $data = 'slug' ) {
			foreach ( $this->plugins as $values ) {
				if ( $name === $values['name'] && isset( $values[ $data ] ) ) {
					return $values[ $data ];
				}
			}

			return false;
		}

		/**
		 * Retrieve the download URL for a package.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return string Plugin download URL or path to local file or empty string if undetermined.
		 */
		public function get_download_url( $slug ) {
			$dl_source = '';

			switch ( $this->plugins[ $slug ]['source_type'] ) {
				case 'repo':
					return $this->get_wp_repo_download_url( $slug );
				case 'external':
					return $this->plugins[ $slug ]['source'];
				case 'bundled':
					return $this->default_path . $this->plugins[ $slug ]['source'];
			}

			return $dl_source; // Should never happen.
		}

		/**
		 * Retrieve the download URL for a WP repo package.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return string Plugin download URL.
		 */
		protected function get_wp_repo_download_url( $slug ) {
			$source = '';
			$api    = $this->get_plugins_api( $slug );

			if ( false !== $api && isset( $api->download_link ) ) {
				$source = $api->download_link;
			}

			return $source;
		}

		/**
		 * Try to grab information from WordPress API.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return object Plugins_api response object on success, WP_Error on failure.
		 */
		protected function get_plugins_api( $slug ) {
			static $api = array(); // Cache received responses.

			if ( ! isset( $api[ $slug ] ) ) {
				if ( ! function_exists( 'plugins_api' ) ) {
					require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
				}

				$response = plugins_api( 'plugin_information', array( 'slug' => $slug, 'fields' => array( 'sections' => false ) ) );

				$api[ $slug ] = false;

				if ( is_wp_error( $response ) ) {
					wp_die( esc_html( $this->strings['oops'] ) );
				} else {
					$api[ $slug ] = $response;
				}
			}

			return $api[ $slug ];
		}

		/**
		 * Retrieve a link to a plugin information page.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return string Fully formed html link to a plugin information page if available
		 *                or the plugin name if not.
		 */
		public function get_info_link( $slug ) {
			if ( ! empty( $this->plugins[ $slug ]['external_url'] ) && preg_match( self::IS_URL_REGEX, $this->plugins[ $slug ]['external_url'] ) ) {
				$link = sprintf(
					'<a href="%1$s" target="_blank">%2$s</a>',
					esc_url( $this->plugins[ $slug ]['external_url'] ),
					esc_html( $this->plugins[ $slug ]['name'] )
				);
			} elseif ( 'repo' === $this->plugins[ $slug ]['source_type'] ) {
				$url = add_query_arg(
					array(
						'tab'       => 'plugin-information',
						'plugin'    => urlencode( $slug ),
						'TB_iframe' => 'true',
						'width'     => '640',
						'height'    => '500',
					),
					self_admin_url( 'plugin-install.php' )
				);

				$link = sprintf(
					'<a href="%1$s" class="thickbox">%2$s</a>',
					esc_url( $url ),
					esc_html( $this->plugins[ $slug ]['name'] )
				);
			} else {
				$link = esc_html( $this->plugins[ $slug ]['name'] ); // No hyperlink.
			}

			return $link;
		}

		/**
		 * Determine if we're on the TGMPA Install page.
		 *
		 * @since 2.1.0
		 *
		 * @return boolean True when on the TGMPA page, false otherwise.
		 */
		protected function is_tgmpa_page() {
			return isset( $_GET['page'] ) && $this->menu === $_GET['page'];
		}

		/**
		 * Determine if we're on a WP Core installation/upgrade page.
		 *
		 * @since 2.6.0
		 *
		 * @return boolean True when on a WP Core installation/upgrade page, false otherwise.
		 */
		protected function is_core_update_page() {
			// Current screen is not always available, most notably on the customizer screen.
			if ( ! function_exists( 'get_current_screen' ) ) {
				return false;
			}

			$screen = get_current_screen();

			if ( 'update-core' === $screen->base ) {
				// Core update screen.
				return true;
			} elseif ( 'plugins' === $screen->base && ! empty( $_POST['action'] ) ) { // WPCS: CSRF ok.
				// Plugins bulk update screen.
				return true;
			} elseif ( 'update' === $screen->base && ! empty( $_POST['action'] ) ) { // WPCS: CSRF ok.
				// Individual updates (ajax call).
				return true;
			}

			return false;
		}

		/**
		 * Retrieve the URL to the TGMPA Install page.
		 *
		 * I.e. depending on the config settings passed something along the lines of:
		 * http://example.com/wp-admin/themes.php?page=tgmpa-install-plugins
		 *
		 * @since 2.5.0
		 *
		 * @return string Properly encoded URL (not escaped).
		 */
		public function get_tgmpa_url() {
			static $url;

			if ( ! isset( $url ) ) {
				$parent = $this->parent_slug;
				if ( false === strpos( $parent, '.php' ) ) {
					$parent = 'admin.php';
				}
				$url = add_query_arg(
					array(
						'page' => urlencode( $this->menu ),
					),
					self_admin_url( $parent )
				);
			}

			return $url;
		}

		/**
		 * Retrieve the URL to the TGMPA Install page for a specific plugin status (view).
		 *
		 * I.e. depending on the config settings passed something along the lines of:
		 * http://example.com/wp-admin/themes.php?page=tgmpa-install-plugins&plugin_status=install
		 *
		 * @since 2.5.0
		 *
		 * @param string $status Plugin status - either 'install', 'update' or 'activate'.
		 * @return string Properly encoded URL (not escaped).
		 */
		public function get_tgmpa_status_url( $status ) {
			return add_query_arg(
				array(
					'plugin_status' => urlencode( $status ),
				),
				$this->get_tgmpa_url()
			);
		}

		/**
		 * Determine whether there are open actions for plugins registered with TGMPA.
		 *
		 * @since 2.5.0
		 *
		 * @return bool True if complete, i.e. no outstanding actions. False otherwise.
		 */
		public function is_tgmpa_complete() {
			$complete = true;
			foreach ( $this->plugins as $slug => $plugin ) {
				if ( ! $this->is_plugin_active( $slug ) || false !== $this->does_plugin_have_update( $slug ) ) {
					$complete = false;
					break;
				}
			}

			return $complete;
		}

		/**
		 * Check if a plugin is installed. Does not take must-use plugins into account.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return bool True if installed, false otherwise.
		 */
		public function is_plugin_installed( $slug ) {
			$installed_plugins = $this->get_plugins(); // Retrieve a list of all installed plugins (WP cached).

			return ( ! empty( $installed_plugins[ $this->plugins[ $slug ]['file_path'] ] ) );
		}

		/**
		 * Check if a plugin is active.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return bool True if active, false otherwise.
		 */
		public function is_plugin_active( $slug ) {
			return ( ( ! empty( $this->plugins[ $slug ]['is_callable'] ) && is_callable( $this->plugins[ $slug ]['is_callable'] ) ) || is_plugin_active( $this->plugins[ $slug ]['file_path'] ) );
		}

		/**
		 * Check if a plugin can be updated, i.e. if we have information on the minimum WP version required
		 * available, check whether the current install meets them.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return bool True if OK to update, false otherwise.
		 */
		public function can_plugin_update( $slug ) {
			// We currently can't get reliable info on non-WP-repo plugins - issue #380.
			if ( 'repo' !== $this->plugins[ $slug ]['source_type'] ) {
				return true;
			}

			$api = $this->get_plugins_api( $slug );

			if ( false !== $api && isset( $api->requires ) ) {
				return version_compare( $this->wp_version, $api->requires, '>=' );
			}

			// No usable info received from the plugins API, presume we can update.
			return true;
		}

		/**
		 * Check to see if the plugin is 'updatetable', i.e. installed, with an update available
		 * and no WP version requirements blocking it.
		 *
		 * @since 2.6.0
		 *
		 * @param string $slug Plugin slug.
		 * @return bool True if OK to proceed with update, false otherwise.
		 */
		public function is_plugin_updatetable( $slug ) {
			if ( ! $this->is_plugin_installed( $slug ) ) {
				return false;
			} else {
				return ( false !== $this->does_plugin_have_update( $slug ) && $this->can_plugin_update( $slug ) );
			}
		}

		/**
		 * Check if a plugin can be activated, i.e. is not currently active and meets the minimum
		 * plugin version requirements set in TGMPA (if any).
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return bool True if OK to activate, false otherwise.
		 */
		public function can_plugin_activate( $slug ) {
			return ( ! $this->is_plugin_active( $slug ) && ! $this->does_plugin_require_update( $slug ) );
		}

		/**
		 * Retrieve the version number of an installed plugin.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return string Version number as string or an empty string if the plugin is not installed
		 *                or version unknown (plugins which don't comply with the plugin header standard).
		 */
		public function get_installed_version( $slug ) {
			$installed_plugins = $this->get_plugins(); // Retrieve a list of all installed plugins (WP cached).

			if ( ! empty( $installed_plugins[ $this->plugins[ $slug ]['file_path'] ]['Version'] ) ) {
				return $installed_plugins[ $this->plugins[ $slug ]['file_path'] ]['Version'];
			}

			return '';
		}

		/**
		 * Check whether a plugin complies with the minimum version requirements.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return bool True when a plugin needs to be updated, otherwise false.
		 */
		public function does_plugin_require_update( $slug ) {
			$installed_version = $this->get_installed_version( $slug );
			$minimum_version   = $this->plugins[ $slug ]['version'];

			return version_compare( $minimum_version, $installed_version, '>' );
		}

		/**
		 * Check whether there is an update available for a plugin.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return false|string Version number string of the available update or false if no update available.
		 */
		public function does_plugin_have_update( $slug ) {
			// Presume bundled and external plugins will point to a package which meets the minimum required version.
			if ( 'repo' !== $this->plugins[ $slug ]['source_type'] ) {
				if ( $this->does_plugin_require_update( $slug ) ) {
					return $this->plugins[ $slug ]['version'];
				}

				return false;
			}

			$repo_updates = get_site_transient( 'update_plugins' );

			if ( isset( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version ) ) {
				return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version;
			}

			return false;
		}

		/**
		 * Retrieve potential upgrade notice for a plugin.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return string The upgrade notice or an empty string if no message was available or provided.
		 */
		public function get_upgrade_notice( $slug ) {
			// We currently can't get reliable info on non-WP-repo plugins - issue #380.
			if ( 'repo' !== $this->plugins[ $slug ]['source_type'] ) {
				return '';
			}

			$repo_updates = get_site_transient( 'update_plugins' );

			if ( ! empty( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice ) ) {
				return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice;
			}

			return '';
		}

		/**
		 * Wrapper around the core WP get_plugins function, making sure it's actually available.
		 *
		 * @since 2.5.0
		 *
		 * @param string $plugin_folder Optional. Relative path to single plugin folder.
		 * @return array Array of installed plugins with plugin information.
		 */
		public function get_plugins( $plugin_folder = '' ) {
			if ( ! function_exists( 'get_plugins' ) ) {
				require_once ABSPATH . 'wp-admin/includes/plugin.php';
			}

			return get_plugins( $plugin_folder );
		}

		/**
		 * Delete dismissable nag option when theme is switched.
		 *
		 * This ensures that the user(s) is/are again reminded via nag of required
		 * and/or recommended plugins if they re-activate the theme.
		 *
		 * @since 2.1.1
		 */
		public function update_dismiss() {
			delete_metadata( 'user', null, 'tgmpa_dismissed_notice_' . $this->id, null, true );
		}

		/**
		 * Forces plugin activation if the parameter 'force_activation' is
		 * set to true.
		 *
		 * This allows theme authors to specify certain plugins that must be
		 * active at all times while using the current theme.
		 *
		 * Please take special care when using this parameter as it has the
		 * potential to be harmful if not used correctly. Setting this parameter
		 * to true will not allow the specified plugin to be deactivated unless
		 * the user switches themes.
		 *
		 * @since 2.2.0
		 */
		public function force_activation() {
			foreach ( $this->plugins as $slug => $plugin ) {
				if ( true === $plugin['force_activation'] ) {
					if ( ! $this->is_plugin_installed( $slug ) ) {
						// Oops, plugin isn't there so iterate to next condition.
						continue;
					} elseif ( $this->can_plugin_activate( $slug ) ) {
						// There we go, activate the plugin.
						activate_plugin( $plugin['file_path'] );
					}
				}
			}
		}

		/**
		 * Forces plugin deactivation if the parameter 'force_deactivation'
		 * is set to true and adds the plugin to the 'recently active' plugins list.
		 *
		 * This allows theme authors to specify certain plugins that must be
		 * deactivated upon switching from the current theme to another.
		 *
		 * Please take special care when using this parameter as it has the
		 * potential to be harmful if not used correctly.
		 *
		 * @since 2.2.0
		 */
		public function force_deactivation() {
			$deactivated = array();

			foreach ( $this->plugins as $slug => $plugin ) {
				/*
				 * Only proceed forward if the parameter is set to true and plugin is active
				 * as a 'normal' (not must-use) plugin.
				 */
				if ( true === $plugin['force_deactivation'] && is_plugin_active( $plugin['file_path'] ) ) {
					deactivate_plugins( $plugin['file_path'] );
					$deactivated[ $plugin['file_path'] ] = time();
				}
			}

			if ( ! empty( $deactivated ) ) {
				update_option( 'recently_activated', $deactivated + (array) get_option( 'recently_activated' ) );
			}
		}

		/**
		 * Echo the current TGMPA version number to the page.
		 *
		 * @since 2.5.0
		 */
		public function show_tgmpa_version() {
			echo '<p style="float: right; padding: 0em 1.5em 0.5em 0;"><strong><small>',
				esc_html(
					sprintf(
						/* translators: %s: version number */
						__( 'TGMPA v%s', 'lawyer-hub' ),
						self::TGMPA_VERSION
					)
				),
				'</small></strong></p>';
		}

		/**
		 * Returns the singleton instance of the class.
		 *
		 * @since 2.4.0
		 *
		 * @return \TGM_Plugin_Activation The TGM_Plugin_Activation object.
		 */
		public static function get_instance() {
			if ( ! isset( self::$instance ) && ! ( self::$instance instanceof self ) ) {
				self::$instance = new self();
			}

			return self::$instance;
		}
	}

	if ( ! function_exists( 'load_tgm_plugin_activation' ) ) {
		/**
		 * Ensure only one instance of the class is ever invoked.
		 *
		 * @since 2.5.0
		 */
		function load_tgm_plugin_activation() {
			$GLOBALS['tgmpa'] = TGM_Plugin_Activation::get_instance();
		}
	}

	if ( did_action( 'plugins_loaded' ) ) {
		load_tgm_plugin_activation();
	} else {
		add_action( 'plugins_loaded', 'load_tgm_plugin_activation' );
	}
}

if ( ! function_exists( 'tgmpa' ) ) {
	/**
	 * Helper function to register a collection of required plugins.
	 *
	 * @since 2.0.0
	 * @api
	 *
	 * @param array $plugins An array of plugin arrays.
	 * @param array $config  Optional. An array of configuration values.
	 */
	function tgmpa( $plugins, $config = array() ) {
		$instance = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );

		foreach ( $plugins as $plugin ) {
			call_user_func( array( $instance, 'register' ), $plugin );
		}

		if ( ! empty( $config ) && is_array( $config ) ) {
			// Send out notices for deprecated arguments passed.
			if ( isset( $config['notices'] ) ) {
				_deprecated_argument( __FUNCTION__, '2.2.0', 'The `notices` config parameter was renamed to `has_notices` in TGMPA 2.2.0. Please adjust your configuration.' );
				if ( ! isset( $config['has_notices'] ) ) {
					$config['has_notices'] = $config['notices'];
				}
			}

			if ( isset( $config['parent_menu_slug'] ) ) {
				_deprecated_argument( __FUNCTION__, '2.4.0', 'The `parent_menu_slug` config parameter was removed in TGMPA 2.4.0. In TGMPA 2.5.0 an alternative was (re-)introduced. Please adjust your configuration. For more information visit the website: http://tgmpluginactivation.com/configuration/#h-configuration-options.' );
			}
			if ( isset( $config['parent_url_slug'] ) ) {
				_deprecated_argument( __FUNCTION__, '2.4.0', 'The `parent_url_slug` config parameter was removed in TGMPA 2.4.0. In TGMPA 2.5.0 an alternative was (re-)introduced. Please adjust your configuration. For more information visit the website: http://tgmpluginactivation.com/configuration/#h-configuration-options.' );
			}

			call_user_func( array( $instance, 'config' ), $config );
		}
	}
}

/**
 * WP_List_Table isn't always available. If it isn't available,
 * we load it here.
 *
 * @since 2.2.0
 */
if ( ! class_exists( 'WP_List_Table' ) ) {
	require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
}

if ( ! class_exists( 'TGMPA_List_Table' ) ) {

	/**
	 * List table class for handling plugins.
	 *
	 * Extends the WP_List_Table class to provide a future-compatible
	 * way of listing out all required/recommended plugins.
	 *
	 * Gives users an interface similar to the Plugin Administration
	 * area with similar (albeit stripped down) capabilities.
	 *
	 * This class also allows for the bulk install of plugins.
	 *
	 * @since 2.2.0
	 *
	 * @package TGM-Plugin-Activation
	 * @author  Thomas Griffin
	 * @author  Gary Jones
	 */
	class TGMPA_List_Table extends WP_List_Table {
		/**
		 * TGMPA instance.
		 *
		 * @since 2.5.0
		 *
		 * @var object
		 */
		protected $tgmpa;

		/**
		 * The currently chosen view.
		 *
		 * @since 2.5.0
		 *
		 * @var string One of: 'all', 'install', 'update', 'activate'
		 */
		public $view_context = 'all';

		/**
		 * The plugin counts for the various views.
		 *
		 * @since 2.5.0
		 *
		 * @var array
		 */
		protected $view_totals = array(
			'all'      => 0,
			'install'  => 0,
			'update'   => 0,
			'activate' => 0,
		);

		/**
		 * References parent constructor and sets defaults for class.
		 *
		 * @since 2.2.0
		 */
		public function __construct() {
			$this->tgmpa = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );

			parent::__construct(
				array(
					'singular' => 'plugin',
					'plural'   => 'plugins',
					'ajax'     => false,
				)
			);

			if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array( 'install', 'update', 'activate' ), true ) ) {
				$this->view_context = sanitize_key( $_REQUEST['plugin_status'] );
			}

			add_filter( 'tgmpa_table_data_items', array( $this, 'sort_table_items' ) );
		}

		/**
		 * Get a list of CSS classes for the <table> tag.
		 *
		 * Overruled to prevent the 'plural' argument from being added.
		 *
		 * @since 2.5.0
		 *
		 * @return array CSS classnames.
		 */
		public function get_table_classes() {
			return array( 'widefat', 'fixed' );
		}

		/**
		 * Gathers and renames all of our plugin information to be used by WP_List_Table to create our table.
		 *
		 * @since 2.2.0
		 *
		 * @return array $table_data Information for use in table.
		 */
		protected function _gather_plugin_data() {
			// Load thickbox for plugin links.
			$this->tgmpa->admin_init();
			$this->tgmpa->thickbox();

			// Categorize the plugins which have open actions.
			$plugins = $this->categorize_plugins_to_views();

			// Set the counts for the view links.
			$this->set_view_totals( $plugins );

			// Prep variables for use and grab list of all installed plugins.
			$table_data = array();
			$i          = 0;

			// Redirect to the 'all' view if no plugins were found for the selected view context.
			if ( empty( $plugins[ $this->view_context ] ) ) {
				$this->view_context = 'all';
			}

			foreach ( $plugins[ $this->view_context ] as $slug => $plugin ) {
				$table_data[ $i ]['sanitized_plugin']  = $plugin['name'];
				$table_data[ $i ]['slug']              = $slug;
				$table_data[ $i ]['plugin']            = '<strong>' . $this->tgmpa->get_info_link( $slug ) . '</strong>';
				$table_data[ $i ]['source']            = $this->get_plugin_source_type_text( $plugin['source_type'] );
				$table_data[ $i ]['type']              = $this->get_plugin_advise_type_text( $plugin['required'] );
				$table_data[ $i ]['status']            = $this->get_plugin_status_text( $slug );
				$table_data[ $i ]['installed_version'] = $this->tgmpa->get_installed_version( $slug );
				$table_data[ $i ]['minimum_version']   = $plugin['version'];
				$table_data[ $i ]['available_version'] = $this->tgmpa->does_plugin_have_update( $slug );

				// Prep the upgrade notice info.
				$upgrade_notice = $this->tgmpa->get_upgrade_notice( $slug );
				if ( ! empty( $upgrade_notice ) ) {
					$table_data[ $i ]['upgrade_notice'] = $upgrade_notice;

					add_action( "tgmpa_after_plugin_row_{$slug}", array( $this, 'wp_plugin_update_row' ), 10, 2 );
				}

				$table_data[ $i ] = apply_filters( 'tgmpa_table_data_item', $table_data[ $i ], $plugin );

				$i++;
			}

			return $table_data;
		}

		/**
		 * Categorize the plugins which have open actions into views for the TGMPA page.
		 *
		 * @since 2.5.0
		 */
		protected function categorize_plugins_to_views() {
			$plugins = array(
				'all'      => array(), // Meaning: all plugins which still have open actions.
				'install'  => array(),
				'update'   => array(),
				'activate' => array(),
			);

			foreach ( $this->tgmpa->plugins as $slug => $plugin ) {
				if ( $this->tgmpa->is_plugin_active( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
					// No need to display plugins if they are installed, up-to-date and active.
					continue;
				} else {
					$plugins['all'][ $slug ] = $plugin;

					if ( ! $this->tgmpa->is_plugin_installed( $slug ) ) {
						$plugins['install'][ $slug ] = $plugin;
					} else {
						if ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
							$plugins['update'][ $slug ] = $plugin;
						}

						if ( $this->tgmpa->can_plugin_activate( $slug ) ) {
							$plugins['activate'][ $slug ] = $plugin;
						}
					}
				}
			}

			return $plugins;
		}

		/**
		 * Set the counts for the view links.
		 *
		 * @since 2.5.0
		 *
		 * @param array $plugins Plugins order by view.
		 */
		protected function set_view_totals( $plugins ) {
			foreach ( $plugins as $type => $list ) {
				$this->view_totals[ $type ] = count( $list );
			}
		}

		/**
		 * Get the plugin required/recommended text string.
		 *
		 * @since 2.5.0
		 *
		 * @param string $required Plugin required setting.
		 * @return string
		 */
		protected function get_plugin_advise_type_text( $required ) {
			if ( true === $required ) {
				return __( 'Required', 'lawyer-hub' );
			}

			return __( 'Recommended', 'lawyer-hub' );
		}

		/**
		 * Get the plugin source type text string.
		 *
		 * @since 2.5.0
		 *
		 * @param string $type Plugin type.
		 * @return string
		 */
		protected function get_plugin_source_type_text( $type ) {
			$string = '';

			switch ( $type ) {
				case 'repo':
					$string = __( 'WordPress Repository', 'lawyer-hub' );
					break;
				case 'external':
					$string = __( 'External Source', 'lawyer-hub' );
					break;
				case 'bundled':
					$string = __( 'Pre-Packaged', 'lawyer-hub' );
					break;
			}

			return $string;
		}

		/**
		 * Determine the plugin status message.
		 *
		 * @since 2.5.0
		 *
		 * @param string $slug Plugin slug.
		 * @return string
		 */
		protected function get_plugin_status_text( $slug ) {
			if ( ! $this->tgmpa->is_plugin_installed( $slug ) ) {
				return __( 'Not Installed', 'lawyer-hub' );
			}

			if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
				$install_status = __( 'Installed But Not Activated', 'lawyer-hub' );
			} else {
				$install_status = __( 'Active', 'lawyer-hub' );
			}

			$update_status = '';

			if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
				$update_status = __( 'Required Update not Available', 'lawyer-hub' );

			} elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
				$update_status = __( 'Requires Update', 'lawyer-hub' );

			} elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
				$update_status = __( 'Update recommended', 'lawyer-hub' );
			}

			if ( '' === $update_status ) {
				return $install_status;
			}

			return sprintf(
				/* translators: 1: install status, 2: update status */
				_x( '%1$s, %2$s', 'Install/Update Status', 'lawyer-hub' ),
				$install_status,
				$update_status
			);
		}

		/**
		 * Sort plugins by Required/Recommended type and by alphabetical plugin name within each type.
		 *
		 * @since 2.5.0
		 *
		 * @param array $items Prepared table items.
		 * @return array Sorted table items.
		 */
		public function sort_table_items( $items ) {
			$type = array();
			$name = array();

			foreach ( $items as $i => $plugin ) {
				$type[ $i ] = $plugin['type']; // Required / recommended.
				$name[ $i ] = $plugin['sanitized_plugin'];
			}

			array_multisort( $type, SORT_DESC, $name, SORT_ASC, $items );

			return $items;
		}

		/**
		 * Get an associative array ( id => link ) of the views available on this table.
		 *
		 * @since 2.5.0
		 *
		 * @return array
		 */
		public function get_views() {
			$status_links = array();

			foreach ( $this->view_totals as $type => $count ) {
				if ( $count < 1 ) {
					continue;
				}

				switch ( $type ) {
					case 'all':
						/* translators: 1: number of plugins. */
						$text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'lawyer-hub' );
						break;
					case 'install':
						/* translators: 1: number of plugins. */
						$text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'lawyer-hub' );
						break;
					case 'update':
						/* translators: 1: number of plugins. */
						$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'lawyer-hub' );
						break;
					case 'activate':
						/* translators: 1: number of plugins. */
						$text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'lawyer-hub' );
						break;
					default:
						$text = '';
						break;
				}

				if ( ! empty( $text ) ) {

					$status_links[ $type ] = sprintf(
						'<a href="%s"%s>%s</a>',
						esc_url( $this->tgmpa->get_tgmpa_status_url( $type ) ),
						( $type === $this->view_context ) ? ' class="current"' : '',
						sprintf( $text, number_format_i18n( $count ) )
					);
				}
			}

			return $status_links;
		}

		/**
		 * Create default columns to display important plugin information
		 * like type, action and status.
		 *
		 * @since 2.2.0
		 *
		 * @param array  $item        Array of item data.
		 * @param string $column_name The name of the column.
		 * @return string
		 */
		public function column_default( $item, $column_name ) {
			return $item[ $column_name ];
		}

		/**
		 * Required for bulk installing.
		 *
		 * Adds a checkbox for each plugin.
		 *
		 * @since 2.2.0
		 *
		 * @param array $item Array of item data.
		 * @return string The input checkbox with all necessary info.
		 */
		public function column_cb( $item ) {
			return sprintf(
				'<input type="checkbox" name="%1$s[]" value="%2$s" id="%3$s" />',
				esc_attr( $this->_args['singular'] ),
				esc_attr( $item['slug'] ),
				esc_attr( $item['sanitized_plugin'] )
			);
		}

		/**
		 * Create default title column along with the action links.
		 *
		 * @since 2.2.0
		 *
		 * @param array $item Array of item data.
		 * @return string The plugin name and action links.
		 */
		public function column_plugin( $item ) {
			return sprintf(
				'%1$s %2$s',
				$item['plugin'],
				$this->row_actions( $this->get_row_actions( $item ), true )
			);
		}

		/**
		 * Create version information column.
		 *
		 * @since 2.5.0
		 *
		 * @param array $item Array of item data.
		 * @return string HTML-formatted version information.
		 */
		public function column_version( $item ) {
			$output = array();

			if ( $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
				$installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'lawyer-hub' );

				$color = '';
				if ( ! empty( $item['minimum_version'] ) && $this->tgmpa->does_plugin_require_update( $item['slug'] ) ) {
					$color = ' color: #ff0000; font-weight: bold;';
				}

				$output[] = sprintf(
					'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'lawyer-hub' ) . '</p>',
					$color,
					$installed
				);
			}

			if ( ! empty( $item['minimum_version'] ) ) {
				$output[] = sprintf(
					'<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'lawyer-hub' ) . '</p>',
					$item['minimum_version']
				);
			}

			if ( ! empty( $item['available_version'] ) ) {
				$color = '';
				if ( ! empty( $item['minimum_version'] ) && version_compare( $item['available_version'], $item['minimum_version'], '>=' ) ) {
					$color = ' color: #71C671; font-weight: bold;';
				}

				$output[] = sprintf(
					'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'lawyer-hub' ) . '</p>',
					$color,
					$item['available_version']
				);
			}

			if ( empty( $output ) ) {
				return '&nbsp;'; // Let's not break the table layout.
			} else {
				return implode( "\n", $output );
			}
		}

		/**
		 * Sets default message within the plugins table if no plugins
		 * are left for interaction.
		 *
		 * Hides the menu item to prevent the user from clicking and
		 * getting a permissions error.
		 *
		 * @since 2.2.0
		 */
		public function no_items() {
			echo esc_html__( 'No plugins to install, update or activate.', 'lawyer-hub' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'lawyer-hub' ) . '</a>';
			echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
		}

		/**
		 * Output all the column information within the table.
		 *
		 * @since 2.2.0
		 *
		 * @return array $columns The column names.
		 */
		public function get_columns() {
			$columns = array(
				'cb'     => '<input type="checkbox" />',
				'plugin' => __( 'Plugin', 'lawyer-hub' ),
				'source' => __( 'Source', 'lawyer-hub' ),
				'type'   => __( 'Type', 'lawyer-hub' ),
			);

			if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
				$columns['version'] = __( 'Version', 'lawyer-hub' );
				$columns['status']  = __( 'Status', 'lawyer-hub' );
			}

			return apply_filters( 'tgmpa_table_columns', $columns );
		}

		/**
		 * Get name of default primary column
		 *
		 * @since 2.5.0 / WP 4.3+ compatibility
		 * @access protected
		 *
		 * @return string
		 */
		protected function get_default_primary_column_name() {
			return 'plugin';
		}

		/**
		 * Get the name of the primary column.
		 *
		 * @since 2.5.0 / WP 4.3+ compatibility
		 * @access protected
		 *
		 * @return string The name of the primary column.
		 */
		protected function get_primary_column_name() {
			if ( method_exists( 'WP_List_Table', 'get_primary_column_name' ) ) {
				return parent::get_primary_column_name();
			} else {
				return $this->get_default_primary_column_name();
			}
		}

		/**
		 * Get the actions which are relevant for a specific plugin row.
		 *
		 * @since 2.5.0
		 *
		 * @param array $item Array of item data.
		 * @return array Array with relevant action links.
		 */
		protected function get_row_actions( $item ) {
			$actions      = array();
			$action_links = array();

			// Display the 'Install' action link if the plugin is not yet available.
			if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
				/* translators: %2$s: plugin name in screen reader markup */
				$actions['install'] = __( 'Install %2$s', 'lawyer-hub' );
			} else {
				// Display the 'Update' action link if an update is available and WP complies with plugin minimum.
				if ( false !== $this->tgmpa->does_plugin_have_update( $item['slug'] ) && $this->tgmpa->can_plugin_update( $item['slug'] ) ) {
					/* translators: %2$s: plugin name in screen reader markup */
					$actions['update'] = __( 'Update %2$s', 'lawyer-hub' );
				}

				// Display the 'Activate' action link, but only if the plugin meets the minimum version.
				if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) {
					/* translators: %2$s: plugin name in screen reader markup */
					$actions['activate'] = __( 'Activate %2$s', 'lawyer-hub' );
				}
			}

			// Create the actual links.
			foreach ( $actions as $action => $text ) {
				$nonce_url = wp_nonce_url(
					add_query_arg(
						array(
							'plugin'           => urlencode( $item['slug'] ),
							'tgmpa-' . $action => $action . '-plugin',
						),
						$this->tgmpa->get_tgmpa_url()
					),
					'tgmpa-' . $action,
					'tgmpa-nonce'
				);

				$action_links[ $action ] = sprintf(
					'<a href="%1$s">' . esc_html( $text ) . '</a>', // $text contains the second placeholder.
					esc_url( $nonce_url ),
					'<span class="screen-reader-text">' . esc_html( $item['sanitized_plugin'] ) . '</span>'
				);
			}

			$prefix = ( defined( 'WP_NETWORK_ADMIN' ) && WP_NETWORK_ADMIN ) ? 'network_admin_' : '';
			return apply_filters( "tgmpa_{$prefix}plugin_action_links", array_filter( $action_links ), $item['slug'], $item, $this->view_context );
		}

		/**
		 * Generates content for a single row of the table.
		 *
		 * @since 2.5.0
		 *
		 * @param object $item The current item.
		 */
		public function single_row( $item ) {
			parent::single_row( $item );

			/**
			 * Fires after each specific row in the TGMPA Plugins list table.
			 *
			 * The dynamic portion of the hook name, `$item['slug']`, refers to the slug
			 * for the plugin.
			 *
			 * @since 2.5.0
			 */
			do_action( "tgmpa_after_plugin_row_{$item['slug']}", $item['slug'], $item, $this->view_context );
		}

		/**
		 * Show the upgrade notice below a plugin row if there is one.
		 *
		 * @since 2.5.0
		 *
		 * @see /wp-admin/includes/update.php
		 *
		 * @param string $slug Plugin slug.
		 * @param array  $item The information available in this table row.
		 * @return null Return early if upgrade notice is empty.
		 */
		public function wp_plugin_update_row( $slug, $item ) {
			if ( empty( $item['upgrade_notice'] ) ) {
				return;
			}

			echo '
				<tr class="plugin-update-tr">
					<td colspan="', absint( $this->get_column_count() ), '" class="plugin-update colspanchange">
						<div class="update-message">',
							esc_html__( 'Upgrade message from the plugin author:', 'lawyer-hub' ),
							' <strong>', wp_kses_data( $item['upgrade_notice'] ), '</strong>
						</div>
					</td>
				</tr>';
		}

		/**
		 * Extra controls to be displayed between bulk actions and pagination.
		 *
		 * @since 2.5.0
		 *
		 * @param string $which 'top' or 'bottom' table navigation.
		 */
		public function extra_tablenav( $which ) {
			if ( 'bottom' === $which ) {
				$this->tgmpa->show_tgmpa_version();
			}
		}

		/**
		 * Defines the bulk actions for handling registered plugins.
		 *
		 * @since 2.2.0
		 *
		 * @return array $actions The bulk actions for the plugin install table.
		 */
		public function get_bulk_actions() {

			$actions = array();

			if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) {
				if ( current_user_can( 'install_plugins' ) ) {
					$actions['tgmpa-bulk-install'] = __( 'Install', 'lawyer-hub' );
				}
			}

			if ( 'install' !== $this->view_context ) {
				if ( current_user_can( 'update_plugins' ) ) {
					$actions['tgmpa-bulk-update'] = __( 'Update', 'lawyer-hub' );
				}
				if ( current_user_can( 'activate_plugins' ) ) {
					$actions['tgmpa-bulk-activate'] = __( 'Activate', 'lawyer-hub' );
				}
			}

			return $actions;
		}

		/**
		 * Processes bulk installation and activation actions.
		 *
		 * The bulk installation process looks for the $_POST information and passes that
		 * through if a user has to use WP_Filesystem to enter their credentials.
		 *
		 * @since 2.2.0
		 */
		public function process_bulk_actions() {
			// Bulk installation process.
			if ( 'tgmpa-bulk-install' === $this->current_action() || 'tgmpa-bulk-update' === $this->current_action() ) {

				check_admin_referer( 'bulk-' . $this->_args['plural'] );

				$install_type = 'install';
				if ( 'tgmpa-bulk-update' === $this->current_action() ) {
					$install_type = 'update';
				}

				$plugins_to_install = array();

				// Did user actually select any plugins to install/update ?
				if ( empty( $_POST['plugin'] ) ) {
					if ( 'install' === $install_type ) {
						$message = __( 'No plugins were selected to be installed. No action taken.', 'lawyer-hub' );
					} else {
						$message = __( 'No plugins were selected to be updated. No action taken.', 'lawyer-hub' );
					}

					echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';

					return false;
				}

				if ( is_array( $_POST['plugin'] ) ) {
					$plugins_to_install = (array) $_POST['plugin'];
				} elseif ( is_string( $_POST['plugin'] ) ) {
					// Received via Filesystem page - un-flatten array (WP bug #19643).
					$plugins_to_install = explode( ',', $_POST['plugin'] );
				}

				// Sanitize the received input.
				$plugins_to_install = array_map( 'urldecode', $plugins_to_install );
				$plugins_to_install = array_map( array( $this->tgmpa, 'sanitize_key' ), $plugins_to_install );

				// Validate the received input.
				foreach ( $plugins_to_install as $key => $slug ) {
					// Check if the plugin was registered with TGMPA and remove if not.
					if ( ! isset( $this->tgmpa->plugins[ $slug ] ) ) {
						unset( $plugins_to_install[ $key ] );
						continue;
					}

					// For install: make sure this is a plugin we *can* install and not one already installed.
					if ( 'install' === $install_type && true === $this->tgmpa->is_plugin_installed( $slug ) ) {
						unset( $plugins_to_install[ $key ] );
					}

					// For updates: make sure this is a plugin we *can* update (update available and WP version ok).
					if ( 'update' === $install_type && false === $this->tgmpa->is_plugin_updatetable( $slug ) ) {
						unset( $plugins_to_install[ $key ] );
					}
				}

				// No need to proceed further if we have no plugins to handle.
				if ( empty( $plugins_to_install ) ) {
					if ( 'install' === $install_type ) {
						$message = __( 'No plugins are available to be installed at this time.', 'lawyer-hub' );
					} else {
						$message = __( 'No plugins are available to be updated at this time.', 'lawyer-hub' );
					}

					echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';

					return false;
				}

				// Pass all necessary information if WP_Filesystem is needed.
				$url = wp_nonce_url(
					$this->tgmpa->get_tgmpa_url(),
					'bulk-' . $this->_args['plural']
				);

				// Give validated data back to $_POST which is the only place the filesystem looks for extra fields.
				$_POST['plugin'] = implode( ',', $plugins_to_install ); // Work around for WP bug #19643.

				$method = ''; // Leave blank so WP_Filesystem can populate it as necessary.
				$fields = array_keys( $_POST ); // Extra fields to pass to WP_Filesystem.

				if ( false === ( $creds = request_filesystem_credentials( esc_url_raw( $url ), $method, false, false, $fields ) ) ) {
					return true; // Stop the normal page form from displaying, credential request form will be shown.
				}

				// Now we have some credentials, setup WP_Filesystem.
				if ( ! WP_Filesystem( $creds ) ) {
					// Our credentials were no good, ask the user for them again.
					request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, $fields );

					return true;
				}

				/* If we arrive here, we have the filesystem */

				// Store all information in arrays since we are processing a bulk installation.
				$names      = array();
				$sources    = array(); // Needed for installs.
				$file_paths = array(); // Needed for upgrades.
				$to_inject  = array(); // Information to inject into the update_plugins transient.

				// Prepare the data for validated plugins for the install/upgrade.
				foreach ( $plugins_to_install as $slug ) {
					$name   = $this->tgmpa->plugins[ $slug ]['name'];
					$source = $this->tgmpa->get_download_url( $slug );

					if ( ! empty( $name ) && ! empty( $source ) ) {
						$names[] = $name;

						switch ( $install_type ) {

							case 'install':
								$sources[] = $source;
								break;

							case 'update':
								$file_paths[]                 = $this->tgmpa->plugins[ $slug ]['file_path'];
								$to_inject[ $slug ]           = $this->tgmpa->plugins[ $slug ];
								$to_inject[ $slug ]['source'] = $source;
								break;
						}
					}
				}
				unset( $slug, $name, $source );

				// Create a new instance of TGMPA_Bulk_Installer.
				$installer = new TGMPA_Bulk_Installer(
					new TGMPA_Bulk_Installer_Skin(
						array(
							'url'          => esc_url_raw( $this->tgmpa->get_tgmpa_url() ),
							'nonce'        => 'bulk-' . $this->_args['plural'],
							'names'        => $names,
							'install_type' => $install_type,
						)
					)
				);

				// Wrap the install process with the appropriate HTML.
				echo '<div class="tgmpa">',
					'<h2 style="font-size: 23px; font-weight: 400; line-height: 29px; margin: 0; padding: 9px 15px 4px 0;">', esc_html( get_admin_page_title() ), '</h2>
					<div class="update-php" style="width: 100%; height: 98%; min-height: 850px; padding-top: 1px;">';

				// Process the bulk installation submissions.
				add_filter( 'upgrader_source_selection', array( $this->tgmpa, 'maybe_adjust_source_dir' ), 1, 3 );

				if ( 'tgmpa-bulk-update' === $this->current_action() ) {
					// Inject our info into the update transient.
					$this->tgmpa->inject_update_info( $to_inject );

					$installer->bulk_upgrade( $file_paths );
				} else {
					$installer->bulk_install( $sources );
				}

				remove_filter( 'upgrader_source_selection', array( $this->tgmpa, 'maybe_adjust_source_dir' ), 1 );

				echo '</div></div>';

				return true;
			}

			// Bulk activation process.
			if ( 'tgmpa-bulk-activate' === $this->current_action() ) {
				check_admin_referer( 'bulk-' . $this->_args['plural'] );

				// Did user actually select any plugins to activate ?
				if ( empty( $_POST['plugin'] ) ) {
					echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'lawyer-hub' ), '</p></div>';

					return false;
				}

				// Grab plugin data from $_POST.
				$plugins = array();
				if ( isset( $_POST['plugin'] ) ) {
					$plugins = array_map( 'urldecode', (array) $_POST['plugin'] );
					$plugins = array_map( array( $this->tgmpa, 'sanitize_key' ), $plugins );
				}

				$plugins_to_activate = array();
				$plugin_names        = array();

				// Grab the file paths for the selected & inactive plugins from the registration array.
				foreach ( $plugins as $slug ) {
					if ( $this->tgmpa->can_plugin_activate( $slug ) ) {
						$plugins_to_activate[] = $this->tgmpa->plugins[ $slug ]['file_path'];
						$plugin_names[]        = $this->tgmpa->plugins[ $slug ]['name'];
					}
				}
				unset( $slug );

				// Return early if there are no plugins to activate.
				if ( empty( $plugins_to_activate ) ) {
					echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'lawyer-hub' ), '</p></div>';

					return false;
				}

				// Now we are good to go - let's start activating plugins.
				$activate = activate_plugins( $plugins_to_activate );

				if ( is_wp_error( $activate ) ) {
					echo '<div id="message" class="error"><p>', wp_kses_post( $activate->get_error_message() ), '</p></div>';
				} else {
					$count        = count( $plugin_names ); // Count so we can use _n function.
					$plugin_names = array_map( array( 'TGMPA_Utils', 'wrap_in_strong' ), $plugin_names );
					$last_plugin  = array_pop( $plugin_names ); // Pop off last name to prep for readability.
					$imploded     = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'lawyer-hub' ) . ' ' . $last_plugin );

					printf( // WPCS: xss ok.
						'<div id="message" class="updated"><p>%1$s %2$s.</p></div>',
						esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'lawyer-hub' ) ),
						$imploded
					);

					// Update recently activated plugins option.
					$recent = (array) get_option( 'recently_activated' );
					foreach ( $plugins_to_activate as $plugin => $time ) {
						if ( isset( $recent[ $plugin ] ) ) {
							unset( $recent[ $plugin ] );
						}
					}
					update_option( 'recently_activated', $recent );
				}

				unset( $_POST ); // Reset the $_POST variable in case user wants to perform one action after another.

				return true;
			}

			return false;
		}

		/**
		 * Prepares all of our information to be outputted into a usable table.
		 *
		 * @since 2.2.0
		 */
		public function prepare_items() {
			$columns               = $this->get_columns(); // Get all necessary column information.
			$hidden                = array(); // No columns to hide, but we must set as an array.
			$sortable              = array(); // No reason to make sortable columns.
			$primary               = $this->get_primary_column_name(); // Column which has the row actions.
			$this->_column_headers = array( $columns, $hidden, $sortable, $primary ); // Get all necessary column headers.

			// Process our bulk activations here.
			if ( 'tgmpa-bulk-activate' === $this->current_action() ) {
				$this->process_bulk_actions();
			}

			// Store all of our plugin data into $items array so WP_List_Table can use it.
			$this->items = apply_filters( 'tgmpa_table_data_items', $this->_gather_plugin_data() );
		}

		/* *********** DEPRECATED METHODS *********** */

		/**
		 * Retrieve plugin data, given the plugin name.
		 *
		 * @since      2.2.0
		 * @deprecated 2.5.0 use {@see TGM_Plugin_Activation::_get_plugin_data_from_name()} instead.
		 * @see        TGM_Plugin_Activation::_get_plugin_data_from_name()
		 *
		 * @param string $name Name of the plugin, as it was registered.
		 * @param string $data Optional. Array key of plugin data to return. Default is slug.
		 * @return string|boolean Plugin slug if found, false otherwise.
		 */
		protected function _get_plugin_data_from_name( $name, $data = 'slug' ) {
			_deprecated_function( __FUNCTION__, 'TGMPA 2.5.0', 'TGM_Plugin_Activation::_get_plugin_data_from_name()' );

			return $this->tgmpa->_get_plugin_data_from_name( $name, $data );
		}
	}
}


if ( ! class_exists( 'TGM_Bulk_Installer' ) ) {

	/**
	 * Hack: Prevent TGMPA v2.4.1- bulk installer class from being loaded if 2.4.1- is loaded after 2.5+.
	 *
	 * @since 2.5.2
	 *
	 * {@internal The TGMPA_Bulk_Installer class was originally called TGM_Bulk_Installer.
	 *            For more information, see that class.}}
	 */
	class TGM_Bulk_Installer {
	}
}
if ( ! class_exists( 'TGM_Bulk_Installer_Skin' ) ) {

	/**
	 * Hack: Prevent TGMPA v2.4.1- bulk installer skin class from being loaded if 2.4.1- is loaded after 2.5+.
	 *
	 * @since 2.5.2
	 *
	 * {@internal The TGMPA_Bulk_Installer_Skin class was originally called TGM_Bulk_Installer_Skin.
	 *            For more information, see that class.}}
	 */
	class TGM_Bulk_Installer_Skin {
	}
}

/**
 * The WP_Upgrader file isn't always available. If it isn't available,
 * we load it here.
 *
 * We check to make sure no action or activation keys are set so that WordPress
 * does not try to re-include the class when processing upgrades or installs outside
 * of the class.
 *
 * @since 2.2.0
 */
add_action( 'admin_init', 'tgmpa_load_bulk_installer' );
if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
	/**
	 * Load bulk installer
	 */
	function tgmpa_load_bulk_installer() {
		// Silently fail if 2.5+ is loaded *after* an older version.
		if ( ! isset( $GLOBALS['tgmpa'] ) ) {
			return;
		}

		// Get TGMPA class instance.
		$tgmpa_instance = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );

		if ( isset( $_GET['page'] ) && $tgmpa_instance->menu === $_GET['page'] ) {
			if ( ! class_exists( 'Plugin_Upgrader', false ) ) {
				require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
			}

			if ( ! class_exists( 'TGMPA_Bulk_Installer' ) ) {

				/**
				 * Installer class to handle bulk plugin installations.
				 *
				 * Extends WP_Upgrader and customizes to suit the installation of multiple
				 * plugins.
				 *
				 * @since 2.2.0
				 *
				 * {@internal Since 2.5.0 the class is an extension of Plugin_Upgrader rather than WP_Upgrader.}}
				 * {@internal Since 2.5.2 the class has been renamed from TGM_Bulk_Installer to TGMPA_Bulk_Installer.
				 *            This was done to prevent backward compatibility issues with v2.3.6.}}
				 *
				 * @package TGM-Plugin-Activation
				 * @author  Thomas Griffin
				 * @author  Gary Jones
				 */
				class TGMPA_Bulk_Installer extends Plugin_Upgrader {
					/**
					 * Holds result of bulk plugin installation.
					 *
					 * @since 2.2.0
					 *
					 * @var string
					 */
					public $result;

					/**
					 * Flag to check if bulk installation is occurring or not.
					 *
					 * @since 2.2.0
					 *
					 * @var boolean
					 */
					public $bulk = false;

					/**
					 * TGMPA instance
					 *
					 * @since 2.5.0
					 *
					 * @var object
					 */
					protected $tgmpa;

					/**
					 * Whether or not the destination directory needs to be cleared ( = on update).
					 *
					 * @since 2.5.0
					 *
					 * @var bool
					 */
					protected $clear_destination = false;

					/**
					 * References parent constructor and sets defaults for class.
					 *
					 * @since 2.2.0
					 *
					 * @param \Bulk_Upgrader_Skin|null $skin Installer skin.
					 */
					public function __construct( $skin = null ) {
						// Get TGMPA class instance.
						$this->tgmpa = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );

						parent::__construct( $skin );

						if ( isset( $this->skin->options['install_type'] ) && 'update' === $this->skin->options['install_type'] ) {
							$this->clear_destination = true;
						}

						if ( $this->tgmpa->is_automatic ) {
							$this->activate_strings();
						}

						add_action( 'upgrader_process_complete', array( $this->tgmpa, 'populate_file_path' ) );
					}

					/**
					 * Sets the correct activation strings for the installer skin to use.
					 *
					 * @since 2.2.0
					 */
					public function activate_strings() {
						$this->strings['activation_failed']  = __( 'Plugin activation failed.', 'lawyer-hub' );
						$this->strings['activation_success'] = __( 'Plugin activated successfully.', 'lawyer-hub' );
					}

					/**
					 * Performs the actual installation of each plugin.
					 *
					 * @since 2.2.0
					 *
					 * @see WP_Upgrader::run()
					 *
					 * @param array $options The installation config options.
					 * @return null|array Return early if error, array of installation data on success.
					 */
					public function run( $options ) {
						$result = parent::run( $options );

						// Reset the strings in case we changed one during automatic activation.
						if ( $this->tgmpa->is_automatic ) {
							if ( 'update' === $this->skin->options['install_type'] ) {
								$this->upgrade_strings();
							} else {
								$this->install_strings();
							}
						}

						return $result;
					}

					/**
					 * Processes the bulk installation of plugins.
					 *
					 * @since 2.2.0
					 *
					 * {@internal This is basically a near identical copy of the WP Core
					 * Plugin_Upgrader::bulk_upgrade() method, with minor adjustments to deal with
					 * new installs instead of upgrades.
					 * For ease of future synchronizations, the adjustments are clearly commented, but no other
					 * comments are added. Code style has been made to comply.}}
					 *
					 * @see Plugin_Upgrader::bulk_upgrade()
					 * @see https://core.trac.wordpress.org/browser/tags/4.2.1/src/wp-admin/includes/class-wp-upgrader.php#L838
					 * (@internal Last synced: Dec 31st 2015 against https://core.trac.wordpress.org/browser/trunk?rev=36134}}
					 *
					 * @param array $plugins The plugin sources needed for installation.
					 * @param array $args    Arbitrary passed extra arguments.
					 * @return array|false   Install confirmation messages on success, false on failure.
					 */
					public function bulk_install( $plugins, $args = array() ) {
						// [TGMPA + ] Hook auto-activation in.
						add_filter( 'upgrader_post_install', array( $this, 'auto_activate' ), 10 );

						$defaults    = array(
							'clear_update_cache' => true,
						);
						$parsed_args = wp_parse_args( $args, $defaults );

						$this->init();
						$this->bulk = true;

						$this->install_strings(); // [TGMPA + ] adjusted.

						/* [TGMPA - ] $current = get_site_transient( 'update_plugins' ); */

						/* [TGMPA - ] add_filter('upgrader_clear_destination', array($this, 'delete_old_plugin'), 10, 4); */

						$this->skin->header();

						// Connect to the Filesystem first.
						$res = $this->fs_connect( array( WP_CONTENT_DIR, WP_PLUGIN_DIR ) );
						if ( ! $res ) {
							$this->skin->footer();
							return false;
						}

						$this->skin->bulk_header();

						/*
						 * Only start maintenance mode if:
						 * - running Multisite and there are one or more plugins specified, OR
						 * - a plugin with an update available is currently active.
						 * @TODO: For multisite, maintenance mode should only kick in for individual sites if at all possible.
						 */
						$maintenance = ( is_multisite() && ! empty( $plugins ) );

						/*
						[TGMPA - ]
						foreach ( $plugins as $plugin )
							$maintenance = $maintenance || ( is_plugin_active( $plugin ) && isset( $current->response[ $plugin] ) );
						*/
						if ( $maintenance ) {
							$this->maintenance_mode( true );
						}

						$results = array();

						$this->update_count   = count( $plugins );
						$this->update_current = 0;
						foreach ( $plugins as $plugin ) {
							$this->update_current++;

							/*
							[TGMPA - ]
							$this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true);

							if ( !isset( $current->response[ $plugin ] ) ) {
								$this->skin->set_result('up_to_date');
								$this->skin->before();
								$this->skin->feedback('up_to_date');
								$this->skin->after();
								$results[$plugin] = true;
								continue;
							}

							// Get the URL to the zip file.
							$r = $current->response[ $plugin ];

							$this->skin->plugin_active = is_plugin_active($plugin);
							*/

							$result = $this->run(
								array(
									'package'           => $plugin, // [TGMPA + ] adjusted.
									'destination'       => WP_PLUGIN_DIR,
									'clear_destination' => false, // [TGMPA + ] adjusted.
									'clear_working'     => true,
									'is_multi'          => true,
									'hook_extra'        => array(
										'plugin' => $plugin,
									),
								)
							);

							$results[ $plugin ] = $this->result;

							// Prevent credentials auth screen from displaying multiple times.
							if ( false === $result ) {
								break;
							}
						} //end foreach $plugins

						$this->maintenance_mode( false );

						/**
						 * Fires when the bulk upgrader process is complete.
						 *
						 * @since WP 3.6.0 / TGMPA 2.5.0
						 *
						 * @param Plugin_Upgrader $this Plugin_Upgrader instance. In other contexts, $this, might
						 *                              be a Theme_Upgrader or Core_Upgrade instance.
						 * @param array           $data {
						 *     Array of bulk item update data.
						 *
						 *     @type string $action   Type of action. Default 'update'.
						 *     @type string $type     Type of update process. Accepts 'plugin', 'theme', or 'core'.
						 *     @type bool   $bulk     Whether the update process is a bulk update. Default true.
						 *     @type array  $packages Array of plugin, theme, or core packages to update.
						 * }
						 */
						do_action( 'upgrader_process_complete', $this, array(
							'action'  => 'install', // [TGMPA + ] adjusted.
							'type'    => 'plugin',
							'bulk'    => true,
							'plugins' => $plugins,
						) );

						$this->skin->bulk_footer();

						$this->skin->footer();

						// Cleanup our hooks, in case something else does a upgrade on this connection.
						/* [TGMPA - ] remove_filter('upgrader_clear_destination', array($this, 'delete_old_plugin')); */

						// [TGMPA + ] Remove our auto-activation hook.
						remove_filter( 'upgrader_post_install', array( $this, 'auto_activate' ), 10 );

						// Force refresh of plugin update information.
						wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );

						return $results;
					}

					/**
					 * Handle a bulk upgrade request.
					 *
					 * @since 2.5.0
					 *
					 * @see Plugin_Upgrader::bulk_upgrade()
					 *
					 * @param array $plugins The local WP file_path's of the plugins which should be upgraded.
					 * @param array $args    Arbitrary passed extra arguments.
					 * @return string|bool Install confirmation messages on success, false on failure.
					 */
					public function bulk_upgrade( $plugins, $args = array() ) {

						add_filter( 'upgrader_post_install', array( $this, 'auto_activate' ), 10 );

						$result = parent::bulk_upgrade( $plugins, $args );

						remove_filter( 'upgrader_post_install', array( $this, 'auto_activate' ), 10 );

						return $result;
					}

					/**
					 * Abuse a filter to auto-activate plugins after installation.
					 *
					 * Hooked into the 'upgrader_post_install' filter hook.
					 *
					 * @since 2.5.0
					 *
					 * @param bool $bool The value we need to give back (true).
					 * @return bool
					 */
					public function auto_activate( $bool ) {
						// Only process the activation of installed plugins if the automatic flag is set to true.
						if ( $this->tgmpa->is_automatic ) {
							// Flush plugins cache so the headers of the newly installed plugins will be read correctly.
							wp_clean_plugins_cache();

							// Get the installed plugin file.
							$plugin_info = $this->plugin_info();

							// Don't try to activate on upgrade of active plugin as WP will do this already.
							if ( ! is_plugin_active( $plugin_info ) ) {
								$activate = activate_plugin( $plugin_info );

								// Adjust the success string based on the activation result.
								$this->strings['process_success'] = $this->strings['process_success'] . "<br />\n";

								if ( is_wp_error( $activate ) ) {
									$this->skin->error( $activate );
									$this->strings['process_success'] .= $this->strings['activation_failed'];
								} else {
									$this->strings['process_success'] .= $this->strings['activation_success'];
								}
							}
						}

						return $bool;
					}
				}
			}

			if ( ! class_exists( 'TGMPA_Bulk_Installer_Skin' ) ) {

				/**
				 * Installer skin to set strings for the bulk plugin installations..
				 *
				 * Extends Bulk_Upgrader_Skin and customizes to suit the installation of multiple
				 * plugins.
				 *
				 * @since 2.2.0
				 *
				 * {@internal Since 2.5.2 the class has been renamed from TGM_Bulk_Installer_Skin to
				 *            TGMPA_Bulk_Installer_Skin.
				 *            This was done to prevent backward compatibility issues with v2.3.6.}}
				 *
				 * @see https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
				 *
				 * @package TGM-Plugin-Activation
				 * @author  Thomas Griffin
				 * @author  Gary Jones
				 */
				class TGMPA_Bulk_Installer_Skin extends Bulk_Upgrader_Skin {
					/**
					 * Holds plugin info for each individual plugin installation.
					 *
					 * @since 2.2.0
					 *
					 * @var array
					 */
					public $plugin_info = array();

					/**
					 * Holds names of plugins that are undergoing bulk installations.
					 *
					 * @since 2.2.0
					 *
					 * @var array
					 */
					public $plugin_names = array();

					/**
					 * Integer to use for iteration through each plugin installation.
					 *
					 * @since 2.2.0
					 *
					 * @var integer
					 */
					public $i = 0;

					/**
					 * TGMPA instance
					 *
					 * @since 2.5.0
					 *
					 * @var object
					 */
					protected $tgmpa;

					/**
					 * Constructor. Parses default args with new ones and extracts them for use.
					 *
					 * @since 2.2.0
					 *
					 * @param array $args Arguments to pass for use within the class.
					 */
					public function __construct( $args = array() ) {
						// Get TGMPA class instance.
						$this->tgmpa = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );

						// Parse default and new args.
						$defaults = array(
							'url'          => '',
							'nonce'        => '',
							'names'        => array(),
							'install_type' => 'install',
						);
						$args     = wp_parse_args( $args, $defaults );

						// Set plugin names to $this->plugin_names property.
						$this->plugin_names = $args['names'];

						// Extract the new args.
						parent::__construct( $args );
					}

					/**
					 * Sets install skin strings for each individual plugin.
					 *
					 * Checks to see if the automatic activation flag is set and uses the
					 * the proper strings accordingly.
					 *
					 * @since 2.2.0
					 */
					public function add_strings() {
						if ( 'update' === $this->options['install_type'] ) {
							parent::add_strings();
							/* translators: 1: plugin name, 2: action number 3: total number of actions. */
							$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'lawyer-hub' );
						} else {
							/* translators: 1: plugin name, 2: error message. */
							$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'lawyer-hub' );
							/* translators: 1: plugin name. */
							$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'lawyer-hub' );

							if ( $this->tgmpa->is_automatic ) {
								// Automatic activation strings.
								$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'lawyer-hub' );
								/* translators: 1: plugin name. */
								$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'lawyer-hub' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'lawyer-hub' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'lawyer-hub' ) . '</span>.</a>';
								$this->upgrader->strings['skin_upgrade_end']       = __( 'All installations and activations have been completed.', 'lawyer-hub' );
								/* translators: 1: plugin name, 2: action number 3: total number of actions. */
								$this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'lawyer-hub' );
							} else {
								// Default installation strings.
								$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'lawyer-hub' );
								/* translators: 1: plugin name. */
								$this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'lawyer-hub' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'lawyer-hub' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'lawyer-hub' ) . '</span>.</a>';
								$this->upgrader->strings['skin_upgrade_end']       = __( 'All installations have been completed.', 'lawyer-hub' );
								/* translators: 1: plugin name, 2: action number 3: total number of actions. */
								$this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'lawyer-hub' );
							}
						}
					}

					/**
					 * Outputs the header strings and necessary JS before each plugin installation.
					 *
					 * @since 2.2.0
					 *
					 * @param string $title Unused in this implementation.
					 */
					public function before( $title = '' ) {
						if ( empty( $title ) ) {
							$title = esc_html( $this->plugin_names[ $this->i ] );
						}
						parent::before( $title );
					}

					/**
					 * Outputs the footer strings and necessary JS after each plugin installation.
					 *
					 * Checks for any errors and outputs them if they exist, else output
					 * success strings.
					 *
					 * @since 2.2.0
					 *
					 * @param string $title Unused in this implementation.
					 */
					public function after( $title = '' ) {
						if ( empty( $title ) ) {
							$title = esc_html( $this->plugin_names[ $this->i ] );
						}
						parent::after( $title );

						$this->i++;
					}

					/**
					 * Outputs links after bulk plugin installation is complete.
					 *
					 * @since 2.2.0
					 */
					public function bulk_footer() {
						// Serve up the string to say installations (and possibly activations) are complete.
						parent::bulk_footer();

						// Flush plugins cache so we can make sure that the installed plugins list is always up to date.
						wp_clean_plugins_cache();

						$this->tgmpa->show_tgmpa_version();

						// Display message based on if all plugins are now active or not.
						$update_actions = array();

						if ( $this->tgmpa->is_tgmpa_complete() ) {
							// All plugins are active, so we display the complete string and hide the menu to protect users.
							echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
							$update_actions['dashboard'] = sprintf(
								esc_html( $this->tgmpa->strings['complete'] ),
								'<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'lawyer-hub' ) . '</a>'
							);
						} else {
							$update_actions['tgmpa_page'] = '<a href="' . esc_url( $this->tgmpa->get_tgmpa_url() ) . '" target="_parent">' . esc_html( $this->tgmpa->strings['return'] ) . '</a>';
						}

						/**
						 * Filter the list of action links available following bulk plugin installs/updates.
						 *
						 * @since 2.5.0
						 *
						 * @param array $update_actions Array of plugin action links.
						 * @param array $plugin_info    Array of information for the last-handled plugin.
						 */
						$update_actions = apply_filters( 'tgmpa_update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info );

						if ( ! empty( $update_actions ) ) {
							$this->feedback( implode( ' | ', (array) $update_actions ) );
						}
					}

					/* *********** DEPRECATED METHODS *********** */

					/**
					 * Flush header output buffer.
					 *
					 * @since      2.2.0
					 * @deprecated 2.5.0 use {@see Bulk_Upgrader_Skin::flush_output()} instead
					 * @see        Bulk_Upgrader_Skin::flush_output()
					 */
					public function before_flush_output() {
						_deprecated_function( __FUNCTION__, 'TGMPA 2.5.0', 'Bulk_Upgrader_Skin::flush_output()' );
						$this->flush_output();
					}

					/**
					 * Flush footer output buffer and iterate $this->i to make sure the
					 * installation strings reference the correct plugin.
					 *
					 * @since      2.2.0
					 * @deprecated 2.5.0 use {@see Bulk_Upgrader_Skin::flush_output()} instead
					 * @see        Bulk_Upgrader_Skin::flush_output()
					 */
					public function after_flush_output() {
						_deprecated_function( __FUNCTION__, 'TGMPA 2.5.0', 'Bulk_Upgrader_Skin::flush_output()' );
						$this->flush_output();
						$this->i++;
					}
				}
			}
		}
	}
}

if ( ! class_exists( 'TGMPA_Utils' ) ) {

	/**
	 * Generic utilities for TGMPA.
	 *
	 * All methods are static, poor-dev name-spacing class wrapper.
	 *
	 * Class was called TGM_Utils in 2.5.0 but renamed TGMPA_Utils in 2.5.1 as this was conflicting with Soliloquy.
	 *
	 * @since 2.5.0
	 *
	 * @package TGM-Plugin-Activation
	 * @author  Juliette Reinders Folmer
	 */
	class TGMPA_Utils {
		/**
		 * Whether the PHP filter extension is enabled.
		 *
		 * @see http://php.net/book.filter
		 *
		 * @since 2.5.0
		 *
		 * @static
		 *
		 * @var bool $has_filters True is the extension is enabled.
		 */
		public static $has_filters;

		/**
		 * Wrap an arbitrary string in <em> tags. Meant to be used in combination with array_map().
		 *
		 * @since 2.5.0
		 *
		 * @static
		 *
		 * @param string $string Text to be wrapped.
		 * @return string
		 */
		public static function wrap_in_em( $string ) {
			return '<em>' . wp_kses_post( $string ) . '</em>';
		}

		/**
		 * Wrap an arbitrary string in <strong> tags. Meant to be used in combination with array_map().
		 *
		 * @since 2.5.0
		 *
		 * @static
		 *
		 * @param string $string Text to be wrapped.
		 * @return string
		 */
		public static function wrap_in_strong( $string ) {
			return '<strong>' . wp_kses_post( $string ) . '</strong>';
		}

		/**
		 * Helper function: Validate a value as boolean
		 *
		 * @since 2.5.0
		 *
		 * @static
		 *
		 * @param mixed $value Arbitrary value.
		 * @return bool
		 */
		public static function validate_bool( $value ) {
			if ( ! isset( self::$has_filters ) ) {
				self::$has_filters = extension_loaded( 'filter' );
			}

			if ( self::$has_filters ) {
				return filter_var( $value, FILTER_VALIDATE_BOOLEAN );
			} else {
				return self::emulate_filter_bool( $value );
			}
		}

		/**
		 * Helper function: Cast a value to bool
		 *
		 * @since 2.5.0
		 *
		 * @static
		 *
		 * @param mixed $value Value to cast.
		 * @return bool
		 */
		protected static function emulate_filter_bool( $value ) {
			// @codingStandardsIgnoreStart
			static $true  = array(
				'1',
				'true', 'True', 'TRUE',
				'y', 'Y',
				'yes', 'Yes', 'YES',
				'on', 'On', 'ON',
			);
			static $false = array(
				'0',
				'false', 'False', 'FALSE',
				'n', 'N',
				'no', 'No', 'NO',
				'off', 'Off', 'OFF',
			);
			// @codingStandardsIgnoreEnd

			if ( is_bool( $value ) ) {
				return $value;
			} elseif ( is_int( $value ) && ( 0 === $value || 1 === $value ) ) {
				return (bool) $value;
			} elseif ( ( is_float( $value ) && ! is_nan( $value ) ) && ( (float) 0 === $value || (float) 1 === $value ) ) {
				return (bool) $value;
			} elseif ( is_string( $value ) ) {
				$value = trim( $value );
				if ( in_array( $value, $true, true ) ) {
					return true;
				} elseif ( in_array( $value, $false, true ) ) {
					return false;
				} else {
					return false;
				}
			}

			return false;
		}
	} // End of class TGMPA_Utils
} // End of class_exists wrapper
PK���\읁!UUTGM/tgm.phpnu�[���<?php

require get_template_directory() . '/inc/TGM/class-tgm-plugin-activation.php';
/**
 * Recommended plugins.
 */
function lawyer_hub_register_recommended_plugins() {
	$plugins = array(
		array(
            'name'             => __( 'Advanced Appointment Booking & Scheduling', 'lawyer-hub' ),
            'slug'             => 'advanced-appointment-booking-scheduling',
            'required'         => false,
            'force_activation' => false,
        ),
	);
	$config = array();
	tgmpa( $plugins, $config );
}
add_action( 'tgmpa_register', 'lawyer_hub_register_recommended_plugins' );PK���\K�U�uEuEwhizzie.phpnu�[���<?php 
if (isset($_GET['import-demo']) && $_GET['import-demo'] == true) {

    
    function lawyer_hub_import_demo_content() {
        
        // Display the preloader only for plugin installation
        echo '<div id="plugin-loader" style="display: flex; align-items: center; justify-content: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); z-index: 9999;">
                <img src="' . esc_url(get_template_directory_uri()) . '/assets/images/loader.png" alt="Loading..." width="60" height="60" />
              </div>';

        // Define the plugins you want to install and activate
        $plugins = array(
            array(
                'slug' => 'advanced-appointment-booking-scheduling',
                'file' => 'advanced-appointment-booking-scheduling/advanced-appointment-booking.php',
                'url'  => 'https://downloads.wordpress.org/plugin/advanced-appointment-booking-scheduling.zip'
            ),
        );

        // Include required files for plugin installation
        include_once(ABSPATH . 'wp-admin/includes/plugin-install.php');
        include_once(ABSPATH . 'wp-admin/includes/file.php');
        include_once(ABSPATH . 'wp-admin/includes/misc.php');
        include_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php');

        // Loop through each plugin
        foreach ($plugins as $plugin) {
            $plugin_file = WP_PLUGIN_DIR . '/' . $plugin['file'];

            // Check if the plugin is installed
            if (!file_exists($plugin_file)) {
                // If the plugin is not installed, download and install it
                $upgrader = new Plugin_Upgrader();
                $result = $upgrader->install($plugin['url']);

                // Check for installation errors
                if (is_wp_error($result)) {
                    error_log('Plugin installation failed: ' . $plugin['slug'] . ' - ' . $result->get_error_message());
                    echo 'Error installing plugin: ' . esc_html($plugin['slug']) . ' - ' . esc_html($result->get_error_message());
                    continue;
                }
            }

            // If the plugin exists but is not active, activate it
            if (file_exists($plugin_file) && !is_plugin_active($plugin['file'])) {
                $result = activate_plugin($plugin['file']);

                // Check for activation errors
                if (is_wp_error($result)) {
                    error_log('Plugin activation failed: ' . $plugin['slug'] . ' - ' . $result->get_error_message());
                    echo 'Error activating plugin: ' . esc_html($plugin['slug']) . ' - ' . esc_html($result->get_error_message());
                }
            }
        }

        // Hide the preloader after the process is complete
        echo '<script type="text/javascript">
                document.getElementById("plugin-loader").style.display = "none";
              </script>';

        // Add filter to skip WooCommerce setup wizard after activation
        add_filter('woocommerce_prevent_automatic_wizard_redirect', '__return_true');
    }

    // Call the import function
    lawyer_hub_import_demo_content();

    // ------- Create Nav Menu --------
$lawyer_hub_menuname = 'Main Menus';
$lawyer_hub_bpmenulocation = 'primary-menu';
$lawyer_hub_menu_exists = wp_get_nav_menu_object($lawyer_hub_menuname);

if (!$lawyer_hub_menu_exists) {
    $lawyer_hub_menu_id = wp_create_nav_menu($lawyer_hub_menuname);

    // Create Home Page
    $lawyer_hub_home_title = 'Home';
    $lawyer_hub_home = array(
        'post_type' => 'page',
        'post_title' => $lawyer_hub_home_title,
        'post_content' => '',
        'post_status' => 'publish',
        'post_author' => 1,
        'post_slug' => 'home'
    );
    $lawyer_hub_home_id = wp_insert_post($lawyer_hub_home);

    // Assign Home Page Template
    add_post_meta($lawyer_hub_home_id, '_wp_page_template', 'page-template/front-page.php');

    // Update options to set Home Page as the front page
    update_option('page_on_front', $lawyer_hub_home_id);
    update_option('show_on_front', 'page');

    // Add Home Page to Menu
    wp_update_nav_menu_item($lawyer_hub_menu_id, 0, array(
        'menu-item-title' => __('Home', 'lawyer-hub'),
        'menu-item-classes' => 'home',
        'menu-item-url' => home_url('/'),
        'menu-item-status' => 'publish',
        'menu-item-object-id' => $lawyer_hub_home_id,
        'menu-item-object' => 'page',
        'menu-item-type' => 'post_type'
    ));

    // Create About Us Page with Dummy Content
    $lawyer_hub_about_title = 'About Us';
    $lawyer_hub_about_content = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...<br>

             Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960 with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br> 

                There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which dont look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isnt anything embarrassing hidden in the middle of text.<br> 

                All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.';
    $lawyer_hub_about = array(
        'post_type' => 'page',
        'post_title' => $lawyer_hub_about_title,
        'post_content' => $lawyer_hub_about_content,
        'post_status' => 'publish',
        'post_author' => 1,
        'post_slug' => 'about-us'
    );
    $lawyer_hub_about_id = wp_insert_post($lawyer_hub_about);

    // Add About Us Page to Menu
    wp_update_nav_menu_item($lawyer_hub_menu_id, 0, array(
        'menu-item-title' => __('About Us', 'lawyer-hub'),
        'menu-item-classes' => 'about-us',
        'menu-item-url' => home_url('/about-us/'),
        'menu-item-status' => 'publish',
        'menu-item-object-id' => $lawyer_hub_about_id,
        'menu-item-object' => 'page',
        'menu-item-type' => 'post_type'
    ));

    // Create Services Page with Dummy Content
    $lawyer_hub_services_title = 'Services';
    $lawyer_hub_services_content = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...<br>

             Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960 with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br> 

                There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which dont look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isnt anything embarrassing hidden in the middle of text.<br> 

                All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.';
    $lawyer_hub_services = array(
        'post_type' => 'page',
        'post_title' => $lawyer_hub_services_title,
        'post_content' => $lawyer_hub_services_content,
        'post_status' => 'publish',
        'post_author' => 1,
        'post_slug' => 'services'
    );
    $lawyer_hub_services_id = wp_insert_post($lawyer_hub_services);

    // Add Services Page to Menu
    wp_update_nav_menu_item($lawyer_hub_menu_id, 0, array(
        'menu-item-title' => __('Services', 'lawyer-hub'),
        'menu-item-classes' => 'services',
        'menu-item-url' => home_url('/services/'),
        'menu-item-status' => 'publish',
        'menu-item-object-id' => $lawyer_hub_services_id,
        'menu-item-object' => 'page',
        'menu-item-type' => 'post_type'
    ));

    // Create Pages Page with Dummy Content
    $lawyer_hub_pages_title = 'Pages';
    $lawyer_hub_pages_content = '<h2>Our Pages</h2>
    <p>Explore all the pages we have on our website. Find information about our services, company, and more.</p>';
    $lawyer_hub_pages = array(
        'post_type' => 'page',
        'post_title' => $lawyer_hub_pages_title,
        'post_content' => $lawyer_hub_pages_content,
        'post_status' => 'publish',
        'post_author' => 1,
        'post_slug' => 'pages'
    );
    $lawyer_hub_pages_id = wp_insert_post($lawyer_hub_pages);

    // Add Pages Page to Menu
    wp_update_nav_menu_item($lawyer_hub_menu_id, 0, array(
        'menu-item-title' => __('Pages', 'lawyer-hub'),
        'menu-item-classes' => 'pages',
        'menu-item-url' => home_url('/pages/'),
        'menu-item-status' => 'publish',
        'menu-item-object-id' => $lawyer_hub_pages_id,
        'menu-item-object' => 'page',
        'menu-item-type' => 'post_type'
    ));

    // Create Contact Page with Dummy Content
    $lawyer_hub_contact_title = 'Contact';
    $lawyer_hub_contact_content = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...<br>

             Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960 with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br> 

                There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which dont look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isnt anything embarrassing hidden in the middle of text.<br> 

                All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.';
    $lawyer_hub_contact = array(
        'post_type' => 'page',
        'post_title' => $lawyer_hub_contact_title,
        'post_content' => $lawyer_hub_contact_content,
        'post_status' => 'publish',
        'post_author' => 1,
        'post_slug' => 'contact'
    );
    $lawyer_hub_contact_id = wp_insert_post($lawyer_hub_contact);

    // Add Contact Page to Menu
    wp_update_nav_menu_item($lawyer_hub_menu_id, 0, array(
        'menu-item-title' => __('Contact', 'lawyer-hub'),
        'menu-item-classes' => 'contact',
        'menu-item-url' => home_url('/contact/'),
        'menu-item-status' => 'publish',
        'menu-item-object-id' => $lawyer_hub_contact_id,
        'menu-item-object' => 'page',
        'menu-item-type' => 'post_type'
    ));

    // Set the menu location if it's not already set
    if (!has_nav_menu($lawyer_hub_bpmenulocation)) {
        $locations = get_theme_mod('nav_menu_locations'); // Use 'nav_menu_locations' to get locations array
        if (empty($locations)) {
            $locations = array();
        }
        $locations[$lawyer_hub_bpmenulocation] = $lawyer_hub_menu_id;
        set_theme_mod('nav_menu_locations', $locations);
    }
}

        //---Header--//
        set_theme_mod('lawyer_hub_search_icon', 'true');
        set_theme_mod('lawyer_hub_location_text', '121 King Street, Melbourne , Australia');

        set_theme_mod('lawyer_hub_phone_number_text', '800.567.1234');
        set_theme_mod('lawyer_hub_email_text', 'Email');
        set_theme_mod('lawyer_hub_email_address', 'lawyeranency@gmail.com');
        set_theme_mod('lawyer_hub_button_text', 'REQUEST A FREE QUOTE');
        set_theme_mod('lawyer_hub_button_link', '#');

        set_theme_mod('lawyer_hub_header_fb_new_tab', true);
        set_theme_mod('lawyer_hub_facebook_url', '#');
        set_theme_mod('lawyer_hub_facebook_icon', 'fab fa-facebook-f');

        set_theme_mod('lawyer_hub_header_twt_new_tab', true);
        set_theme_mod('lawyer_hub_twitter_url', '#');
        set_theme_mod('lawyer_hub_twitter_icon', 'fab fa-twitter');

        set_theme_mod('lawyer_hub_header_ins_new_tab', true);
        set_theme_mod('lawyer_hub_instagram_url', '#');
        set_theme_mod('lawyer_hub_instagram_icon', 'fab fa-instagram');

        set_theme_mod('lawyer_hub_header_ut_new_tab', true);
        set_theme_mod('lawyer_hub_youtube_url', '#');
        set_theme_mod('lawyer_hub_youtube_icon', 'fab fa-youtube');

        set_theme_mod('lawyer_hub_header_pint_new_tab', true);
        set_theme_mod('lawyer_hub_pint_url', '#');
        set_theme_mod('lawyer_hub_pint_icon', 'fab fa-pinterest');

        // Slider Section
        set_theme_mod('lawyer_hub_slider_arrows', true);

        for ($i = 1; $i <= 4; $i++) {
            $lawyer_hub_title = 'WE ARE HERE TO PROTECT ANY KIND OF VIOLENCE';
            $lawyer_hub_content = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry';

            // Create post object
            $my_post = array(
                'post_title'    => wp_strip_all_tags($lawyer_hub_title),
                'post_content'  => $lawyer_hub_content,
                'post_status'   => 'publish',
                'post_type'     => 'page',
            );

            // Insert the post into the database
            $post_id = wp_insert_post($my_post);

            if ($post_id) {
                // Set the theme mod for the slider page
                set_theme_mod('lawyer_hub_slider_page' . $i, $post_id);

                $image_url = get_template_directory_uri() . '/assets/images/slider-img.png';
                $image_id = media_sideload_image($image_url, $post_id, null, 'id');

                if (!is_wp_error($image_id)) {
                    // Set the downloaded image as the post's featured image
                    set_post_thumbnail($post_id, $image_id);
                }
            }
        }

        // About Section
        set_theme_mod('lawyer_hub_about_section_show_hide', true);
        set_theme_mod('lawyer_hub_about_title', 'ABOUT US');

        // Create About page and set the featured image
        $lawyer_hub_abt_title = 'Lorem Ipsum is simply dummy text of the printing and typesetting';
        $lawyer_hub_abt_content = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.';

        $my_post = array(
            'post_title'    => wp_strip_all_tags($lawyer_hub_abt_title),
            'post_content'  => $lawyer_hub_abt_content,
            'post_status'   => 'publish',
            'post_type'     => 'page',
        );

        // Insert the post into the database
        $post_id = wp_insert_post($my_post);

        if ($post_id) {
            // Set the theme mod for the About page
            set_theme_mod('lawyer_hub_about_page', $post_id);

            // Sideload image and set as the featured image
            $image_url = get_template_directory_uri() . '/assets/images/about-img.png';
            $image_id = media_sideload_image($image_url, $post_id, null, 'id');

            if (!is_wp_error($image_id)) {
                set_post_thumbnail($post_id, $image_id);
            }
        }

    }

?>PK���\��>template-functions.phpnu�[���<?php
/**
 * Additional features to allow styling of the templates
 *
 * @package Lawyer Hub
 * @subpackage lawyer_hub
 */

/**
 * Adds custom classes to the array of body classes.
 *
 * @param array $classes Classes for the body element.
 * @return array
 */
function lawyer_hub_body_classes( $classes ) {
	// Add class of group-blog to blogs with more than 1 published author.
	if ( is_multi_author() ) {
		$classes[] = 'group-blog';
	}

	// Add class of hfeed to non-singular pages.
	if ( ! is_singular() ) {
		$classes[] = 'hfeed';
	}

	// Add class if we're viewing the Customizer for easier styling of theme options.
	if ( is_customize_preview() ) {
		$classes[] = 'lawyer-hub-customizer';
	}

	// Add a class if there is a custom header.
	if ( has_header_image() ) {
		$classes[] = 'has-header-image';
	}

	// Add class if sidebar is used.
	if ( is_active_sidebar( 'sidebar-1' ) && ! is_page() ) {
		$classes[] = 'has-sidebar';
	}

	return $classes;
}
add_filter( 'body_class', 'lawyer_hub_body_classes' );PK���\p �KKcontrols/sortable-control.phpnu�[���<?php
/**
 * Lawyer Hub Customizer Sortable Control.
 * 
 * @package Lawyer Hub
 */
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Exit if WP_Customize_Control does not exsist.
if ( ! class_exists( 'WP_Customize_Control' ) ) {
	return null;
}

/**
 * Sortable control (uses checkboxes).
 */
class Lawyer_Hub_Control_Sortable extends WP_Customize_Control {

	/**
	 * The control type.
	 *
	 * @access public
	 * @var string
	 */
	public $type = 'lawyer-hub-sortable';

    public function enqueue() {
    	wp_enqueue_style( 'lawyer_hub-sortable-control', get_parent_theme_file_uri( '/assets/css/controls/sortable.css' ), false, '1.0.0', 'all' );
    	wp_enqueue_script( 'lawyer_hub-sortable-control-scripts', get_parent_theme_file_uri( '/assets/js/controls/sortable.js' ), array( 'jquery' ), '1.0.0', true );
    }

	/**
	 * Refresh the parameters passed to the JavaScript via JSON.
	 *
	 * @see WP_Customize_Control::to_json()
	 */
	public function to_json() {

		parent::to_json();

		$this->json['default'] = $this->setting->default;
		if ( isset( $this->default ) ) {
			$this->json['default'] = $this->default;
		}

		$this->json['id']         = $this->id;
		$this->json['link']       = $this->get_link();
		$this->json['value']      = maybe_unserialize( $this->value() );
		$this->json['choices']    = $this->choices;
		$this->json['inputAttrs'] = '';

		foreach ( $this->input_attrs as $attr => $value ) {
			$this->json['inputAttrs'] .= $attr . '="' . esc_attr( $value ) . '" ';
		}
		$this->json['inputAttrs'] = maybe_serialize( $this->input_attrs() );

	}

	/**
	 * An Underscore (JS) template for this control's content (but not its container).
	 *
	 * Class variables for this control class are available in the `data` JS object;
	 * export custom variables by overriding {@see WP_Customize_Control::to_json()}.
	 *
	 * @see WP_Customize_Control::print_template()
	 *
	 * @access protected
	 */
	protected function content_template() {
		?>
	<label class="customize-control-lawyer-hub-sortable">
	  <span class="customize-control-title">
	    {{{ data.label }}}
	  </span>
	  <# if ( data.description ) { #>
	    <span class="customize-control-description">{{{ data.description }}}</span>
	  <# } #>

	  <ul class="sortable">
	    <# _.each( data.value, function( choiceID ) { #>
	      <li {{{ data.inputAttrs }}} class="lawyer-hub-sortable-item" data-value="{{ choiceID }}">
	        <span>{{{ data.choices[ choiceID ] }}}</span>
	        <i class="dashicons dashicons-visibility visibility"></i>
	      </li>
	    <# }); #>
	    <# _.each( data.choices, function( choiceLabel, choiceID ) { #>
	      <# if ( -1 === data.value.indexOf( choiceID ) ) { #>
	        <li {{{ data.inputAttrs }}} class="lawyer-hub-sortable-item invisible" data-value="{{ choiceID }}">
	          <span>{{{ data.choices[ choiceID ] }}}</span>
	          <i class="dashicons dashicons-visibility visibility"></i>
	        </li>
	      <# } #>
	    <# }); #>
	  </ul>
	</label>


		<?php
	}

	/**
	 * Render the control's content.
	 *
	 * @see WP_Customize_Control::render_content()
	 */
	protected function render_content() {}
}

PK���\�<��	�	!controls/range-slider-control.phpnu�[���<?php
/**
 * Range Button Customizer Control
 */

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

// Exit if WP_Customize_Control does not exsist.
if ( ! class_exists( 'WP_Customize_Control' ) ) {
    return null;
}

/**
 * This class is for the range control in the Customizer.
 *
 * @access public
 */
/** Range Control */
class Lawyer_Hub_Range_Slider extends WP_Customize_Control {
    /**
     * Enqueue scripts and styles.
     *
     * @access public
     * @since  1.0.0
     * @return void
     */
    public function enqueue() {
        wp_enqueue_style( 'lawyer-hub-range-control-styles', get_parent_theme_file_uri( '/assets/css/controls/range.css' ), false, '1.0.0', 'all' );
        wp_enqueue_script( 'lawyer-hub-range-control-scripts', get_parent_theme_file_uri( '/assets/js/controls/range.js' ), array( 'jquery' ), '1.0.0', true );
    }
    /**
     * The type of control being rendered
     */
    public $type = 'ms-range-slider';
    public $unit = '';

    public function __construct($manager, $id, $args = array()) {
        if (isset($args['unit'])) {
            $this->unit = $args['unit'];
        }
        parent::__construct($manager, $id, $args);
    }

    /**
     * Render the control in the customizer
     */
    public function render_content() {
        ?>
        <span class="customize-control-title">
            <?php echo esc_html($this->label); ?>
           
        </span>

        <div class="control-wrap"> 
            <div class="ms-range-slider" slider-min-value="<?php echo esc_attr($this->input_attrs['min']); ?>" slider-max-value="<?php echo esc_attr($this->input_attrs['max']); ?>" slider-step-value="<?php echo esc_attr($this->input_attrs['step']); ?>"></div>
            <div class="ms-range-slider-input">
                <input type="number" value="<?php echo esc_attr($this->value()); ?>" class="ms-slider-input" <?php $this->link(); ?> />
            </div>
            <div class="ms-slider-reset dashicons dashicons-image-rotate" slider-reset-value="15"></div>

            <?php if ($this->unit) { ?>
                <div class="ms-range-slider-unit">
                    <?php echo esc_html($this->unit); ?>
                </div>
            <?php } ?>
        </div>

        <?php
        if ($this->description) {
            ?>
            <span class="description customize-control-description">
                <?php echo wp_kses_post($this->description); ?>
            </span>
            <?php
        }
    }

}
PK���\��w��	�	%controls/customize-control-toggle.phpnu�[���<?php

/**
 * Toggle Customizer Control
 */

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

// Exit if WP_Customize_Control does not exsist.
if ( ! class_exists( 'WP_Customize_Control' ) ) {
	return null;
}

/**
 * This class is for the toggle control in the Customizer.
 *
 * @access public
 */
class Lawyer_Hub_Toggle_Control extends WP_Customize_Control {

	/**
	 * The type of customize control.
	 *
	 * @access public
	 * @since  1.3.4
	 * @var    string
	 */
	public $type = 'toggle';

	/**
	 * Enqueue scripts and styles.
	 *
	 * @access public
	 * @since  1.0.0
	 * @return void
	 */
	public function enqueue() {
		wp_enqueue_style( 'lawyer-hub-toggle-control-styles', get_parent_theme_file_uri( 'assets/css/controls/custom-toggle.css' ), false, '1.0.0', 'all' );
		// wp_enqueue_script( 'lawyer-hub-toggle-control-scripts', get_parent_theme_file_uri( 'assets/js/lawyer-hub-custom.js' ), array( 'jquery' ), '1.0.0', true );
	}

	/**
	 * Add custom parameters to pass to the JS via JSON.
	 *
	 * @access public
	 * @since  1.0.0
	 * @return void
	 */
	public function to_json() {
		parent::to_json();

		// The setting value.
		$this->json['id']           = $this->id;
		$this->json['value']        = $this->value();
		$this->json['link']         = $this->get_link();
		$this->json['defaultValue'] = $this->setting->default;
	}

	/**
	 * Don't render the content via PHP.  This control is handled with a JS template.
	 *
	 * @access public
	 * @since  1.0.0
	 * @return void
	 */
	public function render_content() {}

	/**
	 * An Underscore (JS) template for this control's content.
	 *
	 * Class variables for this control class are available in the `data` JS object;
	 * export custom variables by overriding {@see WP_Customize_Control::to_json()}.
	 *
	 * @see    WP_Customize_Control::print_template()
	 *
	 * @access protected
	 * @since  1.3.4
	 * @return void
	 */
	protected function content_template() {
		?>
		<label class="toggle">
			<div class="toggle--wrapper">

				<# if ( data.label ) { #>
					<span class="customize-control-title">{{ data.label }}</span>
				<# } #>

				<input id="toggle-{{ data.id }}" type="checkbox" class="toggle--input" value="{{ data.value }}" {{{ data.link }}} <# if ( data.value ) { #> checked="checked" <# } #> />
				<label for="toggle-{{ data.id }}" class="toggle--label"></label>
			</div>

			<# if ( data.description ) { #>
				<span class="description customize-control-description">{{ data.description }}</span>
			<# } #>
		</label>
		<?php
	}
}
PK���\䩛܈k�kcontrols/icon-changer.phpnu�[���<?php

class Lawyer_Hub_Icon_Changer extends WP_Customize_Control{
    public $type = 'icon';
    public function render_content(){
        ?>
        <label>
            <span class="customize-control-title">
                <?php echo esc_html( $this->label ); ?>
            </span>

            <?php if($this->description){ ?>
            <span class="description customize-control-description">
                <?php echo wp_kses_post($this->description); ?>
            </span>
            <?php } ?>
            
            <div class="selected-icon">
                <i class="<?php echo esc_attr($this->value()); ?>"></i>
                <span><i class="fa fa-angle-down"></i></span>
            </div>
            <ul class="icon-list clearfix">
                <div class="social-icon-search">
                    <input class="socialInput" type="text" placeholder="<?php echo esc_attr_x( 'Search Icon', 'placeholder','lawyer-hub' ); ?>">
                </div>
                <?php
                $Lawyer_Hub_Icon_Changer_array = Lawyer_Hub_Icon_Changer_array();
                foreach ($Lawyer_Hub_Icon_Changer_array as $Lawyer_Hub_Icon_Changer) {
                        $icon_class = $this->value() == $Lawyer_Hub_Icon_Changer ? 'icon-active' : '';
                        echo '<li class='.esc_attr($icon_class).'><i class="'.esc_attr($Lawyer_Hub_Icon_Changer).'"></i>
                        <span class="lawyer_hub-social-class">'.esc_attr($Lawyer_Hub_Icon_Changer).'</span>
                        </li>';
                    }
                ?>
            </ul>
            <input type="hidden" value="<?php $this->value(); ?>" <?php $this->link(); ?> />
        </label>
    <?php
    }
}

function lawyer_hub_icon_customize_js() {     
    wp_enqueue_style( 'font-awesome-1', esc_url(get_template_directory_uri()).'/assets/css/fontawesome-all.css');
    wp_enqueue_script( 'lawyer-hub-customize-icon', esc_url(get_template_directory_uri()).'/assets/js/controls/customize-icon.js', array("jquery"),'', true  );
}
add_action( 'customize_controls_enqueue_scripts', 'lawyer_hub_icon_customize_js' );

if(!function_exists('Lawyer_Hub_Icon_Changer_array')){
    function Lawyer_Hub_Icon_Changer_array(){
        return array("", 
        "fab fa-500px",
        "fab fa-accessible-icon",
        "fab fa-accusoft",
        "fas fa-address-book", 
        "far fa-address-book",
        "fas fa-address-card",
        "far fa-address-card",
        "fas fa-adjust",
        "fab fa-adn",
        "fab fa-adversal",
        "fab fa-affiliatetheme",
        "fab fa-algolia",
        "fas fa-align-center",
        "fas fa-align-justify",
        "fas fa-align-left",
        "fas fa-align-right",
        "fab fa-amazon",
        "fas fa-ambulance",
        "fas fa-american-sign-language-interpreting",
        "fab fa-amilia",
        "fas fa-anchor",
        "fab fa-android",
        "fab fa-angellist",
        "fas fa-angle-double-down",
        "fas fa-angle-double-left",
        "fas fa-angle-double-right",
        "fas fa-angle-double-up",
        "fas fa-angle-down",
        "fas fa-angle-left",
        "fas fa-angle-right",
        "fas fa-angle-up",
        "fab fa-angrycreative",
        "fab fa-angular",
        "fab fa-app-store",
        "fab fa-app-store-ios",
        "fab fa-apper",
        "fab fa-apple",
        "fab fa-apple-pay",
        "fas fa-archive",
        "fas fa-arrow-alt-circle-down", 
        "far fa-arrow-alt-circle-down",
        "fas fa-arrow-alt-circle-left", 
        "far fa-arrow-alt-circle-left",
        "fas fa-arrow-alt-circle-right", 
        "far fa-arrow-alt-circle-right",
        "fas fa-arrow-alt-circle-up", 
        "far fa-arrow-alt-circle-up",
        "fas fa-arrow-circle-down",
        "fas fa-arrow-circle-left",
        "fas fa-arrow-circle-right",
        "fas fa-arrow-circle-up",
        "fas fa-arrow-down",
        "fas fa-arrow-left",
        "fas fa-arrow-right",
        "fas fa-arrow-up",
        "fas fa-arrows-alt",
        "fas fa-arrows-alt-h",
        "fas fa-arrows-alt-v",
        "fas fa-assistive-listening-systems",
        "fas fa-asterisk",
        "fab fa-asymmetrik",
        "fas fa-at",
        "fab fa-audible",
        "fas fa-audio-description",
        "fab fa-autoprefixer",
        "fab fa-avianex",
        "fab fa-aviato",
        "fab fa-aws",
        "fas fa-backward",
        "fas fa-balance-scale",
        "fas fa-ban",
        "fab fa-bandcamp",
        "fas fa-barcode",
        "fas fa-bars",
        "fas fa-bath",
        "fas fa-battery-empty",
        "fas fa-battery-full",
        "fas fa-battery-half",
        "fas fa-battery-quarter",
        "fas fa-battery-three-quarters",
        "fas fa-bed",
        "fas fa-beer",
        "fab fa-behance",
        "fab fa-behance-square",
        "fas fa-bell", "far fa-bell",
        "fas fa-bell-slash", 
        "far fa-bell-slash",
        "fas fa-bicycle",
        "fab fa-bimobject",
        "fas fa-binoculars",
        "fas fa-birthday-cake",
        "fab fa-bitbucket",
        "fab fa-bitcoin",
        "fab fa-bity",
        "fab fa-black-tie",
        "fab fa-blackberry",
        "fas fa-blind",
        "fab fa-blogger",
        "fab fa-blogger-b",
        "fab fa-bluetooth",
        "fab fa-bluetooth-b",
        "fas fa-bold",
        "fas fa-bolt",
        "fas fa-bomb",
        "fas fa-book",
        "fas fa-bookmark", 
        "far fa-bookmark",
        "fas fa-braille",
        "fas fa-briefcase",
        "fab fa-btc",
        "fas fa-bug",
        "fas fa-building", 
        "far fa-building",
        "fas fa-bullhorn",
        "fas fa-bullseye",
        "fab fa-buromobelexperte",
        "fas fa-bus",
        "fab fa-buysellads",
        "fas fa-calculator",
        "fas fa-calendar", 
        "far fa-calendar",
        "fas fa-calendar-alt", 
        "far fa-calendar-alt",
        "fas fa-calendar-check", 
        "far fa-calendar-check",
        "fas fa-calendar-minus", 
        "far fa-calendar-minus",
        "fas fa-calendar-plus", 
        "far fa-calendar-plus",
        "fas fa-calendar-times", 
        "far fa-calendar-times",
        "fas fa-camera",
        "fas fa-camera-retro",
        "fas fa-car",
        "fas fa-caret-down",
        "fas fa-caret-left",
        "fas fa-caret-right",
        "fas fa-caret-square-down", 
        "far fa-caret-square-down",
        "fas fa-caret-square-left", 
        "far fa-caret-square-left",
        "fas fa-caret-square-right", 
        "far fa-caret-square-right",
        "fas fa-caret-square-up", 
        "far fa-caret-square-up",
        "fas fa-caret-up",
        "fas fa-cart-arrow-down",
        "fas fa-cart-plus",
        "fab fa-cc-amex",
        "fab fa-cc-apple-pay",
        "fab fa-cc-diners-club",
        "fab fa-cc-discover",
        "fab fa-cc-jcb",
        "fab fa-cc-mastercard",
        "fab fa-cc-paypal",
        "fab fa-cc-stripe",
        "fab fa-cc-visa",
        "fab fa-centercode",
        "fas fa-certificate",
        "fas fa-chart-area",
        "fas fa-chart-bar", 
        "far fa-chart-bar",
        "fas fa-chart-line",
        "fas fa-chart-pie",
        "fas fa-check",
        "fas fa-check-circle", 
        "far fa-check-circle",
        "fas fa-check-square", 
        "far fa-check-square",
        "fas fa-chevron-circle-down",
        "fas fa-chevron-circle-left",
        "fas fa-chevron-circle-right",
        "fas fa-chevron-circle-up",
        "fas fa-chevron-down",
        "fas fa-chevron-left",
        "fas fa-chevron-right",
        "fas fa-chevron-up",
        "fas fa-child",
        "fab fa-chrome",
        "fas fa-circle", 
        "far fa-circle",
        "fas fa-circle-notch",
        "fas fa-clipboard", 
        "far fa-clipboard",
        "fas fa-clock", 
        "far fa-clock",
        "fas fa-clone", 
        "far fa-clone",
        "fas fa-closed-captioning", 
        "far fa-closed-captioning",
        "fas fa-cloud",
        "fas fa-cloud-download-alt",
        "fas fa-cloud-upload-alt",
        "fab fa-cloudscale",
        "fab fa-cloudsmith",
        "fab fa-cloudversify",
        "fas fa-code",
        "fas fa-code-branch",
        "fab fa-codepen",
        "fab fa-codiepie",
        "fas fa-coffee",
        "fas fa-cog",
        "fas fa-cogs",
        "fas fa-columns",
        "fas fa-comment", 
        "far fa-comment",
        "fas fa-comment-alt", 
        "far fa-comment-alt",
        "fas fa-comments", 
        "far fa-comments",
        "fas fa-compass", 
        "far fa-compass",
        "fas fa-compress",
        "fab fa-connectdevelop",
        "fab fa-contao",
        "fas fa-copy", 
        "far fa-copy",
        "fas fa-copyright", 
        "far fa-copyright",
        "fab fa-cpanel",
        "fab fa-creative-commons",
        "fas fa-credit-card", 
        "far fa-credit-card",
        "fas fa-crop",
        "fas fa-crosshairs",
        "fab fa-css3",
        "fab fa-css3-alt",
        "fas fa-cube",
        "fas fa-cubes",
        "fas fa-cut",
        "fab fa-cuttlefish",
        "fab fa-d-and-d",
        "fab fa-dashcube",
        "fas fa-database",
        "fas fa-deaf",
        "fab fa-delicious",
        "fab fa-deploydog",
        "fab fa-deskpro",
        "fas fa-desktop",
        "fab fa-deviantart",
        "fab fa-digg",
        "fab fa-digital-ocean",
        "fab fa-discord",
        "fab fa-discourse",
        "fab fa-dochub",
        "fab fa-docker",
        "fas fa-dollar-sign",
        "fas fa-dot-circle", "far fa-dot-circle",
        "fas fa-download",
        "fab fa-draft2digital",
        "fab fa-dribbble",
        "fab fa-dribbble-square",
        "fab fa-dropbox",
        "fab fa-drupal",
        "fab fa-dyalog",
        "fab fa-earlybirds",
        "fab fa-edge",
        "fas fa-edit", 
        "far fa-edit",
        "fas fa-eject",
        "fas fa-ellipsis-h",
        "fas fa-ellipsis-v",
        "fab fa-ember",
        "fab fa-empire",
        "fas fa-envelope", 
        "far fa-envelope",
        "fas fa-envelope-open", 
        "far fa-envelope-open",
        "fas fa-envelope-square",
        "fab fa-envira",
        "fas fa-eraser",
        "fab fa-erlang",
        "fab fa-etsy",
        "fas fa-euro-sign",
        "fas fa-exchange-alt",
        "fas fa-exclamation",
        "fas fa-exclamation-circle",
        "fas fa-exclamation-triangle",
        "fas fa-expand",
        "fas fa-expand-arrows-alt",
        "fab fa-expeditedssl",
        "fas fa-external-link-alt",
        "fas fa-external-link-square-alt",
        "fas fa-eye",
        "fas fa-eye-dropper",
        "fas fa-eye-slash", "far fa-eye-slash",
        "fab fa-facebook",
        "fab fa-facebook-f",
        "fab fa-facebook-messenger",
        "fab fa-facebook-square",
        "fas fa-fast-backward",
        "fas fa-fast-forward",
        "fas fa-fax",
        "fas fa-female",
        "fas fa-fighter-jet",
        "fas fa-file", "far fa-file",
        "fas fa-file-alt", "far fa-file-alt",
        "fas fa-file-archive", "far fa-file-archive",
        "fas fa-file-audio", "far fa-file-audio",
        "fas fa-file-code", "far fa-file-code",
        "fas fa-file-excel", "far fa-file-excel",
        "fas fa-file-image", "far fa-file-image",
        "fas fa-file-pdf", "far fa-file-pdf",
        "fas fa-file-powerpoint", "far fa-file-powerpoint",
        "fas fa-file-video", "far fa-file-video",
        "fas fa-file-word", "far fa-file-word",
        "fas fa-film",
        "fas fa-filter",
        "fas fa-fire",
        "fas fa-fire-extinguisher",
        "fab fa-firefox",
        "fab fa-first-order",
        "fab fa-firstdraft",
        "fas fa-flag", "far fa-flag",
        "fas fa-flag-checkered",
        "fas fa-flask",
        "fab fa-flickr",
        "fab fa-fly",
        "fas fa-folder", "far fa-folder",
        "fas fa-folder-open", "far fa-folder-open",
        "fas fa-font",
        "fab fa-font-awesome",
        "fab fa-font-awesome-alt",
        "fab fa-font-awesome-flag",
        "fab fa-fonticons",
        "fab fa-fonticons-fi",
        "fab fa-fort-awesome",
        "fab fa-fort-awesome-alt",
        "fab fa-forumbee",
        "fas fa-forward",
        "fab fa-foursquare",
        "fab fa-free-code-camp",
        "fab fa-freebsd",
        "fas fa-frown", "far fa-frown",
        "fas fa-futbol", "far fa-futbol",
        "fas fa-gamepad",
        "fas fa-gavel",
        "fas fa-gem", "far fa-gem",
        "fas fa-genderless",
        "fab fa-get-pocket",
        "fab fa-gg",
        "fab fa-gg-circle",
        "fas fa-gift",
        "fab fa-git",
        "fab fa-git-square",
        "fab fa-github",
        "fab fa-github-alt",
        "fab fa-github-square",
        "fab fa-gitkraken",
        "fab fa-gitlab",
        "fab fa-gitter",
        "fas fa-glass-martini",
        "fab fa-glide",
        "fab fa-glide-g",
        "fas fa-globe",
        "fab fa-gofore",
        "fab fa-goodreads",
        "fab fa-goodreads-g",
        "fab fa-google",
        "fab fa-google-drive",
        "fab fa-google-play",
        "fab fa-google-plus",
        "fab fa-google-plus-g",
        "fab fa-google-plus-square",
        "fab fa-google-wallet",
        "fas fa-graduation-cap",
        "fab fa-gratipay",
        "fab fa-grav",
        "fab fa-gripfire",
        "fab fa-grunt",
        "fab fa-gulp",
        "fas fa-h-square",
        "fab fa-hacker-news",
        "fab fa-hacker-news-square",
        "fas fa-hand-lizard", 
        "far fa-hand-lizard",
        "fas fa-hand-paper", 
        "far fa-hand-paper",
        "fas fa-hand-peace", 
        "far fa-hand-peace",
        "fas fa-hand-point-down", 
        "far fa-hand-point-down",
        "fas fa-hand-point-left", 
        "far fa-hand-point-left",
        "fas fa-hand-point-right", 
        "far fa-hand-point-right",
        "fas fa-hand-point-up", 
        "far fa-hand-point-up",
        "fas fa-hand-pointer", 
        "far fa-hand-pointer",
        "fas fa-hand-rock", 
        "far fa-hand-rock",
        "fas fa-hand-scissors", 
        "far fa-hand-scissors",
        "fas fa-hand-spock", 
        "far fa-hand-spock",
        "fas fa-handshake", 
        "far fa-handshake",
        "fas fa-hashtag",
        "fas fa-hdd", 
        "far fa-hdd",
        "fas fa-heading",
        "fas fa-headphones",
        "fas fa-heart", 
        "far fa-heart",
        "fas fa-heartbeat",
        "fab fa-hire-a-helper",
        "fas fa-history",
        "fas fa-home",
        "fab fa-hooli",
        "fas fa-hospital", 
        "far fa-hospital",
        "fab fa-hotjar",
        "fas fa-hourglass", 
        "far fa-hourglass",
        "fas fa-hourglass-end",
        "fas fa-hourglass-half",
        "fas fa-hourglass-start",
        "fab fa-houzz",
        "fab fa-html5",
        "fab fa-hubspot",
        "fas fa-i-cursor",
        "fas fa-id-badge", 
        "far fa-id-badge",
        "fas fa-id-card", 
        "far fa-id-card",
        "fas fa-image", 
        "far fa-image",
        "fas fa-images", 
        "far fa-images",
        "fab fa-imdb",
        "fas fa-inbox",
        "fas fa-indent",
        "fas fa-industry",
        "fas fa-info",
        "fas fa-info-circle",
        "fab fa-instagram",
        "fab fa-internet-explorer",
        "fab fa-ioxhost",
        "fas fa-italic",
        "fab fa-itunes",
        "fab fa-itunes-note",
        "fab fa-jenkins",
        "fab fa-joget",
        "fab fa-joomla",
        "fab fa-js",
        "fab fa-js-square",
        "fab fa-jsfiddle",
        "fas fa-key",
        "fas fa-keyboard", 
        "far fa-keyboard",
        "fab fa-keycdn",
        "fab fa-kickstarter",
        "fab fa-kickstarter-k",
        "fas fa-language",
        "fas fa-laptop",
        "fab fa-laravel",
        "fab fa-lastfm",
        "fab fa-lastfm-square",
        "fas fa-leaf",
        "fab fa-leanpub",
        "fas fa-lemon", 
        "far fa-lemon",
        "fab fa-less",
        "fas fa-level-down-alt",
        "fas fa-level-up-alt",
        "fas fa-life-ring", 
        "far fa-life-ring",
        "fas fa-lightbulb", 
        "far fa-lightbulb",
        "fab fa-line",
        "fas fa-link",
        "fab fa-linkedin",
        "fab fa-linkedin-in",
        "fab fa-linode",
        "fab fa-linux",
        "fas fa-lira-sign",
        "fas fa-list",
        "fas fa-list-alt", 
        "far fa-list-alt",
        "fas fa-list-ol",
        "fas fa-list-ul",
        "fas fa-location-arrow",
        "fas fa-lock",
        "fas fa-lock-open",
        "fas fa-long-arrow-alt-down",
        "fas fa-long-arrow-alt-left",
        "fas fa-long-arrow-alt-right",
        "fas fa-long-arrow-alt-up",
        "fas fa-low-vision",
        "fab fa-lyft",
        "fab fa-magento",
        "fas fa-magic",
        "fas fa-magnet",
        "fas fa-male",
        "fas fa-map", 
        "far fa-map",
        "fas fa-map-marker",
        "fas fa-map-marker-alt",
        "fas fa-map-pin",
        "fas fa-map-signs",
        "fas fa-mars",
        "fas fa-mars-double",
        "fas fa-mars-stroke",
        "fas fa-mars-stroke-h",
        "fas fa-mars-stroke-v",
        "fab fa-maxcdn",
        "fab fa-medapps",
        "fab fa-medium",
        "fab fa-medium-m",
        "fas fa-medkit",
        "fab fa-medrt",
        "fab fa-meetup",
        "fas fa-meh", 
        "far fa-meh",
        "fas fa-mercury",
        "fas fa-microchip",
        "fas fa-microphone",
        "fas fa-microphone-slash",
        "fab fa-microsoft",
        "fas fa-minus",
        "fas fa-minus-circle",
        "fas fa-minus-square", 
        "far fa-minus-square",
        "fab fa-mix",
        "fab fa-mixcloud",
        "fab fa-mizuni",
        "fas fa-mobile",
        "fas fa-mobile-alt",
        "fab fa-modx",
        "fab fa-monero",
        "fas fa-money-bill-alt", 
        "far fa-money-bill-alt",
        "fas fa-moon", 
        "far fa-moon",
        "fas fa-motorcycle",
        "fas fa-mouse-pointer",
        "fas fa-music",
        "fab fa-napster",
        "fas fa-neuter",
        "fas fa-newspaper", 
        "far fa-newspaper",
        "fab fa-nintendo-switch",
        "fab fa-node",
        "fab fa-node-js",
        "fab fa-npm",
        "fab fa-ns8",
        "fab fa-nutritionix",
        "fas fa-object-group", 
        "far fa-object-group",
        "fas fa-object-ungroup", 
        "far fa-object-ungroup",
        "fab fa-odnoklassniki",
        "fab fa-odnoklassniki-square",
        "fab fa-opencart",
        "fab fa-openid",
        "fab fa-opera",
        "fab fa-optin-monster",
        "fab fa-osi",
        "fas fa-outdent",
        "fab fa-page4",
        "fab fa-pagelines",
        "fas fa-paint-brush",
        "fab fa-palfed",
        "fas fa-paper-plane", 
        "far fa-paper-plane",
        "fas fa-paperclip",
        "fas fa-paragraph",
        "fas fa-paste",
        "fab fa-patreon",
        "fas fa-pause",
        "fas fa-pause-circle", 
        "far fa-pause-circle",
        "fas fa-paw",
        "fab fa-paypal",
        "fas fa-pen-square",
        "fas fa-pencil-alt",
        "fas fa-percent",
        "fab fa-periscope",
        "fab fa-phabricator",
        "fab fa-phoenix-framework",
        "fas fa-phone",
        "fas fa-phone-square",
        "fas fa-phone-volume",
        "fab fa-pied-piper",
        "fab fa-pied-piper-alt",
        "fab fa-pied-piper-pp",
        "fab fa-pinterest",
        "fab fa-pinterest-p",
        "fab fa-pinterest-square",
        "fas fa-plane",
        "fas fa-play",
        "fas fa-play-circle", 
        "far fa-play-circle",
        "fab fa-playstation",
        "fas fa-plug",
        "fas fa-plus",
        "fas fa-plus-circle",
        "fas fa-plus-square", 
        "far fa-plus-square",
        "fas fa-podcast",
        "fas fa-pound-sign",
        "fas fa-power-off",
        "fas fa-print",
        "fab fa-product-hunt",
        "fab fa-pushed",
        "fas fa-puzzle-piece",
        "fab fa-python",
        "fab fa-qq",
        "fas fa-qrcode",
        "fas fa-question",
        "fas fa-question-circle", 
        "far fa-question-circle",
        "fab fa-quora",
        "fas fa-quote-left",
        "fas fa-quote-right",
        "fas fa-random",
        "fab fa-ravelry",
        "fab fa-react",
        "fab fa-rebel",
        "fas fa-recycle",
        "fab fa-red-river",
        "fab fa-reddit",
        "fab fa-reddit-alien",
        "fab fa-reddit-square",
        "fas fa-redo",
        "fas fa-redo-alt",
        "fas fa-registered", 
        "far fa-registered",
        "fab fa-rendact",
        "fab fa-renren",
        "fas fa-reply",
        "fas fa-reply-all",
        "fab fa-replyd",
        "fab fa-resolving",
        "fas fa-retweet",
        "fas fa-road",
        "fas fa-rocket",
        "fab fa-rocketchat",
        "fab fa-rockrms",
        "fas fa-rss",
        "fas fa-rss-square",
        "fas fa-ruble-sign",
        "fas fa-rupee-sign",
        "fab fa-safari",
        "fab fa-sass",
        "fas fa-save", 
        "far fa-save",
        "fab fa-schlix",
        "fab fa-scribd",
        "fas fa-search",
        "fas fa-search-minus",
        "fas fa-search-plus",
        "fab fa-searchengin",
        "fab fa-sellcast",
        "fab fa-sellsy",
        "fas fa-server",
        "fab fa-servicestack",
        "fas fa-share",
        "fas fa-share-alt",
        "fas fa-share-alt-square",
        "fas fa-share-square", 
        "far fa-share-square",
        "fas fa-shekel-sign",
        "fas fa-shield-alt",
        "fas fa-ship",
        "fab fa-shirtsinbulk",
        "fas fa-shopping-bag",
        "fas fa-shopping-basket",
        "fas fa-shopping-cart",
        "fas fa-shower",
        "fas fa-sign-in-alt",
        "fas fa-sign-language",
        "fas fa-sign-out-alt",
        "fas fa-signal",
        "fab fa-simplybuilt",
        "fab fa-sistrix",
        "fas fa-sitemap",
        "fab fa-skyatlas",
        "fab fa-skype",
        "fab fa-slack",
        "fab fa-slack-hash",
        "fas fa-sliders-h",
        "fab fa-slideshare",
        "fas fa-smile", 
        "far fa-smile",
        "fab fa-snapchat",
        "fab fa-snapchat-ghost",
        "fab fa-snapchat-square",
        "fas fa-snowflake", 
        "far fa-snowflake",
        "fas fa-sort",
        "fas fa-sort-alpha-down",
        "fas fa-sort-alpha-up",
        "fas fa-sort-amount-down",
        "fas fa-sort-amount-up",
        "fas fa-sort-down",
        "fas fa-sort-numeric-down",
        "fas fa-sort-numeric-up",
        "fas fa-sort-up",
        "fab fa-soundcloud",
        "fas fa-space-shuttle",
        "fab fa-speakap",
        "fas fa-spinner",
        "fab fa-spotify",
        "fas fa-square", 
        "far fa-square",
        "fab fa-stack-exchange",
        "fab fa-stack-overflow",
        "fas fa-star", 
        "far fa-star",
        "fas fa-star-half", 
        "far fa-star-half",
        "fab fa-staylinked",
        "fab fa-steam",
        "fab fa-steam-square",
        "fab fa-steam-symbol",
        "fas fa-step-backward",
        "fas fa-step-forward",
        "fas fa-stethoscope",
        "fab fa-sticker-mule",
        "fas fa-sticky-note", 
        "far fa-sticky-note",
        "fas fa-stop",
        "fas fa-stop-circle", 
        "far fa-stop-circle",
        "fab fa-strava",
        "fas fa-street-view",
        "fas fa-strikethrough",
        "fab fa-stripe",
        "fab fa-stripe-s",
        "fab fa-studiovinari",
        "fab fa-stumbleupon",
        "fab fa-stumbleupon-circle",
        "fas fa-subscript",
        "fas fa-subway",
        "fas fa-suitcase",
        "fas fa-sun", 
        "far fa-sun",
        "fab fa-superpowers",
        "fas fa-superscript",
        "fab fa-supple",
        "fas fa-sync",
        "fas fa-sync-alt",
        "fas fa-table",
        "fas fa-tablet",
        "fas fa-tablet-alt",
        "fas fa-tachometer-alt",
        "fas fa-tag",
        "fas fa-tags",
        "fas fa-tasks",
        "fas fa-taxi",
        "fab fa-telegram",
        "fab fa-telegram-plane",
        "fab fa-tencent-weibo",
        "fas fa-terminal",
        "fas fa-text-height",
        "fas fa-text-width",
        "fas fa-th",
        "fas fa-th-large",
        "fas fa-th-list",
        "fab fa-themeisle",
        "fas fa-thermometer-empty",
        "fas fa-thermometer-full",
        "fas fa-thermometer-half",
        "fas fa-thermometer-quarter",
        "fas fa-thermometer-three-quarters",
        "fas fa-thumbs-down", 
        "far fa-thumbs-down",
        "fas fa-thumbs-up", 
        "far fa-thumbs-up",
        "fas fa-thumbtack",
        "fas fa-ticket-alt",
        "fas fa-times",
        "fas fa-times-circle", 
        "far fa-times-circle",
        "fas fa-tint",
        "fas fa-toggle-off",
        "fas fa-toggle-on",
        "fas fa-trademark",
        "fas fa-train",
        "fas fa-transgender",
        "fas fa-transgender-alt",
        "fas fa-trash",
        "fas fa-trash-alt", 
        "far fa-trash-alt",
        "fas fa-tree",
        "fab fa-trello",
        "fab fa-tripadvisor",
        "fas fa-trophy",
        "fas fa-truck",
        "fas fa-tty",
        "fab fa-tumblr",
        "fab fa-tumblr-square",
        "fas fa-tv",
        "fab fa-twitch",
        "fab fa-twitter",
        "fab fa-twitter-square",
        "fab fa-typo3",
        "fab fa-uber",
        "fab fa-uikit",
        "fas fa-umbrella",
        "fas fa-underline",
        "fas fa-undo",
        "fas fa-undo-alt",
        "fab fa-uniregistry",
        "fas fa-universal-access",
        "fas fa-university",
        "fas fa-unlink",
        "fas fa-unlock",
        "fas fa-unlock-alt",
        "fab fa-untappd",
        "fas fa-upload",
        "fab fa-usb",
        "fas fa-user", 
        "far fa-user",
        "fas fa-user-circle", 
        "far fa-user-circle",
        "fas fa-user-md",
        "fas fa-user-plus",
        "fas fa-user-secret",
        "fas fa-user-times",
        "fas fa-users",
        "fab fa-ussunnah",
        "fas fa-utensil-spoon",
        "fas fa-utensils",
        "fab fa-vaadin",
        "fas fa-venus",
        "fas fa-venus-double",
        "fas fa-venus-mars",
        "fab fa-viacoin",
        "fab fa-viadeo",
        "fab fa-viadeo-square",
        "fab fa-viber",
        "fas fa-video",
        "fab fa-vimeo",
        "fab fa-vimeo-square",
        "fab fa-vimeo-v",
        "fab fa-vine",
        "fab fa-vk",
        "fab fa-vnv",
        "fas fa-volume-down",
        "fas fa-volume-off",
        "fas fa-volume-up",
        "fab fa-vuejs",
        "fab fa-weibo",
        "fab fa-weixin",
        "fab fa-whatsapp",
        "fab fa-whatsapp-square",
        "fas fa-wheelchair",
        "fab fa-whmcs",
        "fas fa-wifi",
        "fab fa-wikipedia-w",
        "fas fa-window-close", 
        "far fa-window-close",
        "fas fa-window-maximize", 
        "far fa-window-maximize",
        "fas fa-window-minimize",
        "fas fa-window-restore", 
        "far fa-window-restore",
        "fab fa-windows",
        "fas fa-won-sign",
        "fab fa-wordpress",
        "fab fa-wordpress-simple",
        "fab fa-wpbeginner",
        "fab fa-wpexplorer",
        "fab fa-wpforms",
        "fas fa-wrench",
        "fab fa-xbox",
        "fab fa-xing",
        "fab fa-xing-square",
        "fab fa-y-combinator",
        "fab fa-yahoo",
        "fab fa-yandex",
        "fab fa-yandex-international",
        "fab fa-yelp",
        "fas fa-yen-sign",
        "fab fa-yoast",
        "fab fa-youtube");
    }
}?> PK���\�����f�fcustomizer.phpnu�[���<?php
/**
 * Lawyer Hub: Customizer
 *
 * @package Lawyer Hub
 * @subpackage lawyer_hub
 */

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function lawyer_hub_customize_register( $wp_customize ) {

	// Pro Version
    class Lawyer_Hub_Customize_Pro_Version extends WP_Customize_Control {
        public $type = 'pro_options';

        public function render_content() {
            echo '<span>Unlock Premium <strong>'. esc_html( $this->label ) .'</strong>? </span>';
            echo '<a href="'. esc_url($this->description) .'" target="_blank">';
                echo '<span class="dashicons dashicons-info"></span>';
                echo '<strong> '. esc_html( LAWYER_HUB_BUY_TEXT,'lawyer-hub' ) .'<strong></a>';
            echo '</a>';
        }
    }

    // Custom Controls
    function lawyer_hub_sanitize_custom_control( $input ) {
        return $input;
    }

    require get_parent_theme_file_path('/inc/controls/icon-changer.php');
	require get_parent_theme_file_path('/inc/controls/range-slider-control.php');

	// Register the custom control type.
    $wp_customize->register_control_type( 'Lawyer_Hub_Toggle_Control' );

    //Register the sortable control type.
	$wp_customize->register_control_type( 'Lawyer_Hub_Control_Sortable' );

	//add home page setting pannel
	$wp_customize->add_panel( 'lawyer_hub_panel_id', array(
	    'priority' => 10,
	    'capability' => 'edit_theme_options',
	    'theme_supports' => '',
	    'title' => __( 'Custom Home page', 'lawyer-hub' ),
	    'description' => __( 'Description of what this panel does.', 'lawyer-hub' ),
	) );

	//TP General Option
	$wp_customize->add_section('lawyer_hub_tp_general_settings',array(
        'title' => __('TP General Option', 'lawyer-hub'),
        'priority' => 1,
        'panel' => 'lawyer_hub_panel_id'
    ) );
 	$wp_customize->add_setting('lawyer_hub_tp_body_layout_settings',array(
		'default' => 'Full',
		'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
 	$wp_customize->add_control('lawyer_hub_tp_body_layout_settings',array(
		'type' => 'radio',
		'label'     => __('Body Layout Setting', 'lawyer-hub'),
		'description'   => __('This option work for complete body, if you want to set the complete website in container.', 'lawyer-hub'),
		'section' => 'lawyer_hub_tp_general_settings',
		'choices' => array(
		'Full' => __('Full','lawyer-hub'),
		'Container' => __('Container','lawyer-hub'),
		'Container Fluid' => __('Container Fluid','lawyer-hub')
		),
	) );

    // Add Settings and Controls for Post Layout
	$wp_customize->add_setting('lawyer_hub_sidebar_post_layout',array(
     'default' => 'right',
     'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_sidebar_post_layout',array(
     'type' => 'radio',
     'label'     => __('Post Sidebar Position', 'lawyer-hub'),
     'description'   => __('This option work for blog page, archive page and search page.', 'lawyer-hub'),
     'section' => 'lawyer_hub_tp_general_settings',
     'choices' => array(
         'full' => __('Full','lawyer-hub'),
         'left' => __('Left','lawyer-hub'),
         'right' => __('Right','lawyer-hub'),
         'three-column' => __('Three Columns','lawyer-hub'),
         'four-column' => __('Four Columns','lawyer-hub'),
         'grid' => __('Grid Layout','lawyer-hub')
     ),
	) );

	// Add Settings and Controls for Post sidebar Layout
	$wp_customize->add_setting('lawyer_hub_sidebar_single_post_layout',array(
        'default' => 'right',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_sidebar_single_post_layout',array(
        'type' => 'radio',
        'label'     => __('Single Post Sidebar Position', 'lawyer-hub'),
        'description'   => __('This option work for single blog page.', 'lawyer-hub'),
        'section' => 'lawyer_hub_tp_general_settings',
        'choices' => array(
            'full' => __('Full','lawyer-hub'),
            'left' => __('Left','lawyer-hub'),
            'right' => __('Right','lawyer-hub'),
        ),
	) );

	// Add Settings and Controls for Page Layout
	$wp_customize->add_setting('lawyer_hub_sidebar_page_layout',array(
     'default' => 'right',
     'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_sidebar_page_layout',array(
     'type' => 'radio',
     'label'     => __('Page Sidebar Position', 'lawyer-hub'),
     'description'   => __('This option work for pages.', 'lawyer-hub'),
     'section' => 'lawyer_hub_tp_general_settings',
     'choices' => array(
         'full' => __('Full','lawyer-hub'),
         'left' => __('Left','lawyer-hub'),
         'right' => __('Right','lawyer-hub')
     ),
	) );
	$wp_customize->add_setting( 'lawyer_hub_sticky', array(
		'default'           => false,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_sticky', array(
		'label'       => esc_html__( 'Show / Hide Sticky Header', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_tp_general_settings',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_sticky',
	) ) );

	//tp typography option
	$lawyer_hub_font_array = array(
		''                       => 'No Fonts',
		'Abril Fatface'          => 'Abril Fatface',
		'Acme'                   => 'Acme',
		'Anton'                  => 'Anton',
		'Architects Daughter'    => 'Architects Daughter',
		'Arimo'                  => 'Arimo',
		'Arsenal'                => 'Arsenal',
		'Arvo'                   => 'Arvo',
		'Alegreya'               => 'Alegreya',
		'Alfa Slab One'          => 'Alfa Slab One',
		'Averia Serif Libre'     => 'Averia Serif Libre',
		'Bangers'                => 'Bangers',
		'Boogaloo'               => 'Boogaloo',
		'Bad Script'             => 'Bad Script',
		'Bitter'                 => 'Bitter',
		'Bree Serif'             => 'Bree Serif',
		'BenchNine'              => 'BenchNine',
		'Cabin'                  => 'Cabin',
		'Cardo'                  => 'Cardo',
		'Courgette'              => 'Courgette',
		'Cherry Swash'           => 'Cherry Swash',
		'Cormorant Garamond'     => 'Cormorant Garamond',
		'Crimson Text'           => 'Crimson Text',
		'Cuprum'                 => 'Cuprum',
		'Cookie'                 => 'Cookie',
		'Chewy'                  => 'Chewy',
		'Days One'               => 'Days One',
		'Dosis'                  => 'Dosis',
		'Droid Sans'             => 'Droid Sans',
		'Economica'              => 'Economica',
		'Fredoka One'            => 'Fredoka One',
		'Fjalla One'             => 'Fjalla One',
		'Francois One'           => 'Francois One',
		'Frank Ruhl Libre'       => 'Frank Ruhl Libre',
		'Gloria Hallelujah'      => 'Gloria Hallelujah',
		'Great Vibes'            => 'Great Vibes',
		'Handlee'                => 'Handlee',
		'Hammersmith One'        => 'Hammersmith One',
		'Inconsolata'            => 'Inconsolata',
		'Indie Flower'           => 'Indie Flower',
		'IM Fell English SC'     => 'IM Fell English SC',
		'Julius Sans One'        => 'Julius Sans One',
		'Josefin Slab'           => 'Josefin Slab',
		'Josefin Sans'           => 'Josefin Sans',
		'Kanit'                  => 'Kanit',
		'Lobster'                => 'Lobster',
		'Lato'                   => 'Lato',
		'Lora'                   => 'Lora',
		'Libre Baskerville'      => 'Libre Baskerville',
		'Lobster Two'            => 'Lobster Two',
		'Merriweather'           => 'Merriweather',
		'Monda'                  => 'Monda',
		'Montserrat'             => 'Montserrat',
		'Muli'                   => 'Muli',
		'Marck Script'           => 'Marck Script',
		'Noto Serif'             => 'Noto Serif',
		'Open Sans'              => 'Open Sans',
		'Overpass'               => 'Overpass',
		'Overpass Mono'          => 'Overpass Mono',
		'Oxygen'                 => 'Oxygen',
		'Orbitron'               => 'Orbitron',
		'Patua One'              => 'Patua One',
		'Pacifico'               => 'Pacifico',
		'Padauk'                 => 'Padauk',
		'Playball'               => 'Playball',
		'Playfair Display'       => 'Playfair Display',
		'PT Sans'                => 'PT Sans',
		'Philosopher'            => 'Philosopher',
		'Permanent Marker'       => 'Permanent Marker',
		'Poiret One'             => 'Poiret One',
		'Quicksand'              => 'Quicksand',
		'Quattrocento Sans'      => 'Quattrocento Sans',
		'Raleway'                => 'Raleway',
		'Rubik'                  => 'Rubik',
		'Rokkitt'                => 'Rokkitt',
		'Russo One'              => 'Russo One',
		'Righteous'              => 'Righteous',
		'Slabo'                  => 'Slabo',
		'Source Sans Pro'        => 'Source Sans Pro',
		'Shadows Into Light Two' => 'Shadows Into Light Two',
		'Shadows Into Light'     => 'Shadows Into Light',
		'Sacramento'             => 'Sacramento',
		'Shrikhand'              => 'Shrikhand',
		'Tangerine'              => 'Tangerine',
		'Ubuntu'                 => 'Ubuntu',
		'VT323'                  => 'VT323',
		'Varela Round'           => 'Varela Round',
		'Vampiro One'            => 'Vampiro One',
		'Vollkorn'               => 'Vollkorn',
		'Volkhov'                => 'Volkhov',
		'Yanone Kaffeesatz'      => 'Yanone Kaffeesatz'
	);

	$wp_customize->add_section('lawyer_hub_typography_option',array(
		'title'         => __('TP Typography Option', 'lawyer-hub'),
		'priority' => 2,
		'panel' => 'lawyer_hub_panel_id'
   	));

   	$wp_customize->add_setting('lawyer_hub_heading_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'lawyer_hub_sanitize_choices',
	));
	$wp_customize->add_control(	'lawyer_hub_heading_font_family', array(
		'section' => 'lawyer_hub_typography_option',
		'label'   => __('heading Fonts', 'lawyer-hub'),
		'type'    => 'select',
		'choices' => $lawyer_hub_font_array,
	));

	$wp_customize->add_setting('lawyer_hub_body_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'lawyer_hub_sanitize_choices',
	));
	$wp_customize->add_control(	'lawyer_hub_body_font_family', array(
		'section' => 'lawyer_hub_typography_option',
		'label'   => __('Body Fonts', 'lawyer-hub'),
		'type'    => 'select',
		'choices' => $lawyer_hub_font_array,
	));

	//TP Color Option
	$wp_customize->add_section('lawyer_hub_color_option',array(
        'title' => __('TP Color Option', 'lawyer-hub'),
        'panel' => 'lawyer_hub_panel_id',
        'priority' => 2,
    ) );
	$wp_customize->add_setting( 'lawyer_hub_tp_color_option', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_tp_color_option', array(
  		'label'     => __('Theme First Color', 'lawyer-hub'),
	    'description' => __('It will change the complete theme color in one click.', 'lawyer-hub'),
	    'section' => 'lawyer_hub_color_option',
	    'settings' => 'lawyer_hub_tp_color_option',
  	)));
  	$wp_customize->add_setting( 'lawyer_hub_tp_color_option_link', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_tp_color_option_link', array(
  		'label'     => __('Theme Second Color', 'lawyer-hub'),
	    'description' => __('It will change the complete theme hover link color in one click.', 'lawyer-hub'),
	    'section' => 'lawyer_hub_color_option',
	    'settings' => 'lawyer_hub_tp_color_option_link',
  	)));

  	//TP Preloader Option
	$wp_customize->add_section('lawyer_hub_prealoader_option',array(
		'title' => __('TP Preloader Option', 'lawyer-hub'),
		'panel' => 'lawyer_hub_panel_id',
		'priority' => 2,
 	) );
	$wp_customize->add_setting( 'lawyer_hub_preloader_show_hide', array(
		'default'           => false,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_preloader_show_hide', array(
		'label'       => esc_html__( 'Show / Hide Preloader Option', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_prealoader_option',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_preloader_show_hide',
	) ) );
  	$wp_customize->add_setting( 'lawyer_hub_tp_preloader_color1_option', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_tp_preloader_color1_option', array(
	    'description' => __('It will change the complete theme preloader ring 1 color in one click.', 'lawyer-hub'),
	    'section' => 'lawyer_hub_prealoader_option',
	    'settings' => 'lawyer_hub_tp_preloader_color1_option',
  	)));
  	$wp_customize->add_setting( 'lawyer_hub_tp_preloader_color2_option', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_tp_preloader_color2_option', array(
	    'description' => __('It will change the complete theme preloader ring 2 color in one click.', 'lawyer-hub'),
	    'section' => 'lawyer_hub_prealoader_option',
	    'settings' => 'lawyer_hub_tp_preloader_color2_option',
  	)));
  	$wp_customize->add_setting( 'lawyer_hub_tp_preloader_bg_option', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_tp_preloader_bg_option', array(
	    'description' => __('It will change the complete theme preloader bg color in one click.', 'lawyer-hub'),
	    'section' => 'lawyer_hub_prealoader_option',
	    'settings' => 'lawyer_hub_tp_preloader_bg_option',
  	)));

  	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_preloader_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_preloader_pro_version_logo', array(
        'section'     => 'lawyer_hub_prealoader_option',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	//TP Blog Option
	$wp_customize->add_section('lawyer_hub_blog_option',array(
		'title' => __('TP Blog Option', 'lawyer-hub'),
		'priority' => 1,
		'panel' => 'lawyer_hub_panel_id'
	) );

	$wp_customize->add_setting('lawyer_hub_edit_blog_page_title',array(
		'default'=> __('Home','lawyer-hub'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_edit_blog_page_title',array(
		'label'	=> __('Change Blog Page Title','lawyer-hub'),
		'section'=> 'lawyer_hub_blog_option',
		'type'=> 'text'
	));

	$wp_customize->add_setting('lawyer_hub_edit_blog_page_description',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_edit_blog_page_description',array(
		'label'	=> __('Add Blog Page Description','lawyer-hub'),
		'section'=> 'lawyer_hub_blog_option',
		'type'=> 'text'
	));

	/** Meta Order */
    $wp_customize->add_setting('blog_meta_order', array(
        'default' => array('date', 'author', 'comment', 'category', 'time'),
        'sanitize_callback' => 'lawyer_hub_sanitize_sortable',
    ));
    $wp_customize->add_control(new Lawyer_Hub_Control_Sortable($wp_customize, 'blog_meta_order', array(
    	'label' => esc_html__('Meta Order', 'lawyer-hub'),
        'description' => __('Drag & Drop post items to re-arrange the order and also hide and show items as per the need by clicking on the eye icon.', 'lawyer-hub') ,
        'section' => 'lawyer_hub_blog_option',
        'choices' => array(
            'date' => __('date', 'lawyer-hub') ,
            'author' => __('author', 'lawyer-hub') ,
            'comment' => __('comment', 'lawyer-hub') ,
            'category' => __('category', 'lawyer-hub') ,
            'time' => __('time', 'lawyer-hub') ,
        ) ,
    )));
    $wp_customize->add_setting( 'lawyer_hub_excerpt_count', array(
		'default'              => 35,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'lawyer_hub_sanitize_number_range',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'lawyer_hub_excerpt_count', array(
		'label'       => esc_html__( 'Edit Excerpt Limit','lawyer-hub' ),
		'section'     => 'lawyer_hub_blog_option',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('lawyer_hub_show_first_caps',array(
        'default' => false,
        'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
    ));
	$wp_customize->add_control( 'lawyer_hub_show_first_caps',array(
		'label' => esc_html__('First Cap (First Capital Letter)', 'lawyer-hub'),
		'type' => 'checkbox',
		'section' => 'lawyer_hub_blog_option',
	));

    $wp_customize->add_setting('lawyer_hub_read_more_text',array(
		'default'=> __('Read More','lawyer-hub'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_read_more_text',array(
		'label'	=> __('Edit Button Text','lawyer-hub'),
		'section'=> 'lawyer_hub_blog_option',
		'type'=> 'text'
	));

	$wp_customize->add_setting('lawyer_hub_post_image_round', array(
	  'default' => '0',
      'sanitize_callback' => 'lawyer_hub_sanitize_number_range',
	));
	$wp_customize->add_control(new lawyer_hub_Range_Slider($wp_customize, 'lawyer_hub_post_image_round', array(
       'section' => 'lawyer_hub_blog_option',
      'label' => esc_html__('Edit Post Image Border Radius', 'lawyer-hub'),
      'input_attrs' => array(
        'min' => 0,
        'max' => 180,
        'step' => 1
    )
	)));

	$wp_customize->add_setting('lawyer_hub_post_image_width', array(
	  'default' => '',
      'sanitize_callback' => 'lawyer_hub_sanitize_number_range',
	));
	$wp_customize->add_control(new lawyer_hub_Range_Slider($wp_customize, 'lawyer_hub_post_image_width', array(
       'section' => 'lawyer_hub_blog_option',
      'label' => esc_html__('Edit Post Image Width', 'lawyer-hub'),
      'input_attrs' => array(
        'min' => 0,
        'max' => 367,
        'step' => 1
    )
	)));

	$wp_customize->add_setting('lawyer_hub_post_image_length', array(
	  'default' => '',
      'sanitize_callback' => 'lawyer_hub_sanitize_number_range',
	));
	$wp_customize->add_control(new lawyer_hub_Range_Slider($wp_customize, 'lawyer_hub_post_image_length', array(
       'section' => 'lawyer_hub_blog_option',
      'label' => esc_html__('Edit Post Image height', 'lawyer-hub'),
      'input_attrs' => array(
        'min' => 0,
        'max' => 900,
        'step' => 1
    )
	)));
	
	$wp_customize->add_setting( 'lawyer_hub_remove_read_button', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_remove_read_button', array(
		'label'       => esc_html__( 'Show / Hide Read More Button', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_blog_option',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_remove_read_button',
	) ) );
	$wp_customize->add_setting( 'lawyer_hub_remove_tags', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_remove_tags', array(
		'label'       => esc_html__( 'Show / Hide Tags Option', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_blog_option',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_remove_tags',
	) ) );
	$wp_customize->add_setting( 'lawyer_hub_remove_category', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_remove_category', array(
		'label'       => esc_html__( 'Show / Hide Category Option', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_blog_option',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_remove_category',
	) ) );
    $wp_customize->selective_refresh->add_partial( 'lawyer_hub_remove_category', array(
		'selector' => '.box-content a[rel="category"]',
		'render_callback' => 'lawyer_hub_customize_partial_lawyer_hub_remove_category',
	));
	$wp_customize->add_setting( 'lawyer_hub_remove_comment', array(
	 'default'           => true,
	 'transport'         => 'refresh',
	 'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
 	) );

	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_remove_comment', array(
	 'label'       => esc_html__( 'Show / Hide Comment Form', 'lawyer-hub' ),
	 'section'     => 'lawyer_hub_blog_option',
	 'type'        => 'toggle',
	 'settings'    => 'lawyer_hub_remove_comment',
	) ) );

	$wp_customize->add_setting( 'lawyer_hub_remove_related_post', array(
	 'default'           => true,
	 'transport'         => 'refresh',
	 'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
 	) );

	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_remove_related_post', array(
	 'label'       => esc_html__( 'Show / Hide Related Post', 'lawyer-hub' ),
	 'section'     => 'lawyer_hub_blog_option',
	 'type'        => 'toggle',
	 'settings'    => 'lawyer_hub_remove_related_post',
	) ) );

	$wp_customize->add_setting('lawyer_hub_related_post_heading',array(
		'default'=> __('Related Posts','lawyer-hub'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_related_post_heading',array(
		'label'	=> __('Related Post Title','lawyer-hub'),
		'section'=> 'lawyer_hub_blog_option',
		'type'=> 'text'
	));
	
	$wp_customize->add_setting( 'lawyer_hub_related_post_per_page', array(
		'default'              => 3,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'lawyer_hub_sanitize_number_range',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'lawyer_hub_related_post_per_page', array(
		'label'       => esc_html__( 'Related Post Per Page','lawyer-hub' ),
		'section'     => 'lawyer_hub_blog_option',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 3,
			'max'              => 9,
		),
	) );

	$wp_customize->add_setting( 'lawyer_hub_related_post_per_columns', array(
		'default'              => 3,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'lawyer_hub_sanitize_number_range',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'lawyer_hub_related_post_per_columns', array(
		'label'       => esc_html__( 'Related Post Per Row','lawyer-hub' ),
		'section'     => 'lawyer_hub_blog_option',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 4,
		),
	) );
	
	$wp_customize->add_setting('lawyer_hub_post_layout',array(
        'default' => 'image-content',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_post_layout',array(
        'type' => 'radio',
        'label'     => __('Post Layout', 'lawyer-hub'),
        'description' => __( 'Control Works only for full,left and right sidebar position in archieve posts', 'lawyer-hub' ),
        'section' => 'lawyer_hub_blog_option',
        'choices' => array(
            'image-content' => __('Media-Content','lawyer-hub'),
            'content-image' => __('Content-Media','lawyer-hub'),
        ),
	) );

	//TP Single Blog Option
	$wp_customize->add_section('lawyer_hub_single_blog_option',array(
        'title' => __('Single Post Option', 'lawyer-hub'),
        'priority' => 1,
        'panel' => 'lawyer_hub_panel_id'
    ) );

    /** Meta Order */
    $wp_customize->add_setting('lawyer_hub_single_blog_meta_order', array(
        'default' => array('date', 'author', 'comment','category', 'time'),
        'sanitize_callback' => 'lawyer_hub_sanitize_sortable',
    ));
    $wp_customize->add_control(new Lawyer_Hub_Control_Sortable($wp_customize, 'lawyer_hub_single_blog_meta_order', array(
    	'label' => esc_html__('Meta Order', 'lawyer-hub'),
        'description' => __('Drag & Drop post items to re-arrange the order and also hide and show items as per the need by clicking on the eye icon.', 'lawyer-hub') ,
        'section' => 'lawyer_hub_single_blog_option',
        'choices' => array(
            'date' => __('date', 'lawyer-hub') ,
            'author' => __('author', 'lawyer-hub') ,
            'comment' => __('comment', 'lawyer-hub') ,
            'category' => __('category', 'lawyer-hub') ,
            'time' => __('time', 'lawyer-hub') ,
        ) ,
    )));

    $wp_customize->add_setting('lawyer_hub_single_post_date_icon',array(
		'default'	=> 'far fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new lawyer_hub_Icon_Changer(
       $wp_customize,'lawyer_hub_single_post_date_icon',array(
		'label'	=> __('Change Date Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_single_blog_option',
		'type'		=> 'lawyer-hub-icon'
	)));

	$wp_customize->add_setting('lawyer_hub_single_post_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new lawyer_hub_Icon_Changer(
       $wp_customize,'lawyer_hub_single_post_author_icon',array(
		'label'	=> __('Change Author Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_single_blog_option',
		'type'		=> 'lawyer-hub-icon'
	)));

	$wp_customize->add_setting('lawyer_hub_single_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new lawyer_hub_Icon_Changer(
       $wp_customize,'lawyer_hub_single_post_comment_icon',array(
		'label'	=> __('Change Comment Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_single_blog_option',
		'type'		=> 'lawyer-hub-icon'
	)));

	$wp_customize->add_setting('lawyer_hub_single_post_category_icon',array(
		'default'	=> 'fas fa-list',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new lawyer_hub_Icon_Changer(
       $wp_customize,'lawyer_hub_single_post_category_icon',array(
		'label'	=> __('Change Category Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_single_blog_option',
		'type'		=> 'lawyer-hub-icon'
	)));

	$wp_customize->add_setting('lawyer_hub_single_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new lawyer_hub_Icon_Changer(
       $wp_customize,'lawyer_hub_single_post_time_icon',array(
		'label'	=> __('Change Time Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_single_blog_option',
		'type'		=> 'lawyer-hub-icon'
	)));

	 //MENU TYPOGRAPHY
	$wp_customize->add_section( 'lawyer_hub_menu_typography', array(
    	'title'      => __( 'Menu Typography', 'lawyer-hub' ),
    	'priority' => 2,
		'panel' => 'lawyer_hub_panel_id'
	) );

 	$wp_customize->add_setting('lawyer_hub_menu_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'lawyer_hub_sanitize_choices',
	));
	$wp_customize->add_control(	'lawyer_hub_menu_font_family', array(
		'section' => 'lawyer_hub_menu_typography',
		'label'   => __('Menu Fonts', 'lawyer-hub'),
		'type'    => 'select',
		'choices' => $lawyer_hub_font_array,
	));

 	$wp_customize->add_setting('lawyer_hub_menu_font_weight',array(
        'default' => '',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_menu_font_weight',array(
     'type' => 'radio',
     'label'     => __('Font Weight', 'lawyer-hub'),
     'section' => 'lawyer_hub_menu_typography',
     'type' => 'select',
     'choices' => array(
         '100' => __('100','lawyer-hub'),
         '200' => __('200','lawyer-hub'),
         '300' => __('300','lawyer-hub'),
         '400' => __('400','lawyer-hub'),
         '500' => __('500','lawyer-hub'),
         '600' => __('600','lawyer-hub'),
         '700' => __('700','lawyer-hub'),
         '800' => __('800','lawyer-hub'),
         '900' => __('900','lawyer-hub')
     ),
	) );

	$wp_customize->add_setting('lawyer_hub_menu_text_tranform',array(
		'default' => '',
		'sanitize_callback' => 'lawyer_hub_sanitize_choices'
 	));
 	$wp_customize->add_control('lawyer_hub_menu_text_tranform',array(
		'type' => 'select',
		'label' => __('Menu Text Transform','lawyer-hub'),
		'section' => 'lawyer_hub_menu_typography',
		'choices' => array(
		   'Uppercase' => __('Uppercase','lawyer-hub'),
		   'Lowercase' => __('Lowercase','lawyer-hub'),
		   'Capitalize' => __('Capitalize','lawyer-hub'),
		),
	) );

	$wp_customize->add_setting('lawyer_hub_menu_font_size', array(
	    'default' => '',
        'sanitize_callback' => 'lawyer_hub_sanitize_number_range',
	));
	$wp_customize->add_control(new Lawyer_Hub_Range_Slider($wp_customize, 'lawyer_hub_menu_font_size', array(
        'section' => 'lawyer_hub_menu_typography',
        'label' => esc_html__('Font Size', 'lawyer-hub'),
        'input_attrs' => array(
        'min' => 0,
        'max' => 15,
        'step' => 1
    )
	)));

	$wp_customize->add_setting('lawyer_hub_menus_item_style',array(
		'default' => '',
		'transport' => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_menus_item_style',array(
		'type' => 'select',
		'section' => 'lawyer_hub_menu_typography',
		'label' => __('Menu Hover Effect','lawyer-hub'),
		'choices' => array(
			'None' => __('None','lawyer-hub'),
			'Zoom In' => __('Zoom In','lawyer-hub'),
		),
	) );

	$wp_customize->add_setting( 'lawyer_hub_menu_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_menu_color', array(
			'label'     => __('Change Menu Color', 'lawyer-hub'),
	    'section' => 'lawyer_hub_menu_typography',
	    'settings' => 'lawyer_hub_menu_color',
  	)));

  	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_menu_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_menu_pro_version_logo', array(
        'section'     => 'lawyer_hub_menu_typography',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	// Top Bar
	$wp_customize->add_section( 'lawyer_hub_topbar', array(
    	'title'      => __( 'Header Details', 'lawyer-hub' ),
    	'priority' => 2,
    	'description' => __( 'Add your contact details', 'lawyer-hub' ),
		'panel' => 'lawyer_hub_panel_id'
	) );

	$wp_customize->add_setting( 'lawyer_hub_search_icon', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_search_icon', array(
		'label'       => esc_html__( 'Show / Hide Search Option', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_topbar',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_search_icon',
	) ) );

	$wp_customize->add_setting('lawyer_hub_location_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_location_text',array(
		'label'	=> __('Add Location','lawyer-hub'),
		'section'=> 'lawyer_hub_topbar',
		'type'=> 'text'
	));
	$wp_customize->add_setting('lawyer_hub_location_icon',array(
		'default'	=> 'fas fa-map-marker-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_location_icon',array(
		'label'	=> __('Location Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_topbar',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('lawyer_hub_phone_number_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'lawyer_hub_sanitize_phone_number'
	));
	$wp_customize->add_control('lawyer_hub_phone_number_text',array(
		'label'	=> __('Add Phone Number','lawyer-hub'),
		'section'=> 'lawyer_hub_topbar',
		'type'=> 'text'
	));
	$wp_customize->add_setting('lawyer_hub_number_icon',array(
		'default'	=> 'fas fa-phone',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_number_icon',array(
		'label'	=> __('Phone Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_topbar',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('lawyer_hub_email_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_email_text',array(
		'label'	=> __('Add Email Text','lawyer-hub'),
		'section'=> 'lawyer_hub_topbar',
		'type'=> 'text'
	));
	$wp_customize->add_setting('lawyer_hub_email_address',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_email'
	));
	$wp_customize->add_control('lawyer_hub_email_address',array(
		'label'	=> __('Add Email Address','lawyer-hub'),
		'section'=> 'lawyer_hub_topbar',
		'type'=> 'text'
	));

	$wp_customize->add_setting('lawyer_hub_email_icon',array(
		'default'	=> 'far fa-envelope',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_email_icon',array(
		'label'	=> __('Email Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('lawyer_hub_button_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_button_text',array(
		'label'	=> __('Add Button Text','lawyer-hub'),
		'section'=> 'lawyer_hub_topbar',
		'type'=> 'text'
	));
	$wp_customize->add_setting('lawyer_hub_button_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lawyer_hub_button_link',array(
		'label'	=> __('Add Button Link','lawyer-hub'),
		'section'=> 'lawyer_hub_topbar',
		'type'=> 'url'
	));

	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_header_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_header_pro_version_logo', array(
        'section'     => 'lawyer_hub_topbar',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	// Social Media
	$wp_customize->add_section( 'lawyer_hub_social_media', array(
    	'title'      => __( 'Social Media Links', 'lawyer-hub' ),
    	'priority' => 2,
    	'description' => __( 'Add your Social Links', 'lawyer-hub' ),
		'panel' => 'lawyer_hub_panel_id'
	) );

	$wp_customize->add_setting( 'lawyer_hub_header_fb_new_tab', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_header_fb_new_tab', array(
		'label'       => esc_html__( 'Open in new tab', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_social_media',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_header_fb_new_tab',
	) ) );

	$wp_customize->add_setting('lawyer_hub_facebook_url',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lawyer_hub_facebook_url',array(
		'label'	=> __('Facebook Link','lawyer-hub'),
		'section'=> 'lawyer_hub_social_media',
		'type'=> 'url'
	));

	$wp_customize->add_setting('lawyer_hub_facebook_icon',array(
		'default'	=> 'fab fa-facebook-f',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_facebook_icon',array(
		'label'	=> __('Facebook Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_social_media',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'lawyer_hub_header_twt_new_tab', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_header_twt_new_tab', array(
		'label'       => esc_html__( 'Open in new tab', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_social_media',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_header_twt_new_tab',
	) ) );
	$wp_customize->add_setting('lawyer_hub_twitter_url',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lawyer_hub_twitter_url',array(
		'label'	=> __('Twitter Link','lawyer-hub'),
		'section'=> 'lawyer_hub_social_media',
		'type'=> 'url'
	));
	$wp_customize->add_setting('lawyer_hub_twitter_icon',array(
		'default'	=> 'fab fa-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_twitter_icon',array(
		'label'	=> __('Twitter Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_social_media',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting( 'lawyer_hub_header_ins_new_tab', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_header_ins_new_tab', array(
		'label'       => esc_html__( 'Open in new tab', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_social_media',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_header_ins_new_tab',
	) ) );
	$wp_customize->add_setting('lawyer_hub_instagram_url',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lawyer_hub_instagram_url',array(
		'label'	=> __('Instagram Link','lawyer-hub'),
		'section'=> 'lawyer_hub_social_media',
		'type'=> 'url'
	));
	$wp_customize->add_setting('lawyer_hub_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_instagram_icon',array(
		'label'	=> __('Instagram Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_social_media',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting( 'lawyer_hub_header_ut_new_tab', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_header_ut_new_tab', array(
		'label'       => esc_html__( 'Open in new tab', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_social_media',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_header_ut_new_tab',
	) ) );
	$wp_customize->add_setting('lawyer_hub_youtube_url',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lawyer_hub_youtube_url',array(
		'label'	=> __('YouTube Link','lawyer-hub'),
		'section'=> 'lawyer_hub_social_media',
		'type'=> 'url'
	));
	$wp_customize->add_setting('lawyer_hub_youtube_icon',array(
		'default'	=> 'fab fa-youtube',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_youtube_icon',array(
		'label'	=> __('Youtube Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_social_media',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting( 'lawyer_hub_header_pint_new_tab', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_header_pint_new_tab', array(
		'label'       => esc_html__( 'Open in new tab', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_social_media',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_header_pint_new_tab',
	) ) );
	$wp_customize->add_setting('lawyer_hub_pint_url',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lawyer_hub_pint_url',array(
		'label'	=> __('Pinterest Link','lawyer-hub'),
		'section'=> 'lawyer_hub_social_media',
		'type'=> 'url'
	));
    $wp_customize->add_setting('lawyer_hub_pint_icon',array(
		'default'	=> 'fab fa-pinterest',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_pint_icon',array(
		'label'	=> __('Pinterest Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_social_media',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('lawyer_hub_social_icon_fontsize',array(
		'default'=> '',
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_social_icon_fontsize',array(
		'label'	=> __('Social Icons Font Size in PX','lawyer-hub'),
		'type'=> 'number',
		'section'=> 'lawyer_hub_social_media',
		'input_attrs' => array(
      'step' => 1,
			'min'  => 0,
			'max'  => 30,
        ),
	));

	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_social_media_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_social_media_pro_version_logo', array(
        'section'     => 'lawyer_hub_social_media',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	//home page slider
	$wp_customize->add_section( 'lawyer_hub_slider_section' , array(
    	'title'      => __( 'Slider Section', 'lawyer-hub' ),
    	'priority' => 3,
		'panel' => 'lawyer_hub_panel_id'
	) );

	$wp_customize->add_setting( 'lawyer_hub_slider_arrows', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_slider_arrows', array(
		'label'       => esc_html__( 'Show / Hide Slider', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_slider_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_slider_arrows',
	) ) );

	$wp_customize->add_setting( 'lawyer_hub_slider_sec_animation', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new lawyer_hub_Toggle_Control( $wp_customize, 'lawyer_hub_slider_sec_animation', array(
		'label'       => esc_html__( 'Show / Hide Slider Section Animation', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_slider_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_slider_sec_animation',
	) ) );

	$wp_customize->add_setting( 'lawyer_hub_show_slider_title', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_show_slider_title', array(
		'label'       => esc_html__( 'Show / Hide Slider Heading', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_slider_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_show_slider_title',
	) ) );

	$wp_customize->add_setting( 'lawyer_hub_show_slider_content', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_show_slider_content', array(
		'label'       => esc_html__( 'Show / Hide Slider Content', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_slider_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_show_slider_content',
	) ) );

	for ( $count = 1; $count <= 3; $count++ ) {

		$wp_customize->add_setting( 'lawyer_hub_slider_page' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'lawyer_hub_sanitize_dropdown_pages'
		) );

		$wp_customize->add_control( 'lawyer_hub_slider_page' . $count, array(
			'label'    => __( 'Select Slide Image Page', 'lawyer-hub' ),
			'description' => __('Image Size ( 1835 x 700 ) px','lawyer-hub'),
			'section'  => 'lawyer_hub_slider_section',
			'type'     => 'dropdown-pages'
		) );
	}

	$wp_customize->add_setting( 'lawyer_hub_slider_button', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_slider_button', array(
		'label'       => esc_html__( 'Show / Hide Slider Button', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_slider_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_slider_button',
	) ) );

	$wp_customize->add_setting( 'lawyer_hub_slider_opacity_setting', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new lawyer_hub_Toggle_Control( $wp_customize, 'lawyer_hub_slider_opacity_setting', array(
		'label'       => esc_html__( 'Show / Hide Image Opacity', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_slider_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_slider_opacity_setting',
	) ) );

    $wp_customize->add_setting( 'lawyer_hub_image_opacity_color', array(
        'default' => '',
        'sanitize_callback' => 'sanitize_hex_color'
    ));
    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_image_opacity_color', array(
        'label' => __('Slider Image Opacity Color', 'lawyer-hub'),
        'section' => 'lawyer_hub_slider_section',
        'settings' => 'lawyer_hub_image_opacity_color',
    )));

    $wp_customize->add_setting('lawyer_hub_slider_opacity',array(
        'default'=> '',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
    ));
    $wp_customize->add_control('lawyer_hub_slider_opacity',array(
        'type' => 'select',
        'label' => esc_html__('Slider Image Opacity','lawyer-hub'),
        'choices' => array(
            '0'   => '0',
            '0.1' => '0.1',
            '0.2' => '0.2',
            '0.3' => '0.3',
            '0.4' => '0.4',
            '0.5' => '0.5',
            '0.6' => '0.6',
            '0.7' => '0.7',
            '0.8' => '0.8',
            '0.9' => '0.9',
            '1'   => '1',
        ),
        'section'=> 'lawyer_hub_slider_section',
    ));

	//Slider excerpt
	$wp_customize->add_setting( 'lawyer_hub_slider_excerpt_length', array(
		'default'              => 35,
		'sanitize_callback'	=> 'absint',
	) );
	$wp_customize->add_control( 'lawyer_hub_slider_excerpt_length', array(
		'label'       => esc_html__( 'Slider Excerpt length','lawyer-hub' ),
		'section'     => 'lawyer_hub_slider_section',
		'type'        => 'number',
		'settings'    => 'lawyer_hub_slider_excerpt_length',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 100,
		),
	) );

    //Slider height
    $wp_customize->add_setting('lawyer_hub_slider_img_height',array(
        'default'=> '',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('lawyer_hub_slider_img_height',array(
        'label' => __('Slider Height','lawyer-hub'),
        'description'   => __('Add slider height in px(eg. 700px).','lawyer-hub'),
        'section'=> 'lawyer_hub_slider_section',
        'type'=> 'text'
    ));

 	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_slider_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_slider_pro_version_logo', array(
        'section'     => 'lawyer_hub_slider_section',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	//home page about
	$wp_customize->add_section( 'lawyer_hub_about_section' , array(
    	'title'      => __( 'About Us Section', 'lawyer-hub' ),
    	'priority' => 3,
		'panel' => 'lawyer_hub_panel_id'
	) );

    $wp_customize->add_setting( 'lawyer_hub_about_section_show_hide', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_about_section_show_hide', array(
		'label'       => esc_html__( 'Show / Hide About Section', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_about_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_about_section_show_hide',
	) ) );

	$wp_customize->add_setting( 'lawyer_hub_about_sec_animation', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new lawyer_hub_Toggle_Control( $wp_customize, 'lawyer_hub_about_sec_animation', array(
		'label'       => esc_html__( 'Show / Hide Section Animation', 'lawyer-hub' ),
		'priority' => 1,
		'section'     => 'lawyer_hub_about_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_about_sec_animation',
	) ) );

	$wp_customize->add_setting('lawyer_hub_about_title',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_about_title',array(
		'label'	=> __('Add Title','lawyer-hub'),
		'section'=> 'lawyer_hub_about_section',
		'type'=> 'text'
	));
	$wp_customize->add_setting( 'lawyer_hub_about_page', array(
		'default'           => '',
		'sanitize_callback' => 'lawyer_hub_sanitize_dropdown_pages'
	) );
	$wp_customize->add_control( 'lawyer_hub_about_page', array(
		'label'    => __( 'Select About Page', 'lawyer-hub' ),
		'section'  => 'lawyer_hub_about_section',
		'type'     => 'dropdown-pages'
	) );
	$wp_customize->add_setting('lawyer_hub_about_icon',array(
		'default'	=> 'fas fa-balance-scale',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_about_icon',array(
		'label'	=> __('About us Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_about_section',
		'type'		=> 'icon'
	)));

	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_about_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_about_pro_version_logo', array(
        'section'     => 'lawyer_hub_about_section',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	//footer
	$wp_customize->add_section('lawyer_hub_footer_section',array(
		'title'	=> __('Footer Widget Settings','lawyer-hub'),
		'panel' => 'lawyer_hub_panel_id',
		'priority' => 4,
	));

	$wp_customize->add_setting( 'lawyer_hub_footer_animation', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new lawyer_hub_Toggle_Control( $wp_customize, 'lawyer_hub_footer_animation', array(
		'label'       => esc_html__( 'Show / Hide Footer Animation', 'lawyer-hub' ),
		'priority' => 1,
		'section'     => 'lawyer_hub_footer_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_footer_animation',
	) ) );

    // footer columns
	$wp_customize->add_setting('lawyer_hub_footer_columns',array(
		'default'	=> 4,
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_footer_columns',array(
		'label'	=> __('Footer Widget Columns','lawyer-hub'),
		'section'	=> 'lawyer_hub_footer_section',
		'setting'	=> 'lawyer_hub_footer_columns',
		'type'	=> 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 4,
		),
	));
	$wp_customize->add_setting( 'lawyer_hub_tp_footer_bg_color_option', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_tp_footer_bg_color_option', array(
			'label'     => __('Footer Widget Background Color', 'lawyer-hub'),
			'description' => __('It will change the complete footer widget backgorund color.', 'lawyer-hub'),
			'section' => 'lawyer_hub_footer_section',
			'settings' => 'lawyer_hub_tp_footer_bg_color_option',
	)));

	$wp_customize->add_setting('lawyer_hub_footer_widget_image',array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'lawyer_hub_footer_widget_image',array(
	    'label' => __('Footer Widget Background Image','lawyer-hub'),
	    'section' => 'lawyer_hub_footer_section'
	)));

	//footer widget title font size
	$wp_customize->add_setting('lawyer_hub_footer_widget_title_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_footer_widget_title_font_size',array(
		'label'	=> __('Change Footer Widget Title Font Size in PX','lawyer-hub'),
		'section'	=> 'lawyer_hub_footer_section',
	    'setting'	=> 'lawyer_hub_footer_widget_title_font_size',
		'type'	=> 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	));

	$wp_customize->add_setting( 'lawyer_hub_footer_widget_title_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_footer_widget_title_color', array(
			'label'     => __('Change Footer Widget Title Color', 'lawyer-hub'),
	    'section' => 'lawyer_hub_footer_section',
	    'settings' => 'lawyer_hub_footer_widget_title_color',
  	)));

  	$wp_customize->add_setting('lawyer_hub_footer_widget_title_font_weight',array(
        'default' => '',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_footer_widget_title_font_weight',array(
     'type' => 'radio',
     'label'     => __('Change Footer Widget Title Font Weight', 'lawyer-hub'),
     'section' => 'lawyer_hub_footer_section',
     'type' => 'select',
     'choices' => array(
         '100' => __('100','lawyer-hub'),
         '200' => __('200','lawyer-hub'),
         '300' => __('300','lawyer-hub'),
         '400' => __('400','lawyer-hub'),
         '500' => __('500','lawyer-hub'),
         '600' => __('600','lawyer-hub'),
         '700' => __('700','lawyer-hub'),
         '800' => __('800','lawyer-hub'),
         '900' => __('900','lawyer-hub')
     ),
	) );

	$wp_customize->add_setting('lawyer_hub_footer_widget_title_text_tranform',array(
		'default' => '',
		'sanitize_callback' => 'lawyer_hub_sanitize_choices'
 	));
 	$wp_customize->add_control('lawyer_hub_footer_widget_title_text_tranform',array(
		'type' => 'select',
		'label' => __('Change Footer Widget Title Letter Case','lawyer-hub'),
		'section' => 'lawyer_hub_footer_section',
		'choices' => array(
		   'Uppercase' => __('Uppercase','lawyer-hub'),
		   'Lowercase' => __('Lowercase','lawyer-hub'),
		   'Capitalize' => __('Capitalize','lawyer-hub'),
		),
	) );

	// Add Settings and Controls for position
	$wp_customize->add_setting('lawyer_hub_footer_widget_title_position',array(
        'default' => '',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_footer_widget_title_position',array(
        'type' => 'radio',
        'label'     => __('Change Footer Widget Position', 'lawyer-hub'),
        'description'   => __('This option work for Footer Widget', 'lawyer-hub'),
        'section' => 'lawyer_hub_footer_section',
        'choices' => array(
            'Right' => __('Right','lawyer-hub'),
            'Left' => __('Left','lawyer-hub'),
            'Center' => __('Center','lawyer-hub')
        ),
	) );
	
	$wp_customize->add_setting( 'lawyer_hub_return_to_header', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_return_to_header', array(
		'label'       => esc_html__( 'Show / Hide Return to Header', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_footer_section',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_return_to_header',
	) ) );
    $wp_customize->add_setting('lawyer_hub_return_icon',array(
		'default'	=> 'fas fa-arrow-up',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Lawyer_Hub_Icon_Changer(
        $wp_customize,'lawyer_hub_return_icon',array(
		'label'	=> __('Scroll Top Icon','lawyer-hub'),
		'transport' => 'refresh',
		'section'	=> 'lawyer_hub_footer_section',
		'type'		=> 'icon'
	)));

    // Add Settings and Controls for Scroll top
	$wp_customize->add_setting('lawyer_hub_scroll_top_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_scroll_top_position',array(
     'type' => 'radio',
     'label'     => __('Scroll to top Position', 'lawyer-hub'),
     'description'   => __('This option work for scroll to top', 'lawyer-hub'),
     'section' => 'lawyer_hub_footer_section',
     'choices' => array(
         'Right' => __('Right','lawyer-hub'),
         'Left' => __('Left','lawyer-hub'),
         'Center' => __('Center','lawyer-hub')
     ),
	) );

	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_footer_widget_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_footer_widget_pro_version_logo', array(
        'section'     => 'lawyer_hub_footer_section',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	//footer
	$wp_customize->add_section('lawyer_hub_footer_copyright_section',array(
		'title'	=> __('Footer Copyright Settings','lawyer-hub'),
		'description'	=> __('Add copyright text.','lawyer-hub'),
		'panel' => 'lawyer_hub_panel_id',
		'priority' => 4,
	));
	
	$wp_customize->add_setting('lawyer_hub_footer_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_footer_text',array(
		'label'	=> __('Copyright Text','lawyer-hub'),
		'section'	=> 'lawyer_hub_footer_copyright_section',
		'type'		=> 'text'
	));

	//footer widget title font size
	$wp_customize->add_setting('lawyer_hub_footer_copyright_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_footer_copyright_font_size',array(
		'label'	=> __('Change Footer Copyright Font Size in PX','lawyer-hub'),
		'section'	=> 'lawyer_hub_footer_copyright_section',
	    'setting'	=> 'lawyer_hub_footer_copyright_font_size',
		'type'	=> 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	));

	$wp_customize->add_setting('lawyer_hub_footer_copyright_title_font_weight',array(
        'default' => '',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_footer_copyright_title_font_weight',array(
     'type' => 'radio',
     'label'     => __('Change Footer Copyright Text Font Weight', 'lawyer-hub'),
     'section' => 'lawyer_hub_footer_copyright_section',
     'type' => 'select',
     'choices' => array(
         '100' => __('100','lawyer-hub'),
         '200' => __('200','lawyer-hub'),
         '300' => __('300','lawyer-hub'),
         '400' => __('400','lawyer-hub'),
         '500' => __('500','lawyer-hub'),
         '600' => __('600','lawyer-hub'),
         '700' => __('700','lawyer-hub'),
         '800' => __('800','lawyer-hub'),
         '900' => __('900','lawyer-hub')
     ),
	) );

	$wp_customize->add_setting( 'lawyer_hub_footer_copyright_text_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_footer_copyright_text_color', array(
			'label'     => __('Change Footer Copyright Text Color', 'lawyer-hub'),
	    'section' => 'lawyer_hub_footer_copyright_section',
	    'settings' => 'lawyer_hub_footer_copyright_text_color',
  	)));

  	$wp_customize->add_setting('lawyer_hub_footer_copyright_top_bottom_padding',array(
		'default'	=> '',
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_footer_copyright_top_bottom_padding',array(
		'label'	=> __('Change Footer Copyright Padding in PX','lawyer-hub'),
		'section'	=> 'lawyer_hub_footer_copyright_section',
	    'setting'	=> 'lawyer_hub_footer_copyright_top_bottom_padding',
		'type'	=> 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	));

	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_copyright_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_copyright_pro_version_logo', array(
        'section'     => 'lawyer_hub_footer_copyright_section',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	$wp_customize->get_setting( 'blogname' )->transport          = 'postMessage';
	$wp_customize->get_setting( 'blogdescription' )->transport   = 'postMessage';
	$wp_customize->selective_refresh->add_partial( 'blogname', array(
		'selector' => '.site-title a',
		'render_callback' => 'lawyer_hub_customize_partial_blogname',
	) );
	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => '.site-description',
		'render_callback' => 'lawyer_hub_customize_partial_blogdescription',
	) );

	//Mobile responsive
	$wp_customize->add_section('lawyer_hub_mobile_media_option',array(
		'title'         => __('Mobile Responsive media', 'lawyer-hub'),
		'description' => __('Control will no function if the toggle in the main settings is off.', 'lawyer-hub'),
		'priority' => 5,
		'panel' => 'lawyer_hub_panel_id'
	) );

	$wp_customize->add_setting( 'lawyer_hub_mobile_blog_description', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new lawyer_hub_Toggle_Control( $wp_customize, 'lawyer_hub_mobile_blog_description', array(
		'label'       => esc_html__( 'Show / Hide Blog Page Description', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_mobile_media_option',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_mobile_blog_description',
	) ) );

	$wp_customize->add_setting( 'lawyer_hub_return_to_header_mob', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_return_to_header_mob', array(
		'label'       => esc_html__( 'Show / Hide Return to Header', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_mobile_media_option',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_return_to_header_mob',
	) ) );

	$wp_customize->add_setting( 'lawyer_hub_slider_buttom_mob', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_slider_buttom_mob', array(
		'label'       => esc_html__( 'Show / Hide Slider Button', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_mobile_media_option',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_slider_buttom_mob',
	) ) );
	$wp_customize->add_setting( 'lawyer_hub_related_post_mob', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_related_post_mob', array(
		'label'       => esc_html__( 'Show / Hide Related Post', 'lawyer-hub' ),
		'section'     => 'lawyer_hub_mobile_media_option',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_related_post_mob',
	) ) );

	//Slider height
    $wp_customize->add_setting('lawyer_hub_slider_img_height_responsive',array(
        'default'=> '',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('lawyer_hub_slider_img_height_responsive',array(
        'label' => __('Slider Height','lawyer-hub'),
        'description'   => __('Add slider height in px(eg. 700px).','lawyer-hub'),
        'section'=> 'lawyer_hub_mobile_media_option',
        'type'=> 'text'
    ));

	// Pro Version
    $wp_customize->add_setting( 'lawyer_hub_responsive_pro_version_logo', array(
        'sanitize_callback' => 'lawyer_hub_sanitize_custom_control'
    ));
    $wp_customize->add_control( new Lawyer_Hub_Customize_Pro_Version ( $wp_customize,'lawyer_hub_responsive_pro_version_logo', array(
        'section'     => 'lawyer_hub_mobile_media_option',
        'type'        => 'pro_options',
        'label'       => esc_html__( 'Features ', 'lawyer-hub' ),
        'description' => esc_url( LAWYER_HUB_PRO_THEME_URL ),
        'priority'    => 100
    )));

	//site identity
	$wp_customize->add_setting( 'lawyer_hub_site_title', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_site_title', array(
		'label'       => esc_html__( 'Show / Hide Site Title', 'lawyer-hub' ),
		'section'     => 'title_tagline',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_site_title',
	) ) );

	// logo site title size
	$wp_customize->add_setting('lawyer_hub_site_title_font_size',array(
		'default'	=> 20,
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_site_title_font_size',array(
		'label'	=> __('Site Title Font Size in PX','lawyer-hub'),
		'section'	=> 'title_tagline',
		'setting'	=> 'lawyer_hub_site_title_font_size',
		'type'	=> 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 80,
		),
	));

	$wp_customize->add_setting( 'lawyer_hub_site_tagline_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_site_tagline_color', array(
			'label'     => __('Change Site Title Color', 'lawyer-hub'),
	    'section' => 'title_tagline',
	    'settings' => 'lawyer_hub_site_tagline_color',
  	)));

	$wp_customize->add_setting( 'lawyer_hub_site_tagline', array(
		'default'           => false,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_site_tagline', array(
		'label'       => esc_html__( 'Show / Hide Site Tagline', 'lawyer-hub' ),
		'section'     => 'title_tagline',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_site_tagline',
	) ) );

	// logo site tagline size
	$wp_customize->add_setting('lawyer_hub_site_tagline_font_size',array(
		'default'	=> 15,
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_site_tagline_font_size',array(
		'label'	=> __('Site Tagline Font Size in PX','lawyer-hub'),
		'section'	=> 'title_tagline',
		'setting'	=> 'lawyer_hub_site_tagline_font_size',
		'type'	=> 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	));

	$wp_customize->add_setting( 'lawyer_hub_logo_tagline_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_logo_tagline_color', array(
			'label'     => __('Change Site Tagline Color', 'lawyer-hub'),
	    'section' => 'title_tagline',
	    'settings' => 'lawyer_hub_logo_tagline_color',
  	)));

    $wp_customize->add_setting('lawyer_hub_logo_width',array(
		'default' => 150,
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_logo_width',array(
		'label'	=> esc_html__('Here You Can Customize Your Logo Size','lawyer-hub'),
		'section'	=> 'title_tagline',
		'type'		=> 'number'
	));
	$wp_customize->add_setting('lawyer_hub_logo_settings',array(
		'default' => 'Different Line',
		'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
    $wp_customize->add_control('lawyer_hub_logo_settings',array(
        'type' => 'radio',
        'label'     => __('Logo Layout Settings', 'lawyer-hub'),
        'description'   => __('Here you have two options 1. Logo and Site tite in differnt line. 2. Logo and Site title in same line.', 'lawyer-hub'),
        'section' => 'title_tagline',
        'choices' => array(
            'Different Line' => __('Different Line','lawyer-hub'),
            'Same Line' => __('Same Line','lawyer-hub')
        ),
	) );

	//woo commerce
	$wp_customize->add_setting('lawyer_hub_per_columns',array(
		'default'=> 3,
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_per_columns',array(
		'label'	=> __('Product Per Row','lawyer-hub'),
		'section'=> 'woocommerce_product_catalog',
		'type'=> 'number'
	));
	$wp_customize->add_setting('lawyer_hub_product_per_page',array(
		'default'=> 9,
		'sanitize_callback'	=> 'lawyer_hub_sanitize_number_absint'
	));
	$wp_customize->add_control('lawyer_hub_product_per_page',array(
		'label'	=> __('Product Per Page','lawyer-hub'),
		'section'=> 'woocommerce_product_catalog',
		'type'=> 'number'
	));
	$wp_customize->add_setting( 'lawyer_hub_product_sidebar', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_product_sidebar', array(
		'label'       => esc_html__( 'how / Hide Shop page sidebar', 'lawyer-hub' ),
		'section'     => 'woocommerce_product_catalog',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_product_sidebar',
	) ) );
	
	$wp_customize->add_setting( 'lawyer_hub_single_product_sidebar', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_single_product_sidebar', array(
		'label'       => esc_html__( 'Show / Hide Product page sidebar', 'lawyer-hub' ),
		'section'     => 'woocommerce_product_catalog',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_single_product_sidebar',
	) ) );
	$wp_customize->add_setting( 'lawyer_hub_related_product', array(
		'default'           => true,
		'transport'         => 'refresh',
		'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	) );
	$wp_customize->add_control( new Lawyer_Hub_Toggle_Control( $wp_customize, 'lawyer_hub_related_product', array(
		'label'       => esc_html__( 'Show / Hide related product', 'lawyer-hub' ),
		'section'     => 'woocommerce_product_catalog',
		'type'        => 'toggle',
		'settings'    => 'lawyer_hub_related_product',
	) ) );
	
	//Page template settings
	$wp_customize->add_panel( 'lawyer_hub_page_panel_id', array(
	    'priority' => 10,
	    'capability' => 'edit_theme_options',
	    'theme_supports' => '',
	    'title' => __( 'Page Template Settings', 'lawyer-hub' ),
	    'description' => __( 'Description of what this panel does.', 'lawyer-hub' ),
	) );

	// 404 PAGE
	$wp_customize->add_section('lawyer_hub_404_page_section',array(
		'title'         => __('404 Page', 'lawyer-hub'),
		'description'   => 'Here you can customize 404 Page content.',
		'panel' => 'lawyer_hub_page_panel_id'
	) );

	$wp_customize->add_setting('lawyer_hub_edit_404_title',array(
		'default'=> __('Oops! That page cant be found.','lawyer-hub'),
		'sanitize_callback'	=> 'sanitize_text_field',
	));
	$wp_customize->add_control('lawyer_hub_edit_404_title',array(
		'label'	=> __('Edit Title','lawyer-hub'),
		'section'=> 'lawyer_hub_404_page_section',
		'type'=> 'text',
	));

	$wp_customize->add_setting('lawyer_hub_edit_404_text',array(
		'default'=> __('It looks like nothing was found at this location. Maybe try a search?','lawyer-hub'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_edit_404_text',array(
		'label'	=> __('Edit Text','lawyer-hub'),
		'section'=> 'lawyer_hub_404_page_section',
		'type'=> 'text'
	));

	// Search Results
	$wp_customize->add_section('lawyer_hub_no_result_section',array(
		'title'         => __('Search Results', 'lawyer-hub'),
		'description'   => 'Here you can customize Search Result content.',
		'panel' => 'lawyer_hub_page_panel_id'
	) );

	$wp_customize->add_setting('lawyer_hub_edit_no_result_title',array(
		'default'=> __('Nothing Found','lawyer-hub'),
		'sanitize_callback'	=> 'sanitize_text_field',
	));
	$wp_customize->add_control('lawyer_hub_edit_no_result_title',array(
		'label'	=> __('Edit Title','lawyer-hub'),
		'section'=> 'lawyer_hub_no_result_section',
		'type'=> 'text',
	));

	$wp_customize->add_setting('lawyer_hub_edit_no_result_text',array(
		'default'=> __('Sorry, but nothing matched your search terms. Please try again with some different keywords.','lawyer-hub'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lawyer_hub_edit_no_result_text',array(
		'label'	=> __('Edit Text','lawyer-hub'),
		'section'=> 'lawyer_hub_no_result_section',
		'type'=> 'text'
	));

	// Header Image Height
    $wp_customize->add_setting(
        'lawyer_hub_header_image_height',
        array(
            'default'           => 350,
            'sanitize_callback' => 'absint',
        )
    );
    $wp_customize->add_control(
        'lawyer_hub_header_image_height',
        array(
            'label'       => esc_html__( 'Header Image Height', 'lawyer-hub' ),
            'section'     => 'header_image',
            'type'        => 'number',
            'description' => esc_html__( 'Control the height of the header image. Default is 350px.', 'lawyer-hub' ),
            'input_attrs' => array(
                'min'  => 220,
                'max'  => 1000,
                'step' => 1,
            ),
        )
    );

    // Header Background Position
    $wp_customize->add_setting(
        'lawyer_hub_header_background_position',
        array(
            'default'           => 'center',
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    $wp_customize->add_control(
        'lawyer_hub_header_background_position',
        array(
            'label'       => esc_html__( 'Header Background Position', 'lawyer-hub' ),
            'section'     => 'header_image',
            'type'        => 'select',
            'choices'     => array(
                'top'    => esc_html__( 'Top', 'lawyer-hub' ),
                'center' => esc_html__( 'Center', 'lawyer-hub' ),
                'bottom' => esc_html__( 'Bottom', 'lawyer-hub' ),
            ),
            'description' => esc_html__( 'Choose how you want to position the header image.', 'lawyer-hub' ),
        )
    );

    // Header Image Parallax Effect
    $wp_customize->add_setting(
        'lawyer_hub_header_background_attachment',
        array(
            'default'           => 1,
            'sanitize_callback' => 'absint',
        )
    );
    $wp_customize->add_control(
        'lawyer_hub_header_background_attachment',
        array(
            'label'       => esc_html__( 'Header Image Parallax', 'lawyer-hub' ),
            'section'     => 'header_image',
            'type'        => 'checkbox',
            'description' => esc_html__( 'Add a parallax effect on page scroll.', 'lawyer-hub' ),
        )
    );

    //Opacity
	$wp_customize->add_setting('lawyer_hub_header_banner_opacity_color',array(
       'default'              => '0.9',
       'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
    $wp_customize->add_control( 'lawyer_hub_header_banner_opacity_color', array(
		'label'       => esc_html__( 'Header Image Opacity','lawyer-hub' ),
		'section'     => 'header_image',
		'type'        => 'select',
		'settings'    => 'lawyer_hub_header_banner_opacity_color',
		'choices' => array(
           '0' =>  esc_attr(__('0','lawyer-hub')),
           '0.1' =>  esc_attr(__('0.1','lawyer-hub')),
           '0.2' =>  esc_attr(__('0.2','lawyer-hub')),
           '0.3' =>  esc_attr(__('0.3','lawyer-hub')),
           '0.4' =>  esc_attr(__('0.4','lawyer-hub')),
           '0.5' =>  esc_attr(__('0.5','lawyer-hub')),
           '0.6' =>  esc_attr(__('0.6','lawyer-hub')),
           '0.7' =>  esc_attr(__('0.7','lawyer-hub')),
           '0.8' =>  esc_attr(__('0.8','lawyer-hub')),
           '0.9' =>  esc_attr(__('0.9','lawyer-hub'))
		), 
	) );

   $wp_customize->add_setting( 'lawyer_hub_header_banner_image_overlay', array(
	    'default'   => true,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'lawyer_hub_sanitize_checkbox',
	));
	$wp_customize->add_control( new lawyer_hub_Toggle_Control( $wp_customize, 'lawyer_hub_header_banner_image_overlay', array(
	    'label'   => esc_html__( 'Show / Hide Header Image Overlay', 'lawyer-hub' ),
	    'section' => 'header_image',
	)));

    $wp_customize->add_setting('lawyer_hub_header_banner_image_ooverlay_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'lawyer_hub_header_banner_image_ooverlay_color', array(
		'label'    => __('Header Image Overlay Color', 'lawyer-hub'),
		'section'  => 'header_image',
	)));

    $wp_customize->add_setting(
        'lawyer_hub_header_image_title_font_size',
        array(
            'default'           => 32,
            'sanitize_callback' => 'absint',
        )
    );
    $wp_customize->add_control(
        'lawyer_hub_header_image_title_font_size',
        array(
            'label'       => esc_html__( 'Change Header Image Title Font Size', 'lawyer-hub' ),
            'section'     => 'header_image',
            'type'        => 'number',
            'description' => esc_html__( 'Control the font Size of the header image title. Default is 32px.', 'lawyer-hub' ),
            'input_attrs' => array(
                'min'  => 10,
                'max'  => 200,
                'step' => 1,
            ),
        )
    );

	$wp_customize->add_setting( 'lawyer_hub_header_image_title_text_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lawyer_hub_header_image_title_text_color', array(
			'label'     => __('Change Header Image Title Color', 'lawyer-hub'),
	    'section' => 'header_image',
	    'settings' => 'lawyer_hub_header_image_title_text_color',
  	)));

  	//Woocommerce settings
	$wp_customize->add_section('lawyer_hub_woocommerce_section', array(
		'title'    => __('WooCommerce Options', 'lawyer-hub'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

	$wp_customize->add_setting('lawyer_hub_sale_tag_position',array(
        'default' => 'right',
        'sanitize_callback' => 'lawyer_hub_sanitize_choices'
	));
	$wp_customize->add_control('lawyer_hub_sale_tag_position',array(
        'type' => 'radio',
        'label'     => __('Sale Badge Position', 'lawyer-hub'),
        'description'   => __('This option work for Archieve Products', 'lawyer-hub'),
        'section' => 'lawyer_hub_woocommerce_section',
        'choices' => array(
            'left' => __('Left','lawyer-hub'),
            'right' => __('Right','lawyer-hub'),
        ),
	) );

  	$wp_customize->add_setting('lawyer_hub_woocommerce_sale_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('lawyer_hub_woocommerce_sale_font_size',array(
		'label'	=> __('Sale Font Size','lawyer-hub'),

		'section'=> 'lawyer_hub_woocommerce_section',
		'settings'    => 'lawyer_hub_woocommerce_sale_font_size',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 100,
		),
	));

	$wp_customize->add_setting('lawyer_hub_woocommerce_sale_padding_top_bottom',array(
		'default'=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('lawyer_hub_woocommerce_sale_padding_top_bottom',array(
		'label'	=> __('Sale Padding Top Bottom','lawyer-hub'),
		'section'=> 'lawyer_hub_woocommerce_section',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 100,
		),
	));

	$wp_customize->add_setting('lawyer_hub_woocommerce_sale_padding_left_right',array(
		'default'=> '',
		'sanitize_callback'	=> 'absint'
	));
	$wp_customize->add_control('lawyer_hub_woocommerce_sale_padding_left_right',array(
		'label'	=> __('Sale Padding Left Right','lawyer-hub'),
		'section'=> 'lawyer_hub_woocommerce_section',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 100,
		),
	));

	$wp_customize->add_setting( 'lawyer_hub_woocommerce_sale_border_radius', array(
		'default'              => '100',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'absint'
	) );
	$wp_customize->add_control( 'lawyer_hub_woocommerce_sale_border_radius', array(
		'label'       => esc_html__( 'Sale Border Radius','lawyer-hub' ),
		'section'     => 'lawyer_hub_woocommerce_section',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 100,
		),
	) );

}
add_action( 'customize_register', 'lawyer_hub_customize_register' );

/**
 * Render the site title for the selective refresh partial.
 *
 * @since Lawyer Hub 1.0
 * @see lawyer_hub_customize_register()
 *
 * @return void
 */
function lawyer_hub_customize_partial_blogname() {
	bloginfo( 'name' );
}

/**
 * Render the site tagline for the selective refresh partial.
 *
 * @since Lawyer Hub 1.0
 * @see lawyer_hub_customize_register()
 *
 * @return void
 */
function lawyer_hub_customize_partial_blogdescription() {
	bloginfo( 'description' );
}

if ( ! defined( 'LAWYER_HUB_PRO_THEME_NAME' ) ) {
	define( 'LAWYER_HUB_PRO_THEME_NAME', esc_html__( 'Lawyer Hub Pro', 'lawyer-hub' ));
}
if ( ! defined( 'LAWYER_HUB_PRO_THEME_URL' ) ) {
	define( 'LAWYER_HUB_PRO_THEME_URL', esc_url('https://www.themespride.com/products/law-firm-wordpress-theme'));
}
if ( ! defined( 'LAWYER_HUB_DOCS_URL' ) ) {
	define( 'LAWYER_HUB_DOCS_URL', esc_url('https://www.themespride.com/products/law-firm-wordpress-theme'));
}
if ( ! defined( 'LAWYER_HUB_DOCS_URL' ) ) {
	define( 'LAWYER_HUB_DOCS_URL', esc_url('https://www.themespride.com/products/law-firm-wordpress-theme'));
}

if ( ! defined( 'LAWYER_HUB_TEXT' ) ) {
    define( 'LAWYER_HUB_TEXT', __( 'Lawyer Hub Pro','lawyer-hub' ));
}
if ( ! defined( 'LAWYER_HUB_BUY_TEXT' ) ) {
    define( 'LAWYER_HUB_BUY_TEXT', __( 'Upgrade Pro','lawyer-hub' ));
}


add_action( 'customize_register', function( $manager ) {

// Load custom sections.
load_template( trailingslashit( get_template_directory() ) . '/inc/section-pro.php' );

    $manager->register_section_type( lawyer_hub_Button::class );

    $manager->add_section(
        new lawyer_hub_Button( $manager, 'lawyer_hub_pro', [
            'title'       => esc_html( LAWYER_HUB_TEXT,'lawyer-hub' ),
            'priority'    => 0,
            'button_text' => __( 'GET PREMIUM', 'lawyer-hub' ),
            'button_url'  => esc_url( LAWYER_HUB_PRO_THEME_URL )
        ] )
    );

} );

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class Lawyer_Hub_Customize {

	/**
	 * Returns the instance.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return object
	 */
	public static function get_instance() {

		static $instance = null;

		if ( is_null( $instance ) ) {
			$instance = new self;
			$instance->setup_actions();
		}

		return $instance;
	}

	/**
	 * Constructor method.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function __construct() {}

	/**
	 * Sets up initial actions.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function setup_actions() {

		// Register panels, sections, settings, controls, and partials.
		add_action( 'customize_register', array( $this, 'sections' ) );

		// Register scripts and styles for the controls.
		add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );
	}

	/**
	 * Sets up the customizer sections.
	 *
	 * @since  1.0.0
	 * @access public
	 * @param  object  $manager
	 * @return void
	 */
	public function sections( $manager ) {

		// Load custom sections.
		load_template( trailingslashit( get_template_directory() ) . '/inc/section-pro.php' );

		// Register custom section types.
		$manager->register_section_type( 'Lawyer_Hub_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section(
			new Lawyer_Hub_Customize_Section_Pro(
				$manager,
				'lawyer_hub_section_pro',
				array(
					'priority'   => 9,
					'title'    => LAWYER_HUB_PRO_THEME_NAME,
					'pro_text' => esc_html__( 'Upgrade Pro', 'lawyer-hub' ),
					'pro_url'  => esc_url( LAWYER_HUB_PRO_THEME_URL, 'lawyer-hub' ),
				)
			)
		);

		$manager->add_section(
		  new Lawyer_Hub_Customize_Section_Pro(
		    $manager,
		    'lawyer_hub_documentation',
		    array(
		      'priority'   => 500,
		      'title'    => esc_html__( 'Theme Documentation', 'lawyer-hub' ),
		      'pro_text' => esc_html__( 'Click Here', 'lawyer-hub' ),
		      'pro_url'  => esc_url( LAWYER_HUB_DOCS_URL, 'lawyer-hub'),
		    )
		  )
		);

	}

	/**
	 * Loads theme customizer CSS.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function enqueue_control_scripts() {

		wp_enqueue_script( 'lawyer-hub-customize-controls', trailingslashit( esc_url( get_template_directory_uri() ) ) . '/assets/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'lawyer-hub-customize-controls', trailingslashit( esc_url( get_template_directory_uri() ) ) . '/assets/css/customize-controls.css' );
	}
}

// Doing this customizer thang!
Lawyer_Hub_Customize::get_instance();PK���\YR'template-tags.phpnu�[���<?php
/**
 * Custom template tags for this theme
 *
 * Eventually, some of the functionality here could be replaced by core features.
 *
 * @package Lawyer Hub
 * @subpackage lawyer_hub
 */

/**
 * Returns true if a blog has more than 1 category.
 *
 * @return bool
 */
function lawyer_hub_categorized_blog() {
	$lawyer_hub_category_count = get_transient( 'lawyer_hub_categories' );

	if ( false === $lawyer_hub_category_count ) {
		// Create an array of all the categories that are attached to posts.
		$categories = get_categories( array(
			'fields'     => 'ids',
			'hide_empty' => 1,
			// We only need to know if there is more than one category.
			'number'     => 2,
		) );

		// Count the number of categories that are attached to the posts.
		$lawyer_hub_category_count = count( $categories );

		set_transient( 'lawyer_hub_categories', $lawyer_hub_category_count );
	}

	// Allow viewing case of 0 or 1 categories in post preview.
	if ( is_preview() ) {
		return true;
	}

	return $lawyer_hub_category_count > 1;
}

if ( ! function_exists( 'lawyer_hub_the_custom_logo' ) ) :
/**
 * Displays the optional custom logo.
 *
 * Does nothing if the custom logo is not available.
 *
 * @since lawyer_hub
 */
function lawyer_hub_the_custom_logo() {
	if ( function_exists( 'the_custom_logo' ) ) {
		the_custom_logo();
	}
}
endif;

/**
 * Flush out the transients used in lawyer_hub_categorized_blog.
 */
function lawyer_hub_category_transient_flusher() {
	if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
		return;
	}
	// Like, beat it. Dig?
	delete_transient( 'lawyer_hub_categories' );
}
add_action( 'edit_category', 'lawyer_hub_category_transient_flusher' );
add_action( 'save_post',     'lawyer_hub_category_transient_flusher' );PK���\X0�oSDSDwptt-webfont-loader.phpnu�[���<?php
/**
 * Download webfonts locally.
 *
 * @package wptt/font-loader
 * @license https://opensource.org/licenses/MIT
 */

if ( ! class_exists( 'Lawyer_Hub_WPTT_WebFont_Loader' ) ) {
	/**
	 * Download webfonts locally.
	 */
	class Lawyer_Hub_WPTT_WebFont_Loader {

		/**
		 * The font-format.
		 *
		 * Use "woff" or "woff2".
		 * This will change the user-agent user to make the request.
		 *
		 * @access protected
		 * @since 1.0.0
		 * @var string
		 */
		protected $font_format = 'woff2';

		/**
		 * The remote URL.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $remote_url;

		/**
		 * Base path.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $base_path;

		/**
		 * Base URL.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $base_url;

		/**
		 * Subfolder name.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $subfolder_name;

		/**
		 * The fonts folder.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $fonts_folder;

		/**
		 * The local stylesheet's path.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $local_stylesheet_path;

		/**
		 * The local stylesheet's URL.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $local_stylesheet_url;

		/**
		 * The remote CSS.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $remote_styles;

		/**
		 * The final CSS.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @var string
		 */
		protected $css;

		/**
		 * Cleanup routine frequency.
		 */
		const CLEANUP_FREQUENCY = 'monthly';

		/**
		 * Constructor.
		 *
		 * Get a new instance of the object for a new URL.
		 *
		 * @access public
		 * @since 1.1.0
		 * @param string $url The remote URL.
		 */
		public function __construct( $url = '' ) {
			$this->remote_url = $url;

			// Add a cleanup routine.
			$this->schedule_cleanup();
			add_action( 'delete_fonts_folder', array( $this, 'delete_fonts_folder' ) );
		}

		/**
		 * Get the local URL which contains the styles.
		 *
		 * Fallback to the remote URL if we were unable to write the file locally.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return string
		 */
		public function get_url() {

			// Check if the local stylesheet exists.
			if ( $this->local_file_exists() ) {

				// Attempt to update the stylesheet. Return the local URL on success.
				if ( $this->write_stylesheet() ) {
					return $this->get_local_stylesheet_url();
				}
			}

			// If the local file exists, return its URL, with a fallback to the remote URL.
			return file_exists( $this->get_local_stylesheet_path() )
				? $this->get_local_stylesheet_url()
				: $this->remote_url;
		}

		/**
		 * Get the local stylesheet URL.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return string
		 */
		public function get_local_stylesheet_url() {
			if ( ! $this->local_stylesheet_url ) {
				$this->local_stylesheet_url = str_replace(
					$this->get_base_path(),
					$this->get_base_url(),
					$this->get_local_stylesheet_path()
				);
			}
			return $this->local_stylesheet_url;
		}

		/**
		 * Get styles with fonts downloaded locally.
		 *
		 * @access public
		 * @since 1.0.0
		 * @return string
		 */
		public function get_styles() {

			// If we already have the local file, return its contents.
			$local_stylesheet_contents = $this->get_local_stylesheet_contents();
			if ( $local_stylesheet_contents ) {
				return $local_stylesheet_contents;
			}

			// Get the remote URL contents.
			$this->remote_styles = $this->get_remote_url_contents();

			// Get an array of locally-hosted files.
			$files = $this->get_local_files_from_css();

			// Convert paths to URLs.
			foreach ( $files as $remote => $local ) {
				$files[ $remote ] = str_replace(
					$this->get_base_path(),
					$this->get_base_url(),
					$local
				);
			}

			$this->css = str_replace(
				array_keys( $files ),
				array_values( $files ),
				$this->remote_styles
			);

			$this->write_stylesheet();

			return $this->css;
		}

		/**
		 * Get local stylesheet contents.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return string|false Returns the remote URL contents.
		 */
		public function get_local_stylesheet_contents() {
			$local_path = $this->get_local_stylesheet_path();

			// Check if the local stylesheet exists.
			if ( $this->local_file_exists() ) {

				// Attempt to update the stylesheet. Return false on fail.
				if ( ! $this->write_stylesheet() ) {
					return false;
				}
			}

			ob_start();
			include $local_path;
			return ob_get_clean();
		}

		/**
		 * Get remote file contents.
		 *
		 * @access public
		 * @since 1.0.0
		 * @return string Returns the remote URL contents.
		 */
		public function get_remote_url_contents() {

			/**
			 * The user-agent we want to use.
			 *
			 * The default user-agent is the only one compatible with woff (not woff2)
			 * which also supports unicode ranges.
			 */
			$user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8';

			// Switch to a user-agent supporting woff2 if we don't need to support IE.
			if ( 'woff2' === $this->font_format ) {
				$user_agent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0';
			}

			// Get the response.
			$response = wp_remote_get( $this->remote_url, array( 'user-agent' => $user_agent ) );

			// Early exit if there was an error.
			if ( is_wp_error( $response ) ) {
				return '';
			}

			// Get the CSS from our response.
			$contents = wp_remote_retrieve_body( $response );

			return $contents;
		}

		/**
		 * Download files mentioned in our CSS locally.
		 *
		 * @access public
		 * @since 1.0.0
		 * @return array Returns an array of remote URLs and their local lawyer_hub_counterparts.
		 */
		public function get_local_files_from_css() {
			$font_files = $this->get_remote_files_from_css();
			$stored     = get_site_option( 'downloaded_font_files', array() );
			$change     = false; // If in the end this is true, we need to update the cache option.

			if ( ! defined( 'FS_CHMOD_DIR' ) ) {
				define( 'FS_CHMOD_DIR', ( 0755 & ~ umask() ) );
			}

			// If the fonts folder don't exist, create it.
			if ( ! file_exists( $this->get_fonts_folder() ) ) {
				$this->get_filesystem()->mkdir( $this->get_fonts_folder(), FS_CHMOD_DIR );
			}

			foreach ( $font_files as $lawyer_hub_font_family => $files ) {

				// The folder path for this font-family.
				$folder_path = $this->get_fonts_folder() . '/' . $lawyer_hub_font_family;

				// If the folder doesn't exist, create it.
				if ( ! file_exists( $folder_path ) ) {
					$this->get_filesystem()->mkdir( $folder_path, FS_CHMOD_DIR );
				}

				foreach ( $files as $url ) {

					// Get the filename.
					$filename  = basename( wp_parse_url( $url, PHP_URL_PATH ) );
					$font_path = $folder_path . '/' . $filename;

					// Check if the file already exists.
					if ( file_exists( $font_path ) ) {

						// Skip if already cached.
						if ( isset( $stored[ $url ] ) ) {
							continue;
						}

						// Add file to the cache and change the $changed var to indicate we need to update the option.
						$stored[ $url ] = $font_path;
						$change         = true;

						// Since the file exists we don't need to proceed with downloading it.
						continue;
					}

					/**
					 * If we got this far, we need to download the file.
					 */

					// require file.php if the download_url function doesn't exist.
					if ( ! function_exists( 'download_url' ) ) {
						require_once wp_normalize_path( ABSPATH . '/wp-admin/includes/file.php' );
					}

					// Download file to temporary location.
					$tmp_path = download_url( $url );

					// Make sure there were no errors.
					if ( is_wp_error( $tmp_path ) ) {
						continue;
					}

					// Move temp file to final destination.
					$success = $this->get_filesystem()->move( $tmp_path, $font_path, true );
					if ( $success ) {
						$stored[ $url ] = $font_path;
						$change         = true;
					}
				}
			}

			// If there were changes, update the option.
			if ( $change ) {

				// Cleanup the option and then save it.
				foreach ( $stored as $url => $path ) {
					if ( ! file_exists( $path ) ) {
						unset( $stored[ $url ] );
					}
				}
				update_site_option( 'downloaded_font_files', $stored );
			}

			return $stored;
		}

		/**
		 * Get font files from the CSS.
		 *
		 * @access public
		 * @since 1.0.0
		 * @return array Returns an array of font-families and the font-files used.
		 */
		public function get_remote_files_from_css() {

			$font_faces = explode( '@font-face', $this->remote_styles );

			$result = array();

			// Loop all our font-face declarations.
			foreach ( $font_faces as $font_face ) {

				// Make sure we only process styles inside this declaration.
				$style = explode( '}', $font_face )[0];

				// Sanity check.
				if ( false === strpos( $style, 'font-family' ) ) {
					continue;
				}

				// Get an array of our font-families.
				preg_match_all( '/font-family.*?\;/', $style, $matched_font_families );

				// Get an array of our font-files.
				preg_match_all( '/url\(.*?\)/i', $style, $matched_font_files );

				// Get the font-family name.
				$lawyer_hub_font_family = 'unknown';
				if ( isset( $matched_font_families[0] ) && isset( $matched_font_families[0][0] ) ) {
					$lawyer_hub_font_family = rtrim( ltrim( $matched_font_families[0][0], 'font-family:' ), ';' );
					$lawyer_hub_font_family = trim( str_replace( array( "'", ';' ), '', $lawyer_hub_font_family ) );
					$lawyer_hub_font_family = sanitize_key( strtolower( str_replace( ' ', '-', $lawyer_hub_font_family ) ) );
				}

				// Make sure the font-family is set in our array.
				if ( ! isset( $result[ $lawyer_hub_font_family ] ) ) {
					$result[ $lawyer_hub_font_family ] = array();
				}

				// Get files for this font-family and add them to the array.
				foreach ( $matched_font_files as $match ) {

					// Sanity check.
					if ( ! isset( $match[0] ) ) {
						continue;
					}

					// Add the file URL.
					$lawyer_hub_font_family_url = rtrim( ltrim( $match[0], 'url(' ), ')' );

					// Make sure to convert relative URLs to absolute.
					$lawyer_hub_font_family_url = $this->get_absolute_path( $lawyer_hub_font_family_url );

					$result[ $lawyer_hub_font_family ][] = $lawyer_hub_font_family_url;
				}

				// Make sure we have unique items.
				// We're using array_flip here instead of array_unique for improved performance.
				$result[ $lawyer_hub_font_family ] = array_flip( array_flip( $result[ $lawyer_hub_font_family ] ) );
			}
			return $result;
		}

		/**
		 * Write the CSS to the filesystem.
		 *
		 * @access protected
		 * @since 1.1.0
		 * @return string|false Returns the absolute path of the file on success, or false on fail.
		 */
		protected function write_stylesheet() {
			$file_path  = $this->get_local_stylesheet_path();
			$filesystem = $this->get_filesystem();

			if ( ! defined( 'FS_CHMOD_DIR' ) ) {
				define( 'FS_CHMOD_DIR', ( 0755 & ~ umask() ) );
			}

			// If the folder doesn't exist, create it.
			if ( ! file_exists( $this->get_fonts_folder() ) ) {
				$this->get_filesystem()->mkdir( $this->get_fonts_folder(), FS_CHMOD_DIR );
			}

			// If the file doesn't exist, create it. Return false if it can not be created.
			if ( ! $filesystem->exists( $file_path ) && ! $filesystem->touch( $file_path ) ) {
				return false;
			}

			// If we got this far, we need to write the file.
			// Get the CSS.
			if ( ! $this->css ) {
				$this->get_styles();
			}

			// Put the contents in the file. Return false if that fails.
			if ( ! $filesystem->put_contents( $file_path, $this->css ) ) {
				return false;
			}

			return $file_path;
		}

		/**
		 * Get the stylesheet path.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return string
		 */
		public function get_local_stylesheet_path() {
			if ( ! $this->local_stylesheet_path ) {
				$this->local_stylesheet_path = $this->get_fonts_folder() . '/' . $this->get_local_stylesheet_filename() . '.css';
			}
			return $this->local_stylesheet_path;
		}

		/**
		 * Get the local stylesheet filename.
		 *
		 * This is a hash, generated from the site-URL, the wp-content path and the URL.
		 * This way we can avoid issues with sites changing their URL, or the wp-content path etc.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return string
		 */
		public function get_local_stylesheet_filename() {
			return md5( $this->get_base_url() . $this->get_base_path() . $this->remote_url . $this->font_format );
		}

		/**
		 * Set the font-format to be used.
		 *
		 * @access public
		 * @since 1.0.0
		 * @param string $format The format to be used. Use "woff" or "woff2".
		 * @return void
		 */
		public function set_font_format( $format = 'woff2' ) {
			$this->font_format = $format;
		}

		/**
		 * Check if the local stylesheet exists.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return bool
		 */
		public function local_file_exists() {
			return ( ! file_exists( $this->get_local_stylesheet_path() ) );
		}

		/**
		 * Get the base path.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return string
		 */
		public function get_base_path() {
			if ( ! $this->base_path ) {
				$this->base_path = apply_filters( 'wptt_get_local_fonts_base_path', $this->get_filesystem()->wp_content_dir() );
			}
			return $this->base_path;
		}

		/**
		 * Get the base URL.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return string
		 */
		public function get_base_url() {
			if ( ! $this->base_url ) {
				$this->base_url = apply_filters( 'wptt_get_local_fonts_base_url', content_url() );
			}
			return $this->base_url;
		}

		/**
		 * Get the subfolder name.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return string
		 */
		public function get_subfolder_name() {
			if ( ! $this->subfolder_name ) {
				$this->subfolder_name = apply_filters( 'wptt_get_local_fonts_subfolder_name', 'fonts' );
			}
			return $this->subfolder_name;
		}

		/**
		 * Get the folder for fonts.
		 *
		 * @access public
		 * @return string
		 */
		public function get_fonts_folder() {
			if ( ! $this->fonts_folder ) {
				$this->fonts_folder = $this->get_base_path();
				if ( $this->get_subfolder_name() ) {
					$this->fonts_folder .= '/' . $this->get_subfolder_name();
				}
			}
			return $this->fonts_folder;
		}

		/**
		 * Schedule a cleanup.
		 *
		 * Deletes the fonts files on a regular basis.
		 * This way font files will get updated regularly,
		 * and we avoid edge cases where unused files remain in the server.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return void
		 */
		public function schedule_cleanup() {
			if ( ! is_multisite() || ( is_multisite() && is_main_site() ) ) {
				if ( ! wp_next_scheduled( 'delete_fonts_folder' ) && ! wp_installing() ) {
					wp_schedule_event( time(), self::CLEANUP_FREQUENCY, 'delete_fonts_folder' );
				}
			}
		}

		/**
		 * Delete the fonts folder.
		 *
		 * This runs as part of a cleanup routine.
		 *
		 * @access public
		 * @since 1.1.0
		 * @return bool
		 */
		public function delete_fonts_folder() {
			return $this->get_filesystem()->delete( $this->get_fonts_folder(), true );
		}

		/**
		 * Get the filesystem.
		 *
		 * @access protected
		 * @since 1.0.0
		 * @return \WP_Filesystem_Base
		 */
		protected function get_filesystem() {
			global $wp_filesystem;

			// If the filesystem has not been instantiated yet, do it here.
			if ( ! $wp_filesystem ) {
				if ( ! function_exists( 'WP_Filesystem' ) ) {
					require_once wp_normalize_path( ABSPATH . '/wp-admin/includes/file.php' );
				}
				WP_Filesystem();
			}
			return $wp_filesystem;
		}

		/**
		 * Get an absolute URL from a relative URL.
		 *
		 * @access protected
		 *
		 * @param string $url The URL.
		 *
		 * @return string
		 */
		protected function get_absolute_path( $url ) {

			// If dealing with a root-relative URL.
			if ( 0 === stripos( $url, '/' ) ) {
				$parsed_url = parse_url( $this->remote_url );
				return $parsed_url['scheme'] . '://' . $parsed_url['hostname'] . $url;
			}

			return $url;
		}
	}
}

if ( ! function_exists( 'lawyer_hub_wptt_get_webfont_styles' ) ) {
	/**
	 * Get styles for a webfont.
	 *
	 * This will get the CSS from the remote API,
	 * download any fonts it contains,
	 * replace references to remote URLs with locally-downloaded assets,
	 * and finally return the resulting CSS.
	 *
	 * @since 1.0.0
	 *
	 * @param string $url    The URL of the remote webfont.
	 * @param string $format The font-format. If you need to support IE, change this to "woff".
	 *
	 * @return string Returns the CSS.
	 */
	function lawyer_hub_wptt_get_webfont_styles( $url, $format = 'woff2' ) {
		$font = new Lawyer_Hub_WPTT_WebFont_Loader( $url );
		$font->set_font_format( $format );
		return $font->get_styles();
	}
}

if ( ! function_exists( 'lawyer_hub_wptt_get_web_font_url' ) ) {
	/**
	 * Get a stylesheet URL for a webfont.
	 *
	 * @since 1.1.0
	 *
	 * @param string $url    The URL of the remote webfont.
	 * @param string $format The font-format. If you need to support IE, change this to "woff".
	 *
	 * @return string Returns the CSS.
	 */
	function lawyer_hub_wptt_get_web_font_url( $url, $format = 'woff2' ) {
		$font = new Lawyer_Hub_WPTT_WebFont_Loader( $url );
		$font->set_font_format( $format );
		return $font->get_url();
	}
}
PK���\�9��]m]mabout-theme.phpnu�[���<?php
/**
 * Lawyer Hub Theme Page
 *
 * @package Lawyer Hub
 */

function lawyer_hub_admin_scripts() {
	wp_dequeue_script('lawyer-hub-custom-scripts');
}
add_action( 'admin_enqueue_scripts', 'lawyer_hub_admin_scripts' );

if ( ! defined( 'LAWYER_HUB_FREE_THEME_URL' ) ) {
	define( 'LAWYER_HUB_FREE_THEME_URL', 'https://www.themespride.com/products/free-lawyer-wordpress-theme' );
}
if ( ! defined( 'LAWYER_HUB_PRO_THEME_URL' ) ) {
	define( 'LAWYER_HUB_PRO_THEME_URL', 'https://www.themespride.com/products/law-firm-wordpress-theme' );
}
if ( ! defined( 'LAWYER_HUB_DEMO_THEME_URL' ) ) {
	define( 'LAWYER_HUB_DEMO_THEME_URL', 'https://page.themespride.com/lawyer-hub-pro/' );
}
if ( ! defined( 'LAWYER_HUB_DOCS_THEME_URL' ) ) {
    define( 'LAWYER_HUB_DOCS_THEME_URL', 'https://page.themespride.com/demo/docs/lawyer-hub-lite/' );
}
if ( ! defined( 'LAWYER_HUB_DOCS_URL' ) ) {
    define( 'LAWYER_HUB_DOCS_URL', 'https://page.themespride.com/demo/docs/lawyer-hub-lite/' );
}
if ( ! defined( 'LAWYER_HUB_RATE_THEME_URL' ) ) {
    define( 'LAWYER_HUB_RATE_THEME_URL', 'https://wordpress.org/support/theme/lawyer-hub/reviews/#new-post' );
}
if ( ! defined( 'LAWYER_HUB_CHANGELOG_THEME_URL' ) ) {
    define( 'LAWYER_HUB_CHANGELOG_THEME_URL', get_template_directory() . '/readme.txt' );
}
if ( ! defined( 'LAWYER_HUB_SUPPORT_THEME_URL' ) ) {
    define( 'LAWYER_HUB_SUPPORT_THEME_URL', 'https://wordpress.org/support/theme/lawyer-hub' );
}
if ( ! defined( 'LAWYER_HUB_THEME_BUNDLE' ) ) {
    define( 'LAWYER_HUB_THEME_BUNDLE', 'https://www.themespride.com/products/wordpress-theme-bundle' );
}

/**
 * Add theme page
 */
function lawyer_hub_menu() {
	add_theme_page( esc_html__( 'About Theme', 'lawyer-hub' ), esc_html__( 'Begin Installation - Import Demo', 'lawyer-hub' ), 'edit_theme_options', 'lawyer-hub-about', 'lawyer_hub_about_display' );
}
add_action( 'admin_menu', 'lawyer_hub_menu' );

/**
 * Display About page
 */
function lawyer_hub_about_display() {
	$lawyer_hub_theme = wp_get_theme();
	?>
	<div class="wrap about-wrap full-width-layout">
		<!-- top-detail -->
		<?php
		// Only show if NOT dismissed
		if ( ! get_option('dismissed-get_started-detail', false ) ) { 
		?>
		    <!-- top-detail -->
		    <div class="detail-theme" id="detail-theme-box">
		        <button type="button" class="close-btn" id="close-detail-theme">
		            <?php esc_html_e( 'Dismiss', 'lawyer-hub' ); ?>
		        </button>
		        <?php 
				$lawyer_hub_theme = wp_get_theme(); 
				?>
				<h2>
				    <?php 
				    echo sprintf(
				        esc_html__( 'Hey, thank you for installing the %s theme!', 'lawyer-hub' ), 
				        esc_html( $lawyer_hub_theme->get( 'Name' ) )
				    ); 
				    ?>
				</h2>

		        <a href="<?php echo esc_url( admin_url( 'themes.php?page=lawyer-hub-about' ) ); ?>">
		            <?php esc_html_e( 'Get Started', 'lawyer-hub' ); ?>
		        </a>
		        <a href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>" class="site-editor" target="_blank">
		            <?php esc_html_e( 'Site Editor', 'lawyer-hub' ); ?>
		        </a>

		        <a href="<?php echo esc_url( LAWYER_HUB_PRO_THEME_URL ); ?>" class="pro-btn-theme" target="_blank">
		            <?php esc_html_e( 'Upgrade to Pro', 'lawyer-hub' ); ?>
		        </a>

		        <a href="<?php echo esc_url( LAWYER_HUB_THEME_BUNDLE ); ?>" class="rate-theme" target="_blank">
		            <?php esc_html_e( 'Get Bundle', 'lawyer-hub' ); ?>
		        </a>
		    </div>
		<?php 
		} ?>
		
		<nav class="nav-tab-wrapper wp-clearfix lawyer-hub-tab-sec" aria-label="<?php esc_attr_e( 'Secondary menu', 'lawyer-hub' ); ?>">
		    <button class="nav-tab lawyer-hub-tablinks active"
		        onclick="lawyer_hub_open_tab(event, 'tp_demo_import')">
		        <?php esc_html_e( 'One Click Demo Import', 'lawyer-hub' ); ?>
		    </button>

		    <button class="nav-tab lawyer-hub-tablinks"
		        onclick="lawyer_hub_open_tab(event, 'tp_about_theme')">
		        <?php esc_html_e( 'About', 'lawyer-hub' ); ?>
		    </button>

		    <button class="nav-tab lawyer-hub-tablinks"
		        onclick="lawyer_hub_open_tab(event, 'tp_free_vs_pro')">
		        <?php esc_html_e( 'Compare Free Vs Pro', 'lawyer-hub' ); ?>
		    </button>

		    <button class="nav-tab lawyer-hub-tablinks"
		        onclick="lawyer_hub_open_tab(event, 'tp_changelog')">
		        <?php esc_html_e( 'Changelog', 'lawyer-hub' ); ?>
		    </button>

		    <button class="nav-tab lawyer-hub-tablinks blink wp-bundle"
		        onclick="lawyer_hub_open_tab(event, 'tp_get_bundle')">
		        <?php esc_html_e( 'Get WordPress Theme Bundle (120+ Themes)', 'lawyer-hub' ); ?>
		    </button>
		</nav>

		<?php
			lawyer_hub_demo_import();

			lawyer_hub_main_screen();

			lawyer_hub_changelog_screen();

			lawyer_hub_free_vs_pro();

			lawyer_hub_get_bundle();
		?>

		<p class="actions">
			<a target="_blank"href="<?php echo esc_url( LAWYER_HUB_FREE_THEME_URL ); ?>" class="theme-info-btn" target="_blank" target="_blank"><?php esc_html_e( 'Theme Info', 'lawyer-hub' ); ?></a>
			<a target="_blank" href="<?php echo esc_url( LAWYER_HUB_DEMO_THEME_URL ); ?>" class="view-demo" target="_blank"><?php esc_html_e( 'View Demo', 'lawyer-hub' ); ?></a>
			<a target="_blank" href="<?php echo esc_url( LAWYER_HUB_DOCS_THEME_URL ); ?>" class="instruction-theme" target="_blank"><?php esc_html_e( 'Theme Documentation', 'lawyer-hub' ); ?></a>
			<a target="_blank" href="<?php echo esc_url( LAWYER_HUB_PRO_THEME_URL ); ?>" class="pro-btn-theme" target="_blank"><?php esc_html_e( 'Upgrade to pro', 'lawyer-hub' ); ?></a>
		</p>

		<h1><?php echo esc_html( $lawyer_hub_theme ); ?></h1>
		<div class="about-theme">
			<div class="theme-description">
				<p class="about-text content">
					<?php
					// Remove last sentence of description.
					$lawyer_hub_description = explode( '. ', $lawyer_hub_theme->get( 'Description' ) );
					array_pop( $lawyer_hub_description );

					$lawyer_hub_description = implode( '. ', $lawyer_hub_description );

					echo esc_html( $lawyer_hub_description . '.' );
				?></p>
				
			</div>
			<div class="theme-screenshot">
				<img src="<?php echo esc_url( $lawyer_hub_theme->get_screenshot() ); ?>" />
			</div>
		</div>
	<?php
}


/**
 * Output the Demo Import screen (JS tab based).
 */
function lawyer_hub_demo_import() {

	/* ---------------------------------------------------------
	 * THEME-SPECIFIC OPTION KEYS (IMPORTANT FIX)
	 * --------------------------------------------------------- */
	$theme_slug           = get_stylesheet(); // parent or child automatically
	$demo_import_option   = $theme_slug . '_demo_imported';
	$demo_popup_option    = $theme_slug . '_demo_popup_shown';

	/* ---------------------------------------------------------
	 * LOAD WHIZZIE (CHILD FIRST, THEN PARENT)
	 * --------------------------------------------------------- */
	$child_whizzie  = get_stylesheet_directory() . '/inc/whizzie.php';
	$parent_whizzie = get_template_directory() . '/inc/whizzie.php';

	if ( file_exists( $child_whizzie ) ) {
		require_once $child_whizzie;
	} elseif ( file_exists( $parent_whizzie ) ) {
		require_once $parent_whizzie;
	}

	/* ---------------------------------------------------------
	 * SAVE DEMO IMPORT STATUS
	 * --------------------------------------------------------- */
	if ( isset( $_GET['import-demo'] ) && $_GET['import-demo'] === 'true' ) {
		update_option( $demo_import_option, true );
		delete_option( $demo_popup_option ); // allow popup once
	}

	/* ---------------------------------------------------------
	 * RESET DEMO (OPTIONAL)
	 * --------------------------------------------------------- */
	if ( isset( $_GET['reset-demo'] ) && $_GET['reset-demo'] === 'true' ) {
		delete_option( $demo_import_option );
		delete_option( $demo_popup_option );
		wp_safe_redirect( remove_query_arg( 'reset-demo' ) );
		exit;
	}

	$demo_imported  = get_option( $demo_import_option, false );
	$popup_shown    = get_option( $demo_popup_option, false );
	$show_popup_now = ( $demo_imported && ! $popup_shown );
	?>

	<div id="tp_demo_import" class="lawyer-hub-tabcontent">

	<?php if ( $demo_imported ) : ?>

		<!-- ================= SUCCESS STATE ================= -->
		<div class="content-row">
			<div class="col card success-demo text-center">
				<p class="imp-success">
					<?php esc_html_e( 'Demo Imported Successfully!', 'lawyer-hub' ); ?>
				</p><br>

				<div class="demo-button-three">
					<a class="button button-primary" href="<?php echo esc_url( home_url('/') ); ?>" target="_blank">
						<?php esc_html_e( 'View Site', 'lawyer-hub' ); ?>
					</a>

					<a class="button button-primary" href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>" target="_blank">
						<?php esc_html_e( 'Edit Site', 'lawyer-hub' ); ?>
					</a>

					<?php if ( defined( 'LAWYER_HUB_DOCS_THEME_URL' ) ) : ?>
						<a class="button button-primary" href="<?php echo esc_url( LAWYER_HUB_DOCS_THEME_URL ); ?>" target="_blank">
							<?php esc_html_e( 'Documentation', 'lawyer-hub' ); ?>
						</a>
					<?php endif; ?>
				</div>
			</div>
			<div class="theme-price col card">
			<div class="price-flex">
				<div class="price-content">
					<?php 
						$lawyer_hub_theme = wp_get_theme();
						?>
						<h3>
						    <?php 
						    echo sprintf(
						        esc_html__( '%s WordPress Theme ', 'lawyer-hub' ),
						        esc_html( $lawyer_hub_theme->get( 'Name' ) )
						    ); 
						    ?>
						</h3>
					<p class="main-flash"><?php 
					  printf(
					    /* translators: 1: bold FLASH DEAL text, 2: discount code */
					    esc_html__( '%1$s - Get 20%% Discount on All Themes, Use code %2$s', 'lawyer-hub' ),
					    '<strong class="bold-text">' . esc_html__( 'FLASH DEAL', 'lawyer-hub' ) . '</strong>',
					    '<strong class="bold-text">' . esc_html__( 'QBSALE20', 'lawyer-hub' ) . '</strong>'
					  ); 
					  ?></p>
					 <p>
					  <del><?php echo esc_html__( '$59', 'lawyer-hub' ); ?></del>
					  <strong class="bold-price"><?php echo esc_html__( '$39', 'lawyer-hub' ); ?></strong>
					</p>
				</div>
				<div class="price-img">
					<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/theme-img.png" alt="theme-img" />
				</div>
			</div>
			<div class="main-pro-price">
				<?php 
					$lawyer_hub_theme = wp_get_theme();
					?>
				<a target="_blank" href="<?php echo esc_url( LAWYER_HUB_PRO_THEME_URL ); ?>" class="pro-btn-theme price-pro">
				    <?php 
				    echo sprintf(
				        esc_html__( 'Upgrade To Premium %s Theme', 'lawyer-hub' ),
				        esc_html( $lawyer_hub_theme->get( 'Name' ) )
				    ); 
				    ?>
				</a>
			</div>
		</div>
		</div>

	<?php else : ?>

		<!-- ================= INSTALL STATE ================= -->
		<div class="content-row">
			<div class="col card demo-btn text-center">
				<form id="demo-importer-form" method="post">
					<p class="demo-title"><?php esc_html_e( 'Demo Importer', 'lawyer-hub' ); ?></p>
					<p class="demo-des">
						<?php esc_html_e( 'Import demo content with one click. You can customize everything later.', 'lawyer-hub' ); ?>
					</p>

					<button type="submit" class="button button-primary">
						<?php esc_html_e( 'Begin Installation – Import Demo', 'lawyer-hub' ); ?>
					</button>

					<div id="page-loader" style="display:none;margin-top:15px;">
						<img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/loader.png' ); ?>" width="40">
						<p><?php esc_html_e( 'Importing demo, please wait...', 'lawyer-hub' ); ?></p>
					</div>
				</form>
			</div>
			<div class="theme-price col card">
			<div class="price-flex">
				<div class="price-content">
					<?php 
						$lawyer_hub_theme = wp_get_theme();
						?>
						<h3>
						    <?php 
						    echo sprintf(
						        esc_html__( '%s WordPress Theme ', 'lawyer-hub' ),
						        esc_html( $lawyer_hub_theme->get( 'Name' ) )
						    ); 
						    ?>
						</h3>
					<p class="main-flash"><?php 
					  printf(
					    /* translators: 1: bold FLASH DEAL text, 2: discount code */
					    esc_html__( '%1$s - Get 20%% Discount on All Themes, Use code %2$s', 'lawyer-hub' ),
					    '<strong class="bold-text">' . esc_html__( 'FLASH DEAL', 'lawyer-hub' ) . '</strong>',
					    '<strong class="bold-text">' . esc_html__( 'QBSALE20', 'lawyer-hub' ) . '</strong>'
					  ); 
					  ?></p>
					 <p>
					  <del><?php echo esc_html__( '$59', 'lawyer-hub' ); ?></del>
					  <strong class="bold-price"><?php echo esc_html__( '$39', 'lawyer-hub' ); ?></strong>
					</p>
				</div>
				<div class="price-img">
					<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/theme-img.png" alt="theme-img" />
				</div>
			</div>
			<div class="main-pro-price">
				<?php 
					$lawyer_hub_theme = wp_get_theme();
					?>
				<a target="_blank" href="<?php echo esc_url( LAWYER_HUB_PRO_THEME_URL ); ?>" class="pro-btn-theme price-pro">
				    <?php 
				    echo sprintf(
				        esc_html__( 'Upgrade To Premium %s Theme', 'lawyer-hub' ),
				        esc_html( $lawyer_hub_theme->get( 'Name' ) )
				    ); 
				    ?>
				</a>
			</div>
		</div>
		</div>

		<script>
		jQuery(function($){
			$('#demo-importer-form').on('submit', function(e){
				e.preventDefault();
				if(confirm('<?php esc_html_e( 'Are you sure you want to import demo content?', 'lawyer-hub' ); ?>')){
					$('#page-loader').show();
					let url = new URL(window.location.href);
					url.searchParams.set('import-demo','true');
					window.location.href = url;
				}
			});
		});
		</script>

	<?php endif; ?>

	</div>

	<?php if ( $show_popup_now ) : ?>
	<!-- ================= SUCCESS POPUP (ONCE PER THEME) ================= -->
	<div id="demo-success-modal" class="modal-overlay">
		<div class="modal-content">
			<img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/demo-icon.png' ); ?>" alt="">
			<h2><?php esc_html_e( 'Demo Successfully Imported!', 'lawyer-hub' ); ?></h2>

			<div class="modal-buttons">
				<a class="button button-primary" href="<?php echo esc_url( home_url('/') ); ?>" target="_blank">
					<?php esc_html_e( 'View Site', 'lawyer-hub' ); ?>
				</a>
				<a class="button" href="<?php echo esc_url( admin_url( 'themes.php?page=lawyer-hub-about' ) ); ?>">
					<?php esc_html_e( 'Go To Dashboard', 'lawyer-hub' ); ?>
				</a>
			</div>
		</div>
	</div>

	<script>
	document.addEventListener("DOMContentLoaded", function () {
		const modal = document.getElementById("demo-success-modal");
		if (!modal) return;

		modal.style.display = "flex";

		fetch('<?php echo esc_url( admin_url( 'admin-ajax.php?action=lawyer_hub_popup_done' ) ); ?>');

		modal.querySelectorAll('a.button').forEach(btn => {
			btn.addEventListener('click', () => modal.style.display = "none");
		});
	});
	</script>
	<?php endif; ?>
<?php
}

/**
 * Output the main about screen.
 */
function lawyer_hub_main_screen() {
	
	?>
	<div id="tp_about_theme" class="lawyer-hub-tabcontent">
		<div class="content-row">
			<div class="feature-section two-col">
				<div class="col card">
					<h2 class="title"><?php esc_html_e( 'Theme Customizer', 'lawyer-hub' ); ?></h2>
					<p><?php esc_html_e( 'All Theme Options are available via Customize screen.', 'lawyer-hub' ) ?></p>
					<p><a target="_blank" href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>" class="button button-primary"><?php esc_html_e( 'Customize', 'lawyer-hub' ); ?></a></p>
				</div>

				<div class="col card">
					<h2 class="title"><?php esc_html_e( 'Got theme support question?', 'lawyer-hub' ); ?></h2>
					<p><?php esc_html_e( 'Get genuine support from genuine people. Whether it\'s customization or compatibility, our seasoned developers deliver tailored solutions to your queries.', 'lawyer-hub' ) ?></p>
					<p><a target="_blank" href="<?php echo esc_url( LAWYER_HUB_SUPPORT_THEME_URL ); ?>" class="button button-primary"><?php esc_html_e( 'Support Forum', 'lawyer-hub' ); ?></a></p>
				</div>
			</div>
			<div class="theme-price col card">
				<div class="price-flex">
					<div class="price-content">
						<?php 
						$lawyer_hub_theme = wp_get_theme();
						?>
						<h3>
						    <?php 
						    echo sprintf(
						        esc_html__( '%s WordPress Theme ', 'lawyer-hub' ),
						        esc_html( $lawyer_hub_theme->get( 'Name' ) )
						    ); 
						    ?>
						</h3>
						<p class="main-flash"><?php 
						  printf(
						    /* translators: 1: bold FLASH DEAL text, 2: discount code */
						    esc_html__( '%1$s - Get 20%% Discount on All Themes, Use code %2$s', 'lawyer-hub' ),
						    '<strong class="bold-text">' . esc_html__( 'FLASH DEAL', 'lawyer-hub' ) . '</strong>',
						    '<strong class="bold-text">' . esc_html__( 'QBSALE20', 'lawyer-hub' ) . '</strong>'
						  ); 
						  ?></p>
						 <p>
						  <del><?php echo esc_html__( '$59', 'lawyer-hub' ); ?></del>
						  <strong class="bold-price"><?php echo esc_html__( '$39', 'lawyer-hub' ); ?></strong>
						</p>
					</div>
					<div class="price-img">
						<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/theme-img.png" alt="theme-img" />
					</div>
				</div>
				<div class="main-pro-price">
					<?php 
					$lawyer_hub_theme = wp_get_theme();
					?>
					<a target="_blank" href="<?php echo esc_url( LAWYER_HUB_PRO_THEME_URL ); ?>" class="pro-btn-theme price-pro">
					    <?php 
					    echo sprintf(
					        esc_html__( 'Upgrade To Premium %s Theme', 'lawyer-hub' ),
					        esc_html( $lawyer_hub_theme->get( 'Name' ) )
					    ); 
					    ?>
					</a>
				</div>
			</div>
		</div>
	</div>
	<?php
}

/**
 * Output the changelog screen.
 */
function lawyer_hub_changelog_screen() {
		global $wp_filesystem;
	?>
	<div id="tp_changelog" class="lawyer-hub-tabcontent">
	<div class="content-row">
		<div class="wrap about-wrap change-log">
			<?php
				$changelog_file = apply_filters( 'lawyer_hub_changelog_file', LAWYER_HUB_CHANGELOG_THEME_URL );
				// Check if the changelog file exists and is readable.
				if ( $changelog_file && is_readable( $changelog_file ) ) {
					WP_Filesystem();
					$changelog = $wp_filesystem->get_contents( $changelog_file );
					$changelog_list = lawyer_hub_parse_changelog( $changelog );

					echo wp_kses_post( $changelog_list );
				}
			?>
		</div>
		<div class="theme-price col card">
				<div class="price-flex">
					<div class="price-content">
						<?php 
						$lawyer_hub_theme = wp_get_theme();
						?>
						<h3>
						    <?php 
						    echo sprintf(
						        esc_html__( '%s WordPress Theme ', 'lawyer-hub' ),
						        esc_html( $lawyer_hub_theme->get( 'Name' ) )
						    ); 
						    ?>
						</h3>
						<p class="main-flash"><?php 
						  printf(
						    /* translators: 1: bold FLASH DEAL text, 2: discount code */
						    esc_html__( '%1$s - Get 20%% Discount on All Themes, Use code %2$s', 'lawyer-hub' ),
						    '<strong class="bold-text">' . esc_html__( 'FLASH DEAL', 'lawyer-hub' ) . '</strong>',
						    '<strong class="bold-text">' . esc_html__( 'QBSALE20', 'lawyer-hub' ) . '</strong>'
						  ); 
						  ?></p>
						 <p>
						  <del><?php echo esc_html__( '$59', 'lawyer-hub' ); ?></del>
						  <strong class="bold-price"><?php echo esc_html__( '$39', 'lawyer-hub' ); ?></strong>
						</p>
					</div>
					<div class="price-img">
						<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/theme-img.png" alt="theme-img" />
					</div>
				</div>
				<div class="main-pro-price">
					<?php 
					$lawyer_hub_theme = wp_get_theme();
					?>
					<a target="_blank" href="<?php echo esc_url( LAWYER_HUB_PRO_THEME_URL ); ?>" class="pro-btn-theme price-pro">
					    <?php 
					    echo sprintf(
					        esc_html__( 'Upgrade To Premium %s Theme', 'lawyer-hub' ),
					        esc_html( $lawyer_hub_theme->get( 'Name' ) )
					    ); 
					    ?>
					</a>
				</div>
			</div>
	</div>
</div>
	<?php
}

/**
 * Parse changelog from readme file.
 * @param  string $content
 * @return string
 */
function lawyer_hub_parse_changelog( $content ) {
	// Explode content with ==  to juse separate main content to array of headings.
	$content = explode ( '== ', $content );

	$changelog_isolated = '';

	// Get element with 'Changelog ==' as starting string, i.e isolate changelog.
	foreach ( $content as $key => $value ) {
		if (strpos( $value, 'Changelog ==') === 0) {
	    	$changelog_isolated = str_replace( 'Changelog ==', '', $value );
	    }
	}

	// Now Explode $changelog_isolated to manupulate it to add html elements.
	$changelog_array = explode( '= ', $changelog_isolated );

	// Unset first element as it is empty.
	unset( $changelog_array[0] );

	$changelog = '<pre class="changelog">';

	foreach ( $changelog_array as $value) {
		// Replace all enter (\n) elements with </span><span> , opening and closing span will be added in next process.
		$value = preg_replace( '/\n+/', '</span><span>', $value );

		// Add openinf and closing div and span, only first span element will have heading class.
		$value = '<div class="block"><span class="heading">= ' . $value . '</span></div>';

		// Remove empty <span></span> element which newr formed at the end.
		$changelog .= str_replace( '<span></span>', '', $value );
	}

	$changelog .= '</pre>';

	return wp_kses_post( $changelog );
}

/**
 * Import Demo data for theme using catch themes demo import plugin
 */
function lawyer_hub_free_vs_pro() {
	?>
	<div id="tp_free_vs_pro" class="lawyer-hub-tabcontent">
	<div class="content-row">
		<div class="wrap about-wrap change-log">
			<p class="about-description"><?php esc_html_e( 'View Free vs Pro Table below:', 'lawyer-hub' ); ?></p>
			<div class="vs-theme-table">
				<table>
					<thead>
						<tr><th scope="col"></th>
							<th class="head" scope="col"><?php esc_html_e( 'Free Theme', 'lawyer-hub' ); ?></th>
							<th class="head" scope="col"><?php esc_html_e( 'Pro Theme', 'lawyer-hub' ); ?></th>
						</tr>
					</thead>
					<tbody>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><span><?php esc_html_e( 'Theme Demo Set Up', 'lawyer-hub' ); ?></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Additional Templates, Color options and Fonts', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-saved"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Included Demo Content', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-saved"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Section Ordering', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-no-alt"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Multiple Sections', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-no-alt"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Additional Plugins', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-saved"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Premium Technical Support', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-no-alt"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Access to Support Forums', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-no-alt"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Free updates', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-saved"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Unlimited Domains', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-saved"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Responsive Design', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-saved"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td headers="features" class="feature"><?php esc_html_e( 'Live Customizer', 'lawyer-hub' ); ?></td>
							<td><span class="dashicons dashicons-saved"></span></td>
							<td><span class="dashicons dashicons-saved"></span></td>
						</tr>
						<tr class="odd" scope="row">
							<td class="feature feature--empty"></td>
							<td class="feature feature--empty"></td>
							<td headers="comp-2" class="td-btn-2"><a class="sidebar-button single-btn" href="<?php echo esc_url(LAWYER_HUB_PRO_THEME_URL);?>" target="_blank"><?php esc_html_e( 'Go For Premium', 'lawyer-hub' ); ?></a></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class="theme-price col card">
			<div class="price-flex">
				<div class="price-content">
					<?php 
						$lawyer_hub_theme = wp_get_theme();
						?>
						<h3>
						    <?php 
						    echo sprintf(
						        esc_html__( '%s WordPress Theme ', 'lawyer-hub' ),
						        esc_html( $lawyer_hub_theme->get( 'Name' ) )
						    ); 
						    ?>
						</h3>
					<p class="main-flash"><?php 
					  printf(
					    /* translators: 1: bold FLASH DEAL text, 2: discount code */
					    esc_html__( '%1$s - Get 20%% Discount on All Themes, Use code %2$s', 'lawyer-hub' ),
					    '<strong class="bold-text">' . esc_html__( 'FLASH DEAL', 'lawyer-hub' ) . '</strong>',
					    '<strong class="bold-text">' . esc_html__( 'QBSALE20', 'lawyer-hub' ) . '</strong>'
					  ); 
					  ?></p>
					 <p>
					  <del><?php echo esc_html__( '$59', 'lawyer-hub' ); ?></del>
					  <strong class="bold-price"><?php echo esc_html__( '$39', 'lawyer-hub' ); ?></strong>
					</p>
				</div>
				<div class="price-img">
					<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/theme-img.png" alt="theme-img" />
				</div>
			</div>
			<div class="main-pro-price">
				<?php 
					$lawyer_hub_theme = wp_get_theme();
					?>
				<a target="_blank" href="<?php echo esc_url( LAWYER_HUB_PRO_THEME_URL ); ?>" class="pro-btn-theme price-pro">
				    <?php 
				    echo sprintf(
				        esc_html__( 'Upgrade To Premium %s Theme', 'lawyer-hub' ),
				        esc_html( $lawyer_hub_theme->get( 'Name' ) )
				    ); 
				    ?>
				</a>
			</div>
		</div>
	</div>
</div>
	<?php
}

function lawyer_hub_get_bundle() {
	?>
	<div id="tp_get_bundle" class="lawyer-hub-tabcontent">
		<div class="wrap about-wrap theme-main-bundle">
			<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/theme-bundle.png" alt="theme-bundle" width="300" height="300" />
			<p class="bundle-link"><a target="_blank" href="<?php echo esc_url( LAWYER_HUB_THEME_BUNDLE ); ?>" class="button button-primary bundle-btn"><?php esc_html_e( 'Buy WordPress Theme Bundle (120+ Themes)', 'lawyer-hub' ); ?></a></p>
		</div>
	</div>
	<?php
}PK���\�3�!	!	custom-header.phpnu�[���<?php
/**
 * Custom header implementation
 *
 * @link https://codex.wordpress.org/Custom_Headers
 *
 * @package Lawyer Hub
 * @subpackage lawyer_hub
 */

function lawyer_hub_custom_header_setup() {
    register_default_headers( array(
        'default-image' => array(
            'url'           => get_template_directory_uri() . '/assets/images/sliderimage.png',
            'thumbnail_url' => get_template_directory_uri() . '/assets/images/sliderimage.png',
            'description'   => __( 'Default Header Image', 'lawyer-hub' ),
        ),
    ) );
}
add_action( 'after_setup_theme', 'lawyer_hub_custom_header_setup' );

/**
 * Styles the header image based on Customizer settings.
 */
function lawyer_hub_header_style() {
    $lawyer_hub_header_image = get_header_image() ? get_header_image() : get_template_directory_uri() . '/assets/images/sliderimage.png';

    $lawyer_hub_height     = get_theme_mod( 'lawyer_hub_header_image_height', 350 );
    $lawyer_hub_position   = get_theme_mod( 'lawyer_hub_header_background_position', 'center' );
    $lawyer_hub_attachment = get_theme_mod( 'lawyer_hub_header_background_attachment', 1 ) ? 'fixed' : 'scroll';

    $lawyer_hub_custom_css = "
        .header-img, .single-page-img, .external-div .box-image-page img, .external-div {
            background-image: url('" . esc_url( $lawyer_hub_header_image ) . "');
            background-size: cover;
            height: " . esc_attr( $lawyer_hub_height ) . "px;
            background-position: " . esc_attr( $lawyer_hub_position ) . ";
            background-attachment: " . esc_attr( $lawyer_hub_attachment ) . ";
        }

        @media (max-width: 1000px) {
            .header-img, .single-page-img, .external-div .box-image-page img,.external-div,.featured-image{
                height: 250px !important;
            }
            .box-text h2{
                font-size: 27px;
            }
        }
    ";

    wp_add_inline_style( 'lawyer-hub-style', $lawyer_hub_custom_css );
}
add_action( 'wp_enqueue_scripts', 'lawyer_hub_header_style' );

/**
 * Enqueue the main theme stylesheet.
 */
function lawyer_hub_enqueue_styles() {
    wp_enqueue_style( 'lawyer-hub-style', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'lawyer_hub_enqueue_styles' );PK���\��Ϯ�
�
section-pro.phpnu�[���<?php
/**
 * Pro customizer section.
 *
 * @since  1.0.0
 * @access public
 */
class Lawyer_Hub_Customize_Section_Pro extends WP_Customize_Section {

	/**
	 * The type of customize section being rendered.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $type = 'lawyer-hub';

	/**
	 * Custom button text to output.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $pro_text = '';

	/**
	 * Custom pro button URL.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $pro_url = '';

	/**
	 * Add custom parameters to pass to the JS via JSON.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function json() {
		$json = parent::json();

		$json['pro_text'] = $this->pro_text;
		$json['pro_url']  = esc_url( $this->pro_url );

		return $json;
	}

	/**
	 * Outputs the Underscore.js template.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	protected function render_template() { ?>

		<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">

			<h3 class="accordion-section-title">
				{{ data.title }}

				<# if ( data.pro_text && data.pro_url ) { #>
					<a href="{{ data.pro_url }}" class="button button-secondary alignright" target="_blank">{{ data.pro_text }}</a>
				<# } #>
			</h3>
		</li>
	<?php }
}


class Lawyer_Hub_Button extends WP_Customize_Section {

	/**
	 * The type of customize section being rendered.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $type = 'wptrt-button';

	/**
	 * Custom button text to output.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $button_text = '';

	/**
	 * Custom button URL to output.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $button_url = '';

	/**
	 * Default priority of the section.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $priority = 999;

	/**
	 * Add custom parameters to pass to the JS via JSON.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return array
	 */
	public function json() {

		$json       = parent::json();
		$theme      = wp_get_theme();
		$button_url = $this->button_url;

		// Fall back to the `Theme URI` defined in `style.css`.
		if ( ! $this->button_url && $theme->get( 'ThemeURI' ) ) {

			$button_url = $theme->get( 'ThemeURI' );

		// Fall back to the `Author URI` defined in `style.css`.
		} elseif ( ! $this->button_url && $theme->get( 'AuthorURI' ) ) {

			$button_url = $theme->get( 'AuthorURI' );
		}

		$json['button_text'] = $this->button_text ? $this->button_text : $theme->get( 'Name' );
		$json['button_url']  = esc_url( $button_url );

		return $json;
	}

	/**
	 * Outputs the Underscore.js template.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	protected function render_template() { ?>

		<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">

			<h3 class="accordion-section-title">
				{{ data.title }}

				<# if ( data.button_text && data.button_url ) { #>
					<a href="{{ data.button_url }}" class="button button-secondary alignright" target="_blank" rel="external nofollow noopener noreferrer">{{ data.button_text }}</a>
				<# } #>
			</h3>
		</li>
	<?php }
}PK���\��������#TGM/class-tgm-plugin-activation.phpnu�[���PK���\읁!UU	�TGM/tgm.phpnu�[���PK���\K�U�uEuE��whizzie.phpnu�[���PK���\��>I)template-functions.phpnu�[���PK���\p �KK�-controls/sortable-control.phpnu�[���PK���\�<��	�	!F:controls/range-slider-control.phpnu�[���PK���\��w��	�	%kDcontrols/customize-control-toggle.phpnu�[���PK���\䩛܈k�k�Ncontrols/icon-changer.phpnu�[���PK���\�����f�fu�customizer.phpnu�[���PK���\YR'd!template-tags.phpnu�[���PK���\X0�oSDSD�(wptt-webfont-loader.phpnu�[���PK���\�9��]m]mNmabout-theme.phpnu�[���PK���\�3�!	!	��custom-header.phpnu�[���PK���\��Ϯ�
�
L�section-pro.phpnu�[���PK�G�