Skip to content

Commit

Permalink
Merge pull request #334 from envato/oliver/new-logo
Browse files Browse the repository at this point in the history
Update to use the new Envato logo
  • Loading branch information
ostigley authored Aug 14, 2024
2 parents 7063f3a + a61427d commit fae298a
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 134 deletions.
Binary file modified docs/dist/envato-market.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/dist/update-check.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Envato Market",
"slug": "envato-market",
"version": "2.0.11",
"version": "2.0.12",
"author": "<a href=\"https://envato.com/market-plugin/\">Envato</a>",
"author_profile": "https://envato.com/market-plugin/",
"contributors": {
Expand All @@ -23,7 +23,7 @@
"homepage": "https://envato.com/market-plugin/",
"sections": {
"description": "WordPress Theme & Plugin management for the Envato Market.",
"changelog": "<h4>v2.0.11</h4><ul><li>Perform additional current_user_can checks during theme installation</li></ul><h4>v2.0.10</h4><ul><li>Fix a bug where themes didn't load in version 2.0.9. Sorry about that folks.</li><li>Improvements to the development environment</li></ul><h4>v2.0.9</h4><ul><li>PHP 8.2 compatibility / deprecation warning fixes</li><li>Improvements to the development environment</li></ul><h4>v2.0.8</h4><ul><li>Ensure compatibility with 6.1</li><li>Fix blank page bug when items had no reviews</li></ul><h4>v2.0.7</h4><ul><li>Fix global notice hidden bug</li></ul><h4>v2.0.6</h4><ul><li>Add health check information to help diagnose common plugin issues</li></ul><h4>v2.0.5</h4><ul><li>Fix javascript compatibility with broken jQuery in 3rd party themes/plugins</li></ul>"
"changelog": "<h4>v2.0.12</h4><ul><li>Rebrand with the new Envato logo</li></ul><h4>v2.0.11</h4><ul><li>Perform additional current_user_can checks during theme installation</li></ul><h4>v2.0.10</h4><ul><li>Fix a bug where themes didn't load in version 2.0.9. Sorry about that folks.</li><li>Improvements to the development environment</li></ul><h4>v2.0.9</h4><ul><li>PHP 8.2 compatibility / deprecation warning fixes</li><li>Improvements to the development environment</li></ul><h4>v2.0.8</h4><ul><li>Ensure compatibility with 6.1</li><li>Fix blank page bug when items had no reviews</li></ul><h4>v2.0.7</h4><ul><li>Fix global notice hidden bug</li></ul><h4>v2.0.6</h4><ul><li>Add health check information to help diagnose common plugin issues</li></ul><h4>v2.0.5</h4><ul><li>Fix javascript compatibility with broken jQuery in 3rd party themes/plugins</li></ul>"
},
"short_description": "WordPress Theme & Plugin management for the Envato Market.",
"download_link": "http://envato.github.io/wp-envato-market/dist/envato-market.zip",
Expand Down
4 changes: 2 additions & 2 deletions envato-market.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Envato Market
* Plugin URI: https://envato.com/market-plugin/
* Description: WordPress Theme & Plugin management for the Envato Market.
* Version: 2.0.11
* Version: 2.0.12
* Author: Envato
* Author URI: https://envato.com
* Requires at least: 5.1
Expand All @@ -21,7 +21,7 @@


/* Set plugin version constant. */
define( 'ENVATO_MARKET_VERSION', '2.0.11' );
define( 'ENVATO_MARKET_VERSION', '2.0.12' );

/* Debug output control. */
define( 'ENVATO_MARKET_DEBUG_OUTPUT', 0 );
Expand Down
Binary file removed fonts/envato-market.eot
Binary file not shown.
11 changes: 0 additions & 11 deletions fonts/envato-market.svg

This file was deleted.

Binary file removed fonts/envato-market.ttf
Binary file not shown.
Binary file removed fonts/envato-market.woff
Binary file not shown.
15 changes: 1 addition & 14 deletions images/envato-market-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 4 additions & 50 deletions inc/admin/class-envato-market-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ public function init_actions() {
// Maybe delete the site transients.
add_action( 'init', array( $this, 'maybe_delete_transients' ), 11 );

// Add the menu icon.
add_action( 'admin_head', array( $this, 'add_menu_icon' ) );

// Add the menu.
add_action( 'admin_menu', array( $this, 'add_menu_page' ) );

Expand Down Expand Up @@ -351,52 +348,6 @@ public static function do_settings_sections( $page, $columns = 2 ) {
}
}

/**
* Add a font based menu icon
*
* @since 1.0.0
*/
public function add_menu_icon() {
// Fonts directory URL.
$fonts_dir_url = envato_market()->get_plugin_url() . 'fonts/';

// Create font styles.
$style = '<style type="text/css">
/*<![CDATA[*/
@font-face {
font-family: "envato-market";
src:url("' . $fonts_dir_url . 'envato-market.eot?20150626");
src:url("' . $fonts_dir_url . 'envato-market.eot?#iefix20150626") format("embedded-opentype"),
url("' . $fonts_dir_url . 'envato-market.woff?20150626") format("woff"),
url("' . $fonts_dir_url . 'envato-market.ttf?20150626") format("truetype"),
url("' . $fonts_dir_url . 'envato-market.svg?20150626#envato") format("svg");
font-weight: normal;
font-style: normal;
}
#adminmenu .toplevel_page_' . envato_market()->get_slug() . ' .menu-icon-generic div.wp-menu-image:before {
font: normal 20px/1 "envato-market" !important;
content: "\e600";
speak: none;
padding: 6px 0;
height: 34px;
width: 20px;
display: inline-block;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
transition: all .1s ease-in-out;
}
/*]]>*/
</style>';

// Remove space after colons.
$style = str_replace( ': ', ':', $style );

// Remove whitespace.
echo str_replace( array( "\r\n", "\r", "\n", "\t", ' ', ' ', ' ', ' ', ' ' ), '', $style );
}

