Cherry Search - Version 1.1.4

Version Description

  • Fixed bugs.

=

Download this release

Release Info

Developer TemplateMonster 2002
Plugin Icon 128x128 Cherry Search
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

cherry-framework/.gitignore ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #########################
2
+ # Files
3
+ #########################
4
+ .sass-cache
5
+ package.json
6
+
7
+ # Windows
8
+ Thumbs.db
9
+ Desktop.ini
10
+
11
+ # OSX
12
+ .DS_Store
13
+ *.swp
14
+ *~.nib
15
+
16
+ #########################
17
+ # Expansion
18
+ #########################
19
+ *.map
20
+ *.log
21
+ *.dll
22
+
23
+ #########################
24
+ # Folder
25
+ #########################
26
+ node_modules
27
+
28
+ #########################
29
+ # Travis-si files
30
+ #########################
cherry-framework/.jscsrc ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "preset": "wordpress",
3
+ "fileExtensions": [ ".js" ],
4
+ "excludeFiles": [
5
+ "**/*.min.js",
6
+ "modules/cherry-js-core/assets/js/cherry-js-core.js",
7
+ "modules/cherry-post-formats-api/assets/js/cherry-post-formats.js",
8
+ "modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-checkbox.js",
9
+ "modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-colorpicker.js",
10
+ "modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.js",
11
+ "modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/ui-radio.js",
12
+ "modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/select2.js",
13
+ "modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-select.js",
14
+ "modules/cherry-ui-elements/inc/ui-elements/ui-slider/assets/ui-slider.js",
15
+ "modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-stepper.js",
16
+ "modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-switcher.js",
17
+ "modules/cherry-ui-elements/inc/ui-elements/ui-collection/assets/js/jquery.collection.js",
18
+ "modules/cherry-ui-elements/inc/ui-elements/ui-collection/assets/js/ui-collection.js",
19
+ "modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/jquery-iconpicker.js",
20
+ "modules/cherry-interface-builder/inc/assets/cherry-interface-builder.js",
21
+ "modules/cherry5-assets-loader/assets/var.js"
22
+ ]
23
+ }
cherry-framework/.jshintignore ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ **/*.min.js
2
+ modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/select2.js
3
+ modules/cherry-ui-elements/inc/ui-elements/ui-collection/assets/js/jquery.collection.js
4
+ modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/jquery-iconpicker.js
5
+
6
+ #Cherry Framework
7
+ modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.js
8
+ modules/cherry-js-core/assets/js/cherry-js-core.js
9
+ modules/cherry5-assets-loader/assets/var.js
10
+ modules/cherry5-assets-loader/assets/append.js
cherry-framework/.travis.yml ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Travis CI configuration file.
2
+ # @link https://travis-ci.org/
3
+
4
+ # For use with the Twenty Sixteen WordPress theme
5
+ # @link https://github.com/WordPress/twentysixteen/
6
+
7
+ # Declare project language and PHP versions to test against.
8
+ # @link http://about.travis-ci.org/docs/user/languages/php/
9
+ language: php
10
+
11
+ # Declare versions of PHP to use. Use one decimal max.
12
+ php:
13
+ - "7"
14
+ - "5.6"
15
+ - "5.5"
16
+ - "5.4"
17
+ - "5.3"
18
+ # Current $required_php_version for WordPress: 5.2.4
19
+ - "5.2"
20
+
21
+ # Ditch sudo and use containers.
22
+ # @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F
23
+ # @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
24
+ sudo: false
25
+
26
+ # Declare which versions of WordPress to test against.
27
+ # Also declare whether or not to test in Multisite.
28
+ env:
29
+ # Trunk (current version in development is 4.4)
30
+ # @link https://github.com/WordPress/WordPress
31
+ - WP_VERSION=master WP_MULTISITE=0
32
+
33
+ # Use this to prepare your build for testing.
34
+ # e.g. copy database configurations, environment variables, etc.
35
+ # Failures in this section will result in build status 'errored'.
36
+ before_script:
37
+ # Set up WordPress installation.
38
+ - export WP_DEVELOP_DIR=/tmp/wordpress/
39
+ - mkdir -p $WP_DEVELOP_DIR
40
+ # Use the Git mirror of WordPress.
41
+ - git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
42
+ # Set up Twenty Sixteen theme information.
43
+ - theme_slug=$(basename $(pwd))
44
+ - theme_dir=$WP_DEVELOP_DIR/src/wp-content/themes/$theme_slug
45
+ - cd ..
46
+ - mv $theme_slug $theme_dir
47
+ # Set up WordPress configuration.
48
+ - cd $WP_DEVELOP_DIR
49
+ - echo $WP_DEVELOP_DIR
50
+ - cp wp-tests-config-sample.php wp-tests-config.php
51
+ - sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php
52
+ - sed -i "s/yourusernamehere/root/" wp-tests-config.php
53
+ - sed -i "s/yourpasswordhere//" wp-tests-config.php
54
+ # Create WordPress database.
55
+ - mysql -e 'CREATE DATABASE wordpress_test;' -uroot
56
+ # Install CodeSniffer for WordPress Coding Standards checks.
57
+ - mkdir php-codesniffer && curl -L https://github.com/squizlabs/PHP_CodeSniffer/archive/master.tar.gz | tar xz --strip-components=1 -C php-codesniffer
58
+ # Install WordPress Coding Standards.
59
+ - mkdir wordpress-coding-standards && curl -L https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/archive/master.tar.gz | tar xz --strip-components=1 -C wordpress-coding-standards
60
+ # Hop into CodeSniffer directory.
61
+ - cd php-codesniffer
62
+ # Set install path for WordPress Coding Standards
63
+ # @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941
64
+ - scripts/phpcs --config-set installed_paths ../wordpress-coding-standards
65
+ # Hop into themes directory.
66
+ - cd $theme_dir
67
+ # After CodeSniffer install you should refresh your path.
68
+ - phpenv rehash
69
+ # Install JSCS: JavaScript Code Style checker
70
+ # @link http://jscs.info/
71
+ - npm install -g jscs
72
+ # Install JSHint, a JavaScript Code Quality Tool
73
+ # @link http://jshint.com/docs/
74
+ - npm install -g jshint
75
+ - wget https://develop.svn.wordpress.org/trunk/.jshintrc
76
+
77
+ # Run test script commands.
78
+ # Default is specific to project language.
79
+ # All commands must exit with code 0 on success. Anything else is considered failure.
80
+ script:
81
+ # Search theme for PHP syntax errors.
82
+ - find . \( -name '*.php' \) -exec php -lf {} \;
83
+ # Run the theme through JSHint
84
+ - jshint .
85
+ # Run the theme through JavaScript Code Style checker
86
+ - jscs .
87
+ # WordPress Coding Standards
88
+ # @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
89
+ # @link http://pear.php.net/package/PHP_CodeSniffer/
90
+ # -p flag: Show progress of the run.
91
+ # -s flag: Show sniff codes in all reports.
92
+ # -v flag: Print verbose output.
93
+ # -n flag: Do not print warnings (shortcut for --warning-severity=0)
94
+ # --standard: Use WordPress as the standard.
95
+ # --extensions: Only sniff PHP files.
96
+ - $WP_DEVELOP_DIR/php-codesniffer/scripts/phpcs -p -s -v -n . --standard=./codesniffer.ruleset.xml --extensions=php
cherry-framework/README.md ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [![license](https://img.shields.io/badge/license-GPL--v.3.0%2B-blue.svg?style=flat-square)](https://github.com/CherryFramework/cherry-framework/blob/master/LICENSE)
2
+ [![Build Status](https://travis-ci.org/CherryFramework/cherry-framework.svg?branch=master)](https://travis-ci.org/CherryFramework/cherry-framework)
3
+
4
+ # cherry-framework
5
+ Module system.
6
+
7
+ ## Authors
8
+
9
+ * [@MaksimTS](https://github.com/MaksimTS) - **Manager**
10
+ * [@Cheh](https://github.com/cheh) - **Developer**
11
+ * [@Behaart](https://github.com/MakhonkoDenis) - **Developer**
12
+ * [@MjHead](https://github.com/MjHead) - **Developer**
13
+ * [@Sargas](https://github.com/SargasTM) - **Developer**
14
+ * [@Shin](https://github.com/shinTM) - **Developer**
15
+
16
+ ## Changelog
17
+
18
+ ### v1.4.3
19
+
20
+ * ADD: new module - `cherry5-assets-loader`
21
+ * ADD: lock-option feature
22
+ * ADD: 3rd parameter `$this` for `cherry_breadcrumbs_items` filter
23
+ * ADD: new property - module version (using in register/enqueue css and js files)
24
+ * ADD: `dropdown-pages` control in `cherry-customizer` module
25
+ * UPD: style for widgets
26
+ * UPD: use `cherry-interface-builder` in widget form
27
+ * UPD: remove deprecated methods in `cherry-widget-factory` module
28
+ * UPD: added check for AJAX-handlers in `cherry-handler` module
29
+ * UPD: copyright years
30
+ * FIX: `cherry-handler` module
31
+ * FIX: placeholder attribute in `UI-select`
32
+ * FIX: allow home link in breadcrumbs inherit main page title
33
+ * FIX: function `get_terms_array()` in `cherry-utility` module
34
+ * FIX: HTML validation for `UI-elements`
35
+
36
+ ### v1.4.2
37
+
38
+ * HOTFIX: `iconpicker` control for `cherry-customizer` module
39
+
40
+ ### v1.4.1
41
+
42
+ * ADD: allow to filter CSS reserved words while parsing functions
43
+ * ADD: async query in `cherry-handler` module
44
+ * UPD: UI-kit styles (UI-button, UI-text, UI-textarea, UI-stepper, UI-colorpicker, UI-switcher, UI-select, UI-media)
45
+ * UPD: use `wp_add_inline_style` instead of `wp_head` for printing inline CSS
46
+ * UPD: UI-button class prefix
47
+ * UPD: `cherry5-insert-shortcode` module styles
48
+ * UPD: allow to use description argument in iconpicker
49
+ * FIX: UI-repeater, UI-radio master and slave bug
50
+ * FIX: `cherry-template-manager` module
51
+ * FIX: change `meta_key` in `cherry-utility` module - #149
52
+
53
+ ### v1.4.0
54
+
55
+ * ADD: new modules - `cherry5-insert-shortcode`, `cherry-db-udpates`
56
+ * ADD: text-domain
57
+ * FIX: compatibility with WordPress 4.7
58
+ * FIX: sanitization method in `cherry-utility` - #141
59
+ * FIX: duplicate argument in UI-button - #126
60
+ * UPD: license link in php-file headers
61
+
62
+ ### v1.3.1
63
+
64
+ * ADD: macros filter into `cherry-template-manager` module
65
+ * ADD: function `bg-image()` into `cherry-dynamic-css` module
66
+ * UPD: `cherry-interface-builder` module styles
67
+ * UPD: Google fonts json-file
68
+ * FIX: Issues [#124](https://github.com/CherryFramework/cherry-framework/issues/124)
69
+ * FIX: Issues [#123](https://github.com/CherryFramework/cherry-framework/issues/123)
70
+ * FIX: Issues [#120](https://github.com/CherryFramework/cherry-framework/issues/120)
71
+ * FIX: Issues [#118](https://github.com/CherryFramework/cherry-framework/issues/118)
72
+ * FIX: Issues [#116](https://github.com/CherryFramework/cherry-framework/issues/116)
73
+ * FIX: Issues [#115](https://github.com/CherryFramework/cherry-framework/issues/115)
74
+ * FIX: UI-media button
75
+ * DEL: system notices in `cherry-handler` module
76
+
77
+ ### v1.3.0
78
+
79
+ * ADD: UI-button
80
+ * ADD: new modules - `cherry-handler`, `cherry-template-manager`
81
+ * ADD: dynamic CSS collector
82
+ * UPD: re-factoring methods calling in `cherry-post-meta` module
83
+ * FIX: replace `file_get_contents` to prevent validation errors
84
+ * FIX: post meta saving
85
+ * FIX: [#81](https://github.com/CherryFramework/cherry-framework/issues/81)
86
+ * FIX: [#96](https://github.com/CherryFramework/cherry-framework/issues/96)
87
+ * FIX: [#100](https://github.com/CherryFramework/cherry-framework/issues/100)
88
+ * FIX: [#102](https://github.com/CherryFramework/cherry-framework/issues/102)
89
+ * FIX: [#109](https://github.com/CherryFramework/cherry-framework/issues/109)
90
+ * DEL: `cherry-page-builder` module
91
+
92
+ ### v1.2.0
93
+
94
+ * ADD: new module: `cherry-interface-builder`
95
+ * UPD: `cherry-utility` module:
96
+ 1) fix for the `cut_text` method
97
+ 2) added `get_placeholder_url` method
98
+ * UPD: UI-elements:
99
+ 1) added an option to disable ui_kit for the repeater element
100
+ 2) updated master/salve js logic in UI-elements
101
+ 3) updated HTML markup for UI-switcher, `input type="hiden"` replaced with double `input type="radio"`
102
+ * UPD: `cherry-customizer` module: file system method replaced with native WordPress method
103
+ * UPD: `cherry-post-meta` module:
104
+ 1) added data processing procedure before saving to the database
105
+ 2) added an option to add columns to the post listing page in the admin panel.
106
+ * FIX: PHP-errors in `cherry-post-format-api`
107
+ * DEL: remove unnecessary modules: `cherry-taxonomies`, `cherry-post-types`, `cherry-creator`
108
+
109
+ ### v1.1.0
110
+
111
+ * FIX: saving process in `cherry-post-meta` module
112
+
113
+ ### v1.0.0
114
+
115
+ * Init stable version
116
+
117
+
118
+ ## Help
119
+ Found a bug? Feature requests? [Create an issue - Thanks!](https://github.com/CherryFramework/cherry-framework/issues/new)
120
+
121
+ ## Docs
122
+
123
+ 1. [Quick Start Guide](http://www.cherryframework.com/quick-start/)
124
+ 2. [Real example](https://github.com/CherryFramework/cherry-framework-example)
125
+ 3. [Documentation](http://www.cherryframework.com/docs/)
cherry-framework/cherry-core.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Class Cherry Core
4
- * Version: 1.5.1
5
  *
6
  * @package Cherry_Framework
7
  * @subpackage Class
@@ -378,9 +378,9 @@ if ( ! class_exists( 'Cherry_Core' ) ) {
378
  $theme_dir = "$theme_root/$stylesheet";
379
 
380
  if ( 0 === strpos( $module_dir, $plugin_dir ) ) {
381
- $home_url = home_url();
382
  $abs_path = wp_normalize_path( ABSPATH );
383
- $url = str_replace( untrailingslashit( $abs_path ), $home_url, $module_dir );
384
  } else if ( false !== strpos( $module_path, $theme_dir ) ) {
385
  $explode = explode( $theme_dir, $module_dir );
386
  $url = get_stylesheet_directory_uri() . end( $explode );
1
  <?php
2
  /**
3
  * Class Cherry Core
4
+ * Version: 1.5.4.1
5
  *
6
  * @package Cherry_Framework
7
  * @subpackage Class
378
  $theme_dir = "$theme_root/$stylesheet";
379
 
380
  if ( 0 === strpos( $module_dir, $plugin_dir ) ) {
381
+ $site_url = site_url();
382
  $abs_path = wp_normalize_path( ABSPATH );
383
+ $url = str_replace( untrailingslashit( $abs_path ), $site_url, $module_dir );
384
  } else if ( false !== strpos( $module_path, $theme_dir ) ) {
385
  $explode = explode( $theme_dir, $module_dir );
386
  $url = get_stylesheet_directory_uri() . end( $explode );
cherry-framework/codesniffer.ruleset.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <ruleset name="WordPress Theme Coding Standards">
3
+ <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
4
+ <!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
5
+
6
+ <!-- Set a description for this ruleset. -->
7
+ <description>A custom set of code standard rules to check for WordPress themes.</description>
8
+
9
+ <!-- Include the WordPress ruleset, with space for exclusions if necessary. -->
10
+ <rule ref="WordPress-Core">
11
+ <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
12
+ <exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
13
+
14
+ <exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
15
+
16
+ <exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
17
+ <exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
18
+ <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
19
+ <exclude name="Squiz.Commenting.InlineComment.NotCapital" />
20
+ <exclude name="Squiz.Commenting.LongConditionClosingComment.Missing" />
21
+
22
+ <exclude name="WordPress.Files.FileName.InvalidClassFileName" />
23
+ </rule>
24
+ <rule ref="WordPress-Docs">
25
+
26
+ </rule>
27
+ </ruleset>
cherry-framework/modules/cherry-customizer/cherry-customizer.php CHANGED
@@ -988,7 +988,7 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
988
  public function file_exists( $file ) {
989
 
990
  if ( ! function_exists( 'WP_Filesystem' ) ) {
991
- include_once( ABSPATH . '/wp-admin/includes/file.php' );
992
  }
993
 
994
  WP_Filesystem();
@@ -1013,7 +1013,7 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
1013
  public function get_file( $file ) {
1014
 
1015
  if ( ! function_exists( 'WP_Filesystem' ) ) {
1016
- include_once( ABSPATH . '/wp-admin/includes/file.php' );
1017
  }
1018
 
1019
  WP_Filesystem();
988
  public function file_exists( $file ) {
989
 
990
  if ( ! function_exists( 'WP_Filesystem' ) ) {
991
+ return file_exists( $file );
992
  }
993
 
994
  WP_Filesystem();
1013
  public function get_file( $file ) {
1014
 
1015
  if ( ! function_exists( 'WP_Filesystem' ) ) {
1016
+ return Cherry_Toolkit::get_file( $file );
1017
  }
1018
 
1019
  WP_Filesystem();
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/min/ui-repeater.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"use strict";t.utilites.namespace("ui_elements.repeater"),t.ui_elements.repeater={repeaterContainerClass:".cherry-ui-repeater-container",repeaterListClass:".cherry-ui-repeater-list",repeaterItemClass:".cherry-ui-repeater-item",repeaterItemHandleClass:".cherry-ui-repeater-actions-box",repeaterTitleClass:".cherry-ui-repeater-title",addItemButtonClass:".cherry-ui-repeater-add",removeItemButtonClass:".cherry-ui-repeater-remove",toggleItemButtonClass:".cherry-ui-repeater-toggle",minItemClass:"cherry-ui-repeater-min",sortablePlaceholderClass:"sortable-placeholder",init:function(){e(document).on("ready",this.addEvents.bind(this))},addEvents:function(){e("body").on("click",this.addItemButtonClass,{self:this},this.addItem).on("click",this.removeItemButtonClass,{self:this},this.removeItem).on("click",this.toggleItemButtonClass,{self:this},this.toggleItem).on("change",this.repeaterListClass+" input, "+this.repeaterListClass+" textarea, "+this.repeaterListClass+" select",{self:this},this.changeWrapperLable).on("sortable-init",{self:this},this.sortableItem),e(document).on("cherry-ui-elements-init",{self:this},this.sortableItem),this.triggers()},triggers:function(t){return e("body").trigger("sortable-init"),t&&e(document).trigger("cherry-ui-elements-init",{target:t}),this},addItem:function(t){var s=t.data.self,a=e(this).prev(s.repeaterListClass),r=a.data("index"),i=a.data("name"),l=wp.template(i),n=a.data("widget-id"),o={index:r};n="__i__"!==n?n:a.attr("id"),n&&(o.widgetId=n),a.append(l(o)),r++,a.data("index",r),s.triggers(e(s.repeaterItemClass+":last",a)).stopDefaultEvent(t)},removeItem:function(t){var s=t.data.self,a=e(this).closest(s.repeaterListClass);s.applyChanges(a),e(this).closest(s.repeaterItemClass).remove(),s.triggers().stopDefaultEvent(t)},toggleItem:function(t){var s=t.data.self,a=e(this).closest(s.repeaterItemClass);a.toggleClass(s.minItemClass),s.stopDefaultEvent(t)},sortableItem:function(t){var s,a,r=t.data.self,i=e(r.repeaterListClass);i.each(function(t,i){s=e(i),a=e(i).data("sortable-init"),s.sortable(a?"refresh":{items:r.repeaterItemClass,handle:r.repeaterItemHandleClass,cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,placeholder:r.sortablePlaceholderClass,create:function(){s.data("sortable-init",!0)},update:function(t){var s=e(t.target);r.applyChanges(s)}})})},changeWrapperLable:function(t){var s,a,r=t.data.self,i=e(r.repeaterListClass),l=i.data("title-field"),n=e(this);l&&n.closest("."+l+"-wrap")[0]&&(s=n.val(),a=n.closest(r.repeaterItemClass),e(r.repeaterTitleClass,a).html(s)),r.stopDefaultEvent(t)},applyChanges:function(t){return void 0!==wp.customize&&e("input[name]:first, select[name]:first",t).change(),this},stopDefaultEvent:function(e){return e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),this}},t.ui_elements.repeater.init()}(jQuery,window.CherryJsCore);
1
+ !function(e,t){"use strict";t.utilites.namespace("ui_elements.repeater"),t.ui_elements.repeater={repeaterContainerClass:".cherry-ui-repeater-container",repeaterListClass:".cherry-ui-repeater-list",repeaterItemClass:".cherry-ui-repeater-item",repeaterItemHandleClass:".cherry-ui-repeater-actions-box",repeaterTitleClass:".cherry-ui-repeater-title",addItemButtonClass:".cherry-ui-repeater-add",removeItemButtonClass:".cherry-ui-repeater-remove",toggleItemButtonClass:".cherry-ui-repeater-toggle",minItemClass:"cherry-ui-repeater-min",sortablePlaceholderClass:"sortable-placeholder",init:function(){e(document).on("ready",this.addEvents.bind(this))},addEvents:function(){e("body").on("click",this.addItemButtonClass,{self:this},this.addItem).on("click",this.removeItemButtonClass,{self:this},this.removeItem).on("click",this.toggleItemButtonClass,{self:this},this.toggleItem).on("change",this.repeaterListClass+" input, "+this.repeaterListClass+" textarea, "+this.repeaterListClass+" select",{self:this},this.changeWrapperLable).on("sortable-init",{self:this},this.sortableItem),e(document).on("cherry-ui-elements-init",{self:this},this.sortableItem),this.triggers()},triggers:function(t){return e("body").trigger("sortable-init"),t&&e(document).trigger("cherry-ui-elements-init",{target:t}),this},addItem:function(t){var r=t.data.self,a=e(this).prev(r.repeaterListClass),s=a.data("index"),i=a.data("name"),n=wp.template(i),l=a.data("widget-id"),o={index:s};(l="__i__"!==l?l:a.attr("id"))&&(o.widgetId=l),a.append(n(o)),s++,a.data("index",s),r.triggers(e(r.repeaterItemClass+":last",a)).stopDefaultEvent(t)},removeItem:function(t){var r=t.data.self,a=e(this).closest(r.repeaterListClass);r.applyChanges(a),e(this).closest(r.repeaterItemClass).remove(),r.triggers().stopDefaultEvent(t)},toggleItem:function(t){var r=t.data.self;e(this).closest(r.repeaterItemClass).toggleClass(r.minItemClass),r.stopDefaultEvent(t)},sortableItem:function(t){var r,a,s=t.data.self;e(s.repeaterListClass).each(function(t,i){r=e(i),(a=e(i).data("sortable-init"))?r.sortable("refresh"):r.sortable({items:s.repeaterItemClass,handle:s.repeaterItemHandleClass,cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,distance:2,tolerance:"pointer",helper:function(e,t){return t.clone().find(":input").attr("name",function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t}).end()},opacity:.65,placeholder:s.sortablePlaceholderClass,create:function(){r.data("sortable-init",!0)},update:function(t){var r=e(t.target);s.applyChanges(r)}})})},changeWrapperLable:function(t){var r,a,s=t.data.self,i=e(s.repeaterListClass).data("title-field"),n=e(this);i&&n.closest("."+i+"-wrap")[0]&&(r=n.val(),a=n.closest(s.repeaterItemClass),e(s.repeaterTitleClass,a).html(r)),s.stopDefaultEvent(t)},applyChanges:function(t){return void 0!==wp.customize&&e("input[name]:first, select[name]:first",t).change(),this},stopDefaultEvent:function(e){return e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),this}},t.ui_elements.repeater.init()}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/ui-repeater.js CHANGED
@@ -118,7 +118,16 @@
118
  scrollSensitivity: 40,
119
  forcePlaceholderSize: true,
120
  forceHelperSize: false,
121
- helper: 'clone',
 
 
 
 
 
 
 
 
 
122
  opacity: 0.65,
123
  placeholder: self.sortablePlaceholderClass,
124
  create: function() {
118
  scrollSensitivity: 40,
119
  forcePlaceholderSize: true,
120
  forceHelperSize: false,
121
+ distance: 2,
122
+ tolerance: 'pointer',
123
+ helper: function( event, element ) {
124
+ return element.clone()
125
+ .find( ':input' )
126
+ .attr( 'name', function( i, currentName ) {
127
+ return 'sort_' + parseInt( Math.random() * 100000, 10 ).toString() + '_' + currentName;
128
+ } )
129
+ .end();
130
+ },
131
  opacity: 0.65,
132
  placeholder: self.sortablePlaceholderClass,
133
  create: function() {
cherry-framework/modules/cherry5-assets-loader/cherry5-assets-loader.php CHANGED
@@ -74,6 +74,14 @@ if ( ! class_exists( 'Cherry5_Assets_Loader' ) ) {
74
  */
