Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Minds Backend - Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
Minds
Minds Backend - Engine
Commits
9750fee2
Commit
9750fee2
authored
5 years ago
by
Emiliano Balbuena
Committed by
Mark Harding
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Product pages update
parent
3067ab1e
No related branches found
No related tags found
Loading
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Controllers/api/v1/minds/config.php
+2
-0
2 additions, 0 deletions
Controllers/api/v1/minds/config.php
Core/Rewards/Contributions/ContributionValues.php
+10
-0
10 additions, 0 deletions
Core/Rewards/Contributions/ContributionValues.php
Core/SEO/Defaults.php
+51
-30
51 additions, 30 deletions
Core/SEO/Defaults.php
with
63 additions
and
30 deletions
Controllers/api/v1/minds/config.php
+
2
−
0
View file @
9750fee2
...
...
@@ -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.
Click to expand it.
Core/Rewards/Contributions/ContributionValues.php
+
10
−
0
View file @
9750fee2
...
...
@@ -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.
Click to expand it.
Core/SEO/Defaults.php
+
51
−
30
View file @
9750fee2
...
...
@@ -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.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment