Plugin Directory

Changeset 1770795


Ignore:
Timestamp:
11/19/2017 02:48:26 PM (8 years ago)
Author:
Den Media
Message:

2.0.0.0

Location:
hiweb-soft-search/trunk
Files:
17 added
4 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • hiweb-soft-search/trunk/hiweb-search-simple.php

    r1500460 r1770795  
    22
    33    /**
    4      * Plugin Name: hiWeb Search Simple
     4     * Plugin Name: hiWeb Soft Search
    55     * Plugin URI: http://hiweb.moscow/search-simple
    66     * Description: Automatically generates meta tag in the post for easy and quick search. It generates a query request.
    7      * Version: 1.0.0.0
     7     * Version: 2.0.0.0
    88     * Author: Den Media
    99     * Author URI: http://hiweb.moscow
     
    1111
    1212
    13     include_once 'inc/class.php';
    14     include_once 'inc/hooks.php';
    15     include_once 'inc/adminmenu.php';
    16     include_once 'inc/scripts.php';
    17     include_once 'inc/ajax.php';
    18     include_once 'inc/metabox.php';
     13    require_once 'include/hiweb_soft_search.php';
     14    require_once 'include/prepare.php';
     15    require_once 'include/post.php';
     16    require_once 'include/query_search.php';
     17    require_once 'include/compare.php';
     18    require_once 'include/define.php';
     19    require_once 'include/hooks.php';
     20    require_once 'include/meta_box.php';
     21    require_once 'include/tools.php';
  • hiweb-soft-search/trunk/inc/ajax.php

    r1500460 r1770795  
    77     */
    88
    9     add_action( 'wp_ajax_hiweb_search', array(hiweb_search(),'ajax') );
     9    //add_action( 'wp_ajax_hiweb_search', array(hiweb_search(),'ajax') );
  • hiweb-soft-search/trunk/inc/class.php

    r1500460 r1770795  
    284284                }
    285285                ///Translite
    286                 global $hiweb_search_trans_symbols;
    287                 if (is_array($hiweb_search_trans_symbols)) {
    288                     global $hiweb_search_trans_symbols_back;
    289                     $hiweb_search_trans_symbols = array_merge($hiweb_search_trans_symbols, array_flip($hiweb_search_trans_symbols), $hiweb_search_trans_symbols_back);
    290                     foreach ($tags[0] as $key => $item) {
    291                         $newItem = strtr($item, $hiweb_search_trans_symbols);
    292                         if ($item != $newItem) $tags[0][] = $newItem;
    293                     }
    294                 }
     286//              global $hiweb_search_trans_symbols;
     287//              if (is_array($hiweb_search_trans_symbols)) {
     288//                  global $hiweb_search_trans_symbols_back;
     289//                  $hiweb_search_trans_symbols = array_merge($hiweb_search_trans_symbols, array_flip($hiweb_search_trans_symbols), $hiweb_search_trans_symbols_back);
     290//                  foreach ($tags[0] as $key => $item) {
     291//                      $newItem = strtr($item, $hiweb_search_trans_symbols);
     292//                      if ($item != $newItem) $tags[0][] = $newItem;
     293//                  }
     294//              }
    295295                $tags[0] = array_unique($tags[0]);
    296296                ////
  • hiweb-soft-search/trunk/inc/define.php

    r1500460 r1770795  
    1818    if (!defined('HIWEB_SEARCH_META_NAME')) define('HIWEB_SEARCH_META_NAME', 'hiweb_search_meta');
    1919    if (!defined('HIWEB_SEARCH_META_DELIMITER')) define('HIWEB_SEARCH_META_DELIMITER', '|');
    20     if (!defined('HIWEB_SEARCH_META_BOX')) define('HIWEB_SEARCH_META_BOX', true); //Показывать метабокс с индексными данными
     20    if (!defined('HIWEB_SEARCH_META_BOX')) define('HIWEB_SEARCH_META_BOX', 1); //Показывать метабокс с индексными данными
    2121    ///
    22     if (!defined('HIWEB_SEARCH_KEY_LENGTH_MIN')) define('HIWEB_SEARCH_KEY_LENGTH_MIN', 3); //Минимальное значение найденого ключа
     22    if (!defined('HIWEB_SEARCH_KEY_LENGTH_MIN')) define('HIWEB_SEARCH_KEY_LENGTH_MIN', 2); //Минимальное значение найденого ключа
    2323    if (!defined('HIWEB_SEARCH_KEY_LENGTH_MAX')) define('HIWEB_SEARCH_KEY_LENGTH_MAX', 96); //Максимальное значение найденого ключа
    24     if (!defined('HIWEB_SEARCH_USE_META')) define('HIWEB_SEARCH_USE_META', true); //Разрешать анализировать мета данные
     24    if (!defined('HIWEB_SEARCH_USE_META')) define('HIWEB_SEARCH_USE_META', false); //Разрешать анализировать мета данные
    2525    if (!defined('HIWEB_SEARCH_META_NAME_ALLOW_SPACE')) define('HIWEB_SEARCH_META_NAME_ALLOW_SPACE', false); //Разрешать анализировать мета данные, начинающиеся на символ "_"
    2626    if (!defined('HIWEB_SEARCH_USE_TAXONOMY')) define('HIWEB_SEARCH_USE_TAXONOMY', true); //Разрешать анализировать таксономии
     
    3535    if (!isset($hiweb_search_post_allow_keys)) {
    3636        global $hiweb_search_post_allow_keys;
    37         $hiweb_search_post_allow_keys = array('post_title', 'post_content', 'post_name');
     37        $hiweb_search_post_allow_keys = array('post_title', 'post_content');
    3838    }
    3939    if (!isset($hiweb_search_meta_disallow_keys)) {
  • hiweb-soft-search/trunk/inc/hooks.php

    r1500460 r1770795  
    88
    99
    10     add_action('save_post', array(hiweb_search(), 'add_action_save_post'));
    11     add_action('pre_get_posts', array(hiweb_search(), 'add_action_pre_get_posts'), 20);
    12     add_action('wp', array(hiweb_search(), 'add_action_wp'), 20);
     10    //add_action('wp_insert_post', array(hiweb_search(), 'add_action_save_post'), 1);
     11    //add_action('pre_get_posts', array(hiweb_search(), 'add_action_pre_get_posts'), 20);
     12    //add_action('wp', array(hiweb_search(), 'add_action_wp'), 20);
  • hiweb-soft-search/trunk/readme.txt

    r1500473 r1770795  
    4646== Changelog ==
    4747
     48= 2.0.0.0 =
     49I redeveloped the plugin. Searches faster, but this is an alpha version.
     50
    4851= 1.0.0.0 =
    4952Just small alpha plugin...
Note: See TracChangeset for help on using the changeset viewer.