/**
* Adds the menu.
*
Expand All @@ -409,6 +360,8 @@ public function add_menu_page() {
return;
}

$svg_icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72"><path fill="black" d="M39.137058 70.157119c1.685122 0 3.051217-1.365967 3.051217-3.051217 0-1.685122-1.366095-3.051217-3.051217-3.051217-1.685121 0-3.051217 1.366095-3.051217 3.051217 0 1.68525 1.366096 3.051217 3.051217 3.051217zm17.560977-23.85614-17.212984 1.84103c-.321858.03862-.47635-.373356-.231738-.566471l16.852503-13.118945c1.094318-.901204 1.789532-2.291632 1.493422-3.785054-.296109-2.291632-2.188636-3.785054-4.570388-3.47607L34.721548 29.87333c-.321858.0515-.502099-.360481-.231738-.566471l18.139936-13.852782c3.579064-2.780856 3.875174-8.2524479.592219-11.4324082-2.986845-2.9868582-7.763223-2.8838635-10.737194.1029947L13.24716 33.864373c-1.094318 1.197313-1.596417 2.780856-1.287433 4.480268.502099 2.690736 3.17996 4.480268 5.870696 3.978169l15.758184-3.218583c.347607-.06437.527847.38623.231738.579345L16.337 50.871367c-2.188636 1.390428-3.17996 3.875175-2.484746 6.359921.695214 3.282955 3.978169 5.175482 7.158129 4.377273l26.134897-6.437166c.296109-.07725.514973.270361.321858.502099l-4.081164 5.033864c-1.094318 1.390428.695214 3.282955 2.188637 2.188637l13.42793-11.033304c2.381751-1.982647.798208-5.870696-2.291632-5.574586z"/></svg>';

$page = add_menu_page(
__( 'Envato Market', 'envato-market' ),
__( 'Envato Market', 'envato-market' ),
Expand All @@ -417,7 +370,8 @@ public function add_menu_page() {
array(
$this,
'render_admin_callback',
)
),
'data:image/svg+xml;base64,' . base64_encode($svg_icon)
);

// Enqueue admin CSS.
Expand Down
102 changes: 51 additions & 51 deletions languages/envato-market.pot
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright (C) 2023 Envato
# Copyright (C) 2024 Envato
# This file is distributed under the same license as the Envato Market package.
msgid ""
msgstr ""
"Project-Id-Version: Envato Market 2.0.11\n"
"Project-Id-Version: Envato Market 2.0.12\n"
"Report-Msgid-Bugs-To: Envato Support Team <support@envato.com>\n"
"POT-Creation-Date: 2023-12-11 02:54:11+00:00\n"
"POT-Creation-Date: 2024-08-14 01:28:42+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2024-MO-DA HO:MI+ZONE\n"
"Last-Translator: Envato Support Team <support@envato.com>\n"
"Language-Team: Envato Support Team <support@envato.com>\n"
"X-Generator: grunt-wp-i18n 1.0.3\n"
Expand All @@ -34,180 +34,180 @@ msgstr ""
msgid "Cheatin&#8217; huh?"
msgstr ""

#: inc/admin/class-envato-market-admin.php:285
#: inc/admin/class-envato-market-admin.php:282
msgid "You do not have sufficient permissions to delete transients."
msgstr ""

#. Plugin Name of the plugin/theme
msgid "Envato Market"
msgstr ""

#: inc/admin/class-envato-market-admin.php:483
#: inc/admin/class-envato-market-admin.php:437
msgid "Save"
msgstr ""

#: inc/admin/class-envato-market-admin.php:484
#: inc/admin/class-envato-market-admin.php:438
msgid "Remove"
msgstr ""

#: inc/admin/class-envato-market-admin.php:485
#: inc/admin/class-envato-market-admin.php:439
msgid "Cancel"
msgstr ""

#: inc/admin/class-envato-market-admin.php:486
#: inc/admin/class-envato-market-admin.php:440
msgid "An unknown error occurred. Try again."
msgstr ""

#: inc/admin/class-envato-market-admin.php:509
#: inc/admin/class-envato-market-admin.php:463
#: inc/admin/view/partials/settings.php:21
msgid "Test API Connection"
msgstr ""

#: inc/admin/class-envato-market-admin.php:514
#: inc/admin/class-envato-market-admin.php:468
#: inc/admin/view/callback/setting/items.php:22
msgid "ID"
msgstr ""

#: inc/admin/class-envato-market-admin.php:517 inc/admin/functions.php:341
#: inc/admin/class-envato-market-admin.php:471 inc/admin/functions.php:341
#: inc/admin/view/callback/setting/items.php:24
msgid "Delete"
msgstr ""

#: inc/admin/class-envato-market-admin.php:538
#: inc/admin/class-envato-market-admin.php:492
msgid "Remove Item"
msgstr ""

#: inc/admin/class-envato-market-admin.php:539
#: inc/admin/class-envato-market-admin.php:493
msgid ""
"You are about to remove the connection between the Envato Market API and "
"this item. You cannot undo this action."
msgstr ""

#: inc/admin/class-envato-market-admin.php:544
#: inc/admin/class-envato-market-admin.php:498
#: inc/admin/view/callback/setting/items.php:37
msgid "Add Item"
msgstr ""

#: inc/admin/class-envato-market-admin.php:547
#: inc/admin/class-envato-market-admin.php:624
#: inc/admin/class-envato-market-admin.php:501
#: inc/admin/class-envato-market-admin.php:578
msgid "Token"
msgstr ""

#: inc/admin/class-envato-market-admin.php:550
#: inc/admin/class-envato-market-admin.php:504
msgid "Enter the Envato API Personal Token."
msgstr ""

#: inc/admin/class-envato-market-admin.php:551
#: inc/admin/class-envato-market-admin.php:505
msgid "Item ID"
msgstr ""

#: inc/admin/class-envato-market-admin.php:553
#: inc/admin/class-envato-market-admin.php:507
msgid "Enter the Envato Item ID."
msgstr ""

#: inc/admin/class-envato-market-admin.php:577 inc/admin/functions.php:165
#: inc/admin/class-envato-market-admin.php:531 inc/admin/functions.php:165
#: inc/admin/functions.php:166 inc/admin/functions.php:407
#: inc/admin/functions.php:408
msgid "Version %s"
msgstr ""

#: inc/admin/class-envato-market-admin.php:577
#: inc/admin/class-envato-market-admin.php:531
msgid "Version"
msgstr ""

#: inc/admin/class-envato-market-admin.php:586 inc/admin/functions.php:176
#: inc/admin/class-envato-market-admin.php:540 inc/admin/functions.php:176
#: inc/admin/functions.php:418
msgid "By"
msgstr ""

#: inc/admin/class-envato-market-admin.php:593
#: inc/admin/class-envato-market-admin.php:594 inc/admin/functions.php:146
#: inc/admin/class-envato-market-admin.php:547
#: inc/admin/class-envato-market-admin.php:548 inc/admin/functions.php:146
#: inc/admin/functions.php:388
msgid "Install"
msgstr ""

#: inc/admin/class-envato-market-admin.php:616
#: inc/admin/class-envato-market-admin.php:570
msgid "Getting Started (Simple)"
msgstr ""

#: inc/admin/class-envato-market-admin.php:633
#: inc/admin/class-envato-market-admin.php:587
msgid "Single Item Tokens (Advanced)"
msgstr ""

#: inc/admin/class-envato-market-admin.php:641
#: inc/admin/class-envato-market-admin.php:595
msgid "Envato Market Items"
msgstr ""

#: inc/admin/class-envato-market-admin.php:1069
#: inc/admin/class-envato-market-admin.php:1094
#: inc/admin/class-envato-market-admin.php:1023
#: inc/admin/class-envato-market-admin.php:1048
msgid "Installing Plugin..."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1070
#: inc/admin/class-envato-market-admin.php:1024
msgid "You do not have sufficient permissions to install plugins on this site."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1071
#: inc/admin/class-envato-market-admin.php:1096
#: inc/admin/class-envato-market-admin.php:1154
#: inc/admin/class-envato-market-admin.php:1025
#: inc/admin/class-envato-market-admin.php:1050
#: inc/admin/class-envato-market-admin.php:1108
#: inc/admin/class-envato-market-theme-installer-skin.php:113
msgid "Return to Plugin Installer"
msgstr ""

#: inc/admin/class-envato-market-admin.php:1095
#: inc/admin/class-envato-market-admin.php:1153
#: inc/admin/class-envato-market-admin.php:1049
#: inc/admin/class-envato-market-admin.php:1107
msgid "An error occurred, please check that the item ID is correct."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1101
#: inc/admin/class-envato-market-admin.php:1055
msgid "Installing Plugin: %s"
msgstr ""

#: inc/admin/class-envato-market-admin.php:1127
#: inc/admin/class-envato-market-admin.php:1152
#: inc/admin/class-envato-market-admin.php:1081
#: inc/admin/class-envato-market-admin.php:1106
msgid "Installing Theme..."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1128
#: inc/admin/class-envato-market-admin.php:1082
msgid "You do not have sufficient permissions to install themes on this site."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1129
#: inc/admin/class-envato-market-admin.php:1083
#: inc/admin/class-envato-market-theme-installer-skin.php:67
msgid "Return to Theme Installer"
msgstr ""

#: inc/admin/class-envato-market-admin.php:1161
#: inc/admin/class-envato-market-admin.php:1115
msgid "Installing Theme: %s"
msgstr ""

#: inc/admin/class-envato-market-admin.php:1189
#: inc/admin/class-envato-market-admin.php:1143
msgid "The Token is missing."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1191
#: inc/admin/class-envato-market-admin.php:1294
#: inc/admin/class-envato-market-admin.php:1145
#: inc/admin/class-envato-market-admin.php:1248
msgid "The Item ID is missing."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1193
#: inc/admin/class-envato-market-admin.php:1340
#: inc/admin/class-envato-market-admin.php:1147
#: inc/admin/class-envato-market-admin.php:1294
msgid "User not allowed to install items."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1204
#: inc/admin/class-envato-market-admin.php:1158
msgid "The Token or Item ID is incorrect."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1208
#: inc/admin/class-envato-market-admin.php:1162
msgid "The item cannot be downloaded."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1277
#: inc/admin/class-envato-market-admin.php:1231
msgid "An unknown error occurred."
msgstr ""

#: inc/admin/class-envato-market-admin.php:1296
#: inc/admin/class-envato-market-admin.php:1250
#: inc/class-envato-market-github.php:358
msgid "User not allowed to update items."
msgstr ""
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fae298a

Please sign in to comment.