Changeset 1770795
- Timestamp:
- 11/19/2017 02:48:26 PM (8 years ago)
- Location:
- hiweb-soft-search/trunk
- Files:
-
- 17 added
- 4 deleted
- 6 edited
-
assets (added)
-
assets/admin.css (added)
-
assets/admin.css.map (added)
-
assets/admin.js (added)
-
assets/admin.scss (added)
-
css (deleted)
-
hiweb-search-simple.php (modified) (2 diffs)
-
inc/ajax.php (modified) (1 diff)
-
inc/class.php (modified) (1 diff)
-
inc/define.php (modified) (2 diffs)
-
inc/hooks.php (modified) (1 diff)
-
include (added)
-
include/compare.php (added)
-
include/define.php (added)
-
include/hiweb_soft_search.php (added)
-
include/hooks.php (added)
-
include/meta_box.php (added)
-
include/post.php (added)
-
include/prepare.php (added)
-
include/query_search.php (added)
-
include/tools.php (added)
-
js (deleted)
-
readme.txt (modified) (1 diff)
-
template/_hiweb_search_add_meta_boxes_echo.php (deleted)
-
template/_hw_search_tool.php (deleted)
-
template/meta_box.php (added)
-
template/tools_page.php (added)
Legend:
- Unmodified
- Added
- Removed
-
hiweb-soft-search/trunk/hiweb-search-simple.php
r1500460 r1770795 2 2 3 3 /** 4 * Plugin Name: hiWeb S earch Simple4 * Plugin Name: hiWeb Soft Search 5 5 * Plugin URI: http://hiweb.moscow/search-simple 6 6 * Description: Automatically generates meta tag in the post for easy and quick search. It generates a query request. 7 * Version: 1.0.0.07 * Version: 2.0.0.0 8 8 * Author: Den Media 9 9 * Author URI: http://hiweb.moscow … … 11 11 12 12 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 7 7 */ 8 8 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 284 284 } 285 285 ///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 // } 295 295 $tags[0] = array_unique($tags[0]); 296 296 //// -
hiweb-soft-search/trunk/inc/define.php
r1500460 r1770795 18 18 if (!defined('HIWEB_SEARCH_META_NAME')) define('HIWEB_SEARCH_META_NAME', 'hiweb_search_meta'); 19 19 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); //Показывать метабокс с индексными данными 21 21 /// 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); //Минимальное значение найденого ключа 23 23 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); //Разрешать анализировать мета данные 25 25 if (!defined('HIWEB_SEARCH_META_NAME_ALLOW_SPACE')) define('HIWEB_SEARCH_META_NAME_ALLOW_SPACE', false); //Разрешать анализировать мета данные, начинающиеся на символ "_" 26 26 if (!defined('HIWEB_SEARCH_USE_TAXONOMY')) define('HIWEB_SEARCH_USE_TAXONOMY', true); //Разрешать анализировать таксономии … … 35 35 if (!isset($hiweb_search_post_allow_keys)) { 36 36 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'); 38 38 } 39 39 if (!isset($hiweb_search_meta_disallow_keys)) { -
hiweb-soft-search/trunk/inc/hooks.php
r1500460 r1770795 8 8 9 9 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 46 46 == Changelog == 47 47 48 = 2.0.0.0 = 49 I redeveloped the plugin. Searches faster, but this is an alpha version. 50 48 51 = 1.0.0.0 = 49 52 Just small alpha plugin...
Note: See TracChangeset
for help on using the changeset viewer.