Skip to content

Commit

Permalink
Release v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
azurecurve committed Aug 2, 2022
1 parent e662a91 commit c3c1a34
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 40 deletions.
26 changes: 16 additions & 10 deletions assets/css/admin-pluginmenu.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
azurecurve plugin index
----------------------------------------------- */
a.azrcrv-plugin-index, a.azrcrv-premium-plugin-index, a.azrcrv-bright-plugin-index {
a.azrcrv-plugin-index, a.azrcrv-premium-plugin-index, a.azrcrv-bright-plugin-index, a.azrcrv-grey-plugin-index {
display: block;
float: left;
text-align: center;
Expand All @@ -14,15 +14,6 @@ a.azrcrv-plugin-index, a.azrcrv-premium-plugin-index, a.azrcrv-bright-plugin-ind
font-weight: 700;
border-radius: 5px;
}
a.azrcrv-plugin-index:hover, a.azrcrv-premium-plugin-index:hover, a.azrcrv-bright-plugin-index:hover {
text-decoration: underline;
}
a.azrcrv-plugin-index:hover {
background-color: #0000ff;
}
a.azrcrv-premium-plugin-index:hover {
background-color: #ff0000;
}
a.azrcrv-plugin-index{
background-color: #007FFF;
}
Expand All @@ -33,7 +24,22 @@ a.azrcrv-bright-plugin-index {
background-color: #7fff00;
color: #000;
}
a.azrcrv-grey-plugin-index {
background-color: #808080;
}
a.azrcrv-plugin-index:hover, a.azrcrv-premium-plugin-index:hover, a.azrcrv-bright-plugin-index:hover, a.azrcrv-grey-plugin-index:hover {
text-decoration: underline;
}
a.azrcrv-plugin-index:hover {
background-color: #0000ff;
}
a.azrcrv-premium-plugin-index:hover {
background-color: #ff0000;
}
a.azrcrv-bright-plugin-index:hover {
background-color: #8000ff;
color: #fff;
}
a.azrcrv-grey-plugin-index:hover {
background-color: #36454F;
}
2 changes: 1 addition & 1 deletion azrcrv-avatars.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* ------------------------------------------------------------------------------
* Plugin Name: Avatars
* Description: Allow users to upload their own avatar.
* Version: 2.1.1
* Version: 2.2.0
* Author: azurecurve
* Author URI: https://development.azurecurve.co.uk/classicpress-plugins/
* Plugin URI: https://development.azurecurve.co.uk/classicpress-plugins/avatars/
Expand Down
54 changes: 31 additions & 23 deletions includes/azurecurve-menu-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,27 @@ function azrcrv_display_azurecurve_menu() {
$tab_active_label = esc_html__( 'Active Plugins', 'azrcrv-a' );
$active_plugins = '';

foreach ( $plugin_array as $plugin_name => $plugin_details ) {
if ( $plugin_details['retired'] == 0 ) {
foreach ( $plugin_array as $plugin_name => $plugin_details ) {
$alternative_color = '';

if ( isset( $plugin_details['premium'] ) and $plugin_details['premium'] == 1 ) {
$alternative_color = 'premium-';
}

if ( isset( $plugin_details['bright'] ) and $plugin_details['bright'] == 1 ) {
$alternative_color = 'bright-';
}
if ( isset( $plugin_details['premium'] ) and $plugin_details['premium'] == 1 ) {
$alternative_color = 'premium-';

if ( isset( $plugin_details['retired'] ) and $plugin_details['retired'] == 1 ) {
$alternative_color = 'grey-';
}

if ( is_plugin_active( $plugin_details['plugin_link'] ) ) {
$active_plugins .= '<a href="' . esc_url_raw( $plugin_details['admin_URL'] ) . '" class="azrcrv-' . esc_html( $alternative_color ) . 'plugin-index">' . esc_html( $plugin_name ) . '</a>';
}

}
}

$tab_active = '
<table class="form-table azrcrv-settings">
Expand Down Expand Up @@ -105,29 +112,30 @@ function azrcrv_display_azurecurve_menu() {

$countofplugins = 0;

foreach ( $plugin_array as $plugin_name => $plugin_details ) {
foreach ( $plugin_array as $plugin_name => $plugin_details ) {

if ( $plugin_details['retired'] == 0 ) {
if ( $plugin_details['retired'] == 0 ) {

$alternative_color = '';
if ( isset( $plugin_details['bright'] ) and $plugin_details['bright'] == 1 ) {
$alternative_color = 'bright-';
}

if ( isset( $plugin_details['premium'] ) and $plugin_details['premium'] == 1 ) {
$alternative_color = 'premium-';
}
$alternative_color = '';

if ( ! is_plugin_active( $plugin_details['plugin_link'] ) ) {
$other_plugins .= '<a href="' . esc_url_raw( $plugin_details['dev_URL'] ) . '" class="azrcrv-' . esc_html( $alternative_color ) . 'plugin-index">' . esc_html( $plugin_name ) . '</a>';
$countofplugins += 1;
if ( isset( $plugin_details['premium'] ) and $plugin_details['premium'] == 1 ) {
$alternative_color = 'premium-';
}

if ( isset( $plugin_details['bright'] ) and $plugin_details['bright'] == 1 ) {
$alternative_color = 'bright-';
}

if ( ! is_plugin_active( $plugin_details['plugin_link'] ) ) {
$other_plugins .= '<a href="' . esc_url_raw( $plugin_details['dev_URL'] ) . '" class="azrcrv-' . esc_html( $alternative_color ) . 'plugin-index">' . esc_html( $plugin_name ) . '</a>';
$countofplugins += 1;
}
}
}
}

if ( $countofplugins == 0 ) {
$other_plugins .= sprintf( esc_html__( 'Congratulations! You\'re using all of the %s plugins.', 'azrcrv-a' ), 'azurecurve | Development' );
}
if ( $countofplugins == 0 ) {
$other_plugins .= sprintf( esc_html__( 'Congratulations! You\'re using all of the %s plugins.', 'azrcrv-a' ), 'azurecurve | Development' );
}

$tab_other = '
<table class="form-table azrcrv-settings">
Expand Down Expand Up @@ -157,7 +165,7 @@ function azrcrv_display_azurecurve_menu() {
</table>';

require_once 'azurecurve-menu-tabs-output.php';
require_once 'azurecurve-menu-tabs-output.php';

echo '</div>';

Expand Down
10 changes: 7 additions & 3 deletions includes/azurecurve-plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,17 @@
'retired' => 0,
'updated' => '2020-04-04',
),
'Load Admin CSS' => array(
'plugin_link' => 'azrcrv-load-admin-css/azrcrv-load-admin-css.php',
'admin_URL' => 'admin.php?page=azrcrv-lacss',
'dev_URL' => 'https://development.azurecurve.co.uk/classicpress-plugins/load-admin-css/',
'retired' => 0,
'updated' => '2022-01-31',
),
'Loop Injection' => array(
'plugin_link' => 'azrcrv-loop-injection/azrcrv-loop-injection.php',
'admin_URL' => 'admin.php?page=azrcrv-li',
'dev_URL' => 'https://development.azurecurve.co.uk/classicpress-plugins/loop-injection/',
'text' => 'Loop Injection',
'retired' => 0,
'updated' => '2020-04-04',
),
Expand All @@ -212,15 +218,13 @@
'plugin_link' => 'azrcrv-mobile-detection/azrcrv-mobile-detection.php',
'admin_URL' => 'admin.php?page=azrcrv-md',
'dev_URL' => 'https://development.azurecurve.co.uk/classicpress-plugins/mobile-detection/',
'text' => 'Mobile Detection',
'retired' => 0,
'updated' => '2020-04-04',
),
'Multisite Favicon' => array(
'plugin_link' => 'azrcrv-multisite-favicon/azrcrv-multisite-favicon.php',
'admin_URL' => 'admin.php?page=azrcrv-msf',
'dev_URL' => 'https://development.azurecurve.co.uk/classicpress-plugins/multisite-favicon/',
'text' => 'Multisite Favicon',
'retired' => 0,
'updated' => '2020-04-04',
),
Expand Down
2 changes: 1 addition & 1 deletion libraries/updateclient/UpdateClient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
namespace azurecurve\Avatars;

// EDIT: URL where Update Manager is installed; with trailing slash!
const UPDATE_SERVER = 'https://software.gieffeedizioni.it/';
const UPDATE_SERVER = 'https://update.development.azurecurve.co.uk/';

// EDIT: Comment this out and fill with the first part of the url
// of your Download link to make sure that updates
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== Avatars ===

Description: Change the default avatar and allow users to upload their own.
Version: 2.1.1
Version: 2.2.0
Tags: avatar,profile picture,gravatar
Author: azurecurve
Author URI: https://development.azurecurve.co.uk/
Plugin URI: https://development.azurecurve.co.uk/classicpress-plugins/avatars/
Download link: https://github.com/azurecurve/azrcrv-avatars/releases/download/v2.1.1/azrcrv-avatars.zip
Download link: https://github.com/azurecurve/azrcrv-avatars/releases/download/v2.2.0/azrcrv-avatars.zip
Donate link: https://development.azurecurve.co.uk/support-development/
Requires PHP: 5.6
Requires: 1.0.0
Expand Down Expand Up @@ -51,6 +51,10 @@ This plugin is developed for ClassicPress, but will likely work on WordPress.

# Changelog

### [Version 2.2.0](https://github.com/azurecurve/azrcrv-avatars/releases/tag/v2.2.0)
* Update plugin menu to handle display of retired active plugins.
* Fix incorrect update server path; **plugin will need to be manually updated if 2.1.0 or 2.1.1 was installed**.

### [Version 2.1.1](https://github.com/azurecurve/azrcrv-avatars/releases/tag/v2.1.1)
* Fix bug in namespace of Update Client.

Expand Down

0 comments on commit c3c1a34

Please sign in to comment.