Skip to content

Commit

Permalink
Merge pull request #31 from codersaiful/2.7.0.37
Browse files Browse the repository at this point in the history
2.7.0.37
  • Loading branch information
codersaiful authored Sep 27, 2020
2 parents 3f5bb57 + 7a438d7 commit b02b2a2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
3 changes: 1 addition & 2 deletions admin/action-hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ function wpt_configure_basic_part( $settings,$current_config_value,$field_name )
<h3 class="with-background dark-background"><?php esc_html_e( 'Basic Settings', 'wpt_pro' );?></h3>
<table class="ultraaddons-table">
<tbody>
<?php if(class_exists( 'WOO_Product_Table' ) ){ ?>
<tr class="table_disable_plugin_noti">
<th>
<label class="wpt_label wpt_disable_plugin_noti" for="wpt_disable_plugin_noti"><?php esc_html_e( 'Plugin Recomendation', 'wpt_pro' );?></label>
Expand All @@ -116,7 +115,7 @@ function wpt_configure_basic_part( $settings,$current_config_value,$field_name )

</td>
</tr>
<?php } ?>

<tr>
<th><label class="wpt_label" for="wpt_table_custom_add_to_cart"><?php esc_html_e( 'Add to Cart Icon', 'wpt_pro' ); ?></label></th>
<td>
Expand Down
16 changes: 13 additions & 3 deletions admin/post_metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,20 @@ function wpt_shortcode_configuration_metabox_render(){
if( !function_exists( 'wpt_shortcode_configuration_metabox_save_meta' ) ){
function wpt_shortcode_configuration_metabox_save_meta( $post_id, $post ) { // save the data
/*
* We need to verify this came from our screen and with proper authorization,
* because the save_post action can be triggered at other times.
*/
* We need to verify this came from our screen and with proper authorization,
* because the save_post action can be triggered at other times.
*/

if ( ! isset( $_POST['wpt_shortcode_nonce_value'] ) ) { // Check if our nonce is set.
return;
}

// verify this came from the our screen and with proper authorization,
// because save_post can be triggered at other times
if( !wp_verify_nonce( $_POST['wpt_shortcode_nonce_value'], plugin_basename(__FILE__) ) ) {
return;
}

/**
* @Hook Filter: wpto_on_save_global_post
* To change/Modify $_POST
Expand Down
6 changes: 6 additions & 0 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
}
});

$('.item_inside_cell').each(function(){
var style = $(this).attr('style');
$(this).children('a').attr('style',style);
$(this).attr('style','');
});

/**
* Checking wpt_pro_table_body class available in body tag
*
Expand Down
4 changes: 3 additions & 1 deletion includes/shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ function wpt_shortcode_generator( $atts = false ) {
//Used meta_key column_array, enabled_column_array, basics, conditions, mobile, search_n_filter,
$column_array = get_post_meta( $ID, 'column_array', true );
$enabled_column_array = get_post_meta( $ID, 'enabled_column_array', true );

if( empty( $enabled_column_array ) ){
return sprintf( '<p>' . esc_html( 'Table{ID: %s} column setting is not founded properly!', 'wpt_pro' ) . '</p>', $ID );
}
/*
if( !isset( $enabled_column_array['product_title'] ) ){
$temp_product_title['product_title'] = $column_array['product_title'];
Expand Down

0 comments on commit b02b2a2

Please sign in to comment.