Changeset 3230022
- Timestamp:
- 01/27/2025 11:05:26 PM (14 months ago)
- Location:
- nota-ai-tools
- Files:
-
- 10 edited
- 1 copied
-
tags/0.14.1 (copied) (copied from nota-ai-tools/trunk)
-
tags/0.14.1/includes/class-nota-post-tools.php (modified) (1 diff)
-
tags/0.14.1/includes/class-nota-script.php (modified) (3 diffs)
-
tags/0.14.1/includes/class-nota-settings.php (modified) (5 diffs)
-
tags/0.14.1/nota-wordpress-plugin.php (modified) (2 diffs)
-
tags/0.14.1/readme.txt (modified) (1 diff)
-
trunk/includes/class-nota-post-tools.php (modified) (1 diff)
-
trunk/includes/class-nota-script.php (modified) (3 diffs)
-
trunk/includes/class-nota-settings.php (modified) (5 diffs)
-
trunk/nota-wordpress-plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nota-ai-tools/tags/0.14.1/includes/class-nota-post-tools.php
r3216075 r3230022 258 258 'register_controls' => [ 259 259 'seo' => ! $yoast_enabled, 260 'grade' => true,260 'grade' => $this->settings->get_option( 'disable_tool_proof', false ) == false, 261 261 ], 262 262 'tools_active' => ! empty( $this->settings->get_option( 'api_key' ) ), -
nota-ai-tools/tags/0.14.1/includes/class-nota-script.php
r3223033 r3230022 41 41 42 42 /** 43 * Register script submenu 43 * Register script submenu. 44 44 */ 45 45 public function register_submenu() { 46 add_submenu_page( 47 $this->parent_menu_slug, 48 __( 'New Post from Script', 'nota' ), 49 __( 'New Post from Script', 'nota' ), 50 'edit_posts', 51 'nota-scripts', 52 array( $this, 'render_script_page' ) 53 ); 46 // TODO: Is there better means to references "nota_disable_tool_script" option? 47 $option_value = get_option( 'nota_disable_tool_script', false ); 48 if ( false == $option_value ) { 49 add_submenu_page( 50 $this->parent_menu_slug, 51 __( 'New Post from SCRIPT', 'nota' ), 52 __( 'New Post from SCRIPT', 'nota' ), 53 'edit_posts', 54 'nota-scripts', 55 array( $this, 'render_script_page' ) 56 ); 57 } 54 58 } 55 59 … … 88 92 'hasScriptAccess' => true, 89 93 'disable_enhance' => $this->settings->get_option( 'disable_enhance', 1 ) == 1, 94 'enable_enhance' => $this->settings->get_option( 'enable_enhance', 1 ) == 1, 90 95 ) 91 96 ); … … 103 108 */ 104 109 public function render_script_page() { 105 ?> 106 <div class="wrap"> 107 <div id="nota-scripts-root"></div> 108 </div> 109 <?php 110 // TODO: Is there better means to references "nota_disable_tool_script" option? 111 $option_value = get_option( 'nota_disable_tool_script', false ); 112 if ( false == $option_value ) { 113 ?> 114 <div class="wrap"> 115 <div id="nota-scripts-root"></div> 116 </div> 117 <?php 118 } 110 119 } 111 120 } -
nota-ai-tools/tags/0.14.1/includes/class-nota-settings.php
r3223033 r3230022 41 41 42 42 /** 43 * Key for the script settings section 43 * Key for the PROOF settings section 44 * 45 * @var string 46 */ 47 public $proof_settings_section_key = 'nota_proof_settings'; 48 49 /** 50 * Key for the SCRIPT settings section 44 51 * 45 52 * @var string … … 180 187 181 188 $this->add_setting_field( 189 'hide_content_tab', 190 __( 'Hide Content Tab', 'nota' ), 191 array( $this, 'render_checkbox_input' ), 192 $this->tool_settings_section_key 193 ); 194 195 $this->add_setting_field( 196 'hide_seo_tab', 197 __( 'Hide SEO Tab', 'nota' ), 198 array( $this, 'render_checkbox_input' ), 199 $this->tool_settings_section_key 200 ); 201 202 $this->add_setting_field( 203 'hide_social_tab', 204 __( 'Hide Social Tab', 'nota' ), 205 array( $this, 'render_checkbox_input' ), 206 $this->tool_settings_section_key 207 ); 208 209 $this->add_setting_field( 210 'tracking_enabled', 211 __( 'Enable Analytics', 'nota' ), 212 array( $this, 'render_checkbox_input' ), 213 $this->tool_settings_section_key 214 ); 215 216 // PROOF settings. 217 218 add_settings_section( $this->proof_settings_section_key, __( 'PROOF Settings', 'nota' ), '__return_false', $this->setting_page_slug ); 219 220 $this->add_setting_field( 221 'disable_tool_proof', 222 __( 'Disable PROOF', 'nota' ), 223 array( $this, 'render_checkbox_input' ), 224 $this->proof_settings_section_key, 225 array( 226 'subtitle' => __( 'When checked, disables the PROOF tool.', 'nota' ), 227 ) 228 ); 229 230 $this->add_setting_field( 182 231 'trigger_proof_enabled', 183 232 __( 'Automatically trigger Proof', 'nota' ), 184 233 array( $this, 'render_checkbox_input' ), 185 $this-> tool_settings_section_key,234 $this->proof_settings_section_key, 186 235 array( 187 236 'subtitle' => __( 'When enabled, analyzing the page with Nota tools will refresh Proof.', 'nota' ), … … 193 242 __( 'Proof Position', 'nota' ), 194 243 array( $this, 'render_select_input' ), 195 $this-> tool_settings_section_key,244 $this->proof_settings_section_key, 196 245 array( 197 246 'options' => array( … … 200 249 ), 201 250 ) 202 ); 203 204 $this->add_setting_field( 205 'hide_content_tab', 206 __( 'Hide Content Tab', 'nota' ), 207 array( $this, 'render_checkbox_input' ), 208 $this->tool_settings_section_key 209 ); 210 211 $this->add_setting_field( 212 'hide_seo_tab', 213 __( 'Hide SEO Tab', 'nota' ), 214 array( $this, 'render_checkbox_input' ), 215 $this->tool_settings_section_key 216 ); 217 218 $this->add_setting_field( 219 'hide_social_tab', 220 __( 'Hide Social Tab', 'nota' ), 221 array( $this, 'render_checkbox_input' ), 222 $this->tool_settings_section_key 223 ); 224 225 $this->add_setting_field( 226 'tracking_enabled', 227 __( 'Enable Analytics', 'nota' ), 228 array( $this, 'render_checkbox_input' ), 229 $this->tool_settings_section_key 230 ); 231 232 // script settings 233 234 add_settings_section( $this->script_settings_section_key, __( 'Script Settings', 'nota' ), '__return_false', $this->setting_page_slug ); 251 ); 252 253 // SCRIPT settings. 254 255 add_settings_section( $this->script_settings_section_key, __( 'SCRIPT Settings', 'nota' ), '__return_false', $this->setting_page_slug ); 256 257 $this->add_setting_field( 258 'disable_tool_script', 259 __( 'Disable SCRIPT', 'nota' ), 260 array( $this, 'render_checkbox_input' ), 261 $this->script_settings_section_key, 262 array( 263 'subtitle' => __( 'When checked, disables the SCRIPT tool.', 'nota' ), 264 ) 265 ); 235 266 236 267 $this->add_setting_field( … … 240 271 $this->script_settings_section_key, 241 272 array( 242 'subtitle' => __( 'When checked, disables enhancing articlesoption.', 'nota' ),273 'subtitle' => __( 'When checked, disables SCRIPT enhance article option.', 'nota' ), 243 274 ) 244 275 ); -
nota-ai-tools/tags/0.14.1/nota-wordpress-plugin.php
r3223033 r3230022 3 3 * Plugin Name: Nota Tools 4 4 * Description: Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more. 5 * Version: 0.14. 05 * Version: 0.14.1 6 6 * Author: Nota 7 7 * Author URI: https://heynota.com … … 14 14 defined( 'ABSPATH' ) || exit; 15 15 16 define( 'NOTA_PLUGIN_VERSION', '0.14. 0' );16 define( 'NOTA_PLUGIN_VERSION', '0.14.1' ); 17 17 18 18 if ( ! defined( 'NOTA_PLUGIN_FILE' ) ) { -
nota-ai-tools/tags/0.14.1/readme.txt
r3223033 r3230022 4 4 License URI: http://www.gnu.org/licenses/gpl.html 5 5 Requires PHP: 7.2.5 6 Stable tag: 0.14. 07 Tested up to: 6. 6.16 Stable tag: 0.14.1 7 Tested up to: 6.7.1 8 8 9 9 Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more. -
nota-ai-tools/trunk/includes/class-nota-post-tools.php
r3216075 r3230022 258 258 'register_controls' => [ 259 259 'seo' => ! $yoast_enabled, 260 'grade' => true,260 'grade' => $this->settings->get_option( 'disable_tool_proof', false ) == false, 261 261 ], 262 262 'tools_active' => ! empty( $this->settings->get_option( 'api_key' ) ), -
nota-ai-tools/trunk/includes/class-nota-script.php
r3223033 r3230022 41 41 42 42 /** 43 * Register script submenu 43 * Register script submenu. 44 44 */ 45 45 public function register_submenu() { 46 add_submenu_page( 47 $this->parent_menu_slug, 48 __( 'New Post from Script', 'nota' ), 49 __( 'New Post from Script', 'nota' ), 50 'edit_posts', 51 'nota-scripts', 52 array( $this, 'render_script_page' ) 53 ); 46 // TODO: Is there better means to references "nota_disable_tool_script" option? 47 $option_value = get_option( 'nota_disable_tool_script', false ); 48 if ( false == $option_value ) { 49 add_submenu_page( 50 $this->parent_menu_slug, 51 __( 'New Post from SCRIPT', 'nota' ), 52 __( 'New Post from SCRIPT', 'nota' ), 53 'edit_posts', 54 'nota-scripts', 55 array( $this, 'render_script_page' ) 56 ); 57 } 54 58 } 55 59 … … 88 92 'hasScriptAccess' => true, 89 93 'disable_enhance' => $this->settings->get_option( 'disable_enhance', 1 ) == 1, 94 'enable_enhance' => $this->settings->get_option( 'enable_enhance', 1 ) == 1, 90 95 ) 91 96 ); … … 103 108 */ 104 109 public function render_script_page() { 105 ?> 106 <div class="wrap"> 107 <div id="nota-scripts-root"></div> 108 </div> 109 <?php 110 // TODO: Is there better means to references "nota_disable_tool_script" option? 111 $option_value = get_option( 'nota_disable_tool_script', false ); 112 if ( false == $option_value ) { 113 ?> 114 <div class="wrap"> 115 <div id="nota-scripts-root"></div> 116 </div> 117 <?php 118 } 110 119 } 111 120 } -
nota-ai-tools/trunk/includes/class-nota-settings.php
r3223033 r3230022 41 41 42 42 /** 43 * Key for the script settings section 43 * Key for the PROOF settings section 44 * 45 * @var string 46 */ 47 public $proof_settings_section_key = 'nota_proof_settings'; 48 49 /** 50 * Key for the SCRIPT settings section 44 51 * 45 52 * @var string … … 180 187 181 188 $this->add_setting_field( 189 'hide_content_tab', 190 __( 'Hide Content Tab', 'nota' ), 191 array( $this, 'render_checkbox_input' ), 192 $this->tool_settings_section_key 193 ); 194 195 $this->add_setting_field( 196 'hide_seo_tab', 197 __( 'Hide SEO Tab', 'nota' ), 198 array( $this, 'render_checkbox_input' ), 199 $this->tool_settings_section_key 200 ); 201 202 $this->add_setting_field( 203 'hide_social_tab', 204 __( 'Hide Social Tab', 'nota' ), 205 array( $this, 'render_checkbox_input' ), 206 $this->tool_settings_section_key 207 ); 208 209 $this->add_setting_field( 210 'tracking_enabled', 211 __( 'Enable Analytics', 'nota' ), 212 array( $this, 'render_checkbox_input' ), 213 $this->tool_settings_section_key 214 ); 215 216 // PROOF settings. 217 218 add_settings_section( $this->proof_settings_section_key, __( 'PROOF Settings', 'nota' ), '__return_false', $this->setting_page_slug ); 219 220 $this->add_setting_field( 221 'disable_tool_proof', 222 __( 'Disable PROOF', 'nota' ), 223 array( $this, 'render_checkbox_input' ), 224 $this->proof_settings_section_key, 225 array( 226 'subtitle' => __( 'When checked, disables the PROOF tool.', 'nota' ), 227 ) 228 ); 229 230 $this->add_setting_field( 182 231 'trigger_proof_enabled', 183 232 __( 'Automatically trigger Proof', 'nota' ), 184 233 array( $this, 'render_checkbox_input' ), 185 $this-> tool_settings_section_key,234 $this->proof_settings_section_key, 186 235 array( 187 236 'subtitle' => __( 'When enabled, analyzing the page with Nota tools will refresh Proof.', 'nota' ), … … 193 242 __( 'Proof Position', 'nota' ), 194 243 array( $this, 'render_select_input' ), 195 $this-> tool_settings_section_key,244 $this->proof_settings_section_key, 196 245 array( 197 246 'options' => array( … … 200 249 ), 201 250 ) 202 ); 203 204 $this->add_setting_field( 205 'hide_content_tab', 206 __( 'Hide Content Tab', 'nota' ), 207 array( $this, 'render_checkbox_input' ), 208 $this->tool_settings_section_key 209 ); 210 211 $this->add_setting_field( 212 'hide_seo_tab', 213 __( 'Hide SEO Tab', 'nota' ), 214 array( $this, 'render_checkbox_input' ), 215 $this->tool_settings_section_key 216 ); 217 218 $this->add_setting_field( 219 'hide_social_tab', 220 __( 'Hide Social Tab', 'nota' ), 221 array( $this, 'render_checkbox_input' ), 222 $this->tool_settings_section_key 223 ); 224 225 $this->add_setting_field( 226 'tracking_enabled', 227 __( 'Enable Analytics', 'nota' ), 228 array( $this, 'render_checkbox_input' ), 229 $this->tool_settings_section_key 230 ); 231 232 // script settings 233 234 add_settings_section( $this->script_settings_section_key, __( 'Script Settings', 'nota' ), '__return_false', $this->setting_page_slug ); 251 ); 252 253 // SCRIPT settings. 254 255 add_settings_section( $this->script_settings_section_key, __( 'SCRIPT Settings', 'nota' ), '__return_false', $this->setting_page_slug ); 256 257 $this->add_setting_field( 258 'disable_tool_script', 259 __( 'Disable SCRIPT', 'nota' ), 260 array( $this, 'render_checkbox_input' ), 261 $this->script_settings_section_key, 262 array( 263 'subtitle' => __( 'When checked, disables the SCRIPT tool.', 'nota' ), 264 ) 265 ); 235 266 236 267 $this->add_setting_field( … … 240 271 $this->script_settings_section_key, 241 272 array( 242 'subtitle' => __( 'When checked, disables enhancing articlesoption.', 'nota' ),273 'subtitle' => __( 'When checked, disables SCRIPT enhance article option.', 'nota' ), 243 274 ) 244 275 ); -
nota-ai-tools/trunk/nota-wordpress-plugin.php
r3223033 r3230022 3 3 * Plugin Name: Nota Tools 4 4 * Description: Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more. 5 * Version: 0.14. 05 * Version: 0.14.1 6 6 * Author: Nota 7 7 * Author URI: https://heynota.com … … 14 14 defined( 'ABSPATH' ) || exit; 15 15 16 define( 'NOTA_PLUGIN_VERSION', '0.14. 0' );16 define( 'NOTA_PLUGIN_VERSION', '0.14.1' ); 17 17 18 18 if ( ! defined( 'NOTA_PLUGIN_FILE' ) ) { -
nota-ai-tools/trunk/readme.txt
r3223033 r3230022 4 4 License URI: http://www.gnu.org/licenses/gpl.html 5 5 Requires PHP: 7.2.5 6 Stable tag: 0.14. 07 Tested up to: 6. 6.16 Stable tag: 0.14.1 7 Tested up to: 6.7.1 8 8 9 9 Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more.
Note: See TracChangeset
for help on using the changeset viewer.