Changeset 2906849
- Timestamp:
- 05/02/2023 07:15:59 AM (3 years ago)
- Location:
- ethpress/trunk
- Files:
-
- 1 added
- 1 deleted
- 8 edited
-
app/Admin/Options.php (modified) (4 diffs)
-
app/Plugin.php (modified) (1 diff)
-
ethpress.php (modified) (1 diff)
-
languages/ethpress.pot (modified) (11 diffs)
-
public/dist/assets/index-489b8e8d.js (deleted)
-
public/dist/assets/index-f13b5732.js (added)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ethpress/trunk/app/Admin/Options.php
r2894721 r2906849 227 227 self::section_projectId(); 228 228 self::projectId_setting( $options ); 229 self::section_login_form(); 230 self::theme_mode_setting( $options ); 229 231 self::section_login(); 230 232 self::woocommerce_login_form_setting( $options ); … … 381 383 ?> 382 384 </p> 385 </label> 386 </fieldset> 387 </td> 388 </tr> 389 <?php 390 } 391 392 /** 393 * Outputs login section title. 394 * 395 * @since 1.2.0 396 */ 397 public static function section_login_form() 398 { 399 ?> 400 <tr valign="top"> 401 <th scope="row" colspan="2"> 402 <h2> 403 <?php 404 _e( "Web3 Login Form", 'ethpress' ); 405 ?> 406 </h2> 407 </th> 408 <td> 409 </td> 410 </tr> 411 <?php 412 } 413 414 /** 415 * Outputs input for login form theme mode. 416 * 417 * @since 1.5.12 418 */ 419 public static function theme_mode_setting( $options = null ) 420 { 421 $ethpress_theme_mode = ( isset( $options['theme_mode'] ) ? $options['theme_mode'] : "light" ); 422 ?> 423 <tr valign="top"> 424 <th scope="row"><?php 425 _e( "Theme Mode", 'ethpress' ); 426 ?></th> 427 <td> 428 <fieldset> 429 <label> 430 <input class="regular-text" id="ethpress_theme_mode_dark" name="ethpress[theme_mode]" type="radio" value="dark" <?php 431 echo ( $ethpress_theme_mode == "dark" ? 'checked' : '' ) ; 432 ?>> 433 <label for="ethpress_theme_mode_dark"><?php 434 _e( "Dark Mode", 'ethpress' ); 435 ?></label> 436 <input class="regular-text" id="ethpress_theme_mode_lite" name="ethpress[theme_mode]" type="radio" value="light" <?php 437 echo ( $ethpress_theme_mode == "light" ? 'checked' : '' ) ; 438 ?>> 439 <label for="ethpress_theme_mode_lite"><?php 440 _e( "Light Mode", 'ethpress' ); 441 ?></label> 383 442 </label> 384 443 </fieldset> … … 1181 1240 $redirect_url = ''; 1182 1241 $wallet_connect_project_id = sanitize_text_field( trim( $input['wallet_connect_project_id'] ) ); 1242 $theme_mode = sanitize_text_field( trim( $input['theme_mode'] ) ); 1183 1243 if ( empty($input['recursive']) && is_multisite() ) { 1184 1244 // Mark next call as recursed. … … 1197 1257 $options['link_message'] = $link_message; 1198 1258 $options['wallet_connect_project_id'] = $wallet_connect_project_id; 1259 $options['theme_mode'] = $theme_mode; 1199 1260 if ( isset( $input['have_db_users'] ) ) { 1200 1261 $options['have_db_users'] = $input['have_db_users']; -
ethpress/trunk/app/Plugin.php
r2884218 r2906849 214 214 $options = get_site_option( 'ethpress' ); 215 215 $wallet_connect_project_id = ( empty($options['wallet_connect_project_id']) ? self::WALLET_CONNECT_DEFAULT_PROJECT_ID : esc_attr( $options['wallet_connect_project_id'] ) ); 216 $theme_mode = esc_attr( $options['theme_mode'] ); 216 217 $inline_script = [ 217 218 'wallet_connect_project_id' => $wallet_connect_project_id, 219 'theme_mode' => $theme_mode, 218 220 'ajaxUrl' => $ajax_url, 219 221 'loginNonce' => $login_nonce, -
ethpress/trunk/ethpress.php
r2905428 r2906849 6 6 * Description: Ethereum Web3 login. Enable crypto wallet logins to WordPress. 7 7 * Author: Lynn (lynn.mvp at tutanota dot com), ethereumicoio 8 * Version: 2. 0.28 * Version: 2.1.0 9 9 * Author URI: https://ethereumico.io 10 10 * Text Domain: ethpress -
ethpress/trunk/languages/ethpress.pot
r2905428 r2906849 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: EthPress 2. 0.2\n"5 "Project-Id-Version: EthPress 2.1.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ethpress\n" 7 "POT-Creation-Date: 2023-0 4-28 02:20:25+00:00\n"7 "POT-Creation-Date: 2023-05-02 07:09:46+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 89 89 msgstr "" 90 90 91 #: app/Admin/Options.php:147 app/Admin/Options.php:2 3891 #: app/Admin/Options.php:147 app/Admin/Options.php:241 92 92 msgid "" 93 93 "If you like <strong>EthPress</strong> please leave us a %1$s rating. A huge " … … 107 107 msgstr "" 108 108 109 #: app/Admin/Options.php:2 29109 #: app/Admin/Options.php:232 110 110 msgid "Save Changes" 111 111 msgstr "" 112 112 113 #: app/Admin/Options.php:23 0113 #: app/Admin/Options.php:233 114 114 msgid "Are you sure you want to delete all EthPress options?" 115 115 msgstr "" 116 116 117 #: app/Admin/Options.php:23 0117 #: app/Admin/Options.php:233 118 118 msgid "Reset" 119 119 msgstr "" 120 120 121 #: app/Admin/Options.php:26 5121 #: app/Admin/Options.php:268 122 122 msgid "Main Settings" 123 123 msgstr "" 124 124 125 #: app/Admin/Options.php:28 5125 #: app/Admin/Options.php:288 126 126 msgid "WooCommerce Settings" 127 127 msgstr "" 128 128 129 #: app/Admin/Options.php:30 6129 #: app/Admin/Options.php:309 130 130 msgid "WalletConnect Settings" 131 131 msgstr "" 132 132 133 #: app/Admin/Options.php:32 4 app/Admin/Options.php:328134 #: app/Admin/Options.php:33 2app/Plugin.php:143133 #: app/Admin/Options.php:327 app/Admin/Options.php:331 134 #: app/Admin/Options.php:335 app/Plugin.php:143 135 135 msgid "WalletConnect Project ID" 136 136 msgstr "" 137 137 138 #: app/Admin/Options.php:33 1138 #: app/Admin/Options.php:334 139 139 msgid "" 140 140 "The %1$s should be set there. You can get it from " … … 142 142 msgstr "" 143 143 144 #: app/Admin/Options.php:358 144 #: app/Admin/Options.php:359 145 msgid "Web3 Login Form" 146 msgstr "" 147 148 #: app/Admin/Options.php:378 149 msgid "Theme Mode" 150 msgstr "" 151 152 #: app/Admin/Options.php:383 153 msgid "Dark Mode" 154 msgstr "" 155 156 #: app/Admin/Options.php:385 157 msgid "Light Mode" 158 msgstr "" 159 160 #: app/Admin/Options.php:404 145 161 msgid "Strings Settings" 146 162 msgstr "" 147 163 148 #: app/Admin/Options.php: 374 app/Front.php:79 app/Plugin.php:397164 #: app/Admin/Options.php:420 app/Front.php:79 app/Plugin.php:399 149 165 msgid "Log In With a Crypto Wallet" 150 166 msgstr "" 151 167 152 #: app/Admin/Options.php: 381168 #: app/Admin/Options.php:427 153 169 msgid "Login button label" 154 170 msgstr "" 155 171 156 #: app/Admin/Options.php: 387172 #: app/Admin/Options.php:433 157 173 msgid "The Login button text can be set there." 158 174 msgstr "" 159 175 160 #: app/Admin/Options.php: 391 app/Admin/Options.php:430161 #: app/Admin/Options.php: 469 app/Admin/Options.php:503162 #: app/Admin/Options.php:6 23 app/Admin/Options.php:682163 #: app/Admin/Options.php:7 43 app/Admin/Options.php:806164 #: app/Admin/Options.php: 875 app/Admin/Options.php:943176 #: app/Admin/Options.php:437 app/Admin/Options.php:476 177 #: app/Admin/Options.php:515 app/Admin/Options.php:549 178 #: app/Admin/Options.php:669 app/Admin/Options.php:728 179 #: app/Admin/Options.php:789 app/Admin/Options.php:852 180 #: app/Admin/Options.php:921 app/Admin/Options.php:989 165 181 msgid "Upgrade to keep using this feature!" 166 182 msgstr "" 167 183 168 #: app/Admin/Options.php: 395 app/Admin/Options.php:434169 #: app/Admin/Options.php: 473 app/Admin/Options.php:507170 #: app/Admin/Options.php:6 27 app/Admin/Options.php:686171 #: app/Admin/Options.php:7 47 app/Admin/Options.php:810172 #: app/Admin/Options.php: 879 app/Admin/Options.php:947184 #: app/Admin/Options.php:441 app/Admin/Options.php:480 185 #: app/Admin/Options.php:519 app/Admin/Options.php:553 186 #: app/Admin/Options.php:673 app/Admin/Options.php:732 187 #: app/Admin/Options.php:793 app/Admin/Options.php:856 188 #: app/Admin/Options.php:925 app/Admin/Options.php:993 173 189 msgid "Upgrade to use this feature!" 174 190 msgstr "" 175 191 176 #: app/Admin/Options.php:4 13 app/Front.php:133 app/Plugin.php:398192 #: app/Admin/Options.php:459 app/Front.php:133 app/Plugin.php:400 177 193 msgid "Link Your Crypto Wallets" 178 194 msgstr "" 179 195 180 #: app/Admin/Options.php:4 20196 #: app/Admin/Options.php:466 181 197 msgid "Link button label" 182 198 msgstr "" 183 199 184 #: app/Admin/Options.php:4 26200 #: app/Admin/Options.php:472 185 201 msgid "The Link button text can be set there." 186 202 msgstr "" 187 203 188 #: app/Admin/Options.php:4 52 app/Front.php:207 app/Plugin.php:399204 #: app/Admin/Options.php:498 app/Front.php:207 app/Plugin.php:401 189 205 msgid "Register With a Crypto Wallet" 190 206 msgstr "" 191 207 192 #: app/Admin/Options.php: 459208 #: app/Admin/Options.php:505 193 209 msgid "Register button label" 194 210 msgstr "" 195 211 196 #: app/Admin/Options.php: 465212 #: app/Admin/Options.php:511 197 213 msgid "The Register button text can be set there." 198 214 msgstr "" 199 215 200 #: app/Admin/Options.php: 486app/Linker.php:94216 #: app/Admin/Options.php:532 app/Linker.php:94 201 217 #. translators: wallet address 202 218 msgid "Success! Address %s is now linked to your account." 203 219 msgstr "" 204 220 205 #: app/Admin/Options.php: 493221 #: app/Admin/Options.php:539 206 222 msgid "The account link success message" 207 223 msgstr "" 208 224 209 #: app/Admin/Options.php: 499225 #: app/Admin/Options.php:545 210 226 msgid "" 211 227 "The successful account link message. The %s can be used to insert the " … … 213 229 msgstr "" 214 230 215 #: app/Admin/Options.php:5 33231 #: app/Admin/Options.php:579 216 232 msgid "Verification Service API URL" 217 233 msgstr "" 218 234 219 #: app/Admin/Options.php:5 39 app/Admin/Options.php:664235 #: app/Admin/Options.php:585 app/Admin/Options.php:710 220 236 msgid "" 221 237 "Your PHP installation has the necessary PHP extension to do verifications " … … 223 239 msgstr "" 224 240 225 #: app/Admin/Options.php:5 50241 #: app/Admin/Options.php:596 226 242 msgid "" 227 243 "Use an API or install %1$sPHP-GMP%2$s or %3$sPHP-BCMath%2$s to verify " … … 229 245 msgstr "" 230 246 231 #: app/Admin/Options.php: 570247 #: app/Admin/Options.php:616 232 248 #. translators: a link. 233 249 msgid "To deploy your own verification service, see %1$s." 234 250 msgstr "" 235 251 236 #: app/Admin/Options.php:6 10252 #: app/Admin/Options.php:656 237 253 msgid "Redirect URL" 238 254 msgstr "" 239 255 240 #: app/Admin/Options.php:6 16256 #: app/Admin/Options.php:662 241 257 msgid "The page to redirect after a successful login" 242 258 msgstr "" 243 259 244 #: app/Admin/Options.php: 658260 #: app/Admin/Options.php:704 245 261 msgid "Managed Verification Service" 246 262 msgstr "" 247 263 248 #: app/Admin/Options.php: 672264 #: app/Admin/Options.php:718 249 265 msgid "Use Managed Verification Service" 250 266 msgstr "" 251 267 252 #: app/Admin/Options.php: 675268 #: app/Admin/Options.php:721 253 269 msgid "Check to use the Managed Verification Service." 254 270 msgstr "" 255 271 256 #: app/Admin/Options.php:7 28272 #: app/Admin/Options.php:774 257 273 msgid "WooCommerce Login Form" 258 274 msgstr "" 259 275 260 #: app/Admin/Options.php:7 33276 #: app/Admin/Options.php:779 261 277 msgid "Show on WooCommerce Login Form?" 262 278 msgstr "" 263 279 264 #: app/Admin/Options.php:7 36280 #: app/Admin/Options.php:782 265 281 msgid "Check to show EthPress login button on the WooCommerce Login Form." 266 282 msgstr "" 267 283 268 #: app/Admin/Options.php:7 52 app/Admin/Options.php:816269 #: app/Admin/Options.php: 884 app/Admin/Options.php:952284 #: app/Admin/Options.php:798 app/Admin/Options.php:862 285 #: app/Admin/Options.php:930 app/Admin/Options.php:998 270 286 msgid "Install WooCommerce to use this feature!" 271 287 msgstr "" 272 288 273 #: app/Admin/Options.php:7 52 app/Admin/Options.php:816274 #: app/Admin/Options.php: 884 app/Admin/Options.php:952289 #: app/Admin/Options.php:798 app/Admin/Options.php:862 290 #: app/Admin/Options.php:930 app/Admin/Options.php:998 275 291 msgid "" 276 292 "WooCommerce is a customizable, open-source eCommerce platform built on " … … 278 294 msgstr "" 279 295 280 #: app/Admin/Options.php: 791296 #: app/Admin/Options.php:837 281 297 msgid "WooCommerce Register Form" 282 298 msgstr "" 283 299 284 #: app/Admin/Options.php: 796300 #: app/Admin/Options.php:842 285 301 msgid "Show on WooCommerce Register Form?" 286 302 msgstr "" 287 303 288 #: app/Admin/Options.php: 799304 #: app/Admin/Options.php:845 289 305 msgid "Check to show EthPress register button on the WooCommerce Register Form." 290 306 msgstr "" 291 307 292 #: app/Admin/Options.php:8 21 app/Admin/Options.php:889308 #: app/Admin/Options.php:867 app/Admin/Options.php:935 293 309 msgid "" 294 310 "Check the Administration > Settings > General > Membership: Anyone can " … … 296 312 msgstr "" 297 313 298 #: app/Admin/Options.php: 860314 #: app/Admin/Options.php:906 299 315 msgid "WooCommerce Checkout Page Register Form" 300 316 msgstr "" 301 317 302 #: app/Admin/Options.php: 865318 #: app/Admin/Options.php:911 303 319 msgid "Show on the WooCommerce Checkout page?" 304 320 msgstr "" 305 321 306 #: app/Admin/Options.php: 868322 #: app/Admin/Options.php:914 307 323 msgid "Check to show EthPress register button on the WooCommerce Checkout page." 308 324 msgstr "" 309 325 310 #: app/Admin/Options.php:9 28326 #: app/Admin/Options.php:974 311 327 msgid "WooCommerce Account Details Link Wallet Form" 312 328 msgstr "" 313 329 314 #: app/Admin/Options.php:9 33330 #: app/Admin/Options.php:979 315 331 msgid "Show the Link Wallet button on the WooCommerce Account Details page?" 316 332 msgstr "" 317 333 318 #: app/Admin/Options.php:9 36334 #: app/Admin/Options.php:982 319 335 msgid "Check to the Link Wallet button on the WooCommerce Account Details page." 320 336 msgstr "" 321 337 322 #: app/Admin/Options.php:10 33338 #: app/Admin/Options.php:1081 323 339 msgid "Settings" 324 340 msgstr "" … … 371 387 msgstr "" 372 388 373 #: app/Login.php:91 app/Plugin.php:28 6389 #: app/Login.php:91 app/Plugin.php:288 374 390 msgid "Logged in" 375 391 msgstr "" … … 398 414 msgstr "" 399 415 400 #: app/Plugin.php:28 0416 #: app/Plugin.php:282 401 417 msgid "Choose your login method" 402 418 msgstr "" 403 419 404 #: app/Plugin.php:28 1420 #: app/Plugin.php:283 405 421 msgid "Error: cannot detect crypto wallet" 406 422 msgstr "" 407 423 408 #: app/Plugin.php:28 2424 #: app/Plugin.php:284 409 425 msgid "Waiting for your permission" 410 426 msgstr "" 411 427 412 #: app/Plugin.php:28 3428 #: app/Plugin.php:285 413 429 msgid "Fetching login phrase..." 414 430 msgstr "" 415 431 416 #: app/Plugin.php:28 4432 #: app/Plugin.php:286 417 433 msgid "Waiting for your signature" 418 434 msgstr "" 419 435 420 #: app/Plugin.php:28 5436 #: app/Plugin.php:287 421 437 msgid "Verifying signature..." 422 438 msgstr "" 423 439 424 #: app/Plugin.php:28 7440 #: app/Plugin.php:289 425 441 msgid "Login aborted" 426 442 msgstr "" 427 443 428 #: app/Plugin.php:2 88444 #: app/Plugin.php:290 429 445 msgid "Log In" 430 446 msgstr "" 431 447 432 #: app/Plugin.php:2 89448 #: app/Plugin.php:291 433 449 msgid "Scan a QR code with your wallet, https://walletconnect.org" 434 450 msgstr "" 435 451 436 #: app/Plugin.php:29 0452 #: app/Plugin.php:292 437 453 msgid "Browser add-on and mobile app, https://metamask.io" 438 454 msgstr "" 439 455 440 #: app/Plugin.php:34 3456 #: app/Plugin.php:345 441 457 msgid "Log out first" 442 458 msgstr "" -
ethpress/trunk/readme.txt
r2905428 r2906849 5 5 Requires at least: 4.6 6 6 Tested up to: 6.2.0 7 Stable tag: 2. 0.27 Stable tag: 2.1.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 252 252 253 253 254 = 2.1.0 = 255 256 * Dark and Light theme modes for the web3 login dialog 257 254 258 = 2.0.2 = 255 259 -
ethpress/trunk/vendor/autoload.php
r2905428 r2906849 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit b8de0c1218346259d2b11b1af1918ba1::getLoader();7 return ComposerAutoloaderInit660fc5fd6099617dca2d3e90a69ab7dc::getLoader(); -
ethpress/trunk/vendor/composer/autoload_real.php
r2905428 r2906849 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit b8de0c1218346259d2b11b1af1918ba15 class ComposerAutoloaderInit660fc5fd6099617dca2d3e90a69ab7dc 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit b8de0c1218346259d2b11b1af1918ba1', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit660fc5fd6099617dca2d3e90a69ab7dc', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit b8de0c1218346259d2b11b1af1918ba1', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit660fc5fd6099617dca2d3e90a69ab7dc', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit b8de0c1218346259d2b11b1af1918ba1::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit660fc5fd6099617dca2d3e90a69ab7dc::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; -
ethpress/trunk/vendor/composer/autoload_static.php
r2905428 r2906849 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit b8de0c1218346259d2b11b1af1918ba17 class ComposerStaticInit660fc5fd6099617dca2d3e90a69ab7dc 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 67 67 { 68 68 return \Closure::bind(function () use ($loader) { 69 $loader->prefixLengthsPsr4 = ComposerStaticInit b8de0c1218346259d2b11b1af1918ba1::$prefixLengthsPsr4;70 $loader->prefixDirsPsr4 = ComposerStaticInit b8de0c1218346259d2b11b1af1918ba1::$prefixDirsPsr4;71 $loader->classMap = ComposerStaticInit b8de0c1218346259d2b11b1af1918ba1::$classMap;69 $loader->prefixLengthsPsr4 = ComposerStaticInit660fc5fd6099617dca2d3e90a69ab7dc::$prefixLengthsPsr4; 70 $loader->prefixDirsPsr4 = ComposerStaticInit660fc5fd6099617dca2d3e90a69ab7dc::$prefixDirsPsr4; 71 $loader->classMap = ComposerStaticInit660fc5fd6099617dca2d3e90a69ab7dc::$classMap; 72 72 73 73 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.