Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
291
Merge Requests
39
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
3067ab1ebe765cf6d107bf016c2e58d88adb8793...8a5e4d6af464d9397321354b8121a934ad0d6d3a
Source
8a5e4d6af464d9397321354b8121a934ad0d6d3a
...
Target
3067ab1ebe765cf6d107bf016c2e58d88adb8793
Compare
Commits (2)
Product pages update
· 9750fee2
Emiliano Balbuena
authored
25 minutes ago
9750fee2
Merge branch 'goal/product-pages-update-1' into 'master'
· 8a5e4d6a
Mark Harding
authored
25 minutes ago
Product pages update Closes
#1039
See merge request
!383
8a5e4d6a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
30 deletions
+63
-30
Controllers/api/v1/minds/config.php
View file @
8a5e4d6a
...
...
@@ -9,6 +9,7 @@ namespace Minds\Controllers\api\v1\minds;
use
Minds
;
use
Minds\Core
;
use
Minds\Core\Rewards\Contributions\ContributionValues
;
use
Minds\Interfaces
;
use
Minds\Api\Factory
;
...
...
@@ -44,6 +45,7 @@ class config implements Interfaces\Api, Interfaces\ApiIgnorePam
'pro'
=>
Minds\Core\Di\Di
::
_
()
->
get
(
'Config'
)
->
get
(
'pro'
)[
'handler'
]
??
null
,
],
'upgrades'
=>
Minds\Core\Di\Di
::
_
()
->
get
(
'Config'
)
->
get
(
'upgrades'
),
'contribution_values'
=>
ContributionValues
::
export
(),
];
return
Factory
::
response
(
$minds
);
...
...
This diff is collapsed.
Core/Rewards/Contributions/ContributionValues.php
View file @
8a5e4d6a
...
...
@@ -12,5 +12,15 @@ class ContributionValues
'referrals_welcome'
=>
50
,
'checkin'
=>
2
,
'jury_duty'
=>
25
,
'onchain_tx'
=>
10
,
];
/**
* Public export of values
* @return array
*/
public
static
function
export
()
{
return
static
::
$multipliers
;
}
}
This diff is collapsed.
Core/SEO/Defaults.php
View file @
8a5e4d6a
...
...
@@ -63,16 +63,7 @@ class Defaults
Manager
::
add
(
'/crypto'
,
function
(
$slugs
=
[])
{
return
[
'title'
=>
'The Minds Token'
,
'description'
=>
'Coming soon'
,
'og:title'
=>
'The Minds Token'
,
'og:description'
=>
'Coming soon'
,
'og:url'
=>
'/token'
,
'og:image'
=>
$this
->
config
->
cdn_assets_url
.
'assets/videos/space-1/space.jpg'
,
'og:image:width'
=>
2000
,
'og:image:height'
=>
1000
,
'twitter:site'
=>
'@minds'
,
'twitter:card'
=>
'summary'
,
'og:url'
=>
'/token'
,
// Open graph and twitter redirection
];
});
...
...
@@ -337,6 +328,23 @@ class Defaults
return
$meta
;
});
Manager
::
add
(
'/analytics'
,
function
(
$slugs
=
[])
{
$meta
=
[
'title'
=>
'Analytics'
,
'description'
=>
'Track your traffic, earnings, engagement and trending analytics'
,
'og:title'
=>
'Analytics'
,
'og:description'
=>
'Track your traffic, earnings, engagement and trending analytics'
,
'og:url'
=>
sprintf
(
"%sanalytics/%s"
,
$this
->
config
->
site_url
,
implode
(
'/'
,
$slugs
)),
'og:image'
=>
$this
->
config
->
cdn_assets_url
.
'assets/photos/network.jpg'
,
'og:image:width'
=>
2000
,
'og:image:height'
=>
1000
,
'twitter:site'
=>
'@minds'
,
'twitter:card'
=>
'summary'
,
];
return
$meta
;
});
Manager
::
add
(
'/wallet/tokens/referrals'
,
function
(
$slugs
=
[])
{
$meta
=
[
'title'
=>
'Referrals'
,
...
...
@@ -361,30 +369,18 @@ class Defaults
'image'
=>
'assets/photos/graph.jpg'
],
'wire'
=>
[
'title'
=>
'Wire'
,
'description'
=>
'Exchange tokens with other channels on Minds'
,
'image'
=>
'assets/photos/blown-bulb.jpg'
'url'
=>
'pay'
],
'branding'
=>
[
'title'
=>
'Branding'
,
'description'
=>
'Logos, assets and styling guides'
,
'image'
=>
'assets/logos/placeholder.jpg'
,
],
'boost'
=>
[
'title'
=>
'Boost'
,
'description'
=>
'Boost your channel or content to gain more views and reach new audiences'
,
'image'
=>
'assets/photos/rocket.jpg'
],
'localization'
=>
[
'title'
=>
'Localization'
,
'description'
=>
'Help translate Minds into every global language'
,
'image'
=>
'assets/photos/satellite.jpg'
],
'token'
=>
[
'title'
=>
'The Minds Token'
,
'description'
=>
'Earn crypto for your contributions to the network'
,
'image'
=>
'assets/photos/globe.jpg'
],
'faq'
=>
[
'title'
=>
'FAQ'
,
'description'
=>
'Everything you need to know about Minds'
,
...
...
@@ -422,19 +418,44 @@ class Defaults
],
'upgrades'
=>
[
'title'
=>
'Upgrade your Minds experience'
,
'description'
=>
'Minds offers a unique range of powerful upgrades that will supercharge your
experience.
'
,
'description'
=>
'Minds offers a unique range of powerful upgrades that will supercharge your
Minds experience
'
,
'image'
=>
'assets/marketing/upgrades-1.jpg'
,
],
'plus'
=>
[
'title'
=>
'Minds Plus'
,
'description'
=>
'Upgrade your channel and unlock premium features
.
'
,
'image'
=>
'assets/p
hotos/browsing-mobileapp-discovery
.jpg'
,
'description'
=>
'Upgrade your channel and unlock premium features'
,
'image'
=>
'assets/p
roduct-pages/plus/plus-1
.jpg'
,
],
'pro'
=>
[
'title'
=>
'Minds Pro'
,
'description'
=>
'The ultimate platform for creators and brands.'
,
'image'
=>
'assets/photos/podcast-people.jpg'
,
]
'description'
=>
'The ultimate platform for creators and brands'
,
'image'
=>
'assets/product-pages/pro/pro-1.jpg'
,
],
'nodes'
=>
[
'title'
=>
'Minds Nodes'
,
'description'
=>
'Launch your own social networking app'
,
'image'
=>
'assets/product-pages/nodes/nodes-1.jpg'
,
],
'boost'
=>
[
'title'
=>
'Boost'
,
'description'
=>
'Expand your reach and gain thousands of views'
,
'image'
=>
'assets/product-pages/boost/boost-1.jpg'
,
],
'pay'
=>
[
'title'
=>
'Minds Pay'
,
'description'
=>
'Send and receive payments in USD, BTC, ETH and Tokens'
,
'image'
=>
'assets/product-pages/pay/pay-1.jpg'
,
],
'rewards'
=>
[
'title'
=>
'Minds Rewards'
,
'description'
=>
'Earn tokens for your contributions to the network'
,
'image'
=>
'assets/product-pages/rewards/rewards-1.jpg'
,
],
'token'
=>
[
'title'
=>
'Tokens'
,
'description'
=>
'The fuel of the Minds network'
,
'image'
=>
'assets/product-pages/token/token-1.jpg'
,
],
];
foreach
(
$marketing
as
$uri
=>
$page
)
{
...
...
@@ -444,7 +465,7 @@ class Defaults
'description'
=>
$page
[
'description'
],
'og:title'
=>
$page
[
'title'
],
'og:description'
=>
$page
[
'description'
],
'og:url'
=>
$this
->
config
->
site_url
.
$uri
,
'og:url'
=>
$this
->
config
->
site_url
.
((
$page
[
'url'
]
??
null
)
?:
$uri
)
,
'og:image'
=>
$this
->
config
->
cdn_assets_url
.
$page
[
'image'
],
'og:image:width'
=>
2000
,
'og:image:height'
=>
1000
,
...
...
This diff is collapsed.