Skip to content

Commit

Permalink
4.4.31
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelbart committed Apr 6, 2021
1 parent 55dd55f commit c057512
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
11 changes: 11 additions & 0 deletions core/assets/css/admin-columns.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.column-helpful-pro {
width: 125px !important;
}

.column-helpful-contra {
width: 125px !important;
}

.column-helpful-feedback {
width: 125px !important;
}
6 changes: 6 additions & 0 deletions core/modules/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ public function callback_admin_page()
*/
public function enqueue_scripts( $hook_suffix )
{
/* shrink admin columns */
if ( 'on' === get_option( 'helpful_shrink_admin_columns' ) ) {
$file = plugins_url( 'core/assets/css/admin-columns.css', HELPFUL_FILE );
wp_enqueue_style( 'helpful-admin-columns', $file );
}

if ( 'toplevel_page_helpful' !== $hook_suffix ) {
return;
}
Expand Down
1 change: 1 addition & 0 deletions core/tabs/class-details.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function register_settings()
'helpful_metabox',
'helpful_widget_hide_publication',
'helpful_hide_admin_columns',
'helpful_shrink_admin_columns',
'helpful_feedback_widget',
'helpful_feedback_disabled',
];
Expand Down
2 changes: 1 addition & 1 deletion helpful.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Helpful
* Description: Add a fancy feedback form under your posts or post-types and ask your visitors a question. Give them the abbility to vote with yes or no.
* Version: 4.4.30
* Version: 4.4.31
* Author: Pixelbart
* Author URI: https://pixelbart.de
* Text Domain: helpful
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: helpful, poll, feedback, reviews, vote, review, voting
Requires at least: 4.6
Tested up to: 5.7
Requires PHP: 5.6.20
Stable tag: 4.4.30
Stable tag: 4.4.31
License: MIT License
License URI: https://opensource.org/licenses/MIT

Expand Down
8 changes: 8 additions & 0 deletions templates/tabs/tab-details.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@
<?php echo esc_html_x( 'Hide Helpful Admin Columns', 'label', 'helpful' ); ?>
</label>
</div><!-- .helpful-admin-group -->

<div class="helpful-admin-group helpful-margin-bottom">
<label>
<?php $value = get_option( 'helpful_shrink_admin_columns' ); ?>
<input id="helpful_shrink_admin_columns" type="checkbox" name="helpful_shrink_admin_columns" <?php checked( 'on', $value ); ?> />
<?php echo esc_html_x( 'Shrink Helpful Admin Columns', 'label', 'helpful' ); ?>
</label>
</div><!-- .helpful-admin-group -->

<div class="helpful-admin-group">
<label>
Expand Down

0 comments on commit c057512

Please sign in to comment.