75
  public static $initialized = false;
76
 
 
 
 
 
 
 
 
 
77
  /**
78
  * Class constructor.
79
  *
@@ -83,7 +91,8 @@ if ( ! class_exists( 'Cherry5_Assets_Loader' ) ) {
83
  */
84
  public function __construct( $core = null, $args = array() ) {
85
 
86
- $this->args = $args;
 
87
  $this->init();
88
 
89
  if ( ! empty( $this->args['css'] ) && is_array( $this->args['css'] ) ) {
74
  */
75
  public static $initialized = false;
76
 
77
+ /**
78
+ * Module directory path.
79
+ *
80
+ * @since 1.5.0
81
+ * @var srting.
82
+ */
83
+ public static $module_path = null;
84
+
85
  /**
86
  * Class constructor.
87
  *
91
  */
92
  public function __construct( $core = null, $args = array() ) {
93
 
94
+ self::$module_path = $args['module_path'];
95
+ $this->args = $args;
96
  $this->init();
97
 
98
  if ( ! empty( $this->args['css'] ) && is_array( $this->args['css'] ) ) {
cherry-framework/modules/cherry5-assets-loader/inc/cherry5-assets-loader-handle.php CHANGED
@@ -90,7 +90,7 @@ if ( ! class_exists( 'Cherry5_Assets_Loader_Handle' ) ) {
90
  return;
91
  }
92
 
93
- $path = preg_replace( '/[\\\\\/]inc$/', '/assets/var.js', $this->module_path );
94
 
95
  ob_start();
96
  include $path;
90
  return;
91
  }
92
 
93
+ $path = Cherry5_Assets_Loader::$module_path . 'assets/var.js';
94
 
95
  ob_start();
96
  include $path;
cherry-framework/modules/cherry5-insert-shortcode/cherry5-insert-shortcode.php CHANGED
@@ -98,7 +98,7 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
98
  * @var object
99
  * @access private
100
  */
101
- private $shortcodes_button = null;
102
 
103
  /**
104
  * A reference to an instance of this class Cherry5_Insertion_Popup.
@@ -107,7 +107,7 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
107
  * @var object
108
  * @access private
109
  */
110
- private $shortcodes_popup = null;
111
 
112
  /**
113
  * Shortcode list.
@@ -145,8 +145,8 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
145
  $this->includes();
146
 
147
  // Initializing child classes.
 
148
  $this->shortcodes_button = new Cherry5_Insertion_Button( $this->core, $this->args, $this );
149
- $this->shortcodes_popup = new Cherry5_Insertion_Popup( $this->core, $this->args, $this );
150
 
151
  // Register admin assets.
152
  add_action( 'admin_enqueue_scripts', array( $this, 'register_assets' ), 0 );
98
  * @var object
99
  * @access private
100
  */
101
+ public $shortcodes_button = null;
102
 
103
  /**
104
  * A reference to an instance of this class Cherry5_Insertion_Popup.
107
  * @var object
108
  * @access private
109
  */
110
+ public $shortcodes_popup = null;
111
 
112
  /**
113
  * Shortcode list.
145
  $this->includes();
146
 
147
  // Initializing child classes.
148
+ $this->shortcodes_popup = new Cherry5_Insertion_Popup( $this->core, $this->args, $this );
149
  $this->shortcodes_button = new Cherry5_Insertion_Button( $this->core, $this->args, $this );
 
150
 
151
  // Register admin assets.
152
  add_action( 'admin_enqueue_scripts', array( $this, 'register_assets' ), 0 );
cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-button.php CHANGED
@@ -55,16 +55,17 @@ if ( ! class_exists( 'Cherry5_Insertion_Button' ) ) {
55
  * @access public
56
  * @return void
57
  */
58
- public function add_button() {
59
- $args = apply_filters( 'cherry5-is__open-button', array(
60
- 'id' => '',
61
- 'name' => '',
62
- 'style' => 'primary',
63
- 'content' => '<span class="cherry5-is__icon dashicons dashicons-plus"></span>' . esc_html__( 'Cherry shortcodes', 'cherry-framework' ),
64
- 'class' => 'cherry5-is__open-button',
65
- ) );
66
 
67
- echo $this->parent_self->ui_elements->get_ui_element_instance( 'button', $args )->render();
 
 
 
 
 
 
 
 
68
  }
69
  }
70
  }
55
  * @access public
56
  * @return void
57
  */
58
+ public function add_button( $editor_id ) {
 
 
 
 
 
 
 
59
 
60
+ if ( 'content' !== $editor_id ) {
61
+ return;
62
+ }
63
+
64
+ echo '<button class="button cherry5-is__open-button" type="button"><span class="cherry5-is__icon dashicons dashicons-plus"></span>' . esc_html__( 'Cherry Shortcodes', 'cherry-framework' ) . '</button>';
65
+
66
+ if ( ! defined( 'DOING_AJAX' ) ) {
67
+ add_action( 'admin_print_footer_scripts', array( $this->parent_self->shortcodes_popup, 'render_popup' ), 99 );
68
+ }
69
  }
70
  }
