Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1.6.1 #200

Merged
merged 17 commits into from
May 23, 2022
6 changes: 3 additions & 3 deletions admin/action-hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ function wpt_admin_form_top(){
</svg>

<?php echo esc_html__( 'GitHub Repo', 'wpt_pro' ); ?></a></li>
<li><a target="_blank" href="https://demo.wooproducttable.com/"><?php echo esc_html__( 'Demo', 'wpt_pro' ); ?></a></li>
<li><a target="_blank" href="https://demo.wooproducttable.com/?utm_source=Product+Table+EditPage&utm_medium=Free+Version"><?php echo esc_html__( 'Demo', 'wpt_pro' ); ?></a></li>
<li><a target="_blank" href="https://github.com/codersaiful/woo-product-table/discussions"><?php echo esc_html__( 'Forum on Repo', 'wpt_pro' ); ?></a></li>
<li><a target="_blank" href="https://wooproducttable.com/documentation/"><?php echo esc_html__( 'Documentation', 'wpt_pro' ); ?></a></li>
<li><a target="_blank" href="https://codeastrology.com/supports/"><?php echo esc_html__( 'Get Support', 'wpt_pro' ); ?></a></li>
<li><a target="_blank" href="https://wooproducttable.com/documentation/?utm_source=Product+Table+EditPage&utm_medium=Free+Version"><?php echo esc_html__( 'Documentation', 'wpt_pro' ); ?></a></li>
<li><a target="_blank" href="https://codeastrology.com/support/?utm_source=Product+Table+EditPage&utm_medium=Free+Version"><?php echo esc_html__( 'Get Support', 'wpt_pro' ); ?></a></li>


</ul>
Expand Down
4 changes: 2 additions & 2 deletions admin/menu_plugin_setting_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
function wpt_add_action_links($links) {

if( ! class_exists( 'WOO_Product_Table' ) ){
$wpt_links[] = '<a href="https://wooproducttable.com/pricing/" title="' . esc_attr__( 'Many awesome features is waiting for you', 'wpt_pro' ) . '" target="_blank">'.esc_html__( 'GET PRO VERSION','wpt_pro' ).'</a>';
$wpt_links[] = '<a href="https://wooproducttable.com/pricing/?utm_source=Product+Table+Dashboard&utm_medium=Free+Version&utm_content=Get+Pro" title="' . esc_attr__( 'Many awesome features is waiting for you', 'wpt_pro' ) . '" target="_blank">'.esc_html__( 'GET PRO VERSION','wpt_pro' ).'</a>';
}
$wpt_links[] = '<a href="' . admin_url( 'post-new.php?post_type=wpt_product_table' ) . '" title="' . esc_attr__( 'Add new Shortcode', 'wpt_pro' ) . '">' . esc_html__( 'Create Table', 'wpt_pro' ).'</a>';
$wpt_links[] = '<a href="' . admin_url( 'edit.php?post_type=wpt_product_table&page=woo-product-table-config' ) . '" title="' . esc_attr__( 'Configure for Universal', 'wpt_pro' ) . '">' . esc_html__( 'Configure', 'wpt_pro' ) . '</a>';
$wpt_links[] = '<a href="https://codeastrology.com/support/" title="' . esc_attr__( 'CodeAstrology Support', 'wpt_pro' ) . '" target="_blank">'.esc_html__( 'Support','wpt_pro' ).'</a>';
$wpt_links[] = '<a href="https://codeastrology.com/support/?utm_source=Product+Table+Dashboard&utm_medium=Free+Version" title="' . esc_attr__( 'CodeAstrology Support', 'wpt_pro' ) . '" target="_blank">'.esc_html__( 'Support','wpt_pro' ).'</a>';
$wpt_links[] = '<a href="https://github.com/codersaiful/woo-product-table" title="' . esc_attr__( 'Github Repo Link', 'wpt_pro' ) . '" target="_blank">'.esc_html__( 'Github Repository','wpt_pro' ).'</a>';

return array_merge( $wpt_links, $links );
Expand Down
9 changes: 8 additions & 1 deletion assets/css/universal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1941,4 +1941,11 @@ select.search_select.cascade-filtering {

button.single_add_to_cart_button >span.wpt_ccount:empty {
display: none;
}
}

tr.wpt_table_header_row.wpt_table_head th {
position: sticky;
top: 0; /* Don't forget this, required for the stickiness */
/* box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4); */
z-index: 9999;
}
1 change: 1 addition & 0 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jQuery(function($) {
notice_timeout = WPT_DATA.notice_timeout;
}


//Select2
if(typeof $('.wpt_product_table_wrapper .search_select').select2 === 'function' && $('.wpt_product_table_wrapper .search_select').length > 0 && WPT_DATA.select2 !== 'disable' ){
var select2Object = {};
Expand Down
33 changes: 25 additions & 8 deletions framework/ca-framework/app/require-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Require_Control extends Notice_Base
);

private $stop_next = 0;
private $file = __FILE__;

/**
* Controller of Manage required/recommended plugin.
Expand Down Expand Up @@ -84,28 +85,44 @@ public function stop_next()

public function run()
{
//Check Admin User
if( ! is_admin() ) return;

// Return null, If already our required plugin is installed.
if( is_plugin_active( $this->plugin_slug ) ) return;
if( is_plugin_active( $this->plugin_slug ) ){
return;
}

if( $this->required && ! is_plugin_active( $this->plugin_slug ) ){
$this->stop_next = 1;
};

//Check Admin User
if( ! is_admin() ){
return;
}

//Return Null Controll;
if( isset( $_GET['action'] ) && ( $_GET['action'] == 'install-plugin' || $_GET['action'] == 'activate' ) ){
$this->stop_next = 1;
return $this->stop_next;
return;
}

//Check Aganin installation prosibility when reconneded and Date over. by default we set diff_limit = 5 days.
if( ! $this->required && $this->repeat_display() ) return;

//Final Display Notice
add_action( 'admin_notices', [ $this, 'display_notice' ] );

if( $this->required ) $this->stop_next = 1;
return $this->stop_next;
return;
}

/**
* Get File information, from where class is calling.
* It's required for debugging.
*
* @return String Get File information, from where class is calling.
*/
public function get_file(){
return $this->file;
}

/**
* Display Notice Again after close using close button
* I have taken help for this part of Notice's Object js part
Expand Down
14 changes: 7 additions & 7 deletions includes/items/product_title.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
$title_variation = isset( $column_settings['title_variation'] ) ? $column_settings['title_variation'] : 'link';

if($title_variation == 'link'){
$wpt_single_product_title .= "<a class='wpt_product_title_in_td' target='{$config_value['product_link_target']}' href='" . esc_url(get_the_permalink()) . "'>" . get_the_title() . "</a>";
$wpt_single_product_title .= "<a class='wpt_product_title_in_td' target='{$config_value['product_link_target']}' href='" . esc_url(get_the_permalink()) . "'>" . $product->get_title() . "</a>";
} elseif($title_variation == 'nolink'){
$wpt_single_product_title .= "<span class='wpt_product_title_in_td'>" . get_the_title() . "</span>";
$wpt_single_product_title .= "<span class='wpt_product_title_in_td'>" . $product->get_title() . "</span>";
} elseif($title_variation == 'yith'){
$wpt_single_product_title .= "<a class='wpt_product_title_in_td yith-wcqv-button' data-product_id=" . $data['id'] . " href='#'>" . get_the_title() . "</a>";
$wpt_single_product_title .= "<a class='wpt_product_title_in_td yith-wcqv-button' data-product_id=" . $data['id'] . " href='#'>" . $product->get_title() . "</a>";
}elseif($title_variation == 'ca_quick_view'){ //Quick View by Code Astrology //https://wordpress.org/plugins/ca-quick-view/
$wpt_single_product_title .= "<a class='wpt_product_title_in_td caqv-open-modal' data-id=" . $data['id'] . " >" . get_the_title() . "</a>";
$wpt_single_product_title .= "<a class='wpt_product_title_in_td caqv-open-modal' data-id=" . $data['id'] . " >" . $product->get_title() . "</a>";
}else{
$wpt_single_product_title .= "<span class='wpt_product_title_in_td'>" . get_the_title() . "</span>";
$wpt_single_product_title .= "<span class='wpt_product_title_in_td'>" . $product->get_title() . "</span>";
}


Expand All @@ -23,7 +23,7 @@
//$desc_attr = strip_tags($desc);
$wpt_single_product_title .= $description_on && $description_on == 'yes' && $desc ? "<div class='product_description'>" . do_shortcode( $desc ) . "</div>" : '';


echo wp_kses_post( $wpt_single_product_title );
// global $allowedposttags;
echo do_shortcode( $wpt_single_product_title );

do_action('wpt_title_col_bottom', $table_ID, $settings, $column_settings, $config_value, $product); // Gallery hook new added 3.1.0.1
14 changes: 13 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://wooproducttable.com/pricing/?ref=CodeAstrology&utm_source=W
Tags: wc product table, wooproducttable,woocommerce product table, product table, wc table, quick order table, wholesale table, restaurants table
Requires at least: 4.0.0
Tested up to: 5.9.3
Stable tag: 3.1.5
Stable tag: 3.1.6
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -212,6 +212,18 @@ You can easily show specific category products. While creating new table click o

== Changelog ==

= 3.1.7 =
* Audio file issue fixed in table.

= 3.1.6 =
* WPML Full Support
* Advance Search's Dropdown Placeholder content change feature added from Configuration Page or Tab.
* Bug Fix
* More Theme Compatible fix.

= 3.1.5 =
* Spelling fixed on some place.
* Bug Fix

= 3.1.4 =
* Spelling fixed on some place.
Expand Down
54 changes: 7 additions & 47 deletions woo-product-table.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
/**
* Plugin Name: Product Table for WooCommerce
* Plugin URI: https://wooproducttable.com/pricing
* Plugin URI: https://wooproducttable.com/pricing/?utm_source=WPT+Plugin+Dashboard&utm_medium=Free+Version
* Description: WooCommerce all products display as a table in one page by shortcode. Fully responsive and mobile friendly. Easily customizable - color,background,title,text color etc.
* Author: CodeAstrology.com
* Author URI: https://wooproducttable.com/
* Author URI: https://wooproducttable.com/?utm_source=WPT+Plugin+Dashboard&utm_medium=Free+Version
* Tags: woocommerce product list,woocommerce product table, wc product table, product grid view, inventory, shop product table
*
* Version: 3.1.5
* Version: 3.1.6
* Requires at least: 4.0.0
* Tested up to: 5.9.3
* WC requires at least: 3.0.0
* WC tested up to: 6.3.1
* WC tested up to: 6.5.1
*
*
* Text Domain: wpt_pro
Expand All @@ -33,7 +33,7 @@
}

if( ! defined( 'WPT_DEV_VERSION' ) ){
define( 'WPT_DEV_VERSION', '3.1.5.1' );
define( 'WPT_DEV_VERSION', '3.1.6.0' );
}

if( ! defined( 'WPT_CAPABILITY' ) ){
Expand Down Expand Up @@ -163,16 +163,7 @@
'blank',
);

//Set Style Selection Options.
WPT_Product_Table::$style_form_options = array(
'custom' => __( 'Customized Design', 'wpt_pro' ),
'default' => __( 'Default Style', 'wpt_pro' ),
'blacky' => __( 'Beautifull Blacky', 'wpt_pro' ),
'smart' => __( 'Smart Thin', 'wpt_pro' ),
'none' => __( 'Select None', 'wpt_pro' ),
'green' => __( 'Green Style', 'wpt_pro' ),
'blue' => __( 'Blue Style', 'wpt_pro' ),
);

/**
* Set ShortCode text as Static Properties
*
Expand Down Expand Up @@ -254,38 +245,7 @@
*/
class WPT_Product_Table{

/**
* Static Property
* Used for Maintenance of Admin Notice for Require Plugin
* With Our Plogin Woo Product Table Pro and Woo Product Table
*
* @var Array
*/
public static $own = array(
'plugin' => 'woo-product-table/woo-product-table.php',
'plugin_slug' => 'woo-product-table',
'type' => 'error',
'message' => 'Install To working',
'btn_text' => 'Install Now',
'name' => 'Woo Product Table',
'perpose' => 'install', //install,upgrade,activation
);
/**
* Basic information for UltraAddons
*
* acceptable data is
* $plugin_url = 'https://wordpress.org/plugins/ultraaddons-elementor-lite/';
$plugin_slug = 'ultraaddons-elementor-lite';
$perpose = 'install';
$type = 'warning';
* @var type
*/
public static $ultraaddons_args = array(
'plugin_url' => 'https://wordpress.org/plugins/ultraaddons-elementor-lite/',
'plugin_slug' => 'ultraaddons-elementor-lite',
'perpose' => 'install',
);


/**
* To set Default Value for Woo Product Table, So that, we can set Default Value in Plugin Start and
* can get Any were
Expand Down