Plugin Directory

Changeset 2955951


Ignore:
Timestamp:
08/21/2023 03:22:58 AM (3 years ago)
Author:
surror
Message:

Update to version 1.2.0 from GitHub

Location:
easy-search
Files:
80 added
10 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • easy-search/tags/1.2.0/easy-search.php

    r2319514 r2955951  
    11<?php
    22/**
    3  * Plugin Name: Easy Search
    4  * Description: Zero configuration Gutenberg block for quick search the post, pages, and custom post types. Not using the Gutenberg block then simply use the shortcode <code>[easy_search]</code> anywhere.
    5  * Plugin URI: https://github.com/maheshwaghmare/easy-search/
    6  * Author: Mahesh M. Waghmare
    7  * Author URI: https://maheshwaghmare.com/
    8  * Version: 1.1.0
    9  * License: GPL2
    10  * Text Domain: easy-search
     3 * Easy Search Plugin.
    114 *
    12  * @package Easy Search
     5 * @package      Easy_Search
     6 * @copyright    Copyright (C) 2014-2023, Surror - dev@surror.com
     7 * @link         https://surror.com
     8 * @since        1.2.0
     9 *
     10 * @wordpress-plugin
     11 * Plugin Name:       Easy Search
     12 * Version:           1.2.0
     13 * Plugin URI:        https://surror.com/easy-search/
     14 * Description:       Zero configuration search box Gutenberg block. 🚀
     15 * Author:            Surror
     16 * Author URI:        https://surror.com/
     17 * License:           GPL v3
     18 * License URI:       https://www.gnu.org/licenses/gpl-3.0.txt
     19 * Text Domain:       easy-search
     20 * Domain Path:       /languages
    1321 */
    1422
    15 // Exit if accessed directly.
    16 if ( ! defined( 'ABSPATH' ) ) {
    17     exit;
     23defined( 'ABSPATH' ) || exit;
     24
     25/**
     26 * Easy_Search class.
     27*
     28* @class Main class of the plugin.
     29*/
     30final class Easy_Search {
     31
     32    /**
     33     * Plugin version.
     34     *
     35     * @var string
     36     */
     37    public $version = '1.2.0';
     38
     39    /**
     40     * The single instance of the class.
     41     *
     42     * @var Easy_Search
     43     */
     44    protected static $instance = null;
     45
     46    /**
     47     * Retrieve main Easy_Search instance.
     48     *
     49     * Ensure only one instance is loaded or can be loaded.
     50     *
     51     * @see easy_search()
     52     * @return Easy_Search
     53     */
     54    public static function get() {
     55        if ( is_null( self::$instance ) && ! ( self::$instance instanceof Easy_Search ) ) {
     56            self::$instance = new Easy_Search();
     57            self::$instance->setup();
     58        }
     59
     60        return self::$instance;
     61    }
     62
     63    /**
     64     * Instantiate the plugin.
     65     */
     66    private function setup() {
     67        // Define plugin constants.
     68        $this->define_constants();
     69
     70        // Include required files.
     71        $this->includes();
     72
     73        // Instantiate classes.
     74        $this->instantiate();
     75
     76        // Loaded action.
     77        do_action( 'easy_search/loaded' );
     78    }
     79
     80    /**
     81     * Define the plugin constants.
     82     */
     83    private function define_constants() {
     84        define( 'EASY_SEARCH_VERSION', $this->version );
     85        define( 'EASY_SEARCH_FILE', __FILE__ );
     86        define( 'EASY_SEARCH_BASE', plugin_basename( EASY_SEARCH_FILE ) );
     87        define( 'EASY_SEARCH_DIR', plugin_dir_path( EASY_SEARCH_FILE ) );
     88        define( 'EASY_SEARCH_URI', plugins_url( '/', EASY_SEARCH_FILE ) );
     89    }
     90
     91    /**
     92     * Include the required files.
     93     */
     94    private function includes() {
     95        include dirname( __FILE__ ) . '/vendor/autoload.php';
     96    }
     97
     98    /**
     99     * Instantiate classes.
     100     */
     101    private function instantiate() {
     102        new \Easy_Search\Block();
     103        new \Easy_Search\Surror\Dashboard();
     104    }
     105
    18106}
    19107
    20 // Set constants.
    21 define( 'EASY_SEARCH_VER', '1.1.0' );
    22 define( 'EASY_SEARCH_FILE', __FILE__ );
    23 define( 'EASY_SEARCH_BASE', plugin_basename( EASY_SEARCH_FILE ) );
    24 define( 'EASY_SEARCH_DIR', plugin_dir_path( EASY_SEARCH_FILE ) );
    25 define( 'EASY_SEARCH_URI', plugins_url( '/', EASY_SEARCH_FILE ) );
     108/**
     109 * Returns the main instance of FAL to prevent the need to use globals.
     110 *
     111 * @return easy_search
     112 */
     113function easy_search() {
     114    return Easy_Search::get();
     115}
    26116
    27 require_once EASY_SEARCH_DIR . 'src/init.php';
     117// Start it.
     118easy_search();
  • easy-search/tags/1.2.0/readme.txt

    r2319514 r2955951  
    11=== Easy Search ===
    2 Contributors: Mahesh901122
     2Contributors: surror
    33Tags: gutenberg, search, ajax search, quick search, autocomplete
    4 Donate link: https://www.paypal.me/mwaghmare7/
    5 Tested up to: 5.4
    6 Stable tag: 1.1.0
     4Donate link: https://www.paypal.me/surror/
     5Tested up to: 6.2.2
     6Stable tag: 1.2.0
    77Requires at least: 5.0
    88Requires PHP: 7.0
     
    3030== Changelog ==
    3131
     32= 1.2.0 =
     33* Improvements: Minor changes
     34
    3235= 1.1.0 =
    3336* New: Added shortcode support `[easy_search]` to show the search box. Also, Use parameter `placeholder` to change the placeholder and `subtype` parameter to search from the specific post types.
    3437
    35 * Initial release.
    36 
    3738= 1.0.0 =
    3839* Initial release.
  • easy-search/trunk/easy-search.php

    r2319514 r2955951  
    11<?php
    22/**
    3  * Plugin Name: Easy Search
    4  * Description: Zero configuration Gutenberg block for quick search the post, pages, and custom post types. Not using the Gutenberg block then simply use the shortcode <code>[easy_search]</code> anywhere.
    5  * Plugin URI: https://github.com/maheshwaghmare/easy-search/
    6  * Author: Mahesh M. Waghmare
    7  * Author URI: https://maheshwaghmare.com/
    8  * Version: 1.1.0
    9  * License: GPL2
    10  * Text Domain: easy-search
     3 * Easy Search Plugin.
    114 *
    12  * @package Easy Search
     5 * @package      Easy_Search
     6 * @copyright    Copyright (C) 2014-2023, Surror - dev@surror.com
     7 * @link         https://surror.com
     8 * @since        1.2.0
     9 *
     10 * @wordpress-plugin
     11 * Plugin Name:       Easy Search
     12 * Version:           1.2.0
     13 * Plugin URI:        https://surror.com/easy-search/
     14 * Description:       Zero configuration search box Gutenberg block. 🚀
     15 * Author:            Surror
     16 * Author URI:        https://surror.com/
     17 * License:           GPL v3
     18 * License URI:       https://www.gnu.org/licenses/gpl-3.0.txt
     19 * Text Domain:       easy-search
     20 * Domain Path:       /languages
    1321 */
    1422
    15 // Exit if accessed directly.
    16 if ( ! defined( 'ABSPATH' ) ) {
    17     exit;
     23defined( 'ABSPATH' ) || exit;
     24
     25/**
     26 * Easy_Search class.
     27*
     28* @class Main class of the plugin.
     29*/
     30final class Easy_Search {
     31
     32    /**
     33     * Plugin version.
     34     *
     35     * @var string
     36     */
     37    public $version = '1.2.0';
     38
     39    /**
     40     * The single instance of the class.
     41     *
     42     * @var Easy_Search
     43     */
     44    protected static $instance = null;
     45
     46    /**
     47     * Retrieve main Easy_Search instance.
     48     *
     49     * Ensure only one instance is loaded or can be loaded.
     50     *
     51     * @see easy_search()
     52     * @return Easy_Search
     53     */
     54    public static function get() {
     55        if ( is_null( self::$instance ) && ! ( self::$instance instanceof Easy_Search ) ) {
     56            self::$instance = new Easy_Search();
     57            self::$instance->setup();
     58        }
     59
     60        return self::$instance;
     61    }
     62
     63    /**
     64     * Instantiate the plugin.
     65     */
     66    private function setup() {
     67        // Define plugin constants.
     68        $this->define_constants();
     69
     70        // Include required files.
     71        $this->includes();
     72
     73        // Instantiate classes.
     74        $this->instantiate();
     75
     76        // Loaded action.
     77        do_action( 'easy_search/loaded' );
     78    }
     79
     80    /**
     81     * Define the plugin constants.
     82     */
     83    private function define_constants() {
     84        define( 'EASY_SEARCH_VERSION', $this->version );
     85        define( 'EASY_SEARCH_FILE', __FILE__ );
     86        define( 'EASY_SEARCH_BASE', plugin_basename( EASY_SEARCH_FILE ) );
     87        define( 'EASY_SEARCH_DIR', plugin_dir_path( EASY_SEARCH_FILE ) );
     88        define( 'EASY_SEARCH_URI', plugins_url( '/', EASY_SEARCH_FILE ) );
     89    }
     90
     91    /**
     92     * Include the required files.
     93     */
     94    private function includes() {
     95        include dirname( __FILE__ ) . '/vendor/autoload.php';
     96    }
     97
     98    /**
     99     * Instantiate classes.
     100     */
     101    private function instantiate() {
     102        new \Easy_Search\Block();
     103        new \Easy_Search\Surror\Dashboard();
     104    }
     105
    18106}
    19107
    20 // Set constants.
    21 define( 'EASY_SEARCH_VER', '1.1.0' );
    22 define( 'EASY_SEARCH_FILE', __FILE__ );
    23 define( 'EASY_SEARCH_BASE', plugin_basename( EASY_SEARCH_FILE ) );
    24 define( 'EASY_SEARCH_DIR', plugin_dir_path( EASY_SEARCH_FILE ) );
    25 define( 'EASY_SEARCH_URI', plugins_url( '/', EASY_SEARCH_FILE ) );
     108/**
     109 * Returns the main instance of FAL to prevent the need to use globals.
     110 *
     111 * @return easy_search
     112 */
     113function easy_search() {
     114    return Easy_Search::get();
     115}
    26116
    27 require_once EASY_SEARCH_DIR . 'src/init.php';
     117// Start it.
     118easy_search();
  • easy-search/trunk/readme.txt

    r2319514 r2955951  
    11=== Easy Search ===
    2 Contributors: Mahesh901122
     2Contributors: surror
    33Tags: gutenberg, search, ajax search, quick search, autocomplete
    4 Donate link: https://www.paypal.me/mwaghmare7/
    5 Tested up to: 5.4
    6 Stable tag: 1.1.0
     4Donate link: https://www.paypal.me/surror/
     5Tested up to: 6.2.2
     6Stable tag: 1.2.0
    77Requires at least: 5.0
    88Requires PHP: 7.0
     
    3030== Changelog ==
    3131
     32= 1.2.0 =
     33* Improvements: Minor changes
     34
    3235= 1.1.0 =
    3336* New: Added shortcode support `[easy_search]` to show the search box. Also, Use parameter `placeholder` to change the placeholder and `subtype` parameter to search from the specific post types.
    3437
    35 * Initial release.
    36 
    3738= 1.0.0 =
    3839* Initial release.
Note: See TracChangeset for help on using the changeset viewer.