71
  }
cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php CHANGED
@@ -100,9 +100,6 @@ if ( ! class_exists( 'Cherry5_Insertion_Popup' ) ) {
100
  )
101
  );
102
 
103
- if ( ! defined( 'DOING_AJAX' ) ) {
104
- add_action( 'admin_print_footer_scripts', array( $this, 'render_popup' ), 99 );
105
- }
106
  }
107
 
108
  /**
100
  )
101
  );
102
 
 
 
 
103
  }
104
 
105
  /**
cherry-search.php CHANGED
@@ -3,8 +3,9 @@
3
  * Plugin Name: Cherry Search
4
  * Plugin URI: http://www.cherryframework.com/
5
  * Description: A plugin for WordPress.
6
- * Version: 1.1.3
7
- * Author: Cherry Team
 
8
  * Text Domain: cherry-search
9
  * License: GPL-3.0+
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
@@ -12,7 +13,7 @@
12
  *
13
  * @package Cherry_Search
14
  * @author Cherry Team
15
- * @version 1.1.3
16
  * @license GPL-3.0+
17
  * @copyright 2012-2016, Cherry Team
18
  */
@@ -92,7 +93,7 @@ if ( ! class_exists( 'Cherry_Search' ) ) {
92
  *
93
  * @since 1.0.0
94
  */
95
- define( 'CHERRY_SEARCH_VERSION', '1.1.3' );
96
 
97
  /**
98
  * Set the slug of the plugin.
3
  * Plugin Name: Cherry Search
4
  * Plugin URI: http://www.cherryframework.com/
5
  * Description: A plugin for WordPress.
6
+ * Version: 1.1.4
7
+ * Author: Jetimpex
8
+ * Author URI: https://jetimpex.com/wordpress/
9
  * Text Domain: cherry-search
10
  * License: GPL-3.0+
11
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
13
  *
14
  * @package Cherry_Search
15
  * @author Cherry Team
16
+ * @version 1.1.4
17
  * @license GPL-3.0+
18
  * @copyright 2012-2016, Cherry Team
19
  */
93
  *
94
  * @since 1.0.0
95
  */
96
+ define( 'CHERRY_SEARCH_VERSION', '1.1.4' );
97
 
98
  /**
99
  * Set the slug of the plugin.
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: TemplateMonster 2002
3
  Tags: search, ajax search, quick search, fast search, ajax, cherry framework, widget search, shortcode search, custom search, cherry search
4
  Requires at least: 4.4
5
- Tested up to: 4.7.2
6
- Stable tag: 1.1.3
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -84,6 +84,10 @@ There are several ways to enable the plugin on your website. You can either:
84
 
85
  * Fixed bugs.
86
 
 
 
 
 
87
  == Arbitrary section ==
88
 
89
  = Plugin Settings =
2
  Contributors: TemplateMonster 2002
3
  Tags: search, ajax search, quick search, fast search, ajax, cherry framework, widget search, shortcode search, custom search, cherry search
4
  Requires at least: 4.4
5
+ Tested up to: 4.8.1
6
+ Stable tag: 1.1.4
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
84
 
85
  * Fixed bugs.
86
 
87
+ = 1.1.4 =
88
+
89
+ * Fixed bugs.
90
+
91
  == Arbitrary section ==
92
 
93
  = Plugin Settings =