Changeset 2075113
- Timestamp:
- 04/26/2019 03:44:32 AM (7 years ago)
- Location:
- somenano/trunk
- Files:
-
- 2 added
- 4 edited
-
css/somenano-admin.css (added)
-
readme.txt (modified) (4 diffs)
-
somenano-dbview.php (added)
-
somenano-install.php (modified) (1 diff)
-
somenano-options.php (modified) (2 diffs)
-
somenano-wordpress.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
somenano/trunk/readme.txt
r2073539 r2075113 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Accept Nano Cryptocurrency on your WordPress site. Set up a paywall so content on posts or pages is hidden until the user pays an amount of Nan y.12 Accept Nano Cryptocurrency on your WordPress site. Set up a paywall so content on posts or pages is hidden until the user pays an amount of Nano. 13 13 14 14 == Description == … … 51 51 * Use default values: `[somenano_paywall]` 52 52 53 = My payment goes through but the paywall stays = 54 55 This is likely due to a plugin conflict, probably a caching plugin. Disable caching plugins (and possibly others) to verify that is the problem. Many caching plugins let you set exceptions, you should do this for pages or posts that have a paywall. Read more about about caching plugin conflicts here: [Caching Plugins and SomeNano for Wordpress](https://somenano.com/index.php/2019/04/24/caching-plugins-and-somenano-for-wordpress/) 56 53 57 == Screenshots == 54 58 … … 60 64 == Changelog == 61 65 66 0.1.1 67 * Added database table in the settings to view paid transactions. Will be prettied up in later releases. 68 62 69 0.1.0 63 70 * Initial beta release … … 65 72 == Upgrade Notice == 66 73 74 = 0.1.1 = 75 Added database table in the settings to view paid transactions. 76 67 77 = 0.1.0 = 68 78 Initial release -
somenano/trunk/somenano-install.php
r2073539 r2075113 11 11 12 12 global $somenano_version; 13 $somenano_version = '0.1. 0';13 $somenano_version = '0.1.1'; 14 14 15 15 function somenano_install() -
somenano/trunk/somenano-options.php
r2073539 r2075113 5 5 require_once( plugin_dir_path( __FILE__ ) . 'somenano-brainblocks.php' ); 6 6 require_once( plugin_dir_path( __FILE__ ) . 'somenano-defaults.php' ); 7 require_once( plugin_dir_path( __FILE__ ) . 'somenano-dbview.php' ); 7 8 8 9 class SomeNanoSettingsPage … … 44 45 // Set class property 45 46 $this->options = get_option( 'somenano_options' ); 47 $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'settings'; 46 48 ?> 47 49 <div class="wrap"> 48 50 <h1>SomeNano for Wordpress Settings</h1> 51 <h2 class="nav-tab-wrapper"> 52 <a href="?page=somenano-settings&tab=settings" class="nav-tab <?php echo $active_tab == 'settings' ? 'nav-tab-active' : ''; ?>">Settings</a> 53 <a href="?page=somenano-settings&tab=database" class="nav-tab <?php echo $active_tab == 'database' ? 'nav-tab-active' : ''; ?>">Database</a> 54 </h2> 49 55 <form method="post" action="options.php"> 50 56 <?php 51 57 // This prints out all hidden setting fields 52 settings_fields( 'my_option_group' ); 53 do_settings_sections( 'somenano-settings' ); 54 submit_button(); 58 if ( $active_tab == 'settings' ) { 59 settings_fields( 'my_option_group' ); 60 do_settings_sections( 'somenano-settings' ); 61 submit_button(); 62 } elseif ( $active_tab == 'database' ) { 63 somenano_show_payments_table(); 64 } 55 65 ?> 56 66 </form> -
somenano/trunk/somenano-wordpress.php
r2073539 r2075113 2 2 /** 3 3 * Plugin Name: SomeNano for Wordpress 4 * Plugin URI: https://wordpress. somenano.com4 * Plugin URI: https://wordpress.org/plugins/somenano/ 5 5 * Description: Accept Nano cryptocurrency as payment for users to view content on your Wordpress site 6 * Version: 0.1. 07 * Author: Jason Pawlak6 * Version: 0.1.1 7 * Author: SomeNano 8 8 * Author URI: https://somenano.com 9 9 */ 10 11 /*12 Ideas/Todo:13 - Author Nano Account14 - Donation widget15 - Post donation16 */17 10 18 11 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); … … 46 39 add_action( 'wp_enqueue_scripts', 'somenano_enqueue_bb_scripts' ); 47 40 add_action( 'admin_enqueue_scripts', 'somenano_enqueue_bb_scripts' ); 41 42 function somenano_enqueue_admin_scripts() 43 { 44 wp_register_style( 'somenano-admin.css', plugins_url('/css/somenano-admin.css', __FILE__), array(), $somenano_version, 'all' ); 45 wp_enqueue_style( 'somenano-admin.css' ); 46 } 47 add_action( 'admin_enqueue_scripts', 'somenano_enqueue_admin_scripts' ); 48 48 49 49 function somenano_ready() … … 70 70 ), $links ); 71 71 return $links; 72 //http://bunnyweb/wp-admin/options-general.php?page=somenano-settings73 72 } 74 73 add_action( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'somenano_action_links' );
Note: See TracChangeset
for help on using the changeset viewer.