Skip to content

Commit

Permalink
- fixed sorting icons
Browse files Browse the repository at this point in the history
- bumped test version to 6.4.2
- bumped version to 0.3.6
  • Loading branch information
fatihbalsoy committed Dec 16, 2023
1 parent 4e7e0b2 commit 8024524
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 15 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "material-board",
"version": "0.3.5",
"description": "The Material Board plugin for WordPress updates the appearance of your site's dashboard to a sleeker, more contemporary design based on [Google's Material Design Guidelines](https://material.io/design). This plugin preserves your existing dashboard layout, avoids making any significant alterations, and doesn't include any branding or promotional content. It's straightforward to use and comes at no cost.",
"private": false,
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/plugin_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@

PLUGIN_BUNDLE_LINE=$(cat $SCRIPTPATH/src/material-board.php | grep "\$fbwpmdp_bundle =")
PLUGIN_BUNDLE=${${PLUGIN_BUNDLE_LINE%\"*}#*\"}
PLUGIN_VERSION_LINE=$(cat $SCRIPTPATH/src/material-board.php | grep "\$fbwpmdp_version =")
PLUGIN_VERSION=${${PLUGIN_VERSION_LINE%\"*}#*\"}
PLUGIN_VERSION_LINE=$(cat $SCRIPTPATH/src/readme.txt | grep "Stable tag: ")
PLUGIN_VERSION=$(echo $PLUGIN_VERSION_LINE | sed 's/.*Stable tag: //')
11 changes: 8 additions & 3 deletions src/material-board.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://github.com/fatihbalsoy/material-board
* Description: The Material Board plugin for WordPress updates the appearance of your site's dashboard to a sleeker, more contemporary design based on Google's Material Design Guidelines. This plugin preserves your existing dashboard layout, avoids making any significant alterations, and doesn't include any branding or promotional content. It's straightforward to use and comes at no cost.
* Author: Fatih Balsoy
* Version: 0.3.5
* Version: 0.3.6
* Text Domain: material-board
* Domain Path: /languages
* Author URI: https://fatih.bal.soy
Expand All @@ -18,7 +18,6 @@
if (!defined('ABSPATH'))
exit;

$fbwpmdp_version = "0.3.5";
$fbwpmdp_author = "Fatih Balsoy";
$fbwpmdp_author_website = "https://fatih.bal.soy";
$fbwpmdp_website = "https://fatih.bal.soy/projects/material-board";
Expand All @@ -33,7 +32,6 @@
$fbwpmdp_name = "Material Board";
$fbwpmdp_bundle = "material-board";
$fbwpmdp_settings_title = $fbwpmdp_name;
// $fbwpmdp_directory = plugins_url('', dirname(__FILE__)) . "/" . $fbwpmdp_bundle;

class MaterialBoardPlugin
{
Expand Down Expand Up @@ -68,6 +66,13 @@ class MaterialBoardPlugin
function __construct()
{
$this->settings_slug = 'material-board-settings';
if (is_admin()) {
if(!function_exists('get_plugin_data')){
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
}
$plugin_data = get_plugin_data( __FILE__ );
$GLOBALS["fbwpmdp_version"] = $plugin_data["Version"];
}

add_action('wp_enqueue_scripts', array($this, 'fbwpmdp_admin_user_theme_style'));
add_action('admin_enqueue_scripts', array($this, 'fbwpmdp_admin_theme_style'));
Expand Down
4 changes: 2 additions & 2 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: fatihbalsoy
Donate link: https://paypal.me/fatihbalsoy
Tags: material, design, dashboard
Tested up to: 6.3.1
Stable tag: 0.3.5
Tested up to: 6.4.2
Stable tag: 0.3.6
Requires at least: 5.8
Requires PHP: 7.0.0
License: AGPLv3 or later
Expand Down
20 changes: 13 additions & 7 deletions src/styles/icons/sorting.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,25 @@
}

.dashicons-arrow-up:before,
.bulk-action-notice .toggle-indicator:before, .js .meta-box-sortables .postbox .toggle-indicator:before, .js .sidebar-name .sidebar-name-arrow:before,
th.desc a:focus span.sorting-indicator:before, th.desc:hover span.sorting-indicator:before, th.sorted.asc .sorting-indicator:before{
.bulk-action-notice .toggle-indicator:before,
.js .meta-box-sortables .postbox .toggle-indicator:before,
.js .sidebar-name .sidebar-name-arrow:before,
span.sorting-indicator.asc::before
{
content: 'expand_less';
}

.dashicons-arrow-down:before,
.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator:before, .js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before, .js .widgets-holder-wrap.closed .sidebar-name-arrow:before,
th.asc a:focus span.sorting-indicator:before, th.asc:hover span.sorting-indicator:before, th.sorted.desc .sorting-indicator:before{
.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator:before,
.js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before,
.js .widgets-holder-wrap.closed .sidebar-name-arrow:before,
span.sorting-indicator.desc::before
{
content: 'expand_more';
}
th.asc a:focus span.sorting-indicator:before, th.asc:hover span.sorting-indicator:before, th.sorted.desc .sorting-indicator:before,
th.desc a:focus span.sorting-indicator:before, th.desc:hover span.sorting-indicator:before, th.sorted.asc .sorting-indicator:before{
font-size: 120%;
span.sorting-indicator:before,
span.sorting-indicator:before {
font-size: 120% !important;
}

.dashicons-arrow-right:before,
Expand Down
10 changes: 10 additions & 0 deletions src/styles/wp-admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,16 @@ h3.accordion-section-title {
border-radius: var(--br-10px);
}

span.sorting-indicators {
margin-top: -1px;
margin-left: 4px;
}

.fixed .column-comments .vers {
padding-left: 3px;
padding-bottom: 3px;
}

.button.installed:before,
.button.installing:before,
.button.updated-message:before,
Expand Down

0 comments on commit 8024524

Please sign in to comment.