Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-popup   php

Repository URL to install this package:

Version: 1.5.2 

/ elementor-finder / categories / popup-finder-category.php

<?php

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

if ( ! class_exists( 'Jet_Popup_Finder_Category' ) ) {
	/**
	 * Settings Category
	 *
	 * Provides items related to Elementor's settings.
	 */
	class Jet_Popup_Finder_Category extends \Elementor\Core\Common\Modules\Finder\Base_Category {

		/**
		 * Get title.
		 *
		 * @access public
		 *
		 * @return string
		 */
		public function get_title() {
			return __( 'JetPopup Settings', 'jet-popup' );
		}

		/**
		 * Get category items.
		 *
		 * @access public
		 *
		 * @param array $options
		 *
		 * @return array
		 */
		public function get_category_items( array $options = [] ) {
			return [
				'jet-popup-settings' => [
					'title'    => __( 'JetPopup Settings', 'jet-popup' ),
					'url'      => jet_popup()->settings->get_settings_page_url(),
					'keywords' => [ 'general', 'popup', 'settings', 'jet', 'mailchimp' ],
				],
				'jet-popup-library' => [
					'title'    => __( 'JetPopup Library', 'jet-popup' ),
					'url'      => jet_popup()->popup_library->get_library_page_url(),
					'icon'     => 'folder',
					'keywords' => [ 'popup', 'library', 'jet', 'create', 'new' ],
				],
			];
		}
	}
}