Plugin Directory

Changeset 3230022


Ignore:
Timestamp:
01/27/2025 11:05:26 PM (14 months ago)
Author:
heynota
Message:

Update to version 0.14.1 from GitHub

Location:
nota-ai-tools
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • nota-ai-tools/tags/0.14.1/includes/class-nota-post-tools.php

    r3216075 r3230022  
    258258                    'register_controls'     => [
    259259                        'seo'   => ! $yoast_enabled,
    260                         'grade' => true,
     260                        'grade' => $this->settings->get_option( 'disable_tool_proof', false ) == false,
    261261                    ],
    262262                    'tools_active'          => ! empty( $this->settings->get_option( 'api_key' ) ),
  • nota-ai-tools/tags/0.14.1/includes/class-nota-script.php

    r3223033 r3230022  
    4141
    4242    /**
    43      * Register script submenu
     43     * Register script submenu.
    4444     */
    4545    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        }
    5458    }
    5559
     
    8892                'hasScriptAccess'   => true,
    8993                'disable_enhance'   => $this->settings->get_option( 'disable_enhance', 1 ) == 1,
     94                'enable_enhance'    => $this->settings->get_option( 'enable_enhance', 1 ) == 1,
    9095            )
    9196        );
     
    103108     */
    104109    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        }
    110119    }
    111120}
  • nota-ai-tools/tags/0.14.1/includes/class-nota-settings.php

    r3223033 r3230022  
    4141
    4242    /**
    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
    4451     *
    4552     * @var string
     
    180187
    181188        $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(
    182231            'trigger_proof_enabled',
    183232            __( 'Automatically trigger Proof', 'nota' ),
    184233            array( $this, 'render_checkbox_input' ),
    185             $this->tool_settings_section_key,
     234            $this->proof_settings_section_key,
    186235            array(
    187236                'subtitle' => __( 'When enabled, analyzing the page with Nota tools will refresh Proof.', 'nota' ),
     
    193242            __( 'Proof Position', 'nota' ),
    194243            array( $this, 'render_select_input' ),
    195             $this->tool_settings_section_key,
     244            $this->proof_settings_section_key,
    196245            array(
    197246                'options' => array(
     
    200249                ),
    201250            )
    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        );
    235266
    236267        $this->add_setting_field(
     
    240271            $this->script_settings_section_key,
    241272            array(
    242                 'subtitle' => __( 'When checked, disables enhancing articles option.', 'nota' ),
     273                'subtitle' => __( 'When checked, disables SCRIPT enhance article option.', 'nota' ),
    243274            )
    244275        );
  • nota-ai-tools/tags/0.14.1/nota-wordpress-plugin.php

    r3223033 r3230022  
    33 * Plugin Name: Nota Tools
    44 * Description: Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more.
    5  * Version: 0.14.0
     5 * Version: 0.14.1
    66 * Author: Nota
    77 * Author URI: https://heynota.com
     
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 define( 'NOTA_PLUGIN_VERSION', '0.14.0' );
     16define( 'NOTA_PLUGIN_VERSION', '0.14.1' );
    1717
    1818if ( ! defined( 'NOTA_PLUGIN_FILE' ) ) {
  • nota-ai-tools/tags/0.14.1/readme.txt

    r3223033 r3230022  
    44License URI: http://www.gnu.org/licenses/gpl.html
    55Requires PHP: 7.2.5
    6 Stable tag: 0.14.0
    7 Tested up to: 6.6.1
     6Stable tag: 0.14.1
     7Tested up to: 6.7.1
    88
    99Nota’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  
    258258                    'register_controls'     => [
    259259                        'seo'   => ! $yoast_enabled,
    260                         'grade' => true,
     260                        'grade' => $this->settings->get_option( 'disable_tool_proof', false ) == false,
    261261                    ],
    262262                    'tools_active'          => ! empty( $this->settings->get_option( 'api_key' ) ),
  • nota-ai-tools/trunk/includes/class-nota-script.php

    r3223033 r3230022  
    4141
    4242    /**
    43      * Register script submenu
     43     * Register script submenu.
    4444     */
    4545    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        }
    5458    }
    5559
     
    8892                'hasScriptAccess'   => true,
    8993                'disable_enhance'   => $this->settings->get_option( 'disable_enhance', 1 ) == 1,
     94                'enable_enhance'    => $this->settings->get_option( 'enable_enhance', 1 ) == 1,
    9095            )
    9196        );
     
    103108     */
    104109    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        }
    110119    }
    111120}
  • nota-ai-tools/trunk/includes/class-nota-settings.php

    r3223033 r3230022  
    4141
    4242    /**
    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
    4451     *
    4552     * @var string
     
    180187
    181188        $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(
    182231            'trigger_proof_enabled',
    183232            __( 'Automatically trigger Proof', 'nota' ),
    184233            array( $this, 'render_checkbox_input' ),
    185             $this->tool_settings_section_key,
     234            $this->proof_settings_section_key,
    186235            array(
    187236                'subtitle' => __( 'When enabled, analyzing the page with Nota tools will refresh Proof.', 'nota' ),
     
    193242            __( 'Proof Position', 'nota' ),
    194243            array( $this, 'render_select_input' ),
    195             $this->tool_settings_section_key,
     244            $this->proof_settings_section_key,
    196245            array(
    197246                'options' => array(
     
    200249                ),
    201250            )
    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        );
    235266
    236267        $this->add_setting_field(
     
    240271            $this->script_settings_section_key,
    241272            array(
    242                 'subtitle' => __( 'When checked, disables enhancing articles option.', 'nota' ),
     273                'subtitle' => __( 'When checked, disables SCRIPT enhance article option.', 'nota' ),
    243274            )
    244275        );
  • nota-ai-tools/trunk/nota-wordpress-plugin.php

    r3223033 r3230022  
    33 * Plugin Name: Nota Tools
    44 * Description: Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more.
    5  * Version: 0.14.0
     5 * Version: 0.14.1
    66 * Author: Nota
    77 * Author URI: https://heynota.com
     
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 define( 'NOTA_PLUGIN_VERSION', '0.14.0' );
     16define( 'NOTA_PLUGIN_VERSION', '0.14.1' );
    1717
    1818if ( ! defined( 'NOTA_PLUGIN_FILE' ) ) {
  • nota-ai-tools/trunk/readme.txt

    r3223033 r3230022  
    44License URI: http://www.gnu.org/licenses/gpl.html
    55Requires PHP: 7.2.5
    6 Stable tag: 0.14.0
    7 Tested up to: 6.6.1
     6Stable tag: 0.14.1
     7Tested up to: 6.7.1
    88
    99Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more.
Note: See TracChangeset for help on using the changeset viewer.