Skip to content

Commit

Permalink
Merge pull request #22 from codersaiful/2.7.0.33
Browse files Browse the repository at this point in the history
scrollbar style added
filter for TAxnomy name
jetpack issue fixed
readme.md link added and logo added at images folder
  • Loading branch information
codersaiful authored Sep 16, 2020
2 parents a32e17e + c88573a commit 6a5353f
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 3 deletions.
19 changes: 19 additions & 0 deletions assets/css/universal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,26 @@ div.wpt_product_table_wrapper table.wpt_product_table th.wpt_action {
margin-bottom: 10px;
padding-bottom: 8px;
}
/* Scrollbar Design */
/* width */
::-webkit-scrollbar {
width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #0a7f9c;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
/*Audio Player Style*/
/*Audio Player Style */
.mejs-container {
Expand Down
Binary file added assets/images/wpt-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/js/admin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function($) {
'use strict';
$(document).ready(function() {
if(! $('body').hasClass('wpt_admin_body ')){
if(! $('body').hasClass('wpt_admin_body')){
return false;
}
//For select, used select2 addons of jquery
Expand Down
42 changes: 41 additions & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@ function wpt_freeze_column_maintain( $table_ID, $args, $column_settings, $enable
$default_width = apply_filters( 'wpto_default_width_freeze_col', '120px', $table_ID );
$width = isset( $style['width'] ) && !empty( $style['width'] ) ? $style['width'] : $default_width;
$selector = '#table_id_' . $table_ID . ' .wpt_table_tag_wrapper';

/*
$css_code = <<<EOF
<style>
$selector th.wpt_freeze,$selector td.wpt_freeze {
Expand All @@ -833,11 +835,49 @@ function wpt_freeze_column_maintain( $table_ID, $args, $column_settings, $enable
width: $width;
}
$selector td.td_or_cell.wpt_freeze .item_inside_cell{display: inline-block;}
$selector, $selector table, $selector tr{position: static;}
$selector{margin-left: $width;}
</style>
EOF;
*/

ob_start();
?>
<style>
<?php echo $selector; ?> th.wpt_freeze,<?php echo $selector; ?> td.wpt_freeze {
position: absolute;
left: 0;
top: auto;
width: <?php echo $width; ?>;
}
<?php echo $selector; ?> th.wpt_freeze{}
<?php echo $selector; ?> td.td_or_cell.wpt_freeze .item_inside_cell{display: inline-block;}
<?php echo $selector; ?>, <?php echo $selector; ?> table, <?php echo $selector; ?> tr{position: static;}
<?php echo $selector; ?>{margin-left: <?php echo $width; ?>;}
</style>
<script>
(function($) {
'use strict';
$(document).ready(function($){
var height = $('<?php echo $selector; ?> table tr').not('.wpt_freeze').height();
console.log(height);
//height = 100;
$('th.wpt_freeze').css('height', height);
});
})(jQuery);

</script>








<?php
$css_code = ob_get_clean();
echo $css_code;
}
}
Expand Down
2 changes: 1 addition & 1 deletion includes/shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ function wpt_texonomy_search_generator( $texonomy_keyword, $temp_number , $searc
if( !$taxonomy_details ){
return false;
}
$label = $taxonomy_details->labels->menu_name;//label;
$label = apply_filters( 'wpto_searchbox_taxonomy_name', $taxonomy_details->labels->menu_name, $texonomy_keyword, $temp_number );//label;
$label_all_items = $taxonomy_details->labels->all_items;
$html .= "<div class='search_single search_single_texonomy search_single_{$texonomy_keyword}'>";
$html .= "<label class='search_keyword_label {$texonomy_keyword}' for='{$texonomy_keyword}_{$temp_number}'>{$label}</label>";
Expand Down
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@


## Available Filter Hook List
https://docs.google.com/spreadsheets/d/1RwnzuupIYC-ao2R3_P3hZU__R-8nA3p7o2XoWWntNig/edit?usp=sharing

## Available Action Hook List
https://docs.google.com/spreadsheets/d/1aK2__VKTZbPk8HMTfck4RjdFq6Z7nV7yyZOnZ0hUkK4/edit?usp=sharing

0 comments on commit 6a5353f

Please sign in to comment.