Version Description
- Fixed: Plugin installation bug
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Search |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- README.txt +4 -1
- init.php +17 -15
- plugin-fw/lib/yit-cpt-unlimited.php +1 -1
- plugin-fw/lib/yit-plugin-panel-wc.php +3 -33
- plugin-fw/lib/yit-plugin-panel.php +46 -2
- plugin-fw/licence/lib/yit-licence.php +9 -1
- plugin-fw/templates/panel/{woocommerce/woocommerce-boxinfo.php → infobox.php} +0 -0
- plugin-fw/templates/panel/types/chosen.php +1 -1
- plugin-fw/templates/panel/types/connected-list.php +1 -1
- plugin-fw/templates/panel/types/on-off.php +1 -1
- plugin-fw/templates/panel/types/select-mailchimp.php +1 -1
- plugin-fw/templates/panel/types/select.php +1 -1
- plugin-fw/templates/panel/types/text.php +3 -3
- plugin-fw/templates/panel/types/textarea-codemirror.php +1 -1
- plugin-fw/templates/panel/types/textarea.php +1 -1
- plugin-fw/templates/panel/{woocommerce/woocommerce-videobox.php → videobox.php} +0 -0
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: ajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 4.1.1
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -67,6 +67,9 @@ In WooCommerce->Settings->Ajax Search page, you can choose the minumum size of t
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
70 |
= 1.2.4 =
|
71 |
* Fixed: Minor bugs
|
72 |
|
4 |
Tags: ajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 4.1.1
|
7 |
+
Stable tag: 1.2.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
+
= 1.2.5 =
|
71 |
+
* Fixed: Plugin installation bug
|
72 |
+
|
73 |
= 1.2.4 =
|
74 |
* Fixed: Minor bugs
|
75 |
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Search
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
@@ -11,7 +11,7 @@
|
|
11 |
*
|
12 |
* @author Yithemes
|
13 |
* @package YITH WooCommerce Ajax Search
|
14 |
-
* @version 1.2.
|
15 |
*/
|
16 |
|
17 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
@@ -32,18 +32,6 @@
|
|
32 |
if ( !defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
|
33 |
|
34 |
|
35 |
-
if ( !function_exists( 'WC' ) ) {
|
36 |
-
function yith_wcas_install_woocommerce_admin_notice() {
|
37 |
-
?>
|
38 |
-
<div class="error">
|
39 |
-
<p><?php _e( 'YITH WooCommerce Ajax Search is enabled but not effective. It requires Woocommerce in order to work.', 'yit' ); ?></p>
|
40 |
-
</div>
|
41 |
-
<?php
|
42 |
-
}
|
43 |
-
|
44 |
-
add_action( 'admin_notices', 'yith_wcas_install_woocommerce_admin_notice' );
|
45 |
-
return;
|
46 |
-
}
|
47 |
|
48 |
if ( defined( 'YITH_WCAS_PREMIUM' ) ) {
|
49 |
function yith_wcas_install_free_admin_notice() {
|
@@ -71,7 +59,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
|
71 |
if ( defined( 'YITH_WCAS_VERSION' ) ){
|
72 |
return;
|
73 |
}else{
|
74 |
-
define( 'YITH_WCAS_VERSION', '1.2.
|
75 |
}
|
76 |
|
77 |
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
|
@@ -109,6 +97,20 @@ if ( ! defined( 'YITH_WCAS_ASSETS_IMAGES_URL' ) ) {
|
|
109 |
|
110 |
function yith_ajax_search_constructor() {
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
|
113 |
|
114 |
// Load required classes and functions
|
3 |
* Plugin Name: YITH WooCommerce Ajax Search
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: Yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
11 |
*
|
12 |
* @author Yithemes
|
13 |
* @package YITH WooCommerce Ajax Search
|
14 |
+
* @version 1.2.5
|
15 |
*/
|
16 |
|
17 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
32 |
if ( !defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
|
33 |
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
if ( defined( 'YITH_WCAS_PREMIUM' ) ) {
|
37 |
function yith_wcas_install_free_admin_notice() {
|
59 |
if ( defined( 'YITH_WCAS_VERSION' ) ){
|
60 |
return;
|
61 |
}else{
|
62 |
+
define( 'YITH_WCAS_VERSION', '1.2.5' );
|
63 |
}
|
64 |
|
65 |
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
|
97 |
|
98 |
function yith_ajax_search_constructor() {
|
99 |
|
100 |
+
if ( !function_exists( 'WC' ) ) {
|
101 |
+
function yith_wcas_install_woocommerce_admin_notice() {
|
102 |
+
?>
|
103 |
+
<div class="error">
|
104 |
+
<p><?php _e( 'YITH WooCommerce Ajax Search is enabled but not effective. It requires Woocommerce in order to work.', 'yit' ); ?></p>
|
105 |
+
</div>
|
106 |
+
<?php
|
107 |
+
}
|
108 |
+
|
109 |
+
add_action( 'admin_notices', 'yith_wcas_install_woocommerce_admin_notice' );
|
110 |
+
return;
|
111 |
+
}
|
112 |
+
|
113 |
+
|
114 |
load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
|
115 |
|
116 |
// Load required classes and functions
|
plugin-fw/lib/yit-cpt-unlimited.php
CHANGED
@@ -1751,7 +1751,7 @@ class YIT_CPT_Unlimited {
|
|
1751 |
|
1752 |
|
1753 |
// check if we are in archive template
|
1754 |
-
|
1755 |
return;
|
1756 |
}
|
1757 |
|
1751 |
|
1752 |
|
1753 |
// check if we are in archive template
|
1754 |
+
if ( !( ! is_admin() && is_archive() && isset($wp_query->post) && $this->_is_valid( $wp_query->post->post_type ) ) ) {
|
1755 |
return;
|
1756 |
}
|
1757 |
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -65,9 +65,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
65 |
add_action( 'admin_init', array( $this, 'woocommerce_update_options' ) );
|
66 |
add_filter( 'woocommerce_screen_ids', array( $this, 'add_allowed_screen_id' ) );
|
67 |
|
68 |
-
|
69 |
-
add_action( '
|
70 |
-
|
71 |
}
|
72 |
}
|
73 |
|
@@ -97,36 +97,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
97 |
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-panel.php' );
|
98 |
}
|
99 |
|
100 |
-
/**
|
101 |
-
* Show a box panel with specific content in two columns as a new woocommerce type
|
102 |
-
*
|
103 |
-
*
|
104 |
-
* @return void
|
105 |
-
* @since 1.0
|
106 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
|
107 |
-
*/
|
108 |
-
public function yit_boxinfo( $args = array() ) {
|
109 |
-
if ( !empty( $args ) ) {
|
110 |
-
extract( $args );
|
111 |
-
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-boxinfo.php' );
|
112 |
-
}
|
113 |
-
}
|
114 |
-
|
115 |
-
/**
|
116 |
-
* Show a box panel with specific content in two columns as a new woocommerce type
|
117 |
-
*
|
118 |
-
*
|
119 |
-
* @return void
|
120 |
-
* @since 1.0
|
121 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
|
122 |
-
*/
|
123 |
-
public function yit_videobox( $args = array() ) {
|
124 |
-
if ( ! empty( $args ) ) {
|
125 |
-
extract( $args );
|
126 |
-
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-videobox.php' );
|
127 |
-
}
|
128 |
-
}
|
129 |
-
|
130 |
/**
|
131 |
* Show a input fields to upload images
|
132 |
*
|
65 |
add_action( 'admin_init', array( $this, 'woocommerce_update_options' ) );
|
66 |
add_filter( 'woocommerce_screen_ids', array( $this, 'add_allowed_screen_id' ) );
|
67 |
|
68 |
+
/* Add VideoBox and InfoBox */
|
69 |
+
add_action( 'woocommerce_admin_field_boxinfo', array( $this, 'add_infobox' ), 10, 1 );
|
70 |
+
add_action( 'woocommerce_admin_field_videobox', array( $this, 'add_videobox' ), 10, 1 );
|
71 |
}
|
72 |
}
|
73 |
|
97 |
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-panel.php' );
|
98 |
}
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
/**
|
101 |
* Show a input fields to upload images
|
102 |
*
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -75,7 +75,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
75 |
add_action( 'admin_bar_menu', array( &$this, 'add_admin_bar_menu' ), 100 );
|
76 |
add_action( 'admin_init', array( &$this, 'add_fields' ) );
|
77 |
|
78 |
-
|
|
|
|
|
79 |
}
|
80 |
|
81 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
@@ -677,6 +679,16 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
677 |
$option = $param ['option'];
|
678 |
$db_options = $this->get_options();
|
679 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
680 |
$db_value = ( isset( $db_options[$option['id']] ) ) ? $db_options[$option['id']] : '';
|
681 |
if ( isset( $option['deps'] ) ) {
|
682 |
$deps = $option['deps'];
|
@@ -686,7 +698,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
686 |
include $type;
|
687 |
}
|
688 |
else {
|
689 |
-
do_action( "yit_panel_{$option['type']}" );
|
690 |
}
|
691 |
}
|
692 |
}
|
@@ -709,6 +721,38 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
709 |
return $options;
|
710 |
}
|
711 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
|
713 |
}
|
714 |
|
75 |
add_action( 'admin_bar_menu', array( &$this, 'add_admin_bar_menu' ), 100 );
|
76 |
add_action( 'admin_init', array( &$this, 'add_fields' ) );
|
77 |
|
78 |
+
/* Add VideoBox and InfoBox */
|
79 |
+
add_action( 'woocommerce_admin_field_boxinfo', array( $this, 'add_infobox' ), 10, 1 );
|
80 |
+
add_action( 'woocommerce_admin_field_videobox', array( $this, 'add_videobox' ), 10, 1 );
|
81 |
}
|
82 |
|
83 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
679 |
$option = $param ['option'];
|
680 |
$db_options = $this->get_options();
|
681 |
|
682 |
+
$custom_attributes = array();
|
683 |
+
|
684 |
+
if ( ! empty( $option['custom_attributes'] ) && is_array( $option['custom_attributes'] ) ) {
|
685 |
+
foreach ( $option['custom_attributes'] as $attribute => $attribute_value ) {
|
686 |
+
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
|
687 |
+
}
|
688 |
+
}
|
689 |
+
|
690 |
+
$custom_attributes = implode( ' ', $custom_attributes );
|
691 |
+
|
692 |
$db_value = ( isset( $db_options[$option['id']] ) ) ? $db_options[$option['id']] : '';
|
693 |
if ( isset( $option['deps'] ) ) {
|
694 |
$deps = $option['deps'];
|
698 |
include $type;
|
699 |
}
|
700 |
else {
|
701 |
+
do_action( "yit_panel_{$option['type']}", $option, $db_value );
|
702 |
}
|
703 |
}
|
704 |
}
|
721 |
return $options;
|
722 |
}
|
723 |
|
724 |
+
/**
|
725 |
+
* Show a box panel with specific content in two columns as a new woocommerce type
|
726 |
+
*
|
727 |
+
*
|
728 |
+
* @param array $args
|
729 |
+
*
|
730 |
+
* @return void
|
731 |
+
* @since 1.0
|
732 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
|
733 |
+
*/
|
734 |
+
public function add_infobox( $args = array() ) {
|
735 |
+
if ( ! empty( $args ) ) {
|
736 |
+
extract( $args );
|
737 |
+
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/boxinfo.php' );
|
738 |
+
}
|
739 |
+
}
|
740 |
+
|
741 |
+
/**
|
742 |
+
* Show a box panel with specific content in two columns as a new woocommerce type
|
743 |
+
*
|
744 |
+
* @param array $args
|
745 |
+
*
|
746 |
+
* @return void
|
747 |
+
* @since 1.0
|
748 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
|
749 |
+
*/
|
750 |
+
public function add_videobox( $args = array() ) {
|
751 |
+
if ( ! empty( $args ) ) {
|
752 |
+
extract( $args );
|
753 |
+
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/videobox.php' );
|
754 |
+
}
|
755 |
+
}
|
756 |
|
757 |
}
|
758 |
|
plugin-fw/licence/lib/yit-licence.php
CHANGED
@@ -99,9 +99,17 @@ if ( ! class_exists( 'YIT_Licence' ) ) {
|
|
99 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
100 |
*/
|
101 |
public function get_home_url() {
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
104 |
|
|
|
105 |
/**
|
106 |
* Check if the request is ajax
|
107 |
*
|
99 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
100 |
*/
|
101 |
public function get_home_url() {
|
102 |
+
$home_url = home_url();
|
103 |
+
$schemes = apply_filters( 'yit_licence_url_schemes', array( 'https://', 'http://' ) );
|
104 |
+
|
105 |
+
foreach( $schemes as $scheme ){
|
106 |
+
$home_url = str_replace( $scheme, '', $home_url );
|
107 |
+
}
|
108 |
+
|
109 |
+
return $home_url;
|
110 |
}
|
111 |
|
112 |
+
|
113 |
/**
|
114 |
* Check if the request is ajax
|
115 |
*
|
plugin-fw/templates/panel/{woocommerce/woocommerce-boxinfo.php → infobox.php}
RENAMED
File without changes
|
plugin-fw/templates/panel/types/chosen.php
CHANGED
@@ -23,7 +23,7 @@ $db_value = ( $is_multiple && ! is_array( $db_value ) ) ? array() : $db_value;
|
|
23 |
<div id="<?php echo $id ?>-container" class="chosen yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
24 |
<div class="option">
|
25 |
<div class="select_wrapper">
|
26 |
-
<select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" class="chosen" id="<?php echo $id ?>" <?php echo $multiple ?> >
|
27 |
<?php foreach ( $option['options'] as $key => $value ) : ?>
|
28 |
<option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
29 |
<?php endforeach; ?>
|
23 |
<div id="<?php echo $id ?>-container" class="chosen yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
24 |
<div class="option">
|
25 |
<div class="select_wrapper">
|
26 |
+
<select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" class="chosen" id="<?php echo $id ?>" <?php echo $multiple ?> <?php echo $custom_attributes ?> >
|
27 |
<?php foreach ( $option['options'] as $key => $value ) : ?>
|
28 |
<option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
29 |
<?php endforeach; ?>
|
plugin-fw/templates/panel/types/connected-list.php
CHANGED
@@ -11,7 +11,7 @@ $name = $this->get_name_field( $option['id'] );
|
|
11 |
<?php foreach( $lists as $list => $options ): ?>
|
12 |
<div class="list_container">
|
13 |
<h4><?php echo $option['heads'][ $list ] ?></h4>
|
14 |
-
<ul id="list_<?php echo $list ?>" class="connectedSortable" data-list="<?php echo $list ?>"
|
15 |
<?php foreach( $options as $value => $label ): ?>
|
16 |
<li data-option="<?php echo $value ?>" class="ui-state-default"><?php echo $label ?></li>
|
17 |
<?php endforeach ?>
|
11 |
<?php foreach( $lists as $list => $options ): ?>
|
12 |
<div class="list_container">
|
13 |
<h4><?php echo $option['heads'][ $list ] ?></h4>
|
14 |
+
<ul id="list_<?php echo $list ?>" class="connectedSortable" data-list="<?php echo $list ?>" <?php echo $custom_attributes ?>>
|
15 |
<?php foreach( $options as $value => $label ): ?>
|
16 |
<li data-option="<?php echo $value ?>" class="ui-state-default"><?php echo $label ?></li>
|
17 |
<?php endforeach ?>
|
plugin-fw/templates/panel/types/on-off.php
CHANGED
@@ -26,7 +26,7 @@ $name = $this->get_name_field( $option['id'] );
|
|
26 |
?>
|
27 |
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="on_off_container yit_options rm_option rm_input rm_onoff">
|
28 |
<div class="option">
|
29 |
-
<input type="checkbox" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php checked( $db_value, 'yes' ); ?> class="on_off<?php if ( $db_value == 'yes' ): ?> onoffchecked<?php endif ?>"
|
30 |
<span> </span>
|
31 |
</div>
|
32 |
<span class="description"><?php echo $option['desc'] ?></span>
|
26 |
?>
|
27 |
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="on_off_container yit_options rm_option rm_input rm_onoff">
|
28 |
<div class="option">
|
29 |
+
<input type="checkbox" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php checked( $db_value, 'yes' ); ?> class="on_off<?php if ( $db_value == 'yes' ): ?> onoffchecked<?php endif ?>" <?php echo $custom_attributes ?>/>
|
30 |
<span> </span>
|
31 |
</div>
|
32 |
<span class="description"><?php echo $option['desc'] ?></span>
|
plugin-fw/templates/panel/types/select-mailchimp.php
CHANGED
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
22 |
<div id="<?php echo $this->get_id_field( $option['id'] ) ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
23 |
<div class="option">
|
24 |
<div class="select_wrapper">
|
25 |
-
<select name="<?php echo $this->get_name_field( $option['id'] ) ?>" id="<?php echo $this->get_id_field( $option['id'] ) ?>"
|
26 |
<?php foreach( $option['options'] as $key => $value ) : ?>
|
27 |
<option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
28 |
<?php endforeach; ?>
|
22 |
<div id="<?php echo $this->get_id_field( $option['id'] ) ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
23 |
<div class="option">
|
24 |
<div class="select_wrapper">
|
25 |
+
<select name="<?php echo $this->get_name_field( $option['id'] ) ?>" id="<?php echo $this->get_id_field( $option['id'] ) ?>" <?php echo $custom_attributes ?>>
|
26 |
<?php foreach( $option['options'] as $key => $value ) : ?>
|
27 |
<option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
28 |
<?php endforeach; ?>
|
plugin-fw/templates/panel/types/select.php
CHANGED
@@ -28,7 +28,7 @@ $multiple = ( $is_multiple ) ? ' multiple' : '';
|
|
28 |
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
29 |
<div class="option">
|
30 |
<div class="select_wrapper">
|
31 |
-
<select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" id="<?php echo $id ?>" <?php echo $multiple ?> >
|
32 |
<?php foreach ( $option['options'] as $key => $value ) : ?>
|
33 |
<option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
34 |
<?php endforeach; ?>
|
28 |
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
29 |
<div class="option">
|
30 |
<div class="select_wrapper">
|
31 |
+
<select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" id="<?php echo $id ?>" <?php echo $multiple ?> <?php echo $custom_attributes ?> >
|
32 |
<?php foreach ( $option['options'] as $key => $value ) : ?>
|
33 |
<option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
34 |
<?php endforeach; ?>
|
plugin-fw/templates/panel/types/text.php
CHANGED
@@ -20,13 +20,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
20 |
exit;
|
21 |
} // Exit if accessed directly
|
22 |
|
23 |
-
$id
|
24 |
-
$name
|
25 |
|
26 |
?>
|
27 |
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="yit_options rm_option rm_input rm_text">
|
28 |
<div class="option">
|
29 |
-
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" />
|
30 |
</div>
|
31 |
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
|
20 |
exit;
|
21 |
} // Exit if accessed directly
|
22 |
|
23 |
+
$id = $this->get_id_field( $option['id'] );
|
24 |
+
$name = $this->get_name_field( $option['id'] );
|
25 |
|
26 |
?>
|
27 |
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="yit_options rm_option rm_input rm_text">
|
28 |
<div class="option">
|
29 |
+
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php echo $custom_attributes ?> />
|
30 |
</div>
|
31 |
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
|
plugin-fw/templates/panel/types/textarea-codemirror.php
CHANGED
@@ -26,7 +26,7 @@ $name = $this->get_name_field( $option['id'] );
|
|
26 |
?>
|
27 |
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
28 |
<div class="option">
|
29 |
-
<textarea name="<?php echo $name ?>" class="codemirror" id="<?php echo $id ?>" rows="8" cols="50"
|
30 |
</div>
|
31 |
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
|
26 |
?>
|
27 |
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
28 |
<div class="option">
|
29 |
+
<textarea name="<?php echo $name ?>" class="codemirror" id="<?php echo $id ?>" rows="8" cols="50" <?php echo $custom_attributes ?>><?php echo $db_value ?></textarea>
|
30 |
</div>
|
31 |
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
|
plugin-fw/templates/panel/types/textarea.php
CHANGED
@@ -26,7 +26,7 @@ $name = $this->get_name_field( $option['id'] );
|
|
26 |
?>
|
27 |
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
28 |
<div class="option">
|
29 |
-
<textarea name="<?php echo $name ?>" id="<?php echo $id ?>" rows="8" cols="50"
|
30 |
</div>
|
31 |
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
|
26 |
?>
|
27 |
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
28 |
<div class="option">
|
29 |
+
<textarea name="<?php echo $name ?>" id="<?php echo $id ?>" rows="8" cols="50" <?php echo $custom_attributes ?>><?php echo $db_value ?></textarea>
|
30 |
</div>
|
31 |
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
|
plugin-fw/templates/panel/{woocommerce/woocommerce-videobox.php → videobox.php}
RENAMED
File without changes
|