Skip to content

Commit

Permalink
🔀 Merge #241 Web3Press rebranding
Browse files Browse the repository at this point in the history
* 💬 Update readme.txt for Web3Press rebranding (#239)

* Update readme.txt for Web3Press rebranding

- rebranding from "LikeCoin WordPress Plugin" to "Web3Press"
- grammar check

* 💬 Update plugin name to Web3Press

---------

Co-authored-by: William Chong <[email protected]>

* 🍱 Update rebrand asset

* 🍱 Update rebrand banner

* 💬 Update plugin name in php

* 🍱 Update icon, logo and description

* 💬 Update plugin name in php var

* 💬 Update readme.txt

* 💬 Update about page text

* 💄 Add w3p banner in about page

* 🎨 Fix about page structure

---------

Co-authored-by: Edmond Yu <[email protected]>
  • Loading branch information
williamchong and edmondyu authored Feb 15, 2023
2 parents e17cb48 + 779c3cc commit ae7f6c8
Show file tree
Hide file tree
Showing 20 changed files with 149 additions and 112 deletions.
Binary file modified assets/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/icon-128x128.gif
Binary file not shown.
Binary file added assets/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/icon-256x256.gif
Binary file not shown.
Binary file added assets/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions likecoin/admin/view/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
function likecoin_display_admin_pages() {
global $likecoin_admin_main_page;
$likecoin_admin_main_page = add_menu_page(
__( 'LikeCoin', 'likecoin' ),
__( 'LikeCoin', 'likecoin' ),
__( 'Web3Press', 'likecoin' ),
__( 'Web3Press', 'likecoin' ),
'edit_posts',
'likecoin',
'likecoin_show_likecoin_admin_main_page_content',
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped,WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents,WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
'data:image/svg+xml;base64,' . base64_encode( file_get_contents( LC_DIR . 'assets/icon/likecoin.svg' ) ),
'data:image/svg+xml;base64,' . base64_encode( file_get_contents( LC_DIR . 'assets/icon/star.svg' ) ),
// phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped,WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents,WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
50
);
Expand All @@ -47,7 +47,7 @@ function likecoin_display_admin_pages() {
global $likecoin_admin_plugin_page;
$likecoin_admin_plugin_page = add_submenu_page(
'likecoin',
__( 'LikeCoin', 'likecoin' ),
__( 'Web3Press', 'likecoin' ),
__( 'Plugin Setting', 'likecoin' ),
'edit_posts',
'likecoin',
Expand All @@ -58,7 +58,7 @@ function likecoin_display_admin_pages() {
global $likecoin_button_page;
$likecoin_button_page = add_submenu_page(
'likecoin',
__( 'LikeCoin', 'likecoin' ),
__( 'Web3Press', 'likecoin' ),
__( 'Liker ID', 'likecoin' ),
'edit_posts',
'/likecoin#/liker-id',
Expand All @@ -69,7 +69,7 @@ function likecoin_display_admin_pages() {
global $likecoin_help_page;
$likecoin_help_page = add_submenu_page(
'likecoin',
__( 'LikeCoin', 'likecoin' ),
__( 'Web3Press', 'likecoin' ),
__( 'Getting Started', 'likecoin' ),
'edit_posts',
'/likecoin#/help',
Expand Down
17 changes: 17 additions & 0 deletions likecoin/assets/icon/star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion likecoin/assets/js/admin-settings/index.asset.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php return array(
'dependencies' => array( 'lodash', 'react', 'wp-api-fetch', 'wp-data', 'wp-element', 'wp-i18n' ),
'version' => '820b7eaceaf0bbfe4080e8a15bafd6f2',
'version' => 'dd7c4ae8682192f51e40cb6cfd956965',
);
2 changes: 1 addition & 1 deletion likecoin/assets/js/admin-settings/index.js

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions likecoin/js/admin-settings/src/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { __ } from '@wordpress/i18n';
import Logo from '../assets/logo.png';
import Logo from '../assets/w3p_logo.png';

function Header() {
return (
<header className="lcp-admin-header">
<img src={Logo} alt={__('liker.land logo', 'likecoin')} />
<img src={Logo} alt={__('Web3Press logo', 'likecoin')} />
<a
className="lcp-admin-header__portfolio-button"
href="https://liker.land/dashboard"
Expand Down
7 changes: 0 additions & 7 deletions likecoin/js/admin-settings/src/components/ParagraphTitle.js

This file was deleted.

114 changes: 69 additions & 45 deletions likecoin/js/admin-settings/src/pages/SponsorLikecoinPage.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,52 @@
import { __ } from '@wordpress/i18n';
import { createInterpolateElement, createElement } from '@wordpress/element';
import ParagraphTitle from '../components/ParagraphTitle';
import Link from '../components/Link';

const { likerlandHost } = window.likecoinReactAppData;
import Banner from '../assets/w3p_banner.png';

function SponsorLikecoinPage() {
const localizedIntroduction = createInterpolateElement(
__(
'<LikeCoin/> is a Decentralized Publishing Infrastructure. It reinvents the publishing industry with decentralized registry, rewards, editorial, and governance.',
`Web3Press provides a creative business model, especially for open content. No paywall or advertisement anymore.
Web3Press is based on <LikeCoin />, an application-specific blockchain that the community and infrastructure focus on the creator’s economy.`,
'likecoin',
),
{
LikeCoin: createElement(Link, {
text: __('LikeCoin', 'likecoin'),
linkAddress: 'https://like.co',
}),
},
);
const localizedNFTIntroduction = createInterpolateElement(
__('Idea is the best product for your readers. Your readers buy your posts because they love your words. Web3Press helps you to productize your posts as <WNFT/>. Let readers support you by buying your posts while reading.', 'likecoin'),
{
WNFT: createElement(Link, {
text: __('NFTs', 'likecoin'),
linkAddress: 'https://liker.land/writing-nft/about',
}),
},
);
const localizedOnChainIntroduction = createInterpolateElement(
__('You know who has bought your NFTs with <Explorer />. You can connect with your fans by sending NFT gifts with warm greetings is not only possible but convenient. Conditional offers can be made according to the open data on-chain.', 'likecoin'),
{
Explorer: createElement(Link, {
text: __('on-chain data', 'likecoin'),
linkAddress: 'https://www.mintscan.io/likecoin',
}),
},
);
const localizedPortfolioIntroduction = createInterpolateElement(
__('“You are what you read”. Share your <Portfolio /> with pride. Collect the rare and valuable articles into your wallet.', 'likecoin'),
{
Portfolio: createElement(Link, {
text: __('NFT portfolio', 'likecoin'),
linkAddress: 'https://liker.land/dashboard?tab=collected',
}),
},
);
const localizedLikeCoinIntroduction = createInterpolateElement(
__(
'Web3Press is based on <LikeCoin />, an application-specific blockchain that the community and infrastructure focus on the creator’s economy.',
'likecoin',
),
{
Expand All @@ -20,7 +58,7 @@ function SponsorLikecoinPage() {
);
const localizedDecentralizedRegistry = createInterpolateElement(
__(
'The heart of Decentralized Publishing is decentralized registry powered by <ISCN/>, a specification we drafted in collaboration with the industry. Inspired by ISBN for books, ISCN is a unique number assigned to content such as articles and images, and comes with metadata such as author, publisher, content address, license terms and creation footprint. Stored on <LikeCoinChain />, ISCN is immutable and censorship resilient. The content, on the other hand, is stored on <IPFS/> for tamper resistance and peer-to-peer distribution.',
'Register metadata (<ISCN />) on the <LikeCoinChain />, store content on the decentralized file system (<IPFS /> and <Arweave />), and backup on Internet Archive, all in one plugin.',
'likecoin',
),
{
Expand All @@ -30,66 +68,52 @@ function SponsorLikecoinPage() {
}),
LikeCoinChain: createElement(Link, {
text: __('LikeCoin chain', 'likecoin'),
linkAddress: 'https://likecoin.bigdipper.live/',
linkAddress: 'https://www.mintscan.io/likecoin',
}),
IPFS: createElement(Link, {
text: __('IPFS', 'likecoin'),
linkAddress: 'https://ipfs.io/',
}),
},
);

const localizedDecentralizedRewards = createInterpolateElement(
__(
'By simply attaching a LikeCoin button beneath your content and without setting up a paywall, every Like by readers is turned into measurable rewards in <LikeCoinTokens/>. The <CivicLiker/> movement encourages readers to contribute USD5/mo to reward creativity and journalism, while the matching fund, distributed according to the Likes of all users, doubles the rewarding pool. With decentralized rewards, every Like counts.',
'likecoin',
),
{
LikeCoinTokens: createElement(Link, {
text: __('LikeCoin tokens', 'likecoin'),
linkAddress: 'https://www.coingecko.com/en/coins/likecoin',
}),
CivicLiker: createElement(Link, {
text: __('Civic Liker', 'likecoin'),
linkAddress: `https://${likerlandHost}/civic`,
Arweave: createElement(Link, {
text: __('Arweave', 'likecoin'),
linkAddress: 'https://arweave.io/',
}),
},
);

const localizedDecentralizedGovernance = createInterpolateElement(
const localizedWeb3Introduction = createInterpolateElement(
__(
'Not only is LikeCoin token a reward to creators and Content Jockeys, it also serves doubly as the governing token for the decentralized autonomous organization (DAO), namely the <RepublicOfLikerLand/>. Likers participate in liquid democracy by delegating their LikeCoin tokens to validators they trust, and freely switch among them without a fixed term of office. Issues such as default Content Jockeys, inflation rate and protocol updates require passing a corresponding <Proposal/> by the Republic.',
'Web3 is a new standard of the Internet. The Internet has been evolving in the past decades and becoming increasingly decentralized. In Web1, information was 1-way-broadcast; in Web2, information was user-generated. In Web3, the concept of ownership applies to every piece of data. Echoing <WordPress />, the vision of WordPress, Web3Press pushes one more step forward: the freedom to OWN. Oh yes, it’s free, as in freedom.',
'likecoin',
),
{
RepublicOfLikerLand: createElement(Link, {
text: __('Republic of Liker Land', 'likecoin'),
linkAddress: 'https://likecoin.bigdipper.live',
}),
Proposal: createElement(Link, {
text: __('proposal', 'likecoin'),
linkAddress: 'https://likecoin.bigdipper.live/proposalsc',
WordPress: createElement(Link, {
text: __('Democratise Publishing', 'likecoin'),
linkAddress: 'https://wordpress.org/about/',
}),
},
);

return (
<div className="likecoin">
<ParagraphTitle text={__('What is LikeCoin?', 'likecoin')} />
<img src={Banner} alt="Word3Press Banner"></img>
<h2>{__('What is Web3Press?', 'likecoin')}</h2>
<p>{localizedIntroduction}</p>
<ParagraphTitle text={__('Decentralized Registry', 'likecoin')} />
<p>{__('With Web3Press, you can:', 'likecoin')}</p>
<h3>{__('Sell your posts', 'likecoin')}</h3>
<p>{localizedNFTIntroduction}</p>
<h3>{__('Be proud of your work', 'likecoin')}</h3>
<p>{localizedPortfolioIntroduction}</p>
<h3>{__('Build Community', 'likecoin')}</h3>
<p>{localizedOnChainIntroduction}</p>
<h3>{__('Preserve Content', 'likecoin')}</h3>
<p>{localizedDecentralizedRegistry}</p>
<ParagraphTitle text={__('Decentralized Rewards', 'likecoin')} />
<p>{localizedDecentralizedRewards}</p>
<ParagraphTitle text={__('Decentralized Editorials', 'likecoin')} />
<p>
{__(
"Apart from rewarding creators as a Liker, readers may go further to become a Content Jockey. Content Jockeys help curate creative stories and insightful commentaries with Super Like, which is purposely designed to be scarce to cut out noise from signals. When a story gets popular, LikeCoin's unique distribution footprint rewards both creator and Content Jockey, creating an all win situation for the content ecosystem.",
'likecoin',
)}
</p>
<ParagraphTitle text={__('Decentralized Governance', 'likecoin')} />
<p>{localizedDecentralizedGovernance}</p>

<h2>{__('What is LikeCoin', 'likecoin')}</h2>
<p>{localizedLikeCoinIntroduction}</p>

<h2>{__('Why Web3', 'likecoin')}</h2>
<p>{localizedWeb3Introduction}</p>

<iframe
className="lcp-github-sponsor-card"
src="https://github.com/sponsors/likecoin/card"
Expand Down
8 changes: 4 additions & 4 deletions likecoin/likecoin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* LikeCoin WordPress Plugin
* Web3Press by LikeCoin
*
* Plugin for embbeding LikeCoin functionalities into WordPress.
*
Expand All @@ -10,9 +10,9 @@
* @link https://github.com/likecoin/likecoin-wordpress
* @copyright 2018 LikerLand
* Plugin Name: LikeCoin
* Plugin Name: Web3Press by LikeCoin
* Plugin URI: https://github.com/likecoin/likecoin-wordpress
* Description: Integrate your Liker ID, Writing NFT and decentralized publishing to WordPress.
* Description: Publishes your posts to the blockchain. Sell your posts, share your work, build community, preserve content.
* Version: 2.8.5
* Author: LikeCoin
* Author URI: https://like.co/
Expand Down Expand Up @@ -40,7 +40,7 @@
define( 'LC_URI', plugin_dir_url( __FILE__ ) );
define( 'LC_DIR', plugin_dir_path( __FILE__ ) );
define( 'LC_PLUGIN_SLUG', 'likecoin' );
define( 'LC_PLUGIN_NAME', 'LikeCoin' );
define( 'LC_PLUGIN_NAME', 'Web3Press By LikeCoin' );
define( 'LC_PLUGIN_VERSION', '2.8.5' );

require_once dirname( __FILE__ ) . '/includes/constant/options.php';
Expand Down
Loading

0 comments on commit ae7f6c8

Please sign in to comment.