Plugin Directory

Changeset 3151847


Ignore:
Timestamp:
09/14/2024 04:46:10 PM (19 months ago)
Author:
zhuyi
Message:

version 9.9.3

Location:
wordpress-tooltips/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wordpress-tooltips/trunk/asset/admin/css/admin.css

    r3101347 r3151847  
    1818, span.questioncontactform7, span.questiontooltipformaxbutton, span.questionlinktooltiptermtotooltippage
    1919, span.questionaccesstooltipwithtabkey, span.spanquestiontooltipforrightcolumnglossarytable
     20, span.questionenablegutenbergfortooltips
    2021{
    2122  cursor: pointer;
     
    4445, span.questiontooltipformaxbutton:hover, span.questionlinktooltiptermtotooltippage:hover
    4546, span.questionaccesstooltipwithtabkey:hover, span.spanquestiontooltipforrightcolumnglossarytable:hover
     47, span.questionenablegutenbergfortooltips:hover
    4648{
    4749    background-color: #21759b;
     
    5355, div.divdisableTooltipandEnableGlossary, div.divquestiontooltipforleftcolumnglossarytable, div.tooltip6
    5456, div.divtooltipformaxbutton, div.divlinktooltiptermtotooltippage, div.divaccesstooltipwithtabkey
    55 , div.divquestiontooltipforrightcolumnglossarytable
     57, div.divquestiontooltipforrightcolumnglossarytable, div.divenablegutenbergfortooltips
    5658{
    5759  text-align: left;
     
    7274, .divdisableTooltipandEnableGlossary:before, .divquestiontooltipforleftcolumnglossarytable:before, .tooltip6:before
    7375, .divtooltipformaxbutton:before, .divlinktooltiptermtotooltippage:before, .divaccesstooltipwithtabkey:before
    74 , .divquestiontooltipforrightcolumnglossarytable:before
     76, .divquestiontooltipforrightcolumnglossarytable:before, .divenablegutenbergfortooltips:before
    7577{
    7678  border-color: transparent #21759b transparent transparent;
     
    9496, .divtooltipformaxbutton p, .divlinktooltiptermtotooltippage p, .divaccesstooltipwithtabkey p
    9597, .divquestiontooltipcontentfontstyle p, .divquestiontooltipforrightcolumnglossarytable p
     98, .divenablegutenbergfortooltips p
    9699{
    97100  margin: 10px;
  • wordpress-tooltips/trunk/readme.txt

    r3131069 r3151847  
    55Tags:tooltip,glossary,dictionary,woocommerce,knowledge base
    66Requires at least: 3.8
    7 Tested up to: 6.6.1
     7Tested up to: 6.6.2
    88Stable tag:trunk
    99License: GPLv3 or later
     
    309309
    310310== Changelog ==
     311= Version 9.9.3 =
     312>[1 We now support using Gutenberg to create and edit wordpress tooltips terms](https://tooltips.org/support-for-creating-and-editing-wordpress-tooltips-in-the-gutenberg-editor-wordpress-tooltips-free-plugin-version-9-9-3-has-been-released/)
     3132 We fixed issues with a few admin tooltips in global settings that were not working well
     3143 We changed a few titles in global settings to make them clearer and more attractive
     315
    311316= Version 9.8.9 =
    312317>[New option "Glossary Term Capitalization" in Glossary Settings Panel, Instructions on how to use can be found at here](https://tooltips.org/support-for-display-glossary-term-exactly-as-entered-in-the-title-column-of-the-glossary-in-wordpress-tooltips-free-plugin-9-8-9/)
  • wordpress-tooltips/trunk/tooltips.php

    r3131069 r3151847  
    44Plugin URI:  https://tooltips.org/features-of-wordpress-tooltips-plugin/
    55Description: Wordpress Tooltips,You can add text,image,link,video,radio in tooltips, add tooltips in gallery. More amazing features? Do you want to customize a beautiful style for your tooltips? One Minute, Check <a href='https://tooltips.org/features-of-wordpress-tooltips-plugin/' target='_blank'> Features of WordPress Tooltips Pro</a>.
    6 Version: 9.8.9
     6Version: 9.9.3
    77Author: Tomas | <a href='https://tooltips.org/wordpress-tooltip-plugin/wordpress-tooltip-plugin-document/' target='_blank'>Docs</a> | <a href='https://tooltips.org/faq/' target='_blank'>FAQ</a> | <a href='https://tooltips.org/contact-us' target='_blank'>Premium Support</a>
    88Author URI: https://tooltips.org/wordpress-tooltip-plugin/wordpress-tooltips-demo/
     
    157157    }
    158158
     159    /* before 9.9.3
    159160    $args = array(
    160161            'labels' => $labels,
     
    172173            'supports' => array( 'title', 'editor','author','custom-fields','thumbnail','excerpt')  //7.5.1
    173174    );
     175    */
     176
     177    //9.9.3
     178    $enablegutenbergfortooltips =  '';
     179    $enablegutenbergfortooltips = get_option('enablegutenbergfortooltips');
     180    if (empty($enablegutenbergfortooltips))
     181    {
     182        $enablegutenbergfortooltips = 'NO';
     183    }
     184    if ($enablegutenbergfortooltips == 'NO')
     185    {
     186        $args = array(
     187            'labels' => $labels,
     188            'public' => $hasGlossaryIndex,
     189            'show_ui' => true,
     190            'show_in_menu' => true,
     191            '_builtin' => false,
     192            'query_var' => "tooltips",
     193            'rewrite' => $hasGlossaryIndexRewrite,
     194            'capability_type' => 'post',
     195            'has_archive' => $hasGlossaryIndex,
     196            'hierarchical' => false,
     197            'menu_position' => null,
     198            'exclude_from_search' => $enableGlossarySearchableFlag,
     199            'supports' => array(
     200                'title',
     201                'editor',
     202                'author',
     203                'custom-fields',
     204                'thumbnail',
     205                'excerpt'
     206            )
     207        );
     208    }
     209    else
     210    {
     211        $args = array(
     212            'labels' => $labels,
     213            'public' => $hasGlossaryIndex,
     214            'show_ui' => true,
     215            'show_in_menu' => true,
     216            'show_in_rest' => true,
     217            '_builtin' => false,
     218            'query_var' => "tooltips",
     219            'rewrite' => $hasGlossaryIndexRewrite,
     220            'capability_type' => 'post',
     221            'has_archive' => $hasGlossaryIndex,
     222            'hierarchical' => false,
     223            'menu_position' => null,
     224            'exclude_from_search' => $enableGlossarySearchableFlag,
     225            'supports' => array(
     226                'title',
     227                'editor',
     228                'author',
     229                'custom-fields',
     230                'thumbnail',
     231                'excerpt'
     232            )
     233        );
     234    }
     235    //end 9.9.3
    174236
    175237    register_post_type('tooltips', $args);
     
    17341796       //!!! end 7.9.7
    17351797    }
    1736     update_option('ztooltipversion','9.8.9');
     1798    update_option('ztooltipversion','9.9.3');
    17371799}
    17381800add_action( 'init', 'upgrade_check');
  • wordpress-tooltips/trunk/tooltipsfunctions.php

    r3036292 r3151847  
    450450    $accesstooltipwithtabkey = get_option("accesstooltipwithtabkey");
    451451   
    452    
     452    //9.9.3
     453    if (isset($_POST['enablegutenbergfortooltipsSubmit']))
     454    {
     455        check_admin_referer('fucwpexpertglobalsettings');
     456        if (isset($_POST['enablegutenbergfortooltips']))
     457        {
     458            $enablegutenbergfortooltips = sanitize_text_field($_POST['enablegutenbergfortooltips']);
     459            update_option("enablegutenbergfortooltips",$enablegutenbergfortooltips);
     460            $enablegutenbergfortooltips = get_option("enablegutenbergfortooltips");
     461
     462        }
     463        $tooltipsMessageProString =  __( 'Changes saved', 'wordpress-tooltips' );
     464        tooltipsMessage($tooltipsMessageProString);
     465    }
     466    $enablegutenbergfortooltips = get_option("enablegutenbergfortooltips");
    453467?>
    454468<div style='margin:20px 5px 10px 5px;'>
     
    18391853    $addtipto = "span.$paneltipspanclassname";
    18401854    $addtiptodiv = $admin_tip_content_classname;
    1841     $questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>";
     1855    // 9.9.3 $questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>";
     1856    $questiontip = "<div class=".'"'.$admin_tip_content_classname. '"'."><p>$admin_tip_content</p></div>";
    18421857    $tipadsorbent = ".$paneltipspanclassname";
    18431858    $adminTip = showAdminTip($addtipto,$questiontip,"div.$admin_tip_content_classname",$tipadsorbent);
     
    18761891
    18771892//start 8.9.5
    1878     $panel_title = __( "Enable / Disable access tooltips with tab key?", "wordpress-tooltips");
     1893    $panel_title = __( "Enable / Disable access tooltips with tab key", "wordpress-tooltips");
    18791894    $panel_label_content = __( "Enable / Disable access tooltip with tab key: ", "wordpress-tooltips");
    18801895    $paneltipspanclassname = 'questionaccesstooltipwithtabkey';
     
    18851900    $addtipto = "span.$paneltipspanclassname";
    18861901    $addtiptodiv = $admin_tip_content_classname;
    1887     $questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>";
     1902    // before 9.9.3 $questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>";
     1903    $questiontip = "<div class=".'"'.$admin_tip_content_classname. '"'."><p>$admin_tip_content</p></div>";
    18881904    $tipadsorbent = ".$paneltipspanclassname";
    18891905    $adminTip = showAdminTip($addtipto,$questiontip,"div.$admin_tip_content_classname",$tipadsorbent);
     
    19331949    tom_display_panel_in_admin_free($panel_title,$panel_label,$panel_content,$adminTip,$panel_submit_button_name,$panel_submit_label,$panel_tip_link);
    19341950//end 8.9.5
     1951
     1952
     1953    //9.9.3 and 31.4.8 start
     1954
     1955    $panel_title = __( "Enable / Disable Gutenberg for Tooltips", "wordpress-tooltips");
     1956    $panel_label_content = __( "Enable Gutenberg for Tooltips: ", "wordpress-tooltips");
     1957    $paneltipspanclassname = 'questionenablegutenbergfortooltips';
     1958    $paneltipspanclass = " <span class='$paneltipspanclassname'>?</span>";
     1959    $panel_label = $panel_label_content.$paneltipspanclass;
     1960    $admin_tip_content = __('Opt to Enable / Disable Gutenberg Editor for Tooltips',  "wordpress-tooltips");
     1961    $admin_tip_content_classname = "divenablegutenbergfortooltips";
     1962    $addtipto = "span.$paneltipspanclassname";
     1963    $addtiptodiv = $admin_tip_content_classname;
     1964    //$questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>";
     1965    //9.9.3
     1966    $questiontip = "<div class=".'"'.$admin_tip_content_classname. '"'."><p>$admin_tip_content</p></div>";
     1967    $tipadsorbent = ".$paneltipspanclassname";
     1968    $adminTip = showAdminTip($addtipto,$questiontip,"div.$admin_tip_content_classname",$tipadsorbent);
     1969    $panel_submit_button_name = 'enablegutenbergfortooltipsSubmit';
     1970   
     1971    $enablegutenbergfortooltips =  '';
     1972    $enablegutenbergfortooltips = get_option('enablegutenbergfortooltips');
     1973    if (empty($enablegutenbergfortooltips))
     1974    {
     1975        $enablegutenbergfortooltips = 'NO';
     1976    }
     1977   
     1978    $panel_content = '<select id="enablegutenbergfortooltips" name="enablegutenbergfortooltips" style="width:300px;">';
     1979    if ($enablegutenbergfortooltips == 'NO')
     1980    {
     1981        $panel_content .= '<option id="enablegutenbergfortooltipsOption" value="NO"  selected="">'. __("NO, disable Gutenberg for tooltips", "wordpress-tooltips"). "</option>";
     1982    }
     1983    else
     1984    {
     1985        $panel_content .= '<option id="enablegutenbergfortooltipsOption" value="NO">'. __("NO, disable Gutenberg for tooltips", "wordpress-tooltips"). "</option>";
     1986    }
     1987   
     1988   
     1989    if ($enablegutenbergfortooltips == 'YES')
     1990    {
     1991        $panel_content .= '<option id="enablegutenbergfortooltipsOption" value="YES" selected="">'. __('Yes, enable Gutenberg for tooltips', "wordpress-tooltips") . "</option>";
     1992    }
     1993    else
     1994    {
     1995        $panel_content .= '<option id="enablegutenbergfortooltipsOption" value="YES">'. __('Yes, enable Gutenberg for tooltips', "wordpress-tooltips") . "</option>";
     1996    }
     1997   
     1998    $panel_content .='</select>';
     1999    $panel_submit_label_content = 'Update Now';
     2000    $panel_submit_label = __($panel_submit_label_content, "wordpress-tooltips");
     2001    $panel_tip_link = '';
     2002   
     2003    tom_display_panel_in_admin_free($panel_title,$panel_label,$panel_content,$adminTip,$panel_submit_button_name,$panel_submit_label,$panel_tip_link);
     2004    //9.9.3 and 34.4.8 end
     2005   
    19352006?>   
    19362007<?php /* //!!! start 7.7.1 ?>
Note: See TracChangeset for help on using the changeset viewer.