Skip to content

Commit

Permalink
Merge pull request #4031 from Codeinwp/feat/register_otter_page_about
Browse files Browse the repository at this point in the history
chore: register otter product page
  • Loading branch information
cristian-ungureanu committed Aug 2, 2023
2 parents c104fc9 + d79ac5e commit 15560b2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
14 changes: 7 additions & 7 deletions composer-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"packages": [
{
"name": "codeinwp/themeisle-sdk",
"version": "3.2.40",
"version": "3.3.2",
"source": {
"type": "git",
"url": "https://github.com/Codeinwp/themeisle-sdk.git",
"reference": "d719fff89cb6643e555f5e3daa4ebd627ccb4fd7"
"reference": "b799403bec877749ee0a2916dc859366d62bd76c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/d719fff89cb6643e555f5e3daa4ebd627ccb4fd7",
"reference": "d719fff89cb6643e555f5e3daa4ebd627ccb4fd7",
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/b799403bec877749ee0a2916dc859366d62bd76c",
"reference": "b799403bec877749ee0a2916dc859366d62bd76c",
"shasum": ""
},
"require-dev": {
Expand All @@ -42,9 +42,9 @@
],
"support": {
"issues": "https://github.com/Codeinwp/themeisle-sdk/issues",
"source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.40"
"source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.2"
},
"time": "2023-03-30T09:29:30+00:00"
"time": "2023-08-02T13:04:20+00:00"
},
{
"name": "wptt/webfont-loader",
Expand Down Expand Up @@ -989,5 +989,5 @@
"platform-overrides": {
"php": "7.2"
},
"plugin-api-version": "2.1.0"
"plugin-api-version": "2.3.0"
}
12 changes: 6 additions & 6 deletions composer.lock

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

8 changes: 3 additions & 5 deletions inc/admin/dashboard/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,16 @@ public function register_about_page() {
add_filter(
'neve_about_us_metadata',
function () use ( $filtered_name ) {

return [
// Top-level page in the dashboard sidebar
'location' => 'neve-welcome',
// Logo to display on the page
'logo' => get_template_directory_uri() . '/assets/img/dashboard/logo.svg',
// Menu displayed at the top of the page - optional
// 'page_menu' => [
// [ 'text' => 'SDK GitHub Issues', 'url' => esc_url( 'https://github.com/codeinwp/themeisle-sdk/issues' ) ],
// [ 'text' => 'Themeisle', 'url' => esc_url( 'https://themeisle.com' ) ]
// ],
// Condition to show or hide the upgrade menu in the sidebar
'has_upgrade_menu' => ! defined( 'NEVE_PRO_VERSION' ),
// Add predefined product pages to the about page.
'product_pages' => [ 'otter-page' ],
// Upgrade menu item link & text
'upgrade_link' => tsdk_utmify( esc_url( 'https://themeisle.com/themes/neve/upgrade/' ), 'aboutfilter', 'nevedashboard' ),
'upgrade_text' => __( 'Upgrade', 'neve' ) . ' ' . $filtered_name,
Expand Down

0 comments on commit 15560b2

Please sign in to comment.